2023-11-16 03:41:02 +00:00
|
|
|
/* This file is automatically generated by Lemon from input grammar
|
|
|
|
|
** source file "sql.y". */
|
2022-01-23 12:34:16 +00:00
|
|
|
/*
|
|
|
|
|
** 2000-05-29
|
|
|
|
|
**
|
|
|
|
|
** The author disclaims copyright to this source code. In place of
|
|
|
|
|
** a legal notice, here is a blessing:
|
|
|
|
|
**
|
|
|
|
|
** May you do good and not evil.
|
|
|
|
|
** May you find forgiveness for yourself and forgive others.
|
|
|
|
|
** May you share freely, never taking more than you give.
|
|
|
|
|
**
|
|
|
|
|
*************************************************************************
|
|
|
|
|
** Driver template for the LEMON parser generator.
|
|
|
|
|
**
|
|
|
|
|
** The "lemon" program processes an LALR(1) input grammar file, then uses
|
|
|
|
|
** this template to construct a parser. The "lemon" program inserts text
|
|
|
|
|
** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the
|
|
|
|
|
** interstitial "-" characters) contained in this template is changed into
|
|
|
|
|
** the value of the %name directive from the grammar. Otherwise, the content
|
|
|
|
|
** of this template is copied straight through into the generate parser
|
|
|
|
|
** source file.
|
|
|
|
|
**
|
|
|
|
|
** The following is the concatenation of all %include directives from the
|
|
|
|
|
** input grammar file:
|
|
|
|
|
*/
|
|
|
|
|
/************ Begin %include sections from the grammar ************************/
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include <string.h>
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2022-06-01 06:39:40 +00:00
|
|
|
#define ALLOW_FORBID_FUNC
|
|
|
|
|
|
2022-03-28 11:26:06 +00:00
|
|
|
#include "functionMgt.h"
|
2022-01-23 12:34:16 +00:00
|
|
|
#include "nodes.h"
|
2022-03-10 07:36:06 +00:00
|
|
|
#include "parToken.h"
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
/**************** End of %include directives **********************************/
|
2023-11-16 03:41:02 +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
|
2024-02-04 08:04:23 +00:00
|
|
|
#define TK_CLUSTER 58
|
|
|
|
|
#define TK_LOCAL 59
|
|
|
|
|
#define TK_QNODE 60
|
|
|
|
|
#define TK_BNODE 61
|
|
|
|
|
#define TK_SNODE 62
|
|
|
|
|
#define TK_MNODE 63
|
|
|
|
|
#define TK_VNODE 64
|
|
|
|
|
#define TK_DATABASE 65
|
|
|
|
|
#define TK_USE 66
|
|
|
|
|
#define TK_FLUSH 67
|
|
|
|
|
#define TK_TRIM 68
|
|
|
|
|
#define TK_COMPACT 69
|
|
|
|
|
#define TK_IF 70
|
|
|
|
|
#define TK_NOT 71
|
|
|
|
|
#define TK_EXISTS 72
|
|
|
|
|
#define TK_BUFFER 73
|
|
|
|
|
#define TK_CACHEMODEL 74
|
|
|
|
|
#define TK_CACHESIZE 75
|
|
|
|
|
#define TK_COMP 76
|
|
|
|
|
#define TK_DURATION 77
|
|
|
|
|
#define TK_NK_VARIABLE 78
|
|
|
|
|
#define TK_MAXROWS 79
|
|
|
|
|
#define TK_MINROWS 80
|
|
|
|
|
#define TK_KEEP 81
|
|
|
|
|
#define TK_PAGES 82
|
|
|
|
|
#define TK_PAGESIZE 83
|
|
|
|
|
#define TK_TSDB_PAGESIZE 84
|
|
|
|
|
#define TK_PRECISION 85
|
|
|
|
|
#define TK_REPLICA 86
|
|
|
|
|
#define TK_VGROUPS 87
|
|
|
|
|
#define TK_SINGLE_STABLE 88
|
|
|
|
|
#define TK_RETENTIONS 89
|
|
|
|
|
#define TK_SCHEMALESS 90
|
|
|
|
|
#define TK_WAL_LEVEL 91
|
|
|
|
|
#define TK_WAL_FSYNC_PERIOD 92
|
|
|
|
|
#define TK_WAL_RETENTION_PERIOD 93
|
|
|
|
|
#define TK_WAL_RETENTION_SIZE 94
|
|
|
|
|
#define TK_WAL_ROLL_PERIOD 95
|
|
|
|
|
#define TK_WAL_SEGMENT_SIZE 96
|
|
|
|
|
#define TK_STT_TRIGGER 97
|
|
|
|
|
#define TK_TABLE_PREFIX 98
|
|
|
|
|
#define TK_TABLE_SUFFIX 99
|
|
|
|
|
#define TK_KEEP_TIME_OFFSET 100
|
|
|
|
|
#define TK_NK_COLON 101
|
|
|
|
|
#define TK_BWLIMIT 102
|
|
|
|
|
#define TK_START 103
|
|
|
|
|
#define TK_TIMESTAMP 104
|
|
|
|
|
#define TK_END 105
|
|
|
|
|
#define TK_TABLE 106
|
|
|
|
|
#define TK_NK_LP 107
|
|
|
|
|
#define TK_NK_RP 108
|
|
|
|
|
#define TK_STABLE 109
|
|
|
|
|
#define TK_COLUMN 110
|
|
|
|
|
#define TK_MODIFY 111
|
|
|
|
|
#define TK_RENAME 112
|
|
|
|
|
#define TK_TAG 113
|
|
|
|
|
#define TK_SET 114
|
|
|
|
|
#define TK_NK_EQ 115
|
|
|
|
|
#define TK_USING 116
|
|
|
|
|
#define TK_TAGS 117
|
|
|
|
|
#define TK_BOOL 118
|
|
|
|
|
#define TK_TINYINT 119
|
|
|
|
|
#define TK_SMALLINT 120
|
|
|
|
|
#define TK_INT 121
|
|
|
|
|
#define TK_INTEGER 122
|
|
|
|
|
#define TK_BIGINT 123
|
|
|
|
|
#define TK_FLOAT 124
|
|
|
|
|
#define TK_DOUBLE 125
|
|
|
|
|
#define TK_BINARY 126
|
|
|
|
|
#define TK_NCHAR 127
|
|
|
|
|
#define TK_UNSIGNED 128
|
|
|
|
|
#define TK_JSON 129
|
|
|
|
|
#define TK_VARCHAR 130
|
|
|
|
|
#define TK_MEDIUMBLOB 131
|
|
|
|
|
#define TK_BLOB 132
|
|
|
|
|
#define TK_VARBINARY 133
|
|
|
|
|
#define TK_GEOMETRY 134
|
|
|
|
|
#define TK_DECIMAL 135
|
|
|
|
|
#define TK_COMMENT 136
|
|
|
|
|
#define TK_MAX_DELAY 137
|
|
|
|
|
#define TK_WATERMARK 138
|
|
|
|
|
#define TK_ROLLUP 139
|
|
|
|
|
#define TK_TTL 140
|
|
|
|
|
#define TK_SMA 141
|
|
|
|
|
#define TK_DELETE_MARK 142
|
|
|
|
|
#define TK_FIRST 143
|
|
|
|
|
#define TK_LAST 144
|
|
|
|
|
#define TK_SHOW 145
|
|
|
|
|
#define TK_PRIVILEGES 146
|
|
|
|
|
#define TK_DATABASES 147
|
|
|
|
|
#define TK_TABLES 148
|
|
|
|
|
#define TK_STABLES 149
|
|
|
|
|
#define TK_MNODES 150
|
|
|
|
|
#define TK_QNODES 151
|
|
|
|
|
#define TK_FUNCTIONS 152
|
|
|
|
|
#define TK_INDEXES 153
|
|
|
|
|
#define TK_ACCOUNTS 154
|
|
|
|
|
#define TK_APPS 155
|
|
|
|
|
#define TK_CONNECTIONS 156
|
|
|
|
|
#define TK_LICENCES 157
|
|
|
|
|
#define TK_GRANTS 158
|
|
|
|
|
#define TK_FULL 159
|
|
|
|
|
#define TK_LOGS 160
|
|
|
|
|
#define TK_MACHINES 161
|
|
|
|
|
#define TK_QUERIES 162
|
|
|
|
|
#define TK_SCORES 163
|
|
|
|
|
#define TK_TOPICS 164
|
|
|
|
|
#define TK_VARIABLES 165
|
|
|
|
|
#define TK_BNODES 166
|
|
|
|
|
#define TK_SNODES 167
|
|
|
|
|
#define TK_TRANSACTIONS 168
|
|
|
|
|
#define TK_DISTRIBUTED 169
|
|
|
|
|
#define TK_CONSUMERS 170
|
|
|
|
|
#define TK_SUBSCRIPTIONS 171
|
|
|
|
|
#define TK_VNODES 172
|
|
|
|
|
#define TK_ALIVE 173
|
|
|
|
|
#define TK_VIEWS 174
|
|
|
|
|
#define TK_VIEW 175
|
|
|
|
|
#define TK_COMPACTS 176
|
|
|
|
|
#define TK_NORMAL 177
|
|
|
|
|
#define TK_CHILD 178
|
|
|
|
|
#define TK_LIKE 179
|
|
|
|
|
#define TK_TBNAME 180
|
|
|
|
|
#define TK_QTAGS 181
|
|
|
|
|
#define TK_AS 182
|
|
|
|
|
#define TK_SYSTEM 183
|
|
|
|
|
#define TK_INDEX 184
|
|
|
|
|
#define TK_FUNCTION 185
|
|
|
|
|
#define TK_INTERVAL 186
|
|
|
|
|
#define TK_COUNT 187
|
|
|
|
|
#define TK_LAST_ROW 188
|
|
|
|
|
#define TK_META 189
|
|
|
|
|
#define TK_ONLY 190
|
|
|
|
|
#define TK_TOPIC 191
|
|
|
|
|
#define TK_CONSUMER 192
|
|
|
|
|
#define TK_GROUP 193
|
|
|
|
|
#define TK_DESC 194
|
|
|
|
|
#define TK_DESCRIBE 195
|
|
|
|
|
#define TK_RESET 196
|
|
|
|
|
#define TK_QUERY 197
|
|
|
|
|
#define TK_CACHE 198
|
|
|
|
|
#define TK_EXPLAIN 199
|
|
|
|
|
#define TK_ANALYZE 200
|
|
|
|
|
#define TK_VERBOSE 201
|
|
|
|
|
#define TK_NK_BOOL 202
|
|
|
|
|
#define TK_RATIO 203
|
|
|
|
|
#define TK_NK_FLOAT 204
|
|
|
|
|
#define TK_OUTPUTTYPE 205
|
|
|
|
|
#define TK_AGGREGATE 206
|
|
|
|
|
#define TK_BUFSIZE 207
|
|
|
|
|
#define TK_LANGUAGE 208
|
|
|
|
|
#define TK_REPLACE 209
|
|
|
|
|
#define TK_STREAM 210
|
|
|
|
|
#define TK_INTO 211
|
|
|
|
|
#define TK_PAUSE 212
|
|
|
|
|
#define TK_RESUME 213
|
|
|
|
|
#define TK_TRIGGER 214
|
|
|
|
|
#define TK_AT_ONCE 215
|
|
|
|
|
#define TK_WINDOW_CLOSE 216
|
|
|
|
|
#define TK_IGNORE 217
|
|
|
|
|
#define TK_EXPIRED 218
|
|
|
|
|
#define TK_FILL_HISTORY 219
|
|
|
|
|
#define TK_UPDATE 220
|
|
|
|
|
#define TK_SUBTABLE 221
|
|
|
|
|
#define TK_UNTREATED 222
|
|
|
|
|
#define TK_KILL 223
|
|
|
|
|
#define TK_CONNECTION 224
|
|
|
|
|
#define TK_TRANSACTION 225
|
|
|
|
|
#define TK_BALANCE 226
|
|
|
|
|
#define TK_VGROUP 227
|
|
|
|
|
#define TK_LEADER 228
|
|
|
|
|
#define TK_MERGE 229
|
|
|
|
|
#define TK_REDISTRIBUTE 230
|
|
|
|
|
#define TK_SPLIT 231
|
|
|
|
|
#define TK_DELETE 232
|
|
|
|
|
#define TK_INSERT 233
|
|
|
|
|
#define TK_NULL 234
|
|
|
|
|
#define TK_NK_QUESTION 235
|
|
|
|
|
#define TK_NK_ALIAS 236
|
|
|
|
|
#define TK_NK_ARROW 237
|
|
|
|
|
#define TK_ROWTS 238
|
|
|
|
|
#define TK_QSTART 239
|
|
|
|
|
#define TK_QEND 240
|
|
|
|
|
#define TK_QDURATION 241
|
|
|
|
|
#define TK_WSTART 242
|
|
|
|
|
#define TK_WEND 243
|
|
|
|
|
#define TK_WDURATION 244
|
|
|
|
|
#define TK_IROWTS 245
|
|
|
|
|
#define TK_ISFILLED 246
|
|
|
|
|
#define TK_CAST 247
|
|
|
|
|
#define TK_NOW 248
|
|
|
|
|
#define TK_TODAY 249
|
|
|
|
|
#define TK_TIMEZONE 250
|
|
|
|
|
#define TK_CLIENT_VERSION 251
|
|
|
|
|
#define TK_SERVER_VERSION 252
|
|
|
|
|
#define TK_SERVER_STATUS 253
|
|
|
|
|
#define TK_CURRENT_USER 254
|
|
|
|
|
#define TK_CASE 255
|
|
|
|
|
#define TK_WHEN 256
|
|
|
|
|
#define TK_THEN 257
|
|
|
|
|
#define TK_ELSE 258
|
|
|
|
|
#define TK_BETWEEN 259
|
|
|
|
|
#define TK_IS 260
|
|
|
|
|
#define TK_NK_LT 261
|
|
|
|
|
#define TK_NK_GT 262
|
|
|
|
|
#define TK_NK_LE 263
|
|
|
|
|
#define TK_NK_GE 264
|
|
|
|
|
#define TK_NK_NE 265
|
|
|
|
|
#define TK_MATCH 266
|
|
|
|
|
#define TK_NMATCH 267
|
|
|
|
|
#define TK_CONTAINS 268
|
|
|
|
|
#define TK_IN 269
|
|
|
|
|
#define TK_JOIN 270
|
|
|
|
|
#define TK_INNER 271
|
|
|
|
|
#define TK_SELECT 272
|
|
|
|
|
#define TK_NK_HINT 273
|
|
|
|
|
#define TK_DISTINCT 274
|
|
|
|
|
#define TK_WHERE 275
|
|
|
|
|
#define TK_PARTITION 276
|
|
|
|
|
#define TK_BY 277
|
|
|
|
|
#define TK_SESSION 278
|
|
|
|
|
#define TK_STATE_WINDOW 279
|
|
|
|
|
#define TK_EVENT_WINDOW 280
|
|
|
|
|
#define TK_COUNT_WINDOW 281
|
|
|
|
|
#define TK_SLIDING 282
|
|
|
|
|
#define TK_FILL 283
|
|
|
|
|
#define TK_VALUE 284
|
|
|
|
|
#define TK_VALUE_F 285
|
|
|
|
|
#define TK_NONE 286
|
|
|
|
|
#define TK_PREV 287
|
|
|
|
|
#define TK_NULL_F 288
|
|
|
|
|
#define TK_LINEAR 289
|
|
|
|
|
#define TK_NEXT 290
|
|
|
|
|
#define TK_HAVING 291
|
|
|
|
|
#define TK_RANGE 292
|
|
|
|
|
#define TK_EVERY 293
|
|
|
|
|
#define TK_ORDER 294
|
|
|
|
|
#define TK_SLIMIT 295
|
|
|
|
|
#define TK_SOFFSET 296
|
|
|
|
|
#define TK_LIMIT 297
|
|
|
|
|
#define TK_OFFSET 298
|
|
|
|
|
#define TK_ASC 299
|
|
|
|
|
#define TK_NULLS 300
|
|
|
|
|
#define TK_ABORT 301
|
|
|
|
|
#define TK_AFTER 302
|
|
|
|
|
#define TK_ATTACH 303
|
|
|
|
|
#define TK_BEFORE 304
|
|
|
|
|
#define TK_BEGIN 305
|
|
|
|
|
#define TK_BITAND 306
|
|
|
|
|
#define TK_BITNOT 307
|
|
|
|
|
#define TK_BITOR 308
|
|
|
|
|
#define TK_BLOCKS 309
|
|
|
|
|
#define TK_CHANGE 310
|
|
|
|
|
#define TK_COMMA 311
|
|
|
|
|
#define TK_CONCAT 312
|
|
|
|
|
#define TK_CONFLICT 313
|
|
|
|
|
#define TK_COPY 314
|
|
|
|
|
#define TK_DEFERRED 315
|
|
|
|
|
#define TK_DELIMITERS 316
|
|
|
|
|
#define TK_DETACH 317
|
|
|
|
|
#define TK_DIVIDE 318
|
|
|
|
|
#define TK_DOT 319
|
|
|
|
|
#define TK_EACH 320
|
|
|
|
|
#define TK_FAIL 321
|
|
|
|
|
#define TK_FILE 322
|
|
|
|
|
#define TK_FOR 323
|
|
|
|
|
#define TK_GLOB 324
|
|
|
|
|
#define TK_ID 325
|
|
|
|
|
#define TK_IMMEDIATE 326
|
|
|
|
|
#define TK_IMPORT 327
|
|
|
|
|
#define TK_INITIALLY 328
|
|
|
|
|
#define TK_INSTEAD 329
|
|
|
|
|
#define TK_ISNULL 330
|
|
|
|
|
#define TK_KEY 331
|
|
|
|
|
#define TK_MODULES 332
|
|
|
|
|
#define TK_NK_BITNOT 333
|
|
|
|
|
#define TK_NK_SEMI 334
|
|
|
|
|
#define TK_NOTNULL 335
|
|
|
|
|
#define TK_OF 336
|
|
|
|
|
#define TK_PLUS 337
|
|
|
|
|
#define TK_PRIVILEGE 338
|
|
|
|
|
#define TK_RAISE 339
|
|
|
|
|
#define TK_RESTRICT 340
|
|
|
|
|
#define TK_ROW 341
|
|
|
|
|
#define TK_SEMI 342
|
|
|
|
|
#define TK_STAR 343
|
|
|
|
|
#define TK_STATEMENT 344
|
|
|
|
|
#define TK_STRICT 345
|
|
|
|
|
#define TK_STRING 346
|
|
|
|
|
#define TK_TIMES 347
|
|
|
|
|
#define TK_VALUES 348
|
|
|
|
|
#define TK_VARIABLE 349
|
|
|
|
|
#define TK_WAL 350
|
2023-11-16 03:41:02 +00:00
|
|
|
#endif
|
|
|
|
|
/**************** End token definitions ***************************************/
|
2022-01-23 12:34:16 +00:00
|
|
|
|
|
|
|
|
/* 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
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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
|
2024-02-04 08:04:23 +00:00
|
|
|
#define YYNOCODE 512
|
2022-01-27 06:32:40 +00:00
|
|
|
#define YYACTIONTYPE unsigned short int
|
2022-03-10 07:36:06 +00:00
|
|
|
#define ParseTOKENTYPE SToken
|
2022-01-23 12:34:16 +00:00
|
|
|
typedef union {
|
|
|
|
|
int yyinit;
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseTOKENTYPE yy0;
|
2024-02-04 08:04:23 +00:00
|
|
|
STokenPair yy57;
|
|
|
|
|
int64_t yy221;
|
|
|
|
|
EOperatorType yy252;
|
|
|
|
|
EShowKind yy321;
|
|
|
|
|
bool yy345;
|
|
|
|
|
EFillMode yy358;
|
|
|
|
|
SNode* yy360;
|
|
|
|
|
SNodeList* yy536;
|
|
|
|
|
int32_t yy580;
|
|
|
|
|
ENullOrder yy585;
|
|
|
|
|
EJoinType yy596;
|
|
|
|
|
EOrder yy642;
|
|
|
|
|
int8_t yy695;
|
|
|
|
|
SAlterOption yy797;
|
|
|
|
|
SDataType yy912;
|
|
|
|
|
SToken yy929;
|
|
|
|
|
SShowTablesOption yy1005;
|
2022-01-23 12:34:16 +00:00
|
|
|
} 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
|
2024-02-19 10:30:12 +00:00
|
|
|
#define YYNSTATE 852
|
2024-02-04 08:04:23 +00:00
|
|
|
#define YYNRULE 649
|
|
|
|
|
#define YYNRULE_WITH_ACTION 649
|
|
|
|
|
#define YYNTOKEN 351
|
2024-02-19 10:30:12 +00:00
|
|
|
#define YY_MAX_SHIFT 851
|
|
|
|
|
#define YY_MIN_SHIFTREDUCE 1256
|
|
|
|
|
#define YY_MAX_SHIFTREDUCE 1904
|
|
|
|
|
#define YY_ERROR_ACTION 1905
|
|
|
|
|
#define YY_ACCEPT_ACTION 1906
|
|
|
|
|
#define YY_NO_ACTION 1907
|
|
|
|
|
#define YY_MIN_REDUCE 1908
|
|
|
|
|
#define YY_MAX_REDUCE 2556
|
2022-01-23 12:34:16 +00:00
|
|
|
/************* 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 **********************************************/
|
2024-02-04 08:04:23 +00:00
|
|
|
#define YY_ACTTAB_COUNT (2941)
|
2022-01-23 12:34:16 +00:00
|
|
|
static const YYACTIONTYPE yy_action[] = {
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 0 */ 95, 2332, 567, 2151, 468, 568, 1951, 14, 13, 467,
|
|
|
|
|
/* 10 */ 2185, 2315, 48, 46, 1826, 2340, 2532, 387, 723, 2527,
|
|
|
|
|
/* 20 */ 419, 699, 1667, 41, 40, 2336, 2093, 47, 45, 44,
|
|
|
|
|
/* 30 */ 43, 42, 174, 647, 1920, 1752, 1994, 1665, 2531, 737,
|
|
|
|
|
/* 40 */ 2098, 704, 2528, 2530, 2527, 2356, 38, 321, 645, 584,
|
|
|
|
|
/* 50 */ 643, 270, 269, 1696, 675, 716, 146, 2527, 719, 137,
|
|
|
|
|
/* 60 */ 112, 675, 703, 203, 2527, 1747, 610, 2528, 705, 2338,
|
|
|
|
|
/* 70 */ 416, 19, 739, 2236, 2418, 2533, 203, 147, 1673, 747,
|
|
|
|
|
/* 80 */ 2528, 705, 2533, 203, 2236, 2090, 2374, 2528, 705, 41,
|
|
|
|
|
/* 90 */ 40, 2234, 724, 47, 45, 44, 43, 42, 2322, 412,
|
|
|
|
|
/* 100 */ 753, 587, 2233, 724, 848, 585, 2229, 15, 475, 823,
|
|
|
|
|
/* 110 */ 822, 821, 820, 431, 1795, 819, 818, 151, 813, 812,
|
|
|
|
|
/* 120 */ 811, 810, 809, 808, 807, 150, 801, 800, 799, 430,
|
|
|
|
|
/* 130 */ 429, 796, 795, 794, 183, 182, 793, 2074, 1322, 2355,
|
|
|
|
|
/* 140 */ 1321, 63, 2393, 1754, 1755, 114, 2357, 757, 2359, 2360,
|
|
|
|
|
/* 150 */ 752, 1692, 747, 534, 532, 142, 367, 186, 575, 2446,
|
|
|
|
|
/* 160 */ 217, 568, 1951, 415, 2442, 301, 2454, 715, 572, 138,
|
|
|
|
|
/* 170 */ 714, 511, 2527, 1323, 569, 510, 184, 2151, 205, 2532,
|
|
|
|
|
/* 180 */ 1727, 1737, 2527, 509, 383, 736, 2476, 1753, 1756, 1870,
|
|
|
|
|
/* 190 */ 703, 203, 2149, 716, 146, 2528, 705, 1908, 385, 52,
|
|
|
|
|
/* 200 */ 2216, 2531, 1668, 63, 1666, 2528, 2529, 792, 196, 1901,
|
|
|
|
|
/* 210 */ 1692, 41, 40, 2145, 2146, 47, 45, 44, 43, 42,
|
|
|
|
|
/* 220 */ 2138, 136, 135, 134, 133, 132, 131, 130, 129, 128,
|
|
|
|
|
/* 230 */ 736, 484, 2212, 528, 1671, 1672, 1724, 1724, 1726, 1729,
|
|
|
|
|
/* 240 */ 1730, 1731, 1732, 1733, 1734, 1735, 1736, 749, 745, 1745,
|
|
|
|
|
/* 250 */ 1746, 1748, 1749, 1750, 1751, 2, 48, 46, 1325, 1326,
|
|
|
|
|
/* 260 */ 1693, 365, 704, 1690, 419, 2527, 1667, 428, 427, 1697,
|
|
|
|
|
/* 270 */ 518, 238, 2356, 537, 377, 570, 658, 1959, 536, 1752,
|
|
|
|
|
/* 280 */ 219, 1665, 223, 703, 203, 751, 273, 240, 2528, 705,
|
|
|
|
|
/* 290 */ 272, 570, 1674, 1959, 498, 228, 538, 466, 1696, 465,
|
|
|
|
|
/* 300 */ 698, 366, 500, 202, 2454, 2455, 305, 144, 2459, 1747,
|
|
|
|
|
/* 310 */ 1931, 659, 478, 2374, 1900, 19, 1460, 51, 1781, 527,
|
|
|
|
|
/* 320 */ 227, 452, 1673, 90, 274, 2322, 89, 753, 2374, 464,
|
|
|
|
|
/* 330 */ 1451, 782, 781, 780, 1455, 779, 1457, 1458, 778, 775,
|
|
|
|
|
/* 340 */ 583, 1466, 772, 1468, 1469, 769, 766, 763, 848, 386,
|
|
|
|
|
/* 350 */ 1693, 15, 790, 161, 160, 787, 786, 785, 158, 98,
|
|
|
|
|
/* 360 */ 486, 1997, 372, 2322, 305, 398, 2355, 649, 305, 2393,
|
|
|
|
|
/* 370 */ 1566, 1567, 357, 2357, 757, 2359, 2360, 752, 750, 747,
|
|
|
|
|
/* 380 */ 738, 2411, 1782, 1586, 1587, 577, 2275, 1754, 1755, 697,
|
|
|
|
|
/* 390 */ 2223, 2202, 88, 525, 524, 523, 522, 517, 516, 515,
|
|
|
|
|
/* 400 */ 514, 369, 1635, 1636, 1930, 504, 503, 502, 501, 495,
|
|
|
|
|
/* 410 */ 494, 493, 2532, 488, 487, 384, 184, 737, 2098, 479,
|
|
|
|
|
/* 420 */ 1554, 1555, 716, 146, 1727, 1737, 1573, 1585, 1588, 1695,
|
|
|
|
|
/* 430 */ 2461, 1753, 1756, 1695, 629, 628, 627, 137, 716, 146,
|
|
|
|
|
/* 440 */ 2217, 619, 143, 623, 615, 1305, 1668, 622, 1666, 456,
|
|
|
|
|
/* 450 */ 1696, 1691, 621, 626, 393, 392, 2458, 2322, 620, 1677,
|
|
|
|
|
/* 460 */ 194, 616, 37, 417, 1776, 1777, 1778, 1779, 1780, 1784,
|
|
|
|
|
/* 470 */ 1785, 1786, 1787, 1495, 1496, 792, 458, 454, 1671, 1672,
|
|
|
|
|
/* 480 */ 1724, 744, 1726, 1729, 1730, 1731, 1732, 1733, 1734, 1735,
|
|
|
|
|
/* 490 */ 1736, 749, 745, 1745, 1746, 1748, 1749, 1750, 1751, 2,
|
|
|
|
|
/* 500 */ 12, 48, 46, 2356, 1322, 2332, 1321, 736, 2531, 419,
|
|
|
|
|
/* 510 */ 2075, 1667, 422, 1823, 1697, 256, 754, 1894, 424, 2089,
|
|
|
|
|
/* 520 */ 168, 2144, 2146, 2151, 1752, 1929, 1665, 400, 2100, 2336,
|
|
|
|
|
/* 530 */ 399, 179, 204, 2454, 2455, 2149, 144, 2459, 2149, 1323,
|
|
|
|
|
/* 540 */ 604, 600, 596, 592, 2374, 255, 106, 718, 201, 2454,
|
|
|
|
|
/* 550 */ 2455, 1303, 144, 2459, 1747, 12, 2322, 2151, 753, 656,
|
|
|
|
|
/* 560 */ 19, 629, 628, 627, 409, 3, 694, 1673, 619, 143,
|
|
|
|
|
/* 570 */ 623, 2091, 2149, 2338, 622, 1301, 1302, 54, 2322, 621,
|
|
|
|
|
/* 580 */ 626, 393, 392, 747, 1859, 620, 96, 1692, 616, 253,
|
|
|
|
|
/* 590 */ 12, 303, 10, 848, 51, 303, 15, 2355, 737, 2098,
|
|
|
|
|
/* 600 */ 2393, 2356, 95, 114, 2357, 757, 2359, 2360, 752, 741,
|
|
|
|
|
/* 610 */ 747, 2418, 198, 149, 754, 156, 2417, 2446, 492, 41,
|
|
|
|
|
/* 620 */ 40, 415, 2442, 47, 45, 44, 43, 42, 2094, 2332,
|
|
|
|
|
/* 630 */ 1415, 1696, 1754, 1755, 691, 690, 1857, 1858, 1860, 1861,
|
|
|
|
|
/* 640 */ 1862, 1928, 2374, 2341, 1773, 1414, 790, 161, 160, 787,
|
|
|
|
|
/* 650 */ 786, 785, 158, 2336, 2322, 243, 753, 1909, 700, 695,
|
|
|
|
|
/* 660 */ 688, 684, 490, 2212, 252, 245, 1697, 520, 2212, 1727,
|
|
|
|
|
/* 670 */ 1737, 250, 581, 1927, 63, 659, 1753, 1756, 127, 68,
|
|
|
|
|
/* 680 */ 2303, 126, 125, 124, 123, 122, 121, 120, 119, 118,
|
|
|
|
|
/* 690 */ 242, 1668, 173, 1666, 2322, 2355, 806, 2338, 2393, 2059,
|
|
|
|
|
/* 700 */ 2037, 114, 2357, 757, 2359, 2360, 752, 747, 747, 564,
|
|
|
|
|
/* 710 */ 1926, 221, 539, 2421, 2316, 2446, 226, 1673, 562, 415,
|
|
|
|
|
/* 720 */ 2442, 558, 554, 1671, 1672, 1724, 2322, 1726, 1729, 1730,
|
|
|
|
|
/* 730 */ 1731, 1732, 1733, 1734, 1735, 1736, 749, 745, 1745, 1746,
|
|
|
|
|
/* 740 */ 1748, 1749, 1750, 1751, 2, 48, 46, 1757, 2356, 661,
|
|
|
|
|
/* 750 */ 2275, 737, 2098, 419, 2284, 1667, 654, 312, 313, 305,
|
|
|
|
|
/* 760 */ 159, 719, 311, 2322, 675, 1936, 843, 2527, 1752, 127,
|
|
|
|
|
/* 770 */ 1665, 208, 126, 125, 124, 123, 122, 121, 120, 119,
|
|
|
|
|
/* 780 */ 118, 2356, 63, 1822, 413, 2533, 203, 737, 2098, 2374,
|
|
|
|
|
/* 790 */ 2528, 705, 171, 199, 754, 2151, 1961, 326, 1747, 707,
|
|
|
|
|
/* 800 */ 2100, 2322, 414, 753, 737, 2098, 675, 56, 275, 2527,
|
|
|
|
|
/* 810 */ 2149, 1673, 41, 40, 2151, 422, 47, 45, 44, 43,
|
|
|
|
|
/* 820 */ 42, 423, 2374, 171, 472, 606, 605, 2533, 203, 2149,
|
|
|
|
|
/* 830 */ 425, 2100, 2528, 705, 2322, 55, 753, 848, 171, 305,
|
|
|
|
|
/* 840 */ 49, 9, 2355, 737, 2098, 2393, 2100, 1697, 114, 2357,
|
|
|
|
|
/* 850 */ 757, 2359, 2360, 752, 1925, 747, 2356, 1924, 783, 1667,
|
|
|
|
|
/* 860 */ 186, 1296, 2446, 473, 171, 1923, 415, 2442, 2461, 754,
|
|
|
|
|
/* 870 */ 737, 2098, 2101, 1922, 1665, 2355, 1754, 1755, 2393, 2073,
|
|
|
|
|
/* 880 */ 1303, 114, 2357, 757, 2359, 2360, 752, 1919, 747, 2477,
|
|
|
|
|
/* 890 */ 505, 636, 1830, 2547, 2457, 2446, 1762, 2374, 1692, 415,
|
|
|
|
|
/* 900 */ 2442, 197, 1692, 1298, 1301, 1302, 648, 2322, 210, 2322,
|
|
|
|
|
/* 910 */ 2322, 753, 1842, 1727, 1737, 1673, 737, 2098, 2322, 2306,
|
|
|
|
|
/* 920 */ 1753, 1756, 271, 41, 40, 1692, 2322, 47, 45, 44,
|
|
|
|
|
/* 930 */ 43, 42, 44, 43, 42, 1668, 506, 1666, 639, 1851,
|
|
|
|
|
/* 940 */ 2322, 848, 674, 625, 624, 633, 631, 305, 30, 2151,
|
|
|
|
|
/* 950 */ 2355, 1403, 268, 2393, 1852, 660, 176, 2357, 757, 2359,
|
|
|
|
|
/* 960 */ 2360, 752, 2087, 747, 732, 608, 607, 1671, 1672, 1724,
|
|
|
|
|
/* 970 */ 441, 1726, 1729, 1730, 1731, 1732, 1733, 1734, 1735, 1736,
|
|
|
|
|
/* 980 */ 749, 745, 1745, 1746, 1748, 1749, 1750, 1751, 2, 48,
|
|
|
|
|
/* 990 */ 46, 2083, 1405, 72, 1918, 1850, 71, 419, 1917, 1667,
|
|
|
|
|
/* 1000 */ 47, 45, 44, 43, 42, 675, 1916, 1915, 2527, 2085,
|
|
|
|
|
/* 1010 */ 706, 2548, 1752, 2151, 1665, 790, 161, 160, 787, 786,
|
|
|
|
|
/* 1020 */ 785, 158, 1914, 1871, 1913, 2356, 2533, 203, 2150, 41,
|
|
|
|
|
/* 1030 */ 40, 2528, 705, 47, 45, 44, 43, 42, 754, 1668,
|
|
|
|
|
/* 1040 */ 2484, 1666, 1747, 1783, 737, 2098, 1692, 2322, 2356, 737,
|
|
|
|
|
/* 1050 */ 2098, 2322, 1419, 737, 2098, 1673, 737, 2098, 1728, 2322,
|
|
|
|
|
/* 1060 */ 2322, 754, 1728, 2497, 507, 148, 2374, 1418, 2417, 586,
|
|
|
|
|
/* 1070 */ 1815, 1671, 1672, 2095, 61, 2322, 276, 2322, 2322, 76,
|
|
|
|
|
/* 1080 */ 753, 848, 672, 2356, 49, 1728, 614, 41, 40, 2374,
|
|
|
|
|
/* 1090 */ 613, 47, 45, 44, 43, 42, 754, 708, 686, 34,
|
|
|
|
|
/* 1100 */ 2169, 2322, 2081, 753, 784, 41, 40, 2142, 1912, 47,
|
|
|
|
|
/* 1110 */ 45, 44, 43, 42, 1725, 737, 2098, 803, 1725, 2355,
|
|
|
|
|
/* 1120 */ 1754, 1755, 2393, 35, 2374, 114, 2357, 757, 2359, 2360,
|
|
|
|
|
/* 1130 */ 752, 87, 747, 1788, 541, 284, 2322, 2547, 753, 2446,
|
|
|
|
|
/* 1140 */ 711, 1725, 2355, 415, 2442, 2393, 1981, 99, 114, 2357,
|
|
|
|
|
/* 1150 */ 757, 2359, 2360, 752, 2195, 747, 1911, 1727, 1737, 1676,
|
|
|
|
|
/* 1160 */ 2547, 2322, 2446, 1675, 1753, 1756, 415, 2442, 630, 737,
|
|
|
|
|
/* 1170 */ 2098, 737, 2098, 788, 737, 2098, 2142, 2355, 1614, 1668,
|
|
|
|
|
/* 1180 */ 2393, 1666, 805, 114, 2357, 757, 2359, 2360, 752, 322,
|
|
|
|
|
/* 1190 */ 747, 722, 720, 36, 316, 2547, 482, 2446, 139, 41,
|
|
|
|
|
/* 1200 */ 40, 415, 2442, 47, 45, 44, 43, 42, 2102, 2322,
|
|
|
|
|
/* 1210 */ 86, 1671, 1672, 1724, 281, 1726, 1729, 1730, 1731, 1732,
|
|
|
|
|
/* 1220 */ 1733, 1734, 1735, 1736, 749, 745, 1745, 1746, 1748, 1749,
|
|
|
|
|
/* 1230 */ 1750, 1751, 2, 48, 46, 391, 390, 737, 2098, 2461,
|
|
|
|
|
/* 1240 */ 2076, 419, 675, 1667, 159, 2527, 737, 2098, 817, 815,
|
|
|
|
|
/* 1250 */ 737, 2098, 789, 2466, 1815, 2142, 1752, 734, 1665, 513,
|
|
|
|
|
/* 1260 */ 512, 170, 1725, 2533, 203, 2456, 735, 159, 2528, 705,
|
|
|
|
|
/* 1270 */ 426, 335, 261, 152, 2128, 259, 2356, 263, 265, 617,
|
|
|
|
|
/* 1280 */ 262, 264, 267, 1979, 1970, 266, 1747, 618, 682, 754,
|
|
|
|
|
/* 1290 */ 1968, 2520, 651, 285, 650, 2343, 50, 50, 1921, 1673,
|
|
|
|
|
/* 1300 */ 1903, 1904, 748, 1400, 1358, 632, 634, 389, 388, 187,
|
|
|
|
|
/* 1310 */ 612, 1398, 637, 14, 13, 2038, 2490, 2374, 172, 1630,
|
|
|
|
|
/* 1320 */ 298, 159, 50, 341, 310, 848, 1679, 797, 15, 2322,
|
|
|
|
|
/* 1330 */ 1678, 753, 614, 692, 2356, 75, 613, 100, 292, 157,
|
|
|
|
|
/* 1340 */ 339, 74, 1633, 159, 73, 1359, 66, 754, 141, 2465,
|
|
|
|
|
/* 1350 */ 111, 1377, 50, 2345, 368, 50, 2375, 761, 157, 108,
|
|
|
|
|
/* 1360 */ 709, 798, 2035, 1846, 1754, 1755, 236, 549, 547, 544,
|
|
|
|
|
/* 1370 */ 2355, 1856, 1855, 2393, 159, 2374, 114, 2357, 757, 2359,
|
|
|
|
|
/* 1380 */ 2360, 752, 2034, 747, 290, 1375, 2221, 2322, 2547, 753,
|
|
|
|
|
/* 1390 */ 2446, 1962, 1952, 2480, 415, 2442, 721, 1583, 689, 314,
|
|
|
|
|
/* 1400 */ 405, 1727, 1737, 140, 157, 712, 696, 63, 1753, 1756,
|
|
|
|
|
/* 1410 */ 729, 401, 432, 2222, 318, 1958, 2139, 2481, 1445, 726,
|
|
|
|
|
/* 1420 */ 2491, 1789, 668, 1668, 717, 1666, 300, 1738, 2355, 297,
|
|
|
|
|
/* 1430 */ 334, 2393, 1473, 1477, 114, 2357, 757, 2359, 2360, 752,
|
|
|
|
|
/* 1440 */ 2060, 747, 304, 841, 5, 64, 2547, 435, 2446, 1484,
|
|
|
|
|
/* 1450 */ 440, 381, 415, 2442, 448, 1671, 1672, 1724, 449, 1726,
|
|
|
|
|
/* 1460 */ 1729, 1730, 1731, 1732, 1733, 1734, 1735, 1736, 749, 745,
|
|
|
|
|
/* 1470 */ 1745, 1746, 1748, 1749, 1750, 1751, 2, 1700, 1482, 162,
|
|
|
|
|
/* 1480 */ 460, 428, 427, 211, 2356, 459, 212, 462, 214, 329,
|
|
|
|
|
/* 1490 */ 1690, 1681, 1607, 476, 84, 83, 471, 754, 1691, 216,
|
|
|
|
|
/* 1500 */ 483, 225, 485, 489, 1752, 491, 1674, 2356, 530, 496,
|
|
|
|
|
/* 1510 */ 508, 2214, 463, 461, 519, 521, 526, 543, 529, 531,
|
|
|
|
|
/* 1520 */ 754, 542, 540, 364, 231, 2374, 450, 230, 545, 447,
|
|
|
|
|
/* 1530 */ 443, 439, 436, 464, 1747, 1698, 1906, 2322, 546, 753,
|
|
|
|
|
/* 1540 */ 233, 548, 2356, 550, 4, 565, 566, 1673, 2374, 573,
|
|
|
|
|
/* 1550 */ 574, 576, 1693, 241, 92, 754, 244, 578, 1699, 1701,
|
|
|
|
|
/* 1560 */ 2322, 579, 753, 580, 247, 582, 1702, 249, 588, 93,
|
|
|
|
|
/* 1570 */ 94, 609, 305, 743, 2230, 254, 640, 611, 2355, 2088,
|
|
|
|
|
/* 1580 */ 116, 2393, 641, 2374, 114, 2357, 757, 2359, 2360, 752,
|
|
|
|
|
/* 1590 */ 361, 747, 97, 258, 2084, 2322, 2419, 753, 2446, 260,
|
|
|
|
|
/* 1600 */ 164, 2355, 415, 2442, 2393, 165, 653, 114, 2357, 757,
|
|
|
|
|
/* 1610 */ 2359, 2360, 752, 2086, 747, 434, 2293, 2082, 166, 740,
|
|
|
|
|
/* 1620 */ 433, 2446, 167, 2290, 2289, 415, 2442, 277, 1694, 663,
|
|
|
|
|
/* 1630 */ 662, 282, 693, 667, 669, 670, 2355, 679, 727, 2393,
|
|
|
|
|
/* 1640 */ 664, 2356, 115, 2357, 757, 2359, 2360, 752, 8, 747,
|
|
|
|
|
/* 1650 */ 330, 153, 655, 280, 754, 2496, 2446, 287, 289, 702,
|
|
|
|
|
/* 1660 */ 2445, 2442, 2495, 677, 2468, 675, 291, 2276, 2527, 680,
|
|
|
|
|
/* 1670 */ 293, 1682, 2356, 1677, 678, 296, 713, 406, 710, 1815,
|
|
|
|
|
/* 1680 */ 1695, 2526, 2374, 145, 1820, 754, 2533, 203, 2462, 190,
|
|
|
|
|
/* 1690 */ 1818, 2528, 705, 306, 2322, 331, 753, 332, 730, 2356,
|
|
|
|
|
/* 1700 */ 154, 725, 294, 1685, 1687, 2244, 2243, 731, 2242, 155,
|
|
|
|
|
/* 1710 */ 411, 178, 754, 2374, 333, 105, 62, 745, 1745, 1746,
|
|
|
|
|
/* 1720 */ 1748, 1749, 1750, 1751, 295, 2322, 2099, 753, 1, 206,
|
|
|
|
|
/* 1730 */ 2427, 107, 759, 299, 336, 2355, 324, 2143, 2393, 1280,
|
|
|
|
|
/* 1740 */ 2374, 115, 2357, 757, 2359, 2360, 752, 842, 747, 2550,
|
|
|
|
|
/* 1750 */ 845, 847, 2322, 163, 753, 2446, 345, 2356, 360, 742,
|
|
|
|
|
/* 1760 */ 2442, 373, 53, 374, 359, 340, 755, 349, 2314, 2393,
|
|
|
|
|
/* 1770 */ 754, 338, 115, 2357, 757, 2359, 2360, 752, 2313, 747,
|
|
|
|
|
/* 1780 */ 2312, 81, 2307, 437, 438, 1658, 2446, 1659, 209, 442,
|
|
|
|
|
/* 1790 */ 376, 2442, 2356, 2355, 2305, 444, 2393, 445, 2374, 175,
|
|
|
|
|
/* 1800 */ 2357, 757, 2359, 2360, 752, 754, 747, 446, 1657, 2304,
|
|
|
|
|
/* 1810 */ 2322, 382, 753, 2302, 451, 2301, 453, 2300, 455, 2299,
|
|
|
|
|
/* 1820 */ 457, 1646, 2356, 213, 2279, 215, 1610, 82, 1609, 2257,
|
|
|
|
|
/* 1830 */ 2256, 2255, 469, 2374, 2280, 754, 470, 2254, 2253, 2204,
|
|
|
|
|
/* 1840 */ 474, 676, 2487, 2201, 1553, 2322, 2200, 753, 477, 2194,
|
|
|
|
|
/* 1850 */ 481, 2355, 2191, 480, 2393, 218, 2190, 115, 2357, 757,
|
|
|
|
|
/* 1860 */ 2359, 2360, 752, 2374, 747, 85, 2189, 2188, 403, 2193,
|
|
|
|
|
/* 1870 */ 220, 2446, 2192, 2187, 2186, 2322, 2443, 753, 2184, 2183,
|
|
|
|
|
/* 1880 */ 2182, 222, 497, 2181, 499, 2179, 2355, 2356, 2178, 2393,
|
|
|
|
|
/* 1890 */ 2177, 2176, 175, 2357, 757, 2359, 2360, 752, 91, 747,
|
|
|
|
|
/* 1900 */ 754, 2199, 2356, 2175, 2174, 2173, 2197, 2180, 2172, 2171,
|
|
|
|
|
/* 1910 */ 2170, 2168, 2167, 2166, 2165, 754, 2355, 2356, 1559, 2393,
|
|
|
|
|
/* 1920 */ 2164, 2163, 358, 2357, 757, 2359, 2360, 752, 2374, 747,
|
|
|
|
|
/* 1930 */ 754, 224, 2162, 404, 229, 2488, 2161, 2160, 2159, 2198,
|
|
|
|
|
/* 1940 */ 2322, 2196, 753, 2374, 2158, 2157, 2156, 2155, 533, 2154,
|
|
|
|
|
/* 1950 */ 535, 2153, 2152, 1416, 2000, 2322, 1412, 753, 2374, 232,
|
|
|
|
|
/* 1960 */ 1999, 1998, 1420, 1996, 234, 370, 371, 235, 1993, 553,
|
|
|
|
|
/* 1970 */ 2322, 1992, 753, 552, 556, 557, 1985, 560, 1972, 551,
|
|
|
|
|
/* 1980 */ 555, 2355, 1947, 185, 2393, 559, 1304, 358, 2357, 757,
|
|
|
|
|
/* 1990 */ 2359, 2360, 752, 563, 747, 561, 2355, 2356, 1946, 2393,
|
|
|
|
|
/* 2000 */ 237, 78, 351, 2357, 757, 2359, 2360, 752, 239, 747,
|
|
|
|
|
/* 2010 */ 754, 2355, 79, 2342, 2393, 2356, 195, 176, 2357, 757,
|
|
|
|
|
/* 2020 */ 2359, 2360, 752, 571, 747, 2278, 2274, 2264, 751, 246,
|
|
|
|
|
/* 2030 */ 2251, 2228, 248, 251, 2077, 1995, 1991, 589, 2374, 2252,
|
|
|
|
|
/* 2040 */ 2356, 1351, 1989, 410, 590, 591, 593, 594, 701, 595,
|
|
|
|
|
/* 2050 */ 2322, 1987, 753, 754, 597, 598, 2374, 599, 1984, 601,
|
|
|
|
|
/* 2060 */ 603, 602, 1967, 1965, 1966, 1964, 1943, 2079, 2322, 1489,
|
|
|
|
|
/* 2070 */ 753, 2078, 2549, 65, 1488, 257, 1388, 1402, 1401, 1982,
|
|
|
|
|
/* 2080 */ 1399, 2374, 1397, 1396, 1395, 1394, 418, 1393, 814, 816,
|
|
|
|
|
/* 2090 */ 1390, 2355, 394, 2322, 2393, 753, 1389, 358, 2357, 757,
|
|
|
|
|
/* 2100 */ 2359, 2360, 752, 1980, 747, 1387, 395, 1971, 396, 2355,
|
|
|
|
|
/* 2110 */ 2356, 1969, 2393, 635, 657, 357, 2357, 757, 2359, 2360,
|
|
|
|
|
/* 2120 */ 752, 397, 747, 754, 2412, 638, 1942, 1941, 1940, 642,
|
|
|
|
|
/* 2130 */ 1939, 644, 851, 1938, 2355, 117, 646, 2393, 1640, 1642,
|
|
|
|
|
/* 2140 */ 358, 2357, 757, 2359, 2360, 752, 2356, 747, 328, 1639,
|
|
|
|
|
/* 2150 */ 2277, 2374, 1644, 279, 2273, 57, 420, 58, 1616, 754,
|
|
|
|
|
/* 2160 */ 1618, 2263, 665, 2322, 193, 753, 1620, 666, 29, 2250,
|
|
|
|
|
/* 2170 */ 2249, 169, 1595, 839, 835, 831, 827, 2356, 325, 69,
|
|
|
|
|
/* 2180 */ 283, 671, 2532, 1594, 20, 31, 673, 2374, 1873, 286,
|
|
|
|
|
/* 2190 */ 754, 1847, 681, 402, 17, 6, 683, 7, 685, 2322,
|
|
|
|
|
/* 2200 */ 687, 753, 200, 288, 2355, 21, 22, 2393, 1854, 189,
|
|
|
|
|
/* 2210 */ 358, 2357, 757, 2359, 2360, 752, 177, 747, 2374, 113,
|
|
|
|
|
/* 2220 */ 2343, 33, 319, 188, 32, 67, 1841, 80, 24, 1888,
|
|
|
|
|
/* 2230 */ 2322, 1893, 753, 1894, 1887, 407, 1892, 1891, 408, 1812,
|
|
|
|
|
/* 2240 */ 652, 60, 1811, 2393, 2248, 302, 353, 2357, 757, 2359,
|
|
|
|
|
/* 2250 */ 2360, 752, 2356, 747, 733, 180, 23, 18, 59, 2227,
|
|
|
|
|
/* 2260 */ 102, 728, 2226, 103, 101, 754, 25, 26, 108, 317,
|
|
|
|
|
/* 2270 */ 309, 2355, 2356, 1849, 2393, 191, 320, 343, 2357, 757,
|
|
|
|
|
/* 2280 */ 2359, 2360, 752, 1764, 747, 754, 1763, 315, 2356, 70,
|
|
|
|
|
/* 2290 */ 104, 1683, 13, 2374, 11, 1742, 2396, 308, 746, 181,
|
|
|
|
|
/* 2300 */ 39, 754, 1740, 1774, 307, 2322, 192, 753, 1717, 323,
|
|
|
|
|
/* 2310 */ 1739, 16, 27, 2374, 756, 1709, 28, 760, 1474, 421,
|
|
|
|
|
/* 2320 */ 758, 762, 764, 278, 1471, 2322, 765, 753, 1470, 2374,
|
|
|
|
|
/* 2330 */ 767, 768, 770, 1467, 1461, 771, 773, 774, 776, 1459,
|
|
|
|
|
/* 2340 */ 777, 2322, 1483, 753, 109, 2356, 2355, 110, 77, 2393,
|
|
|
|
|
/* 2350 */ 1479, 1465, 342, 2357, 757, 2359, 2360, 752, 754, 747,
|
|
|
|
|
/* 2360 */ 1464, 1384, 791, 1463, 1462, 2356, 2355, 1381, 1349, 2393,
|
|
|
|
|
/* 2370 */ 1380, 1379, 344, 2357, 757, 2359, 2360, 752, 754, 747,
|
|
|
|
|
/* 2380 */ 1378, 1376, 2355, 2356, 1374, 2393, 2374, 1373, 350, 2357,
|
|
|
|
|
/* 2390 */ 757, 2359, 2360, 752, 1372, 747, 754, 1410, 2322, 802,
|
|
|
|
|
/* 2400 */ 753, 1409, 207, 2356, 804, 1370, 2374, 1369, 1368, 1367,
|
|
|
|
|
/* 2410 */ 1366, 1365, 1364, 1406, 1404, 1361, 754, 1360, 2322, 1357,
|
|
|
|
|
/* 2420 */ 753, 1355, 1356, 1354, 2374, 1990, 824, 825, 1988, 828,
|
|
|
|
|
/* 2430 */ 826, 1986, 829, 830, 832, 834, 2322, 1983, 753, 2355,
|
|
|
|
|
/* 2440 */ 836, 2356, 2393, 838, 2374, 354, 2357, 757, 2359, 2360,
|
|
|
|
|
/* 2450 */ 752, 833, 747, 837, 754, 1963, 2322, 840, 753, 2355,
|
|
|
|
|
/* 2460 */ 1293, 1937, 2393, 1281, 846, 346, 2357, 757, 2359, 2360,
|
|
|
|
|
/* 2470 */ 752, 844, 747, 327, 1669, 337, 850, 2355, 2356, 849,
|
|
|
|
|
/* 2480 */ 2393, 1907, 2374, 355, 2357, 757, 2359, 2360, 752, 1907,
|
|
|
|
|
/* 2490 */ 747, 754, 1907, 1907, 2322, 1907, 753, 2355, 2356, 1907,
|
|
|
|
|
/* 2500 */ 2393, 1907, 1907, 347, 2357, 757, 2359, 2360, 752, 1907,
|
|
|
|
|
/* 2510 */ 747, 754, 1907, 1907, 2356, 1907, 1907, 1907, 1907, 2374,
|
|
|
|
|
/* 2520 */ 1907, 1907, 1907, 1907, 1907, 1907, 1907, 754, 1907, 1907,
|
|
|
|
|
/* 2530 */ 1907, 2322, 1907, 753, 1907, 2355, 1907, 1907, 2393, 2374,
|
|
|
|
|
/* 2540 */ 1907, 356, 2357, 757, 2359, 2360, 752, 1907, 747, 1907,
|
|
|
|
|
/* 2550 */ 1907, 2322, 1907, 753, 1907, 2374, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2560 */ 1907, 1907, 1907, 1907, 1907, 1907, 1907, 2322, 1907, 753,
|
|
|
|
|
/* 2570 */ 1907, 1907, 2355, 1907, 1907, 2393, 1907, 1907, 348, 2357,
|
|
|
|
|
/* 2580 */ 757, 2359, 2360, 752, 1907, 747, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2590 */ 1907, 1907, 2355, 1907, 1907, 2393, 1907, 1907, 362, 2357,
|
|
|
|
|
/* 2600 */ 757, 2359, 2360, 752, 1907, 747, 1907, 2356, 2355, 1907,
|
|
|
|
|
/* 2610 */ 1907, 2393, 1907, 1907, 363, 2357, 757, 2359, 2360, 752,
|
|
|
|
|
/* 2620 */ 754, 747, 1907, 1907, 1907, 1907, 2356, 1907, 1907, 1907,
|
|
|
|
|
/* 2630 */ 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907, 754,
|
|
|
|
|
/* 2640 */ 1907, 1907, 1907, 2356, 1907, 1907, 1907, 1907, 2374, 1907,
|
|
|
|
|
/* 2650 */ 1907, 1907, 1907, 1907, 1907, 1907, 754, 1907, 1907, 1907,
|
|
|
|
|
/* 2660 */ 2322, 1907, 753, 1907, 1907, 1907, 1907, 2374, 1907, 1907,
|
|
|
|
|
/* 2670 */ 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907, 2322,
|
|
|
|
|
/* 2680 */ 1907, 753, 1907, 1907, 2374, 1907, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2690 */ 1907, 1907, 1907, 1907, 1907, 1907, 2322, 1907, 753, 1907,
|
|
|
|
|
/* 2700 */ 2356, 2355, 1907, 1907, 2393, 1907, 1907, 2368, 2357, 757,
|
|
|
|
|
/* 2710 */ 2359, 2360, 752, 754, 747, 1907, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2720 */ 2355, 2356, 1907, 2393, 1907, 1907, 2367, 2357, 757, 2359,
|
|
|
|
|
/* 2730 */ 2360, 752, 1907, 747, 754, 1907, 1907, 2355, 2356, 1907,
|
|
|
|
|
/* 2740 */ 2393, 2374, 1907, 2366, 2357, 757, 2359, 2360, 752, 1907,
|
|
|
|
|
/* 2750 */ 747, 754, 1907, 2322, 1907, 753, 1907, 1907, 2356, 1907,
|
|
|
|
|
/* 2760 */ 1907, 1907, 2374, 1907, 1907, 1907, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2770 */ 1907, 754, 1907, 1907, 2322, 1907, 753, 1907, 1907, 2374,
|
|
|
|
|
/* 2780 */ 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2790 */ 1907, 2322, 1907, 753, 2355, 1907, 2356, 2393, 1907, 2374,
|
|
|
|
|
/* 2800 */ 378, 2357, 757, 2359, 2360, 752, 1907, 747, 1907, 754,
|
|
|
|
|
/* 2810 */ 1907, 2322, 1907, 753, 1907, 2355, 1907, 1907, 2393, 1907,
|
|
|
|
|
/* 2820 */ 1907, 379, 2357, 757, 2359, 2360, 752, 1907, 747, 1907,
|
|
|
|
|
/* 2830 */ 1907, 1907, 2355, 2356, 1907, 2393, 1907, 2374, 375, 2357,
|
|
|
|
|
/* 2840 */ 757, 2359, 2360, 752, 1907, 747, 754, 1907, 1907, 2322,
|
|
|
|
|
/* 2850 */ 1907, 753, 2355, 1907, 1907, 2393, 1907, 1907, 380, 2357,
|
|
|
|
|
/* 2860 */ 757, 2359, 2360, 752, 1907, 747, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2870 */ 1907, 1907, 1907, 1907, 2374, 1907, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2880 */ 1907, 1907, 1907, 1907, 1907, 1907, 2322, 1907, 753, 1907,
|
|
|
|
|
/* 2890 */ 755, 1907, 1907, 2393, 1907, 1907, 353, 2357, 757, 2359,
|
|
|
|
|
/* 2900 */ 2360, 752, 1907, 747, 1907, 1907, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2910 */ 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907, 1907,
|
|
|
|
|
/* 2920 */ 1907, 1907, 1907, 1907, 1907, 1907, 1907, 2355, 1907, 1907,
|
|
|
|
|
/* 2930 */ 2393, 1907, 1907, 352, 2357, 757, 2359, 2360, 752, 1907,
|
|
|
|
|
/* 2940 */ 747,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
static const YYCODETYPE yy_lookahead[] = {
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 0 */ 375, 383, 361, 395, 430, 364, 365, 1, 2, 435,
|
|
|
|
|
/* 10 */ 0, 430, 12, 13, 14, 397, 480, 392, 410, 483,
|
|
|
|
|
/* 20 */ 20, 20, 22, 8, 9, 407, 401, 12, 13, 14,
|
|
|
|
|
/* 30 */ 15, 16, 353, 21, 355, 35, 0, 37, 502, 366,
|
|
|
|
|
/* 40 */ 367, 480, 506, 507, 483, 354, 469, 470, 36, 366,
|
|
|
|
|
/* 50 */ 38, 39, 40, 20, 480, 366, 367, 483, 367, 386,
|
|
|
|
|
/* 60 */ 373, 480, 501, 502, 483, 65, 393, 506, 507, 451,
|
|
|
|
|
/* 70 */ 452, 71, 465, 409, 467, 501, 502, 390, 78, 461,
|
|
|
|
|
/* 80 */ 506, 507, 501, 502, 409, 398, 395, 506, 507, 8,
|
|
|
|
|
/* 90 */ 9, 427, 428, 12, 13, 14, 15, 16, 407, 424,
|
|
|
|
|
/* 100 */ 409, 70, 427, 428, 104, 422, 423, 107, 366, 73,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 110 */ 74, 75, 76, 77, 108, 79, 80, 81, 82, 83,
|
2023-08-24 07:54:10 +00:00
|
|
|
/* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 130 */ 94, 95, 96, 97, 98, 99, 100, 0, 20, 448,
|
|
|
|
|
/* 140 */ 22, 107, 451, 143, 144, 454, 455, 456, 457, 458,
|
|
|
|
|
/* 150 */ 459, 20, 461, 411, 412, 37, 414, 466, 361, 468,
|
|
|
|
|
/* 160 */ 418, 364, 365, 472, 473, 476, 477, 478, 14, 480,
|
|
|
|
|
/* 170 */ 481, 161, 483, 55, 20, 165, 395, 395, 487, 480,
|
|
|
|
|
/* 180 */ 180, 181, 483, 173, 402, 20, 495, 187, 188, 108,
|
|
|
|
|
/* 190 */ 501, 502, 410, 366, 367, 506, 507, 0, 417, 107,
|
|
|
|
|
/* 200 */ 419, 502, 202, 107, 204, 506, 507, 70, 394, 194,
|
|
|
|
|
/* 210 */ 20, 8, 9, 408, 409, 12, 13, 14, 15, 16,
|
|
|
|
|
/* 220 */ 406, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
|
|
|
/* 230 */ 20, 366, 367, 87, 234, 235, 236, 236, 238, 239,
|
2023-10-09 10:34:08 +00:00
|
|
|
/* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 250 */ 250, 251, 252, 253, 254, 255, 12, 13, 56, 57,
|
|
|
|
|
/* 260 */ 20, 18, 480, 20, 20, 483, 22, 12, 13, 236,
|
|
|
|
|
/* 270 */ 27, 362, 354, 30, 71, 366, 20, 368, 35, 35,
|
|
|
|
|
/* 280 */ 415, 37, 65, 501, 502, 367, 138, 362, 506, 507,
|
|
|
|
|
/* 290 */ 142, 366, 37, 368, 51, 149, 53, 201, 20, 203,
|
|
|
|
|
/* 300 */ 367, 58, 59, 476, 477, 478, 272, 480, 481, 65,
|
|
|
|
|
/* 310 */ 354, 366, 69, 395, 299, 71, 104, 107, 115, 173,
|
|
|
|
|
/* 320 */ 174, 69, 78, 106, 137, 407, 109, 409, 395, 233,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 330 */ 118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 340 */ 20, 129, 130, 131, 132, 133, 134, 135, 104, 106,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 350 */ 20, 107, 136, 137, 138, 139, 140, 141, 142, 211,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 360 */ 117, 0, 214, 407, 272, 217, 448, 219, 272, 451,
|
|
|
|
|
/* 370 */ 180, 181, 454, 455, 456, 457, 458, 459, 460, 461,
|
|
|
|
|
/* 380 */ 462, 463, 179, 143, 144, 440, 441, 143, 144, 456,
|
|
|
|
|
/* 390 */ 147, 148, 175, 150, 151, 152, 153, 154, 155, 156,
|
|
|
|
|
/* 400 */ 157, 158, 215, 216, 354, 162, 163, 164, 165, 166,
|
|
|
|
|
/* 410 */ 167, 168, 3, 170, 171, 172, 395, 366, 367, 176,
|
|
|
|
|
/* 420 */ 177, 178, 366, 367, 180, 181, 183, 187, 188, 20,
|
|
|
|
|
/* 430 */ 453, 187, 188, 20, 73, 74, 75, 386, 366, 367,
|
|
|
|
|
/* 440 */ 419, 80, 81, 82, 393, 14, 202, 86, 204, 197,
|
|
|
|
|
/* 450 */ 20, 20, 91, 92, 93, 94, 479, 407, 97, 204,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 460 */ 182, 100, 259, 260, 261, 262, 263, 264, 265, 266,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 470 */ 267, 268, 269, 143, 144, 70, 224, 225, 234, 235,
|
|
|
|
|
/* 480 */ 236, 71, 238, 239, 240, 241, 242, 243, 244, 245,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 490 */ 246, 247, 248, 249, 250, 251, 252, 253, 254, 255,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 500 */ 256, 12, 13, 354, 20, 383, 22, 20, 3, 20,
|
|
|
|
|
/* 510 */ 0, 22, 387, 4, 236, 35, 367, 108, 405, 397,
|
|
|
|
|
/* 520 */ 395, 408, 409, 395, 35, 354, 37, 402, 403, 407,
|
|
|
|
|
/* 530 */ 402, 51, 476, 477, 478, 410, 480, 481, 410, 55,
|
|
|
|
|
/* 540 */ 60, 61, 62, 63, 395, 65, 373, 475, 476, 477,
|
|
|
|
|
/* 550 */ 478, 23, 480, 481, 65, 256, 407, 395, 409, 117,
|
|
|
|
|
/* 560 */ 71, 73, 74, 75, 402, 33, 186, 78, 80, 81,
|
|
|
|
|
/* 570 */ 82, 398, 410, 451, 86, 47, 48, 45, 407, 91,
|
|
|
|
|
/* 580 */ 92, 93, 94, 461, 234, 97, 106, 20, 100, 109,
|
|
|
|
|
/* 590 */ 256, 182, 258, 104, 107, 182, 107, 448, 366, 367,
|
|
|
|
|
/* 600 */ 451, 354, 375, 454, 455, 456, 457, 458, 459, 465,
|
|
|
|
|
/* 610 */ 461, 467, 182, 464, 367, 466, 467, 468, 386, 8,
|
|
|
|
|
/* 620 */ 9, 472, 473, 12, 13, 14, 15, 16, 401, 383,
|
|
|
|
|
/* 630 */ 22, 20, 143, 144, 284, 285, 286, 287, 288, 289,
|
|
|
|
|
/* 640 */ 290, 354, 395, 397, 234, 37, 136, 137, 138, 139,
|
|
|
|
|
/* 650 */ 140, 141, 142, 407, 407, 175, 409, 0, 278, 279,
|
|
|
|
|
/* 660 */ 280, 281, 366, 367, 184, 185, 236, 366, 367, 180,
|
|
|
|
|
/* 670 */ 181, 191, 192, 354, 107, 366, 187, 188, 21, 4,
|
|
|
|
|
/* 680 */ 0, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
|
|
|
/* 690 */ 210, 202, 376, 204, 407, 448, 382, 451, 451, 385,
|
|
|
|
|
/* 700 */ 384, 454, 455, 456, 457, 458, 459, 461, 461, 51,
|
|
|
|
|
/* 710 */ 354, 415, 104, 466, 430, 468, 415, 78, 60, 472,
|
|
|
|
|
/* 720 */ 473, 63, 64, 234, 235, 236, 407, 238, 239, 240,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 730 */ 241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 740 */ 251, 252, 253, 254, 255, 12, 13, 14, 354, 440,
|
|
|
|
|
/* 750 */ 441, 366, 367, 20, 391, 22, 430, 137, 138, 272,
|
|
|
|
|
/* 760 */ 33, 367, 142, 407, 480, 357, 358, 483, 35, 21,
|
|
|
|
|
/* 770 */ 37, 386, 24, 25, 26, 27, 28, 29, 30, 31,
|
|
|
|
|
/* 780 */ 32, 354, 107, 274, 387, 501, 502, 366, 367, 395,
|
|
|
|
|
/* 790 */ 506, 507, 395, 182, 367, 395, 369, 34, 65, 294,
|
|
|
|
|
/* 800 */ 403, 407, 402, 409, 366, 367, 480, 386, 445, 483,
|
|
|
|
|
/* 810 */ 410, 78, 8, 9, 395, 387, 12, 13, 14, 15,
|
|
|
|
|
/* 820 */ 16, 402, 395, 395, 386, 371, 372, 501, 502, 410,
|
|
|
|
|
/* 830 */ 387, 403, 506, 507, 407, 108, 409, 104, 395, 272,
|
|
|
|
|
/* 840 */ 107, 42, 448, 366, 367, 451, 403, 236, 454, 455,
|
|
|
|
|
/* 850 */ 456, 457, 458, 459, 354, 461, 354, 354, 117, 22,
|
|
|
|
|
/* 860 */ 466, 4, 468, 386, 395, 354, 472, 473, 453, 367,
|
|
|
|
|
/* 870 */ 366, 367, 403, 354, 37, 448, 143, 144, 451, 0,
|
|
|
|
|
/* 880 */ 23, 454, 455, 456, 457, 458, 459, 354, 461, 495,
|
|
|
|
|
/* 890 */ 386, 4, 14, 466, 479, 468, 14, 395, 20, 472,
|
|
|
|
|
/* 900 */ 473, 436, 20, 46, 47, 48, 19, 407, 228, 407,
|
|
|
|
|
/* 910 */ 407, 409, 108, 180, 181, 78, 366, 367, 407, 0,
|
|
|
|
|
/* 920 */ 187, 188, 35, 8, 9, 20, 407, 12, 13, 14,
|
|
|
|
|
/* 930 */ 15, 16, 14, 15, 16, 202, 386, 204, 51, 22,
|
|
|
|
|
/* 940 */ 407, 104, 50, 380, 381, 58, 59, 272, 33, 395,
|
|
|
|
|
/* 950 */ 448, 37, 65, 451, 37, 430, 454, 455, 456, 457,
|
|
|
|
|
/* 960 */ 458, 459, 396, 461, 410, 371, 372, 234, 235, 236,
|
|
|
|
|
/* 970 */ 51, 238, 239, 240, 241, 242, 243, 244, 245, 246,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 980 */ 247, 248, 249, 250, 251, 252, 253, 254, 255, 12,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 990 */ 13, 396, 78, 106, 354, 78, 109, 20, 354, 22,
|
|
|
|
|
/* 1000 */ 12, 13, 14, 15, 16, 480, 354, 354, 483, 396,
|
|
|
|
|
/* 1010 */ 508, 509, 35, 395, 37, 136, 137, 138, 139, 140,
|
|
|
|
|
/* 1020 */ 141, 142, 354, 108, 354, 354, 501, 502, 410, 8,
|
|
|
|
|
/* 1030 */ 9, 506, 507, 12, 13, 14, 15, 16, 367, 202,
|
|
|
|
|
/* 1040 */ 369, 204, 65, 179, 366, 367, 20, 407, 354, 366,
|
|
|
|
|
/* 1050 */ 367, 407, 22, 366, 367, 78, 366, 367, 180, 407,
|
|
|
|
|
/* 1060 */ 407, 367, 180, 369, 386, 464, 395, 37, 467, 386,
|
|
|
|
|
/* 1070 */ 271, 234, 235, 386, 182, 407, 386, 407, 407, 117,
|
|
|
|
|
/* 1080 */ 409, 104, 190, 354, 107, 180, 136, 8, 9, 395,
|
|
|
|
|
/* 1090 */ 140, 12, 13, 14, 15, 16, 367, 33, 369, 2,
|
|
|
|
|
/* 1100 */ 0, 407, 396, 409, 404, 8, 9, 407, 354, 12,
|
|
|
|
|
/* 1110 */ 13, 14, 15, 16, 236, 366, 367, 13, 236, 448,
|
|
|
|
|
/* 1120 */ 143, 144, 451, 259, 395, 454, 455, 456, 457, 458,
|
|
|
|
|
/* 1130 */ 459, 169, 461, 269, 104, 386, 407, 466, 409, 468,
|
|
|
|
|
/* 1140 */ 33, 236, 448, 472, 473, 451, 0, 175, 454, 455,
|
|
|
|
|
/* 1150 */ 456, 457, 458, 459, 0, 461, 354, 180, 181, 37,
|
|
|
|
|
/* 1160 */ 466, 407, 468, 37, 187, 188, 472, 473, 22, 366,
|
|
|
|
|
/* 1170 */ 367, 366, 367, 404, 366, 367, 407, 448, 206, 202,
|
|
|
|
|
/* 1180 */ 451, 204, 78, 454, 455, 456, 457, 458, 459, 386,
|
|
|
|
|
/* 1190 */ 461, 386, 430, 2, 386, 466, 42, 468, 33, 8,
|
|
|
|
|
/* 1200 */ 9, 472, 473, 12, 13, 14, 15, 16, 396, 407,
|
|
|
|
|
/* 1210 */ 45, 234, 235, 236, 396, 238, 239, 240, 241, 242,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 1220 */ 243, 244, 245, 246, 247, 248, 249, 250, 251, 252,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 1230 */ 253, 254, 255, 12, 13, 39, 40, 366, 367, 453,
|
|
|
|
|
/* 1240 */ 0, 20, 480, 22, 33, 483, 366, 367, 380, 381,
|
|
|
|
|
/* 1250 */ 366, 367, 404, 270, 271, 407, 35, 386, 37, 159,
|
|
|
|
|
/* 1260 */ 160, 182, 236, 501, 502, 479, 386, 33, 506, 507,
|
|
|
|
|
/* 1270 */ 386, 388, 110, 33, 391, 113, 354, 110, 110, 13,
|
|
|
|
|
/* 1280 */ 113, 113, 110, 0, 0, 113, 65, 13, 33, 367,
|
|
|
|
|
/* 1290 */ 0, 369, 218, 65, 220, 49, 33, 33, 355, 78,
|
|
|
|
|
/* 1300 */ 143, 144, 396, 37, 37, 22, 22, 111, 112, 33,
|
|
|
|
|
/* 1310 */ 114, 37, 22, 1, 2, 384, 420, 395, 18, 108,
|
|
|
|
|
/* 1320 */ 510, 33, 33, 23, 33, 104, 204, 13, 107, 407,
|
|
|
|
|
/* 1330 */ 204, 409, 136, 499, 354, 33, 140, 109, 492, 33,
|
|
|
|
|
/* 1340 */ 40, 41, 108, 33, 44, 78, 33, 367, 370, 369,
|
|
|
|
|
/* 1350 */ 107, 37, 33, 107, 54, 33, 395, 33, 33, 116,
|
|
|
|
|
/* 1360 */ 296, 13, 383, 108, 143, 144, 66, 67, 68, 69,
|
|
|
|
|
/* 1370 */ 448, 108, 108, 451, 33, 395, 454, 455, 456, 457,
|
|
|
|
|
/* 1380 */ 458, 459, 383, 461, 108, 37, 420, 407, 466, 409,
|
|
|
|
|
/* 1390 */ 468, 0, 365, 420, 472, 473, 108, 108, 498, 108,
|
|
|
|
|
/* 1400 */ 498, 180, 181, 33, 33, 298, 498, 107, 187, 188,
|
|
|
|
|
/* 1410 */ 108, 429, 370, 420, 108, 367, 406, 420, 108, 498,
|
|
|
|
|
/* 1420 */ 420, 108, 437, 202, 482, 204, 503, 108, 448, 474,
|
|
|
|
|
/* 1430 */ 108, 451, 108, 108, 454, 455, 456, 457, 458, 459,
|
|
|
|
|
/* 1440 */ 385, 461, 485, 52, 275, 145, 466, 431, 468, 108,
|
|
|
|
|
/* 1450 */ 51, 450, 472, 473, 42, 234, 235, 236, 449, 238,
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 1460 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 1470 */ 249, 250, 251, 252, 253, 254, 255, 20, 108, 108,
|
|
|
|
|
/* 1480 */ 442, 12, 13, 447, 354, 217, 375, 442, 375, 433,
|
|
|
|
|
/* 1490 */ 20, 22, 200, 366, 194, 195, 196, 367, 20, 199,
|
|
|
|
|
/* 1500 */ 367, 45, 416, 367, 35, 416, 37, 354, 179, 413,
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 1510 */ 366, 366, 212, 213, 367, 416, 413, 379, 413, 413,
|
|
|
|
|
/* 1520 */ 367, 105, 103, 223, 366, 395, 226, 378, 102, 229,
|
|
|
|
|
/* 1530 */ 230, 231, 232, 233, 65, 20, 351, 407, 377, 409,
|
|
|
|
|
/* 1540 */ 366, 366, 354, 366, 50, 359, 363, 78, 395, 359,
|
|
|
|
|
/* 1550 */ 363, 442, 20, 375, 375, 367, 375, 409, 20, 20,
|
|
|
|
|
/* 1560 */ 407, 368, 409, 432, 375, 368, 20, 375, 366, 375,
|
|
|
|
|
/* 1570 */ 375, 359, 272, 104, 423, 375, 357, 395, 448, 395,
|
|
|
|
|
/* 1580 */ 366, 451, 357, 395, 454, 455, 456, 457, 458, 459,
|
|
|
|
|
/* 1590 */ 359, 461, 107, 395, 395, 407, 466, 409, 468, 395,
|
|
|
|
|
/* 1600 */ 395, 448, 472, 473, 451, 395, 221, 454, 455, 456,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 1610 */ 457, 458, 459, 395, 461, 430, 407, 395, 395, 466,
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 1620 */ 435, 468, 395, 407, 407, 472, 473, 373, 20, 208,
|
|
|
|
|
/* 1630 */ 207, 373, 283, 409, 431, 366, 448, 407, 282, 451,
|
|
|
|
|
/* 1640 */ 439, 354, 454, 455, 456, 457, 458, 459, 291, 461,
|
|
|
|
|
/* 1650 */ 442, 444, 446, 438, 367, 491, 468, 425, 425, 193,
|
|
|
|
|
/* 1660 */ 472, 473, 491, 276, 494, 480, 493, 441, 483, 293,
|
|
|
|
|
/* 1670 */ 490, 202, 354, 204, 292, 431, 297, 300, 295, 271,
|
|
|
|
|
/* 1680 */ 20, 505, 395, 367, 117, 367, 501, 502, 453, 368,
|
|
|
|
|
/* 1690 */ 273, 506, 507, 373, 407, 425, 409, 425, 185, 354,
|
|
|
|
|
/* 1700 */ 373, 407, 489, 234, 235, 407, 407, 421, 407, 373,
|
|
|
|
|
/* 1710 */ 407, 491, 367, 395, 391, 373, 107, 248, 249, 250,
|
|
|
|
|
/* 1720 */ 251, 252, 253, 254, 488, 407, 367, 409, 486, 484,
|
|
|
|
|
/* 1730 */ 471, 107, 399, 504, 366, 448, 373, 407, 451, 22,
|
|
|
|
|
/* 1740 */ 395, 454, 455, 456, 457, 458, 459, 38, 461, 511,
|
|
|
|
|
/* 1750 */ 356, 359, 407, 360, 409, 468, 389, 354, 443, 472,
|
|
|
|
|
/* 1760 */ 473, 426, 434, 426, 389, 352, 448, 389, 0, 451,
|
|
|
|
|
/* 1770 */ 367, 374, 454, 455, 456, 457, 458, 459, 0, 461,
|
|
|
|
|
/* 1780 */ 0, 45, 0, 37, 227, 37, 468, 37, 37, 227,
|
|
|
|
|
/* 1790 */ 472, 473, 354, 448, 0, 37, 451, 37, 395, 454,
|
|
|
|
|
/* 1800 */ 455, 456, 457, 458, 459, 367, 461, 227, 37, 0,
|
|
|
|
|
/* 1810 */ 407, 227, 409, 0, 37, 0, 37, 0, 22, 0,
|
|
|
|
|
/* 1820 */ 37, 222, 354, 210, 0, 210, 204, 211, 202, 0,
|
|
|
|
|
/* 1830 */ 0, 0, 198, 395, 0, 367, 197, 0, 0, 148,
|
|
|
|
|
/* 1840 */ 49, 496, 497, 0, 49, 407, 0, 409, 37, 0,
|
|
|
|
|
/* 1850 */ 51, 448, 0, 37, 451, 49, 0, 454, 455, 456,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 1860 */ 457, 458, 459, 395, 461, 45, 0, 0, 400, 0,
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 1870 */ 49, 468, 0, 0, 0, 407, 473, 409, 0, 0,
|
|
|
|
|
/* 1880 */ 0, 165, 37, 0, 165, 0, 448, 354, 0, 451,
|
|
|
|
|
/* 1890 */ 0, 0, 454, 455, 456, 457, 458, 459, 45, 461,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 1900 */ 367, 0, 354, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
/* 1910 */ 0, 0, 0, 0, 0, 367, 448, 354, 22, 451,
|
|
|
|
|
/* 1920 */ 0, 0, 454, 455, 456, 457, 458, 459, 395, 461,
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 1930 */ 367, 49, 0, 400, 148, 497, 0, 0, 0, 0,
|
|
|
|
|
/* 1940 */ 407, 0, 409, 395, 0, 0, 0, 0, 147, 0,
|
|
|
|
|
/* 1950 */ 146, 0, 0, 22, 0, 407, 37, 409, 395, 65,
|
|
|
|
|
/* 1960 */ 0, 0, 22, 0, 65, 50, 50, 65, 0, 42,
|
|
|
|
|
/* 1970 */ 407, 0, 409, 51, 51, 42, 0, 51, 0, 37,
|
|
|
|
|
/* 1980 */ 37, 448, 0, 33, 451, 37, 14, 454, 455, 456,
|
|
|
|
|
/* 1990 */ 457, 458, 459, 37, 461, 42, 448, 354, 0, 451,
|
|
|
|
|
/* 2000 */ 45, 42, 454, 455, 456, 457, 458, 459, 43, 461,
|
|
|
|
|
/* 2010 */ 367, 448, 42, 49, 451, 354, 49, 454, 455, 456,
|
|
|
|
|
/* 2020 */ 457, 458, 459, 49, 461, 0, 0, 0, 367, 42,
|
|
|
|
|
/* 2030 */ 0, 0, 193, 49, 0, 0, 0, 37, 395, 0,
|
|
|
|
|
/* 2040 */ 354, 72, 0, 400, 51, 42, 37, 51, 500, 42,
|
|
|
|
|
/* 2050 */ 407, 0, 409, 367, 37, 51, 395, 42, 0, 37,
|
|
|
|
|
/* 2060 */ 42, 51, 0, 0, 0, 0, 0, 0, 407, 37,
|
|
|
|
|
/* 2070 */ 409, 0, 509, 115, 22, 113, 22, 37, 37, 0,
|
|
|
|
|
/* 2080 */ 37, 395, 37, 37, 37, 37, 400, 37, 33, 33,
|
|
|
|
|
/* 2090 */ 37, 448, 22, 407, 451, 409, 37, 454, 455, 456,
|
|
|
|
|
/* 2100 */ 457, 458, 459, 0, 461, 37, 22, 0, 22, 448,
|
|
|
|
|
/* 2110 */ 354, 0, 451, 53, 1, 454, 455, 456, 457, 458,
|
|
|
|
|
/* 2120 */ 459, 22, 461, 367, 463, 37, 0, 0, 0, 37,
|
|
|
|
|
/* 2130 */ 0, 37, 19, 0, 448, 20, 22, 451, 37, 37,
|
|
|
|
|
/* 2140 */ 454, 455, 456, 457, 458, 459, 354, 461, 35, 37,
|
|
|
|
|
/* 2150 */ 0, 395, 108, 49, 0, 182, 400, 182, 37, 367,
|
|
|
|
|
/* 2160 */ 22, 0, 22, 407, 51, 409, 209, 182, 107, 0,
|
|
|
|
|
/* 2170 */ 0, 205, 182, 60, 61, 62, 63, 354, 65, 107,
|
|
|
|
|
/* 2180 */ 185, 189, 3, 182, 33, 107, 189, 395, 108, 107,
|
|
|
|
|
/* 2190 */ 367, 108, 37, 37, 277, 50, 107, 50, 105, 407,
|
|
|
|
|
/* 2200 */ 103, 409, 49, 108, 448, 33, 33, 451, 108, 33,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 2210 */ 454, 455, 456, 457, 458, 459, 107, 461, 395, 106,
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 2220 */ 49, 33, 109, 107, 107, 3, 108, 107, 33, 37,
|
|
|
|
|
/* 2230 */ 407, 108, 409, 108, 37, 37, 37, 37, 37, 108,
|
|
|
|
|
/* 2240 */ 448, 33, 108, 451, 0, 49, 454, 455, 456, 457,
|
|
|
|
|
/* 2250 */ 458, 459, 354, 461, 141, 49, 277, 277, 270, 0,
|
|
|
|
|
/* 2260 */ 42, 186, 0, 42, 107, 367, 107, 33, 116, 184,
|
|
|
|
|
/* 2270 */ 108, 448, 354, 108, 451, 107, 49, 454, 455, 456,
|
|
|
|
|
/* 2280 */ 457, 458, 459, 105, 461, 367, 105, 107, 354, 107,
|
|
|
|
|
/* 2290 */ 107, 22, 2, 395, 257, 108, 107, 184, 107, 49,
|
|
|
|
|
/* 2300 */ 107, 367, 108, 234, 191, 407, 49, 409, 22, 33,
|
|
|
|
|
/* 2310 */ 108, 107, 107, 395, 237, 108, 107, 37, 108, 37,
|
|
|
|
|
/* 2320 */ 117, 107, 37, 210, 108, 407, 107, 409, 108, 395,
|
|
|
|
|
/* 2330 */ 37, 107, 37, 108, 108, 107, 37, 107, 37, 108,
|
|
|
|
|
/* 2340 */ 107, 407, 37, 409, 107, 354, 448, 107, 107, 451,
|
|
|
|
|
/* 2350 */ 22, 128, 454, 455, 456, 457, 458, 459, 367, 461,
|
|
|
|
|
/* 2360 */ 128, 37, 71, 128, 128, 354, 448, 37, 72, 451,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 2370 */ 37, 37, 454, 455, 456, 457, 458, 459, 367, 461,
|
|
|
|
|
/* 2380 */ 37, 37, 448, 354, 37, 451, 395, 37, 454, 455,
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 2390 */ 456, 457, 458, 459, 37, 461, 367, 78, 407, 101,
|
|
|
|
|
/* 2400 */ 409, 78, 33, 354, 101, 37, 395, 37, 37, 22,
|
|
|
|
|
/* 2410 */ 37, 37, 37, 78, 37, 37, 367, 37, 407, 37,
|
|
|
|
|
/* 2420 */ 409, 22, 37, 37, 395, 0, 37, 51, 0, 37,
|
|
|
|
|
/* 2430 */ 42, 0, 51, 42, 37, 42, 407, 0, 409, 448,
|
|
|
|
|
/* 2440 */ 37, 354, 451, 42, 395, 454, 455, 456, 457, 458,
|
|
|
|
|
/* 2450 */ 459, 51, 461, 51, 367, 0, 407, 37, 409, 448,
|
|
|
|
|
/* 2460 */ 37, 0, 451, 22, 21, 454, 455, 456, 457, 458,
|
|
|
|
|
/* 2470 */ 459, 33, 461, 22, 22, 22, 20, 448, 354, 21,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 2480 */ 451, 512, 395, 454, 455, 456, 457, 458, 459, 512,
|
|
|
|
|
/* 2490 */ 461, 367, 512, 512, 407, 512, 409, 448, 354, 512,
|
|
|
|
|
/* 2500 */ 451, 512, 512, 454, 455, 456, 457, 458, 459, 512,
|
|
|
|
|
/* 2510 */ 461, 367, 512, 512, 354, 512, 512, 512, 512, 395,
|
|
|
|
|
/* 2520 */ 512, 512, 512, 512, 512, 512, 512, 367, 512, 512,
|
|
|
|
|
/* 2530 */ 512, 407, 512, 409, 512, 448, 512, 512, 451, 395,
|
|
|
|
|
/* 2540 */ 512, 454, 455, 456, 457, 458, 459, 512, 461, 512,
|
|
|
|
|
/* 2550 */ 512, 407, 512, 409, 512, 395, 512, 512, 512, 512,
|
|
|
|
|
/* 2560 */ 512, 512, 512, 512, 512, 512, 512, 407, 512, 409,
|
|
|
|
|
/* 2570 */ 512, 512, 448, 512, 512, 451, 512, 512, 454, 455,
|
|
|
|
|
/* 2580 */ 456, 457, 458, 459, 512, 461, 512, 512, 512, 512,
|
|
|
|
|
/* 2590 */ 512, 512, 448, 512, 512, 451, 512, 512, 454, 455,
|
|
|
|
|
/* 2600 */ 456, 457, 458, 459, 512, 461, 512, 354, 448, 512,
|
|
|
|
|
/* 2610 */ 512, 451, 512, 512, 454, 455, 456, 457, 458, 459,
|
|
|
|
|
/* 2620 */ 367, 461, 512, 512, 512, 512, 354, 512, 512, 512,
|
|
|
|
|
/* 2630 */ 512, 512, 512, 512, 512, 512, 512, 512, 512, 367,
|
|
|
|
|
/* 2640 */ 512, 512, 512, 354, 512, 512, 512, 512, 395, 512,
|
|
|
|
|
/* 2650 */ 512, 512, 512, 512, 512, 512, 367, 512, 512, 512,
|
|
|
|
|
/* 2660 */ 407, 512, 409, 512, 512, 512, 512, 395, 512, 512,
|
|
|
|
|
/* 2670 */ 512, 512, 512, 512, 512, 512, 512, 512, 512, 407,
|
|
|
|
|
/* 2680 */ 512, 409, 512, 512, 395, 512, 512, 512, 512, 512,
|
|
|
|
|
/* 2690 */ 512, 512, 512, 512, 512, 512, 407, 512, 409, 512,
|
|
|
|
|
/* 2700 */ 354, 448, 512, 512, 451, 512, 512, 454, 455, 456,
|
|
|
|
|
/* 2710 */ 457, 458, 459, 367, 461, 512, 512, 512, 512, 512,
|
|
|
|
|
/* 2720 */ 448, 354, 512, 451, 512, 512, 454, 455, 456, 457,
|
|
|
|
|
/* 2730 */ 458, 459, 512, 461, 367, 512, 512, 448, 354, 512,
|
|
|
|
|
/* 2740 */ 451, 395, 512, 454, 455, 456, 457, 458, 459, 512,
|
|
|
|
|
/* 2750 */ 461, 367, 512, 407, 512, 409, 512, 512, 354, 512,
|
|
|
|
|
/* 2760 */ 512, 512, 395, 512, 512, 512, 512, 512, 512, 512,
|
|
|
|
|
/* 2770 */ 512, 367, 512, 512, 407, 512, 409, 512, 512, 395,
|
|
|
|
|
/* 2780 */ 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
|
|
|
|
/* 2790 */ 512, 407, 512, 409, 448, 512, 354, 451, 512, 395,
|
|
|
|
|
/* 2800 */ 454, 455, 456, 457, 458, 459, 512, 461, 512, 367,
|
|
|
|
|
/* 2810 */ 512, 407, 512, 409, 512, 448, 512, 512, 451, 512,
|
|
|
|
|
/* 2820 */ 512, 454, 455, 456, 457, 458, 459, 512, 461, 512,
|
|
|
|
|
/* 2830 */ 512, 512, 448, 354, 512, 451, 512, 395, 454, 455,
|
|
|
|
|
/* 2840 */ 456, 457, 458, 459, 512, 461, 367, 512, 512, 407,
|
|
|
|
|
/* 2850 */ 512, 409, 448, 512, 512, 451, 512, 512, 454, 455,
|
|
|
|
|
/* 2860 */ 456, 457, 458, 459, 512, 461, 512, 512, 512, 512,
|
|
|
|
|
/* 2870 */ 512, 512, 512, 512, 395, 512, 512, 512, 512, 512,
|
|
|
|
|
/* 2880 */ 512, 512, 512, 512, 512, 512, 407, 512, 409, 512,
|
|
|
|
|
/* 2890 */ 448, 512, 512, 451, 512, 512, 454, 455, 456, 457,
|
|
|
|
|
/* 2900 */ 458, 459, 512, 461, 512, 512, 512, 512, 512, 512,
|
|
|
|
|
/* 2910 */ 512, 512, 512, 512, 512, 512, 512, 512, 512, 512,
|
|
|
|
|
/* 2920 */ 512, 512, 512, 512, 512, 512, 512, 448, 512, 512,
|
|
|
|
|
/* 2930 */ 451, 512, 512, 454, 455, 456, 457, 458, 459, 512,
|
|
|
|
|
/* 2940 */ 461, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 2950 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 2960 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 2970 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 2980 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 2990 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3000 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3010 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3020 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3030 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3040 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3050 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3060 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3070 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3080 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3090 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3100 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3110 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3120 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3130 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3140 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3150 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3160 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3170 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3180 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3190 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3200 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3210 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3220 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3230 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3240 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3250 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3260 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3270 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3280 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
|
|
|
|
|
/* 3290 */ 351, 351,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
2024-02-19 10:30:12 +00:00
|
|
|
#define YY_SHIFT_COUNT (851)
|
2022-01-23 12:34:16 +00:00
|
|
|
#define YY_SHIFT_MIN (0)
|
2024-02-19 10:30:12 +00:00
|
|
|
#define YY_SHIFT_MAX (2461)
|
2022-01-24 03:29:46 +00:00
|
|
|
static const unsigned short int yy_shift_ofst[] = {
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 0 */ 1300, 0, 244, 0, 489, 489, 489, 489, 489, 489,
|
|
|
|
|
/* 10 */ 489, 489, 489, 489, 489, 489, 733, 977, 977, 1221,
|
|
|
|
|
/* 20 */ 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
|
|
|
|
|
/* 30 */ 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
|
|
|
|
|
/* 40 */ 977, 977, 977, 977, 977, 977, 977, 977, 977, 977,
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 50 */ 977, 487, 567, 96, 210, 34, 92, 34, 34, 210,
|
|
|
|
|
/* 60 */ 210, 34, 1469, 34, 243, 1469, 1469, 675, 34, 131,
|
|
|
|
|
/* 70 */ 240, 165, 165, 857, 857, 240, 190, 330, 154, 154,
|
|
|
|
|
/* 80 */ 1, 165, 165, 165, 165, 165, 165, 165, 165, 165,
|
|
|
|
|
/* 90 */ 165, 165, 256, 320, 165, 165, 31, 131, 165, 256,
|
|
|
|
|
/* 100 */ 165, 131, 165, 165, 131, 165, 165, 131, 165, 131,
|
|
|
|
|
/* 110 */ 131, 131, 165, 405, 203, 203, 488, 748, 837, 837,
|
|
|
|
|
/* 120 */ 837, 837, 837, 837, 837, 837, 837, 837, 837, 837,
|
|
|
|
|
/* 130 */ 837, 837, 837, 837, 837, 837, 837, 1196, 409, 190,
|
|
|
|
|
/* 140 */ 330, 202, 202, 914, 413, 413, 413, 137, 334, 334,
|
|
|
|
|
/* 150 */ 1104, 914, 31, 442, 131, 131, 299, 131, 639, 131,
|
|
|
|
|
/* 160 */ 639, 639, 741, 763, 212, 212, 212, 212, 212, 212,
|
|
|
|
|
/* 170 */ 212, 212, 2113, 361, 657, 611, 15, 350, 380, 118,
|
|
|
|
|
/* 180 */ 878, 882, 255, 255, 278, 528, 430, 917, 917, 917,
|
|
|
|
|
/* 190 */ 892, 917, 905, 484, 33, 431, 950, 972, 33, 33,
|
|
|
|
|
/* 200 */ 1026, 983, 799, 505, 983, 532, 509, 1104, 1169, 1399,
|
|
|
|
|
/* 210 */ 1412, 1457, 1268, 31, 1457, 31, 1292, 1470, 1478, 1456,
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 220 */ 1478, 1456, 1329, 1470, 1478, 1470, 1456, 1329, 1329, 1329,
|
|
|
|
|
/* 230 */ 1416, 1419, 1470, 1426, 1470, 1470, 1470, 1515, 1494, 1515,
|
|
|
|
|
/* 240 */ 1494, 1457, 31, 31, 1532, 31, 1538, 1539, 31, 1538,
|
|
|
|
|
/* 250 */ 31, 1546, 31, 31, 1470, 31, 1515, 131, 131, 131,
|
|
|
|
|
/* 260 */ 131, 131, 131, 131, 131, 131, 131, 131, 1470, 763,
|
|
|
|
|
/* 270 */ 763, 1515, 639, 639, 639, 1385, 1485, 1457, 405, 1608,
|
|
|
|
|
/* 280 */ 1421, 1423, 1532, 405, 1169, 1470, 639, 1349, 1356, 1349,
|
|
|
|
|
/* 290 */ 1356, 1357, 1466, 1349, 1376, 1382, 1387, 1169, 1377, 1379,
|
|
|
|
|
/* 300 */ 1383, 1408, 1478, 1660, 1567, 1417, 1538, 405, 405, 1356,
|
|
|
|
|
/* 310 */ 639, 639, 639, 639, 1356, 639, 1513, 405, 741, 405,
|
|
|
|
|
/* 320 */ 1478, 1609, 1624, 639, 1470, 405, 1717, 1709, 1515, 2941,
|
|
|
|
|
/* 330 */ 2941, 2941, 2941, 2941, 2941, 2941, 2941, 2941, 36, 480,
|
|
|
|
|
/* 340 */ 197, 887, 915, 81, 804, 510, 1097, 1191, 1079, 879,
|
|
|
|
|
/* 350 */ 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 1021, 216,
|
|
|
|
|
/* 360 */ 148, 12, 988, 988, 252, 217, 10, 146, 658, 1100,
|
|
|
|
|
/* 370 */ 608, 1030, 187, 620, 620, 918, 6, 864, 918, 918,
|
|
|
|
|
/* 380 */ 918, 919, 680, 727, 1154, 1165, 962, 1240, 1162, 1167,
|
|
|
|
|
/* 390 */ 1168, 1172, 1266, 1274, 1146, 1283, 1284, 1290, 1074, 1211,
|
|
|
|
|
/* 400 */ 1234, 1228, 1255, 1263, 1264, 1276, 1157, 1064, 1107, 1288,
|
|
|
|
|
/* 410 */ 1289, 1291, 1302, 1306, 1310, 1312, 1313, 410, 1319, 1246,
|
|
|
|
|
/* 420 */ 1322, 1324, 1325, 1341, 1370, 1371, 1243, 1122, 1126, 1314,
|
|
|
|
|
/* 430 */ 1348, 1267, 1391, 1768, 1778, 1780, 1736, 1782, 1746, 1557,
|
|
|
|
|
/* 440 */ 1748, 1750, 1751, 1562, 1794, 1758, 1760, 1580, 1771, 1809,
|
|
|
|
|
/* 450 */ 1584, 1813, 1777, 1815, 1779, 1817, 1796, 1819, 1783, 1599,
|
|
|
|
|
/* 460 */ 1834, 1613, 1824, 1615, 1616, 1622, 1626, 1829, 1830, 1831,
|
|
|
|
|
/* 470 */ 1634, 1639, 1837, 1838, 1691, 1791, 1795, 1843, 1811, 1846,
|
|
|
|
|
/* 480 */ 1849, 1816, 1799, 1852, 1806, 1856, 1820, 1866, 1867, 1869,
|
|
|
|
|
/* 490 */ 1821, 1872, 1873, 1874, 1878, 1879, 1880, 1716, 1845, 1883,
|
|
|
|
|
/* 500 */ 1719, 1885, 1888, 1890, 1891, 1901, 1903, 1904, 1905, 1906,
|
|
|
|
|
/* 510 */ 1907, 1908, 1909, 1910, 1911, 1912, 1913, 1914, 1920, 1921,
|
|
|
|
|
/* 520 */ 1882, 1932, 1853, 1936, 1937, 1938, 1939, 1941, 1944, 1945,
|
|
|
|
|
/* 530 */ 1896, 1946, 1786, 1947, 1801, 1949, 1804, 1951, 1952, 1931,
|
|
|
|
|
/* 540 */ 1915, 1940, 1916, 1954, 1894, 1919, 1960, 1899, 1961, 1902,
|
|
|
|
|
/* 550 */ 1963, 1968, 1942, 1922, 1927, 1971, 1943, 1923, 1933, 1976,
|
|
|
|
|
/* 560 */ 1948, 1926, 1953, 1978, 1956, 1982, 1955, 1959, 1950, 1964,
|
|
|
|
|
/* 570 */ 1967, 1972, 1974, 1998, 1965, 1970, 2025, 2026, 2027, 2039,
|
|
|
|
|
/* 580 */ 1987, 1839, 2030, 1964, 1984, 2031, 2034, 1969, 2035, 2036,
|
|
|
|
|
/* 590 */ 2000, 1993, 2003, 2042, 2009, 1996, 2007, 2051, 2017, 2004,
|
|
|
|
|
/* 600 */ 2015, 2058, 2022, 2010, 2018, 2062, 2063, 2064, 2065, 2066,
|
|
|
|
|
/* 610 */ 2067, 1958, 1962, 2032, 2052, 2071, 2040, 2041, 2043, 2045,
|
|
|
|
|
/* 620 */ 2046, 2047, 2048, 2050, 2055, 2056, 2053, 2059, 2054, 2068,
|
|
|
|
|
/* 630 */ 2079, 2070, 2103, 2084, 2107, 2086, 2060, 2111, 2099, 2088,
|
|
|
|
|
/* 640 */ 2126, 2127, 2128, 2092, 2130, 2094, 2133, 2114, 2115, 2101,
|
|
|
|
|
/* 650 */ 2102, 2112, 2044, 2061, 2150, 1973, 2072, 1957, 1964, 2104,
|
|
|
|
|
/* 660 */ 2154, 1975, 2121, 2138, 2161, 1966, 2140, 1985, 1995, 2169,
|
|
|
|
|
/* 670 */ 2170, 1990, 1992, 2001, 1997, 2179, 2151, 1917, 2078, 2080,
|
|
|
|
|
/* 680 */ 2082, 2083, 2155, 2156, 2089, 2145, 2093, 2147, 2097, 2095,
|
|
|
|
|
/* 690 */ 2172, 2173, 2100, 2109, 2116, 2117, 2118, 2176, 2153, 2171,
|
|
|
|
|
/* 700 */ 2120, 2188, 1979, 2123, 2125, 2222, 2195, 1980, 2192, 2197,
|
|
|
|
|
/* 710 */ 2198, 2199, 2200, 2201, 2131, 2134, 2196, 1988, 2208, 2206,
|
|
|
|
|
/* 720 */ 2244, 2259, 2157, 2218, 2159, 2162, 2165, 2168, 2180, 2075,
|
|
|
|
|
/* 730 */ 2182, 2262, 2221, 2085, 2183, 2152, 1964, 2227, 2234, 2178,
|
|
|
|
|
/* 740 */ 2037, 2181, 2290, 2269, 2069, 2189, 2187, 2191, 2194, 2193,
|
|
|
|
|
/* 750 */ 2202, 2250, 2204, 2205, 2257, 2207, 2286, 2077, 2209, 2203,
|
|
|
|
|
/* 760 */ 2210, 2280, 2282, 2214, 2216, 2285, 2219, 2220, 2293, 2224,
|
|
|
|
|
/* 770 */ 2225, 2295, 2228, 2226, 2299, 2230, 2231, 2301, 2233, 2223,
|
|
|
|
|
/* 780 */ 2232, 2235, 2236, 2237, 2276, 2240, 2305, 2241, 2276, 2276,
|
|
|
|
|
/* 790 */ 2328, 2296, 2291, 2324, 2330, 2333, 2334, 2343, 2344, 2347,
|
|
|
|
|
/* 800 */ 2350, 2357, 2319, 2298, 2323, 2303, 2369, 2368, 2370, 2371,
|
|
|
|
|
/* 810 */ 2387, 2373, 2374, 2375, 2335, 2055, 2377, 2056, 2378, 2380,
|
|
|
|
|
/* 820 */ 2382, 2385, 2399, 2386, 2425, 2389, 2376, 2388, 2428, 2392,
|
|
|
|
|
/* 830 */ 2381, 2391, 2431, 2397, 2400, 2393, 2437, 2403, 2402, 2401,
|
|
|
|
|
/* 840 */ 2455, 2420, 2423, 2461, 2441, 2438, 2451, 2443, 2452, 2453,
|
|
|
|
|
/* 850 */ 2458, 2456,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
2024-02-19 05:10:27 +00:00
|
|
|
#define YY_REDUCE_COUNT (337)
|
2024-02-04 08:04:23 +00:00
|
|
|
#define YY_REDUCE_MIN (-464)
|
|
|
|
|
#define YY_REDUCE_MAX (2479)
|
2022-01-23 12:34:16 +00:00
|
|
|
static const short yy_reduce_ofst[] = {
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 0 */ 1185, -309, 149, 394, 427, 671, 694, 729, 922, 980,
|
|
|
|
|
/* 10 */ 247, 1130, 1153, 1188, 1287, 1318, -82, 1345, 502, 1403,
|
|
|
|
|
/* 20 */ 1438, 1468, 1533, 1548, 1563, 1643, 1661, 1686, 1756, 1792,
|
|
|
|
|
/* 30 */ 1823, 1898, 1918, 1934, 1991, 2011, 2029, 2049, 2087, 2124,
|
|
|
|
|
/* 40 */ 2144, 2160, 2253, 2272, 2289, 2346, 2367, 2384, 2404, 2442,
|
|
|
|
|
/* 50 */ 2479, -311, -218, -426, 72, -419, 284, 326, 525, -173,
|
|
|
|
|
/* 60 */ 56, 762, -382, -439, -258, 122, 246, -464, -301, 125,
|
|
|
|
|
/* 70 */ -325, -327, 51, -359, -203, -336, -219, 113, -91, -75,
|
|
|
|
|
/* 80 */ -67, 385, 421, 438, 477, -135, 296, 232, 504, 550,
|
|
|
|
|
/* 90 */ 678, 301, -55, -317, 683, 687, -375, 128, 690, 309,
|
|
|
|
|
/* 100 */ 749, 162, 805, 808, 397, 871, 880, 400, 803, 428,
|
|
|
|
|
/* 110 */ 419, 443, 884, -313, -423, -423, 316, -321, -44, 50,
|
|
|
|
|
/* 120 */ 171, 287, 319, 356, 500, 503, 511, 519, 533, 640,
|
|
|
|
|
/* 130 */ 644, 652, 653, 668, 670, 754, 802, -186, -23, 21,
|
|
|
|
|
/* 140 */ -195, 454, 594, 563, -23, 415, 786, 173, -393, 144,
|
|
|
|
|
/* 150 */ 314, 868, 227, 363, -392, 554, 601, 469, 700, 618,
|
|
|
|
|
/* 160 */ 769, 848, 883, 408, 566, 595, 613, 706, 812, 818,
|
|
|
|
|
/* 170 */ 906, 812, 465, 931, 943, 896, 810, 834, 846, 978,
|
|
|
|
|
/* 180 */ 961, 961, 979, 999, 966, 1027, 973, 900, 902, 908,
|
|
|
|
|
/* 190 */ 982, 921, 961, 1042, 993, 1048, 1010, 985, 997, 1000,
|
|
|
|
|
/* 200 */ 961, 942, 942, 923, 942, 955, 957, 1055, 1016, 1001,
|
|
|
|
|
/* 210 */ 1009, 1038, 1036, 1111, 1045, 1113, 1056, 1127, 1133, 1086,
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 220 */ 1136, 1089, 1096, 1144, 1147, 1145, 1099, 1103, 1105, 1106,
|
|
|
|
|
/* 230 */ 1138, 1149, 1158, 1161, 1174, 1175, 1177, 1186, 1183, 1190,
|
|
|
|
|
/* 240 */ 1187, 1109, 1178, 1179, 1148, 1181, 1193, 1131, 1189, 1197,
|
|
|
|
|
/* 250 */ 1192, 1151, 1194, 1195, 1202, 1200, 1212, 1182, 1184, 1198,
|
|
|
|
|
/* 260 */ 1199, 1204, 1205, 1210, 1218, 1222, 1223, 1227, 1214, 1219,
|
|
|
|
|
/* 270 */ 1225, 1231, 1209, 1216, 1217, 1206, 1207, 1208, 1254, 1226,
|
|
|
|
|
/* 280 */ 1201, 1215, 1224, 1258, 1203, 1269, 1230, 1164, 1232, 1171,
|
|
|
|
|
/* 290 */ 1233, 1170, 1173, 1220, 1180, 1213, 1236, 1244, 1238, 1176,
|
|
|
|
|
/* 300 */ 1229, 942, 1316, 1235, 1242, 1245, 1321, 1320, 1327, 1270,
|
|
|
|
|
/* 310 */ 1294, 1298, 1299, 1301, 1272, 1303, 1286, 1336, 1323, 1342,
|
|
|
|
|
/* 320 */ 1359, 1259, 1333, 1330, 1368, 1363, 1394, 1393, 1392, 1328,
|
|
|
|
|
/* 330 */ 1315, 1335, 1337, 1367, 1375, 1378, 1397, 1413,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
static const YYACTIONTYPE yy_default[] = {
|
2024-02-19 10:30:12 +00:00
|
|
|
/* 0 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 10 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 20 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 30 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 40 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 50 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 60 */ 1905, 2245, 1905, 1905, 2208, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 70 */ 1905, 1905, 1905, 1905, 1905, 1905, 2215, 1905, 1905, 1905,
|
|
|
|
|
/* 80 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 90 */ 1905, 1905, 1905, 1905, 1905, 1905, 2004, 1905, 1905, 1905,
|
|
|
|
|
/* 100 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 110 */ 1905, 1905, 1905, 2002, 2448, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 120 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 130 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 2460, 1905,
|
|
|
|
|
/* 140 */ 1905, 1976, 1976, 1905, 2460, 2460, 2460, 2002, 2420, 2420,
|
|
|
|
|
/* 150 */ 1905, 1905, 2004, 2283, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 160 */ 1905, 1905, 2127, 1935, 1905, 1905, 1905, 1905, 2151, 1905,
|
|
|
|
|
/* 170 */ 1905, 1905, 2271, 1905, 1905, 2489, 2551, 1905, 2492, 1905,
|
|
|
|
|
/* 180 */ 1905, 1905, 1905, 1905, 2220, 1905, 2479, 1905, 1905, 1905,
|
|
|
|
|
/* 190 */ 1905, 1905, 1905, 1905, 1905, 1905, 2080, 2265, 1905, 1905,
|
|
|
|
|
/* 200 */ 1905, 2452, 2466, 2535, 2453, 2450, 2473, 1905, 2483, 1905,
|
|
|
|
|
/* 210 */ 2308, 1905, 2297, 2004, 1905, 2004, 2258, 2203, 1905, 2213,
|
|
|
|
|
/* 220 */ 1905, 2213, 2210, 1905, 1905, 1905, 2213, 2210, 2210, 2210,
|
|
|
|
|
/* 230 */ 2069, 2065, 1905, 2063, 1905, 1905, 1905, 1905, 1960, 1905,
|
|
|
|
|
/* 240 */ 1960, 1905, 2004, 2004, 1905, 2004, 1905, 1905, 2004, 1905,
|
|
|
|
|
/* 250 */ 2004, 1905, 2004, 2004, 1905, 2004, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 260 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 270 */ 1905, 1905, 1905, 1905, 1905, 2295, 2281, 1905, 2002, 1905,
|
|
|
|
|
/* 280 */ 2269, 2267, 1905, 2002, 2483, 1905, 1905, 2505, 2500, 2505,
|
|
|
|
|
/* 290 */ 2500, 2519, 2515, 2505, 2524, 2521, 2485, 2483, 2554, 2541,
|
|
|
|
|
/* 300 */ 2537, 2466, 1905, 1905, 2471, 2469, 1905, 2002, 2002, 2500,
|
|
|
|
|
/* 310 */ 1905, 1905, 1905, 1905, 2500, 1905, 1905, 2002, 1905, 2002,
|
|
|
|
|
/* 320 */ 1905, 1905, 2096, 1905, 1905, 2002, 1905, 1944, 1905, 2260,
|
|
|
|
|
/* 330 */ 2286, 2241, 2241, 2130, 2130, 2130, 2005, 1910, 1905, 1905,
|
|
|
|
|
/* 340 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 350 */ 2518, 2517, 2373, 1905, 2424, 2423, 2422, 2413, 2372, 2092,
|
|
|
|
|
/* 360 */ 1905, 1905, 2371, 2370, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 370 */ 1905, 1905, 1905, 2232, 2231, 2364, 1905, 1905, 2365, 2363,
|
|
|
|
|
/* 380 */ 2362, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 390 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 400 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 2538, 2542, 1905,
|
|
|
|
|
/* 410 */ 1905, 1905, 1905, 1905, 1905, 2449, 1905, 1905, 1905, 2344,
|
|
|
|
|
/* 420 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 430 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 440 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 450 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 460 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 470 */ 1905, 1905, 1905, 1905, 2209, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 480 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 490 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 500 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 510 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 520 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 530 */ 1905, 1905, 1905, 1905, 1905, 1905, 2224, 1905, 1905, 1905,
|
|
|
|
|
/* 540 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 550 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 560 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1949, 2351,
|
|
|
|
|
/* 570 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 580 */ 1905, 1905, 1905, 2354, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 590 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 600 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 610 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 620 */ 1905, 1905, 1905, 1905, 2044, 2043, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 630 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 640 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 650 */ 1905, 1905, 2355, 1905, 1905, 1905, 1905, 1905, 2346, 1905,
|
|
|
|
|
/* 660 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 670 */ 1905, 1905, 1905, 1905, 1905, 2534, 2486, 1905, 1905, 1905,
|
|
|
|
|
/* 680 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 690 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 2344,
|
|
|
|
|
/* 700 */ 1905, 2516, 1905, 1905, 2532, 1905, 2536, 1905, 1905, 1905,
|
|
|
|
|
/* 710 */ 1905, 1905, 1905, 1905, 2459, 2455, 1905, 1905, 2451, 1905,
|
|
|
|
|
/* 720 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 730 */ 1905, 1905, 1905, 1905, 1905, 1905, 2343, 1905, 2410, 1905,
|
|
|
|
|
/* 740 */ 1905, 1905, 2444, 1905, 1905, 2395, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 750 */ 1905, 1905, 1905, 1905, 1905, 2355, 1905, 2358, 1905, 1905,
|
|
|
|
|
/* 760 */ 1905, 1905, 1905, 2124, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 770 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 2108,
|
|
|
|
|
/* 780 */ 2106, 2105, 2104, 1905, 2137, 1905, 1905, 1905, 2133, 2132,
|
|
|
|
|
/* 790 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 800 */ 1905, 1905, 1905, 1905, 1905, 1905, 2023, 1905, 1905, 1905,
|
|
|
|
|
/* 810 */ 1905, 1905, 1905, 1905, 1905, 2015, 1905, 2014, 1905, 1905,
|
|
|
|
|
/* 820 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 830 */ 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 840 */ 1905, 1905, 1905, 1905, 1905, 1934, 1905, 1905, 1905, 1905,
|
|
|
|
|
/* 850 */ 1905, 1905,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
/********** 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 */
|
2022-05-07 09:37:17 +00:00
|
|
|
0, /* GRANT => nothing */
|
|
|
|
|
0, /* ON => nothing */
|
|
|
|
|
0, /* TO => nothing */
|
|
|
|
|
0, /* REVOKE => nothing */
|
|
|
|
|
0, /* FROM => nothing */
|
2022-11-30 11:24:15 +00:00
|
|
|
0, /* SUBSCRIBE => nothing */
|
2022-05-07 09:37:17 +00:00
|
|
|
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 */
|
2022-06-18 06:49:36 +00:00
|
|
|
0, /* NK_IPTOKEN => nothing */
|
2022-10-31 02:30:54 +00:00
|
|
|
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 */
|
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 */
|
2022-07-16 03:47:26 +00:00
|
|
|
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 */
|
2022-09-03 03:22:36 +00:00
|
|
|
0, /* TABLE_PREFIX => nothing */
|
|
|
|
|
0, /* TABLE_SUFFIX => nothing */
|
2023-09-19 10:44:27 +00:00
|
|
|
0, /* KEEP_TIME_OFFSET => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* NK_COLON => nothing */
|
2023-08-28 01:28:55 +00:00
|
|
|
0, /* BWLIMIT => nothing */
|
2023-03-07 07:24:04 +00:00
|
|
|
0, /* START => nothing */
|
|
|
|
|
0, /* TIMESTAMP => nothing */
|
2024-02-04 08:04:23 +00:00
|
|
|
301, /* 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 */
|
|
|
|
|
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 */
|
2023-05-24 07:36:46 +00:00
|
|
|
0, /* GEOMETRY => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* DECIMAL => nothing */
|
2023-08-24 05:54:27 +00:00
|
|
|
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 */
|
2022-11-30 11:24:15 +00:00
|
|
|
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, /* 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 */
|
2022-05-07 09:37:17 +00:00
|
|
|
0, /* TRANSACTIONS => nothing */
|
2022-06-18 10:37:18 +00:00
|
|
|
0, /* DISTRIBUTED => nothing */
|
2022-06-23 10:03:15 +00:00
|
|
|
0, /* CONSUMERS => nothing */
|
|
|
|
|
0, /* SUBSCRIPTIONS => nothing */
|
2022-09-01 11:01:37 +00:00
|
|
|
0, /* VNODES => nothing */
|
2022-12-29 10:07:57 +00:00
|
|
|
0, /* ALIVE => nothing */
|
2023-10-09 09:19:36 +00:00
|
|
|
0, /* VIEWS => nothing */
|
2024-02-04 08:04:23 +00:00
|
|
|
301, /* VIEW => ABORT */
|
2023-11-16 03:41:02 +00:00
|
|
|
0, /* COMPACTS => nothing */
|
2023-09-19 08:14:17 +00:00
|
|
|
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 */
|
2023-09-19 08:14:17 +00:00
|
|
|
0, /* SYSTEM => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* INDEX => nothing */
|
|
|
|
|
0, /* FUNCTION => nothing */
|
|
|
|
|
0, /* INTERVAL => nothing */
|
2022-12-19 02:57:56 +00:00
|
|
|
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 */
|
2022-05-31 07:07:15 +00:00
|
|
|
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 */
|
2023-03-04 03:08:50 +00:00
|
|
|
0, /* LANGUAGE => nothing */
|
2023-04-04 09:45:18 +00:00
|
|
|
0, /* REPLACE => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* STREAM => nothing */
|
|
|
|
|
0, /* INTO => nothing */
|
2023-04-24 06:48:33 +00:00
|
|
|
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 */
|
2022-06-30 08:16:05 +00:00
|
|
|
0, /* IGNORE => nothing */
|
|
|
|
|
0, /* EXPIRED => nothing */
|
2022-10-26 09:01:55 +00:00
|
|
|
0, /* FILL_HISTORY => nothing */
|
2023-02-07 11:31:08 +00:00
|
|
|
0, /* UPDATE => nothing */
|
2022-09-26 10:39:47 +00:00
|
|
|
0, /* SUBTABLE => nothing */
|
2023-04-24 06:48:33 +00:00
|
|
|
0, /* UNTREATED => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* KILL => nothing */
|
|
|
|
|
0, /* CONNECTION => nothing */
|
2022-05-07 09:37:17 +00:00
|
|
|
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 */
|
2023-03-22 01:53:56 +00:00
|
|
|
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 */
|
2022-06-10 06:28:58 +00:00
|
|
|
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 */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* NULL => nothing */
|
|
|
|
|
0, /* NK_QUESTION => nothing */
|
2023-10-24 07:59:51 +00:00
|
|
|
0, /* NK_ALIAS => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* NK_ARROW => nothing */
|
|
|
|
|
0, /* ROWTS => nothing */
|
2022-07-13 07:13:01 +00:00
|
|
|
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 */
|
2022-09-27 07:23:24 +00:00
|
|
|
0, /* IROWTS => nothing */
|
2022-12-14 08:23:49 +00:00
|
|
|
0, /* ISFILLED => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* CAST => nothing */
|
|
|
|
|
0, /* NOW => nothing */
|
|
|
|
|
0, /* TODAY => nothing */
|
|
|
|
|
0, /* TIMEZONE => nothing */
|
2022-06-29 03:41:32 +00:00
|
|
|
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 */
|
|
|
|
|
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 */
|
2024-02-04 08:04:23 +00:00
|
|
|
301, /* AFTER => ABORT */
|
|
|
|
|
301, /* ATTACH => ABORT */
|
|
|
|
|
301, /* BEFORE => ABORT */
|
|
|
|
|
301, /* BEGIN => ABORT */
|
|
|
|
|
301, /* BITAND => ABORT */
|
|
|
|
|
301, /* BITNOT => ABORT */
|
|
|
|
|
301, /* BITOR => ABORT */
|
|
|
|
|
301, /* BLOCKS => ABORT */
|
|
|
|
|
301, /* CHANGE => ABORT */
|
|
|
|
|
301, /* COMMA => ABORT */
|
|
|
|
|
301, /* CONCAT => ABORT */
|
|
|
|
|
301, /* CONFLICT => ABORT */
|
|
|
|
|
301, /* COPY => ABORT */
|
|
|
|
|
301, /* DEFERRED => ABORT */
|
|
|
|
|
301, /* DELIMITERS => ABORT */
|
|
|
|
|
301, /* DETACH => ABORT */
|
|
|
|
|
301, /* DIVIDE => ABORT */
|
|
|
|
|
301, /* DOT => ABORT */
|
|
|
|
|
301, /* EACH => ABORT */
|
|
|
|
|
301, /* FAIL => ABORT */
|
|
|
|
|
301, /* FILE => ABORT */
|
|
|
|
|
301, /* FOR => ABORT */
|
|
|
|
|
301, /* GLOB => ABORT */
|
|
|
|
|
301, /* ID => ABORT */
|
|
|
|
|
301, /* IMMEDIATE => ABORT */
|
|
|
|
|
301, /* IMPORT => ABORT */
|
|
|
|
|
301, /* INITIALLY => ABORT */
|
|
|
|
|
301, /* INSTEAD => ABORT */
|
|
|
|
|
301, /* ISNULL => ABORT */
|
|
|
|
|
301, /* KEY => ABORT */
|
|
|
|
|
301, /* MODULES => ABORT */
|
|
|
|
|
301, /* NK_BITNOT => ABORT */
|
|
|
|
|
301, /* NK_SEMI => ABORT */
|
|
|
|
|
301, /* NOTNULL => ABORT */
|
|
|
|
|
301, /* OF => ABORT */
|
|
|
|
|
301, /* PLUS => ABORT */
|
|
|
|
|
301, /* PRIVILEGE => ABORT */
|
|
|
|
|
301, /* RAISE => ABORT */
|
|
|
|
|
301, /* RESTRICT => ABORT */
|
|
|
|
|
301, /* ROW => ABORT */
|
|
|
|
|
301, /* SEMI => ABORT */
|
|
|
|
|
301, /* STAR => ABORT */
|
|
|
|
|
301, /* STATEMENT => ABORT */
|
|
|
|
|
301, /* STRICT => ABORT */
|
|
|
|
|
301, /* STRING => ABORT */
|
|
|
|
|
301, /* TIMES => ABORT */
|
|
|
|
|
301, /* VALUES => ABORT */
|
|
|
|
|
301, /* VARIABLE => ABORT */
|
|
|
|
|
301, /* WAL => ABORT */
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
#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 */
|
2022-01-23 12:34:16 +00:00
|
|
|
#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;
|
|
|
|
|
|
2023-11-16 03:41:02 +00:00
|
|
|
#include <assert.h>
|
2022-01-23 12:34:16 +00:00
|
|
|
#ifndef NDEBUG
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
static FILE *yyTraceFILE = 0;
|
|
|
|
|
static char *yyTracePrompt = 0;
|
|
|
|
|
#endif /* NDEBUG */
|
|
|
|
|
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
/*
|
|
|
|
|
** Turn parser tracing on by giving a stream to which to write the trace
|
|
|
|
|
** and a prompt to preface each trace message. Tracing is turned off
|
|
|
|
|
** by making either argument NULL
|
|
|
|
|
**
|
|
|
|
|
** Inputs:
|
|
|
|
|
** <ul>
|
|
|
|
|
** <li> A FILE* to which trace output should be written.
|
|
|
|
|
** If NULL, then tracing is turned off.
|
|
|
|
|
** <li> A prefix string written at the beginning of every
|
|
|
|
|
** line of trace output. If NULL, then tracing is
|
|
|
|
|
** turned off.
|
|
|
|
|
** </ul>
|
|
|
|
|
**
|
|
|
|
|
** Outputs:
|
|
|
|
|
** None.
|
|
|
|
|
*/
|
2022-03-10 07:36:06 +00:00
|
|
|
void ParseTrace(FILE *TraceFILE, char *zTracePrompt){
|
2022-01-23 12:34:16 +00:00
|
|
|
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 */ "$",
|
2022-01-27 06:32:40 +00:00
|
|
|
/* 1 */ "OR",
|
|
|
|
|
/* 2 */ "AND",
|
2022-01-27 16:28:13 +00:00
|
|
|
/* 3 */ "UNION",
|
|
|
|
|
/* 4 */ "ALL",
|
|
|
|
|
/* 5 */ "MINUS",
|
|
|
|
|
/* 6 */ "EXCEPT",
|
|
|
|
|
/* 7 */ "INTERSECT",
|
2022-03-01 02:13:22 +00:00
|
|
|
/* 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",
|
2022-03-17 03:11:49 +00:00
|
|
|
/* 18 */ "CREATE",
|
2022-03-16 11:28:40 +00:00
|
|
|
/* 19 */ "ACCOUNT",
|
|
|
|
|
/* 20 */ "NK_ID",
|
|
|
|
|
/* 21 */ "PASS",
|
2022-03-17 03:11:49 +00:00
|
|
|
/* 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",
|
|
|
|
|
/* 69 */ "COMPACT",
|
|
|
|
|
/* 70 */ "IF",
|
|
|
|
|
/* 71 */ "NOT",
|
|
|
|
|
/* 72 */ "EXISTS",
|
|
|
|
|
/* 73 */ "BUFFER",
|
|
|
|
|
/* 74 */ "CACHEMODEL",
|
|
|
|
|
/* 75 */ "CACHESIZE",
|
|
|
|
|
/* 76 */ "COMP",
|
|
|
|
|
/* 77 */ "DURATION",
|
|
|
|
|
/* 78 */ "NK_VARIABLE",
|
|
|
|
|
/* 79 */ "MAXROWS",
|
|
|
|
|
/* 80 */ "MINROWS",
|
|
|
|
|
/* 81 */ "KEEP",
|
|
|
|
|
/* 82 */ "PAGES",
|
|
|
|
|
/* 83 */ "PAGESIZE",
|
|
|
|
|
/* 84 */ "TSDB_PAGESIZE",
|
|
|
|
|
/* 85 */ "PRECISION",
|
|
|
|
|
/* 86 */ "REPLICA",
|
|
|
|
|
/* 87 */ "VGROUPS",
|
|
|
|
|
/* 88 */ "SINGLE_STABLE",
|
|
|
|
|
/* 89 */ "RETENTIONS",
|
|
|
|
|
/* 90 */ "SCHEMALESS",
|
|
|
|
|
/* 91 */ "WAL_LEVEL",
|
|
|
|
|
/* 92 */ "WAL_FSYNC_PERIOD",
|
|
|
|
|
/* 93 */ "WAL_RETENTION_PERIOD",
|
|
|
|
|
/* 94 */ "WAL_RETENTION_SIZE",
|
|
|
|
|
/* 95 */ "WAL_ROLL_PERIOD",
|
|
|
|
|
/* 96 */ "WAL_SEGMENT_SIZE",
|
|
|
|
|
/* 97 */ "STT_TRIGGER",
|
|
|
|
|
/* 98 */ "TABLE_PREFIX",
|
|
|
|
|
/* 99 */ "TABLE_SUFFIX",
|
|
|
|
|
/* 100 */ "KEEP_TIME_OFFSET",
|
|
|
|
|
/* 101 */ "NK_COLON",
|
|
|
|
|
/* 102 */ "BWLIMIT",
|
|
|
|
|
/* 103 */ "START",
|
|
|
|
|
/* 104 */ "TIMESTAMP",
|
|
|
|
|
/* 105 */ "END",
|
|
|
|
|
/* 106 */ "TABLE",
|
|
|
|
|
/* 107 */ "NK_LP",
|
|
|
|
|
/* 108 */ "NK_RP",
|
|
|
|
|
/* 109 */ "STABLE",
|
|
|
|
|
/* 110 */ "COLUMN",
|
|
|
|
|
/* 111 */ "MODIFY",
|
|
|
|
|
/* 112 */ "RENAME",
|
|
|
|
|
/* 113 */ "TAG",
|
|
|
|
|
/* 114 */ "SET",
|
|
|
|
|
/* 115 */ "NK_EQ",
|
|
|
|
|
/* 116 */ "USING",
|
|
|
|
|
/* 117 */ "TAGS",
|
|
|
|
|
/* 118 */ "BOOL",
|
|
|
|
|
/* 119 */ "TINYINT",
|
|
|
|
|
/* 120 */ "SMALLINT",
|
|
|
|
|
/* 121 */ "INT",
|
|
|
|
|
/* 122 */ "INTEGER",
|
|
|
|
|
/* 123 */ "BIGINT",
|
|
|
|
|
/* 124 */ "FLOAT",
|
|
|
|
|
/* 125 */ "DOUBLE",
|
|
|
|
|
/* 126 */ "BINARY",
|
|
|
|
|
/* 127 */ "NCHAR",
|
|
|
|
|
/* 128 */ "UNSIGNED",
|
|
|
|
|
/* 129 */ "JSON",
|
|
|
|
|
/* 130 */ "VARCHAR",
|
|
|
|
|
/* 131 */ "MEDIUMBLOB",
|
|
|
|
|
/* 132 */ "BLOB",
|
|
|
|
|
/* 133 */ "VARBINARY",
|
|
|
|
|
/* 134 */ "GEOMETRY",
|
|
|
|
|
/* 135 */ "DECIMAL",
|
|
|
|
|
/* 136 */ "COMMENT",
|
|
|
|
|
/* 137 */ "MAX_DELAY",
|
|
|
|
|
/* 138 */ "WATERMARK",
|
|
|
|
|
/* 139 */ "ROLLUP",
|
|
|
|
|
/* 140 */ "TTL",
|
|
|
|
|
/* 141 */ "SMA",
|
|
|
|
|
/* 142 */ "DELETE_MARK",
|
|
|
|
|
/* 143 */ "FIRST",
|
|
|
|
|
/* 144 */ "LAST",
|
|
|
|
|
/* 145 */ "SHOW",
|
|
|
|
|
/* 146 */ "PRIVILEGES",
|
|
|
|
|
/* 147 */ "DATABASES",
|
|
|
|
|
/* 148 */ "TABLES",
|
|
|
|
|
/* 149 */ "STABLES",
|
|
|
|
|
/* 150 */ "MNODES",
|
|
|
|
|
/* 151 */ "QNODES",
|
|
|
|
|
/* 152 */ "FUNCTIONS",
|
|
|
|
|
/* 153 */ "INDEXES",
|
|
|
|
|
/* 154 */ "ACCOUNTS",
|
|
|
|
|
/* 155 */ "APPS",
|
|
|
|
|
/* 156 */ "CONNECTIONS",
|
|
|
|
|
/* 157 */ "LICENCES",
|
|
|
|
|
/* 158 */ "GRANTS",
|
2024-01-18 07:23:38 +00:00
|
|
|
/* 159 */ "FULL",
|
2024-01-31 05:44:00 +00:00
|
|
|
/* 160 */ "LOGS",
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 161 */ "MACHINES",
|
|
|
|
|
/* 162 */ "QUERIES",
|
|
|
|
|
/* 163 */ "SCORES",
|
|
|
|
|
/* 164 */ "TOPICS",
|
|
|
|
|
/* 165 */ "VARIABLES",
|
|
|
|
|
/* 166 */ "BNODES",
|
|
|
|
|
/* 167 */ "SNODES",
|
|
|
|
|
/* 168 */ "TRANSACTIONS",
|
|
|
|
|
/* 169 */ "DISTRIBUTED",
|
|
|
|
|
/* 170 */ "CONSUMERS",
|
|
|
|
|
/* 171 */ "SUBSCRIPTIONS",
|
|
|
|
|
/* 172 */ "VNODES",
|
|
|
|
|
/* 173 */ "ALIVE",
|
|
|
|
|
/* 174 */ "VIEWS",
|
|
|
|
|
/* 175 */ "VIEW",
|
|
|
|
|
/* 176 */ "COMPACTS",
|
|
|
|
|
/* 177 */ "NORMAL",
|
|
|
|
|
/* 178 */ "CHILD",
|
|
|
|
|
/* 179 */ "LIKE",
|
|
|
|
|
/* 180 */ "TBNAME",
|
|
|
|
|
/* 181 */ "QTAGS",
|
|
|
|
|
/* 182 */ "AS",
|
|
|
|
|
/* 183 */ "SYSTEM",
|
|
|
|
|
/* 184 */ "INDEX",
|
|
|
|
|
/* 185 */ "FUNCTION",
|
|
|
|
|
/* 186 */ "INTERVAL",
|
|
|
|
|
/* 187 */ "COUNT",
|
|
|
|
|
/* 188 */ "LAST_ROW",
|
|
|
|
|
/* 189 */ "META",
|
|
|
|
|
/* 190 */ "ONLY",
|
|
|
|
|
/* 191 */ "TOPIC",
|
|
|
|
|
/* 192 */ "CONSUMER",
|
|
|
|
|
/* 193 */ "GROUP",
|
|
|
|
|
/* 194 */ "DESC",
|
|
|
|
|
/* 195 */ "DESCRIBE",
|
|
|
|
|
/* 196 */ "RESET",
|
|
|
|
|
/* 197 */ "QUERY",
|
|
|
|
|
/* 198 */ "CACHE",
|
|
|
|
|
/* 199 */ "EXPLAIN",
|
|
|
|
|
/* 200 */ "ANALYZE",
|
|
|
|
|
/* 201 */ "VERBOSE",
|
|
|
|
|
/* 202 */ "NK_BOOL",
|
|
|
|
|
/* 203 */ "RATIO",
|
|
|
|
|
/* 204 */ "NK_FLOAT",
|
|
|
|
|
/* 205 */ "OUTPUTTYPE",
|
|
|
|
|
/* 206 */ "AGGREGATE",
|
|
|
|
|
/* 207 */ "BUFSIZE",
|
|
|
|
|
/* 208 */ "LANGUAGE",
|
|
|
|
|
/* 209 */ "REPLACE",
|
|
|
|
|
/* 210 */ "STREAM",
|
|
|
|
|
/* 211 */ "INTO",
|
|
|
|
|
/* 212 */ "PAUSE",
|
|
|
|
|
/* 213 */ "RESUME",
|
|
|
|
|
/* 214 */ "TRIGGER",
|
|
|
|
|
/* 215 */ "AT_ONCE",
|
|
|
|
|
/* 216 */ "WINDOW_CLOSE",
|
|
|
|
|
/* 217 */ "IGNORE",
|
|
|
|
|
/* 218 */ "EXPIRED",
|
|
|
|
|
/* 219 */ "FILL_HISTORY",
|
|
|
|
|
/* 220 */ "UPDATE",
|
|
|
|
|
/* 221 */ "SUBTABLE",
|
|
|
|
|
/* 222 */ "UNTREATED",
|
|
|
|
|
/* 223 */ "KILL",
|
|
|
|
|
/* 224 */ "CONNECTION",
|
|
|
|
|
/* 225 */ "TRANSACTION",
|
|
|
|
|
/* 226 */ "BALANCE",
|
|
|
|
|
/* 227 */ "VGROUP",
|
|
|
|
|
/* 228 */ "LEADER",
|
|
|
|
|
/* 229 */ "MERGE",
|
|
|
|
|
/* 230 */ "REDISTRIBUTE",
|
|
|
|
|
/* 231 */ "SPLIT",
|
|
|
|
|
/* 232 */ "DELETE",
|
|
|
|
|
/* 233 */ "INSERT",
|
|
|
|
|
/* 234 */ "NULL",
|
|
|
|
|
/* 235 */ "NK_QUESTION",
|
|
|
|
|
/* 236 */ "NK_ALIAS",
|
|
|
|
|
/* 237 */ "NK_ARROW",
|
|
|
|
|
/* 238 */ "ROWTS",
|
|
|
|
|
/* 239 */ "QSTART",
|
|
|
|
|
/* 240 */ "QEND",
|
|
|
|
|
/* 241 */ "QDURATION",
|
|
|
|
|
/* 242 */ "WSTART",
|
|
|
|
|
/* 243 */ "WEND",
|
|
|
|
|
/* 244 */ "WDURATION",
|
|
|
|
|
/* 245 */ "IROWTS",
|
|
|
|
|
/* 246 */ "ISFILLED",
|
|
|
|
|
/* 247 */ "CAST",
|
|
|
|
|
/* 248 */ "NOW",
|
|
|
|
|
/* 249 */ "TODAY",
|
|
|
|
|
/* 250 */ "TIMEZONE",
|
|
|
|
|
/* 251 */ "CLIENT_VERSION",
|
|
|
|
|
/* 252 */ "SERVER_VERSION",
|
|
|
|
|
/* 253 */ "SERVER_STATUS",
|
|
|
|
|
/* 254 */ "CURRENT_USER",
|
|
|
|
|
/* 255 */ "CASE",
|
|
|
|
|
/* 256 */ "WHEN",
|
|
|
|
|
/* 257 */ "THEN",
|
|
|
|
|
/* 258 */ "ELSE",
|
|
|
|
|
/* 259 */ "BETWEEN",
|
|
|
|
|
/* 260 */ "IS",
|
|
|
|
|
/* 261 */ "NK_LT",
|
|
|
|
|
/* 262 */ "NK_GT",
|
|
|
|
|
/* 263 */ "NK_LE",
|
|
|
|
|
/* 264 */ "NK_GE",
|
|
|
|
|
/* 265 */ "NK_NE",
|
|
|
|
|
/* 266 */ "MATCH",
|
|
|
|
|
/* 267 */ "NMATCH",
|
|
|
|
|
/* 268 */ "CONTAINS",
|
|
|
|
|
/* 269 */ "IN",
|
|
|
|
|
/* 270 */ "JOIN",
|
|
|
|
|
/* 271 */ "INNER",
|
|
|
|
|
/* 272 */ "SELECT",
|
|
|
|
|
/* 273 */ "NK_HINT",
|
|
|
|
|
/* 274 */ "DISTINCT",
|
|
|
|
|
/* 275 */ "WHERE",
|
|
|
|
|
/* 276 */ "PARTITION",
|
|
|
|
|
/* 277 */ "BY",
|
|
|
|
|
/* 278 */ "SESSION",
|
|
|
|
|
/* 279 */ "STATE_WINDOW",
|
|
|
|
|
/* 280 */ "EVENT_WINDOW",
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 281 */ "COUNT_WINDOW",
|
|
|
|
|
/* 282 */ "SLIDING",
|
|
|
|
|
/* 283 */ "FILL",
|
|
|
|
|
/* 284 */ "VALUE",
|
|
|
|
|
/* 285 */ "VALUE_F",
|
|
|
|
|
/* 286 */ "NONE",
|
|
|
|
|
/* 287 */ "PREV",
|
|
|
|
|
/* 288 */ "NULL_F",
|
|
|
|
|
/* 289 */ "LINEAR",
|
|
|
|
|
/* 290 */ "NEXT",
|
|
|
|
|
/* 291 */ "HAVING",
|
|
|
|
|
/* 292 */ "RANGE",
|
|
|
|
|
/* 293 */ "EVERY",
|
|
|
|
|
/* 294 */ "ORDER",
|
|
|
|
|
/* 295 */ "SLIMIT",
|
|
|
|
|
/* 296 */ "SOFFSET",
|
|
|
|
|
/* 297 */ "LIMIT",
|
|
|
|
|
/* 298 */ "OFFSET",
|
|
|
|
|
/* 299 */ "ASC",
|
|
|
|
|
/* 300 */ "NULLS",
|
|
|
|
|
/* 301 */ "ABORT",
|
|
|
|
|
/* 302 */ "AFTER",
|
|
|
|
|
/* 303 */ "ATTACH",
|
|
|
|
|
/* 304 */ "BEFORE",
|
|
|
|
|
/* 305 */ "BEGIN",
|
|
|
|
|
/* 306 */ "BITAND",
|
|
|
|
|
/* 307 */ "BITNOT",
|
|
|
|
|
/* 308 */ "BITOR",
|
|
|
|
|
/* 309 */ "BLOCKS",
|
|
|
|
|
/* 310 */ "CHANGE",
|
|
|
|
|
/* 311 */ "COMMA",
|
|
|
|
|
/* 312 */ "CONCAT",
|
|
|
|
|
/* 313 */ "CONFLICT",
|
|
|
|
|
/* 314 */ "COPY",
|
|
|
|
|
/* 315 */ "DEFERRED",
|
|
|
|
|
/* 316 */ "DELIMITERS",
|
|
|
|
|
/* 317 */ "DETACH",
|
|
|
|
|
/* 318 */ "DIVIDE",
|
|
|
|
|
/* 319 */ "DOT",
|
|
|
|
|
/* 320 */ "EACH",
|
|
|
|
|
/* 321 */ "FAIL",
|
|
|
|
|
/* 322 */ "FILE",
|
|
|
|
|
/* 323 */ "FOR",
|
|
|
|
|
/* 324 */ "GLOB",
|
|
|
|
|
/* 325 */ "ID",
|
|
|
|
|
/* 326 */ "IMMEDIATE",
|
|
|
|
|
/* 327 */ "IMPORT",
|
|
|
|
|
/* 328 */ "INITIALLY",
|
|
|
|
|
/* 329 */ "INSTEAD",
|
|
|
|
|
/* 330 */ "ISNULL",
|
|
|
|
|
/* 331 */ "KEY",
|
|
|
|
|
/* 332 */ "MODULES",
|
|
|
|
|
/* 333 */ "NK_BITNOT",
|
|
|
|
|
/* 334 */ "NK_SEMI",
|
|
|
|
|
/* 335 */ "NOTNULL",
|
|
|
|
|
/* 336 */ "OF",
|
|
|
|
|
/* 337 */ "PLUS",
|
|
|
|
|
/* 338 */ "PRIVILEGE",
|
|
|
|
|
/* 339 */ "RAISE",
|
|
|
|
|
/* 340 */ "RESTRICT",
|
|
|
|
|
/* 341 */ "ROW",
|
|
|
|
|
/* 342 */ "SEMI",
|
|
|
|
|
/* 343 */ "STAR",
|
|
|
|
|
/* 344 */ "STATEMENT",
|
|
|
|
|
/* 345 */ "STRICT",
|
|
|
|
|
/* 346 */ "STRING",
|
|
|
|
|
/* 347 */ "TIMES",
|
|
|
|
|
/* 348 */ "VALUES",
|
|
|
|
|
/* 349 */ "VARIABLE",
|
|
|
|
|
/* 350 */ "WAL",
|
|
|
|
|
/* 351 */ "cmd",
|
|
|
|
|
/* 352 */ "account_options",
|
|
|
|
|
/* 353 */ "alter_account_options",
|
|
|
|
|
/* 354 */ "literal",
|
|
|
|
|
/* 355 */ "alter_account_option",
|
|
|
|
|
/* 356 */ "ip_range_list",
|
|
|
|
|
/* 357 */ "white_list",
|
|
|
|
|
/* 358 */ "white_list_opt",
|
|
|
|
|
/* 359 */ "user_name",
|
|
|
|
|
/* 360 */ "sysinfo_opt",
|
|
|
|
|
/* 361 */ "privileges",
|
|
|
|
|
/* 362 */ "priv_level",
|
|
|
|
|
/* 363 */ "with_opt",
|
|
|
|
|
/* 364 */ "priv_type_list",
|
|
|
|
|
/* 365 */ "priv_type",
|
|
|
|
|
/* 366 */ "db_name",
|
|
|
|
|
/* 367 */ "table_name",
|
|
|
|
|
/* 368 */ "topic_name",
|
|
|
|
|
/* 369 */ "search_condition",
|
|
|
|
|
/* 370 */ "dnode_endpoint",
|
|
|
|
|
/* 371 */ "force_opt",
|
|
|
|
|
/* 372 */ "unsafe_opt",
|
|
|
|
|
/* 373 */ "not_exists_opt",
|
|
|
|
|
/* 374 */ "db_options",
|
|
|
|
|
/* 375 */ "exists_opt",
|
|
|
|
|
/* 376 */ "alter_db_options",
|
|
|
|
|
/* 377 */ "speed_opt",
|
|
|
|
|
/* 378 */ "start_opt",
|
|
|
|
|
/* 379 */ "end_opt",
|
|
|
|
|
/* 380 */ "integer_list",
|
|
|
|
|
/* 381 */ "variable_list",
|
|
|
|
|
/* 382 */ "retention_list",
|
|
|
|
|
/* 383 */ "signed",
|
|
|
|
|
/* 384 */ "alter_db_option",
|
|
|
|
|
/* 385 */ "retention",
|
|
|
|
|
/* 386 */ "full_table_name",
|
|
|
|
|
/* 387 */ "column_def_list",
|
|
|
|
|
/* 388 */ "tags_def_opt",
|
|
|
|
|
/* 389 */ "table_options",
|
|
|
|
|
/* 390 */ "multi_create_clause",
|
|
|
|
|
/* 391 */ "tags_def",
|
|
|
|
|
/* 392 */ "multi_drop_clause",
|
|
|
|
|
/* 393 */ "alter_table_clause",
|
|
|
|
|
/* 394 */ "alter_table_options",
|
|
|
|
|
/* 395 */ "column_name",
|
|
|
|
|
/* 396 */ "type_name",
|
|
|
|
|
/* 397 */ "signed_literal",
|
|
|
|
|
/* 398 */ "create_subtable_clause",
|
|
|
|
|
/* 399 */ "specific_cols_opt",
|
|
|
|
|
/* 400 */ "expression_list",
|
|
|
|
|
/* 401 */ "drop_table_clause",
|
|
|
|
|
/* 402 */ "col_name_list",
|
|
|
|
|
/* 403 */ "column_def",
|
|
|
|
|
/* 404 */ "duration_list",
|
|
|
|
|
/* 405 */ "rollup_func_list",
|
|
|
|
|
/* 406 */ "alter_table_option",
|
|
|
|
|
/* 407 */ "duration_literal",
|
|
|
|
|
/* 408 */ "rollup_func_name",
|
|
|
|
|
/* 409 */ "function_name",
|
|
|
|
|
/* 410 */ "col_name",
|
|
|
|
|
/* 411 */ "db_kind_opt",
|
|
|
|
|
/* 412 */ "table_kind_db_name_cond_opt",
|
|
|
|
|
/* 413 */ "like_pattern_opt",
|
|
|
|
|
/* 414 */ "db_name_cond_opt",
|
|
|
|
|
/* 415 */ "table_name_cond",
|
|
|
|
|
/* 416 */ "from_db_opt",
|
|
|
|
|
/* 417 */ "tag_list_opt",
|
|
|
|
|
/* 418 */ "table_kind",
|
|
|
|
|
/* 419 */ "tag_item",
|
|
|
|
|
/* 420 */ "column_alias",
|
|
|
|
|
/* 421 */ "index_options",
|
|
|
|
|
/* 422 */ "full_index_name",
|
|
|
|
|
/* 423 */ "index_name",
|
|
|
|
|
/* 424 */ "func_list",
|
|
|
|
|
/* 425 */ "sliding_opt",
|
|
|
|
|
/* 426 */ "sma_stream_opt",
|
|
|
|
|
/* 427 */ "func",
|
|
|
|
|
/* 428 */ "sma_func_name",
|
|
|
|
|
/* 429 */ "with_meta",
|
|
|
|
|
/* 430 */ "query_or_subquery",
|
|
|
|
|
/* 431 */ "where_clause_opt",
|
|
|
|
|
/* 432 */ "cgroup_name",
|
|
|
|
|
/* 433 */ "analyze_opt",
|
|
|
|
|
/* 434 */ "explain_options",
|
|
|
|
|
/* 435 */ "insert_query",
|
|
|
|
|
/* 436 */ "or_replace_opt",
|
|
|
|
|
/* 437 */ "agg_func_opt",
|
|
|
|
|
/* 438 */ "bufsize_opt",
|
|
|
|
|
/* 439 */ "language_opt",
|
|
|
|
|
/* 440 */ "full_view_name",
|
|
|
|
|
/* 441 */ "view_name",
|
|
|
|
|
/* 442 */ "stream_name",
|
|
|
|
|
/* 443 */ "stream_options",
|
|
|
|
|
/* 444 */ "col_list_opt",
|
|
|
|
|
/* 445 */ "tag_def_or_ref_opt",
|
|
|
|
|
/* 446 */ "subtable_opt",
|
|
|
|
|
/* 447 */ "ignore_opt",
|
|
|
|
|
/* 448 */ "expression",
|
|
|
|
|
/* 449 */ "on_vgroup_id",
|
|
|
|
|
/* 450 */ "dnode_list",
|
|
|
|
|
/* 451 */ "literal_func",
|
|
|
|
|
/* 452 */ "literal_list",
|
|
|
|
|
/* 453 */ "table_alias",
|
|
|
|
|
/* 454 */ "expr_or_subquery",
|
|
|
|
|
/* 455 */ "pseudo_column",
|
|
|
|
|
/* 456 */ "column_reference",
|
|
|
|
|
/* 457 */ "function_expression",
|
|
|
|
|
/* 458 */ "case_when_expression",
|
|
|
|
|
/* 459 */ "star_func",
|
|
|
|
|
/* 460 */ "star_func_para_list",
|
|
|
|
|
/* 461 */ "noarg_func",
|
|
|
|
|
/* 462 */ "other_para_list",
|
|
|
|
|
/* 463 */ "star_func_para",
|
|
|
|
|
/* 464 */ "when_then_list",
|
|
|
|
|
/* 465 */ "case_when_else_opt",
|
|
|
|
|
/* 466 */ "common_expression",
|
|
|
|
|
/* 467 */ "when_then_expr",
|
|
|
|
|
/* 468 */ "predicate",
|
|
|
|
|
/* 469 */ "compare_op",
|
|
|
|
|
/* 470 */ "in_op",
|
|
|
|
|
/* 471 */ "in_predicate_value",
|
|
|
|
|
/* 472 */ "boolean_value_expression",
|
|
|
|
|
/* 473 */ "boolean_primary",
|
|
|
|
|
/* 474 */ "from_clause_opt",
|
|
|
|
|
/* 475 */ "table_reference_list",
|
|
|
|
|
/* 476 */ "table_reference",
|
|
|
|
|
/* 477 */ "table_primary",
|
|
|
|
|
/* 478 */ "joined_table",
|
|
|
|
|
/* 479 */ "alias_opt",
|
|
|
|
|
/* 480 */ "subquery",
|
|
|
|
|
/* 481 */ "parenthesized_joined_table",
|
|
|
|
|
/* 482 */ "join_type",
|
|
|
|
|
/* 483 */ "query_specification",
|
|
|
|
|
/* 484 */ "hint_list",
|
|
|
|
|
/* 485 */ "set_quantifier_opt",
|
|
|
|
|
/* 486 */ "tag_mode_opt",
|
|
|
|
|
/* 487 */ "select_list",
|
|
|
|
|
/* 488 */ "partition_by_clause_opt",
|
|
|
|
|
/* 489 */ "range_opt",
|
|
|
|
|
/* 490 */ "every_opt",
|
|
|
|
|
/* 491 */ "fill_opt",
|
|
|
|
|
/* 492 */ "twindow_clause_opt",
|
|
|
|
|
/* 493 */ "group_by_clause_opt",
|
|
|
|
|
/* 494 */ "having_clause_opt",
|
|
|
|
|
/* 495 */ "select_item",
|
|
|
|
|
/* 496 */ "partition_list",
|
|
|
|
|
/* 497 */ "partition_item",
|
|
|
|
|
/* 498 */ "interval_sliding_duration_literal",
|
|
|
|
|
/* 499 */ "fill_mode",
|
|
|
|
|
/* 500 */ "group_by_list",
|
|
|
|
|
/* 501 */ "query_expression",
|
|
|
|
|
/* 502 */ "query_simple",
|
|
|
|
|
/* 503 */ "order_by_clause_opt",
|
|
|
|
|
/* 504 */ "slimit_clause_opt",
|
|
|
|
|
/* 505 */ "limit_clause_opt",
|
|
|
|
|
/* 506 */ "union_query_expression",
|
|
|
|
|
/* 507 */ "query_simple_or_subquery",
|
|
|
|
|
/* 508 */ "sort_specification_list",
|
|
|
|
|
/* 509 */ "sort_specification",
|
|
|
|
|
/* 510 */ "ordering_specification_opt",
|
|
|
|
|
/* 511 */ "null_ordering_opt",
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
#endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */
|
|
|
|
|
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
/* For tracing reduce actions, the names of all rules are required.
|
|
|
|
|
*/
|
|
|
|
|
static const char *const yyRuleName[] = {
|
2022-03-17 03:11:49 +00:00
|
|
|
/* 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",
|
2023-10-20 00:46:32 +00:00
|
|
|
/* 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",
|
|
|
|
|
/* 92 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt",
|
|
|
|
|
/* 93 */ "not_exists_opt ::= IF NOT EXISTS",
|
|
|
|
|
/* 94 */ "not_exists_opt ::=",
|
|
|
|
|
/* 95 */ "exists_opt ::= IF EXISTS",
|
|
|
|
|
/* 96 */ "exists_opt ::=",
|
|
|
|
|
/* 97 */ "db_options ::=",
|
|
|
|
|
/* 98 */ "db_options ::= db_options BUFFER NK_INTEGER",
|
|
|
|
|
/* 99 */ "db_options ::= db_options CACHEMODEL NK_STRING",
|
|
|
|
|
/* 100 */ "db_options ::= db_options CACHESIZE NK_INTEGER",
|
|
|
|
|
/* 101 */ "db_options ::= db_options COMP NK_INTEGER",
|
|
|
|
|
/* 102 */ "db_options ::= db_options DURATION NK_INTEGER",
|
|
|
|
|
/* 103 */ "db_options ::= db_options DURATION NK_VARIABLE",
|
|
|
|
|
/* 104 */ "db_options ::= db_options MAXROWS NK_INTEGER",
|
|
|
|
|
/* 105 */ "db_options ::= db_options MINROWS NK_INTEGER",
|
|
|
|
|
/* 106 */ "db_options ::= db_options KEEP integer_list",
|
|
|
|
|
/* 107 */ "db_options ::= db_options KEEP variable_list",
|
|
|
|
|
/* 108 */ "db_options ::= db_options PAGES NK_INTEGER",
|
|
|
|
|
/* 109 */ "db_options ::= db_options PAGESIZE NK_INTEGER",
|
|
|
|
|
/* 110 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER",
|
|
|
|
|
/* 111 */ "db_options ::= db_options PRECISION NK_STRING",
|
|
|
|
|
/* 112 */ "db_options ::= db_options REPLICA NK_INTEGER",
|
|
|
|
|
/* 113 */ "db_options ::= db_options VGROUPS NK_INTEGER",
|
|
|
|
|
/* 114 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER",
|
|
|
|
|
/* 115 */ "db_options ::= db_options RETENTIONS retention_list",
|
|
|
|
|
/* 116 */ "db_options ::= db_options SCHEMALESS NK_INTEGER",
|
|
|
|
|
/* 117 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER",
|
|
|
|
|
/* 118 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER",
|
|
|
|
|
/* 119 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER",
|
|
|
|
|
/* 120 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
|
|
|
/* 121 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER",
|
|
|
|
|
/* 122 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
|
|
|
/* 123 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER",
|
|
|
|
|
/* 124 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER",
|
|
|
|
|
/* 125 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER",
|
|
|
|
|
/* 126 */ "db_options ::= db_options TABLE_PREFIX signed",
|
|
|
|
|
/* 127 */ "db_options ::= db_options TABLE_SUFFIX signed",
|
|
|
|
|
/* 128 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER",
|
|
|
|
|
/* 129 */ "alter_db_options ::= alter_db_option",
|
|
|
|
|
/* 130 */ "alter_db_options ::= alter_db_options alter_db_option",
|
|
|
|
|
/* 131 */ "alter_db_option ::= BUFFER NK_INTEGER",
|
|
|
|
|
/* 132 */ "alter_db_option ::= CACHEMODEL NK_STRING",
|
|
|
|
|
/* 133 */ "alter_db_option ::= CACHESIZE NK_INTEGER",
|
|
|
|
|
/* 134 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER",
|
|
|
|
|
/* 135 */ "alter_db_option ::= KEEP integer_list",
|
|
|
|
|
/* 136 */ "alter_db_option ::= KEEP variable_list",
|
|
|
|
|
/* 137 */ "alter_db_option ::= PAGES NK_INTEGER",
|
|
|
|
|
/* 138 */ "alter_db_option ::= REPLICA NK_INTEGER",
|
|
|
|
|
/* 139 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER",
|
|
|
|
|
/* 140 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER",
|
|
|
|
|
/* 141 */ "alter_db_option ::= MINROWS NK_INTEGER",
|
|
|
|
|
/* 142 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER",
|
|
|
|
|
/* 143 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER",
|
|
|
|
|
/* 144 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER",
|
|
|
|
|
/* 145 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER",
|
|
|
|
|
/* 146 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER",
|
|
|
|
|
/* 147 */ "integer_list ::= NK_INTEGER",
|
|
|
|
|
/* 148 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER",
|
|
|
|
|
/* 149 */ "variable_list ::= NK_VARIABLE",
|
|
|
|
|
/* 150 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE",
|
|
|
|
|
/* 151 */ "retention_list ::= retention",
|
|
|
|
|
/* 152 */ "retention_list ::= retention_list NK_COMMA retention",
|
|
|
|
|
/* 153 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE",
|
|
|
|
|
/* 154 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE",
|
|
|
|
|
/* 155 */ "speed_opt ::=",
|
|
|
|
|
/* 156 */ "speed_opt ::= BWLIMIT NK_INTEGER",
|
|
|
|
|
/* 157 */ "start_opt ::=",
|
|
|
|
|
/* 158 */ "start_opt ::= START WITH NK_INTEGER",
|
|
|
|
|
/* 159 */ "start_opt ::= START WITH NK_STRING",
|
|
|
|
|
/* 160 */ "start_opt ::= START WITH TIMESTAMP NK_STRING",
|
|
|
|
|
/* 161 */ "end_opt ::=",
|
|
|
|
|
/* 162 */ "end_opt ::= END WITH NK_INTEGER",
|
|
|
|
|
/* 163 */ "end_opt ::= END WITH NK_STRING",
|
|
|
|
|
/* 164 */ "end_opt ::= END WITH TIMESTAMP NK_STRING",
|
|
|
|
|
/* 165 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options",
|
|
|
|
|
/* 166 */ "cmd ::= CREATE TABLE multi_create_clause",
|
|
|
|
|
/* 167 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options",
|
|
|
|
|
/* 168 */ "cmd ::= DROP TABLE multi_drop_clause",
|
|
|
|
|
/* 169 */ "cmd ::= DROP STABLE exists_opt full_table_name",
|
|
|
|
|
/* 170 */ "cmd ::= ALTER TABLE alter_table_clause",
|
|
|
|
|
/* 171 */ "cmd ::= ALTER STABLE alter_table_clause",
|
|
|
|
|
/* 172 */ "alter_table_clause ::= full_table_name alter_table_options",
|
|
|
|
|
/* 173 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name",
|
|
|
|
|
/* 174 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name",
|
|
|
|
|
/* 175 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name",
|
|
|
|
|
/* 176 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name",
|
|
|
|
|
/* 177 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name",
|
|
|
|
|
/* 178 */ "alter_table_clause ::= full_table_name DROP TAG column_name",
|
|
|
|
|
/* 179 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name",
|
|
|
|
|
/* 180 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name",
|
|
|
|
|
/* 181 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal",
|
|
|
|
|
/* 182 */ "multi_create_clause ::= create_subtable_clause",
|
|
|
|
|
/* 183 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
|
|
|
|
|
/* 184 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options",
|
|
|
|
|
/* 185 */ "multi_drop_clause ::= drop_table_clause",
|
|
|
|
|
/* 186 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause",
|
|
|
|
|
/* 187 */ "drop_table_clause ::= exists_opt full_table_name",
|
|
|
|
|
/* 188 */ "specific_cols_opt ::=",
|
|
|
|
|
/* 189 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 190 */ "full_table_name ::= table_name",
|
|
|
|
|
/* 191 */ "full_table_name ::= db_name NK_DOT table_name",
|
|
|
|
|
/* 192 */ "column_def_list ::= column_def",
|
|
|
|
|
/* 193 */ "column_def_list ::= column_def_list NK_COMMA column_def",
|
|
|
|
|
/* 194 */ "column_def ::= column_name type_name",
|
|
|
|
|
/* 195 */ "type_name ::= BOOL",
|
|
|
|
|
/* 196 */ "type_name ::= TINYINT",
|
|
|
|
|
/* 197 */ "type_name ::= SMALLINT",
|
|
|
|
|
/* 198 */ "type_name ::= INT",
|
|
|
|
|
/* 199 */ "type_name ::= INTEGER",
|
|
|
|
|
/* 200 */ "type_name ::= BIGINT",
|
|
|
|
|
/* 201 */ "type_name ::= FLOAT",
|
|
|
|
|
/* 202 */ "type_name ::= DOUBLE",
|
|
|
|
|
/* 203 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 204 */ "type_name ::= TIMESTAMP",
|
|
|
|
|
/* 205 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 206 */ "type_name ::= TINYINT UNSIGNED",
|
|
|
|
|
/* 207 */ "type_name ::= SMALLINT UNSIGNED",
|
|
|
|
|
/* 208 */ "type_name ::= INT UNSIGNED",
|
|
|
|
|
/* 209 */ "type_name ::= BIGINT UNSIGNED",
|
|
|
|
|
/* 210 */ "type_name ::= JSON",
|
|
|
|
|
/* 211 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 212 */ "type_name ::= MEDIUMBLOB",
|
|
|
|
|
/* 213 */ "type_name ::= BLOB",
|
|
|
|
|
/* 214 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 215 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 216 */ "type_name ::= DECIMAL",
|
|
|
|
|
/* 217 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 218 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
|
|
|
/* 219 */ "tags_def_opt ::=",
|
|
|
|
|
/* 220 */ "tags_def_opt ::= tags_def",
|
|
|
|
|
/* 221 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP",
|
|
|
|
|
/* 222 */ "table_options ::=",
|
|
|
|
|
/* 223 */ "table_options ::= table_options COMMENT NK_STRING",
|
|
|
|
|
/* 224 */ "table_options ::= table_options MAX_DELAY duration_list",
|
|
|
|
|
/* 225 */ "table_options ::= table_options WATERMARK duration_list",
|
|
|
|
|
/* 226 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP",
|
|
|
|
|
/* 227 */ "table_options ::= table_options TTL NK_INTEGER",
|
|
|
|
|
/* 228 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 229 */ "table_options ::= table_options DELETE_MARK duration_list",
|
|
|
|
|
/* 230 */ "alter_table_options ::= alter_table_option",
|
|
|
|
|
/* 231 */ "alter_table_options ::= alter_table_options alter_table_option",
|
|
|
|
|
/* 232 */ "alter_table_option ::= COMMENT NK_STRING",
|
|
|
|
|
/* 233 */ "alter_table_option ::= TTL NK_INTEGER",
|
|
|
|
|
/* 234 */ "duration_list ::= duration_literal",
|
|
|
|
|
/* 235 */ "duration_list ::= duration_list NK_COMMA duration_literal",
|
|
|
|
|
/* 236 */ "rollup_func_list ::= rollup_func_name",
|
|
|
|
|
/* 237 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name",
|
|
|
|
|
/* 238 */ "rollup_func_name ::= function_name",
|
|
|
|
|
/* 239 */ "rollup_func_name ::= FIRST",
|
|
|
|
|
/* 240 */ "rollup_func_name ::= LAST",
|
|
|
|
|
/* 241 */ "col_name_list ::= col_name",
|
|
|
|
|
/* 242 */ "col_name_list ::= col_name_list NK_COMMA col_name",
|
|
|
|
|
/* 243 */ "col_name ::= column_name",
|
|
|
|
|
/* 244 */ "cmd ::= SHOW DNODES",
|
|
|
|
|
/* 245 */ "cmd ::= SHOW USERS",
|
|
|
|
|
/* 246 */ "cmd ::= SHOW USER PRIVILEGES",
|
|
|
|
|
/* 247 */ "cmd ::= SHOW db_kind_opt DATABASES",
|
|
|
|
|
/* 248 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt",
|
|
|
|
|
/* 249 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt",
|
|
|
|
|
/* 250 */ "cmd ::= SHOW db_name_cond_opt VGROUPS",
|
|
|
|
|
/* 251 */ "cmd ::= SHOW MNODES",
|
|
|
|
|
/* 252 */ "cmd ::= SHOW QNODES",
|
|
|
|
|
/* 253 */ "cmd ::= SHOW FUNCTIONS",
|
|
|
|
|
/* 254 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
|
|
|
/* 255 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
|
|
|
/* 256 */ "cmd ::= SHOW STREAMS",
|
|
|
|
|
/* 257 */ "cmd ::= SHOW ACCOUNTS",
|
|
|
|
|
/* 258 */ "cmd ::= SHOW APPS",
|
|
|
|
|
/* 259 */ "cmd ::= SHOW CONNECTIONS",
|
|
|
|
|
/* 260 */ "cmd ::= SHOW LICENCES",
|
|
|
|
|
/* 261 */ "cmd ::= SHOW GRANTS",
|
2024-01-18 07:23:38 +00:00
|
|
|
/* 262 */ "cmd ::= SHOW GRANTS FULL",
|
2024-01-31 05:44:00 +00:00
|
|
|
/* 263 */ "cmd ::= SHOW GRANTS LOGS",
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 264 */ "cmd ::= SHOW CLUSTER MACHINES",
|
|
|
|
|
/* 265 */ "cmd ::= SHOW CREATE DATABASE db_name",
|
|
|
|
|
/* 266 */ "cmd ::= SHOW CREATE TABLE full_table_name",
|
|
|
|
|
/* 267 */ "cmd ::= SHOW CREATE STABLE full_table_name",
|
|
|
|
|
/* 268 */ "cmd ::= SHOW QUERIES",
|
|
|
|
|
/* 269 */ "cmd ::= SHOW SCORES",
|
|
|
|
|
/* 270 */ "cmd ::= SHOW TOPICS",
|
|
|
|
|
/* 271 */ "cmd ::= SHOW VARIABLES",
|
|
|
|
|
/* 272 */ "cmd ::= SHOW CLUSTER VARIABLES",
|
|
|
|
|
/* 273 */ "cmd ::= SHOW LOCAL VARIABLES",
|
|
|
|
|
/* 274 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
|
|
|
|
|
/* 275 */ "cmd ::= SHOW BNODES",
|
|
|
|
|
/* 276 */ "cmd ::= SHOW SNODES",
|
|
|
|
|
/* 277 */ "cmd ::= SHOW CLUSTER",
|
|
|
|
|
/* 278 */ "cmd ::= SHOW TRANSACTIONS",
|
|
|
|
|
/* 279 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
|
|
|
|
|
/* 280 */ "cmd ::= SHOW CONSUMERS",
|
|
|
|
|
/* 281 */ "cmd ::= SHOW SUBSCRIPTIONS",
|
|
|
|
|
/* 282 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
|
|
|
|
|
/* 283 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
|
|
|
|
|
/* 284 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
|
|
|
|
|
/* 285 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
|
|
|
|
|
/* 286 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
|
|
|
|
|
/* 287 */ "cmd ::= SHOW VNODES",
|
|
|
|
|
/* 288 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
|
|
|
|
|
/* 289 */ "cmd ::= SHOW CLUSTER ALIVE",
|
2024-02-19 05:10:27 +00:00
|
|
|
/* 290 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt",
|
2024-01-18 09:49:11 +00:00
|
|
|
/* 291 */ "cmd ::= SHOW CREATE VIEW full_table_name",
|
|
|
|
|
/* 292 */ "cmd ::= SHOW COMPACTS",
|
|
|
|
|
/* 293 */ "cmd ::= SHOW COMPACT NK_INTEGER",
|
|
|
|
|
/* 294 */ "table_kind_db_name_cond_opt ::=",
|
|
|
|
|
/* 295 */ "table_kind_db_name_cond_opt ::= table_kind",
|
|
|
|
|
/* 296 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
|
|
|
|
|
/* 297 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
|
|
|
|
|
/* 298 */ "table_kind ::= NORMAL",
|
|
|
|
|
/* 299 */ "table_kind ::= CHILD",
|
|
|
|
|
/* 300 */ "db_name_cond_opt ::=",
|
|
|
|
|
/* 301 */ "db_name_cond_opt ::= db_name NK_DOT",
|
|
|
|
|
/* 302 */ "like_pattern_opt ::=",
|
|
|
|
|
/* 303 */ "like_pattern_opt ::= LIKE NK_STRING",
|
|
|
|
|
/* 304 */ "table_name_cond ::= table_name",
|
|
|
|
|
/* 305 */ "from_db_opt ::=",
|
|
|
|
|
/* 306 */ "from_db_opt ::= FROM db_name",
|
|
|
|
|
/* 307 */ "tag_list_opt ::=",
|
|
|
|
|
/* 308 */ "tag_list_opt ::= tag_item",
|
|
|
|
|
/* 309 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
|
|
|
|
|
/* 310 */ "tag_item ::= TBNAME",
|
|
|
|
|
/* 311 */ "tag_item ::= QTAGS",
|
|
|
|
|
/* 312 */ "tag_item ::= column_name",
|
|
|
|
|
/* 313 */ "tag_item ::= column_name column_alias",
|
|
|
|
|
/* 314 */ "tag_item ::= column_name AS column_alias",
|
|
|
|
|
/* 315 */ "db_kind_opt ::=",
|
|
|
|
|
/* 316 */ "db_kind_opt ::= USER",
|
|
|
|
|
/* 317 */ "db_kind_opt ::= SYSTEM",
|
|
|
|
|
/* 318 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
|
|
|
|
|
/* 319 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 320 */ "cmd ::= DROP INDEX exists_opt full_index_name",
|
|
|
|
|
/* 321 */ "full_index_name ::= index_name",
|
|
|
|
|
/* 322 */ "full_index_name ::= db_name NK_DOT index_name",
|
|
|
|
|
/* 323 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
|
|
|
/* 324 */ "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",
|
|
|
|
|
/* 325 */ "func_list ::= func",
|
|
|
|
|
/* 326 */ "func_list ::= func_list NK_COMMA func",
|
|
|
|
|
/* 327 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
|
|
|
|
|
/* 328 */ "sma_func_name ::= function_name",
|
|
|
|
|
/* 329 */ "sma_func_name ::= COUNT",
|
|
|
|
|
/* 330 */ "sma_func_name ::= FIRST",
|
|
|
|
|
/* 331 */ "sma_func_name ::= LAST",
|
|
|
|
|
/* 332 */ "sma_func_name ::= LAST_ROW",
|
|
|
|
|
/* 333 */ "sma_stream_opt ::=",
|
|
|
|
|
/* 334 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
|
|
|
|
|
/* 335 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
|
|
|
|
|
/* 336 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
|
|
|
|
|
/* 337 */ "with_meta ::= AS",
|
|
|
|
|
/* 338 */ "with_meta ::= WITH META AS",
|
|
|
|
|
/* 339 */ "with_meta ::= ONLY META AS",
|
|
|
|
|
/* 340 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
|
|
|
|
|
/* 341 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
|
|
|
|
|
/* 342 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
|
|
|
|
|
/* 343 */ "cmd ::= DROP TOPIC exists_opt topic_name",
|
|
|
|
|
/* 344 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
|
|
|
|
|
/* 345 */ "cmd ::= DESC full_table_name",
|
|
|
|
|
/* 346 */ "cmd ::= DESCRIBE full_table_name",
|
|
|
|
|
/* 347 */ "cmd ::= RESET QUERY CACHE",
|
|
|
|
|
/* 348 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
|
|
|
|
|
/* 349 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
|
|
|
|
|
/* 350 */ "analyze_opt ::=",
|
|
|
|
|
/* 351 */ "analyze_opt ::= ANALYZE",
|
|
|
|
|
/* 352 */ "explain_options ::=",
|
|
|
|
|
/* 353 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
|
|
|
|
|
/* 354 */ "explain_options ::= explain_options RATIO NK_FLOAT",
|
|
|
|
|
/* 355 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
|
|
|
|
|
/* 356 */ "cmd ::= DROP FUNCTION exists_opt function_name",
|
|
|
|
|
/* 357 */ "agg_func_opt ::=",
|
|
|
|
|
/* 358 */ "agg_func_opt ::= AGGREGATE",
|
|
|
|
|
/* 359 */ "bufsize_opt ::=",
|
|
|
|
|
/* 360 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
|
|
|
|
|
/* 361 */ "language_opt ::=",
|
|
|
|
|
/* 362 */ "language_opt ::= LANGUAGE NK_STRING",
|
|
|
|
|
/* 363 */ "or_replace_opt ::=",
|
|
|
|
|
/* 364 */ "or_replace_opt ::= OR REPLACE",
|
|
|
|
|
/* 365 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
|
|
|
|
|
/* 366 */ "cmd ::= DROP VIEW exists_opt full_view_name",
|
|
|
|
|
/* 367 */ "full_view_name ::= view_name",
|
|
|
|
|
/* 368 */ "full_view_name ::= db_name NK_DOT view_name",
|
|
|
|
|
/* 369 */ "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",
|
|
|
|
|
/* 370 */ "cmd ::= DROP STREAM exists_opt stream_name",
|
|
|
|
|
/* 371 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
|
|
|
|
|
/* 372 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
|
|
|
|
|
/* 373 */ "col_list_opt ::=",
|
|
|
|
|
/* 374 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 375 */ "tag_def_or_ref_opt ::=",
|
|
|
|
|
/* 376 */ "tag_def_or_ref_opt ::= tags_def",
|
|
|
|
|
/* 377 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 378 */ "stream_options ::=",
|
|
|
|
|
/* 379 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
|
|
|
|
|
/* 380 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
|
|
|
|
|
/* 381 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
|
|
|
|
|
/* 382 */ "stream_options ::= stream_options WATERMARK duration_literal",
|
|
|
|
|
/* 383 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
|
|
|
|
|
/* 384 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
|
|
|
|
|
/* 385 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
|
|
|
|
|
/* 386 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
|
|
|
|
|
/* 387 */ "subtable_opt ::=",
|
|
|
|
|
/* 388 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
|
|
|
|
|
/* 389 */ "ignore_opt ::=",
|
|
|
|
|
/* 390 */ "ignore_opt ::= IGNORE UNTREATED",
|
|
|
|
|
/* 391 */ "cmd ::= KILL CONNECTION NK_INTEGER",
|
|
|
|
|
/* 392 */ "cmd ::= KILL QUERY NK_STRING",
|
|
|
|
|
/* 393 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
|
|
|
|
|
/* 394 */ "cmd ::= KILL COMPACT NK_INTEGER",
|
|
|
|
|
/* 395 */ "cmd ::= BALANCE VGROUP",
|
|
|
|
|
/* 396 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
|
|
|
|
|
/* 397 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
|
|
|
|
|
/* 398 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
|
|
|
|
|
/* 399 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
|
|
|
|
|
/* 400 */ "on_vgroup_id ::=",
|
|
|
|
|
/* 401 */ "on_vgroup_id ::= ON NK_INTEGER",
|
|
|
|
|
/* 402 */ "dnode_list ::= DNODE NK_INTEGER",
|
|
|
|
|
/* 403 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
|
|
|
|
|
/* 404 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
|
|
|
|
|
/* 405 */ "cmd ::= query_or_subquery",
|
|
|
|
|
/* 406 */ "cmd ::= insert_query",
|
|
|
|
|
/* 407 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
|
|
|
|
|
/* 408 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
|
|
|
|
|
/* 409 */ "literal ::= NK_INTEGER",
|
|
|
|
|
/* 410 */ "literal ::= NK_FLOAT",
|
|
|
|
|
/* 411 */ "literal ::= NK_STRING",
|
|
|
|
|
/* 412 */ "literal ::= NK_BOOL",
|
|
|
|
|
/* 413 */ "literal ::= TIMESTAMP NK_STRING",
|
|
|
|
|
/* 414 */ "literal ::= duration_literal",
|
|
|
|
|
/* 415 */ "literal ::= NULL",
|
|
|
|
|
/* 416 */ "literal ::= NK_QUESTION",
|
|
|
|
|
/* 417 */ "duration_literal ::= NK_VARIABLE",
|
|
|
|
|
/* 418 */ "signed ::= NK_INTEGER",
|
|
|
|
|
/* 419 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
|
|
|
/* 420 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
|
|
|
/* 421 */ "signed ::= NK_FLOAT",
|
|
|
|
|
/* 422 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
|
|
|
/* 423 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
|
|
|
/* 424 */ "signed_literal ::= signed",
|
|
|
|
|
/* 425 */ "signed_literal ::= NK_STRING",
|
|
|
|
|
/* 426 */ "signed_literal ::= NK_BOOL",
|
|
|
|
|
/* 427 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
|
|
|
/* 428 */ "signed_literal ::= duration_literal",
|
|
|
|
|
/* 429 */ "signed_literal ::= NULL",
|
|
|
|
|
/* 430 */ "signed_literal ::= literal_func",
|
|
|
|
|
/* 431 */ "signed_literal ::= NK_QUESTION",
|
|
|
|
|
/* 432 */ "literal_list ::= signed_literal",
|
|
|
|
|
/* 433 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
|
|
|
/* 434 */ "db_name ::= NK_ID",
|
|
|
|
|
/* 435 */ "table_name ::= NK_ID",
|
|
|
|
|
/* 436 */ "column_name ::= NK_ID",
|
|
|
|
|
/* 437 */ "function_name ::= NK_ID",
|
|
|
|
|
/* 438 */ "view_name ::= NK_ID",
|
|
|
|
|
/* 439 */ "table_alias ::= NK_ID",
|
|
|
|
|
/* 440 */ "column_alias ::= NK_ID",
|
|
|
|
|
/* 441 */ "column_alias ::= NK_ALIAS",
|
|
|
|
|
/* 442 */ "user_name ::= NK_ID",
|
|
|
|
|
/* 443 */ "topic_name ::= NK_ID",
|
|
|
|
|
/* 444 */ "stream_name ::= NK_ID",
|
|
|
|
|
/* 445 */ "cgroup_name ::= NK_ID",
|
|
|
|
|
/* 446 */ "index_name ::= NK_ID",
|
|
|
|
|
/* 447 */ "expr_or_subquery ::= expression",
|
|
|
|
|
/* 448 */ "expression ::= literal",
|
|
|
|
|
/* 449 */ "expression ::= pseudo_column",
|
|
|
|
|
/* 450 */ "expression ::= column_reference",
|
|
|
|
|
/* 451 */ "expression ::= function_expression",
|
|
|
|
|
/* 452 */ "expression ::= case_when_expression",
|
|
|
|
|
/* 453 */ "expression ::= NK_LP expression NK_RP",
|
|
|
|
|
/* 454 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
|
|
|
/* 455 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
|
|
|
/* 456 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
|
|
|
/* 457 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
|
|
|
/* 458 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
|
|
|
/* 459 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
|
|
|
/* 460 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
|
|
|
/* 461 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
|
|
|
/* 462 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
|
|
|
/* 463 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
|
|
|
/* 464 */ "expression_list ::= expr_or_subquery",
|
|
|
|
|
/* 465 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
|
|
|
/* 466 */ "column_reference ::= column_name",
|
|
|
|
|
/* 467 */ "column_reference ::= table_name NK_DOT column_name",
|
|
|
|
|
/* 468 */ "column_reference ::= NK_ALIAS",
|
|
|
|
|
/* 469 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
|
|
|
|
|
/* 470 */ "pseudo_column ::= ROWTS",
|
|
|
|
|
/* 471 */ "pseudo_column ::= TBNAME",
|
|
|
|
|
/* 472 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
|
|
|
/* 473 */ "pseudo_column ::= QSTART",
|
|
|
|
|
/* 474 */ "pseudo_column ::= QEND",
|
|
|
|
|
/* 475 */ "pseudo_column ::= QDURATION",
|
|
|
|
|
/* 476 */ "pseudo_column ::= WSTART",
|
|
|
|
|
/* 477 */ "pseudo_column ::= WEND",
|
|
|
|
|
/* 478 */ "pseudo_column ::= WDURATION",
|
|
|
|
|
/* 479 */ "pseudo_column ::= IROWTS",
|
|
|
|
|
/* 480 */ "pseudo_column ::= ISFILLED",
|
|
|
|
|
/* 481 */ "pseudo_column ::= QTAGS",
|
|
|
|
|
/* 482 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
|
|
|
/* 483 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
|
|
|
/* 484 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
|
|
|
/* 485 */ "function_expression ::= literal_func",
|
|
|
|
|
/* 486 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
|
|
|
/* 487 */ "literal_func ::= NOW",
|
|
|
|
|
/* 488 */ "noarg_func ::= NOW",
|
|
|
|
|
/* 489 */ "noarg_func ::= TODAY",
|
|
|
|
|
/* 490 */ "noarg_func ::= TIMEZONE",
|
|
|
|
|
/* 491 */ "noarg_func ::= DATABASE",
|
|
|
|
|
/* 492 */ "noarg_func ::= CLIENT_VERSION",
|
|
|
|
|
/* 493 */ "noarg_func ::= SERVER_VERSION",
|
|
|
|
|
/* 494 */ "noarg_func ::= SERVER_STATUS",
|
|
|
|
|
/* 495 */ "noarg_func ::= CURRENT_USER",
|
|
|
|
|
/* 496 */ "noarg_func ::= USER",
|
|
|
|
|
/* 497 */ "star_func ::= COUNT",
|
|
|
|
|
/* 498 */ "star_func ::= FIRST",
|
|
|
|
|
/* 499 */ "star_func ::= LAST",
|
|
|
|
|
/* 500 */ "star_func ::= LAST_ROW",
|
|
|
|
|
/* 501 */ "star_func_para_list ::= NK_STAR",
|
|
|
|
|
/* 502 */ "star_func_para_list ::= other_para_list",
|
|
|
|
|
/* 503 */ "other_para_list ::= star_func_para",
|
|
|
|
|
/* 504 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
|
|
|
/* 505 */ "star_func_para ::= expr_or_subquery",
|
|
|
|
|
/* 506 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
|
|
|
/* 507 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
|
|
|
/* 508 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
|
|
|
/* 509 */ "when_then_list ::= when_then_expr",
|
|
|
|
|
/* 510 */ "when_then_list ::= when_then_list when_then_expr",
|
|
|
|
|
/* 511 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
|
|
|
/* 512 */ "case_when_else_opt ::=",
|
|
|
|
|
/* 513 */ "case_when_else_opt ::= ELSE common_expression",
|
|
|
|
|
/* 514 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
|
|
|
/* 515 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
|
|
|
/* 516 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
|
|
|
/* 517 */ "predicate ::= expr_or_subquery IS NULL",
|
|
|
|
|
/* 518 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
|
|
|
/* 519 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
|
|
|
/* 520 */ "compare_op ::= NK_LT",
|
|
|
|
|
/* 521 */ "compare_op ::= NK_GT",
|
|
|
|
|
/* 522 */ "compare_op ::= NK_LE",
|
|
|
|
|
/* 523 */ "compare_op ::= NK_GE",
|
|
|
|
|
/* 524 */ "compare_op ::= NK_NE",
|
|
|
|
|
/* 525 */ "compare_op ::= NK_EQ",
|
|
|
|
|
/* 526 */ "compare_op ::= LIKE",
|
|
|
|
|
/* 527 */ "compare_op ::= NOT LIKE",
|
|
|
|
|
/* 528 */ "compare_op ::= MATCH",
|
|
|
|
|
/* 529 */ "compare_op ::= NMATCH",
|
|
|
|
|
/* 530 */ "compare_op ::= CONTAINS",
|
|
|
|
|
/* 531 */ "in_op ::= IN",
|
|
|
|
|
/* 532 */ "in_op ::= NOT IN",
|
|
|
|
|
/* 533 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
|
|
|
/* 534 */ "boolean_value_expression ::= boolean_primary",
|
|
|
|
|
/* 535 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
|
|
|
/* 536 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
|
|
|
/* 537 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
|
|
|
/* 538 */ "boolean_primary ::= predicate",
|
|
|
|
|
/* 539 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
|
|
|
/* 540 */ "common_expression ::= expr_or_subquery",
|
|
|
|
|
/* 541 */ "common_expression ::= boolean_value_expression",
|
|
|
|
|
/* 542 */ "from_clause_opt ::=",
|
|
|
|
|
/* 543 */ "from_clause_opt ::= FROM table_reference_list",
|
|
|
|
|
/* 544 */ "table_reference_list ::= table_reference",
|
|
|
|
|
/* 545 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
|
|
|
/* 546 */ "table_reference ::= table_primary",
|
|
|
|
|
/* 547 */ "table_reference ::= joined_table",
|
|
|
|
|
/* 548 */ "table_primary ::= table_name alias_opt",
|
|
|
|
|
/* 549 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
|
|
|
/* 550 */ "table_primary ::= subquery alias_opt",
|
|
|
|
|
/* 551 */ "table_primary ::= parenthesized_joined_table",
|
|
|
|
|
/* 552 */ "alias_opt ::=",
|
|
|
|
|
/* 553 */ "alias_opt ::= table_alias",
|
|
|
|
|
/* 554 */ "alias_opt ::= AS table_alias",
|
|
|
|
|
/* 555 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
|
|
|
/* 556 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
|
|
|
/* 557 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
|
|
|
|
|
/* 558 */ "join_type ::=",
|
|
|
|
|
/* 559 */ "join_type ::= INNER",
|
|
|
|
|
/* 560 */ "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",
|
|
|
|
|
/* 561 */ "hint_list ::=",
|
|
|
|
|
/* 562 */ "hint_list ::= NK_HINT",
|
|
|
|
|
/* 563 */ "tag_mode_opt ::=",
|
|
|
|
|
/* 564 */ "tag_mode_opt ::= TAGS",
|
|
|
|
|
/* 565 */ "set_quantifier_opt ::=",
|
|
|
|
|
/* 566 */ "set_quantifier_opt ::= DISTINCT",
|
|
|
|
|
/* 567 */ "set_quantifier_opt ::= ALL",
|
|
|
|
|
/* 568 */ "select_list ::= select_item",
|
|
|
|
|
/* 569 */ "select_list ::= select_list NK_COMMA select_item",
|
|
|
|
|
/* 570 */ "select_item ::= NK_STAR",
|
|
|
|
|
/* 571 */ "select_item ::= common_expression",
|
|
|
|
|
/* 572 */ "select_item ::= common_expression column_alias",
|
|
|
|
|
/* 573 */ "select_item ::= common_expression AS column_alias",
|
|
|
|
|
/* 574 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
|
|
|
/* 575 */ "where_clause_opt ::=",
|
|
|
|
|
/* 576 */ "where_clause_opt ::= WHERE search_condition",
|
|
|
|
|
/* 577 */ "partition_by_clause_opt ::=",
|
|
|
|
|
/* 578 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
|
|
|
/* 579 */ "partition_list ::= partition_item",
|
|
|
|
|
/* 580 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
|
|
|
/* 581 */ "partition_item ::= expr_or_subquery",
|
|
|
|
|
/* 582 */ "partition_item ::= expr_or_subquery column_alias",
|
|
|
|
|
/* 583 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
|
|
|
/* 584 */ "twindow_clause_opt ::=",
|
|
|
|
|
/* 585 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
|
|
|
|
|
/* 586 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
|
|
|
/* 587 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
|
|
|
/* 588 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
|
|
|
/* 589 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
2024-02-04 08:04:23 +00:00
|
|
|
/* 590 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 591 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
|
|
|
/* 592 */ "sliding_opt ::=",
|
|
|
|
|
/* 593 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
|
|
|
|
|
/* 594 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
|
|
|
|
|
/* 595 */ "interval_sliding_duration_literal ::= NK_STRING",
|
|
|
|
|
/* 596 */ "interval_sliding_duration_literal ::= NK_INTEGER",
|
|
|
|
|
/* 597 */ "fill_opt ::=",
|
|
|
|
|
/* 598 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
|
|
|
/* 599 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
|
|
|
/* 600 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
|
|
|
/* 601 */ "fill_mode ::= NONE",
|
|
|
|
|
/* 602 */ "fill_mode ::= PREV",
|
|
|
|
|
/* 603 */ "fill_mode ::= NULL",
|
|
|
|
|
/* 604 */ "fill_mode ::= NULL_F",
|
|
|
|
|
/* 605 */ "fill_mode ::= LINEAR",
|
|
|
|
|
/* 606 */ "fill_mode ::= NEXT",
|
|
|
|
|
/* 607 */ "group_by_clause_opt ::=",
|
|
|
|
|
/* 608 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
|
|
|
/* 609 */ "group_by_list ::= expr_or_subquery",
|
|
|
|
|
/* 610 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
|
|
|
/* 611 */ "having_clause_opt ::=",
|
|
|
|
|
/* 612 */ "having_clause_opt ::= HAVING search_condition",
|
|
|
|
|
/* 613 */ "range_opt ::=",
|
|
|
|
|
/* 614 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
|
|
|
/* 615 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
|
|
|
/* 616 */ "every_opt ::=",
|
|
|
|
|
/* 617 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
|
|
|
/* 618 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
|
|
|
/* 619 */ "query_simple ::= query_specification",
|
|
|
|
|
/* 620 */ "query_simple ::= union_query_expression",
|
|
|
|
|
/* 621 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
|
|
|
/* 622 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
|
|
|
/* 623 */ "query_simple_or_subquery ::= query_simple",
|
|
|
|
|
/* 624 */ "query_simple_or_subquery ::= subquery",
|
|
|
|
|
/* 625 */ "query_or_subquery ::= query_expression",
|
|
|
|
|
/* 626 */ "query_or_subquery ::= subquery",
|
|
|
|
|
/* 627 */ "order_by_clause_opt ::=",
|
|
|
|
|
/* 628 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
|
|
|
/* 629 */ "slimit_clause_opt ::=",
|
|
|
|
|
/* 630 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
|
|
|
/* 631 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
|
|
|
/* 632 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
|
|
|
/* 633 */ "limit_clause_opt ::=",
|
|
|
|
|
/* 634 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
|
|
|
/* 635 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
|
|
|
/* 636 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
|
|
|
/* 637 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
|
|
|
/* 638 */ "subquery ::= NK_LP subquery NK_RP",
|
|
|
|
|
/* 639 */ "search_condition ::= common_expression",
|
|
|
|
|
/* 640 */ "sort_specification_list ::= sort_specification",
|
|
|
|
|
/* 641 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
|
|
|
/* 642 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
|
|
|
/* 643 */ "ordering_specification_opt ::=",
|
|
|
|
|
/* 644 */ "ordering_specification_opt ::= ASC",
|
|
|
|
|
/* 645 */ "ordering_specification_opt ::= DESC",
|
|
|
|
|
/* 646 */ "null_ordering_opt ::=",
|
|
|
|
|
/* 647 */ "null_ordering_opt ::= NULLS FIRST",
|
|
|
|
|
/* 648 */ "null_ordering_opt ::= NULLS LAST",
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
#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]));
|
2022-01-23 12:34:16 +00:00
|
|
|
if( pNew ) pNew[0] = p->yystk0;
|
|
|
|
|
}else{
|
2022-03-28 09:08:48 +00:00
|
|
|
pNew = realloc(p->yystack, newSize*sizeof(pNew[0]));
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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){
|
2022-01-23 12:34:16 +00:00
|
|
|
yyParser *yypParser = (yyParser*)yypRawParser;
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseCTX_STORE
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
/*
|
|
|
|
|
** 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-01-23 12:34:16 +00:00
|
|
|
*/
|
2022-03-10 07:36:06 +00:00
|
|
|
void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){
|
2022-01-23 12:34:16 +00:00
|
|
|
yyParser *yypParser;
|
|
|
|
|
yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) );
|
|
|
|
|
if( yypParser ){
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseCTX_STORE
|
|
|
|
|
ParseInit(yypParser ParseCTX_PARAM);
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
return (void*)yypParser;
|
|
|
|
|
}
|
2022-03-10 07:36:06 +00:00
|
|
|
#endif /* Parse_ENGINEALWAYSONSTACK */
|
2022-01-23 12:34:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 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
|
2022-01-23 12:34:16 +00:00
|
|
|
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 */
|
2024-02-04 08:04:23 +00:00
|
|
|
case 351: /* cmd */
|
|
|
|
|
case 354: /* literal */
|
|
|
|
|
case 363: /* with_opt */
|
|
|
|
|
case 369: /* search_condition */
|
|
|
|
|
case 374: /* db_options */
|
|
|
|
|
case 376: /* alter_db_options */
|
|
|
|
|
case 378: /* start_opt */
|
|
|
|
|
case 379: /* end_opt */
|
|
|
|
|
case 383: /* signed */
|
|
|
|
|
case 385: /* retention */
|
|
|
|
|
case 386: /* full_table_name */
|
|
|
|
|
case 389: /* table_options */
|
|
|
|
|
case 393: /* alter_table_clause */
|
|
|
|
|
case 394: /* alter_table_options */
|
|
|
|
|
case 397: /* signed_literal */
|
|
|
|
|
case 398: /* create_subtable_clause */
|
|
|
|
|
case 401: /* drop_table_clause */
|
|
|
|
|
case 403: /* column_def */
|
|
|
|
|
case 407: /* duration_literal */
|
|
|
|
|
case 408: /* rollup_func_name */
|
|
|
|
|
case 410: /* col_name */
|
|
|
|
|
case 413: /* like_pattern_opt */
|
|
|
|
|
case 414: /* db_name_cond_opt */
|
|
|
|
|
case 415: /* table_name_cond */
|
|
|
|
|
case 416: /* from_db_opt */
|
|
|
|
|
case 419: /* tag_item */
|
|
|
|
|
case 421: /* index_options */
|
|
|
|
|
case 422: /* full_index_name */
|
|
|
|
|
case 425: /* sliding_opt */
|
|
|
|
|
case 426: /* sma_stream_opt */
|
|
|
|
|
case 427: /* func */
|
|
|
|
|
case 430: /* query_or_subquery */
|
|
|
|
|
case 431: /* where_clause_opt */
|
|
|
|
|
case 434: /* explain_options */
|
|
|
|
|
case 435: /* insert_query */
|
|
|
|
|
case 440: /* full_view_name */
|
|
|
|
|
case 443: /* stream_options */
|
|
|
|
|
case 446: /* subtable_opt */
|
|
|
|
|
case 448: /* expression */
|
|
|
|
|
case 451: /* literal_func */
|
|
|
|
|
case 454: /* expr_or_subquery */
|
|
|
|
|
case 455: /* pseudo_column */
|
|
|
|
|
case 456: /* column_reference */
|
|
|
|
|
case 457: /* function_expression */
|
|
|
|
|
case 458: /* case_when_expression */
|
|
|
|
|
case 463: /* star_func_para */
|
|
|
|
|
case 465: /* case_when_else_opt */
|
|
|
|
|
case 466: /* common_expression */
|
|
|
|
|
case 467: /* when_then_expr */
|
|
|
|
|
case 468: /* predicate */
|
|
|
|
|
case 471: /* in_predicate_value */
|
|
|
|
|
case 472: /* boolean_value_expression */
|
|
|
|
|
case 473: /* boolean_primary */
|
|
|
|
|
case 474: /* from_clause_opt */
|
|
|
|
|
case 475: /* table_reference_list */
|
|
|
|
|
case 476: /* table_reference */
|
|
|
|
|
case 477: /* table_primary */
|
|
|
|
|
case 478: /* joined_table */
|
|
|
|
|
case 480: /* subquery */
|
|
|
|
|
case 481: /* parenthesized_joined_table */
|
|
|
|
|
case 483: /* query_specification */
|
|
|
|
|
case 489: /* range_opt */
|
|
|
|
|
case 490: /* every_opt */
|
|
|
|
|
case 491: /* fill_opt */
|
|
|
|
|
case 492: /* twindow_clause_opt */
|
|
|
|
|
case 494: /* having_clause_opt */
|
|
|
|
|
case 495: /* select_item */
|
|
|
|
|
case 497: /* partition_item */
|
|
|
|
|
case 498: /* interval_sliding_duration_literal */
|
|
|
|
|
case 501: /* query_expression */
|
|
|
|
|
case 502: /* query_simple */
|
|
|
|
|
case 504: /* slimit_clause_opt */
|
|
|
|
|
case 505: /* limit_clause_opt */
|
|
|
|
|
case 506: /* union_query_expression */
|
|
|
|
|
case 507: /* query_simple_or_subquery */
|
|
|
|
|
case 509: /* sort_specification */
|
2022-06-22 08:35:14 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
nodesDestroyNode((yypminor->yy360));
|
2022-06-22 08:35:14 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 352: /* account_options */
|
|
|
|
|
case 353: /* alter_account_options */
|
|
|
|
|
case 355: /* alter_account_option */
|
|
|
|
|
case 377: /* speed_opt */
|
|
|
|
|
case 429: /* with_meta */
|
|
|
|
|
case 438: /* bufsize_opt */
|
2022-05-07 09:37:17 +00:00
|
|
|
{
|
2022-06-22 08:35:14 +00:00
|
|
|
|
2022-05-07 09:37:17 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 356: /* ip_range_list */
|
|
|
|
|
case 357: /* white_list */
|
|
|
|
|
case 358: /* white_list_opt */
|
|
|
|
|
case 380: /* integer_list */
|
|
|
|
|
case 381: /* variable_list */
|
|
|
|
|
case 382: /* retention_list */
|
|
|
|
|
case 387: /* column_def_list */
|
|
|
|
|
case 388: /* tags_def_opt */
|
|
|
|
|
case 390: /* multi_create_clause */
|
|
|
|
|
case 391: /* tags_def */
|
|
|
|
|
case 392: /* multi_drop_clause */
|
|
|
|
|
case 399: /* specific_cols_opt */
|
|
|
|
|
case 400: /* expression_list */
|
|
|
|
|
case 402: /* col_name_list */
|
|
|
|
|
case 404: /* duration_list */
|
|
|
|
|
case 405: /* rollup_func_list */
|
|
|
|
|
case 417: /* tag_list_opt */
|
|
|
|
|
case 424: /* func_list */
|
|
|
|
|
case 444: /* col_list_opt */
|
|
|
|
|
case 445: /* tag_def_or_ref_opt */
|
|
|
|
|
case 450: /* dnode_list */
|
|
|
|
|
case 452: /* literal_list */
|
|
|
|
|
case 460: /* star_func_para_list */
|
|
|
|
|
case 462: /* other_para_list */
|
|
|
|
|
case 464: /* when_then_list */
|
|
|
|
|
case 484: /* hint_list */
|
|
|
|
|
case 487: /* select_list */
|
|
|
|
|
case 488: /* partition_by_clause_opt */
|
|
|
|
|
case 493: /* group_by_clause_opt */
|
|
|
|
|
case 496: /* partition_list */
|
|
|
|
|
case 500: /* group_by_list */
|
|
|
|
|
case 503: /* order_by_clause_opt */
|
|
|
|
|
case 508: /* sort_specification_list */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
nodesDestroyList((yypminor->yy536));
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 359: /* user_name */
|
|
|
|
|
case 366: /* db_name */
|
|
|
|
|
case 367: /* table_name */
|
|
|
|
|
case 368: /* topic_name */
|
|
|
|
|
case 370: /* dnode_endpoint */
|
|
|
|
|
case 395: /* column_name */
|
|
|
|
|
case 409: /* function_name */
|
|
|
|
|
case 420: /* column_alias */
|
|
|
|
|
case 423: /* index_name */
|
|
|
|
|
case 428: /* sma_func_name */
|
|
|
|
|
case 432: /* cgroup_name */
|
|
|
|
|
case 439: /* language_opt */
|
|
|
|
|
case 441: /* view_name */
|
|
|
|
|
case 442: /* stream_name */
|
|
|
|
|
case 449: /* on_vgroup_id */
|
|
|
|
|
case 453: /* table_alias */
|
|
|
|
|
case 459: /* star_func */
|
|
|
|
|
case 461: /* noarg_func */
|
|
|
|
|
case 479: /* alias_opt */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-03-01 02:13:22 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 360: /* sysinfo_opt */
|
2023-03-28 10:43:58 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 361: /* privileges */
|
|
|
|
|
case 364: /* priv_type_list */
|
|
|
|
|
case 365: /* priv_type */
|
2022-03-01 02:13:22 +00:00
|
|
|
{
|
2022-03-03 12:25:16 +00:00
|
|
|
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 362: /* priv_level */
|
2022-03-03 12:25:16 +00:00
|
|
|
{
|
2022-03-16 11:28:40 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 371: /* force_opt */
|
|
|
|
|
case 372: /* unsafe_opt */
|
|
|
|
|
case 373: /* not_exists_opt */
|
|
|
|
|
case 375: /* exists_opt */
|
|
|
|
|
case 433: /* analyze_opt */
|
|
|
|
|
case 436: /* or_replace_opt */
|
|
|
|
|
case 437: /* agg_func_opt */
|
|
|
|
|
case 447: /* ignore_opt */
|
|
|
|
|
case 485: /* set_quantifier_opt */
|
|
|
|
|
case 486: /* tag_mode_opt */
|
2022-03-16 11:28:40 +00:00
|
|
|
{
|
2023-08-24 07:54:10 +00:00
|
|
|
|
2022-03-03 12:25:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 384: /* alter_db_option */
|
|
|
|
|
case 406: /* alter_table_option */
|
2022-03-16 11:28:40 +00:00
|
|
|
{
|
2022-03-31 11:38:17 +00:00
|
|
|
|
2022-03-16 11:28:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 396: /* type_name */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 411: /* db_kind_opt */
|
|
|
|
|
case 418: /* table_kind */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 412: /* table_kind_db_name_cond_opt */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-27 06:32:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 469: /* compare_op */
|
|
|
|
|
case 470: /* in_op */
|
2022-01-27 06:32:40 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-27 06:32:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 482: /* join_type */
|
2022-01-27 16:28:13 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-27 16:28:13 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 499: /* fill_mode */
|
2023-09-19 08:14:17 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-27 16:28:13 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 510: /* ordering_specification_opt */
|
2022-01-27 06:32:40 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2023-09-19 08:14:17 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 511: /* null_ordering_opt */
|
2022-01-27 06:32:40 +00:00
|
|
|
{
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
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){
|
2022-01-23 12:34:16 +00:00
|
|
|
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);
|
2022-01-23 12:34:16 +00:00
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-10 07:36:06 +00:00
|
|
|
#ifndef Parse_ENGINEALWAYSONSTACK
|
2022-01-23 12:34:16 +00:00
|
|
|
/*
|
|
|
|
|
** 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(
|
2022-01-23 12:34:16 +00:00
|
|
|
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);
|
2022-01-23 12:34:16 +00:00
|
|
|
(*freeProc)(p);
|
|
|
|
|
}
|
2022-03-10 07:36:06 +00:00
|
|
|
#endif /* Parse_ENGINEALWAYSONSTACK */
|
2022-01-23 12:34:16 +00:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** Return the peak depth of the stack for a parser.
|
|
|
|
|
*/
|
|
|
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
2022-03-10 07:36:06 +00:00
|
|
|
int ParseStackPeak(void *p){
|
2022-01-23 12:34:16 +00:00
|
|
|
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){
|
2022-01-23 12:34:16 +00:00
|
|
|
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 );
|
2022-01-23 12:34:16 +00:00
|
|
|
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 ){
|
2022-01-23 12:34:16 +00:00
|
|
|
#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 ){
|
2022-01-23 12:34:16 +00:00
|
|
|
#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 ){
|
2022-01-23 12:34:16 +00:00
|
|
|
#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-16 03:41:02 +00:00
|
|
|
assert( i>=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) );
|
2022-01-23 12:34:16 +00:00
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** 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 */
|
2022-01-23 12:34:16 +00:00
|
|
|
){
|
|
|
|
|
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[] = {
|
2024-02-04 08:04:23 +00:00
|
|
|
351, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
|
|
|
351, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
|
|
|
352, /* (2) account_options ::= */
|
|
|
|
|
352, /* (3) account_options ::= account_options PPS literal */
|
|
|
|
|
352, /* (4) account_options ::= account_options TSERIES literal */
|
|
|
|
|
352, /* (5) account_options ::= account_options STORAGE literal */
|
|
|
|
|
352, /* (6) account_options ::= account_options STREAMS literal */
|
|
|
|
|
352, /* (7) account_options ::= account_options QTIME literal */
|
|
|
|
|
352, /* (8) account_options ::= account_options DBS literal */
|
|
|
|
|
352, /* (9) account_options ::= account_options USERS literal */
|
|
|
|
|
352, /* (10) account_options ::= account_options CONNS literal */
|
|
|
|
|
352, /* (11) account_options ::= account_options STATE literal */
|
|
|
|
|
353, /* (12) alter_account_options ::= alter_account_option */
|
|
|
|
|
353, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
|
|
|
355, /* (14) alter_account_option ::= PASS literal */
|
|
|
|
|
355, /* (15) alter_account_option ::= PPS literal */
|
|
|
|
|
355, /* (16) alter_account_option ::= TSERIES literal */
|
|
|
|
|
355, /* (17) alter_account_option ::= STORAGE literal */
|
|
|
|
|
355, /* (18) alter_account_option ::= STREAMS literal */
|
|
|
|
|
355, /* (19) alter_account_option ::= QTIME literal */
|
|
|
|
|
355, /* (20) alter_account_option ::= DBS literal */
|
|
|
|
|
355, /* (21) alter_account_option ::= USERS literal */
|
|
|
|
|
355, /* (22) alter_account_option ::= CONNS literal */
|
|
|
|
|
355, /* (23) alter_account_option ::= STATE literal */
|
|
|
|
|
356, /* (24) ip_range_list ::= NK_STRING */
|
|
|
|
|
356, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
|
|
|
357, /* (26) white_list ::= HOST ip_range_list */
|
|
|
|
|
358, /* (27) white_list_opt ::= */
|
|
|
|
|
358, /* (28) white_list_opt ::= white_list */
|
|
|
|
|
351, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
|
|
|
351, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
|
|
|
351, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
|
|
|
351, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
|
|
|
351, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
|
|
|
351, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
|
|
|
351, /* (35) cmd ::= DROP USER user_name */
|
|
|
|
|
360, /* (36) sysinfo_opt ::= */
|
|
|
|
|
360, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
|
|
|
351, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
|
|
|
351, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
|
|
|
361, /* (40) privileges ::= ALL */
|
|
|
|
|
361, /* (41) privileges ::= priv_type_list */
|
|
|
|
|
361, /* (42) privileges ::= SUBSCRIBE */
|
|
|
|
|
364, /* (43) priv_type_list ::= priv_type */
|
|
|
|
|
364, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
|
|
|
365, /* (45) priv_type ::= READ */
|
|
|
|
|
365, /* (46) priv_type ::= WRITE */
|
|
|
|
|
365, /* (47) priv_type ::= ALTER */
|
|
|
|
|
362, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
|
|
|
362, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
|
|
|
|
|
362, /* (50) priv_level ::= db_name NK_DOT table_name */
|
|
|
|
|
362, /* (51) priv_level ::= topic_name */
|
|
|
|
|
363, /* (52) with_opt ::= */
|
|
|
|
|
363, /* (53) with_opt ::= WITH search_condition */
|
|
|
|
|
351, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
|
|
|
|
|
351, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
|
|
|
351, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
|
|
|
351, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
|
|
|
351, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
|
|
|
351, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
|
|
|
351, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
|
|
|
351, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
|
|
|
351, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
|
|
|
351, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
|
|
|
351, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
|
|
|
370, /* (65) dnode_endpoint ::= NK_STRING */
|
|
|
|
|
370, /* (66) dnode_endpoint ::= NK_ID */
|
|
|
|
|
370, /* (67) dnode_endpoint ::= NK_IPTOKEN */
|
|
|
|
|
371, /* (68) force_opt ::= */
|
|
|
|
|
371, /* (69) force_opt ::= FORCE */
|
|
|
|
|
372, /* (70) unsafe_opt ::= UNSAFE */
|
|
|
|
|
351, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
|
|
|
|
|
351, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
|
|
|
351, /* (73) cmd ::= ALTER LOCAL NK_STRING */
|
|
|
|
|
351, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
|
|
|
351, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
|
|
|
351, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
|
|
|
|
|
351, /* (88) cmd ::= USE db_name */
|
|
|
|
|
351, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
|
|
|
351, /* (90) cmd ::= FLUSH DATABASE db_name */
|
|
|
|
|
351, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
|
|
|
351, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
|
|
|
373, /* (93) not_exists_opt ::= IF NOT EXISTS */
|
|
|
|
|
373, /* (94) not_exists_opt ::= */
|
|
|
|
|
375, /* (95) exists_opt ::= IF EXISTS */
|
|
|
|
|
375, /* (96) exists_opt ::= */
|
|
|
|
|
374, /* (97) db_options ::= */
|
|
|
|
|
374, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
|
|
|
|
|
374, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
|
|
|
374, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
|
|
|
374, /* (101) db_options ::= db_options COMP NK_INTEGER */
|
|
|
|
|
374, /* (102) db_options ::= db_options DURATION NK_INTEGER */
|
|
|
|
|
374, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
|
|
|
|
|
374, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
|
|
|
374, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
|
|
|
|
|
374, /* (106) db_options ::= db_options KEEP integer_list */
|
|
|
|
|
374, /* (107) db_options ::= db_options KEEP variable_list */
|
|
|
|
|
374, /* (108) db_options ::= db_options PAGES NK_INTEGER */
|
|
|
|
|
374, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
|
|
|
374, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
|
|
|
374, /* (111) db_options ::= db_options PRECISION NK_STRING */
|
|
|
|
|
374, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
|
|
|
|
|
374, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
|
|
|
374, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
|
|
|
374, /* (115) db_options ::= db_options RETENTIONS retention_list */
|
|
|
|
|
374, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
|
|
|
374, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
|
|
|
374, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
|
|
|
374, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
|
|
|
374, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
|
|
|
374, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
|
|
|
374, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
|
|
|
374, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
|
|
|
374, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
|
|
|
374, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
|
|
|
374, /* (126) db_options ::= db_options TABLE_PREFIX signed */
|
|
|
|
|
374, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
|
|
|
|
|
374, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
|
|
|
376, /* (129) alter_db_options ::= alter_db_option */
|
|
|
|
|
376, /* (130) alter_db_options ::= alter_db_options alter_db_option */
|
|
|
|
|
384, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
|
|
|
|
|
384, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
|
|
|
384, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
|
|
|
384, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
|
|
|
384, /* (135) alter_db_option ::= KEEP integer_list */
|
|
|
|
|
384, /* (136) alter_db_option ::= KEEP variable_list */
|
|
|
|
|
384, /* (137) alter_db_option ::= PAGES NK_INTEGER */
|
|
|
|
|
384, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
|
|
|
|
|
384, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
|
|
|
384, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
|
|
|
384, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
|
|
|
|
|
384, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
|
|
|
384, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
|
|
|
384, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
|
|
|
384, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
|
|
|
384, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
|
|
|
380, /* (147) integer_list ::= NK_INTEGER */
|
|
|
|
|
380, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
|
|
|
381, /* (149) variable_list ::= NK_VARIABLE */
|
|
|
|
|
381, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
|
|
|
382, /* (151) retention_list ::= retention */
|
|
|
|
|
382, /* (152) retention_list ::= retention_list NK_COMMA retention */
|
|
|
|
|
385, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
|
|
|
385, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
|
|
|
377, /* (155) speed_opt ::= */
|
|
|
|
|
377, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
|
|
|
378, /* (157) start_opt ::= */
|
|
|
|
|
378, /* (158) start_opt ::= START WITH NK_INTEGER */
|
|
|
|
|
378, /* (159) start_opt ::= START WITH NK_STRING */
|
|
|
|
|
378, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
|
|
|
379, /* (161) end_opt ::= */
|
|
|
|
|
379, /* (162) end_opt ::= END WITH NK_INTEGER */
|
|
|
|
|
379, /* (163) end_opt ::= END WITH NK_STRING */
|
|
|
|
|
379, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
|
|
|
351, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
|
|
|
351, /* (166) cmd ::= CREATE TABLE multi_create_clause */
|
|
|
|
|
351, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
|
|
|
351, /* (168) cmd ::= DROP TABLE multi_drop_clause */
|
|
|
|
|
351, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
|
|
|
351, /* (170) cmd ::= ALTER TABLE alter_table_clause */
|
|
|
|
|
351, /* (171) cmd ::= ALTER STABLE alter_table_clause */
|
|
|
|
|
393, /* (172) alter_table_clause ::= full_table_name alter_table_options */
|
|
|
|
|
393, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
|
|
|
393, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
|
|
|
393, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
|
|
|
393, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
|
|
|
393, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
|
|
|
393, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
|
|
|
393, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
|
|
|
393, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
|
|
|
393, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
|
|
|
390, /* (182) multi_create_clause ::= create_subtable_clause */
|
|
|
|
|
390, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
|
|
|
398, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
|
|
|
392, /* (185) multi_drop_clause ::= drop_table_clause */
|
|
|
|
|
392, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
|
|
|
401, /* (187) drop_table_clause ::= exists_opt full_table_name */
|
|
|
|
|
399, /* (188) specific_cols_opt ::= */
|
|
|
|
|
399, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
386, /* (190) full_table_name ::= table_name */
|
|
|
|
|
386, /* (191) full_table_name ::= db_name NK_DOT table_name */
|
|
|
|
|
387, /* (192) column_def_list ::= column_def */
|
|
|
|
|
387, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
|
|
|
403, /* (194) column_def ::= column_name type_name */
|
|
|
|
|
396, /* (195) type_name ::= BOOL */
|
|
|
|
|
396, /* (196) type_name ::= TINYINT */
|
|
|
|
|
396, /* (197) type_name ::= SMALLINT */
|
|
|
|
|
396, /* (198) type_name ::= INT */
|
|
|
|
|
396, /* (199) type_name ::= INTEGER */
|
|
|
|
|
396, /* (200) type_name ::= BIGINT */
|
|
|
|
|
396, /* (201) type_name ::= FLOAT */
|
|
|
|
|
396, /* (202) type_name ::= DOUBLE */
|
|
|
|
|
396, /* (203) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
396, /* (204) type_name ::= TIMESTAMP */
|
|
|
|
|
396, /* (205) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
396, /* (206) type_name ::= TINYINT UNSIGNED */
|
|
|
|
|
396, /* (207) type_name ::= SMALLINT UNSIGNED */
|
|
|
|
|
396, /* (208) type_name ::= INT UNSIGNED */
|
|
|
|
|
396, /* (209) type_name ::= BIGINT UNSIGNED */
|
|
|
|
|
396, /* (210) type_name ::= JSON */
|
|
|
|
|
396, /* (211) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
396, /* (212) type_name ::= MEDIUMBLOB */
|
|
|
|
|
396, /* (213) type_name ::= BLOB */
|
|
|
|
|
396, /* (214) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
396, /* (215) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
396, /* (216) type_name ::= DECIMAL */
|
|
|
|
|
396, /* (217) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
396, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
388, /* (219) tags_def_opt ::= */
|
|
|
|
|
388, /* (220) tags_def_opt ::= tags_def */
|
|
|
|
|
391, /* (221) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
|
|
|
389, /* (222) table_options ::= */
|
|
|
|
|
389, /* (223) table_options ::= table_options COMMENT NK_STRING */
|
|
|
|
|
389, /* (224) table_options ::= table_options MAX_DELAY duration_list */
|
|
|
|
|
389, /* (225) table_options ::= table_options WATERMARK duration_list */
|
|
|
|
|
389, /* (226) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
|
|
|
389, /* (227) table_options ::= table_options TTL NK_INTEGER */
|
|
|
|
|
389, /* (228) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
|
|
|
389, /* (229) table_options ::= table_options DELETE_MARK duration_list */
|
|
|
|
|
394, /* (230) alter_table_options ::= alter_table_option */
|
|
|
|
|
394, /* (231) alter_table_options ::= alter_table_options alter_table_option */
|
|
|
|
|
406, /* (232) alter_table_option ::= COMMENT NK_STRING */
|
|
|
|
|
406, /* (233) alter_table_option ::= TTL NK_INTEGER */
|
|
|
|
|
404, /* (234) duration_list ::= duration_literal */
|
|
|
|
|
404, /* (235) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
|
|
|
405, /* (236) rollup_func_list ::= rollup_func_name */
|
|
|
|
|
405, /* (237) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
|
|
|
408, /* (238) rollup_func_name ::= function_name */
|
|
|
|
|
408, /* (239) rollup_func_name ::= FIRST */
|
|
|
|
|
408, /* (240) rollup_func_name ::= LAST */
|
|
|
|
|
402, /* (241) col_name_list ::= col_name */
|
|
|
|
|
402, /* (242) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
|
|
|
410, /* (243) col_name ::= column_name */
|
|
|
|
|
351, /* (244) cmd ::= SHOW DNODES */
|
|
|
|
|
351, /* (245) cmd ::= SHOW USERS */
|
|
|
|
|
351, /* (246) cmd ::= SHOW USER PRIVILEGES */
|
|
|
|
|
351, /* (247) cmd ::= SHOW db_kind_opt DATABASES */
|
|
|
|
|
351, /* (248) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
|
|
|
351, /* (249) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
|
|
|
351, /* (250) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
|
|
|
351, /* (251) cmd ::= SHOW MNODES */
|
|
|
|
|
351, /* (252) cmd ::= SHOW QNODES */
|
|
|
|
|
351, /* (253) cmd ::= SHOW FUNCTIONS */
|
|
|
|
|
351, /* (254) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
|
|
|
351, /* (255) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
|
|
|
351, /* (256) cmd ::= SHOW STREAMS */
|
|
|
|
|
351, /* (257) cmd ::= SHOW ACCOUNTS */
|
|
|
|
|
351, /* (258) cmd ::= SHOW APPS */
|
|
|
|
|
351, /* (259) cmd ::= SHOW CONNECTIONS */
|
|
|
|
|
351, /* (260) cmd ::= SHOW LICENCES */
|
|
|
|
|
351, /* (261) cmd ::= SHOW GRANTS */
|
|
|
|
|
351, /* (262) cmd ::= SHOW GRANTS FULL */
|
|
|
|
|
351, /* (263) cmd ::= SHOW GRANTS LOGS */
|
|
|
|
|
351, /* (264) cmd ::= SHOW CLUSTER MACHINES */
|
|
|
|
|
351, /* (265) cmd ::= SHOW CREATE DATABASE db_name */
|
|
|
|
|
351, /* (266) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
|
|
|
351, /* (267) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
|
|
|
351, /* (268) cmd ::= SHOW QUERIES */
|
|
|
|
|
351, /* (269) cmd ::= SHOW SCORES */
|
|
|
|
|
351, /* (270) cmd ::= SHOW TOPICS */
|
|
|
|
|
351, /* (271) cmd ::= SHOW VARIABLES */
|
|
|
|
|
351, /* (272) cmd ::= SHOW CLUSTER VARIABLES */
|
|
|
|
|
351, /* (273) cmd ::= SHOW LOCAL VARIABLES */
|
|
|
|
|
351, /* (274) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
|
|
|
351, /* (275) cmd ::= SHOW BNODES */
|
|
|
|
|
351, /* (276) cmd ::= SHOW SNODES */
|
|
|
|
|
351, /* (277) cmd ::= SHOW CLUSTER */
|
|
|
|
|
351, /* (278) cmd ::= SHOW TRANSACTIONS */
|
|
|
|
|
351, /* (279) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
|
|
|
351, /* (280) cmd ::= SHOW CONSUMERS */
|
|
|
|
|
351, /* (281) cmd ::= SHOW SUBSCRIPTIONS */
|
|
|
|
|
351, /* (282) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
|
|
|
351, /* (283) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
|
|
|
351, /* (284) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
|
|
|
351, /* (285) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
|
|
|
351, /* (286) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
|
|
|
351, /* (287) cmd ::= SHOW VNODES */
|
|
|
|
|
351, /* (288) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
|
|
|
351, /* (289) cmd ::= SHOW CLUSTER ALIVE */
|
2024-02-19 10:30:12 +00:00
|
|
|
351, /* (290) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
351, /* (291) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
|
|
|
351, /* (292) cmd ::= SHOW COMPACTS */
|
|
|
|
|
351, /* (293) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
|
|
|
412, /* (294) table_kind_db_name_cond_opt ::= */
|
|
|
|
|
412, /* (295) table_kind_db_name_cond_opt ::= table_kind */
|
|
|
|
|
412, /* (296) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
412, /* (297) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
|
|
|
418, /* (298) table_kind ::= NORMAL */
|
|
|
|
|
418, /* (299) table_kind ::= CHILD */
|
|
|
|
|
414, /* (300) db_name_cond_opt ::= */
|
|
|
|
|
414, /* (301) db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
413, /* (302) like_pattern_opt ::= */
|
|
|
|
|
413, /* (303) like_pattern_opt ::= LIKE NK_STRING */
|
|
|
|
|
415, /* (304) table_name_cond ::= table_name */
|
|
|
|
|
416, /* (305) from_db_opt ::= */
|
|
|
|
|
416, /* (306) from_db_opt ::= FROM db_name */
|
|
|
|
|
417, /* (307) tag_list_opt ::= */
|
|
|
|
|
417, /* (308) tag_list_opt ::= tag_item */
|
|
|
|
|
417, /* (309) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
|
|
|
419, /* (310) tag_item ::= TBNAME */
|
|
|
|
|
419, /* (311) tag_item ::= QTAGS */
|
|
|
|
|
419, /* (312) tag_item ::= column_name */
|
|
|
|
|
419, /* (313) tag_item ::= column_name column_alias */
|
|
|
|
|
419, /* (314) tag_item ::= column_name AS column_alias */
|
|
|
|
|
411, /* (315) db_kind_opt ::= */
|
|
|
|
|
411, /* (316) db_kind_opt ::= USER */
|
|
|
|
|
411, /* (317) db_kind_opt ::= SYSTEM */
|
|
|
|
|
351, /* (318) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
|
|
|
351, /* (319) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
|
|
|
351, /* (320) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
|
|
|
422, /* (321) full_index_name ::= index_name */
|
|
|
|
|
422, /* (322) full_index_name ::= db_name NK_DOT index_name */
|
|
|
|
|
421, /* (323) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
|
|
|
421, /* (324) 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 */
|
|
|
|
|
424, /* (325) func_list ::= func */
|
|
|
|
|
424, /* (326) func_list ::= func_list NK_COMMA func */
|
|
|
|
|
427, /* (327) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
|
|
|
428, /* (328) sma_func_name ::= function_name */
|
|
|
|
|
428, /* (329) sma_func_name ::= COUNT */
|
|
|
|
|
428, /* (330) sma_func_name ::= FIRST */
|
|
|
|
|
428, /* (331) sma_func_name ::= LAST */
|
|
|
|
|
428, /* (332) sma_func_name ::= LAST_ROW */
|
|
|
|
|
426, /* (333) sma_stream_opt ::= */
|
|
|
|
|
426, /* (334) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
|
|
|
426, /* (335) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
|
|
|
426, /* (336) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
|
|
|
429, /* (337) with_meta ::= AS */
|
|
|
|
|
429, /* (338) with_meta ::= WITH META AS */
|
|
|
|
|
429, /* (339) with_meta ::= ONLY META AS */
|
|
|
|
|
351, /* (340) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
|
|
|
351, /* (341) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
|
|
|
351, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
|
|
|
351, /* (343) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
|
|
|
351, /* (344) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
|
|
|
351, /* (345) cmd ::= DESC full_table_name */
|
|
|
|
|
351, /* (346) cmd ::= DESCRIBE full_table_name */
|
|
|
|
|
351, /* (347) cmd ::= RESET QUERY CACHE */
|
|
|
|
|
351, /* (348) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
|
|
|
351, /* (349) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
|
|
|
433, /* (350) analyze_opt ::= */
|
|
|
|
|
433, /* (351) analyze_opt ::= ANALYZE */
|
|
|
|
|
434, /* (352) explain_options ::= */
|
|
|
|
|
434, /* (353) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
|
|
|
434, /* (354) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
|
|
|
351, /* (355) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
|
|
|
351, /* (356) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
|
|
|
437, /* (357) agg_func_opt ::= */
|
|
|
|
|
437, /* (358) agg_func_opt ::= AGGREGATE */
|
|
|
|
|
438, /* (359) bufsize_opt ::= */
|
|
|
|
|
438, /* (360) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
|
|
|
439, /* (361) language_opt ::= */
|
|
|
|
|
439, /* (362) language_opt ::= LANGUAGE NK_STRING */
|
|
|
|
|
436, /* (363) or_replace_opt ::= */
|
|
|
|
|
436, /* (364) or_replace_opt ::= OR REPLACE */
|
|
|
|
|
351, /* (365) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
|
|
|
351, /* (366) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
|
|
|
440, /* (367) full_view_name ::= view_name */
|
|
|
|
|
440, /* (368) full_view_name ::= db_name NK_DOT view_name */
|
|
|
|
|
351, /* (369) 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 */
|
|
|
|
|
351, /* (370) cmd ::= DROP STREAM exists_opt stream_name */
|
|
|
|
|
351, /* (371) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
|
|
|
351, /* (372) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
|
|
|
444, /* (373) col_list_opt ::= */
|
|
|
|
|
444, /* (374) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
445, /* (375) tag_def_or_ref_opt ::= */
|
|
|
|
|
445, /* (376) tag_def_or_ref_opt ::= tags_def */
|
|
|
|
|
445, /* (377) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
|
|
|
443, /* (378) stream_options ::= */
|
|
|
|
|
443, /* (379) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
|
|
|
443, /* (380) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
|
|
|
443, /* (381) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
|
|
|
443, /* (382) stream_options ::= stream_options WATERMARK duration_literal */
|
|
|
|
|
443, /* (383) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
|
|
|
443, /* (384) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
|
|
|
443, /* (385) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
|
|
|
443, /* (386) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
|
|
|
446, /* (387) subtable_opt ::= */
|
|
|
|
|
446, /* (388) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
|
|
|
447, /* (389) ignore_opt ::= */
|
|
|
|
|
447, /* (390) ignore_opt ::= IGNORE UNTREATED */
|
|
|
|
|
351, /* (391) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
|
|
|
351, /* (392) cmd ::= KILL QUERY NK_STRING */
|
|
|
|
|
351, /* (393) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
|
|
|
351, /* (394) cmd ::= KILL COMPACT NK_INTEGER */
|
|
|
|
|
351, /* (395) cmd ::= BALANCE VGROUP */
|
|
|
|
|
351, /* (396) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
|
|
|
351, /* (397) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
|
|
|
351, /* (398) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
|
|
|
351, /* (399) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
|
|
|
449, /* (400) on_vgroup_id ::= */
|
|
|
|
|
449, /* (401) on_vgroup_id ::= ON NK_INTEGER */
|
|
|
|
|
450, /* (402) dnode_list ::= DNODE NK_INTEGER */
|
|
|
|
|
450, /* (403) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
|
|
|
351, /* (404) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
|
|
|
351, /* (405) cmd ::= query_or_subquery */
|
|
|
|
|
351, /* (406) cmd ::= insert_query */
|
|
|
|
|
435, /* (407) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
|
|
|
435, /* (408) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
|
|
|
354, /* (409) literal ::= NK_INTEGER */
|
|
|
|
|
354, /* (410) literal ::= NK_FLOAT */
|
|
|
|
|
354, /* (411) literal ::= NK_STRING */
|
|
|
|
|
354, /* (412) literal ::= NK_BOOL */
|
|
|
|
|
354, /* (413) literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
354, /* (414) literal ::= duration_literal */
|
|
|
|
|
354, /* (415) literal ::= NULL */
|
|
|
|
|
354, /* (416) literal ::= NK_QUESTION */
|
|
|
|
|
407, /* (417) duration_literal ::= NK_VARIABLE */
|
|
|
|
|
383, /* (418) signed ::= NK_INTEGER */
|
|
|
|
|
383, /* (419) signed ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
383, /* (420) signed ::= NK_MINUS NK_INTEGER */
|
|
|
|
|
383, /* (421) signed ::= NK_FLOAT */
|
|
|
|
|
383, /* (422) signed ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
383, /* (423) signed ::= NK_MINUS NK_FLOAT */
|
|
|
|
|
397, /* (424) signed_literal ::= signed */
|
|
|
|
|
397, /* (425) signed_literal ::= NK_STRING */
|
|
|
|
|
397, /* (426) signed_literal ::= NK_BOOL */
|
|
|
|
|
397, /* (427) signed_literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
397, /* (428) signed_literal ::= duration_literal */
|
|
|
|
|
397, /* (429) signed_literal ::= NULL */
|
|
|
|
|
397, /* (430) signed_literal ::= literal_func */
|
|
|
|
|
397, /* (431) signed_literal ::= NK_QUESTION */
|
|
|
|
|
452, /* (432) literal_list ::= signed_literal */
|
|
|
|
|
452, /* (433) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
|
|
|
366, /* (434) db_name ::= NK_ID */
|
|
|
|
|
367, /* (435) table_name ::= NK_ID */
|
|
|
|
|
395, /* (436) column_name ::= NK_ID */
|
|
|
|
|
409, /* (437) function_name ::= NK_ID */
|
|
|
|
|
441, /* (438) view_name ::= NK_ID */
|
|
|
|
|
453, /* (439) table_alias ::= NK_ID */
|
|
|
|
|
420, /* (440) column_alias ::= NK_ID */
|
|
|
|
|
420, /* (441) column_alias ::= NK_ALIAS */
|
|
|
|
|
359, /* (442) user_name ::= NK_ID */
|
|
|
|
|
368, /* (443) topic_name ::= NK_ID */
|
|
|
|
|
442, /* (444) stream_name ::= NK_ID */
|
|
|
|
|
432, /* (445) cgroup_name ::= NK_ID */
|
|
|
|
|
423, /* (446) index_name ::= NK_ID */
|
|
|
|
|
454, /* (447) expr_or_subquery ::= expression */
|
|
|
|
|
448, /* (448) expression ::= literal */
|
|
|
|
|
448, /* (449) expression ::= pseudo_column */
|
|
|
|
|
448, /* (450) expression ::= column_reference */
|
|
|
|
|
448, /* (451) expression ::= function_expression */
|
|
|
|
|
448, /* (452) expression ::= case_when_expression */
|
|
|
|
|
448, /* (453) expression ::= NK_LP expression NK_RP */
|
|
|
|
|
448, /* (454) expression ::= NK_PLUS expr_or_subquery */
|
|
|
|
|
448, /* (455) expression ::= NK_MINUS expr_or_subquery */
|
|
|
|
|
448, /* (456) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
|
|
|
448, /* (457) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
|
|
|
448, /* (458) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
|
|
|
448, /* (459) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
|
|
|
448, /* (460) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
|
|
|
448, /* (461) expression ::= column_reference NK_ARROW NK_STRING */
|
|
|
|
|
448, /* (462) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
|
|
|
448, /* (463) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
|
|
|
400, /* (464) expression_list ::= expr_or_subquery */
|
|
|
|
|
400, /* (465) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
|
|
|
456, /* (466) column_reference ::= column_name */
|
|
|
|
|
456, /* (467) column_reference ::= table_name NK_DOT column_name */
|
|
|
|
|
456, /* (468) column_reference ::= NK_ALIAS */
|
|
|
|
|
456, /* (469) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
|
|
|
455, /* (470) pseudo_column ::= ROWTS */
|
|
|
|
|
455, /* (471) pseudo_column ::= TBNAME */
|
|
|
|
|
455, /* (472) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
|
|
|
455, /* (473) pseudo_column ::= QSTART */
|
|
|
|
|
455, /* (474) pseudo_column ::= QEND */
|
|
|
|
|
455, /* (475) pseudo_column ::= QDURATION */
|
|
|
|
|
455, /* (476) pseudo_column ::= WSTART */
|
|
|
|
|
455, /* (477) pseudo_column ::= WEND */
|
|
|
|
|
455, /* (478) pseudo_column ::= WDURATION */
|
|
|
|
|
455, /* (479) pseudo_column ::= IROWTS */
|
|
|
|
|
455, /* (480) pseudo_column ::= ISFILLED */
|
|
|
|
|
455, /* (481) pseudo_column ::= QTAGS */
|
|
|
|
|
457, /* (482) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
|
|
|
457, /* (483) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
|
|
|
457, /* (484) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
|
|
|
457, /* (485) function_expression ::= literal_func */
|
|
|
|
|
451, /* (486) literal_func ::= noarg_func NK_LP NK_RP */
|
|
|
|
|
451, /* (487) literal_func ::= NOW */
|
|
|
|
|
461, /* (488) noarg_func ::= NOW */
|
|
|
|
|
461, /* (489) noarg_func ::= TODAY */
|
|
|
|
|
461, /* (490) noarg_func ::= TIMEZONE */
|
|
|
|
|
461, /* (491) noarg_func ::= DATABASE */
|
|
|
|
|
461, /* (492) noarg_func ::= CLIENT_VERSION */
|
|
|
|
|
461, /* (493) noarg_func ::= SERVER_VERSION */
|
|
|
|
|
461, /* (494) noarg_func ::= SERVER_STATUS */
|
|
|
|
|
461, /* (495) noarg_func ::= CURRENT_USER */
|
|
|
|
|
461, /* (496) noarg_func ::= USER */
|
|
|
|
|
459, /* (497) star_func ::= COUNT */
|
|
|
|
|
459, /* (498) star_func ::= FIRST */
|
|
|
|
|
459, /* (499) star_func ::= LAST */
|
|
|
|
|
459, /* (500) star_func ::= LAST_ROW */
|
|
|
|
|
460, /* (501) star_func_para_list ::= NK_STAR */
|
|
|
|
|
460, /* (502) star_func_para_list ::= other_para_list */
|
|
|
|
|
462, /* (503) other_para_list ::= star_func_para */
|
|
|
|
|
462, /* (504) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
|
|
|
463, /* (505) star_func_para ::= expr_or_subquery */
|
|
|
|
|
463, /* (506) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
458, /* (507) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
|
|
|
458, /* (508) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
|
|
|
464, /* (509) when_then_list ::= when_then_expr */
|
|
|
|
|
464, /* (510) when_then_list ::= when_then_list when_then_expr */
|
|
|
|
|
467, /* (511) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
|
|
|
465, /* (512) case_when_else_opt ::= */
|
|
|
|
|
465, /* (513) case_when_else_opt ::= ELSE common_expression */
|
|
|
|
|
468, /* (514) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
|
|
|
468, /* (515) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
468, /* (516) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
468, /* (517) predicate ::= expr_or_subquery IS NULL */
|
|
|
|
|
468, /* (518) predicate ::= expr_or_subquery IS NOT NULL */
|
|
|
|
|
468, /* (519) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
|
|
|
469, /* (520) compare_op ::= NK_LT */
|
|
|
|
|
469, /* (521) compare_op ::= NK_GT */
|
|
|
|
|
469, /* (522) compare_op ::= NK_LE */
|
|
|
|
|
469, /* (523) compare_op ::= NK_GE */
|
|
|
|
|
469, /* (524) compare_op ::= NK_NE */
|
|
|
|
|
469, /* (525) compare_op ::= NK_EQ */
|
|
|
|
|
469, /* (526) compare_op ::= LIKE */
|
|
|
|
|
469, /* (527) compare_op ::= NOT LIKE */
|
|
|
|
|
469, /* (528) compare_op ::= MATCH */
|
|
|
|
|
469, /* (529) compare_op ::= NMATCH */
|
|
|
|
|
469, /* (530) compare_op ::= CONTAINS */
|
|
|
|
|
470, /* (531) in_op ::= IN */
|
|
|
|
|
470, /* (532) in_op ::= NOT IN */
|
|
|
|
|
471, /* (533) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
|
|
|
472, /* (534) boolean_value_expression ::= boolean_primary */
|
|
|
|
|
472, /* (535) boolean_value_expression ::= NOT boolean_primary */
|
|
|
|
|
472, /* (536) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
|
|
|
472, /* (537) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
|
|
|
473, /* (538) boolean_primary ::= predicate */
|
|
|
|
|
473, /* (539) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
|
|
|
466, /* (540) common_expression ::= expr_or_subquery */
|
|
|
|
|
466, /* (541) common_expression ::= boolean_value_expression */
|
|
|
|
|
474, /* (542) from_clause_opt ::= */
|
|
|
|
|
474, /* (543) from_clause_opt ::= FROM table_reference_list */
|
|
|
|
|
475, /* (544) table_reference_list ::= table_reference */
|
|
|
|
|
475, /* (545) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
|
|
|
476, /* (546) table_reference ::= table_primary */
|
|
|
|
|
476, /* (547) table_reference ::= joined_table */
|
|
|
|
|
477, /* (548) table_primary ::= table_name alias_opt */
|
|
|
|
|
477, /* (549) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
|
|
|
477, /* (550) table_primary ::= subquery alias_opt */
|
|
|
|
|
477, /* (551) table_primary ::= parenthesized_joined_table */
|
|
|
|
|
479, /* (552) alias_opt ::= */
|
|
|
|
|
479, /* (553) alias_opt ::= table_alias */
|
|
|
|
|
479, /* (554) alias_opt ::= AS table_alias */
|
|
|
|
|
481, /* (555) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
|
|
|
481, /* (556) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
|
|
|
478, /* (557) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
|
|
|
482, /* (558) join_type ::= */
|
|
|
|
|
482, /* (559) join_type ::= INNER */
|
|
|
|
|
483, /* (560) 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 */
|
|
|
|
|
484, /* (561) hint_list ::= */
|
|
|
|
|
484, /* (562) hint_list ::= NK_HINT */
|
|
|
|
|
486, /* (563) tag_mode_opt ::= */
|
|
|
|
|
486, /* (564) tag_mode_opt ::= TAGS */
|
|
|
|
|
485, /* (565) set_quantifier_opt ::= */
|
|
|
|
|
485, /* (566) set_quantifier_opt ::= DISTINCT */
|
|
|
|
|
485, /* (567) set_quantifier_opt ::= ALL */
|
|
|
|
|
487, /* (568) select_list ::= select_item */
|
|
|
|
|
487, /* (569) select_list ::= select_list NK_COMMA select_item */
|
|
|
|
|
495, /* (570) select_item ::= NK_STAR */
|
|
|
|
|
495, /* (571) select_item ::= common_expression */
|
|
|
|
|
495, /* (572) select_item ::= common_expression column_alias */
|
|
|
|
|
495, /* (573) select_item ::= common_expression AS column_alias */
|
|
|
|
|
495, /* (574) select_item ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
431, /* (575) where_clause_opt ::= */
|
|
|
|
|
431, /* (576) where_clause_opt ::= WHERE search_condition */
|
|
|
|
|
488, /* (577) partition_by_clause_opt ::= */
|
|
|
|
|
488, /* (578) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
|
|
|
496, /* (579) partition_list ::= partition_item */
|
|
|
|
|
496, /* (580) partition_list ::= partition_list NK_COMMA partition_item */
|
|
|
|
|
497, /* (581) partition_item ::= expr_or_subquery */
|
|
|
|
|
497, /* (582) partition_item ::= expr_or_subquery column_alias */
|
|
|
|
|
497, /* (583) partition_item ::= expr_or_subquery AS column_alias */
|
|
|
|
|
492, /* (584) twindow_clause_opt ::= */
|
|
|
|
|
492, /* (585) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
|
|
|
492, /* (586) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
492, /* (587) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
492, /* (588) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
492, /* (589) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
|
|
|
492, /* (590) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
492, /* (591) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
425, /* (592) sliding_opt ::= */
|
|
|
|
|
425, /* (593) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
|
|
|
498, /* (594) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
|
|
|
498, /* (595) interval_sliding_duration_literal ::= NK_STRING */
|
|
|
|
|
498, /* (596) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
|
|
|
491, /* (597) fill_opt ::= */
|
|
|
|
|
491, /* (598) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
|
|
|
491, /* (599) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
|
|
|
491, /* (600) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
|
|
|
499, /* (601) fill_mode ::= NONE */
|
|
|
|
|
499, /* (602) fill_mode ::= PREV */
|
|
|
|
|
499, /* (603) fill_mode ::= NULL */
|
|
|
|
|
499, /* (604) fill_mode ::= NULL_F */
|
|
|
|
|
499, /* (605) fill_mode ::= LINEAR */
|
|
|
|
|
499, /* (606) fill_mode ::= NEXT */
|
|
|
|
|
493, /* (607) group_by_clause_opt ::= */
|
|
|
|
|
493, /* (608) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
|
|
|
500, /* (609) group_by_list ::= expr_or_subquery */
|
|
|
|
|
500, /* (610) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
|
|
|
494, /* (611) having_clause_opt ::= */
|
|
|
|
|
494, /* (612) having_clause_opt ::= HAVING search_condition */
|
|
|
|
|
489, /* (613) range_opt ::= */
|
|
|
|
|
489, /* (614) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
|
|
|
489, /* (615) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
490, /* (616) every_opt ::= */
|
|
|
|
|
490, /* (617) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
|
|
|
501, /* (618) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
|
|
|
502, /* (619) query_simple ::= query_specification */
|
|
|
|
|
502, /* (620) query_simple ::= union_query_expression */
|
|
|
|
|
506, /* (621) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
|
|
|
506, /* (622) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
|
|
|
507, /* (623) query_simple_or_subquery ::= query_simple */
|
|
|
|
|
507, /* (624) query_simple_or_subquery ::= subquery */
|
|
|
|
|
430, /* (625) query_or_subquery ::= query_expression */
|
|
|
|
|
430, /* (626) query_or_subquery ::= subquery */
|
|
|
|
|
503, /* (627) order_by_clause_opt ::= */
|
|
|
|
|
503, /* (628) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
|
|
|
504, /* (629) slimit_clause_opt ::= */
|
|
|
|
|
504, /* (630) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
|
|
|
504, /* (631) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
|
|
|
504, /* (632) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
505, /* (633) limit_clause_opt ::= */
|
|
|
|
|
505, /* (634) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
|
|
|
505, /* (635) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
|
|
|
505, /* (636) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
480, /* (637) subquery ::= NK_LP query_expression NK_RP */
|
|
|
|
|
480, /* (638) subquery ::= NK_LP subquery NK_RP */
|
|
|
|
|
369, /* (639) search_condition ::= common_expression */
|
|
|
|
|
508, /* (640) sort_specification_list ::= sort_specification */
|
|
|
|
|
508, /* (641) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
|
|
|
509, /* (642) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
|
|
|
510, /* (643) ordering_specification_opt ::= */
|
|
|
|
|
510, /* (644) ordering_specification_opt ::= ASC */
|
|
|
|
|
510, /* (645) ordering_specification_opt ::= DESC */
|
|
|
|
|
511, /* (646) null_ordering_opt ::= */
|
|
|
|
|
511, /* (647) null_ordering_opt ::= NULLS FIRST */
|
|
|
|
|
511, /* (648) 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 */
|
2023-10-20 00:46:32 +00:00
|
|
|
-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 */
|
|
|
|
|
-5, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
|
|
|
-3, /* (93) not_exists_opt ::= IF NOT EXISTS */
|
|
|
|
|
0, /* (94) not_exists_opt ::= */
|
|
|
|
|
-2, /* (95) exists_opt ::= IF EXISTS */
|
|
|
|
|
0, /* (96) exists_opt ::= */
|
|
|
|
|
0, /* (97) db_options ::= */
|
|
|
|
|
-3, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
|
|
|
|
|
-3, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
|
|
|
-3, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
|
|
|
-3, /* (101) db_options ::= db_options COMP NK_INTEGER */
|
|
|
|
|
-3, /* (102) db_options ::= db_options DURATION NK_INTEGER */
|
|
|
|
|
-3, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
|
|
|
|
|
-3, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
|
|
|
-3, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
|
|
|
|
|
-3, /* (106) db_options ::= db_options KEEP integer_list */
|
|
|
|
|
-3, /* (107) db_options ::= db_options KEEP variable_list */
|
|
|
|
|
-3, /* (108) db_options ::= db_options PAGES NK_INTEGER */
|
|
|
|
|
-3, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
|
|
|
-3, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
|
|
|
-3, /* (111) db_options ::= db_options PRECISION NK_STRING */
|
|
|
|
|
-3, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
|
|
|
|
|
-3, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
|
|
|
-3, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
|
|
|
-3, /* (115) db_options ::= db_options RETENTIONS retention_list */
|
|
|
|
|
-3, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
|
|
|
-3, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
|
|
|
-3, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
|
|
|
-3, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
|
|
|
-4, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
|
|
|
-3, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
|
|
|
-4, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
|
|
|
-3, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
|
|
|
-3, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
|
|
|
-3, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
|
|
|
-3, /* (126) db_options ::= db_options TABLE_PREFIX signed */
|
|
|
|
|
-3, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
|
|
|
|
|
-3, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
|
|
|
-1, /* (129) alter_db_options ::= alter_db_option */
|
|
|
|
|
-2, /* (130) alter_db_options ::= alter_db_options alter_db_option */
|
|
|
|
|
-2, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
|
|
|
|
|
-2, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
|
|
|
-2, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
|
|
|
-2, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
|
|
|
-2, /* (135) alter_db_option ::= KEEP integer_list */
|
|
|
|
|
-2, /* (136) alter_db_option ::= KEEP variable_list */
|
|
|
|
|
-2, /* (137) alter_db_option ::= PAGES NK_INTEGER */
|
|
|
|
|
-2, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
|
|
|
|
|
-2, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
|
|
|
-2, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
|
|
|
-2, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
|
|
|
|
|
-2, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
|
|
|
-3, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
|
|
|
-2, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
|
|
|
-3, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
|
|
|
-2, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
|
|
|
-1, /* (147) integer_list ::= NK_INTEGER */
|
|
|
|
|
-3, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
|
|
|
-1, /* (149) variable_list ::= NK_VARIABLE */
|
|
|
|
|
-3, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
|
|
|
-1, /* (151) retention_list ::= retention */
|
|
|
|
|
-3, /* (152) retention_list ::= retention_list NK_COMMA retention */
|
|
|
|
|
-3, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
|
|
|
-3, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
|
|
|
0, /* (155) speed_opt ::= */
|
|
|
|
|
-2, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
|
|
|
0, /* (157) start_opt ::= */
|
|
|
|
|
-3, /* (158) start_opt ::= START WITH NK_INTEGER */
|
|
|
|
|
-3, /* (159) start_opt ::= START WITH NK_STRING */
|
|
|
|
|
-4, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
|
|
|
0, /* (161) end_opt ::= */
|
|
|
|
|
-3, /* (162) end_opt ::= END WITH NK_INTEGER */
|
|
|
|
|
-3, /* (163) end_opt ::= END WITH NK_STRING */
|
|
|
|
|
-4, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
|
|
|
-9, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
|
|
|
-3, /* (166) cmd ::= CREATE TABLE multi_create_clause */
|
|
|
|
|
-9, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
|
|
|
-3, /* (168) cmd ::= DROP TABLE multi_drop_clause */
|
|
|
|
|
-4, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
|
|
|
-3, /* (170) cmd ::= ALTER TABLE alter_table_clause */
|
|
|
|
|
-3, /* (171) cmd ::= ALTER STABLE alter_table_clause */
|
|
|
|
|
-2, /* (172) alter_table_clause ::= full_table_name alter_table_options */
|
|
|
|
|
-5, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
|
|
|
-4, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
|
|
|
-5, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
|
|
|
-5, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
|
|
|
-5, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
|
|
|
-4, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
|
|
|
-5, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
|
|
|
-5, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
|
|
|
-6, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
|
|
|
|
-1, /* (182) multi_create_clause ::= create_subtable_clause */
|
|
|
|
|
-2, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
|
|
|
-10, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
|
|
|
|
-1, /* (185) multi_drop_clause ::= drop_table_clause */
|
|
|
|
|
-3, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
|
|
|
-2, /* (187) drop_table_clause ::= exists_opt full_table_name */
|
|
|
|
|
0, /* (188) specific_cols_opt ::= */
|
|
|
|
|
-3, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
-1, /* (190) full_table_name ::= table_name */
|
|
|
|
|
-3, /* (191) full_table_name ::= db_name NK_DOT table_name */
|
|
|
|
|
-1, /* (192) column_def_list ::= column_def */
|
|
|
|
|
-3, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
|
|
|
-2, /* (194) column_def ::= column_name type_name */
|
|
|
|
|
-1, /* (195) type_name ::= BOOL */
|
|
|
|
|
-1, /* (196) type_name ::= TINYINT */
|
|
|
|
|
-1, /* (197) type_name ::= SMALLINT */
|
|
|
|
|
-1, /* (198) type_name ::= INT */
|
|
|
|
|
-1, /* (199) type_name ::= INTEGER */
|
|
|
|
|
-1, /* (200) type_name ::= BIGINT */
|
|
|
|
|
-1, /* (201) type_name ::= FLOAT */
|
|
|
|
|
-1, /* (202) type_name ::= DOUBLE */
|
|
|
|
|
-4, /* (203) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-1, /* (204) type_name ::= TIMESTAMP */
|
|
|
|
|
-4, /* (205) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-2, /* (206) type_name ::= TINYINT UNSIGNED */
|
|
|
|
|
-2, /* (207) type_name ::= SMALLINT UNSIGNED */
|
|
|
|
|
-2, /* (208) type_name ::= INT UNSIGNED */
|
|
|
|
|
-2, /* (209) type_name ::= BIGINT UNSIGNED */
|
|
|
|
|
-1, /* (210) type_name ::= JSON */
|
|
|
|
|
-4, /* (211) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-1, /* (212) type_name ::= MEDIUMBLOB */
|
|
|
|
|
-1, /* (213) type_name ::= BLOB */
|
|
|
|
|
-4, /* (214) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-4, /* (215) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-1, /* (216) type_name ::= DECIMAL */
|
|
|
|
|
-4, /* (217) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-6, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
0, /* (219) tags_def_opt ::= */
|
|
|
|
|
-1, /* (220) tags_def_opt ::= tags_def */
|
|
|
|
|
-4, /* (221) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
|
|
|
0, /* (222) table_options ::= */
|
|
|
|
|
-3, /* (223) table_options ::= table_options COMMENT NK_STRING */
|
|
|
|
|
-3, /* (224) table_options ::= table_options MAX_DELAY duration_list */
|
|
|
|
|
-3, /* (225) table_options ::= table_options WATERMARK duration_list */
|
|
|
|
|
-5, /* (226) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
|
|
|
-3, /* (227) table_options ::= table_options TTL NK_INTEGER */
|
|
|
|
|
-5, /* (228) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
|
|
|
-3, /* (229) table_options ::= table_options DELETE_MARK duration_list */
|
|
|
|
|
-1, /* (230) alter_table_options ::= alter_table_option */
|
|
|
|
|
-2, /* (231) alter_table_options ::= alter_table_options alter_table_option */
|
|
|
|
|
-2, /* (232) alter_table_option ::= COMMENT NK_STRING */
|
|
|
|
|
-2, /* (233) alter_table_option ::= TTL NK_INTEGER */
|
|
|
|
|
-1, /* (234) duration_list ::= duration_literal */
|
|
|
|
|
-3, /* (235) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
|
|
|
-1, /* (236) rollup_func_list ::= rollup_func_name */
|
|
|
|
|
-3, /* (237) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
|
|
|
-1, /* (238) rollup_func_name ::= function_name */
|
|
|
|
|
-1, /* (239) rollup_func_name ::= FIRST */
|
|
|
|
|
-1, /* (240) rollup_func_name ::= LAST */
|
|
|
|
|
-1, /* (241) col_name_list ::= col_name */
|
|
|
|
|
-3, /* (242) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
|
|
|
-1, /* (243) col_name ::= column_name */
|
|
|
|
|
-2, /* (244) cmd ::= SHOW DNODES */
|
|
|
|
|
-2, /* (245) cmd ::= SHOW USERS */
|
|
|
|
|
-3, /* (246) cmd ::= SHOW USER PRIVILEGES */
|
|
|
|
|
-3, /* (247) cmd ::= SHOW db_kind_opt DATABASES */
|
|
|
|
|
-4, /* (248) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
|
|
|
-4, /* (249) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
|
|
|
-3, /* (250) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
|
|
|
-2, /* (251) cmd ::= SHOW MNODES */
|
|
|
|
|
-2, /* (252) cmd ::= SHOW QNODES */
|
|
|
|
|
-2, /* (253) cmd ::= SHOW FUNCTIONS */
|
|
|
|
|
-5, /* (254) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
|
|
|
-6, /* (255) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
|
|
|
-2, /* (256) cmd ::= SHOW STREAMS */
|
|
|
|
|
-2, /* (257) cmd ::= SHOW ACCOUNTS */
|
|
|
|
|
-2, /* (258) cmd ::= SHOW APPS */
|
|
|
|
|
-2, /* (259) cmd ::= SHOW CONNECTIONS */
|
|
|
|
|
-2, /* (260) cmd ::= SHOW LICENCES */
|
|
|
|
|
-2, /* (261) cmd ::= SHOW GRANTS */
|
2024-01-18 07:23:38 +00:00
|
|
|
-3, /* (262) cmd ::= SHOW GRANTS FULL */
|
2024-01-31 05:44:00 +00:00
|
|
|
-3, /* (263) cmd ::= SHOW GRANTS LOGS */
|
2024-01-18 09:49:11 +00:00
|
|
|
-3, /* (264) cmd ::= SHOW CLUSTER MACHINES */
|
|
|
|
|
-4, /* (265) cmd ::= SHOW CREATE DATABASE db_name */
|
|
|
|
|
-4, /* (266) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
|
|
|
-4, /* (267) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
|
|
|
-2, /* (268) cmd ::= SHOW QUERIES */
|
|
|
|
|
-2, /* (269) cmd ::= SHOW SCORES */
|
|
|
|
|
-2, /* (270) cmd ::= SHOW TOPICS */
|
|
|
|
|
-2, /* (271) cmd ::= SHOW VARIABLES */
|
|
|
|
|
-3, /* (272) cmd ::= SHOW CLUSTER VARIABLES */
|
|
|
|
|
-3, /* (273) cmd ::= SHOW LOCAL VARIABLES */
|
|
|
|
|
-5, /* (274) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
|
|
|
-2, /* (275) cmd ::= SHOW BNODES */
|
|
|
|
|
-2, /* (276) cmd ::= SHOW SNODES */
|
|
|
|
|
-2, /* (277) cmd ::= SHOW CLUSTER */
|
|
|
|
|
-2, /* (278) cmd ::= SHOW TRANSACTIONS */
|
|
|
|
|
-4, /* (279) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
|
|
|
-2, /* (280) cmd ::= SHOW CONSUMERS */
|
|
|
|
|
-2, /* (281) cmd ::= SHOW SUBSCRIPTIONS */
|
|
|
|
|
-5, /* (282) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
|
|
|
-6, /* (283) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
|
|
|
-7, /* (284) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
|
|
|
-8, /* (285) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
|
|
|
-5, /* (286) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
|
|
|
-2, /* (287) cmd ::= SHOW VNODES */
|
|
|
|
|
-3, /* (288) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
|
|
|
-3, /* (289) cmd ::= SHOW CLUSTER ALIVE */
|
2024-02-19 05:10:27 +00:00
|
|
|
-4, /* (290) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
|
2024-01-18 09:49:11 +00:00
|
|
|
-4, /* (291) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
|
|
|
-2, /* (292) cmd ::= SHOW COMPACTS */
|
|
|
|
|
-3, /* (293) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
|
|
|
0, /* (294) table_kind_db_name_cond_opt ::= */
|
|
|
|
|
-1, /* (295) table_kind_db_name_cond_opt ::= table_kind */
|
|
|
|
|
-2, /* (296) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
-3, /* (297) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
|
|
|
-1, /* (298) table_kind ::= NORMAL */
|
|
|
|
|
-1, /* (299) table_kind ::= CHILD */
|
|
|
|
|
0, /* (300) db_name_cond_opt ::= */
|
|
|
|
|
-2, /* (301) db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
0, /* (302) like_pattern_opt ::= */
|
|
|
|
|
-2, /* (303) like_pattern_opt ::= LIKE NK_STRING */
|
|
|
|
|
-1, /* (304) table_name_cond ::= table_name */
|
|
|
|
|
0, /* (305) from_db_opt ::= */
|
|
|
|
|
-2, /* (306) from_db_opt ::= FROM db_name */
|
|
|
|
|
0, /* (307) tag_list_opt ::= */
|
|
|
|
|
-1, /* (308) tag_list_opt ::= tag_item */
|
|
|
|
|
-3, /* (309) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
|
|
|
-1, /* (310) tag_item ::= TBNAME */
|
|
|
|
|
-1, /* (311) tag_item ::= QTAGS */
|
|
|
|
|
-1, /* (312) tag_item ::= column_name */
|
|
|
|
|
-2, /* (313) tag_item ::= column_name column_alias */
|
|
|
|
|
-3, /* (314) tag_item ::= column_name AS column_alias */
|
|
|
|
|
0, /* (315) db_kind_opt ::= */
|
|
|
|
|
-1, /* (316) db_kind_opt ::= USER */
|
|
|
|
|
-1, /* (317) db_kind_opt ::= SYSTEM */
|
|
|
|
|
-8, /* (318) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
|
|
|
-9, /* (319) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
|
|
|
-4, /* (320) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
|
|
|
-1, /* (321) full_index_name ::= index_name */
|
|
|
|
|
-3, /* (322) full_index_name ::= db_name NK_DOT index_name */
|
|
|
|
|
-10, /* (323) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
|
|
|
-12, /* (324) 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, /* (325) func_list ::= func */
|
|
|
|
|
-3, /* (326) func_list ::= func_list NK_COMMA func */
|
|
|
|
|
-4, /* (327) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
|
|
|
-1, /* (328) sma_func_name ::= function_name */
|
|
|
|
|
-1, /* (329) sma_func_name ::= COUNT */
|
|
|
|
|
-1, /* (330) sma_func_name ::= FIRST */
|
|
|
|
|
-1, /* (331) sma_func_name ::= LAST */
|
|
|
|
|
-1, /* (332) sma_func_name ::= LAST_ROW */
|
|
|
|
|
0, /* (333) sma_stream_opt ::= */
|
|
|
|
|
-3, /* (334) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
|
|
|
-3, /* (335) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
|
|
|
-3, /* (336) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
|
|
|
-1, /* (337) with_meta ::= AS */
|
|
|
|
|
-3, /* (338) with_meta ::= WITH META AS */
|
|
|
|
|
-3, /* (339) with_meta ::= ONLY META AS */
|
|
|
|
|
-6, /* (340) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
|
|
|
-7, /* (341) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
|
|
|
-8, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
|
|
|
-4, /* (343) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
|
|
|
-7, /* (344) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
|
|
|
-2, /* (345) cmd ::= DESC full_table_name */
|
|
|
|
|
-2, /* (346) cmd ::= DESCRIBE full_table_name */
|
|
|
|
|
-3, /* (347) cmd ::= RESET QUERY CACHE */
|
|
|
|
|
-4, /* (348) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
|
|
|
-4, /* (349) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
|
|
|
0, /* (350) analyze_opt ::= */
|
|
|
|
|
-1, /* (351) analyze_opt ::= ANALYZE */
|
|
|
|
|
0, /* (352) explain_options ::= */
|
|
|
|
|
-3, /* (353) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
|
|
|
-3, /* (354) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
|
|
|
-12, /* (355) 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, /* (356) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
|
|
|
0, /* (357) agg_func_opt ::= */
|
|
|
|
|
-1, /* (358) agg_func_opt ::= AGGREGATE */
|
|
|
|
|
0, /* (359) bufsize_opt ::= */
|
|
|
|
|
-2, /* (360) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
|
|
|
0, /* (361) language_opt ::= */
|
|
|
|
|
-2, /* (362) language_opt ::= LANGUAGE NK_STRING */
|
|
|
|
|
0, /* (363) or_replace_opt ::= */
|
|
|
|
|
-2, /* (364) or_replace_opt ::= OR REPLACE */
|
|
|
|
|
-6, /* (365) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
|
|
|
-4, /* (366) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
|
|
|
-1, /* (367) full_view_name ::= view_name */
|
|
|
|
|
-3, /* (368) full_view_name ::= db_name NK_DOT view_name */
|
|
|
|
|
-12, /* (369) 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, /* (370) cmd ::= DROP STREAM exists_opt stream_name */
|
|
|
|
|
-4, /* (371) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
|
|
|
-5, /* (372) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
|
|
|
0, /* (373) col_list_opt ::= */
|
|
|
|
|
-3, /* (374) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
0, /* (375) tag_def_or_ref_opt ::= */
|
|
|
|
|
-1, /* (376) tag_def_or_ref_opt ::= tags_def */
|
|
|
|
|
-4, /* (377) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
|
|
|
0, /* (378) stream_options ::= */
|
|
|
|
|
-3, /* (379) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
|
|
|
-3, /* (380) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
|
|
|
-4, /* (381) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
|
|
|
-3, /* (382) stream_options ::= stream_options WATERMARK duration_literal */
|
|
|
|
|
-4, /* (383) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
|
|
|
-3, /* (384) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
|
|
|
-3, /* (385) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
|
|
|
-4, /* (386) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
|
|
|
0, /* (387) subtable_opt ::= */
|
|
|
|
|
-4, /* (388) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
|
|
|
0, /* (389) ignore_opt ::= */
|
|
|
|
|
-2, /* (390) ignore_opt ::= IGNORE UNTREATED */
|
|
|
|
|
-3, /* (391) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
|
|
|
-3, /* (392) cmd ::= KILL QUERY NK_STRING */
|
|
|
|
|
-3, /* (393) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
|
|
|
-3, /* (394) cmd ::= KILL COMPACT NK_INTEGER */
|
|
|
|
|
-2, /* (395) cmd ::= BALANCE VGROUP */
|
|
|
|
|
-4, /* (396) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
|
|
|
-4, /* (397) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
|
|
|
-4, /* (398) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
|
|
|
-3, /* (399) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
|
|
|
0, /* (400) on_vgroup_id ::= */
|
|
|
|
|
-2, /* (401) on_vgroup_id ::= ON NK_INTEGER */
|
|
|
|
|
-2, /* (402) dnode_list ::= DNODE NK_INTEGER */
|
|
|
|
|
-3, /* (403) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
|
|
|
-4, /* (404) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
|
|
|
-1, /* (405) cmd ::= query_or_subquery */
|
|
|
|
|
-1, /* (406) cmd ::= insert_query */
|
|
|
|
|
-7, /* (407) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
|
|
|
-4, /* (408) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
|
|
|
-1, /* (409) literal ::= NK_INTEGER */
|
|
|
|
|
-1, /* (410) literal ::= NK_FLOAT */
|
|
|
|
|
-1, /* (411) literal ::= NK_STRING */
|
|
|
|
|
-1, /* (412) literal ::= NK_BOOL */
|
|
|
|
|
-2, /* (413) literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
-1, /* (414) literal ::= duration_literal */
|
|
|
|
|
-1, /* (415) literal ::= NULL */
|
|
|
|
|
-1, /* (416) literal ::= NK_QUESTION */
|
|
|
|
|
-1, /* (417) duration_literal ::= NK_VARIABLE */
|
|
|
|
|
-1, /* (418) signed ::= NK_INTEGER */
|
|
|
|
|
-2, /* (419) signed ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
-2, /* (420) signed ::= NK_MINUS NK_INTEGER */
|
|
|
|
|
-1, /* (421) signed ::= NK_FLOAT */
|
|
|
|
|
-2, /* (422) signed ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
-2, /* (423) signed ::= NK_MINUS NK_FLOAT */
|
|
|
|
|
-1, /* (424) signed_literal ::= signed */
|
|
|
|
|
-1, /* (425) signed_literal ::= NK_STRING */
|
|
|
|
|
-1, /* (426) signed_literal ::= NK_BOOL */
|
|
|
|
|
-2, /* (427) signed_literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
-1, /* (428) signed_literal ::= duration_literal */
|
|
|
|
|
-1, /* (429) signed_literal ::= NULL */
|
|
|
|
|
-1, /* (430) signed_literal ::= literal_func */
|
|
|
|
|
-1, /* (431) signed_literal ::= NK_QUESTION */
|
|
|
|
|
-1, /* (432) literal_list ::= signed_literal */
|
|
|
|
|
-3, /* (433) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
|
|
|
-1, /* (434) db_name ::= NK_ID */
|
|
|
|
|
-1, /* (435) table_name ::= NK_ID */
|
|
|
|
|
-1, /* (436) column_name ::= NK_ID */
|
|
|
|
|
-1, /* (437) function_name ::= NK_ID */
|
|
|
|
|
-1, /* (438) view_name ::= NK_ID */
|
|
|
|
|
-1, /* (439) table_alias ::= NK_ID */
|
|
|
|
|
-1, /* (440) column_alias ::= NK_ID */
|
|
|
|
|
-1, /* (441) column_alias ::= NK_ALIAS */
|
|
|
|
|
-1, /* (442) user_name ::= NK_ID */
|
|
|
|
|
-1, /* (443) topic_name ::= NK_ID */
|
|
|
|
|
-1, /* (444) stream_name ::= NK_ID */
|
|
|
|
|
-1, /* (445) cgroup_name ::= NK_ID */
|
|
|
|
|
-1, /* (446) index_name ::= NK_ID */
|
|
|
|
|
-1, /* (447) expr_or_subquery ::= expression */
|
|
|
|
|
-1, /* (448) expression ::= literal */
|
|
|
|
|
-1, /* (449) expression ::= pseudo_column */
|
|
|
|
|
-1, /* (450) expression ::= column_reference */
|
|
|
|
|
-1, /* (451) expression ::= function_expression */
|
|
|
|
|
-1, /* (452) expression ::= case_when_expression */
|
|
|
|
|
-3, /* (453) expression ::= NK_LP expression NK_RP */
|
|
|
|
|
-2, /* (454) expression ::= NK_PLUS expr_or_subquery */
|
|
|
|
|
-2, /* (455) expression ::= NK_MINUS expr_or_subquery */
|
|
|
|
|
-3, /* (456) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
|
|
|
-3, /* (457) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
|
|
|
-3, /* (458) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
|
|
|
-3, /* (459) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
|
|
|
-3, /* (460) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
|
|
|
-3, /* (461) expression ::= column_reference NK_ARROW NK_STRING */
|
|
|
|
|
-3, /* (462) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
|
|
|
-3, /* (463) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
|
|
|
-1, /* (464) expression_list ::= expr_or_subquery */
|
|
|
|
|
-3, /* (465) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
|
|
|
-1, /* (466) column_reference ::= column_name */
|
|
|
|
|
-3, /* (467) column_reference ::= table_name NK_DOT column_name */
|
|
|
|
|
-1, /* (468) column_reference ::= NK_ALIAS */
|
|
|
|
|
-3, /* (469) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
|
|
|
-1, /* (470) pseudo_column ::= ROWTS */
|
|
|
|
|
-1, /* (471) pseudo_column ::= TBNAME */
|
|
|
|
|
-3, /* (472) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
|
|
|
-1, /* (473) pseudo_column ::= QSTART */
|
|
|
|
|
-1, /* (474) pseudo_column ::= QEND */
|
|
|
|
|
-1, /* (475) pseudo_column ::= QDURATION */
|
|
|
|
|
-1, /* (476) pseudo_column ::= WSTART */
|
|
|
|
|
-1, /* (477) pseudo_column ::= WEND */
|
|
|
|
|
-1, /* (478) pseudo_column ::= WDURATION */
|
|
|
|
|
-1, /* (479) pseudo_column ::= IROWTS */
|
|
|
|
|
-1, /* (480) pseudo_column ::= ISFILLED */
|
|
|
|
|
-1, /* (481) pseudo_column ::= QTAGS */
|
|
|
|
|
-4, /* (482) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
|
|
|
-4, /* (483) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
|
|
|
-6, /* (484) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
|
|
|
-1, /* (485) function_expression ::= literal_func */
|
|
|
|
|
-3, /* (486) literal_func ::= noarg_func NK_LP NK_RP */
|
|
|
|
|
-1, /* (487) literal_func ::= NOW */
|
|
|
|
|
-1, /* (488) noarg_func ::= NOW */
|
|
|
|
|
-1, /* (489) noarg_func ::= TODAY */
|
|
|
|
|
-1, /* (490) noarg_func ::= TIMEZONE */
|
|
|
|
|
-1, /* (491) noarg_func ::= DATABASE */
|
|
|
|
|
-1, /* (492) noarg_func ::= CLIENT_VERSION */
|
|
|
|
|
-1, /* (493) noarg_func ::= SERVER_VERSION */
|
|
|
|
|
-1, /* (494) noarg_func ::= SERVER_STATUS */
|
|
|
|
|
-1, /* (495) noarg_func ::= CURRENT_USER */
|
|
|
|
|
-1, /* (496) noarg_func ::= USER */
|
|
|
|
|
-1, /* (497) star_func ::= COUNT */
|
|
|
|
|
-1, /* (498) star_func ::= FIRST */
|
|
|
|
|
-1, /* (499) star_func ::= LAST */
|
|
|
|
|
-1, /* (500) star_func ::= LAST_ROW */
|
|
|
|
|
-1, /* (501) star_func_para_list ::= NK_STAR */
|
|
|
|
|
-1, /* (502) star_func_para_list ::= other_para_list */
|
|
|
|
|
-1, /* (503) other_para_list ::= star_func_para */
|
|
|
|
|
-3, /* (504) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
|
|
|
-1, /* (505) star_func_para ::= expr_or_subquery */
|
|
|
|
|
-3, /* (506) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
-4, /* (507) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
|
|
|
-5, /* (508) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
|
|
|
-1, /* (509) when_then_list ::= when_then_expr */
|
|
|
|
|
-2, /* (510) when_then_list ::= when_then_list when_then_expr */
|
|
|
|
|
-4, /* (511) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
|
|
|
0, /* (512) case_when_else_opt ::= */
|
|
|
|
|
-2, /* (513) case_when_else_opt ::= ELSE common_expression */
|
|
|
|
|
-3, /* (514) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
|
|
|
-5, /* (515) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
-6, /* (516) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
-3, /* (517) predicate ::= expr_or_subquery IS NULL */
|
|
|
|
|
-4, /* (518) predicate ::= expr_or_subquery IS NOT NULL */
|
|
|
|
|
-3, /* (519) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
|
|
|
-1, /* (520) compare_op ::= NK_LT */
|
|
|
|
|
-1, /* (521) compare_op ::= NK_GT */
|
|
|
|
|
-1, /* (522) compare_op ::= NK_LE */
|
|
|
|
|
-1, /* (523) compare_op ::= NK_GE */
|
|
|
|
|
-1, /* (524) compare_op ::= NK_NE */
|
|
|
|
|
-1, /* (525) compare_op ::= NK_EQ */
|
|
|
|
|
-1, /* (526) compare_op ::= LIKE */
|
|
|
|
|
-2, /* (527) compare_op ::= NOT LIKE */
|
|
|
|
|
-1, /* (528) compare_op ::= MATCH */
|
|
|
|
|
-1, /* (529) compare_op ::= NMATCH */
|
|
|
|
|
-1, /* (530) compare_op ::= CONTAINS */
|
|
|
|
|
-1, /* (531) in_op ::= IN */
|
|
|
|
|
-2, /* (532) in_op ::= NOT IN */
|
|
|
|
|
-3, /* (533) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
|
|
|
-1, /* (534) boolean_value_expression ::= boolean_primary */
|
|
|
|
|
-2, /* (535) boolean_value_expression ::= NOT boolean_primary */
|
|
|
|
|
-3, /* (536) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
|
|
|
-3, /* (537) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
|
|
|
-1, /* (538) boolean_primary ::= predicate */
|
|
|
|
|
-3, /* (539) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
|
|
|
-1, /* (540) common_expression ::= expr_or_subquery */
|
|
|
|
|
-1, /* (541) common_expression ::= boolean_value_expression */
|
|
|
|
|
0, /* (542) from_clause_opt ::= */
|
|
|
|
|
-2, /* (543) from_clause_opt ::= FROM table_reference_list */
|
|
|
|
|
-1, /* (544) table_reference_list ::= table_reference */
|
|
|
|
|
-3, /* (545) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
|
|
|
-1, /* (546) table_reference ::= table_primary */
|
|
|
|
|
-1, /* (547) table_reference ::= joined_table */
|
|
|
|
|
-2, /* (548) table_primary ::= table_name alias_opt */
|
|
|
|
|
-4, /* (549) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
|
|
|
-2, /* (550) table_primary ::= subquery alias_opt */
|
|
|
|
|
-1, /* (551) table_primary ::= parenthesized_joined_table */
|
|
|
|
|
0, /* (552) alias_opt ::= */
|
|
|
|
|
-1, /* (553) alias_opt ::= table_alias */
|
|
|
|
|
-2, /* (554) alias_opt ::= AS table_alias */
|
|
|
|
|
-3, /* (555) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
|
|
|
-3, /* (556) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
|
|
|
-6, /* (557) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
|
|
|
0, /* (558) join_type ::= */
|
|
|
|
|
-1, /* (559) join_type ::= INNER */
|
|
|
|
|
-14, /* (560) 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, /* (561) hint_list ::= */
|
|
|
|
|
-1, /* (562) hint_list ::= NK_HINT */
|
|
|
|
|
0, /* (563) tag_mode_opt ::= */
|
|
|
|
|
-1, /* (564) tag_mode_opt ::= TAGS */
|
|
|
|
|
0, /* (565) set_quantifier_opt ::= */
|
|
|
|
|
-1, /* (566) set_quantifier_opt ::= DISTINCT */
|
|
|
|
|
-1, /* (567) set_quantifier_opt ::= ALL */
|
|
|
|
|
-1, /* (568) select_list ::= select_item */
|
|
|
|
|
-3, /* (569) select_list ::= select_list NK_COMMA select_item */
|
|
|
|
|
-1, /* (570) select_item ::= NK_STAR */
|
|
|
|
|
-1, /* (571) select_item ::= common_expression */
|
|
|
|
|
-2, /* (572) select_item ::= common_expression column_alias */
|
|
|
|
|
-3, /* (573) select_item ::= common_expression AS column_alias */
|
|
|
|
|
-3, /* (574) select_item ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
0, /* (575) where_clause_opt ::= */
|
|
|
|
|
-2, /* (576) where_clause_opt ::= WHERE search_condition */
|
|
|
|
|
0, /* (577) partition_by_clause_opt ::= */
|
|
|
|
|
-3, /* (578) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
|
|
|
-1, /* (579) partition_list ::= partition_item */
|
|
|
|
|
-3, /* (580) partition_list ::= partition_list NK_COMMA partition_item */
|
|
|
|
|
-1, /* (581) partition_item ::= expr_or_subquery */
|
|
|
|
|
-2, /* (582) partition_item ::= expr_or_subquery column_alias */
|
|
|
|
|
-3, /* (583) partition_item ::= expr_or_subquery AS column_alias */
|
|
|
|
|
0, /* (584) twindow_clause_opt ::= */
|
|
|
|
|
-6, /* (585) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
|
|
|
-4, /* (586) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
-6, /* (587) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
-8, /* (588) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
-7, /* (589) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
2024-02-04 08:04:23 +00:00
|
|
|
-4, /* (590) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-6, /* (591) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
0, /* (592) sliding_opt ::= */
|
|
|
|
|
-4, /* (593) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
|
|
|
-1, /* (594) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
|
|
|
-1, /* (595) interval_sliding_duration_literal ::= NK_STRING */
|
|
|
|
|
-1, /* (596) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
|
|
|
0, /* (597) fill_opt ::= */
|
|
|
|
|
-4, /* (598) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
|
|
|
-6, /* (599) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
|
|
|
-6, /* (600) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
|
|
|
-1, /* (601) fill_mode ::= NONE */
|
|
|
|
|
-1, /* (602) fill_mode ::= PREV */
|
|
|
|
|
-1, /* (603) fill_mode ::= NULL */
|
|
|
|
|
-1, /* (604) fill_mode ::= NULL_F */
|
|
|
|
|
-1, /* (605) fill_mode ::= LINEAR */
|
|
|
|
|
-1, /* (606) fill_mode ::= NEXT */
|
|
|
|
|
0, /* (607) group_by_clause_opt ::= */
|
|
|
|
|
-3, /* (608) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
|
|
|
-1, /* (609) group_by_list ::= expr_or_subquery */
|
|
|
|
|
-3, /* (610) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
|
|
|
0, /* (611) having_clause_opt ::= */
|
|
|
|
|
-2, /* (612) having_clause_opt ::= HAVING search_condition */
|
|
|
|
|
0, /* (613) range_opt ::= */
|
|
|
|
|
-6, /* (614) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
|
|
|
-4, /* (615) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
0, /* (616) every_opt ::= */
|
|
|
|
|
-4, /* (617) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
|
|
|
-4, /* (618) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
|
|
|
-1, /* (619) query_simple ::= query_specification */
|
|
|
|
|
-1, /* (620) query_simple ::= union_query_expression */
|
|
|
|
|
-4, /* (621) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
|
|
|
-3, /* (622) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
|
|
|
-1, /* (623) query_simple_or_subquery ::= query_simple */
|
|
|
|
|
-1, /* (624) query_simple_or_subquery ::= subquery */
|
|
|
|
|
-1, /* (625) query_or_subquery ::= query_expression */
|
|
|
|
|
-1, /* (626) query_or_subquery ::= subquery */
|
|
|
|
|
0, /* (627) order_by_clause_opt ::= */
|
|
|
|
|
-3, /* (628) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
|
|
|
0, /* (629) slimit_clause_opt ::= */
|
|
|
|
|
-2, /* (630) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
|
|
|
-4, /* (631) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
|
|
|
-4, /* (632) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
0, /* (633) limit_clause_opt ::= */
|
|
|
|
|
-2, /* (634) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
|
|
|
-4, /* (635) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
|
|
|
-4, /* (636) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
-3, /* (637) subquery ::= NK_LP query_expression NK_RP */
|
|
|
|
|
-3, /* (638) subquery ::= NK_LP subquery NK_RP */
|
|
|
|
|
-1, /* (639) search_condition ::= common_expression */
|
|
|
|
|
-1, /* (640) sort_specification_list ::= sort_specification */
|
|
|
|
|
-3, /* (641) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
|
|
|
-3, /* (642) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
|
|
|
0, /* (643) ordering_specification_opt ::= */
|
|
|
|
|
-1, /* (644) ordering_specification_opt ::= ASC */
|
|
|
|
|
-1, /* (645) ordering_specification_opt ::= DESC */
|
|
|
|
|
0, /* (646) null_ordering_opt ::= */
|
|
|
|
|
-2, /* (647) null_ordering_opt ::= NULLS FIRST */
|
|
|
|
|
-2, /* (648) null_ordering_opt ::= NULLS LAST */
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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 */
|
2022-01-23 12:34:16 +00:00
|
|
|
){
|
|
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
(void)yyLookahead;
|
|
|
|
|
(void)yyLookaheadToken;
|
|
|
|
|
yymsp = yypParser->yytos;
|
|
|
|
|
|
|
|
|
|
switch( yyruleno ){
|
|
|
|
|
/* Beginning here are the reduction cases. A typical example
|
|
|
|
|
** follows:
|
|
|
|
|
** case 0:
|
|
|
|
|
** #line <lineno> <grammarfile>
|
|
|
|
|
** { ... } // User supplied code
|
|
|
|
|
** #line <lineno> <thisfile>
|
|
|
|
|
** break;
|
|
|
|
|
*/
|
|
|
|
|
/********** Begin reduce actions **********************************************/
|
|
|
|
|
YYMINORTYPE yylhsminor;
|
2022-03-17 03:11:49 +00:00
|
|
|
case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
2022-04-29 01:53:53 +00:00
|
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
2024-02-04 08:04:23 +00:00
|
|
|
yy_destructor(yypParser,352,&yymsp[0].minor);
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2022-03-17 03:11:49 +00:00
|
|
|
case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
2022-04-29 01:53:53 +00:00
|
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
2024-02-04 08:04:23 +00:00
|
|
|
yy_destructor(yypParser,353,&yymsp[0].minor);
|
2022-03-17 03:11:49 +00:00
|
|
|
break;
|
|
|
|
|
case 2: /* account_options ::= */
|
|
|
|
|
{ }
|
|
|
|
|
break;
|
|
|
|
|
case 3: /* account_options ::= account_options PPS literal */
|
|
|
|
|
case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4);
|
|
|
|
|
case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5);
|
|
|
|
|
case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6);
|
|
|
|
|
case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7);
|
|
|
|
|
case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8);
|
|
|
|
|
case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9);
|
|
|
|
|
case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10);
|
|
|
|
|
case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yy_destructor(yypParser,352,&yymsp[-2].minor);
|
2022-03-16 11:28:40 +00:00
|
|
|
{ }
|
2024-02-04 08:04:23 +00:00
|
|
|
yy_destructor(yypParser,354,&yymsp[0].minor);
|
2022-03-16 11:28:40 +00:00
|
|
|
}
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2022-03-17 03:11:49 +00:00
|
|
|
case 12: /* alter_account_options ::= alter_account_option */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yy_destructor(yypParser,355,&yymsp[0].minor);
|
2022-03-16 11:28:40 +00:00
|
|
|
{ }
|
|
|
|
|
}
|
|
|
|
|
break;
|
2022-03-17 03:11:49 +00:00
|
|
|
case 13: /* alter_account_options ::= alter_account_options alter_account_option */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yy_destructor(yypParser,353,&yymsp[-1].minor);
|
2022-03-17 03:11:49 +00:00
|
|
|
{ }
|
2024-02-04 08:04:23 +00:00
|
|
|
yy_destructor(yypParser,355,&yymsp[0].minor);
|
2022-03-17 03:11:49 +00:00
|
|
|
}
|
|
|
|
|
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);
|
2022-03-16 11:28:40 +00:00
|
|
|
{ }
|
2024-02-04 08:04:23 +00:00
|
|
|
yy_destructor(yypParser,354,&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 */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy536 = yylhsminor.yy536;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = addNodeToList(pCxt, yymsp[-2].minor.yy536, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy536 = yylhsminor.yy536;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 26: /* white_list ::= HOST ip_range_list */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy536 = yymsp[0].minor.yy536; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 27: /* white_list_opt ::= */
|
2023-12-18 08:34:31 +00:00
|
|
|
case 188: /* specific_cols_opt ::= */ yytestcase(yyruleno==188);
|
|
|
|
|
case 219: /* tags_def_opt ::= */ yytestcase(yyruleno==219);
|
2024-01-18 09:49:11 +00:00
|
|
|
case 307: /* tag_list_opt ::= */ yytestcase(yyruleno==307);
|
|
|
|
|
case 373: /* col_list_opt ::= */ yytestcase(yyruleno==373);
|
|
|
|
|
case 375: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==375);
|
|
|
|
|
case 577: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==577);
|
2024-02-04 08:04:23 +00:00
|
|
|
case 607: /* group_by_clause_opt ::= */ yytestcase(yyruleno==607);
|
|
|
|
|
case 627: /* order_by_clause_opt ::= */ yytestcase(yyruleno==627);
|
|
|
|
|
{ yymsp[1].minor.yy536 = NULL; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 28: /* white_list_opt ::= white_list */
|
2023-12-18 08:34:31 +00:00
|
|
|
case 220: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==220);
|
2024-01-18 09:49:11 +00:00
|
|
|
case 376: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==376);
|
|
|
|
|
case 502: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==502);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = yymsp[0].minor.yy536; }
|
|
|
|
|
yymsp[0].minor.yy536 = yylhsminor.yy536;
|
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-09-19 10:44:27 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy929, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy695);
|
|
|
|
|
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy536);
|
2023-08-24 07:54:10 +00:00
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy929, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy929, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy929, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy929, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy536); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy929, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy536); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 35: /* cmd ::= DROP USER user_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy929); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 36: /* sysinfo_opt ::= */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy695 = 1; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy695 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy221, &yymsp[-3].minor.yy57, &yymsp[0].minor.yy929, yymsp[-2].minor.yy360); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy221, &yymsp[-3].minor.yy57, &yymsp[0].minor.yy929, yymsp[-2].minor.yy360); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 40: /* privileges ::= ALL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_ALL; }
|
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);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy221 = yymsp[0].minor.yy221; }
|
|
|
|
|
yymsp[0].minor.yy221 = yylhsminor.yy221;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 42: /* privileges ::= SUBSCRIBE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_SUBSCRIBE; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy221 = yymsp[-2].minor.yy221 | yymsp[0].minor.yy221; }
|
|
|
|
|
yymsp[-2].minor.yy221 = yylhsminor.yy221;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 45: /* priv_type ::= READ */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_READ; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 46: /* priv_type ::= WRITE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_WRITE; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 47: /* priv_type ::= ALTER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy221 = PRIVILEGE_TYPE_ALTER; }
|
2023-10-20 00:46:32 +00:00
|
|
|
break;
|
|
|
|
|
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy57.first = yymsp[-2].minor.yy0; yylhsminor.yy57.second = yymsp[0].minor.yy0; }
|
|
|
|
|
yymsp[-2].minor.yy57 = yylhsminor.yy57;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 49: /* priv_level ::= db_name NK_DOT NK_STAR */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy57.first = yymsp[-2].minor.yy929; yylhsminor.yy57.second = yymsp[0].minor.yy0; }
|
|
|
|
|
yymsp[-2].minor.yy57 = yylhsminor.yy57;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 50: /* priv_level ::= db_name NK_DOT table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy57.first = yymsp[-2].minor.yy929; yylhsminor.yy57.second = yymsp[0].minor.yy929; }
|
|
|
|
|
yymsp[-2].minor.yy57 = yylhsminor.yy57;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 51: /* priv_level ::= topic_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy57.first = yymsp[0].minor.yy929; yylhsminor.yy57.second = nil_token; }
|
|
|
|
|
yymsp[0].minor.yy57 = yylhsminor.yy57;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 52: /* with_opt ::= */
|
2023-12-18 08:34:31 +00:00
|
|
|
case 157: /* start_opt ::= */ yytestcase(yyruleno==157);
|
|
|
|
|
case 161: /* end_opt ::= */ yytestcase(yyruleno==161);
|
2024-01-18 09:49:11 +00:00
|
|
|
case 302: /* like_pattern_opt ::= */ yytestcase(yyruleno==302);
|
|
|
|
|
case 387: /* subtable_opt ::= */ yytestcase(yyruleno==387);
|
|
|
|
|
case 512: /* case_when_else_opt ::= */ yytestcase(yyruleno==512);
|
|
|
|
|
case 542: /* from_clause_opt ::= */ yytestcase(yyruleno==542);
|
|
|
|
|
case 575: /* where_clause_opt ::= */ yytestcase(yyruleno==575);
|
|
|
|
|
case 584: /* twindow_clause_opt ::= */ yytestcase(yyruleno==584);
|
2024-02-04 08:04:23 +00:00
|
|
|
case 592: /* sliding_opt ::= */ yytestcase(yyruleno==592);
|
|
|
|
|
case 597: /* fill_opt ::= */ yytestcase(yyruleno==597);
|
|
|
|
|
case 611: /* having_clause_opt ::= */ yytestcase(yyruleno==611);
|
|
|
|
|
case 613: /* range_opt ::= */ yytestcase(yyruleno==613);
|
|
|
|
|
case 616: /* every_opt ::= */ yytestcase(yyruleno==616);
|
|
|
|
|
case 629: /* slimit_clause_opt ::= */ yytestcase(yyruleno==629);
|
|
|
|
|
case 633: /* limit_clause_opt ::= */ yytestcase(yyruleno==633);
|
|
|
|
|
{ yymsp[1].minor.yy360 = NULL; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 53: /* with_opt ::= WITH search_condition */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 543: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==543);
|
|
|
|
|
case 576: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==576);
|
2024-02-04 08:04:23 +00:00
|
|
|
case 612: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==612);
|
|
|
|
|
{ yymsp[-1].minor.yy360 = yymsp[0].minor.yy360; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 54: /* cmd ::= CREATE DNODE dnode_endpoint */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy929, NULL); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy345, false); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy929, yymsp[0].minor.yy345, false); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy345); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy929, false, yymsp[0].minor.yy345); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */
|
2023-05-09 11:19:14 +00:00
|
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 65: /* dnode_endpoint ::= NK_STRING */
|
|
|
|
|
case 66: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==66);
|
|
|
|
|
case 67: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==67);
|
2024-01-18 09:49:11 +00:00
|
|
|
case 329: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==329);
|
|
|
|
|
case 330: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==330);
|
|
|
|
|
case 331: /* sma_func_name ::= LAST */ yytestcase(yyruleno==331);
|
|
|
|
|
case 332: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==332);
|
|
|
|
|
case 434: /* db_name ::= NK_ID */ yytestcase(yyruleno==434);
|
|
|
|
|
case 435: /* table_name ::= NK_ID */ yytestcase(yyruleno==435);
|
|
|
|
|
case 436: /* column_name ::= NK_ID */ yytestcase(yyruleno==436);
|
|
|
|
|
case 437: /* function_name ::= NK_ID */ yytestcase(yyruleno==437);
|
|
|
|
|
case 438: /* view_name ::= NK_ID */ yytestcase(yyruleno==438);
|
|
|
|
|
case 439: /* table_alias ::= NK_ID */ yytestcase(yyruleno==439);
|
|
|
|
|
case 440: /* column_alias ::= NK_ID */ yytestcase(yyruleno==440);
|
|
|
|
|
case 441: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==441);
|
|
|
|
|
case 442: /* user_name ::= NK_ID */ yytestcase(yyruleno==442);
|
|
|
|
|
case 443: /* topic_name ::= NK_ID */ yytestcase(yyruleno==443);
|
|
|
|
|
case 444: /* stream_name ::= NK_ID */ yytestcase(yyruleno==444);
|
|
|
|
|
case 445: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==445);
|
|
|
|
|
case 446: /* index_name ::= NK_ID */ yytestcase(yyruleno==446);
|
|
|
|
|
case 488: /* noarg_func ::= NOW */ yytestcase(yyruleno==488);
|
|
|
|
|
case 489: /* noarg_func ::= TODAY */ yytestcase(yyruleno==489);
|
|
|
|
|
case 490: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==490);
|
|
|
|
|
case 491: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==491);
|
|
|
|
|
case 492: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==492);
|
|
|
|
|
case 493: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==493);
|
|
|
|
|
case 494: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==494);
|
|
|
|
|
case 495: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==495);
|
|
|
|
|
case 496: /* noarg_func ::= USER */ yytestcase(yyruleno==496);
|
|
|
|
|
case 497: /* star_func ::= COUNT */ yytestcase(yyruleno==497);
|
|
|
|
|
case 498: /* star_func ::= FIRST */ yytestcase(yyruleno==498);
|
|
|
|
|
case 499: /* star_func ::= LAST */ yytestcase(yyruleno==499);
|
|
|
|
|
case 500: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==500);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy929 = yymsp[0].minor.yy0; }
|
|
|
|
|
yymsp[0].minor.yy929 = yylhsminor.yy929;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 68: /* force_opt ::= */
|
2023-12-18 08:34:31 +00:00
|
|
|
case 94: /* not_exists_opt ::= */ yytestcase(yyruleno==94);
|
|
|
|
|
case 96: /* exists_opt ::= */ yytestcase(yyruleno==96);
|
2024-01-18 09:49:11 +00:00
|
|
|
case 350: /* analyze_opt ::= */ yytestcase(yyruleno==350);
|
|
|
|
|
case 357: /* agg_func_opt ::= */ yytestcase(yyruleno==357);
|
|
|
|
|
case 363: /* or_replace_opt ::= */ yytestcase(yyruleno==363);
|
|
|
|
|
case 389: /* ignore_opt ::= */ yytestcase(yyruleno==389);
|
|
|
|
|
case 563: /* tag_mode_opt ::= */ yytestcase(yyruleno==563);
|
|
|
|
|
case 565: /* set_quantifier_opt ::= */ yytestcase(yyruleno==565);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy345 = false; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 69: /* force_opt ::= FORCE */
|
|
|
|
|
case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70);
|
2024-01-18 09:49:11 +00:00
|
|
|
case 351: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==351);
|
|
|
|
|
case 358: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==358);
|
|
|
|
|
case 564: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==564);
|
|
|
|
|
case 566: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==566);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy345 = true; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
|
|
|
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
|
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
|
|
|
|
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
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 */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-16 06:08:59 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
2023-05-09 11:19:14 +00:00
|
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
|
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 */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
|
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 */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-01 02:13:22 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
2023-05-09 11:19:14 +00:00
|
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
2023-05-09 11:19:14 +00:00
|
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
|
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 */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy345, &yymsp[-1].minor.yy929, yymsp[0].minor.yy360); }
|
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 */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy929); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 88: /* cmd ::= USE db_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy929); }
|
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 */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy929, yymsp[0].minor.yy360); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 90: /* cmd ::= FLUSH DATABASE db_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy929); }
|
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 */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy929, yymsp[0].minor.yy580); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 92: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy929, yymsp[-1].minor.yy360, yymsp[0].minor.yy360); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 93: /* not_exists_opt ::= IF NOT EXISTS */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-2].minor.yy345 = true; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 95: /* exists_opt ::= IF EXISTS */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 364: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==364);
|
|
|
|
|
case 390: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==390);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy345 = true; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 97: /* db_options ::= */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy360 = createDefaultDatabaseOptions(pCxt); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 98: /* db_options ::= db_options BUFFER NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 99: /* db_options ::= db_options CACHEMODEL NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 100: /* db_options ::= db_options CACHESIZE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 101: /* db_options ::= db_options COMP NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 102: /* db_options ::= db_options DURATION NK_INTEGER */
|
|
|
|
|
case 103: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==103);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 104: /* db_options ::= db_options MAXROWS NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 105: /* db_options ::= db_options MINROWS NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 106: /* db_options ::= db_options KEEP integer_list */
|
|
|
|
|
case 107: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==107);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_KEEP, yymsp[0].minor.yy536); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 108: /* db_options ::= db_options PAGES NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 109: /* db_options ::= db_options PAGESIZE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 110: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 111: /* db_options ::= db_options PRECISION NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 112: /* db_options ::= db_options REPLICA NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 113: /* db_options ::= db_options VGROUPS NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 114: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 115: /* db_options ::= db_options RETENTIONS retention_list */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_RETENTIONS, yymsp[0].minor.yy536); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 116: /* db_options ::= db_options SCHEMALESS NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 117: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 118: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 119: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 120: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
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;
|
2024-02-04 08:04:23 +00:00
|
|
|
yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-3].minor.yy360, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
2022-07-25 13:09:06 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2022-07-25 13:09:06 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 121: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-07-25 13:09:06 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 122: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
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;
|
2024-02-04 08:04:23 +00:00
|
|
|
yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-3].minor.yy360, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
2022-07-25 13:09:06 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 123: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 124: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 125: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 126: /* db_options ::= db_options TABLE_PREFIX signed */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 127: /* db_options ::= db_options TABLE_SUFFIX signed */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 128: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setDatabaseOption(pCxt, yymsp[-2].minor.yy360, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 129: /* alter_db_options ::= alter_db_option */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterDatabaseOptions(pCxt); yylhsminor.yy360 = setAlterDatabaseOption(pCxt, yylhsminor.yy360, &yymsp[0].minor.yy797); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 130: /* alter_db_options ::= alter_db_options alter_db_option */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy360, &yymsp[0].minor.yy797); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 131: /* alter_db_option ::= BUFFER NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 132: /* alter_db_option ::= CACHEMODEL NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 133: /* alter_db_option ::= CACHESIZE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 134: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 135: /* alter_db_option ::= KEEP integer_list */
|
|
|
|
|
case 136: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==136);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_KEEP; yymsp[-1].minor.yy797.pList = yymsp[0].minor.yy536; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 137: /* alter_db_option ::= PAGES NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_PAGES; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 138: /* alter_db_option ::= REPLICA NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 139: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_WAL; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 140: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 141: /* alter_db_option ::= MINROWS NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 142: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 143: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
2023-03-21 08:45:19 +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;
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy797.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy797.val = t;
|
2023-03-21 08:45:19 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 144: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-03-21 08:45:19 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 145: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
2023-03-21 08:45:19 +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;
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy797.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy797.val = t;
|
2023-03-21 08:45:19 +00:00
|
|
|
}
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 146: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 147: /* integer_list ::= NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy536 = yylhsminor.yy536;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 148: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 403: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==403);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = addNodeToList(pCxt, yymsp[-2].minor.yy536, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy536 = yylhsminor.yy536;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 149: /* variable_list ::= NK_VARIABLE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy536 = yylhsminor.yy536;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 150: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = addNodeToList(pCxt, yymsp[-2].minor.yy536, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy536 = yylhsminor.yy536;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 151: /* retention_list ::= retention */
|
|
|
|
|
case 182: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==182);
|
|
|
|
|
case 185: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==185);
|
|
|
|
|
case 192: /* column_def_list ::= column_def */ yytestcase(yyruleno==192);
|
|
|
|
|
case 236: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==236);
|
|
|
|
|
case 241: /* col_name_list ::= col_name */ yytestcase(yyruleno==241);
|
2024-01-18 09:49:11 +00:00
|
|
|
case 308: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==308);
|
|
|
|
|
case 325: /* func_list ::= func */ yytestcase(yyruleno==325);
|
|
|
|
|
case 432: /* literal_list ::= signed_literal */ yytestcase(yyruleno==432);
|
|
|
|
|
case 503: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==503);
|
|
|
|
|
case 509: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==509);
|
|
|
|
|
case 568: /* select_list ::= select_item */ yytestcase(yyruleno==568);
|
|
|
|
|
case 579: /* partition_list ::= partition_item */ yytestcase(yyruleno==579);
|
2024-02-04 08:04:23 +00:00
|
|
|
case 640: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==640);
|
|
|
|
|
{ yylhsminor.yy536 = createNodeList(pCxt, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[0].minor.yy536 = yylhsminor.yy536;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 152: /* retention_list ::= retention_list NK_COMMA retention */
|
|
|
|
|
case 186: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==186);
|
|
|
|
|
case 193: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==193);
|
|
|
|
|
case 237: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==237);
|
|
|
|
|
case 242: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==242);
|
2024-01-18 09:49:11 +00:00
|
|
|
case 309: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==309);
|
|
|
|
|
case 326: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==326);
|
|
|
|
|
case 433: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==433);
|
|
|
|
|
case 504: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==504);
|
|
|
|
|
case 569: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==569);
|
|
|
|
|
case 580: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==580);
|
2024-02-04 08:04:23 +00:00
|
|
|
case 641: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==641);
|
|
|
|
|
{ yylhsminor.yy536 = addNodeToList(pCxt, yymsp[-2].minor.yy536, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-2].minor.yy536 = yylhsminor.yy536;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 153: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
|
|
|
case 154: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==154);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 155: /* speed_opt ::= */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 359: /* bufsize_opt ::= */ yytestcase(yyruleno==359);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy580 = 0; }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 156: /* speed_opt ::= BWLIMIT NK_INTEGER */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 360: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==360);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy580 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 158: /* start_opt ::= START WITH NK_INTEGER */
|
|
|
|
|
case 162: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==162);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-2].minor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 159: /* start_opt ::= START WITH NK_STRING */
|
|
|
|
|
case 163: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==163);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-2].minor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 160: /* start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
|
|
|
case 164: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==164);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 165: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
|
|
|
case 167: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==167);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy345, yymsp[-5].minor.yy360, yymsp[-3].minor.yy536, yymsp[-1].minor.yy536, yymsp[0].minor.yy360); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 166: /* cmd ::= CREATE TABLE multi_create_clause */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy536); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 168: /* cmd ::= DROP TABLE multi_drop_clause */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy536); }
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 169: /* cmd ::= DROP STABLE exists_opt full_table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy345, yymsp[0].minor.yy360); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 170: /* cmd ::= ALTER TABLE alter_table_clause */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 405: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==405);
|
|
|
|
|
case 406: /* cmd ::= insert_query */ yytestcase(yyruleno==406);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy360; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 171: /* cmd ::= ALTER STABLE alter_table_clause */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy360); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 172: /* alter_table_clause ::= full_table_name alter_table_options */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy360, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 173: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy360, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy929, yymsp[0].minor.yy912); }
|
|
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 174: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy360, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 175: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy360, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy929, yymsp[0].minor.yy912); }
|
|
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 176: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy360, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy929, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 177: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy360, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy929, yymsp[0].minor.yy912); }
|
|
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 178: /* alter_table_clause ::= full_table_name DROP TAG column_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy360, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 179: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy360, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy929, yymsp[0].minor.yy912); }
|
|
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 180: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy360, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy929, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 181: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy360, &yymsp[-2].minor.yy929, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-5].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 183: /* multi_create_clause ::= multi_create_clause create_subtable_clause */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 510: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==510);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = addNodeToList(pCxt, yymsp[-1].minor.yy536, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-1].minor.yy536 = yylhsminor.yy536;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 184: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy345, yymsp[-8].minor.yy360, yymsp[-6].minor.yy360, yymsp[-5].minor.yy536, yymsp[-2].minor.yy536, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-9].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 187: /* drop_table_clause ::= exists_opt full_table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createDropTableClause(pCxt, yymsp[-1].minor.yy345, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 189: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 374: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==374);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-2].minor.yy536 = yymsp[-1].minor.yy536; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 190: /* full_table_name ::= table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy929, NULL); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 191: /* full_table_name ::= db_name NK_DOT table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRealTableNode(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy929, NULL); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 194: /* column_def ::= column_name type_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy929, yymsp[0].minor.yy912, NULL); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 195: /* type_name ::= BOOL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_BOOL); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 196: /* type_name ::= TINYINT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_TINYINT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 197: /* type_name ::= SMALLINT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 198: /* type_name ::= INT */
|
|
|
|
|
case 199: /* type_name ::= INTEGER */ yytestcase(yyruleno==199);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_INT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 200: /* type_name ::= BIGINT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_BIGINT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 201: /* type_name ::= FLOAT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_FLOAT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 202: /* type_name ::= DOUBLE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 203: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy912 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 204: /* type_name ::= TIMESTAMP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 205: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy912 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 206: /* type_name ::= TINYINT UNSIGNED */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy912 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 207: /* type_name ::= SMALLINT UNSIGNED */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy912 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 208: /* type_name ::= INT UNSIGNED */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy912 = createDataType(TSDB_DATA_TYPE_UINT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 209: /* type_name ::= BIGINT UNSIGNED */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy912 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 210: /* type_name ::= JSON */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_JSON); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 211: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy912 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 212: /* type_name ::= MEDIUMBLOB */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 213: /* type_name ::= BLOB */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_BLOB); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 214: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy912 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 215: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy912 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 216: /* type_name ::= DECIMAL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy912 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 217: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy912 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 218: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-5].minor.yy912 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 221: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 377: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==377);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy536 = yymsp[-1].minor.yy536; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 222: /* table_options ::= */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy360 = createDefaultTableOptions(pCxt); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 223: /* table_options ::= table_options COMMENT NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setTableOption(pCxt, yymsp[-2].minor.yy360, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 224: /* table_options ::= table_options MAX_DELAY duration_list */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setTableOption(pCxt, yymsp[-2].minor.yy360, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy536); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 225: /* table_options ::= table_options WATERMARK duration_list */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setTableOption(pCxt, yymsp[-2].minor.yy360, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy536); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 226: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setTableOption(pCxt, yymsp[-4].minor.yy360, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy536); }
|
|
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 227: /* table_options ::= table_options TTL NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setTableOption(pCxt, yymsp[-2].minor.yy360, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 228: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setTableOption(pCxt, yymsp[-4].minor.yy360, TABLE_OPTION_SMA, yymsp[-1].minor.yy536); }
|
|
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 229: /* table_options ::= table_options DELETE_MARK duration_list */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setTableOption(pCxt, yymsp[-2].minor.yy360, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy536); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 230: /* alter_table_options ::= alter_table_option */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createAlterTableOptions(pCxt); yylhsminor.yy360 = setTableOption(pCxt, yylhsminor.yy360, yymsp[0].minor.yy797.type, &yymsp[0].minor.yy797.val); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 231: /* alter_table_options ::= alter_table_options alter_table_option */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setTableOption(pCxt, yymsp[-1].minor.yy360, yymsp[0].minor.yy797.type, &yymsp[0].minor.yy797.val); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 232: /* alter_table_option ::= COMMENT NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 233: /* alter_table_option ::= TTL NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy797.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy797.val = yymsp[0].minor.yy0; }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 234: /* duration_list ::= duration_literal */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 464: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==464);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy360)); }
|
|
|
|
|
yymsp[0].minor.yy536 = yylhsminor.yy536;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 235: /* duration_list ::= duration_list NK_COMMA duration_literal */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 465: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==465);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = addNodeToList(pCxt, yymsp[-2].minor.yy536, releaseRawExprNode(pCxt, yymsp[0].minor.yy360)); }
|
|
|
|
|
yymsp[-2].minor.yy536 = yylhsminor.yy536;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 238: /* rollup_func_name ::= function_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createFunctionNode(pCxt, &yymsp[0].minor.yy929, NULL); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 239: /* rollup_func_name ::= FIRST */
|
|
|
|
|
case 240: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==240);
|
2024-01-18 09:49:11 +00:00
|
|
|
case 311: /* tag_item ::= QTAGS */ yytestcase(yyruleno==311);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 243: /* col_name ::= column_name */
|
2024-01-18 09:49:11 +00:00
|
|
|
case 312: /* tag_item ::= column_name */ yytestcase(yyruleno==312);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 244: /* cmd ::= SHOW DNODES */
|
2023-01-31 06:25:13 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
|
2022-11-30 11:24:15 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 245: /* cmd ::= SHOW USERS */
|
2023-01-31 06:25:13 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
|
2022-11-30 11:24:15 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 246: /* cmd ::= SHOW USER PRIVILEGES */
|
2023-01-31 06:25:13 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
|
2022-11-30 11:24:15 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 247: /* cmd ::= SHOW db_kind_opt DATABASES */
|
2023-09-19 08:14:17 +00:00
|
|
|
{
|
|
|
|
|
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
|
2024-02-04 08:04:23 +00:00
|
|
|
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy321);
|
2023-09-19 08:14:17 +00:00
|
|
|
}
|
2022-11-30 11:24:15 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 248: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
2023-09-19 08:14:17 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy1005, yymsp[0].minor.yy360, OP_TYPE_LIKE);
|
2023-09-19 08:14:17 +00:00
|
|
|
}
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 249: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy360, yymsp[0].minor.yy360, OP_TYPE_LIKE); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 250: /* cmd ::= SHOW db_name_cond_opt VGROUPS */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy360, NULL, OP_TYPE_LIKE); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 251: /* cmd ::= SHOW MNODES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 252: /* cmd ::= SHOW QNODES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 253: /* cmd ::= SHOW FUNCTIONS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 254: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy360, yymsp[-1].minor.yy360, OP_TYPE_EQUAL); }
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 255: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy929), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy929), OP_TYPE_EQUAL); }
|
2023-07-12 03:06:47 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 256: /* cmd ::= SHOW STREAMS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
|
2022-03-08 09:25:26 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 257: /* cmd ::= SHOW ACCOUNTS */
|
2022-04-29 01:53:53 +00:00
|
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 258: /* cmd ::= SHOW APPS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 259: /* cmd ::= SHOW CONNECTIONS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 260: /* cmd ::= SHOW LICENCES */
|
|
|
|
|
case 261: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==261);
|
2022-08-11 07:37:26 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 07:23:38 +00:00
|
|
|
case 262: /* cmd ::= SHOW GRANTS FULL */
|
|
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); }
|
|
|
|
|
break;
|
2024-01-31 05:44:00 +00:00
|
|
|
case 263: /* cmd ::= SHOW GRANTS LOGS */
|
2024-01-31 05:52:03 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); }
|
2024-01-18 07:23:38 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 264: /* cmd ::= SHOW CLUSTER MACHINES */
|
|
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 265: /* cmd ::= SHOW CREATE DATABASE db_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy929); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 266: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy360); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 267: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy360); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 268: /* cmd ::= SHOW QUERIES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 269: /* cmd ::= SHOW SCORES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 270: /* cmd ::= SHOW TOPICS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 271: /* cmd ::= SHOW VARIABLES */
|
|
|
|
|
case 272: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==272);
|
2022-06-20 12:36:15 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
|
2022-03-28 09:08:48 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 273: /* cmd ::= SHOW LOCAL VARIABLES */
|
2022-06-20 12:36:15 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 274: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy360); }
|
2022-06-20 12:36:15 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 275: /* cmd ::= SHOW BNODES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
2022-04-09 06:57:28 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 276: /* cmd ::= SHOW SNODES */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
2022-04-09 06:57:28 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 277: /* cmd ::= SHOW CLUSTER */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
|
2022-04-20 09:43:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 278: /* cmd ::= SHOW TRANSACTIONS */
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 279: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy360); }
|
2022-03-28 09:08:48 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 280: /* cmd ::= SHOW CONSUMERS */
|
2022-06-23 10:03:15 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
|
2022-05-25 13:20:11 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 281: /* cmd ::= SHOW SUBSCRIPTIONS */
|
2022-06-23 10:03:15 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 282: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy360, yymsp[-1].minor.yy360, OP_TYPE_EQUAL); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 283: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy929), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy929), OP_TYPE_EQUAL); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 284: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy360, yymsp[0].minor.yy360, yymsp[-3].minor.yy536); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 285: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy929), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy929), yymsp[-4].minor.yy536); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 286: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
2022-09-01 11:01:37 +00:00
|
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 287: /* cmd ::= SHOW VNODES */
|
2023-08-16 07:55:34 +00:00
|
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
|
2022-07-19 07:31:44 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 288: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy360, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
2022-12-29 10:07:57 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 289: /* cmd ::= SHOW CLUSTER ALIVE */
|
2022-12-29 10:07:57 +00:00
|
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-02-19 05:10:27 +00:00
|
|
|
case 290: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
|
2024-02-19 10:30:12 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy360, yymsp[0].minor.yy360, OP_TYPE_LIKE); }
|
2023-10-09 10:34:08 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 291: /* cmd ::= SHOW CREATE VIEW full_table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 292: /* cmd ::= SHOW COMPACTS */
|
2023-11-23 07:26:21 +00:00
|
|
|
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 293: /* cmd ::= SHOW COMPACT NK_INTEGER */
|
2023-11-23 07:26:21 +00:00
|
|
|
{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 294: /* table_kind_db_name_cond_opt ::= */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy1005.kind = SHOW_KIND_ALL; yymsp[1].minor.yy1005.dbName = nil_token; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 295: /* table_kind_db_name_cond_opt ::= table_kind */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy1005.kind = yymsp[0].minor.yy321; yylhsminor.yy1005.dbName = nil_token; }
|
|
|
|
|
yymsp[0].minor.yy1005 = yylhsminor.yy1005;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 296: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy1005.kind = SHOW_KIND_ALL; yylhsminor.yy1005.dbName = yymsp[-1].minor.yy929; }
|
|
|
|
|
yymsp[-1].minor.yy1005 = yylhsminor.yy1005;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 297: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy1005.kind = yymsp[-2].minor.yy321; yylhsminor.yy1005.dbName = yymsp[-1].minor.yy929; }
|
|
|
|
|
yymsp[-2].minor.yy1005 = yylhsminor.yy1005;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 298: /* table_kind ::= NORMAL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy321 = SHOW_KIND_TABLES_NORMAL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 299: /* table_kind ::= CHILD */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy321 = SHOW_KIND_TABLES_CHILD; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 300: /* db_name_cond_opt ::= */
|
|
|
|
|
case 305: /* from_db_opt ::= */ yytestcase(yyruleno==305);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy360 = createDefaultDatabaseCondValue(pCxt); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 301: /* db_name_cond_opt ::= db_name NK_DOT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy929); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 303: /* like_pattern_opt ::= LIKE NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 304: /* table_name_cond ::= table_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 306: /* from_db_opt ::= FROM db_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy360 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy929); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 310: /* tag_item ::= TBNAME */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 313: /* tag_item ::= column_name column_alias */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy929), &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 314: /* tag_item ::= column_name AS column_alias */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy929), &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 315: /* db_kind_opt ::= */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy321 = SHOW_KIND_ALL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 316: /* db_kind_opt ::= USER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy321 = SHOW_KIND_DATABASES_USER; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 317: /* db_kind_opt ::= SYSTEM */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy321 = SHOW_KIND_DATABASES_SYSTEM; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 318: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy345, yymsp[-3].minor.yy360, yymsp[-1].minor.yy360, NULL, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 319: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy345, yymsp[-5].minor.yy360, yymsp[-3].minor.yy360, yymsp[-1].minor.yy536, NULL); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 320: /* cmd ::= DROP INDEX exists_opt full_index_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy345, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 321: /* full_index_name ::= index_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 322: /* full_index_name ::= db_name NK_DOT index_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 323: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-9].minor.yy360 = createIndexOption(pCxt, yymsp[-7].minor.yy536, releaseRawExprNode(pCxt, yymsp[-3].minor.yy360), NULL, yymsp[-1].minor.yy360, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 324: /* 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 */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-11].minor.yy360 = createIndexOption(pCxt, yymsp[-9].minor.yy536, releaseRawExprNode(pCxt, yymsp[-5].minor.yy360), releaseRawExprNode(pCxt, yymsp[-3].minor.yy360), yymsp[-1].minor.yy360, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 327: /* func ::= sma_func_name NK_LP expression_list NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createFunctionNode(pCxt, &yymsp[-3].minor.yy929, yymsp[-1].minor.yy536); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 328: /* sma_func_name ::= function_name */
|
|
|
|
|
case 553: /* alias_opt ::= table_alias */ yytestcase(yyruleno==553);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy929 = yymsp[0].minor.yy929; }
|
|
|
|
|
yymsp[0].minor.yy929 = yylhsminor.yy929;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 333: /* sma_stream_opt ::= */
|
|
|
|
|
case 378: /* stream_options ::= */ yytestcase(yyruleno==378);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy360 = createStreamOptions(pCxt); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 334: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy360)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy360); yylhsminor.yy360 = yymsp[-2].minor.yy360; }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 335: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy360)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy360); yylhsminor.yy360 = yymsp[-2].minor.yy360; }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 336: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy360)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy360); yylhsminor.yy360 = yymsp[-2].minor.yy360; }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 337: /* with_meta ::= AS */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy580 = 0; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 338: /* with_meta ::= WITH META AS */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-2].minor.yy580 = 1; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 339: /* with_meta ::= ONLY META AS */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-2].minor.yy580 = 2; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 340: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy345, &yymsp[-2].minor.yy929, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 341: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy345, &yymsp[-3].minor.yy929, &yymsp[0].minor.yy929, yymsp[-2].minor.yy580); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 342: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy345, &yymsp[-4].minor.yy929, yymsp[-1].minor.yy360, yymsp[-3].minor.yy580, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 343: /* cmd ::= DROP TOPIC exists_opt topic_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy929); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 344: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy345, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy929); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 345: /* cmd ::= DESC full_table_name */
|
|
|
|
|
case 346: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==346);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 347: /* cmd ::= RESET QUERY CACHE */
|
2022-06-23 10:03:15 +00:00
|
|
|
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 348: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
|
|
|
case 349: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==349);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy345, yymsp[-1].minor.yy360, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 352: /* explain_options ::= */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy360 = createDefaultExplainOptions(pCxt); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 353: /* explain_options ::= explain_options VERBOSE NK_BOOL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setExplainVerbose(pCxt, yymsp[-2].minor.yy360, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 354: /* explain_options ::= explain_options RATIO NK_FLOAT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setExplainRatio(pCxt, yymsp[-2].minor.yy360, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 355: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy345, yymsp[-9].minor.yy345, &yymsp[-6].minor.yy929, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy912, yymsp[-1].minor.yy580, &yymsp[0].minor.yy929, yymsp[-10].minor.yy345); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 356: /* cmd ::= DROP FUNCTION exists_opt function_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy929); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 361: /* language_opt ::= */
|
|
|
|
|
case 400: /* on_vgroup_id ::= */ yytestcase(yyruleno==400);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy929 = nil_token; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 362: /* language_opt ::= LANGUAGE NK_STRING */
|
|
|
|
|
case 401: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==401);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy929 = yymsp[0].minor.yy0; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 365: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy345, yymsp[-2].minor.yy360, &yymsp[-1].minor.yy0, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 366: /* cmd ::= DROP VIEW exists_opt full_view_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy345, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 367: /* full_view_name ::= view_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 368: /* full_view_name ::= db_name NK_DOT view_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createViewNode(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 369: /* 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 */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy345, &yymsp[-8].minor.yy929, yymsp[-5].minor.yy360, yymsp[-7].minor.yy360, yymsp[-3].minor.yy536, yymsp[-2].minor.yy360, yymsp[0].minor.yy360, yymsp[-4].minor.yy536); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 370: /* cmd ::= DROP STREAM exists_opt stream_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy929); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 371: /* cmd ::= PAUSE STREAM exists_opt stream_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy345, &yymsp[0].minor.yy929); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 372: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy345, yymsp[-1].minor.yy345, &yymsp[0].minor.yy929); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 379: /* stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
|
|
|
case 380: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==380);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setStreamOptions(pCxt, yymsp[-2].minor.yy360, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 381: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setStreamOptions(pCxt, yymsp[-3].minor.yy360, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy360)); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 382: /* stream_options ::= stream_options WATERMARK duration_literal */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setStreamOptions(pCxt, yymsp[-2].minor.yy360, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy360)); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 383: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setStreamOptions(pCxt, yymsp[-3].minor.yy360, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 384: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setStreamOptions(pCxt, yymsp[-2].minor.yy360, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 385: /* stream_options ::= stream_options DELETE_MARK duration_literal */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setStreamOptions(pCxt, yymsp[-2].minor.yy360, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy360)); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 386: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setStreamOptions(pCxt, yymsp[-3].minor.yy360, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 388: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
case 593: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==593);
|
|
|
|
|
case 617: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==617);
|
|
|
|
|
{ yymsp[-3].minor.yy360 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 391: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
2022-04-01 08:31:24 +00:00
|
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 392: /* cmd ::= KILL QUERY NK_STRING */
|
2022-06-15 05:49:29 +00:00
|
|
|
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 393: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
2022-05-07 09:37:17 +00:00
|
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 394: /* cmd ::= KILL COMPACT NK_INTEGER */
|
2023-11-16 03:41:02 +00:00
|
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 395: /* cmd ::= BALANCE VGROUP */
|
2023-03-22 01:53:56 +00:00
|
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 396: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy929); }
|
2022-06-07 03:53:32 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 397: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
2022-04-01 08:31:24 +00:00
|
|
|
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
|
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 398: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy536); }
|
2022-06-10 06:28:58 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 399: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
2022-06-10 06:28:58 +00:00
|
|
|
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 402: /* dnode_list ::= DNODE NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy536 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 404: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy360, yymsp[0].minor.yy360); }
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 407: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-6].minor.yy360 = createInsertStmt(pCxt, yymsp[-4].minor.yy360, yymsp[-2].minor.yy536, yymsp[0].minor.yy360); }
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 408: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy360 = createInsertStmt(pCxt, yymsp[-1].minor.yy360, NULL, yymsp[0].minor.yy360); }
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 409: /* literal ::= NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 410: /* literal ::= NK_FLOAT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 411: /* literal ::= NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 412: /* literal ::= NK_BOOL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 413: /* literal ::= TIMESTAMP NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 414: /* literal ::= duration_literal */
|
|
|
|
|
case 424: /* signed_literal ::= signed */ yytestcase(yyruleno==424);
|
|
|
|
|
case 447: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==447);
|
|
|
|
|
case 448: /* expression ::= literal */ yytestcase(yyruleno==448);
|
|
|
|
|
case 450: /* expression ::= column_reference */ yytestcase(yyruleno==450);
|
|
|
|
|
case 451: /* expression ::= function_expression */ yytestcase(yyruleno==451);
|
|
|
|
|
case 452: /* expression ::= case_when_expression */ yytestcase(yyruleno==452);
|
|
|
|
|
case 485: /* function_expression ::= literal_func */ yytestcase(yyruleno==485);
|
|
|
|
|
case 534: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==534);
|
|
|
|
|
case 538: /* boolean_primary ::= predicate */ yytestcase(yyruleno==538);
|
|
|
|
|
case 540: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==540);
|
|
|
|
|
case 541: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==541);
|
|
|
|
|
case 544: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==544);
|
|
|
|
|
case 546: /* table_reference ::= table_primary */ yytestcase(yyruleno==546);
|
|
|
|
|
case 547: /* table_reference ::= joined_table */ yytestcase(yyruleno==547);
|
|
|
|
|
case 551: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==551);
|
2024-02-04 08:04:23 +00:00
|
|
|
case 619: /* query_simple ::= query_specification */ yytestcase(yyruleno==619);
|
|
|
|
|
case 620: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==620);
|
|
|
|
|
case 623: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==623);
|
|
|
|
|
case 625: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==625);
|
|
|
|
|
{ yylhsminor.yy360 = yymsp[0].minor.yy360; }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 415: /* literal ::= NULL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 416: /* literal ::= NK_QUESTION */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 417: /* duration_literal ::= NK_VARIABLE */
|
2024-02-04 08:04:23 +00:00
|
|
|
case 594: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==594);
|
|
|
|
|
case 595: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==595);
|
|
|
|
|
case 596: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==596);
|
|
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 418: /* signed ::= NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 419: /* signed ::= NK_PLUS NK_INTEGER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 420: /* signed ::= NK_MINUS NK_INTEGER */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
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;
|
2024-02-04 08:04:23 +00:00
|
|
|
yylhsminor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
2022-03-22 06:09:15 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 421: /* signed ::= NK_FLOAT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 422: /* signed ::= NK_PLUS NK_FLOAT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 423: /* signed ::= NK_MINUS NK_FLOAT */
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
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;
|
2024-02-04 08:04:23 +00:00
|
|
|
yylhsminor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
2022-03-22 06:09:15 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 425: /* signed_literal ::= NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 426: /* signed_literal ::= NK_BOOL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 427: /* signed_literal ::= TIMESTAMP NK_STRING */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 428: /* signed_literal ::= duration_literal */
|
|
|
|
|
case 430: /* signed_literal ::= literal_func */ yytestcase(yyruleno==430);
|
|
|
|
|
case 505: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==505);
|
|
|
|
|
case 571: /* select_item ::= common_expression */ yytestcase(yyruleno==571);
|
|
|
|
|
case 581: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==581);
|
2024-02-04 08:04:23 +00:00
|
|
|
case 624: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==624);
|
|
|
|
|
case 626: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==626);
|
|
|
|
|
case 639: /* search_condition ::= common_expression */ yytestcase(yyruleno==639);
|
|
|
|
|
{ yylhsminor.yy360 = releaseRawExprNode(pCxt, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 429: /* signed_literal ::= NULL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 431: /* signed_literal ::= NK_QUESTION */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 449: /* expression ::= pseudo_column */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = yymsp[0].minor.yy360; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy360, true); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 453: /* expression ::= NK_LP expression NK_RP */
|
|
|
|
|
case 539: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==539);
|
2024-02-04 08:04:23 +00:00
|
|
|
case 638: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==638);
|
|
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy360)); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 454: /* expression ::= NK_PLUS expr_or_subquery */
|
2022-06-22 08:35:14 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy360));
|
2022-06-22 08:35:14 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2022-06-22 08:35:14 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 455: /* expression ::= NK_MINUS expr_or_subquery */
|
2022-06-22 08:35:14 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy360), NULL));
|
2022-06-22 08:35:14 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2022-04-13 04:38:57 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 456: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
2022-04-15 10:30:01 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-04-15 10:30:01 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-03-22 06:09:15 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 457: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 458: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 459: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 460: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 461: /* expression ::= column_reference NK_ARROW NK_STRING */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 462: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 463: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 466: /* column_reference ::= column_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy929, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy929)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 467: /* column_reference ::= table_name NK_DOT column_name */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy929, createColumnNode(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy929)); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 468: /* column_reference ::= NK_ALIAS */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 469: /* column_reference ::= table_name NK_DOT NK_ALIAS */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 470: /* pseudo_column ::= ROWTS */
|
|
|
|
|
case 471: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==471);
|
|
|
|
|
case 473: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==473);
|
|
|
|
|
case 474: /* pseudo_column ::= QEND */ yytestcase(yyruleno==474);
|
|
|
|
|
case 475: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==475);
|
|
|
|
|
case 476: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==476);
|
|
|
|
|
case 477: /* pseudo_column ::= WEND */ yytestcase(yyruleno==477);
|
|
|
|
|
case 478: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==478);
|
|
|
|
|
case 479: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==479);
|
|
|
|
|
case 480: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==480);
|
|
|
|
|
case 481: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==481);
|
|
|
|
|
case 487: /* literal_func ::= NOW */ yytestcase(yyruleno==487);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 472: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy929)))); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 482: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
|
|
|
case 483: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==483);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy929, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy929, yymsp[-1].minor.yy536)); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 484: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy360), yymsp[-1].minor.yy912)); }
|
|
|
|
|
yymsp[-5].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 486: /* literal_func ::= noarg_func NK_LP NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy929, NULL)); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 501: /* star_func_para_list ::= NK_STAR */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
yymsp[0].minor.yy536 = yylhsminor.yy536;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 506: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
case 574: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==574);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createColumnNode(pCxt, &yymsp[-2].minor.yy929, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 507: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy536, yymsp[-1].minor.yy360)); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 508: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy360), yymsp[-2].minor.yy536, yymsp[-1].minor.yy360)); }
|
|
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 511: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy360 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)); }
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 513: /* case_when_else_opt ::= ELSE common_expression */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy360 = releaseRawExprNode(pCxt, yymsp[0].minor.yy360); }
|
2024-01-18 09:49:11 +00:00
|
|
|
break;
|
|
|
|
|
case 514: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
|
|
|
case 519: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==519);
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy252, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 515: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy360), releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-4].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 516: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy360), releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-5].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 517: /* predicate ::= expr_or_subquery IS NULL */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), NULL));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 518: /* predicate ::= expr_or_subquery IS NOT NULL */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy360), NULL));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 520: /* compare_op ::= NK_LT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_LOWER_THAN; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 521: /* compare_op ::= NK_GT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_GREATER_THAN; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 522: /* compare_op ::= NK_LE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_LOWER_EQUAL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 523: /* compare_op ::= NK_GE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_GREATER_EQUAL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 524: /* compare_op ::= NK_NE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_NOT_EQUAL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 525: /* compare_op ::= NK_EQ */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_EQUAL; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 526: /* compare_op ::= LIKE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_LIKE; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 527: /* compare_op ::= NOT LIKE */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy252 = OP_TYPE_NOT_LIKE; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 528: /* compare_op ::= MATCH */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_MATCH; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 529: /* compare_op ::= NMATCH */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_NMATCH; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 530: /* compare_op ::= CONTAINS */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_JSON_CONTAINS; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 531: /* in_op ::= IN */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy252 = OP_TYPE_IN; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 532: /* in_op ::= NOT IN */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy252 = OP_TYPE_NOT_IN; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 533: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy536)); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 535: /* boolean_value_expression ::= NOT boolean_primary */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy360), NULL));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2022-01-27 06:32:40 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 536: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2022-01-23 12:34:16 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 537: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy360);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), releaseRawExprNode(pCxt, yymsp[0].minor.yy360)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 545: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy360, yymsp[0].minor.yy360, NULL); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 548: /* table_primary ::= table_name alias_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy929, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 549: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createRealTableNode(pCxt, &yymsp[-3].minor.yy929, &yymsp[-1].minor.yy929, &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 550: /* table_primary ::= subquery alias_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy360), &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 552: /* alias_opt ::= */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy929 = nil_token; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 554: /* alias_opt ::= AS table_alias */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-1].minor.yy929 = yymsp[0].minor.yy929; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 555: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
|
|
|
case 556: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==556);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-2].minor.yy360 = yymsp[-1].minor.yy360; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 557: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createJoinTableNode(pCxt, yymsp[-4].minor.yy596, yymsp[-5].minor.yy360, yymsp[-2].minor.yy360, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-5].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 558: /* join_type ::= */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy596 = JOIN_TYPE_INNER; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 559: /* join_type ::= INNER */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy596 = JOIN_TYPE_INNER; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 560: /* 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 */
|
2023-08-15 07:16:57 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-13].minor.yy360 = createSelectStmt(pCxt, yymsp[-11].minor.yy345, yymsp[-9].minor.yy536, yymsp[-8].minor.yy360, yymsp[-12].minor.yy536);
|
|
|
|
|
yymsp[-13].minor.yy360 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy360, yymsp[-10].minor.yy345);
|
|
|
|
|
yymsp[-13].minor.yy360 = addWhereClause(pCxt, yymsp[-13].minor.yy360, yymsp[-7].minor.yy360);
|
|
|
|
|
yymsp[-13].minor.yy360 = addPartitionByClause(pCxt, yymsp[-13].minor.yy360, yymsp[-6].minor.yy536);
|
|
|
|
|
yymsp[-13].minor.yy360 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy360, yymsp[-2].minor.yy360);
|
|
|
|
|
yymsp[-13].minor.yy360 = addGroupByClause(pCxt, yymsp[-13].minor.yy360, yymsp[-1].minor.yy536);
|
|
|
|
|
yymsp[-13].minor.yy360 = addHavingClause(pCxt, yymsp[-13].minor.yy360, yymsp[0].minor.yy360);
|
|
|
|
|
yymsp[-13].minor.yy360 = addRangeClause(pCxt, yymsp[-13].minor.yy360, yymsp[-5].minor.yy360);
|
|
|
|
|
yymsp[-13].minor.yy360 = addEveryClause(pCxt, yymsp[-13].minor.yy360, yymsp[-4].minor.yy360);
|
|
|
|
|
yymsp[-13].minor.yy360 = addFillClause(pCxt, yymsp[-13].minor.yy360, yymsp[-3].minor.yy360);
|
2022-01-27 06:32:40 +00:00
|
|
|
}
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 561: /* hint_list ::= */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[1].minor.yy536 = createHintNodeList(pCxt, NULL); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 562: /* hint_list ::= NK_HINT */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy536 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy536 = yylhsminor.yy536;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 567: /* set_quantifier_opt ::= ALL */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[0].minor.yy345 = false; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 570: /* select_item ::= NK_STAR */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
|
|
|
yymsp[0].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 572: /* select_item ::= common_expression column_alias */
|
|
|
|
|
case 582: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==582);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy360), &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-1].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 573: /* select_item ::= common_expression AS column_alias */
|
|
|
|
|
case 583: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==583);
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yylhsminor.yy360 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), &yymsp[0].minor.yy929); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 578: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
2024-02-04 08:04:23 +00:00
|
|
|
case 608: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==608);
|
|
|
|
|
case 628: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==628);
|
|
|
|
|
{ yymsp[-2].minor.yy536 = yymsp[0].minor.yy536; }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 585: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-5].minor.yy360 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy360), releaseRawExprNode(pCxt, yymsp[-1].minor.yy360)); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 586: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-3].minor.yy360 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy360)); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 587: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-5].minor.yy360 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy360), NULL, yymsp[-1].minor.yy360, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 588: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-7].minor.yy360 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy360), releaseRawExprNode(pCxt, yymsp[-3].minor.yy360), yymsp[-1].minor.yy360, yymsp[0].minor.yy360); }
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-01-18 09:49:11 +00:00
|
|
|
case 589: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
2024-02-04 08:04:23 +00:00
|
|
|
{ yymsp[-6].minor.yy360 = createEventWindowNode(pCxt, yymsp[-3].minor.yy360, yymsp[0].minor.yy360); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 590: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
{ yymsp[-3].minor.yy360 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 591: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
{ yymsp[-5].minor.yy360 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); }
|
2024-01-26 07:56:26 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 598: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
|
|
|
{ yymsp[-3].minor.yy360 = createFillNode(pCxt, yymsp[-1].minor.yy358, NULL); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 599: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
|
|
|
{ yymsp[-5].minor.yy360 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy536)); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 600: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
|
|
|
{ yymsp[-5].minor.yy360 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy536)); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 601: /* fill_mode ::= NONE */
|
|
|
|
|
{ yymsp[0].minor.yy358 = FILL_MODE_NONE; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 602: /* fill_mode ::= PREV */
|
|
|
|
|
{ yymsp[0].minor.yy358 = FILL_MODE_PREV; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 603: /* fill_mode ::= NULL */
|
|
|
|
|
{ yymsp[0].minor.yy358 = FILL_MODE_NULL; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 604: /* fill_mode ::= NULL_F */
|
|
|
|
|
{ yymsp[0].minor.yy358 = FILL_MODE_NULL_F; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 605: /* fill_mode ::= LINEAR */
|
|
|
|
|
{ yymsp[0].minor.yy358 = FILL_MODE_LINEAR; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 606: /* fill_mode ::= NEXT */
|
|
|
|
|
{ yymsp[0].minor.yy358 = FILL_MODE_NEXT; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 609: /* group_by_list ::= expr_or_subquery */
|
|
|
|
|
{ yylhsminor.yy536 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy360))); }
|
|
|
|
|
yymsp[0].minor.yy536 = yylhsminor.yy536;
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 610: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
|
|
|
{ yylhsminor.yy536 = addNodeToList(pCxt, yymsp[-2].minor.yy536, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy360))); }
|
|
|
|
|
yymsp[-2].minor.yy536 = yylhsminor.yy536;
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 614: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
|
|
|
{ yymsp[-5].minor.yy360 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy360), releaseRawExprNode(pCxt, yymsp[-1].minor.yy360)); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 615: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
{ yymsp[-3].minor.yy360 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy360)); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 618: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
2022-09-16 07:53:27 +00:00
|
|
|
{
|
2024-02-04 08:04:23 +00:00
|
|
|
yylhsminor.yy360 = addOrderByClause(pCxt, yymsp[-3].minor.yy360, yymsp[-2].minor.yy536);
|
|
|
|
|
yylhsminor.yy360 = addSlimitClause(pCxt, yylhsminor.yy360, yymsp[-1].minor.yy360);
|
|
|
|
|
yylhsminor.yy360 = addLimitClause(pCxt, yylhsminor.yy360, yymsp[0].minor.yy360);
|
2022-01-27 16:28:13 +00:00
|
|
|
}
|
2024-02-04 08:04:23 +00:00
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 621: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
|
|
|
{ yylhsminor.yy360 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy360, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-3].minor.yy360 = yylhsminor.yy360;
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 622: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
|
|
|
{ yylhsminor.yy360 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy360, yymsp[0].minor.yy360); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 630: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
|
|
|
case 634: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==634);
|
|
|
|
|
{ yymsp[-1].minor.yy360 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 631: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
|
|
|
case 635: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==635);
|
|
|
|
|
{ yymsp[-3].minor.yy360 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 632: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
case 636: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==636);
|
|
|
|
|
{ yymsp[-3].minor.yy360 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 637: /* subquery ::= NK_LP query_expression NK_RP */
|
|
|
|
|
{ yylhsminor.yy360 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy360); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 642: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
|
|
|
{ yylhsminor.yy360 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy360), yymsp[-1].minor.yy642, yymsp[0].minor.yy585); }
|
|
|
|
|
yymsp[-2].minor.yy360 = yylhsminor.yy360;
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 643: /* ordering_specification_opt ::= */
|
|
|
|
|
{ yymsp[1].minor.yy642 = ORDER_ASC; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 644: /* ordering_specification_opt ::= ASC */
|
|
|
|
|
{ yymsp[0].minor.yy642 = ORDER_ASC; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 645: /* ordering_specification_opt ::= DESC */
|
|
|
|
|
{ yymsp[0].minor.yy642 = ORDER_DESC; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 646: /* null_ordering_opt ::= */
|
|
|
|
|
{ yymsp[1].minor.yy585 = NULL_ORDER_DEFAULT; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 647: /* null_ordering_opt ::= NULLS FIRST */
|
|
|
|
|
{ yymsp[-1].minor.yy585 = NULL_ORDER_FIRST; }
|
2024-01-17 06:22:19 +00:00
|
|
|
break;
|
2024-02-04 08:04:23 +00:00
|
|
|
case 648: /* null_ordering_opt ::= NULLS LAST */
|
|
|
|
|
{ yymsp[-1].minor.yy585 = NULL_ORDER_LAST; }
|
2023-03-22 01:36:59 +00:00
|
|
|
break;
|
2022-01-23 12:34:16 +00:00
|
|
|
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];
|
2022-01-23 12:34:16 +00:00
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
#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-01-23 12:34:16 +00:00
|
|
|
){
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseARG_FETCH
|
|
|
|
|
ParseCTX_FETCH
|
2022-01-23 12:34:16 +00:00
|
|
|
#define TOKEN yyminor
|
|
|
|
|
/************ Begin %syntax_error code ****************************************/
|
2022-03-16 11:28:40 +00:00
|
|
|
|
2022-04-29 01:53:53 +00:00
|
|
|
if (TSDB_CODE_SUCCESS == pCxt->errCode) {
|
2022-03-16 11:28:40 +00:00
|
|
|
if(TOKEN.z) {
|
2022-04-28 13:02:11 +00:00
|
|
|
pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z);
|
2022-03-16 11:28:40 +00:00
|
|
|
} else {
|
2022-04-28 13:02:11 +00:00
|
|
|
pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL);
|
2022-03-16 11:28:40 +00:00
|
|
|
}
|
2022-08-01 07:54:53 +00:00
|
|
|
} 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);
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
/************ End %syntax_error code ******************************************/
|
2022-03-10 07:36:06 +00:00
|
|
|
ParseARG_STORE /* Suppress warning about unused %extra_argument variable */
|
|
|
|
|
ParseCTX_STORE
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
** 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
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 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.
|
2022-01-23 12:34:16 +00:00
|
|
|
** 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(
|
2022-01-23 12:34:16 +00:00
|
|
|
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 */
|
2022-01-23 12:34:16 +00:00
|
|
|
){
|
|
|
|
|
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
|
2022-01-23 12:34:16 +00:00
|
|
|
|
|
|
|
|
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-11-16 03:41:02 +00:00
|
|
|
while(1){ /* Exit by "break" */
|
|
|
|
|
assert( yypParser->yytos>=yypParser->yystack );
|
2022-01-23 12:34:16 +00:00
|
|
|
assert( yyact==yypParser->yytos->stateno );
|
|
|
|
|
yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact);
|
|
|
|
|
if( yyact >= YY_MIN_REDUCE ){
|
2023-11-16 03:41:02 +00:00
|
|
|
unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */
|
|
|
|
|
#ifndef NDEBUG
|
|
|
|
|
assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) );
|
|
|
|
|
if( yyTraceFILE ){
|
|
|
|
|
int yysize = yyRuleInfoNRhs[yyruleno];
|
|
|
|
|
if( yysize ){
|
|
|
|
|
fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n",
|
|
|
|
|
yyTracePrompt,
|
|
|
|
|
yyruleno, yyRuleName[yyruleno],
|
|
|
|
|
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action",
|
|
|
|
|
yypParser->yytos[yysize].stateno);
|
|
|
|
|
}else{
|
|
|
|
|
fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n",
|
|
|
|
|
yyTracePrompt, yyruleno, yyRuleName[yyruleno],
|
|
|
|
|
yyruleno<YYNRULE_WITH_ACTION ? "" : " without external action");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif /* NDEBUG */
|
|
|
|
|
|
|
|
|
|
/* Check that the stack is large enough to grow by a single entry
|
|
|
|
|
** if the RHS of the rule is empty. This ensures that there is room
|
|
|
|
|
** enough on the stack to push the LHS value */
|
|
|
|
|
if( yyRuleInfoNRhs[yyruleno]==0 ){
|
|
|
|
|
#ifdef YYTRACKMAXSTACKDEPTH
|
|
|
|
|
if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){
|
|
|
|
|
yypParser->yyhwm++;
|
|
|
|
|
assert( yypParser->yyhwm ==
|
|
|
|
|
(int)(yypParser->yytos - yypParser->yystack));
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
#if YYSTACKDEPTH>0
|
|
|
|
|
if( yypParser->yytos>=yypParser->yystackEnd ){
|
|
|
|
|
yyStackOverflow(yypParser);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
#else
|
|
|
|
|
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){
|
|
|
|
|
if( yyGrowStack(yypParser) ){
|
|
|
|
|
yyStackOverflow(yypParser);
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
yyact = yy_reduce(yypParser,yyruleno,yymajor,yyminor ParseCTX_PARAM);
|
2022-01-23 12:34:16 +00:00
|
|
|
}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-11-16 03:41:02 +00:00
|
|
|
while( yypParser->yytos > yypParser->yystack ){
|
|
|
|
|
yyact = yy_find_reduce_action(yypParser->yytos->stateno,
|
|
|
|
|
YYERRORSYMBOL);
|
|
|
|
|
if( yyact<=YY_MAX_SHIFTREDUCE ) break;
|
2022-01-23 12:34:16 +00:00
|
|
|
yy_pop_parser_stack(yypParser);
|
|
|
|
|
}
|
2023-11-16 03:41:02 +00:00
|
|
|
if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){
|
2022-01-23 12:34:16 +00:00
|
|
|
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-11-16 03:41:02 +00:00
|
|
|
}
|
2022-01-23 12:34:16 +00:00
|
|
|
#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){
|
2022-01-23 12:34:16 +00:00
|
|
|
#ifdef YYFALLBACK
|
2023-05-09 11:19:14 +00:00
|
|
|
assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) );
|
|
|
|
|
return yyFallback[iToken];
|
2022-01-23 12:34:16 +00:00
|
|
|
#else
|
|
|
|
|
(void)iToken;
|
2023-04-23 03:20:34 +00:00
|
|
|
return 0;
|
2023-05-09 11:19:14 +00:00
|
|
|
#endif
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|