TDengine/source/libs/parser/src/sql.c

8878 lines
430 KiB
C
Raw Normal View History

2023-11-29 11:07:23 +00:00
/* 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 ************************/
2023-11-29 11:07:23 +00:00
#line 11 "sql.y"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <stdbool.h>
2022-06-01 06:39:40 +00:00
#define ALLOW_FORBID_FUNC
#include "functionMgt.h"
#include "nodes.h"
2022-03-10 07:36:06 +00:00
#include "parToken.h"
#include "ttokendef.h"
2022-03-10 07:36:06 +00:00
#include "parAst.h"
2022-06-01 06:39:40 +00:00
#define YYSTACKDEPTH 0
2023-11-29 11:07:23 +00:00
#line 46 "sql.c"
/**************** End of %include directives **********************************/
2023-11-29 11:07:23 +00:00
/* 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_S3MIGRATE 69
#define TK_COMPACT 70
#define TK_IF 71
#define TK_NOT 72
#define TK_EXISTS 73
#define TK_BUFFER 74
#define TK_CACHEMODEL 75
#define TK_CACHESIZE 76
#define TK_COMP 77
#define TK_DURATION 78
#define TK_NK_VARIABLE 79
#define TK_MAXROWS 80
#define TK_MINROWS 81
#define TK_KEEP 82
#define TK_PAGES 83
#define TK_PAGESIZE 84
#define TK_TSDB_PAGESIZE 85
#define TK_PRECISION 86
#define TK_REPLICA 87
#define TK_VGROUPS 88
#define TK_SINGLE_STABLE 89
#define TK_RETENTIONS 90
#define TK_SCHEMALESS 91
#define TK_WAL_LEVEL 92
#define TK_WAL_FSYNC_PERIOD 93
#define TK_WAL_RETENTION_PERIOD 94
#define TK_WAL_RETENTION_SIZE 95
#define TK_WAL_ROLL_PERIOD 96
#define TK_WAL_SEGMENT_SIZE 97
#define TK_STT_TRIGGER 98
#define TK_TABLE_PREFIX 99
#define TK_TABLE_SUFFIX 100
#define TK_S3_CHUNKSIZE 101
#define TK_S3_KEEPLOCAL 102
#define TK_S3_COMPACT 103
#define TK_KEEP_TIME_OFFSET 104
#define TK_NK_COLON 105
#define TK_BWLIMIT 106
#define TK_START 107
#define TK_TIMESTAMP 108
#define TK_END 109
#define TK_TABLE 110
#define TK_NK_LP 111
#define TK_NK_RP 112
#define TK_STABLE 113
#define TK_COLUMN 114
#define TK_MODIFY 115
#define TK_RENAME 116
#define TK_TAG 117
#define TK_SET 118
#define TK_NK_EQ 119
#define TK_USING 120
#define TK_TAGS 121
#define TK_PRIMARY 122
#define TK_KEY 123
#define TK_BOOL 124
#define TK_TINYINT 125
#define TK_SMALLINT 126
#define TK_INT 127
#define TK_INTEGER 128
#define TK_BIGINT 129
#define TK_FLOAT 130
#define TK_DOUBLE 131
#define TK_BINARY 132
#define TK_NCHAR 133
#define TK_UNSIGNED 134
#define TK_JSON 135
#define TK_VARCHAR 136
#define TK_MEDIUMBLOB 137
#define TK_BLOB 138
#define TK_VARBINARY 139
#define TK_GEOMETRY 140
#define TK_DECIMAL 141
#define TK_COMMENT 142
#define TK_MAX_DELAY 143
#define TK_WATERMARK 144
#define TK_ROLLUP 145
#define TK_TTL 146
#define TK_SMA 147
#define TK_DELETE_MARK 148
#define TK_FIRST 149
#define TK_LAST 150
#define TK_SHOW 151
#define TK_PRIVILEGES 152
#define TK_DATABASES 153
#define TK_TABLES 154
#define TK_STABLES 155
#define TK_MNODES 156
#define TK_QNODES 157
#define TK_ARBGROUPS 158
#define TK_FUNCTIONS 159
#define TK_INDEXES 160
#define TK_ACCOUNTS 161
#define TK_APPS 162
#define TK_CONNECTIONS 163
#define TK_LICENCES 164
#define TK_GRANTS 165
#define TK_FULL 166
#define TK_LOGS 167
#define TK_MACHINES 168
#define TK_QUERIES 169
#define TK_SCORES 170
#define TK_TOPICS 171
#define TK_VARIABLES 172
#define TK_BNODES 173
#define TK_SNODES 174
#define TK_TRANSACTIONS 175
#define TK_DISTRIBUTED 176
#define TK_CONSUMERS 177
#define TK_SUBSCRIPTIONS 178
#define TK_VNODES 179
#define TK_ALIVE 180
#define TK_VIEWS 181
#define TK_VIEW 182
#define TK_COMPACTS 183
#define TK_NORMAL 184
#define TK_CHILD 185
#define TK_LIKE 186
#define TK_TBNAME 187
#define TK_QTAGS 188
#define TK_AS 189
#define TK_SYSTEM 190
#define TK_TSMA 191
#define TK_INTERVAL 192
#define TK_TSMAS 193
#define TK_FUNCTION 194
#define TK_INDEX 195
#define TK_COUNT 196
#define TK_LAST_ROW 197
#define TK_META 198
#define TK_ONLY 199
#define TK_TOPIC 200
#define TK_CONSUMER 201
#define TK_GROUP 202
#define TK_DESC 203
#define TK_DESCRIBE 204
#define TK_RESET 205
#define TK_QUERY 206
#define TK_CACHE 207
#define TK_EXPLAIN 208
#define TK_ANALYZE 209
#define TK_VERBOSE 210
#define TK_NK_BOOL 211
#define TK_RATIO 212
#define TK_NK_FLOAT 213
#define TK_OUTPUTTYPE 214
#define TK_AGGREGATE 215
#define TK_BUFSIZE 216
#define TK_LANGUAGE 217
#define TK_REPLACE 218
#define TK_STREAM 219
#define TK_INTO 220
#define TK_PAUSE 221
#define TK_RESUME 222
#define TK_TRIGGER 223
#define TK_AT_ONCE 224
#define TK_WINDOW_CLOSE 225
#define TK_IGNORE 226
#define TK_EXPIRED 227
#define TK_FILL_HISTORY 228
#define TK_UPDATE 229
#define TK_SUBTABLE 230
#define TK_UNTREATED 231
#define TK_KILL 232
#define TK_CONNECTION 233
#define TK_TRANSACTION 234
#define TK_BALANCE 235
#define TK_VGROUP 236
#define TK_LEADER 237
#define TK_MERGE 238
#define TK_REDISTRIBUTE 239
#define TK_SPLIT 240
#define TK_DELETE 241
#define TK_INSERT 242
#define TK_NK_BIN 243
#define TK_NK_HEX 244
#define TK_NULL 245
#define TK_NK_QUESTION 246
#define TK_NK_ALIAS 247
#define TK_NK_ARROW 248
#define TK_ROWTS 249
#define TK_QSTART 250
#define TK_QEND 251
#define TK_QDURATION 252
#define TK_WSTART 253
#define TK_WEND 254
#define TK_WDURATION 255
#define TK_IROWTS 256
#define TK_ISFILLED 257
#define TK_CAST 258
#define TK_NOW 259
#define TK_TODAY 260
#define TK_TIMEZONE 261
#define TK_CLIENT_VERSION 262
#define TK_SERVER_VERSION 263
#define TK_SERVER_STATUS 264
#define TK_CURRENT_USER 265
#define TK_CASE 266
#define TK_WHEN 267
#define TK_THEN 268
#define TK_ELSE 269
#define TK_BETWEEN 270
#define TK_IS 271
#define TK_NK_LT 272
#define TK_NK_GT 273
#define TK_NK_LE 274
#define TK_NK_GE 275
#define TK_NK_NE 276
#define TK_MATCH 277
#define TK_NMATCH 278
#define TK_CONTAINS 279
#define TK_IN 280
#define TK_JOIN 281
#define TK_INNER 282
#define TK_LEFT 283
#define TK_RIGHT 284
#define TK_OUTER 285
#define TK_SEMI 286
#define TK_ANTI 287
#define TK_ASOF 288
#define TK_WINDOW 289
#define TK_WINDOW_OFFSET 290
#define TK_JLIMIT 291
#define TK_SELECT 292
#define TK_NK_HINT 293
#define TK_DISTINCT 294
#define TK_WHERE 295
#define TK_PARTITION 296
#define TK_BY 297
#define TK_SESSION 298
#define TK_STATE_WINDOW 299
#define TK_EVENT_WINDOW 300
#define TK_COUNT_WINDOW 301
#define TK_SLIDING 302
#define TK_FILL 303
#define TK_VALUE 304
#define TK_VALUE_F 305
#define TK_NONE 306
#define TK_PREV 307
#define TK_NULL_F 308
#define TK_LINEAR 309
#define TK_NEXT 310
#define TK_HAVING 311
#define TK_RANGE 312
#define TK_EVERY 313
#define TK_ORDER 314
#define TK_SLIMIT 315
#define TK_SOFFSET 316
#define TK_LIMIT 317
#define TK_OFFSET 318
#define TK_ASC 319
#define TK_NULLS 320
#define TK_ABORT 321
#define TK_AFTER 322
#define TK_ATTACH 323
#define TK_BEFORE 324
#define TK_BEGIN 325
#define TK_BITAND 326
#define TK_BITNOT 327
#define TK_BITOR 328
#define TK_BLOCKS 329
#define TK_CHANGE 330
#define TK_COMMA 331
#define TK_CONCAT 332
#define TK_CONFLICT 333
#define TK_COPY 334
#define TK_DEFERRED 335
#define TK_DELIMITERS 336
#define TK_DETACH 337
#define TK_DIVIDE 338
#define TK_DOT 339
#define TK_EACH 340
#define TK_FAIL 341
#define TK_FILE 342
#define TK_FOR 343
#define TK_GLOB 344
#define TK_ID 345
#define TK_IMMEDIATE 346
#define TK_IMPORT 347
#define TK_INITIALLY 348
#define TK_INSTEAD 349
#define TK_ISNULL 350
#define TK_MODULES 351
#define TK_NK_BITNOT 352
#define TK_NK_SEMI 353
#define TK_NOTNULL 354
#define TK_OF 355
#define TK_PLUS 356
#define TK_PRIVILEGE 357
#define TK_RAISE 358
#define TK_RESTRICT 359
#define TK_ROW 360
#define TK_STAR 361
#define TK_STATEMENT 362
#define TK_STRICT 363
#define TK_STRING 364
#define TK_TIMES 365
#define TK_VALUES 366
#define TK_VARIABLE 367
#define TK_WAL 368
#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.
2022-03-10 07:36:06 +00:00
** 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
2022-03-10 07:36:06 +00:00
** 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
2022-03-28 09:08:48 +00:00
** zero the stack is dynamically sized using realloc()
2022-03-10 07:36:06 +00:00
** 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 *****************************************/
2022-03-21 06:00:30 +00:00
#define YYCODETYPE unsigned short int
2023-11-29 11:07:23 +00:00
#define YYNOCODE 545
#define YYACTIONTYPE unsigned short int
2022-03-10 07:36:06 +00:00
#define ParseTOKENTYPE SToken
typedef union {
int yyinit;
2022-03-10 07:36:06 +00:00
ParseTOKENTYPE yy0;
2023-11-29 11:07:23 +00:00
EShowKind yy89;
EJoinType yy92;
EFillMode yy94;
SDataType yy154;
int8_t yy173;
EJoinSubType yy534;
SToken yy659;
SNodeList* yy694;
ENullOrder yy707;
EOrder yy708;
SNode* yy722;
int64_t yy729;
SShowTablesOption yy817;
int32_t yy830;
SAlterOption yy845;
bool yy897;
STokenPair yy967;
EOperatorType yy1070;
} YYMINORTYPE;
#ifndef YYSTACKDEPTH
#define YYSTACKDEPTH 100
#endif
2022-03-10 07:36:06 +00:00
#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
2022-04-22 10:23:37 +00:00
#define YYFALLBACK 1
2023-11-29 11:07:23 +00:00
#define YYNSTATE 945
#define YYNRULE 738
#define YYNRULE_WITH_ACTION 738
#define YYNTOKEN 369
#define YY_MAX_SHIFT 944
#define YY_MIN_SHIFTREDUCE 1408
#define YY_MAX_SHIFTREDUCE 2145
#define YY_ERROR_ACTION 2146
#define YY_ACCEPT_ACTION 2147
#define YY_NO_ACTION 2148
#define YY_MIN_REDUCE 2149
#define YY_MAX_REDUCE 2886
/************* 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 **********************************************/
2023-11-29 11:07:23 +00:00
#define YY_ACTTAB_COUNT (3136)
static const YYACTIONTYPE yy_action[] = {
2023-11-29 11:07:23 +00:00
/* 0 */ 873, 527, 2502, 2338, 631, 2323, 526, 632, 2192, 2405,
/* 10 */ 2626, 2573, 47, 45, 2067, 2625, 454, 33, 478, 821,
/* 20 */ 459, 2585, 1888, 40, 39, 2403, 2500, 46, 44, 43,
/* 30 */ 42, 41, 2774, 35, 2502, 1976, 197, 1886, 2235, 40,
/* 40 */ 39, 480, 2667, 46, 44, 43, 42, 41, 1913, 174,
/* 50 */ 2490, 2491, 791, 155, 745, 794, 9, 2349, 2771, 429,
/* 60 */ 841, 2471, 2857, 40, 39, 1971, 467, 46, 44, 43,
/* 70 */ 42, 41, 19, 467, 745, 715, 883, 846, 467, 1894,
/* 80 */ 2863, 216, 2857, 2685, 846, 2858, 780, 841, 2405, 846,
/* 90 */ 713, 2774, 711, 285, 284, 427, 2632, 729, 816, 639,
/* 100 */ 2863, 216, 632, 2192, 2403, 2858, 780, 650, 941, 445,
/* 110 */ 2549, 15, 916, 915, 914, 913, 490, 2770, 912, 911,
/* 120 */ 160, 906, 905, 904, 903, 902, 901, 900, 159, 894,
/* 130 */ 893, 892, 489, 488, 889, 888, 887, 196, 195, 886,
/* 140 */ 485, 885, 884, 482, 2502, 2666, 2398, 2400, 2705, 1978,
/* 150 */ 1979, 50, 121, 2668, 820, 2670, 2671, 815, 190, 846,
/* 160 */ 314, 821, 1448, 636, 199, 462, 2759, 2111, 2499, 633,
/* 170 */ 455, 2755, 192, 2767, 790, 66, 147, 789, 641, 2541,
/* 180 */ 2042, 1455, 1913, 779, 2857, 543, 2467, 1949, 1959, 1563,
/* 190 */ 217, 2857, 2642, 779, 791, 155, 1977, 1980, 2806, 37,
/* 200 */ 325, 2857, 778, 216, 1450, 1453, 1454, 2858, 780, 778,
/* 210 */ 216, 1889, 2150, 1887, 2858, 780, 590, 2646, 62, 778,
/* 220 */ 216, 728, 40, 39, 2858, 780, 46, 44, 43, 42,
/* 230 */ 41, 1565, 183, 136, 2161, 231, 135, 134, 133, 132,
/* 240 */ 131, 130, 129, 128, 127, 1892, 1893, 1946, 222, 1948,
/* 250 */ 1951, 1952, 1953, 1954, 1955, 1956, 1957, 1958, 812, 844,
/* 260 */ 843, 1970, 1972, 1973, 1974, 1975, 2, 47, 45, 2648,
/* 270 */ 2650, 456, 403, 62, 1911, 459, 534, 1888, 2405, 2862,
/* 280 */ 846, 578, 62, 240, 599, 463, 419, 2857, 1913, 598,
/* 290 */ 1976, 1914, 1886, 896, 2403, 2779, 2039, 2040, 2041, 2779,
/* 300 */ 2779, 2779, 2779, 2779, 841, 557, 2861, 600, 589, 239,
/* 310 */ 2858, 2860, 409, 559, 125, 2767, 2768, 647, 153, 2772,
/* 320 */ 1971, 587, 596, 594, 537, 404, 12, 19, 10, 229,
/* 330 */ 2071, 1913, 321, 2005, 1894, 136, 1913, 768, 135, 134,
/* 340 */ 133, 132, 131, 130, 129, 128, 127, 2667, 51, 697,
/* 350 */ 696, 695, 2172, 2862, 842, 2347, 687, 152, 691, 898,
/* 360 */ 817, 2857, 690, 941, 430, 2685, 15, 689, 694, 438,
/* 370 */ 437, 648, 119, 688, 146, 545, 654, 436, 684, 683,
/* 380 */ 2861, 677, 842, 2347, 2858, 2859, 40, 39, 2685, 158,
/* 390 */ 46, 44, 43, 42, 41, 50, 62, 2339, 1917, 321,
/* 400 */ 2006, 2632, 146, 816, 1978, 1979, 2632, 2478, 2457, 682,
/* 410 */ 586, 585, 584, 583, 582, 577, 576, 575, 574, 413,
/* 420 */ 1660, 1661, 2042, 563, 562, 561, 560, 554, 553, 552,
/* 430 */ 2502, 547, 546, 428, 649, 2495, 767, 538, 1720, 1721,
/* 440 */ 791, 155, 1949, 1959, 1739, 464, 2489, 2491, 791, 155,
/* 450 */ 2666, 1977, 1980, 2705, 321, 1732, 1733, 121, 2668, 820,
/* 460 */ 2670, 2671, 815, 321, 846, 724, 1889, 157, 1887, 165,
/* 470 */ 2730, 2759, 2424, 40, 39, 455, 2755, 46, 44, 43,
/* 480 */ 42, 41, 2171, 209, 36, 457, 2000, 2001, 2002, 2003,
/* 490 */ 2004, 2008, 2009, 2010, 2011, 525, 2392, 524, 1950, 651,
/* 500 */ 1892, 1893, 1946, 1950, 1948, 1951, 1952, 1953, 1954, 1955,
/* 510 */ 1956, 1957, 1958, 812, 844, 843, 1970, 1972, 1973, 1974,
/* 520 */ 1975, 2, 12, 47, 45, 444, 2549, 523, 251, 321,
/* 530 */ 182, 459, 634, 1888, 2200, 383, 2632, 2779, 2039, 2040,
/* 540 */ 2041, 2779, 2779, 2779, 2779, 2779, 1976, 2170, 1886, 43,
/* 550 */ 42, 41, 381, 76, 1897, 2485, 75, 564, 1947, 793,
/* 560 */ 185, 2767, 2768, 1947, 153, 2772, 410, 212, 186, 2767,
/* 570 */ 2768, 156, 153, 2772, 2730, 1621, 1971, 321, 249, 613,
/* 580 */ 611, 608, 606, 19, 2044, 2045, 2046, 2047, 2048, 725,
/* 590 */ 1894, 1612, 871, 870, 869, 1616, 868, 1618, 1619, 867,
/* 600 */ 864, 2632, 1627, 861, 1629, 1630, 858, 855, 852, 100,
/* 610 */ 2100, 412, 411, 46, 44, 43, 42, 41, 883, 941,
/* 620 */ 764, 468, 15, 62, 1621, 1918, 431, 881, 171, 170,
/* 630 */ 878, 877, 876, 168, 1976, 2342, 477, 2222, 573, 572,
/* 640 */ 1612, 871, 870, 869, 1616, 868, 1618, 1619, 811, 810,
/* 650 */ 2862, 1627, 809, 1629, 1630, 808, 855, 852, 807, 698,
/* 660 */ 1978, 1979, 1621, 63, 1971, 1916, 806, 1916, 2142, 761,
/* 670 */ 760, 2098, 2099, 2101, 2102, 2103, 14, 13, 1612, 871,
/* 680 */ 870, 869, 1616, 868, 1618, 1619, 867, 864, 2064, 1627,
/* 690 */ 861, 1629, 1630, 858, 855, 852, 40, 39, 1949, 1959,
/* 700 */ 46, 44, 43, 42, 41, 40, 39, 1977, 1980, 46,
/* 710 */ 44, 43, 42, 41, 288, 87, 86, 530, 287, 253,
/* 720 */ 228, 29, 1889, 634, 1887, 2200, 770, 765, 758, 754,
/* 730 */ 1900, 40, 39, 522, 520, 46, 44, 43, 42, 41,
/* 740 */ 2092, 549, 2467, 2653, 408, 580, 2467, 509, 2399, 2400,
/* 750 */ 506, 502, 498, 495, 523, 2093, 1892, 1893, 1946, 2135,
/* 760 */ 1948, 1951, 1952, 1953, 1954, 1955, 1956, 1957, 1958, 812,
/* 770 */ 844, 843, 1970, 1972, 1973, 1974, 1975, 2, 47, 45,
/* 780 */ 1981, 2667, 1455, 651, 2141, 724, 459, 2019, 1888, 2149,
/* 790 */ 103, 233, 2405, 416, 794, 238, 443, 2091, 717, 466,
/* 800 */ 2112, 1976, 2324, 1886, 321, 2655, 1453, 1454, 2403, 2083,
/* 810 */ 1879, 2667, 1855, 145, 144, 143, 142, 141, 140, 139,
/* 820 */ 138, 137, 2685, 769, 817, 704, 2202, 2322, 842, 2347,
/* 830 */ 2642, 1971, 726, 1917, 319, 2632, 319, 816, 628, 2485,
/* 840 */ 716, 652, 470, 469, 1880, 1894, 2550, 626, 220, 181,
/* 850 */ 622, 618, 2685, 435, 434, 2646, 286, 2283, 844, 843,
/* 860 */ 1970, 1972, 1973, 1974, 1975, 2632, 1474, 816, 1473, 1986,
/* 870 */ 842, 2347, 707, 3, 941, 1913, 1474, 48, 1473, 701,
/* 880 */ 699, 1477, 1478, 151, 2666, 53, 283, 2705, 487, 486,
/* 890 */ 55, 121, 2668, 820, 2670, 2671, 815, 12, 846, 842,
/* 900 */ 2347, 1475, 2440, 199, 795, 2759, 2586, 2648, 2651, 455,
/* 910 */ 2755, 1475, 123, 1895, 2666, 1978, 1979, 2705, 846, 531,
/* 920 */ 2405, 121, 2668, 820, 2670, 2671, 815, 481, 846, 433,
/* 930 */ 432, 72, 679, 2877, 71, 2759, 2403, 2807, 899, 455,
/* 940 */ 2755, 2308, 473, 197, 881, 171, 170, 878, 877, 876,
/* 950 */ 168, 2667, 2169, 1949, 1959, 476, 681, 745, 729, 745,
/* 960 */ 680, 786, 1977, 1980, 817, 2857, 2814, 2857, 2472, 881,
/* 970 */ 171, 170, 878, 877, 876, 168, 2042, 1889, 2063, 1887,
/* 980 */ 800, 744, 2731, 2863, 216, 2863, 216, 2007, 2858, 780,
/* 990 */ 2858, 780, 2685, 40, 39, 2667, 1917, 46, 44, 43,
/* 1000 */ 42, 41, 207, 673, 672, 2632, 2632, 816, 817, 289,
/* 1010 */ 2827, 1892, 1893, 1946, 1914, 1948, 1951, 1952, 1953, 1954,
/* 1020 */ 1955, 1956, 1957, 1958, 812, 844, 843, 1970, 1972, 1973,
/* 1030 */ 1974, 1975, 2, 47, 45, 1917, 2685, 465, 2554, 731,
/* 1040 */ 2541, 459, 1950, 1888, 802, 180, 2731, 842, 2347, 2632,
/* 1050 */ 1946, 816, 2774, 2349, 2666, 2861, 1976, 2705, 1886, 2147,
/* 1060 */ 1918, 121, 2668, 820, 2670, 2671, 815, 532, 846, 100,
/* 1070 */ 571, 34, 2667, 2877, 570, 2759, 842, 2347, 2769, 455,
/* 1080 */ 2755, 2012, 569, 842, 2347, 817, 1971, 756, 235, 1898,
/* 1090 */ 1816, 1817, 2039, 2040, 2041, 2343, 551, 1894, 2666, 290,
/* 1100 */ 1894, 2705, 1947, 565, 148, 121, 2668, 820, 2670, 2671,
/* 1110 */ 815, 2405, 846, 2685, 842, 2347, 89, 2877, 1857, 2759,
/* 1120 */ 60, 842, 2347, 455, 2755, 2667, 2632, 798, 816, 941,
/* 1130 */ 742, 1856, 48, 94, 566, 681, 93, 874, 817, 680,
/* 1140 */ 2850, 567, 722, 1763, 1764, 493, 675, 674, 472, 471,
/* 1150 */ 492, 480, 842, 2347, 842, 2347, 842, 2347, 511, 180,
/* 1160 */ 368, 475, 474, 693, 692, 211, 2685, 2349, 842, 2347,
/* 1170 */ 1978, 1979, 653, 2284, 2344, 2666, 291, 875, 2705, 2632,
/* 1180 */ 2396, 816, 121, 2668, 820, 2670, 2671, 815, 299, 846,
/* 1190 */ 1762, 1765, 329, 330, 2877, 745, 2759, 328, 745, 483,
/* 1200 */ 455, 2755, 2168, 2857, 1575, 92, 2857, 180, 1949, 1959,
/* 1210 */ 910, 908, 180, 879, 91, 2349, 2396, 1977, 1980, 1574,
/* 1220 */ 2350, 2863, 216, 1918, 2863, 216, 2858, 780, 2666, 2858,
/* 1230 */ 780, 2705, 1889, 2238, 1887, 121, 2668, 820, 2670, 2671,
/* 1240 */ 815, 2405, 846, 2167, 842, 2347, 787, 2877, 1913, 2759,
/* 1250 */ 2667, 2166, 880, 455, 2755, 2396, 2632, 829, 377, 2177,
/* 1260 */ 936, 2382, 1918, 817, 797, 2791, 1892, 1893, 1946, 2165,
/* 1270 */ 1948, 1951, 1952, 1953, 1954, 1955, 1956, 1957, 1958, 812,
/* 1280 */ 844, 843, 1970, 1972, 1973, 1974, 1975, 2, 47, 45,
/* 1290 */ 601, 2685, 842, 2347, 515, 1579, 459, 2632, 1888, 842,
/* 1300 */ 2347, 104, 2405, 773, 2632, 2632, 816, 697, 696, 695,
/* 1310 */ 1578, 1976, 333, 1886, 687, 152, 691, 2164, 2404, 336,
/* 1320 */ 690, 517, 513, 2632, 1457, 689, 694, 438, 437, 1888,
/* 1330 */ 1912, 688, 842, 2347, 1791, 436, 684, 683, 842, 2347,
/* 1340 */ 2163, 1971, 2160, 2159, 1886, 2158, 783, 2157, 842, 2347,
/* 1350 */ 842, 2347, 839, 2666, 2156, 1894, 2705, 79, 840, 2155,
/* 1360 */ 121, 2668, 820, 2670, 2671, 815, 782, 846, 364, 2053,
/* 1370 */ 484, 2632, 2877, 2154, 2759, 487, 486, 730, 455, 2755,
/* 1380 */ 2667, 603, 113, 2153, 941, 1902, 1894, 15, 169, 2152,
/* 1390 */ 2576, 2450, 276, 817, 2632, 274, 2632, 2632, 1976, 2632,
/* 1400 */ 1895, 2632, 2325, 278, 1559, 685, 277, 2340, 2632, 2220,
/* 1410 */ 2211, 280, 90, 2632, 279, 941, 282, 162, 300, 281,
/* 1420 */ 686, 2685, 719, 271, 718, 1978, 1979, 2632, 1971, 1557,
/* 1430 */ 745, 700, 702, 541, 2632, 161, 816, 2632, 2857, 191,
/* 1440 */ 805, 500, 1894, 2632, 1555, 162, 1560, 2209, 671, 667,
/* 1450 */ 663, 659, 2336, 270, 2144, 2145, 2863, 216, 14, 13,
/* 1460 */ 1896, 2858, 780, 1949, 1959, 752, 105, 54, 49, 705,
/* 1470 */ 49, 804, 1977, 1980, 2332, 1947, 200, 2334, 169, 64,
/* 1480 */ 2330, 49, 49, 2666, 327, 77, 2705, 1889, 169, 1887,
/* 1490 */ 121, 2668, 820, 2670, 2671, 815, 1807, 846, 101, 78,
/* 1500 */ 296, 268, 2734, 210, 2759, 2162, 167, 169, 455, 2755,
/* 1510 */ 343, 342, 345, 344, 347, 346, 2820, 74, 1889, 850,
/* 1520 */ 1887, 1892, 1893, 1946, 1814, 1948, 1951, 1952, 1953, 1954,
/* 1530 */ 1955, 1956, 1957, 1958, 812, 844, 843, 1970, 1972, 1973,
/* 1540 */ 1974, 1975, 2, 2667, 2087, 349, 348, 2097, 1538, 2096,
/* 1550 */ 351, 350, 1892, 1893, 190, 305, 817, 796, 2013, 167,
/* 1560 */ 1960, 1760, 169, 331, 826, 353, 352, 1747, 355, 354,
/* 1570 */ 256, 357, 356, 149, 1903, 315, 1898, 762, 832, 267,
/* 1580 */ 359, 358, 258, 265, 2685, 339, 1605, 167, 263, 645,
/* 1590 */ 1539, 2667, 361, 360, 363, 362, 376, 2632, 1634, 816,
/* 1600 */ 1511, 118, 792, 307, 817, 150, 890, 255, 1906, 1908,
/* 1610 */ 115, 891, 2203, 1997, 2686, 2277, 2276, 2476, 2193, 2810,
/* 1620 */ 2667, 759, 844, 843, 1970, 1972, 1973, 1974, 1975, 784,
/* 1630 */ 1530, 450, 2685, 817, 766, 1528, 1899, 446, 1642, 823,
/* 1640 */ 491, 1649, 1512, 2477, 2199, 2632, 2666, 816, 2393, 2705,
/* 1650 */ 738, 2811, 1647, 121, 2668, 820, 2670, 2671, 815, 2821,
/* 1660 */ 846, 2685, 774, 775, 934, 2732, 172, 2759, 312, 317,
/* 1670 */ 320, 455, 2755, 2309, 2632, 499, 816, 5, 494, 425,
/* 1680 */ 507, 508, 518, 1921, 224, 519, 2667, 226, 223, 1784,
/* 1690 */ 371, 521, 1911, 535, 2666, 1912, 542, 2705, 237, 817,
/* 1700 */ 544, 121, 2668, 820, 2670, 2671, 815, 548, 846, 550,
/* 1710 */ 592, 555, 568, 801, 579, 2759, 2469, 581, 588, 455,
/* 1720 */ 2755, 605, 604, 2666, 591, 593, 2705, 2685, 2667, 602,
/* 1730 */ 122, 2668, 820, 2670, 2671, 815, 242, 846, 243, 609,
/* 1740 */ 2632, 817, 816, 607, 2759, 610, 246, 1919, 2758, 2755,
/* 1750 */ 612, 629, 2667, 614, 4, 637, 630, 638, 254, 1914,
/* 1760 */ 1920, 642, 640, 96, 257, 814, 1922, 643, 1923, 2685,
/* 1770 */ 260, 646, 644, 2496, 1924, 2486, 262, 676, 655, 97,
/* 1780 */ 98, 124, 2632, 2563, 816, 678, 99, 2560, 269, 2666,
/* 1790 */ 708, 709, 2705, 2685, 2667, 405, 122, 2668, 820, 2670,
/* 1800 */ 2671, 815, 2337, 846, 721, 2559, 2632, 817, 816, 273,
/* 1810 */ 2759, 2333, 275, 723, 803, 2755, 175, 176, 2335, 2331,
/* 1820 */ 102, 177, 292, 1915, 178, 733, 2542, 163, 734, 737,
/* 1830 */ 732, 818, 297, 763, 2705, 2685, 295, 740, 122, 2668,
/* 1840 */ 820, 2670, 2671, 815, 2826, 846, 749, 824, 2632, 772,
/* 1850 */ 816, 2825, 2759, 8, 189, 2666, 418, 2755, 2705, 750,
/* 1860 */ 2667, 2798, 399, 2668, 820, 2670, 2671, 815, 813, 846,
/* 1870 */ 799, 2724, 306, 817, 302, 739, 304, 2667, 748, 777,
/* 1880 */ 372, 747, 776, 311, 451, 2880, 788, 2856, 785, 316,
/* 1890 */ 817, 154, 1916, 2061, 2059, 203, 61, 2666, 322, 164,
/* 1900 */ 2705, 2685, 822, 2510, 184, 2668, 820, 2670, 2671, 815,
/* 1910 */ 373, 846, 374, 2509, 2632, 2775, 816, 2508, 2685, 461,
/* 1920 */ 827, 828, 166, 835, 833, 337, 837, 375, 112, 2740,
/* 1930 */ 2624, 2632, 838, 816, 2348, 114, 2623, 308, 313, 309,
/* 1940 */ 2619, 2618, 310, 2778, 1432, 2610, 2609, 1, 2601, 2600,
/* 1950 */ 218, 746, 2817, 2616, 2615, 2667, 378, 173, 2607, 935,
/* 1960 */ 938, 2606, 2595, 2666, 848, 2594, 2705, 2613, 817, 2612,
/* 1970 */ 187, 2668, 820, 2670, 2671, 815, 2604, 846, 2603, 940,
/* 1980 */ 2666, 2592, 727, 2705, 2591, 366, 2589, 122, 2668, 820,
/* 1990 */ 2670, 2671, 815, 2588, 846, 2667, 2685, 2397, 390, 423,
/* 2000 */ 944, 2759, 401, 52, 391, 382, 2756, 380, 817, 2632,
/* 2010 */ 2584, 816, 424, 2583, 2582, 84, 370, 2577, 497, 402,
/* 2020 */ 501, 496, 1839, 1840, 221, 2575, 503, 504, 505, 781,
/* 2030 */ 2878, 1838, 206, 2574, 2667, 426, 2685, 2572, 510, 2571,
/* 2040 */ 512, 932, 928, 924, 920, 2570, 367, 817, 514, 2632,
/* 2050 */ 2569, 816, 516, 1827, 2546, 2545, 225, 227, 2666, 85,
/* 2060 */ 1787, 2705, 1786, 2523, 2522, 184, 2668, 820, 2670, 2671,
/* 2070 */ 815, 2521, 846, 528, 529, 2685, 448, 2520, 2519, 2667,
/* 2080 */ 2459, 533, 2456, 1719, 2455, 536, 2449, 540, 2632, 539,
/* 2090 */ 816, 120, 817, 2446, 340, 230, 2445, 2444, 2666, 2443,
/* 2100 */ 2448, 2705, 88, 2447, 2442, 400, 2668, 820, 2670, 2671,
/* 2110 */ 815, 232, 846, 2818, 2667, 449, 2441, 2439, 2438, 2437,
/* 2120 */ 2685, 234, 556, 2436, 2434, 558, 2433, 817, 830, 2432,
/* 2130 */ 2431, 2483, 2454, 2632, 2430, 816, 236, 2666, 2429, 2428,
/* 2140 */ 2705, 2452, 2435, 2427, 400, 2668, 820, 2670, 2671, 815,
/* 2150 */ 2426, 846, 2425, 2423, 2422, 2685, 2421, 2420, 2419, 2418,
/* 2160 */ 2417, 2416, 2667, 2415, 2414, 95, 2413, 2484, 2632, 2453,
/* 2170 */ 816, 2451, 338, 2412, 2411, 814, 324, 1725, 2410, 2409,
/* 2180 */ 595, 323, 2666, 241, 2408, 2705, 2407, 597, 2406, 393,
/* 2190 */ 2668, 820, 2670, 2671, 815, 414, 846, 1576, 1580, 415,
/* 2200 */ 293, 2242, 244, 2685, 2241, 245, 2240, 1572, 2667, 247,
/* 2210 */ 2239, 248, 2237, 2234, 615, 2233, 2632, 2666, 816, 616,
/* 2220 */ 2705, 817, 617, 620, 187, 2668, 820, 2670, 2671, 815,
/* 2230 */ 619, 846, 621, 2226, 623, 2213, 624, 625, 2188, 627,
/* 2240 */ 771, 250, 81, 2652, 198, 1456, 2667, 208, 635, 2685,
/* 2250 */ 2187, 252, 2544, 2540, 2530, 2518, 82, 2517, 259, 817,
/* 2260 */ 261, 2494, 2632, 2482, 816, 2666, 264, 2326, 2705, 266,
/* 2270 */ 2236, 2232, 399, 2668, 820, 2670, 2671, 815, 1504, 846,
/* 2280 */ 656, 2725, 658, 657, 2879, 660, 662, 2685, 2230, 458,
/* 2290 */ 661, 2667, 2228, 664, 2225, 668, 665, 669, 2208, 2206,
/* 2300 */ 2632, 666, 816, 2207, 817, 1654, 670, 2205, 2184, 2328,
/* 2310 */ 73, 2666, 1653, 2327, 2705, 1562, 1561, 1558, 400, 2668,
/* 2320 */ 820, 2670, 2671, 815, 2667, 846, 272, 460, 1556, 2223,
/* 2330 */ 1554, 2221, 2685, 1553, 1552, 2212, 703, 817, 1551, 1550,
/* 2340 */ 1545, 1547, 439, 907, 909, 2632, 440, 816, 441, 2666,
/* 2350 */ 2210, 1546, 2705, 1544, 442, 2667, 400, 2668, 820, 2670,
/* 2360 */ 2671, 815, 706, 846, 2183, 2685, 2182, 2181, 817, 714,
/* 2370 */ 710, 2180, 2179, 712, 126, 1821, 1823, 1820, 2632, 2543,
/* 2380 */ 816, 1825, 2539, 28, 725, 67, 294, 1795, 1811, 1793,
/* 2390 */ 2529, 2516, 56, 2515, 720, 735, 2685, 2705, 2862, 1797,
/* 2400 */ 30, 395, 2668, 820, 2670, 2671, 815, 20, 846, 2632,
/* 2410 */ 57, 816, 736, 298, 1772, 1771, 58, 301, 17, 2667,
/* 2420 */ 741, 179, 743, 751, 2114, 447, 753, 2666, 6, 2088,
/* 2430 */ 2705, 755, 817, 7, 385, 2668, 820, 2670, 2671, 815,
/* 2440 */ 2667, 846, 303, 21, 22, 202, 2095, 213, 757, 2653,
/* 2450 */ 2056, 32, 214, 817, 188, 201, 31, 83, 2666, 23,
/* 2460 */ 2685, 2705, 215, 2667, 2054, 384, 2668, 820, 2670, 2671,
/* 2470 */ 815, 2082, 846, 2632, 2052, 816, 817, 65, 24, 18,
/* 2480 */ 2134, 2685, 2135, 2129, 2128, 2667, 452, 2133, 2132, 453,
/* 2490 */ 318, 59, 2036, 2035, 2632, 2514, 816, 193, 817, 107,
/* 2500 */ 106, 25, 11, 1988, 2685, 2493, 1987, 1904, 2667, 13,
/* 2510 */ 857, 1998, 194, 1963, 1962, 860, 863, 2632, 866, 816,
/* 2520 */ 38, 817, 2666, 1939, 204, 2705, 2685, 1961, 16, 386,
/* 2530 */ 2668, 820, 2670, 2671, 815, 26, 846, 1931, 27, 2632,
/* 2540 */ 326, 816, 2090, 2666, 2492, 205, 2705, 332, 819, 2685,
/* 2550 */ 392, 2668, 820, 2670, 2671, 815, 108, 846, 334, 2481,
/* 2560 */ 110, 341, 2632, 115, 816, 834, 2666, 825, 836, 2705,
/* 2570 */ 69, 109, 70, 396, 2668, 820, 2670, 2671, 815, 831,
/* 2580 */ 846, 335, 111, 2710, 2709, 847, 849, 845, 2666, 68,
/* 2590 */ 2667, 2705, 1965, 1635, 479, 387, 2668, 820, 2670, 2671,
/* 2600 */ 815, 851, 846, 817, 1632, 853, 1631, 854, 856, 1628,
/* 2610 */ 859, 2666, 1622, 2667, 2705, 862, 1620, 865, 397, 2668,
/* 2620 */ 820, 2670, 2671, 815, 116, 846, 817, 1626, 365, 1648,
/* 2630 */ 872, 2685, 2667, 1611, 117, 80, 1625, 1624, 1644, 1502,
/* 2640 */ 1623, 882, 1541, 1540, 2632, 817, 816, 1537, 1534, 1533,
/* 2650 */ 1532, 1531, 1529, 1570, 2685, 1527, 1526, 2667, 1525, 895,
/* 2660 */ 1569, 897, 219, 1523, 1520, 1522, 1566, 2632, 1521, 816,
/* 2670 */ 817, 1519, 1518, 2685, 1517, 1564, 1514, 2667, 1513, 1508,
/* 2680 */ 1510, 1509, 1507, 2231, 917, 2229, 2632, 918, 816, 921,
/* 2690 */ 817, 919, 923, 2666, 2227, 925, 2705, 2224, 2685, 922,
/* 2700 */ 388, 2668, 820, 2670, 2671, 815, 926, 846, 927, 929,
/* 2710 */ 930, 2632, 931, 816, 2204, 933, 2666, 1445, 2685, 2705,
/* 2720 */ 2178, 1433, 937, 398, 2668, 820, 2670, 2671, 815, 369,
/* 2730 */ 846, 2632, 939, 816, 1890, 2666, 943, 379, 2705, 942,
/* 2740 */ 2148, 2667, 389, 2668, 820, 2670, 2671, 815, 2148, 846,
/* 2750 */ 2148, 2148, 2148, 2148, 817, 2148, 2148, 2148, 2148, 2148,
/* 2760 */ 2666, 2148, 2148, 2705, 2148, 2148, 2148, 406, 2668, 820,
/* 2770 */ 2670, 2671, 815, 2148, 846, 2148, 2148, 2148, 2148, 2148,
/* 2780 */ 2666, 2148, 2685, 2705, 2148, 2148, 2148, 407, 2668, 820,
/* 2790 */ 2670, 2671, 815, 2148, 846, 2632, 2148, 816, 2148, 2148,
/* 2800 */ 2148, 2148, 2148, 2148, 2148, 2667, 2148, 2148, 2148, 2148,
/* 2810 */ 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 817, 2148,
/* 2820 */ 2148, 2148, 2148, 2148, 2148, 2148, 2667, 2148, 2148, 2148,
/* 2830 */ 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 817,
/* 2840 */ 2148, 2148, 2148, 2148, 2666, 2148, 2685, 2705, 2148, 2667,
/* 2850 */ 2148, 2679, 2668, 820, 2670, 2671, 815, 2148, 846, 2632,
/* 2860 */ 2148, 816, 817, 2148, 2148, 2148, 2148, 2685, 2148, 2148,
/* 2870 */ 2148, 2667, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148,
/* 2880 */ 2632, 2148, 816, 2148, 817, 2148, 2148, 2148, 2148, 2148,
/* 2890 */ 2685, 2148, 2148, 2148, 2667, 2148, 2148, 2148, 2148, 2148,
/* 2900 */ 2148, 2148, 2148, 2632, 2148, 816, 2148, 817, 2666, 2148,
/* 2910 */ 2148, 2705, 2685, 2148, 2148, 2678, 2668, 820, 2670, 2671,
/* 2920 */ 815, 2148, 846, 2148, 2148, 2632, 2148, 816, 2148, 2666,
/* 2930 */ 2148, 2148, 2705, 2148, 2148, 2685, 2677, 2668, 820, 2670,
/* 2940 */ 2671, 815, 2148, 846, 2148, 2148, 2148, 2148, 2632, 2148,
/* 2950 */ 816, 2148, 2666, 2148, 2148, 2705, 2148, 2148, 2148, 420,
/* 2960 */ 2668, 820, 2670, 2671, 815, 2148, 846, 2148, 2148, 2148,
/* 2970 */ 2148, 2148, 2148, 2148, 2666, 2148, 2667, 2705, 2148, 2148,
/* 2980 */ 2148, 421, 2668, 820, 2670, 2671, 815, 2148, 846, 817,
/* 2990 */ 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2666, 2148, 2667,
/* 3000 */ 2705, 2148, 2148, 2148, 417, 2668, 820, 2670, 2671, 815,
/* 3010 */ 2148, 846, 817, 2148, 2148, 2148, 2148, 2685, 2667, 2148,
/* 3020 */ 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148,
/* 3030 */ 2632, 817, 816, 2148, 2148, 2148, 2148, 2148, 2148, 2148,
/* 3040 */ 2685, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148,
/* 3050 */ 2148, 2148, 2148, 2632, 2148, 816, 2148, 2148, 2148, 2685,
/* 3060 */ 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148, 2148,
/* 3070 */ 2148, 2148, 2632, 2148, 816, 2148, 2148, 2148, 2148, 2666,
/* 3080 */ 2148, 2148, 2705, 2148, 2148, 2148, 422, 2668, 820, 2670,
/* 3090 */ 2671, 815, 2148, 846, 2148, 2148, 2148, 2148, 2148, 2148,
/* 3100 */ 2148, 2148, 818, 2148, 2148, 2705, 2148, 2148, 2148, 395,
/* 3110 */ 2668, 820, 2670, 2671, 815, 2148, 846, 2148, 2148, 2148,
/* 3120 */ 2148, 2666, 2148, 2148, 2705, 2148, 2148, 2148, 394, 2668,
/* 3130 */ 820, 2670, 2671, 815, 2148, 846,
};
static const YYCODETYPE yy_lookahead[] = {
2023-11-29 11:07:23 +00:00
/* 0 */ 414, 455, 428, 415, 379, 0, 460, 382, 383, 413,
/* 10 */ 415, 0, 12, 13, 14, 415, 420, 2, 418, 445,
/* 20 */ 20, 455, 22, 8, 9, 429, 452, 12, 13, 14,
/* 30 */ 15, 16, 481, 2, 428, 35, 413, 37, 0, 8,
/* 40 */ 9, 405, 372, 12, 13, 14, 15, 16, 20, 413,
/* 50 */ 444, 445, 384, 385, 508, 385, 42, 421, 507, 436,
/* 60 */ 20, 438, 516, 8, 9, 65, 478, 12, 13, 14,
/* 70 */ 15, 16, 72, 478, 508, 21, 71, 489, 478, 79,
/* 80 */ 534, 535, 516, 413, 489, 539, 540, 20, 413, 489,
/* 90 */ 36, 481, 38, 39, 40, 420, 426, 384, 428, 379,
/* 100 */ 534, 535, 382, 383, 429, 539, 540, 20, 108, 473,
/* 110 */ 474, 111, 74, 75, 76, 77, 78, 507, 80, 81,
/* 120 */ 82, 83, 84, 85, 86, 87, 88, 89, 90, 91,
/* 130 */ 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
2023-11-29 11:07:23 +00:00
/* 140 */ 102, 103, 104, 424, 428, 475, 427, 428, 478, 149,
/* 150 */ 150, 111, 482, 483, 484, 485, 486, 487, 510, 489,
/* 160 */ 512, 445, 4, 14, 494, 449, 496, 112, 452, 20,
/* 170 */ 500, 501, 504, 505, 506, 4, 508, 509, 465, 466,
/* 180 */ 166, 23, 20, 508, 516, 384, 385, 187, 188, 37,
/* 190 */ 520, 516, 401, 508, 384, 385, 196, 197, 528, 497,
/* 200 */ 498, 516, 534, 535, 46, 47, 48, 539, 540, 534,
/* 210 */ 535, 211, 0, 213, 539, 540, 88, 426, 111, 534,
/* 220 */ 535, 20, 8, 9, 539, 540, 12, 13, 14, 15,
/* 230 */ 16, 79, 371, 21, 373, 434, 24, 25, 26, 27,
/* 240 */ 28, 29, 30, 31, 32, 245, 246, 247, 237, 249,
2024-04-08 02:55:47 +00:00
/* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
2023-11-29 11:07:23 +00:00
/* 260 */ 260, 261, 262, 263, 264, 265, 266, 12, 13, 478,
/* 270 */ 479, 480, 18, 111, 20, 20, 384, 22, 413, 508,
/* 280 */ 489, 27, 111, 155, 30, 420, 72, 516, 20, 35,
/* 290 */ 35, 20, 37, 13, 429, 281, 282, 283, 284, 285,
/* 300 */ 286, 287, 288, 289, 20, 51, 535, 53, 180, 181,
/* 310 */ 539, 540, 58, 59, 504, 505, 506, 20, 508, 509,
/* 320 */ 65, 193, 430, 431, 70, 433, 267, 72, 269, 437,
/* 330 */ 14, 20, 292, 119, 79, 21, 20, 385, 24, 25,
/* 340 */ 26, 27, 28, 29, 30, 31, 32, 372, 111, 74,
/* 350 */ 75, 76, 372, 508, 384, 385, 81, 82, 83, 79,
/* 360 */ 385, 516, 87, 108, 110, 413, 111, 92, 93, 94,
/* 370 */ 95, 384, 391, 98, 404, 121, 71, 102, 103, 104,
/* 380 */ 535, 411, 384, 385, 539, 540, 8, 9, 413, 408,
/* 390 */ 12, 13, 14, 15, 16, 111, 111, 416, 20, 292,
/* 400 */ 186, 426, 404, 428, 149, 150, 426, 153, 154, 411,
/* 410 */ 156, 157, 158, 159, 160, 161, 162, 163, 164, 165,
/* 420 */ 149, 150, 166, 169, 170, 171, 172, 173, 174, 175,
/* 430 */ 428, 177, 178, 179, 447, 448, 484, 183, 184, 185,
/* 440 */ 384, 385, 187, 188, 190, 443, 444, 445, 384, 385,
/* 450 */ 475, 196, 197, 478, 292, 187, 188, 482, 483, 484,
/* 460 */ 485, 486, 487, 292, 489, 413, 211, 492, 213, 494,
/* 470 */ 495, 496, 0, 8, 9, 500, 501, 12, 13, 14,
/* 480 */ 15, 16, 372, 412, 270, 271, 272, 273, 274, 275,
/* 490 */ 276, 277, 278, 279, 280, 210, 425, 212, 187, 384,
/* 500 */ 245, 246, 247, 187, 249, 250, 251, 252, 253, 254,
/* 510 */ 255, 256, 257, 258, 259, 260, 261, 262, 263, 264,
/* 520 */ 265, 266, 267, 12, 13, 473, 474, 242, 380, 292,
/* 530 */ 18, 20, 384, 22, 386, 23, 426, 281, 282, 283,
/* 540 */ 284, 285, 286, 287, 288, 289, 35, 372, 37, 14,
/* 550 */ 15, 16, 40, 41, 37, 440, 44, 442, 247, 503,
/* 560 */ 504, 505, 506, 247, 508, 509, 54, 189, 504, 505,
/* 570 */ 506, 492, 508, 509, 495, 108, 65, 292, 66, 67,
/* 580 */ 68, 69, 70, 72, 285, 286, 287, 288, 289, 122,
/* 590 */ 79, 124, 125, 126, 127, 128, 129, 130, 131, 132,
/* 600 */ 133, 426, 135, 136, 137, 138, 139, 140, 141, 393,
/* 610 */ 245, 12, 13, 12, 13, 14, 15, 16, 71, 108,
/* 620 */ 192, 22, 111, 111, 108, 247, 410, 142, 143, 144,
/* 630 */ 145, 146, 147, 148, 35, 419, 37, 0, 166, 167,
/* 640 */ 124, 125, 126, 127, 128, 129, 130, 131, 132, 133,
/* 650 */ 3, 135, 136, 137, 138, 139, 140, 141, 414, 22,
/* 660 */ 149, 150, 108, 151, 65, 20, 422, 20, 203, 304,
/* 670 */ 305, 306, 307, 308, 309, 310, 1, 2, 124, 125,
/* 680 */ 126, 127, 128, 129, 130, 131, 132, 133, 4, 135,
/* 690 */ 136, 137, 138, 139, 140, 141, 8, 9, 187, 188,
/* 700 */ 12, 13, 14, 15, 16, 8, 9, 196, 197, 12,
/* 710 */ 13, 14, 15, 16, 144, 203, 204, 205, 148, 380,
/* 720 */ 208, 33, 211, 384, 213, 386, 298, 299, 300, 301,
/* 730 */ 213, 8, 9, 221, 222, 12, 13, 14, 15, 16,
/* 740 */ 22, 384, 385, 49, 232, 384, 385, 235, 427, 428,
/* 750 */ 238, 239, 240, 241, 242, 37, 245, 246, 247, 112,
/* 760 */ 249, 250, 251, 252, 253, 254, 255, 256, 257, 258,
/* 770 */ 259, 260, 261, 262, 263, 264, 265, 266, 12, 13,
/* 780 */ 14, 372, 23, 384, 319, 413, 20, 112, 22, 0,
/* 790 */ 220, 434, 413, 223, 385, 434, 226, 79, 228, 420,
/* 800 */ 112, 35, 0, 37, 292, 111, 47, 48, 429, 112,
/* 810 */ 211, 372, 213, 24, 25, 26, 27, 28, 29, 30,
/* 820 */ 31, 32, 413, 20, 385, 4, 387, 0, 384, 385,
/* 830 */ 401, 65, 121, 20, 189, 426, 189, 428, 51, 440,
/* 840 */ 19, 442, 243, 244, 245, 79, 474, 60, 404, 394,
/* 850 */ 63, 64, 413, 39, 40, 426, 35, 402, 259, 260,
/* 860 */ 261, 262, 263, 264, 265, 426, 20, 428, 22, 14,
/* 870 */ 384, 385, 51, 33, 108, 20, 20, 111, 22, 58,
/* 880 */ 59, 56, 57, 37, 475, 45, 65, 478, 12, 13,
/* 890 */ 404, 482, 483, 484, 485, 486, 487, 267, 489, 384,
/* 900 */ 385, 55, 0, 494, 455, 496, 455, 478, 479, 500,
/* 910 */ 501, 55, 189, 37, 475, 149, 150, 478, 489, 404,
/* 920 */ 413, 482, 483, 484, 485, 486, 487, 420, 489, 115,
/* 930 */ 116, 110, 118, 494, 113, 496, 429, 528, 400, 500,
/* 940 */ 501, 403, 37, 413, 142, 143, 144, 145, 146, 147,
/* 950 */ 148, 372, 372, 187, 188, 37, 142, 508, 384, 508,
/* 960 */ 146, 33, 196, 197, 385, 516, 387, 516, 438, 142,
/* 970 */ 143, 144, 145, 146, 147, 148, 166, 211, 294, 213,
/* 980 */ 493, 50, 495, 534, 535, 534, 535, 186, 539, 540,
/* 990 */ 539, 540, 413, 8, 9, 372, 20, 12, 13, 14,
/* 1000 */ 15, 16, 189, 389, 390, 426, 426, 428, 385, 143,
/* 1010 */ 387, 245, 246, 247, 20, 249, 250, 251, 252, 253,
/* 1020 */ 254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
/* 1030 */ 264, 265, 266, 12, 13, 20, 413, 405, 409, 465,
/* 1040 */ 466, 20, 187, 22, 493, 413, 495, 384, 385, 426,
/* 1050 */ 247, 428, 481, 421, 475, 3, 35, 478, 37, 369,
/* 1060 */ 247, 482, 483, 484, 485, 486, 487, 404, 489, 393,
/* 1070 */ 168, 270, 372, 494, 172, 496, 384, 385, 507, 500,
/* 1080 */ 501, 280, 180, 384, 385, 385, 65, 387, 65, 213,
/* 1090 */ 224, 225, 282, 283, 284, 419, 404, 79, 475, 470,
/* 1100 */ 79, 478, 247, 404, 33, 482, 483, 484, 485, 486,
/* 1110 */ 487, 413, 489, 413, 384, 385, 45, 494, 213, 496,
/* 1120 */ 189, 384, 385, 500, 501, 372, 426, 429, 428, 108,
/* 1130 */ 199, 213, 111, 110, 404, 142, 113, 121, 385, 146,
/* 1140 */ 387, 404, 455, 149, 150, 455, 389, 390, 243, 244,
/* 1150 */ 460, 405, 384, 385, 384, 385, 384, 385, 70, 413,
/* 1160 */ 34, 243, 244, 398, 399, 189, 413, 421, 384, 385,
/* 1170 */ 149, 150, 404, 402, 404, 475, 404, 423, 478, 426,
/* 1180 */ 426, 428, 482, 483, 484, 485, 486, 487, 404, 489,
/* 1190 */ 196, 197, 143, 144, 494, 508, 496, 148, 508, 405,
/* 1200 */ 500, 501, 372, 516, 22, 182, 516, 413, 187, 188,
/* 1210 */ 398, 399, 413, 423, 191, 421, 426, 196, 197, 37,
/* 1220 */ 421, 534, 535, 247, 534, 535, 539, 540, 475, 539,
/* 1230 */ 540, 478, 211, 0, 213, 482, 483, 484, 485, 486,
/* 1240 */ 487, 413, 489, 372, 384, 385, 318, 494, 20, 496,
/* 1250 */ 372, 372, 423, 500, 501, 426, 426, 429, 406, 375,
/* 1260 */ 376, 409, 247, 385, 404, 387, 245, 246, 247, 372,
/* 1270 */ 249, 250, 251, 252, 253, 254, 255, 256, 257, 258,
/* 1280 */ 259, 260, 261, 262, 263, 264, 265, 266, 12, 13,
/* 1290 */ 108, 413, 384, 385, 206, 22, 20, 426, 22, 384,
/* 1300 */ 385, 182, 413, 13, 426, 426, 428, 74, 75, 76,
/* 1310 */ 37, 35, 404, 37, 81, 82, 83, 372, 429, 404,
/* 1320 */ 87, 233, 234, 426, 14, 92, 93, 94, 95, 22,
/* 1330 */ 20, 98, 384, 385, 215, 102, 103, 104, 384, 385,
/* 1340 */ 372, 65, 372, 372, 37, 372, 33, 372, 384, 385,
/* 1350 */ 384, 385, 404, 475, 372, 79, 478, 121, 404, 372,
/* 1360 */ 482, 483, 484, 485, 486, 487, 314, 489, 404, 79,
/* 1370 */ 404, 426, 494, 372, 496, 12, 13, 455, 500, 501,
/* 1380 */ 372, 108, 391, 372, 108, 22, 79, 111, 33, 372,
/* 1390 */ 0, 0, 114, 385, 426, 117, 426, 426, 35, 426,
/* 1400 */ 37, 426, 0, 114, 37, 13, 117, 416, 426, 0,
/* 1410 */ 0, 114, 176, 426, 117, 108, 114, 33, 65, 117,
/* 1420 */ 13, 413, 227, 35, 229, 149, 150, 426, 65, 37,
/* 1430 */ 508, 22, 22, 42, 426, 33, 428, 426, 516, 51,
/* 1440 */ 72, 51, 79, 426, 37, 33, 79, 0, 60, 61,
/* 1450 */ 62, 63, 414, 65, 149, 150, 534, 535, 1, 2,
/* 1460 */ 37, 539, 540, 187, 188, 33, 113, 112, 33, 22,
/* 1470 */ 33, 108, 196, 197, 414, 247, 33, 414, 33, 33,
/* 1480 */ 414, 33, 33, 475, 33, 33, 478, 211, 33, 213,
/* 1490 */ 482, 483, 484, 485, 486, 487, 112, 489, 110, 33,
/* 1500 */ 414, 113, 494, 461, 496, 373, 33, 33, 500, 501,
/* 1510 */ 12, 13, 12, 13, 12, 13, 439, 33, 211, 33,
/* 1520 */ 213, 245, 246, 247, 112, 249, 250, 251, 252, 253,
/* 1530 */ 254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
/* 1540 */ 264, 265, 266, 372, 112, 12, 13, 112, 37, 112,
/* 1550 */ 12, 13, 245, 246, 510, 112, 385, 112, 112, 33,
/* 1560 */ 112, 112, 33, 112, 112, 12, 13, 112, 12, 13,
/* 1570 */ 182, 12, 13, 33, 211, 543, 213, 532, 112, 191,
/* 1580 */ 12, 13, 194, 195, 413, 112, 112, 33, 200, 201,
/* 1590 */ 79, 372, 12, 13, 12, 13, 112, 426, 112, 428,
/* 1600 */ 37, 111, 511, 525, 385, 388, 13, 219, 245, 246,
/* 1610 */ 120, 13, 0, 245, 413, 401, 401, 439, 383, 439,
/* 1620 */ 372, 531, 259, 260, 261, 262, 263, 264, 265, 316,
/* 1630 */ 37, 531, 413, 385, 531, 37, 213, 454, 112, 531,
/* 1640 */ 388, 112, 79, 439, 385, 426, 475, 428, 425, 478,
/* 1650 */ 462, 439, 112, 482, 483, 484, 485, 486, 487, 439,
/* 1660 */ 489, 413, 515, 515, 52, 494, 112, 496, 502, 536,
/* 1670 */ 518, 500, 501, 403, 426, 51, 428, 295, 456, 477,
/* 1680 */ 42, 476, 226, 20, 393, 467, 372, 393, 472, 209,
/* 1690 */ 458, 467, 20, 384, 475, 20, 385, 478, 45, 385,
/* 1700 */ 435, 482, 483, 484, 485, 486, 487, 385, 489, 435,
/* 1710 */ 186, 432, 384, 494, 385, 496, 384, 435, 432, 500,
/* 1720 */ 501, 397, 109, 475, 432, 432, 478, 413, 372, 107,
/* 1730 */ 482, 483, 484, 485, 486, 487, 396, 489, 384, 106,
/* 1740 */ 426, 385, 428, 384, 496, 395, 384, 20, 500, 501,
/* 1750 */ 384, 377, 372, 384, 50, 377, 381, 381, 393, 20,
/* 1760 */ 20, 428, 467, 393, 393, 385, 20, 386, 20, 413,
/* 1770 */ 393, 386, 457, 448, 20, 440, 393, 377, 384, 393,
/* 1780 */ 393, 384, 426, 426, 428, 413, 393, 426, 393, 475,
/* 1790 */ 375, 375, 478, 413, 372, 377, 482, 483, 484, 485,
/* 1800 */ 486, 487, 413, 489, 230, 426, 426, 385, 428, 413,
/* 1810 */ 496, 413, 413, 471, 500, 501, 413, 413, 413, 413,
/* 1820 */ 111, 413, 391, 20, 413, 217, 466, 469, 464, 428,
/* 1830 */ 216, 475, 391, 303, 478, 413, 463, 384, 482, 483,
/* 1840 */ 484, 485, 486, 487, 524, 489, 426, 302, 426, 202,
/* 1850 */ 428, 524, 496, 311, 524, 475, 500, 501, 478, 313,
/* 1860 */ 372, 527, 482, 483, 484, 485, 486, 487, 488, 489,
/* 1870 */ 490, 491, 526, 385, 450, 456, 450, 372, 312, 291,
/* 1880 */ 467, 296, 290, 456, 320, 544, 317, 538, 315, 537,
/* 1890 */ 385, 385, 20, 121, 293, 386, 111, 475, 391, 391,
/* 1900 */ 478, 413, 426, 426, 482, 483, 484, 485, 486, 487,
/* 1910 */ 450, 489, 450, 426, 426, 481, 428, 426, 413, 426,
/* 1920 */ 194, 446, 391, 426, 194, 391, 441, 409, 391, 499,
/* 1930 */ 426, 426, 440, 428, 385, 111, 426, 523, 513, 522,
/* 1940 */ 426, 426, 521, 514, 22, 426, 426, 519, 426, 426,
/* 1950 */ 517, 529, 530, 426, 426, 372, 384, 378, 426, 38,
/* 1960 */ 374, 426, 426, 475, 417, 426, 478, 426, 385, 426,
/* 1970 */ 482, 483, 484, 485, 486, 487, 426, 489, 426, 377,
/* 1980 */ 475, 426, 1, 478, 426, 391, 426, 482, 483, 484,
/* 1990 */ 485, 486, 487, 426, 489, 372, 413, 426, 407, 451,
/* 2000 */ 19, 496, 407, 459, 407, 370, 501, 392, 385, 426,
/* 2010 */ 0, 428, 451, 0, 0, 45, 35, 0, 236, 468,
/* 2020 */ 236, 37, 37, 37, 37, 0, 37, 37, 236, 541,
/* 2030 */ 542, 37, 51, 0, 372, 236, 413, 0, 37, 0,
/* 2040 */ 37, 60, 61, 62, 63, 0, 65, 385, 22, 426,
/* 2050 */ 0, 428, 37, 231, 0, 0, 219, 219, 475, 220,
/* 2060 */ 213, 478, 211, 0, 0, 482, 483, 484, 485, 486,
/* 2070 */ 487, 0, 489, 207, 206, 413, 453, 0, 0, 372,
/* 2080 */ 154, 49, 0, 49, 0, 37, 0, 51, 426, 37,
/* 2090 */ 428, 110, 385, 0, 113, 49, 0, 0, 475, 0,
/* 2100 */ 0, 478, 45, 0, 0, 482, 483, 484, 485, 486,
/* 2110 */ 487, 49, 489, 530, 372, 453, 0, 0, 0, 0,
/* 2120 */ 413, 172, 37, 0, 0, 172, 0, 385, 147, 0,
/* 2130 */ 0, 0, 0, 426, 0, 428, 49, 475, 0, 0,
/* 2140 */ 478, 0, 0, 0, 482, 483, 484, 485, 486, 487,
/* 2150 */ 0, 489, 0, 0, 0, 413, 0, 0, 0, 0,
/* 2160 */ 0, 0, 372, 0, 0, 45, 0, 0, 426, 0,
/* 2170 */ 428, 0, 191, 0, 0, 385, 195, 22, 0, 0,
/* 2180 */ 153, 200, 475, 154, 0, 478, 0, 152, 0, 482,
/* 2190 */ 483, 484, 485, 486, 487, 50, 489, 22, 22, 50,
/* 2200 */ 219, 0, 65, 413, 0, 65, 0, 37, 372, 65,
/* 2210 */ 0, 65, 0, 0, 37, 0, 426, 475, 428, 51,
/* 2220 */ 478, 385, 42, 51, 482, 483, 484, 485, 486, 487,
/* 2230 */ 37, 489, 42, 0, 37, 0, 51, 42, 0, 37,
/* 2240 */ 533, 45, 42, 49, 33, 14, 372, 49, 49, 413,
/* 2250 */ 0, 43, 0, 0, 0, 0, 42, 0, 42, 385,
/* 2260 */ 202, 0, 426, 0, 428, 475, 49, 0, 478, 49,
/* 2270 */ 0, 0, 482, 483, 484, 485, 486, 487, 73, 489,
/* 2280 */ 37, 491, 42, 51, 542, 37, 42, 413, 0, 453,
/* 2290 */ 51, 372, 0, 37, 0, 37, 51, 51, 0, 0,
/* 2300 */ 426, 42, 428, 0, 385, 37, 42, 0, 0, 0,
/* 2310 */ 119, 475, 22, 0, 478, 37, 37, 37, 482, 483,
/* 2320 */ 484, 485, 486, 487, 372, 489, 117, 453, 37, 0,
/* 2330 */ 37, 0, 413, 37, 37, 0, 53, 385, 37, 37,
/* 2340 */ 22, 37, 22, 33, 33, 426, 22, 428, 22, 475,
/* 2350 */ 0, 37, 478, 37, 22, 372, 482, 483, 484, 485,
/* 2360 */ 486, 487, 37, 489, 0, 413, 0, 0, 385, 22,
/* 2370 */ 37, 0, 0, 37, 20, 37, 37, 37, 426, 0,
/* 2380 */ 428, 112, 0, 111, 122, 111, 49, 22, 123, 37,
/* 2390 */ 0, 0, 189, 0, 475, 22, 413, 478, 3, 218,
/* 2400 */ 111, 482, 483, 484, 485, 486, 487, 33, 489, 426,
/* 2410 */ 189, 428, 189, 194, 189, 189, 281, 111, 297, 372,
/* 2420 */ 198, 214, 198, 37, 112, 37, 111, 475, 50, 112,
/* 2430 */ 478, 109, 385, 50, 482, 483, 484, 485, 486, 487,
/* 2440 */ 372, 489, 112, 33, 33, 33, 112, 49, 107, 49,
/* 2450 */ 37, 33, 33, 385, 111, 111, 111, 111, 475, 297,
/* 2460 */ 413, 478, 111, 372, 79, 482, 483, 484, 485, 486,
/* 2470 */ 487, 112, 489, 426, 112, 428, 385, 3, 33, 297,
/* 2480 */ 112, 413, 112, 37, 37, 372, 37, 37, 37, 37,
/* 2490 */ 49, 33, 112, 112, 426, 0, 428, 49, 385, 42,
/* 2500 */ 111, 33, 268, 109, 413, 0, 109, 22, 372, 2,
/* 2510 */ 111, 245, 49, 112, 112, 111, 111, 426, 111, 428,
/* 2520 */ 111, 385, 475, 22, 49, 478, 413, 112, 111, 482,
/* 2530 */ 483, 484, 485, 486, 487, 111, 489, 112, 111, 426,
/* 2540 */ 112, 428, 112, 475, 0, 111, 478, 111, 248, 413,
/* 2550 */ 482, 483, 484, 485, 486, 487, 42, 489, 195, 0,
/* 2560 */ 42, 49, 426, 120, 428, 112, 475, 192, 192, 478,
/* 2570 */ 111, 111, 111, 482, 483, 484, 485, 486, 487, 114,
/* 2580 */ 489, 111, 111, 111, 111, 121, 37, 111, 475, 111,
/* 2590 */ 372, 478, 112, 112, 37, 482, 483, 484, 485, 486,
/* 2600 */ 487, 111, 489, 385, 112, 37, 112, 111, 37, 112,
/* 2610 */ 37, 475, 112, 372, 478, 37, 112, 37, 482, 483,
/* 2620 */ 484, 485, 486, 487, 111, 489, 385, 134, 33, 37,
/* 2630 */ 122, 413, 372, 123, 111, 111, 134, 134, 22, 73,
/* 2640 */ 134, 72, 37, 37, 426, 385, 428, 37, 37, 37,
/* 2650 */ 37, 37, 37, 79, 413, 37, 37, 372, 37, 105,
/* 2660 */ 79, 105, 33, 37, 22, 37, 79, 426, 37, 428,
/* 2670 */ 385, 37, 37, 413, 37, 37, 37, 372, 37, 22,
/* 2680 */ 37, 37, 37, 0, 37, 0, 426, 51, 428, 37,
/* 2690 */ 385, 42, 42, 475, 0, 37, 478, 0, 413, 51,
/* 2700 */ 482, 483, 484, 485, 486, 487, 51, 489, 42, 37,
/* 2710 */ 51, 426, 42, 428, 0, 37, 475, 37, 413, 478,
/* 2720 */ 0, 22, 33, 482, 483, 484, 485, 486, 487, 22,
/* 2730 */ 489, 426, 21, 428, 22, 475, 20, 22, 478, 21,
/* 2740 */ 545, 372, 482, 483, 484, 485, 486, 487, 545, 489,
/* 2750 */ 545, 545, 545, 545, 385, 545, 545, 545, 545, 545,
/* 2760 */ 475, 545, 545, 478, 545, 545, 545, 482, 483, 484,
/* 2770 */ 485, 486, 487, 545, 489, 545, 545, 545, 545, 545,
/* 2780 */ 475, 545, 413, 478, 545, 545, 545, 482, 483, 484,
/* 2790 */ 485, 486, 487, 545, 489, 426, 545, 428, 545, 545,
/* 2800 */ 545, 545, 545, 545, 545, 372, 545, 545, 545, 545,
/* 2810 */ 545, 545, 545, 545, 545, 545, 545, 545, 385, 545,
/* 2820 */ 545, 545, 545, 545, 545, 545, 372, 545, 545, 545,
/* 2830 */ 545, 545, 545, 545, 545, 545, 545, 545, 545, 385,
/* 2840 */ 545, 545, 545, 545, 475, 545, 413, 478, 545, 372,
/* 2850 */ 545, 482, 483, 484, 485, 486, 487, 545, 489, 426,
/* 2860 */ 545, 428, 385, 545, 545, 545, 545, 413, 545, 545,
/* 2870 */ 545, 372, 545, 545, 545, 545, 545, 545, 545, 545,
/* 2880 */ 426, 545, 428, 545, 385, 545, 545, 545, 545, 545,
/* 2890 */ 413, 545, 545, 545, 372, 545, 545, 545, 545, 545,
/* 2900 */ 545, 545, 545, 426, 545, 428, 545, 385, 475, 545,
/* 2910 */ 545, 478, 413, 545, 545, 482, 483, 484, 485, 486,
/* 2920 */ 487, 545, 489, 545, 545, 426, 545, 428, 545, 475,
/* 2930 */ 545, 545, 478, 545, 545, 413, 482, 483, 484, 485,
/* 2940 */ 486, 487, 545, 489, 545, 545, 545, 545, 426, 545,
/* 2950 */ 428, 545, 475, 545, 545, 478, 545, 545, 545, 482,
/* 2960 */ 483, 484, 485, 486, 487, 545, 489, 545, 545, 545,
/* 2970 */ 545, 545, 545, 545, 475, 545, 372, 478, 545, 545,
/* 2980 */ 545, 482, 483, 484, 485, 486, 487, 545, 489, 385,
/* 2990 */ 545, 545, 545, 545, 545, 545, 545, 475, 545, 372,
/* 3000 */ 478, 545, 545, 545, 482, 483, 484, 485, 486, 487,
/* 3010 */ 545, 489, 385, 545, 545, 545, 545, 413, 372, 545,
/* 3020 */ 545, 545, 545, 545, 545, 545, 545, 545, 545, 545,
/* 3030 */ 426, 385, 428, 545, 545, 545, 545, 545, 545, 545,
/* 3040 */ 413, 545, 545, 545, 545, 545, 545, 545, 545, 545,
/* 3050 */ 545, 545, 545, 426, 545, 428, 545, 545, 545, 413,
/* 3060 */ 545, 545, 545, 545, 545, 545, 545, 545, 545, 545,
/* 3070 */ 545, 545, 426, 545, 428, 545, 545, 545, 545, 475,
/* 3080 */ 545, 545, 478, 545, 545, 545, 482, 483, 484, 485,
/* 3090 */ 486, 487, 545, 489, 545, 545, 545, 545, 545, 545,
/* 3100 */ 545, 545, 475, 545, 545, 478, 545, 545, 545, 482,
/* 3110 */ 483, 484, 485, 486, 487, 545, 489, 545, 545, 545,
/* 3120 */ 545, 475, 545, 545, 478, 545, 545, 545, 482, 483,
/* 3130 */ 484, 485, 486, 487, 545, 489, 369, 369, 369, 369,
/* 3140 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3150 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3160 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3170 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3180 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3190 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3200 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3210 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3220 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3230 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3240 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3250 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3260 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3270 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3280 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3290 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3300 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3310 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3320 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3330 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3340 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3350 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3360 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3370 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3380 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3390 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3400 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3410 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3420 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3430 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3440 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3450 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3460 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3470 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3480 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3490 */ 369, 369, 369, 369, 369, 369, 369, 369, 369, 369,
/* 3500 */ 369, 369, 369, 369, 369,
};
2023-11-29 11:07:23 +00:00
#define YY_SHIFT_COUNT (944)
#define YY_SHIFT_MIN (0)
2023-11-29 11:07:23 +00:00
#define YY_SHIFT_MAX (2720)
static const unsigned short int yy_shift_ofst[] = {
2023-11-29 11:07:23 +00:00
/* 0 */ 512, 0, 255, 0, 511, 511, 511, 511, 511, 511,
/* 10 */ 511, 511, 511, 511, 511, 511, 766, 1021, 1021, 1276,
/* 20 */ 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021,
/* 30 */ 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021,
/* 40 */ 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021,
/* 50 */ 40, 162, 285, 284, 107, 237, 107, 107, 284, 284,
/* 60 */ 107, 1363, 107, 254, 1363, 171, 107, 28, 599, 994,
/* 70 */ 994, 67, 67, 599, 599, 158, 158, 994, 994, 268,
/* 80 */ 271, 149, 149, 803, 67, 67, 67, 67, 67, 67,
/* 90 */ 67, 87, 67, 67, 67, 67, 201, 297, 87, 67,
/* 100 */ 67, 305, 28, 67, 201, 67, 28, 67, 67, 28,
/* 110 */ 67, 28, 67, 67, 28, 67, 28, 28, 28, 67,
/* 120 */ 547, 214, 214, 516, 275, 14, 314, 1307, 1307, 1307,
/* 130 */ 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307, 1307,
/* 140 */ 1307, 1307, 1307, 1307, 1307, 1307, 814, 647, 268, 271,
/* 150 */ 825, 825, 152, 645, 645, 645, 59, 59, 5, 280,
/* 160 */ 152, 305, 28, 711, 28, 630, 28, 28, 1018, 28,
/* 170 */ 1018, 1018, 1016, 1126, 467, 554, 554, 554, 554, 554,
/* 180 */ 554, 1233, 1981, 212, 378, 256, 256, 465, 365, 428,
/* 190 */ 299, 846, 810, 316, 855, 876, 876, 813, 759, 976,
/* 200 */ 718, 718, 718, 931, 311, 718, 856, 1015, 1310, 993,
/* 210 */ 1119, 1015, 1015, 1228, 1290, 1290, 1052, 840, 684, 280,
/* 220 */ 1382, 1624, 1638, 1663, 1456, 305, 1663, 305, 1480, 1672,
/* 230 */ 1675, 1653, 1675, 1653, 1524, 1672, 1675, 1672, 1653, 1524,
/* 240 */ 1524, 1524, 1613, 1622, 1672, 1672, 1633, 1672, 1672, 1672,
/* 250 */ 1727, 1704, 1727, 1704, 1663, 305, 305, 1739, 305, 1740,
/* 260 */ 1746, 305, 1740, 305, 1748, 305, 1754, 305, 305, 1672,
/* 270 */ 305, 1727, 28, 28, 28, 28, 28, 28, 28, 28,
/* 280 */ 28, 28, 28, 1672, 1126, 1126, 1727, 1018, 1018, 1018,
/* 290 */ 1574, 1709, 1663, 547, 1803, 1608, 1614, 1739, 547, 1382,
/* 300 */ 1672, 1018, 1530, 1545, 1530, 1545, 1542, 1647, 1530, 1546,
/* 310 */ 1566, 1585, 1382, 1588, 1592, 1564, 1569, 1573, 1675, 1872,
/* 320 */ 1772, 1601, 1740, 547, 547, 1785, 1545, 1018, 1018, 1018,
/* 330 */ 1018, 1545, 1018, 1726, 547, 1018, 1730, 1754, 547, 1016,
/* 340 */ 547, 1675, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018,
/* 350 */ 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018, 1018,
/* 360 */ 1018, 1018, 1018, 1018, 1824, 1018, 1672, 547, 1922, 1921,
/* 370 */ 1727, 3136, 3136, 3136, 3136, 3136, 3136, 3136, 3136, 3136,
/* 380 */ 38, 1388, 789, 821, 688, 55, 697, 15, 31, 723,
/* 390 */ 802, 827, 985, 985, 985, 985, 985, 985, 985, 985,
/* 400 */ 985, 485, 570, 1023, 128, 54, 601, 601, 1088, 902,
/* 410 */ 787, 905, 918, 472, 1182, 1273, 866, 535, 675, 801,
/* 420 */ 535, 535, 535, 1049, 1049, 1390, 11, 1355, 1391, 1071,
/* 430 */ 1236, 1402, 1278, 1289, 1297, 1302, 1367, 1392, 1407, 637,
/* 440 */ 1409, 1410, 1447, 1195, 1384, 1412, 1353, 1432, 1435, 1437,
/* 450 */ 1443, 1305, 1313, 928, 1445, 1457, 1446, 1368, 1448, 694,
/* 460 */ 1449, 1451, 1452, 1455, 1466, 1473, 1474, 1498, 1500, 1502,
/* 470 */ 1533, 1538, 1553, 1556, 1559, 1568, 1580, 1582, 1484, 1486,
/* 480 */ 1526, 1529, 1540, 1554, 1490, 1511, 517, 1423, 1593, 1598,
/* 490 */ 1563, 1612, 2010, 2013, 2014, 1970, 2017, 1984, 1782, 1985,
/* 500 */ 1986, 1987, 1784, 2025, 1989, 1990, 1792, 1994, 2033, 1799,
/* 510 */ 2037, 2001, 2039, 2003, 2045, 2026, 2050, 2015, 1822, 2054,
/* 520 */ 1837, 2055, 1838, 1839, 1847, 1851, 2063, 2064, 2071, 1866,
/* 530 */ 1868, 2077, 2078, 1926, 2032, 2034, 2082, 2048, 2084, 2086,
/* 540 */ 2052, 2036, 2093, 2046, 2096, 2057, 2097, 2099, 2100, 2062,
/* 550 */ 2103, 2104, 2116, 2117, 2118, 2119, 1949, 2085, 2123, 1953,
/* 560 */ 2124, 2126, 2129, 2130, 2131, 2132, 2134, 2138, 2139, 2141,
/* 570 */ 2142, 2143, 2150, 2152, 2153, 2154, 2156, 2157, 2158, 2159,
/* 580 */ 2087, 2160, 2120, 2161, 2163, 2164, 2166, 2167, 2169, 2171,
/* 590 */ 2173, 2174, 2155, 2178, 2029, 2179, 2027, 2184, 2035, 2186,
/* 600 */ 2188, 2175, 2145, 2176, 2149, 2201, 2137, 2204, 2140, 2170,
/* 610 */ 2206, 2144, 2210, 2146, 2212, 2213, 2177, 2168, 2180, 2215,
/* 620 */ 2193, 2172, 2190, 2233, 2197, 2185, 2195, 2235, 2202, 2238,
/* 630 */ 2196, 2200, 2211, 2194, 2198, 2231, 2199, 2250, 2208, 2214,
/* 640 */ 2252, 2253, 2254, 2255, 2216, 2058, 2257, 2194, 2217, 2261,
/* 650 */ 2194, 2220, 2263, 2267, 2205, 2270, 2271, 2243, 2232, 2240,
/* 660 */ 2288, 2248, 2239, 2244, 2292, 2256, 2245, 2259, 2294, 2258,
/* 670 */ 2246, 2264, 2298, 2299, 2303, 2307, 2308, 2309, 2191, 2209,
/* 680 */ 2268, 2290, 2313, 2278, 2279, 2280, 2291, 2293, 2296, 2297,
/* 690 */ 2301, 2302, 2310, 2311, 2304, 2314, 2318, 2316, 2329, 2320,
/* 700 */ 2331, 2324, 2335, 2326, 2283, 2350, 2332, 2325, 2364, 2366,
/* 710 */ 2367, 2333, 2371, 2336, 2372, 2347, 2354, 2338, 2339, 2340,
/* 720 */ 2269, 2272, 2379, 2203, 2262, 2265, 2274, 2181, 2194, 2337,
/* 730 */ 2382, 2221, 2352, 2365, 2390, 2207, 2373, 2223, 2219, 2391,
/* 740 */ 2393, 2225, 2222, 2226, 2224, 2395, 2374, 2121, 2289, 2312,
/* 750 */ 2306, 2317, 2386, 2388, 2315, 2378, 2322, 2383, 2341, 2330,
/* 760 */ 2410, 2411, 2334, 2343, 2344, 2345, 2359, 2412, 2398, 2400,
/* 770 */ 2346, 2418, 2162, 2385, 2362, 2419, 2351, 2413, 2368, 2370,
/* 780 */ 2474, 2445, 2182, 2446, 2447, 2449, 2450, 2451, 2452, 2380,
/* 790 */ 2381, 2441, 2135, 2458, 2448, 2495, 2505, 2389, 2457, 2468,
/* 800 */ 2394, 2234, 2397, 2507, 2485, 2266, 2401, 2402, 2399, 2404,
/* 810 */ 2405, 2407, 2409, 2415, 2463, 2417, 2424, 2475, 2425, 2501,
/* 820 */ 2300, 2427, 2428, 2430, 2434, 2436, 2375, 2459, 2544, 2514,
/* 830 */ 2363, 2460, 2465, 2461, 2559, 2453, 2470, 2376, 2518, 2471,
/* 840 */ 2443, 2194, 2512, 2472, 2473, 2480, 2476, 2478, 2464, 2481,
/* 850 */ 2549, 2557, 2490, 2492, 2568, 2496, 2494, 2571, 2399, 2497,
/* 860 */ 2573, 2404, 2500, 2578, 2405, 2504, 2580, 2407, 2493, 2502,
/* 870 */ 2503, 2506, 2510, 2508, 2513, 2595, 2523, 2592, 2524, 2595,
/* 880 */ 2595, 2616, 2566, 2569, 2605, 2606, 2610, 2611, 2612, 2613,
/* 890 */ 2614, 2615, 2618, 2619, 2621, 2574, 2554, 2581, 2556, 2629,
/* 900 */ 2626, 2628, 2631, 2642, 2634, 2635, 2637, 2587, 2310, 2638,
/* 910 */ 2311, 2639, 2641, 2643, 2644, 2657, 2645, 2683, 2647, 2636,
/* 920 */ 2649, 2685, 2652, 2648, 2650, 2694, 2658, 2655, 2666, 2697,
/* 930 */ 2672, 2659, 2670, 2714, 2678, 2680, 2720, 2699, 2689, 2707,
/* 940 */ 2711, 2712, 2715, 2718, 2716,
};
2023-11-29 11:07:23 +00:00
#define YY_REDUCE_COUNT (379)
#define YY_REDUCE_MIN (-454)
#define YY_REDUCE_MAX (2646)
static const short yy_reduce_ofst[] = {
2023-11-29 11:07:23 +00:00
/* 0 */ 690, -330, -25, 409, 439, 579, 623, 700, 753, 878,
/* 10 */ 1008, 1171, 1219, 1248, 1314, 1356, 1380, 1422, 1488, 1505,
/* 20 */ 1583, 1623, 1662, 1707, 1742, 1790, 1836, 1874, 1919, 1952,
/* 30 */ 1983, 2047, 2068, 2091, 2113, 2136, 2218, 2241, 2260, 2285,
/* 40 */ 2305, 2369, 2433, 2454, 2477, 2499, 2522, 2604, 2627, 2646,
/* 50 */ -332, -325, -454, 56, -434, 451, 687, 922, -190, 64,
/* 60 */ 449, -209, -315, -108, 429, -229, -155, -364, -400, -284,
/* 70 */ 2, -30, -2, -412, -405, -375, -280, -426, -394, -377,
/* 80 */ -281, 148, 339, -48, 444, 486, 515, 663, -199, 357,
/* 90 */ 692, 115, 699, 730, 737, 361, -287, -13, 399, 768,
/* 100 */ 770, 216, 52, 772, 574, 784, -404, 860, 908, -135,
/* 110 */ 915, 632, 948, 954, 379, 964, 746, 507, 794, 966,
/* 120 */ -19, -298, -298, 244, 455, -352, -139, -20, 110, 175,
/* 130 */ 580, 830, 871, 879, 897, 945, 968, 970, 971, 973,
/* 140 */ 975, 982, 987, 1001, 1011, 1017, 71, -449, 530, 321,
/* 150 */ 614, 757, 765, -449, -390, 571, 487, 551, 991, 538,
/* 160 */ 812, 676, 372, 629, 698, 79, 828, 799, 754, 889,
/* 170 */ 790, 829, 852, 884, -414, 1038, 1060, 1063, 1066, 1086,
/* 180 */ -414, 771, 1042, 1132, 1077, 1044, 1044, 1032, 1045, 1078,
/* 190 */ 1091, 1217, 1044, 1201, 1201, 1214, 1215, 1178, 1235, 1180,
/* 200 */ 1090, 1100, 1103, 1183, 1201, 1108, 1252, 1204, 1259, 1223,
/* 210 */ 1188, 1212, 1220, 1201, 1147, 1148, 1133, 1166, 1152, 1270,
/* 220 */ 1222, 1202, 1205, 1218, 1216, 1291, 1224, 1294, 1232, 1309,
/* 230 */ 1311, 1265, 1322, 1274, 1279, 1328, 1329, 1332, 1282, 1286,
/* 240 */ 1292, 1293, 1324, 1340, 1354, 1359, 1350, 1362, 1366, 1369,
/* 250 */ 1374, 1375, 1378, 1376, 1295, 1365, 1370, 1333, 1371, 1381,
/* 260 */ 1315, 1377, 1385, 1383, 1325, 1386, 1335, 1387, 1393, 1394,
/* 270 */ 1395, 1400, 1372, 1389, 1396, 1398, 1399, 1403, 1404, 1405,
/* 280 */ 1406, 1408, 1411, 1397, 1415, 1416, 1418, 1357, 1361, 1379,
/* 290 */ 1342, 1358, 1413, 1431, 1360, 1364, 1373, 1401, 1441, 1419,
/* 300 */ 1453, 1420, 1320, 1424, 1327, 1426, 1334, 1346, 1330, 1414,
/* 310 */ 1417, 1421, 1427, 1429, 1425, 1341, 1349, 1352, 1506, 1434,
/* 320 */ 1428, 1433, 1509, 1507, 1508, 1430, 1460, 1476, 1477, 1487,
/* 330 */ 1491, 1462, 1493, 1475, 1531, 1497, 1485, 1492, 1534, 1518,
/* 340 */ 1537, 1549, 1504, 1510, 1514, 1515, 1519, 1520, 1522, 1523,
/* 350 */ 1527, 1528, 1532, 1535, 1536, 1539, 1541, 1543, 1550, 1552,
/* 360 */ 1555, 1558, 1560, 1567, 1547, 1571, 1572, 1594, 1586, 1579,
/* 370 */ 1602, 1544, 1551, 1548, 1561, 1591, 1595, 1597, 1615, 1635,
};
static const YYACTIONTYPE yy_default[] = {
2023-11-29 11:07:23 +00:00
/* 0 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 10 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 20 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 30 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 40 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 50 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 60 */ 2511, 2146, 2146, 2463, 2146, 2146, 2146, 2146, 2146, 2146,
/* 70 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2470,
/* 80 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 90 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 100 */ 2146, 2246, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 110 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 120 */ 2244, 2761, 2146, 2146, 2146, 2790, 2146, 2146, 2146, 2146,
/* 130 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 140 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2773, 2146, 2146,
/* 150 */ 2217, 2217, 2146, 2773, 2773, 2773, 2733, 2733, 2244, 2146,
/* 160 */ 2146, 2246, 2146, 2553, 2146, 2146, 2146, 2146, 2146, 2146,
/* 170 */ 2146, 2146, 2381, 2176, 2551, 2146, 2146, 2146, 2146, 2146,
/* 180 */ 2146, 2146, 2537, 2146, 2819, 2765, 2766, 2881, 2146, 2822,
/* 190 */ 2784, 2146, 2779, 2146, 2146, 2146, 2146, 2475, 2146, 2809,
/* 200 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2329,
/* 210 */ 2531, 2146, 2146, 2146, 2146, 2146, 2865, 2763, 2803, 2146,
/* 220 */ 2813, 2146, 2578, 2146, 2567, 2246, 2146, 2246, 2524, 2458,
/* 230 */ 2146, 2468, 2146, 2468, 2465, 2146, 2146, 2146, 2468, 2465,
/* 240 */ 2465, 2465, 2318, 2314, 2146, 2146, 2312, 2146, 2146, 2146,
/* 250 */ 2146, 2201, 2146, 2201, 2146, 2246, 2246, 2146, 2246, 2146,
/* 260 */ 2146, 2246, 2146, 2246, 2146, 2246, 2146, 2246, 2246, 2146,
/* 270 */ 2246, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 280 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 290 */ 2565, 2547, 2146, 2244, 2146, 2535, 2533, 2146, 2244, 2813,
/* 300 */ 2146, 2146, 2835, 2830, 2835, 2830, 2849, 2845, 2835, 2854,
/* 310 */ 2851, 2815, 2813, 2796, 2792, 2884, 2871, 2867, 2146, 2146,
/* 320 */ 2801, 2799, 2146, 2244, 2244, 2146, 2830, 2146, 2146, 2146,
/* 330 */ 2146, 2830, 2146, 2146, 2244, 2146, 2487, 2146, 2244, 2146,
/* 340 */ 2244, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 350 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 360 */ 2146, 2146, 2146, 2146, 2345, 2146, 2146, 2244, 2146, 2185,
/* 370 */ 2146, 2526, 2556, 2507, 2507, 2384, 2384, 2384, 2247, 2151,
/* 380 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 390 */ 2146, 2146, 2848, 2847, 2684, 2146, 2737, 2736, 2735, 2726,
/* 400 */ 2683, 2341, 2146, 2146, 2146, 2146, 2682, 2681, 2146, 2146,
/* 410 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2675, 2146, 2146,
/* 420 */ 2676, 2674, 2673, 2498, 2497, 2146, 2146, 2146, 2146, 2146,
/* 430 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 440 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 450 */ 2146, 2146, 2868, 2872, 2146, 2762, 2146, 2146, 2146, 2654,
/* 460 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2622, 2617, 2608,
/* 470 */ 2599, 2614, 2605, 2593, 2611, 2602, 2590, 2587, 2146, 2146,
/* 480 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 490 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 500 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 510 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 520 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 530 */ 2146, 2146, 2146, 2464, 2146, 2146, 2146, 2146, 2146, 2146,
/* 540 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 550 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 560 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 570 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 580 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 590 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2479, 2146,
/* 600 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 610 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 620 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 630 */ 2146, 2146, 2190, 2661, 2146, 2146, 2146, 2146, 2146, 2146,
/* 640 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2664, 2146, 2146,
/* 650 */ 2665, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 660 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 670 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 680 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 690 */ 2146, 2146, 2290, 2289, 2146, 2146, 2146, 2146, 2146, 2146,
/* 700 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 710 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 720 */ 2666, 2146, 2146, 2146, 2551, 2146, 2146, 2146, 2656, 2146,
/* 730 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 740 */ 2146, 2146, 2146, 2146, 2146, 2864, 2816, 2146, 2146, 2146,
/* 750 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 760 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2654,
/* 770 */ 2146, 2846, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2862,
/* 780 */ 2146, 2866, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2772,
/* 790 */ 2768, 2146, 2146, 2764, 2146, 2146, 2146, 2146, 2146, 2723,
/* 800 */ 2146, 2146, 2146, 2757, 2146, 2146, 2146, 2146, 2380, 2379,
/* 810 */ 2378, 2377, 2146, 2146, 2146, 2146, 2146, 2146, 2666, 2146,
/* 820 */ 2669, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 830 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 840 */ 2146, 2653, 2146, 2708, 2707, 2146, 2146, 2146, 2146, 2146,
/* 850 */ 2146, 2146, 2374, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 860 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2358, 2356,
/* 870 */ 2355, 2354, 2146, 2351, 2146, 2391, 2146, 2146, 2146, 2387,
/* 880 */ 2386, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 890 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2265,
/* 900 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2257, 2146,
/* 910 */ 2256, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 920 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146,
/* 930 */ 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2146, 2175, 2146,
/* 940 */ 2146, 2146, 2146, 2146, 2146,
};
/********** 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[] = {
2022-04-22 10:23:37 +00:00
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 */
2023-08-24 07:54:10 +00:00
0, /* NK_COMMA => nothing */
0, /* HOST => nothing */
2022-04-22 10:23:37 +00:00
0, /* USER => nothing */
2022-06-22 08:35:14 +00:00
0, /* ENABLE => nothing */
0, /* NK_INTEGER => nothing */
0, /* SYSINFO => nothing */
2023-08-24 07:54:10 +00:00
0, /* ADD => nothing */
2022-04-22 10:23:37 +00:00
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 */
2023-03-28 10:43:58 +00:00
0, /* WITH => nothing */
2022-04-22 10:23:37 +00:00
0, /* DNODE => nothing */
0, /* PORT => nothing */
0, /* DNODES => nothing */
2023-05-09 11:19:14 +00:00
0, /* RESTORE => nothing */
0, /* NK_IPTOKEN => nothing */
0, /* FORCE => nothing */
2023-05-16 01:50:10 +00:00
0, /* UNSAFE => nothing */
2023-12-18 08:34:31 +00:00
0, /* CLUSTER => nothing */
2022-04-22 10:23:37 +00:00
0, /* LOCAL => nothing */
0, /* QNODE => nothing */
0, /* BNODE => nothing */
0, /* SNODE => nothing */
0, /* MNODE => nothing */
2023-05-09 11:19:14 +00:00
0, /* VNODE => nothing */
2022-04-22 10:23:37 +00:00
0, /* DATABASE => nothing */
0, /* USE => nothing */
2022-07-06 05:53:47 +00:00
0, /* FLUSH => nothing */
2022-07-11 02:53:06 +00:00
0, /* TRIM => nothing */
2024-04-08 02:55:47 +00:00
0, /* S3MIGRATE => nothing */
2022-12-27 03:11:02 +00:00
0, /* COMPACT => nothing */
2022-04-22 10:23:37 +00:00
0, /* IF => nothing */
0, /* NOT => nothing */
0, /* EXISTS => nothing */
2022-04-27 10:18:37 +00:00
0, /* BUFFER => nothing */
0, /* CACHEMODEL => nothing */
0, /* CACHESIZE => nothing */
2022-04-22 10:23:37 +00:00
0, /* COMP => nothing */
2022-06-15 05:49:29 +00:00
0, /* DURATION => nothing */
2022-04-22 10:23:37 +00:00
0, /* NK_VARIABLE => nothing */
0, /* MAXROWS => nothing */
0, /* MINROWS => nothing */
0, /* KEEP => nothing */
2022-04-27 10:18:37 +00:00
0, /* PAGES => nothing */
0, /* PAGESIZE => nothing */
2022-09-13 06:19:50 +00:00
0, /* TSDB_PAGESIZE => nothing */
2022-04-22 10:23:37 +00:00
0, /* PRECISION => nothing */
0, /* REPLICA => nothing */
0, /* VGROUPS => nothing */
0, /* SINGLE_STABLE => nothing */
0, /* RETENTIONS => nothing */
2022-05-25 13:20:11 +00:00
0, /* SCHEMALESS => nothing */
2022-07-27 03:55:19 +00:00
0, /* WAL_LEVEL => nothing */
0, /* WAL_FSYNC_PERIOD => nothing */
2022-07-25 13:09:06 +00:00
0, /* WAL_RETENTION_PERIOD => nothing */
0, /* WAL_RETENTION_SIZE => nothing */
0, /* WAL_ROLL_PERIOD => nothing */
0, /* WAL_SEGMENT_SIZE => nothing */
2022-09-13 06:19:50 +00:00
0, /* STT_TRIGGER => nothing */
0, /* TABLE_PREFIX => nothing */
0, /* TABLE_SUFFIX => nothing */
2024-04-08 02:55:47 +00:00
0, /* S3_CHUNKSIZE => nothing */
0, /* S3_KEEPLOCAL => nothing */
0, /* S3_COMPACT => nothing */
0, /* KEEP_TIME_OFFSET => nothing */
2022-04-22 10:23:37 +00:00
0, /* NK_COLON => nothing */
0, /* BWLIMIT => nothing */
0, /* START => nothing */
0, /* TIMESTAMP => nothing */
2023-11-29 11:07:23 +00:00
321, /* END => ABORT */
2022-04-22 10:23:37 +00:00
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 */
2024-01-25 03:20:04 +00:00
0, /* PRIMARY => nothing */
2023-11-29 11:07:23 +00:00
321, /* KEY => ABORT */
2022-04-22 10:23:37 +00:00
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 */
Feature/3.0 geometry (#21037) * Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far. * add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling * change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh * Add a function MakePoint() and introduce a lib geometry * implement sql functions GeomFromText() and AsText() * Use GEOS *_r funcions instead for thread safety * Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT. Add geosWrapper to wrap the basic GEOS functions for TDEngine. * refactor AsText and MakePoint functions to be like GeomFromText * Show WKT when print geometry data in screen Dump hex data when dump geometry data in a file * define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues. * set number of decimals of WKT to 6 * Implement SQL function Intersects() * refactor geometry sql functions * Add geosErrMsgeHandler() to get the GEOS error detail * use threadlocal to instantiate SGeosContext call destroyGeosContext() only if the thread exists * remove SGeosContext *context param for all geometry functions since we use thread local one, so that all caller do not need to know the context. * Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance. * rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn * Add prefix "ST_" for all geometry functions * move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util, so that all unit test tools can compile * Add unit test for geometry lib, only test MakePoint so far * refactor and enhance existing cases in geomFuncTest * implement NULL type and NULL value test for geomFuncTest * add test on geomFromText() * add unit test on AsText() in geomFuncTest * combine some makePointFunction test items * add intersectsFunctionTwoColumns test refactor on callGeomFromTextWrapper functions * enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content * add more cases into intersectsFunction test * Add basic test on geometry in system test * Add ST_GeomFromText and ST_AsText function test in system test on geometry * add ST_Intersects function test in system test on geometry * support to check expectedErrno in system test on geometry * adjust geomTest unit test and geometry system test * add geometry data type and functions in doc english version * implement touchesFunction() in geometry lib refactor geometry relation functions model * separate gemFuncTest into several src files * add unit test on touchesFunction * support sql function ST_Touches() add system test on ST_Touches * add docs for ST_Touches() * Add ST_Contains() * Add ST_Covers() * Add ST_Equals() * add swapAllowed param for geomRelationFunction() read geom2 earlier intead of at doGeosRelation() * Add ST_ContainsProperly() * build on windows * Merge from 3.0 to 3.0_geometry * change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility * change '\\NULL' to 'NULL' back in shellDumpFieldToFile() * add /usr/local/include into include directory * add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 07:36:46 +00:00
0, /* GEOMETRY => nothing */
2022-04-22 10:23:37 +00:00
0, /* DECIMAL => nothing */
0, /* COMMENT => nothing */
2022-06-17 09:27:42 +00:00
0, /* MAX_DELAY => nothing */
0, /* WATERMARK => nothing */
2022-04-27 10:18:37 +00:00
0, /* ROLLUP => nothing */
0, /* TTL => nothing */
0, /* SMA => nothing */
2022-12-06 08:07:11 +00:00
0, /* DELETE_MARK => nothing */
2022-06-17 09:27:42 +00:00
0, /* FIRST => nothing */
0, /* LAST => nothing */
2022-04-22 10:23:37 +00:00
0, /* SHOW => nothing */
0, /* PRIVILEGES => nothing */
2022-04-22 10:23:37 +00:00
0, /* DATABASES => nothing */
0, /* TABLES => nothing */
0, /* STABLES => nothing */
0, /* MNODES => nothing */
0, /* QNODES => nothing */
0, /* ARBGROUPS => nothing */
2022-04-22 10:23:37 +00:00
0, /* FUNCTIONS => nothing */
0, /* INDEXES => nothing */
0, /* ACCOUNTS => nothing */
0, /* APPS => nothing */
0, /* CONNECTIONS => nothing */
2022-08-11 07:37:26 +00:00
0, /* LICENCES => nothing */
2022-04-22 10:23:37 +00:00
0, /* GRANTS => nothing */
2024-01-18 07:23:38 +00:00
0, /* FULL => nothing */
2024-01-31 05:44:00 +00:00
0, /* LOGS => nothing */
2024-01-18 09:49:11 +00:00
0, /* MACHINES => nothing */
2022-04-22 10:23:37 +00:00
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 */
2023-10-09 09:19:36 +00:00
0, /* VIEWS => nothing */
2023-11-29 11:07:23 +00:00
321, /* VIEW => ABORT */
2023-11-16 03:41:02 +00:00
0, /* COMPACTS => nothing */
0, /* NORMAL => nothing */
0, /* CHILD => nothing */
2022-04-22 10:23:37 +00:00
0, /* LIKE => nothing */
2022-11-10 09:22:13 +00:00
0, /* TBNAME => nothing */
0, /* QTAGS => nothing */
0, /* AS => nothing */
0, /* SYSTEM => nothing */
2023-11-20 08:36:13 +00:00
0, /* TSMA => nothing */
2022-04-22 10:23:37 +00:00
0, /* INTERVAL => nothing */
2023-11-20 08:36:13 +00:00
0, /* TSMAS => nothing */
0, /* FUNCTION => nothing */
0, /* INDEX => nothing */
0, /* COUNT => nothing */
0, /* LAST_ROW => nothing */
2022-06-22 08:35:14 +00:00
0, /* META => nothing */
2023-06-30 08:57:29 +00:00
0, /* ONLY => nothing */
2023-06-30 11:36:39 +00:00
0, /* TOPIC => nothing */
0, /* CONSUMER => nothing */
0, /* GROUP => nothing */
2022-04-22 10:23:37 +00:00
0, /* DESC => nothing */
0, /* DESCRIBE => nothing */
0, /* RESET => nothing */
0, /* QUERY => nothing */
2022-04-27 10:18:37 +00:00
0, /* CACHE => nothing */
2022-04-22 10:23:37 +00:00
0, /* EXPLAIN => nothing */
0, /* ANALYZE => nothing */
0, /* VERBOSE => nothing */
0, /* NK_BOOL => nothing */
0, /* RATIO => nothing */
2022-06-17 09:27:42 +00:00
0, /* NK_FLOAT => nothing */
2022-04-22 10:23:37 +00:00
0, /* OUTPUTTYPE => nothing */
0, /* AGGREGATE => nothing */
0, /* BUFSIZE => nothing */
0, /* LANGUAGE => nothing */
0, /* REPLACE => nothing */
2022-04-22 10:23:37 +00:00
0, /* STREAM => nothing */
0, /* INTO => nothing */
0, /* PAUSE => nothing */
0, /* RESUME => nothing */
2022-04-22 10:23:37 +00:00
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 */
2022-04-22 10:23:37 +00:00
0, /* KILL => nothing */
0, /* CONNECTION => nothing */
0, /* TRANSACTION => nothing */
2022-06-07 03:53:32 +00:00
0, /* BALANCE => nothing */
2022-04-22 10:23:37 +00:00
0, /* VGROUP => nothing */
0, /* LEADER => nothing */
2022-06-07 03:53:32 +00:00
0, /* MERGE => nothing */
2022-04-22 10:23:37 +00:00
0, /* REDISTRIBUTE => nothing */
0, /* SPLIT => nothing */
2022-06-04 11:54:55 +00:00
0, /* DELETE => nothing */
2022-07-05 13:12:10 +00:00
0, /* INSERT => nothing */
2024-03-13 07:12:21 +00:00
0, /* NK_BIN => nothing */
0, /* NK_HEX => nothing */
2022-04-22 10:23:37 +00:00
0, /* NULL => nothing */
0, /* NK_QUESTION => nothing */
0, /* NK_ALIAS => nothing */
2022-04-22 10:23:37 +00:00
0, /* NK_ARROW => nothing */
0, /* ROWTS => nothing */
0, /* QSTART => nothing */
0, /* QEND => nothing */
0, /* QDURATION => nothing */
0, /* WSTART => nothing */
0, /* WEND => nothing */
2022-04-22 10:23:37 +00:00
0, /* WDURATION => nothing */
0, /* IROWTS => nothing */
0, /* ISFILLED => nothing */
2022-04-22 10:23:37 +00:00
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 */
2022-09-22 11:20:21 +00:00
0, /* CASE => nothing */
0, /* WHEN => nothing */
0, /* THEN => nothing */
0, /* ELSE => nothing */
2022-04-22 10:23:37 +00:00
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 */
2022-07-27 03:55:19 +00:00
0, /* IN => nothing */
2022-04-22 10:23:37 +00:00
0, /* JOIN => nothing */
0, /* INNER => nothing */
2023-11-27 12:01:00 +00:00
0, /* LEFT => nothing */
0, /* RIGHT => nothing */
0, /* OUTER => nothing */
2023-11-29 11:07:23 +00:00
321, /* SEMI => ABORT */
2023-11-27 12:01:00 +00:00
0, /* ANTI => nothing */
0, /* ASOF => nothing */
0, /* WINDOW => nothing */
0, /* WINDOW_OFFSET => nothing */
0, /* JLIMIT => nothing */
2022-04-22 10:23:37 +00:00
0, /* SELECT => nothing */
2023-08-16 06:28:39 +00:00
0, /* NK_HINT => nothing */
2022-04-22 10:23:37 +00:00
0, /* DISTINCT => nothing */
0, /* WHERE => nothing */
0, /* PARTITION => nothing */
0, /* BY => nothing */
0, /* SESSION => nothing */
0, /* STATE_WINDOW => nothing */
2022-12-08 01:36:37 +00:00
0, /* EVENT_WINDOW => nothing */
2024-01-17 06:22:19 +00:00
0, /* COUNT_WINDOW => nothing */
2022-04-22 10:23:37 +00:00
0, /* SLIDING => nothing */
0, /* FILL => nothing */
0, /* VALUE => nothing */
2023-02-03 07:37:04 +00:00
0, /* VALUE_F => nothing */
2022-04-22 10:23:37 +00:00
0, /* NONE => nothing */
0, /* PREV => nothing */
2023-02-03 07:37:04 +00:00
0, /* NULL_F => nothing */
2022-04-22 10:23:37 +00:00
0, /* LINEAR => nothing */
0, /* NEXT => nothing */
0, /* HAVING => nothing */
2022-06-19 11:39:12 +00:00
0, /* RANGE => nothing */
0, /* EVERY => nothing */
2022-04-22 10:23:37 +00:00
0, /* ORDER => nothing */
0, /* SLIMIT => nothing */
0, /* SOFFSET => nothing */
0, /* LIMIT => nothing */
0, /* OFFSET => nothing */
0, /* ASC => nothing */
0, /* NULLS => nothing */
2022-08-11 12:26:40 +00:00
0, /* ABORT => nothing */
2023-11-29 11:07:23 +00:00
321, /* AFTER => ABORT */
321, /* ATTACH => ABORT */
321, /* BEFORE => ABORT */
321, /* BEGIN => ABORT */
321, /* BITAND => ABORT */
321, /* BITNOT => ABORT */
321, /* BITOR => ABORT */
321, /* BLOCKS => ABORT */
321, /* CHANGE => ABORT */
321, /* COMMA => ABORT */
321, /* CONCAT => ABORT */
321, /* CONFLICT => ABORT */
321, /* COPY => ABORT */
321, /* DEFERRED => ABORT */
321, /* DELIMITERS => ABORT */
321, /* DETACH => ABORT */
321, /* DIVIDE => ABORT */
321, /* DOT => ABORT */
321, /* EACH => ABORT */
321, /* FAIL => ABORT */
321, /* FILE => ABORT */
321, /* FOR => ABORT */
321, /* GLOB => ABORT */
321, /* ID => ABORT */
321, /* IMMEDIATE => ABORT */
321, /* IMPORT => ABORT */
321, /* INITIALLY => ABORT */
321, /* INSTEAD => ABORT */
321, /* ISNULL => ABORT */
321, /* MODULES => ABORT */
321, /* NK_BITNOT => ABORT */
321, /* NK_SEMI => ABORT */
321, /* NOTNULL => ABORT */
321, /* OF => ABORT */
321, /* PLUS => ABORT */
321, /* PRIVILEGE => ABORT */
321, /* RAISE => ABORT */
321, /* RESTRICT => ABORT */
321, /* ROW => ABORT */
321, /* STAR => ABORT */
321, /* STATEMENT => ABORT */
321, /* STRICT => ABORT */
321, /* STRING => ABORT */
321, /* TIMES => ABORT */
321, /* VALUES => ABORT */
321, /* VARIABLE => ABORT */
321, /* WAL => ABORT */
};
#endif /* YYFALLBACK */
/* The following structure represents a single element of the
** parser's stack. Information stored includes:
**
** + The state number for the parser at this level of the stack.
**
** + The value of the token stored at this level of the stack.
** (In other words, the "major" token.)
**
** + The semantic value stored at this level of the stack. This is
** the information used by the action routines in the grammar.
** It is sometimes called the "minor" token.
**
** After the "shift" half of a SHIFTREDUCE action, the stateno field
** actually contains the reduce action for the second half of the
** SHIFTREDUCE.
*/
struct yyStackEntry {
YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */
YYCODETYPE major; /* The major token value. This is the code
** number for the token at this stack level */
YYMINORTYPE minor; /* The user-supplied minor token value. This
** is the value of the token */
};
typedef struct yyStackEntry yyStackEntry;
/* The state of the parser is completely contained in an instance of
** the following structure */
struct yyParser {
yyStackEntry *yytos; /* Pointer to top element of the stack */
#ifdef YYTRACKMAXSTACKDEPTH
int yyhwm; /* High-water mark of the stack */
#endif
#ifndef YYNOERRORRECOVERY
int yyerrcnt; /* Shifts left before out of the error */
#endif
2022-03-10 07:36:06 +00:00
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;
#ifndef NDEBUG
#include <stdio.h>
2023-11-29 11:07:23 +00:00
#include <assert.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.
*/
2022-03-10 07:36:06 +00:00
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",
2023-08-24 07:54:10 +00:00
/* 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",
2023-12-18 08:34:31 +00:00
/* 58 */ "CLUSTER",
/* 59 */ "LOCAL",
/* 60 */ "QNODE",
/* 61 */ "BNODE",
/* 62 */ "SNODE",
/* 63 */ "MNODE",
/* 64 */ "VNODE",
/* 65 */ "DATABASE",
/* 66 */ "USE",
/* 67 */ "FLUSH",
/* 68 */ "TRIM",
2024-04-08 02:55:47 +00:00
/* 69 */ "S3MIGRATE",
/* 70 */ "COMPACT",
/* 71 */ "IF",
/* 72 */ "NOT",
/* 73 */ "EXISTS",
/* 74 */ "BUFFER",
/* 75 */ "CACHEMODEL",
/* 76 */ "CACHESIZE",
/* 77 */ "COMP",
/* 78 */ "DURATION",
/* 79 */ "NK_VARIABLE",
/* 80 */ "MAXROWS",
/* 81 */ "MINROWS",
/* 82 */ "KEEP",
/* 83 */ "PAGES",
/* 84 */ "PAGESIZE",
/* 85 */ "TSDB_PAGESIZE",
/* 86 */ "PRECISION",
/* 87 */ "REPLICA",
/* 88 */ "VGROUPS",
/* 89 */ "SINGLE_STABLE",
/* 90 */ "RETENTIONS",
/* 91 */ "SCHEMALESS",
/* 92 */ "WAL_LEVEL",
/* 93 */ "WAL_FSYNC_PERIOD",
/* 94 */ "WAL_RETENTION_PERIOD",
/* 95 */ "WAL_RETENTION_SIZE",
/* 96 */ "WAL_ROLL_PERIOD",
/* 97 */ "WAL_SEGMENT_SIZE",
/* 98 */ "STT_TRIGGER",
/* 99 */ "TABLE_PREFIX",
/* 100 */ "TABLE_SUFFIX",
/* 101 */ "S3_CHUNKSIZE",
/* 102 */ "S3_KEEPLOCAL",
/* 103 */ "S3_COMPACT",
/* 104 */ "KEEP_TIME_OFFSET",
/* 105 */ "NK_COLON",
/* 106 */ "BWLIMIT",
/* 107 */ "START",
/* 108 */ "TIMESTAMP",
/* 109 */ "END",
/* 110 */ "TABLE",
/* 111 */ "NK_LP",
/* 112 */ "NK_RP",
/* 113 */ "STABLE",
/* 114 */ "COLUMN",
/* 115 */ "MODIFY",
/* 116 */ "RENAME",
/* 117 */ "TAG",
/* 118 */ "SET",
/* 119 */ "NK_EQ",
/* 120 */ "USING",
/* 121 */ "TAGS",
/* 122 */ "PRIMARY",
/* 123 */ "KEY",
/* 124 */ "BOOL",
/* 125 */ "TINYINT",
/* 126 */ "SMALLINT",
/* 127 */ "INT",
/* 128 */ "INTEGER",
/* 129 */ "BIGINT",
/* 130 */ "FLOAT",
/* 131 */ "DOUBLE",
/* 132 */ "BINARY",
/* 133 */ "NCHAR",
/* 134 */ "UNSIGNED",
/* 135 */ "JSON",
/* 136 */ "VARCHAR",
/* 137 */ "MEDIUMBLOB",
/* 138 */ "BLOB",
/* 139 */ "VARBINARY",
/* 140 */ "GEOMETRY",
/* 141 */ "DECIMAL",
/* 142 */ "COMMENT",
/* 143 */ "MAX_DELAY",
/* 144 */ "WATERMARK",
/* 145 */ "ROLLUP",
/* 146 */ "TTL",
/* 147 */ "SMA",
/* 148 */ "DELETE_MARK",
/* 149 */ "FIRST",
/* 150 */ "LAST",
/* 151 */ "SHOW",
/* 152 */ "PRIVILEGES",
/* 153 */ "DATABASES",
/* 154 */ "TABLES",
/* 155 */ "STABLES",
/* 156 */ "MNODES",
/* 157 */ "QNODES",
/* 158 */ "ARBGROUPS",
/* 159 */ "FUNCTIONS",
/* 160 */ "INDEXES",
/* 161 */ "ACCOUNTS",
/* 162 */ "APPS",
/* 163 */ "CONNECTIONS",
/* 164 */ "LICENCES",
/* 165 */ "GRANTS",
/* 166 */ "FULL",
/* 167 */ "LOGS",
/* 168 */ "MACHINES",
/* 169 */ "QUERIES",
/* 170 */ "SCORES",
/* 171 */ "TOPICS",
/* 172 */ "VARIABLES",
/* 173 */ "BNODES",
/* 174 */ "SNODES",
/* 175 */ "TRANSACTIONS",
/* 176 */ "DISTRIBUTED",
/* 177 */ "CONSUMERS",
/* 178 */ "SUBSCRIPTIONS",
/* 179 */ "VNODES",
/* 180 */ "ALIVE",
/* 181 */ "VIEWS",
/* 182 */ "VIEW",
/* 183 */ "COMPACTS",
/* 184 */ "NORMAL",
/* 185 */ "CHILD",
/* 186 */ "LIKE",
/* 187 */ "TBNAME",
/* 188 */ "QTAGS",
/* 189 */ "AS",
/* 190 */ "SYSTEM",
2023-11-29 11:07:23 +00:00
/* 191 */ "TSMA",
/* 192 */ "INTERVAL",
/* 193 */ "TSMAS",
/* 194 */ "FUNCTION",
/* 195 */ "INDEX",
/* 196 */ "COUNT",
/* 197 */ "LAST_ROW",
/* 198 */ "META",
/* 199 */ "ONLY",
/* 200 */ "TOPIC",
/* 201 */ "CONSUMER",
/* 202 */ "GROUP",
/* 203 */ "DESC",
/* 204 */ "DESCRIBE",
/* 205 */ "RESET",
/* 206 */ "QUERY",
/* 207 */ "CACHE",
/* 208 */ "EXPLAIN",
/* 209 */ "ANALYZE",
/* 210 */ "VERBOSE",
/* 211 */ "NK_BOOL",
/* 212 */ "RATIO",
/* 213 */ "NK_FLOAT",
/* 214 */ "OUTPUTTYPE",
/* 215 */ "AGGREGATE",
/* 216 */ "BUFSIZE",
/* 217 */ "LANGUAGE",
/* 218 */ "REPLACE",
/* 219 */ "STREAM",
/* 220 */ "INTO",
/* 221 */ "PAUSE",
/* 222 */ "RESUME",
/* 223 */ "TRIGGER",
/* 224 */ "AT_ONCE",
/* 225 */ "WINDOW_CLOSE",
/* 226 */ "IGNORE",
/* 227 */ "EXPIRED",
/* 228 */ "FILL_HISTORY",
/* 229 */ "UPDATE",
/* 230 */ "SUBTABLE",
/* 231 */ "UNTREATED",
/* 232 */ "KILL",
/* 233 */ "CONNECTION",
/* 234 */ "TRANSACTION",
/* 235 */ "BALANCE",
/* 236 */ "VGROUP",
/* 237 */ "LEADER",
/* 238 */ "MERGE",
/* 239 */ "REDISTRIBUTE",
/* 240 */ "SPLIT",
/* 241 */ "DELETE",
/* 242 */ "INSERT",
/* 243 */ "NK_BIN",
/* 244 */ "NK_HEX",
/* 245 */ "NULL",
/* 246 */ "NK_QUESTION",
/* 247 */ "NK_ALIAS",
/* 248 */ "NK_ARROW",
/* 249 */ "ROWTS",
/* 250 */ "QSTART",
/* 251 */ "QEND",
/* 252 */ "QDURATION",
/* 253 */ "WSTART",
/* 254 */ "WEND",
/* 255 */ "WDURATION",
/* 256 */ "IROWTS",
/* 257 */ "ISFILLED",
/* 258 */ "CAST",
/* 259 */ "NOW",
/* 260 */ "TODAY",
/* 261 */ "TIMEZONE",
/* 262 */ "CLIENT_VERSION",
/* 263 */ "SERVER_VERSION",
/* 264 */ "SERVER_STATUS",
/* 265 */ "CURRENT_USER",
/* 266 */ "CASE",
/* 267 */ "WHEN",
/* 268 */ "THEN",
/* 269 */ "ELSE",
/* 270 */ "BETWEEN",
/* 271 */ "IS",
/* 272 */ "NK_LT",
/* 273 */ "NK_GT",
/* 274 */ "NK_LE",
/* 275 */ "NK_GE",
/* 276 */ "NK_NE",
/* 277 */ "MATCH",
/* 278 */ "NMATCH",
/* 279 */ "CONTAINS",
/* 280 */ "IN",
/* 281 */ "JOIN",
/* 282 */ "INNER",
/* 283 */ "LEFT",
/* 284 */ "RIGHT",
/* 285 */ "OUTER",
/* 286 */ "SEMI",
/* 287 */ "ANTI",
/* 288 */ "ASOF",
/* 289 */ "WINDOW",
/* 290 */ "WINDOW_OFFSET",
/* 291 */ "JLIMIT",
/* 292 */ "SELECT",
/* 293 */ "NK_HINT",
/* 294 */ "DISTINCT",
/* 295 */ "WHERE",
/* 296 */ "PARTITION",
/* 297 */ "BY",
/* 298 */ "SESSION",
/* 299 */ "STATE_WINDOW",
/* 300 */ "EVENT_WINDOW",
/* 301 */ "COUNT_WINDOW",
/* 302 */ "SLIDING",
/* 303 */ "FILL",
/* 304 */ "VALUE",
/* 305 */ "VALUE_F",
/* 306 */ "NONE",
/* 307 */ "PREV",
/* 308 */ "NULL_F",
/* 309 */ "LINEAR",
/* 310 */ "NEXT",
/* 311 */ "HAVING",
/* 312 */ "RANGE",
/* 313 */ "EVERY",
/* 314 */ "ORDER",
/* 315 */ "SLIMIT",
/* 316 */ "SOFFSET",
/* 317 */ "LIMIT",
/* 318 */ "OFFSET",
/* 319 */ "ASC",
/* 320 */ "NULLS",
/* 321 */ "ABORT",
/* 322 */ "AFTER",
/* 323 */ "ATTACH",
/* 324 */ "BEFORE",
/* 325 */ "BEGIN",
/* 326 */ "BITAND",
/* 327 */ "BITNOT",
/* 328 */ "BITOR",
/* 329 */ "BLOCKS",
/* 330 */ "CHANGE",
/* 331 */ "COMMA",
/* 332 */ "CONCAT",
/* 333 */ "CONFLICT",
/* 334 */ "COPY",
/* 335 */ "DEFERRED",
/* 336 */ "DELIMITERS",
/* 337 */ "DETACH",
/* 338 */ "DIVIDE",
/* 339 */ "DOT",
/* 340 */ "EACH",
/* 341 */ "FAIL",
/* 342 */ "FILE",
/* 343 */ "FOR",
/* 344 */ "GLOB",
/* 345 */ "ID",
/* 346 */ "IMMEDIATE",
/* 347 */ "IMPORT",
/* 348 */ "INITIALLY",
/* 349 */ "INSTEAD",
/* 350 */ "ISNULL",
/* 351 */ "MODULES",
/* 352 */ "NK_BITNOT",
/* 353 */ "NK_SEMI",
/* 354 */ "NOTNULL",
/* 355 */ "OF",
/* 356 */ "PLUS",
/* 357 */ "PRIVILEGE",
/* 358 */ "RAISE",
/* 359 */ "RESTRICT",
/* 360 */ "ROW",
/* 361 */ "STAR",
/* 362 */ "STATEMENT",
/* 363 */ "STRICT",
/* 364 */ "STRING",
/* 365 */ "TIMES",
/* 366 */ "VALUES",
/* 367 */ "VARIABLE",
/* 368 */ "WAL",
/* 369 */ "cmd",
/* 370 */ "account_options",
/* 371 */ "alter_account_options",
/* 372 */ "literal",
/* 373 */ "alter_account_option",
/* 374 */ "ip_range_list",
/* 375 */ "white_list",
/* 376 */ "white_list_opt",
/* 377 */ "user_name",
/* 378 */ "sysinfo_opt",
/* 379 */ "privileges",
/* 380 */ "priv_level",
/* 381 */ "with_opt",
/* 382 */ "priv_type_list",
/* 383 */ "priv_type",
/* 384 */ "db_name",
/* 385 */ "table_name",
/* 386 */ "topic_name",
/* 387 */ "search_condition",
/* 388 */ "dnode_endpoint",
/* 389 */ "force_opt",
/* 390 */ "unsafe_opt",
/* 391 */ "not_exists_opt",
/* 392 */ "db_options",
/* 393 */ "exists_opt",
/* 394 */ "alter_db_options",
/* 395 */ "speed_opt",
/* 396 */ "start_opt",
/* 397 */ "end_opt",
/* 398 */ "integer_list",
/* 399 */ "variable_list",
/* 400 */ "retention_list",
/* 401 */ "signed",
/* 402 */ "alter_db_option",
/* 403 */ "retention",
/* 404 */ "full_table_name",
/* 405 */ "column_def_list",
/* 406 */ "tags_def_opt",
/* 407 */ "table_options",
/* 408 */ "multi_create_clause",
/* 409 */ "tags_def",
/* 410 */ "multi_drop_clause",
/* 411 */ "alter_table_clause",
/* 412 */ "alter_table_options",
/* 413 */ "column_name",
/* 414 */ "type_name",
/* 415 */ "tags_literal",
/* 416 */ "create_subtable_clause",
/* 417 */ "specific_cols_opt",
/* 418 */ "tags_literal_list",
/* 419 */ "drop_table_clause",
/* 420 */ "col_name_list",
/* 421 */ "column_def",
/* 422 */ "type_name_default_len",
/* 423 */ "duration_list",
/* 424 */ "rollup_func_list",
/* 425 */ "alter_table_option",
/* 426 */ "duration_literal",
/* 427 */ "rollup_func_name",
/* 428 */ "function_name",
/* 429 */ "col_name",
/* 430 */ "db_kind_opt",
/* 431 */ "table_kind_db_name_cond_opt",
/* 432 */ "like_pattern_opt",
/* 433 */ "db_name_cond_opt",
/* 434 */ "table_name_cond",
/* 435 */ "from_db_opt",
/* 436 */ "tag_list_opt",
/* 437 */ "table_kind",
/* 438 */ "tag_item",
/* 439 */ "column_alias",
/* 440 */ "tsma_name",
/* 441 */ "tsma_opt",
/* 442 */ "full_tsma_name",
/* 443 */ "tsma_func_list",
/* 444 */ "tsma_func_name",
/* 445 */ "sma_func_name",
2023-11-29 11:07:23 +00:00
/* 446 */ "index_options",
/* 447 */ "full_index_name",
/* 448 */ "index_name",
/* 449 */ "func_list",
/* 450 */ "sliding_opt",
/* 451 */ "sma_stream_opt",
/* 452 */ "func",
/* 453 */ "expression_list",
/* 454 */ "with_meta",
/* 455 */ "query_or_subquery",
/* 456 */ "where_clause_opt",
/* 457 */ "cgroup_name",
/* 458 */ "analyze_opt",
/* 459 */ "explain_options",
/* 460 */ "insert_query",
/* 461 */ "or_replace_opt",
/* 462 */ "agg_func_opt",
/* 463 */ "bufsize_opt",
/* 464 */ "language_opt",
/* 465 */ "full_view_name",
/* 466 */ "view_name",
/* 467 */ "stream_name",
/* 468 */ "stream_options",
/* 469 */ "col_list_opt",
/* 470 */ "tag_def_or_ref_opt",
/* 471 */ "subtable_opt",
/* 472 */ "ignore_opt",
/* 473 */ "column_stream_def_list",
/* 474 */ "column_stream_def",
/* 475 */ "expression",
/* 476 */ "on_vgroup_id",
/* 477 */ "dnode_list",
/* 478 */ "literal_func",
/* 479 */ "signed_literal",
/* 480 */ "literal_list",
/* 481 */ "table_alias",
/* 482 */ "expr_or_subquery",
/* 483 */ "pseudo_column",
/* 484 */ "column_reference",
/* 485 */ "function_expression",
/* 486 */ "case_when_expression",
/* 487 */ "star_func",
/* 488 */ "star_func_para_list",
/* 489 */ "noarg_func",
/* 490 */ "other_para_list",
/* 491 */ "star_func_para",
/* 492 */ "when_then_list",
/* 493 */ "case_when_else_opt",
/* 494 */ "common_expression",
/* 495 */ "when_then_expr",
/* 496 */ "predicate",
/* 497 */ "compare_op",
/* 498 */ "in_op",
/* 499 */ "in_predicate_value",
/* 500 */ "boolean_value_expression",
/* 501 */ "boolean_primary",
/* 502 */ "from_clause_opt",
/* 503 */ "table_reference_list",
/* 504 */ "table_reference",
/* 505 */ "table_primary",
/* 506 */ "joined_table",
/* 507 */ "alias_opt",
/* 508 */ "subquery",
/* 509 */ "parenthesized_joined_table",
/* 510 */ "join_type",
/* 511 */ "join_subtype",
/* 512 */ "join_on_clause_opt",
/* 513 */ "window_offset_clause_opt",
/* 514 */ "jlimit_clause_opt",
/* 515 */ "window_offset_literal",
/* 516 */ "query_specification",
/* 517 */ "hint_list",
/* 518 */ "set_quantifier_opt",
/* 519 */ "tag_mode_opt",
/* 520 */ "select_list",
/* 521 */ "partition_by_clause_opt",
/* 522 */ "range_opt",
/* 523 */ "every_opt",
/* 524 */ "fill_opt",
/* 525 */ "twindow_clause_opt",
/* 526 */ "group_by_clause_opt",
/* 527 */ "having_clause_opt",
/* 528 */ "select_item",
/* 529 */ "partition_list",
/* 530 */ "partition_item",
/* 531 */ "interval_sliding_duration_literal",
/* 532 */ "fill_mode",
/* 533 */ "group_by_list",
/* 534 */ "query_expression",
/* 535 */ "query_simple",
/* 536 */ "order_by_clause_opt",
/* 537 */ "slimit_clause_opt",
/* 538 */ "limit_clause_opt",
/* 539 */ "union_query_expression",
/* 540 */ "query_simple_or_subquery",
/* 541 */ "sort_specification_list",
/* 542 */ "sort_specification",
/* 543 */ "ordering_specification_opt",
/* 544 */ "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",
2023-08-24 07:54:10 +00:00
/* 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",
2023-12-18 08:34:31 +00:00
/* 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",
2024-04-08 02:55:47 +00:00
/* 92 */ "cmd ::= S3MIGRATE DATABASE db_name",
/* 93 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
/* 94 */ "not_exists_opt ::= IF NOT EXISTS",
/* 95 */ "not_exists_opt ::=",
/* 96 */ "exists_opt ::= IF EXISTS",
/* 97 */ "exists_opt ::=",
/* 98 */ "db_options ::=",
/* 99 */ "db_options ::= db_options BUFFER NK_INTEGER",
/* 100 */ "db_options ::= db_options CACHEMODEL NK_STRING",
/* 101 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
/* 102 */ "db_options ::= db_options COMP NK_INTEGER",
/* 103 */ "db_options ::= db_options DURATION NK_INTEGER",
/* 104 */ "db_options ::= db_options DURATION NK_VARIABLE",
/* 105 */ "db_options ::= db_options MAXROWS NK_INTEGER",
/* 106 */ "db_options ::= db_options MINROWS NK_INTEGER",
/* 107 */ "db_options ::= db_options KEEP integer_list",
/* 108 */ "db_options ::= db_options KEEP variable_list",
/* 109 */ "db_options ::= db_options PAGES NK_INTEGER",
/* 110 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
/* 111 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
/* 112 */ "db_options ::= db_options PRECISION NK_STRING",
/* 113 */ "db_options ::= db_options REPLICA NK_INTEGER",
/* 114 */ "db_options ::= db_options VGROUPS NK_INTEGER",
/* 115 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
/* 116 */ "db_options ::= db_options RETENTIONS retention_list",
/* 117 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
/* 118 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
/* 119 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
/* 120 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
/* 121 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 122 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
/* 123 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 124 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
/* 125 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
/* 126 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
/* 127 */ "db_options ::= db_options TABLE_PREFIX signed",
/* 128 */ "db_options ::= db_options TABLE_SUFFIX signed",
/* 129 */ "db_options ::= db_options S3_CHUNKSIZE NK_INTEGER",
/* 130 */ "db_options ::= db_options S3_KEEPLOCAL NK_INTEGER",
/* 131 */ "db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE",
/* 132 */ "db_options ::= db_options S3_COMPACT NK_INTEGER",
/* 133 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
/* 134 */ "alter_db_options ::= alter_db_option",
/* 135 */ "alter_db_options ::= alter_db_options alter_db_option",
/* 136 */ "alter_db_option ::= BUFFER NK_INTEGER",
/* 137 */ "alter_db_option ::= CACHEMODEL NK_STRING",
/* 138 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
/* 139 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
/* 140 */ "alter_db_option ::= KEEP integer_list",
/* 141 */ "alter_db_option ::= KEEP variable_list",
/* 142 */ "alter_db_option ::= PAGES NK_INTEGER",
/* 143 */ "alter_db_option ::= REPLICA NK_INTEGER",
/* 144 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
/* 145 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
/* 146 */ "alter_db_option ::= MINROWS NK_INTEGER",
/* 147 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
/* 148 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
/* 149 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
/* 150 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
/* 151 */ "alter_db_option ::= S3_KEEPLOCAL NK_INTEGER",
/* 152 */ "alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE",
/* 153 */ "alter_db_option ::= S3_COMPACT NK_INTEGER",
/* 154 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
/* 155 */ "integer_list ::= NK_INTEGER",
/* 156 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
/* 157 */ "variable_list ::= NK_VARIABLE",
/* 158 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
/* 159 */ "retention_list ::= retention",
/* 160 */ "retention_list ::= retention_list NK_COMMA retention",
/* 161 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
/* 162 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
/* 163 */ "speed_opt ::=",
/* 164 */ "speed_opt ::= BWLIMIT NK_INTEGER",
/* 165 */ "start_opt ::=",
/* 166 */ "start_opt ::= START WITH NK_INTEGER",
/* 167 */ "start_opt ::= START WITH NK_STRING",
/* 168 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
/* 169 */ "end_opt ::=",
/* 170 */ "end_opt ::= END WITH NK_INTEGER",
/* 171 */ "end_opt ::= END WITH NK_STRING",
/* 172 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
/* 173 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
/* 174 */ "cmd ::= CREATE TABLE multi_create_clause",
/* 175 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
/* 176 */ "cmd ::= DROP TABLE multi_drop_clause",
/* 177 */ "cmd ::= DROP STABLE exists_opt full_table_name",
/* 178 */ "cmd ::= ALTER TABLE alter_table_clause",
/* 179 */ "cmd ::= ALTER STABLE alter_table_clause",
/* 180 */ "alter_table_clause ::= full_table_name alter_table_options",
/* 181 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
/* 182 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
/* 183 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
/* 184 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
/* 185 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
/* 186 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
/* 187 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
/* 188 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
/* 189 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal",
/* 190 */ "multi_create_clause ::= create_subtable_clause",
/* 191 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
/* 192 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options",
/* 193 */ "multi_drop_clause ::= drop_table_clause",
/* 194 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
/* 195 */ "drop_table_clause ::= exists_opt full_table_name",
/* 196 */ "specific_cols_opt ::=",
/* 197 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
/* 198 */ "full_table_name ::= table_name",
/* 199 */ "full_table_name ::= db_name NK_DOT table_name",
/* 200 */ "column_def_list ::= column_def",
/* 201 */ "column_def_list ::= column_def_list NK_COMMA column_def",
/* 202 */ "column_def ::= column_name type_name",
/* 203 */ "column_def ::= column_name type_name PRIMARY KEY",
/* 204 */ "type_name ::= BOOL",
/* 205 */ "type_name ::= TINYINT",
/* 206 */ "type_name ::= SMALLINT",
/* 207 */ "type_name ::= INT",
/* 208 */ "type_name ::= INTEGER",
/* 209 */ "type_name ::= BIGINT",
/* 210 */ "type_name ::= FLOAT",
/* 211 */ "type_name ::= DOUBLE",
/* 212 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
/* 213 */ "type_name ::= TIMESTAMP",
/* 214 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
/* 215 */ "type_name ::= TINYINT UNSIGNED",
/* 216 */ "type_name ::= SMALLINT UNSIGNED",
/* 217 */ "type_name ::= INT UNSIGNED",
/* 218 */ "type_name ::= BIGINT UNSIGNED",
/* 219 */ "type_name ::= JSON",
/* 220 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
/* 221 */ "type_name ::= MEDIUMBLOB",
/* 222 */ "type_name ::= BLOB",
/* 223 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
/* 224 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
/* 225 */ "type_name ::= DECIMAL",
/* 226 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
/* 227 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 228 */ "type_name_default_len ::= BINARY",
/* 229 */ "type_name_default_len ::= NCHAR",
/* 230 */ "type_name_default_len ::= VARCHAR",
/* 231 */ "type_name_default_len ::= VARBINARY",
/* 232 */ "tags_def_opt ::=",
/* 233 */ "tags_def_opt ::= tags_def",
/* 234 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
/* 235 */ "table_options ::=",
/* 236 */ "table_options ::= table_options COMMENT NK_STRING",
/* 237 */ "table_options ::= table_options MAX_DELAY duration_list",
/* 238 */ "table_options ::= table_options WATERMARK duration_list",
/* 239 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
/* 240 */ "table_options ::= table_options TTL NK_INTEGER",
/* 241 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
/* 242 */ "table_options ::= table_options DELETE_MARK duration_list",
/* 243 */ "alter_table_options ::= alter_table_option",
/* 244 */ "alter_table_options ::= alter_table_options alter_table_option",
/* 245 */ "alter_table_option ::= COMMENT NK_STRING",
/* 246 */ "alter_table_option ::= TTL NK_INTEGER",
/* 247 */ "duration_list ::= duration_literal",
/* 248 */ "duration_list ::= duration_list NK_COMMA duration_literal",
/* 249 */ "rollup_func_list ::= rollup_func_name",
/* 250 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
/* 251 */ "rollup_func_name ::= function_name",
/* 252 */ "rollup_func_name ::= FIRST",
/* 253 */ "rollup_func_name ::= LAST",
/* 254 */ "col_name_list ::= col_name",
/* 255 */ "col_name_list ::= col_name_list NK_COMMA col_name",
/* 256 */ "col_name ::= column_name",
/* 257 */ "cmd ::= SHOW DNODES",
/* 258 */ "cmd ::= SHOW USERS",
/* 259 */ "cmd ::= SHOW USER PRIVILEGES",
/* 260 */ "cmd ::= SHOW db_kind_opt DATABASES",
/* 261 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
/* 262 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
/* 263 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
/* 264 */ "cmd ::= SHOW MNODES",
/* 265 */ "cmd ::= SHOW QNODES",
/* 266 */ "cmd ::= SHOW ARBGROUPS",
/* 267 */ "cmd ::= SHOW FUNCTIONS",
/* 268 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
/* 269 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
/* 270 */ "cmd ::= SHOW STREAMS",
/* 271 */ "cmd ::= SHOW ACCOUNTS",
/* 272 */ "cmd ::= SHOW APPS",
/* 273 */ "cmd ::= SHOW CONNECTIONS",
/* 274 */ "cmd ::= SHOW LICENCES",
/* 275 */ "cmd ::= SHOW GRANTS",
/* 276 */ "cmd ::= SHOW GRANTS FULL",
/* 277 */ "cmd ::= SHOW GRANTS LOGS",
/* 278 */ "cmd ::= SHOW CLUSTER MACHINES",
/* 279 */ "cmd ::= SHOW CREATE DATABASE db_name",
/* 280 */ "cmd ::= SHOW CREATE TABLE full_table_name",
/* 281 */ "cmd ::= SHOW CREATE STABLE full_table_name",
/* 282 */ "cmd ::= SHOW QUERIES",
/* 283 */ "cmd ::= SHOW SCORES",
/* 284 */ "cmd ::= SHOW TOPICS",
/* 285 */ "cmd ::= SHOW VARIABLES",
/* 286 */ "cmd ::= SHOW CLUSTER VARIABLES",
/* 287 */ "cmd ::= SHOW LOCAL VARIABLES",
/* 288 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
/* 289 */ "cmd ::= SHOW BNODES",
/* 290 */ "cmd ::= SHOW SNODES",
/* 291 */ "cmd ::= SHOW CLUSTER",
/* 292 */ "cmd ::= SHOW TRANSACTIONS",
/* 293 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
/* 294 */ "cmd ::= SHOW CONSUMERS",
/* 295 */ "cmd ::= SHOW SUBSCRIPTIONS",
/* 296 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
/* 297 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
/* 298 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
/* 299 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
/* 300 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
/* 301 */ "cmd ::= SHOW VNODES",
/* 302 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
/* 303 */ "cmd ::= SHOW CLUSTER ALIVE",
/* 304 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt",
/* 305 */ "cmd ::= SHOW CREATE VIEW full_table_name",
/* 306 */ "cmd ::= SHOW COMPACTS",
/* 307 */ "cmd ::= SHOW COMPACT NK_INTEGER",
/* 308 */ "table_kind_db_name_cond_opt ::=",
/* 309 */ "table_kind_db_name_cond_opt ::= table_kind",
/* 310 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
/* 311 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
/* 312 */ "table_kind ::= NORMAL",
/* 313 */ "table_kind ::= CHILD",
/* 314 */ "db_name_cond_opt ::=",
/* 315 */ "db_name_cond_opt ::= db_name NK_DOT",
/* 316 */ "like_pattern_opt ::=",
/* 317 */ "like_pattern_opt ::= LIKE NK_STRING",
/* 318 */ "table_name_cond ::= table_name",
/* 319 */ "from_db_opt ::=",
/* 320 */ "from_db_opt ::= FROM db_name",
/* 321 */ "tag_list_opt ::=",
/* 322 */ "tag_list_opt ::= tag_item",
/* 323 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
/* 324 */ "tag_item ::= TBNAME",
/* 325 */ "tag_item ::= QTAGS",
/* 326 */ "tag_item ::= column_name",
/* 327 */ "tag_item ::= column_name column_alias",
/* 328 */ "tag_item ::= column_name AS column_alias",
/* 329 */ "db_kind_opt ::=",
/* 330 */ "db_kind_opt ::= USER",
/* 331 */ "db_kind_opt ::= SYSTEM",
2023-11-29 11:07:23 +00:00
/* 332 */ "cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_opt INTERVAL NK_LP duration_literal NK_RP",
/* 333 */ "cmd ::= DROP TSMA exists_opt full_tsma_name",
/* 334 */ "cmd ::= SHOW CREATE TSMA full_tsma_name",
/* 335 */ "cmd ::= SHOW db_name_cond_opt TSMAS",
/* 336 */ "full_tsma_name ::= tsma_name",
/* 337 */ "full_tsma_name ::= db_name NK_DOT tsma_name",
/* 338 */ "tsma_opt ::=",
/* 339 */ "tsma_opt ::= FUNCTION NK_LP tsma_func_list NK_RP COLUMN NK_LP col_name_list NK_RP",
/* 340 */ "tsma_func_list ::= tsma_func_name",
/* 341 */ "tsma_func_list ::= tsma_func_list NK_COMMA tsma_func_name",
/* 342 */ "tsma_func_name ::= sma_func_name",
/* 343 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
/* 344 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
/* 345 */ "cmd ::= DROP INDEX exists_opt full_index_name",
/* 346 */ "full_index_name ::= index_name",
/* 347 */ "full_index_name ::= db_name NK_DOT index_name",
/* 348 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
/* 349 */ "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",
/* 350 */ "func_list ::= func",
/* 351 */ "func_list ::= func_list NK_COMMA func",
/* 352 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
/* 353 */ "sma_func_name ::= function_name",
/* 354 */ "sma_func_name ::= COUNT",
/* 355 */ "sma_func_name ::= FIRST",
/* 356 */ "sma_func_name ::= LAST",
/* 357 */ "sma_func_name ::= LAST_ROW",
/* 358 */ "sma_stream_opt ::=",
/* 359 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
/* 360 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
/* 361 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
/* 362 */ "with_meta ::= AS",
/* 363 */ "with_meta ::= WITH META AS",
/* 364 */ "with_meta ::= ONLY META AS",
/* 365 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
/* 366 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
/* 367 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
/* 368 */ "cmd ::= DROP TOPIC exists_opt topic_name",
/* 369 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
/* 370 */ "cmd ::= DESC full_table_name",
/* 371 */ "cmd ::= DESCRIBE full_table_name",
/* 372 */ "cmd ::= RESET QUERY CACHE",
/* 373 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
/* 374 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
/* 375 */ "analyze_opt ::=",
/* 376 */ "analyze_opt ::= ANALYZE",
/* 377 */ "explain_options ::=",
/* 378 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
/* 379 */ "explain_options ::= explain_options RATIO NK_FLOAT",
/* 380 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
/* 381 */ "cmd ::= DROP FUNCTION exists_opt function_name",
/* 382 */ "agg_func_opt ::=",
/* 383 */ "agg_func_opt ::= AGGREGATE",
/* 384 */ "bufsize_opt ::=",
/* 385 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
/* 386 */ "language_opt ::=",
/* 387 */ "language_opt ::= LANGUAGE NK_STRING",
/* 388 */ "or_replace_opt ::=",
/* 389 */ "or_replace_opt ::= OR REPLACE",
/* 390 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
/* 391 */ "cmd ::= DROP VIEW exists_opt full_view_name",
/* 392 */ "full_view_name ::= view_name",
/* 393 */ "full_view_name ::= db_name NK_DOT view_name",
/* 394 */ "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",
/* 395 */ "cmd ::= DROP STREAM exists_opt stream_name",
/* 396 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
/* 397 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
/* 398 */ "col_list_opt ::=",
/* 399 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP",
/* 400 */ "column_stream_def_list ::= column_stream_def",
/* 401 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def",
/* 402 */ "column_stream_def ::= column_name",
/* 403 */ "column_stream_def ::= column_name PRIMARY KEY",
/* 404 */ "tag_def_or_ref_opt ::=",
/* 405 */ "tag_def_or_ref_opt ::= tags_def",
/* 406 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP",
/* 407 */ "stream_options ::=",
/* 408 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
/* 409 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
/* 410 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
/* 411 */ "stream_options ::= stream_options WATERMARK duration_literal",
/* 412 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
/* 413 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
/* 414 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
/* 415 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
/* 416 */ "subtable_opt ::=",
/* 417 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
/* 418 */ "ignore_opt ::=",
/* 419 */ "ignore_opt ::= IGNORE UNTREATED",
/* 420 */ "cmd ::= KILL CONNECTION NK_INTEGER",
/* 421 */ "cmd ::= KILL QUERY NK_STRING",
/* 422 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
/* 423 */ "cmd ::= KILL COMPACT NK_INTEGER",
/* 424 */ "cmd ::= BALANCE VGROUP",
/* 425 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
/* 426 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
/* 427 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
/* 428 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
/* 429 */ "on_vgroup_id ::=",
/* 430 */ "on_vgroup_id ::= ON NK_INTEGER",
/* 431 */ "dnode_list ::= DNODE NK_INTEGER",
/* 432 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
/* 433 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
/* 434 */ "cmd ::= query_or_subquery",
/* 435 */ "cmd ::= insert_query",
/* 436 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
/* 437 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
/* 438 */ "tags_literal ::= NK_INTEGER",
/* 439 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal",
/* 440 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal",
/* 441 */ "tags_literal ::= NK_PLUS NK_INTEGER",
/* 442 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal",
/* 443 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal",
/* 444 */ "tags_literal ::= NK_MINUS NK_INTEGER",
/* 445 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal",
/* 446 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal",
/* 447 */ "tags_literal ::= NK_FLOAT",
/* 448 */ "tags_literal ::= NK_PLUS NK_FLOAT",
/* 449 */ "tags_literal ::= NK_MINUS NK_FLOAT",
/* 450 */ "tags_literal ::= NK_BIN",
/* 451 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal",
/* 452 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal",
/* 453 */ "tags_literal ::= NK_PLUS NK_BIN",
/* 454 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal",
/* 455 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal",
/* 456 */ "tags_literal ::= NK_MINUS NK_BIN",
/* 457 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal",
/* 458 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal",
/* 459 */ "tags_literal ::= NK_HEX",
/* 460 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal",
/* 461 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal",
/* 462 */ "tags_literal ::= NK_PLUS NK_HEX",
/* 463 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal",
/* 464 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal",
/* 465 */ "tags_literal ::= NK_MINUS NK_HEX",
/* 466 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal",
/* 467 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal",
/* 468 */ "tags_literal ::= NK_STRING",
/* 469 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal",
/* 470 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal",
/* 471 */ "tags_literal ::= NK_BOOL",
/* 472 */ "tags_literal ::= NULL",
/* 473 */ "tags_literal ::= literal_func",
/* 474 */ "tags_literal ::= literal_func NK_PLUS duration_literal",
/* 475 */ "tags_literal ::= literal_func NK_MINUS duration_literal",
/* 476 */ "tags_literal_list ::= tags_literal",
/* 477 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal",
/* 478 */ "literal ::= NK_INTEGER",
/* 479 */ "literal ::= NK_FLOAT",
/* 480 */ "literal ::= NK_STRING",
/* 481 */ "literal ::= NK_BOOL",
/* 482 */ "literal ::= TIMESTAMP NK_STRING",
/* 483 */ "literal ::= duration_literal",
/* 484 */ "literal ::= NULL",
/* 485 */ "literal ::= NK_QUESTION",
/* 486 */ "duration_literal ::= NK_VARIABLE",
/* 487 */ "signed ::= NK_INTEGER",
/* 488 */ "signed ::= NK_PLUS NK_INTEGER",
/* 489 */ "signed ::= NK_MINUS NK_INTEGER",
/* 490 */ "signed ::= NK_FLOAT",
/* 491 */ "signed ::= NK_PLUS NK_FLOAT",
/* 492 */ "signed ::= NK_MINUS NK_FLOAT",
/* 493 */ "signed_literal ::= signed",
/* 494 */ "signed_literal ::= NK_STRING",
/* 495 */ "signed_literal ::= NK_BOOL",
/* 496 */ "signed_literal ::= TIMESTAMP NK_STRING",
/* 497 */ "signed_literal ::= duration_literal",
/* 498 */ "signed_literal ::= NULL",
/* 499 */ "signed_literal ::= literal_func",
/* 500 */ "signed_literal ::= NK_QUESTION",
/* 501 */ "literal_list ::= signed_literal",
/* 502 */ "literal_list ::= literal_list NK_COMMA signed_literal",
/* 503 */ "db_name ::= NK_ID",
/* 504 */ "table_name ::= NK_ID",
/* 505 */ "column_name ::= NK_ID",
/* 506 */ "function_name ::= NK_ID",
/* 507 */ "view_name ::= NK_ID",
/* 508 */ "table_alias ::= NK_ID",
/* 509 */ "column_alias ::= NK_ID",
/* 510 */ "column_alias ::= NK_ALIAS",
/* 511 */ "user_name ::= NK_ID",
/* 512 */ "topic_name ::= NK_ID",
/* 513 */ "stream_name ::= NK_ID",
/* 514 */ "cgroup_name ::= NK_ID",
/* 515 */ "index_name ::= NK_ID",
/* 516 */ "tsma_name ::= NK_ID",
/* 517 */ "expr_or_subquery ::= expression",
/* 518 */ "expression ::= literal",
/* 519 */ "expression ::= pseudo_column",
/* 520 */ "expression ::= column_reference",
/* 521 */ "expression ::= function_expression",
/* 522 */ "expression ::= case_when_expression",
/* 523 */ "expression ::= NK_LP expression NK_RP",
/* 524 */ "expression ::= NK_PLUS expr_or_subquery",
/* 525 */ "expression ::= NK_MINUS expr_or_subquery",
/* 526 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
/* 527 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
/* 528 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
/* 529 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
/* 530 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
/* 531 */ "expression ::= column_reference NK_ARROW NK_STRING",
/* 532 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
/* 533 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
/* 534 */ "expression_list ::= expr_or_subquery",
/* 535 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
/* 536 */ "column_reference ::= column_name",
/* 537 */ "column_reference ::= table_name NK_DOT column_name",
/* 538 */ "column_reference ::= NK_ALIAS",
/* 539 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
/* 540 */ "pseudo_column ::= ROWTS",
/* 541 */ "pseudo_column ::= TBNAME",
/* 542 */ "pseudo_column ::= table_name NK_DOT TBNAME",
/* 543 */ "pseudo_column ::= QSTART",
/* 544 */ "pseudo_column ::= QEND",
/* 545 */ "pseudo_column ::= QDURATION",
/* 546 */ "pseudo_column ::= WSTART",
/* 547 */ "pseudo_column ::= WEND",
/* 548 */ "pseudo_column ::= WDURATION",
/* 549 */ "pseudo_column ::= IROWTS",
/* 550 */ "pseudo_column ::= ISFILLED",
/* 551 */ "pseudo_column ::= QTAGS",
/* 552 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
/* 553 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
/* 554 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
/* 555 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP",
/* 556 */ "function_expression ::= literal_func",
/* 557 */ "literal_func ::= noarg_func NK_LP NK_RP",
/* 558 */ "literal_func ::= NOW",
/* 559 */ "literal_func ::= TODAY",
/* 560 */ "noarg_func ::= NOW",
/* 561 */ "noarg_func ::= TODAY",
/* 562 */ "noarg_func ::= TIMEZONE",
/* 563 */ "noarg_func ::= DATABASE",
/* 564 */ "noarg_func ::= CLIENT_VERSION",
/* 565 */ "noarg_func ::= SERVER_VERSION",
/* 566 */ "noarg_func ::= SERVER_STATUS",
/* 567 */ "noarg_func ::= CURRENT_USER",
/* 568 */ "noarg_func ::= USER",
/* 569 */ "star_func ::= COUNT",
/* 570 */ "star_func ::= FIRST",
/* 571 */ "star_func ::= LAST",
/* 572 */ "star_func ::= LAST_ROW",
/* 573 */ "star_func_para_list ::= NK_STAR",
/* 574 */ "star_func_para_list ::= other_para_list",
/* 575 */ "other_para_list ::= star_func_para",
/* 576 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
/* 577 */ "star_func_para ::= expr_or_subquery",
/* 578 */ "star_func_para ::= table_name NK_DOT NK_STAR",
/* 579 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
/* 580 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
/* 581 */ "when_then_list ::= when_then_expr",
/* 582 */ "when_then_list ::= when_then_list when_then_expr",
/* 583 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
/* 584 */ "case_when_else_opt ::=",
/* 585 */ "case_when_else_opt ::= ELSE common_expression",
/* 586 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
/* 587 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
/* 588 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
/* 589 */ "predicate ::= expr_or_subquery IS NULL",
/* 590 */ "predicate ::= expr_or_subquery IS NOT NULL",
/* 591 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
/* 592 */ "compare_op ::= NK_LT",
/* 593 */ "compare_op ::= NK_GT",
/* 594 */ "compare_op ::= NK_LE",
/* 595 */ "compare_op ::= NK_GE",
/* 596 */ "compare_op ::= NK_NE",
/* 597 */ "compare_op ::= NK_EQ",
/* 598 */ "compare_op ::= LIKE",
/* 599 */ "compare_op ::= NOT LIKE",
/* 600 */ "compare_op ::= MATCH",
/* 601 */ "compare_op ::= NMATCH",
/* 602 */ "compare_op ::= CONTAINS",
/* 603 */ "in_op ::= IN",
/* 604 */ "in_op ::= NOT IN",
/* 605 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
/* 606 */ "boolean_value_expression ::= boolean_primary",
/* 607 */ "boolean_value_expression ::= NOT boolean_primary",
/* 608 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
/* 609 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
/* 610 */ "boolean_primary ::= predicate",
/* 611 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
/* 612 */ "common_expression ::= expr_or_subquery",
/* 613 */ "common_expression ::= boolean_value_expression",
/* 614 */ "from_clause_opt ::=",
/* 615 */ "from_clause_opt ::= FROM table_reference_list",
/* 616 */ "table_reference_list ::= table_reference",
/* 617 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
/* 618 */ "table_reference ::= table_primary",
/* 619 */ "table_reference ::= joined_table",
/* 620 */ "table_primary ::= table_name alias_opt",
/* 621 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
/* 622 */ "table_primary ::= subquery alias_opt",
/* 623 */ "table_primary ::= parenthesized_joined_table",
/* 624 */ "alias_opt ::=",
/* 625 */ "alias_opt ::= table_alias",
/* 626 */ "alias_opt ::= AS table_alias",
/* 627 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
/* 628 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
/* 629 */ "joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt",
/* 630 */ "join_type ::=",
/* 631 */ "join_type ::= INNER",
/* 632 */ "join_type ::= LEFT",
/* 633 */ "join_type ::= RIGHT",
/* 634 */ "join_type ::= FULL",
/* 635 */ "join_subtype ::=",
/* 636 */ "join_subtype ::= OUTER",
/* 637 */ "join_subtype ::= SEMI",
/* 638 */ "join_subtype ::= ANTI",
/* 639 */ "join_subtype ::= ASOF",
/* 640 */ "join_subtype ::= WINDOW",
/* 641 */ "join_on_clause_opt ::=",
/* 642 */ "join_on_clause_opt ::= ON search_condition",
/* 643 */ "window_offset_clause_opt ::=",
/* 644 */ "window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP",
/* 645 */ "window_offset_literal ::= NK_VARIABLE",
/* 646 */ "window_offset_literal ::= NK_MINUS NK_VARIABLE",
/* 647 */ "jlimit_clause_opt ::=",
/* 648 */ "jlimit_clause_opt ::= JLIMIT NK_INTEGER",
/* 649 */ "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",
/* 650 */ "hint_list ::=",
/* 651 */ "hint_list ::= NK_HINT",
/* 652 */ "tag_mode_opt ::=",
/* 653 */ "tag_mode_opt ::= TAGS",
/* 654 */ "set_quantifier_opt ::=",
/* 655 */ "set_quantifier_opt ::= DISTINCT",
/* 656 */ "set_quantifier_opt ::= ALL",
/* 657 */ "select_list ::= select_item",
/* 658 */ "select_list ::= select_list NK_COMMA select_item",
/* 659 */ "select_item ::= NK_STAR",
/* 660 */ "select_item ::= common_expression",
/* 661 */ "select_item ::= common_expression column_alias",
/* 662 */ "select_item ::= common_expression AS column_alias",
/* 663 */ "select_item ::= table_name NK_DOT NK_STAR",
/* 664 */ "where_clause_opt ::=",
/* 665 */ "where_clause_opt ::= WHERE search_condition",
/* 666 */ "partition_by_clause_opt ::=",
/* 667 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
/* 668 */ "partition_list ::= partition_item",
/* 669 */ "partition_list ::= partition_list NK_COMMA partition_item",
/* 670 */ "partition_item ::= expr_or_subquery",
/* 671 */ "partition_item ::= expr_or_subquery column_alias",
/* 672 */ "partition_item ::= expr_or_subquery AS column_alias",
/* 673 */ "twindow_clause_opt ::=",
/* 674 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
/* 675 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
/* 676 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 677 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
/* 678 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
/* 679 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP",
/* 680 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
/* 681 */ "sliding_opt ::=",
/* 682 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
/* 683 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
/* 684 */ "interval_sliding_duration_literal ::= NK_STRING",
/* 685 */ "interval_sliding_duration_literal ::= NK_INTEGER",
/* 686 */ "fill_opt ::=",
/* 687 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
/* 688 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
/* 689 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
/* 690 */ "fill_mode ::= NONE",
/* 691 */ "fill_mode ::= PREV",
/* 692 */ "fill_mode ::= NULL",
/* 693 */ "fill_mode ::= NULL_F",
/* 694 */ "fill_mode ::= LINEAR",
/* 695 */ "fill_mode ::= NEXT",
/* 696 */ "group_by_clause_opt ::=",
/* 697 */ "group_by_clause_opt ::= GROUP BY group_by_list",
/* 698 */ "group_by_list ::= expr_or_subquery",
/* 699 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
/* 700 */ "having_clause_opt ::=",
/* 701 */ "having_clause_opt ::= HAVING search_condition",
/* 702 */ "range_opt ::=",
/* 703 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
/* 704 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
/* 705 */ "every_opt ::=",
/* 706 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
/* 707 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
/* 708 */ "query_simple ::= query_specification",
/* 709 */ "query_simple ::= union_query_expression",
/* 710 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
/* 711 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
/* 712 */ "query_simple_or_subquery ::= query_simple",
/* 713 */ "query_simple_or_subquery ::= subquery",
/* 714 */ "query_or_subquery ::= query_expression",
/* 715 */ "query_or_subquery ::= subquery",
/* 716 */ "order_by_clause_opt ::=",
/* 717 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
/* 718 */ "slimit_clause_opt ::=",
/* 719 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
/* 720 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
/* 721 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 722 */ "limit_clause_opt ::=",
/* 723 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
/* 724 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
/* 725 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
/* 726 */ "subquery ::= NK_LP query_expression NK_RP",
/* 727 */ "subquery ::= NK_LP subquery NK_RP",
/* 728 */ "search_condition ::= common_expression",
/* 729 */ "sort_specification_list ::= sort_specification",
/* 730 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
/* 731 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
/* 732 */ "ordering_specification_opt ::=",
/* 733 */ "ordering_specification_opt ::= ASC",
/* 734 */ "ordering_specification_opt ::= DESC",
/* 735 */ "null_ordering_opt ::=",
/* 736 */ "null_ordering_opt ::= NULLS FIRST",
/* 737 */ "null_ordering_opt ::= NULLS LAST",
};
#endif /* NDEBUG */
#if YYSTACKDEPTH<=0
/*
** Try to increase the size of the parser stack. Return the number
** of errors. Return 0 on success.
*/
static int yyGrowStack(yyParser *p){
int newSize;
int idx;
yyStackEntry *pNew;
newSize = p->yystksz*2 + 100;
idx = p->yytos ? (int)(p->yytos - p->yystack) : 0;
if( p->yystack==&p->yystk0 ){
2022-03-28 09:08:48 +00:00
pNew = malloc(newSize*sizeof(pNew[0]));
if( pNew ) pNew[0] = p->yystk0;
}else{
2022-03-28 09:08:48 +00:00
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
2022-03-10 07:36:06 +00:00
** 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.
*/
2022-03-10 07:36:06 +00:00
void ParseInit(void *yypRawParser ParseCTX_PDECL){
yyParser *yypParser = (yyParser*)yypRawParser;
2022-03-10 07:36:06 +00:00
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
}
2022-03-10 07:36:06 +00:00
#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
2022-03-10 07:36:06 +00:00
** to Parse and ParseFree.
*/
2022-03-10 07:36:06 +00:00
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
yyParser *yypParser;
yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
if( yypParser ){
2022-03-10 07:36:06 +00:00
ParseCTX_STORE
ParseInit(yypParser ParseCTX_PARAM);
}
return (void*)yypParser;
}
2022-03-10 07:36:06 +00:00
#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 */
){
2022-03-10 07:36:06 +00:00
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 */
2023-11-29 11:07:23 +00:00
case 369: /* cmd */
case 372: /* literal */
case 381: /* with_opt */
case 387: /* search_condition */
case 392: /* db_options */
case 394: /* alter_db_options */
case 396: /* start_opt */
case 397: /* end_opt */
case 401: /* signed */
case 403: /* retention */
case 404: /* full_table_name */
case 407: /* table_options */
case 411: /* alter_table_clause */
case 412: /* alter_table_options */
case 415: /* tags_literal */
case 416: /* create_subtable_clause */
case 419: /* drop_table_clause */
case 421: /* column_def */
case 426: /* duration_literal */
case 427: /* rollup_func_name */
case 429: /* col_name */
case 432: /* like_pattern_opt */
case 433: /* db_name_cond_opt */
case 434: /* table_name_cond */
case 435: /* from_db_opt */
case 438: /* tag_item */
case 442: /* full_tsma_name */
case 446: /* index_options */
case 447: /* full_index_name */
case 450: /* sliding_opt */
case 451: /* sma_stream_opt */
case 452: /* func */
case 455: /* query_or_subquery */
case 456: /* where_clause_opt */
case 459: /* explain_options */
case 460: /* insert_query */
case 465: /* full_view_name */
case 468: /* stream_options */
case 471: /* subtable_opt */
case 474: /* column_stream_def */
case 475: /* expression */
case 478: /* literal_func */
case 479: /* signed_literal */
case 482: /* expr_or_subquery */
case 483: /* pseudo_column */
case 484: /* column_reference */
case 485: /* function_expression */
case 486: /* case_when_expression */
case 491: /* star_func_para */
case 493: /* case_when_else_opt */
case 494: /* common_expression */
case 495: /* when_then_expr */
case 496: /* predicate */
case 499: /* in_predicate_value */
case 500: /* boolean_value_expression */
case 501: /* boolean_primary */
case 502: /* from_clause_opt */
case 503: /* table_reference_list */
case 504: /* table_reference */
case 505: /* table_primary */
case 506: /* joined_table */
case 508: /* subquery */
case 509: /* parenthesized_joined_table */
case 512: /* join_on_clause_opt */
case 513: /* window_offset_clause_opt */
case 514: /* jlimit_clause_opt */
case 515: /* window_offset_literal */
case 516: /* query_specification */
case 522: /* range_opt */
case 523: /* every_opt */
case 524: /* fill_opt */
case 525: /* twindow_clause_opt */
case 527: /* having_clause_opt */
case 528: /* select_item */
case 530: /* partition_item */
case 531: /* interval_sliding_duration_literal */
case 534: /* query_expression */
case 535: /* query_simple */
case 537: /* slimit_clause_opt */
case 538: /* limit_clause_opt */
case 539: /* union_query_expression */
case 540: /* query_simple_or_subquery */
case 542: /* sort_specification */
2022-06-22 08:35:14 +00:00
{
2023-11-29 11:07:23 +00:00
#line 7 "sql.y"
nodesDestroyNode((yypminor->yy722));
#line 3481 "sql.c"
2022-06-22 08:35:14 +00:00
}
break;
2023-11-29 11:07:23 +00:00
case 370: /* account_options */
case 371: /* alter_account_options */
case 373: /* alter_account_option */
case 395: /* speed_opt */
case 454: /* with_meta */
case 463: /* bufsize_opt */
{
2023-11-29 11:07:23 +00:00
#line 54 "sql.y"
2022-06-22 08:35:14 +00:00
2023-11-29 11:07:23 +00:00
#line 3493 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 374: /* ip_range_list */
case 375: /* white_list */
case 376: /* white_list_opt */
case 398: /* integer_list */
case 399: /* variable_list */
case 400: /* retention_list */
case 405: /* column_def_list */
case 406: /* tags_def_opt */
case 408: /* multi_create_clause */
case 409: /* tags_def */
case 410: /* multi_drop_clause */
case 417: /* specific_cols_opt */
case 418: /* tags_literal_list */
case 420: /* col_name_list */
case 423: /* duration_list */
case 424: /* rollup_func_list */
case 436: /* tag_list_opt */
case 443: /* tsma_func_list */
case 449: /* func_list */
case 453: /* expression_list */
case 469: /* col_list_opt */
case 470: /* tag_def_or_ref_opt */
case 473: /* column_stream_def_list */
case 477: /* dnode_list */
case 480: /* literal_list */
case 488: /* star_func_para_list */
case 490: /* other_para_list */
case 492: /* when_then_list */
case 517: /* hint_list */
case 520: /* select_list */
case 521: /* partition_by_clause_opt */
case 526: /* group_by_clause_opt */
case 529: /* partition_list */
case 533: /* group_by_list */
case 536: /* order_by_clause_opt */
case 541: /* sort_specification_list */
{
2023-11-29 11:07:23 +00:00
#line 85 "sql.y"
nodesDestroyList((yypminor->yy694));
#line 3535 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 377: /* user_name */
case 384: /* db_name */
case 385: /* table_name */
case 386: /* topic_name */
case 388: /* dnode_endpoint */
case 413: /* column_name */
case 428: /* function_name */
case 439: /* column_alias */
case 440: /* tsma_name */
case 445: /* sma_func_name */
2023-11-29 11:07:23 +00:00
case 448: /* index_name */
case 457: /* cgroup_name */
case 464: /* language_opt */
case 466: /* view_name */
case 467: /* stream_name */
case 476: /* on_vgroup_id */
case 481: /* table_alias */
case 487: /* star_func */
case 489: /* noarg_func */
case 507: /* alias_opt */
{
2023-11-29 11:07:23 +00:00
#line 1062 "sql.y"
2022-03-05 23:12:08 +00:00
2023-11-29 11:07:23 +00:00
#line 3561 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 378: /* sysinfo_opt */
2023-03-28 10:43:58 +00:00
{
2023-11-29 11:07:23 +00:00
#line 112 "sql.y"
2023-03-28 10:43:58 +00:00
2023-11-29 11:07:23 +00:00
#line 3568 "sql.c"
2023-03-28 10:43:58 +00:00
}
break;
2023-11-29 11:07:23 +00:00
case 379: /* privileges */
case 382: /* priv_type_list */
case 383: /* priv_type */
{
2023-11-29 11:07:23 +00:00
#line 121 "sql.y"
2023-11-29 11:07:23 +00:00
#line 3577 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 380: /* priv_level */
{
2023-11-29 11:07:23 +00:00
#line 138 "sql.y"
2023-11-29 11:07:23 +00:00
#line 3584 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 389: /* force_opt */
case 390: /* unsafe_opt */
case 391: /* not_exists_opt */
case 393: /* exists_opt */
case 458: /* analyze_opt */
case 461: /* or_replace_opt */
case 462: /* agg_func_opt */
case 472: /* ignore_opt */
case 518: /* set_quantifier_opt */
case 519: /* tag_mode_opt */
{
2023-11-29 11:07:23 +00:00
#line 167 "sql.y"
2023-08-24 07:54:10 +00:00
2023-11-29 11:07:23 +00:00
#line 3600 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 402: /* alter_db_option */
case 425: /* alter_table_option */
{
2023-11-29 11:07:23 +00:00
#line 274 "sql.y"
2022-03-31 11:38:17 +00:00
2023-11-29 11:07:23 +00:00
#line 3608 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 414: /* type_name */
case 422: /* type_name_default_len */
{
2023-11-29 11:07:23 +00:00
#line 401 "sql.y"
2022-03-05 23:12:08 +00:00
2023-11-29 11:07:23 +00:00
#line 3616 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 430: /* db_kind_opt */
case 437: /* table_kind */
{
2023-11-29 11:07:23 +00:00
#line 577 "sql.y"
2022-03-05 23:12:08 +00:00
2023-11-29 11:07:23 +00:00
#line 3624 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 431: /* table_kind_db_name_cond_opt */
{
2023-11-29 11:07:23 +00:00
#line 542 "sql.y"
2022-03-05 23:12:08 +00:00
2023-11-29 11:07:23 +00:00
#line 3631 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 441: /* tsma_opt */
case 444: /* tsma_func_name */
{
2023-11-29 11:07:23 +00:00
#line 594 "sql.y"
nodesDestroyNode((yypminor->yy722));
#line 3639 "sql.c"
}
break;
case 497: /* compare_op */
case 498: /* in_op */
{
#line 1260 "sql.y"
2022-03-05 23:12:08 +00:00
2023-11-29 11:07:23 +00:00
#line 3647 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 510: /* join_type */
{
2023-11-29 11:07:23 +00:00
#line 1341 "sql.y"
2022-03-05 23:12:08 +00:00
2023-11-29 11:07:23 +00:00
#line 3654 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 511: /* join_subtype */
{
2023-11-29 11:07:23 +00:00
#line 1349 "sql.y"
2022-03-05 23:12:08 +00:00
2023-11-29 11:07:23 +00:00
#line 3661 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 532: /* fill_mode */
{
2023-11-29 11:07:23 +00:00
#line 1465 "sql.y"
2022-03-05 23:12:08 +00:00
2023-11-29 11:07:23 +00:00
#line 3668 "sql.c"
}
break;
2023-11-29 11:07:23 +00:00
case 543: /* ordering_specification_opt */
2023-11-27 12:01:00 +00:00
{
2023-11-29 11:07:23 +00:00
#line 1550 "sql.y"
2023-11-27 12:01:00 +00:00
2023-11-29 11:07:23 +00:00
#line 3675 "sql.c"
2023-11-27 12:01:00 +00:00
}
break;
2023-11-29 11:07:23 +00:00
case 544: /* null_ordering_opt */
{
2023-11-29 11:07:23 +00:00
#line 1556 "sql.y"
2022-03-05 23:12:08 +00:00
2023-11-29 11:07:23 +00:00
#line 3682 "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
*/
2022-03-10 07:36:06 +00:00
void ParseFinalize(void *p){
yyParser *pParser = (yyParser*)p;
while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser);
#if YYSTACKDEPTH<=0
2022-03-28 09:08:48 +00:00
if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack);
#endif
}
2022-03-10 07:36:06 +00:00
#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.
*/
2022-03-10 07:36:06 +00:00
void ParseFree(
void *p, /* The parser to be deleted */
void (*freeProc)(void*) /* Function used to reclaim memory */
){
#ifndef YYPARSEFREENEVERNULL
if( p==0 ) return;
#endif
2022-03-10 07:36:06 +00:00
ParseFinalize(p);
(*freeProc)(p);
}
2022-03-10 07:36:06 +00:00
#endif /* Parse_ENGINEALWAYSONSTACK */
/*
** Return the peak depth of the stack for a parser.
*/
#ifdef YYTRACKMAXSTACKDEPTH
2022-03-10 07:36:06 +00:00
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)
2022-03-10 07:36:06 +00:00
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 );
2023-05-09 11:19:14 +00:00
assert( i<=YY_ACTTAB_COUNT );
assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD );
assert( iLookAhead!=YYNOCODE );
assert( iLookAhead < YYNTOKEN );
i += iLookAhead;
2023-05-09 11:19:14 +00:00
assert( i<(int)YY_NLOOKAHEAD );
if( yy_lookahead[i]!=iLookAhead ){
#ifdef YYFALLBACK
YYCODETYPE iFallback; /* Fallback token */
2023-05-09 11:19:14 +00:00
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;
2023-05-09 11:19:14 +00:00
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{
2023-11-29 11:07:23 +00:00
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){
2022-03-10 07:36:06 +00:00
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 ********************************************/
2022-03-10 07:36:06 +00:00
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 */
2022-03-10 07:36:06 +00:00
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");
}
2023-05-09 11:19:14 +00:00
/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side
** of that rule */
static const YYCODETYPE yyRuleInfoLhs[] = {
2023-11-29 11:07:23 +00:00
369, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
369, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
370, /* (2) account_options ::= */
370, /* (3) account_options ::= account_options PPS literal */
370, /* (4) account_options ::= account_options TSERIES literal */
370, /* (5) account_options ::= account_options STORAGE literal */
370, /* (6) account_options ::= account_options STREAMS literal */
370, /* (7) account_options ::= account_options QTIME literal */
370, /* (8) account_options ::= account_options DBS literal */
370, /* (9) account_options ::= account_options USERS literal */
370, /* (10) account_options ::= account_options CONNS literal */
370, /* (11) account_options ::= account_options STATE literal */
371, /* (12) alter_account_options ::= alter_account_option */
371, /* (13) alter_account_options ::= alter_account_options alter_account_option */
373, /* (14) alter_account_option ::= PASS literal */
373, /* (15) alter_account_option ::= PPS literal */
373, /* (16) alter_account_option ::= TSERIES literal */
373, /* (17) alter_account_option ::= STORAGE literal */
373, /* (18) alter_account_option ::= STREAMS literal */
373, /* (19) alter_account_option ::= QTIME literal */
373, /* (20) alter_account_option ::= DBS literal */
373, /* (21) alter_account_option ::= USERS literal */
373, /* (22) alter_account_option ::= CONNS literal */
373, /* (23) alter_account_option ::= STATE literal */
374, /* (24) ip_range_list ::= NK_STRING */
374, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
375, /* (26) white_list ::= HOST ip_range_list */
376, /* (27) white_list_opt ::= */
376, /* (28) white_list_opt ::= white_list */
369, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
369, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
369, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
369, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
369, /* (33) cmd ::= ALTER USER user_name ADD white_list */
369, /* (34) cmd ::= ALTER USER user_name DROP white_list */
369, /* (35) cmd ::= DROP USER user_name */
378, /* (36) sysinfo_opt ::= */
378, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
369, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
369, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
379, /* (40) privileges ::= ALL */
379, /* (41) privileges ::= priv_type_list */
379, /* (42) privileges ::= SUBSCRIBE */
382, /* (43) priv_type_list ::= priv_type */
382, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
383, /* (45) priv_type ::= READ */
383, /* (46) priv_type ::= WRITE */
383, /* (47) priv_type ::= ALTER */
380, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
380, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
380, /* (50) priv_level ::= db_name NK_DOT table_name */
380, /* (51) priv_level ::= topic_name */
381, /* (52) with_opt ::= */
381, /* (53) with_opt ::= WITH search_condition */
369, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
369, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
369, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
369, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
369, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
369, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
369, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
369, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
369, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
369, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
369, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
388, /* (65) dnode_endpoint ::= NK_STRING */
388, /* (66) dnode_endpoint ::= NK_ID */
388, /* (67) dnode_endpoint ::= NK_IPTOKEN */
389, /* (68) force_opt ::= */
389, /* (69) force_opt ::= FORCE */
390, /* (70) unsafe_opt ::= UNSAFE */
369, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
369, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
369, /* (73) cmd ::= ALTER LOCAL NK_STRING */
369, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
369, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
369, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
369, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
369, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
369, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
369, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
369, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
369, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
369, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
369, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
369, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
369, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
369, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
369, /* (88) cmd ::= USE db_name */
369, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
369, /* (90) cmd ::= FLUSH DATABASE db_name */
369, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
369, /* (92) cmd ::= S3MIGRATE DATABASE db_name */
369, /* (93) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
391, /* (94) not_exists_opt ::= IF NOT EXISTS */
391, /* (95) not_exists_opt ::= */
393, /* (96) exists_opt ::= IF EXISTS */
393, /* (97) exists_opt ::= */
392, /* (98) db_options ::= */
392, /* (99) db_options ::= db_options BUFFER NK_INTEGER */
392, /* (100) db_options ::= db_options CACHEMODEL NK_STRING */
392, /* (101) db_options ::= db_options CACHESIZE NK_INTEGER */
392, /* (102) db_options ::= db_options COMP NK_INTEGER */
392, /* (103) db_options ::= db_options DURATION NK_INTEGER */
392, /* (104) db_options ::= db_options DURATION NK_VARIABLE */
392, /* (105) db_options ::= db_options MAXROWS NK_INTEGER */
392, /* (106) db_options ::= db_options MINROWS NK_INTEGER */
392, /* (107) db_options ::= db_options KEEP integer_list */
392, /* (108) db_options ::= db_options KEEP variable_list */
392, /* (109) db_options ::= db_options PAGES NK_INTEGER */
392, /* (110) db_options ::= db_options PAGESIZE NK_INTEGER */
392, /* (111) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
392, /* (112) db_options ::= db_options PRECISION NK_STRING */
392, /* (113) db_options ::= db_options REPLICA NK_INTEGER */
392, /* (114) db_options ::= db_options VGROUPS NK_INTEGER */
392, /* (115) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
392, /* (116) db_options ::= db_options RETENTIONS retention_list */
392, /* (117) db_options ::= db_options SCHEMALESS NK_INTEGER */
392, /* (118) db_options ::= db_options WAL_LEVEL NK_INTEGER */
392, /* (119) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
392, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
392, /* (121) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
392, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
392, /* (123) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
392, /* (124) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
392, /* (125) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
392, /* (126) db_options ::= db_options STT_TRIGGER NK_INTEGER */
392, /* (127) db_options ::= db_options TABLE_PREFIX signed */
392, /* (128) db_options ::= db_options TABLE_SUFFIX signed */
392, /* (129) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */
392, /* (130) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */
392, /* (131) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */
392, /* (132) db_options ::= db_options S3_COMPACT NK_INTEGER */
392, /* (133) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
394, /* (134) alter_db_options ::= alter_db_option */
394, /* (135) alter_db_options ::= alter_db_options alter_db_option */
402, /* (136) alter_db_option ::= BUFFER NK_INTEGER */
402, /* (137) alter_db_option ::= CACHEMODEL NK_STRING */
402, /* (138) alter_db_option ::= CACHESIZE NK_INTEGER */
402, /* (139) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
402, /* (140) alter_db_option ::= KEEP integer_list */
402, /* (141) alter_db_option ::= KEEP variable_list */
402, /* (142) alter_db_option ::= PAGES NK_INTEGER */
402, /* (143) alter_db_option ::= REPLICA NK_INTEGER */
402, /* (144) alter_db_option ::= WAL_LEVEL NK_INTEGER */
402, /* (145) alter_db_option ::= STT_TRIGGER NK_INTEGER */
402, /* (146) alter_db_option ::= MINROWS NK_INTEGER */
402, /* (147) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
402, /* (148) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
402, /* (149) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
402, /* (150) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
402, /* (151) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */
402, /* (152) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */
402, /* (153) alter_db_option ::= S3_COMPACT NK_INTEGER */
402, /* (154) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
398, /* (155) integer_list ::= NK_INTEGER */
398, /* (156) integer_list ::= integer_list NK_COMMA NK_INTEGER */
399, /* (157) variable_list ::= NK_VARIABLE */
399, /* (158) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
400, /* (159) retention_list ::= retention */
400, /* (160) retention_list ::= retention_list NK_COMMA retention */
403, /* (161) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
403, /* (162) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
395, /* (163) speed_opt ::= */
395, /* (164) speed_opt ::= BWLIMIT NK_INTEGER */
396, /* (165) start_opt ::= */
396, /* (166) start_opt ::= START WITH NK_INTEGER */
396, /* (167) start_opt ::= START WITH NK_STRING */
396, /* (168) start_opt ::= START WITH TIMESTAMP NK_STRING */
397, /* (169) end_opt ::= */
397, /* (170) end_opt ::= END WITH NK_INTEGER */
397, /* (171) end_opt ::= END WITH NK_STRING */
397, /* (172) end_opt ::= END WITH TIMESTAMP NK_STRING */
369, /* (173) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
369, /* (174) cmd ::= CREATE TABLE multi_create_clause */
369, /* (175) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
369, /* (176) cmd ::= DROP TABLE multi_drop_clause */
369, /* (177) cmd ::= DROP STABLE exists_opt full_table_name */
369, /* (178) cmd ::= ALTER TABLE alter_table_clause */
369, /* (179) cmd ::= ALTER STABLE alter_table_clause */
411, /* (180) alter_table_clause ::= full_table_name alter_table_options */
411, /* (181) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
411, /* (182) alter_table_clause ::= full_table_name DROP COLUMN column_name */
411, /* (183) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
411, /* (184) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
411, /* (185) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
411, /* (186) alter_table_clause ::= full_table_name DROP TAG column_name */
411, /* (187) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
411, /* (188) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
411, /* (189) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
408, /* (190) multi_create_clause ::= create_subtable_clause */
408, /* (191) multi_create_clause ::= multi_create_clause create_subtable_clause */
416, /* (192) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
410, /* (193) multi_drop_clause ::= drop_table_clause */
410, /* (194) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
419, /* (195) drop_table_clause ::= exists_opt full_table_name */
417, /* (196) specific_cols_opt ::= */
417, /* (197) specific_cols_opt ::= NK_LP col_name_list NK_RP */
404, /* (198) full_table_name ::= table_name */
404, /* (199) full_table_name ::= db_name NK_DOT table_name */
405, /* (200) column_def_list ::= column_def */
405, /* (201) column_def_list ::= column_def_list NK_COMMA column_def */
421, /* (202) column_def ::= column_name type_name */
421, /* (203) column_def ::= column_name type_name PRIMARY KEY */
414, /* (204) type_name ::= BOOL */
414, /* (205) type_name ::= TINYINT */
414, /* (206) type_name ::= SMALLINT */
414, /* (207) type_name ::= INT */
414, /* (208) type_name ::= INTEGER */
414, /* (209) type_name ::= BIGINT */
414, /* (210) type_name ::= FLOAT */
414, /* (211) type_name ::= DOUBLE */
414, /* (212) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
414, /* (213) type_name ::= TIMESTAMP */
414, /* (214) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
414, /* (215) type_name ::= TINYINT UNSIGNED */
414, /* (216) type_name ::= SMALLINT UNSIGNED */
414, /* (217) type_name ::= INT UNSIGNED */
414, /* (218) type_name ::= BIGINT UNSIGNED */
414, /* (219) type_name ::= JSON */
414, /* (220) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
414, /* (221) type_name ::= MEDIUMBLOB */
414, /* (222) type_name ::= BLOB */
414, /* (223) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
414, /* (224) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
414, /* (225) type_name ::= DECIMAL */
414, /* (226) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
414, /* (227) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
422, /* (228) type_name_default_len ::= BINARY */
422, /* (229) type_name_default_len ::= NCHAR */
422, /* (230) type_name_default_len ::= VARCHAR */
422, /* (231) type_name_default_len ::= VARBINARY */
406, /* (232) tags_def_opt ::= */
406, /* (233) tags_def_opt ::= tags_def */
409, /* (234) tags_def ::= TAGS NK_LP column_def_list NK_RP */
407, /* (235) table_options ::= */
407, /* (236) table_options ::= table_options COMMENT NK_STRING */
407, /* (237) table_options ::= table_options MAX_DELAY duration_list */
407, /* (238) table_options ::= table_options WATERMARK duration_list */
407, /* (239) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
407, /* (240) table_options ::= table_options TTL NK_INTEGER */
407, /* (241) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
407, /* (242) table_options ::= table_options DELETE_MARK duration_list */
412, /* (243) alter_table_options ::= alter_table_option */
412, /* (244) alter_table_options ::= alter_table_options alter_table_option */
425, /* (245) alter_table_option ::= COMMENT NK_STRING */
425, /* (246) alter_table_option ::= TTL NK_INTEGER */
423, /* (247) duration_list ::= duration_literal */
423, /* (248) duration_list ::= duration_list NK_COMMA duration_literal */
424, /* (249) rollup_func_list ::= rollup_func_name */
424, /* (250) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
427, /* (251) rollup_func_name ::= function_name */
427, /* (252) rollup_func_name ::= FIRST */
427, /* (253) rollup_func_name ::= LAST */
420, /* (254) col_name_list ::= col_name */
420, /* (255) col_name_list ::= col_name_list NK_COMMA col_name */
429, /* (256) col_name ::= column_name */
369, /* (257) cmd ::= SHOW DNODES */
369, /* (258) cmd ::= SHOW USERS */
369, /* (259) cmd ::= SHOW USER PRIVILEGES */
369, /* (260) cmd ::= SHOW db_kind_opt DATABASES */
369, /* (261) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
369, /* (262) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
369, /* (263) cmd ::= SHOW db_name_cond_opt VGROUPS */
369, /* (264) cmd ::= SHOW MNODES */
369, /* (265) cmd ::= SHOW QNODES */
369, /* (266) cmd ::= SHOW ARBGROUPS */
369, /* (267) cmd ::= SHOW FUNCTIONS */
369, /* (268) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
369, /* (269) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
369, /* (270) cmd ::= SHOW STREAMS */
369, /* (271) cmd ::= SHOW ACCOUNTS */
369, /* (272) cmd ::= SHOW APPS */
369, /* (273) cmd ::= SHOW CONNECTIONS */
369, /* (274) cmd ::= SHOW LICENCES */
369, /* (275) cmd ::= SHOW GRANTS */
369, /* (276) cmd ::= SHOW GRANTS FULL */
369, /* (277) cmd ::= SHOW GRANTS LOGS */
369, /* (278) cmd ::= SHOW CLUSTER MACHINES */
369, /* (279) cmd ::= SHOW CREATE DATABASE db_name */
369, /* (280) cmd ::= SHOW CREATE TABLE full_table_name */
369, /* (281) cmd ::= SHOW CREATE STABLE full_table_name */
369, /* (282) cmd ::= SHOW QUERIES */
369, /* (283) cmd ::= SHOW SCORES */
369, /* (284) cmd ::= SHOW TOPICS */
369, /* (285) cmd ::= SHOW VARIABLES */
369, /* (286) cmd ::= SHOW CLUSTER VARIABLES */
369, /* (287) cmd ::= SHOW LOCAL VARIABLES */
369, /* (288) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
369, /* (289) cmd ::= SHOW BNODES */
369, /* (290) cmd ::= SHOW SNODES */
369, /* (291) cmd ::= SHOW CLUSTER */
369, /* (292) cmd ::= SHOW TRANSACTIONS */
369, /* (293) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
369, /* (294) cmd ::= SHOW CONSUMERS */
369, /* (295) cmd ::= SHOW SUBSCRIPTIONS */
369, /* (296) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
369, /* (297) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
369, /* (298) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
369, /* (299) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
369, /* (300) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
369, /* (301) cmd ::= SHOW VNODES */
369, /* (302) cmd ::= SHOW db_name_cond_opt ALIVE */
369, /* (303) cmd ::= SHOW CLUSTER ALIVE */
369, /* (304) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
369, /* (305) cmd ::= SHOW CREATE VIEW full_table_name */
369, /* (306) cmd ::= SHOW COMPACTS */
369, /* (307) cmd ::= SHOW COMPACT NK_INTEGER */
431, /* (308) table_kind_db_name_cond_opt ::= */
431, /* (309) table_kind_db_name_cond_opt ::= table_kind */
431, /* (310) table_kind_db_name_cond_opt ::= db_name NK_DOT */
431, /* (311) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
437, /* (312) table_kind ::= NORMAL */
437, /* (313) table_kind ::= CHILD */
433, /* (314) db_name_cond_opt ::= */
433, /* (315) db_name_cond_opt ::= db_name NK_DOT */
432, /* (316) like_pattern_opt ::= */
432, /* (317) like_pattern_opt ::= LIKE NK_STRING */
434, /* (318) table_name_cond ::= table_name */
435, /* (319) from_db_opt ::= */
435, /* (320) from_db_opt ::= FROM db_name */
436, /* (321) tag_list_opt ::= */
436, /* (322) tag_list_opt ::= tag_item */
436, /* (323) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
438, /* (324) tag_item ::= TBNAME */
438, /* (325) tag_item ::= QTAGS */
438, /* (326) tag_item ::= column_name */
438, /* (327) tag_item ::= column_name column_alias */
438, /* (328) tag_item ::= column_name AS column_alias */
430, /* (329) db_kind_opt ::= */
430, /* (330) db_kind_opt ::= USER */
430, /* (331) db_kind_opt ::= SYSTEM */
369, /* (332) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_opt INTERVAL NK_LP duration_literal NK_RP */
369, /* (333) cmd ::= DROP TSMA exists_opt full_tsma_name */
369, /* (334) cmd ::= SHOW CREATE TSMA full_tsma_name */
369, /* (335) cmd ::= SHOW db_name_cond_opt TSMAS */
442, /* (336) full_tsma_name ::= tsma_name */
442, /* (337) full_tsma_name ::= db_name NK_DOT tsma_name */
441, /* (338) tsma_opt ::= */
441, /* (339) tsma_opt ::= FUNCTION NK_LP tsma_func_list NK_RP COLUMN NK_LP col_name_list NK_RP */
443, /* (340) tsma_func_list ::= tsma_func_name */
443, /* (341) tsma_func_list ::= tsma_func_list NK_COMMA tsma_func_name */
444, /* (342) tsma_func_name ::= sma_func_name */
369, /* (343) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
369, /* (344) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
369, /* (345) cmd ::= DROP INDEX exists_opt full_index_name */
447, /* (346) full_index_name ::= index_name */
447, /* (347) full_index_name ::= db_name NK_DOT index_name */
446, /* (348) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
446, /* (349) 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 */
449, /* (350) func_list ::= func */
449, /* (351) func_list ::= func_list NK_COMMA func */
452, /* (352) func ::= sma_func_name NK_LP expression_list NK_RP */
445, /* (353) sma_func_name ::= function_name */
445, /* (354) sma_func_name ::= COUNT */
445, /* (355) sma_func_name ::= FIRST */
445, /* (356) sma_func_name ::= LAST */
445, /* (357) sma_func_name ::= LAST_ROW */
451, /* (358) sma_stream_opt ::= */
451, /* (359) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
451, /* (360) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
451, /* (361) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
454, /* (362) with_meta ::= AS */
454, /* (363) with_meta ::= WITH META AS */
454, /* (364) with_meta ::= ONLY META AS */
369, /* (365) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
369, /* (366) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
369, /* (367) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
369, /* (368) cmd ::= DROP TOPIC exists_opt topic_name */
369, /* (369) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
369, /* (370) cmd ::= DESC full_table_name */
369, /* (371) cmd ::= DESCRIBE full_table_name */
369, /* (372) cmd ::= RESET QUERY CACHE */
369, /* (373) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
369, /* (374) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
458, /* (375) analyze_opt ::= */
458, /* (376) analyze_opt ::= ANALYZE */
459, /* (377) explain_options ::= */
459, /* (378) explain_options ::= explain_options VERBOSE NK_BOOL */
459, /* (379) explain_options ::= explain_options RATIO NK_FLOAT */
369, /* (380) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
369, /* (381) cmd ::= DROP FUNCTION exists_opt function_name */
462, /* (382) agg_func_opt ::= */
462, /* (383) agg_func_opt ::= AGGREGATE */
463, /* (384) bufsize_opt ::= */
463, /* (385) bufsize_opt ::= BUFSIZE NK_INTEGER */
464, /* (386) language_opt ::= */
464, /* (387) language_opt ::= LANGUAGE NK_STRING */
461, /* (388) or_replace_opt ::= */
461, /* (389) or_replace_opt ::= OR REPLACE */
369, /* (390) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
369, /* (391) cmd ::= DROP VIEW exists_opt full_view_name */
465, /* (392) full_view_name ::= view_name */
465, /* (393) full_view_name ::= db_name NK_DOT view_name */
369, /* (394) 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 */
369, /* (395) cmd ::= DROP STREAM exists_opt stream_name */
369, /* (396) cmd ::= PAUSE STREAM exists_opt stream_name */
369, /* (397) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
469, /* (398) col_list_opt ::= */
469, /* (399) col_list_opt ::= NK_LP column_stream_def_list NK_RP */
473, /* (400) column_stream_def_list ::= column_stream_def */
473, /* (401) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */
474, /* (402) column_stream_def ::= column_name */
474, /* (403) column_stream_def ::= column_name PRIMARY KEY */
470, /* (404) tag_def_or_ref_opt ::= */
470, /* (405) tag_def_or_ref_opt ::= tags_def */
470, /* (406) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */
468, /* (407) stream_options ::= */
468, /* (408) stream_options ::= stream_options TRIGGER AT_ONCE */
468, /* (409) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
468, /* (410) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
468, /* (411) stream_options ::= stream_options WATERMARK duration_literal */
468, /* (412) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
468, /* (413) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
468, /* (414) stream_options ::= stream_options DELETE_MARK duration_literal */
468, /* (415) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
471, /* (416) subtable_opt ::= */
471, /* (417) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
472, /* (418) ignore_opt ::= */
472, /* (419) ignore_opt ::= IGNORE UNTREATED */
369, /* (420) cmd ::= KILL CONNECTION NK_INTEGER */
369, /* (421) cmd ::= KILL QUERY NK_STRING */
369, /* (422) cmd ::= KILL TRANSACTION NK_INTEGER */
369, /* (423) cmd ::= KILL COMPACT NK_INTEGER */
369, /* (424) cmd ::= BALANCE VGROUP */
369, /* (425) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
369, /* (426) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
369, /* (427) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
369, /* (428) cmd ::= SPLIT VGROUP NK_INTEGER */
476, /* (429) on_vgroup_id ::= */
476, /* (430) on_vgroup_id ::= ON NK_INTEGER */
477, /* (431) dnode_list ::= DNODE NK_INTEGER */
477, /* (432) dnode_list ::= dnode_list DNODE NK_INTEGER */
369, /* (433) cmd ::= DELETE FROM full_table_name where_clause_opt */
369, /* (434) cmd ::= query_or_subquery */
369, /* (435) cmd ::= insert_query */
460, /* (436) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
460, /* (437) insert_query ::= INSERT INTO full_table_name query_or_subquery */
415, /* (438) tags_literal ::= NK_INTEGER */
415, /* (439) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
415, /* (440) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */
415, /* (441) tags_literal ::= NK_PLUS NK_INTEGER */
415, /* (442) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
415, /* (443) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */
415, /* (444) tags_literal ::= NK_MINUS NK_INTEGER */
415, /* (445) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */
415, /* (446) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */
415, /* (447) tags_literal ::= NK_FLOAT */
415, /* (448) tags_literal ::= NK_PLUS NK_FLOAT */
415, /* (449) tags_literal ::= NK_MINUS NK_FLOAT */
415, /* (450) tags_literal ::= NK_BIN */
415, /* (451) tags_literal ::= NK_BIN NK_PLUS duration_literal */
415, /* (452) tags_literal ::= NK_BIN NK_MINUS duration_literal */
415, /* (453) tags_literal ::= NK_PLUS NK_BIN */
415, /* (454) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */
415, /* (455) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */
415, /* (456) tags_literal ::= NK_MINUS NK_BIN */
415, /* (457) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */
415, /* (458) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */
415, /* (459) tags_literal ::= NK_HEX */
415, /* (460) tags_literal ::= NK_HEX NK_PLUS duration_literal */
415, /* (461) tags_literal ::= NK_HEX NK_MINUS duration_literal */
415, /* (462) tags_literal ::= NK_PLUS NK_HEX */
415, /* (463) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */
415, /* (464) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */
415, /* (465) tags_literal ::= NK_MINUS NK_HEX */
415, /* (466) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */
415, /* (467) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */
415, /* (468) tags_literal ::= NK_STRING */
415, /* (469) tags_literal ::= NK_STRING NK_PLUS duration_literal */
415, /* (470) tags_literal ::= NK_STRING NK_MINUS duration_literal */
415, /* (471) tags_literal ::= NK_BOOL */
415, /* (472) tags_literal ::= NULL */
415, /* (473) tags_literal ::= literal_func */
415, /* (474) tags_literal ::= literal_func NK_PLUS duration_literal */
415, /* (475) tags_literal ::= literal_func NK_MINUS duration_literal */
418, /* (476) tags_literal_list ::= tags_literal */
418, /* (477) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
372, /* (478) literal ::= NK_INTEGER */
372, /* (479) literal ::= NK_FLOAT */
372, /* (480) literal ::= NK_STRING */
372, /* (481) literal ::= NK_BOOL */
372, /* (482) literal ::= TIMESTAMP NK_STRING */
372, /* (483) literal ::= duration_literal */
372, /* (484) literal ::= NULL */
372, /* (485) literal ::= NK_QUESTION */
426, /* (486) duration_literal ::= NK_VARIABLE */
401, /* (487) signed ::= NK_INTEGER */
401, /* (488) signed ::= NK_PLUS NK_INTEGER */
401, /* (489) signed ::= NK_MINUS NK_INTEGER */
401, /* (490) signed ::= NK_FLOAT */
401, /* (491) signed ::= NK_PLUS NK_FLOAT */
401, /* (492) signed ::= NK_MINUS NK_FLOAT */
479, /* (493) signed_literal ::= signed */
479, /* (494) signed_literal ::= NK_STRING */
479, /* (495) signed_literal ::= NK_BOOL */
479, /* (496) signed_literal ::= TIMESTAMP NK_STRING */
479, /* (497) signed_literal ::= duration_literal */
479, /* (498) signed_literal ::= NULL */
479, /* (499) signed_literal ::= literal_func */
479, /* (500) signed_literal ::= NK_QUESTION */
480, /* (501) literal_list ::= signed_literal */
480, /* (502) literal_list ::= literal_list NK_COMMA signed_literal */
384, /* (503) db_name ::= NK_ID */
385, /* (504) table_name ::= NK_ID */
413, /* (505) column_name ::= NK_ID */
428, /* (506) function_name ::= NK_ID */
466, /* (507) view_name ::= NK_ID */
481, /* (508) table_alias ::= NK_ID */
439, /* (509) column_alias ::= NK_ID */
439, /* (510) column_alias ::= NK_ALIAS */
377, /* (511) user_name ::= NK_ID */
386, /* (512) topic_name ::= NK_ID */
467, /* (513) stream_name ::= NK_ID */
457, /* (514) cgroup_name ::= NK_ID */
448, /* (515) index_name ::= NK_ID */
440, /* (516) tsma_name ::= NK_ID */
482, /* (517) expr_or_subquery ::= expression */
475, /* (518) expression ::= literal */
475, /* (519) expression ::= pseudo_column */
475, /* (520) expression ::= column_reference */
475, /* (521) expression ::= function_expression */
475, /* (522) expression ::= case_when_expression */
475, /* (523) expression ::= NK_LP expression NK_RP */
475, /* (524) expression ::= NK_PLUS expr_or_subquery */
475, /* (525) expression ::= NK_MINUS expr_or_subquery */
475, /* (526) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
475, /* (527) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
475, /* (528) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
475, /* (529) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
475, /* (530) expression ::= expr_or_subquery NK_REM expr_or_subquery */
475, /* (531) expression ::= column_reference NK_ARROW NK_STRING */
475, /* (532) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
475, /* (533) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
453, /* (534) expression_list ::= expr_or_subquery */
453, /* (535) expression_list ::= expression_list NK_COMMA expr_or_subquery */
484, /* (536) column_reference ::= column_name */
484, /* (537) column_reference ::= table_name NK_DOT column_name */
484, /* (538) column_reference ::= NK_ALIAS */
484, /* (539) column_reference ::= table_name NK_DOT NK_ALIAS */
483, /* (540) pseudo_column ::= ROWTS */
483, /* (541) pseudo_column ::= TBNAME */
483, /* (542) pseudo_column ::= table_name NK_DOT TBNAME */
483, /* (543) pseudo_column ::= QSTART */
483, /* (544) pseudo_column ::= QEND */
483, /* (545) pseudo_column ::= QDURATION */
483, /* (546) pseudo_column ::= WSTART */
483, /* (547) pseudo_column ::= WEND */
483, /* (548) pseudo_column ::= WDURATION */
483, /* (549) pseudo_column ::= IROWTS */
483, /* (550) pseudo_column ::= ISFILLED */
483, /* (551) pseudo_column ::= QTAGS */
485, /* (552) function_expression ::= function_name NK_LP expression_list NK_RP */
485, /* (553) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
485, /* (554) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
485, /* (555) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */
485, /* (556) function_expression ::= literal_func */
478, /* (557) literal_func ::= noarg_func NK_LP NK_RP */
478, /* (558) literal_func ::= NOW */
478, /* (559) literal_func ::= TODAY */
489, /* (560) noarg_func ::= NOW */
489, /* (561) noarg_func ::= TODAY */
489, /* (562) noarg_func ::= TIMEZONE */
489, /* (563) noarg_func ::= DATABASE */
489, /* (564) noarg_func ::= CLIENT_VERSION */
489, /* (565) noarg_func ::= SERVER_VERSION */
489, /* (566) noarg_func ::= SERVER_STATUS */
489, /* (567) noarg_func ::= CURRENT_USER */
489, /* (568) noarg_func ::= USER */
487, /* (569) star_func ::= COUNT */
487, /* (570) star_func ::= FIRST */
487, /* (571) star_func ::= LAST */
487, /* (572) star_func ::= LAST_ROW */
488, /* (573) star_func_para_list ::= NK_STAR */
488, /* (574) star_func_para_list ::= other_para_list */
490, /* (575) other_para_list ::= star_func_para */
490, /* (576) other_para_list ::= other_para_list NK_COMMA star_func_para */
491, /* (577) star_func_para ::= expr_or_subquery */
491, /* (578) star_func_para ::= table_name NK_DOT NK_STAR */
486, /* (579) case_when_expression ::= CASE when_then_list case_when_else_opt END */
486, /* (580) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
492, /* (581) when_then_list ::= when_then_expr */
492, /* (582) when_then_list ::= when_then_list when_then_expr */
495, /* (583) when_then_expr ::= WHEN common_expression THEN common_expression */
493, /* (584) case_when_else_opt ::= */
493, /* (585) case_when_else_opt ::= ELSE common_expression */
496, /* (586) predicate ::= expr_or_subquery compare_op expr_or_subquery */
496, /* (587) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
496, /* (588) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
496, /* (589) predicate ::= expr_or_subquery IS NULL */
496, /* (590) predicate ::= expr_or_subquery IS NOT NULL */
496, /* (591) predicate ::= expr_or_subquery in_op in_predicate_value */
497, /* (592) compare_op ::= NK_LT */
497, /* (593) compare_op ::= NK_GT */
497, /* (594) compare_op ::= NK_LE */
497, /* (595) compare_op ::= NK_GE */
497, /* (596) compare_op ::= NK_NE */
497, /* (597) compare_op ::= NK_EQ */
497, /* (598) compare_op ::= LIKE */
497, /* (599) compare_op ::= NOT LIKE */
497, /* (600) compare_op ::= MATCH */
497, /* (601) compare_op ::= NMATCH */
497, /* (602) compare_op ::= CONTAINS */
498, /* (603) in_op ::= IN */
498, /* (604) in_op ::= NOT IN */
499, /* (605) in_predicate_value ::= NK_LP literal_list NK_RP */
500, /* (606) boolean_value_expression ::= boolean_primary */
500, /* (607) boolean_value_expression ::= NOT boolean_primary */
500, /* (608) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
500, /* (609) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
501, /* (610) boolean_primary ::= predicate */
501, /* (611) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
494, /* (612) common_expression ::= expr_or_subquery */
494, /* (613) common_expression ::= boolean_value_expression */
502, /* (614) from_clause_opt ::= */
502, /* (615) from_clause_opt ::= FROM table_reference_list */
503, /* (616) table_reference_list ::= table_reference */
503, /* (617) table_reference_list ::= table_reference_list NK_COMMA table_reference */
504, /* (618) table_reference ::= table_primary */
504, /* (619) table_reference ::= joined_table */
505, /* (620) table_primary ::= table_name alias_opt */
505, /* (621) table_primary ::= db_name NK_DOT table_name alias_opt */
505, /* (622) table_primary ::= subquery alias_opt */
505, /* (623) table_primary ::= parenthesized_joined_table */
507, /* (624) alias_opt ::= */
507, /* (625) alias_opt ::= table_alias */
507, /* (626) alias_opt ::= AS table_alias */
509, /* (627) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
509, /* (628) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
506, /* (629) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */
510, /* (630) join_type ::= */
510, /* (631) join_type ::= INNER */
510, /* (632) join_type ::= LEFT */
510, /* (633) join_type ::= RIGHT */
510, /* (634) join_type ::= FULL */
511, /* (635) join_subtype ::= */
511, /* (636) join_subtype ::= OUTER */
511, /* (637) join_subtype ::= SEMI */
511, /* (638) join_subtype ::= ANTI */
511, /* (639) join_subtype ::= ASOF */
511, /* (640) join_subtype ::= WINDOW */
512, /* (641) join_on_clause_opt ::= */
512, /* (642) join_on_clause_opt ::= ON search_condition */
513, /* (643) window_offset_clause_opt ::= */
513, /* (644) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */
515, /* (645) window_offset_literal ::= NK_VARIABLE */
515, /* (646) window_offset_literal ::= NK_MINUS NK_VARIABLE */
514, /* (647) jlimit_clause_opt ::= */
514, /* (648) jlimit_clause_opt ::= JLIMIT NK_INTEGER */
516, /* (649) 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 */
517, /* (650) hint_list ::= */
517, /* (651) hint_list ::= NK_HINT */
519, /* (652) tag_mode_opt ::= */
519, /* (653) tag_mode_opt ::= TAGS */
518, /* (654) set_quantifier_opt ::= */
518, /* (655) set_quantifier_opt ::= DISTINCT */
518, /* (656) set_quantifier_opt ::= ALL */
520, /* (657) select_list ::= select_item */
520, /* (658) select_list ::= select_list NK_COMMA select_item */
528, /* (659) select_item ::= NK_STAR */
528, /* (660) select_item ::= common_expression */
528, /* (661) select_item ::= common_expression column_alias */
528, /* (662) select_item ::= common_expression AS column_alias */
528, /* (663) select_item ::= table_name NK_DOT NK_STAR */
456, /* (664) where_clause_opt ::= */
456, /* (665) where_clause_opt ::= WHERE search_condition */
521, /* (666) partition_by_clause_opt ::= */
521, /* (667) partition_by_clause_opt ::= PARTITION BY partition_list */
529, /* (668) partition_list ::= partition_item */
529, /* (669) partition_list ::= partition_list NK_COMMA partition_item */
530, /* (670) partition_item ::= expr_or_subquery */
530, /* (671) partition_item ::= expr_or_subquery column_alias */
530, /* (672) partition_item ::= expr_or_subquery AS column_alias */
525, /* (673) twindow_clause_opt ::= */
525, /* (674) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
525, /* (675) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
525, /* (676) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
525, /* (677) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
525, /* (678) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
525, /* (679) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
525, /* (680) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
450, /* (681) sliding_opt ::= */
450, /* (682) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
531, /* (683) interval_sliding_duration_literal ::= NK_VARIABLE */
531, /* (684) interval_sliding_duration_literal ::= NK_STRING */
531, /* (685) interval_sliding_duration_literal ::= NK_INTEGER */
524, /* (686) fill_opt ::= */
524, /* (687) fill_opt ::= FILL NK_LP fill_mode NK_RP */
524, /* (688) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
524, /* (689) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
532, /* (690) fill_mode ::= NONE */
532, /* (691) fill_mode ::= PREV */
532, /* (692) fill_mode ::= NULL */
532, /* (693) fill_mode ::= NULL_F */
532, /* (694) fill_mode ::= LINEAR */
532, /* (695) fill_mode ::= NEXT */
526, /* (696) group_by_clause_opt ::= */
526, /* (697) group_by_clause_opt ::= GROUP BY group_by_list */
533, /* (698) group_by_list ::= expr_or_subquery */
533, /* (699) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
527, /* (700) having_clause_opt ::= */
527, /* (701) having_clause_opt ::= HAVING search_condition */
522, /* (702) range_opt ::= */
522, /* (703) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
522, /* (704) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
523, /* (705) every_opt ::= */
523, /* (706) every_opt ::= EVERY NK_LP duration_literal NK_RP */
534, /* (707) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
535, /* (708) query_simple ::= query_specification */
535, /* (709) query_simple ::= union_query_expression */
539, /* (710) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
539, /* (711) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
540, /* (712) query_simple_or_subquery ::= query_simple */
540, /* (713) query_simple_or_subquery ::= subquery */
455, /* (714) query_or_subquery ::= query_expression */
455, /* (715) query_or_subquery ::= subquery */
536, /* (716) order_by_clause_opt ::= */
536, /* (717) order_by_clause_opt ::= ORDER BY sort_specification_list */
537, /* (718) slimit_clause_opt ::= */
537, /* (719) slimit_clause_opt ::= SLIMIT NK_INTEGER */
537, /* (720) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
537, /* (721) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
538, /* (722) limit_clause_opt ::= */
538, /* (723) limit_clause_opt ::= LIMIT NK_INTEGER */
538, /* (724) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
538, /* (725) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
508, /* (726) subquery ::= NK_LP query_expression NK_RP */
508, /* (727) subquery ::= NK_LP subquery NK_RP */
387, /* (728) search_condition ::= common_expression */
541, /* (729) sort_specification_list ::= sort_specification */
541, /* (730) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
542, /* (731) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
543, /* (732) ordering_specification_opt ::= */
543, /* (733) ordering_specification_opt ::= ASC */
543, /* (734) ordering_specification_opt ::= DESC */
544, /* (735) null_ordering_opt ::= */
544, /* (736) null_ordering_opt ::= NULLS FIRST */
544, /* (737) null_ordering_opt ::= NULLS LAST */
2023-05-09 11:19:14 +00:00
};
/* 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 */
2023-08-24 07:54:10 +00:00
-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 */
2023-12-18 08:34:31 +00:00
-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 */
2024-04-08 02:55:47 +00:00
-3, /* (92) cmd ::= S3MIGRATE DATABASE db_name */
-5, /* (93) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
-3, /* (94) not_exists_opt ::= IF NOT EXISTS */
0, /* (95) not_exists_opt ::= */
-2, /* (96) exists_opt ::= IF EXISTS */
0, /* (97) exists_opt ::= */
0, /* (98) db_options ::= */
-3, /* (99) db_options ::= db_options BUFFER NK_INTEGER */
-3, /* (100) db_options ::= db_options CACHEMODEL NK_STRING */
-3, /* (101) db_options ::= db_options CACHESIZE NK_INTEGER */
-3, /* (102) db_options ::= db_options COMP NK_INTEGER */
-3, /* (103) db_options ::= db_options DURATION NK_INTEGER */
-3, /* (104) db_options ::= db_options DURATION NK_VARIABLE */
-3, /* (105) db_options ::= db_options MAXROWS NK_INTEGER */
-3, /* (106) db_options ::= db_options MINROWS NK_INTEGER */
-3, /* (107) db_options ::= db_options KEEP integer_list */
-3, /* (108) db_options ::= db_options KEEP variable_list */
-3, /* (109) db_options ::= db_options PAGES NK_INTEGER */
-3, /* (110) db_options ::= db_options PAGESIZE NK_INTEGER */
-3, /* (111) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
-3, /* (112) db_options ::= db_options PRECISION NK_STRING */
-3, /* (113) db_options ::= db_options REPLICA NK_INTEGER */
-3, /* (114) db_options ::= db_options VGROUPS NK_INTEGER */
-3, /* (115) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
-3, /* (116) db_options ::= db_options RETENTIONS retention_list */
-3, /* (117) db_options ::= db_options SCHEMALESS NK_INTEGER */
-3, /* (118) db_options ::= db_options WAL_LEVEL NK_INTEGER */
-3, /* (119) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
-3, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
-4, /* (121) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-3, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
-4, /* (123) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-3, /* (124) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
-3, /* (125) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
-3, /* (126) db_options ::= db_options STT_TRIGGER NK_INTEGER */
-3, /* (127) db_options ::= db_options TABLE_PREFIX signed */
-3, /* (128) db_options ::= db_options TABLE_SUFFIX signed */
-3, /* (129) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */
-3, /* (130) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */
-3, /* (131) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */
-3, /* (132) db_options ::= db_options S3_COMPACT NK_INTEGER */
-3, /* (133) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (134) alter_db_options ::= alter_db_option */
-2, /* (135) alter_db_options ::= alter_db_options alter_db_option */
-2, /* (136) alter_db_option ::= BUFFER NK_INTEGER */
-2, /* (137) alter_db_option ::= CACHEMODEL NK_STRING */
-2, /* (138) alter_db_option ::= CACHESIZE NK_INTEGER */
-2, /* (139) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
-2, /* (140) alter_db_option ::= KEEP integer_list */
-2, /* (141) alter_db_option ::= KEEP variable_list */
-2, /* (142) alter_db_option ::= PAGES NK_INTEGER */
-2, /* (143) alter_db_option ::= REPLICA NK_INTEGER */
-2, /* (144) alter_db_option ::= WAL_LEVEL NK_INTEGER */
-2, /* (145) alter_db_option ::= STT_TRIGGER NK_INTEGER */
-2, /* (146) alter_db_option ::= MINROWS NK_INTEGER */
-2, /* (147) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
-3, /* (148) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
-2, /* (149) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
-3, /* (150) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
-2, /* (151) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */
-2, /* (152) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */
-2, /* (153) alter_db_option ::= S3_COMPACT NK_INTEGER */
-2, /* (154) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
-1, /* (155) integer_list ::= NK_INTEGER */
-3, /* (156) integer_list ::= integer_list NK_COMMA NK_INTEGER */
-1, /* (157) variable_list ::= NK_VARIABLE */
-3, /* (158) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
-1, /* (159) retention_list ::= retention */
-3, /* (160) retention_list ::= retention_list NK_COMMA retention */
-3, /* (161) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
-3, /* (162) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
0, /* (163) speed_opt ::= */
-2, /* (164) speed_opt ::= BWLIMIT NK_INTEGER */
0, /* (165) start_opt ::= */
-3, /* (166) start_opt ::= START WITH NK_INTEGER */
-3, /* (167) start_opt ::= START WITH NK_STRING */
-4, /* (168) start_opt ::= START WITH TIMESTAMP NK_STRING */
0, /* (169) end_opt ::= */
-3, /* (170) end_opt ::= END WITH NK_INTEGER */
-3, /* (171) end_opt ::= END WITH NK_STRING */
-4, /* (172) end_opt ::= END WITH TIMESTAMP NK_STRING */
-9, /* (173) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
-3, /* (174) cmd ::= CREATE TABLE multi_create_clause */
-9, /* (175) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
-3, /* (176) cmd ::= DROP TABLE multi_drop_clause */
-4, /* (177) cmd ::= DROP STABLE exists_opt full_table_name */
-3, /* (178) cmd ::= ALTER TABLE alter_table_clause */
-3, /* (179) cmd ::= ALTER STABLE alter_table_clause */
-2, /* (180) alter_table_clause ::= full_table_name alter_table_options */
-5, /* (181) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
-4, /* (182) alter_table_clause ::= full_table_name DROP COLUMN column_name */
-5, /* (183) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
-5, /* (184) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
-5, /* (185) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
-4, /* (186) alter_table_clause ::= full_table_name DROP TAG column_name */
-5, /* (187) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
-5, /* (188) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
-6, /* (189) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
-1, /* (190) multi_create_clause ::= create_subtable_clause */
-2, /* (191) multi_create_clause ::= multi_create_clause create_subtable_clause */
-10, /* (192) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
-1, /* (193) multi_drop_clause ::= drop_table_clause */
-3, /* (194) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
-2, /* (195) drop_table_clause ::= exists_opt full_table_name */
0, /* (196) specific_cols_opt ::= */
-3, /* (197) specific_cols_opt ::= NK_LP col_name_list NK_RP */
-1, /* (198) full_table_name ::= table_name */
-3, /* (199) full_table_name ::= db_name NK_DOT table_name */
-1, /* (200) column_def_list ::= column_def */
-3, /* (201) column_def_list ::= column_def_list NK_COMMA column_def */
-2, /* (202) column_def ::= column_name type_name */
-4, /* (203) column_def ::= column_name type_name PRIMARY KEY */
-1, /* (204) type_name ::= BOOL */
-1, /* (205) type_name ::= TINYINT */
-1, /* (206) type_name ::= SMALLINT */
-1, /* (207) type_name ::= INT */
-1, /* (208) type_name ::= INTEGER */
-1, /* (209) type_name ::= BIGINT */
-1, /* (210) type_name ::= FLOAT */
-1, /* (211) type_name ::= DOUBLE */
-4, /* (212) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
-1, /* (213) type_name ::= TIMESTAMP */
-4, /* (214) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
-2, /* (215) type_name ::= TINYINT UNSIGNED */
-2, /* (216) type_name ::= SMALLINT UNSIGNED */
-2, /* (217) type_name ::= INT UNSIGNED */
-2, /* (218) type_name ::= BIGINT UNSIGNED */
-1, /* (219) type_name ::= JSON */
-4, /* (220) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
-1, /* (221) type_name ::= MEDIUMBLOB */
-1, /* (222) type_name ::= BLOB */
-4, /* (223) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
-4, /* (224) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
-1, /* (225) type_name ::= DECIMAL */
-4, /* (226) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
-6, /* (227) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
-1, /* (228) type_name_default_len ::= BINARY */
-1, /* (229) type_name_default_len ::= NCHAR */
-1, /* (230) type_name_default_len ::= VARCHAR */
-1, /* (231) type_name_default_len ::= VARBINARY */
0, /* (232) tags_def_opt ::= */
-1, /* (233) tags_def_opt ::= tags_def */
-4, /* (234) tags_def ::= TAGS NK_LP column_def_list NK_RP */
0, /* (235) table_options ::= */
-3, /* (236) table_options ::= table_options COMMENT NK_STRING */
-3, /* (237) table_options ::= table_options MAX_DELAY duration_list */
-3, /* (238) table_options ::= table_options WATERMARK duration_list */
-5, /* (239) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
-3, /* (240) table_options ::= table_options TTL NK_INTEGER */
-5, /* (241) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
-3, /* (242) table_options ::= table_options DELETE_MARK duration_list */
-1, /* (243) alter_table_options ::= alter_table_option */
-2, /* (244) alter_table_options ::= alter_table_options alter_table_option */
-2, /* (245) alter_table_option ::= COMMENT NK_STRING */
-2, /* (246) alter_table_option ::= TTL NK_INTEGER */
-1, /* (247) duration_list ::= duration_literal */
-3, /* (248) duration_list ::= duration_list NK_COMMA duration_literal */
-1, /* (249) rollup_func_list ::= rollup_func_name */
-3, /* (250) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
-1, /* (251) rollup_func_name ::= function_name */
-1, /* (252) rollup_func_name ::= FIRST */
-1, /* (253) rollup_func_name ::= LAST */
-1, /* (254) col_name_list ::= col_name */
-3, /* (255) col_name_list ::= col_name_list NK_COMMA col_name */
-1, /* (256) col_name ::= column_name */
-2, /* (257) cmd ::= SHOW DNODES */
-2, /* (258) cmd ::= SHOW USERS */
-3, /* (259) cmd ::= SHOW USER PRIVILEGES */
-3, /* (260) cmd ::= SHOW db_kind_opt DATABASES */
-4, /* (261) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
-4, /* (262) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
-3, /* (263) cmd ::= SHOW db_name_cond_opt VGROUPS */
-2, /* (264) cmd ::= SHOW MNODES */
-2, /* (265) cmd ::= SHOW QNODES */
-2, /* (266) cmd ::= SHOW ARBGROUPS */
-2, /* (267) cmd ::= SHOW FUNCTIONS */
-5, /* (268) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
-6, /* (269) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
-2, /* (270) cmd ::= SHOW STREAMS */
-2, /* (271) cmd ::= SHOW ACCOUNTS */
-2, /* (272) cmd ::= SHOW APPS */
-2, /* (273) cmd ::= SHOW CONNECTIONS */
-2, /* (274) cmd ::= SHOW LICENCES */
-2, /* (275) cmd ::= SHOW GRANTS */
-3, /* (276) cmd ::= SHOW GRANTS FULL */
-3, /* (277) cmd ::= SHOW GRANTS LOGS */
-3, /* (278) cmd ::= SHOW CLUSTER MACHINES */
-4, /* (279) cmd ::= SHOW CREATE DATABASE db_name */
-4, /* (280) cmd ::= SHOW CREATE TABLE full_table_name */
-4, /* (281) cmd ::= SHOW CREATE STABLE full_table_name */
-2, /* (282) cmd ::= SHOW QUERIES */
-2, /* (283) cmd ::= SHOW SCORES */
-2, /* (284) cmd ::= SHOW TOPICS */
-2, /* (285) cmd ::= SHOW VARIABLES */
-3, /* (286) cmd ::= SHOW CLUSTER VARIABLES */
-3, /* (287) cmd ::= SHOW LOCAL VARIABLES */
-5, /* (288) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
-2, /* (289) cmd ::= SHOW BNODES */
-2, /* (290) cmd ::= SHOW SNODES */
-2, /* (291) cmd ::= SHOW CLUSTER */
-2, /* (292) cmd ::= SHOW TRANSACTIONS */
-4, /* (293) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
-2, /* (294) cmd ::= SHOW CONSUMERS */
-2, /* (295) cmd ::= SHOW SUBSCRIPTIONS */
-5, /* (296) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
-6, /* (297) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
-7, /* (298) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
-8, /* (299) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
-5, /* (300) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
-2, /* (301) cmd ::= SHOW VNODES */
-3, /* (302) cmd ::= SHOW db_name_cond_opt ALIVE */
-3, /* (303) cmd ::= SHOW CLUSTER ALIVE */
-4, /* (304) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
-4, /* (305) cmd ::= SHOW CREATE VIEW full_table_name */
-2, /* (306) cmd ::= SHOW COMPACTS */
-3, /* (307) cmd ::= SHOW COMPACT NK_INTEGER */
0, /* (308) table_kind_db_name_cond_opt ::= */
-1, /* (309) table_kind_db_name_cond_opt ::= table_kind */
-2, /* (310) table_kind_db_name_cond_opt ::= db_name NK_DOT */
-3, /* (311) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
-1, /* (312) table_kind ::= NORMAL */
-1, /* (313) table_kind ::= CHILD */
0, /* (314) db_name_cond_opt ::= */
-2, /* (315) db_name_cond_opt ::= db_name NK_DOT */
0, /* (316) like_pattern_opt ::= */
-2, /* (317) like_pattern_opt ::= LIKE NK_STRING */
-1, /* (318) table_name_cond ::= table_name */
0, /* (319) from_db_opt ::= */
-2, /* (320) from_db_opt ::= FROM db_name */
0, /* (321) tag_list_opt ::= */
-1, /* (322) tag_list_opt ::= tag_item */
-3, /* (323) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
-1, /* (324) tag_item ::= TBNAME */
-1, /* (325) tag_item ::= QTAGS */
-1, /* (326) tag_item ::= column_name */
-2, /* (327) tag_item ::= column_name column_alias */
-3, /* (328) tag_item ::= column_name AS column_alias */
0, /* (329) db_kind_opt ::= */
-1, /* (330) db_kind_opt ::= USER */
-1, /* (331) db_kind_opt ::= SYSTEM */
2023-11-29 11:07:23 +00:00
-11, /* (332) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_opt INTERVAL NK_LP duration_literal NK_RP */
-4, /* (333) cmd ::= DROP TSMA exists_opt full_tsma_name */
-4, /* (334) cmd ::= SHOW CREATE TSMA full_tsma_name */
-3, /* (335) cmd ::= SHOW db_name_cond_opt TSMAS */
-1, /* (336) full_tsma_name ::= tsma_name */
-3, /* (337) full_tsma_name ::= db_name NK_DOT tsma_name */
0, /* (338) tsma_opt ::= */
-8, /* (339) tsma_opt ::= FUNCTION NK_LP tsma_func_list NK_RP COLUMN NK_LP col_name_list NK_RP */
-1, /* (340) tsma_func_list ::= tsma_func_name */
-3, /* (341) tsma_func_list ::= tsma_func_list NK_COMMA tsma_func_name */
-1, /* (342) tsma_func_name ::= sma_func_name */
-8, /* (343) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
-9, /* (344) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
-4, /* (345) cmd ::= DROP INDEX exists_opt full_index_name */
-1, /* (346) full_index_name ::= index_name */
-3, /* (347) full_index_name ::= db_name NK_DOT index_name */
-10, /* (348) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
-12, /* (349) 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, /* (350) func_list ::= func */
-3, /* (351) func_list ::= func_list NK_COMMA func */
-4, /* (352) func ::= sma_func_name NK_LP expression_list NK_RP */
-1, /* (353) sma_func_name ::= function_name */
-1, /* (354) sma_func_name ::= COUNT */
-1, /* (355) sma_func_name ::= FIRST */
-1, /* (356) sma_func_name ::= LAST */
-1, /* (357) sma_func_name ::= LAST_ROW */
0, /* (358) sma_stream_opt ::= */
-3, /* (359) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
-3, /* (360) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
-3, /* (361) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
-1, /* (362) with_meta ::= AS */
-3, /* (363) with_meta ::= WITH META AS */
-3, /* (364) with_meta ::= ONLY META AS */
-6, /* (365) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
-7, /* (366) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
-8, /* (367) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
-4, /* (368) cmd ::= DROP TOPIC exists_opt topic_name */
-7, /* (369) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
-2, /* (370) cmd ::= DESC full_table_name */
-2, /* (371) cmd ::= DESCRIBE full_table_name */
-3, /* (372) cmd ::= RESET QUERY CACHE */
-4, /* (373) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
-4, /* (374) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
0, /* (375) analyze_opt ::= */
-1, /* (376) analyze_opt ::= ANALYZE */
0, /* (377) explain_options ::= */
-3, /* (378) explain_options ::= explain_options VERBOSE NK_BOOL */
-3, /* (379) explain_options ::= explain_options RATIO NK_FLOAT */
-12, /* (380) 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, /* (381) cmd ::= DROP FUNCTION exists_opt function_name */
0, /* (382) agg_func_opt ::= */
-1, /* (383) agg_func_opt ::= AGGREGATE */
0, /* (384) bufsize_opt ::= */
-2, /* (385) bufsize_opt ::= BUFSIZE NK_INTEGER */
0, /* (386) language_opt ::= */
-2, /* (387) language_opt ::= LANGUAGE NK_STRING */
0, /* (388) or_replace_opt ::= */
-2, /* (389) or_replace_opt ::= OR REPLACE */
-6, /* (390) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
-4, /* (391) cmd ::= DROP VIEW exists_opt full_view_name */
-1, /* (392) full_view_name ::= view_name */
-3, /* (393) full_view_name ::= db_name NK_DOT view_name */
-12, /* (394) 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, /* (395) cmd ::= DROP STREAM exists_opt stream_name */
-4, /* (396) cmd ::= PAUSE STREAM exists_opt stream_name */
-5, /* (397) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
0, /* (398) col_list_opt ::= */
-3, /* (399) col_list_opt ::= NK_LP column_stream_def_list NK_RP */
-1, /* (400) column_stream_def_list ::= column_stream_def */
-3, /* (401) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */
-1, /* (402) column_stream_def ::= column_name */
-3, /* (403) column_stream_def ::= column_name PRIMARY KEY */
0, /* (404) tag_def_or_ref_opt ::= */
-1, /* (405) tag_def_or_ref_opt ::= tags_def */
-4, /* (406) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */
0, /* (407) stream_options ::= */
-3, /* (408) stream_options ::= stream_options TRIGGER AT_ONCE */
-3, /* (409) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
-4, /* (410) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
-3, /* (411) stream_options ::= stream_options WATERMARK duration_literal */
-4, /* (412) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
-3, /* (413) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
-3, /* (414) stream_options ::= stream_options DELETE_MARK duration_literal */
-4, /* (415) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
0, /* (416) subtable_opt ::= */
-4, /* (417) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
0, /* (418) ignore_opt ::= */
-2, /* (419) ignore_opt ::= IGNORE UNTREATED */
-3, /* (420) cmd ::= KILL CONNECTION NK_INTEGER */
-3, /* (421) cmd ::= KILL QUERY NK_STRING */
-3, /* (422) cmd ::= KILL TRANSACTION NK_INTEGER */
-3, /* (423) cmd ::= KILL COMPACT NK_INTEGER */
-2, /* (424) cmd ::= BALANCE VGROUP */
-4, /* (425) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
-4, /* (426) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
-4, /* (427) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
-3, /* (428) cmd ::= SPLIT VGROUP NK_INTEGER */
0, /* (429) on_vgroup_id ::= */
-2, /* (430) on_vgroup_id ::= ON NK_INTEGER */
-2, /* (431) dnode_list ::= DNODE NK_INTEGER */
-3, /* (432) dnode_list ::= dnode_list DNODE NK_INTEGER */
-4, /* (433) cmd ::= DELETE FROM full_table_name where_clause_opt */
-1, /* (434) cmd ::= query_or_subquery */
-1, /* (435) cmd ::= insert_query */
-7, /* (436) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
-4, /* (437) insert_query ::= INSERT INTO full_table_name query_or_subquery */
-1, /* (438) tags_literal ::= NK_INTEGER */
-3, /* (439) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
-3, /* (440) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */
-2, /* (441) tags_literal ::= NK_PLUS NK_INTEGER */
-4, /* (442) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
-4, /* (443) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */
-2, /* (444) tags_literal ::= NK_MINUS NK_INTEGER */
-4, /* (445) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */
-4, /* (446) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */
-1, /* (447) tags_literal ::= NK_FLOAT */
-2, /* (448) tags_literal ::= NK_PLUS NK_FLOAT */
-2, /* (449) tags_literal ::= NK_MINUS NK_FLOAT */
-1, /* (450) tags_literal ::= NK_BIN */
-3, /* (451) tags_literal ::= NK_BIN NK_PLUS duration_literal */
-3, /* (452) tags_literal ::= NK_BIN NK_MINUS duration_literal */
-2, /* (453) tags_literal ::= NK_PLUS NK_BIN */
-4, /* (454) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */
-4, /* (455) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */
-2, /* (456) tags_literal ::= NK_MINUS NK_BIN */
-4, /* (457) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */
-4, /* (458) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */
-1, /* (459) tags_literal ::= NK_HEX */
-3, /* (460) tags_literal ::= NK_HEX NK_PLUS duration_literal */
-3, /* (461) tags_literal ::= NK_HEX NK_MINUS duration_literal */
-2, /* (462) tags_literal ::= NK_PLUS NK_HEX */
-4, /* (463) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */
-4, /* (464) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */
-2, /* (465) tags_literal ::= NK_MINUS NK_HEX */
-4, /* (466) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */
-4, /* (467) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */
-1, /* (468) tags_literal ::= NK_STRING */
-3, /* (469) tags_literal ::= NK_STRING NK_PLUS duration_literal */
-3, /* (470) tags_literal ::= NK_STRING NK_MINUS duration_literal */
-1, /* (471) tags_literal ::= NK_BOOL */
-1, /* (472) tags_literal ::= NULL */
-1, /* (473) tags_literal ::= literal_func */
-3, /* (474) tags_literal ::= literal_func NK_PLUS duration_literal */
-3, /* (475) tags_literal ::= literal_func NK_MINUS duration_literal */
-1, /* (476) tags_literal_list ::= tags_literal */
-3, /* (477) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
-1, /* (478) literal ::= NK_INTEGER */
-1, /* (479) literal ::= NK_FLOAT */
-1, /* (480) literal ::= NK_STRING */
-1, /* (481) literal ::= NK_BOOL */
-2, /* (482) literal ::= TIMESTAMP NK_STRING */
-1, /* (483) literal ::= duration_literal */
-1, /* (484) literal ::= NULL */
-1, /* (485) literal ::= NK_QUESTION */
-1, /* (486) duration_literal ::= NK_VARIABLE */
-1, /* (487) signed ::= NK_INTEGER */
-2, /* (488) signed ::= NK_PLUS NK_INTEGER */
-2, /* (489) signed ::= NK_MINUS NK_INTEGER */
-1, /* (490) signed ::= NK_FLOAT */
-2, /* (491) signed ::= NK_PLUS NK_FLOAT */
-2, /* (492) signed ::= NK_MINUS NK_FLOAT */
-1, /* (493) signed_literal ::= signed */
-1, /* (494) signed_literal ::= NK_STRING */
-1, /* (495) signed_literal ::= NK_BOOL */
-2, /* (496) signed_literal ::= TIMESTAMP NK_STRING */
-1, /* (497) signed_literal ::= duration_literal */
-1, /* (498) signed_literal ::= NULL */
-1, /* (499) signed_literal ::= literal_func */
-1, /* (500) signed_literal ::= NK_QUESTION */
-1, /* (501) literal_list ::= signed_literal */
-3, /* (502) literal_list ::= literal_list NK_COMMA signed_literal */
-1, /* (503) db_name ::= NK_ID */
-1, /* (504) table_name ::= NK_ID */
-1, /* (505) column_name ::= NK_ID */
-1, /* (506) function_name ::= NK_ID */
-1, /* (507) view_name ::= NK_ID */
-1, /* (508) table_alias ::= NK_ID */
-1, /* (509) column_alias ::= NK_ID */
-1, /* (510) column_alias ::= NK_ALIAS */
-1, /* (511) user_name ::= NK_ID */
-1, /* (512) topic_name ::= NK_ID */
-1, /* (513) stream_name ::= NK_ID */
-1, /* (514) cgroup_name ::= NK_ID */
-1, /* (515) index_name ::= NK_ID */
-1, /* (516) tsma_name ::= NK_ID */
-1, /* (517) expr_or_subquery ::= expression */
-1, /* (518) expression ::= literal */
-1, /* (519) expression ::= pseudo_column */
-1, /* (520) expression ::= column_reference */
-1, /* (521) expression ::= function_expression */
-1, /* (522) expression ::= case_when_expression */
-3, /* (523) expression ::= NK_LP expression NK_RP */
-2, /* (524) expression ::= NK_PLUS expr_or_subquery */
-2, /* (525) expression ::= NK_MINUS expr_or_subquery */
-3, /* (526) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
-3, /* (527) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
-3, /* (528) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
-3, /* (529) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
-3, /* (530) expression ::= expr_or_subquery NK_REM expr_or_subquery */
-3, /* (531) expression ::= column_reference NK_ARROW NK_STRING */
-3, /* (532) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
-3, /* (533) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
-1, /* (534) expression_list ::= expr_or_subquery */
-3, /* (535) expression_list ::= expression_list NK_COMMA expr_or_subquery */
-1, /* (536) column_reference ::= column_name */
-3, /* (537) column_reference ::= table_name NK_DOT column_name */
-1, /* (538) column_reference ::= NK_ALIAS */
-3, /* (539) column_reference ::= table_name NK_DOT NK_ALIAS */
-1, /* (540) pseudo_column ::= ROWTS */
-1, /* (541) pseudo_column ::= TBNAME */
-3, /* (542) pseudo_column ::= table_name NK_DOT TBNAME */
-1, /* (543) pseudo_column ::= QSTART */
-1, /* (544) pseudo_column ::= QEND */
-1, /* (545) pseudo_column ::= QDURATION */
-1, /* (546) pseudo_column ::= WSTART */
-1, /* (547) pseudo_column ::= WEND */
-1, /* (548) pseudo_column ::= WDURATION */
-1, /* (549) pseudo_column ::= IROWTS */
-1, /* (550) pseudo_column ::= ISFILLED */
-1, /* (551) pseudo_column ::= QTAGS */
-4, /* (552) function_expression ::= function_name NK_LP expression_list NK_RP */
-4, /* (553) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
-6, /* (554) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
-6, /* (555) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */
-1, /* (556) function_expression ::= literal_func */
-3, /* (557) literal_func ::= noarg_func NK_LP NK_RP */
-1, /* (558) literal_func ::= NOW */
-1, /* (559) literal_func ::= TODAY */
-1, /* (560) noarg_func ::= NOW */
-1, /* (561) noarg_func ::= TODAY */
-1, /* (562) noarg_func ::= TIMEZONE */
-1, /* (563) noarg_func ::= DATABASE */
-1, /* (564) noarg_func ::= CLIENT_VERSION */
-1, /* (565) noarg_func ::= SERVER_VERSION */
-1, /* (566) noarg_func ::= SERVER_STATUS */
-1, /* (567) noarg_func ::= CURRENT_USER */
-1, /* (568) noarg_func ::= USER */
-1, /* (569) star_func ::= COUNT */
-1, /* (570) star_func ::= FIRST */
-1, /* (571) star_func ::= LAST */
-1, /* (572) star_func ::= LAST_ROW */
-1, /* (573) star_func_para_list ::= NK_STAR */
-1, /* (574) star_func_para_list ::= other_para_list */
-1, /* (575) other_para_list ::= star_func_para */
-3, /* (576) other_para_list ::= other_para_list NK_COMMA star_func_para */
-1, /* (577) star_func_para ::= expr_or_subquery */
-3, /* (578) star_func_para ::= table_name NK_DOT NK_STAR */
-4, /* (579) case_when_expression ::= CASE when_then_list case_when_else_opt END */
-5, /* (580) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
-1, /* (581) when_then_list ::= when_then_expr */
-2, /* (582) when_then_list ::= when_then_list when_then_expr */
-4, /* (583) when_then_expr ::= WHEN common_expression THEN common_expression */
0, /* (584) case_when_else_opt ::= */
-2, /* (585) case_when_else_opt ::= ELSE common_expression */
-3, /* (586) predicate ::= expr_or_subquery compare_op expr_or_subquery */
-5, /* (587) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
-6, /* (588) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
-3, /* (589) predicate ::= expr_or_subquery IS NULL */
-4, /* (590) predicate ::= expr_or_subquery IS NOT NULL */
-3, /* (591) predicate ::= expr_or_subquery in_op in_predicate_value */
-1, /* (592) compare_op ::= NK_LT */
-1, /* (593) compare_op ::= NK_GT */
-1, /* (594) compare_op ::= NK_LE */
-1, /* (595) compare_op ::= NK_GE */
-1, /* (596) compare_op ::= NK_NE */
-1, /* (597) compare_op ::= NK_EQ */
-1, /* (598) compare_op ::= LIKE */
-2, /* (599) compare_op ::= NOT LIKE */
-1, /* (600) compare_op ::= MATCH */
-1, /* (601) compare_op ::= NMATCH */
-1, /* (602) compare_op ::= CONTAINS */
-1, /* (603) in_op ::= IN */
-2, /* (604) in_op ::= NOT IN */
-3, /* (605) in_predicate_value ::= NK_LP literal_list NK_RP */
-1, /* (606) boolean_value_expression ::= boolean_primary */
-2, /* (607) boolean_value_expression ::= NOT boolean_primary */
-3, /* (608) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
-3, /* (609) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
-1, /* (610) boolean_primary ::= predicate */
-3, /* (611) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
-1, /* (612) common_expression ::= expr_or_subquery */
-1, /* (613) common_expression ::= boolean_value_expression */
0, /* (614) from_clause_opt ::= */
-2, /* (615) from_clause_opt ::= FROM table_reference_list */
-1, /* (616) table_reference_list ::= table_reference */
-3, /* (617) table_reference_list ::= table_reference_list NK_COMMA table_reference */
-1, /* (618) table_reference ::= table_primary */
-1, /* (619) table_reference ::= joined_table */
-2, /* (620) table_primary ::= table_name alias_opt */
-4, /* (621) table_primary ::= db_name NK_DOT table_name alias_opt */
-2, /* (622) table_primary ::= subquery alias_opt */
-1, /* (623) table_primary ::= parenthesized_joined_table */
0, /* (624) alias_opt ::= */
-1, /* (625) alias_opt ::= table_alias */
-2, /* (626) alias_opt ::= AS table_alias */
-3, /* (627) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
-3, /* (628) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
-8, /* (629) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */
0, /* (630) join_type ::= */
-1, /* (631) join_type ::= INNER */
-1, /* (632) join_type ::= LEFT */
-1, /* (633) join_type ::= RIGHT */
-1, /* (634) join_type ::= FULL */
0, /* (635) join_subtype ::= */
-1, /* (636) join_subtype ::= OUTER */
-1, /* (637) join_subtype ::= SEMI */
-1, /* (638) join_subtype ::= ANTI */
-1, /* (639) join_subtype ::= ASOF */
-1, /* (640) join_subtype ::= WINDOW */
0, /* (641) join_on_clause_opt ::= */
-2, /* (642) join_on_clause_opt ::= ON search_condition */
0, /* (643) window_offset_clause_opt ::= */
-6, /* (644) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */
-1, /* (645) window_offset_literal ::= NK_VARIABLE */
-2, /* (646) window_offset_literal ::= NK_MINUS NK_VARIABLE */
0, /* (647) jlimit_clause_opt ::= */
-2, /* (648) jlimit_clause_opt ::= JLIMIT NK_INTEGER */
-14, /* (649) 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, /* (650) hint_list ::= */
-1, /* (651) hint_list ::= NK_HINT */
0, /* (652) tag_mode_opt ::= */
-1, /* (653) tag_mode_opt ::= TAGS */
0, /* (654) set_quantifier_opt ::= */
-1, /* (655) set_quantifier_opt ::= DISTINCT */
-1, /* (656) set_quantifier_opt ::= ALL */
-1, /* (657) select_list ::= select_item */
-3, /* (658) select_list ::= select_list NK_COMMA select_item */
-1, /* (659) select_item ::= NK_STAR */
-1, /* (660) select_item ::= common_expression */
-2, /* (661) select_item ::= common_expression column_alias */
-3, /* (662) select_item ::= common_expression AS column_alias */
-3, /* (663) select_item ::= table_name NK_DOT NK_STAR */
0, /* (664) where_clause_opt ::= */
-2, /* (665) where_clause_opt ::= WHERE search_condition */
0, /* (666) partition_by_clause_opt ::= */
-3, /* (667) partition_by_clause_opt ::= PARTITION BY partition_list */
-1, /* (668) partition_list ::= partition_item */
-3, /* (669) partition_list ::= partition_list NK_COMMA partition_item */
-1, /* (670) partition_item ::= expr_or_subquery */
-2, /* (671) partition_item ::= expr_or_subquery column_alias */
-3, /* (672) partition_item ::= expr_or_subquery AS column_alias */
0, /* (673) twindow_clause_opt ::= */
-6, /* (674) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
-4, /* (675) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
-6, /* (676) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-8, /* (677) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
-7, /* (678) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
-4, /* (679) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
-6, /* (680) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
0, /* (681) sliding_opt ::= */
-4, /* (682) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
-1, /* (683) interval_sliding_duration_literal ::= NK_VARIABLE */
-1, /* (684) interval_sliding_duration_literal ::= NK_STRING */
-1, /* (685) interval_sliding_duration_literal ::= NK_INTEGER */
0, /* (686) fill_opt ::= */
-4, /* (687) fill_opt ::= FILL NK_LP fill_mode NK_RP */
-6, /* (688) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
-6, /* (689) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
-1, /* (690) fill_mode ::= NONE */
-1, /* (691) fill_mode ::= PREV */
-1, /* (692) fill_mode ::= NULL */
-1, /* (693) fill_mode ::= NULL_F */
-1, /* (694) fill_mode ::= LINEAR */
-1, /* (695) fill_mode ::= NEXT */
0, /* (696) group_by_clause_opt ::= */
-3, /* (697) group_by_clause_opt ::= GROUP BY group_by_list */
-1, /* (698) group_by_list ::= expr_or_subquery */
-3, /* (699) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
0, /* (700) having_clause_opt ::= */
-2, /* (701) having_clause_opt ::= HAVING search_condition */
0, /* (702) range_opt ::= */
-6, /* (703) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
-4, /* (704) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
0, /* (705) every_opt ::= */
-4, /* (706) every_opt ::= EVERY NK_LP duration_literal NK_RP */
-4, /* (707) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
-1, /* (708) query_simple ::= query_specification */
-1, /* (709) query_simple ::= union_query_expression */
-4, /* (710) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
-3, /* (711) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
-1, /* (712) query_simple_or_subquery ::= query_simple */
-1, /* (713) query_simple_or_subquery ::= subquery */
-1, /* (714) query_or_subquery ::= query_expression */
-1, /* (715) query_or_subquery ::= subquery */
0, /* (716) order_by_clause_opt ::= */
-3, /* (717) order_by_clause_opt ::= ORDER BY sort_specification_list */
0, /* (718) slimit_clause_opt ::= */
-2, /* (719) slimit_clause_opt ::= SLIMIT NK_INTEGER */
-4, /* (720) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
-4, /* (721) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
0, /* (722) limit_clause_opt ::= */
-2, /* (723) limit_clause_opt ::= LIMIT NK_INTEGER */
-4, /* (724) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
-4, /* (725) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
-3, /* (726) subquery ::= NK_LP query_expression NK_RP */
-3, /* (727) subquery ::= NK_LP subquery NK_RP */
-1, /* (728) search_condition ::= common_expression */
-1, /* (729) sort_specification_list ::= sort_specification */
-3, /* (730) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
-3, /* (731) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
0, /* (732) ordering_specification_opt ::= */
-1, /* (733) ordering_specification_opt ::= ASC */
-1, /* (734) ordering_specification_opt ::= DESC */
0, /* (735) null_ordering_opt ::= */
-2, /* (736) null_ordering_opt ::= NULLS FIRST */
-2, /* (737) null_ordering_opt ::= NULLS LAST */
};
static void yy_accept(yyParser*); /* Forward Declaration */
/*
** Perform a reduce action and the shift that must immediately
** follow the reduce.
**
** The yyLookahead and yyLookaheadToken parameters provide reduce actions
** access to the lookahead token (if any). The yyLookahead will be YYNOCODE
** if the lookahead token has already been consumed. As this procedure is
** only called from one place, optimizing compilers will in-line it, which
** means that the extra parameters have no performance impact.
*/
static YYACTIONTYPE yy_reduce(
yyParser *yypParser, /* The parser */
unsigned int yyruleno, /* Number of the rule by which to reduce */
int yyLookahead, /* Lookahead token, or YYNOCODE if none */
2022-03-10 07:36:06 +00:00
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 */
2022-03-10 07:36:06 +00:00
ParseARG_FETCH
(void)yyLookahead;
(void)yyLookaheadToken;
yymsp = yypParser->yytos;
2023-11-29 11:07:23 +00:00
assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) );
2023-09-20 11:30:40 +00:00
#ifndef NDEBUG
2023-11-29 11:07:23 +00:00
if( yyTraceFILE ){
2023-09-20 11:30:40 +00:00
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",
yymsp[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);
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return 0;
}
#else
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
if( yyGrowStack(yypParser) ){
yyStackOverflow(yypParser);
/* The call to yyStackOverflow() above pops the stack until it is
** empty, causing the main parser loop to exit. So the return value
** is never used and does not matter. */
return 0;
}
yymsp = yypParser->yytos;
}
#endif
}
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 */
2023-11-29 11:07:23 +00:00
#line 50 "sql.y"
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
2023-11-29 11:07:23 +00:00
#line 5545 "sql.c"
yy_destructor(yypParser,370,&yymsp[0].minor);
break;
case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
2023-11-29 11:07:23 +00:00
#line 51 "sql.y"
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
2023-11-29 11:07:23 +00:00
#line 5551 "sql.c"
yy_destructor(yypParser,371,&yymsp[0].minor);
break;
case 2: /* account_options ::= */
2023-11-29 11:07:23 +00:00
#line 55 "sql.y"
{ }
2023-11-29 11:07:23 +00:00
#line 5557 "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);
2023-11-29 11:07:23 +00:00
{ yy_destructor(yypParser,370,&yymsp[-2].minor);
#line 56 "sql.y"
{ }
2023-11-29 11:07:23 +00:00
#line 5571 "sql.c"
yy_destructor(yypParser,372,&yymsp[0].minor);
}
break;
case 12: /* alter_account_options ::= alter_account_option */
2023-11-29 11:07:23 +00:00
{ yy_destructor(yypParser,373,&yymsp[0].minor);
#line 68 "sql.y"
{ }
2023-11-29 11:07:23 +00:00
#line 5579 "sql.c"
}
break;
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
2023-11-29 11:07:23 +00:00
{ yy_destructor(yypParser,371,&yymsp[-1].minor);
#line 69 "sql.y"
{ }
2023-11-29 11:07:23 +00:00
#line 5586 "sql.c"
yy_destructor(yypParser,373,&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);
2023-11-29 11:07:23 +00:00
#line 73 "sql.y"
{ }
2023-11-29 11:07:23 +00:00
#line 5602 "sql.c"
yy_destructor(yypParser,372,&yymsp[0].minor);
2023-05-16 01:50:10 +00:00
break;
2023-08-24 07:54:10 +00:00
case 24: /* ip_range_list ::= NK_STRING */
2023-11-29 11:07:23 +00:00
#line 86 "sql.y"
{ yylhsminor.yy694 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
#line 5608 "sql.c"
yymsp[0].minor.yy694 = yylhsminor.yy694;
2023-08-24 07:54:10 +00:00
break;
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
2023-11-29 11:07:23 +00:00
#line 87 "sql.y"
{ yylhsminor.yy694 = addNodeToList(pCxt, yymsp[-2].minor.yy694, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
#line 5614 "sql.c"
yymsp[-2].minor.yy694 = yylhsminor.yy694;
2023-08-24 07:54:10 +00:00
break;
case 26: /* white_list ::= HOST ip_range_list */
2023-11-29 11:07:23 +00:00
#line 91 "sql.y"
{ yymsp[-1].minor.yy694 = yymsp[0].minor.yy694; }
#line 5620 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 27: /* white_list_opt ::= */
2024-04-08 02:55:47 +00:00
case 196: /* specific_cols_opt ::= */ yytestcase(yyruleno==196);
case 232: /* tags_def_opt ::= */ yytestcase(yyruleno==232);
case 321: /* tag_list_opt ::= */ yytestcase(yyruleno==321);
2023-11-29 11:07:23 +00:00
case 398: /* col_list_opt ::= */ yytestcase(yyruleno==398);
case 404: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==404);
case 666: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==666);
case 696: /* group_by_clause_opt ::= */ yytestcase(yyruleno==696);
case 716: /* order_by_clause_opt ::= */ yytestcase(yyruleno==716);
#line 95 "sql.y"
{ yymsp[1].minor.yy694 = NULL; }
#line 5633 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 28: /* white_list_opt ::= white_list */
case 233: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==233);
2023-11-29 11:07:23 +00:00
case 405: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==405);
case 574: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==574);
#line 96 "sql.y"
{ yylhsminor.yy694 = yymsp[0].minor.yy694; }
#line 5641 "sql.c"
yymsp[0].minor.yy694 = yylhsminor.yy694;
2023-08-24 07:54:10 +00:00
break;
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
2023-11-29 11:07:23 +00:00
#line 100 "sql.y"
{
2023-11-29 11:07:23 +00:00
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy659, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy173);
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy694);
2023-08-24 07:54:10 +00:00
}
2023-11-29 11:07:23 +00:00
#line 5650 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
2023-11-29 11:07:23 +00:00
#line 104 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy659, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
#line 5655 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 105 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy659, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
#line 5660 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 106 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy659, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
#line 5665 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
2023-11-29 11:07:23 +00:00
#line 107 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy659, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy694); }
#line 5670 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
2023-11-29 11:07:23 +00:00
#line 108 "sql.y"
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy659, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy694); }
#line 5675 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 35: /* cmd ::= DROP USER user_name */
2023-11-29 11:07:23 +00:00
#line 109 "sql.y"
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy659); }
#line 5680 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 36: /* sysinfo_opt ::= */
2023-11-29 11:07:23 +00:00
#line 113 "sql.y"
{ yymsp[1].minor.yy173 = 1; }
#line 5685 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 114 "sql.y"
{ yymsp[-1].minor.yy173 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
#line 5690 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
2023-11-29 11:07:23 +00:00
#line 117 "sql.y"
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy729, &yymsp[-3].minor.yy967, &yymsp[0].minor.yy659, yymsp[-2].minor.yy722); }
#line 5695 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
2023-11-29 11:07:23 +00:00
#line 118 "sql.y"
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy729, &yymsp[-3].minor.yy967, &yymsp[0].minor.yy659, yymsp[-2].minor.yy722); }
#line 5700 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 40: /* privileges ::= ALL */
2023-11-29 11:07:23 +00:00
#line 122 "sql.y"
{ yymsp[0].minor.yy729 = PRIVILEGE_TYPE_ALL; }
#line 5705 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 41: /* privileges ::= priv_type_list */
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
2023-11-29 11:07:23 +00:00
#line 123 "sql.y"
{ yylhsminor.yy729 = yymsp[0].minor.yy729; }
#line 5711 "sql.c"
yymsp[0].minor.yy729 = yylhsminor.yy729;
2023-08-24 07:54:10 +00:00
break;
case 42: /* privileges ::= SUBSCRIBE */
2023-11-29 11:07:23 +00:00
#line 124 "sql.y"
{ yymsp[0].minor.yy729 = PRIVILEGE_TYPE_SUBSCRIBE; }
#line 5717 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
2023-11-29 11:07:23 +00:00
#line 129 "sql.y"
{ yylhsminor.yy729 = yymsp[-2].minor.yy729 | yymsp[0].minor.yy729; }
#line 5722 "sql.c"
yymsp[-2].minor.yy729 = yylhsminor.yy729;
2023-08-24 07:54:10 +00:00
break;
case 45: /* priv_type ::= READ */
2023-11-29 11:07:23 +00:00
#line 133 "sql.y"
{ yymsp[0].minor.yy729 = PRIVILEGE_TYPE_READ; }
#line 5728 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 46: /* priv_type ::= WRITE */
2023-11-29 11:07:23 +00:00
#line 134 "sql.y"
{ yymsp[0].minor.yy729 = PRIVILEGE_TYPE_WRITE; }
#line 5733 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 47: /* priv_type ::= ALTER */
2023-11-29 11:07:23 +00:00
#line 135 "sql.y"
{ yymsp[0].minor.yy729 = PRIVILEGE_TYPE_ALTER; }
#line 5738 "sql.c"
break;
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
2023-11-29 11:07:23 +00:00
#line 139 "sql.y"
{ yylhsminor.yy967.first = yymsp[-2].minor.yy0; yylhsminor.yy967.second = yymsp[0].minor.yy0; }
#line 5743 "sql.c"
yymsp[-2].minor.yy967 = yylhsminor.yy967;
2023-08-24 07:54:10 +00:00
break;
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
2023-11-29 11:07:23 +00:00
#line 140 "sql.y"
{ yylhsminor.yy967.first = yymsp[-2].minor.yy659; yylhsminor.yy967.second = yymsp[0].minor.yy0; }
#line 5749 "sql.c"
yymsp[-2].minor.yy967 = yylhsminor.yy967;
2023-08-24 07:54:10 +00:00
break;
case 50: /* priv_level ::= db_name NK_DOT table_name */
2023-11-29 11:07:23 +00:00
#line 141 "sql.y"
{ yylhsminor.yy967.first = yymsp[-2].minor.yy659; yylhsminor.yy967.second = yymsp[0].minor.yy659; }
#line 5755 "sql.c"
yymsp[-2].minor.yy967 = yylhsminor.yy967;
2023-08-24 07:54:10 +00:00
break;
case 51: /* priv_level ::= topic_name */
2023-11-29 11:07:23 +00:00
#line 142 "sql.y"
{ yylhsminor.yy967.first = yymsp[0].minor.yy659; yylhsminor.yy967.second = nil_token; }
#line 5761 "sql.c"
yymsp[0].minor.yy967 = yylhsminor.yy967;
2023-08-24 07:54:10 +00:00
break;
case 52: /* with_opt ::= */
2024-04-08 02:55:47 +00:00
case 165: /* start_opt ::= */ yytestcase(yyruleno==165);
case 169: /* end_opt ::= */ yytestcase(yyruleno==169);
case 316: /* like_pattern_opt ::= */ yytestcase(yyruleno==316);
2023-11-29 11:07:23 +00:00
case 416: /* subtable_opt ::= */ yytestcase(yyruleno==416);
case 584: /* case_when_else_opt ::= */ yytestcase(yyruleno==584);
case 614: /* from_clause_opt ::= */ yytestcase(yyruleno==614);
case 641: /* join_on_clause_opt ::= */ yytestcase(yyruleno==641);
case 643: /* window_offset_clause_opt ::= */ yytestcase(yyruleno==643);
case 647: /* jlimit_clause_opt ::= */ yytestcase(yyruleno==647);
case 664: /* where_clause_opt ::= */ yytestcase(yyruleno==664);
case 673: /* twindow_clause_opt ::= */ yytestcase(yyruleno==673);
case 681: /* sliding_opt ::= */ yytestcase(yyruleno==681);
case 686: /* fill_opt ::= */ yytestcase(yyruleno==686);
case 700: /* having_clause_opt ::= */ yytestcase(yyruleno==700);
case 702: /* range_opt ::= */ yytestcase(yyruleno==702);
case 705: /* every_opt ::= */ yytestcase(yyruleno==705);
case 718: /* slimit_clause_opt ::= */ yytestcase(yyruleno==718);
case 722: /* limit_clause_opt ::= */ yytestcase(yyruleno==722);
#line 144 "sql.y"
{ yymsp[1].minor.yy722 = NULL; }
#line 5785 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 53: /* with_opt ::= WITH search_condition */
2023-11-29 11:07:23 +00:00
case 615: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==615);
case 642: /* join_on_clause_opt ::= ON search_condition */ yytestcase(yyruleno==642);
case 665: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==665);
case 701: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==701);
#line 145 "sql.y"
{ yymsp[-1].minor.yy722 = yymsp[0].minor.yy722; }
#line 5794 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
2023-11-29 11:07:23 +00:00
#line 148 "sql.y"
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy659, NULL); }
#line 5799 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 149 "sql.y"
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0); }
#line 5804 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
2023-11-29 11:07:23 +00:00
#line 150 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy897, false); }
#line 5809 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
2023-11-29 11:07:23 +00:00
#line 151 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy659, yymsp[0].minor.yy897, false); }
#line 5814 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
2023-11-29 11:07:23 +00:00
#line 152 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy897); }
#line 5819 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
2023-11-29 11:07:23 +00:00
#line 153 "sql.y"
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy659, false, yymsp[0].minor.yy897); }
#line 5824 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
2023-11-29 11:07:23 +00:00
#line 154 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
2023-11-29 11:07:23 +00:00
#line 5829 "sql.c"
break;
case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
2023-11-29 11:07:23 +00:00
#line 155 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5834 "sql.c"
break;
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */
2023-11-29 11:07:23 +00:00
#line 156 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
2023-11-29 11:07:23 +00:00
#line 5839 "sql.c"
break;
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
2023-11-29 11:07:23 +00:00
#line 157 "sql.y"
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5844 "sql.c"
break;
case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 158 "sql.y"
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5849 "sql.c"
2023-08-24 07:54:10 +00:00
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);
2023-11-29 11:07:23 +00:00
case 354: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==354);
case 355: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==355);
case 356: /* sma_func_name ::= LAST */ yytestcase(yyruleno==356);
case 357: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==357);
case 503: /* db_name ::= NK_ID */ yytestcase(yyruleno==503);
case 504: /* table_name ::= NK_ID */ yytestcase(yyruleno==504);
case 505: /* column_name ::= NK_ID */ yytestcase(yyruleno==505);
case 506: /* function_name ::= NK_ID */ yytestcase(yyruleno==506);
case 507: /* view_name ::= NK_ID */ yytestcase(yyruleno==507);
case 508: /* table_alias ::= NK_ID */ yytestcase(yyruleno==508);
case 509: /* column_alias ::= NK_ID */ yytestcase(yyruleno==509);
case 510: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==510);
case 511: /* user_name ::= NK_ID */ yytestcase(yyruleno==511);
case 512: /* topic_name ::= NK_ID */ yytestcase(yyruleno==512);
case 513: /* stream_name ::= NK_ID */ yytestcase(yyruleno==513);
case 514: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==514);
case 515: /* index_name ::= NK_ID */ yytestcase(yyruleno==515);
case 516: /* tsma_name ::= NK_ID */ yytestcase(yyruleno==516);
case 560: /* noarg_func ::= NOW */ yytestcase(yyruleno==560);
case 561: /* noarg_func ::= TODAY */ yytestcase(yyruleno==561);
case 562: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==562);
case 563: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==563);
case 564: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==564);
case 565: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==565);
case 566: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==566);
case 567: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==567);
case 568: /* noarg_func ::= USER */ yytestcase(yyruleno==568);
case 569: /* star_func ::= COUNT */ yytestcase(yyruleno==569);
case 570: /* star_func ::= FIRST */ yytestcase(yyruleno==570);
case 571: /* star_func ::= LAST */ yytestcase(yyruleno==571);
case 572: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==572);
#line 162 "sql.y"
{ yylhsminor.yy659 = yymsp[0].minor.yy0; }
#line 5887 "sql.c"
yymsp[0].minor.yy659 = yylhsminor.yy659;
2023-08-24 07:54:10 +00:00
break;
case 68: /* force_opt ::= */
2024-04-08 02:55:47 +00:00
case 95: /* not_exists_opt ::= */ yytestcase(yyruleno==95);
case 97: /* exists_opt ::= */ yytestcase(yyruleno==97);
2023-11-29 11:07:23 +00:00
case 375: /* analyze_opt ::= */ yytestcase(yyruleno==375);
case 382: /* agg_func_opt ::= */ yytestcase(yyruleno==382);
case 388: /* or_replace_opt ::= */ yytestcase(yyruleno==388);
case 418: /* ignore_opt ::= */ yytestcase(yyruleno==418);
case 652: /* tag_mode_opt ::= */ yytestcase(yyruleno==652);
case 654: /* set_quantifier_opt ::= */ yytestcase(yyruleno==654);
#line 168 "sql.y"
{ yymsp[1].minor.yy897 = false; }
#line 5901 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 69: /* force_opt ::= FORCE */
case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70);
2023-11-29 11:07:23 +00:00
case 376: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==376);
case 383: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==383);
case 653: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==653);
case 655: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==655);
#line 169 "sql.y"
{ yymsp[0].minor.yy897 = true; }
#line 5911 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
2023-11-29 11:07:23 +00:00
#line 176 "sql.y"
2023-12-18 08:34:31 +00:00
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
2023-11-29 11:07:23 +00:00
#line 5916 "sql.c"
2023-12-18 08:34:31 +00:00
break;
case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
2023-11-29 11:07:23 +00:00
#line 177 "sql.y"
2023-12-18 08:34:31 +00:00
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5921 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
2023-11-29 11:07:23 +00:00
#line 180 "sql.y"
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
2023-11-29 11:07:23 +00:00
#line 5926 "sql.c"
break;
2023-12-18 08:34:31 +00:00
case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
2023-11-29 11:07:23 +00:00
#line 181 "sql.y"
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5931 "sql.c"
break;
2023-12-18 08:34:31 +00:00
case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 184 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5936 "sql.c"
2022-03-15 12:04:52 +00:00
break;
2023-12-18 08:34:31 +00:00
case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 185 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5941 "sql.c"
break;
2023-12-18 08:34:31 +00:00
case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 186 "sql.y"
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5946 "sql.c"
2023-05-09 11:19:14 +00:00
break;
2023-12-18 08:34:31 +00:00
case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 189 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5951 "sql.c"
2022-03-15 12:04:52 +00:00
break;
2023-12-18 08:34:31 +00:00
case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 190 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5956 "sql.c"
2022-03-15 12:04:52 +00:00
break;
2023-12-18 08:34:31 +00:00
case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 193 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5961 "sql.c"
break;
2023-12-18 08:34:31 +00:00
case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 194 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5966 "sql.c"
break;
2023-12-18 08:34:31 +00:00
case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 197 "sql.y"
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5971 "sql.c"
break;
2023-12-18 08:34:31 +00:00
case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 198 "sql.y"
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5976 "sql.c"
break;
2023-12-18 08:34:31 +00:00
case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 199 "sql.y"
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5981 "sql.c"
2023-05-09 11:19:14 +00:00
break;
2023-12-18 08:34:31 +00:00
case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 202 "sql.y"
2023-05-09 11:19:14 +00:00
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 5986 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 86: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
2023-11-29 11:07:23 +00:00
#line 205 "sql.y"
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy897, &yymsp[-1].minor.yy659, yymsp[0].minor.yy722); }
#line 5991 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 87: /* cmd ::= DROP DATABASE exists_opt db_name */
2023-11-29 11:07:23 +00:00
#line 206 "sql.y"
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy897, &yymsp[0].minor.yy659); }
#line 5996 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 88: /* cmd ::= USE db_name */
2023-11-29 11:07:23 +00:00
#line 207 "sql.y"
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy659); }
#line 6001 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */
2023-11-29 11:07:23 +00:00
#line 208 "sql.y"
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy659, yymsp[0].minor.yy722); }
#line 6006 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 90: /* cmd ::= FLUSH DATABASE db_name */
2023-11-29 11:07:23 +00:00
#line 209 "sql.y"
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy659); }
#line 6011 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2023-12-18 08:34:31 +00:00
case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */
2023-11-29 11:07:23 +00:00
#line 210 "sql.y"
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy659, yymsp[0].minor.yy830); }
#line 6016 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 92: /* cmd ::= S3MIGRATE DATABASE db_name */
2023-11-29 11:07:23 +00:00
#line 211 "sql.y"
{ pCxt->pRootNode = createS3MigrateDatabaseStmt(pCxt, &yymsp[0].minor.yy659); }
#line 6021 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 93: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
2023-11-29 11:07:23 +00:00
#line 212 "sql.y"
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy659, yymsp[-1].minor.yy722, yymsp[0].minor.yy722); }
#line 6026 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 94: /* not_exists_opt ::= IF NOT EXISTS */
2023-11-29 11:07:23 +00:00
#line 216 "sql.y"
{ yymsp[-2].minor.yy897 = true; }
#line 6031 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 96: /* exists_opt ::= IF EXISTS */
2023-11-29 11:07:23 +00:00
case 389: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==389);
case 419: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==419);
#line 221 "sql.y"
{ yymsp[-1].minor.yy897 = true; }
#line 6038 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 98: /* db_options ::= */
2023-11-29 11:07:23 +00:00
#line 224 "sql.y"
{ yymsp[1].minor.yy722 = createDefaultDatabaseOptions(pCxt); }
#line 6043 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 99: /* db_options ::= db_options BUFFER NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 225 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
#line 6048 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 100: /* db_options ::= db_options CACHEMODEL NK_STRING */
2023-11-29 11:07:23 +00:00
#line 226 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
#line 6054 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 101: /* db_options ::= db_options CACHESIZE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 227 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
#line 6060 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 102: /* db_options ::= db_options COMP NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 228 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
#line 6066 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 103: /* db_options ::= db_options DURATION NK_INTEGER */
case 104: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==104);
2023-11-29 11:07:23 +00:00
#line 229 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
#line 6073 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 105: /* db_options ::= db_options MAXROWS NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 231 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
#line 6079 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 106: /* db_options ::= db_options MINROWS NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 232 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
#line 6085 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 107: /* db_options ::= db_options KEEP integer_list */
case 108: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==108);
2023-11-29 11:07:23 +00:00
#line 233 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_KEEP, yymsp[0].minor.yy694); }
#line 6092 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 109: /* db_options ::= db_options PAGES NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 235 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
#line 6098 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 110: /* db_options ::= db_options PAGESIZE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 236 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
#line 6104 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 111: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 237 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
#line 6110 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 112: /* db_options ::= db_options PRECISION NK_STRING */
2023-11-29 11:07:23 +00:00
#line 238 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
#line 6116 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 113: /* db_options ::= db_options REPLICA NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 239 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
#line 6122 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 114: /* db_options ::= db_options VGROUPS NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 241 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
#line 6128 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 115: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 242 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
#line 6134 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 116: /* db_options ::= db_options RETENTIONS retention_list */
2023-11-29 11:07:23 +00:00
#line 243 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_RETENTIONS, yymsp[0].minor.yy694); }
#line 6140 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 117: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 244 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
#line 6146 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 118: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 245 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
#line 6152 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 119: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 246 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
#line 6158 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 120: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 247 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
#line 6164 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 121: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 248 "sql.y"
{
2022-07-25 13:09:06 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-3].minor.yy722, DB_OPTION_WAL_RETENTION_PERIOD, &t);
2022-07-25 13:09:06 +00:00
}
2023-11-29 11:07:23 +00:00
#line 6174 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
2022-07-25 13:09:06 +00:00
break;
2024-04-08 02:55:47 +00:00
case 122: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 253 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
#line 6180 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2022-07-25 13:09:06 +00:00
break;
2024-04-08 02:55:47 +00:00
case 123: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 254 "sql.y"
{
2022-07-25 13:09:06 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-3].minor.yy722, DB_OPTION_WAL_RETENTION_SIZE, &t);
2022-07-25 13:09:06 +00:00
}
2023-11-29 11:07:23 +00:00
#line 6190 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 124: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 259 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
#line 6196 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 125: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 260 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
#line 6202 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 126: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 261 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
#line 6208 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 127: /* db_options ::= db_options TABLE_PREFIX signed */
2023-11-29 11:07:23 +00:00
#line 262 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy722); }
#line 6214 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 128: /* db_options ::= db_options TABLE_SUFFIX signed */
2023-11-29 11:07:23 +00:00
#line 263 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy722); }
#line 6220 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 129: /* db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 264 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_S3_CHUNKSIZE, &yymsp[0].minor.yy0); }
#line 6226 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 130: /* db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */
case 131: /* db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==131);
2023-11-29 11:07:23 +00:00
#line 265 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_S3_KEEPLOCAL, &yymsp[0].minor.yy0); }
#line 6233 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 132: /* db_options ::= db_options S3_COMPACT NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 267 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_S3_COMPACT, &yymsp[0].minor.yy0); }
#line 6239 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 133: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 268 "sql.y"
{ yylhsminor.yy722 = setDatabaseOption(pCxt, yymsp[-2].minor.yy722, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
#line 6245 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 134: /* alter_db_options ::= alter_db_option */
2023-11-29 11:07:23 +00:00
#line 270 "sql.y"
{ yylhsminor.yy722 = createAlterDatabaseOptions(pCxt); yylhsminor.yy722 = setAlterDatabaseOption(pCxt, yylhsminor.yy722, &yymsp[0].minor.yy845); }
#line 6251 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 135: /* alter_db_options ::= alter_db_options alter_db_option */
2023-11-29 11:07:23 +00:00
#line 271 "sql.y"
{ yylhsminor.yy722 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy722, &yymsp[0].minor.yy845); }
#line 6257 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 136: /* alter_db_option ::= BUFFER NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 275 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6263 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 137: /* alter_db_option ::= CACHEMODEL NK_STRING */
2023-11-29 11:07:23 +00:00
#line 276 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6268 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 138: /* alter_db_option ::= CACHESIZE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 277 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6273 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 139: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 278 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6278 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 140: /* alter_db_option ::= KEEP integer_list */
case 141: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==141);
2023-11-29 11:07:23 +00:00
#line 279 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_KEEP; yymsp[-1].minor.yy845.pList = yymsp[0].minor.yy694; }
#line 6284 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 142: /* alter_db_option ::= PAGES NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 281 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_PAGES; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6289 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 143: /* alter_db_option ::= REPLICA NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 282 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6294 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 144: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 284 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6299 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 145: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 285 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6304 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 146: /* alter_db_option ::= MINROWS NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 286 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6309 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 147: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 287 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6314 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 148: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 288 "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;
2023-11-29 11:07:23 +00:00
yymsp[-2].minor.yy845.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy845.val = t;
}
2023-11-29 11:07:23 +00:00
#line 6323 "sql.c"
break;
2024-04-08 02:55:47 +00:00
case 149: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 293 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6328 "sql.c"
break;
2024-04-08 02:55:47 +00:00
case 150: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 294 "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;
2023-11-29 11:07:23 +00:00
yymsp[-2].minor.yy845.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy845.val = t;
}
2023-11-29 11:07:23 +00:00
#line 6337 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 151: /* alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */
case 152: /* alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==152);
2023-11-29 11:07:23 +00:00
#line 299 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_S3_KEEPLOCAL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6343 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 153: /* alter_db_option ::= S3_COMPACT NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 301 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_S3_COMPACT, yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6348 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 154: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 302 "sql.y"
{ yymsp[-1].minor.yy845.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6353 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 155: /* integer_list ::= NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 306 "sql.y"
{ yylhsminor.yy694 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 6358 "sql.c"
yymsp[0].minor.yy694 = yylhsminor.yy694;
2024-04-08 02:55:47 +00:00
break;
case 156: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
2023-11-29 11:07:23 +00:00
case 432: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==432);
#line 307 "sql.y"
{ yylhsminor.yy694 = addNodeToList(pCxt, yymsp[-2].minor.yy694, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 6365 "sql.c"
yymsp[-2].minor.yy694 = yylhsminor.yy694;
2024-04-08 02:55:47 +00:00
break;
case 157: /* variable_list ::= NK_VARIABLE */
2023-11-29 11:07:23 +00:00
#line 311 "sql.y"
{ yylhsminor.yy694 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 6371 "sql.c"
yymsp[0].minor.yy694 = yylhsminor.yy694;
2024-04-08 02:55:47 +00:00
break;
case 158: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
2023-11-29 11:07:23 +00:00
#line 312 "sql.y"
{ yylhsminor.yy694 = addNodeToList(pCxt, yymsp[-2].minor.yy694, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 6377 "sql.c"
yymsp[-2].minor.yy694 = yylhsminor.yy694;
2024-04-08 02:55:47 +00:00
break;
case 159: /* retention_list ::= retention */
case 190: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==190);
case 193: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==193);
case 200: /* column_def_list ::= column_def */ yytestcase(yyruleno==200);
case 249: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==249);
case 254: /* col_name_list ::= col_name */ yytestcase(yyruleno==254);
case 322: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==322);
2023-11-29 11:07:23 +00:00
case 340: /* tsma_func_list ::= tsma_func_name */ yytestcase(yyruleno==340);
case 350: /* func_list ::= func */ yytestcase(yyruleno==350);
case 400: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==400);
case 476: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==476);
case 501: /* literal_list ::= signed_literal */ yytestcase(yyruleno==501);
case 575: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==575);
case 581: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==581);
case 657: /* select_list ::= select_item */ yytestcase(yyruleno==657);
case 668: /* partition_list ::= partition_item */ yytestcase(yyruleno==668);
case 729: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==729);
#line 316 "sql.y"
{ yylhsminor.yy694 = createNodeList(pCxt, yymsp[0].minor.yy722); }
#line 6399 "sql.c"
yymsp[0].minor.yy694 = yylhsminor.yy694;
2024-04-08 02:55:47 +00:00
break;
case 160: /* retention_list ::= retention_list NK_COMMA retention */
case 194: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==194);
case 201: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==201);
case 250: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==250);
case 255: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==255);
case 323: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==323);
2023-11-29 11:07:23 +00:00
case 341: /* tsma_func_list ::= tsma_func_list NK_COMMA tsma_func_name */ yytestcase(yyruleno==341);
case 351: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==351);
case 401: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==401);
case 477: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==477);
case 502: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==502);
case 576: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==576);
case 658: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==658);
case 669: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==669);
case 730: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==730);
#line 317 "sql.y"
{ yylhsminor.yy694 = addNodeToList(pCxt, yymsp[-2].minor.yy694, yymsp[0].minor.yy722); }
#line 6419 "sql.c"
yymsp[-2].minor.yy694 = yylhsminor.yy694;
2024-04-08 02:55:47 +00:00
break;
case 161: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
case 162: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==162);
2023-11-29 11:07:23 +00:00
#line 319 "sql.y"
{ yylhsminor.yy722 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 6426 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 163: /* speed_opt ::= */
2023-11-29 11:07:23 +00:00
case 384: /* bufsize_opt ::= */ yytestcase(yyruleno==384);
#line 324 "sql.y"
{ yymsp[1].minor.yy830 = 0; }
#line 6433 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 164: /* speed_opt ::= BWLIMIT NK_INTEGER */
2023-11-29 11:07:23 +00:00
case 385: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==385);
#line 325 "sql.y"
{ yymsp[-1].minor.yy830 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
#line 6439 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 166: /* start_opt ::= START WITH NK_INTEGER */
case 170: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==170);
2023-11-29 11:07:23 +00:00
#line 328 "sql.y"
{ yymsp[-2].minor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
#line 6445 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 167: /* start_opt ::= START WITH NK_STRING */
case 171: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==171);
2023-11-29 11:07:23 +00:00
#line 329 "sql.y"
{ yymsp[-2].minor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
#line 6451 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 168: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
case 172: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==172);
2023-11-29 11:07:23 +00:00
#line 330 "sql.y"
{ yymsp[-3].minor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
#line 6457 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 173: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
case 175: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==175);
2023-11-29 11:07:23 +00:00
#line 339 "sql.y"
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy897, yymsp[-5].minor.yy722, yymsp[-3].minor.yy694, yymsp[-1].minor.yy694, yymsp[0].minor.yy722); }
#line 6463 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 174: /* cmd ::= CREATE TABLE multi_create_clause */
2023-11-29 11:07:23 +00:00
#line 340 "sql.y"
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy694); }
#line 6468 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 176: /* cmd ::= DROP TABLE multi_drop_clause */
2023-11-29 11:07:23 +00:00
#line 343 "sql.y"
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy694); }
#line 6473 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 177: /* cmd ::= DROP STABLE exists_opt full_table_name */
2023-11-29 11:07:23 +00:00
#line 344 "sql.y"
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy897, yymsp[0].minor.yy722); }
#line 6478 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 178: /* cmd ::= ALTER TABLE alter_table_clause */
2023-11-29 11:07:23 +00:00
case 434: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==434);
case 435: /* cmd ::= insert_query */ yytestcase(yyruleno==435);
#line 346 "sql.y"
{ pCxt->pRootNode = yymsp[0].minor.yy722; }
#line 6485 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 179: /* cmd ::= ALTER STABLE alter_table_clause */
2023-11-29 11:07:23 +00:00
#line 347 "sql.y"
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy722); }
#line 6490 "sql.c"
2024-04-08 02:55:47 +00:00
break;
case 180: /* alter_table_clause ::= full_table_name alter_table_options */
2023-11-29 11:07:23 +00:00
#line 349 "sql.y"
{ yylhsminor.yy722 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy722, yymsp[0].minor.yy722); }
#line 6495 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 181: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
2023-11-29 11:07:23 +00:00
#line 351 "sql.y"
{ yylhsminor.yy722 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy722, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy659, yymsp[0].minor.yy154); }
#line 6501 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 182: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
2023-11-29 11:07:23 +00:00
#line 352 "sql.y"
{ yylhsminor.yy722 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy722, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy659); }
#line 6507 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 183: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
2023-11-29 11:07:23 +00:00
#line 354 "sql.y"
{ yylhsminor.yy722 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy722, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy659, yymsp[0].minor.yy154); }
#line 6513 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 184: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
2023-11-29 11:07:23 +00:00
#line 356 "sql.y"
{ yylhsminor.yy722 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy722, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy659, &yymsp[0].minor.yy659); }
#line 6519 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 185: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
2023-11-29 11:07:23 +00:00
#line 358 "sql.y"
{ yylhsminor.yy722 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy722, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy659, yymsp[0].minor.yy154); }
#line 6525 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 186: /* alter_table_clause ::= full_table_name DROP TAG column_name */
2023-11-29 11:07:23 +00:00
#line 359 "sql.y"
{ yylhsminor.yy722 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy722, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy659); }
#line 6531 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 187: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
2023-11-29 11:07:23 +00:00
#line 361 "sql.y"
{ yylhsminor.yy722 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy722, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy659, yymsp[0].minor.yy154); }
#line 6537 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
2024-04-08 02:55:47 +00:00
break;
case 188: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
2023-11-29 11:07:23 +00:00
#line 363 "sql.y"
{ yylhsminor.yy722 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy722, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy659, &yymsp[0].minor.yy659); }
#line 6543 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 189: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
2023-11-29 11:07:23 +00:00
#line 365 "sql.y"
{ yylhsminor.yy722 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy722, &yymsp[-2].minor.yy659, yymsp[0].minor.yy722); }
#line 6549 "sql.c"
yymsp[-5].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 191: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
2023-11-29 11:07:23 +00:00
case 582: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==582);
#line 370 "sql.y"
{ yylhsminor.yy694 = addNodeToList(pCxt, yymsp[-1].minor.yy694, yymsp[0].minor.yy722); }
#line 6556 "sql.c"
yymsp[-1].minor.yy694 = yylhsminor.yy694;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 192: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
2023-11-29 11:07:23 +00:00
#line 374 "sql.y"
{ yylhsminor.yy722 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy897, yymsp[-8].minor.yy722, yymsp[-6].minor.yy722, yymsp[-5].minor.yy694, yymsp[-2].minor.yy694, yymsp[0].minor.yy722); }
#line 6562 "sql.c"
yymsp[-9].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 195: /* drop_table_clause ::= exists_opt full_table_name */
2023-11-29 11:07:23 +00:00
#line 381 "sql.y"
{ yylhsminor.yy722 = createDropTableClause(pCxt, yymsp[-1].minor.yy897, yymsp[0].minor.yy722); }
#line 6568 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 197: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
2023-11-29 11:07:23 +00:00
case 399: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==399);
#line 386 "sql.y"
{ yymsp[-2].minor.yy694 = yymsp[-1].minor.yy694; }
#line 6575 "sql.c"
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 198: /* full_table_name ::= table_name */
2023-11-29 11:07:23 +00:00
#line 388 "sql.y"
{ yylhsminor.yy722 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy659, NULL); }
#line 6580 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 199: /* full_table_name ::= db_name NK_DOT table_name */
2023-11-29 11:07:23 +00:00
#line 389 "sql.y"
{ yylhsminor.yy722 = createRealTableNode(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659, NULL); }
#line 6586 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
2024-04-08 02:55:47 +00:00
case 202: /* column_def ::= column_name type_name */
2023-11-29 11:07:23 +00:00
#line 396 "sql.y"
{ yylhsminor.yy722 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy659, yymsp[0].minor.yy154, NULL, false); }
#line 6592 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 203: /* column_def ::= column_name type_name PRIMARY KEY */
2023-11-29 11:07:23 +00:00
#line 397 "sql.y"
{ yylhsminor.yy722 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy659, yymsp[-2].minor.yy154, NULL, true); }
#line 6598 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 204: /* type_name ::= BOOL */
2023-11-29 11:07:23 +00:00
#line 402 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_BOOL); }
#line 6604 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 205: /* type_name ::= TINYINT */
2023-11-29 11:07:23 +00:00
#line 403 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_TINYINT); }
#line 6609 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 206: /* type_name ::= SMALLINT */
2023-11-29 11:07:23 +00:00
#line 404 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
#line 6614 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 207: /* type_name ::= INT */
case 208: /* type_name ::= INTEGER */ yytestcase(yyruleno==208);
2023-11-29 11:07:23 +00:00
#line 405 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_INT); }
#line 6620 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 209: /* type_name ::= BIGINT */
2023-11-29 11:07:23 +00:00
#line 407 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_BIGINT); }
#line 6625 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 210: /* type_name ::= FLOAT */
2023-11-29 11:07:23 +00:00
#line 408 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_FLOAT); }
#line 6630 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 211: /* type_name ::= DOUBLE */
2023-11-29 11:07:23 +00:00
#line 409 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
#line 6635 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 212: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
2023-11-29 11:07:23 +00:00
#line 410 "sql.y"
{ yymsp[-3].minor.yy154 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
#line 6640 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 213: /* type_name ::= TIMESTAMP */
2023-11-29 11:07:23 +00:00
#line 411 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
#line 6645 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 214: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
2023-11-29 11:07:23 +00:00
#line 412 "sql.y"
{ yymsp[-3].minor.yy154 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
#line 6650 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 215: /* type_name ::= TINYINT UNSIGNED */
2023-11-29 11:07:23 +00:00
#line 413 "sql.y"
{ yymsp[-1].minor.yy154 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
#line 6655 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 216: /* type_name ::= SMALLINT UNSIGNED */
2023-11-29 11:07:23 +00:00
#line 414 "sql.y"
{ yymsp[-1].minor.yy154 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
#line 6660 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 217: /* type_name ::= INT UNSIGNED */
2023-11-29 11:07:23 +00:00
#line 415 "sql.y"
{ yymsp[-1].minor.yy154 = createDataType(TSDB_DATA_TYPE_UINT); }
#line 6665 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 218: /* type_name ::= BIGINT UNSIGNED */
2023-11-29 11:07:23 +00:00
#line 416 "sql.y"
{ yymsp[-1].minor.yy154 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
#line 6670 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 219: /* type_name ::= JSON */
2023-11-29 11:07:23 +00:00
#line 417 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_JSON); }
#line 6675 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 220: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
2023-11-29 11:07:23 +00:00
#line 418 "sql.y"
{ yymsp[-3].minor.yy154 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
#line 6680 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 221: /* type_name ::= MEDIUMBLOB */
2023-11-29 11:07:23 +00:00
#line 419 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
#line 6685 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 222: /* type_name ::= BLOB */
2023-11-29 11:07:23 +00:00
#line 420 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_BLOB); }
#line 6690 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 223: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
2023-11-29 11:07:23 +00:00
#line 421 "sql.y"
{ yymsp[-3].minor.yy154 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
#line 6695 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 224: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
2023-11-29 11:07:23 +00:00
#line 422 "sql.y"
{ yymsp[-3].minor.yy154 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
#line 6700 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 225: /* type_name ::= DECIMAL */
2023-11-29 11:07:23 +00:00
#line 423 "sql.y"
{ yymsp[0].minor.yy154 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
#line 6705 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 226: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
2023-11-29 11:07:23 +00:00
#line 424 "sql.y"
{ yymsp[-3].minor.yy154 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
#line 6710 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 227: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
2023-11-29 11:07:23 +00:00
#line 425 "sql.y"
{ yymsp[-5].minor.yy154 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
#line 6715 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 228: /* type_name_default_len ::= BINARY */
2023-11-29 11:07:23 +00:00
#line 429 "sql.y"
{ yymsp[0].minor.yy154 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); }
#line 6720 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 229: /* type_name_default_len ::= NCHAR */
2023-11-29 11:07:23 +00:00
#line 430 "sql.y"
{ yymsp[0].minor.yy154 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); }
#line 6725 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 230: /* type_name_default_len ::= VARCHAR */
2023-11-29 11:07:23 +00:00
#line 431 "sql.y"
{ yymsp[0].minor.yy154 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); }
#line 6730 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 231: /* type_name_default_len ::= VARBINARY */
2023-11-29 11:07:23 +00:00
#line 432 "sql.y"
{ yymsp[0].minor.yy154 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); }
#line 6735 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 234: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
2023-11-29 11:07:23 +00:00
case 406: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==406);
#line 441 "sql.y"
{ yymsp[-3].minor.yy694 = yymsp[-1].minor.yy694; }
#line 6741 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 235: /* table_options ::= */
2023-11-29 11:07:23 +00:00
#line 443 "sql.y"
{ yymsp[1].minor.yy722 = createDefaultTableOptions(pCxt); }
#line 6746 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 236: /* table_options ::= table_options COMMENT NK_STRING */
2023-11-29 11:07:23 +00:00
#line 444 "sql.y"
{ yylhsminor.yy722 = setTableOption(pCxt, yymsp[-2].minor.yy722, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
#line 6751 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 237: /* table_options ::= table_options MAX_DELAY duration_list */
2023-11-29 11:07:23 +00:00
#line 445 "sql.y"
{ yylhsminor.yy722 = setTableOption(pCxt, yymsp[-2].minor.yy722, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy694); }
#line 6757 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 238: /* table_options ::= table_options WATERMARK duration_list */
2023-11-29 11:07:23 +00:00
#line 446 "sql.y"
{ yylhsminor.yy722 = setTableOption(pCxt, yymsp[-2].minor.yy722, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy694); }
#line 6763 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 239: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
2023-11-29 11:07:23 +00:00
#line 447 "sql.y"
{ yylhsminor.yy722 = setTableOption(pCxt, yymsp[-4].minor.yy722, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy694); }
#line 6769 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 240: /* table_options ::= table_options TTL NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 448 "sql.y"
{ yylhsminor.yy722 = setTableOption(pCxt, yymsp[-2].minor.yy722, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
#line 6775 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 241: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
2023-11-29 11:07:23 +00:00
#line 449 "sql.y"
{ yylhsminor.yy722 = setTableOption(pCxt, yymsp[-4].minor.yy722, TABLE_OPTION_SMA, yymsp[-1].minor.yy694); }
#line 6781 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 242: /* table_options ::= table_options DELETE_MARK duration_list */
2023-11-29 11:07:23 +00:00
#line 450 "sql.y"
{ yylhsminor.yy722 = setTableOption(pCxt, yymsp[-2].minor.yy722, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy694); }
#line 6787 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 243: /* alter_table_options ::= alter_table_option */
2023-11-29 11:07:23 +00:00
#line 452 "sql.y"
{ yylhsminor.yy722 = createAlterTableOptions(pCxt); yylhsminor.yy722 = setTableOption(pCxt, yylhsminor.yy722, yymsp[0].minor.yy845.type, &yymsp[0].minor.yy845.val); }
#line 6793 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 244: /* alter_table_options ::= alter_table_options alter_table_option */
2023-11-29 11:07:23 +00:00
#line 453 "sql.y"
{ yylhsminor.yy722 = setTableOption(pCxt, yymsp[-1].minor.yy722, yymsp[0].minor.yy845.type, &yymsp[0].minor.yy845.val); }
#line 6799 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 245: /* alter_table_option ::= COMMENT NK_STRING */
2023-11-29 11:07:23 +00:00
#line 457 "sql.y"
{ yymsp[-1].minor.yy845.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6805 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 246: /* alter_table_option ::= TTL NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 458 "sql.y"
{ yymsp[-1].minor.yy845.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; }
#line 6810 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 247: /* duration_list ::= duration_literal */
2023-11-29 11:07:23 +00:00
case 534: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==534);
#line 462 "sql.y"
{ yylhsminor.yy694 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy722)); }
#line 6816 "sql.c"
yymsp[0].minor.yy694 = yylhsminor.yy694;
2023-08-24 07:54:10 +00:00
break;
case 248: /* duration_list ::= duration_list NK_COMMA duration_literal */
2023-11-29 11:07:23 +00:00
case 535: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==535);
#line 463 "sql.y"
{ yylhsminor.yy694 = addNodeToList(pCxt, yymsp[-2].minor.yy694, releaseRawExprNode(pCxt, yymsp[0].minor.yy722)); }
#line 6823 "sql.c"
yymsp[-2].minor.yy694 = yylhsminor.yy694;
2023-08-24 07:54:10 +00:00
break;
case 251: /* rollup_func_name ::= function_name */
2023-11-29 11:07:23 +00:00
case 342: /* tsma_func_name ::= sma_func_name */ yytestcase(yyruleno==342);
#line 470 "sql.y"
{ yylhsminor.yy722 = createFunctionNode(pCxt, &yymsp[0].minor.yy659, NULL); }
#line 6830 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 252: /* rollup_func_name ::= FIRST */
case 253: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==253);
case 325: /* tag_item ::= QTAGS */ yytestcase(yyruleno==325);
2023-11-29 11:07:23 +00:00
#line 471 "sql.y"
{ yylhsminor.yy722 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
#line 6838 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 256: /* col_name ::= column_name */
case 326: /* tag_item ::= column_name */ yytestcase(yyruleno==326);
2023-11-29 11:07:23 +00:00
#line 479 "sql.y"
{ yylhsminor.yy722 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy659); }
#line 6845 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 257: /* cmd ::= SHOW DNODES */
2023-11-29 11:07:23 +00:00
#line 482 "sql.y"
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6851 "sql.c"
break;
case 258: /* cmd ::= SHOW USERS */
2023-11-29 11:07:23 +00:00
#line 483 "sql.y"
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
2023-11-29 11:07:23 +00:00
#line 6856 "sql.c"
break;
case 259: /* cmd ::= SHOW USER PRIVILEGES */
2023-11-29 11:07:23 +00:00
#line 484 "sql.y"
2023-01-31 06:25:13 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6861 "sql.c"
break;
case 260: /* cmd ::= SHOW db_kind_opt DATABASES */
2023-11-29 11:07:23 +00:00
#line 485 "sql.y"
{
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
2023-11-29 11:07:23 +00:00
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy89);
}
2023-11-29 11:07:23 +00:00
#line 6869 "sql.c"
break;
case 261: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
2023-11-29 11:07:23 +00:00
#line 489 "sql.y"
{
2023-11-29 11:07:23 +00:00
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy817, yymsp[0].minor.yy722, OP_TYPE_LIKE);
}
2023-11-29 11:07:23 +00:00
#line 6876 "sql.c"
break;
case 262: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
2023-11-29 11:07:23 +00:00
#line 492 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy722, yymsp[0].minor.yy722, OP_TYPE_LIKE); }
#line 6881 "sql.c"
break;
case 263: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
2023-11-29 11:07:23 +00:00
#line 493 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy722, NULL, OP_TYPE_LIKE); }
#line 6886 "sql.c"
break;
case 264: /* cmd ::= SHOW MNODES */
2023-11-29 11:07:23 +00:00
#line 494 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6891 "sql.c"
break;
case 265: /* cmd ::= SHOW QNODES */
2023-11-29 11:07:23 +00:00
#line 496 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6896 "sql.c"
break;
case 266: /* cmd ::= SHOW ARBGROUPS */
2023-11-29 11:07:23 +00:00
#line 497 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); }
2023-11-29 11:07:23 +00:00
#line 6901 "sql.c"
break;
case 267: /* cmd ::= SHOW FUNCTIONS */
2023-11-29 11:07:23 +00:00
#line 498 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
2023-11-29 11:07:23 +00:00
#line 6906 "sql.c"
break;
case 268: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
2023-11-29 11:07:23 +00:00
#line 499 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy722, yymsp[-1].minor.yy722, OP_TYPE_EQUAL); }
#line 6911 "sql.c"
break;
case 269: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
2023-11-29 11:07:23 +00:00
#line 500 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy659), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy659), OP_TYPE_EQUAL); }
#line 6916 "sql.c"
break;
case 270: /* cmd ::= SHOW STREAMS */
2023-11-29 11:07:23 +00:00
#line 501 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
2023-11-29 11:07:23 +00:00
#line 6921 "sql.c"
2022-03-08 09:25:26 +00:00
break;
case 271: /* cmd ::= SHOW ACCOUNTS */
2023-11-29 11:07:23 +00:00
#line 502 "sql.y"
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
2023-11-29 11:07:23 +00:00
#line 6926 "sql.c"
break;
case 272: /* cmd ::= SHOW APPS */
2023-11-29 11:07:23 +00:00
#line 503 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
2023-11-29 11:07:23 +00:00
#line 6931 "sql.c"
break;
case 273: /* cmd ::= SHOW CONNECTIONS */
2023-11-29 11:07:23 +00:00
#line 504 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
2023-11-29 11:07:23 +00:00
#line 6936 "sql.c"
break;
case 274: /* cmd ::= SHOW LICENCES */
case 275: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==275);
2023-11-29 11:07:23 +00:00
#line 505 "sql.y"
2022-08-11 07:37:26 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6942 "sql.c"
break;
case 276: /* cmd ::= SHOW GRANTS FULL */
2023-11-29 11:07:23 +00:00
#line 507 "sql.y"
2024-01-18 07:23:38 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); }
2023-11-29 11:07:23 +00:00
#line 6947 "sql.c"
2024-01-18 07:23:38 +00:00
break;
case 277: /* cmd ::= SHOW GRANTS LOGS */
2023-11-29 11:07:23 +00:00
#line 508 "sql.y"
2024-01-31 05:52:03 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); }
2023-11-29 11:07:23 +00:00
#line 6952 "sql.c"
2024-01-18 07:23:38 +00:00
break;
case 278: /* cmd ::= SHOW CLUSTER MACHINES */
2023-11-29 11:07:23 +00:00
#line 509 "sql.y"
2024-01-18 09:49:11 +00:00
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6957 "sql.c"
break;
case 279: /* cmd ::= SHOW CREATE DATABASE db_name */
2023-11-29 11:07:23 +00:00
#line 510 "sql.y"
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy659); }
#line 6962 "sql.c"
break;
case 280: /* cmd ::= SHOW CREATE TABLE full_table_name */
2023-11-29 11:07:23 +00:00
#line 511 "sql.y"
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy722); }
#line 6967 "sql.c"
break;
case 281: /* cmd ::= SHOW CREATE STABLE full_table_name */
2023-11-29 11:07:23 +00:00
#line 512 "sql.y"
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy722); }
#line 6972 "sql.c"
break;
case 282: /* cmd ::= SHOW QUERIES */
2023-11-29 11:07:23 +00:00
#line 513 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6977 "sql.c"
break;
case 283: /* cmd ::= SHOW SCORES */
2023-11-29 11:07:23 +00:00
#line 514 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6982 "sql.c"
break;
case 284: /* cmd ::= SHOW TOPICS */
2023-11-29 11:07:23 +00:00
#line 515 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
2023-11-29 11:07:23 +00:00
#line 6987 "sql.c"
break;
case 285: /* cmd ::= SHOW VARIABLES */
case 286: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==286);
2023-11-29 11:07:23 +00:00
#line 516 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6993 "sql.c"
2022-03-28 09:08:48 +00:00
break;
case 287: /* cmd ::= SHOW LOCAL VARIABLES */
2023-11-29 11:07:23 +00:00
#line 518 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
2023-11-29 11:07:23 +00:00
#line 6998 "sql.c"
break;
case 288: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
2023-11-29 11:07:23 +00:00
#line 519 "sql.y"
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy722); }
#line 7003 "sql.c"
break;
case 289: /* cmd ::= SHOW BNODES */
2023-11-29 11:07:23 +00:00
#line 520 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
2023-11-29 11:07:23 +00:00
#line 7008 "sql.c"
break;
case 290: /* cmd ::= SHOW SNODES */
2023-11-29 11:07:23 +00:00
#line 521 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
2023-11-29 11:07:23 +00:00
#line 7013 "sql.c"
break;
case 291: /* cmd ::= SHOW CLUSTER */
2023-11-29 11:07:23 +00:00
#line 522 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
2023-11-29 11:07:23 +00:00
#line 7018 "sql.c"
2022-04-20 09:43:02 +00:00
break;
case 292: /* cmd ::= SHOW TRANSACTIONS */
2023-11-29 11:07:23 +00:00
#line 523 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
2023-11-29 11:07:23 +00:00
#line 7023 "sql.c"
break;
case 293: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
2023-11-29 11:07:23 +00:00
#line 524 "sql.y"
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy722); }
#line 7028 "sql.c"
2022-03-28 09:08:48 +00:00
break;
case 294: /* cmd ::= SHOW CONSUMERS */
2023-11-29 11:07:23 +00:00
#line 525 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
2023-11-29 11:07:23 +00:00
#line 7033 "sql.c"
2022-05-25 13:20:11 +00:00
break;
case 295: /* cmd ::= SHOW SUBSCRIPTIONS */
2023-11-29 11:07:23 +00:00
#line 526 "sql.y"
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
2023-11-29 11:07:23 +00:00
#line 7038 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 296: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
2023-11-29 11:07:23 +00:00
#line 527 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy722, yymsp[-1].minor.yy722, OP_TYPE_EQUAL); }
#line 7043 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 297: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
2023-11-29 11:07:23 +00:00
#line 528 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy659), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy659), OP_TYPE_EQUAL); }
#line 7048 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 298: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
2023-11-29 11:07:23 +00:00
#line 529 "sql.y"
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy722, yymsp[0].minor.yy722, yymsp[-3].minor.yy694); }
#line 7053 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 299: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
2023-11-29 11:07:23 +00:00
#line 530 "sql.y"
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy659), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy659), yymsp[-4].minor.yy694); }
#line 7058 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 300: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 531 "sql.y"
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
2023-11-29 11:07:23 +00:00
#line 7063 "sql.c"
break;
case 301: /* cmd ::= SHOW VNODES */
2023-11-29 11:07:23 +00:00
#line 532 "sql.y"
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
2023-11-29 11:07:23 +00:00
#line 7068 "sql.c"
break;
case 302: /* cmd ::= SHOW db_name_cond_opt ALIVE */
2023-11-29 11:07:23 +00:00
#line 534 "sql.y"
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy722, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
#line 7073 "sql.c"
break;
case 303: /* cmd ::= SHOW CLUSTER ALIVE */
2023-11-29 11:07:23 +00:00
#line 535 "sql.y"
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
2023-11-29 11:07:23 +00:00
#line 7078 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 304: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
2023-11-29 11:07:23 +00:00
#line 536 "sql.y"
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy722, yymsp[0].minor.yy722, OP_TYPE_LIKE); }
#line 7083 "sql.c"
break;
case 305: /* cmd ::= SHOW CREATE VIEW full_table_name */
2023-11-29 11:07:23 +00:00
#line 537 "sql.y"
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy722); }
#line 7088 "sql.c"
2023-11-16 03:41:02 +00:00
break;
case 306: /* cmd ::= SHOW COMPACTS */
2023-11-29 11:07:23 +00:00
#line 538 "sql.y"
2023-11-23 07:26:21 +00:00
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
2023-11-29 11:07:23 +00:00
#line 7093 "sql.c"
2023-10-11 02:38:22 +00:00
break;
case 307: /* cmd ::= SHOW COMPACT NK_INTEGER */
2023-11-29 11:07:23 +00:00
#line 539 "sql.y"
2023-11-23 07:26:21 +00:00
{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
2023-11-29 11:07:23 +00:00
#line 7098 "sql.c"
break;
case 308: /* table_kind_db_name_cond_opt ::= */
2023-11-29 11:07:23 +00:00
#line 543 "sql.y"
{ yymsp[1].minor.yy817.kind = SHOW_KIND_ALL; yymsp[1].minor.yy817.dbName = nil_token; }
#line 7103 "sql.c"
break;
case 309: /* table_kind_db_name_cond_opt ::= table_kind */
2023-11-29 11:07:23 +00:00
#line 544 "sql.y"
{ yylhsminor.yy817.kind = yymsp[0].minor.yy89; yylhsminor.yy817.dbName = nil_token; }
#line 7108 "sql.c"
yymsp[0].minor.yy817 = yylhsminor.yy817;
break;
case 310: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
2023-11-29 11:07:23 +00:00
#line 545 "sql.y"
{ yylhsminor.yy817.kind = SHOW_KIND_ALL; yylhsminor.yy817.dbName = yymsp[-1].minor.yy659; }
#line 7114 "sql.c"
yymsp[-1].minor.yy817 = yylhsminor.yy817;
2023-10-09 09:19:36 +00:00
break;
case 311: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
2023-11-29 11:07:23 +00:00
#line 546 "sql.y"
{ yylhsminor.yy817.kind = yymsp[-2].minor.yy89; yylhsminor.yy817.dbName = yymsp[-1].minor.yy659; }
#line 7120 "sql.c"
yymsp[-2].minor.yy817 = yylhsminor.yy817;
2023-08-24 07:54:10 +00:00
break;
case 312: /* table_kind ::= NORMAL */
2023-11-29 11:07:23 +00:00
#line 550 "sql.y"
{ yymsp[0].minor.yy89 = SHOW_KIND_TABLES_NORMAL; }
#line 7126 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 313: /* table_kind ::= CHILD */
2023-11-29 11:07:23 +00:00
#line 551 "sql.y"
{ yymsp[0].minor.yy89 = SHOW_KIND_TABLES_CHILD; }
#line 7131 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 314: /* db_name_cond_opt ::= */
case 319: /* from_db_opt ::= */ yytestcase(yyruleno==319);
2023-11-29 11:07:23 +00:00
#line 553 "sql.y"
{ yymsp[1].minor.yy722 = createDefaultDatabaseCondValue(pCxt); }
#line 7137 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 315: /* db_name_cond_opt ::= db_name NK_DOT */
2023-11-29 11:07:23 +00:00
#line 554 "sql.y"
{ yylhsminor.yy722 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy659); }
#line 7142 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 317: /* like_pattern_opt ::= LIKE NK_STRING */
2023-11-29 11:07:23 +00:00
#line 557 "sql.y"
{ yymsp[-1].minor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
#line 7148 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 318: /* table_name_cond ::= table_name */
2023-11-29 11:07:23 +00:00
#line 559 "sql.y"
{ yylhsminor.yy722 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy659); }
#line 7153 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 320: /* from_db_opt ::= FROM db_name */
2023-11-29 11:07:23 +00:00
#line 562 "sql.y"
{ yymsp[-1].minor.yy722 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy659); }
#line 7159 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 324: /* tag_item ::= TBNAME */
2023-11-29 11:07:23 +00:00
#line 570 "sql.y"
{ yylhsminor.yy722 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
#line 7164 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 327: /* tag_item ::= column_name column_alias */
2023-11-29 11:07:23 +00:00
#line 573 "sql.y"
{ yylhsminor.yy722 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy659), &yymsp[0].minor.yy659); }
#line 7170 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 328: /* tag_item ::= column_name AS column_alias */
2023-11-29 11:07:23 +00:00
#line 574 "sql.y"
{ yylhsminor.yy722 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy659), &yymsp[0].minor.yy659); }
#line 7176 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2023-08-24 07:54:10 +00:00
break;
case 329: /* db_kind_opt ::= */
2023-11-29 11:07:23 +00:00
#line 578 "sql.y"
{ yymsp[1].minor.yy89 = SHOW_KIND_ALL; }
#line 7182 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 330: /* db_kind_opt ::= USER */
2023-11-29 11:07:23 +00:00
#line 579 "sql.y"
{ yymsp[0].minor.yy89 = SHOW_KIND_DATABASES_USER; }
#line 7187 "sql.c"
2023-08-24 07:54:10 +00:00
break;
case 331: /* db_kind_opt ::= SYSTEM */
2023-11-29 11:07:23 +00:00
#line 580 "sql.y"
{ yymsp[0].minor.yy89 = SHOW_KIND_DATABASES_SYSTEM; }
#line 7192 "sql.c"
break;
case 332: /* cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_opt INTERVAL NK_LP duration_literal NK_RP */
#line 585 "sql.y"
{ pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-8].minor.yy897, &yymsp[-7].minor.yy659, yymsp[-4].minor.yy722, yymsp[-5].minor.yy722, releaseRawExprNode(pCxt, yymsp[-1].minor.yy722)); }
#line 7197 "sql.c"
break;
case 333: /* cmd ::= DROP TSMA exists_opt full_tsma_name */
#line 586 "sql.y"
{ pCxt->pRootNode = createDropTSMAStmt(pCxt, yymsp[-1].minor.yy897, yymsp[0].minor.yy722); }
#line 7202 "sql.c"
break;
case 334: /* cmd ::= SHOW CREATE TSMA full_tsma_name */
#line 587 "sql.y"
{ pCxt->pRootNode = createShowCreateTSMAStmt(pCxt, yymsp[0].minor.yy722); }
#line 7207 "sql.c"
break;
case 335: /* cmd ::= SHOW db_name_cond_opt TSMAS */
#line 588 "sql.y"
{ pCxt->pRootNode = createShowTSMASStmt(pCxt, yymsp[-1].minor.yy722); }
#line 7212 "sql.c"
break;
case 336: /* full_tsma_name ::= tsma_name */
case 346: /* full_index_name ::= index_name */ yytestcase(yyruleno==346);
#line 590 "sql.y"
{ yylhsminor.yy722 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy659); }
#line 7218 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 337: /* full_tsma_name ::= db_name NK_DOT tsma_name */
case 347: /* full_index_name ::= db_name NK_DOT index_name */ yytestcase(yyruleno==347);
#line 591 "sql.y"
{ yylhsminor.yy722 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659); }
#line 7225 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 338: /* tsma_opt ::= */
#line 595 "sql.y"
{ yymsp[1].minor.yy722 = createDefaultTSMAOptions(pCxt); }
#line 7231 "sql.c"
break;
case 339: /* tsma_opt ::= FUNCTION NK_LP tsma_func_list NK_RP COLUMN NK_LP col_name_list NK_RP */
#line 597 "sql.y"
{ yymsp[-7].minor.yy722 = createTSMAOptions(pCxt, yymsp[-5].minor.yy694, yymsp[-1].minor.yy694); }
#line 7236 "sql.c"
break;
case 343: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
#line 610 "sql.y"
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy897, yymsp[-3].minor.yy722, yymsp[-1].minor.yy722, NULL, yymsp[0].minor.yy722); }
#line 7241 "sql.c"
break;
case 344: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
#line 612 "sql.y"
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy897, yymsp[-5].minor.yy722, yymsp[-3].minor.yy722, yymsp[-1].minor.yy694, NULL); }
#line 7246 "sql.c"
break;
case 345: /* cmd ::= DROP INDEX exists_opt full_index_name */
#line 613 "sql.y"
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy897, yymsp[0].minor.yy722); }
#line 7251 "sql.c"
break;
case 348: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
#line 619 "sql.y"
{ yymsp[-9].minor.yy722 = createIndexOption(pCxt, yymsp[-7].minor.yy694, releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), NULL, yymsp[-1].minor.yy722, yymsp[0].minor.yy722); }
#line 7256 "sql.c"
break;
case 349: /* 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 622 "sql.y"
{ yymsp[-11].minor.yy722 = createIndexOption(pCxt, yymsp[-9].minor.yy694, releaseRawExprNode(pCxt, yymsp[-5].minor.yy722), releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), yymsp[-1].minor.yy722, yymsp[0].minor.yy722); }
#line 7261 "sql.c"
break;
case 352: /* func ::= sma_func_name NK_LP expression_list NK_RP */
#line 629 "sql.y"
{ yylhsminor.yy722 = createFunctionNode(pCxt, &yymsp[-3].minor.yy659, yymsp[-1].minor.yy694); }
#line 7266 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 353: /* sma_func_name ::= function_name */
case 625: /* alias_opt ::= table_alias */ yytestcase(yyruleno==625);
#line 633 "sql.y"
{ yylhsminor.yy659 = yymsp[0].minor.yy659; }
#line 7273 "sql.c"
yymsp[0].minor.yy659 = yylhsminor.yy659;
break;
case 358: /* sma_stream_opt ::= */
case 407: /* stream_options ::= */ yytestcase(yyruleno==407);
#line 639 "sql.y"
{ yymsp[1].minor.yy722 = createStreamOptions(pCxt); }
#line 7280 "sql.c"
break;
case 359: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
#line 640 "sql.y"
{ ((SStreamOptions*)yymsp[-2].minor.yy722)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy722); yylhsminor.yy722 = yymsp[-2].minor.yy722; }
#line 7285 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 360: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
#line 641 "sql.y"
{ ((SStreamOptions*)yymsp[-2].minor.yy722)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy722); yylhsminor.yy722 = yymsp[-2].minor.yy722; }
#line 7291 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 361: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
#line 642 "sql.y"
{ ((SStreamOptions*)yymsp[-2].minor.yy722)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy722); yylhsminor.yy722 = yymsp[-2].minor.yy722; }
#line 7297 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 362: /* with_meta ::= AS */
#line 647 "sql.y"
{ yymsp[0].minor.yy830 = 0; }
#line 7303 "sql.c"
break;
case 363: /* with_meta ::= WITH META AS */
#line 648 "sql.y"
{ yymsp[-2].minor.yy830 = 1; }
#line 7308 "sql.c"
break;
case 364: /* with_meta ::= ONLY META AS */
#line 649 "sql.y"
{ yymsp[-2].minor.yy830 = 2; }
#line 7313 "sql.c"
break;
case 365: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
#line 651 "sql.y"
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy897, &yymsp[-2].minor.yy659, yymsp[0].minor.yy722); }
#line 7318 "sql.c"
break;
case 366: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
#line 653 "sql.y"
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy897, &yymsp[-3].minor.yy659, &yymsp[0].minor.yy659, yymsp[-2].minor.yy830); }
#line 7323 "sql.c"
break;
case 367: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
#line 655 "sql.y"
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy897, &yymsp[-4].minor.yy659, yymsp[-1].minor.yy722, yymsp[-3].minor.yy830, yymsp[0].minor.yy722); }
#line 7328 "sql.c"
break;
case 368: /* cmd ::= DROP TOPIC exists_opt topic_name */
#line 657 "sql.y"
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy897, &yymsp[0].minor.yy659); }
#line 7333 "sql.c"
break;
case 369: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
#line 658 "sql.y"
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy897, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659); }
#line 7338 "sql.c"
break;
case 370: /* cmd ::= DESC full_table_name */
case 371: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==371);
#line 661 "sql.y"
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy722); }
#line 7344 "sql.c"
break;
case 372: /* cmd ::= RESET QUERY CACHE */
#line 665 "sql.y"
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
2023-11-29 11:07:23 +00:00
#line 7349 "sql.c"
break;
case 373: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
case 374: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==374);
#line 668 "sql.y"
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy897, yymsp[-1].minor.yy722, yymsp[0].minor.yy722); }
#line 7355 "sql.c"
break;
case 377: /* explain_options ::= */
#line 676 "sql.y"
{ yymsp[1].minor.yy722 = createDefaultExplainOptions(pCxt); }
#line 7360 "sql.c"
break;
case 378: /* explain_options ::= explain_options VERBOSE NK_BOOL */
#line 677 "sql.y"
{ yylhsminor.yy722 = setExplainVerbose(pCxt, yymsp[-2].minor.yy722, &yymsp[0].minor.yy0); }
#line 7365 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 379: /* explain_options ::= explain_options RATIO NK_FLOAT */
#line 678 "sql.y"
{ yylhsminor.yy722 = setExplainRatio(pCxt, yymsp[-2].minor.yy722, &yymsp[0].minor.yy0); }
#line 7371 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 380: /* 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 683 "sql.y"
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy897, yymsp[-9].minor.yy897, &yymsp[-6].minor.yy659, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy154, yymsp[-1].minor.yy830, &yymsp[0].minor.yy659, yymsp[-10].minor.yy897); }
#line 7377 "sql.c"
break;
case 381: /* cmd ::= DROP FUNCTION exists_opt function_name */
#line 684 "sql.y"
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy897, &yymsp[0].minor.yy659); }
#line 7382 "sql.c"
break;
case 386: /* language_opt ::= */
case 429: /* on_vgroup_id ::= */ yytestcase(yyruleno==429);
#line 698 "sql.y"
{ yymsp[1].minor.yy659 = nil_token; }
#line 7388 "sql.c"
break;
case 387: /* language_opt ::= LANGUAGE NK_STRING */
case 430: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==430);
#line 699 "sql.y"
{ yymsp[-1].minor.yy659 = yymsp[0].minor.yy0; }
#line 7394 "sql.c"
break;
case 390: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
#line 708 "sql.y"
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy897, yymsp[-2].minor.yy722, &yymsp[-1].minor.yy0, yymsp[0].minor.yy722); }
#line 7399 "sql.c"
break;
case 391: /* cmd ::= DROP VIEW exists_opt full_view_name */
#line 709 "sql.y"
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy897, yymsp[0].minor.yy722); }
#line 7404 "sql.c"
break;
case 392: /* full_view_name ::= view_name */
#line 711 "sql.y"
{ yylhsminor.yy722 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy659); }
#line 7409 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 393: /* full_view_name ::= db_name NK_DOT view_name */
#line 712 "sql.y"
{ yylhsminor.yy722 = createViewNode(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659); }
#line 7415 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 394: /* 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 717 "sql.y"
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy897, &yymsp[-8].minor.yy659, yymsp[-5].minor.yy722, yymsp[-7].minor.yy722, yymsp[-3].minor.yy694, yymsp[-2].minor.yy722, yymsp[0].minor.yy722, yymsp[-4].minor.yy694); }
#line 7421 "sql.c"
break;
case 395: /* cmd ::= DROP STREAM exists_opt stream_name */
#line 718 "sql.y"
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy897, &yymsp[0].minor.yy659); }
#line 7426 "sql.c"
break;
case 396: /* cmd ::= PAUSE STREAM exists_opt stream_name */
#line 719 "sql.y"
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy897, &yymsp[0].minor.yy659); }
#line 7431 "sql.c"
break;
case 397: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
#line 720 "sql.y"
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy897, yymsp[-1].minor.yy897, &yymsp[0].minor.yy659); }
#line 7436 "sql.c"
break;
case 402: /* column_stream_def ::= column_name */
#line 733 "sql.y"
{ yylhsminor.yy722 = createColumnDefNode(pCxt, &yymsp[0].minor.yy659, createDataType(TSDB_DATA_TYPE_NULL), NULL, false); }
#line 7441 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 403: /* column_stream_def ::= column_name PRIMARY KEY */
#line 734 "sql.y"
{ yylhsminor.yy722 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy659, createDataType(TSDB_DATA_TYPE_NULL), NULL, true); }
#line 7447 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 408: /* stream_options ::= stream_options TRIGGER AT_ONCE */
case 409: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==409);
#line 744 "sql.y"
{ yylhsminor.yy722 = setStreamOptions(pCxt, yymsp[-2].minor.yy722, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
#line 7454 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 410: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
#line 746 "sql.y"
{ yylhsminor.yy722 = setStreamOptions(pCxt, yymsp[-3].minor.yy722, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy722)); }
#line 7460 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 411: /* stream_options ::= stream_options WATERMARK duration_literal */
#line 747 "sql.y"
{ yylhsminor.yy722 = setStreamOptions(pCxt, yymsp[-2].minor.yy722, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy722)); }
#line 7466 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 412: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
#line 748 "sql.y"
{ yylhsminor.yy722 = setStreamOptions(pCxt, yymsp[-3].minor.yy722, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
#line 7472 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 413: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
#line 749 "sql.y"
{ yylhsminor.yy722 = setStreamOptions(pCxt, yymsp[-2].minor.yy722, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
#line 7478 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 414: /* stream_options ::= stream_options DELETE_MARK duration_literal */
#line 750 "sql.y"
{ yylhsminor.yy722 = setStreamOptions(pCxt, yymsp[-2].minor.yy722, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy722)); }
#line 7484 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 415: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
#line 751 "sql.y"
{ yylhsminor.yy722 = setStreamOptions(pCxt, yymsp[-3].minor.yy722, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
#line 7490 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 417: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
case 682: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==682);
case 706: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==706);
#line 754 "sql.y"
{ yymsp[-3].minor.yy722 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy722); }
#line 7498 "sql.c"
break;
case 420: /* cmd ::= KILL CONNECTION NK_INTEGER */
#line 762 "sql.y"
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 7503 "sql.c"
break;
2023-11-29 11:07:23 +00:00
case 421: /* cmd ::= KILL QUERY NK_STRING */
#line 763 "sql.y"
2022-06-15 05:49:29 +00:00
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 7508 "sql.c"
break;
2023-11-29 11:07:23 +00:00
case 422: /* cmd ::= KILL TRANSACTION NK_INTEGER */
#line 764 "sql.y"
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 7513 "sql.c"
break;
2023-11-29 11:07:23 +00:00
case 423: /* cmd ::= KILL COMPACT NK_INTEGER */
#line 765 "sql.y"
2023-11-16 03:41:02 +00:00
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 7518 "sql.c"
2023-11-16 03:41:02 +00:00
break;
2023-11-29 11:07:23 +00:00
case 424: /* cmd ::= BALANCE VGROUP */
#line 768 "sql.y"
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
2023-11-29 11:07:23 +00:00
#line 7523 "sql.c"
break;
2023-11-29 11:07:23 +00:00
case 425: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
#line 769 "sql.y"
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy659); }
#line 7528 "sql.c"
2022-06-07 03:53:32 +00:00
break;
2023-11-29 11:07:23 +00:00
case 426: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
#line 770 "sql.y"
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 7533 "sql.c"
break;
2023-11-29 11:07:23 +00:00
case 427: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
#line 771 "sql.y"
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy694); }
#line 7538 "sql.c"
break;
2023-11-29 11:07:23 +00:00
case 428: /* cmd ::= SPLIT VGROUP NK_INTEGER */
#line 772 "sql.y"
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
2023-11-29 11:07:23 +00:00
#line 7543 "sql.c"
break;
case 431: /* dnode_list ::= DNODE NK_INTEGER */
#line 781 "sql.y"
{ yymsp[-1].minor.yy694 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
#line 7548 "sql.c"
break;
case 433: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
#line 788 "sql.y"
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy722, yymsp[0].minor.yy722); }
#line 7553 "sql.c"
break;
case 436: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
#line 797 "sql.y"
{ yymsp[-6].minor.yy722 = createInsertStmt(pCxt, yymsp[-4].minor.yy722, yymsp[-2].minor.yy694, yymsp[0].minor.yy722); }
#line 7558 "sql.c"
break;
case 437: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
#line 798 "sql.y"
{ yymsp[-3].minor.yy722 = createInsertStmt(pCxt, yymsp[-1].minor.yy722, NULL, yymsp[0].minor.yy722); }
#line 7563 "sql.c"
break;
case 438: /* tags_literal ::= NK_INTEGER */
case 450: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==450);
case 459: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==459);
#line 801 "sql.y"
{ yylhsminor.yy722 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); }
#line 7570 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 439: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */
case 440: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==440);
case 451: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==451);
case 452: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==452);
case 460: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==460);
case 461: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==461);
case 469: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==469);
case 470: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==470);
#line 802 "sql.y"
{
SToken l = yymsp[-2].minor.yy0;
2023-11-29 11:07:23 +00:00
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
l.n = (r.z + r.n) - l.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy722);
}
2023-11-29 11:07:23 +00:00
#line 7588 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 441: /* tags_literal ::= NK_PLUS NK_INTEGER */
case 444: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==444);
case 453: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==453);
case 456: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==456);
case 462: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==462);
case 465: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==465);
#line 814 "sql.y"
2024-03-10 14:14:57 +00:00
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL);
2024-03-10 14:14:57 +00:00
}
2023-11-29 11:07:23 +00:00
#line 7603 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
case 442: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */
case 443: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==443);
case 445: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==445);
case 446: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==446);
case 454: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==454);
case 455: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==455);
case 457: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==457);
case 458: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==458);
case 463: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==463);
case 464: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==464);
case 466: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==466);
case 467: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==467);
#line 819 "sql.y"
{
SToken l = yymsp[-3].minor.yy0;
2023-11-29 11:07:23 +00:00
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
l.n = (r.z + r.n) - l.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy722);
}
2023-11-29 11:07:23 +00:00
#line 7625 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 447: /* tags_literal ::= NK_FLOAT */
#line 848 "sql.y"
{ yylhsminor.yy722 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); }
#line 7631 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 448: /* tags_literal ::= NK_PLUS NK_FLOAT */
case 449: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==449);
#line 849 "sql.y"
{
2022-03-22 06:09:15 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL);
2022-03-22 06:09:15 +00:00
}
2023-11-29 11:07:23 +00:00
#line 7642 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
case 468: /* tags_literal ::= NK_STRING */
#line 955 "sql.y"
{ yylhsminor.yy722 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); }
#line 7648 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 471: /* tags_literal ::= NK_BOOL */
#line 968 "sql.y"
{ yylhsminor.yy722 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); }
#line 7654 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 472: /* tags_literal ::= NULL */
#line 969 "sql.y"
{ yylhsminor.yy722 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); }
#line 7660 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 473: /* tags_literal ::= literal_func */
#line 971 "sql.y"
{ yylhsminor.yy722 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy722); }
#line 7666 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 474: /* tags_literal ::= literal_func NK_PLUS duration_literal */
case 475: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==475);
#line 972 "sql.y"
2024-03-10 14:14:57 +00:00
{
2023-11-29 11:07:23 +00:00
SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
2024-03-10 14:14:57 +00:00
l.n = (r.z + r.n) - l.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy722, yymsp[0].minor.yy722);
2024-03-10 14:14:57 +00:00
}
2023-11-29 11:07:23 +00:00
#line 7678 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 478: /* literal ::= NK_INTEGER */
#line 991 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
#line 7684 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 479: /* literal ::= NK_FLOAT */
#line 992 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
#line 7690 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 480: /* literal ::= NK_STRING */
#line 993 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
#line 7696 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 481: /* literal ::= NK_BOOL */
#line 994 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
#line 7702 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 482: /* literal ::= TIMESTAMP NK_STRING */
#line 995 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
#line 7708 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
case 483: /* literal ::= duration_literal */
case 493: /* signed_literal ::= signed */ yytestcase(yyruleno==493);
case 517: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==517);
case 518: /* expression ::= literal */ yytestcase(yyruleno==518);
case 520: /* expression ::= column_reference */ yytestcase(yyruleno==520);
case 521: /* expression ::= function_expression */ yytestcase(yyruleno==521);
case 522: /* expression ::= case_when_expression */ yytestcase(yyruleno==522);
case 556: /* function_expression ::= literal_func */ yytestcase(yyruleno==556);
case 606: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==606);
case 610: /* boolean_primary ::= predicate */ yytestcase(yyruleno==610);
case 612: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==612);
case 613: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==613);
case 616: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==616);
case 618: /* table_reference ::= table_primary */ yytestcase(yyruleno==618);
case 619: /* table_reference ::= joined_table */ yytestcase(yyruleno==619);
case 623: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==623);
case 708: /* query_simple ::= query_specification */ yytestcase(yyruleno==708);
case 709: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==709);
case 712: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==712);
case 714: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==714);
#line 996 "sql.y"
{ yylhsminor.yy722 = yymsp[0].minor.yy722; }
#line 7733 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 484: /* literal ::= NULL */
#line 997 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
#line 7739 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 485: /* literal ::= NK_QUESTION */
#line 998 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 7745 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 486: /* duration_literal ::= NK_VARIABLE */
case 683: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==683);
case 684: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==684);
case 685: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==685);
#line 1000 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 7754 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 487: /* signed ::= NK_INTEGER */
#line 1002 "sql.y"
{ yylhsminor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
#line 7760 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 488: /* signed ::= NK_PLUS NK_INTEGER */
#line 1003 "sql.y"
{ yymsp[-1].minor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
#line 7766 "sql.c"
break;
case 489: /* signed ::= NK_MINUS NK_INTEGER */
#line 1004 "sql.y"
{
2022-03-22 06:09:15 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
2022-03-22 06:09:15 +00:00
}
2023-11-29 11:07:23 +00:00
#line 7775 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
case 490: /* signed ::= NK_FLOAT */
#line 1009 "sql.y"
{ yylhsminor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
#line 7781 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 491: /* signed ::= NK_PLUS NK_FLOAT */
#line 1010 "sql.y"
{ yymsp[-1].minor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
#line 7787 "sql.c"
break;
case 492: /* signed ::= NK_MINUS NK_FLOAT */
#line 1011 "sql.y"
{
2022-03-22 06:09:15 +00:00
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
2022-03-22 06:09:15 +00:00
}
2023-11-29 11:07:23 +00:00
#line 7796 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
case 494: /* signed_literal ::= NK_STRING */
#line 1018 "sql.y"
{ yylhsminor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
#line 7802 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 495: /* signed_literal ::= NK_BOOL */
#line 1019 "sql.y"
{ yylhsminor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
#line 7808 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 496: /* signed_literal ::= TIMESTAMP NK_STRING */
#line 1020 "sql.y"
{ yymsp[-1].minor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
#line 7814 "sql.c"
break;
case 497: /* signed_literal ::= duration_literal */
case 499: /* signed_literal ::= literal_func */ yytestcase(yyruleno==499);
case 577: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==577);
case 660: /* select_item ::= common_expression */ yytestcase(yyruleno==660);
case 670: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==670);
case 713: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==713);
case 715: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==715);
case 728: /* search_condition ::= common_expression */ yytestcase(yyruleno==728);
#line 1021 "sql.y"
{ yylhsminor.yy722 = releaseRawExprNode(pCxt, yymsp[0].minor.yy722); }
#line 7826 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 498: /* signed_literal ::= NULL */
#line 1022 "sql.y"
{ yylhsminor.yy722 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
#line 7832 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 500: /* signed_literal ::= NK_QUESTION */
#line 1024 "sql.y"
{ yylhsminor.yy722 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
#line 7838 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 519: /* expression ::= pseudo_column */
#line 1090 "sql.y"
{ yylhsminor.yy722 = yymsp[0].minor.yy722; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy722, true); }
#line 7844 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 523: /* expression ::= NK_LP expression NK_RP */
case 611: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==611);
case 727: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==727);
#line 1094 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy722)); }
#line 7852 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 524: /* expression ::= NK_PLUS expr_or_subquery */
#line 1095 "sql.y"
2022-06-22 08:35:14 +00:00
{
2023-11-29 11:07:23 +00:00
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy722));
2022-06-22 08:35:14 +00:00
}
2023-11-29 11:07:23 +00:00
#line 7861 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
2022-06-22 08:35:14 +00:00
break;
2023-11-29 11:07:23 +00:00
case 525: /* expression ::= NK_MINUS expr_or_subquery */
#line 1099 "sql.y"
2022-06-22 08:35:14 +00:00
{
2023-11-29 11:07:23 +00:00
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy722), NULL));
2022-06-22 08:35:14 +00:00
}
2023-11-29 11:07:23 +00:00
#line 7870 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 526: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
#line 1103 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 7880 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
2022-03-22 06:09:15 +00:00
break;
2023-11-29 11:07:23 +00:00
case 527: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
#line 1108 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 7890 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 528: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
#line 1113 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 7900 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 529: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
#line 1118 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 7910 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 530: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
#line 1123 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 7920 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 531: /* expression ::= column_reference NK_ARROW NK_STRING */
#line 1128 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
}
2023-11-29 11:07:23 +00:00
#line 7929 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 532: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
#line 1132 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 7939 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 533: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
#line 1137 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 7949 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 536: /* column_reference ::= column_name */
#line 1148 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy659, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy659)); }
#line 7955 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 537: /* column_reference ::= table_name NK_DOT column_name */
#line 1149 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659, createColumnNode(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy659)); }
#line 7961 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 538: /* column_reference ::= NK_ALIAS */
#line 1150 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
#line 7967 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 539: /* column_reference ::= table_name NK_DOT NK_ALIAS */
#line 1151 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0)); }
#line 7973 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 540: /* pseudo_column ::= ROWTS */
case 541: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==541);
case 543: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==543);
case 544: /* pseudo_column ::= QEND */ yytestcase(yyruleno==544);
case 545: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==545);
case 546: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==546);
case 547: /* pseudo_column ::= WEND */ yytestcase(yyruleno==547);
case 548: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==548);
case 549: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==549);
case 550: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==550);
case 551: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==551);
case 558: /* literal_func ::= NOW */ yytestcase(yyruleno==558);
case 559: /* literal_func ::= TODAY */ yytestcase(yyruleno==559);
#line 1153 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
#line 7991 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 542: /* pseudo_column ::= table_name NK_DOT TBNAME */
#line 1155 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy659)))); }
#line 7997 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 552: /* function_expression ::= function_name NK_LP expression_list NK_RP */
case 553: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==553);
#line 1166 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy659, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy659, yymsp[-1].minor.yy694)); }
#line 8004 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 554: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
case 555: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==555);
#line 1169 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), yymsp[-1].minor.yy154)); }
#line 8011 "sql.c"
yymsp[-5].minor.yy722 = yylhsminor.yy722;
break;
case 557: /* literal_func ::= noarg_func NK_LP NK_RP */
#line 1175 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy659, NULL)); }
#line 8017 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 573: /* star_func_para_list ::= NK_STAR */
#line 1200 "sql.y"
{ yylhsminor.yy694 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
#line 8023 "sql.c"
yymsp[0].minor.yy694 = yylhsminor.yy694;
break;
case 578: /* star_func_para ::= table_name NK_DOT NK_STAR */
case 663: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==663);
#line 1209 "sql.y"
{ yylhsminor.yy722 = createColumnNode(pCxt, &yymsp[-2].minor.yy659, &yymsp[0].minor.yy0); }
#line 8030 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 579: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
#line 1212 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy694, yymsp[-1].minor.yy722)); }
#line 8036 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 580: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
#line 1214 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), yymsp[-2].minor.yy694, yymsp[-1].minor.yy722)); }
#line 8042 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
break;
case 583: /* when_then_expr ::= WHEN common_expression THEN common_expression */
#line 1221 "sql.y"
{ yymsp[-3].minor.yy722 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)); }
#line 8048 "sql.c"
break;
case 585: /* case_when_else_opt ::= ELSE common_expression */
#line 1224 "sql.y"
{ yymsp[-1].minor.yy722 = releaseRawExprNode(pCxt, yymsp[0].minor.yy722); }
#line 8053 "sql.c"
break;
case 586: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
case 591: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==591);
#line 1227 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy1070, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 8063 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 587: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
#line 1234 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy722), releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 8073 "sql.c"
yymsp[-4].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 588: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
#line 1240 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy722), releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 8083 "sql.c"
yymsp[-5].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 589: /* predicate ::= expr_or_subquery IS NULL */
#line 1245 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), NULL));
}
2023-11-29 11:07:23 +00:00
#line 8092 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 590: /* predicate ::= expr_or_subquery IS NOT NULL */
#line 1249 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), NULL));
}
2023-11-29 11:07:23 +00:00
#line 8101 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 592: /* compare_op ::= NK_LT */
#line 1261 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_LOWER_THAN; }
#line 8107 "sql.c"
break;
case 593: /* compare_op ::= NK_GT */
#line 1262 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_GREATER_THAN; }
#line 8112 "sql.c"
break;
case 594: /* compare_op ::= NK_LE */
#line 1263 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_LOWER_EQUAL; }
#line 8117 "sql.c"
break;
case 595: /* compare_op ::= NK_GE */
#line 1264 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_GREATER_EQUAL; }
#line 8122 "sql.c"
break;
case 596: /* compare_op ::= NK_NE */
#line 1265 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_NOT_EQUAL; }
#line 8127 "sql.c"
break;
case 597: /* compare_op ::= NK_EQ */
#line 1266 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_EQUAL; }
#line 8132 "sql.c"
break;
case 598: /* compare_op ::= LIKE */
#line 1267 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_LIKE; }
#line 8137 "sql.c"
break;
case 599: /* compare_op ::= NOT LIKE */
#line 1268 "sql.y"
{ yymsp[-1].minor.yy1070 = OP_TYPE_NOT_LIKE; }
#line 8142 "sql.c"
break;
case 600: /* compare_op ::= MATCH */
#line 1269 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_MATCH; }
#line 8147 "sql.c"
break;
case 601: /* compare_op ::= NMATCH */
#line 1270 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_NMATCH; }
#line 8152 "sql.c"
break;
case 602: /* compare_op ::= CONTAINS */
#line 1271 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_JSON_CONTAINS; }
#line 8157 "sql.c"
break;
case 603: /* in_op ::= IN */
#line 1275 "sql.y"
{ yymsp[0].minor.yy1070 = OP_TYPE_IN; }
#line 8162 "sql.c"
break;
case 604: /* in_op ::= NOT IN */
#line 1276 "sql.y"
{ yymsp[-1].minor.yy1070 = OP_TYPE_NOT_IN; }
#line 8167 "sql.c"
break;
case 605: /* in_predicate_value ::= NK_LP literal_list NK_RP */
#line 1278 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy694)); }
#line 8172 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 607: /* boolean_value_expression ::= NOT boolean_primary */
#line 1282 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy722), NULL));
}
2023-11-29 11:07:23 +00:00
#line 8181 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 608: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
#line 1287 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 8191 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
2023-11-29 11:07:23 +00:00
case 609: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
#line 1293 "sql.y"
{
2023-11-29 11:07:23 +00:00
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy722);
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy722);
yylhsminor.yy722 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), releaseRawExprNode(pCxt, yymsp[0].minor.yy722)));
}
2023-11-29 11:07:23 +00:00
#line 8201 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 617: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
#line 1311 "sql.y"
{ yylhsminor.yy722 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, JOIN_STYPE_NONE, yymsp[-2].minor.yy722, yymsp[0].minor.yy722, NULL); }
#line 8207 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 620: /* table_primary ::= table_name alias_opt */
#line 1317 "sql.y"
{ yylhsminor.yy722 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy659, &yymsp[0].minor.yy659); }
#line 8213 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
case 621: /* table_primary ::= db_name NK_DOT table_name alias_opt */
#line 1318 "sql.y"
{ yylhsminor.yy722 = createRealTableNode(pCxt, &yymsp[-3].minor.yy659, &yymsp[-1].minor.yy659, &yymsp[0].minor.yy659); }
#line 8219 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 622: /* table_primary ::= subquery alias_opt */
#line 1319 "sql.y"
{ yylhsminor.yy722 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy722), &yymsp[0].minor.yy659); }
#line 8225 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
case 624: /* alias_opt ::= */
#line 1324 "sql.y"
{ yymsp[1].minor.yy659 = nil_token; }
#line 8231 "sql.c"
break;
case 626: /* alias_opt ::= AS table_alias */
#line 1326 "sql.y"
{ yymsp[-1].minor.yy659 = yymsp[0].minor.yy659; }
#line 8236 "sql.c"
break;
case 627: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
case 628: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==628);
#line 1328 "sql.y"
{ yymsp[-2].minor.yy722 = yymsp[-1].minor.yy722; }
#line 8242 "sql.c"
break;
case 629: /* joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */
#line 1334 "sql.y"
2023-11-27 12:01:00 +00:00
{
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = createJoinTableNode(pCxt, yymsp[-6].minor.yy92, yymsp[-5].minor.yy534, yymsp[-7].minor.yy722, yymsp[-3].minor.yy722, yymsp[-2].minor.yy722);
yylhsminor.yy722 = addWindowOffsetClause(pCxt, yylhsminor.yy722, yymsp[-1].minor.yy722);
yylhsminor.yy722 = addJLimitClause(pCxt, yylhsminor.yy722, yymsp[0].minor.yy722);
2023-11-27 12:01:00 +00:00
}
2023-11-29 11:07:23 +00:00
#line 8251 "sql.c"
yymsp[-7].minor.yy722 = yylhsminor.yy722;
break;
case 630: /* join_type ::= */
#line 1342 "sql.y"
{ yymsp[1].minor.yy92 = JOIN_TYPE_INNER; }
#line 8257 "sql.c"
break;
case 631: /* join_type ::= INNER */
#line 1343 "sql.y"
{ yymsp[0].minor.yy92 = JOIN_TYPE_INNER; }
#line 8262 "sql.c"
break;
case 632: /* join_type ::= LEFT */
#line 1344 "sql.y"
{ yymsp[0].minor.yy92 = JOIN_TYPE_LEFT; }
#line 8267 "sql.c"
break;
case 633: /* join_type ::= RIGHT */
#line 1345 "sql.y"
{ yymsp[0].minor.yy92 = JOIN_TYPE_RIGHT; }
#line 8272 "sql.c"
break;
case 634: /* join_type ::= FULL */
#line 1346 "sql.y"
{ yymsp[0].minor.yy92 = JOIN_TYPE_FULL; }
#line 8277 "sql.c"
break;
case 635: /* join_subtype ::= */
#line 1350 "sql.y"
{ yymsp[1].minor.yy534 = JOIN_STYPE_NONE; }
#line 8282 "sql.c"
break;
case 636: /* join_subtype ::= OUTER */
#line 1351 "sql.y"
{ yymsp[0].minor.yy534 = JOIN_STYPE_OUTER; }
#line 8287 "sql.c"
break;
case 637: /* join_subtype ::= SEMI */
#line 1352 "sql.y"
{ yymsp[0].minor.yy534 = JOIN_STYPE_SEMI; }
#line 8292 "sql.c"
break;
case 638: /* join_subtype ::= ANTI */
#line 1353 "sql.y"
{ yymsp[0].minor.yy534 = JOIN_STYPE_ANTI; }
#line 8297 "sql.c"
break;
case 639: /* join_subtype ::= ASOF */
#line 1354 "sql.y"
{ yymsp[0].minor.yy534 = JOIN_STYPE_ASOF; }
#line 8302 "sql.c"
break;
case 640: /* join_subtype ::= WINDOW */
#line 1355 "sql.y"
{ yymsp[0].minor.yy534 = JOIN_STYPE_WIN; }
#line 8307 "sql.c"
break;
case 644: /* window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */
#line 1362 "sql.y"
{ yymsp[-5].minor.yy722 = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), releaseRawExprNode(pCxt, yymsp[-1].minor.yy722)); }
#line 8312 "sql.c"
break;
case 645: /* window_offset_literal ::= NK_VARIABLE */
#line 1364 "sql.y"
{ yylhsminor.yy722 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createTimeOffsetValueNode(pCxt, &yymsp[0].minor.yy0)); }
#line 8317 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 646: /* window_offset_literal ::= NK_MINUS NK_VARIABLE */
#line 1365 "sql.y"
2023-11-28 06:35:11 +00:00
{
SToken t = yymsp[-1].minor.yy0;
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t));
2023-11-28 06:35:11 +00:00
}
2023-11-29 11:07:23 +00:00
#line 8327 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
case 648: /* jlimit_clause_opt ::= JLIMIT NK_INTEGER */
case 719: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ yytestcase(yyruleno==719);
case 723: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==723);
#line 1372 "sql.y"
{ yymsp[-1].minor.yy722 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
#line 8335 "sql.c"
break;
case 649: /* 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 1378 "sql.y"
{
2023-11-29 11:07:23 +00:00
yymsp[-13].minor.yy722 = createSelectStmt(pCxt, yymsp[-11].minor.yy897, yymsp[-9].minor.yy694, yymsp[-8].minor.yy722, yymsp[-12].minor.yy694);
yymsp[-13].minor.yy722 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy722, yymsp[-10].minor.yy897);
yymsp[-13].minor.yy722 = addWhereClause(pCxt, yymsp[-13].minor.yy722, yymsp[-7].minor.yy722);
yymsp[-13].minor.yy722 = addPartitionByClause(pCxt, yymsp[-13].minor.yy722, yymsp[-6].minor.yy694);
yymsp[-13].minor.yy722 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy722, yymsp[-2].minor.yy722);
yymsp[-13].minor.yy722 = addGroupByClause(pCxt, yymsp[-13].minor.yy722, yymsp[-1].minor.yy694);
yymsp[-13].minor.yy722 = addHavingClause(pCxt, yymsp[-13].minor.yy722, yymsp[0].minor.yy722);
yymsp[-13].minor.yy722 = addRangeClause(pCxt, yymsp[-13].minor.yy722, yymsp[-5].minor.yy722);
yymsp[-13].minor.yy722 = addEveryClause(pCxt, yymsp[-13].minor.yy722, yymsp[-4].minor.yy722);
yymsp[-13].minor.yy722 = addFillClause(pCxt, yymsp[-13].minor.yy722, yymsp[-3].minor.yy722);
}
2023-11-29 11:07:23 +00:00
#line 8351 "sql.c"
break;
case 650: /* hint_list ::= */
#line 1393 "sql.y"
{ yymsp[1].minor.yy694 = createHintNodeList(pCxt, NULL); }
#line 8356 "sql.c"
break;
case 651: /* hint_list ::= NK_HINT */
#line 1394 "sql.y"
{ yylhsminor.yy694 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
#line 8361 "sql.c"
yymsp[0].minor.yy694 = yylhsminor.yy694;
break;
case 656: /* set_quantifier_opt ::= ALL */
#line 1405 "sql.y"
{ yymsp[0].minor.yy897 = false; }
#line 8367 "sql.c"
break;
case 659: /* select_item ::= NK_STAR */
#line 1412 "sql.y"
{ yylhsminor.yy722 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
#line 8372 "sql.c"
yymsp[0].minor.yy722 = yylhsminor.yy722;
break;
case 661: /* select_item ::= common_expression column_alias */
case 671: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==671);
#line 1414 "sql.y"
{ yylhsminor.yy722 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy722), &yymsp[0].minor.yy659); }
#line 8379 "sql.c"
yymsp[-1].minor.yy722 = yylhsminor.yy722;
break;
case 662: /* select_item ::= common_expression AS column_alias */
case 672: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==672);
#line 1415 "sql.y"
{ yylhsminor.yy722 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), &yymsp[0].minor.yy659); }
#line 8386 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 667: /* partition_by_clause_opt ::= PARTITION BY partition_list */
case 697: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==697);
case 717: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==717);
#line 1424 "sql.y"
{ yymsp[-2].minor.yy694 = yymsp[0].minor.yy694; }
#line 8394 "sql.c"
break;
case 674: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
#line 1437 "sql.y"
{ yymsp[-5].minor.yy722 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), releaseRawExprNode(pCxt, yymsp[-1].minor.yy722)); }
#line 8399 "sql.c"
break;
case 675: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
#line 1438 "sql.y"
{ yymsp[-3].minor.yy722 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy722)); }
#line 8404 "sql.c"
break;
case 676: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
#line 1440 "sql.y"
{ yymsp[-5].minor.yy722 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), NULL, yymsp[-1].minor.yy722, yymsp[0].minor.yy722); }
#line 8409 "sql.c"
break;
case 677: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
#line 1444 "sql.y"
{ yymsp[-7].minor.yy722 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy722), releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), yymsp[-1].minor.yy722, yymsp[0].minor.yy722); }
#line 8414 "sql.c"
break;
case 678: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
#line 1446 "sql.y"
{ yymsp[-6].minor.yy722 = createEventWindowNode(pCxt, yymsp[-3].minor.yy722, yymsp[0].minor.yy722); }
#line 8419 "sql.c"
break;
case 679: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
#line 1448 "sql.y"
{ yymsp[-3].minor.yy722 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); }
#line 8424 "sql.c"
break;
case 680: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
#line 1450 "sql.y"
{ yymsp[-5].minor.yy722 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); }
#line 8429 "sql.c"
break;
case 687: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
#line 1460 "sql.y"
{ yymsp[-3].minor.yy722 = createFillNode(pCxt, yymsp[-1].minor.yy94, NULL); }
#line 8434 "sql.c"
break;
case 688: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
#line 1461 "sql.y"
{ yymsp[-5].minor.yy722 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy694)); }
#line 8439 "sql.c"
break;
case 689: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
#line 1462 "sql.y"
{ yymsp[-5].minor.yy722 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy694)); }
#line 8444 "sql.c"
break;
case 690: /* fill_mode ::= NONE */
#line 1466 "sql.y"
{ yymsp[0].minor.yy94 = FILL_MODE_NONE; }
#line 8449 "sql.c"
break;
case 691: /* fill_mode ::= PREV */
#line 1467 "sql.y"
{ yymsp[0].minor.yy94 = FILL_MODE_PREV; }
#line 8454 "sql.c"
break;
case 692: /* fill_mode ::= NULL */
#line 1468 "sql.y"
{ yymsp[0].minor.yy94 = FILL_MODE_NULL; }
#line 8459 "sql.c"
break;
case 693: /* fill_mode ::= NULL_F */
#line 1469 "sql.y"
{ yymsp[0].minor.yy94 = FILL_MODE_NULL_F; }
#line 8464 "sql.c"
break;
case 694: /* fill_mode ::= LINEAR */
#line 1470 "sql.y"
{ yymsp[0].minor.yy94 = FILL_MODE_LINEAR; }
#line 8469 "sql.c"
break;
case 695: /* fill_mode ::= NEXT */
#line 1471 "sql.y"
{ yymsp[0].minor.yy94 = FILL_MODE_NEXT; }
#line 8474 "sql.c"
break;
case 698: /* group_by_list ::= expr_or_subquery */
#line 1480 "sql.y"
{ yylhsminor.yy694 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy722))); }
#line 8479 "sql.c"
yymsp[0].minor.yy694 = yylhsminor.yy694;
break;
case 699: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
#line 1481 "sql.y"
{ yylhsminor.yy694 = addNodeToList(pCxt, yymsp[-2].minor.yy694, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy722))); }
#line 8485 "sql.c"
yymsp[-2].minor.yy694 = yylhsminor.yy694;
break;
case 703: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
#line 1488 "sql.y"
{ yymsp[-5].minor.yy722 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy722), releaseRawExprNode(pCxt, yymsp[-1].minor.yy722)); }
#line 8491 "sql.c"
break;
case 704: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
#line 1490 "sql.y"
{ yymsp[-3].minor.yy722 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy722)); }
#line 8496 "sql.c"
break;
case 707: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
#line 1497 "sql.y"
2022-09-16 07:53:27 +00:00
{
2023-11-29 11:07:23 +00:00
yylhsminor.yy722 = addOrderByClause(pCxt, yymsp[-3].minor.yy722, yymsp[-2].minor.yy694);
yylhsminor.yy722 = addSlimitClause(pCxt, yylhsminor.yy722, yymsp[-1].minor.yy722);
yylhsminor.yy722 = addLimitClause(pCxt, yylhsminor.yy722, yymsp[0].minor.yy722);
}
2023-11-29 11:07:23 +00:00
#line 8505 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 710: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
#line 1507 "sql.y"
{ yylhsminor.yy722 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy722, yymsp[0].minor.yy722); }
#line 8511 "sql.c"
yymsp[-3].minor.yy722 = yylhsminor.yy722;
break;
case 711: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
#line 1509 "sql.y"
{ yylhsminor.yy722 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy722, yymsp[0].minor.yy722); }
#line 8517 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 720: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
case 724: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==724);
#line 1524 "sql.y"
{ yymsp[-3].minor.yy722 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
#line 8524 "sql.c"
break;
case 721: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
case 725: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==725);
#line 1525 "sql.y"
{ yymsp[-3].minor.yy722 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
#line 8530 "sql.c"
break;
case 726: /* subquery ::= NK_LP query_expression NK_RP */
#line 1533 "sql.y"
{ yylhsminor.yy722 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy722); }
#line 8535 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 731: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
#line 1547 "sql.y"
{ yylhsminor.yy722 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy722), yymsp[-1].minor.yy708, yymsp[0].minor.yy707); }
#line 8541 "sql.c"
yymsp[-2].minor.yy722 = yylhsminor.yy722;
break;
case 732: /* ordering_specification_opt ::= */
#line 1551 "sql.y"
{ yymsp[1].minor.yy708 = ORDER_ASC; }
#line 8547 "sql.c"
break;
case 733: /* ordering_specification_opt ::= ASC */
#line 1552 "sql.y"
{ yymsp[0].minor.yy708 = ORDER_ASC; }
#line 8552 "sql.c"
break;
case 734: /* ordering_specification_opt ::= DESC */
#line 1553 "sql.y"
{ yymsp[0].minor.yy708 = ORDER_DESC; }
#line 8557 "sql.c"
break;
case 735: /* null_ordering_opt ::= */
#line 1557 "sql.y"
{ yymsp[1].minor.yy707 = NULL_ORDER_DEFAULT; }
#line 8562 "sql.c"
break;
case 736: /* null_ordering_opt ::= NULLS FIRST */
#line 1558 "sql.y"
{ yymsp[-1].minor.yy707 = NULL_ORDER_FIRST; }
#line 8567 "sql.c"
break;
case 737: /* null_ordering_opt ::= NULLS LAST */
#line 1559 "sql.y"
{ yymsp[-1].minor.yy707 = NULL_ORDER_LAST; }
#line 8572 "sql.c"
2023-03-22 01:36:59 +00:00
break;
default:
break;
/********** End reduce actions ************************************************/
};
2023-05-09 11:19:14 +00:00
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 */
){
2022-03-10 07:36:06 +00:00
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 *****************************************/
2022-03-10 07:36:06 +00:00
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 */
2022-03-10 07:36:06 +00:00
ParseTOKENTYPE yyminor /* The minor type of the error token */
){
2022-03-10 07:36:06 +00:00
ParseARG_FETCH
ParseCTX_FETCH
#define TOKEN yyminor
/************ Begin %syntax_error code ****************************************/
2023-11-29 11:07:23 +00:00
#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);
}
2023-11-29 11:07:23 +00:00
#line 8645 "sql.c"
/************ End %syntax_error code ******************************************/
2022-03-10 07:36:06 +00:00
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 */
){
2022-03-10 07:36:06 +00:00
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 *******************************************/
2022-03-10 07:36:06 +00:00
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
2022-03-10 07:36:06 +00:00
** "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.
*/
2022-03-10 07:36:06 +00:00
void Parse(
void *yyp, /* The parser */
int yymajor, /* The major token code number */
2022-03-10 07:36:06 +00:00
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 */
2022-03-10 07:36:06 +00:00
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
2023-09-20 11:30:40 +00:00
do{
assert( yyact==yypParser->yytos->stateno );
yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
if( yyact >= YY_MIN_REDUCE ){
2023-09-20 11:30:40 +00:00
yyact = yy_reduce(yypParser,yyact-YY_MIN_REDUCE,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{
2023-09-20 11:30:40 +00:00
while( yypParser->yytos >= yypParser->yystack
&& (yyact = yy_find_reduce_action(
yypParser->yytos->stateno,
YYERRORSYMBOL)) > YY_MAX_SHIFTREDUCE
){
yy_pop_parser_stack(yypParser);
}
2023-09-20 11:30:40 +00:00
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
}
2023-09-20 11:30:40 +00:00
}while( yypParser->yytos>yypParser->yystack );
#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.
*/
2022-03-10 07:36:06 +00:00
int ParseFallback(int iToken){
#ifdef YYFALLBACK
2023-05-09 11:19:14 +00:00
assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
return yyFallback[iToken];
#else
(void)iToken;
2023-04-23 03:20:34 +00:00
return 0;
2023-05-09 11:19:14 +00:00
#endif
}