2024-03-15 01:14:54 +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 ************************/
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 11 "sql.y"
|
2024-03-10 14:14:57 +00:00
|
|
|
|
2022-01-23 12:34:16 +00:00
|
|
|
#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
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 46 "sql.c"
|
2022-01-23 12:34:16 +00:00
|
|
|
/**************** End of %include directives **********************************/
|
2024-03-15 01:14:54 +00:00
|
|
|
/* These constants specify the various numeric values for terminal symbols.
|
|
|
|
|
***************** Begin token definitions *************************************/
|
|
|
|
|
#ifndef TK_OR
|
|
|
|
|
#define TK_OR 1
|
|
|
|
|
#define TK_AND 2
|
|
|
|
|
#define TK_UNION 3
|
|
|
|
|
#define TK_ALL 4
|
|
|
|
|
#define TK_MINUS 5
|
|
|
|
|
#define TK_EXCEPT 6
|
|
|
|
|
#define TK_INTERSECT 7
|
|
|
|
|
#define TK_NK_BITAND 8
|
|
|
|
|
#define TK_NK_BITOR 9
|
|
|
|
|
#define TK_NK_LSHIFT 10
|
|
|
|
|
#define TK_NK_RSHIFT 11
|
|
|
|
|
#define TK_NK_PLUS 12
|
|
|
|
|
#define TK_NK_MINUS 13
|
|
|
|
|
#define TK_NK_STAR 14
|
|
|
|
|
#define TK_NK_SLASH 15
|
|
|
|
|
#define TK_NK_REM 16
|
|
|
|
|
#define TK_NK_CONCAT 17
|
|
|
|
|
#define TK_CREATE 18
|
|
|
|
|
#define TK_ACCOUNT 19
|
|
|
|
|
#define TK_NK_ID 20
|
|
|
|
|
#define TK_PASS 21
|
|
|
|
|
#define TK_NK_STRING 22
|
|
|
|
|
#define TK_ALTER 23
|
|
|
|
|
#define TK_PPS 24
|
|
|
|
|
#define TK_TSERIES 25
|
|
|
|
|
#define TK_STORAGE 26
|
|
|
|
|
#define TK_STREAMS 27
|
|
|
|
|
#define TK_QTIME 28
|
|
|
|
|
#define TK_DBS 29
|
|
|
|
|
#define TK_USERS 30
|
|
|
|
|
#define TK_CONNS 31
|
|
|
|
|
#define TK_STATE 32
|
|
|
|
|
#define TK_NK_COMMA 33
|
|
|
|
|
#define TK_HOST 34
|
|
|
|
|
#define TK_USER 35
|
|
|
|
|
#define TK_ENABLE 36
|
|
|
|
|
#define TK_NK_INTEGER 37
|
|
|
|
|
#define TK_SYSINFO 38
|
|
|
|
|
#define TK_ADD 39
|
|
|
|
|
#define TK_DROP 40
|
|
|
|
|
#define TK_GRANT 41
|
|
|
|
|
#define TK_ON 42
|
|
|
|
|
#define TK_TO 43
|
|
|
|
|
#define TK_REVOKE 44
|
|
|
|
|
#define TK_FROM 45
|
|
|
|
|
#define TK_SUBSCRIBE 46
|
|
|
|
|
#define TK_READ 47
|
|
|
|
|
#define TK_WRITE 48
|
|
|
|
|
#define TK_NK_DOT 49
|
|
|
|
|
#define TK_WITH 50
|
|
|
|
|
#define TK_DNODE 51
|
|
|
|
|
#define TK_PORT 52
|
|
|
|
|
#define TK_DNODES 53
|
|
|
|
|
#define TK_RESTORE 54
|
|
|
|
|
#define TK_NK_IPTOKEN 55
|
|
|
|
|
#define TK_FORCE 56
|
|
|
|
|
#define TK_UNSAFE 57
|
|
|
|
|
#define TK_CLUSTER 58
|
|
|
|
|
#define TK_LOCAL 59
|
|
|
|
|
#define TK_QNODE 60
|
|
|
|
|
#define TK_BNODE 61
|
|
|
|
|
#define TK_SNODE 62
|
|
|
|
|
#define TK_MNODE 63
|
|
|
|
|
#define TK_VNODE 64
|
|
|
|
|
#define TK_DATABASE 65
|
|
|
|
|
#define TK_USE 66
|
|
|
|
|
#define TK_FLUSH 67
|
|
|
|
|
#define TK_TRIM 68
|
|
|
|
|
#define TK_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_ARBGROUPS 152
|
|
|
|
|
#define TK_FUNCTIONS 153
|
|
|
|
|
#define TK_INDEXES 154
|
|
|
|
|
#define TK_ACCOUNTS 155
|
|
|
|
|
#define TK_APPS 156
|
|
|
|
|
#define TK_CONNECTIONS 157
|
|
|
|
|
#define TK_LICENCES 158
|
|
|
|
|
#define TK_GRANTS 159
|
|
|
|
|
#define TK_FULL 160
|
|
|
|
|
#define TK_LOGS 161
|
|
|
|
|
#define TK_MACHINES 162
|
|
|
|
|
#define TK_QUERIES 163
|
|
|
|
|
#define TK_SCORES 164
|
|
|
|
|
#define TK_TOPICS 165
|
|
|
|
|
#define TK_VARIABLES 166
|
|
|
|
|
#define TK_BNODES 167
|
|
|
|
|
#define TK_SNODES 168
|
|
|
|
|
#define TK_TRANSACTIONS 169
|
|
|
|
|
#define TK_DISTRIBUTED 170
|
|
|
|
|
#define TK_CONSUMERS 171
|
|
|
|
|
#define TK_SUBSCRIPTIONS 172
|
|
|
|
|
#define TK_VNODES 173
|
|
|
|
|
#define TK_ALIVE 174
|
|
|
|
|
#define TK_VIEWS 175
|
|
|
|
|
#define TK_VIEW 176
|
|
|
|
|
#define TK_COMPACTS 177
|
|
|
|
|
#define TK_NORMAL 178
|
|
|
|
|
#define TK_CHILD 179
|
|
|
|
|
#define TK_LIKE 180
|
|
|
|
|
#define TK_TBNAME 181
|
|
|
|
|
#define TK_QTAGS 182
|
|
|
|
|
#define TK_AS 183
|
|
|
|
|
#define TK_SYSTEM 184
|
|
|
|
|
#define TK_INDEX 185
|
|
|
|
|
#define TK_FUNCTION 186
|
|
|
|
|
#define TK_INTERVAL 187
|
|
|
|
|
#define TK_COUNT 188
|
|
|
|
|
#define TK_LAST_ROW 189
|
|
|
|
|
#define TK_META 190
|
|
|
|
|
#define TK_ONLY 191
|
|
|
|
|
#define TK_TOPIC 192
|
|
|
|
|
#define TK_CONSUMER 193
|
|
|
|
|
#define TK_GROUP 194
|
|
|
|
|
#define TK_DESC 195
|
|
|
|
|
#define TK_DESCRIBE 196
|
|
|
|
|
#define TK_RESET 197
|
|
|
|
|
#define TK_QUERY 198
|
|
|
|
|
#define TK_CACHE 199
|
|
|
|
|
#define TK_EXPLAIN 200
|
|
|
|
|
#define TK_ANALYZE 201
|
|
|
|
|
#define TK_VERBOSE 202
|
|
|
|
|
#define TK_NK_BOOL 203
|
|
|
|
|
#define TK_RATIO 204
|
|
|
|
|
#define TK_NK_FLOAT 205
|
|
|
|
|
#define TK_OUTPUTTYPE 206
|
|
|
|
|
#define TK_AGGREGATE 207
|
|
|
|
|
#define TK_BUFSIZE 208
|
|
|
|
|
#define TK_LANGUAGE 209
|
|
|
|
|
#define TK_REPLACE 210
|
|
|
|
|
#define TK_STREAM 211
|
|
|
|
|
#define TK_INTO 212
|
|
|
|
|
#define TK_PAUSE 213
|
|
|
|
|
#define TK_RESUME 214
|
|
|
|
|
#define TK_TRIGGER 215
|
|
|
|
|
#define TK_AT_ONCE 216
|
|
|
|
|
#define TK_WINDOW_CLOSE 217
|
|
|
|
|
#define TK_IGNORE 218
|
|
|
|
|
#define TK_EXPIRED 219
|
|
|
|
|
#define TK_FILL_HISTORY 220
|
|
|
|
|
#define TK_UPDATE 221
|
|
|
|
|
#define TK_SUBTABLE 222
|
|
|
|
|
#define TK_UNTREATED 223
|
|
|
|
|
#define TK_KILL 224
|
|
|
|
|
#define TK_CONNECTION 225
|
|
|
|
|
#define TK_TRANSACTION 226
|
|
|
|
|
#define TK_BALANCE 227
|
|
|
|
|
#define TK_VGROUP 228
|
|
|
|
|
#define TK_LEADER 229
|
|
|
|
|
#define TK_MERGE 230
|
|
|
|
|
#define TK_REDISTRIBUTE 231
|
|
|
|
|
#define TK_SPLIT 232
|
|
|
|
|
#define TK_DELETE 233
|
|
|
|
|
#define TK_INSERT 234
|
|
|
|
|
#define TK_NK_BIN 235
|
|
|
|
|
#define TK_NK_HEX 236
|
|
|
|
|
#define TK_NULL 237
|
|
|
|
|
#define TK_NK_QUESTION 238
|
|
|
|
|
#define TK_NK_ALIAS 239
|
|
|
|
|
#define TK_NK_ARROW 240
|
|
|
|
|
#define TK_ROWTS 241
|
|
|
|
|
#define TK_QSTART 242
|
|
|
|
|
#define TK_QEND 243
|
|
|
|
|
#define TK_QDURATION 244
|
|
|
|
|
#define TK_WSTART 245
|
|
|
|
|
#define TK_WEND 246
|
|
|
|
|
#define TK_WDURATION 247
|
|
|
|
|
#define TK_IROWTS 248
|
|
|
|
|
#define TK_ISFILLED 249
|
|
|
|
|
#define TK_CAST 250
|
|
|
|
|
#define TK_NOW 251
|
|
|
|
|
#define TK_TODAY 252
|
|
|
|
|
#define TK_TIMEZONE 253
|
|
|
|
|
#define TK_CLIENT_VERSION 254
|
|
|
|
|
#define TK_SERVER_VERSION 255
|
|
|
|
|
#define TK_SERVER_STATUS 256
|
|
|
|
|
#define TK_CURRENT_USER 257
|
|
|
|
|
#define TK_CASE 258
|
|
|
|
|
#define TK_WHEN 259
|
|
|
|
|
#define TK_THEN 260
|
|
|
|
|
#define TK_ELSE 261
|
|
|
|
|
#define TK_BETWEEN 262
|
|
|
|
|
#define TK_IS 263
|
|
|
|
|
#define TK_NK_LT 264
|
|
|
|
|
#define TK_NK_GT 265
|
|
|
|
|
#define TK_NK_LE 266
|
|
|
|
|
#define TK_NK_GE 267
|
|
|
|
|
#define TK_NK_NE 268
|
|
|
|
|
#define TK_MATCH 269
|
|
|
|
|
#define TK_NMATCH 270
|
|
|
|
|
#define TK_CONTAINS 271
|
|
|
|
|
#define TK_IN 272
|
|
|
|
|
#define TK_JOIN 273
|
|
|
|
|
#define TK_INNER 274
|
|
|
|
|
#define TK_SELECT 275
|
|
|
|
|
#define TK_NK_HINT 276
|
|
|
|
|
#define TK_DISTINCT 277
|
|
|
|
|
#define TK_WHERE 278
|
|
|
|
|
#define TK_PARTITION 279
|
|
|
|
|
#define TK_BY 280
|
|
|
|
|
#define TK_SESSION 281
|
|
|
|
|
#define TK_STATE_WINDOW 282
|
|
|
|
|
#define TK_EVENT_WINDOW 283
|
|
|
|
|
#define TK_COUNT_WINDOW 284
|
|
|
|
|
#define TK_SLIDING 285
|
|
|
|
|
#define TK_FILL 286
|
|
|
|
|
#define TK_VALUE 287
|
|
|
|
|
#define TK_VALUE_F 288
|
|
|
|
|
#define TK_NONE 289
|
|
|
|
|
#define TK_PREV 290
|
|
|
|
|
#define TK_NULL_F 291
|
|
|
|
|
#define TK_LINEAR 292
|
|
|
|
|
#define TK_NEXT 293
|
|
|
|
|
#define TK_HAVING 294
|
|
|
|
|
#define TK_RANGE 295
|
|
|
|
|
#define TK_EVERY 296
|
|
|
|
|
#define TK_ORDER 297
|
|
|
|
|
#define TK_SLIMIT 298
|
|
|
|
|
#define TK_SOFFSET 299
|
|
|
|
|
#define TK_LIMIT 300
|
|
|
|
|
#define TK_OFFSET 301
|
|
|
|
|
#define TK_ASC 302
|
|
|
|
|
#define TK_NULLS 303
|
|
|
|
|
#define TK_ABORT 304
|
|
|
|
|
#define TK_AFTER 305
|
|
|
|
|
#define TK_ATTACH 306
|
|
|
|
|
#define TK_BEFORE 307
|
|
|
|
|
#define TK_BEGIN 308
|
|
|
|
|
#define TK_BITAND 309
|
|
|
|
|
#define TK_BITNOT 310
|
|
|
|
|
#define TK_BITOR 311
|
|
|
|
|
#define TK_BLOCKS 312
|
|
|
|
|
#define TK_CHANGE 313
|
|
|
|
|
#define TK_COMMA 314
|
|
|
|
|
#define TK_CONCAT 315
|
|
|
|
|
#define TK_CONFLICT 316
|
|
|
|
|
#define TK_COPY 317
|
|
|
|
|
#define TK_DEFERRED 318
|
|
|
|
|
#define TK_DELIMITERS 319
|
|
|
|
|
#define TK_DETACH 320
|
|
|
|
|
#define TK_DIVIDE 321
|
|
|
|
|
#define TK_DOT 322
|
|
|
|
|
#define TK_EACH 323
|
|
|
|
|
#define TK_FAIL 324
|
|
|
|
|
#define TK_FILE 325
|
|
|
|
|
#define TK_FOR 326
|
|
|
|
|
#define TK_GLOB 327
|
|
|
|
|
#define TK_ID 328
|
|
|
|
|
#define TK_IMMEDIATE 329
|
|
|
|
|
#define TK_IMPORT 330
|
|
|
|
|
#define TK_INITIALLY 331
|
|
|
|
|
#define TK_INSTEAD 332
|
|
|
|
|
#define TK_ISNULL 333
|
|
|
|
|
#define TK_KEY 334
|
|
|
|
|
#define TK_MODULES 335
|
|
|
|
|
#define TK_NK_BITNOT 336
|
|
|
|
|
#define TK_NK_SEMI 337
|
|
|
|
|
#define TK_NOTNULL 338
|
|
|
|
|
#define TK_OF 339
|
|
|
|
|
#define TK_PLUS 340
|
|
|
|
|
#define TK_PRIVILEGE 341
|
|
|
|
|
#define TK_RAISE 342
|
|
|
|
|
#define TK_RESTRICT 343
|
|
|
|
|
#define TK_ROW 344
|
|
|
|
|
#define TK_SEMI 345
|
|
|
|
|
#define TK_STAR 346
|
|
|
|
|
#define TK_STATEMENT 347
|
|
|
|
|
#define TK_STRICT 348
|
|
|
|
|
#define TK_STRING 349
|
|
|
|
|
#define TK_TIMES 350
|
|
|
|
|
#define TK_VALUES 351
|
|
|
|
|
#define TK_VARIABLE 352
|
|
|
|
|
#define TK_WAL 353
|
|
|
|
|
#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-03-15 01:14:54 +00:00
|
|
|
#define YYNOCODE 517
|
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-03-15 01:14:54 +00:00
|
|
|
SShowTablesOption yy91;
|
|
|
|
|
EShowKind yy101;
|
|
|
|
|
int32_t yy134;
|
|
|
|
|
EFillMode yy206;
|
|
|
|
|
SDataType yy224;
|
|
|
|
|
ENullOrder yy345;
|
|
|
|
|
int64_t yy525;
|
|
|
|
|
SNodeList* yy552;
|
|
|
|
|
bool yy559;
|
|
|
|
|
EOrder yy576;
|
|
|
|
|
STokenPair yy665;
|
|
|
|
|
SNode* yy718;
|
|
|
|
|
EOperatorType yy810;
|
|
|
|
|
int8_t yy883;
|
|
|
|
|
SAlterOption yy959;
|
|
|
|
|
SToken yy965;
|
|
|
|
|
EJoinType yy992;
|
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-03-15 01:14:54 +00:00
|
|
|
#define YYNSTATE 860
|
|
|
|
|
#define YYNRULE 671
|
|
|
|
|
#define YYNRULE_WITH_ACTION 671
|
|
|
|
|
#define YYNTOKEN 354
|
|
|
|
|
#define YY_MAX_SHIFT 859
|
|
|
|
|
#define YY_MIN_SHIFTREDUCE 1282
|
|
|
|
|
#define YY_MAX_SHIFTREDUCE 1952
|
|
|
|
|
#define YY_ERROR_ACTION 1953
|
|
|
|
|
#define YY_ACCEPT_ACTION 1954
|
|
|
|
|
#define YY_NO_ACTION 1955
|
|
|
|
|
#define YY_MIN_REDUCE 1956
|
|
|
|
|
#define YY_MAX_REDUCE 2626
|
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-03-15 01:14:54 +00:00
|
|
|
#define YY_ACTTAB_COUNT (3048)
|
2022-01-23 12:34:16 +00:00
|
|
|
static const YYACTIONTYPE yy_action[] = {
|
2024-03-15 01:14:54 +00:00
|
|
|
/* 0 */ 481, 428, 2122, 2384, 711, 2401, 426, 2597, 2531, 169,
|
|
|
|
|
/* 10 */ 37, 310, 47, 45, 1874, 574, 405, 2148, 575, 1999,
|
|
|
|
|
/* 20 */ 419, 2285, 1714, 2531, 2197, 710, 204, 760, 474, 2405,
|
|
|
|
|
/* 30 */ 2598, 712, 2285, 473, 2528, 1800, 2042, 1712, 1740, 2283,
|
|
|
|
|
/* 40 */ 748, 2602, 654, 2425, 2597, 541, 539, 422, 370, 2527,
|
|
|
|
|
/* 50 */ 2282, 748, 218, 723, 147, 2199, 726, 652, 425, 650,
|
|
|
|
|
/* 60 */ 271, 270, 404, 2601, 666, 1795, 2199, 2598, 2600, 765,
|
|
|
|
|
/* 70 */ 2197, 19, 800, 388, 2407, 2409, 416, 571, 1720, 682,
|
|
|
|
|
/* 80 */ 705, 2197, 2597, 1739, 2443, 765, 569, 40, 39, 565,
|
|
|
|
|
/* 90 */ 561, 46, 44, 43, 42, 41, 2391, 66, 743, 582,
|
|
|
|
|
/* 100 */ 2603, 204, 575, 1999, 856, 2598, 712, 15, 2443, 831,
|
|
|
|
|
/* 110 */ 830, 829, 828, 437, 50, 827, 826, 152, 821, 820,
|
|
|
|
|
/* 120 */ 819, 818, 817, 816, 815, 151, 809, 808, 807, 436,
|
|
|
|
|
/* 130 */ 435, 804, 803, 802, 184, 183, 801, 760, 2424, 584,
|
|
|
|
|
/* 140 */ 2324, 2462, 1429, 1802, 1803, 115, 2426, 747, 2428, 2429,
|
|
|
|
|
/* 150 */ 742, 706, 765, 711, 1740, 1979, 2597, 187, 591, 2516,
|
|
|
|
|
/* 160 */ 9, 1613, 1614, 415, 2512, 302, 2524, 722, 1329, 139,
|
|
|
|
|
/* 170 */ 721, 704, 2597, 62, 710, 204, 723, 147, 206, 2598,
|
|
|
|
|
/* 180 */ 712, 1774, 1784, 1431, 761, 2146, 2546, 1978, 1801, 1804,
|
|
|
|
|
/* 190 */ 710, 204, 1327, 1328, 1739, 2598, 712, 1956, 430, 665,
|
|
|
|
|
/* 200 */ 62, 2192, 2194, 1715, 209, 1713, 1612, 1615, 2391, 1977,
|
|
|
|
|
/* 210 */ 723, 147, 40, 39, 592, 2278, 46, 44, 43, 42,
|
|
|
|
|
/* 220 */ 41, 137, 136, 135, 134, 133, 132, 131, 130, 129,
|
|
|
|
|
/* 230 */ 798, 162, 161, 795, 794, 793, 159, 1718, 1719, 1771,
|
|
|
|
|
/* 240 */ 2391, 1773, 1776, 1777, 1778, 1779, 1780, 1781, 1782, 1783,
|
|
|
|
|
/* 250 */ 739, 763, 762, 1794, 1796, 1797, 1798, 1799, 2, 47,
|
|
|
|
|
/* 260 */ 45, 107, 2391, 760, 368, 2333, 1737, 419, 472, 1714,
|
|
|
|
|
/* 270 */ 471, 761, 2146, 524, 1949, 380, 544, 1521, 1522, 621,
|
|
|
|
|
/* 280 */ 1831, 543, 1800, 620, 1712, 2045, 2139, 725, 202, 2524,
|
|
|
|
|
/* 290 */ 2525, 138, 145, 2529, 761, 2146, 33, 504, 617, 545,
|
|
|
|
|
/* 300 */ 470, 1899, 40, 39, 369, 506, 46, 44, 43, 42,
|
|
|
|
|
/* 310 */ 41, 175, 1795, 1968, 138, 484, 1900, 1486, 19, 1829,
|
|
|
|
|
/* 320 */ 276, 622, 203, 2524, 2525, 1720, 145, 2529, 434, 433,
|
|
|
|
|
/* 330 */ 811, 1477, 790, 789, 788, 1481, 787, 1483, 1484, 786,
|
|
|
|
|
/* 340 */ 783, 306, 1492, 780, 1494, 1495, 777, 774, 771, 1742,
|
|
|
|
|
/* 350 */ 50, 856, 391, 1721, 15, 1593, 1594, 1898, 636, 635,
|
|
|
|
|
/* 360 */ 634, 2602, 34, 492, 2597, 626, 144, 630, 306, 239,
|
|
|
|
|
/* 370 */ 1771, 629, 1836, 577, 579, 2007, 628, 633, 398, 397,
|
|
|
|
|
/* 380 */ 576, 1948, 627, 2601, 1830, 623, 2123, 2598, 2599, 1322,
|
|
|
|
|
/* 390 */ 1802, 1803, 1863, 2272, 2251, 813, 532, 531, 530, 529,
|
|
|
|
|
/* 400 */ 528, 523, 522, 521, 520, 374, 761, 2146, 1329, 510,
|
|
|
|
|
/* 410 */ 509, 508, 507, 501, 500, 499, 1957, 494, 493, 389,
|
|
|
|
|
/* 420 */ 2193, 2194, 458, 485, 1581, 1582, 55, 1976, 1774, 1784,
|
|
|
|
|
/* 430 */ 1600, 1324, 1327, 1328, 160, 1801, 1804, 128, 396, 395,
|
|
|
|
|
/* 440 */ 127, 126, 125, 124, 123, 122, 121, 120, 119, 2124,
|
|
|
|
|
/* 450 */ 1715, 128, 1713, 197, 127, 126, 125, 124, 123, 122,
|
|
|
|
|
/* 460 */ 121, 120, 119, 1739, 1714, 2186, 36, 417, 1824, 1825,
|
|
|
|
|
/* 470 */ 1826, 1827, 1828, 1832, 1833, 1834, 1835, 241, 1975, 1712,
|
|
|
|
|
/* 480 */ 2391, 577, 153, 2007, 1718, 1719, 1771, 701, 1773, 1776,
|
|
|
|
|
/* 490 */ 1777, 1778, 1779, 1780, 1781, 1782, 1783, 739, 763, 762,
|
|
|
|
|
/* 500 */ 1794, 1796, 1797, 1798, 1799, 2, 12, 47, 45, 54,
|
|
|
|
|
/* 510 */ 394, 393, 304, 619, 173, 419, 12, 1714, 306, 344,
|
|
|
|
|
/* 520 */ 1720, 1724, 798, 162, 161, 795, 794, 793, 159, 2121,
|
|
|
|
|
/* 530 */ 1800, 2391, 1712, 535, 590, 621, 342, 75, 160, 620,
|
|
|
|
|
/* 540 */ 74, 2602, 314, 315, 490, 2261, 856, 313, 40, 39,
|
|
|
|
|
/* 550 */ 371, 462, 46, 44, 43, 42, 41, 12, 1742, 10,
|
|
|
|
|
/* 560 */ 1795, 1743, 237, 556, 554, 551, 19, 636, 635, 634,
|
|
|
|
|
/* 570 */ 658, 2137, 657, 1720, 626, 144, 630, 1907, 464, 460,
|
|
|
|
|
/* 580 */ 629, 707, 702, 695, 691, 628, 633, 398, 397, 723,
|
|
|
|
|
/* 590 */ 147, 627, 1878, 220, 623, 229, 613, 612, 1739, 856,
|
|
|
|
|
/* 600 */ 40, 39, 15, 62, 46, 44, 43, 42, 41, 2425,
|
|
|
|
|
/* 610 */ 40, 39, 1743, 1657, 46, 44, 43, 42, 41, 2401,
|
|
|
|
|
/* 620 */ 534, 228, 744, 1348, 1775, 1347, 425, 698, 697, 1905,
|
|
|
|
|
/* 630 */ 1906, 1908, 1909, 1910, 2234, 663, 1694, 765, 1802, 1803,
|
|
|
|
|
/* 640 */ 143, 63, 35, 2405, 1739, 1715, 1942, 1713, 40, 39,
|
|
|
|
|
/* 650 */ 2443, 185, 46, 44, 43, 42, 41, 1810, 1349, 1348,
|
|
|
|
|
/* 660 */ 160, 1347, 2391, 1739, 743, 798, 162, 161, 795, 794,
|
|
|
|
|
/* 670 */ 793, 159, 62, 390, 594, 2265, 1774, 1784, 224, 1718,
|
|
|
|
|
/* 680 */ 1719, 800, 1772, 1801, 1804, 43, 42, 41, 2407, 2410,
|
|
|
|
|
/* 690 */ 51, 85, 84, 477, 1349, 732, 217, 2488, 1715, 765,
|
|
|
|
|
/* 700 */ 1713, 205, 2524, 2525, 2424, 145, 2529, 2462, 2385, 469,
|
|
|
|
|
/* 710 */ 467, 177, 2426, 747, 2428, 2429, 742, 2352, 765, 91,
|
|
|
|
|
/* 720 */ 367, 304, 90, 456, 496, 2261, 453, 449, 445, 442,
|
|
|
|
|
/* 730 */ 470, 62, 1718, 1719, 1771, 1660, 1773, 1776, 1777, 1778,
|
|
|
|
|
/* 740 */ 1779, 1780, 1781, 1782, 1783, 739, 763, 762, 1794, 1796,
|
|
|
|
|
/* 750 */ 1797, 1798, 1799, 2, 47, 45, 1805, 2425, 2412, 1775,
|
|
|
|
|
/* 760 */ 2364, 174, 419, 425, 1714, 713, 2618, 791, 274, 2085,
|
|
|
|
|
/* 770 */ 744, 306, 273, 222, 765, 200, 1693, 1800, 1720, 1712,
|
|
|
|
|
/* 780 */ 1744, 761, 2146, 761, 2146, 171, 2425, 526, 2261, 89,
|
|
|
|
|
/* 790 */ 46, 44, 43, 42, 41, 734, 517, 2488, 2443, 726,
|
|
|
|
|
/* 800 */ 516, 478, 2365, 479, 1697, 761, 2146, 1795, 515, 1871,
|
|
|
|
|
/* 810 */ 2391, 682, 743, 423, 2597, 2199, 2414, 1772, 172, 1743,
|
|
|
|
|
/* 820 */ 1720, 172, 414, 185, 1775, 498, 2149, 2443, 666, 2148,
|
|
|
|
|
/* 830 */ 2197, 1744, 2603, 204, 1700, 1703, 227, 2598, 712, 2391,
|
|
|
|
|
/* 840 */ 306, 743, 99, 1743, 2218, 377, 856, 2266, 403, 48,
|
|
|
|
|
/* 850 */ 656, 814, 2424, 682, 2107, 2462, 2597, 2425, 306, 115,
|
|
|
|
|
/* 860 */ 2426, 747, 2428, 2429, 742, 1974, 765, 761, 2146, 149,
|
|
|
|
|
/* 870 */ 744, 156, 2487, 2516, 2603, 204, 2135, 415, 2512, 2598,
|
|
|
|
|
/* 880 */ 712, 2424, 1772, 2029, 2462, 1802, 1803, 511, 115, 2426,
|
|
|
|
|
/* 890 */ 747, 2428, 2429, 742, 96, 765, 761, 2146, 2443, 306,
|
|
|
|
|
/* 900 */ 187, 428, 2516, 668, 2324, 637, 415, 2512, 664, 172,
|
|
|
|
|
/* 910 */ 2391, 392, 743, 2010, 761, 2146, 512, 2148, 2391, 681,
|
|
|
|
|
/* 920 */ 2141, 761, 2146, 1774, 1784, 100, 859, 2531, 2199, 2547,
|
|
|
|
|
/* 930 */ 1801, 1804, 40, 39, 513, 424, 46, 44, 43, 42,
|
|
|
|
|
/* 940 */ 41, 593, 331, 2197, 1696, 1715, 211, 1713, 329, 14,
|
|
|
|
|
/* 950 */ 13, 275, 2424, 2526, 1954, 2462, 1641, 29, 194, 115,
|
|
|
|
|
/* 960 */ 2426, 747, 2428, 2429, 742, 849, 765, 847, 843, 839,
|
|
|
|
|
/* 970 */ 835, 2491, 328, 2516, 1699, 1702, 2131, 415, 2512, 1718,
|
|
|
|
|
/* 980 */ 1719, 1771, 195, 1773, 1776, 1777, 1778, 1779, 1780, 1781,
|
|
|
|
|
/* 990 */ 1782, 1783, 739, 763, 762, 1794, 1796, 1797, 1798, 1799,
|
|
|
|
|
/* 1000 */ 2, 47, 45, 2601, 519, 518, 199, 761, 2146, 419,
|
|
|
|
|
/* 1010 */ 112, 1714, 689, 114, 1351, 1352, 321, 761, 2146, 109,
|
|
|
|
|
/* 1020 */ 761, 2146, 2425, 1973, 1800, 431, 1712, 2143, 113, 2199,
|
|
|
|
|
/* 1030 */ 1662, 1663, 1919, 172, 440, 744, 429, 277, 1744, 439,
|
|
|
|
|
/* 1040 */ 285, 2148, 2425, 1331, 2197, 150, 761, 2146, 757, 1738,
|
|
|
|
|
/* 1050 */ 615, 614, 60, 2138, 1795, 744, 1843, 2009, 761, 2146,
|
|
|
|
|
/* 1060 */ 679, 1972, 1744, 2443, 40, 39, 729, 1720, 46, 44,
|
|
|
|
|
/* 1070 */ 43, 42, 41, 632, 631, 2391, 2391, 743, 318, 825,
|
|
|
|
|
/* 1080 */ 823, 2425, 1870, 2443, 96, 682, 1971, 1894, 2597, 761,
|
|
|
|
|
/* 1090 */ 2146, 1739, 309, 856, 744, 2391, 48, 743, 2133, 308,
|
|
|
|
|
/* 1100 */ 2425, 761, 2146, 761, 2146, 792, 2603, 204, 2190, 758,
|
|
|
|
|
/* 1110 */ 2142, 2598, 712, 744, 2391, 2554, 49, 2424, 279, 1970,
|
|
|
|
|
/* 1120 */ 2462, 759, 2443, 325, 116, 2426, 747, 2428, 2429, 742,
|
|
|
|
|
/* 1130 */ 2129, 765, 1802, 1803, 2391, 1441, 743, 2424, 2516, 2391,
|
|
|
|
|
/* 1140 */ 2462, 2443, 2199, 2513, 115, 2426, 747, 2428, 2429, 742,
|
|
|
|
|
/* 1150 */ 1440, 765, 2199, 2391, 715, 743, 2617, 730, 2516, 1967,
|
|
|
|
|
/* 1160 */ 761, 2146, 415, 2512, 1918, 1966, 1965, 756, 718, 1964,
|
|
|
|
|
/* 1170 */ 1774, 1784, 2391, 1984, 851, 2027, 2424, 1801, 1804, 2462,
|
|
|
|
|
/* 1180 */ 432, 2199, 1723, 354, 2426, 747, 2428, 2429, 742, 3,
|
|
|
|
|
/* 1190 */ 765, 1904, 1715, 1445, 1713, 2424, 2198, 639, 2462, 1963,
|
|
|
|
|
/* 1200 */ 1962, 53, 115, 2426, 747, 2428, 2429, 742, 1444, 765,
|
|
|
|
|
/* 1210 */ 661, 737, 2391, 1961, 2617, 1960, 2516, 546, 2391, 2391,
|
|
|
|
|
/* 1220 */ 415, 2512, 2391, 1959, 2536, 1863, 1718, 1719, 1771, 708,
|
|
|
|
|
/* 1230 */ 1773, 1776, 1777, 1778, 1779, 1780, 1781, 1782, 1783, 739,
|
|
|
|
|
/* 1240 */ 763, 762, 1794, 1796, 1797, 1798, 1799, 2, 47, 45,
|
|
|
|
|
/* 1250 */ 2425, 148, 2391, 2391, 2487, 667, 419, 796, 1714, 797,
|
|
|
|
|
/* 1260 */ 2190, 682, 2190, 744, 2597, 2567, 2391, 338, 2391, 2355,
|
|
|
|
|
/* 1270 */ 2176, 1800, 140, 1712, 624, 548, 2391, 2244, 77, 286,
|
|
|
|
|
/* 1280 */ 1951, 1952, 2603, 204, 87, 2018, 2016, 2598, 712, 2425,
|
|
|
|
|
/* 1290 */ 262, 2443, 2086, 260, 2150, 727, 264, 714, 1426, 263,
|
|
|
|
|
/* 1300 */ 49, 1795, 744, 2391, 693, 743, 682, 641, 644, 2597,
|
|
|
|
|
/* 1310 */ 1772, 625, 266, 198, 1720, 265, 434, 433, 268, 488,
|
|
|
|
|
/* 1320 */ 447, 267, 188, 101, 160, 282, 1728, 2603, 204, 64,
|
|
|
|
|
/* 1330 */ 2443, 88, 2598, 712, 1722, 1424, 49, 14, 13, 1800,
|
|
|
|
|
/* 1340 */ 856, 1721, 2391, 15, 743, 2424, 682, 2425, 2462, 2597,
|
|
|
|
|
/* 1350 */ 1726, 49, 115, 2426, 747, 2428, 2429, 742, 738, 765,
|
|
|
|
|
/* 1360 */ 744, 1969, 2590, 312, 2617, 76, 2516, 2603, 204, 1795,
|
|
|
|
|
/* 1370 */ 415, 2512, 2598, 712, 299, 1903, 2560, 1821, 699, 1802,
|
|
|
|
|
/* 1380 */ 1803, 293, 1720, 158, 2424, 160, 142, 2462, 2443, 73,
|
|
|
|
|
/* 1390 */ 769, 115, 2426, 747, 2428, 2429, 742, 291, 765, 728,
|
|
|
|
|
/* 1400 */ 2391, 2083, 743, 2617, 1837, 2516, 324, 323, 736, 415,
|
|
|
|
|
/* 1410 */ 2512, 1785, 2444, 805, 2082, 643, 2270, 1774, 1784, 806,
|
|
|
|
|
/* 1420 */ 716, 158, 160, 141, 1801, 1804, 1610, 40, 39, 158,
|
|
|
|
|
/* 1430 */ 655, 46, 44, 43, 42, 41, 719, 1403, 316, 1715,
|
|
|
|
|
/* 1440 */ 753, 1713, 2424, 1401, 2000, 2462, 272, 2550, 696, 115,
|
|
|
|
|
/* 1450 */ 2426, 747, 2428, 2429, 742, 410, 765, 703, 320, 1384,
|
|
|
|
|
/* 1460 */ 1471, 2617, 646, 2516, 337, 1499, 406, 415, 2512, 640,
|
|
|
|
|
/* 1470 */ 638, 750, 438, 1718, 1719, 1771, 269, 1773, 1776, 1777,
|
|
|
|
|
/* 1480 */ 1778, 1779, 1780, 1781, 1782, 1783, 739, 763, 762, 1794,
|
|
|
|
|
/* 1490 */ 1796, 1797, 1798, 1799, 2, 2425, 1503, 1510, 1508, 2006,
|
|
|
|
|
/* 1500 */ 1385, 2271, 1725, 2187, 163, 675, 724, 1729, 744, 1724,
|
|
|
|
|
/* 1510 */ 2535, 2551, 2561, 301, 298, 305, 2108, 71, 5, 441,
|
|
|
|
|
/* 1520 */ 70, 446, 386, 454, 1747, 455, 466, 1890, 465, 213,
|
|
|
|
|
/* 1530 */ 212, 468, 215, 332, 1634, 1737, 2443, 482, 1738, 489,
|
|
|
|
|
/* 1540 */ 226, 1732, 1734, 491, 495, 497, 537, 502, 2391, 525,
|
|
|
|
|
/* 1550 */ 743, 514, 2263, 2425, 549, 763, 762, 1794, 1796, 1797,
|
|
|
|
|
/* 1560 */ 1798, 1799, 527, 533, 536, 538, 744, 550, 547, 231,
|
|
|
|
|
/* 1570 */ 232, 552, 553, 234, 555, 557, 1745, 572, 4, 573,
|
|
|
|
|
/* 1580 */ 580, 242, 581, 1740, 585, 583, 1746, 93, 245, 1748,
|
|
|
|
|
/* 1590 */ 2424, 586, 2425, 2462, 2443, 587, 1749, 115, 2426, 747,
|
|
|
|
|
/* 1600 */ 2428, 2429, 742, 248, 765, 744, 2391, 250, 743, 2617,
|
|
|
|
|
/* 1610 */ 2279, 2516, 373, 372, 589, 415, 2512, 595, 616, 94,
|
|
|
|
|
/* 1620 */ 95, 618, 1704, 2425, 255, 2136, 259, 117, 2132, 261,
|
|
|
|
|
/* 1630 */ 165, 166, 2134, 2443, 647, 1800, 744, 1692, 648, 660,
|
|
|
|
|
/* 1640 */ 662, 364, 2130, 167, 98, 2391, 154, 743, 2424, 168,
|
|
|
|
|
/* 1650 */ 1741, 2462, 278, 333, 670, 115, 2426, 747, 2428, 2429,
|
|
|
|
|
/* 1660 */ 742, 669, 765, 2342, 2443, 1795, 2325, 2489, 281, 2516,
|
|
|
|
|
/* 1670 */ 2339, 674, 2338, 415, 2512, 283, 2391, 677, 743, 700,
|
|
|
|
|
/* 1680 */ 671, 686, 676, 2566, 751, 288, 8, 2424, 2538, 2565,
|
|
|
|
|
/* 1690 */ 2462, 290, 709, 292, 115, 2426, 747, 2428, 2429, 742,
|
|
|
|
|
/* 1700 */ 687, 765, 685, 684, 411, 296, 733, 179, 2516, 720,
|
|
|
|
|
/* 1710 */ 297, 2425, 415, 2512, 294, 2620, 295, 1863, 2424, 717,
|
|
|
|
|
/* 1720 */ 1742, 2462, 2532, 146, 744, 116, 2426, 747, 2428, 2429,
|
|
|
|
|
/* 1730 */ 742, 1868, 765, 257, 2596, 1866, 191, 307, 155, 2516,
|
|
|
|
|
/* 1740 */ 1, 207, 61, 2515, 2512, 334, 2497, 300, 749, 180,
|
|
|
|
|
/* 1750 */ 2293, 2292, 2443, 2291, 335, 421, 754, 157, 611, 607,
|
|
|
|
|
/* 1760 */ 603, 599, 336, 256, 2391, 2147, 743, 106, 755, 2383,
|
|
|
|
|
/* 1770 */ 2382, 108, 767, 2191, 339, 1306, 850, 853, 327, 164,
|
|
|
|
|
/* 1780 */ 52, 363, 855, 343, 384, 341, 2363, 385, 2362, 351,
|
|
|
|
|
/* 1790 */ 362, 2361, 82, 2356, 443, 352, 444, 1685, 1686, 210,
|
|
|
|
|
/* 1800 */ 448, 2354, 450, 1705, 97, 1695, 2424, 254, 2425, 2462,
|
|
|
|
|
/* 1810 */ 451, 452, 1684, 116, 2426, 747, 2428, 2429, 742, 2353,
|
|
|
|
|
/* 1820 */ 765, 744, 387, 2351, 457, 2350, 459, 2516, 2349, 461,
|
|
|
|
|
/* 1830 */ 2348, 735, 2512, 463, 1673, 1698, 1701, 1706, 2329, 214,
|
|
|
|
|
/* 1840 */ 2328, 83, 216, 1636, 1637, 2425, 2306, 2305, 2304, 2443,
|
|
|
|
|
/* 1850 */ 475, 763, 762, 1794, 1796, 1797, 1798, 1799, 741, 476,
|
|
|
|
|
/* 1860 */ 2303, 2391, 2302, 743, 2253, 480, 2425, 1580, 2250, 483,
|
|
|
|
|
/* 1870 */ 2249, 2243, 486, 487, 244, 2240, 219, 2239, 86, 744,
|
|
|
|
|
/* 1880 */ 2238, 2237, 2242, 253, 246, 2241, 2443, 2236, 221, 2235,
|
|
|
|
|
/* 1890 */ 251, 588, 2233, 2232, 2231, 223, 503, 2230, 2391, 505,
|
|
|
|
|
/* 1900 */ 743, 2228, 2227, 745, 2226, 2225, 2462, 2443, 2248, 243,
|
|
|
|
|
/* 1910 */ 116, 2426, 747, 2428, 2429, 742, 2224, 765, 2223, 2391,
|
|
|
|
|
/* 1920 */ 2222, 743, 225, 2211, 2516, 2246, 2229, 2221, 379, 2512,
|
|
|
|
|
/* 1930 */ 2220, 2219, 2217, 2216, 2215, 2214, 2213, 2212, 2210, 2209,
|
|
|
|
|
/* 1940 */ 2424, 92, 2208, 2462, 2207, 2247, 2245, 360, 2426, 747,
|
|
|
|
|
/* 1950 */ 2428, 2429, 742, 740, 765, 731, 2481, 2206, 2205, 2204,
|
|
|
|
|
/* 1960 */ 230, 2424, 1586, 2425, 2462, 2203, 2202, 540, 176, 2426,
|
|
|
|
|
/* 1970 */ 747, 2428, 2429, 742, 2201, 765, 744, 542, 2200, 375,
|
|
|
|
|
/* 1980 */ 2425, 1330, 1442, 1446, 2048, 1438, 233, 2047, 2046, 235,
|
|
|
|
|
/* 1990 */ 2044, 376, 2041, 744, 559, 2425, 560, 2040, 564, 558,
|
|
|
|
|
/* 2000 */ 562, 563, 2033, 567, 2443, 566, 568, 2020, 744, 570,
|
|
|
|
|
/* 2010 */ 683, 2557, 236, 1995, 238, 79, 2391, 1994, 743, 186,
|
|
|
|
|
/* 2020 */ 2411, 2443, 240, 2327, 196, 578, 2323, 80, 2313, 2301,
|
|
|
|
|
/* 2030 */ 2300, 247, 252, 2391, 2277, 743, 2443, 249, 2125, 2043,
|
|
|
|
|
/* 2040 */ 2039, 596, 1377, 598, 597, 2037, 600, 601, 2391, 2035,
|
|
|
|
|
/* 2050 */ 743, 604, 602, 606, 605, 408, 2032, 608, 2424, 609,
|
|
|
|
|
/* 2060 */ 610, 2462, 2015, 2013, 2425, 176, 2426, 747, 2428, 2429,
|
|
|
|
|
/* 2070 */ 742, 2014, 765, 2012, 1991, 2424, 2127, 744, 2462, 2425,
|
|
|
|
|
/* 2080 */ 1515, 1514, 361, 2426, 747, 2428, 2429, 742, 2126, 765,
|
|
|
|
|
/* 2090 */ 2424, 1428, 741, 2462, 1427, 72, 2030, 177, 2426, 747,
|
|
|
|
|
/* 2100 */ 2428, 2429, 742, 1425, 765, 2443, 1423, 258, 2558, 1422,
|
|
|
|
|
/* 2110 */ 2028, 1414, 1421, 822, 1420, 1419, 824, 2391, 1416, 743,
|
|
|
|
|
/* 2120 */ 2443, 1415, 1413, 399, 400, 2019, 401, 2017, 402, 645,
|
|
|
|
|
/* 2130 */ 1990, 1989, 2391, 1988, 743, 642, 649, 1987, 1986, 409,
|
|
|
|
|
/* 2140 */ 651, 653, 118, 1671, 1667, 1669, 1666, 2326, 28, 67,
|
|
|
|
|
/* 2150 */ 2322, 1643, 2619, 2312, 280, 2299, 1645, 2298, 672, 2424,
|
|
|
|
|
/* 2160 */ 56, 1647, 2462, 2425, 2602, 57, 361, 2426, 747, 2428,
|
|
|
|
|
/* 2170 */ 2429, 742, 20, 765, 2424, 17, 744, 2462, 2425, 688,
|
|
|
|
|
/* 2180 */ 407, 360, 2426, 747, 2428, 2429, 742, 1921, 765, 673,
|
|
|
|
|
/* 2190 */ 2482, 744, 21, 2425, 30, 678, 6, 170, 284, 1622,
|
|
|
|
|
/* 2200 */ 287, 7, 1895, 692, 2443, 1621, 744, 690, 22, 2425,
|
|
|
|
|
/* 2210 */ 190, 680, 201, 32, 694, 2412, 2391, 65, 743, 2443,
|
|
|
|
|
/* 2220 */ 289, 1902, 744, 178, 189, 31, 24, 1936, 1889, 1941,
|
|
|
|
|
/* 2230 */ 81, 2391, 1942, 743, 2443, 23, 1935, 412, 418, 1940,
|
|
|
|
|
/* 2240 */ 1939, 413, 59, 303, 181, 2297, 2391, 2276, 743, 1860,
|
|
|
|
|
/* 2250 */ 2443, 25, 1859, 420, 103, 102, 13, 1812, 2424, 11,
|
|
|
|
|
/* 2260 */ 1730, 2462, 2391, 1811, 743, 361, 2426, 747, 2428, 2429,
|
|
|
|
|
/* 2270 */ 742, 58, 765, 2424, 1822, 18, 2462, 1787, 38, 2425,
|
|
|
|
|
/* 2280 */ 361, 2426, 747, 2428, 2429, 742, 1786, 765, 659, 182,
|
|
|
|
|
/* 2290 */ 16, 2462, 744, 26, 1764, 356, 2426, 747, 2428, 2429,
|
|
|
|
|
/* 2300 */ 742, 192, 765, 27, 2424, 1756, 2425, 2462, 746, 311,
|
|
|
|
|
/* 2310 */ 2275, 346, 2426, 747, 2428, 2429, 742, 104, 765, 744,
|
|
|
|
|
/* 2320 */ 2443, 1897, 193, 317, 69, 322, 105, 752, 2467, 2466,
|
|
|
|
|
/* 2330 */ 319, 1789, 2391, 764, 743, 68, 109, 1500, 2425, 768,
|
|
|
|
|
/* 2340 */ 427, 766, 770, 772, 1497, 1496, 773, 2443, 775, 776,
|
|
|
|
|
/* 2350 */ 778, 744, 1493, 779, 781, 784, 1487, 782, 785, 2391,
|
|
|
|
|
/* 2360 */ 1491, 743, 1490, 1485, 110, 326, 111, 1509, 78, 1489,
|
|
|
|
|
/* 2370 */ 1505, 1488, 1375, 1410, 2424, 799, 2425, 2462, 1407, 2443,
|
|
|
|
|
/* 2380 */ 1406, 345, 2426, 747, 2428, 2429, 742, 1405, 765, 744,
|
|
|
|
|
/* 2390 */ 1404, 2391, 1402, 743, 1400, 1399, 1398, 1436, 810, 1435,
|
|
|
|
|
/* 2400 */ 812, 2424, 208, 1396, 2462, 1395, 1393, 1394, 347, 2426,
|
|
|
|
|
/* 2410 */ 747, 2428, 2429, 742, 1381, 765, 1392, 2443, 1391, 1390,
|
|
|
|
|
/* 2420 */ 1432, 2038, 2425, 1430, 1387, 1386, 1383, 1382, 1380, 2391,
|
|
|
|
|
/* 2430 */ 832, 743, 2036, 2424, 833, 744, 2462, 834, 836, 838,
|
|
|
|
|
/* 2440 */ 353, 2426, 747, 2428, 2429, 742, 2034, 765, 2425, 837,
|
|
|
|
|
/* 2450 */ 840, 841, 842, 2031, 844, 845, 846, 2011, 1985, 848,
|
|
|
|
|
/* 2460 */ 1319, 744, 1307, 2443, 852, 330, 854, 1955, 1955, 1716,
|
|
|
|
|
/* 2470 */ 340, 2424, 857, 1955, 2462, 2391, 858, 743, 357, 2426,
|
|
|
|
|
/* 2480 */ 747, 2428, 2429, 742, 1955, 765, 1955, 1955, 1955, 2443,
|
|
|
|
|
/* 2490 */ 1955, 1955, 2425, 1955, 1955, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2500 */ 1955, 2391, 1955, 743, 1955, 744, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2510 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 2424, 1955, 1955,
|
|
|
|
|
/* 2520 */ 2462, 2425, 1955, 1955, 348, 2426, 747, 2428, 2429, 742,
|
|
|
|
|
/* 2530 */ 1955, 765, 1955, 2443, 744, 1955, 2425, 1955, 1955, 1955,
|
|
|
|
|
/* 2540 */ 1955, 1955, 1955, 2424, 1955, 2391, 2462, 743, 1955, 744,
|
|
|
|
|
/* 2550 */ 358, 2426, 747, 2428, 2429, 742, 1955, 765, 1955, 1955,
|
|
|
|
|
/* 2560 */ 1955, 1955, 2443, 1955, 1955, 1955, 1955, 2425, 1955, 1955,
|
|
|
|
|
/* 2570 */ 1955, 1955, 1955, 1955, 2391, 1955, 743, 2443, 1955, 1955,
|
|
|
|
|
/* 2580 */ 744, 1955, 1955, 1955, 1955, 1955, 1955, 2424, 1955, 2391,
|
|
|
|
|
/* 2590 */ 2462, 743, 1955, 1955, 349, 2426, 747, 2428, 2429, 742,
|
|
|
|
|
/* 2600 */ 1955, 765, 1955, 1955, 1955, 1955, 1955, 1955, 2443, 1955,
|
|
|
|
|
/* 2610 */ 1955, 1955, 1955, 1955, 1955, 1955, 2424, 1955, 1955, 2462,
|
|
|
|
|
/* 2620 */ 2391, 1955, 743, 359, 2426, 747, 2428, 2429, 742, 1955,
|
|
|
|
|
/* 2630 */ 765, 2424, 1955, 1955, 2462, 1955, 1955, 2425, 350, 2426,
|
|
|
|
|
/* 2640 */ 747, 2428, 2429, 742, 1955, 765, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2650 */ 744, 1955, 1955, 2425, 1955, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2660 */ 1955, 1955, 2424, 1955, 1955, 2462, 744, 1955, 1955, 365,
|
|
|
|
|
/* 2670 */ 2426, 747, 2428, 2429, 742, 1955, 765, 1955, 2443, 1955,
|
|
|
|
|
/* 2680 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2690 */ 2391, 1955, 743, 1955, 2443, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2700 */ 1955, 1955, 1955, 1955, 1955, 1955, 2391, 1955, 743, 1955,
|
|
|
|
|
/* 2710 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2720 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2730 */ 1955, 1955, 2424, 1955, 2425, 2462, 1955, 1955, 1955, 366,
|
|
|
|
|
/* 2740 */ 2426, 747, 2428, 2429, 742, 1955, 765, 744, 2424, 1955,
|
|
|
|
|
/* 2750 */ 1955, 2462, 1955, 1955, 1955, 2437, 2426, 747, 2428, 2429,
|
|
|
|
|
/* 2760 */ 742, 1955, 765, 1955, 1955, 1955, 2425, 1955, 1955, 1955,
|
|
|
|
|
/* 2770 */ 1955, 1955, 1955, 1955, 1955, 2443, 1955, 1955, 1955, 744,
|
|
|
|
|
/* 2780 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 2391, 1955, 743,
|
|
|
|
|
/* 2790 */ 1955, 1955, 1955, 2425, 1955, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2800 */ 1955, 1955, 1955, 1955, 1955, 1955, 744, 2443, 1955, 1955,
|
|
|
|
|
/* 2810 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 2391,
|
|
|
|
|
/* 2820 */ 1955, 743, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 2424,
|
|
|
|
|
/* 2830 */ 1955, 1955, 2462, 1955, 2443, 1955, 2436, 2426, 747, 2428,
|
|
|
|
|
/* 2840 */ 2429, 742, 1955, 765, 1955, 1955, 2391, 1955, 743, 1955,
|
|
|
|
|
/* 2850 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2860 */ 1955, 2424, 1955, 2425, 2462, 1955, 1955, 1955, 2435, 2426,
|
|
|
|
|
/* 2870 */ 747, 2428, 2429, 742, 1955, 765, 744, 1955, 1955, 2425,
|
|
|
|
|
/* 2880 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 2424, 1955,
|
|
|
|
|
/* 2890 */ 1955, 2462, 744, 1955, 2425, 381, 2426, 747, 2428, 2429,
|
|
|
|
|
/* 2900 */ 742, 1955, 765, 1955, 2443, 1955, 1955, 744, 1955, 2425,
|
|
|
|
|
/* 2910 */ 1955, 1955, 1955, 1955, 1955, 1955, 2391, 1955, 743, 1955,
|
|
|
|
|
/* 2920 */ 2443, 1955, 744, 1955, 1955, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 2930 */ 1955, 1955, 2391, 1955, 743, 2443, 1955, 1955, 2425, 1955,
|
|
|
|
|
/* 2940 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 2391, 1955, 743,
|
|
|
|
|
/* 2950 */ 2443, 744, 1955, 1955, 1955, 1955, 1955, 1955, 2424, 1955,
|
|
|
|
|
/* 2960 */ 1955, 2462, 2391, 1955, 743, 382, 2426, 747, 2428, 2429,
|
|
|
|
|
/* 2970 */ 742, 1955, 765, 1955, 2424, 1955, 1955, 2462, 1955, 2443,
|
|
|
|
|
/* 2980 */ 1955, 378, 2426, 747, 2428, 2429, 742, 1955, 765, 2424,
|
|
|
|
|
/* 2990 */ 1955, 2391, 2462, 743, 1955, 1955, 383, 2426, 747, 2428,
|
|
|
|
|
/* 3000 */ 2429, 742, 1955, 765, 745, 1955, 1955, 2462, 1955, 1955,
|
|
|
|
|
/* 3010 */ 1955, 356, 2426, 747, 2428, 2429, 742, 1955, 765, 1955,
|
|
|
|
|
/* 3020 */ 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955, 1955,
|
|
|
|
|
/* 3030 */ 1955, 1955, 1955, 2424, 1955, 1955, 2462, 1955, 1955, 1955,
|
|
|
|
|
/* 3040 */ 355, 2426, 747, 2428, 2429, 742, 1955, 765,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
static const YYCODETYPE yy_lookahead[] = {
|
2024-03-15 01:14:54 +00:00
|
|
|
/* 0 */ 369, 390, 0, 400, 485, 386, 403, 488, 458, 398,
|
|
|
|
|
/* 10 */ 474, 475, 12, 13, 14, 364, 405, 406, 367, 368,
|
|
|
|
|
/* 20 */ 20, 412, 22, 458, 413, 506, 507, 20, 434, 410,
|
|
|
|
|
/* 30 */ 511, 512, 412, 439, 484, 35, 0, 37, 20, 430,
|
|
|
|
|
/* 40 */ 431, 485, 21, 357, 488, 414, 415, 427, 417, 484,
|
|
|
|
|
/* 50 */ 430, 431, 421, 369, 370, 398, 370, 36, 455, 38,
|
|
|
|
|
/* 60 */ 39, 40, 405, 507, 369, 65, 398, 511, 512, 466,
|
|
|
|
|
/* 70 */ 413, 71, 70, 405, 455, 456, 457, 51, 78, 485,
|
|
|
|
|
/* 80 */ 370, 413, 488, 20, 398, 466, 60, 8, 9, 63,
|
|
|
|
|
/* 90 */ 64, 12, 13, 14, 15, 16, 410, 4, 412, 364,
|
|
|
|
|
/* 100 */ 506, 507, 367, 368, 104, 511, 512, 107, 398, 73,
|
|
|
|
|
/* 110 */ 74, 75, 76, 77, 107, 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-03-15 01:14:54 +00:00
|
|
|
/* 130 */ 94, 95, 96, 97, 98, 99, 100, 20, 452, 444,
|
|
|
|
|
/* 140 */ 445, 455, 37, 143, 144, 459, 460, 461, 462, 463,
|
|
|
|
|
/* 150 */ 464, 20, 466, 485, 20, 357, 488, 471, 369, 473,
|
|
|
|
|
/* 160 */ 42, 143, 144, 477, 478, 481, 482, 483, 23, 485,
|
|
|
|
|
/* 170 */ 486, 461, 488, 107, 506, 507, 369, 370, 492, 511,
|
|
|
|
|
/* 180 */ 512, 181, 182, 78, 369, 370, 500, 357, 188, 189,
|
|
|
|
|
/* 190 */ 506, 507, 47, 48, 20, 511, 512, 0, 408, 20,
|
|
|
|
|
/* 200 */ 107, 411, 412, 203, 389, 205, 188, 189, 410, 357,
|
|
|
|
|
/* 210 */ 369, 370, 8, 9, 425, 426, 12, 13, 14, 15,
|
|
|
|
|
/* 220 */ 16, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
|
|
|
|
/* 230 */ 136, 137, 138, 139, 140, 141, 142, 237, 238, 239,
|
|
|
|
|
/* 240 */ 410, 241, 242, 243, 244, 245, 246, 247, 248, 249,
|
|
|
|
|
/* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 12,
|
|
|
|
|
/* 260 */ 13, 376, 410, 20, 18, 394, 20, 20, 202, 22,
|
|
|
|
|
/* 270 */ 204, 369, 370, 27, 195, 71, 30, 143, 144, 136,
|
|
|
|
|
/* 280 */ 180, 35, 35, 140, 37, 0, 401, 480, 481, 482,
|
|
|
|
|
/* 290 */ 483, 389, 485, 486, 369, 370, 2, 51, 396, 53,
|
|
|
|
|
/* 300 */ 234, 22, 8, 9, 58, 59, 12, 13, 14, 15,
|
|
|
|
|
/* 310 */ 16, 356, 65, 358, 389, 69, 37, 104, 71, 115,
|
|
|
|
|
/* 320 */ 449, 396, 481, 482, 483, 78, 485, 486, 12, 13,
|
|
|
|
|
/* 330 */ 13, 118, 119, 120, 121, 122, 123, 124, 125, 126,
|
|
|
|
|
/* 340 */ 127, 275, 129, 130, 131, 132, 133, 134, 135, 20,
|
|
|
|
|
/* 350 */ 107, 104, 106, 37, 107, 181, 182, 78, 73, 74,
|
|
|
|
|
/* 360 */ 75, 485, 262, 117, 488, 80, 81, 82, 275, 365,
|
|
|
|
|
/* 370 */ 239, 86, 272, 369, 14, 371, 91, 92, 93, 94,
|
|
|
|
|
/* 380 */ 20, 302, 97, 507, 180, 100, 0, 511, 512, 4,
|
|
|
|
|
/* 390 */ 143, 144, 274, 147, 148, 78, 150, 151, 152, 153,
|
|
|
|
|
/* 400 */ 154, 155, 156, 157, 158, 159, 369, 370, 23, 163,
|
|
|
|
|
/* 410 */ 164, 165, 166, 167, 168, 169, 0, 171, 172, 173,
|
|
|
|
|
/* 420 */ 411, 412, 69, 177, 178, 179, 389, 357, 181, 182,
|
|
|
|
|
/* 430 */ 184, 46, 47, 48, 33, 188, 189, 21, 39, 40,
|
|
|
|
|
/* 440 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 0,
|
|
|
|
|
/* 450 */ 203, 21, 205, 397, 24, 25, 26, 27, 28, 29,
|
|
|
|
|
/* 460 */ 30, 31, 32, 20, 22, 409, 262, 263, 264, 265,
|
|
|
|
|
/* 470 */ 266, 267, 268, 269, 270, 271, 272, 365, 357, 37,
|
|
|
|
|
/* 480 */ 410, 369, 33, 371, 237, 238, 239, 187, 241, 242,
|
|
|
|
|
/* 490 */ 243, 244, 245, 246, 247, 248, 249, 250, 251, 252,
|
|
|
|
|
/* 500 */ 253, 254, 255, 256, 257, 258, 259, 12, 13, 108,
|
|
|
|
|
/* 510 */ 111, 112, 183, 114, 18, 20, 259, 22, 275, 23,
|
|
|
|
|
/* 520 */ 78, 205, 136, 137, 138, 139, 140, 141, 142, 0,
|
|
|
|
|
/* 530 */ 35, 410, 37, 87, 20, 136, 40, 41, 33, 140,
|
|
|
|
|
/* 540 */ 44, 3, 137, 138, 369, 370, 104, 142, 8, 9,
|
|
|
|
|
/* 550 */ 54, 198, 12, 13, 14, 15, 16, 259, 20, 261,
|
|
|
|
|
/* 560 */ 65, 20, 66, 67, 68, 69, 71, 73, 74, 75,
|
|
|
|
|
/* 570 */ 219, 400, 221, 78, 80, 81, 82, 237, 225, 226,
|
|
|
|
|
/* 580 */ 86, 281, 282, 283, 284, 91, 92, 93, 94, 369,
|
|
|
|
|
/* 590 */ 370, 97, 14, 418, 100, 149, 374, 375, 20, 104,
|
|
|
|
|
/* 600 */ 8, 9, 107, 107, 12, 13, 14, 15, 16, 357,
|
|
|
|
|
/* 610 */ 8, 9, 20, 108, 12, 13, 14, 15, 16, 386,
|
|
|
|
|
/* 620 */ 174, 175, 370, 20, 181, 22, 455, 287, 288, 289,
|
|
|
|
|
/* 630 */ 290, 291, 292, 293, 0, 117, 37, 466, 143, 144,
|
|
|
|
|
/* 640 */ 37, 145, 2, 410, 20, 203, 108, 205, 8, 9,
|
|
|
|
|
/* 650 */ 398, 398, 12, 13, 14, 15, 16, 14, 55, 20,
|
|
|
|
|
/* 660 */ 33, 22, 410, 20, 412, 136, 137, 138, 139, 140,
|
|
|
|
|
/* 670 */ 141, 142, 107, 420, 70, 422, 181, 182, 65, 237,
|
|
|
|
|
/* 680 */ 238, 70, 239, 188, 189, 14, 15, 16, 455, 456,
|
|
|
|
|
/* 690 */ 107, 195, 196, 197, 55, 470, 200, 472, 203, 466,
|
|
|
|
|
/* 700 */ 205, 481, 482, 483, 452, 485, 486, 455, 400, 213,
|
|
|
|
|
/* 710 */ 214, 459, 460, 461, 462, 463, 464, 0, 466, 106,
|
|
|
|
|
/* 720 */ 224, 183, 109, 227, 369, 370, 230, 231, 232, 233,
|
|
|
|
|
/* 730 */ 234, 107, 237, 238, 239, 108, 241, 242, 243, 244,
|
|
|
|
|
/* 740 */ 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
|
|
|
|
|
/* 750 */ 255, 256, 257, 258, 12, 13, 14, 357, 49, 181,
|
|
|
|
|
/* 760 */ 434, 379, 20, 455, 22, 513, 514, 117, 138, 387,
|
|
|
|
|
/* 770 */ 370, 275, 142, 418, 466, 183, 37, 35, 78, 37,
|
|
|
|
|
/* 780 */ 239, 369, 370, 369, 370, 183, 357, 369, 370, 176,
|
|
|
|
|
/* 790 */ 12, 13, 14, 15, 16, 470, 162, 472, 398, 370,
|
|
|
|
|
/* 800 */ 166, 389, 434, 389, 205, 369, 370, 65, 174, 4,
|
|
|
|
|
/* 810 */ 410, 485, 412, 390, 488, 398, 107, 239, 398, 20,
|
|
|
|
|
/* 820 */ 78, 398, 405, 398, 181, 389, 406, 398, 369, 406,
|
|
|
|
|
/* 830 */ 413, 239, 506, 507, 235, 236, 418, 511, 512, 410,
|
|
|
|
|
/* 840 */ 275, 412, 212, 20, 0, 215, 104, 422, 218, 107,
|
|
|
|
|
/* 850 */ 220, 385, 452, 485, 388, 455, 488, 357, 275, 459,
|
|
|
|
|
/* 860 */ 460, 461, 462, 463, 464, 357, 466, 369, 370, 469,
|
|
|
|
|
/* 870 */ 370, 471, 472, 473, 506, 507, 399, 477, 478, 511,
|
|
|
|
|
/* 880 */ 512, 452, 239, 0, 455, 143, 144, 389, 459, 460,
|
|
|
|
|
/* 890 */ 461, 462, 463, 464, 378, 466, 369, 370, 398, 275,
|
|
|
|
|
/* 900 */ 471, 390, 473, 444, 445, 22, 477, 478, 1, 398,
|
|
|
|
|
/* 910 */ 410, 395, 412, 0, 369, 370, 389, 406, 410, 50,
|
|
|
|
|
/* 920 */ 404, 369, 370, 181, 182, 176, 19, 458, 398, 500,
|
|
|
|
|
/* 930 */ 188, 189, 8, 9, 389, 405, 12, 13, 14, 15,
|
|
|
|
|
/* 940 */ 16, 389, 35, 413, 205, 203, 229, 205, 34, 1,
|
|
|
|
|
/* 950 */ 2, 137, 452, 484, 354, 455, 207, 33, 51, 459,
|
|
|
|
|
/* 960 */ 460, 461, 462, 463, 464, 52, 466, 60, 61, 62,
|
|
|
|
|
/* 970 */ 63, 471, 65, 473, 235, 236, 399, 477, 478, 237,
|
|
|
|
|
/* 980 */ 238, 239, 183, 241, 242, 243, 244, 245, 246, 247,
|
|
|
|
|
/* 990 */ 248, 249, 250, 251, 252, 253, 254, 255, 256, 257,
|
|
|
|
|
/* 1000 */ 258, 12, 13, 3, 160, 161, 183, 369, 370, 20,
|
|
|
|
|
/* 1010 */ 107, 22, 33, 106, 56, 57, 109, 369, 370, 116,
|
|
|
|
|
/* 1020 */ 369, 370, 357, 357, 35, 390, 37, 389, 376, 398,
|
|
|
|
|
/* 1030 */ 216, 217, 108, 398, 434, 370, 405, 389, 239, 439,
|
|
|
|
|
/* 1040 */ 389, 406, 357, 14, 413, 393, 369, 370, 141, 20,
|
|
|
|
|
/* 1050 */ 374, 375, 183, 401, 65, 370, 108, 372, 369, 370,
|
|
|
|
|
/* 1060 */ 191, 357, 239, 398, 8, 9, 389, 78, 12, 13,
|
|
|
|
|
/* 1070 */ 14, 15, 16, 383, 384, 410, 410, 412, 389, 383,
|
|
|
|
|
/* 1080 */ 384, 357, 277, 398, 378, 485, 357, 108, 488, 369,
|
|
|
|
|
/* 1090 */ 370, 20, 185, 104, 370, 410, 107, 412, 399, 192,
|
|
|
|
|
/* 1100 */ 357, 369, 370, 369, 370, 407, 506, 507, 410, 389,
|
|
|
|
|
/* 1110 */ 404, 511, 512, 370, 410, 372, 33, 452, 211, 357,
|
|
|
|
|
/* 1120 */ 455, 389, 398, 389, 459, 460, 461, 462, 463, 464,
|
|
|
|
|
/* 1130 */ 399, 466, 143, 144, 410, 22, 412, 452, 473, 410,
|
|
|
|
|
/* 1140 */ 455, 398, 398, 478, 459, 460, 461, 462, 463, 464,
|
|
|
|
|
/* 1150 */ 37, 466, 398, 410, 33, 412, 471, 413, 473, 357,
|
|
|
|
|
/* 1160 */ 369, 370, 477, 478, 108, 357, 357, 413, 33, 357,
|
|
|
|
|
/* 1170 */ 181, 182, 410, 360, 361, 0, 452, 188, 189, 455,
|
|
|
|
|
/* 1180 */ 389, 398, 37, 459, 460, 461, 462, 463, 464, 33,
|
|
|
|
|
/* 1190 */ 466, 108, 203, 22, 205, 452, 413, 22, 455, 357,
|
|
|
|
|
/* 1200 */ 357, 45, 459, 460, 461, 462, 463, 464, 37, 466,
|
|
|
|
|
/* 1210 */ 434, 71, 410, 357, 471, 357, 473, 104, 410, 410,
|
|
|
|
|
/* 1220 */ 477, 478, 410, 357, 273, 274, 237, 238, 239, 505,
|
|
|
|
|
/* 1230 */ 241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
|
|
|
|
|
/* 1240 */ 251, 252, 253, 254, 255, 256, 257, 258, 12, 13,
|
|
|
|
|
/* 1250 */ 357, 469, 410, 410, 472, 434, 20, 407, 22, 407,
|
|
|
|
|
/* 1260 */ 410, 485, 410, 370, 488, 372, 410, 391, 410, 0,
|
|
|
|
|
/* 1270 */ 394, 35, 33, 37, 13, 104, 410, 0, 117, 65,
|
|
|
|
|
/* 1280 */ 143, 144, 506, 507, 45, 0, 0, 511, 512, 357,
|
|
|
|
|
/* 1290 */ 110, 398, 387, 113, 399, 434, 110, 297, 37, 113,
|
|
|
|
|
/* 1300 */ 33, 65, 370, 410, 372, 412, 485, 22, 22, 488,
|
|
|
|
|
/* 1310 */ 239, 13, 110, 440, 78, 113, 12, 13, 110, 42,
|
|
|
|
|
/* 1320 */ 51, 113, 33, 109, 33, 399, 22, 506, 507, 33,
|
|
|
|
|
/* 1330 */ 398, 170, 511, 512, 37, 37, 33, 1, 2, 35,
|
|
|
|
|
/* 1340 */ 104, 37, 410, 107, 412, 452, 485, 357, 455, 488,
|
|
|
|
|
/* 1350 */ 205, 33, 459, 460, 461, 462, 463, 464, 399, 466,
|
|
|
|
|
/* 1360 */ 370, 358, 372, 33, 471, 33, 473, 506, 507, 65,
|
|
|
|
|
/* 1370 */ 477, 478, 511, 512, 515, 108, 423, 237, 504, 143,
|
|
|
|
|
/* 1380 */ 144, 497, 78, 33, 452, 33, 373, 455, 398, 33,
|
|
|
|
|
/* 1390 */ 33, 459, 460, 461, 462, 463, 464, 108, 466, 108,
|
|
|
|
|
/* 1400 */ 410, 386, 412, 471, 108, 473, 12, 13, 104, 477,
|
|
|
|
|
/* 1410 */ 478, 108, 398, 13, 386, 4, 423, 181, 182, 13,
|
|
|
|
|
/* 1420 */ 299, 33, 33, 33, 188, 189, 108, 8, 9, 33,
|
|
|
|
|
/* 1430 */ 19, 12, 13, 14, 15, 16, 301, 37, 108, 203,
|
|
|
|
|
/* 1440 */ 108, 205, 452, 37, 368, 455, 35, 423, 503, 459,
|
|
|
|
|
/* 1450 */ 460, 461, 462, 463, 464, 503, 466, 503, 108, 37,
|
|
|
|
|
/* 1460 */ 108, 471, 51, 473, 108, 108, 433, 477, 478, 58,
|
|
|
|
|
/* 1470 */ 59, 503, 373, 237, 238, 239, 65, 241, 242, 243,
|
|
|
|
|
/* 1480 */ 244, 245, 246, 247, 248, 249, 250, 251, 252, 253,
|
|
|
|
|
/* 1490 */ 254, 255, 256, 257, 258, 357, 108, 108, 108, 370,
|
|
|
|
|
/* 1500 */ 78, 423, 205, 409, 108, 441, 487, 203, 370, 205,
|
|
|
|
|
/* 1510 */ 372, 423, 423, 508, 479, 490, 388, 106, 278, 435,
|
|
|
|
|
/* 1520 */ 109, 51, 454, 42, 20, 453, 446, 108, 218, 378,
|
|
|
|
|
/* 1530 */ 451, 446, 378, 437, 201, 20, 398, 369, 20, 370,
|
|
|
|
|
/* 1540 */ 45, 237, 238, 419, 370, 419, 180, 416, 410, 370,
|
|
|
|
|
/* 1550 */ 412, 369, 369, 357, 105, 251, 252, 253, 254, 255,
|
|
|
|
|
/* 1560 */ 256, 257, 419, 416, 416, 416, 370, 382, 103, 381,
|
|
|
|
|
/* 1570 */ 369, 102, 380, 369, 369, 369, 20, 362, 50, 366,
|
|
|
|
|
/* 1580 */ 362, 378, 366, 20, 412, 446, 20, 378, 378, 20,
|
|
|
|
|
/* 1590 */ 452, 371, 357, 455, 398, 436, 20, 459, 460, 461,
|
|
|
|
|
/* 1600 */ 462, 463, 464, 378, 466, 370, 410, 378, 412, 471,
|
|
|
|
|
/* 1610 */ 426, 473, 12, 13, 371, 477, 478, 369, 362, 378,
|
|
|
|
|
/* 1620 */ 378, 398, 22, 357, 378, 398, 398, 369, 398, 398,
|
|
|
|
|
/* 1630 */ 398, 398, 398, 398, 360, 35, 370, 37, 360, 222,
|
|
|
|
|
/* 1640 */ 450, 362, 398, 398, 107, 410, 448, 412, 452, 398,
|
|
|
|
|
/* 1650 */ 20, 455, 376, 446, 209, 459, 460, 461, 462, 463,
|
|
|
|
|
/* 1660 */ 464, 208, 466, 410, 398, 65, 445, 471, 442, 473,
|
|
|
|
|
/* 1670 */ 410, 412, 410, 477, 478, 376, 410, 369, 412, 286,
|
|
|
|
|
/* 1680 */ 443, 410, 435, 496, 285, 428, 294, 452, 499, 496,
|
|
|
|
|
/* 1690 */ 455, 428, 194, 498, 459, 460, 461, 462, 463, 464,
|
|
|
|
|
/* 1700 */ 296, 466, 295, 279, 303, 493, 471, 496, 473, 300,
|
|
|
|
|
/* 1710 */ 435, 357, 477, 478, 495, 516, 494, 274, 452, 298,
|
|
|
|
|
/* 1720 */ 20, 455, 458, 370, 370, 459, 460, 461, 462, 463,
|
|
|
|
|
/* 1730 */ 464, 117, 466, 35, 510, 276, 371, 376, 376, 473,
|
|
|
|
|
/* 1740 */ 491, 489, 107, 477, 478, 428, 476, 509, 410, 51,
|
|
|
|
|
/* 1750 */ 410, 410, 398, 410, 428, 410, 186, 376, 60, 61,
|
|
|
|
|
/* 1760 */ 62, 63, 394, 65, 410, 370, 412, 376, 424, 410,
|
|
|
|
|
/* 1770 */ 410, 107, 402, 410, 369, 22, 38, 359, 376, 363,
|
|
|
|
|
/* 1780 */ 438, 447, 362, 355, 429, 377, 0, 429, 0, 392,
|
|
|
|
|
/* 1790 */ 392, 0, 45, 0, 37, 392, 228, 37, 37, 37,
|
|
|
|
|
/* 1800 */ 228, 0, 37, 203, 106, 205, 452, 109, 357, 455,
|
|
|
|
|
/* 1810 */ 37, 228, 37, 459, 460, 461, 462, 463, 464, 0,
|
|
|
|
|
/* 1820 */ 466, 370, 228, 0, 37, 0, 37, 473, 0, 22,
|
|
|
|
|
/* 1830 */ 0, 477, 478, 37, 223, 235, 236, 237, 0, 211,
|
|
|
|
|
/* 1840 */ 0, 212, 211, 203, 205, 357, 0, 0, 0, 398,
|
|
|
|
|
/* 1850 */ 199, 251, 252, 253, 254, 255, 256, 257, 370, 198,
|
|
|
|
|
/* 1860 */ 0, 410, 0, 412, 148, 49, 357, 49, 0, 37,
|
|
|
|
|
/* 1870 */ 0, 0, 37, 51, 176, 0, 49, 0, 45, 370,
|
|
|
|
|
/* 1880 */ 0, 0, 0, 185, 186, 0, 398, 0, 49, 0,
|
|
|
|
|
/* 1890 */ 192, 193, 0, 0, 0, 166, 37, 0, 410, 166,
|
|
|
|
|
/* 1900 */ 412, 0, 0, 452, 0, 0, 455, 398, 0, 211,
|
|
|
|
|
/* 1910 */ 459, 460, 461, 462, 463, 464, 0, 466, 0, 410,
|
|
|
|
|
/* 1920 */ 0, 412, 49, 0, 473, 0, 0, 0, 477, 478,
|
|
|
|
|
/* 1930 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
/* 1940 */ 452, 45, 0, 455, 0, 0, 0, 459, 460, 461,
|
|
|
|
|
/* 1950 */ 462, 463, 464, 465, 466, 467, 468, 0, 0, 0,
|
|
|
|
|
/* 1960 */ 148, 452, 22, 357, 455, 0, 0, 147, 459, 460,
|
|
|
|
|
/* 1970 */ 461, 462, 463, 464, 0, 466, 370, 146, 0, 50,
|
|
|
|
|
/* 1980 */ 357, 14, 22, 22, 0, 37, 65, 0, 0, 65,
|
|
|
|
|
/* 1990 */ 0, 50, 0, 370, 51, 357, 42, 0, 42, 37,
|
|
|
|
|
/* 2000 */ 37, 51, 0, 51, 398, 37, 42, 0, 370, 37,
|
|
|
|
|
/* 2010 */ 501, 502, 65, 0, 45, 42, 410, 0, 412, 33,
|
|
|
|
|
/* 2020 */ 49, 398, 43, 0, 49, 49, 0, 42, 0, 0,
|
|
|
|
|
/* 2030 */ 0, 42, 49, 410, 0, 412, 398, 194, 0, 0,
|
|
|
|
|
/* 2040 */ 0, 37, 72, 42, 51, 0, 37, 51, 410, 0,
|
|
|
|
|
/* 2050 */ 412, 37, 42, 42, 51, 432, 0, 37, 452, 51,
|
|
|
|
|
/* 2060 */ 42, 455, 0, 0, 357, 459, 460, 461, 462, 463,
|
|
|
|
|
/* 2070 */ 464, 0, 466, 0, 0, 452, 0, 370, 455, 357,
|
|
|
|
|
/* 2080 */ 37, 22, 459, 460, 461, 462, 463, 464, 0, 466,
|
|
|
|
|
/* 2090 */ 452, 37, 370, 455, 37, 115, 0, 459, 460, 461,
|
|
|
|
|
/* 2100 */ 462, 463, 464, 37, 466, 398, 37, 113, 502, 37,
|
|
|
|
|
/* 2110 */ 0, 22, 37, 33, 37, 37, 33, 410, 37, 412,
|
|
|
|
|
/* 2120 */ 398, 37, 37, 22, 22, 0, 22, 0, 22, 37,
|
|
|
|
|
/* 2130 */ 0, 0, 410, 0, 412, 53, 37, 0, 0, 432,
|
|
|
|
|
/* 2140 */ 37, 22, 20, 108, 37, 37, 37, 0, 107, 107,
|
|
|
|
|
/* 2150 */ 0, 37, 514, 0, 49, 0, 22, 0, 22, 452,
|
|
|
|
|
/* 2160 */ 183, 210, 455, 357, 3, 183, 459, 460, 461, 462,
|
|
|
|
|
/* 2170 */ 463, 464, 33, 466, 452, 280, 370, 455, 357, 37,
|
|
|
|
|
/* 2180 */ 37, 459, 460, 461, 462, 463, 464, 108, 466, 183,
|
|
|
|
|
/* 2190 */ 468, 370, 33, 357, 107, 190, 50, 206, 186, 183,
|
|
|
|
|
/* 2200 */ 107, 50, 108, 105, 398, 183, 370, 107, 33, 357,
|
|
|
|
|
/* 2210 */ 33, 190, 49, 33, 103, 49, 410, 3, 412, 398,
|
|
|
|
|
/* 2220 */ 108, 108, 370, 107, 107, 107, 33, 37, 108, 108,
|
|
|
|
|
/* 2230 */ 107, 410, 108, 412, 398, 280, 37, 37, 432, 37,
|
|
|
|
|
/* 2240 */ 37, 37, 33, 49, 49, 0, 410, 0, 412, 108,
|
|
|
|
|
/* 2250 */ 398, 33, 108, 432, 42, 107, 2, 105, 452, 260,
|
|
|
|
|
/* 2260 */ 22, 455, 410, 105, 412, 459, 460, 461, 462, 463,
|
|
|
|
|
/* 2270 */ 464, 273, 466, 452, 237, 280, 455, 108, 107, 357,
|
|
|
|
|
/* 2280 */ 459, 460, 461, 462, 463, 464, 108, 466, 452, 49,
|
|
|
|
|
/* 2290 */ 107, 455, 370, 107, 22, 459, 460, 461, 462, 463,
|
|
|
|
|
/* 2300 */ 464, 49, 466, 107, 452, 108, 357, 455, 240, 108,
|
|
|
|
|
/* 2310 */ 0, 459, 460, 461, 462, 463, 464, 42, 466, 370,
|
|
|
|
|
/* 2320 */ 398, 108, 107, 107, 107, 49, 107, 187, 107, 107,
|
|
|
|
|
/* 2330 */ 185, 108, 410, 107, 412, 107, 116, 108, 357, 37,
|
|
|
|
|
/* 2340 */ 37, 117, 107, 37, 108, 108, 107, 398, 37, 107,
|
|
|
|
|
/* 2350 */ 37, 370, 108, 107, 37, 37, 108, 107, 107, 410,
|
|
|
|
|
/* 2360 */ 128, 412, 128, 108, 107, 33, 107, 37, 107, 128,
|
|
|
|
|
/* 2370 */ 22, 128, 72, 37, 452, 71, 357, 455, 37, 398,
|
|
|
|
|
/* 2380 */ 37, 459, 460, 461, 462, 463, 464, 37, 466, 370,
|
|
|
|
|
/* 2390 */ 37, 410, 37, 412, 37, 37, 37, 78, 101, 78,
|
|
|
|
|
/* 2400 */ 101, 452, 33, 37, 455, 37, 22, 37, 459, 460,
|
|
|
|
|
/* 2410 */ 461, 462, 463, 464, 22, 466, 37, 398, 37, 37,
|
|
|
|
|
/* 2420 */ 78, 0, 357, 37, 37, 37, 37, 37, 37, 410,
|
|
|
|
|
/* 2430 */ 37, 412, 0, 452, 51, 370, 455, 42, 37, 42,
|
|
|
|
|
/* 2440 */ 459, 460, 461, 462, 463, 464, 0, 466, 357, 51,
|
|
|
|
|
/* 2450 */ 37, 51, 42, 0, 37, 51, 42, 0, 0, 37,
|
|
|
|
|
/* 2460 */ 37, 370, 22, 398, 33, 22, 21, 517, 517, 22,
|
|
|
|
|
/* 2470 */ 22, 452, 21, 517, 455, 410, 20, 412, 459, 460,
|
|
|
|
|
/* 2480 */ 461, 462, 463, 464, 517, 466, 517, 517, 517, 398,
|
|
|
|
|
/* 2490 */ 517, 517, 357, 517, 517, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 2500 */ 517, 410, 517, 412, 517, 370, 517, 517, 517, 517,
|
|
|
|
|
/* 2510 */ 517, 517, 517, 517, 517, 517, 517, 452, 517, 517,
|
|
|
|
|
/* 2520 */ 455, 357, 517, 517, 459, 460, 461, 462, 463, 464,
|
|
|
|
|
/* 2530 */ 517, 466, 517, 398, 370, 517, 357, 517, 517, 517,
|
|
|
|
|
/* 2540 */ 517, 517, 517, 452, 517, 410, 455, 412, 517, 370,
|
|
|
|
|
/* 2550 */ 459, 460, 461, 462, 463, 464, 517, 466, 517, 517,
|
|
|
|
|
/* 2560 */ 517, 517, 398, 517, 517, 517, 517, 357, 517, 517,
|
|
|
|
|
/* 2570 */ 517, 517, 517, 517, 410, 517, 412, 398, 517, 517,
|
|
|
|
|
/* 2580 */ 370, 517, 517, 517, 517, 517, 517, 452, 517, 410,
|
|
|
|
|
/* 2590 */ 455, 412, 517, 517, 459, 460, 461, 462, 463, 464,
|
|
|
|
|
/* 2600 */ 517, 466, 517, 517, 517, 517, 517, 517, 398, 517,
|
|
|
|
|
/* 2610 */ 517, 517, 517, 517, 517, 517, 452, 517, 517, 455,
|
|
|
|
|
/* 2620 */ 410, 517, 412, 459, 460, 461, 462, 463, 464, 517,
|
|
|
|
|
/* 2630 */ 466, 452, 517, 517, 455, 517, 517, 357, 459, 460,
|
|
|
|
|
/* 2640 */ 461, 462, 463, 464, 517, 466, 517, 517, 517, 517,
|
|
|
|
|
/* 2650 */ 370, 517, 517, 357, 517, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 2660 */ 517, 517, 452, 517, 517, 455, 370, 517, 517, 459,
|
|
|
|
|
/* 2670 */ 460, 461, 462, 463, 464, 517, 466, 517, 398, 517,
|
|
|
|
|
/* 2680 */ 517, 517, 517, 517, 517, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 2690 */ 410, 517, 412, 517, 398, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 2700 */ 517, 517, 517, 517, 517, 517, 410, 517, 412, 517,
|
|
|
|
|
/* 2710 */ 517, 517, 517, 517, 517, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 2720 */ 517, 517, 517, 517, 517, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 2730 */ 517, 517, 452, 517, 357, 455, 517, 517, 517, 459,
|
|
|
|
|
/* 2740 */ 460, 461, 462, 463, 464, 517, 466, 370, 452, 517,
|
|
|
|
|
/* 2750 */ 517, 455, 517, 517, 517, 459, 460, 461, 462, 463,
|
|
|
|
|
/* 2760 */ 464, 517, 466, 517, 517, 517, 357, 517, 517, 517,
|
|
|
|
|
/* 2770 */ 517, 517, 517, 517, 517, 398, 517, 517, 517, 370,
|
|
|
|
|
/* 2780 */ 517, 517, 517, 517, 517, 517, 517, 410, 517, 412,
|
|
|
|
|
/* 2790 */ 517, 517, 517, 357, 517, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 2800 */ 517, 517, 517, 517, 517, 517, 370, 398, 517, 517,
|
|
|
|
|
/* 2810 */ 517, 517, 517, 517, 517, 517, 517, 517, 517, 410,
|
|
|
|
|
/* 2820 */ 517, 412, 517, 517, 517, 517, 517, 517, 517, 452,
|
|
|
|
|
/* 2830 */ 517, 517, 455, 517, 398, 517, 459, 460, 461, 462,
|
|
|
|
|
/* 2840 */ 463, 464, 517, 466, 517, 517, 410, 517, 412, 517,
|
|
|
|
|
/* 2850 */ 517, 517, 517, 517, 517, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 2860 */ 517, 452, 517, 357, 455, 517, 517, 517, 459, 460,
|
|
|
|
|
/* 2870 */ 461, 462, 463, 464, 517, 466, 370, 517, 517, 357,
|
|
|
|
|
/* 2880 */ 517, 517, 517, 517, 517, 517, 517, 517, 452, 517,
|
|
|
|
|
/* 2890 */ 517, 455, 370, 517, 357, 459, 460, 461, 462, 463,
|
|
|
|
|
/* 2900 */ 464, 517, 466, 517, 398, 517, 517, 370, 517, 357,
|
|
|
|
|
/* 2910 */ 517, 517, 517, 517, 517, 517, 410, 517, 412, 517,
|
|
|
|
|
/* 2920 */ 398, 517, 370, 517, 517, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 2930 */ 517, 517, 410, 517, 412, 398, 517, 517, 357, 517,
|
|
|
|
|
/* 2940 */ 517, 517, 517, 517, 517, 517, 517, 410, 517, 412,
|
|
|
|
|
/* 2950 */ 398, 370, 517, 517, 517, 517, 517, 517, 452, 517,
|
|
|
|
|
/* 2960 */ 517, 455, 410, 517, 412, 459, 460, 461, 462, 463,
|
|
|
|
|
/* 2970 */ 464, 517, 466, 517, 452, 517, 517, 455, 517, 398,
|
|
|
|
|
/* 2980 */ 517, 459, 460, 461, 462, 463, 464, 517, 466, 452,
|
|
|
|
|
/* 2990 */ 517, 410, 455, 412, 517, 517, 459, 460, 461, 462,
|
|
|
|
|
/* 3000 */ 463, 464, 517, 466, 452, 517, 517, 455, 517, 517,
|
|
|
|
|
/* 3010 */ 517, 459, 460, 461, 462, 463, 464, 517, 466, 517,
|
|
|
|
|
/* 3020 */ 517, 517, 517, 517, 517, 517, 517, 517, 517, 517,
|
|
|
|
|
/* 3030 */ 517, 517, 517, 452, 517, 517, 455, 517, 517, 517,
|
|
|
|
|
/* 3040 */ 459, 460, 461, 462, 463, 464, 517, 466, 354, 354,
|
|
|
|
|
/* 3050 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3060 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3070 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3080 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3090 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3100 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3110 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3120 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3130 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3140 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3150 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3160 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3170 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3180 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3190 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3200 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3210 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3220 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3230 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3240 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3250 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3260 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3270 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3280 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3290 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3300 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3310 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3320 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3330 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3340 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3350 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3360 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3370 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3380 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3390 */ 354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
|
|
|
|
|
/* 3400 */ 354, 354,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
2024-03-15 01:14:54 +00:00
|
|
|
#define YY_SHIFT_COUNT (859)
|
2022-01-23 12:34:16 +00:00
|
|
|
#define YY_SHIFT_MIN (0)
|
2024-03-15 01:14:54 +00:00
|
|
|
#define YY_SHIFT_MAX (2458)
|
2022-01-24 03:29:46 +00:00
|
|
|
static const unsigned short int yy_shift_ofst[] = {
|
2024-03-15 01:14:54 +00:00
|
|
|
/* 0 */ 496, 0, 247, 0, 495, 495, 495, 495, 495, 495,
|
|
|
|
|
/* 10 */ 495, 495, 495, 495, 495, 495, 742, 989, 989, 1236,
|
|
|
|
|
/* 20 */ 989, 989, 989, 989, 989, 989, 989, 989, 989, 989,
|
|
|
|
|
/* 30 */ 989, 989, 989, 989, 989, 989, 989, 989, 989, 989,
|
|
|
|
|
/* 40 */ 989, 989, 989, 989, 989, 989, 989, 989, 989, 989,
|
|
|
|
|
/* 50 */ 243, 624, 66, 7, 565, 583, 565, 565, 7, 7,
|
|
|
|
|
/* 60 */ 565, 1304, 565, 246, 1304, 93, 565, 63, 1600, 18,
|
|
|
|
|
/* 70 */ 117, 117, 1600, 1600, 385, 385, 18, 174, 134, 360,
|
|
|
|
|
/* 80 */ 360, 131, 117, 117, 117, 117, 117, 117, 117, 117,
|
|
|
|
|
/* 90 */ 117, 117, 117, 179, 514, 117, 117, 604, 63, 117,
|
|
|
|
|
/* 100 */ 179, 117, 63, 117, 117, 63, 117, 117, 63, 117,
|
|
|
|
|
/* 110 */ 63, 63, 63, 117, 611, 204, 204, 494, 430, 442,
|
|
|
|
|
/* 120 */ 442, 442, 442, 442, 442, 442, 442, 442, 442, 442,
|
|
|
|
|
/* 130 */ 442, 442, 442, 442, 442, 442, 442, 442, 399, 538,
|
|
|
|
|
/* 140 */ 174, 134, 958, 958, 105, 329, 329, 329, 298, 298,
|
|
|
|
|
/* 150 */ 2, 317, 105, 604, 518, 63, 257, 63, 63, 700,
|
|
|
|
|
/* 160 */ 63, 700, 700, 650, 914, 213, 213, 213, 213, 213,
|
|
|
|
|
/* 170 */ 213, 213, 213, 907, 285, 416, 592, 79, 340, 300,
|
|
|
|
|
/* 180 */ 603, 578, 643, 316, 316, 799, 145, 823, 279, 279,
|
|
|
|
|
/* 190 */ 279, 869, 443, 279, 639, 541, 1029, 143, 749, 541,
|
|
|
|
|
/* 200 */ 541, 1071, 951, 118, 1000, 951, 1156, 805, 317, 1240,
|
|
|
|
|
/* 210 */ 1470, 1481, 1504, 1310, 604, 1504, 604, 1333, 1515, 1518,
|
|
|
|
|
/* 220 */ 1495, 1518, 1495, 1366, 1515, 1518, 1515, 1495, 1366, 1366,
|
|
|
|
|
/* 230 */ 1366, 1449, 1465, 1515, 1469, 1515, 1515, 1515, 1556, 1528,
|
|
|
|
|
/* 240 */ 1556, 1528, 1504, 604, 604, 1563, 604, 1566, 1569, 604,
|
|
|
|
|
/* 250 */ 1566, 604, 1576, 604, 604, 1515, 604, 1556, 63, 63,
|
|
|
|
|
/* 260 */ 63, 63, 63, 63, 63, 63, 63, 63, 63, 1515,
|
|
|
|
|
/* 270 */ 914, 914, 1556, 700, 700, 700, 1417, 1537, 1504, 611,
|
|
|
|
|
/* 280 */ 1630, 1445, 1453, 1563, 611, 1240, 1515, 700, 1393, 1399,
|
|
|
|
|
/* 290 */ 1393, 1399, 1392, 1498, 1393, 1404, 1407, 1424, 1240, 1401,
|
|
|
|
|
/* 300 */ 1409, 1421, 1443, 1518, 1700, 1614, 1459, 1566, 611, 611,
|
|
|
|
|
/* 310 */ 1635, 1399, 700, 700, 700, 700, 1399, 700, 1570, 611,
|
|
|
|
|
/* 320 */ 650, 611, 1518, 700, 700, 1664, 700, 1515, 611, 1753,
|
|
|
|
|
/* 330 */ 1738, 1556, 3048, 3048, 3048, 3048, 3048, 3048, 3048, 3048,
|
|
|
|
|
/* 340 */ 3048, 36, 1698, 197, 1411, 924, 1056, 1419, 294, 640,
|
|
|
|
|
/* 350 */ 602, 386, 529, 540, 540, 540, 540, 540, 540, 540,
|
|
|
|
|
/* 360 */ 540, 540, 94, 630, 21, 778, 778, 353, 613, 634,
|
|
|
|
|
/* 370 */ 446, 26, 599, 739, 844, 1113, 1171, 814, 671, 948,
|
|
|
|
|
/* 380 */ 100, 671, 671, 671, 405, 405, 1269, 717, 401, 1277,
|
|
|
|
|
/* 390 */ 1239, 1161, 449, 1180, 1186, 1202, 1208, 1261, 1298, 883,
|
|
|
|
|
/* 400 */ 1175, 1285, 1286, 351, 505, 627, 1214, 979, 1083, 1267,
|
|
|
|
|
/* 410 */ 1289, 1137, 1121, 1135, 1291, 1336, 1296, 1140, 1303, 709,
|
|
|
|
|
/* 420 */ 1318, 1330, 1332, 1350, 1352, 1394, 1356, 1357, 1388, 1389,
|
|
|
|
|
/* 430 */ 1390, 1396, 903, 1145, 1297, 1400, 1406, 1422, 913, 1786,
|
|
|
|
|
/* 440 */ 1788, 1791, 1747, 1793, 1757, 1568, 1760, 1761, 1762, 1572,
|
|
|
|
|
/* 450 */ 1801, 1765, 1773, 1583, 1775, 1819, 1594, 1823, 1787, 1825,
|
|
|
|
|
/* 460 */ 1789, 1828, 1807, 1830, 1796, 1611, 1838, 1628, 1840, 1631,
|
|
|
|
|
/* 470 */ 1629, 1639, 1640, 1846, 1847, 1848, 1651, 1661, 1860, 1862,
|
|
|
|
|
/* 480 */ 1716, 1816, 1818, 1868, 1832, 1870, 1871, 1835, 1822, 1875,
|
|
|
|
|
/* 490 */ 1827, 1877, 1833, 1880, 1881, 1882, 1839, 1885, 1887, 1889,
|
|
|
|
|
/* 500 */ 1892, 1893, 1894, 1729, 1859, 1897, 1733, 1901, 1902, 1904,
|
|
|
|
|
/* 510 */ 1905, 1908, 1916, 1918, 1920, 1925, 1926, 1927, 1930, 1931,
|
|
|
|
|
/* 520 */ 1932, 1933, 1934, 1935, 1936, 1937, 1873, 1923, 1896, 1938,
|
|
|
|
|
/* 530 */ 1939, 1942, 1944, 1945, 1946, 1957, 1958, 1940, 1959, 1812,
|
|
|
|
|
/* 540 */ 1965, 1820, 1966, 1831, 1974, 1978, 1960, 1929, 1961, 1941,
|
|
|
|
|
/* 550 */ 1984, 1921, 1948, 1987, 1924, 1988, 1947, 1990, 1992, 1962,
|
|
|
|
|
/* 560 */ 1943, 1954, 1997, 1963, 1950, 1956, 2002, 1968, 1952, 1964,
|
|
|
|
|
/* 570 */ 2007, 1972, 2013, 1969, 1973, 1986, 1971, 1975, 1967, 1976,
|
|
|
|
|
/* 580 */ 2017, 1979, 1985, 2023, 2026, 2028, 2029, 1989, 1843, 2030,
|
|
|
|
|
/* 590 */ 1971, 1983, 2034, 2038, 1970, 2039, 2040, 2004, 1993, 2001,
|
|
|
|
|
/* 600 */ 2045, 2009, 1996, 2010, 2049, 2014, 2003, 2011, 2056, 2020,
|
|
|
|
|
/* 610 */ 2008, 2018, 2062, 2063, 2071, 2073, 2074, 2076, 1980, 1994,
|
|
|
|
|
/* 620 */ 2043, 2059, 2088, 2054, 2057, 2066, 2069, 2072, 2075, 2077,
|
|
|
|
|
/* 630 */ 2078, 2080, 2083, 2081, 2084, 2089, 2085, 2096, 2101, 2110,
|
|
|
|
|
/* 640 */ 2102, 2125, 2104, 2082, 2127, 2106, 2092, 2130, 2131, 2133,
|
|
|
|
|
/* 650 */ 2099, 2137, 2103, 2138, 2119, 2122, 2107, 2108, 2109, 2035,
|
|
|
|
|
/* 660 */ 2041, 2147, 1977, 2042, 1951, 1971, 2105, 2150, 1982, 2114,
|
|
|
|
|
/* 670 */ 2134, 2153, 1991, 2136, 2006, 2012, 2155, 2157, 2016, 2005,
|
|
|
|
|
/* 680 */ 2022, 2021, 2161, 2139, 1895, 2087, 2079, 2093, 2094, 2142,
|
|
|
|
|
/* 690 */ 2143, 2100, 2146, 2098, 2151, 2111, 2112, 2159, 2175, 2113,
|
|
|
|
|
/* 700 */ 2116, 2117, 2118, 2120, 2177, 2163, 2166, 2123, 2180, 1955,
|
|
|
|
|
/* 710 */ 2121, 2124, 2214, 2193, 1995, 2190, 2199, 2200, 2202, 2203,
|
|
|
|
|
/* 720 */ 2204, 2141, 2144, 2194, 1998, 2209, 2195, 2245, 2247, 2148,
|
|
|
|
|
/* 730 */ 2212, 2218, 2152, 1999, 2158, 2254, 2238, 2037, 2169, 2171,
|
|
|
|
|
/* 740 */ 2178, 2240, 2183, 2186, 2252, 2197, 2272, 2068, 2196, 2201,
|
|
|
|
|
/* 750 */ 2213, 2215, 2216, 2140, 2217, 2310, 2275, 2145, 2219, 2220,
|
|
|
|
|
/* 760 */ 1971, 2276, 2221, 2222, 2223, 2226, 2228, 2224, 2229, 2302,
|
|
|
|
|
/* 770 */ 2303, 2235, 2236, 2306, 2239, 2237, 2311, 2242, 2244, 2313,
|
|
|
|
|
/* 780 */ 2246, 2248, 2317, 2250, 2255, 2318, 2251, 2232, 2234, 2241,
|
|
|
|
|
/* 790 */ 2243, 2257, 2332, 2259, 2330, 2261, 2332, 2332, 2348, 2300,
|
|
|
|
|
/* 800 */ 2304, 2336, 2341, 2343, 2350, 2353, 2355, 2357, 2358, 2359,
|
|
|
|
|
/* 810 */ 2319, 2297, 2321, 2299, 2369, 2366, 2368, 2370, 2384, 2379,
|
|
|
|
|
/* 820 */ 2381, 2382, 2342, 2080, 2386, 2083, 2387, 2388, 2389, 2390,
|
|
|
|
|
/* 830 */ 2392, 2391, 2421, 2393, 2383, 2395, 2432, 2401, 2398, 2397,
|
|
|
|
|
/* 840 */ 2446, 2413, 2400, 2410, 2453, 2417, 2404, 2414, 2457, 2422,
|
|
|
|
|
/* 850 */ 2423, 2458, 2440, 2431, 2443, 2445, 2447, 2448, 2451, 2456,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
2024-03-10 14:14:57 +00:00
|
|
|
#define YY_REDUCE_COUNT (340)
|
2024-03-15 01:14:54 +00:00
|
|
|
#define YY_REDUCE_MIN (-481)
|
|
|
|
|
#define YY_REDUCE_MAX (2581)
|
2022-01-23 12:34:16 +00:00
|
|
|
static const short yy_reduce_ofst[] = {
|
2024-03-15 01:14:54 +00:00
|
|
|
/* 0 */ 600, -314, 400, 429, 685, 743, 893, 932, 990, 1138,
|
|
|
|
|
/* 10 */ 500, 1196, 1235, 1266, 1354, 1451, 1488, 1509, 252, 665,
|
|
|
|
|
/* 20 */ 1606, 1623, 1707, 724, 1638, 1722, 1806, 1821, 1836, 1852,
|
|
|
|
|
/* 30 */ 1922, 1949, 1981, 2019, 2065, 2091, 2135, 2164, 2179, 2210,
|
|
|
|
|
/* 40 */ 2280, 2296, 2377, 2409, 2436, 2506, 2522, 2537, 2552, 2581,
|
|
|
|
|
/* 50 */ -316, -332, -406, -193, 326, 368, 776, 821, -159, 220,
|
|
|
|
|
/* 60 */ 861, -381, -481, -369, 233, -444, -124, -389, -397, -380,
|
|
|
|
|
/* 70 */ -98, -75, 171, 308, -349, -265, -391, 253, -210, 4,
|
|
|
|
|
/* 80 */ 112, -290, -185, 37, 412, 414, 175, 355, 436, 498,
|
|
|
|
|
/* 90 */ 527, 545, 418, -305, -211, 552, 638, 516, -343, 648,
|
|
|
|
|
/* 100 */ 459, 651, 417, 677, 689, 423, 720, 732, 530, 734,
|
|
|
|
|
/* 110 */ 511, 631, 635, 791, 652, -464, -464, 382, -45, -202,
|
|
|
|
|
/* 120 */ -170, -148, 70, 121, 508, 666, 704, 729, 762, 802,
|
|
|
|
|
/* 130 */ 808, 809, 812, 842, 843, 856, 858, 866, 56, -450,
|
|
|
|
|
/* 140 */ 425, 9, 222, 676, 690, -450, -435, 469, 225, 325,
|
|
|
|
|
/* 150 */ -115, 466, 696, 706, -129, 744, 782, 754, 420, 698,
|
|
|
|
|
/* 160 */ 783, 850, 852, 876, 813, 477, 577, 699, 731, 895,
|
|
|
|
|
/* 170 */ 926, 959, 895, 873, 905, 1003, 953, 859, 874, 884,
|
|
|
|
|
/* 180 */ 1013, 1014, 1014, 1015, 1028, 993, 1076, 1024, 945, 952,
|
|
|
|
|
/* 190 */ 954, 1033, 1014, 968, 1099, 1078, 1129, 1094, 1064, 1088,
|
|
|
|
|
/* 200 */ 1089, 1014, 1019, 1019, 1005, 1019, 1035, 1025, 1128, 1084,
|
|
|
|
|
/* 210 */ 1068, 1072, 1080, 1079, 1151, 1085, 1154, 1096, 1168, 1169,
|
|
|
|
|
/* 220 */ 1124, 1174, 1126, 1131, 1182, 1179, 1183, 1143, 1147, 1148,
|
|
|
|
|
/* 230 */ 1149, 1185, 1188, 1201, 1192, 1204, 1205, 1206, 1215, 1213,
|
|
|
|
|
/* 240 */ 1218, 1216, 1139, 1203, 1209, 1172, 1210, 1220, 1159, 1225,
|
|
|
|
|
/* 250 */ 1243, 1229, 1184, 1241, 1242, 1248, 1246, 1256, 1223, 1227,
|
|
|
|
|
/* 260 */ 1228, 1230, 1231, 1232, 1233, 1234, 1244, 1245, 1251, 1258,
|
|
|
|
|
/* 270 */ 1274, 1278, 1279, 1253, 1260, 1262, 1190, 1198, 1207, 1276,
|
|
|
|
|
/* 280 */ 1221, 1237, 1226, 1259, 1299, 1247, 1308, 1271, 1187, 1257,
|
|
|
|
|
/* 290 */ 1193, 1263, 1189, 1195, 1211, 1219, 1222, 1212, 1275, 1199,
|
|
|
|
|
/* 300 */ 1224, 1238, 1019, 1353, 1264, 1249, 1252, 1365, 1361, 1362,
|
|
|
|
|
/* 310 */ 1270, 1317, 1338, 1340, 1341, 1343, 1326, 1345, 1344, 1381,
|
|
|
|
|
/* 320 */ 1368, 1391, 1395, 1359, 1360, 1370, 1363, 1405, 1402, 1418,
|
|
|
|
|
/* 330 */ 1416, 1420, 1342, 1334, 1355, 1358, 1397, 1398, 1403, 1408,
|
|
|
|
|
/* 340 */ 1428,
|
2022-01-23 12:34:16 +00:00
|
|
|
};
|
|
|
|
|
static const YYACTIONTYPE yy_default[] = {
|
2024-03-15 01:14:54 +00:00
|
|
|
/* 0 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 10 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 20 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 30 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 40 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 50 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 60 */ 2294, 1953, 1953, 2257, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 70 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2264, 1953, 1953,
|
|
|
|
|
/* 80 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 90 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2052, 1953, 1953,
|
|
|
|
|
/* 100 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 110 */ 1953, 1953, 1953, 1953, 2050, 2518, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 120 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 130 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2530,
|
|
|
|
|
/* 140 */ 1953, 1953, 2024, 2024, 1953, 2530, 2530, 2530, 2490, 2490,
|
|
|
|
|
/* 150 */ 2050, 1953, 1953, 2052, 2332, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 160 */ 1953, 1953, 1953, 2175, 1983, 1953, 1953, 1953, 1953, 2199,
|
|
|
|
|
/* 170 */ 1953, 1953, 1953, 2320, 1953, 1953, 2559, 2621, 1953, 2562,
|
|
|
|
|
/* 180 */ 1953, 1953, 1953, 1953, 1953, 2269, 1953, 2549, 1953, 1953,
|
|
|
|
|
/* 190 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2128, 2314, 1953,
|
|
|
|
|
/* 200 */ 1953, 1953, 2522, 2536, 2605, 2523, 2520, 2543, 1953, 2553,
|
|
|
|
|
/* 210 */ 1953, 2357, 1953, 2346, 2052, 1953, 2052, 2307, 2252, 1953,
|
|
|
|
|
/* 220 */ 2262, 1953, 2262, 2259, 1953, 1953, 1953, 2262, 2259, 2259,
|
|
|
|
|
/* 230 */ 2259, 2117, 2113, 1953, 2111, 1953, 1953, 1953, 1953, 2008,
|
|
|
|
|
/* 240 */ 1953, 2008, 1953, 2052, 2052, 1953, 2052, 1953, 1953, 2052,
|
|
|
|
|
/* 250 */ 1953, 2052, 1953, 2052, 2052, 1953, 2052, 1953, 1953, 1953,
|
|
|
|
|
/* 260 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 270 */ 1953, 1953, 1953, 1953, 1953, 1953, 2344, 2330, 1953, 2050,
|
|
|
|
|
/* 280 */ 1953, 2318, 2316, 1953, 2050, 2553, 1953, 1953, 2575, 2570,
|
|
|
|
|
/* 290 */ 2575, 2570, 2589, 2585, 2575, 2594, 2591, 2555, 2553, 2624,
|
|
|
|
|
/* 300 */ 2611, 2607, 2536, 1953, 1953, 2541, 2539, 1953, 2050, 2050,
|
|
|
|
|
/* 310 */ 1953, 2570, 1953, 1953, 1953, 1953, 2570, 1953, 1953, 2050,
|
|
|
|
|
/* 320 */ 1953, 2050, 1953, 1953, 1953, 2144, 1953, 1953, 2050, 1953,
|
|
|
|
|
/* 330 */ 1992, 1953, 2309, 2335, 2290, 2290, 2178, 2178, 2178, 2053,
|
|
|
|
|
/* 340 */ 1958, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 350 */ 1953, 1953, 1953, 2588, 2587, 2442, 1953, 2494, 2493, 2492,
|
|
|
|
|
/* 360 */ 2483, 2441, 2140, 1953, 1953, 2440, 2439, 1953, 1953, 1953,
|
|
|
|
|
/* 370 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2433, 1953,
|
|
|
|
|
/* 380 */ 1953, 2434, 2432, 2431, 2281, 2280, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 390 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 400 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 410 */ 1953, 1953, 2608, 2612, 1953, 2519, 1953, 1953, 1953, 2413,
|
|
|
|
|
/* 420 */ 1953, 1953, 1953, 1953, 1953, 2381, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 430 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 440 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 450 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 460 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 470 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 480 */ 2258, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 490 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 500 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 510 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 520 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 530 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 540 */ 1953, 1953, 1953, 2273, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 550 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 560 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 570 */ 1953, 1953, 1953, 1953, 1953, 1997, 2420, 1953, 1953, 1953,
|
|
|
|
|
/* 580 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 590 */ 2423, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 600 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 610 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 620 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 630 */ 1953, 2092, 2091, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 640 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 650 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2424,
|
|
|
|
|
/* 660 */ 1953, 1953, 1953, 1953, 1953, 2415, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 670 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 680 */ 1953, 1953, 2604, 2556, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 690 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 700 */ 1953, 1953, 1953, 1953, 1953, 1953, 2413, 1953, 2586, 1953,
|
|
|
|
|
/* 710 */ 1953, 2602, 1953, 2606, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 720 */ 1953, 2529, 2525, 1953, 1953, 2521, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 730 */ 1953, 2480, 1953, 1953, 1953, 2514, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 740 */ 1953, 1953, 1953, 1953, 1953, 2424, 1953, 2427, 1953, 1953,
|
|
|
|
|
/* 750 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 760 */ 2412, 1953, 2465, 2464, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 770 */ 1953, 2172, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 780 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 2156, 2154, 2153,
|
|
|
|
|
/* 790 */ 2152, 1953, 2185, 1953, 1953, 1953, 2181, 2180, 1953, 1953,
|
|
|
|
|
/* 800 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 810 */ 1953, 1953, 1953, 1953, 2071, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 820 */ 1953, 1953, 1953, 2063, 1953, 2062, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 830 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 840 */ 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953, 1953,
|
|
|
|
|
/* 850 */ 1953, 1953, 1953, 1982, 1953, 1953, 1953, 1953, 1953, 1953,
|
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-03-15 01:14:54 +00:00
|
|
|
304, /* 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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
0, /* ARBGROUPS => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* FUNCTIONS => nothing */
|
|
|
|
|
0, /* INDEXES => nothing */
|
|
|
|
|
0, /* ACCOUNTS => nothing */
|
|
|
|
|
0, /* APPS => nothing */
|
|
|
|
|
0, /* CONNECTIONS => nothing */
|
2022-08-11 07:37:26 +00:00
|
|
|
0, /* LICENCES => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* GRANTS => nothing */
|
2024-01-18 07:23:38 +00:00
|
|
|
0, /* FULL => nothing */
|
2024-01-31 05:44:00 +00:00
|
|
|
0, /* LOGS => nothing */
|
2024-01-18 09:49:11 +00:00
|
|
|
0, /* MACHINES => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* QUERIES => nothing */
|
|
|
|
|
0, /* SCORES => nothing */
|
|
|
|
|
0, /* TOPICS => nothing */
|
|
|
|
|
0, /* VARIABLES => nothing */
|
|
|
|
|
0, /* BNODES => nothing */
|
|
|
|
|
0, /* SNODES => nothing */
|
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-03-15 01:14:54 +00:00
|
|
|
304, /* 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 */
|
2024-03-13 07:12:21 +00:00
|
|
|
0, /* NK_BIN => nothing */
|
|
|
|
|
0, /* NK_HEX => nothing */
|
2022-04-22 10:23:37 +00:00
|
|
|
0, /* NULL => nothing */
|
|
|
|
|
0, /* NK_QUESTION => nothing */
|
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-03-15 01:14:54 +00:00
|
|
|
304, /* AFTER => ABORT */
|
|
|
|
|
304, /* ATTACH => ABORT */
|
|
|
|
|
304, /* BEFORE => ABORT */
|
|
|
|
|
304, /* BEGIN => ABORT */
|
|
|
|
|
304, /* BITAND => ABORT */
|
|
|
|
|
304, /* BITNOT => ABORT */
|
|
|
|
|
304, /* BITOR => ABORT */
|
|
|
|
|
304, /* BLOCKS => ABORT */
|
|
|
|
|
304, /* CHANGE => ABORT */
|
|
|
|
|
304, /* COMMA => ABORT */
|
|
|
|
|
304, /* CONCAT => ABORT */
|
|
|
|
|
304, /* CONFLICT => ABORT */
|
|
|
|
|
304, /* COPY => ABORT */
|
|
|
|
|
304, /* DEFERRED => ABORT */
|
|
|
|
|
304, /* DELIMITERS => ABORT */
|
|
|
|
|
304, /* DETACH => ABORT */
|
|
|
|
|
304, /* DIVIDE => ABORT */
|
|
|
|
|
304, /* DOT => ABORT */
|
|
|
|
|
304, /* EACH => ABORT */
|
|
|
|
|
304, /* FAIL => ABORT */
|
|
|
|
|
304, /* FILE => ABORT */
|
|
|
|
|
304, /* FOR => ABORT */
|
|
|
|
|
304, /* GLOB => ABORT */
|
|
|
|
|
304, /* ID => ABORT */
|
|
|
|
|
304, /* IMMEDIATE => ABORT */
|
|
|
|
|
304, /* IMPORT => ABORT */
|
|
|
|
|
304, /* INITIALLY => ABORT */
|
|
|
|
|
304, /* INSTEAD => ABORT */
|
|
|
|
|
304, /* ISNULL => ABORT */
|
|
|
|
|
304, /* KEY => ABORT */
|
|
|
|
|
304, /* MODULES => ABORT */
|
|
|
|
|
304, /* NK_BITNOT => ABORT */
|
|
|
|
|
304, /* NK_SEMI => ABORT */
|
|
|
|
|
304, /* NOTNULL => ABORT */
|
|
|
|
|
304, /* OF => ABORT */
|
|
|
|
|
304, /* PLUS => ABORT */
|
|
|
|
|
304, /* PRIVILEGE => ABORT */
|
|
|
|
|
304, /* RAISE => ABORT */
|
|
|
|
|
304, /* RESTRICT => ABORT */
|
|
|
|
|
304, /* ROW => ABORT */
|
|
|
|
|
304, /* SEMI => ABORT */
|
|
|
|
|
304, /* STAR => ABORT */
|
|
|
|
|
304, /* STATEMENT => ABORT */
|
|
|
|
|
304, /* STRICT => ABORT */
|
|
|
|
|
304, /* STRING => ABORT */
|
|
|
|
|
304, /* TIMES => ABORT */
|
|
|
|
|
304, /* VALUES => ABORT */
|
|
|
|
|
304, /* VARIABLE => ABORT */
|
|
|
|
|
304, /* 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;
|
|
|
|
|
|
2024-03-15 01:14:54 +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",
|
2024-03-15 01:14:54 +00:00
|
|
|
/* 152 */ "ARBGROUPS",
|
|
|
|
|
/* 153 */ "FUNCTIONS",
|
|
|
|
|
/* 154 */ "INDEXES",
|
|
|
|
|
/* 155 */ "ACCOUNTS",
|
|
|
|
|
/* 156 */ "APPS",
|
|
|
|
|
/* 157 */ "CONNECTIONS",
|
|
|
|
|
/* 158 */ "LICENCES",
|
|
|
|
|
/* 159 */ "GRANTS",
|
|
|
|
|
/* 160 */ "FULL",
|
|
|
|
|
/* 161 */ "LOGS",
|
|
|
|
|
/* 162 */ "MACHINES",
|
|
|
|
|
/* 163 */ "QUERIES",
|
|
|
|
|
/* 164 */ "SCORES",
|
|
|
|
|
/* 165 */ "TOPICS",
|
|
|
|
|
/* 166 */ "VARIABLES",
|
|
|
|
|
/* 167 */ "BNODES",
|
|
|
|
|
/* 168 */ "SNODES",
|
|
|
|
|
/* 169 */ "TRANSACTIONS",
|
|
|
|
|
/* 170 */ "DISTRIBUTED",
|
|
|
|
|
/* 171 */ "CONSUMERS",
|
|
|
|
|
/* 172 */ "SUBSCRIPTIONS",
|
|
|
|
|
/* 173 */ "VNODES",
|
|
|
|
|
/* 174 */ "ALIVE",
|
|
|
|
|
/* 175 */ "VIEWS",
|
|
|
|
|
/* 176 */ "VIEW",
|
|
|
|
|
/* 177 */ "COMPACTS",
|
|
|
|
|
/* 178 */ "NORMAL",
|
|
|
|
|
/* 179 */ "CHILD",
|
|
|
|
|
/* 180 */ "LIKE",
|
|
|
|
|
/* 181 */ "TBNAME",
|
|
|
|
|
/* 182 */ "QTAGS",
|
|
|
|
|
/* 183 */ "AS",
|
|
|
|
|
/* 184 */ "SYSTEM",
|
|
|
|
|
/* 185 */ "INDEX",
|
|
|
|
|
/* 186 */ "FUNCTION",
|
|
|
|
|
/* 187 */ "INTERVAL",
|
|
|
|
|
/* 188 */ "COUNT",
|
|
|
|
|
/* 189 */ "LAST_ROW",
|
|
|
|
|
/* 190 */ "META",
|
|
|
|
|
/* 191 */ "ONLY",
|
|
|
|
|
/* 192 */ "TOPIC",
|
|
|
|
|
/* 193 */ "CONSUMER",
|
|
|
|
|
/* 194 */ "GROUP",
|
|
|
|
|
/* 195 */ "DESC",
|
|
|
|
|
/* 196 */ "DESCRIBE",
|
|
|
|
|
/* 197 */ "RESET",
|
|
|
|
|
/* 198 */ "QUERY",
|
|
|
|
|
/* 199 */ "CACHE",
|
|
|
|
|
/* 200 */ "EXPLAIN",
|
|
|
|
|
/* 201 */ "ANALYZE",
|
|
|
|
|
/* 202 */ "VERBOSE",
|
|
|
|
|
/* 203 */ "NK_BOOL",
|
|
|
|
|
/* 204 */ "RATIO",
|
|
|
|
|
/* 205 */ "NK_FLOAT",
|
|
|
|
|
/* 206 */ "OUTPUTTYPE",
|
|
|
|
|
/* 207 */ "AGGREGATE",
|
|
|
|
|
/* 208 */ "BUFSIZE",
|
|
|
|
|
/* 209 */ "LANGUAGE",
|
|
|
|
|
/* 210 */ "REPLACE",
|
|
|
|
|
/* 211 */ "STREAM",
|
|
|
|
|
/* 212 */ "INTO",
|
|
|
|
|
/* 213 */ "PAUSE",
|
|
|
|
|
/* 214 */ "RESUME",
|
|
|
|
|
/* 215 */ "TRIGGER",
|
|
|
|
|
/* 216 */ "AT_ONCE",
|
|
|
|
|
/* 217 */ "WINDOW_CLOSE",
|
|
|
|
|
/* 218 */ "IGNORE",
|
|
|
|
|
/* 219 */ "EXPIRED",
|
|
|
|
|
/* 220 */ "FILL_HISTORY",
|
|
|
|
|
/* 221 */ "UPDATE",
|
|
|
|
|
/* 222 */ "SUBTABLE",
|
|
|
|
|
/* 223 */ "UNTREATED",
|
|
|
|
|
/* 224 */ "KILL",
|
|
|
|
|
/* 225 */ "CONNECTION",
|
|
|
|
|
/* 226 */ "TRANSACTION",
|
|
|
|
|
/* 227 */ "BALANCE",
|
|
|
|
|
/* 228 */ "VGROUP",
|
|
|
|
|
/* 229 */ "LEADER",
|
|
|
|
|
/* 230 */ "MERGE",
|
|
|
|
|
/* 231 */ "REDISTRIBUTE",
|
|
|
|
|
/* 232 */ "SPLIT",
|
|
|
|
|
/* 233 */ "DELETE",
|
|
|
|
|
/* 234 */ "INSERT",
|
|
|
|
|
/* 235 */ "NK_BIN",
|
|
|
|
|
/* 236 */ "NK_HEX",
|
|
|
|
|
/* 237 */ "NULL",
|
|
|
|
|
/* 238 */ "NK_QUESTION",
|
|
|
|
|
/* 239 */ "NK_ALIAS",
|
|
|
|
|
/* 240 */ "NK_ARROW",
|
|
|
|
|
/* 241 */ "ROWTS",
|
|
|
|
|
/* 242 */ "QSTART",
|
|
|
|
|
/* 243 */ "QEND",
|
|
|
|
|
/* 244 */ "QDURATION",
|
|
|
|
|
/* 245 */ "WSTART",
|
|
|
|
|
/* 246 */ "WEND",
|
|
|
|
|
/* 247 */ "WDURATION",
|
|
|
|
|
/* 248 */ "IROWTS",
|
|
|
|
|
/* 249 */ "ISFILLED",
|
|
|
|
|
/* 250 */ "CAST",
|
|
|
|
|
/* 251 */ "NOW",
|
|
|
|
|
/* 252 */ "TODAY",
|
|
|
|
|
/* 253 */ "TIMEZONE",
|
|
|
|
|
/* 254 */ "CLIENT_VERSION",
|
|
|
|
|
/* 255 */ "SERVER_VERSION",
|
|
|
|
|
/* 256 */ "SERVER_STATUS",
|
|
|
|
|
/* 257 */ "CURRENT_USER",
|
|
|
|
|
/* 258 */ "CASE",
|
|
|
|
|
/* 259 */ "WHEN",
|
|
|
|
|
/* 260 */ "THEN",
|
|
|
|
|
/* 261 */ "ELSE",
|
|
|
|
|
/* 262 */ "BETWEEN",
|
|
|
|
|
/* 263 */ "IS",
|
|
|
|
|
/* 264 */ "NK_LT",
|
|
|
|
|
/* 265 */ "NK_GT",
|
|
|
|
|
/* 266 */ "NK_LE",
|
|
|
|
|
/* 267 */ "NK_GE",
|
|
|
|
|
/* 268 */ "NK_NE",
|
|
|
|
|
/* 269 */ "MATCH",
|
|
|
|
|
/* 270 */ "NMATCH",
|
|
|
|
|
/* 271 */ "CONTAINS",
|
|
|
|
|
/* 272 */ "IN",
|
|
|
|
|
/* 273 */ "JOIN",
|
|
|
|
|
/* 274 */ "INNER",
|
|
|
|
|
/* 275 */ "SELECT",
|
|
|
|
|
/* 276 */ "NK_HINT",
|
|
|
|
|
/* 277 */ "DISTINCT",
|
|
|
|
|
/* 278 */ "WHERE",
|
|
|
|
|
/* 279 */ "PARTITION",
|
|
|
|
|
/* 280 */ "BY",
|
|
|
|
|
/* 281 */ "SESSION",
|
|
|
|
|
/* 282 */ "STATE_WINDOW",
|
|
|
|
|
/* 283 */ "EVENT_WINDOW",
|
|
|
|
|
/* 284 */ "COUNT_WINDOW",
|
|
|
|
|
/* 285 */ "SLIDING",
|
|
|
|
|
/* 286 */ "FILL",
|
|
|
|
|
/* 287 */ "VALUE",
|
|
|
|
|
/* 288 */ "VALUE_F",
|
|
|
|
|
/* 289 */ "NONE",
|
|
|
|
|
/* 290 */ "PREV",
|
|
|
|
|
/* 291 */ "NULL_F",
|
|
|
|
|
/* 292 */ "LINEAR",
|
|
|
|
|
/* 293 */ "NEXT",
|
|
|
|
|
/* 294 */ "HAVING",
|
|
|
|
|
/* 295 */ "RANGE",
|
|
|
|
|
/* 296 */ "EVERY",
|
|
|
|
|
/* 297 */ "ORDER",
|
|
|
|
|
/* 298 */ "SLIMIT",
|
|
|
|
|
/* 299 */ "SOFFSET",
|
|
|
|
|
/* 300 */ "LIMIT",
|
|
|
|
|
/* 301 */ "OFFSET",
|
|
|
|
|
/* 302 */ "ASC",
|
|
|
|
|
/* 303 */ "NULLS",
|
|
|
|
|
/* 304 */ "ABORT",
|
|
|
|
|
/* 305 */ "AFTER",
|
|
|
|
|
/* 306 */ "ATTACH",
|
|
|
|
|
/* 307 */ "BEFORE",
|
|
|
|
|
/* 308 */ "BEGIN",
|
|
|
|
|
/* 309 */ "BITAND",
|
|
|
|
|
/* 310 */ "BITNOT",
|
|
|
|
|
/* 311 */ "BITOR",
|
|
|
|
|
/* 312 */ "BLOCKS",
|
|
|
|
|
/* 313 */ "CHANGE",
|
|
|
|
|
/* 314 */ "COMMA",
|
|
|
|
|
/* 315 */ "CONCAT",
|
|
|
|
|
/* 316 */ "CONFLICT",
|
|
|
|
|
/* 317 */ "COPY",
|
|
|
|
|
/* 318 */ "DEFERRED",
|
|
|
|
|
/* 319 */ "DELIMITERS",
|
|
|
|
|
/* 320 */ "DETACH",
|
|
|
|
|
/* 321 */ "DIVIDE",
|
|
|
|
|
/* 322 */ "DOT",
|
|
|
|
|
/* 323 */ "EACH",
|
|
|
|
|
/* 324 */ "FAIL",
|
|
|
|
|
/* 325 */ "FILE",
|
|
|
|
|
/* 326 */ "FOR",
|
|
|
|
|
/* 327 */ "GLOB",
|
|
|
|
|
/* 328 */ "ID",
|
|
|
|
|
/* 329 */ "IMMEDIATE",
|
|
|
|
|
/* 330 */ "IMPORT",
|
|
|
|
|
/* 331 */ "INITIALLY",
|
|
|
|
|
/* 332 */ "INSTEAD",
|
|
|
|
|
/* 333 */ "ISNULL",
|
|
|
|
|
/* 334 */ "KEY",
|
|
|
|
|
/* 335 */ "MODULES",
|
|
|
|
|
/* 336 */ "NK_BITNOT",
|
|
|
|
|
/* 337 */ "NK_SEMI",
|
|
|
|
|
/* 338 */ "NOTNULL",
|
|
|
|
|
/* 339 */ "OF",
|
|
|
|
|
/* 340 */ "PLUS",
|
|
|
|
|
/* 341 */ "PRIVILEGE",
|
|
|
|
|
/* 342 */ "RAISE",
|
|
|
|
|
/* 343 */ "RESTRICT",
|
|
|
|
|
/* 344 */ "ROW",
|
|
|
|
|
/* 345 */ "SEMI",
|
|
|
|
|
/* 346 */ "STAR",
|
|
|
|
|
/* 347 */ "STATEMENT",
|
|
|
|
|
/* 348 */ "STRICT",
|
|
|
|
|
/* 349 */ "STRING",
|
|
|
|
|
/* 350 */ "TIMES",
|
|
|
|
|
/* 351 */ "VALUES",
|
|
|
|
|
/* 352 */ "VARIABLE",
|
|
|
|
|
/* 353 */ "WAL",
|
|
|
|
|
/* 354 */ "cmd",
|
|
|
|
|
/* 355 */ "account_options",
|
|
|
|
|
/* 356 */ "alter_account_options",
|
|
|
|
|
/* 357 */ "literal",
|
|
|
|
|
/* 358 */ "alter_account_option",
|
|
|
|
|
/* 359 */ "ip_range_list",
|
|
|
|
|
/* 360 */ "white_list",
|
|
|
|
|
/* 361 */ "white_list_opt",
|
|
|
|
|
/* 362 */ "user_name",
|
|
|
|
|
/* 363 */ "sysinfo_opt",
|
|
|
|
|
/* 364 */ "privileges",
|
|
|
|
|
/* 365 */ "priv_level",
|
|
|
|
|
/* 366 */ "with_opt",
|
|
|
|
|
/* 367 */ "priv_type_list",
|
|
|
|
|
/* 368 */ "priv_type",
|
|
|
|
|
/* 369 */ "db_name",
|
|
|
|
|
/* 370 */ "table_name",
|
|
|
|
|
/* 371 */ "topic_name",
|
|
|
|
|
/* 372 */ "search_condition",
|
|
|
|
|
/* 373 */ "dnode_endpoint",
|
|
|
|
|
/* 374 */ "force_opt",
|
|
|
|
|
/* 375 */ "unsafe_opt",
|
|
|
|
|
/* 376 */ "not_exists_opt",
|
|
|
|
|
/* 377 */ "db_options",
|
|
|
|
|
/* 378 */ "exists_opt",
|
|
|
|
|
/* 379 */ "alter_db_options",
|
|
|
|
|
/* 380 */ "speed_opt",
|
|
|
|
|
/* 381 */ "start_opt",
|
|
|
|
|
/* 382 */ "end_opt",
|
|
|
|
|
/* 383 */ "integer_list",
|
|
|
|
|
/* 384 */ "variable_list",
|
|
|
|
|
/* 385 */ "retention_list",
|
|
|
|
|
/* 386 */ "signed",
|
|
|
|
|
/* 387 */ "alter_db_option",
|
|
|
|
|
/* 388 */ "retention",
|
|
|
|
|
/* 389 */ "full_table_name",
|
|
|
|
|
/* 390 */ "column_def_list",
|
|
|
|
|
/* 391 */ "tags_def_opt",
|
|
|
|
|
/* 392 */ "table_options",
|
|
|
|
|
/* 393 */ "multi_create_clause",
|
|
|
|
|
/* 394 */ "tags_def",
|
|
|
|
|
/* 395 */ "multi_drop_clause",
|
|
|
|
|
/* 396 */ "alter_table_clause",
|
|
|
|
|
/* 397 */ "alter_table_options",
|
|
|
|
|
/* 398 */ "column_name",
|
|
|
|
|
/* 399 */ "type_name",
|
|
|
|
|
/* 400 */ "tags_literal",
|
|
|
|
|
/* 401 */ "create_subtable_clause",
|
|
|
|
|
/* 402 */ "specific_cols_opt",
|
|
|
|
|
/* 403 */ "tags_literal_list",
|
|
|
|
|
/* 404 */ "drop_table_clause",
|
|
|
|
|
/* 405 */ "col_name_list",
|
|
|
|
|
/* 406 */ "column_def",
|
|
|
|
|
/* 407 */ "duration_list",
|
|
|
|
|
/* 408 */ "rollup_func_list",
|
|
|
|
|
/* 409 */ "alter_table_option",
|
|
|
|
|
/* 410 */ "duration_literal",
|
|
|
|
|
/* 411 */ "rollup_func_name",
|
|
|
|
|
/* 412 */ "function_name",
|
|
|
|
|
/* 413 */ "col_name",
|
|
|
|
|
/* 414 */ "db_kind_opt",
|
|
|
|
|
/* 415 */ "table_kind_db_name_cond_opt",
|
|
|
|
|
/* 416 */ "like_pattern_opt",
|
|
|
|
|
/* 417 */ "db_name_cond_opt",
|
|
|
|
|
/* 418 */ "table_name_cond",
|
|
|
|
|
/* 419 */ "from_db_opt",
|
|
|
|
|
/* 420 */ "tag_list_opt",
|
|
|
|
|
/* 421 */ "table_kind",
|
|
|
|
|
/* 422 */ "tag_item",
|
|
|
|
|
/* 423 */ "column_alias",
|
|
|
|
|
/* 424 */ "index_options",
|
|
|
|
|
/* 425 */ "full_index_name",
|
|
|
|
|
/* 426 */ "index_name",
|
|
|
|
|
/* 427 */ "func_list",
|
|
|
|
|
/* 428 */ "sliding_opt",
|
|
|
|
|
/* 429 */ "sma_stream_opt",
|
|
|
|
|
/* 430 */ "func",
|
|
|
|
|
/* 431 */ "sma_func_name",
|
|
|
|
|
/* 432 */ "expression_list",
|
|
|
|
|
/* 433 */ "with_meta",
|
|
|
|
|
/* 434 */ "query_or_subquery",
|
|
|
|
|
/* 435 */ "where_clause_opt",
|
|
|
|
|
/* 436 */ "cgroup_name",
|
|
|
|
|
/* 437 */ "analyze_opt",
|
|
|
|
|
/* 438 */ "explain_options",
|
|
|
|
|
/* 439 */ "insert_query",
|
|
|
|
|
/* 440 */ "or_replace_opt",
|
|
|
|
|
/* 441 */ "agg_func_opt",
|
|
|
|
|
/* 442 */ "bufsize_opt",
|
|
|
|
|
/* 443 */ "language_opt",
|
|
|
|
|
/* 444 */ "full_view_name",
|
|
|
|
|
/* 445 */ "view_name",
|
|
|
|
|
/* 446 */ "stream_name",
|
|
|
|
|
/* 447 */ "stream_options",
|
|
|
|
|
/* 448 */ "col_list_opt",
|
|
|
|
|
/* 449 */ "tag_def_or_ref_opt",
|
|
|
|
|
/* 450 */ "subtable_opt",
|
|
|
|
|
/* 451 */ "ignore_opt",
|
|
|
|
|
/* 452 */ "expression",
|
|
|
|
|
/* 453 */ "on_vgroup_id",
|
|
|
|
|
/* 454 */ "dnode_list",
|
|
|
|
|
/* 455 */ "literal_func",
|
|
|
|
|
/* 456 */ "signed_literal",
|
|
|
|
|
/* 457 */ "literal_list",
|
|
|
|
|
/* 458 */ "table_alias",
|
|
|
|
|
/* 459 */ "expr_or_subquery",
|
|
|
|
|
/* 460 */ "pseudo_column",
|
|
|
|
|
/* 461 */ "column_reference",
|
|
|
|
|
/* 462 */ "function_expression",
|
|
|
|
|
/* 463 */ "case_when_expression",
|
|
|
|
|
/* 464 */ "star_func",
|
|
|
|
|
/* 465 */ "star_func_para_list",
|
|
|
|
|
/* 466 */ "noarg_func",
|
|
|
|
|
/* 467 */ "other_para_list",
|
|
|
|
|
/* 468 */ "star_func_para",
|
|
|
|
|
/* 469 */ "when_then_list",
|
|
|
|
|
/* 470 */ "case_when_else_opt",
|
|
|
|
|
/* 471 */ "common_expression",
|
|
|
|
|
/* 472 */ "when_then_expr",
|
|
|
|
|
/* 473 */ "predicate",
|
|
|
|
|
/* 474 */ "compare_op",
|
|
|
|
|
/* 475 */ "in_op",
|
|
|
|
|
/* 476 */ "in_predicate_value",
|
|
|
|
|
/* 477 */ "boolean_value_expression",
|
|
|
|
|
/* 478 */ "boolean_primary",
|
|
|
|
|
/* 479 */ "from_clause_opt",
|
|
|
|
|
/* 480 */ "table_reference_list",
|
|
|
|
|
/* 481 */ "table_reference",
|
|
|
|
|
/* 482 */ "table_primary",
|
|
|
|
|
/* 483 */ "joined_table",
|
|
|
|
|
/* 484 */ "alias_opt",
|
|
|
|
|
/* 485 */ "subquery",
|
|
|
|
|
/* 486 */ "parenthesized_joined_table",
|
|
|
|
|
/* 487 */ "join_type",
|
|
|
|
|
/* 488 */ "query_specification",
|
|
|
|
|
/* 489 */ "hint_list",
|
|
|
|
|
/* 490 */ "set_quantifier_opt",
|
|
|
|
|
/* 491 */ "tag_mode_opt",
|
|
|
|
|
/* 492 */ "select_list",
|
|
|
|
|
/* 493 */ "partition_by_clause_opt",
|
|
|
|
|
/* 494 */ "range_opt",
|
|
|
|
|
/* 495 */ "every_opt",
|
|
|
|
|
/* 496 */ "fill_opt",
|
|
|
|
|
/* 497 */ "twindow_clause_opt",
|
|
|
|
|
/* 498 */ "group_by_clause_opt",
|
|
|
|
|
/* 499 */ "having_clause_opt",
|
|
|
|
|
/* 500 */ "select_item",
|
|
|
|
|
/* 501 */ "partition_list",
|
|
|
|
|
/* 502 */ "partition_item",
|
|
|
|
|
/* 503 */ "interval_sliding_duration_literal",
|
|
|
|
|
/* 504 */ "fill_mode",
|
|
|
|
|
/* 505 */ "group_by_list",
|
|
|
|
|
/* 506 */ "query_expression",
|
|
|
|
|
/* 507 */ "query_simple",
|
|
|
|
|
/* 508 */ "order_by_clause_opt",
|
|
|
|
|
/* 509 */ "slimit_clause_opt",
|
|
|
|
|
/* 510 */ "limit_clause_opt",
|
|
|
|
|
/* 511 */ "union_query_expression",
|
|
|
|
|
/* 512 */ "query_simple_or_subquery",
|
|
|
|
|
/* 513 */ "sort_specification_list",
|
|
|
|
|
/* 514 */ "sort_specification",
|
|
|
|
|
/* 515 */ "ordering_specification_opt",
|
|
|
|
|
/* 516 */ "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",
|
2024-03-10 14:14:57 +00:00
|
|
|
/* 181 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal",
|
2023-12-18 08:34:31 +00:00
|
|
|
/* 182 */ "multi_create_clause ::= create_subtable_clause",
|
|
|
|
|
/* 183 */ "multi_create_clause ::= multi_create_clause create_subtable_clause",
|
2024-03-10 14:14:57 +00:00
|
|
|
/* 184 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options",
|
2023-12-18 08:34:31 +00:00
|
|
|
/* 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",
|
2024-03-15 01:14:54 +00:00
|
|
|
/* 253 */ "cmd ::= SHOW ARBGROUPS",
|
|
|
|
|
/* 254 */ "cmd ::= SHOW FUNCTIONS",
|
|
|
|
|
/* 255 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt",
|
|
|
|
|
/* 256 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name",
|
|
|
|
|
/* 257 */ "cmd ::= SHOW STREAMS",
|
|
|
|
|
/* 258 */ "cmd ::= SHOW ACCOUNTS",
|
|
|
|
|
/* 259 */ "cmd ::= SHOW APPS",
|
|
|
|
|
/* 260 */ "cmd ::= SHOW CONNECTIONS",
|
|
|
|
|
/* 261 */ "cmd ::= SHOW LICENCES",
|
|
|
|
|
/* 262 */ "cmd ::= SHOW GRANTS",
|
|
|
|
|
/* 263 */ "cmd ::= SHOW GRANTS FULL",
|
|
|
|
|
/* 264 */ "cmd ::= SHOW GRANTS LOGS",
|
|
|
|
|
/* 265 */ "cmd ::= SHOW CLUSTER MACHINES",
|
|
|
|
|
/* 266 */ "cmd ::= SHOW CREATE DATABASE db_name",
|
|
|
|
|
/* 267 */ "cmd ::= SHOW CREATE TABLE full_table_name",
|
|
|
|
|
/* 268 */ "cmd ::= SHOW CREATE STABLE full_table_name",
|
|
|
|
|
/* 269 */ "cmd ::= SHOW QUERIES",
|
|
|
|
|
/* 270 */ "cmd ::= SHOW SCORES",
|
|
|
|
|
/* 271 */ "cmd ::= SHOW TOPICS",
|
|
|
|
|
/* 272 */ "cmd ::= SHOW VARIABLES",
|
|
|
|
|
/* 273 */ "cmd ::= SHOW CLUSTER VARIABLES",
|
|
|
|
|
/* 274 */ "cmd ::= SHOW LOCAL VARIABLES",
|
|
|
|
|
/* 275 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt",
|
|
|
|
|
/* 276 */ "cmd ::= SHOW BNODES",
|
|
|
|
|
/* 277 */ "cmd ::= SHOW SNODES",
|
|
|
|
|
/* 278 */ "cmd ::= SHOW CLUSTER",
|
|
|
|
|
/* 279 */ "cmd ::= SHOW TRANSACTIONS",
|
|
|
|
|
/* 280 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name",
|
|
|
|
|
/* 281 */ "cmd ::= SHOW CONSUMERS",
|
|
|
|
|
/* 282 */ "cmd ::= SHOW SUBSCRIPTIONS",
|
|
|
|
|
/* 283 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt",
|
|
|
|
|
/* 284 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name",
|
|
|
|
|
/* 285 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt",
|
|
|
|
|
/* 286 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name",
|
|
|
|
|
/* 287 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER",
|
|
|
|
|
/* 288 */ "cmd ::= SHOW VNODES",
|
|
|
|
|
/* 289 */ "cmd ::= SHOW db_name_cond_opt ALIVE",
|
|
|
|
|
/* 290 */ "cmd ::= SHOW CLUSTER ALIVE",
|
|
|
|
|
/* 291 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt",
|
|
|
|
|
/* 292 */ "cmd ::= SHOW CREATE VIEW full_table_name",
|
|
|
|
|
/* 293 */ "cmd ::= SHOW COMPACTS",
|
|
|
|
|
/* 294 */ "cmd ::= SHOW COMPACT NK_INTEGER",
|
|
|
|
|
/* 295 */ "table_kind_db_name_cond_opt ::=",
|
|
|
|
|
/* 296 */ "table_kind_db_name_cond_opt ::= table_kind",
|
|
|
|
|
/* 297 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT",
|
|
|
|
|
/* 298 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT",
|
|
|
|
|
/* 299 */ "table_kind ::= NORMAL",
|
|
|
|
|
/* 300 */ "table_kind ::= CHILD",
|
|
|
|
|
/* 301 */ "db_name_cond_opt ::=",
|
|
|
|
|
/* 302 */ "db_name_cond_opt ::= db_name NK_DOT",
|
|
|
|
|
/* 303 */ "like_pattern_opt ::=",
|
|
|
|
|
/* 304 */ "like_pattern_opt ::= LIKE NK_STRING",
|
|
|
|
|
/* 305 */ "table_name_cond ::= table_name",
|
|
|
|
|
/* 306 */ "from_db_opt ::=",
|
|
|
|
|
/* 307 */ "from_db_opt ::= FROM db_name",
|
|
|
|
|
/* 308 */ "tag_list_opt ::=",
|
|
|
|
|
/* 309 */ "tag_list_opt ::= tag_item",
|
|
|
|
|
/* 310 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item",
|
|
|
|
|
/* 311 */ "tag_item ::= TBNAME",
|
|
|
|
|
/* 312 */ "tag_item ::= QTAGS",
|
|
|
|
|
/* 313 */ "tag_item ::= column_name",
|
|
|
|
|
/* 314 */ "tag_item ::= column_name column_alias",
|
|
|
|
|
/* 315 */ "tag_item ::= column_name AS column_alias",
|
|
|
|
|
/* 316 */ "db_kind_opt ::=",
|
|
|
|
|
/* 317 */ "db_kind_opt ::= USER",
|
|
|
|
|
/* 318 */ "db_kind_opt ::= SYSTEM",
|
|
|
|
|
/* 319 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options",
|
|
|
|
|
/* 320 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 321 */ "cmd ::= DROP INDEX exists_opt full_index_name",
|
|
|
|
|
/* 322 */ "full_index_name ::= index_name",
|
|
|
|
|
/* 323 */ "full_index_name ::= db_name NK_DOT index_name",
|
|
|
|
|
/* 324 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt",
|
|
|
|
|
/* 325 */ "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",
|
|
|
|
|
/* 326 */ "func_list ::= func",
|
|
|
|
|
/* 327 */ "func_list ::= func_list NK_COMMA func",
|
|
|
|
|
/* 328 */ "func ::= sma_func_name NK_LP expression_list NK_RP",
|
|
|
|
|
/* 329 */ "sma_func_name ::= function_name",
|
|
|
|
|
/* 330 */ "sma_func_name ::= COUNT",
|
|
|
|
|
/* 331 */ "sma_func_name ::= FIRST",
|
|
|
|
|
/* 332 */ "sma_func_name ::= LAST",
|
|
|
|
|
/* 333 */ "sma_func_name ::= LAST_ROW",
|
|
|
|
|
/* 334 */ "sma_stream_opt ::=",
|
|
|
|
|
/* 335 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal",
|
|
|
|
|
/* 336 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal",
|
|
|
|
|
/* 337 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal",
|
|
|
|
|
/* 338 */ "with_meta ::= AS",
|
|
|
|
|
/* 339 */ "with_meta ::= WITH META AS",
|
|
|
|
|
/* 340 */ "with_meta ::= ONLY META AS",
|
|
|
|
|
/* 341 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery",
|
|
|
|
|
/* 342 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name",
|
|
|
|
|
/* 343 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt",
|
|
|
|
|
/* 344 */ "cmd ::= DROP TOPIC exists_opt topic_name",
|
|
|
|
|
/* 345 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name",
|
|
|
|
|
/* 346 */ "cmd ::= DESC full_table_name",
|
|
|
|
|
/* 347 */ "cmd ::= DESCRIBE full_table_name",
|
|
|
|
|
/* 348 */ "cmd ::= RESET QUERY CACHE",
|
|
|
|
|
/* 349 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery",
|
|
|
|
|
/* 350 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query",
|
|
|
|
|
/* 351 */ "analyze_opt ::=",
|
|
|
|
|
/* 352 */ "analyze_opt ::= ANALYZE",
|
|
|
|
|
/* 353 */ "explain_options ::=",
|
|
|
|
|
/* 354 */ "explain_options ::= explain_options VERBOSE NK_BOOL",
|
|
|
|
|
/* 355 */ "explain_options ::= explain_options RATIO NK_FLOAT",
|
|
|
|
|
/* 356 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt",
|
|
|
|
|
/* 357 */ "cmd ::= DROP FUNCTION exists_opt function_name",
|
|
|
|
|
/* 358 */ "agg_func_opt ::=",
|
|
|
|
|
/* 359 */ "agg_func_opt ::= AGGREGATE",
|
|
|
|
|
/* 360 */ "bufsize_opt ::=",
|
|
|
|
|
/* 361 */ "bufsize_opt ::= BUFSIZE NK_INTEGER",
|
|
|
|
|
/* 362 */ "language_opt ::=",
|
|
|
|
|
/* 363 */ "language_opt ::= LANGUAGE NK_STRING",
|
|
|
|
|
/* 364 */ "or_replace_opt ::=",
|
|
|
|
|
/* 365 */ "or_replace_opt ::= OR REPLACE",
|
|
|
|
|
/* 366 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery",
|
|
|
|
|
/* 367 */ "cmd ::= DROP VIEW exists_opt full_view_name",
|
|
|
|
|
/* 368 */ "full_view_name ::= view_name",
|
|
|
|
|
/* 369 */ "full_view_name ::= db_name NK_DOT view_name",
|
|
|
|
|
/* 370 */ "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",
|
|
|
|
|
/* 371 */ "cmd ::= DROP STREAM exists_opt stream_name",
|
|
|
|
|
/* 372 */ "cmd ::= PAUSE STREAM exists_opt stream_name",
|
|
|
|
|
/* 373 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name",
|
|
|
|
|
/* 374 */ "col_list_opt ::=",
|
|
|
|
|
/* 375 */ "col_list_opt ::= NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 376 */ "tag_def_or_ref_opt ::=",
|
|
|
|
|
/* 377 */ "tag_def_or_ref_opt ::= tags_def",
|
|
|
|
|
/* 378 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP",
|
|
|
|
|
/* 379 */ "stream_options ::=",
|
|
|
|
|
/* 380 */ "stream_options ::= stream_options TRIGGER AT_ONCE",
|
|
|
|
|
/* 381 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE",
|
|
|
|
|
/* 382 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal",
|
|
|
|
|
/* 383 */ "stream_options ::= stream_options WATERMARK duration_literal",
|
|
|
|
|
/* 384 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER",
|
|
|
|
|
/* 385 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER",
|
|
|
|
|
/* 386 */ "stream_options ::= stream_options DELETE_MARK duration_literal",
|
|
|
|
|
/* 387 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER",
|
|
|
|
|
/* 388 */ "subtable_opt ::=",
|
|
|
|
|
/* 389 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP",
|
|
|
|
|
/* 390 */ "ignore_opt ::=",
|
|
|
|
|
/* 391 */ "ignore_opt ::= IGNORE UNTREATED",
|
|
|
|
|
/* 392 */ "cmd ::= KILL CONNECTION NK_INTEGER",
|
|
|
|
|
/* 393 */ "cmd ::= KILL QUERY NK_STRING",
|
|
|
|
|
/* 394 */ "cmd ::= KILL TRANSACTION NK_INTEGER",
|
|
|
|
|
/* 395 */ "cmd ::= KILL COMPACT NK_INTEGER",
|
|
|
|
|
/* 396 */ "cmd ::= BALANCE VGROUP",
|
|
|
|
|
/* 397 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id",
|
|
|
|
|
/* 398 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER",
|
|
|
|
|
/* 399 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list",
|
|
|
|
|
/* 400 */ "cmd ::= SPLIT VGROUP NK_INTEGER",
|
|
|
|
|
/* 401 */ "on_vgroup_id ::=",
|
|
|
|
|
/* 402 */ "on_vgroup_id ::= ON NK_INTEGER",
|
|
|
|
|
/* 403 */ "dnode_list ::= DNODE NK_INTEGER",
|
|
|
|
|
/* 404 */ "dnode_list ::= dnode_list DNODE NK_INTEGER",
|
|
|
|
|
/* 405 */ "cmd ::= DELETE FROM full_table_name where_clause_opt",
|
|
|
|
|
/* 406 */ "cmd ::= query_or_subquery",
|
|
|
|
|
/* 407 */ "cmd ::= insert_query",
|
|
|
|
|
/* 408 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery",
|
|
|
|
|
/* 409 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery",
|
|
|
|
|
/* 410 */ "tags_literal ::= NK_INTEGER",
|
|
|
|
|
/* 411 */ "tags_literal ::= NK_PLUS NK_INTEGER",
|
|
|
|
|
/* 412 */ "tags_literal ::= NK_MINUS NK_INTEGER",
|
|
|
|
|
/* 413 */ "tags_literal ::= NK_FLOAT",
|
|
|
|
|
/* 414 */ "tags_literal ::= NK_PLUS NK_FLOAT",
|
|
|
|
|
/* 415 */ "tags_literal ::= NK_MINUS NK_FLOAT",
|
|
|
|
|
/* 416 */ "tags_literal ::= NK_BIN",
|
|
|
|
|
/* 417 */ "tags_literal ::= NK_PLUS NK_BIN",
|
|
|
|
|
/* 418 */ "tags_literal ::= NK_MINUS NK_BIN",
|
|
|
|
|
/* 419 */ "tags_literal ::= NK_HEX",
|
|
|
|
|
/* 420 */ "tags_literal ::= NK_PLUS NK_HEX",
|
|
|
|
|
/* 421 */ "tags_literal ::= NK_MINUS NK_HEX",
|
|
|
|
|
/* 422 */ "tags_literal ::= NK_STRING",
|
|
|
|
|
/* 423 */ "tags_literal ::= NK_BOOL",
|
|
|
|
|
/* 424 */ "tags_literal ::= NULL",
|
|
|
|
|
/* 425 */ "tags_literal ::= literal_func",
|
|
|
|
|
/* 426 */ "tags_literal ::= literal_func NK_PLUS duration_literal",
|
|
|
|
|
/* 427 */ "tags_literal ::= literal_func NK_MINUS duration_literal",
|
|
|
|
|
/* 428 */ "tags_literal_list ::= tags_literal",
|
|
|
|
|
/* 429 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal",
|
|
|
|
|
/* 430 */ "literal ::= NK_INTEGER",
|
|
|
|
|
/* 431 */ "literal ::= NK_FLOAT",
|
|
|
|
|
/* 432 */ "literal ::= NK_STRING",
|
|
|
|
|
/* 433 */ "literal ::= NK_BOOL",
|
|
|
|
|
/* 434 */ "literal ::= TIMESTAMP NK_STRING",
|
|
|
|
|
/* 435 */ "literal ::= duration_literal",
|
|
|
|
|
/* 436 */ "literal ::= NULL",
|
|
|
|
|
/* 437 */ "literal ::= NK_QUESTION",
|
|
|
|
|
/* 438 */ "duration_literal ::= NK_VARIABLE",
|
|
|
|
|
/* 439 */ "signed ::= NK_INTEGER",
|
|
|
|
|
/* 440 */ "signed ::= NK_PLUS NK_INTEGER",
|
|
|
|
|
/* 441 */ "signed ::= NK_MINUS NK_INTEGER",
|
|
|
|
|
/* 442 */ "signed ::= NK_FLOAT",
|
|
|
|
|
/* 443 */ "signed ::= NK_PLUS NK_FLOAT",
|
|
|
|
|
/* 444 */ "signed ::= NK_MINUS NK_FLOAT",
|
|
|
|
|
/* 445 */ "signed_literal ::= signed",
|
|
|
|
|
/* 446 */ "signed_literal ::= NK_STRING",
|
|
|
|
|
/* 447 */ "signed_literal ::= NK_BOOL",
|
|
|
|
|
/* 448 */ "signed_literal ::= TIMESTAMP NK_STRING",
|
|
|
|
|
/* 449 */ "signed_literal ::= duration_literal",
|
|
|
|
|
/* 450 */ "signed_literal ::= NULL",
|
|
|
|
|
/* 451 */ "signed_literal ::= literal_func",
|
|
|
|
|
/* 452 */ "signed_literal ::= NK_QUESTION",
|
|
|
|
|
/* 453 */ "literal_list ::= signed_literal",
|
|
|
|
|
/* 454 */ "literal_list ::= literal_list NK_COMMA signed_literal",
|
|
|
|
|
/* 455 */ "db_name ::= NK_ID",
|
|
|
|
|
/* 456 */ "table_name ::= NK_ID",
|
|
|
|
|
/* 457 */ "column_name ::= NK_ID",
|
|
|
|
|
/* 458 */ "function_name ::= NK_ID",
|
|
|
|
|
/* 459 */ "view_name ::= NK_ID",
|
|
|
|
|
/* 460 */ "table_alias ::= NK_ID",
|
|
|
|
|
/* 461 */ "column_alias ::= NK_ID",
|
|
|
|
|
/* 462 */ "column_alias ::= NK_ALIAS",
|
|
|
|
|
/* 463 */ "user_name ::= NK_ID",
|
|
|
|
|
/* 464 */ "topic_name ::= NK_ID",
|
|
|
|
|
/* 465 */ "stream_name ::= NK_ID",
|
|
|
|
|
/* 466 */ "cgroup_name ::= NK_ID",
|
|
|
|
|
/* 467 */ "index_name ::= NK_ID",
|
|
|
|
|
/* 468 */ "expr_or_subquery ::= expression",
|
|
|
|
|
/* 469 */ "expression ::= literal",
|
|
|
|
|
/* 470 */ "expression ::= pseudo_column",
|
|
|
|
|
/* 471 */ "expression ::= column_reference",
|
|
|
|
|
/* 472 */ "expression ::= function_expression",
|
|
|
|
|
/* 473 */ "expression ::= case_when_expression",
|
|
|
|
|
/* 474 */ "expression ::= NK_LP expression NK_RP",
|
|
|
|
|
/* 475 */ "expression ::= NK_PLUS expr_or_subquery",
|
|
|
|
|
/* 476 */ "expression ::= NK_MINUS expr_or_subquery",
|
|
|
|
|
/* 477 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery",
|
|
|
|
|
/* 478 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery",
|
|
|
|
|
/* 479 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery",
|
|
|
|
|
/* 480 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery",
|
|
|
|
|
/* 481 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery",
|
|
|
|
|
/* 482 */ "expression ::= column_reference NK_ARROW NK_STRING",
|
|
|
|
|
/* 483 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery",
|
|
|
|
|
/* 484 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery",
|
|
|
|
|
/* 485 */ "expression_list ::= expr_or_subquery",
|
|
|
|
|
/* 486 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery",
|
|
|
|
|
/* 487 */ "column_reference ::= column_name",
|
|
|
|
|
/* 488 */ "column_reference ::= table_name NK_DOT column_name",
|
|
|
|
|
/* 489 */ "column_reference ::= NK_ALIAS",
|
|
|
|
|
/* 490 */ "column_reference ::= table_name NK_DOT NK_ALIAS",
|
|
|
|
|
/* 491 */ "pseudo_column ::= ROWTS",
|
|
|
|
|
/* 492 */ "pseudo_column ::= TBNAME",
|
|
|
|
|
/* 493 */ "pseudo_column ::= table_name NK_DOT TBNAME",
|
|
|
|
|
/* 494 */ "pseudo_column ::= QSTART",
|
|
|
|
|
/* 495 */ "pseudo_column ::= QEND",
|
|
|
|
|
/* 496 */ "pseudo_column ::= QDURATION",
|
|
|
|
|
/* 497 */ "pseudo_column ::= WSTART",
|
|
|
|
|
/* 498 */ "pseudo_column ::= WEND",
|
|
|
|
|
/* 499 */ "pseudo_column ::= WDURATION",
|
|
|
|
|
/* 500 */ "pseudo_column ::= IROWTS",
|
|
|
|
|
/* 501 */ "pseudo_column ::= ISFILLED",
|
|
|
|
|
/* 502 */ "pseudo_column ::= QTAGS",
|
|
|
|
|
/* 503 */ "function_expression ::= function_name NK_LP expression_list NK_RP",
|
|
|
|
|
/* 504 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP",
|
|
|
|
|
/* 505 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP",
|
|
|
|
|
/* 506 */ "function_expression ::= literal_func",
|
|
|
|
|
/* 507 */ "literal_func ::= noarg_func NK_LP NK_RP",
|
|
|
|
|
/* 508 */ "literal_func ::= NOW",
|
|
|
|
|
/* 509 */ "literal_func ::= TODAY",
|
|
|
|
|
/* 510 */ "noarg_func ::= NOW",
|
|
|
|
|
/* 511 */ "noarg_func ::= TODAY",
|
|
|
|
|
/* 512 */ "noarg_func ::= TIMEZONE",
|
|
|
|
|
/* 513 */ "noarg_func ::= DATABASE",
|
|
|
|
|
/* 514 */ "noarg_func ::= CLIENT_VERSION",
|
|
|
|
|
/* 515 */ "noarg_func ::= SERVER_VERSION",
|
|
|
|
|
/* 516 */ "noarg_func ::= SERVER_STATUS",
|
|
|
|
|
/* 517 */ "noarg_func ::= CURRENT_USER",
|
|
|
|
|
/* 518 */ "noarg_func ::= USER",
|
|
|
|
|
/* 519 */ "star_func ::= COUNT",
|
|
|
|
|
/* 520 */ "star_func ::= FIRST",
|
|
|
|
|
/* 521 */ "star_func ::= LAST",
|
|
|
|
|
/* 522 */ "star_func ::= LAST_ROW",
|
|
|
|
|
/* 523 */ "star_func_para_list ::= NK_STAR",
|
|
|
|
|
/* 524 */ "star_func_para_list ::= other_para_list",
|
|
|
|
|
/* 525 */ "other_para_list ::= star_func_para",
|
|
|
|
|
/* 526 */ "other_para_list ::= other_para_list NK_COMMA star_func_para",
|
|
|
|
|
/* 527 */ "star_func_para ::= expr_or_subquery",
|
|
|
|
|
/* 528 */ "star_func_para ::= table_name NK_DOT NK_STAR",
|
|
|
|
|
/* 529 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END",
|
|
|
|
|
/* 530 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END",
|
|
|
|
|
/* 531 */ "when_then_list ::= when_then_expr",
|
|
|
|
|
/* 532 */ "when_then_list ::= when_then_list when_then_expr",
|
|
|
|
|
/* 533 */ "when_then_expr ::= WHEN common_expression THEN common_expression",
|
|
|
|
|
/* 534 */ "case_when_else_opt ::=",
|
|
|
|
|
/* 535 */ "case_when_else_opt ::= ELSE common_expression",
|
|
|
|
|
/* 536 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery",
|
|
|
|
|
/* 537 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
|
|
|
/* 538 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery",
|
|
|
|
|
/* 539 */ "predicate ::= expr_or_subquery IS NULL",
|
|
|
|
|
/* 540 */ "predicate ::= expr_or_subquery IS NOT NULL",
|
|
|
|
|
/* 541 */ "predicate ::= expr_or_subquery in_op in_predicate_value",
|
|
|
|
|
/* 542 */ "compare_op ::= NK_LT",
|
|
|
|
|
/* 543 */ "compare_op ::= NK_GT",
|
|
|
|
|
/* 544 */ "compare_op ::= NK_LE",
|
|
|
|
|
/* 545 */ "compare_op ::= NK_GE",
|
|
|
|
|
/* 546 */ "compare_op ::= NK_NE",
|
|
|
|
|
/* 547 */ "compare_op ::= NK_EQ",
|
|
|
|
|
/* 548 */ "compare_op ::= LIKE",
|
|
|
|
|
/* 549 */ "compare_op ::= NOT LIKE",
|
|
|
|
|
/* 550 */ "compare_op ::= MATCH",
|
|
|
|
|
/* 551 */ "compare_op ::= NMATCH",
|
|
|
|
|
/* 552 */ "compare_op ::= CONTAINS",
|
|
|
|
|
/* 553 */ "in_op ::= IN",
|
|
|
|
|
/* 554 */ "in_op ::= NOT IN",
|
|
|
|
|
/* 555 */ "in_predicate_value ::= NK_LP literal_list NK_RP",
|
|
|
|
|
/* 556 */ "boolean_value_expression ::= boolean_primary",
|
|
|
|
|
/* 557 */ "boolean_value_expression ::= NOT boolean_primary",
|
|
|
|
|
/* 558 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression",
|
|
|
|
|
/* 559 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression",
|
|
|
|
|
/* 560 */ "boolean_primary ::= predicate",
|
|
|
|
|
/* 561 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP",
|
|
|
|
|
/* 562 */ "common_expression ::= expr_or_subquery",
|
|
|
|
|
/* 563 */ "common_expression ::= boolean_value_expression",
|
|
|
|
|
/* 564 */ "from_clause_opt ::=",
|
|
|
|
|
/* 565 */ "from_clause_opt ::= FROM table_reference_list",
|
|
|
|
|
/* 566 */ "table_reference_list ::= table_reference",
|
|
|
|
|
/* 567 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference",
|
|
|
|
|
/* 568 */ "table_reference ::= table_primary",
|
|
|
|
|
/* 569 */ "table_reference ::= joined_table",
|
|
|
|
|
/* 570 */ "table_primary ::= table_name alias_opt",
|
|
|
|
|
/* 571 */ "table_primary ::= db_name NK_DOT table_name alias_opt",
|
|
|
|
|
/* 572 */ "table_primary ::= subquery alias_opt",
|
|
|
|
|
/* 573 */ "table_primary ::= parenthesized_joined_table",
|
|
|
|
|
/* 574 */ "alias_opt ::=",
|
|
|
|
|
/* 575 */ "alias_opt ::= table_alias",
|
|
|
|
|
/* 576 */ "alias_opt ::= AS table_alias",
|
|
|
|
|
/* 577 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP",
|
|
|
|
|
/* 578 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP",
|
|
|
|
|
/* 579 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition",
|
|
|
|
|
/* 580 */ "join_type ::=",
|
|
|
|
|
/* 581 */ "join_type ::= INNER",
|
|
|
|
|
/* 582 */ "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",
|
|
|
|
|
/* 583 */ "hint_list ::=",
|
|
|
|
|
/* 584 */ "hint_list ::= NK_HINT",
|
|
|
|
|
/* 585 */ "tag_mode_opt ::=",
|
|
|
|
|
/* 586 */ "tag_mode_opt ::= TAGS",
|
|
|
|
|
/* 587 */ "set_quantifier_opt ::=",
|
|
|
|
|
/* 588 */ "set_quantifier_opt ::= DISTINCT",
|
|
|
|
|
/* 589 */ "set_quantifier_opt ::= ALL",
|
|
|
|
|
/* 590 */ "select_list ::= select_item",
|
|
|
|
|
/* 591 */ "select_list ::= select_list NK_COMMA select_item",
|
|
|
|
|
/* 592 */ "select_item ::= NK_STAR",
|
|
|
|
|
/* 593 */ "select_item ::= common_expression",
|
|
|
|
|
/* 594 */ "select_item ::= common_expression column_alias",
|
|
|
|
|
/* 595 */ "select_item ::= common_expression AS column_alias",
|
|
|
|
|
/* 596 */ "select_item ::= table_name NK_DOT NK_STAR",
|
|
|
|
|
/* 597 */ "where_clause_opt ::=",
|
|
|
|
|
/* 598 */ "where_clause_opt ::= WHERE search_condition",
|
|
|
|
|
/* 599 */ "partition_by_clause_opt ::=",
|
|
|
|
|
/* 600 */ "partition_by_clause_opt ::= PARTITION BY partition_list",
|
|
|
|
|
/* 601 */ "partition_list ::= partition_item",
|
|
|
|
|
/* 602 */ "partition_list ::= partition_list NK_COMMA partition_item",
|
|
|
|
|
/* 603 */ "partition_item ::= expr_or_subquery",
|
|
|
|
|
/* 604 */ "partition_item ::= expr_or_subquery column_alias",
|
|
|
|
|
/* 605 */ "partition_item ::= expr_or_subquery AS column_alias",
|
|
|
|
|
/* 606 */ "twindow_clause_opt ::=",
|
|
|
|
|
/* 607 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP",
|
|
|
|
|
/* 608 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP",
|
|
|
|
|
/* 609 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
|
|
|
/* 610 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt",
|
|
|
|
|
/* 611 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition",
|
|
|
|
|
/* 612 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP",
|
|
|
|
|
/* 613 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP",
|
|
|
|
|
/* 614 */ "sliding_opt ::=",
|
|
|
|
|
/* 615 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP",
|
|
|
|
|
/* 616 */ "interval_sliding_duration_literal ::= NK_VARIABLE",
|
|
|
|
|
/* 617 */ "interval_sliding_duration_literal ::= NK_STRING",
|
|
|
|
|
/* 618 */ "interval_sliding_duration_literal ::= NK_INTEGER",
|
|
|
|
|
/* 619 */ "fill_opt ::=",
|
|
|
|
|
/* 620 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP",
|
|
|
|
|
/* 621 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP",
|
|
|
|
|
/* 622 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP",
|
|
|
|
|
/* 623 */ "fill_mode ::= NONE",
|
|
|
|
|
/* 624 */ "fill_mode ::= PREV",
|
|
|
|
|
/* 625 */ "fill_mode ::= NULL",
|
|
|
|
|
/* 626 */ "fill_mode ::= NULL_F",
|
|
|
|
|
/* 627 */ "fill_mode ::= LINEAR",
|
|
|
|
|
/* 628 */ "fill_mode ::= NEXT",
|
|
|
|
|
/* 629 */ "group_by_clause_opt ::=",
|
|
|
|
|
/* 630 */ "group_by_clause_opt ::= GROUP BY group_by_list",
|
|
|
|
|
/* 631 */ "group_by_list ::= expr_or_subquery",
|
|
|
|
|
/* 632 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery",
|
|
|
|
|
/* 633 */ "having_clause_opt ::=",
|
|
|
|
|
/* 634 */ "having_clause_opt ::= HAVING search_condition",
|
|
|
|
|
/* 635 */ "range_opt ::=",
|
|
|
|
|
/* 636 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP",
|
|
|
|
|
/* 637 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP",
|
|
|
|
|
/* 638 */ "every_opt ::=",
|
|
|
|
|
/* 639 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP",
|
|
|
|
|
/* 640 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt",
|
|
|
|
|
/* 641 */ "query_simple ::= query_specification",
|
|
|
|
|
/* 642 */ "query_simple ::= union_query_expression",
|
|
|
|
|
/* 643 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery",
|
|
|
|
|
/* 644 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery",
|
|
|
|
|
/* 645 */ "query_simple_or_subquery ::= query_simple",
|
|
|
|
|
/* 646 */ "query_simple_or_subquery ::= subquery",
|
|
|
|
|
/* 647 */ "query_or_subquery ::= query_expression",
|
|
|
|
|
/* 648 */ "query_or_subquery ::= subquery",
|
|
|
|
|
/* 649 */ "order_by_clause_opt ::=",
|
|
|
|
|
/* 650 */ "order_by_clause_opt ::= ORDER BY sort_specification_list",
|
|
|
|
|
/* 651 */ "slimit_clause_opt ::=",
|
|
|
|
|
/* 652 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER",
|
|
|
|
|
/* 653 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER",
|
|
|
|
|
/* 654 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
|
|
|
/* 655 */ "limit_clause_opt ::=",
|
|
|
|
|
/* 656 */ "limit_clause_opt ::= LIMIT NK_INTEGER",
|
|
|
|
|
/* 657 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER",
|
|
|
|
|
/* 658 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER",
|
|
|
|
|
/* 659 */ "subquery ::= NK_LP query_expression NK_RP",
|
|
|
|
|
/* 660 */ "subquery ::= NK_LP subquery NK_RP",
|
|
|
|
|
/* 661 */ "search_condition ::= common_expression",
|
|
|
|
|
/* 662 */ "sort_specification_list ::= sort_specification",
|
|
|
|
|
/* 663 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification",
|
|
|
|
|
/* 664 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt",
|
|
|
|
|
/* 665 */ "ordering_specification_opt ::=",
|
|
|
|
|
/* 666 */ "ordering_specification_opt ::= ASC",
|
|
|
|
|
/* 667 */ "ordering_specification_opt ::= DESC",
|
|
|
|
|
/* 668 */ "null_ordering_opt ::=",
|
|
|
|
|
/* 669 */ "null_ordering_opt ::= NULLS FIRST",
|
|
|
|
|
/* 670 */ "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-03-15 01:14:54 +00:00
|
|
|
case 354: /* cmd */
|
|
|
|
|
case 357: /* literal */
|
|
|
|
|
case 366: /* with_opt */
|
|
|
|
|
case 372: /* search_condition */
|
|
|
|
|
case 377: /* db_options */
|
|
|
|
|
case 379: /* alter_db_options */
|
|
|
|
|
case 381: /* start_opt */
|
|
|
|
|
case 382: /* end_opt */
|
|
|
|
|
case 386: /* signed */
|
|
|
|
|
case 388: /* retention */
|
|
|
|
|
case 389: /* full_table_name */
|
|
|
|
|
case 392: /* table_options */
|
|
|
|
|
case 396: /* alter_table_clause */
|
|
|
|
|
case 397: /* alter_table_options */
|
|
|
|
|
case 400: /* tags_literal */
|
|
|
|
|
case 401: /* create_subtable_clause */
|
|
|
|
|
case 404: /* drop_table_clause */
|
|
|
|
|
case 406: /* column_def */
|
|
|
|
|
case 410: /* duration_literal */
|
|
|
|
|
case 411: /* rollup_func_name */
|
|
|
|
|
case 413: /* col_name */
|
|
|
|
|
case 416: /* like_pattern_opt */
|
|
|
|
|
case 417: /* db_name_cond_opt */
|
|
|
|
|
case 418: /* table_name_cond */
|
|
|
|
|
case 419: /* from_db_opt */
|
|
|
|
|
case 422: /* tag_item */
|
|
|
|
|
case 424: /* index_options */
|
|
|
|
|
case 425: /* full_index_name */
|
|
|
|
|
case 428: /* sliding_opt */
|
|
|
|
|
case 429: /* sma_stream_opt */
|
|
|
|
|
case 430: /* func */
|
|
|
|
|
case 434: /* query_or_subquery */
|
|
|
|
|
case 435: /* where_clause_opt */
|
|
|
|
|
case 438: /* explain_options */
|
|
|
|
|
case 439: /* insert_query */
|
|
|
|
|
case 444: /* full_view_name */
|
|
|
|
|
case 447: /* stream_options */
|
|
|
|
|
case 450: /* subtable_opt */
|
|
|
|
|
case 452: /* expression */
|
|
|
|
|
case 455: /* literal_func */
|
|
|
|
|
case 456: /* signed_literal */
|
|
|
|
|
case 459: /* expr_or_subquery */
|
|
|
|
|
case 460: /* pseudo_column */
|
|
|
|
|
case 461: /* column_reference */
|
|
|
|
|
case 462: /* function_expression */
|
|
|
|
|
case 463: /* case_when_expression */
|
|
|
|
|
case 468: /* star_func_para */
|
|
|
|
|
case 470: /* case_when_else_opt */
|
|
|
|
|
case 471: /* common_expression */
|
|
|
|
|
case 472: /* when_then_expr */
|
|
|
|
|
case 473: /* predicate */
|
|
|
|
|
case 476: /* in_predicate_value */
|
|
|
|
|
case 477: /* boolean_value_expression */
|
|
|
|
|
case 478: /* boolean_primary */
|
|
|
|
|
case 479: /* from_clause_opt */
|
|
|
|
|
case 480: /* table_reference_list */
|
|
|
|
|
case 481: /* table_reference */
|
|
|
|
|
case 482: /* table_primary */
|
|
|
|
|
case 483: /* joined_table */
|
|
|
|
|
case 485: /* subquery */
|
|
|
|
|
case 486: /* parenthesized_joined_table */
|
|
|
|
|
case 488: /* query_specification */
|
|
|
|
|
case 494: /* range_opt */
|
|
|
|
|
case 495: /* every_opt */
|
|
|
|
|
case 496: /* fill_opt */
|
|
|
|
|
case 497: /* twindow_clause_opt */
|
|
|
|
|
case 499: /* having_clause_opt */
|
|
|
|
|
case 500: /* select_item */
|
|
|
|
|
case 502: /* partition_item */
|
|
|
|
|
case 503: /* interval_sliding_duration_literal */
|
|
|
|
|
case 506: /* query_expression */
|
|
|
|
|
case 507: /* query_simple */
|
|
|
|
|
case 509: /* slimit_clause_opt */
|
|
|
|
|
case 510: /* limit_clause_opt */
|
|
|
|
|
case 511: /* union_query_expression */
|
|
|
|
|
case 512: /* query_simple_or_subquery */
|
|
|
|
|
case 514: /* sort_specification */
|
2022-06-22 08:35:14 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7 "sql.y"
|
|
|
|
|
nodesDestroyNode((yypminor->yy718));
|
|
|
|
|
#line 3309 "sql.c"
|
2022-06-22 08:35:14 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 355: /* account_options */
|
|
|
|
|
case 356: /* alter_account_options */
|
|
|
|
|
case 358: /* alter_account_option */
|
|
|
|
|
case 380: /* speed_opt */
|
|
|
|
|
case 433: /* with_meta */
|
|
|
|
|
case 442: /* bufsize_opt */
|
2022-05-07 09:37:17 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 54 "sql.y"
|
2022-06-22 08:35:14 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3321 "sql.c"
|
2022-05-07 09:37:17 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 359: /* ip_range_list */
|
|
|
|
|
case 360: /* white_list */
|
|
|
|
|
case 361: /* white_list_opt */
|
|
|
|
|
case 383: /* integer_list */
|
|
|
|
|
case 384: /* variable_list */
|
|
|
|
|
case 385: /* retention_list */
|
|
|
|
|
case 390: /* column_def_list */
|
|
|
|
|
case 391: /* tags_def_opt */
|
|
|
|
|
case 393: /* multi_create_clause */
|
|
|
|
|
case 394: /* tags_def */
|
|
|
|
|
case 395: /* multi_drop_clause */
|
|
|
|
|
case 402: /* specific_cols_opt */
|
|
|
|
|
case 403: /* tags_literal_list */
|
|
|
|
|
case 405: /* col_name_list */
|
|
|
|
|
case 407: /* duration_list */
|
|
|
|
|
case 408: /* rollup_func_list */
|
|
|
|
|
case 420: /* tag_list_opt */
|
|
|
|
|
case 427: /* func_list */
|
|
|
|
|
case 432: /* expression_list */
|
|
|
|
|
case 448: /* col_list_opt */
|
|
|
|
|
case 449: /* tag_def_or_ref_opt */
|
|
|
|
|
case 454: /* dnode_list */
|
|
|
|
|
case 457: /* literal_list */
|
|
|
|
|
case 465: /* star_func_para_list */
|
|
|
|
|
case 467: /* other_para_list */
|
|
|
|
|
case 469: /* when_then_list */
|
|
|
|
|
case 489: /* hint_list */
|
|
|
|
|
case 492: /* select_list */
|
|
|
|
|
case 493: /* partition_by_clause_opt */
|
|
|
|
|
case 498: /* group_by_clause_opt */
|
|
|
|
|
case 501: /* partition_list */
|
|
|
|
|
case 505: /* group_by_list */
|
|
|
|
|
case 508: /* order_by_clause_opt */
|
|
|
|
|
case 513: /* sort_specification_list */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 85 "sql.y"
|
|
|
|
|
nodesDestroyList((yypminor->yy552));
|
|
|
|
|
#line 3361 "sql.c"
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 362: /* user_name */
|
|
|
|
|
case 369: /* db_name */
|
|
|
|
|
case 370: /* table_name */
|
|
|
|
|
case 371: /* topic_name */
|
|
|
|
|
case 373: /* dnode_endpoint */
|
|
|
|
|
case 398: /* column_name */
|
|
|
|
|
case 412: /* function_name */
|
|
|
|
|
case 423: /* column_alias */
|
|
|
|
|
case 426: /* index_name */
|
|
|
|
|
case 431: /* sma_func_name */
|
|
|
|
|
case 436: /* cgroup_name */
|
|
|
|
|
case 443: /* language_opt */
|
|
|
|
|
case 445: /* view_name */
|
|
|
|
|
case 446: /* stream_name */
|
|
|
|
|
case 453: /* on_vgroup_id */
|
|
|
|
|
case 458: /* table_alias */
|
|
|
|
|
case 464: /* star_func */
|
|
|
|
|
case 466: /* noarg_func */
|
|
|
|
|
case 484: /* alias_opt */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 890 "sql.y"
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3386 "sql.c"
|
2022-03-01 02:13:22 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 363: /* sysinfo_opt */
|
2023-03-28 10:43:58 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 112 "sql.y"
|
2023-03-28 10:43:58 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3393 "sql.c"
|
2023-03-28 10:43:58 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 364: /* privileges */
|
|
|
|
|
case 367: /* priv_type_list */
|
|
|
|
|
case 368: /* priv_type */
|
2022-03-01 02:13:22 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 121 "sql.y"
|
2022-03-03 12:25:16 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3402 "sql.c"
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 365: /* priv_level */
|
2022-03-03 12:25:16 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 138 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3409 "sql.c"
|
2022-03-16 11:28:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 374: /* force_opt */
|
|
|
|
|
case 375: /* unsafe_opt */
|
|
|
|
|
case 376: /* not_exists_opt */
|
|
|
|
|
case 378: /* exists_opt */
|
|
|
|
|
case 437: /* analyze_opt */
|
|
|
|
|
case 440: /* or_replace_opt */
|
|
|
|
|
case 441: /* agg_func_opt */
|
|
|
|
|
case 451: /* ignore_opt */
|
|
|
|
|
case 490: /* set_quantifier_opt */
|
|
|
|
|
case 491: /* tag_mode_opt */
|
2022-03-16 11:28:40 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 167 "sql.y"
|
2023-08-24 07:54:10 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3425 "sql.c"
|
2022-03-03 12:25:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 387: /* alter_db_option */
|
|
|
|
|
case 409: /* alter_table_option */
|
2022-03-16 11:28:40 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 269 "sql.y"
|
2022-03-31 11:38:17 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3433 "sql.c"
|
2022-03-16 11:28:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 399: /* type_name */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 392 "sql.y"
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3440 "sql.c"
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 414: /* db_kind_opt */
|
|
|
|
|
case 421: /* table_kind */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 561 "sql.y"
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3448 "sql.c"
|
2022-01-23 12:34:16 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 415: /* table_kind_db_name_cond_opt */
|
2022-01-23 12:34:16 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 526 "sql.y"
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3455 "sql.c"
|
2022-01-27 06:32:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 474: /* compare_op */
|
|
|
|
|
case 475: /* in_op */
|
2022-01-27 06:32:40 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 1081 "sql.y"
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3463 "sql.c"
|
2022-01-27 06:32:40 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 487: /* join_type */
|
2022-01-27 16:28:13 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 1157 "sql.y"
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3470 "sql.c"
|
2022-01-27 16:28:13 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 504: /* fill_mode */
|
2023-09-19 08:14:17 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 1252 "sql.y"
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3477 "sql.c"
|
2022-01-27 16:28:13 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 515: /* ordering_specification_opt */
|
2022-01-27 06:32:40 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 1337 "sql.y"
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3484 "sql.c"
|
2023-09-19 08:14:17 +00:00
|
|
|
}
|
|
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 516: /* null_ordering_opt */
|
2022-01-27 06:32:40 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 1343 "sql.y"
|
2022-03-05 23:12:08 +00:00
|
|
|
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 3491 "sql.c"
|
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{
|
2024-03-15 01:14:54 +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-03-15 01:14:54 +00:00
|
|
|
354, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */
|
|
|
|
|
354, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
|
|
|
|
355, /* (2) account_options ::= */
|
|
|
|
|
355, /* (3) account_options ::= account_options PPS literal */
|
|
|
|
|
355, /* (4) account_options ::= account_options TSERIES literal */
|
|
|
|
|
355, /* (5) account_options ::= account_options STORAGE literal */
|
|
|
|
|
355, /* (6) account_options ::= account_options STREAMS literal */
|
|
|
|
|
355, /* (7) account_options ::= account_options QTIME literal */
|
|
|
|
|
355, /* (8) account_options ::= account_options DBS literal */
|
|
|
|
|
355, /* (9) account_options ::= account_options USERS literal */
|
|
|
|
|
355, /* (10) account_options ::= account_options CONNS literal */
|
|
|
|
|
355, /* (11) account_options ::= account_options STATE literal */
|
|
|
|
|
356, /* (12) alter_account_options ::= alter_account_option */
|
|
|
|
|
356, /* (13) alter_account_options ::= alter_account_options alter_account_option */
|
|
|
|
|
358, /* (14) alter_account_option ::= PASS literal */
|
|
|
|
|
358, /* (15) alter_account_option ::= PPS literal */
|
|
|
|
|
358, /* (16) alter_account_option ::= TSERIES literal */
|
|
|
|
|
358, /* (17) alter_account_option ::= STORAGE literal */
|
|
|
|
|
358, /* (18) alter_account_option ::= STREAMS literal */
|
|
|
|
|
358, /* (19) alter_account_option ::= QTIME literal */
|
|
|
|
|
358, /* (20) alter_account_option ::= DBS literal */
|
|
|
|
|
358, /* (21) alter_account_option ::= USERS literal */
|
|
|
|
|
358, /* (22) alter_account_option ::= CONNS literal */
|
|
|
|
|
358, /* (23) alter_account_option ::= STATE literal */
|
|
|
|
|
359, /* (24) ip_range_list ::= NK_STRING */
|
|
|
|
|
359, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
|
|
|
|
360, /* (26) white_list ::= HOST ip_range_list */
|
|
|
|
|
361, /* (27) white_list_opt ::= */
|
|
|
|
|
361, /* (28) white_list_opt ::= white_list */
|
|
|
|
|
354, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
|
|
|
|
354, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */
|
|
|
|
|
354, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
|
|
|
|
354, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
|
|
|
|
354, /* (33) cmd ::= ALTER USER user_name ADD white_list */
|
|
|
|
|
354, /* (34) cmd ::= ALTER USER user_name DROP white_list */
|
|
|
|
|
354, /* (35) cmd ::= DROP USER user_name */
|
|
|
|
|
363, /* (36) sysinfo_opt ::= */
|
|
|
|
|
363, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */
|
|
|
|
|
354, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
|
|
|
|
354, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
|
|
|
|
364, /* (40) privileges ::= ALL */
|
|
|
|
|
364, /* (41) privileges ::= priv_type_list */
|
|
|
|
|
364, /* (42) privileges ::= SUBSCRIBE */
|
|
|
|
|
367, /* (43) priv_type_list ::= priv_type */
|
|
|
|
|
367, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
|
|
|
|
368, /* (45) priv_type ::= READ */
|
|
|
|
|
368, /* (46) priv_type ::= WRITE */
|
|
|
|
|
368, /* (47) priv_type ::= ALTER */
|
|
|
|
|
365, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */
|
|
|
|
|
365, /* (49) priv_level ::= db_name NK_DOT NK_STAR */
|
|
|
|
|
365, /* (50) priv_level ::= db_name NK_DOT table_name */
|
|
|
|
|
365, /* (51) priv_level ::= topic_name */
|
|
|
|
|
366, /* (52) with_opt ::= */
|
|
|
|
|
366, /* (53) with_opt ::= WITH search_condition */
|
|
|
|
|
354, /* (54) cmd ::= CREATE DNODE dnode_endpoint */
|
|
|
|
|
354, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */
|
|
|
|
|
354, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */
|
|
|
|
|
354, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */
|
|
|
|
|
354, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */
|
|
|
|
|
354, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */
|
|
|
|
|
354, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */
|
|
|
|
|
354, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
|
|
|
|
354, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */
|
|
|
|
|
354, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
|
|
|
|
354, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */
|
|
|
|
|
373, /* (65) dnode_endpoint ::= NK_STRING */
|
|
|
|
|
373, /* (66) dnode_endpoint ::= NK_ID */
|
|
|
|
|
373, /* (67) dnode_endpoint ::= NK_IPTOKEN */
|
|
|
|
|
374, /* (68) force_opt ::= */
|
|
|
|
|
374, /* (69) force_opt ::= FORCE */
|
|
|
|
|
375, /* (70) unsafe_opt ::= UNSAFE */
|
|
|
|
|
354, /* (71) cmd ::= ALTER CLUSTER NK_STRING */
|
|
|
|
|
354, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */
|
|
|
|
|
354, /* (73) cmd ::= ALTER LOCAL NK_STRING */
|
|
|
|
|
354, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
|
|
|
|
354, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
|
|
|
|
354, /* (87) cmd ::= DROP DATABASE exists_opt db_name */
|
|
|
|
|
354, /* (88) cmd ::= USE db_name */
|
|
|
|
|
354, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */
|
|
|
|
|
354, /* (90) cmd ::= FLUSH DATABASE db_name */
|
|
|
|
|
354, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */
|
|
|
|
|
354, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */
|
|
|
|
|
376, /* (93) not_exists_opt ::= IF NOT EXISTS */
|
|
|
|
|
376, /* (94) not_exists_opt ::= */
|
|
|
|
|
378, /* (95) exists_opt ::= IF EXISTS */
|
|
|
|
|
378, /* (96) exists_opt ::= */
|
|
|
|
|
377, /* (97) db_options ::= */
|
|
|
|
|
377, /* (98) db_options ::= db_options BUFFER NK_INTEGER */
|
|
|
|
|
377, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */
|
|
|
|
|
377, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */
|
|
|
|
|
377, /* (101) db_options ::= db_options COMP NK_INTEGER */
|
|
|
|
|
377, /* (102) db_options ::= db_options DURATION NK_INTEGER */
|
|
|
|
|
377, /* (103) db_options ::= db_options DURATION NK_VARIABLE */
|
|
|
|
|
377, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */
|
|
|
|
|
377, /* (105) db_options ::= db_options MINROWS NK_INTEGER */
|
|
|
|
|
377, /* (106) db_options ::= db_options KEEP integer_list */
|
|
|
|
|
377, /* (107) db_options ::= db_options KEEP variable_list */
|
|
|
|
|
377, /* (108) db_options ::= db_options PAGES NK_INTEGER */
|
|
|
|
|
377, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */
|
|
|
|
|
377, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */
|
|
|
|
|
377, /* (111) db_options ::= db_options PRECISION NK_STRING */
|
|
|
|
|
377, /* (112) db_options ::= db_options REPLICA NK_INTEGER */
|
|
|
|
|
377, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */
|
|
|
|
|
377, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */
|
|
|
|
|
377, /* (115) db_options ::= db_options RETENTIONS retention_list */
|
|
|
|
|
377, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */
|
|
|
|
|
377, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */
|
|
|
|
|
377, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */
|
|
|
|
|
377, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */
|
|
|
|
|
377, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
|
|
|
377, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */
|
|
|
|
|
377, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
|
|
|
377, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */
|
|
|
|
|
377, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */
|
|
|
|
|
377, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */
|
|
|
|
|
377, /* (126) db_options ::= db_options TABLE_PREFIX signed */
|
|
|
|
|
377, /* (127) db_options ::= db_options TABLE_SUFFIX signed */
|
|
|
|
|
377, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */
|
|
|
|
|
379, /* (129) alter_db_options ::= alter_db_option */
|
|
|
|
|
379, /* (130) alter_db_options ::= alter_db_options alter_db_option */
|
|
|
|
|
387, /* (131) alter_db_option ::= BUFFER NK_INTEGER */
|
|
|
|
|
387, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */
|
|
|
|
|
387, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */
|
|
|
|
|
387, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */
|
|
|
|
|
387, /* (135) alter_db_option ::= KEEP integer_list */
|
|
|
|
|
387, /* (136) alter_db_option ::= KEEP variable_list */
|
|
|
|
|
387, /* (137) alter_db_option ::= PAGES NK_INTEGER */
|
|
|
|
|
387, /* (138) alter_db_option ::= REPLICA NK_INTEGER */
|
|
|
|
|
387, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */
|
|
|
|
|
387, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */
|
|
|
|
|
387, /* (141) alter_db_option ::= MINROWS NK_INTEGER */
|
|
|
|
|
387, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */
|
|
|
|
|
387, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */
|
|
|
|
|
387, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */
|
|
|
|
|
387, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */
|
|
|
|
|
387, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */
|
|
|
|
|
383, /* (147) integer_list ::= NK_INTEGER */
|
|
|
|
|
383, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */
|
|
|
|
|
384, /* (149) variable_list ::= NK_VARIABLE */
|
|
|
|
|
384, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */
|
|
|
|
|
385, /* (151) retention_list ::= retention */
|
|
|
|
|
385, /* (152) retention_list ::= retention_list NK_COMMA retention */
|
|
|
|
|
388, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */
|
|
|
|
|
388, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */
|
|
|
|
|
380, /* (155) speed_opt ::= */
|
|
|
|
|
380, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */
|
|
|
|
|
381, /* (157) start_opt ::= */
|
|
|
|
|
381, /* (158) start_opt ::= START WITH NK_INTEGER */
|
|
|
|
|
381, /* (159) start_opt ::= START WITH NK_STRING */
|
|
|
|
|
381, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */
|
|
|
|
|
382, /* (161) end_opt ::= */
|
|
|
|
|
382, /* (162) end_opt ::= END WITH NK_INTEGER */
|
|
|
|
|
382, /* (163) end_opt ::= END WITH NK_STRING */
|
|
|
|
|
382, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */
|
|
|
|
|
354, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */
|
|
|
|
|
354, /* (166) cmd ::= CREATE TABLE multi_create_clause */
|
|
|
|
|
354, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */
|
|
|
|
|
354, /* (168) cmd ::= DROP TABLE multi_drop_clause */
|
|
|
|
|
354, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */
|
|
|
|
|
354, /* (170) cmd ::= ALTER TABLE alter_table_clause */
|
|
|
|
|
354, /* (171) cmd ::= ALTER STABLE alter_table_clause */
|
|
|
|
|
396, /* (172) alter_table_clause ::= full_table_name alter_table_options */
|
|
|
|
|
396, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */
|
|
|
|
|
396, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */
|
|
|
|
|
396, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */
|
|
|
|
|
396, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */
|
|
|
|
|
396, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */
|
|
|
|
|
396, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */
|
|
|
|
|
396, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */
|
|
|
|
|
396, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */
|
|
|
|
|
396, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
|
|
|
|
|
393, /* (182) multi_create_clause ::= create_subtable_clause */
|
|
|
|
|
393, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
|
|
|
|
401, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
|
|
|
|
|
395, /* (185) multi_drop_clause ::= drop_table_clause */
|
|
|
|
|
395, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */
|
|
|
|
|
404, /* (187) drop_table_clause ::= exists_opt full_table_name */
|
|
|
|
|
402, /* (188) specific_cols_opt ::= */
|
|
|
|
|
402, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
389, /* (190) full_table_name ::= table_name */
|
|
|
|
|
389, /* (191) full_table_name ::= db_name NK_DOT table_name */
|
|
|
|
|
390, /* (192) column_def_list ::= column_def */
|
|
|
|
|
390, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */
|
|
|
|
|
406, /* (194) column_def ::= column_name type_name */
|
|
|
|
|
399, /* (195) type_name ::= BOOL */
|
|
|
|
|
399, /* (196) type_name ::= TINYINT */
|
|
|
|
|
399, /* (197) type_name ::= SMALLINT */
|
|
|
|
|
399, /* (198) type_name ::= INT */
|
|
|
|
|
399, /* (199) type_name ::= INTEGER */
|
|
|
|
|
399, /* (200) type_name ::= BIGINT */
|
|
|
|
|
399, /* (201) type_name ::= FLOAT */
|
|
|
|
|
399, /* (202) type_name ::= DOUBLE */
|
|
|
|
|
399, /* (203) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
399, /* (204) type_name ::= TIMESTAMP */
|
|
|
|
|
399, /* (205) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
399, /* (206) type_name ::= TINYINT UNSIGNED */
|
|
|
|
|
399, /* (207) type_name ::= SMALLINT UNSIGNED */
|
|
|
|
|
399, /* (208) type_name ::= INT UNSIGNED */
|
|
|
|
|
399, /* (209) type_name ::= BIGINT UNSIGNED */
|
|
|
|
|
399, /* (210) type_name ::= JSON */
|
|
|
|
|
399, /* (211) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
399, /* (212) type_name ::= MEDIUMBLOB */
|
|
|
|
|
399, /* (213) type_name ::= BLOB */
|
|
|
|
|
399, /* (214) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
399, /* (215) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
399, /* (216) type_name ::= DECIMAL */
|
|
|
|
|
399, /* (217) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
399, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
391, /* (219) tags_def_opt ::= */
|
|
|
|
|
391, /* (220) tags_def_opt ::= tags_def */
|
|
|
|
|
394, /* (221) tags_def ::= TAGS NK_LP column_def_list NK_RP */
|
|
|
|
|
392, /* (222) table_options ::= */
|
|
|
|
|
392, /* (223) table_options ::= table_options COMMENT NK_STRING */
|
|
|
|
|
392, /* (224) table_options ::= table_options MAX_DELAY duration_list */
|
|
|
|
|
392, /* (225) table_options ::= table_options WATERMARK duration_list */
|
|
|
|
|
392, /* (226) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */
|
|
|
|
|
392, /* (227) table_options ::= table_options TTL NK_INTEGER */
|
|
|
|
|
392, /* (228) table_options ::= table_options SMA NK_LP col_name_list NK_RP */
|
|
|
|
|
392, /* (229) table_options ::= table_options DELETE_MARK duration_list */
|
|
|
|
|
397, /* (230) alter_table_options ::= alter_table_option */
|
|
|
|
|
397, /* (231) alter_table_options ::= alter_table_options alter_table_option */
|
|
|
|
|
409, /* (232) alter_table_option ::= COMMENT NK_STRING */
|
|
|
|
|
409, /* (233) alter_table_option ::= TTL NK_INTEGER */
|
|
|
|
|
407, /* (234) duration_list ::= duration_literal */
|
|
|
|
|
407, /* (235) duration_list ::= duration_list NK_COMMA duration_literal */
|
|
|
|
|
408, /* (236) rollup_func_list ::= rollup_func_name */
|
|
|
|
|
408, /* (237) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */
|
|
|
|
|
411, /* (238) rollup_func_name ::= function_name */
|
|
|
|
|
411, /* (239) rollup_func_name ::= FIRST */
|
|
|
|
|
411, /* (240) rollup_func_name ::= LAST */
|
|
|
|
|
405, /* (241) col_name_list ::= col_name */
|
|
|
|
|
405, /* (242) col_name_list ::= col_name_list NK_COMMA col_name */
|
|
|
|
|
413, /* (243) col_name ::= column_name */
|
|
|
|
|
354, /* (244) cmd ::= SHOW DNODES */
|
|
|
|
|
354, /* (245) cmd ::= SHOW USERS */
|
|
|
|
|
354, /* (246) cmd ::= SHOW USER PRIVILEGES */
|
|
|
|
|
354, /* (247) cmd ::= SHOW db_kind_opt DATABASES */
|
|
|
|
|
354, /* (248) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */
|
|
|
|
|
354, /* (249) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */
|
|
|
|
|
354, /* (250) cmd ::= SHOW db_name_cond_opt VGROUPS */
|
|
|
|
|
354, /* (251) cmd ::= SHOW MNODES */
|
|
|
|
|
354, /* (252) cmd ::= SHOW QNODES */
|
|
|
|
|
354, /* (253) cmd ::= SHOW ARBGROUPS */
|
|
|
|
|
354, /* (254) cmd ::= SHOW FUNCTIONS */
|
|
|
|
|
354, /* (255) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
|
|
|
354, /* (256) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
|
|
|
354, /* (257) cmd ::= SHOW STREAMS */
|
|
|
|
|
354, /* (258) cmd ::= SHOW ACCOUNTS */
|
|
|
|
|
354, /* (259) cmd ::= SHOW APPS */
|
|
|
|
|
354, /* (260) cmd ::= SHOW CONNECTIONS */
|
|
|
|
|
354, /* (261) cmd ::= SHOW LICENCES */
|
|
|
|
|
354, /* (262) cmd ::= SHOW GRANTS */
|
|
|
|
|
354, /* (263) cmd ::= SHOW GRANTS FULL */
|
|
|
|
|
354, /* (264) cmd ::= SHOW GRANTS LOGS */
|
|
|
|
|
354, /* (265) cmd ::= SHOW CLUSTER MACHINES */
|
|
|
|
|
354, /* (266) cmd ::= SHOW CREATE DATABASE db_name */
|
|
|
|
|
354, /* (267) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
|
|
|
354, /* (268) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
|
|
|
354, /* (269) cmd ::= SHOW QUERIES */
|
|
|
|
|
354, /* (270) cmd ::= SHOW SCORES */
|
|
|
|
|
354, /* (271) cmd ::= SHOW TOPICS */
|
|
|
|
|
354, /* (272) cmd ::= SHOW VARIABLES */
|
|
|
|
|
354, /* (273) cmd ::= SHOW CLUSTER VARIABLES */
|
|
|
|
|
354, /* (274) cmd ::= SHOW LOCAL VARIABLES */
|
|
|
|
|
354, /* (275) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
|
|
|
354, /* (276) cmd ::= SHOW BNODES */
|
|
|
|
|
354, /* (277) cmd ::= SHOW SNODES */
|
|
|
|
|
354, /* (278) cmd ::= SHOW CLUSTER */
|
|
|
|
|
354, /* (279) cmd ::= SHOW TRANSACTIONS */
|
|
|
|
|
354, /* (280) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
|
|
|
354, /* (281) cmd ::= SHOW CONSUMERS */
|
|
|
|
|
354, /* (282) cmd ::= SHOW SUBSCRIPTIONS */
|
|
|
|
|
354, /* (283) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
|
|
|
354, /* (284) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
|
|
|
354, /* (285) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
|
|
|
354, /* (286) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
|
|
|
354, /* (287) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
|
|
|
354, /* (288) cmd ::= SHOW VNODES */
|
|
|
|
|
354, /* (289) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
|
|
|
354, /* (290) cmd ::= SHOW CLUSTER ALIVE */
|
|
|
|
|
354, /* (291) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
|
|
|
|
|
354, /* (292) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
|
|
|
354, /* (293) cmd ::= SHOW COMPACTS */
|
|
|
|
|
354, /* (294) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
|
|
|
415, /* (295) table_kind_db_name_cond_opt ::= */
|
|
|
|
|
415, /* (296) table_kind_db_name_cond_opt ::= table_kind */
|
|
|
|
|
415, /* (297) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
415, /* (298) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
|
|
|
421, /* (299) table_kind ::= NORMAL */
|
|
|
|
|
421, /* (300) table_kind ::= CHILD */
|
|
|
|
|
417, /* (301) db_name_cond_opt ::= */
|
|
|
|
|
417, /* (302) db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
416, /* (303) like_pattern_opt ::= */
|
|
|
|
|
416, /* (304) like_pattern_opt ::= LIKE NK_STRING */
|
|
|
|
|
418, /* (305) table_name_cond ::= table_name */
|
|
|
|
|
419, /* (306) from_db_opt ::= */
|
|
|
|
|
419, /* (307) from_db_opt ::= FROM db_name */
|
|
|
|
|
420, /* (308) tag_list_opt ::= */
|
|
|
|
|
420, /* (309) tag_list_opt ::= tag_item */
|
|
|
|
|
420, /* (310) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
|
|
|
422, /* (311) tag_item ::= TBNAME */
|
|
|
|
|
422, /* (312) tag_item ::= QTAGS */
|
|
|
|
|
422, /* (313) tag_item ::= column_name */
|
|
|
|
|
422, /* (314) tag_item ::= column_name column_alias */
|
|
|
|
|
422, /* (315) tag_item ::= column_name AS column_alias */
|
|
|
|
|
414, /* (316) db_kind_opt ::= */
|
|
|
|
|
414, /* (317) db_kind_opt ::= USER */
|
|
|
|
|
414, /* (318) db_kind_opt ::= SYSTEM */
|
|
|
|
|
354, /* (319) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
|
|
|
354, /* (320) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
|
|
|
354, /* (321) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
|
|
|
425, /* (322) full_index_name ::= index_name */
|
|
|
|
|
425, /* (323) full_index_name ::= db_name NK_DOT index_name */
|
|
|
|
|
424, /* (324) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
|
|
|
424, /* (325) 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 */
|
|
|
|
|
427, /* (326) func_list ::= func */
|
|
|
|
|
427, /* (327) func_list ::= func_list NK_COMMA func */
|
|
|
|
|
430, /* (328) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
|
|
|
431, /* (329) sma_func_name ::= function_name */
|
|
|
|
|
431, /* (330) sma_func_name ::= COUNT */
|
|
|
|
|
431, /* (331) sma_func_name ::= FIRST */
|
|
|
|
|
431, /* (332) sma_func_name ::= LAST */
|
|
|
|
|
431, /* (333) sma_func_name ::= LAST_ROW */
|
|
|
|
|
429, /* (334) sma_stream_opt ::= */
|
|
|
|
|
429, /* (335) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
|
|
|
429, /* (336) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
|
|
|
429, /* (337) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
|
|
|
433, /* (338) with_meta ::= AS */
|
|
|
|
|
433, /* (339) with_meta ::= WITH META AS */
|
|
|
|
|
433, /* (340) with_meta ::= ONLY META AS */
|
|
|
|
|
354, /* (341) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
|
|
|
354, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
|
|
|
354, /* (343) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
|
|
|
354, /* (344) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
|
|
|
354, /* (345) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
|
|
|
354, /* (346) cmd ::= DESC full_table_name */
|
|
|
|
|
354, /* (347) cmd ::= DESCRIBE full_table_name */
|
|
|
|
|
354, /* (348) cmd ::= RESET QUERY CACHE */
|
|
|
|
|
354, /* (349) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
|
|
|
354, /* (350) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
|
|
|
437, /* (351) analyze_opt ::= */
|
|
|
|
|
437, /* (352) analyze_opt ::= ANALYZE */
|
|
|
|
|
438, /* (353) explain_options ::= */
|
|
|
|
|
438, /* (354) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
|
|
|
438, /* (355) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
|
|
|
354, /* (356) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
|
|
|
354, /* (357) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
|
|
|
441, /* (358) agg_func_opt ::= */
|
|
|
|
|
441, /* (359) agg_func_opt ::= AGGREGATE */
|
|
|
|
|
442, /* (360) bufsize_opt ::= */
|
|
|
|
|
442, /* (361) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
|
|
|
443, /* (362) language_opt ::= */
|
|
|
|
|
443, /* (363) language_opt ::= LANGUAGE NK_STRING */
|
|
|
|
|
440, /* (364) or_replace_opt ::= */
|
|
|
|
|
440, /* (365) or_replace_opt ::= OR REPLACE */
|
|
|
|
|
354, /* (366) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
|
|
|
354, /* (367) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
|
|
|
444, /* (368) full_view_name ::= view_name */
|
|
|
|
|
444, /* (369) full_view_name ::= db_name NK_DOT view_name */
|
|
|
|
|
354, /* (370) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
|
|
|
|
|
354, /* (371) cmd ::= DROP STREAM exists_opt stream_name */
|
|
|
|
|
354, /* (372) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
|
|
|
354, /* (373) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
|
|
|
448, /* (374) col_list_opt ::= */
|
|
|
|
|
448, /* (375) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
449, /* (376) tag_def_or_ref_opt ::= */
|
|
|
|
|
449, /* (377) tag_def_or_ref_opt ::= tags_def */
|
|
|
|
|
449, /* (378) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
|
|
|
447, /* (379) stream_options ::= */
|
|
|
|
|
447, /* (380) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
|
|
|
447, /* (381) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
|
|
|
447, /* (382) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
|
|
|
447, /* (383) stream_options ::= stream_options WATERMARK duration_literal */
|
|
|
|
|
447, /* (384) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
|
|
|
447, /* (385) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
|
|
|
447, /* (386) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
|
|
|
447, /* (387) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
|
|
|
450, /* (388) subtable_opt ::= */
|
|
|
|
|
450, /* (389) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
|
|
|
451, /* (390) ignore_opt ::= */
|
|
|
|
|
451, /* (391) ignore_opt ::= IGNORE UNTREATED */
|
|
|
|
|
354, /* (392) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
|
|
|
354, /* (393) cmd ::= KILL QUERY NK_STRING */
|
|
|
|
|
354, /* (394) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
|
|
|
354, /* (395) cmd ::= KILL COMPACT NK_INTEGER */
|
|
|
|
|
354, /* (396) cmd ::= BALANCE VGROUP */
|
|
|
|
|
354, /* (397) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
|
|
|
354, /* (398) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
|
|
|
354, /* (399) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
|
|
|
354, /* (400) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
|
|
|
453, /* (401) on_vgroup_id ::= */
|
|
|
|
|
453, /* (402) on_vgroup_id ::= ON NK_INTEGER */
|
|
|
|
|
454, /* (403) dnode_list ::= DNODE NK_INTEGER */
|
|
|
|
|
454, /* (404) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
|
|
|
354, /* (405) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
|
|
|
354, /* (406) cmd ::= query_or_subquery */
|
|
|
|
|
354, /* (407) cmd ::= insert_query */
|
|
|
|
|
439, /* (408) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
|
|
|
439, /* (409) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
|
|
|
400, /* (410) tags_literal ::= NK_INTEGER */
|
|
|
|
|
400, /* (411) tags_literal ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
400, /* (412) tags_literal ::= NK_MINUS NK_INTEGER */
|
|
|
|
|
400, /* (413) tags_literal ::= NK_FLOAT */
|
|
|
|
|
400, /* (414) tags_literal ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
400, /* (415) tags_literal ::= NK_MINUS NK_FLOAT */
|
|
|
|
|
400, /* (416) tags_literal ::= NK_BIN */
|
|
|
|
|
400, /* (417) tags_literal ::= NK_PLUS NK_BIN */
|
|
|
|
|
400, /* (418) tags_literal ::= NK_MINUS NK_BIN */
|
|
|
|
|
400, /* (419) tags_literal ::= NK_HEX */
|
|
|
|
|
400, /* (420) tags_literal ::= NK_PLUS NK_HEX */
|
|
|
|
|
400, /* (421) tags_literal ::= NK_MINUS NK_HEX */
|
|
|
|
|
400, /* (422) tags_literal ::= NK_STRING */
|
|
|
|
|
400, /* (423) tags_literal ::= NK_BOOL */
|
|
|
|
|
400, /* (424) tags_literal ::= NULL */
|
|
|
|
|
400, /* (425) tags_literal ::= literal_func */
|
|
|
|
|
400, /* (426) tags_literal ::= literal_func NK_PLUS duration_literal */
|
|
|
|
|
400, /* (427) tags_literal ::= literal_func NK_MINUS duration_literal */
|
|
|
|
|
403, /* (428) tags_literal_list ::= tags_literal */
|
|
|
|
|
403, /* (429) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
|
|
|
|
|
357, /* (430) literal ::= NK_INTEGER */
|
|
|
|
|
357, /* (431) literal ::= NK_FLOAT */
|
|
|
|
|
357, /* (432) literal ::= NK_STRING */
|
|
|
|
|
357, /* (433) literal ::= NK_BOOL */
|
|
|
|
|
357, /* (434) literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
357, /* (435) literal ::= duration_literal */
|
|
|
|
|
357, /* (436) literal ::= NULL */
|
|
|
|
|
357, /* (437) literal ::= NK_QUESTION */
|
|
|
|
|
410, /* (438) duration_literal ::= NK_VARIABLE */
|
|
|
|
|
386, /* (439) signed ::= NK_INTEGER */
|
|
|
|
|
386, /* (440) signed ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
386, /* (441) signed ::= NK_MINUS NK_INTEGER */
|
|
|
|
|
386, /* (442) signed ::= NK_FLOAT */
|
|
|
|
|
386, /* (443) signed ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
386, /* (444) signed ::= NK_MINUS NK_FLOAT */
|
|
|
|
|
456, /* (445) signed_literal ::= signed */
|
|
|
|
|
456, /* (446) signed_literal ::= NK_STRING */
|
|
|
|
|
456, /* (447) signed_literal ::= NK_BOOL */
|
|
|
|
|
456, /* (448) signed_literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
456, /* (449) signed_literal ::= duration_literal */
|
|
|
|
|
456, /* (450) signed_literal ::= NULL */
|
|
|
|
|
456, /* (451) signed_literal ::= literal_func */
|
|
|
|
|
456, /* (452) signed_literal ::= NK_QUESTION */
|
|
|
|
|
457, /* (453) literal_list ::= signed_literal */
|
|
|
|
|
457, /* (454) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
|
|
|
369, /* (455) db_name ::= NK_ID */
|
|
|
|
|
370, /* (456) table_name ::= NK_ID */
|
|
|
|
|
398, /* (457) column_name ::= NK_ID */
|
|
|
|
|
412, /* (458) function_name ::= NK_ID */
|
|
|
|
|
445, /* (459) view_name ::= NK_ID */
|
|
|
|
|
458, /* (460) table_alias ::= NK_ID */
|
|
|
|
|
423, /* (461) column_alias ::= NK_ID */
|
|
|
|
|
423, /* (462) column_alias ::= NK_ALIAS */
|
|
|
|
|
362, /* (463) user_name ::= NK_ID */
|
|
|
|
|
371, /* (464) topic_name ::= NK_ID */
|
|
|
|
|
446, /* (465) stream_name ::= NK_ID */
|
|
|
|
|
436, /* (466) cgroup_name ::= NK_ID */
|
|
|
|
|
426, /* (467) index_name ::= NK_ID */
|
|
|
|
|
459, /* (468) expr_or_subquery ::= expression */
|
|
|
|
|
452, /* (469) expression ::= literal */
|
|
|
|
|
452, /* (470) expression ::= pseudo_column */
|
|
|
|
|
452, /* (471) expression ::= column_reference */
|
|
|
|
|
452, /* (472) expression ::= function_expression */
|
|
|
|
|
452, /* (473) expression ::= case_when_expression */
|
|
|
|
|
452, /* (474) expression ::= NK_LP expression NK_RP */
|
|
|
|
|
452, /* (475) expression ::= NK_PLUS expr_or_subquery */
|
|
|
|
|
452, /* (476) expression ::= NK_MINUS expr_or_subquery */
|
|
|
|
|
452, /* (477) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
|
|
|
452, /* (478) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
|
|
|
452, /* (479) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
|
|
|
452, /* (480) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
|
|
|
452, /* (481) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
|
|
|
452, /* (482) expression ::= column_reference NK_ARROW NK_STRING */
|
|
|
|
|
452, /* (483) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
|
|
|
452, /* (484) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
|
|
|
432, /* (485) expression_list ::= expr_or_subquery */
|
|
|
|
|
432, /* (486) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
|
|
|
461, /* (487) column_reference ::= column_name */
|
|
|
|
|
461, /* (488) column_reference ::= table_name NK_DOT column_name */
|
|
|
|
|
461, /* (489) column_reference ::= NK_ALIAS */
|
|
|
|
|
461, /* (490) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
|
|
|
460, /* (491) pseudo_column ::= ROWTS */
|
|
|
|
|
460, /* (492) pseudo_column ::= TBNAME */
|
|
|
|
|
460, /* (493) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
|
|
|
460, /* (494) pseudo_column ::= QSTART */
|
|
|
|
|
460, /* (495) pseudo_column ::= QEND */
|
|
|
|
|
460, /* (496) pseudo_column ::= QDURATION */
|
|
|
|
|
460, /* (497) pseudo_column ::= WSTART */
|
|
|
|
|
460, /* (498) pseudo_column ::= WEND */
|
|
|
|
|
460, /* (499) pseudo_column ::= WDURATION */
|
|
|
|
|
460, /* (500) pseudo_column ::= IROWTS */
|
|
|
|
|
460, /* (501) pseudo_column ::= ISFILLED */
|
|
|
|
|
460, /* (502) pseudo_column ::= QTAGS */
|
|
|
|
|
462, /* (503) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
|
|
|
462, /* (504) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
|
|
|
462, /* (505) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
|
|
|
462, /* (506) function_expression ::= literal_func */
|
|
|
|
|
455, /* (507) literal_func ::= noarg_func NK_LP NK_RP */
|
|
|
|
|
455, /* (508) literal_func ::= NOW */
|
|
|
|
|
455, /* (509) literal_func ::= TODAY */
|
|
|
|
|
466, /* (510) noarg_func ::= NOW */
|
|
|
|
|
466, /* (511) noarg_func ::= TODAY */
|
|
|
|
|
466, /* (512) noarg_func ::= TIMEZONE */
|
|
|
|
|
466, /* (513) noarg_func ::= DATABASE */
|
|
|
|
|
466, /* (514) noarg_func ::= CLIENT_VERSION */
|
|
|
|
|
466, /* (515) noarg_func ::= SERVER_VERSION */
|
|
|
|
|
466, /* (516) noarg_func ::= SERVER_STATUS */
|
|
|
|
|
466, /* (517) noarg_func ::= CURRENT_USER */
|
|
|
|
|
466, /* (518) noarg_func ::= USER */
|
|
|
|
|
464, /* (519) star_func ::= COUNT */
|
|
|
|
|
464, /* (520) star_func ::= FIRST */
|
|
|
|
|
464, /* (521) star_func ::= LAST */
|
|
|
|
|
464, /* (522) star_func ::= LAST_ROW */
|
|
|
|
|
465, /* (523) star_func_para_list ::= NK_STAR */
|
|
|
|
|
465, /* (524) star_func_para_list ::= other_para_list */
|
|
|
|
|
467, /* (525) other_para_list ::= star_func_para */
|
|
|
|
|
467, /* (526) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
|
|
|
468, /* (527) star_func_para ::= expr_or_subquery */
|
|
|
|
|
468, /* (528) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
463, /* (529) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
|
|
|
463, /* (530) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
|
|
|
469, /* (531) when_then_list ::= when_then_expr */
|
|
|
|
|
469, /* (532) when_then_list ::= when_then_list when_then_expr */
|
|
|
|
|
472, /* (533) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
|
|
|
470, /* (534) case_when_else_opt ::= */
|
|
|
|
|
470, /* (535) case_when_else_opt ::= ELSE common_expression */
|
|
|
|
|
473, /* (536) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
|
|
|
473, /* (537) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
473, /* (538) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
473, /* (539) predicate ::= expr_or_subquery IS NULL */
|
|
|
|
|
473, /* (540) predicate ::= expr_or_subquery IS NOT NULL */
|
|
|
|
|
473, /* (541) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
|
|
|
474, /* (542) compare_op ::= NK_LT */
|
|
|
|
|
474, /* (543) compare_op ::= NK_GT */
|
|
|
|
|
474, /* (544) compare_op ::= NK_LE */
|
|
|
|
|
474, /* (545) compare_op ::= NK_GE */
|
|
|
|
|
474, /* (546) compare_op ::= NK_NE */
|
|
|
|
|
474, /* (547) compare_op ::= NK_EQ */
|
|
|
|
|
474, /* (548) compare_op ::= LIKE */
|
|
|
|
|
474, /* (549) compare_op ::= NOT LIKE */
|
|
|
|
|
474, /* (550) compare_op ::= MATCH */
|
|
|
|
|
474, /* (551) compare_op ::= NMATCH */
|
|
|
|
|
474, /* (552) compare_op ::= CONTAINS */
|
|
|
|
|
475, /* (553) in_op ::= IN */
|
|
|
|
|
475, /* (554) in_op ::= NOT IN */
|
|
|
|
|
476, /* (555) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
|
|
|
477, /* (556) boolean_value_expression ::= boolean_primary */
|
|
|
|
|
477, /* (557) boolean_value_expression ::= NOT boolean_primary */
|
|
|
|
|
477, /* (558) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
|
|
|
477, /* (559) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
|
|
|
478, /* (560) boolean_primary ::= predicate */
|
|
|
|
|
478, /* (561) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
|
|
|
471, /* (562) common_expression ::= expr_or_subquery */
|
|
|
|
|
471, /* (563) common_expression ::= boolean_value_expression */
|
|
|
|
|
479, /* (564) from_clause_opt ::= */
|
|
|
|
|
479, /* (565) from_clause_opt ::= FROM table_reference_list */
|
|
|
|
|
480, /* (566) table_reference_list ::= table_reference */
|
|
|
|
|
480, /* (567) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
|
|
|
481, /* (568) table_reference ::= table_primary */
|
|
|
|
|
481, /* (569) table_reference ::= joined_table */
|
|
|
|
|
482, /* (570) table_primary ::= table_name alias_opt */
|
|
|
|
|
482, /* (571) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
|
|
|
482, /* (572) table_primary ::= subquery alias_opt */
|
|
|
|
|
482, /* (573) table_primary ::= parenthesized_joined_table */
|
|
|
|
|
484, /* (574) alias_opt ::= */
|
|
|
|
|
484, /* (575) alias_opt ::= table_alias */
|
|
|
|
|
484, /* (576) alias_opt ::= AS table_alias */
|
|
|
|
|
486, /* (577) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
|
|
|
486, /* (578) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
|
|
|
483, /* (579) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
|
|
|
487, /* (580) join_type ::= */
|
|
|
|
|
487, /* (581) join_type ::= INNER */
|
|
|
|
|
488, /* (582) 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 */
|
|
|
|
|
489, /* (583) hint_list ::= */
|
|
|
|
|
489, /* (584) hint_list ::= NK_HINT */
|
|
|
|
|
491, /* (585) tag_mode_opt ::= */
|
|
|
|
|
491, /* (586) tag_mode_opt ::= TAGS */
|
|
|
|
|
490, /* (587) set_quantifier_opt ::= */
|
|
|
|
|
490, /* (588) set_quantifier_opt ::= DISTINCT */
|
|
|
|
|
490, /* (589) set_quantifier_opt ::= ALL */
|
|
|
|
|
492, /* (590) select_list ::= select_item */
|
|
|
|
|
492, /* (591) select_list ::= select_list NK_COMMA select_item */
|
|
|
|
|
500, /* (592) select_item ::= NK_STAR */
|
|
|
|
|
500, /* (593) select_item ::= common_expression */
|
|
|
|
|
500, /* (594) select_item ::= common_expression column_alias */
|
|
|
|
|
500, /* (595) select_item ::= common_expression AS column_alias */
|
|
|
|
|
500, /* (596) select_item ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
435, /* (597) where_clause_opt ::= */
|
|
|
|
|
435, /* (598) where_clause_opt ::= WHERE search_condition */
|
|
|
|
|
493, /* (599) partition_by_clause_opt ::= */
|
|
|
|
|
493, /* (600) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
|
|
|
501, /* (601) partition_list ::= partition_item */
|
|
|
|
|
501, /* (602) partition_list ::= partition_list NK_COMMA partition_item */
|
|
|
|
|
502, /* (603) partition_item ::= expr_or_subquery */
|
|
|
|
|
502, /* (604) partition_item ::= expr_or_subquery column_alias */
|
|
|
|
|
502, /* (605) partition_item ::= expr_or_subquery AS column_alias */
|
|
|
|
|
497, /* (606) twindow_clause_opt ::= */
|
|
|
|
|
497, /* (607) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
|
|
|
497, /* (608) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
497, /* (609) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
497, /* (610) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
497, /* (611) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
|
|
|
497, /* (612) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
497, /* (613) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
428, /* (614) sliding_opt ::= */
|
|
|
|
|
428, /* (615) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
|
|
|
503, /* (616) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
|
|
|
503, /* (617) interval_sliding_duration_literal ::= NK_STRING */
|
|
|
|
|
503, /* (618) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
|
|
|
496, /* (619) fill_opt ::= */
|
|
|
|
|
496, /* (620) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
|
|
|
496, /* (621) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
|
|
|
496, /* (622) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
|
|
|
504, /* (623) fill_mode ::= NONE */
|
|
|
|
|
504, /* (624) fill_mode ::= PREV */
|
|
|
|
|
504, /* (625) fill_mode ::= NULL */
|
|
|
|
|
504, /* (626) fill_mode ::= NULL_F */
|
|
|
|
|
504, /* (627) fill_mode ::= LINEAR */
|
|
|
|
|
504, /* (628) fill_mode ::= NEXT */
|
|
|
|
|
498, /* (629) group_by_clause_opt ::= */
|
|
|
|
|
498, /* (630) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
|
|
|
505, /* (631) group_by_list ::= expr_or_subquery */
|
|
|
|
|
505, /* (632) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
|
|
|
499, /* (633) having_clause_opt ::= */
|
|
|
|
|
499, /* (634) having_clause_opt ::= HAVING search_condition */
|
|
|
|
|
494, /* (635) range_opt ::= */
|
|
|
|
|
494, /* (636) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
|
|
|
494, /* (637) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
495, /* (638) every_opt ::= */
|
|
|
|
|
495, /* (639) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
|
|
|
506, /* (640) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
|
|
|
507, /* (641) query_simple ::= query_specification */
|
|
|
|
|
507, /* (642) query_simple ::= union_query_expression */
|
|
|
|
|
511, /* (643) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
|
|
|
511, /* (644) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
|
|
|
512, /* (645) query_simple_or_subquery ::= query_simple */
|
|
|
|
|
512, /* (646) query_simple_or_subquery ::= subquery */
|
|
|
|
|
434, /* (647) query_or_subquery ::= query_expression */
|
|
|
|
|
434, /* (648) query_or_subquery ::= subquery */
|
|
|
|
|
508, /* (649) order_by_clause_opt ::= */
|
|
|
|
|
508, /* (650) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
|
|
|
509, /* (651) slimit_clause_opt ::= */
|
|
|
|
|
509, /* (652) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
|
|
|
509, /* (653) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
|
|
|
509, /* (654) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
510, /* (655) limit_clause_opt ::= */
|
|
|
|
|
510, /* (656) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
|
|
|
510, /* (657) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
|
|
|
510, /* (658) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
485, /* (659) subquery ::= NK_LP query_expression NK_RP */
|
|
|
|
|
485, /* (660) subquery ::= NK_LP subquery NK_RP */
|
|
|
|
|
372, /* (661) search_condition ::= common_expression */
|
|
|
|
|
513, /* (662) sort_specification_list ::= sort_specification */
|
|
|
|
|
513, /* (663) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
|
|
|
514, /* (664) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
|
|
|
515, /* (665) ordering_specification_opt ::= */
|
|
|
|
|
515, /* (666) ordering_specification_opt ::= ASC */
|
|
|
|
|
515, /* (667) ordering_specification_opt ::= DESC */
|
|
|
|
|
516, /* (668) null_ordering_opt ::= */
|
|
|
|
|
516, /* (669) null_ordering_opt ::= NULLS FIRST */
|
|
|
|
|
516, /* (670) 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 */
|
2024-03-10 14:14:57 +00:00
|
|
|
-6, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
|
2023-12-18 08:34:31 +00:00
|
|
|
-1, /* (182) multi_create_clause ::= create_subtable_clause */
|
|
|
|
|
-2, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */
|
2024-03-10 14:14:57 +00:00
|
|
|
-10, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
|
2023-12-18 08:34:31 +00:00
|
|
|
-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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
-2, /* (253) cmd ::= SHOW ARBGROUPS */
|
|
|
|
|
-2, /* (254) cmd ::= SHOW FUNCTIONS */
|
|
|
|
|
-5, /* (255) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
|
|
|
-6, /* (256) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
|
|
|
-2, /* (257) cmd ::= SHOW STREAMS */
|
|
|
|
|
-2, /* (258) cmd ::= SHOW ACCOUNTS */
|
|
|
|
|
-2, /* (259) cmd ::= SHOW APPS */
|
|
|
|
|
-2, /* (260) cmd ::= SHOW CONNECTIONS */
|
|
|
|
|
-2, /* (261) cmd ::= SHOW LICENCES */
|
|
|
|
|
-2, /* (262) cmd ::= SHOW GRANTS */
|
|
|
|
|
-3, /* (263) cmd ::= SHOW GRANTS FULL */
|
|
|
|
|
-3, /* (264) cmd ::= SHOW GRANTS LOGS */
|
|
|
|
|
-3, /* (265) cmd ::= SHOW CLUSTER MACHINES */
|
|
|
|
|
-4, /* (266) cmd ::= SHOW CREATE DATABASE db_name */
|
|
|
|
|
-4, /* (267) cmd ::= SHOW CREATE TABLE full_table_name */
|
|
|
|
|
-4, /* (268) cmd ::= SHOW CREATE STABLE full_table_name */
|
|
|
|
|
-2, /* (269) cmd ::= SHOW QUERIES */
|
|
|
|
|
-2, /* (270) cmd ::= SHOW SCORES */
|
|
|
|
|
-2, /* (271) cmd ::= SHOW TOPICS */
|
|
|
|
|
-2, /* (272) cmd ::= SHOW VARIABLES */
|
|
|
|
|
-3, /* (273) cmd ::= SHOW CLUSTER VARIABLES */
|
|
|
|
|
-3, /* (274) cmd ::= SHOW LOCAL VARIABLES */
|
|
|
|
|
-5, /* (275) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
|
|
|
-2, /* (276) cmd ::= SHOW BNODES */
|
|
|
|
|
-2, /* (277) cmd ::= SHOW SNODES */
|
|
|
|
|
-2, /* (278) cmd ::= SHOW CLUSTER */
|
|
|
|
|
-2, /* (279) cmd ::= SHOW TRANSACTIONS */
|
|
|
|
|
-4, /* (280) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
|
|
|
-2, /* (281) cmd ::= SHOW CONSUMERS */
|
|
|
|
|
-2, /* (282) cmd ::= SHOW SUBSCRIPTIONS */
|
|
|
|
|
-5, /* (283) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
|
|
|
-6, /* (284) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
|
|
|
-7, /* (285) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
|
|
|
-8, /* (286) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
|
|
|
-5, /* (287) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
|
|
|
-2, /* (288) cmd ::= SHOW VNODES */
|
|
|
|
|
-3, /* (289) cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
|
|
|
-3, /* (290) cmd ::= SHOW CLUSTER ALIVE */
|
|
|
|
|
-4, /* (291) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
|
|
|
|
|
-4, /* (292) cmd ::= SHOW CREATE VIEW full_table_name */
|
|
|
|
|
-2, /* (293) cmd ::= SHOW COMPACTS */
|
|
|
|
|
-3, /* (294) cmd ::= SHOW COMPACT NK_INTEGER */
|
|
|
|
|
0, /* (295) table_kind_db_name_cond_opt ::= */
|
|
|
|
|
-1, /* (296) table_kind_db_name_cond_opt ::= table_kind */
|
|
|
|
|
-2, /* (297) table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
-3, /* (298) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
|
|
|
-1, /* (299) table_kind ::= NORMAL */
|
|
|
|
|
-1, /* (300) table_kind ::= CHILD */
|
|
|
|
|
0, /* (301) db_name_cond_opt ::= */
|
|
|
|
|
-2, /* (302) db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
0, /* (303) like_pattern_opt ::= */
|
|
|
|
|
-2, /* (304) like_pattern_opt ::= LIKE NK_STRING */
|
|
|
|
|
-1, /* (305) table_name_cond ::= table_name */
|
|
|
|
|
0, /* (306) from_db_opt ::= */
|
|
|
|
|
-2, /* (307) from_db_opt ::= FROM db_name */
|
|
|
|
|
0, /* (308) tag_list_opt ::= */
|
|
|
|
|
-1, /* (309) tag_list_opt ::= tag_item */
|
|
|
|
|
-3, /* (310) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */
|
|
|
|
|
-1, /* (311) tag_item ::= TBNAME */
|
|
|
|
|
-1, /* (312) tag_item ::= QTAGS */
|
|
|
|
|
-1, /* (313) tag_item ::= column_name */
|
|
|
|
|
-2, /* (314) tag_item ::= column_name column_alias */
|
|
|
|
|
-3, /* (315) tag_item ::= column_name AS column_alias */
|
|
|
|
|
0, /* (316) db_kind_opt ::= */
|
|
|
|
|
-1, /* (317) db_kind_opt ::= USER */
|
|
|
|
|
-1, /* (318) db_kind_opt ::= SYSTEM */
|
|
|
|
|
-8, /* (319) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
|
|
|
-9, /* (320) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
|
|
|
-4, /* (321) cmd ::= DROP INDEX exists_opt full_index_name */
|
|
|
|
|
-1, /* (322) full_index_name ::= index_name */
|
|
|
|
|
-3, /* (323) full_index_name ::= db_name NK_DOT index_name */
|
|
|
|
|
-10, /* (324) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
|
|
|
-12, /* (325) 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, /* (326) func_list ::= func */
|
|
|
|
|
-3, /* (327) func_list ::= func_list NK_COMMA func */
|
|
|
|
|
-4, /* (328) func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
|
|
|
-1, /* (329) sma_func_name ::= function_name */
|
|
|
|
|
-1, /* (330) sma_func_name ::= COUNT */
|
|
|
|
|
-1, /* (331) sma_func_name ::= FIRST */
|
|
|
|
|
-1, /* (332) sma_func_name ::= LAST */
|
|
|
|
|
-1, /* (333) sma_func_name ::= LAST_ROW */
|
|
|
|
|
0, /* (334) sma_stream_opt ::= */
|
|
|
|
|
-3, /* (335) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
|
|
|
-3, /* (336) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
|
|
|
-3, /* (337) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
|
|
|
-1, /* (338) with_meta ::= AS */
|
|
|
|
|
-3, /* (339) with_meta ::= WITH META AS */
|
|
|
|
|
-3, /* (340) with_meta ::= ONLY META AS */
|
|
|
|
|
-6, /* (341) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
|
|
|
-7, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
|
|
|
-8, /* (343) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
|
|
|
-4, /* (344) cmd ::= DROP TOPIC exists_opt topic_name */
|
|
|
|
|
-7, /* (345) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
|
|
|
-2, /* (346) cmd ::= DESC full_table_name */
|
|
|
|
|
-2, /* (347) cmd ::= DESCRIBE full_table_name */
|
|
|
|
|
-3, /* (348) cmd ::= RESET QUERY CACHE */
|
|
|
|
|
-4, /* (349) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
|
|
|
-4, /* (350) cmd ::= EXPLAIN analyze_opt explain_options insert_query */
|
|
|
|
|
0, /* (351) analyze_opt ::= */
|
|
|
|
|
-1, /* (352) analyze_opt ::= ANALYZE */
|
|
|
|
|
0, /* (353) explain_options ::= */
|
|
|
|
|
-3, /* (354) explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
|
|
|
-3, /* (355) explain_options ::= explain_options RATIO NK_FLOAT */
|
|
|
|
|
-12, /* (356) 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, /* (357) cmd ::= DROP FUNCTION exists_opt function_name */
|
|
|
|
|
0, /* (358) agg_func_opt ::= */
|
|
|
|
|
-1, /* (359) agg_func_opt ::= AGGREGATE */
|
|
|
|
|
0, /* (360) bufsize_opt ::= */
|
|
|
|
|
-2, /* (361) bufsize_opt ::= BUFSIZE NK_INTEGER */
|
|
|
|
|
0, /* (362) language_opt ::= */
|
|
|
|
|
-2, /* (363) language_opt ::= LANGUAGE NK_STRING */
|
|
|
|
|
0, /* (364) or_replace_opt ::= */
|
|
|
|
|
-2, /* (365) or_replace_opt ::= OR REPLACE */
|
|
|
|
|
-6, /* (366) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
|
|
|
-4, /* (367) cmd ::= DROP VIEW exists_opt full_view_name */
|
|
|
|
|
-1, /* (368) full_view_name ::= view_name */
|
|
|
|
|
-3, /* (369) full_view_name ::= db_name NK_DOT view_name */
|
|
|
|
|
-12, /* (370) 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, /* (371) cmd ::= DROP STREAM exists_opt stream_name */
|
|
|
|
|
-4, /* (372) cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
|
|
|
-5, /* (373) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
|
|
|
0, /* (374) col_list_opt ::= */
|
|
|
|
|
-3, /* (375) col_list_opt ::= NK_LP col_name_list NK_RP */
|
|
|
|
|
0, /* (376) tag_def_or_ref_opt ::= */
|
|
|
|
|
-1, /* (377) tag_def_or_ref_opt ::= tags_def */
|
|
|
|
|
-4, /* (378) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */
|
|
|
|
|
0, /* (379) stream_options ::= */
|
|
|
|
|
-3, /* (380) stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
|
|
|
-3, /* (381) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */
|
|
|
|
|
-4, /* (382) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
|
|
|
-3, /* (383) stream_options ::= stream_options WATERMARK duration_literal */
|
|
|
|
|
-4, /* (384) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
|
|
|
-3, /* (385) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
|
|
|
-3, /* (386) stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
|
|
|
-4, /* (387) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
|
|
|
0, /* (388) subtable_opt ::= */
|
|
|
|
|
-4, /* (389) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
|
|
|
0, /* (390) ignore_opt ::= */
|
|
|
|
|
-2, /* (391) ignore_opt ::= IGNORE UNTREATED */
|
|
|
|
|
-3, /* (392) cmd ::= KILL CONNECTION NK_INTEGER */
|
|
|
|
|
-3, /* (393) cmd ::= KILL QUERY NK_STRING */
|
|
|
|
|
-3, /* (394) cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
|
|
|
-3, /* (395) cmd ::= KILL COMPACT NK_INTEGER */
|
|
|
|
|
-2, /* (396) cmd ::= BALANCE VGROUP */
|
|
|
|
|
-4, /* (397) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
|
|
|
-4, /* (398) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
|
|
|
-4, /* (399) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
|
|
|
-3, /* (400) cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
|
|
|
0, /* (401) on_vgroup_id ::= */
|
|
|
|
|
-2, /* (402) on_vgroup_id ::= ON NK_INTEGER */
|
|
|
|
|
-2, /* (403) dnode_list ::= DNODE NK_INTEGER */
|
|
|
|
|
-3, /* (404) dnode_list ::= dnode_list DNODE NK_INTEGER */
|
|
|
|
|
-4, /* (405) cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
|
|
|
-1, /* (406) cmd ::= query_or_subquery */
|
|
|
|
|
-1, /* (407) cmd ::= insert_query */
|
|
|
|
|
-7, /* (408) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
|
|
|
-4, /* (409) insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
|
|
|
-1, /* (410) tags_literal ::= NK_INTEGER */
|
|
|
|
|
-2, /* (411) tags_literal ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
-2, /* (412) tags_literal ::= NK_MINUS NK_INTEGER */
|
|
|
|
|
-1, /* (413) tags_literal ::= NK_FLOAT */
|
|
|
|
|
-2, /* (414) tags_literal ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
-2, /* (415) tags_literal ::= NK_MINUS NK_FLOAT */
|
|
|
|
|
-1, /* (416) tags_literal ::= NK_BIN */
|
|
|
|
|
-2, /* (417) tags_literal ::= NK_PLUS NK_BIN */
|
|
|
|
|
-2, /* (418) tags_literal ::= NK_MINUS NK_BIN */
|
|
|
|
|
-1, /* (419) tags_literal ::= NK_HEX */
|
|
|
|
|
-2, /* (420) tags_literal ::= NK_PLUS NK_HEX */
|
|
|
|
|
-2, /* (421) tags_literal ::= NK_MINUS NK_HEX */
|
|
|
|
|
-1, /* (422) tags_literal ::= NK_STRING */
|
|
|
|
|
-1, /* (423) tags_literal ::= NK_BOOL */
|
|
|
|
|
-1, /* (424) tags_literal ::= NULL */
|
|
|
|
|
-1, /* (425) tags_literal ::= literal_func */
|
|
|
|
|
-3, /* (426) tags_literal ::= literal_func NK_PLUS duration_literal */
|
|
|
|
|
-3, /* (427) tags_literal ::= literal_func NK_MINUS duration_literal */
|
|
|
|
|
-1, /* (428) tags_literal_list ::= tags_literal */
|
|
|
|
|
-3, /* (429) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */
|
|
|
|
|
-1, /* (430) literal ::= NK_INTEGER */
|
|
|
|
|
-1, /* (431) literal ::= NK_FLOAT */
|
|
|
|
|
-1, /* (432) literal ::= NK_STRING */
|
|
|
|
|
-1, /* (433) literal ::= NK_BOOL */
|
|
|
|
|
-2, /* (434) literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
-1, /* (435) literal ::= duration_literal */
|
|
|
|
|
-1, /* (436) literal ::= NULL */
|
|
|
|
|
-1, /* (437) literal ::= NK_QUESTION */
|
|
|
|
|
-1, /* (438) duration_literal ::= NK_VARIABLE */
|
|
|
|
|
-1, /* (439) signed ::= NK_INTEGER */
|
|
|
|
|
-2, /* (440) signed ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
-2, /* (441) signed ::= NK_MINUS NK_INTEGER */
|
|
|
|
|
-1, /* (442) signed ::= NK_FLOAT */
|
|
|
|
|
-2, /* (443) signed ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
-2, /* (444) signed ::= NK_MINUS NK_FLOAT */
|
|
|
|
|
-1, /* (445) signed_literal ::= signed */
|
|
|
|
|
-1, /* (446) signed_literal ::= NK_STRING */
|
|
|
|
|
-1, /* (447) signed_literal ::= NK_BOOL */
|
|
|
|
|
-2, /* (448) signed_literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
-1, /* (449) signed_literal ::= duration_literal */
|
|
|
|
|
-1, /* (450) signed_literal ::= NULL */
|
|
|
|
|
-1, /* (451) signed_literal ::= literal_func */
|
|
|
|
|
-1, /* (452) signed_literal ::= NK_QUESTION */
|
|
|
|
|
-1, /* (453) literal_list ::= signed_literal */
|
|
|
|
|
-3, /* (454) literal_list ::= literal_list NK_COMMA signed_literal */
|
|
|
|
|
-1, /* (455) db_name ::= NK_ID */
|
|
|
|
|
-1, /* (456) table_name ::= NK_ID */
|
|
|
|
|
-1, /* (457) column_name ::= NK_ID */
|
|
|
|
|
-1, /* (458) function_name ::= NK_ID */
|
|
|
|
|
-1, /* (459) view_name ::= NK_ID */
|
|
|
|
|
-1, /* (460) table_alias ::= NK_ID */
|
|
|
|
|
-1, /* (461) column_alias ::= NK_ID */
|
|
|
|
|
-1, /* (462) column_alias ::= NK_ALIAS */
|
|
|
|
|
-1, /* (463) user_name ::= NK_ID */
|
|
|
|
|
-1, /* (464) topic_name ::= NK_ID */
|
|
|
|
|
-1, /* (465) stream_name ::= NK_ID */
|
|
|
|
|
-1, /* (466) cgroup_name ::= NK_ID */
|
|
|
|
|
-1, /* (467) index_name ::= NK_ID */
|
|
|
|
|
-1, /* (468) expr_or_subquery ::= expression */
|
|
|
|
|
-1, /* (469) expression ::= literal */
|
|
|
|
|
-1, /* (470) expression ::= pseudo_column */
|
|
|
|
|
-1, /* (471) expression ::= column_reference */
|
|
|
|
|
-1, /* (472) expression ::= function_expression */
|
|
|
|
|
-1, /* (473) expression ::= case_when_expression */
|
|
|
|
|
-3, /* (474) expression ::= NK_LP expression NK_RP */
|
|
|
|
|
-2, /* (475) expression ::= NK_PLUS expr_or_subquery */
|
|
|
|
|
-2, /* (476) expression ::= NK_MINUS expr_or_subquery */
|
|
|
|
|
-3, /* (477) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
|
|
|
-3, /* (478) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
|
|
|
-3, /* (479) expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
|
|
|
-3, /* (480) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
|
|
|
-3, /* (481) expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
|
|
|
-3, /* (482) expression ::= column_reference NK_ARROW NK_STRING */
|
|
|
|
|
-3, /* (483) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
|
|
|
-3, /* (484) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
|
|
|
-1, /* (485) expression_list ::= expr_or_subquery */
|
|
|
|
|
-3, /* (486) expression_list ::= expression_list NK_COMMA expr_or_subquery */
|
|
|
|
|
-1, /* (487) column_reference ::= column_name */
|
|
|
|
|
-3, /* (488) column_reference ::= table_name NK_DOT column_name */
|
|
|
|
|
-1, /* (489) column_reference ::= NK_ALIAS */
|
|
|
|
|
-3, /* (490) column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
|
|
|
-1, /* (491) pseudo_column ::= ROWTS */
|
|
|
|
|
-1, /* (492) pseudo_column ::= TBNAME */
|
|
|
|
|
-3, /* (493) pseudo_column ::= table_name NK_DOT TBNAME */
|
|
|
|
|
-1, /* (494) pseudo_column ::= QSTART */
|
|
|
|
|
-1, /* (495) pseudo_column ::= QEND */
|
|
|
|
|
-1, /* (496) pseudo_column ::= QDURATION */
|
|
|
|
|
-1, /* (497) pseudo_column ::= WSTART */
|
|
|
|
|
-1, /* (498) pseudo_column ::= WEND */
|
|
|
|
|
-1, /* (499) pseudo_column ::= WDURATION */
|
|
|
|
|
-1, /* (500) pseudo_column ::= IROWTS */
|
|
|
|
|
-1, /* (501) pseudo_column ::= ISFILLED */
|
|
|
|
|
-1, /* (502) pseudo_column ::= QTAGS */
|
|
|
|
|
-4, /* (503) function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
|
|
|
-4, /* (504) function_expression ::= star_func NK_LP star_func_para_list NK_RP */
|
|
|
|
|
-6, /* (505) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
|
|
|
-1, /* (506) function_expression ::= literal_func */
|
|
|
|
|
-3, /* (507) literal_func ::= noarg_func NK_LP NK_RP */
|
|
|
|
|
-1, /* (508) literal_func ::= NOW */
|
|
|
|
|
-1, /* (509) literal_func ::= TODAY */
|
|
|
|
|
-1, /* (510) noarg_func ::= NOW */
|
|
|
|
|
-1, /* (511) noarg_func ::= TODAY */
|
|
|
|
|
-1, /* (512) noarg_func ::= TIMEZONE */
|
|
|
|
|
-1, /* (513) noarg_func ::= DATABASE */
|
|
|
|
|
-1, /* (514) noarg_func ::= CLIENT_VERSION */
|
|
|
|
|
-1, /* (515) noarg_func ::= SERVER_VERSION */
|
|
|
|
|
-1, /* (516) noarg_func ::= SERVER_STATUS */
|
|
|
|
|
-1, /* (517) noarg_func ::= CURRENT_USER */
|
|
|
|
|
-1, /* (518) noarg_func ::= USER */
|
|
|
|
|
-1, /* (519) star_func ::= COUNT */
|
|
|
|
|
-1, /* (520) star_func ::= FIRST */
|
|
|
|
|
-1, /* (521) star_func ::= LAST */
|
|
|
|
|
-1, /* (522) star_func ::= LAST_ROW */
|
|
|
|
|
-1, /* (523) star_func_para_list ::= NK_STAR */
|
|
|
|
|
-1, /* (524) star_func_para_list ::= other_para_list */
|
|
|
|
|
-1, /* (525) other_para_list ::= star_func_para */
|
|
|
|
|
-3, /* (526) other_para_list ::= other_para_list NK_COMMA star_func_para */
|
|
|
|
|
-1, /* (527) star_func_para ::= expr_or_subquery */
|
|
|
|
|
-3, /* (528) star_func_para ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
-4, /* (529) case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
|
|
|
-5, /* (530) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
|
|
|
-1, /* (531) when_then_list ::= when_then_expr */
|
|
|
|
|
-2, /* (532) when_then_list ::= when_then_list when_then_expr */
|
|
|
|
|
-4, /* (533) when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
|
|
|
0, /* (534) case_when_else_opt ::= */
|
|
|
|
|
-2, /* (535) case_when_else_opt ::= ELSE common_expression */
|
|
|
|
|
-3, /* (536) predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
|
|
|
-5, /* (537) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
-6, /* (538) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
-3, /* (539) predicate ::= expr_or_subquery IS NULL */
|
|
|
|
|
-4, /* (540) predicate ::= expr_or_subquery IS NOT NULL */
|
|
|
|
|
-3, /* (541) predicate ::= expr_or_subquery in_op in_predicate_value */
|
|
|
|
|
-1, /* (542) compare_op ::= NK_LT */
|
|
|
|
|
-1, /* (543) compare_op ::= NK_GT */
|
|
|
|
|
-1, /* (544) compare_op ::= NK_LE */
|
|
|
|
|
-1, /* (545) compare_op ::= NK_GE */
|
|
|
|
|
-1, /* (546) compare_op ::= NK_NE */
|
|
|
|
|
-1, /* (547) compare_op ::= NK_EQ */
|
|
|
|
|
-1, /* (548) compare_op ::= LIKE */
|
|
|
|
|
-2, /* (549) compare_op ::= NOT LIKE */
|
|
|
|
|
-1, /* (550) compare_op ::= MATCH */
|
|
|
|
|
-1, /* (551) compare_op ::= NMATCH */
|
|
|
|
|
-1, /* (552) compare_op ::= CONTAINS */
|
|
|
|
|
-1, /* (553) in_op ::= IN */
|
|
|
|
|
-2, /* (554) in_op ::= NOT IN */
|
|
|
|
|
-3, /* (555) in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
|
|
|
-1, /* (556) boolean_value_expression ::= boolean_primary */
|
|
|
|
|
-2, /* (557) boolean_value_expression ::= NOT boolean_primary */
|
|
|
|
|
-3, /* (558) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
|
|
|
-3, /* (559) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
|
|
|
-1, /* (560) boolean_primary ::= predicate */
|
|
|
|
|
-3, /* (561) boolean_primary ::= NK_LP boolean_value_expression NK_RP */
|
|
|
|
|
-1, /* (562) common_expression ::= expr_or_subquery */
|
|
|
|
|
-1, /* (563) common_expression ::= boolean_value_expression */
|
|
|
|
|
0, /* (564) from_clause_opt ::= */
|
|
|
|
|
-2, /* (565) from_clause_opt ::= FROM table_reference_list */
|
|
|
|
|
-1, /* (566) table_reference_list ::= table_reference */
|
|
|
|
|
-3, /* (567) table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
|
|
|
-1, /* (568) table_reference ::= table_primary */
|
|
|
|
|
-1, /* (569) table_reference ::= joined_table */
|
|
|
|
|
-2, /* (570) table_primary ::= table_name alias_opt */
|
|
|
|
|
-4, /* (571) table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
|
|
|
-2, /* (572) table_primary ::= subquery alias_opt */
|
|
|
|
|
-1, /* (573) table_primary ::= parenthesized_joined_table */
|
|
|
|
|
0, /* (574) alias_opt ::= */
|
|
|
|
|
-1, /* (575) alias_opt ::= table_alias */
|
|
|
|
|
-2, /* (576) alias_opt ::= AS table_alias */
|
|
|
|
|
-3, /* (577) parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
|
|
|
-3, /* (578) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */
|
|
|
|
|
-6, /* (579) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
|
|
|
0, /* (580) join_type ::= */
|
|
|
|
|
-1, /* (581) join_type ::= INNER */
|
|
|
|
|
-14, /* (582) 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, /* (583) hint_list ::= */
|
|
|
|
|
-1, /* (584) hint_list ::= NK_HINT */
|
|
|
|
|
0, /* (585) tag_mode_opt ::= */
|
|
|
|
|
-1, /* (586) tag_mode_opt ::= TAGS */
|
|
|
|
|
0, /* (587) set_quantifier_opt ::= */
|
|
|
|
|
-1, /* (588) set_quantifier_opt ::= DISTINCT */
|
|
|
|
|
-1, /* (589) set_quantifier_opt ::= ALL */
|
|
|
|
|
-1, /* (590) select_list ::= select_item */
|
|
|
|
|
-3, /* (591) select_list ::= select_list NK_COMMA select_item */
|
|
|
|
|
-1, /* (592) select_item ::= NK_STAR */
|
|
|
|
|
-1, /* (593) select_item ::= common_expression */
|
|
|
|
|
-2, /* (594) select_item ::= common_expression column_alias */
|
|
|
|
|
-3, /* (595) select_item ::= common_expression AS column_alias */
|
|
|
|
|
-3, /* (596) select_item ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
0, /* (597) where_clause_opt ::= */
|
|
|
|
|
-2, /* (598) where_clause_opt ::= WHERE search_condition */
|
|
|
|
|
0, /* (599) partition_by_clause_opt ::= */
|
|
|
|
|
-3, /* (600) partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
|
|
|
-1, /* (601) partition_list ::= partition_item */
|
|
|
|
|
-3, /* (602) partition_list ::= partition_list NK_COMMA partition_item */
|
|
|
|
|
-1, /* (603) partition_item ::= expr_or_subquery */
|
|
|
|
|
-2, /* (604) partition_item ::= expr_or_subquery column_alias */
|
|
|
|
|
-3, /* (605) partition_item ::= expr_or_subquery AS column_alias */
|
|
|
|
|
0, /* (606) twindow_clause_opt ::= */
|
|
|
|
|
-6, /* (607) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
|
|
|
-4, /* (608) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
-6, /* (609) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
-8, /* (610) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
-7, /* (611) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
|
|
|
-4, /* (612) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
-6, /* (613) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
0, /* (614) sliding_opt ::= */
|
|
|
|
|
-4, /* (615) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */
|
|
|
|
|
-1, /* (616) interval_sliding_duration_literal ::= NK_VARIABLE */
|
|
|
|
|
-1, /* (617) interval_sliding_duration_literal ::= NK_STRING */
|
|
|
|
|
-1, /* (618) interval_sliding_duration_literal ::= NK_INTEGER */
|
|
|
|
|
0, /* (619) fill_opt ::= */
|
|
|
|
|
-4, /* (620) fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
|
|
|
-6, /* (621) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
|
|
|
-6, /* (622) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
|
|
|
-1, /* (623) fill_mode ::= NONE */
|
|
|
|
|
-1, /* (624) fill_mode ::= PREV */
|
|
|
|
|
-1, /* (625) fill_mode ::= NULL */
|
|
|
|
|
-1, /* (626) fill_mode ::= NULL_F */
|
|
|
|
|
-1, /* (627) fill_mode ::= LINEAR */
|
|
|
|
|
-1, /* (628) fill_mode ::= NEXT */
|
|
|
|
|
0, /* (629) group_by_clause_opt ::= */
|
|
|
|
|
-3, /* (630) group_by_clause_opt ::= GROUP BY group_by_list */
|
|
|
|
|
-1, /* (631) group_by_list ::= expr_or_subquery */
|
|
|
|
|
-3, /* (632) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
|
|
|
0, /* (633) having_clause_opt ::= */
|
|
|
|
|
-2, /* (634) having_clause_opt ::= HAVING search_condition */
|
|
|
|
|
0, /* (635) range_opt ::= */
|
|
|
|
|
-6, /* (636) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
|
|
|
-4, /* (637) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
0, /* (638) every_opt ::= */
|
|
|
|
|
-4, /* (639) every_opt ::= EVERY NK_LP duration_literal NK_RP */
|
|
|
|
|
-4, /* (640) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
|
|
|
-1, /* (641) query_simple ::= query_specification */
|
|
|
|
|
-1, /* (642) query_simple ::= union_query_expression */
|
|
|
|
|
-4, /* (643) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
|
|
|
-3, /* (644) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
|
|
|
-1, /* (645) query_simple_or_subquery ::= query_simple */
|
|
|
|
|
-1, /* (646) query_simple_or_subquery ::= subquery */
|
|
|
|
|
-1, /* (647) query_or_subquery ::= query_expression */
|
|
|
|
|
-1, /* (648) query_or_subquery ::= subquery */
|
|
|
|
|
0, /* (649) order_by_clause_opt ::= */
|
|
|
|
|
-3, /* (650) order_by_clause_opt ::= ORDER BY sort_specification_list */
|
|
|
|
|
0, /* (651) slimit_clause_opt ::= */
|
|
|
|
|
-2, /* (652) slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
|
|
|
-4, /* (653) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
|
|
|
-4, /* (654) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
0, /* (655) limit_clause_opt ::= */
|
|
|
|
|
-2, /* (656) limit_clause_opt ::= LIMIT NK_INTEGER */
|
|
|
|
|
-4, /* (657) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */
|
|
|
|
|
-4, /* (658) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
-3, /* (659) subquery ::= NK_LP query_expression NK_RP */
|
|
|
|
|
-3, /* (660) subquery ::= NK_LP subquery NK_RP */
|
|
|
|
|
-1, /* (661) search_condition ::= common_expression */
|
|
|
|
|
-1, /* (662) sort_specification_list ::= sort_specification */
|
|
|
|
|
-3, /* (663) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */
|
|
|
|
|
-3, /* (664) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
|
|
|
0, /* (665) ordering_specification_opt ::= */
|
|
|
|
|
-1, /* (666) ordering_specification_opt ::= ASC */
|
|
|
|
|
-1, /* (667) ordering_specification_opt ::= DESC */
|
|
|
|
|
0, /* (668) null_ordering_opt ::= */
|
|
|
|
|
-2, /* (669) null_ordering_opt ::= NULLS FIRST */
|
|
|
|
|
-2, /* (670) 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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 50 "sql.y"
|
2022-04-29 01:53:53 +00:00
|
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5171 "sql.c"
|
|
|
|
|
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 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 51 "sql.y"
|
2022-04-29 01:53:53 +00:00
|
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5177 "sql.c"
|
|
|
|
|
yy_destructor(yypParser,356,&yymsp[0].minor);
|
2022-03-17 03:11:49 +00:00
|
|
|
break;
|
|
|
|
|
case 2: /* account_options ::= */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 55 "sql.y"
|
2022-03-17 03:11:49 +00:00
|
|
|
{ }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5183 "sql.c"
|
2022-03-17 03:11:49 +00:00
|
|
|
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-03-15 01:14:54 +00:00
|
|
|
{ yy_destructor(yypParser,355,&yymsp[-2].minor);
|
|
|
|
|
#line 56 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
{ }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5197 "sql.c"
|
|
|
|
|
yy_destructor(yypParser,357,&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-03-15 01:14:54 +00:00
|
|
|
{ yy_destructor(yypParser,358,&yymsp[0].minor);
|
|
|
|
|
#line 68 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
{ }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5205 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
{ yy_destructor(yypParser,356,&yymsp[-1].minor);
|
|
|
|
|
#line 69 "sql.y"
|
2022-03-17 03:11:49 +00:00
|
|
|
{ }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5212 "sql.c"
|
|
|
|
|
yy_destructor(yypParser,358,&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);
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 73 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
{ }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5228 "sql.c"
|
|
|
|
|
yy_destructor(yypParser,357,&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-03-15 01:14:54 +00:00
|
|
|
#line 86 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 5234 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy552 = yylhsminor.yy552;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 87 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = addNodeToList(pCxt, yymsp[-2].minor.yy552, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 5240 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy552 = yylhsminor.yy552;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 26: /* white_list ::= HOST ip_range_list */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 91 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy552 = yymsp[0].minor.yy552; }
|
|
|
|
|
#line 5246 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
case 308: /* tag_list_opt ::= */ yytestcase(yyruleno==308);
|
|
|
|
|
case 374: /* col_list_opt ::= */ yytestcase(yyruleno==374);
|
|
|
|
|
case 376: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==376);
|
|
|
|
|
case 599: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==599);
|
|
|
|
|
case 629: /* group_by_clause_opt ::= */ yytestcase(yyruleno==629);
|
|
|
|
|
case 649: /* order_by_clause_opt ::= */ yytestcase(yyruleno==649);
|
|
|
|
|
#line 95 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy552 = NULL; }
|
|
|
|
|
#line 5259 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
case 377: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==377);
|
|
|
|
|
case 524: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==524);
|
|
|
|
|
#line 96 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = yymsp[0].minor.yy552; }
|
|
|
|
|
#line 5267 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy552 = yylhsminor.yy552;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 100 "sql.y"
|
2023-09-19 10:44:27 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy965, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy883);
|
|
|
|
|
pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy552);
|
2023-08-24 07:54:10 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5276 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 104 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy965, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5281 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 105 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy965, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5286 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 106 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy965, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5291 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 33: /* cmd ::= ALTER USER user_name ADD white_list */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 107 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy965, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 5296 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 34: /* cmd ::= ALTER USER user_name DROP white_list */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 108 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy965, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 5301 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 35: /* cmd ::= DROP USER user_name */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 109 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 5306 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 36: /* sysinfo_opt ::= */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 113 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy883 = 1; }
|
|
|
|
|
#line 5311 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 114 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy883 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
|
|
|
#line 5316 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 117 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy525, &yymsp[-3].minor.yy665, &yymsp[0].minor.yy965, yymsp[-2].minor.yy718); }
|
|
|
|
|
#line 5321 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 118 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy525, &yymsp[-3].minor.yy665, &yymsp[0].minor.yy965, yymsp[-2].minor.yy718); }
|
|
|
|
|
#line 5326 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 40: /* privileges ::= ALL */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 122 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy525 = PRIVILEGE_TYPE_ALL; }
|
|
|
|
|
#line 5331 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 41: /* privileges ::= priv_type_list */
|
|
|
|
|
case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43);
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 123 "sql.y"
|
|
|
|
|
{ yylhsminor.yy525 = yymsp[0].minor.yy525; }
|
|
|
|
|
#line 5337 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy525 = yylhsminor.yy525;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 42: /* privileges ::= SUBSCRIBE */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 124 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy525 = PRIVILEGE_TYPE_SUBSCRIBE; }
|
|
|
|
|
#line 5343 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 129 "sql.y"
|
|
|
|
|
{ yylhsminor.yy525 = yymsp[-2].minor.yy525 | yymsp[0].minor.yy525; }
|
|
|
|
|
#line 5348 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy525 = yylhsminor.yy525;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 45: /* priv_type ::= READ */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 133 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy525 = PRIVILEGE_TYPE_READ; }
|
|
|
|
|
#line 5354 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
|
|
|
|
case 46: /* priv_type ::= WRITE */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 134 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy525 = PRIVILEGE_TYPE_WRITE; }
|
|
|
|
|
#line 5359 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 47: /* priv_type ::= ALTER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 135 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy525 = PRIVILEGE_TYPE_ALTER; }
|
|
|
|
|
#line 5364 "sql.c"
|
2023-10-20 00:46:32 +00:00
|
|
|
break;
|
|
|
|
|
case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 139 "sql.y"
|
|
|
|
|
{ yylhsminor.yy665.first = yymsp[-2].minor.yy0; yylhsminor.yy665.second = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5369 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy665 = yylhsminor.yy665;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 140 "sql.y"
|
|
|
|
|
{ yylhsminor.yy665.first = yymsp[-2].minor.yy965; yylhsminor.yy665.second = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5375 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy665 = yylhsminor.yy665;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 141 "sql.y"
|
|
|
|
|
{ yylhsminor.yy665.first = yymsp[-2].minor.yy965; yylhsminor.yy665.second = yymsp[0].minor.yy965; }
|
|
|
|
|
#line 5381 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy665 = yylhsminor.yy665;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 51: /* priv_level ::= topic_name */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 142 "sql.y"
|
|
|
|
|
{ yylhsminor.yy665.first = yymsp[0].minor.yy965; yylhsminor.yy665.second = nil_token; }
|
|
|
|
|
#line 5387 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy665 = yylhsminor.yy665;
|
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-03-15 01:14:54 +00:00
|
|
|
case 303: /* like_pattern_opt ::= */ yytestcase(yyruleno==303);
|
|
|
|
|
case 388: /* subtable_opt ::= */ yytestcase(yyruleno==388);
|
|
|
|
|
case 534: /* case_when_else_opt ::= */ yytestcase(yyruleno==534);
|
|
|
|
|
case 564: /* from_clause_opt ::= */ yytestcase(yyruleno==564);
|
|
|
|
|
case 597: /* where_clause_opt ::= */ yytestcase(yyruleno==597);
|
|
|
|
|
case 606: /* twindow_clause_opt ::= */ yytestcase(yyruleno==606);
|
|
|
|
|
case 614: /* sliding_opt ::= */ yytestcase(yyruleno==614);
|
|
|
|
|
case 619: /* fill_opt ::= */ yytestcase(yyruleno==619);
|
|
|
|
|
case 633: /* having_clause_opt ::= */ yytestcase(yyruleno==633);
|
|
|
|
|
case 635: /* range_opt ::= */ yytestcase(yyruleno==635);
|
|
|
|
|
case 638: /* every_opt ::= */ yytestcase(yyruleno==638);
|
|
|
|
|
case 651: /* slimit_clause_opt ::= */ yytestcase(yyruleno==651);
|
|
|
|
|
case 655: /* limit_clause_opt ::= */ yytestcase(yyruleno==655);
|
|
|
|
|
#line 144 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy718 = NULL; }
|
|
|
|
|
#line 5408 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
case 565: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==565);
|
|
|
|
|
case 598: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==598);
|
|
|
|
|
case 634: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==634);
|
|
|
|
|
#line 145 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy718 = yymsp[0].minor.yy718; }
|
|
|
|
|
#line 5416 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 148 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy965, NULL); }
|
|
|
|
|
#line 5421 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 149 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5426 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 150 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy559, false); }
|
|
|
|
|
#line 5431 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 151 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy965, yymsp[0].minor.yy559, false); }
|
|
|
|
|
#line 5436 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 152 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy559); }
|
|
|
|
|
#line 5441 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 153 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy965, false, yymsp[0].minor.yy559); }
|
|
|
|
|
#line 5446 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 154 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5451 "sql.c"
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 155 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5456 "sql.c"
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 156 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5461 "sql.c"
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 157 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5466 "sql.c"
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-10-20 00:46:32 +00:00
|
|
|
case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 158 "sql.y"
|
2023-05-09 11:19:14 +00:00
|
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5471 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
case 330: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==330);
|
|
|
|
|
case 331: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==331);
|
|
|
|
|
case 332: /* sma_func_name ::= LAST */ yytestcase(yyruleno==332);
|
|
|
|
|
case 333: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==333);
|
|
|
|
|
case 455: /* db_name ::= NK_ID */ yytestcase(yyruleno==455);
|
|
|
|
|
case 456: /* table_name ::= NK_ID */ yytestcase(yyruleno==456);
|
|
|
|
|
case 457: /* column_name ::= NK_ID */ yytestcase(yyruleno==457);
|
|
|
|
|
case 458: /* function_name ::= NK_ID */ yytestcase(yyruleno==458);
|
|
|
|
|
case 459: /* view_name ::= NK_ID */ yytestcase(yyruleno==459);
|
|
|
|
|
case 460: /* table_alias ::= NK_ID */ yytestcase(yyruleno==460);
|
|
|
|
|
case 461: /* column_alias ::= NK_ID */ yytestcase(yyruleno==461);
|
|
|
|
|
case 462: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==462);
|
|
|
|
|
case 463: /* user_name ::= NK_ID */ yytestcase(yyruleno==463);
|
|
|
|
|
case 464: /* topic_name ::= NK_ID */ yytestcase(yyruleno==464);
|
|
|
|
|
case 465: /* stream_name ::= NK_ID */ yytestcase(yyruleno==465);
|
|
|
|
|
case 466: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==466);
|
|
|
|
|
case 467: /* index_name ::= NK_ID */ yytestcase(yyruleno==467);
|
|
|
|
|
case 510: /* noarg_func ::= NOW */ yytestcase(yyruleno==510);
|
|
|
|
|
case 511: /* noarg_func ::= TODAY */ yytestcase(yyruleno==511);
|
|
|
|
|
case 512: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==512);
|
|
|
|
|
case 513: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==513);
|
|
|
|
|
case 514: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==514);
|
|
|
|
|
case 515: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==515);
|
|
|
|
|
case 516: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==516);
|
|
|
|
|
case 517: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==517);
|
|
|
|
|
case 518: /* noarg_func ::= USER */ yytestcase(yyruleno==518);
|
|
|
|
|
case 519: /* star_func ::= COUNT */ yytestcase(yyruleno==519);
|
|
|
|
|
case 520: /* star_func ::= FIRST */ yytestcase(yyruleno==520);
|
|
|
|
|
case 521: /* star_func ::= LAST */ yytestcase(yyruleno==521);
|
|
|
|
|
case 522: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==522);
|
|
|
|
|
#line 162 "sql.y"
|
|
|
|
|
{ yylhsminor.yy965 = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5508 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy965 = yylhsminor.yy965;
|
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-03-15 01:14:54 +00:00
|
|
|
case 351: /* analyze_opt ::= */ yytestcase(yyruleno==351);
|
|
|
|
|
case 358: /* agg_func_opt ::= */ yytestcase(yyruleno==358);
|
|
|
|
|
case 364: /* or_replace_opt ::= */ yytestcase(yyruleno==364);
|
|
|
|
|
case 390: /* ignore_opt ::= */ yytestcase(yyruleno==390);
|
|
|
|
|
case 585: /* tag_mode_opt ::= */ yytestcase(yyruleno==585);
|
|
|
|
|
case 587: /* set_quantifier_opt ::= */ yytestcase(yyruleno==587);
|
|
|
|
|
#line 168 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy559 = false; }
|
|
|
|
|
#line 5522 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
case 352: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==352);
|
|
|
|
|
case 359: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==359);
|
|
|
|
|
case 586: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==586);
|
|
|
|
|
case 588: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==588);
|
|
|
|
|
#line 169 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy559 = true; }
|
|
|
|
|
#line 5532 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 71: /* cmd ::= ALTER CLUSTER NK_STRING */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 176 "sql.y"
|
2023-12-18 08:34:31 +00:00
|
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5537 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 177 "sql.y"
|
2023-12-18 08:34:31 +00:00
|
|
|
{ pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5542 "sql.c"
|
2023-12-18 08:34:31 +00:00
|
|
|
break;
|
|
|
|
|
case 73: /* cmd ::= ALTER LOCAL NK_STRING */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 180 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5547 "sql.c"
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 181 "sql.y"
|
2022-03-16 11:28:40 +00:00
|
|
|
{ pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5552 "sql.c"
|
2022-03-16 11:28:40 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 184 "sql.y"
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5557 "sql.c"
|
2022-03-15 12:04:52 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 185 "sql.y"
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5562 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 186 "sql.y"
|
2023-05-09 11:19:14 +00:00
|
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5567 "sql.c"
|
2023-05-09 11:19:14 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 189 "sql.y"
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5572 "sql.c"
|
2022-03-15 12:04:52 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 190 "sql.y"
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5577 "sql.c"
|
2022-03-15 12:04:52 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 193 "sql.y"
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5582 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 194 "sql.y"
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5587 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 197 "sql.y"
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5592 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 198 "sql.y"
|
2022-04-09 06:57:28 +00:00
|
|
|
{ pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5597 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 199 "sql.y"
|
2023-05-09 11:19:14 +00:00
|
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5602 "sql.c"
|
2023-05-09 11:19:14 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 202 "sql.y"
|
2023-05-09 11:19:14 +00:00
|
|
|
{ pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5607 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 86: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 205 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy559, &yymsp[-1].minor.yy965, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 5612 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 87: /* cmd ::= DROP DATABASE exists_opt db_name */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 206 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy559, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 5617 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 88: /* cmd ::= USE db_name */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 207 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 5622 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 208 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy965, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 5627 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 90: /* cmd ::= FLUSH DATABASE db_name */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 209 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 5632 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 210 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy965, yymsp[0].minor.yy134); }
|
|
|
|
|
#line 5637 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 211 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy965, yymsp[-1].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 5642 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 215 "sql.y"
|
|
|
|
|
{ yymsp[-2].minor.yy559 = true; }
|
|
|
|
|
#line 5647 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 95: /* exists_opt ::= IF EXISTS */
|
2024-03-15 01:14:54 +00:00
|
|
|
case 365: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==365);
|
|
|
|
|
case 391: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==391);
|
|
|
|
|
#line 220 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy559 = true; }
|
|
|
|
|
#line 5654 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 97: /* db_options ::= */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 223 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy718 = createDefaultDatabaseOptions(pCxt); }
|
|
|
|
|
#line 5659 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 224 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5664 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 225 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5670 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 226 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5676 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 227 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_COMP, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5682 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 228 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_DAYS, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5689 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 230 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5695 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 231 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5701 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 232 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_KEEP, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 5708 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 234 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_PAGES, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5714 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 235 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5720 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 236 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5726 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 237 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5732 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 238 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5738 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 240 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5744 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 241 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5750 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 242 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_RETENTIONS, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 5756 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 243 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5762 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 244 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_WAL, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5768 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 245 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5774 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 246 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5780 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 247 "sql.y"
|
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-03-15 01:14:54 +00:00
|
|
|
yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-3].minor.yy718, DB_OPTION_WAL_RETENTION_PERIOD, &t);
|
2022-07-25 13:09:06 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5790 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 252 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5796 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 253 "sql.y"
|
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-03-15 01:14:54 +00:00
|
|
|
yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-3].minor.yy718, DB_OPTION_WAL_RETENTION_SIZE, &t);
|
2022-07-25 13:09:06 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5806 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 258 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5812 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 259 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5818 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 260 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5824 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 261 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 5830 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 262 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 5836 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 263 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setDatabaseOption(pCxt, yymsp[-2].minor.yy718, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 5842 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 265 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterDatabaseOptions(pCxt); yylhsminor.yy718 = setAlterDatabaseOption(pCxt, yylhsminor.yy718, &yymsp[0].minor.yy959); }
|
|
|
|
|
#line 5848 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 266 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy718, &yymsp[0].minor.yy959); }
|
|
|
|
|
#line 5854 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 270 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5860 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 271 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5865 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 272 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5870 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 273 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5875 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 274 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_KEEP; yymsp[-1].minor.yy959.pList = yymsp[0].minor.yy552; }
|
|
|
|
|
#line 5881 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 276 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_PAGES; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5886 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 277 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5891 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 279 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_WAL; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5896 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 280 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5901 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 281 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5906 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 282 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5911 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 283 "sql.y"
|
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-03-15 01:14:54 +00:00
|
|
|
yymsp[-2].minor.yy959.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy959.val = t;
|
2023-03-21 08:45:19 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5920 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 288 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5925 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 289 "sql.y"
|
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-03-15 01:14:54 +00:00
|
|
|
yymsp[-2].minor.yy959.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy959.val = t;
|
2023-03-21 08:45:19 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 5934 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 294 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 5939 "sql.c"
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 147: /* integer_list ::= NK_INTEGER */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 298 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 5944 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy552 = yylhsminor.yy552;
|
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-03-15 01:14:54 +00:00
|
|
|
case 404: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==404);
|
|
|
|
|
#line 299 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = addNodeToList(pCxt, yymsp[-2].minor.yy552, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 5951 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy552 = yylhsminor.yy552;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 149: /* variable_list ::= NK_VARIABLE */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 303 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 5957 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy552 = yylhsminor.yy552;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 304 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = addNodeToList(pCxt, yymsp[-2].minor.yy552, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 5963 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy552 = yylhsminor.yy552;
|
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-03-15 01:14:54 +00:00
|
|
|
case 309: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==309);
|
|
|
|
|
case 326: /* func_list ::= func */ yytestcase(yyruleno==326);
|
|
|
|
|
case 428: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==428);
|
|
|
|
|
case 453: /* literal_list ::= signed_literal */ yytestcase(yyruleno==453);
|
|
|
|
|
case 525: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==525);
|
|
|
|
|
case 531: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==531);
|
|
|
|
|
case 590: /* select_list ::= select_item */ yytestcase(yyruleno==590);
|
|
|
|
|
case 601: /* partition_list ::= partition_item */ yytestcase(yyruleno==601);
|
|
|
|
|
case 662: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==662);
|
|
|
|
|
#line 308 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = createNodeList(pCxt, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 5983 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy552 = yylhsminor.yy552;
|
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-03-15 01:14:54 +00:00
|
|
|
case 310: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==310);
|
|
|
|
|
case 327: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==327);
|
|
|
|
|
case 429: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==429);
|
|
|
|
|
case 454: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==454);
|
|
|
|
|
case 526: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==526);
|
|
|
|
|
case 591: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==591);
|
|
|
|
|
case 602: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==602);
|
|
|
|
|
case 663: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==663);
|
|
|
|
|
#line 309 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = addNodeToList(pCxt, yymsp[-2].minor.yy552, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6001 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy552 = yylhsminor.yy552;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 311 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 6008 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2023-09-19 10:44:27 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 155: /* speed_opt ::= */
|
2024-03-15 01:14:54 +00:00
|
|
|
case 360: /* bufsize_opt ::= */ yytestcase(yyruleno==360);
|
|
|
|
|
#line 316 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy134 = 0; }
|
|
|
|
|
#line 6015 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
case 361: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==361);
|
|
|
|
|
#line 317 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy134 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); }
|
|
|
|
|
#line 6021 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 320 "sql.y"
|
|
|
|
|
{ yymsp[-2].minor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 6027 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 321 "sql.y"
|
|
|
|
|
{ yymsp[-2].minor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 6033 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 322 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 6039 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 331 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy559, yymsp[-5].minor.yy718, yymsp[-3].minor.yy552, yymsp[-1].minor.yy552, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6045 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 332 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 6050 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 335 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 6055 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 336 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy559, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6060 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
case 406: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==406);
|
|
|
|
|
case 407: /* cmd ::= insert_query */ yytestcase(yyruleno==407);
|
|
|
|
|
#line 338 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = yymsp[0].minor.yy718; }
|
|
|
|
|
#line 6067 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 339 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6072 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 341 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6077 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 343 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy718, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy965, yymsp[0].minor.yy224); }
|
|
|
|
|
#line 6083 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 344 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy718, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6089 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 346 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy718, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy965, yymsp[0].minor.yy224); }
|
|
|
|
|
#line 6095 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 348 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy718, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy965, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6101 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 350 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy718, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy965, yymsp[0].minor.yy224); }
|
|
|
|
|
#line 6107 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 351 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy718, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6113 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 353 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy718, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy965, yymsp[0].minor.yy224); }
|
|
|
|
|
#line 6119 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 355 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy718, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy965, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6125 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-03-10 14:14:57 +00:00
|
|
|
case 181: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 357 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy718, &yymsp[-2].minor.yy965, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6131 "sql.c"
|
|
|
|
|
yymsp[-5].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
case 532: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==532);
|
|
|
|
|
#line 362 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = addNodeToList(pCxt, yymsp[-1].minor.yy552, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6138 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy552 = yylhsminor.yy552;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-03-10 14:14:57 +00:00
|
|
|
case 184: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 366 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy559, yymsp[-8].minor.yy718, yymsp[-6].minor.yy718, yymsp[-5].minor.yy552, yymsp[-2].minor.yy552, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6144 "sql.c"
|
|
|
|
|
yymsp[-9].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 373 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createDropTableClause(pCxt, yymsp[-1].minor.yy559, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6150 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
case 375: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==375);
|
|
|
|
|
#line 378 "sql.y"
|
|
|
|
|
{ yymsp[-2].minor.yy552 = yymsp[-1].minor.yy552; }
|
|
|
|
|
#line 6157 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 380 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy965, NULL); }
|
|
|
|
|
#line 6162 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 381 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRealTableNode(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy965, NULL); }
|
|
|
|
|
#line 6168 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 388 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy965, yymsp[0].minor.yy224, NULL); }
|
|
|
|
|
#line 6174 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 195: /* type_name ::= BOOL */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 393 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_BOOL); }
|
|
|
|
|
#line 6180 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 196: /* type_name ::= TINYINT */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 394 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_TINYINT); }
|
|
|
|
|
#line 6185 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 197: /* type_name ::= SMALLINT */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 395 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_SMALLINT); }
|
|
|
|
|
#line 6190 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 396 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_INT); }
|
|
|
|
|
#line 6196 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 200: /* type_name ::= BIGINT */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 398 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_BIGINT); }
|
|
|
|
|
#line 6201 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 201: /* type_name ::= FLOAT */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 399 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_FLOAT); }
|
|
|
|
|
#line 6206 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 202: /* type_name ::= DOUBLE */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 400 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_DOUBLE); }
|
|
|
|
|
#line 6211 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 401 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy224 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); }
|
|
|
|
|
#line 6216 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 204: /* type_name ::= TIMESTAMP */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 402 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); }
|
|
|
|
|
#line 6221 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 403 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy224 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); }
|
|
|
|
|
#line 6226 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 206: /* type_name ::= TINYINT UNSIGNED */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 404 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy224 = createDataType(TSDB_DATA_TYPE_UTINYINT); }
|
|
|
|
|
#line 6231 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 207: /* type_name ::= SMALLINT UNSIGNED */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 405 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy224 = createDataType(TSDB_DATA_TYPE_USMALLINT); }
|
|
|
|
|
#line 6236 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 208: /* type_name ::= INT UNSIGNED */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 406 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy224 = createDataType(TSDB_DATA_TYPE_UINT); }
|
|
|
|
|
#line 6241 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 209: /* type_name ::= BIGINT UNSIGNED */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 407 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy224 = createDataType(TSDB_DATA_TYPE_UBIGINT); }
|
|
|
|
|
#line 6246 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 210: /* type_name ::= JSON */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 408 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_JSON); }
|
|
|
|
|
#line 6251 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 409 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy224 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); }
|
|
|
|
|
#line 6256 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 212: /* type_name ::= MEDIUMBLOB */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 410 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); }
|
|
|
|
|
#line 6261 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 213: /* type_name ::= BLOB */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 411 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_BLOB); }
|
|
|
|
|
#line 6266 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 412 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy224 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); }
|
|
|
|
|
#line 6271 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 413 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy224 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); }
|
|
|
|
|
#line 6276 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 216: /* type_name ::= DECIMAL */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 414 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy224 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
|
|
|
#line 6281 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 415 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy224 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
|
|
|
#line 6286 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 416 "sql.y"
|
|
|
|
|
{ yymsp[-5].minor.yy224 = createDataType(TSDB_DATA_TYPE_DECIMAL); }
|
|
|
|
|
#line 6291 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
case 378: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==378);
|
|
|
|
|
#line 425 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy552 = yymsp[-1].minor.yy552; }
|
|
|
|
|
#line 6297 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 222: /* table_options ::= */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 427 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy718 = createDefaultTableOptions(pCxt); }
|
|
|
|
|
#line 6302 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 428 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setTableOption(pCxt, yymsp[-2].minor.yy718, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 6307 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 429 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setTableOption(pCxt, yymsp[-2].minor.yy718, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 6313 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 430 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setTableOption(pCxt, yymsp[-2].minor.yy718, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 6319 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 431 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setTableOption(pCxt, yymsp[-4].minor.yy718, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy552); }
|
|
|
|
|
#line 6325 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 432 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setTableOption(pCxt, yymsp[-2].minor.yy718, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 6331 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 433 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setTableOption(pCxt, yymsp[-4].minor.yy718, TABLE_OPTION_SMA, yymsp[-1].minor.yy552); }
|
|
|
|
|
#line 6337 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 434 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setTableOption(pCxt, yymsp[-2].minor.yy718, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 6343 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 436 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createAlterTableOptions(pCxt); yylhsminor.yy718 = setTableOption(pCxt, yylhsminor.yy718, yymsp[0].minor.yy959.type, &yymsp[0].minor.yy959.val); }
|
|
|
|
|
#line 6349 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 437 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setTableOption(pCxt, yymsp[-1].minor.yy718, yymsp[0].minor.yy959.type, &yymsp[0].minor.yy959.val); }
|
|
|
|
|
#line 6355 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 441 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 6361 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 442 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy959.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy959.val = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 6366 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 234: /* duration_list ::= duration_literal */
|
2024-03-15 01:14:54 +00:00
|
|
|
case 485: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==485);
|
|
|
|
|
#line 446 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy718)); }
|
|
|
|
|
#line 6372 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy552 = yylhsminor.yy552;
|
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-03-15 01:14:54 +00:00
|
|
|
case 486: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==486);
|
|
|
|
|
#line 447 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = addNodeToList(pCxt, yymsp[-2].minor.yy552, releaseRawExprNode(pCxt, yymsp[0].minor.yy718)); }
|
|
|
|
|
#line 6379 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy552 = yylhsminor.yy552;
|
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-03-15 01:14:54 +00:00
|
|
|
#line 454 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createFunctionNode(pCxt, &yymsp[0].minor.yy965, NULL); }
|
|
|
|
|
#line 6385 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
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-03-15 01:14:54 +00:00
|
|
|
case 312: /* tag_item ::= QTAGS */ yytestcase(yyruleno==312);
|
|
|
|
|
#line 455 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 6393 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 243: /* col_name ::= column_name */
|
2024-03-15 01:14:54 +00:00
|
|
|
case 313: /* tag_item ::= column_name */ yytestcase(yyruleno==313);
|
|
|
|
|
#line 463 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6400 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 244: /* cmd ::= SHOW DNODES */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 466 "sql.y"
|
2023-01-31 06:25:13 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6406 "sql.c"
|
2022-11-30 11:24:15 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 245: /* cmd ::= SHOW USERS */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 467 "sql.y"
|
2023-01-31 06:25:13 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6411 "sql.c"
|
2022-11-30 11:24:15 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 246: /* cmd ::= SHOW USER PRIVILEGES */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 468 "sql.y"
|
2023-01-31 06:25:13 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6416 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 469 "sql.y"
|
2023-09-19 08:14:17 +00:00
|
|
|
{
|
|
|
|
|
pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT);
|
2024-03-15 01:14:54 +00:00
|
|
|
setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy101);
|
2023-09-19 08:14:17 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6424 "sql.c"
|
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 */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 473 "sql.y"
|
2023-09-19 08:14:17 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy91, yymsp[0].minor.yy718, OP_TYPE_LIKE);
|
2023-09-19 08:14:17 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6431 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 476 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy718, yymsp[0].minor.yy718, OP_TYPE_LIKE); }
|
|
|
|
|
#line 6436 "sql.c"
|
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-03-15 01:14:54 +00:00
|
|
|
#line 477 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy718, NULL, OP_TYPE_LIKE); }
|
|
|
|
|
#line 6441 "sql.c"
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 251: /* cmd ::= SHOW MNODES */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 478 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6446 "sql.c"
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2023-12-18 08:34:31 +00:00
|
|
|
case 252: /* cmd ::= SHOW QNODES */
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 480 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6451 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 253: /* cmd ::= SHOW ARBGROUPS */
|
|
|
|
|
#line 481 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); }
|
|
|
|
|
#line 6456 "sql.c"
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 254: /* cmd ::= SHOW FUNCTIONS */
|
|
|
|
|
#line 482 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6461 "sql.c"
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 255: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */
|
|
|
|
|
#line 483 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy718, yymsp[-1].minor.yy718, OP_TYPE_EQUAL); }
|
|
|
|
|
#line 6466 "sql.c"
|
2022-03-07 12:18:05 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 256: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */
|
|
|
|
|
#line 484 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy965), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy965), OP_TYPE_EQUAL); }
|
|
|
|
|
#line 6471 "sql.c"
|
2023-07-12 03:06:47 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 257: /* cmd ::= SHOW STREAMS */
|
|
|
|
|
#line 485 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6476 "sql.c"
|
2022-03-08 09:25:26 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 258: /* cmd ::= SHOW ACCOUNTS */
|
|
|
|
|
#line 486 "sql.y"
|
2022-04-29 01:53:53 +00:00
|
|
|
{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6481 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 259: /* cmd ::= SHOW APPS */
|
|
|
|
|
#line 487 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6486 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 260: /* cmd ::= SHOW CONNECTIONS */
|
|
|
|
|
#line 488 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6491 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 261: /* cmd ::= SHOW LICENCES */
|
|
|
|
|
case 262: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==262);
|
|
|
|
|
#line 489 "sql.y"
|
2022-08-11 07:37:26 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6497 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 263: /* cmd ::= SHOW GRANTS FULL */
|
|
|
|
|
#line 491 "sql.y"
|
2024-01-18 07:23:38 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6502 "sql.c"
|
2024-01-18 07:23:38 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 264: /* cmd ::= SHOW GRANTS LOGS */
|
|
|
|
|
#line 492 "sql.y"
|
2024-01-31 05:52:03 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6507 "sql.c"
|
2024-01-18 07:23:38 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 265: /* cmd ::= SHOW CLUSTER MACHINES */
|
|
|
|
|
#line 493 "sql.y"
|
2024-01-18 09:49:11 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6512 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 266: /* cmd ::= SHOW CREATE DATABASE db_name */
|
|
|
|
|
#line 494 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6517 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 267: /* cmd ::= SHOW CREATE TABLE full_table_name */
|
|
|
|
|
#line 495 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6522 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 268: /* cmd ::= SHOW CREATE STABLE full_table_name */
|
|
|
|
|
#line 496 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6527 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 269: /* cmd ::= SHOW QUERIES */
|
|
|
|
|
#line 497 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6532 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 270: /* cmd ::= SHOW SCORES */
|
|
|
|
|
#line 498 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6537 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 271: /* cmd ::= SHOW TOPICS */
|
|
|
|
|
#line 499 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6542 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 272: /* cmd ::= SHOW VARIABLES */
|
|
|
|
|
case 273: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==273);
|
|
|
|
|
#line 500 "sql.y"
|
2022-06-20 12:36:15 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6548 "sql.c"
|
2022-03-28 09:08:48 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 274: /* cmd ::= SHOW LOCAL VARIABLES */
|
|
|
|
|
#line 502 "sql.y"
|
2022-06-20 12:36:15 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6553 "sql.c"
|
2022-06-20 12:36:15 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 275: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */
|
|
|
|
|
#line 503 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6558 "sql.c"
|
2022-06-20 12:36:15 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 276: /* cmd ::= SHOW BNODES */
|
|
|
|
|
#line 504 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6563 "sql.c"
|
2022-04-09 06:57:28 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 277: /* cmd ::= SHOW SNODES */
|
|
|
|
|
#line 505 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6568 "sql.c"
|
2022-04-09 06:57:28 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 278: /* cmd ::= SHOW CLUSTER */
|
|
|
|
|
#line 506 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6573 "sql.c"
|
2022-04-20 09:43:02 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 279: /* cmd ::= SHOW TRANSACTIONS */
|
|
|
|
|
#line 507 "sql.y"
|
2022-06-18 10:37:18 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6578 "sql.c"
|
2022-06-18 10:37:18 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 280: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */
|
|
|
|
|
#line 508 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6583 "sql.c"
|
2022-03-28 09:08:48 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 281: /* cmd ::= SHOW CONSUMERS */
|
|
|
|
|
#line 509 "sql.y"
|
2022-06-23 10:03:15 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6588 "sql.c"
|
2022-05-25 13:20:11 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 282: /* cmd ::= SHOW SUBSCRIPTIONS */
|
|
|
|
|
#line 510 "sql.y"
|
2022-06-23 10:03:15 +00:00
|
|
|
{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6593 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 283: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */
|
|
|
|
|
#line 511 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy718, yymsp[-1].minor.yy718, OP_TYPE_EQUAL); }
|
|
|
|
|
#line 6598 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 284: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */
|
|
|
|
|
#line 512 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy965), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy965), OP_TYPE_EQUAL); }
|
|
|
|
|
#line 6603 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 285: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */
|
|
|
|
|
#line 513 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy718, yymsp[0].minor.yy718, yymsp[-3].minor.yy552); }
|
|
|
|
|
#line 6608 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 286: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */
|
|
|
|
|
#line 514 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy965), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy965), yymsp[-4].minor.yy552); }
|
|
|
|
|
#line 6613 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 287: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */
|
|
|
|
|
#line 515 "sql.y"
|
2022-09-01 11:01:37 +00:00
|
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6618 "sql.c"
|
2022-09-01 11:01:37 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 288: /* cmd ::= SHOW VNODES */
|
|
|
|
|
#line 516 "sql.y"
|
2023-08-16 07:55:34 +00:00
|
|
|
{ pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6623 "sql.c"
|
2022-07-19 07:31:44 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 289: /* cmd ::= SHOW db_name_cond_opt ALIVE */
|
|
|
|
|
#line 518 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy718, QUERY_NODE_SHOW_DB_ALIVE_STMT); }
|
|
|
|
|
#line 6628 "sql.c"
|
2022-12-29 10:07:57 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 290: /* cmd ::= SHOW CLUSTER ALIVE */
|
|
|
|
|
#line 519 "sql.y"
|
2022-12-29 10:07:57 +00:00
|
|
|
{ pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6633 "sql.c"
|
2023-08-24 07:54:10 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 291: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */
|
|
|
|
|
#line 520 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy718, yymsp[0].minor.yy718, OP_TYPE_LIKE); }
|
|
|
|
|
#line 6638 "sql.c"
|
2023-10-09 10:34:08 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 292: /* cmd ::= SHOW CREATE VIEW full_table_name */
|
|
|
|
|
#line 521 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6643 "sql.c"
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 293: /* cmd ::= SHOW COMPACTS */
|
|
|
|
|
#line 522 "sql.y"
|
2023-11-23 07:26:21 +00:00
|
|
|
{ pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6648 "sql.c"
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 294: /* cmd ::= SHOW COMPACT NK_INTEGER */
|
|
|
|
|
#line 523 "sql.y"
|
2023-11-23 07:26:21 +00:00
|
|
|
{ pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6653 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 295: /* table_kind_db_name_cond_opt ::= */
|
|
|
|
|
#line 527 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy91.kind = SHOW_KIND_ALL; yymsp[1].minor.yy91.dbName = nil_token; }
|
|
|
|
|
#line 6658 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 296: /* table_kind_db_name_cond_opt ::= table_kind */
|
|
|
|
|
#line 528 "sql.y"
|
|
|
|
|
{ yylhsminor.yy91.kind = yymsp[0].minor.yy101; yylhsminor.yy91.dbName = nil_token; }
|
|
|
|
|
#line 6663 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy91 = yylhsminor.yy91;
|
|
|
|
|
break;
|
|
|
|
|
case 297: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
#line 529 "sql.y"
|
|
|
|
|
{ yylhsminor.yy91.kind = SHOW_KIND_ALL; yylhsminor.yy91.dbName = yymsp[-1].minor.yy965; }
|
|
|
|
|
#line 6669 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy91 = yylhsminor.yy91;
|
|
|
|
|
break;
|
|
|
|
|
case 298: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */
|
|
|
|
|
#line 530 "sql.y"
|
|
|
|
|
{ yylhsminor.yy91.kind = yymsp[-2].minor.yy101; yylhsminor.yy91.dbName = yymsp[-1].minor.yy965; }
|
|
|
|
|
#line 6675 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy91 = yylhsminor.yy91;
|
|
|
|
|
break;
|
|
|
|
|
case 299: /* table_kind ::= NORMAL */
|
|
|
|
|
#line 534 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy101 = SHOW_KIND_TABLES_NORMAL; }
|
|
|
|
|
#line 6681 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 300: /* table_kind ::= CHILD */
|
|
|
|
|
#line 535 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy101 = SHOW_KIND_TABLES_CHILD; }
|
|
|
|
|
#line 6686 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 301: /* db_name_cond_opt ::= */
|
|
|
|
|
case 306: /* from_db_opt ::= */ yytestcase(yyruleno==306);
|
|
|
|
|
#line 537 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy718 = createDefaultDatabaseCondValue(pCxt); }
|
|
|
|
|
#line 6692 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 302: /* db_name_cond_opt ::= db_name NK_DOT */
|
|
|
|
|
#line 538 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy965); }
|
|
|
|
|
#line 6697 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 304: /* like_pattern_opt ::= LIKE NK_STRING */
|
|
|
|
|
#line 541 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 6703 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 305: /* table_name_cond ::= table_name */
|
|
|
|
|
#line 543 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6708 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 307: /* from_db_opt ::= FROM db_name */
|
|
|
|
|
#line 546 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy718 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6714 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 311: /* tag_item ::= TBNAME */
|
|
|
|
|
#line 554 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 6719 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 314: /* tag_item ::= column_name column_alias */
|
|
|
|
|
#line 557 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy965), &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6725 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 315: /* tag_item ::= column_name AS column_alias */
|
|
|
|
|
#line 558 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy965), &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6731 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 316: /* db_kind_opt ::= */
|
|
|
|
|
#line 562 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy101 = SHOW_KIND_ALL; }
|
|
|
|
|
#line 6737 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 317: /* db_kind_opt ::= USER */
|
|
|
|
|
#line 563 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy101 = SHOW_KIND_DATABASES_USER; }
|
|
|
|
|
#line 6742 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 318: /* db_kind_opt ::= SYSTEM */
|
|
|
|
|
#line 564 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy101 = SHOW_KIND_DATABASES_SYSTEM; }
|
|
|
|
|
#line 6747 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 319: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */
|
|
|
|
|
#line 568 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy559, yymsp[-3].minor.yy718, yymsp[-1].minor.yy718, NULL, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6752 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 320: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */
|
|
|
|
|
#line 570 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy559, yymsp[-5].minor.yy718, yymsp[-3].minor.yy718, yymsp[-1].minor.yy552, NULL); }
|
|
|
|
|
#line 6757 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 321: /* cmd ::= DROP INDEX exists_opt full_index_name */
|
|
|
|
|
#line 571 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy559, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6762 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 322: /* full_index_name ::= index_name */
|
|
|
|
|
#line 573 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6767 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 323: /* full_index_name ::= db_name NK_DOT index_name */
|
|
|
|
|
#line 574 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6773 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 324: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
|
|
|
#line 577 "sql.y"
|
|
|
|
|
{ yymsp[-9].minor.yy718 = createIndexOption(pCxt, yymsp[-7].minor.yy552, releaseRawExprNode(pCxt, yymsp[-3].minor.yy718), NULL, yymsp[-1].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6779 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 325: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */
|
|
|
|
|
#line 580 "sql.y"
|
|
|
|
|
{ yymsp[-11].minor.yy718 = createIndexOption(pCxt, yymsp[-9].minor.yy552, releaseRawExprNode(pCxt, yymsp[-5].minor.yy718), releaseRawExprNode(pCxt, yymsp[-3].minor.yy718), yymsp[-1].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6784 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 328: /* func ::= sma_func_name NK_LP expression_list NK_RP */
|
|
|
|
|
#line 587 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createFunctionNode(pCxt, &yymsp[-3].minor.yy965, yymsp[-1].minor.yy552); }
|
|
|
|
|
#line 6789 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 329: /* sma_func_name ::= function_name */
|
|
|
|
|
case 575: /* alias_opt ::= table_alias */ yytestcase(yyruleno==575);
|
|
|
|
|
#line 591 "sql.y"
|
|
|
|
|
{ yylhsminor.yy965 = yymsp[0].minor.yy965; }
|
|
|
|
|
#line 6796 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy965 = yylhsminor.yy965;
|
|
|
|
|
break;
|
|
|
|
|
case 334: /* sma_stream_opt ::= */
|
|
|
|
|
case 379: /* stream_options ::= */ yytestcase(yyruleno==379);
|
|
|
|
|
#line 597 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy718 = createStreamOptions(pCxt); }
|
|
|
|
|
#line 6803 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 335: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */
|
|
|
|
|
#line 598 "sql.y"
|
|
|
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy718)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy718); yylhsminor.yy718 = yymsp[-2].minor.yy718; }
|
|
|
|
|
#line 6808 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 336: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */
|
|
|
|
|
#line 599 "sql.y"
|
|
|
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy718)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy718); yylhsminor.yy718 = yymsp[-2].minor.yy718; }
|
|
|
|
|
#line 6814 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 337: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */
|
|
|
|
|
#line 600 "sql.y"
|
|
|
|
|
{ ((SStreamOptions*)yymsp[-2].minor.yy718)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy718); yylhsminor.yy718 = yymsp[-2].minor.yy718; }
|
|
|
|
|
#line 6820 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 338: /* with_meta ::= AS */
|
|
|
|
|
#line 605 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy134 = 0; }
|
|
|
|
|
#line 6826 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 339: /* with_meta ::= WITH META AS */
|
|
|
|
|
#line 606 "sql.y"
|
|
|
|
|
{ yymsp[-2].minor.yy134 = 1; }
|
|
|
|
|
#line 6831 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 340: /* with_meta ::= ONLY META AS */
|
|
|
|
|
#line 607 "sql.y"
|
|
|
|
|
{ yymsp[-2].minor.yy134 = 2; }
|
|
|
|
|
#line 6836 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 341: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */
|
|
|
|
|
#line 609 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy559, &yymsp[-2].minor.yy965, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6841 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 342: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */
|
|
|
|
|
#line 611 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy559, &yymsp[-3].minor.yy965, &yymsp[0].minor.yy965, yymsp[-2].minor.yy134); }
|
|
|
|
|
#line 6846 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 343: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */
|
|
|
|
|
#line 613 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy559, &yymsp[-4].minor.yy965, yymsp[-1].minor.yy718, yymsp[-3].minor.yy134, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6851 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 344: /* cmd ::= DROP TOPIC exists_opt topic_name */
|
|
|
|
|
#line 615 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy559, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6856 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 345: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */
|
|
|
|
|
#line 616 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy559, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6861 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 346: /* cmd ::= DESC full_table_name */
|
|
|
|
|
case 347: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==347);
|
|
|
|
|
#line 619 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6867 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 348: /* cmd ::= RESET QUERY CACHE */
|
|
|
|
|
#line 623 "sql.y"
|
2022-06-23 10:03:15 +00:00
|
|
|
{ pCxt->pRootNode = createResetQueryCacheStmt(pCxt); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 6872 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 349: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */
|
|
|
|
|
case 350: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==350);
|
|
|
|
|
#line 626 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy559, yymsp[-1].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6878 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 353: /* explain_options ::= */
|
|
|
|
|
#line 634 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy718 = createDefaultExplainOptions(pCxt); }
|
|
|
|
|
#line 6883 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 354: /* explain_options ::= explain_options VERBOSE NK_BOOL */
|
|
|
|
|
#line 635 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setExplainVerbose(pCxt, yymsp[-2].minor.yy718, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 6888 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 355: /* explain_options ::= explain_options RATIO NK_FLOAT */
|
|
|
|
|
#line 636 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setExplainRatio(pCxt, yymsp[-2].minor.yy718, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 6894 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 356: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */
|
|
|
|
|
#line 641 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy559, yymsp[-9].minor.yy559, &yymsp[-6].minor.yy965, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy224, yymsp[-1].minor.yy134, &yymsp[0].minor.yy965, yymsp[-10].minor.yy559); }
|
|
|
|
|
#line 6900 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 357: /* cmd ::= DROP FUNCTION exists_opt function_name */
|
|
|
|
|
#line 642 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy559, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6905 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 362: /* language_opt ::= */
|
|
|
|
|
case 401: /* on_vgroup_id ::= */ yytestcase(yyruleno==401);
|
|
|
|
|
#line 656 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy965 = nil_token; }
|
|
|
|
|
#line 6911 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 363: /* language_opt ::= LANGUAGE NK_STRING */
|
|
|
|
|
case 402: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==402);
|
|
|
|
|
#line 657 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy965 = yymsp[0].minor.yy0; }
|
|
|
|
|
#line 6917 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 366: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */
|
|
|
|
|
#line 666 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy559, yymsp[-2].minor.yy718, &yymsp[-1].minor.yy0, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6922 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 367: /* cmd ::= DROP VIEW exists_opt full_view_name */
|
|
|
|
|
#line 667 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy559, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 6927 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 368: /* full_view_name ::= view_name */
|
|
|
|
|
#line 669 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6932 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 369: /* full_view_name ::= db_name NK_DOT view_name */
|
|
|
|
|
#line 670 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createViewNode(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6938 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 370: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */
|
|
|
|
|
#line 675 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy559, &yymsp[-8].minor.yy965, yymsp[-5].minor.yy718, yymsp[-7].minor.yy718, yymsp[-3].minor.yy552, yymsp[-2].minor.yy718, yymsp[0].minor.yy718, yymsp[-4].minor.yy552); }
|
|
|
|
|
#line 6944 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 371: /* cmd ::= DROP STREAM exists_opt stream_name */
|
|
|
|
|
#line 676 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy559, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6949 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 372: /* cmd ::= PAUSE STREAM exists_opt stream_name */
|
|
|
|
|
#line 677 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy559, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6954 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 373: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */
|
|
|
|
|
#line 678 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy559, yymsp[-1].minor.yy559, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 6959 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 380: /* stream_options ::= stream_options TRIGGER AT_ONCE */
|
|
|
|
|
case 381: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==381);
|
|
|
|
|
#line 692 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setStreamOptions(pCxt, yymsp[-2].minor.yy718, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 6965 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 382: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */
|
|
|
|
|
#line 694 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setStreamOptions(pCxt, yymsp[-3].minor.yy718, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy718)); }
|
|
|
|
|
#line 6971 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 383: /* stream_options ::= stream_options WATERMARK duration_literal */
|
|
|
|
|
#line 695 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setStreamOptions(pCxt, yymsp[-2].minor.yy718, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy718)); }
|
|
|
|
|
#line 6977 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 384: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */
|
|
|
|
|
#line 696 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setStreamOptions(pCxt, yymsp[-3].minor.yy718, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 6983 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 385: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */
|
|
|
|
|
#line 697 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setStreamOptions(pCxt, yymsp[-2].minor.yy718, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 6989 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 386: /* stream_options ::= stream_options DELETE_MARK duration_literal */
|
|
|
|
|
#line 698 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setStreamOptions(pCxt, yymsp[-2].minor.yy718, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy718)); }
|
|
|
|
|
#line 6995 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 387: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */
|
|
|
|
|
#line 699 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setStreamOptions(pCxt, yymsp[-3].minor.yy718, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 7001 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 389: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */
|
|
|
|
|
case 615: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==615);
|
|
|
|
|
case 639: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==639);
|
|
|
|
|
#line 702 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy718); }
|
|
|
|
|
#line 7009 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 392: /* cmd ::= KILL CONNECTION NK_INTEGER */
|
|
|
|
|
#line 710 "sql.y"
|
2022-04-01 08:31:24 +00:00
|
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7014 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 393: /* cmd ::= KILL QUERY NK_STRING */
|
|
|
|
|
#line 711 "sql.y"
|
2022-06-15 05:49:29 +00:00
|
|
|
{ pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7019 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 394: /* cmd ::= KILL TRANSACTION NK_INTEGER */
|
|
|
|
|
#line 712 "sql.y"
|
2022-05-07 09:37:17 +00:00
|
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7024 "sql.c"
|
2022-05-07 09:37:17 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 395: /* cmd ::= KILL COMPACT NK_INTEGER */
|
|
|
|
|
#line 713 "sql.y"
|
2023-11-16 03:41:02 +00:00
|
|
|
{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7029 "sql.c"
|
2023-11-16 03:41:02 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 396: /* cmd ::= BALANCE VGROUP */
|
|
|
|
|
#line 716 "sql.y"
|
2023-03-22 01:53:56 +00:00
|
|
|
{ pCxt->pRootNode = createBalanceVgroupStmt(pCxt); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7034 "sql.c"
|
2023-03-22 01:53:56 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 397: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */
|
|
|
|
|
#line 717 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 7039 "sql.c"
|
2022-06-07 03:53:32 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 398: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */
|
|
|
|
|
#line 718 "sql.y"
|
2022-04-01 08:31:24 +00:00
|
|
|
{ pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7044 "sql.c"
|
2022-04-01 08:31:24 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 399: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */
|
|
|
|
|
#line 719 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy552); }
|
|
|
|
|
#line 7049 "sql.c"
|
2022-06-10 06:28:58 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 400: /* cmd ::= SPLIT VGROUP NK_INTEGER */
|
|
|
|
|
#line 720 "sql.y"
|
2022-06-10 06:28:58 +00:00
|
|
|
{ pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); }
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7054 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 403: /* dnode_list ::= DNODE NK_INTEGER */
|
|
|
|
|
#line 729 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy552 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7059 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 405: /* cmd ::= DELETE FROM full_table_name where_clause_opt */
|
|
|
|
|
#line 736 "sql.y"
|
|
|
|
|
{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7064 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 408: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */
|
|
|
|
|
#line 745 "sql.y"
|
|
|
|
|
{ yymsp[-6].minor.yy718 = createInsertStmt(pCxt, yymsp[-4].minor.yy718, yymsp[-2].minor.yy552, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7069 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 409: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */
|
|
|
|
|
#line 746 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = createInsertStmt(pCxt, yymsp[-1].minor.yy718, NULL, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7074 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 410: /* tags_literal ::= NK_INTEGER */
|
|
|
|
|
case 416: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==416);
|
|
|
|
|
case 419: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==419);
|
|
|
|
|
#line 749 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 7081 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 411: /* tags_literal ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
case 412: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==412);
|
|
|
|
|
case 417: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==417);
|
|
|
|
|
case 418: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==418);
|
|
|
|
|
case 420: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==420);
|
|
|
|
|
case 421: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==421);
|
|
|
|
|
#line 750 "sql.y"
|
2024-03-10 14:14:57 +00:00
|
|
|
{
|
|
|
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
|
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
2024-03-15 01:14:54 +00:00
|
|
|
yylhsminor.yy718 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL);
|
2024-03-10 14:14:57 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7096 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 413: /* tags_literal ::= NK_FLOAT */
|
|
|
|
|
#line 760 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 7102 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 414: /* tags_literal ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
case 415: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==415);
|
|
|
|
|
#line 761 "sql.y"
|
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-03-15 01:14:54 +00:00
|
|
|
yylhsminor.yy718 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL);
|
2022-03-22 06:09:15 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7113 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 422: /* tags_literal ::= NK_STRING */
|
|
|
|
|
#line 795 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 7119 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 423: /* tags_literal ::= NK_BOOL */
|
|
|
|
|
#line 796 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 7125 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 424: /* tags_literal ::= NULL */
|
|
|
|
|
#line 797 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 7131 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 425: /* tags_literal ::= literal_func */
|
|
|
|
|
#line 799 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7137 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 426: /* tags_literal ::= literal_func NK_PLUS duration_literal */
|
|
|
|
|
case 427: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==427);
|
|
|
|
|
#line 800 "sql.y"
|
2024-03-10 14:14:57 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
2024-03-10 14:14:57 +00:00
|
|
|
l.n = (r.z + r.n) - l.z;
|
2024-03-15 01:14:54 +00:00
|
|
|
yylhsminor.yy718 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy718, yymsp[0].minor.yy718);
|
2024-03-10 14:14:57 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7149 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 430: /* literal ::= NK_INTEGER */
|
|
|
|
|
#line 819 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7155 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 431: /* literal ::= NK_FLOAT */
|
|
|
|
|
#line 820 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7161 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 432: /* literal ::= NK_STRING */
|
|
|
|
|
#line 821 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7167 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 433: /* literal ::= NK_BOOL */
|
|
|
|
|
#line 822 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7173 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 434: /* literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
#line 823 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7179 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 435: /* literal ::= duration_literal */
|
|
|
|
|
case 445: /* signed_literal ::= signed */ yytestcase(yyruleno==445);
|
|
|
|
|
case 468: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==468);
|
|
|
|
|
case 469: /* expression ::= literal */ yytestcase(yyruleno==469);
|
|
|
|
|
case 471: /* expression ::= column_reference */ yytestcase(yyruleno==471);
|
|
|
|
|
case 472: /* expression ::= function_expression */ yytestcase(yyruleno==472);
|
|
|
|
|
case 473: /* expression ::= case_when_expression */ yytestcase(yyruleno==473);
|
|
|
|
|
case 506: /* function_expression ::= literal_func */ yytestcase(yyruleno==506);
|
|
|
|
|
case 556: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==556);
|
|
|
|
|
case 560: /* boolean_primary ::= predicate */ yytestcase(yyruleno==560);
|
|
|
|
|
case 562: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==562);
|
|
|
|
|
case 563: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==563);
|
|
|
|
|
case 566: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==566);
|
|
|
|
|
case 568: /* table_reference ::= table_primary */ yytestcase(yyruleno==568);
|
|
|
|
|
case 569: /* table_reference ::= joined_table */ yytestcase(yyruleno==569);
|
|
|
|
|
case 573: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==573);
|
|
|
|
|
case 641: /* query_simple ::= query_specification */ yytestcase(yyruleno==641);
|
|
|
|
|
case 642: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==642);
|
|
|
|
|
case 645: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==645);
|
|
|
|
|
case 647: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==647);
|
|
|
|
|
#line 824 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = yymsp[0].minor.yy718; }
|
|
|
|
|
#line 7204 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 436: /* literal ::= NULL */
|
|
|
|
|
#line 825 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7210 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 437: /* literal ::= NK_QUESTION */
|
|
|
|
|
#line 826 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7216 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 438: /* duration_literal ::= NK_VARIABLE */
|
|
|
|
|
case 616: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==616);
|
|
|
|
|
case 617: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==617);
|
|
|
|
|
case 618: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==618);
|
|
|
|
|
#line 828 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7225 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 439: /* signed ::= NK_INTEGER */
|
|
|
|
|
#line 830 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7231 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 440: /* signed ::= NK_PLUS NK_INTEGER */
|
|
|
|
|
#line 831 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7237 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 441: /* signed ::= NK_MINUS NK_INTEGER */
|
|
|
|
|
#line 832 "sql.y"
|
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-03-15 01:14:54 +00:00
|
|
|
yylhsminor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t);
|
2022-03-22 06:09:15 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7246 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 442: /* signed ::= NK_FLOAT */
|
|
|
|
|
#line 837 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7252 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 443: /* signed ::= NK_PLUS NK_FLOAT */
|
|
|
|
|
#line 838 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7258 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 444: /* signed ::= NK_MINUS NK_FLOAT */
|
|
|
|
|
#line 839 "sql.y"
|
2022-06-22 08:35:14 +00:00
|
|
|
{
|
2024-03-10 14:14:57 +00:00
|
|
|
SToken t = yymsp[-1].minor.yy0;
|
|
|
|
|
t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z;
|
2024-03-15 01:14:54 +00:00
|
|
|
yylhsminor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t);
|
2024-03-10 14:14:57 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7267 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 446: /* signed_literal ::= NK_STRING */
|
|
|
|
|
#line 846 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7273 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 447: /* signed_literal ::= NK_BOOL */
|
|
|
|
|
#line 847 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7279 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 448: /* signed_literal ::= TIMESTAMP NK_STRING */
|
|
|
|
|
#line 848 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7285 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 449: /* signed_literal ::= duration_literal */
|
|
|
|
|
case 451: /* signed_literal ::= literal_func */ yytestcase(yyruleno==451);
|
|
|
|
|
case 527: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==527);
|
|
|
|
|
case 593: /* select_item ::= common_expression */ yytestcase(yyruleno==593);
|
|
|
|
|
case 603: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==603);
|
|
|
|
|
case 646: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==646);
|
|
|
|
|
case 648: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==648);
|
|
|
|
|
case 661: /* search_condition ::= common_expression */ yytestcase(yyruleno==661);
|
|
|
|
|
#line 849 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = releaseRawExprNode(pCxt, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7297 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 450: /* signed_literal ::= NULL */
|
|
|
|
|
#line 850 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7303 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 452: /* signed_literal ::= NK_QUESTION */
|
|
|
|
|
#line 852 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7309 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 470: /* expression ::= pseudo_column */
|
|
|
|
|
#line 914 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = yymsp[0].minor.yy718; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy718, true); }
|
|
|
|
|
#line 7315 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 474: /* expression ::= NK_LP expression NK_RP */
|
|
|
|
|
case 561: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==561);
|
|
|
|
|
case 660: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==660);
|
|
|
|
|
#line 918 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy718)); }
|
|
|
|
|
#line 7323 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 475: /* expression ::= NK_PLUS expr_or_subquery */
|
|
|
|
|
#line 919 "sql.y"
|
2024-03-10 14:14:57 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy718));
|
2022-06-22 08:35:14 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7332 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
2022-06-22 08:35:14 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 476: /* expression ::= NK_MINUS expr_or_subquery */
|
|
|
|
|
#line 923 "sql.y"
|
2022-06-22 08:35:14 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy718), NULL));
|
2022-06-22 08:35:14 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7341 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
2022-04-13 04:38:57 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 477: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */
|
|
|
|
|
#line 927 "sql.y"
|
2022-04-15 10:30:01 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-04-15 10:30:01 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7351 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-03-22 06:09:15 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 478: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */
|
|
|
|
|
#line 932 "sql.y"
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7361 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 479: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */
|
|
|
|
|
#line 937 "sql.y"
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7371 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 480: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */
|
|
|
|
|
#line 942 "sql.y"
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7381 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 481: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */
|
|
|
|
|
#line 947 "sql.y"
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7391 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 482: /* expression ::= column_reference NK_ARROW NK_STRING */
|
|
|
|
|
#line 952 "sql.y"
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7400 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 483: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */
|
|
|
|
|
#line 956 "sql.y"
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7410 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 484: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */
|
|
|
|
|
#line 961 "sql.y"
|
2022-02-08 03:56:41 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-08 03:56:41 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7420 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 487: /* column_reference ::= column_name */
|
|
|
|
|
#line 972 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy965, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy965)); }
|
|
|
|
|
#line 7426 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 488: /* column_reference ::= table_name NK_DOT column_name */
|
|
|
|
|
#line 973 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy965, createColumnNode(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy965)); }
|
|
|
|
|
#line 7432 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 489: /* column_reference ::= NK_ALIAS */
|
|
|
|
|
#line 974 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7438 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 490: /* column_reference ::= table_name NK_DOT NK_ALIAS */
|
|
|
|
|
#line 975 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7444 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 491: /* pseudo_column ::= ROWTS */
|
|
|
|
|
case 492: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==492);
|
|
|
|
|
case 494: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==494);
|
|
|
|
|
case 495: /* pseudo_column ::= QEND */ yytestcase(yyruleno==495);
|
|
|
|
|
case 496: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==496);
|
|
|
|
|
case 497: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==497);
|
|
|
|
|
case 498: /* pseudo_column ::= WEND */ yytestcase(yyruleno==498);
|
|
|
|
|
case 499: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==499);
|
|
|
|
|
case 500: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==500);
|
|
|
|
|
case 501: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==501);
|
|
|
|
|
case 502: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==502);
|
|
|
|
|
case 508: /* literal_func ::= NOW */ yytestcase(yyruleno==508);
|
|
|
|
|
case 509: /* literal_func ::= TODAY */ yytestcase(yyruleno==509);
|
|
|
|
|
#line 977 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); }
|
|
|
|
|
#line 7462 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 493: /* pseudo_column ::= table_name NK_DOT TBNAME */
|
|
|
|
|
#line 979 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy965)))); }
|
|
|
|
|
#line 7468 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 503: /* function_expression ::= function_name NK_LP expression_list NK_RP */
|
|
|
|
|
case 504: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==504);
|
|
|
|
|
#line 990 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy965, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy965, yymsp[-1].minor.yy552)); }
|
|
|
|
|
#line 7475 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 505: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */
|
|
|
|
|
#line 993 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy718), yymsp[-1].minor.yy224)); }
|
|
|
|
|
#line 7481 "sql.c"
|
|
|
|
|
yymsp[-5].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 507: /* literal_func ::= noarg_func NK_LP NK_RP */
|
|
|
|
|
#line 996 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy965, NULL)); }
|
|
|
|
|
#line 7487 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 523: /* star_func_para_list ::= NK_STAR */
|
|
|
|
|
#line 1021 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); }
|
|
|
|
|
#line 7493 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy552 = yylhsminor.yy552;
|
|
|
|
|
break;
|
|
|
|
|
case 528: /* star_func_para ::= table_name NK_DOT NK_STAR */
|
|
|
|
|
case 596: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==596);
|
|
|
|
|
#line 1030 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createColumnNode(pCxt, &yymsp[-2].minor.yy965, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7500 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 529: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */
|
|
|
|
|
#line 1033 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy552, yymsp[-1].minor.yy718)); }
|
|
|
|
|
#line 7506 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 530: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */
|
|
|
|
|
#line 1035 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy718), yymsp[-2].minor.yy552, yymsp[-1].minor.yy718)); }
|
|
|
|
|
#line 7512 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 533: /* when_then_expr ::= WHEN common_expression THEN common_expression */
|
|
|
|
|
#line 1042 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)); }
|
|
|
|
|
#line 7518 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 535: /* case_when_else_opt ::= ELSE common_expression */
|
|
|
|
|
#line 1045 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy718 = releaseRawExprNode(pCxt, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7523 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 536: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */
|
|
|
|
|
case 541: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==541);
|
|
|
|
|
#line 1048 "sql.y"
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy810, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7533 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 537: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
#line 1055 "sql.y"
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy718), releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7543 "sql.c"
|
|
|
|
|
yymsp[-4].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 538: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */
|
|
|
|
|
#line 1061 "sql.y"
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy718), releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7553 "sql.c"
|
|
|
|
|
yymsp[-5].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 539: /* predicate ::= expr_or_subquery IS NULL */
|
|
|
|
|
#line 1066 "sql.y"
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), NULL));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7562 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 16:28:13 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 540: /* predicate ::= expr_or_subquery IS NOT NULL */
|
|
|
|
|
#line 1070 "sql.y"
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy718), NULL));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7571 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 542: /* compare_op ::= NK_LT */
|
|
|
|
|
#line 1082 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_LOWER_THAN; }
|
|
|
|
|
#line 7577 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 543: /* compare_op ::= NK_GT */
|
|
|
|
|
#line 1083 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_GREATER_THAN; }
|
|
|
|
|
#line 7582 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 544: /* compare_op ::= NK_LE */
|
|
|
|
|
#line 1084 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_LOWER_EQUAL; }
|
|
|
|
|
#line 7587 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 545: /* compare_op ::= NK_GE */
|
|
|
|
|
#line 1085 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_GREATER_EQUAL; }
|
|
|
|
|
#line 7592 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 546: /* compare_op ::= NK_NE */
|
|
|
|
|
#line 1086 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_NOT_EQUAL; }
|
|
|
|
|
#line 7597 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 547: /* compare_op ::= NK_EQ */
|
|
|
|
|
#line 1087 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_EQUAL; }
|
|
|
|
|
#line 7602 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 548: /* compare_op ::= LIKE */
|
|
|
|
|
#line 1088 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_LIKE; }
|
|
|
|
|
#line 7607 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 549: /* compare_op ::= NOT LIKE */
|
|
|
|
|
#line 1089 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy810 = OP_TYPE_NOT_LIKE; }
|
|
|
|
|
#line 7612 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 550: /* compare_op ::= MATCH */
|
|
|
|
|
#line 1090 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_MATCH; }
|
|
|
|
|
#line 7617 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 551: /* compare_op ::= NMATCH */
|
|
|
|
|
#line 1091 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_NMATCH; }
|
|
|
|
|
#line 7622 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 552: /* compare_op ::= CONTAINS */
|
|
|
|
|
#line 1092 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_JSON_CONTAINS; }
|
|
|
|
|
#line 7627 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 553: /* in_op ::= IN */
|
|
|
|
|
#line 1096 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy810 = OP_TYPE_IN; }
|
|
|
|
|
#line 7632 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 554: /* in_op ::= NOT IN */
|
|
|
|
|
#line 1097 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy810 = OP_TYPE_NOT_IN; }
|
|
|
|
|
#line 7637 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 555: /* in_predicate_value ::= NK_LP literal_list NK_RP */
|
|
|
|
|
#line 1099 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy552)); }
|
|
|
|
|
#line 7642 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 557: /* boolean_value_expression ::= NOT boolean_primary */
|
|
|
|
|
#line 1103 "sql.y"
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy718), NULL));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7651 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
2022-01-27 06:32:40 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 558: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */
|
|
|
|
|
#line 1108 "sql.y"
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7661 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
2022-01-23 12:34:16 +00:00
|
|
|
break;
|
2024-03-15 01:14:54 +00:00
|
|
|
case 559: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */
|
|
|
|
|
#line 1114 "sql.y"
|
2022-02-11 00:11:29 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy718);
|
|
|
|
|
SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), releaseRawExprNode(pCxt, yymsp[0].minor.yy718)));
|
2022-02-11 00:11:29 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7671 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 567: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */
|
|
|
|
|
#line 1132 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy718, yymsp[0].minor.yy718, NULL); }
|
|
|
|
|
#line 7677 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 570: /* table_primary ::= table_name alias_opt */
|
|
|
|
|
#line 1138 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy965, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 7683 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 571: /* table_primary ::= db_name NK_DOT table_name alias_opt */
|
|
|
|
|
#line 1139 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRealTableNode(pCxt, &yymsp[-3].minor.yy965, &yymsp[-1].minor.yy965, &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 7689 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 572: /* table_primary ::= subquery alias_opt */
|
|
|
|
|
#line 1140 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy718), &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 7695 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 574: /* alias_opt ::= */
|
|
|
|
|
#line 1145 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy965 = nil_token; }
|
|
|
|
|
#line 7701 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 576: /* alias_opt ::= AS table_alias */
|
|
|
|
|
#line 1147 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy965 = yymsp[0].minor.yy965; }
|
|
|
|
|
#line 7706 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 577: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */
|
|
|
|
|
case 578: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==578);
|
|
|
|
|
#line 1149 "sql.y"
|
|
|
|
|
{ yymsp[-2].minor.yy718 = yymsp[-1].minor.yy718; }
|
|
|
|
|
#line 7712 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 579: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */
|
|
|
|
|
#line 1154 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createJoinTableNode(pCxt, yymsp[-4].minor.yy992, yymsp[-5].minor.yy718, yymsp[-2].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7717 "sql.c"
|
|
|
|
|
yymsp[-5].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 580: /* join_type ::= */
|
|
|
|
|
#line 1158 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy992 = JOIN_TYPE_INNER; }
|
|
|
|
|
#line 7723 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 581: /* join_type ::= INNER */
|
|
|
|
|
#line 1159 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy992 = JOIN_TYPE_INNER; }
|
|
|
|
|
#line 7728 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 582: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */
|
|
|
|
|
#line 1165 "sql.y"
|
2023-08-15 07:16:57 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
yymsp[-13].minor.yy718 = createSelectStmt(pCxt, yymsp[-11].minor.yy559, yymsp[-9].minor.yy552, yymsp[-8].minor.yy718, yymsp[-12].minor.yy552);
|
|
|
|
|
yymsp[-13].minor.yy718 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy718, yymsp[-10].minor.yy559);
|
|
|
|
|
yymsp[-13].minor.yy718 = addWhereClause(pCxt, yymsp[-13].minor.yy718, yymsp[-7].minor.yy718);
|
|
|
|
|
yymsp[-13].minor.yy718 = addPartitionByClause(pCxt, yymsp[-13].minor.yy718, yymsp[-6].minor.yy552);
|
|
|
|
|
yymsp[-13].minor.yy718 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy718, yymsp[-2].minor.yy718);
|
|
|
|
|
yymsp[-13].minor.yy718 = addGroupByClause(pCxt, yymsp[-13].minor.yy718, yymsp[-1].minor.yy552);
|
|
|
|
|
yymsp[-13].minor.yy718 = addHavingClause(pCxt, yymsp[-13].minor.yy718, yymsp[0].minor.yy718);
|
|
|
|
|
yymsp[-13].minor.yy718 = addRangeClause(pCxt, yymsp[-13].minor.yy718, yymsp[-5].minor.yy718);
|
|
|
|
|
yymsp[-13].minor.yy718 = addEveryClause(pCxt, yymsp[-13].minor.yy718, yymsp[-4].minor.yy718);
|
|
|
|
|
yymsp[-13].minor.yy718 = addFillClause(pCxt, yymsp[-13].minor.yy718, yymsp[-3].minor.yy718);
|
2022-01-27 06:32:40 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7744 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 583: /* hint_list ::= */
|
|
|
|
|
#line 1180 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy552 = createHintNodeList(pCxt, NULL); }
|
|
|
|
|
#line 7749 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 584: /* hint_list ::= NK_HINT */
|
|
|
|
|
#line 1181 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7754 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy552 = yylhsminor.yy552;
|
|
|
|
|
break;
|
|
|
|
|
case 589: /* set_quantifier_opt ::= ALL */
|
|
|
|
|
#line 1192 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy559 = false; }
|
|
|
|
|
#line 7760 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 592: /* select_item ::= NK_STAR */
|
|
|
|
|
#line 1199 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7765 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 594: /* select_item ::= common_expression column_alias */
|
|
|
|
|
case 604: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==604);
|
|
|
|
|
#line 1201 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy718), &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 7772 "sql.c"
|
|
|
|
|
yymsp[-1].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 595: /* select_item ::= common_expression AS column_alias */
|
|
|
|
|
case 605: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==605);
|
|
|
|
|
#line 1202 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), &yymsp[0].minor.yy965); }
|
|
|
|
|
#line 7779 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 600: /* partition_by_clause_opt ::= PARTITION BY partition_list */
|
|
|
|
|
case 630: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==630);
|
|
|
|
|
case 650: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==650);
|
|
|
|
|
#line 1211 "sql.y"
|
|
|
|
|
{ yymsp[-2].minor.yy552 = yymsp[0].minor.yy552; }
|
|
|
|
|
#line 7787 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 607: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */
|
|
|
|
|
#line 1224 "sql.y"
|
|
|
|
|
{ yymsp[-5].minor.yy718 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy718), releaseRawExprNode(pCxt, yymsp[-1].minor.yy718)); }
|
|
|
|
|
#line 7792 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 608: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
#line 1225 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy718)); }
|
|
|
|
|
#line 7797 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 609: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
#line 1227 "sql.y"
|
|
|
|
|
{ yymsp[-5].minor.yy718 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy718), NULL, yymsp[-1].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7802 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 610: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */
|
|
|
|
|
#line 1231 "sql.y"
|
|
|
|
|
{ yymsp[-7].minor.yy718 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy718), releaseRawExprNode(pCxt, yymsp[-3].minor.yy718), yymsp[-1].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7807 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 611: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */
|
|
|
|
|
#line 1233 "sql.y"
|
|
|
|
|
{ yymsp[-6].minor.yy718 = createEventWindowNode(pCxt, yymsp[-3].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7812 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 612: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */
|
|
|
|
|
#line 1235 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); }
|
|
|
|
|
#line 7817 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 613: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */
|
|
|
|
|
#line 1237 "sql.y"
|
|
|
|
|
{ yymsp[-5].minor.yy718 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); }
|
|
|
|
|
#line 7822 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 620: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */
|
|
|
|
|
#line 1247 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = createFillNode(pCxt, yymsp[-1].minor.yy206, NULL); }
|
|
|
|
|
#line 7827 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 621: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */
|
|
|
|
|
#line 1248 "sql.y"
|
|
|
|
|
{ yymsp[-5].minor.yy718 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy552)); }
|
|
|
|
|
#line 7832 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 622: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */
|
|
|
|
|
#line 1249 "sql.y"
|
|
|
|
|
{ yymsp[-5].minor.yy718 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy552)); }
|
|
|
|
|
#line 7837 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 623: /* fill_mode ::= NONE */
|
|
|
|
|
#line 1253 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy206 = FILL_MODE_NONE; }
|
|
|
|
|
#line 7842 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 624: /* fill_mode ::= PREV */
|
|
|
|
|
#line 1254 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy206 = FILL_MODE_PREV; }
|
|
|
|
|
#line 7847 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 625: /* fill_mode ::= NULL */
|
|
|
|
|
#line 1255 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy206 = FILL_MODE_NULL; }
|
|
|
|
|
#line 7852 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 626: /* fill_mode ::= NULL_F */
|
|
|
|
|
#line 1256 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy206 = FILL_MODE_NULL_F; }
|
|
|
|
|
#line 7857 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 627: /* fill_mode ::= LINEAR */
|
|
|
|
|
#line 1257 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy206 = FILL_MODE_LINEAR; }
|
|
|
|
|
#line 7862 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 628: /* fill_mode ::= NEXT */
|
|
|
|
|
#line 1258 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy206 = FILL_MODE_NEXT; }
|
|
|
|
|
#line 7867 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 631: /* group_by_list ::= expr_or_subquery */
|
|
|
|
|
#line 1267 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy718))); }
|
|
|
|
|
#line 7872 "sql.c"
|
|
|
|
|
yymsp[0].minor.yy552 = yylhsminor.yy552;
|
|
|
|
|
break;
|
|
|
|
|
case 632: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */
|
|
|
|
|
#line 1268 "sql.y"
|
|
|
|
|
{ yylhsminor.yy552 = addNodeToList(pCxt, yymsp[-2].minor.yy552, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy718))); }
|
|
|
|
|
#line 7878 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy552 = yylhsminor.yy552;
|
|
|
|
|
break;
|
|
|
|
|
case 636: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */
|
|
|
|
|
#line 1275 "sql.y"
|
|
|
|
|
{ yymsp[-5].minor.yy718 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy718), releaseRawExprNode(pCxt, yymsp[-1].minor.yy718)); }
|
|
|
|
|
#line 7884 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 637: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */
|
|
|
|
|
#line 1277 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy718)); }
|
|
|
|
|
#line 7889 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 640: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */
|
|
|
|
|
#line 1284 "sql.y"
|
2022-09-16 07:53:27 +00:00
|
|
|
{
|
2024-03-15 01:14:54 +00:00
|
|
|
yylhsminor.yy718 = addOrderByClause(pCxt, yymsp[-3].minor.yy718, yymsp[-2].minor.yy552);
|
|
|
|
|
yylhsminor.yy718 = addSlimitClause(pCxt, yylhsminor.yy718, yymsp[-1].minor.yy718);
|
|
|
|
|
yylhsminor.yy718 = addLimitClause(pCxt, yylhsminor.yy718, yymsp[0].minor.yy718);
|
2022-01-27 16:28:13 +00:00
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 7898 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 643: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */
|
|
|
|
|
#line 1294 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7904 "sql.c"
|
|
|
|
|
yymsp[-3].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 644: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */
|
|
|
|
|
#line 1296 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy718, yymsp[0].minor.yy718); }
|
|
|
|
|
#line 7910 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 652: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */
|
|
|
|
|
case 656: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==656);
|
|
|
|
|
#line 1310 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy718 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); }
|
|
|
|
|
#line 7917 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 653: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */
|
|
|
|
|
case 657: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==657);
|
|
|
|
|
#line 1311 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); }
|
|
|
|
|
#line 7923 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 654: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */
|
|
|
|
|
case 658: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==658);
|
|
|
|
|
#line 1312 "sql.y"
|
|
|
|
|
{ yymsp[-3].minor.yy718 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); }
|
|
|
|
|
#line 7929 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 659: /* subquery ::= NK_LP query_expression NK_RP */
|
|
|
|
|
#line 1320 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy718); }
|
|
|
|
|
#line 7934 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 664: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */
|
|
|
|
|
#line 1334 "sql.y"
|
|
|
|
|
{ yylhsminor.yy718 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy718), yymsp[-1].minor.yy576, yymsp[0].minor.yy345); }
|
|
|
|
|
#line 7940 "sql.c"
|
|
|
|
|
yymsp[-2].minor.yy718 = yylhsminor.yy718;
|
|
|
|
|
break;
|
|
|
|
|
case 665: /* ordering_specification_opt ::= */
|
|
|
|
|
#line 1338 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy576 = ORDER_ASC; }
|
|
|
|
|
#line 7946 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 666: /* ordering_specification_opt ::= ASC */
|
|
|
|
|
#line 1339 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy576 = ORDER_ASC; }
|
|
|
|
|
#line 7951 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 667: /* ordering_specification_opt ::= DESC */
|
|
|
|
|
#line 1340 "sql.y"
|
|
|
|
|
{ yymsp[0].minor.yy576 = ORDER_DESC; }
|
|
|
|
|
#line 7956 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 668: /* null_ordering_opt ::= */
|
|
|
|
|
#line 1344 "sql.y"
|
|
|
|
|
{ yymsp[1].minor.yy345 = NULL_ORDER_DEFAULT; }
|
|
|
|
|
#line 7961 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 669: /* null_ordering_opt ::= NULLS FIRST */
|
|
|
|
|
#line 1345 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy345 = NULL_ORDER_FIRST; }
|
|
|
|
|
#line 7966 "sql.c"
|
|
|
|
|
break;
|
|
|
|
|
case 670: /* null_ordering_opt ::= NULLS LAST */
|
|
|
|
|
#line 1346 "sql.y"
|
|
|
|
|
{ yymsp[-1].minor.yy345 = NULL_ORDER_LAST; }
|
|
|
|
|
#line 7971 "sql.c"
|
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 ****************************************/
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 29 "sql.y"
|
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
|
|
|
}
|
2024-03-15 01:14:54 +00:00
|
|
|
#line 8044 "sql.c"
|
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
|
|
|
|
|
|
2024-03-15 01:14:54 +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 ){
|
2024-03-15 01:14:54 +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{
|
2024-03-15 01:14:54 +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);
|
|
|
|
|
}
|
2024-03-15 01:14:54 +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
|
|
|
|
|
}
|
2024-03-15 01:14:54 +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
|
|
|
}
|