/* This file is automatically generated by Lemon from input grammar ** source file "sql.y". */ /* ** 2000-05-29 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Driver template for the LEMON parser generator. ** ** The "lemon" program processes an LALR(1) input grammar file, then uses ** this template to construct a parser. The "lemon" program inserts text ** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the ** interstitial "-" characters) contained in this template is changed into ** the value of the %name directive from the grammar. Otherwise, the content ** of this template is copied straight through into the generate parser ** source file. ** ** The following is the concatenation of all %include directives from the ** input grammar file: */ /************ Begin %include sections from the grammar ************************/ #line 11 "sql.y" #include #include #include #include #include #define ALLOW_FORBID_FUNC #include "functionMgt.h" #include "nodes.h" #include "parToken.h" #include "ttokendef.h" #include "parAst.h" #define YYSTACKDEPTH 0 #line 46 "sql.c" /**************** End of %include directives **********************************/ /* These constants specify the various numeric values for terminal symbols. ***************** Begin token definitions *************************************/ #ifndef TK_OR #define TK_OR 1 #define TK_AND 2 #define TK_UNION 3 #define TK_ALL 4 #define TK_MINUS 5 #define TK_EXCEPT 6 #define TK_INTERSECT 7 #define TK_NK_BITAND 8 #define TK_NK_BITOR 9 #define TK_NK_LSHIFT 10 #define TK_NK_RSHIFT 11 #define TK_NK_PLUS 12 #define TK_NK_MINUS 13 #define TK_NK_STAR 14 #define TK_NK_SLASH 15 #define TK_NK_REM 16 #define TK_NK_CONCAT 17 #define TK_CREATE 18 #define TK_ACCOUNT 19 #define TK_NK_ID 20 #define TK_PASS 21 #define TK_NK_STRING 22 #define TK_ALTER 23 #define TK_PPS 24 #define TK_TSERIES 25 #define TK_STORAGE 26 #define TK_STREAMS 27 #define TK_QTIME 28 #define TK_DBS 29 #define TK_USERS 30 #define TK_CONNS 31 #define TK_STATE 32 #define TK_NK_COMMA 33 #define TK_HOST 34 #define TK_IS_IMPORT 35 #define TK_NK_INTEGER 36 #define TK_CREATEDB 37 #define TK_USER 38 #define TK_ENABLE 39 #define TK_SYSINFO 40 #define TK_ADD 41 #define TK_DROP 42 #define TK_GRANT 43 #define TK_ON 44 #define TK_TO 45 #define TK_REVOKE 46 #define TK_FROM 47 #define TK_SUBSCRIBE 48 #define TK_READ 49 #define TK_WRITE 50 #define TK_NK_DOT 51 #define TK_WITH 52 #define TK_ENCRYPT_KEY 53 #define TK_DNODE 54 #define TK_PORT 55 #define TK_DNODES 56 #define TK_RESTORE 57 #define TK_NK_IPTOKEN 58 #define TK_FORCE 59 #define TK_UNSAFE 60 #define TK_CLUSTER 61 #define TK_LOCAL 62 #define TK_QNODE 63 #define TK_BNODE 64 #define TK_SNODE 65 #define TK_MNODE 66 #define TK_VNODE 67 #define TK_DATABASE 68 #define TK_USE 69 #define TK_FLUSH 70 #define TK_TRIM 71 #define TK_S3MIGRATE 72 #define TK_COMPACT 73 #define TK_IF 74 #define TK_NOT 75 #define TK_EXISTS 76 #define TK_BUFFER 77 #define TK_CACHEMODEL 78 #define TK_CACHESIZE 79 #define TK_COMP 80 #define TK_DURATION 81 #define TK_NK_VARIABLE 82 #define TK_MAXROWS 83 #define TK_MINROWS 84 #define TK_KEEP 85 #define TK_PAGES 86 #define TK_PAGESIZE 87 #define TK_TSDB_PAGESIZE 88 #define TK_PRECISION 89 #define TK_REPLICA 90 #define TK_VGROUPS 91 #define TK_SINGLE_STABLE 92 #define TK_RETENTIONS 93 #define TK_SCHEMALESS 94 #define TK_WAL_LEVEL 95 #define TK_WAL_FSYNC_PERIOD 96 #define TK_WAL_RETENTION_PERIOD 97 #define TK_WAL_RETENTION_SIZE 98 #define TK_WAL_ROLL_PERIOD 99 #define TK_WAL_SEGMENT_SIZE 100 #define TK_STT_TRIGGER 101 #define TK_TABLE_PREFIX 102 #define TK_TABLE_SUFFIX 103 #define TK_S3_CHUNKSIZE 104 #define TK_S3_KEEPLOCAL 105 #define TK_S3_COMPACT 106 #define TK_KEEP_TIME_OFFSET 107 #define TK_ENCRYPT_ALGORITHM 108 #define TK_NK_COLON 109 #define TK_BWLIMIT 110 #define TK_START 111 #define TK_TIMESTAMP 112 #define TK_END 113 #define TK_TABLE 114 #define TK_NK_LP 115 #define TK_NK_RP 116 #define TK_USING 117 #define TK_FILE 118 #define TK_STABLE 119 #define TK_COLUMN 120 #define TK_MODIFY 121 #define TK_RENAME 122 #define TK_TAG 123 #define TK_SET 124 #define TK_NK_EQ 125 #define TK_TAGS 126 #define TK_BOOL 127 #define TK_TINYINT 128 #define TK_SMALLINT 129 #define TK_INT 130 #define TK_INTEGER 131 #define TK_BIGINT 132 #define TK_FLOAT 133 #define TK_DOUBLE 134 #define TK_BINARY 135 #define TK_NCHAR 136 #define TK_UNSIGNED 137 #define TK_JSON 138 #define TK_VARCHAR 139 #define TK_MEDIUMBLOB 140 #define TK_BLOB 141 #define TK_VARBINARY 142 #define TK_GEOMETRY 143 #define TK_DECIMAL 144 #define TK_COMMENT 145 #define TK_MAX_DELAY 146 #define TK_WATERMARK 147 #define TK_ROLLUP 148 #define TK_TTL 149 #define TK_SMA 150 #define TK_DELETE_MARK 151 #define TK_FIRST 152 #define TK_LAST 153 #define TK_SHOW 154 #define TK_FULL 155 #define TK_PRIVILEGES 156 #define TK_DATABASES 157 #define TK_TABLES 158 #define TK_STABLES 159 #define TK_MNODES 160 #define TK_QNODES 161 #define TK_ARBGROUPS 162 #define TK_FUNCTIONS 163 #define TK_INDEXES 164 #define TK_ACCOUNTS 165 #define TK_APPS 166 #define TK_CONNECTIONS 167 #define TK_LICENCES 168 #define TK_GRANTS 169 #define TK_LOGS 170 #define TK_MACHINES 171 #define TK_ENCRYPTIONS 172 #define TK_QUERIES 173 #define TK_SCORES 174 #define TK_TOPICS 175 #define TK_VARIABLES 176 #define TK_BNODES 177 #define TK_SNODES 178 #define TK_TRANSACTIONS 179 #define TK_DISTRIBUTED 180 #define TK_CONSUMERS 181 #define TK_SUBSCRIPTIONS 182 #define TK_VNODES 183 #define TK_ALIVE 184 #define TK_VIEWS 185 #define TK_VIEW 186 #define TK_COMPACTS 187 #define TK_NORMAL 188 #define TK_CHILD 189 #define TK_LIKE 190 #define TK_TBNAME 191 #define TK_QTAGS 192 #define TK_AS 193 #define TK_SYSTEM 194 #define TK_TSMA 195 #define TK_INTERVAL 196 #define TK_RECURSIVE 197 #define TK_TSMAS 198 #define TK_FUNCTION 199 #define TK_INDEX 200 #define TK_COUNT 201 #define TK_LAST_ROW 202 #define TK_META 203 #define TK_ONLY 204 #define TK_TOPIC 205 #define TK_CONSUMER 206 #define TK_GROUP 207 #define TK_DESC 208 #define TK_DESCRIBE 209 #define TK_RESET 210 #define TK_QUERY 211 #define TK_CACHE 212 #define TK_EXPLAIN 213 #define TK_ANALYZE 214 #define TK_VERBOSE 215 #define TK_NK_BOOL 216 #define TK_RATIO 217 #define TK_NK_FLOAT 218 #define TK_OUTPUTTYPE 219 #define TK_AGGREGATE 220 #define TK_BUFSIZE 221 #define TK_LANGUAGE 222 #define TK_REPLACE 223 #define TK_STREAM 224 #define TK_INTO 225 #define TK_PAUSE 226 #define TK_RESUME 227 #define TK_PRIMARY 228 #define TK_KEY 229 #define TK_TRIGGER 230 #define TK_AT_ONCE 231 #define TK_WINDOW_CLOSE 232 #define TK_IGNORE 233 #define TK_EXPIRED 234 #define TK_FILL_HISTORY 235 #define TK_UPDATE 236 #define TK_SUBTABLE 237 #define TK_UNTREATED 238 #define TK_KILL 239 #define TK_CONNECTION 240 #define TK_TRANSACTION 241 #define TK_BALANCE 242 #define TK_VGROUP 243 #define TK_LEADER 244 #define TK_MERGE 245 #define TK_REDISTRIBUTE 246 #define TK_SPLIT 247 #define TK_DELETE 248 #define TK_INSERT 249 #define TK_NK_BIN 250 #define TK_NK_HEX 251 #define TK_NULL 252 #define TK_NK_QUESTION 253 #define TK_NK_ALIAS 254 #define TK_NK_ARROW 255 #define TK_ROWTS 256 #define TK_QSTART 257 #define TK_QEND 258 #define TK_QDURATION 259 #define TK_WSTART 260 #define TK_WEND 261 #define TK_WDURATION 262 #define TK_IROWTS 263 #define TK_ISFILLED 264 #define TK_CAST 265 #define TK_NOW 266 #define TK_TODAY 267 #define TK_TIMEZONE 268 #define TK_CLIENT_VERSION 269 #define TK_SERVER_VERSION 270 #define TK_SERVER_STATUS 271 #define TK_CURRENT_USER 272 #define TK_CASE 273 #define TK_WHEN 274 #define TK_THEN 275 #define TK_ELSE 276 #define TK_BETWEEN 277 #define TK_IS 278 #define TK_NK_LT 279 #define TK_NK_GT 280 #define TK_NK_LE 281 #define TK_NK_GE 282 #define TK_NK_NE 283 #define TK_MATCH 284 #define TK_NMATCH 285 #define TK_CONTAINS 286 #define TK_IN 287 #define TK_JOIN 288 #define TK_INNER 289 #define TK_LEFT 290 #define TK_RIGHT 291 #define TK_OUTER 292 #define TK_SEMI 293 #define TK_ANTI 294 #define TK_ASOF 295 #define TK_WINDOW 296 #define TK_WINDOW_OFFSET 297 #define TK_JLIMIT 298 #define TK_SELECT 299 #define TK_NK_HINT 300 #define TK_DISTINCT 301 #define TK_WHERE 302 #define TK_PARTITION 303 #define TK_BY 304 #define TK_SESSION 305 #define TK_STATE_WINDOW 306 #define TK_EVENT_WINDOW 307 #define TK_COUNT_WINDOW 308 #define TK_SLIDING 309 #define TK_FILL 310 #define TK_VALUE 311 #define TK_VALUE_F 312 #define TK_NONE 313 #define TK_PREV 314 #define TK_NULL_F 315 #define TK_LINEAR 316 #define TK_NEXT 317 #define TK_HAVING 318 #define TK_RANGE 319 #define TK_EVERY 320 #define TK_ORDER 321 #define TK_SLIMIT 322 #define TK_SOFFSET 323 #define TK_LIMIT 324 #define TK_OFFSET 325 #define TK_ASC 326 #define TK_NULLS 327 #define TK_ABORT 328 #define TK_AFTER 329 #define TK_ATTACH 330 #define TK_BEFORE 331 #define TK_BEGIN 332 #define TK_BITAND 333 #define TK_BITNOT 334 #define TK_BITOR 335 #define TK_BLOCKS 336 #define TK_CHANGE 337 #define TK_COMMA 338 #define TK_CONCAT 339 #define TK_CONFLICT 340 #define TK_COPY 341 #define TK_DEFERRED 342 #define TK_DELIMITERS 343 #define TK_DETACH 344 #define TK_DIVIDE 345 #define TK_DOT 346 #define TK_EACH 347 #define TK_FAIL 348 #define TK_FOR 349 #define TK_GLOB 350 #define TK_ID 351 #define TK_IMMEDIATE 352 #define TK_IMPORT 353 #define TK_INITIALLY 354 #define TK_INSTEAD 355 #define TK_ISNULL 356 #define TK_MODULES 357 #define TK_NK_BITNOT 358 #define TK_NK_SEMI 359 #define TK_NOTNULL 360 #define TK_OF 361 #define TK_PLUS 362 #define TK_PRIVILEGE 363 #define TK_RAISE 364 #define TK_RESTRICT 365 #define TK_ROW 366 #define TK_STAR 367 #define TK_STATEMENT 368 #define TK_STRICT 369 #define TK_STRING 370 #define TK_TIMES 371 #define TK_VALUES 372 #define TK_VARIABLE 373 #define TK_WAL 374 #define TK_ENCODE 375 #define TK_COMPRESS 376 #define TK_LEVEL 377 #endif /**************** End token definitions ***************************************/ /* The next sections is a series of control #defines. ** various aspects of the generated parser. ** YYCODETYPE is the data type used to store the integer codes ** that represent terminal and non-terminal symbols. ** "unsigned char" is used if there are fewer than ** 256 symbols. Larger types otherwise. ** YYNOCODE is a number of type YYCODETYPE that is not used for ** any terminal or nonterminal symbol. ** YYFALLBACK If defined, this indicates that one or more tokens ** (also known as: "terminal symbols") have fall-back ** values which should be used if the original symbol ** would not parse. This permits keywords to sometimes ** be used as identifiers, for example. ** YYACTIONTYPE is the data type used for "action codes" - numbers ** that indicate what to do in response to the next ** token. ** ParseTOKENTYPE is the data type used for minor type for terminal ** symbols. Background: A "minor type" is a semantic ** value associated with a terminal or non-terminal ** symbols. For example, for an "ID" terminal symbol, ** the minor type might be the name of the identifier. ** Each non-terminal can have a different minor type. ** Terminal symbols all have the same minor type, though. ** This macros defines the minor type for terminal ** symbols. ** YYMINORTYPE is the data type used for all minor types. ** This is typically a union of many types, one of ** which is ParseTOKENTYPE. The entry in the union ** for terminal symbols is called "yy0". ** YYSTACKDEPTH is the maximum depth of the parser's stack. If ** zero the stack is dynamically sized using realloc() ** ParseARG_SDECL A static variable declaration for the %extra_argument ** ParseARG_PDECL A parameter declaration for the %extra_argument ** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter ** ParseARG_STORE Code to store %extra_argument into yypParser ** ParseARG_FETCH Code to extract %extra_argument from yypParser ** ParseCTX_* As ParseARG_ except for %extra_context ** YYERRORSYMBOL is the code number of the error symbol. If not ** defined, then do no error processing. ** YYNSTATE the combined number of states. ** YYNRULE the number of rules in the grammar ** YYNTOKEN Number of terminal symbols ** YY_MAX_SHIFT Maximum value for shift actions ** YY_MIN_SHIFTREDUCE Minimum value for shift-reduce actions ** YY_MAX_SHIFTREDUCE Maximum value for shift-reduce actions ** YY_ERROR_ACTION The yy_action[] code for syntax error ** YY_ACCEPT_ACTION The yy_action[] code for accept ** YY_NO_ACTION The yy_action[] code for no-op ** YY_MIN_REDUCE Minimum value for reduce actions ** YY_MAX_REDUCE Maximum value for reduce actions */ #ifndef INTERFACE # define INTERFACE 1 #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int #define YYNOCODE 558 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; SAlterOption yy101; bool yy209; SNodeList* yy316; SNode* yy416; EOrder yy506; EJoinSubType yy630; EShowKind yy681; int32_t yy820; EOperatorType yy848; STokenPair yy849; EFillMode yy882; SShowTablesOption yy925; SDataType yy952; EJoinType yy972; int8_t yy1043; ENullOrder yy1045; int64_t yy1089; SToken yy1109; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 #endif #define ParseARG_SDECL SAstCreateContext* pCxt ; #define ParseARG_PDECL , SAstCreateContext* pCxt #define ParseARG_PARAM ,pCxt #define ParseARG_FETCH SAstCreateContext* pCxt =yypParser->pCxt ; #define ParseARG_STORE yypParser->pCxt =pCxt ; #define ParseCTX_SDECL #define ParseCTX_PDECL #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 #define YYNSTATE 979 #define YYNRULE 755 #define YYNRULE_WITH_ACTION 755 #define YYNTOKEN 378 #define YY_MAX_SHIFT 978 #define YY_MIN_SHIFTREDUCE 1448 #define YY_MAX_SHIFTREDUCE 2202 #define YY_ERROR_ACTION 2203 #define YY_ACCEPT_ACTION 2204 #define YY_NO_ACTION 2205 #define YY_MIN_REDUCE 2206 #define YY_MAX_REDUCE 2960 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) /* Define the yytestcase() macro to be a no-op if is not already defined ** otherwise. ** ** Applications can choose to define yytestcase() in the %include section ** to a macro that can assist in verifying code coverage. For production ** code the yytestcase() macro should be turned off. But it is useful ** for testing. */ #ifndef yytestcase # define yytestcase(X) #endif /* Next are the tables used to determine what action to take based on the ** current state and lookahead token. These tables are used to implement ** functions that take a state number and lookahead value and return an ** action integer. ** ** Suppose the action integer is N. Then the action is determined as ** follows ** ** 0 <= N <= YY_MAX_SHIFT Shift N. That is, push the lookahead ** token onto the stack and goto state N. ** ** N between YY_MIN_SHIFTREDUCE Shift to an arbitrary state then ** and YY_MAX_SHIFTREDUCE reduce by rule N-YY_MIN_SHIFTREDUCE. ** ** N == YY_ERROR_ACTION A syntax error has occurred. ** ** N == YY_ACCEPT_ACTION The parser accepts its input. ** ** N == YY_NO_ACTION No such action. Denotes unused ** slots in the yy_action[] table. ** ** N between YY_MIN_REDUCE Reduce by rule N-YY_MIN_REDUCE ** and YY_MAX_REDUCE ** ** The action table is constructed as a single large table named yy_action[]. ** Given state S and lookahead X, the action is computed as either: ** ** (A) N = yy_action[ yy_shift_ofst[S] + X ] ** (B) N = yy_default[S] ** ** The (A) formula is preferred. The B formula is used instead if ** yy_lookahead[yy_shift_ofst[S]+X] is not equal to X. ** ** The formulas above are for computing the action when the lookahead is ** a terminal symbol. If the lookahead is a non-terminal (as occurs after ** a reduce action) then the yy_reduce_ofst[] array is used in place of ** the yy_shift_ofst[] array. ** ** The following are the tables generated in this section: ** ** yy_action[] A single table containing all actions. ** yy_lookahead[] A table containing the lookahead for each entry in ** yy_action. Used to detect hash collisions. ** yy_shift_ofst[] For each state, the offset into yy_action for ** shifting terminals. ** yy_reduce_ofst[] For each state, the offset into yy_action for ** shifting non-terminals after a reduce. ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ #define YY_ACTTAB_COUNT (3018) static const YYACTIONTYPE yy_action[] = { /* 0 */ 2711, 2403, 647, 543, 2569, 648, 2254, 2569, 542, 37, /* 10 */ 340, 550, 47, 45, 2119, 2401, 2736, 652, 798, 211, /* 20 */ 476, 471, 1940, 649, 2567, 855, 2926, 2566, 855, 2715, /* 30 */ 2711, 813, 124, 810, 157, 2461, 1938, 787, 2028, 2405, /* 40 */ 1965, 495, 2416, 2694, 797, 218, 493, 40, 39, 2927, /* 50 */ 799, 46, 44, 43, 42, 41, 2736, 764, 748, 2715, /* 60 */ 2754, 612, 610, 2123, 415, 2926, 2754, 232, 2023, 1965, /* 70 */ 788, 851, 868, 502, 501, 19, 2701, 527, 850, 2717, /* 80 */ 2719, 473, 1946, 2932, 218, 810, 157, 2569, 2927, 799, /* 90 */ 873, 2645, 460, 2616, 1966, 47, 45, 1947, 810, 157, /* 100 */ 2754, 478, 482, 476, 2695, 1940, 482, 2566, 855, 2717, /* 110 */ 2720, 670, 975, 873, 435, 15, 2701, 873, 850, 1938, /* 120 */ 873, 2028, 868, 2735, 810, 157, 2774, 43, 42, 41, /* 130 */ 121, 2737, 854, 2739, 2740, 849, 1965, 873, 786, 2204, /* 140 */ 657, 2608, 200, 655, 2828, 515, 648, 2254, 472, 2824, /* 150 */ 2229, 2023, 2030, 2031, 812, 187, 2836, 2837, 19, 155, /* 160 */ 2841, 14, 13, 2735, 2057, 1946, 2774, 482, 219, 114, /* 170 */ 121, 2737, 854, 2739, 2740, 849, 2875, 873, 873, 2736, /* 180 */ 159, 488, 168, 2799, 2828, 869, 2414, 929, 472, 2824, /* 190 */ 2373, 2001, 2011, 254, 851, 975, 2264, 650, 15, 2262, /* 200 */ 256, 2029, 2032, 841, 650, 148, 2262, 194, 2836, 809, /* 210 */ 2701, 149, 808, 693, 840, 531, 1941, 50, 1939, 2926, /* 220 */ 127, 2836, 2837, 2754, 155, 2841, 1712, 1713, 508, 2058, /* 230 */ 2474, 62, 868, 507, 868, 2030, 2031, 797, 218, 2701, /* 240 */ 2002, 850, 2927, 799, 533, 529, 188, 2836, 2837, 817, /* 250 */ 155, 2841, 1944, 1945, 1998, 172, 2000, 2003, 2004, 2005, /* 260 */ 2006, 2007, 2008, 2009, 2010, 846, 871, 870, 2022, 2024, /* 270 */ 2025, 2026, 2027, 2, 2001, 2011, 2071, 2094, 443, 1950, /* 280 */ 9, 1968, 764, 207, 2029, 2032, 2735, 331, 332, 2774, /* 290 */ 2926, 491, 330, 121, 2737, 854, 2739, 2740, 849, 1941, /* 300 */ 873, 1939, 2301, 1999, 1998, 2946, 747, 2828, 2932, 218, /* 310 */ 2542, 472, 2824, 2927, 799, 2418, 36, 474, 2052, 2053, /* 320 */ 2054, 2055, 2056, 2060, 2061, 2062, 2063, 50, 910, 174, /* 330 */ 173, 907, 906, 905, 171, 1944, 1945, 1998, 54, 2000, /* 340 */ 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 846, 871, /* 350 */ 870, 2022, 2024, 2025, 2026, 2027, 2, 12, 47, 45, /* 360 */ 2398, 422, 2736, 1909, 2474, 183, 476, 291, 1940, 388, /* 370 */ 394, 290, 441, 2451, 869, 2414, 744, 813, 2228, 714, /* 380 */ 713, 712, 1938, 2472, 2028, 667, 704, 154, 708, 392, /* 390 */ 76, 2094, 707, 75, 148, 487, 486, 706, 711, 453, /* 400 */ 452, 324, 698, 705, 421, 2207, 2754, 451, 701, 700, /* 410 */ 699, 2091, 2092, 2093, 2023, 324, 252, 629, 627, 624, /* 420 */ 622, 19, 2701, 192, 850, 317, 138, 663, 1946, 137, /* 430 */ 136, 135, 134, 133, 132, 131, 130, 129, 2701, 2931, /* 440 */ 2474, 47, 45, 2033, 2556, 103, 668, 2926, 469, 476, /* 450 */ 430, 1940, 1966, 458, 322, 736, 2474, 1965, 975, 2472, /* 460 */ 798, 15, 62, 1493, 481, 1938, 2930, 2028, 2926, 2735, /* 470 */ 2927, 2929, 2774, 1908, 926, 2472, 121, 2737, 854, 2739, /* 480 */ 2740, 849, 1500, 873, 869, 2414, 797, 218, 200, 381, /* 490 */ 2828, 2927, 799, 666, 472, 2824, 2388, 2023, 2030, 2031, /* 500 */ 185, 63, 2218, 2094, 499, 490, 489, 1495, 1498, 1499, /* 510 */ 138, 1946, 207, 137, 136, 135, 134, 133, 132, 131, /* 520 */ 130, 129, 2876, 62, 2848, 2091, 2092, 2093, 2848, 2848, /* 530 */ 2848, 2848, 2848, 734, 2931, 480, 182, 2001, 2011, 2543, /* 540 */ 207, 975, 2926, 928, 48, 495, 2416, 2029, 2032, 728, /* 550 */ 2617, 732, 730, 288, 287, 88, 87, 546, 2285, 783, /* 560 */ 231, 2930, 1941, 1965, 1939, 2927, 2928, 2542, 869, 2414, /* 570 */ 912, 40, 39, 538, 536, 46, 44, 43, 42, 41, /* 580 */ 715, 2030, 2031, 1969, 1813, 1814, 418, 497, 223, 525, /* 590 */ 2467, 2469, 521, 517, 513, 510, 539, 697, 1944, 1945, /* 600 */ 1998, 696, 2000, 2003, 2004, 2005, 2006, 2007, 2008, 2009, /* 610 */ 2010, 846, 871, 870, 2022, 2024, 2025, 2026, 2027, 2, /* 620 */ 2001, 2011, 2096, 2097, 2098, 2099, 2100, 66, 1786, 1787, /* 630 */ 2029, 2032, 100, 1812, 1815, 1673, 2848, 2091, 2092, 2093, /* 640 */ 2848, 2848, 2848, 2848, 2848, 1941, 324, 1939, 2206, 62, /* 650 */ 1664, 902, 901, 900, 1668, 899, 1670, 1671, 898, 895, /* 660 */ 2410, 1679, 892, 1681, 1682, 889, 886, 883, 789, 784, /* 670 */ 777, 773, 147, 146, 145, 144, 143, 142, 141, 140, /* 680 */ 139, 1944, 1945, 1998, 238, 2000, 2003, 2004, 2005, 2006, /* 690 */ 2007, 2008, 2009, 2010, 846, 871, 870, 2022, 2024, 2025, /* 700 */ 2026, 2027, 2, 47, 45, 1623, 2736, 324, 869, 2414, /* 710 */ 912, 476, 1969, 1940, 46, 44, 43, 42, 41, 1622, /* 720 */ 1520, 851, 1519, 2883, 714, 713, 712, 1938, 55, 2028, /* 730 */ 94, 704, 154, 708, 2002, 93, 153, 707, 62, 745, /* 740 */ 869, 2414, 706, 711, 453, 452, 2931, 2736, 705, 541, /* 750 */ 2754, 540, 451, 701, 700, 699, 214, 12, 1521, 2023, /* 760 */ 547, 2038, 851, 1968, 2896, 479, 2701, 1965, 850, 2494, /* 770 */ 879, 40, 39, 1946, 181, 46, 44, 43, 42, 41, /* 780 */ 644, 498, 664, 539, 606, 2419, 47, 45, 748, 642, /* 790 */ 181, 2754, 638, 634, 476, 617, 1940, 1999, 869, 2414, /* 800 */ 2474, 2419, 92, 975, 559, 2538, 48, 2701, 496, 850, /* 810 */ 1938, 2511, 2028, 2735, 2468, 2469, 2774, 1970, 548, 2472, /* 820 */ 121, 2737, 854, 2739, 2740, 849, 1611, 873, 869, 2414, /* 830 */ 565, 2538, 2946, 324, 2828, 869, 2414, 381, 472, 2824, /* 840 */ 869, 2414, 2023, 2030, 2031, 839, 665, 2562, 567, 869, /* 850 */ 2414, 2152, 243, 3, 2735, 581, 1946, 2774, 234, 2187, /* 860 */ 669, 121, 2737, 854, 2739, 2740, 849, 53, 873, 582, /* 870 */ 750, 2608, 1613, 2946, 1946, 2828, 100, 605, 242, 472, /* 880 */ 2824, 51, 2001, 2011, 236, 213, 975, 596, 2538, 15, /* 890 */ 903, 603, 2029, 2032, 446, 40, 39, 459, 2616, 46, /* 900 */ 44, 43, 42, 41, 2409, 274, 12, 1941, 10, 1939, /* 910 */ 780, 779, 2150, 2151, 2153, 2154, 2155, 878, 877, 876, /* 920 */ 29, 193, 324, 2144, 589, 2521, 2030, 2031, 2059, 2227, /* 930 */ 687, 683, 679, 675, 2390, 273, 322, 2145, 2002, 588, /* 940 */ 834, 241, 2800, 1944, 1945, 1998, 1970, 2000, 2003, 2004, /* 950 */ 2005, 2006, 2007, 2008, 2009, 2010, 846, 871, 870, 2022, /* 960 */ 2024, 2025, 2026, 2027, 2, 2001, 2011, 84, 419, 557, /* 970 */ 1963, 2194, 2474, 869, 2414, 2029, 2032, 594, 869, 2414, /* 980 */ 445, 101, 587, 2143, 160, 2116, 271, 586, 614, 2701, /* 990 */ 1941, 825, 1939, 583, 2406, 585, 869, 2414, 2411, 763, /* 1000 */ 184, 1999, 292, 2164, 573, 836, 616, 2800, 2347, 869, /* 1010 */ 2414, 420, 575, 40, 39, 34, 294, 46, 44, 43, /* 1020 */ 42, 41, 2049, 553, 2843, 2064, 1944, 1945, 1998, 302, /* 1030 */ 2000, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 846, /* 1040 */ 871, 870, 2022, 2024, 2025, 2026, 2027, 2, 869, 2414, /* 1050 */ 2840, 40, 39, 259, 522, 46, 44, 43, 42, 41, /* 1060 */ 1940, 1969, 270, 1502, 444, 324, 261, 268, 816, 1964, /* 1070 */ 869, 2414, 266, 661, 1938, 113, 561, 2298, 225, 910, /* 1080 */ 174, 173, 907, 906, 905, 171, 2736, 1867, 1868, 2193, /* 1090 */ 335, 258, 40, 39, 1523, 1524, 46, 44, 43, 42, /* 1100 */ 41, 851, 2407, 775, 689, 688, 2930, 2549, 2528, 1500, /* 1110 */ 602, 601, 600, 599, 598, 593, 592, 591, 590, 427, /* 1120 */ 1946, 2163, 580, 579, 578, 577, 576, 570, 569, 568, /* 1130 */ 2754, 563, 562, 442, 2226, 1498, 1499, 554, 1774, 1775, /* 1140 */ 60, 691, 690, 182, 1793, 78, 2701, 805, 850, 158, /* 1150 */ 975, 761, 2799, 2417, 946, 945, 944, 943, 505, 2135, /* 1160 */ 942, 941, 162, 936, 935, 934, 933, 932, 931, 930, /* 1170 */ 161, 924, 923, 922, 504, 503, 919, 918, 917, 198, /* 1180 */ 197, 916, 500, 915, 914, 913, 1969, 502, 501, 869, /* 1190 */ 2414, 2736, 1965, 2735, 2701, 2225, 2774, 1954, 2224, 91, /* 1200 */ 121, 2737, 854, 2739, 2740, 849, 851, 873, 2919, 830, /* 1210 */ 721, 1947, 2946, 2028, 2828, 2223, 33, 2222, 472, 2824, /* 1220 */ 2221, 2736, 40, 39, 2220, 735, 46, 44, 43, 42, /* 1230 */ 41, 1627, 869, 2414, 221, 2754, 851, 104, 2860, 869, /* 1240 */ 2414, 2641, 2217, 2023, 289, 1626, 869, 2414, 1520, 2476, /* 1250 */ 1519, 2701, 342, 850, 1941, 2701, 1939, 1946, 2701, 862, /* 1260 */ 724, 374, 2216, 450, 449, 2754, 863, 718, 716, 869, /* 1270 */ 2414, 1841, 869, 2414, 286, 2701, 303, 2701, 710, 709, /* 1280 */ 2701, 2701, 2115, 850, 2701, 2215, 1521, 838, 181, 867, /* 1290 */ 1944, 1945, 370, 940, 938, 1970, 2474, 2214, 2735, 2420, /* 1300 */ 2843, 2774, 2701, 2234, 968, 121, 2737, 854, 2739, 2740, /* 1310 */ 849, 802, 873, 2213, 2622, 2473, 164, 2946, 2212, 2828, /* 1320 */ 72, 619, 2701, 472, 2824, 71, 2839, 105, 2735, 2211, /* 1330 */ 2210, 2774, 2654, 792, 150, 121, 2737, 854, 2739, 2740, /* 1340 */ 849, 2736, 873, 448, 447, 2701, 695, 2946, 90, 2828, /* 1350 */ 425, 424, 35, 472, 2824, 2209, 851, 2701, 40, 39, /* 1360 */ 483, 380, 46, 44, 43, 42, 41, 697, 2196, 2197, /* 1370 */ 2843, 696, 2736, 2701, 492, 293, 2028, 904, 2701, 908, /* 1380 */ 2465, 909, 2465, 1606, 2465, 2754, 764, 851, 2391, 2701, /* 1390 */ 2701, 1955, 279, 1950, 2926, 277, 2838, 2283, 738, 1857, /* 1400 */ 737, 2701, 2105, 850, 615, 1949, 2023, 281, 2736, 164, /* 1410 */ 280, 283, 2932, 218, 282, 2701, 2754, 2927, 799, 717, /* 1420 */ 1970, 163, 2655, 851, 801, 299, 1999, 1958, 1960, 1607, /* 1430 */ 285, 702, 2701, 284, 850, 387, 771, 49, 703, 806, /* 1440 */ 2266, 871, 870, 2022, 2024, 2025, 2026, 2027, 2735, 2274, /* 1450 */ 2272, 2774, 2754, 2722, 1604, 121, 2737, 854, 2739, 2740, /* 1460 */ 849, 1602, 873, 49, 201, 172, 2418, 2803, 2701, 2828, /* 1470 */ 850, 719, 722, 472, 2824, 2387, 764, 14, 13, 2735, /* 1480 */ 212, 119, 2774, 116, 2926, 209, 121, 2737, 854, 2739, /* 1490 */ 2740, 849, 1865, 873, 1948, 964, 329, 77, 2801, 64, /* 1500 */ 2828, 49, 2932, 218, 472, 2824, 2348, 2927, 799, 1584, /* 1510 */ 49, 77, 169, 349, 348, 2735, 2219, 2724, 2774, 2139, /* 1520 */ 2149, 920, 121, 2737, 854, 2739, 2740, 849, 2889, 873, /* 1530 */ 150, 172, 351, 350, 835, 192, 2828, 2736, 353, 352, /* 1540 */ 472, 2824, 355, 354, 1576, 1673, 2148, 308, 815, 318, /* 1550 */ 357, 356, 851, 781, 1931, 1585, 1907, 811, 359, 358, /* 1560 */ 1664, 902, 901, 900, 1668, 899, 1670, 1671, 845, 844, /* 1570 */ 310, 1679, 843, 1681, 1682, 842, 886, 883, 746, 333, /* 1580 */ 822, 2754, 2065, 1557, 2012, 361, 360, 1952, 485, 484, /* 1590 */ 1932, 363, 362, 1810, 1800, 345, 978, 2701, 74, 850, /* 1600 */ 881, 803, 365, 364, 871, 870, 2022, 2024, 2025, 2026, /* 1610 */ 2027, 921, 741, 866, 1655, 378, 367, 366, 2736, 170, /* 1620 */ 910, 174, 173, 907, 906, 905, 171, 369, 368, 1558, /* 1630 */ 966, 208, 749, 851, 1574, 152, 172, 2755, 2340, 2255, /* 1640 */ 962, 958, 954, 950, 2735, 373, 151, 2774, 2879, 778, /* 1650 */ 2339, 122, 2737, 854, 2739, 2740, 849, 169, 873, 465, /* 1660 */ 785, 819, 2754, 461, 2547, 2828, 764, 506, 814, 2827, /* 1670 */ 2824, 524, 2261, 2462, 2926, 793, 1951, 757, 2701, 794, /* 1680 */ 850, 386, 2880, 1686, 2890, 320, 764, 2548, 315, 323, /* 1690 */ 514, 120, 2932, 218, 2926, 2374, 346, 2927, 799, 2736, /* 1700 */ 40, 39, 1694, 5, 46, 44, 43, 42, 41, 439, /* 1710 */ 509, 1963, 2932, 218, 851, 1973, 523, 2927, 799, 1701, /* 1720 */ 534, 227, 764, 2736, 226, 2735, 535, 826, 2774, 1699, /* 1730 */ 2926, 537, 122, 2737, 854, 2739, 2740, 849, 848, 873, /* 1740 */ 175, 229, 2736, 2754, 379, 1834, 2828, 551, 2932, 218, /* 1750 */ 837, 2824, 1964, 2927, 799, 558, 240, 851, 560, 2701, /* 1760 */ 564, 850, 566, 571, 608, 584, 2540, 2754, 595, 597, /* 1770 */ 604, 607, 344, 609, 832, 620, 621, 327, 618, 246, /* 1780 */ 245, 623, 326, 2701, 625, 850, 2754, 626, 249, 628, /* 1790 */ 630, 1971, 4, 645, 656, 653, 257, 1966, 646, 658, /* 1800 */ 654, 296, 2701, 96, 850, 1972, 852, 659, 1974, 2774, /* 1810 */ 2736, 662, 660, 122, 2737, 854, 2739, 2740, 849, 260, /* 1820 */ 873, 263, 1975, 265, 97, 851, 1976, 2828, 98, 2557, /* 1830 */ 2735, 434, 2824, 2774, 2563, 692, 671, 410, 2737, 854, /* 1840 */ 2739, 2740, 849, 847, 873, 833, 2793, 99, 272, 2735, /* 1850 */ 2736, 694, 2774, 2404, 2754, 126, 186, 2737, 854, 2739, /* 1860 */ 2740, 849, 276, 873, 2400, 851, 725, 278, 726, 413, /* 1870 */ 2701, 177, 850, 123, 740, 2736, 2402, 2397, 178, 179, /* 1880 */ 102, 742, 295, 1967, 751, 125, 2631, 752, 382, 758, /* 1890 */ 851, 2609, 165, 300, 2754, 759, 2628, 2627, 753, 782, /* 1900 */ 756, 820, 298, 765, 2886, 8, 768, 2867, 791, 766, /* 1910 */ 2701, 769, 850, 767, 2895, 2894, 191, 2735, 2736, 2754, /* 1920 */ 2774, 309, 305, 307, 189, 2737, 854, 2739, 2740, 849, /* 1930 */ 796, 873, 311, 851, 313, 2701, 795, 850, 314, 466, /* 1940 */ 2949, 807, 2925, 2847, 2736, 804, 156, 312, 2113, 316, /* 1950 */ 1968, 2111, 204, 325, 166, 818, 383, 2735, 2577, 851, /* 1960 */ 2774, 2844, 2754, 2576, 186, 2737, 854, 2739, 2740, 849, /* 1970 */ 1, 873, 384, 2575, 470, 823, 824, 167, 2701, 831, /* 1980 */ 850, 828, 2735, 800, 2947, 2774, 2736, 338, 2754, 122, /* 1990 */ 2737, 854, 2739, 2740, 849, 61, 873, 2809, 858, 856, /* 2000 */ 860, 851, 463, 2828, 2701, 385, 850, 861, 2825, 319, /* 2010 */ 343, 112, 2887, 220, 2415, 115, 389, 2693, 1472, 2692, /* 2020 */ 971, 2688, 2687, 2736, 2679, 2735, 875, 970, 2774, 2678, /* 2030 */ 2754, 372, 411, 2737, 854, 2739, 2740, 849, 851, 873, /* 2040 */ 2670, 2669, 2685, 2684, 176, 972, 2701, 375, 850, 967, /* 2050 */ 376, 2735, 2676, 52, 2774, 2675, 974, 2664, 404, 2737, /* 2060 */ 854, 2739, 2740, 849, 393, 873, 2663, 2754, 2682, 2681, /* 2070 */ 464, 2673, 2672, 423, 2661, 2660, 2658, 414, 391, 2657, /* 2080 */ 744, 2466, 431, 2701, 432, 850, 426, 401, 412, 402, /* 2090 */ 2653, 2652, 2651, 2735, 85, 2646, 2774, 511, 512, 1891, /* 2100 */ 411, 2737, 854, 2739, 2740, 849, 1892, 873, 224, 790, /* 2110 */ 2736, 516, 2644, 518, 519, 520, 1890, 2643, 2642, 440, /* 2120 */ 2640, 526, 2639, 528, 2638, 848, 530, 2637, 1878, 532, /* 2130 */ 2735, 2613, 2736, 2774, 228, 2612, 230, 189, 2737, 854, /* 2140 */ 2739, 2740, 849, 86, 873, 1837, 2590, 851, 1836, 2589, /* 2150 */ 2588, 544, 545, 2587, 2754, 2586, 2530, 549, 1773, 2736, /* 2160 */ 2527, 552, 2526, 2520, 555, 556, 2517, 233, 2516, 2515, /* 2170 */ 2701, 2514, 850, 89, 851, 2519, 2754, 2518, 2513, 2512, /* 2180 */ 235, 2510, 2509, 2508, 572, 2507, 237, 574, 2505, 2504, /* 2190 */ 2503, 2502, 2701, 2501, 850, 2525, 2736, 2948, 2500, 2499, /* 2200 */ 2498, 2523, 2506, 2754, 2497, 2496, 2495, 2493, 2492, 2491, /* 2210 */ 2490, 851, 2489, 2488, 2487, 239, 475, 2735, 2486, 2701, /* 2220 */ 2774, 850, 2485, 2736, 410, 2737, 854, 2739, 2740, 849, /* 2230 */ 2484, 873, 2483, 2794, 95, 2555, 2524, 2522, 851, 2735, /* 2240 */ 2754, 2482, 2774, 477, 2481, 2736, 411, 2737, 854, 2739, /* 2250 */ 2740, 849, 2480, 873, 244, 1779, 2701, 2479, 850, 611, /* 2260 */ 851, 2478, 2477, 2475, 613, 1624, 2735, 2754, 428, 2774, /* 2270 */ 1628, 429, 2736, 411, 2737, 854, 2739, 2740, 849, 2305, /* 2280 */ 873, 2304, 2303, 2701, 2302, 850, 1620, 851, 247, 2754, /* 2290 */ 2300, 248, 250, 251, 2297, 631, 632, 633, 2296, 636, /* 2300 */ 635, 2289, 637, 739, 639, 2701, 2774, 850, 640, 2736, /* 2310 */ 406, 2737, 854, 2739, 2740, 849, 2754, 873, 641, 2276, /* 2320 */ 2250, 643, 253, 2721, 851, 199, 1501, 81, 210, 651, /* 2330 */ 2735, 2249, 2701, 2774, 850, 2611, 255, 396, 2737, 854, /* 2340 */ 2739, 2740, 849, 82, 873, 2607, 2597, 2585, 262, 264, /* 2350 */ 2736, 267, 2735, 2754, 2584, 2774, 2561, 269, 2554, 395, /* 2360 */ 2737, 854, 2739, 2740, 849, 851, 873, 2392, 2299, 2701, /* 2370 */ 2295, 850, 1550, 672, 674, 673, 2293, 676, 677, 2735, /* 2380 */ 678, 2291, 2774, 681, 680, 2736, 397, 2737, 854, 2739, /* 2390 */ 2740, 849, 2288, 873, 2754, 684, 682, 685, 2271, 686, /* 2400 */ 851, 2269, 2270, 2268, 2246, 2394, 1705, 1706, 2393, 1610, /* 2410 */ 2701, 1609, 850, 73, 1608, 1605, 2735, 2736, 275, 2774, /* 2420 */ 2286, 1603, 1601, 403, 2737, 854, 2739, 2740, 849, 2754, /* 2430 */ 873, 1600, 851, 1599, 2284, 1598, 2736, 1592, 454, 455, /* 2440 */ 937, 2275, 1597, 939, 456, 2701, 720, 850, 1594, 1593, /* 2450 */ 1591, 851, 2273, 457, 2245, 723, 2244, 2735, 2243, 727, /* 2460 */ 2774, 2754, 2242, 729, 407, 2737, 854, 2739, 2740, 849, /* 2470 */ 2241, 873, 731, 2240, 1872, 733, 1874, 2701, 1871, 850, /* 2480 */ 2754, 128, 2736, 2610, 1862, 1876, 56, 28, 743, 67, /* 2490 */ 1847, 2606, 2735, 1843, 297, 2774, 2701, 851, 850, 398, /* 2500 */ 2737, 854, 2739, 2740, 849, 2596, 873, 57, 1845, 754, /* 2510 */ 755, 2583, 301, 2582, 2736, 1822, 180, 2931, 760, 1821, /* 2520 */ 770, 762, 20, 6, 2735, 2166, 2754, 2774, 462, 851, /* 2530 */ 17, 408, 2737, 854, 2739, 2740, 849, 2140, 873, 30, /* 2540 */ 304, 772, 2701, 2735, 850, 774, 2774, 7, 215, 306, /* 2550 */ 399, 2737, 854, 2739, 2740, 849, 776, 873, 2754, 21, /* 2560 */ 22, 203, 2147, 190, 202, 31, 32, 2134, 2722, 23, /* 2570 */ 83, 216, 2106, 2108, 2701, 2104, 850, 65, 2736, 217, /* 2580 */ 24, 2186, 2187, 2088, 18, 2181, 2180, 467, 2185, 2735, /* 2590 */ 2184, 468, 2774, 851, 2087, 321, 409, 2737, 854, 2739, /* 2600 */ 2740, 849, 2736, 873, 58, 59, 2581, 195, 2560, 106, /* 2610 */ 107, 2559, 328, 108, 2142, 205, 334, 851, 69, 2553, /* 2620 */ 827, 2735, 2754, 337, 2774, 821, 829, 2736, 400, 2737, /* 2630 */ 854, 2739, 2740, 849, 109, 873, 25, 2040, 2701, 336, /* 2640 */ 850, 11, 851, 2039, 13, 1956, 2754, 2015, 2050, 196, /* 2650 */ 2014, 888, 206, 1991, 891, 339, 894, 897, 38, 2552, /* 2660 */ 110, 2013, 2701, 16, 850, 859, 853, 2736, 26, 2389, /* 2670 */ 864, 2754, 347, 1983, 27, 70, 865, 857, 341, 111, /* 2680 */ 79, 880, 851, 2779, 116, 2735, 2778, 2701, 2774, 850, /* 2690 */ 872, 2736, 416, 2737, 854, 2739, 2740, 849, 2017, 873, /* 2700 */ 68, 2202, 874, 2201, 2199, 2200, 851, 1687, 494, 2735, /* 2710 */ 882, 2754, 2774, 1684, 884, 885, 417, 2737, 854, 2739, /* 2720 */ 2740, 849, 887, 873, 890, 1683, 1680, 2701, 1674, 850, /* 2730 */ 893, 1672, 2736, 896, 2735, 2754, 1678, 2774, 371, 1677, /* 2740 */ 117, 2748, 2737, 854, 2739, 2740, 849, 851, 873, 118, /* 2750 */ 1676, 2701, 1700, 850, 1675, 80, 1696, 1588, 1548, 911, /* 2760 */ 1587, 1586, 1583, 1580, 1579, 1578, 1577, 1575, 1573, 1572, /* 2770 */ 925, 1618, 2736, 1571, 2735, 1617, 2754, 2774, 222, 927, /* 2780 */ 1569, 2747, 2737, 854, 2739, 2740, 849, 851, 873, 1568, /* 2790 */ 1567, 1566, 2701, 1565, 850, 1564, 1563, 1614, 2735, 2736, /* 2800 */ 1612, 2774, 1560, 1559, 1556, 2746, 2737, 854, 2739, 2740, /* 2810 */ 849, 1555, 873, 1554, 851, 1553, 2754, 2294, 2736, 947, /* 2820 */ 949, 2292, 951, 2290, 948, 952, 953, 956, 955, 957, /* 2830 */ 2287, 959, 2701, 851, 850, 960, 2267, 961, 963, 2735, /* 2840 */ 2265, 965, 2774, 2754, 1490, 2239, 436, 2737, 854, 2739, /* 2850 */ 2740, 849, 1478, 873, 1473, 969, 1480, 377, 973, 2701, /* 2860 */ 1942, 850, 2754, 390, 976, 2205, 977, 2205, 2205, 2205, /* 2870 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2701, 2735, /* 2880 */ 850, 2205, 2774, 2736, 2205, 2205, 437, 2737, 854, 2739, /* 2890 */ 2740, 849, 2205, 873, 2205, 2205, 2736, 2205, 851, 2205, /* 2900 */ 2205, 2205, 2205, 2205, 2205, 2205, 2735, 2205, 2205, 2774, /* 2910 */ 2205, 851, 2205, 433, 2737, 854, 2739, 2740, 849, 2205, /* 2920 */ 873, 2205, 2205, 2205, 2205, 2735, 2205, 2754, 2774, 2205, /* 2930 */ 2205, 2205, 438, 2737, 854, 2739, 2740, 849, 2205, 873, /* 2940 */ 2754, 2205, 2205, 2701, 2205, 850, 2205, 2205, 2205, 2205, /* 2950 */ 2205, 2205, 2205, 2205, 2205, 2205, 2701, 2205, 850, 2205, /* 2960 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, /* 2970 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, /* 2980 */ 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, 2205, /* 2990 */ 852, 2205, 2205, 2774, 2205, 2205, 2205, 406, 2737, 854, /* 3000 */ 2739, 2740, 849, 2735, 873, 2205, 2774, 2205, 2205, 2205, /* 3010 */ 405, 2737, 854, 2739, 2740, 849, 2205, 873, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 412, 426, 390, 467, 443, 393, 394, 443, 472, 510, /* 10 */ 511, 395, 12, 13, 14, 426, 381, 14, 521, 424, /* 20 */ 20, 457, 22, 20, 463, 464, 529, 463, 464, 441, /* 30 */ 412, 396, 425, 395, 396, 440, 36, 396, 38, 428, /* 40 */ 20, 434, 435, 428, 547, 548, 431, 8, 9, 552, /* 50 */ 553, 12, 13, 14, 15, 16, 381, 521, 395, 441, /* 60 */ 425, 445, 446, 14, 448, 529, 425, 451, 68, 20, /* 70 */ 20, 396, 20, 12, 13, 75, 441, 73, 443, 491, /* 80 */ 492, 493, 82, 547, 548, 395, 396, 443, 552, 553, /* 90 */ 502, 0, 485, 486, 20, 12, 13, 36, 395, 396, /* 100 */ 425, 457, 491, 20, 428, 22, 491, 463, 464, 491, /* 110 */ 492, 74, 112, 502, 75, 115, 441, 502, 443, 36, /* 120 */ 502, 38, 20, 488, 395, 396, 491, 14, 15, 16, /* 130 */ 495, 496, 497, 498, 499, 500, 20, 502, 497, 378, /* 140 */ 477, 478, 507, 390, 509, 54, 393, 394, 513, 514, /* 150 */ 381, 68, 152, 153, 516, 517, 518, 519, 75, 521, /* 160 */ 522, 1, 2, 488, 125, 82, 491, 491, 533, 117, /* 170 */ 495, 496, 497, 498, 499, 500, 541, 502, 502, 381, /* 180 */ 505, 36, 507, 508, 509, 395, 396, 411, 513, 514, /* 190 */ 414, 191, 192, 391, 396, 112, 398, 395, 115, 397, /* 200 */ 391, 201, 202, 426, 395, 415, 397, 517, 518, 519, /* 210 */ 441, 521, 522, 423, 437, 211, 216, 115, 218, 529, /* 220 */ 517, 518, 519, 425, 521, 522, 152, 153, 467, 190, /* 230 */ 425, 115, 20, 472, 20, 152, 153, 547, 548, 441, /* 240 */ 191, 443, 552, 553, 240, 241, 517, 518, 519, 444, /* 250 */ 521, 522, 252, 253, 254, 33, 256, 257, 258, 259, /* 260 */ 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, /* 270 */ 270, 271, 272, 273, 191, 192, 116, 155, 420, 218, /* 280 */ 44, 20, 521, 425, 201, 202, 488, 146, 147, 491, /* 290 */ 529, 36, 151, 495, 496, 497, 498, 499, 500, 216, /* 300 */ 502, 218, 0, 254, 254, 507, 20, 509, 547, 548, /* 310 */ 452, 513, 514, 552, 553, 426, 277, 278, 279, 280, /* 320 */ 281, 282, 283, 284, 285, 286, 287, 115, 145, 146, /* 330 */ 147, 148, 149, 150, 151, 252, 253, 254, 116, 256, /* 340 */ 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, /* 350 */ 267, 268, 269, 270, 271, 272, 273, 274, 12, 13, /* 360 */ 426, 427, 381, 218, 425, 18, 20, 147, 22, 417, /* 370 */ 23, 151, 433, 421, 395, 396, 487, 396, 381, 77, /* 380 */ 78, 79, 36, 444, 38, 395, 84, 85, 86, 42, /* 390 */ 43, 155, 90, 46, 415, 250, 251, 95, 96, 97, /* 400 */ 98, 299, 423, 101, 57, 0, 425, 105, 106, 107, /* 410 */ 108, 289, 290, 291, 68, 299, 69, 70, 71, 72, /* 420 */ 73, 75, 441, 523, 443, 525, 21, 20, 82, 24, /* 430 */ 25, 26, 27, 28, 29, 30, 31, 32, 441, 521, /* 440 */ 425, 12, 13, 14, 454, 225, 456, 529, 433, 20, /* 450 */ 230, 22, 20, 233, 193, 235, 425, 20, 112, 444, /* 460 */ 521, 115, 115, 4, 433, 36, 548, 38, 529, 488, /* 470 */ 552, 553, 491, 218, 13, 444, 495, 496, 497, 498, /* 480 */ 499, 500, 23, 502, 395, 396, 547, 548, 507, 425, /* 490 */ 509, 552, 553, 20, 513, 514, 0, 68, 152, 153, /* 500 */ 380, 154, 382, 155, 415, 250, 251, 48, 49, 50, /* 510 */ 21, 82, 425, 24, 25, 26, 27, 28, 29, 30, /* 520 */ 31, 32, 541, 115, 288, 289, 290, 291, 292, 293, /* 530 */ 294, 295, 296, 21, 521, 420, 425, 191, 192, 452, /* 540 */ 425, 112, 529, 82, 115, 434, 435, 201, 202, 37, /* 550 */ 486, 39, 40, 41, 42, 208, 209, 210, 0, 196, /* 560 */ 213, 548, 216, 20, 218, 552, 553, 452, 395, 396, /* 570 */ 74, 8, 9, 226, 227, 12, 13, 14, 15, 16, /* 580 */ 22, 152, 153, 20, 152, 153, 239, 439, 415, 242, /* 590 */ 442, 443, 245, 246, 247, 248, 249, 145, 252, 253, /* 600 */ 254, 149, 256, 257, 258, 259, 260, 261, 262, 263, /* 610 */ 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, /* 620 */ 191, 192, 292, 293, 294, 295, 296, 4, 191, 192, /* 630 */ 201, 202, 404, 201, 202, 112, 288, 289, 290, 291, /* 640 */ 292, 293, 294, 295, 296, 216, 299, 218, 0, 115, /* 650 */ 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, /* 660 */ 432, 138, 139, 140, 141, 142, 143, 144, 305, 306, /* 670 */ 307, 308, 24, 25, 26, 27, 28, 29, 30, 31, /* 680 */ 32, 252, 253, 254, 68, 256, 257, 258, 259, 260, /* 690 */ 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, /* 700 */ 271, 272, 273, 12, 13, 22, 381, 299, 395, 396, /* 710 */ 74, 20, 20, 22, 12, 13, 14, 15, 16, 36, /* 720 */ 20, 396, 22, 398, 77, 78, 79, 36, 415, 38, /* 730 */ 114, 84, 85, 86, 191, 119, 36, 90, 115, 126, /* 740 */ 395, 396, 95, 96, 97, 98, 3, 381, 101, 215, /* 750 */ 425, 217, 105, 106, 107, 108, 193, 274, 58, 68, /* 760 */ 415, 14, 396, 20, 398, 416, 441, 20, 443, 0, /* 770 */ 228, 8, 9, 82, 425, 12, 13, 14, 15, 16, /* 780 */ 54, 416, 395, 249, 91, 436, 12, 13, 395, 63, /* 790 */ 425, 425, 66, 67, 20, 112, 22, 254, 395, 396, /* 800 */ 425, 436, 186, 112, 395, 396, 115, 441, 433, 443, /* 810 */ 36, 0, 38, 488, 442, 443, 491, 254, 415, 444, /* 820 */ 495, 496, 497, 498, 499, 500, 36, 502, 395, 396, /* 830 */ 395, 396, 507, 299, 509, 395, 396, 425, 513, 514, /* 840 */ 395, 396, 68, 152, 153, 75, 459, 460, 415, 395, /* 850 */ 396, 252, 159, 33, 488, 415, 82, 491, 449, 116, /* 860 */ 415, 495, 496, 497, 498, 499, 500, 47, 502, 415, /* 870 */ 477, 478, 82, 507, 82, 509, 404, 184, 185, 513, /* 880 */ 514, 115, 191, 192, 449, 193, 112, 395, 396, 115, /* 890 */ 126, 198, 201, 202, 422, 8, 9, 485, 486, 12, /* 900 */ 13, 14, 15, 16, 432, 38, 274, 216, 276, 218, /* 910 */ 311, 312, 313, 314, 315, 316, 317, 375, 376, 377, /* 920 */ 33, 54, 299, 22, 155, 0, 152, 153, 190, 381, /* 930 */ 63, 64, 65, 66, 0, 68, 193, 36, 191, 170, /* 940 */ 506, 449, 508, 252, 253, 254, 254, 256, 257, 258, /* 950 */ 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, /* 960 */ 269, 270, 271, 272, 273, 191, 192, 402, 18, 44, /* 970 */ 20, 208, 425, 395, 396, 201, 202, 27, 395, 396, /* 980 */ 30, 114, 171, 82, 419, 4, 119, 176, 38, 441, /* 990 */ 216, 444, 218, 415, 429, 184, 395, 396, 415, 52, /* 1000 */ 405, 254, 146, 116, 54, 506, 56, 508, 413, 395, /* 1010 */ 396, 61, 62, 8, 9, 277, 415, 12, 13, 14, /* 1020 */ 15, 16, 252, 73, 494, 287, 252, 253, 254, 415, /* 1030 */ 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, /* 1040 */ 266, 267, 268, 269, 270, 271, 272, 273, 395, 396, /* 1050 */ 520, 8, 9, 186, 44, 12, 13, 14, 15, 16, /* 1060 */ 22, 20, 195, 14, 114, 299, 199, 200, 415, 20, /* 1070 */ 395, 396, 205, 206, 36, 402, 126, 0, 68, 145, /* 1080 */ 146, 147, 148, 149, 150, 151, 381, 231, 232, 326, /* 1090 */ 415, 224, 8, 9, 59, 60, 12, 13, 14, 15, /* 1100 */ 16, 396, 429, 398, 400, 401, 3, 157, 158, 23, /* 1110 */ 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, /* 1120 */ 82, 116, 172, 173, 174, 175, 176, 177, 178, 179, /* 1130 */ 425, 181, 182, 183, 381, 49, 50, 187, 188, 189, /* 1140 */ 193, 400, 401, 425, 194, 126, 441, 33, 443, 505, /* 1150 */ 112, 204, 508, 435, 77, 78, 79, 80, 81, 116, /* 1160 */ 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, /* 1170 */ 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, /* 1180 */ 103, 104, 105, 106, 107, 108, 20, 12, 13, 395, /* 1190 */ 396, 381, 20, 488, 441, 381, 491, 22, 381, 180, /* 1200 */ 495, 496, 497, 498, 499, 500, 396, 502, 398, 415, /* 1210 */ 4, 36, 507, 38, 509, 381, 2, 381, 513, 514, /* 1220 */ 381, 381, 8, 9, 381, 19, 12, 13, 14, 15, /* 1230 */ 16, 22, 395, 396, 193, 425, 396, 186, 398, 395, /* 1240 */ 396, 0, 381, 68, 38, 36, 395, 396, 20, 0, /* 1250 */ 22, 441, 415, 443, 216, 441, 218, 82, 441, 415, /* 1260 */ 54, 34, 381, 41, 42, 425, 415, 61, 62, 395, /* 1270 */ 396, 220, 395, 396, 68, 441, 68, 441, 409, 410, /* 1280 */ 441, 441, 301, 443, 441, 381, 58, 112, 425, 415, /* 1290 */ 252, 253, 415, 409, 410, 254, 425, 381, 488, 436, /* 1300 */ 494, 491, 441, 384, 385, 495, 496, 497, 498, 499, /* 1310 */ 500, 33, 502, 381, 421, 444, 33, 507, 381, 509, /* 1320 */ 114, 112, 441, 513, 514, 119, 520, 119, 488, 381, /* 1330 */ 381, 491, 467, 13, 33, 495, 496, 497, 498, 499, /* 1340 */ 500, 381, 502, 121, 122, 441, 124, 507, 47, 509, /* 1350 */ 12, 13, 2, 513, 514, 381, 396, 441, 8, 9, /* 1360 */ 22, 426, 12, 13, 14, 15, 16, 145, 152, 153, /* 1370 */ 494, 149, 381, 441, 36, 482, 38, 438, 441, 438, /* 1380 */ 441, 438, 441, 36, 441, 425, 521, 396, 0, 441, /* 1390 */ 441, 216, 120, 218, 529, 123, 520, 0, 234, 116, /* 1400 */ 236, 441, 82, 443, 155, 36, 68, 120, 381, 33, /* 1410 */ 123, 120, 547, 548, 123, 441, 425, 552, 553, 22, /* 1420 */ 254, 33, 467, 396, 321, 426, 254, 252, 253, 82, /* 1430 */ 120, 13, 441, 123, 443, 426, 33, 33, 13, 325, /* 1440 */ 0, 266, 267, 268, 269, 270, 271, 272, 488, 0, /* 1450 */ 0, 491, 425, 51, 36, 495, 496, 497, 498, 499, /* 1460 */ 500, 36, 502, 33, 33, 33, 426, 507, 441, 509, /* 1470 */ 443, 22, 22, 513, 514, 0, 521, 1, 2, 488, /* 1480 */ 473, 115, 491, 117, 529, 244, 495, 496, 497, 498, /* 1490 */ 499, 500, 116, 502, 36, 55, 33, 33, 507, 33, /* 1500 */ 509, 33, 547, 548, 513, 514, 413, 552, 553, 36, /* 1510 */ 33, 33, 33, 12, 13, 488, 382, 115, 491, 116, /* 1520 */ 116, 13, 495, 496, 497, 498, 499, 500, 453, 502, /* 1530 */ 33, 33, 12, 13, 507, 523, 509, 381, 12, 13, /* 1540 */ 513, 514, 12, 13, 36, 112, 116, 116, 116, 556, /* 1550 */ 12, 13, 396, 545, 216, 82, 218, 524, 12, 13, /* 1560 */ 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, /* 1570 */ 538, 138, 139, 140, 141, 142, 143, 144, 1, 116, /* 1580 */ 116, 425, 116, 36, 116, 12, 13, 218, 250, 251, /* 1590 */ 252, 12, 13, 116, 116, 116, 19, 441, 33, 443, /* 1600 */ 33, 323, 12, 13, 266, 267, 268, 269, 270, 271, /* 1610 */ 272, 13, 467, 116, 116, 38, 12, 13, 381, 33, /* 1620 */ 145, 146, 147, 148, 149, 150, 151, 12, 13, 82, /* 1630 */ 53, 54, 467, 396, 36, 399, 33, 425, 412, 394, /* 1640 */ 63, 64, 65, 66, 488, 68, 33, 491, 453, 544, /* 1650 */ 412, 495, 496, 497, 498, 499, 500, 33, 502, 544, /* 1660 */ 544, 544, 425, 466, 453, 509, 521, 399, 467, 513, /* 1670 */ 514, 489, 396, 440, 529, 528, 218, 474, 441, 528, /* 1680 */ 443, 116, 453, 116, 453, 549, 521, 453, 515, 531, /* 1690 */ 54, 114, 547, 548, 529, 414, 119, 552, 553, 381, /* 1700 */ 8, 9, 116, 302, 12, 13, 14, 15, 16, 490, /* 1710 */ 468, 20, 547, 548, 396, 20, 395, 552, 553, 116, /* 1720 */ 233, 404, 521, 381, 484, 488, 479, 150, 491, 116, /* 1730 */ 529, 479, 495, 496, 497, 498, 499, 500, 396, 502, /* 1740 */ 116, 404, 381, 425, 470, 214, 509, 395, 547, 548, /* 1750 */ 513, 514, 20, 552, 553, 396, 47, 396, 450, 441, /* 1760 */ 396, 443, 450, 447, 190, 395, 395, 425, 396, 450, /* 1770 */ 447, 447, 195, 447, 197, 113, 408, 200, 111, 395, /* 1780 */ 407, 395, 205, 441, 110, 443, 425, 406, 395, 395, /* 1790 */ 395, 20, 52, 388, 479, 388, 404, 20, 392, 443, /* 1800 */ 392, 224, 441, 404, 443, 20, 488, 397, 20, 491, /* 1810 */ 381, 397, 469, 495, 496, 497, 498, 499, 500, 404, /* 1820 */ 502, 404, 20, 404, 404, 396, 20, 509, 404, 454, /* 1830 */ 488, 513, 514, 491, 460, 388, 395, 495, 496, 497, /* 1840 */ 498, 499, 500, 501, 502, 503, 504, 404, 404, 488, /* 1850 */ 381, 425, 491, 425, 425, 395, 495, 496, 497, 498, /* 1860 */ 499, 500, 425, 502, 425, 396, 384, 425, 384, 388, /* 1870 */ 441, 425, 443, 425, 237, 381, 425, 425, 425, 425, /* 1880 */ 115, 483, 402, 20, 221, 193, 441, 222, 479, 468, /* 1890 */ 396, 478, 481, 402, 425, 395, 441, 441, 476, 310, /* 1900 */ 443, 309, 475, 542, 543, 318, 441, 540, 207, 303, /* 1910 */ 441, 320, 443, 319, 537, 537, 537, 488, 381, 425, /* 1920 */ 491, 539, 461, 461, 495, 496, 497, 498, 499, 500, /* 1930 */ 298, 502, 536, 396, 534, 441, 297, 443, 468, 327, /* 1940 */ 557, 324, 551, 527, 381, 322, 396, 535, 126, 526, /* 1950 */ 20, 300, 397, 402, 402, 441, 461, 488, 441, 396, /* 1960 */ 491, 494, 425, 441, 495, 496, 497, 498, 499, 500, /* 1970 */ 532, 502, 461, 441, 441, 199, 458, 402, 441, 454, /* 1980 */ 443, 441, 488, 554, 555, 491, 381, 402, 425, 495, /* 1990 */ 496, 497, 498, 499, 500, 115, 502, 512, 441, 199, /* 2000 */ 455, 396, 465, 509, 441, 421, 443, 454, 514, 550, /* 2010 */ 402, 402, 543, 530, 396, 115, 395, 441, 22, 441, /* 2020 */ 35, 441, 441, 381, 441, 488, 430, 383, 491, 441, /* 2030 */ 425, 402, 495, 496, 497, 498, 499, 500, 396, 502, /* 2040 */ 441, 441, 441, 441, 386, 37, 441, 387, 443, 40, /* 2050 */ 389, 488, 441, 471, 491, 441, 388, 441, 495, 496, /* 2060 */ 497, 498, 499, 500, 379, 502, 441, 425, 441, 441, /* 2070 */ 465, 441, 441, 427, 441, 441, 441, 480, 403, 441, /* 2080 */ 487, 441, 462, 441, 462, 443, 427, 418, 418, 418, /* 2090 */ 0, 0, 0, 488, 47, 0, 491, 36, 243, 36, /* 2100 */ 495, 496, 497, 498, 499, 500, 36, 502, 36, 546, /* 2110 */ 381, 243, 0, 36, 36, 243, 36, 0, 0, 243, /* 2120 */ 0, 36, 0, 36, 0, 396, 22, 0, 238, 36, /* 2130 */ 488, 0, 381, 491, 224, 0, 224, 495, 496, 497, /* 2140 */ 498, 499, 500, 225, 502, 218, 0, 396, 216, 0, /* 2150 */ 0, 212, 211, 0, 425, 0, 158, 51, 51, 381, /* 2160 */ 0, 36, 0, 0, 36, 54, 0, 51, 0, 0, /* 2170 */ 441, 0, 443, 47, 396, 0, 425, 0, 0, 0, /* 2180 */ 51, 0, 0, 0, 36, 0, 176, 176, 0, 0, /* 2190 */ 0, 0, 441, 0, 443, 0, 381, 555, 0, 0, /* 2200 */ 0, 0, 0, 425, 0, 0, 0, 0, 0, 0, /* 2210 */ 0, 396, 0, 0, 0, 51, 465, 488, 0, 441, /* 2220 */ 491, 443, 0, 381, 495, 496, 497, 498, 499, 500, /* 2230 */ 0, 502, 0, 504, 47, 0, 0, 0, 396, 488, /* 2240 */ 425, 0, 491, 465, 0, 381, 495, 496, 497, 498, /* 2250 */ 499, 500, 0, 502, 158, 22, 441, 0, 443, 157, /* 2260 */ 396, 0, 0, 0, 156, 22, 488, 425, 52, 491, /* 2270 */ 22, 52, 381, 495, 496, 497, 498, 499, 500, 0, /* 2280 */ 502, 0, 0, 441, 0, 443, 36, 396, 68, 425, /* 2290 */ 0, 68, 68, 68, 0, 36, 54, 44, 0, 54, /* 2300 */ 36, 0, 44, 488, 36, 441, 491, 443, 54, 381, /* 2310 */ 495, 496, 497, 498, 499, 500, 425, 502, 44, 0, /* 2320 */ 0, 36, 47, 51, 396, 33, 14, 44, 51, 51, /* 2330 */ 488, 0, 441, 491, 443, 0, 45, 495, 496, 497, /* 2340 */ 498, 499, 500, 44, 502, 0, 0, 0, 44, 207, /* 2350 */ 381, 51, 488, 425, 0, 491, 0, 51, 0, 495, /* 2360 */ 496, 497, 498, 499, 500, 396, 502, 0, 0, 441, /* 2370 */ 0, 443, 76, 36, 44, 54, 0, 36, 54, 488, /* 2380 */ 44, 0, 491, 54, 36, 381, 495, 496, 497, 498, /* 2390 */ 499, 500, 0, 502, 425, 36, 44, 54, 0, 44, /* 2400 */ 396, 0, 0, 0, 0, 0, 22, 36, 0, 22, /* 2410 */ 441, 36, 443, 125, 36, 36, 488, 381, 123, 491, /* 2420 */ 0, 36, 36, 495, 496, 497, 498, 499, 500, 425, /* 2430 */ 502, 36, 396, 36, 0, 36, 381, 22, 22, 22, /* 2440 */ 33, 0, 36, 33, 22, 441, 56, 443, 36, 36, /* 2450 */ 36, 396, 0, 22, 0, 36, 0, 488, 0, 36, /* 2460 */ 491, 425, 0, 36, 495, 496, 497, 498, 499, 500, /* 2470 */ 0, 502, 36, 0, 36, 22, 36, 441, 36, 443, /* 2480 */ 425, 20, 381, 0, 229, 116, 193, 115, 228, 115, /* 2490 */ 223, 0, 488, 36, 51, 491, 441, 396, 443, 495, /* 2500 */ 496, 497, 498, 499, 500, 0, 502, 193, 22, 22, /* 2510 */ 193, 0, 199, 0, 381, 193, 219, 3, 203, 193, /* 2520 */ 36, 203, 33, 52, 488, 116, 425, 491, 36, 396, /* 2530 */ 304, 495, 496, 497, 498, 499, 500, 116, 502, 115, /* 2540 */ 115, 115, 441, 488, 443, 113, 491, 52, 51, 116, /* 2550 */ 495, 496, 497, 498, 499, 500, 111, 502, 425, 33, /* 2560 */ 33, 33, 116, 115, 115, 115, 33, 116, 51, 304, /* 2570 */ 115, 33, 82, 36, 441, 116, 443, 3, 381, 115, /* 2580 */ 33, 116, 116, 116, 304, 36, 36, 36, 36, 488, /* 2590 */ 36, 36, 491, 396, 116, 51, 495, 496, 497, 498, /* 2600 */ 499, 500, 381, 502, 288, 33, 0, 51, 0, 115, /* 2610 */ 44, 0, 116, 44, 116, 115, 115, 396, 115, 0, /* 2620 */ 116, 488, 425, 115, 491, 196, 196, 381, 495, 496, /* 2630 */ 497, 498, 499, 500, 44, 502, 33, 113, 441, 200, /* 2640 */ 443, 275, 396, 113, 2, 22, 425, 116, 252, 51, /* 2650 */ 116, 115, 51, 22, 115, 195, 115, 115, 115, 0, /* 2660 */ 44, 116, 441, 115, 443, 196, 255, 381, 115, 0, /* 2670 */ 22, 425, 51, 116, 115, 115, 118, 116, 115, 115, /* 2680 */ 115, 36, 396, 115, 117, 488, 115, 441, 491, 443, /* 2690 */ 115, 381, 495, 496, 497, 498, 499, 500, 116, 502, /* 2700 */ 115, 22, 126, 22, 229, 22, 396, 116, 36, 488, /* 2710 */ 115, 425, 491, 116, 36, 115, 495, 496, 497, 498, /* 2720 */ 499, 500, 36, 502, 36, 116, 116, 441, 116, 443, /* 2730 */ 36, 116, 381, 36, 488, 425, 137, 491, 33, 137, /* 2740 */ 115, 495, 496, 497, 498, 499, 500, 396, 502, 115, /* 2750 */ 137, 441, 36, 443, 137, 115, 22, 22, 76, 75, /* 2760 */ 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, /* 2770 */ 109, 82, 381, 36, 488, 82, 425, 491, 33, 109, /* 2780 */ 36, 495, 496, 497, 498, 499, 500, 396, 502, 36, /* 2790 */ 36, 22, 441, 36, 443, 36, 36, 82, 488, 381, /* 2800 */ 36, 491, 36, 36, 36, 495, 496, 497, 498, 499, /* 2810 */ 500, 36, 502, 22, 396, 36, 425, 0, 381, 36, /* 2820 */ 44, 0, 36, 0, 54, 54, 44, 54, 36, 44, /* 2830 */ 0, 36, 441, 396, 443, 54, 0, 44, 36, 488, /* 2840 */ 0, 22, 491, 425, 36, 0, 495, 496, 497, 498, /* 2850 */ 499, 500, 36, 502, 22, 33, 36, 22, 21, 441, /* 2860 */ 22, 443, 425, 22, 21, 558, 20, 558, 558, 558, /* 2870 */ 558, 558, 558, 558, 558, 558, 558, 558, 441, 488, /* 2880 */ 443, 558, 491, 381, 558, 558, 495, 496, 497, 498, /* 2890 */ 499, 500, 558, 502, 558, 558, 381, 558, 396, 558, /* 2900 */ 558, 558, 558, 558, 558, 558, 488, 558, 558, 491, /* 2910 */ 558, 396, 558, 495, 496, 497, 498, 499, 500, 558, /* 2920 */ 502, 558, 558, 558, 558, 488, 558, 425, 491, 558, /* 2930 */ 558, 558, 495, 496, 497, 498, 499, 500, 558, 502, /* 2940 */ 425, 558, 558, 441, 558, 443, 558, 558, 558, 558, /* 2950 */ 558, 558, 558, 558, 558, 558, 441, 558, 443, 558, /* 2960 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 2970 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 2980 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 2990 */ 488, 558, 558, 491, 558, 558, 558, 495, 496, 497, /* 3000 */ 498, 499, 500, 488, 502, 558, 491, 558, 558, 558, /* 3010 */ 495, 496, 497, 498, 499, 500, 558, 502, 558, 558, /* 3020 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3030 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3040 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3050 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3060 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3070 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3080 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3090 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3100 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3110 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3120 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3130 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3140 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3150 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3160 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3170 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3180 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3190 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3200 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3210 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3220 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3230 */ 558, 558, 558, 558, 558, 558, 558, 558, 558, 558, /* 3240 */ 558, 558, 558, 558, 558, 378, 378, 378, 378, 378, /* 3250 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3260 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3270 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3280 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3290 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3300 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3310 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3320 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3330 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3340 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3350 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3360 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3370 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3380 */ 378, 378, 378, 378, 378, 378, 378, 378, 378, 378, /* 3390 */ 378, 378, 378, 378, 378, 378, }; #define YY_SHIFT_COUNT (978) #define YY_SHIFT_MIN (0) #define YY_SHIFT_MAX (2846) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 347, 0, 83, 0, 346, 346, 346, 346, 346, 346, /* 10 */ 346, 346, 346, 346, 346, 346, 429, 691, 691, 774, /* 20 */ 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, /* 30 */ 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, /* 40 */ 691, 691, 691, 691, 691, 691, 691, 691, 691, 691, /* 50 */ 102, 116, 534, 212, 408, 766, 408, 408, 212, 212, /* 60 */ 408, 1175, 408, 950, 1175, 623, 408, 20, 1338, 432, /* 70 */ 432, 214, 214, 1338, 1338, 459, 459, 432, 437, 437, /* 80 */ 74, 3, 3, 50, 52, 214, 214, 214, 214, 214, /* 90 */ 214, 214, 214, 214, 214, 214, 286, 407, 473, 214, /* 100 */ 214, 37, 20, 214, 286, 214, 20, 214, 214, 214, /* 110 */ 214, 20, 214, 214, 214, 20, 214, 20, 20, 20, /* 120 */ 636, 39, 39, 523, 523, 1433, 647, 236, 489, 1038, /* 130 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, /* 140 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1222, 743, /* 150 */ 437, 74, 1035, 1035, 790, 261, 261, 261, 632, 632, /* 160 */ 496, 461, 790, 37, 20, 613, 20, 20, 483, 20, /* 170 */ 20, 792, 20, 792, 792, 764, 1227, 523, 523, 523, /* 180 */ 523, 523, 523, 1577, 302, 405, 563, 348, 348, 763, /* 190 */ 599, 363, 330, 700, 122, 49, 747, 61, 61, 1086, /* 200 */ 692, 901, 901, 901, 947, 901, 543, 1041, 1228, 1010, /* 210 */ 1049, 452, 1051, 1166, 1166, 1172, 1320, 1320, 1103, 820, /* 220 */ 981, 1166, 461, 1401, 1636, 1691, 1695, 1487, 37, 1695, /* 230 */ 37, 1531, 1691, 1732, 1709, 1732, 1709, 1574, 1691, 1732, /* 240 */ 1691, 1709, 1574, 1574, 1574, 1662, 1667, 1691, 1691, 1674, /* 250 */ 1691, 1691, 1691, 1771, 1740, 1771, 1740, 1695, 37, 37, /* 260 */ 1777, 37, 1785, 1788, 37, 1785, 37, 1802, 37, 1806, /* 270 */ 37, 37, 1691, 37, 1771, 20, 20, 20, 20, 20, /* 280 */ 20, 20, 20, 20, 20, 20, 1691, 1227, 1227, 1771, /* 290 */ 792, 792, 792, 1637, 1765, 1695, 636, 1863, 1665, 1663, /* 300 */ 1777, 636, 1401, 1691, 792, 1589, 1592, 1589, 1592, 1587, /* 310 */ 1701, 1589, 1591, 1594, 1606, 1401, 1632, 1639, 1612, 1617, /* 320 */ 1623, 1732, 1930, 1822, 1651, 1785, 636, 636, 1592, 792, /* 330 */ 792, 792, 792, 1592, 792, 1776, 636, 792, 1806, 636, /* 340 */ 1880, 792, 1800, 1806, 636, 764, 636, 1732, 792, 792, /* 350 */ 792, 792, 792, 792, 792, 792, 792, 792, 792, 792, /* 360 */ 792, 792, 792, 792, 792, 792, 792, 792, 792, 792, /* 370 */ 1900, 792, 1691, 636, 1996, 1985, 2008, 2009, 1771, 3018, /* 380 */ 3018, 3018, 3018, 3018, 3018, 3018, 3018, 3018, 3018, 3018, /* 390 */ 3018, 1077, 867, 648, 1206, 887, 1005, 1043, 1214, 1350, /* 400 */ 1692, 934, 1475, 1084, 1084, 1084, 1084, 1084, 1084, 1084, /* 410 */ 1084, 1084, 183, 512, 220, 693, 702, 702, 4, 616, /* 420 */ 811, 726, 542, 542, 145, 255, 542, 769, 683, 1209, /* 430 */ 856, 141, 141, 113, 160, 738, 113, 113, 113, 91, /* 440 */ 1241, 222, 925, 1301, 1019, 1249, 1388, 1272, 1287, 1291, /* 450 */ 1310, 1347, 1418, 1425, 558, 1397, 1449, 1450, 1164, 1283, /* 460 */ 1376, 1208, 1403, 1404, 1430, 1431, 1216, 1278, 1114, 1432, /* 470 */ 1463, 1464, 1476, 1466, 770, 1468, 1402, 1477, 1478, 1479, /* 480 */ 1497, 1498, 1501, 1520, 1526, 1530, 1538, 1546, 1573, 1579, /* 490 */ 1590, 1604, 1615, 1565, 1567, 1586, 1603, 1613, 1624, 1366, /* 500 */ 1473, 1369, 1458, 1508, 1598, 1547, 1440, 2090, 2091, 2092, /* 510 */ 2047, 2095, 2061, 1855, 2063, 2070, 2072, 1868, 2112, 2077, /* 520 */ 2078, 1872, 2080, 2117, 2118, 1876, 2120, 2085, 2122, 2087, /* 530 */ 2124, 2104, 2127, 2093, 1890, 2131, 1910, 2135, 1912, 1918, /* 540 */ 1927, 1932, 2146, 2149, 2150, 1939, 1941, 2153, 2155, 1998, /* 550 */ 2106, 2107, 2160, 2125, 2162, 2163, 2128, 2111, 2166, 2116, /* 560 */ 2168, 2126, 2169, 2171, 2175, 2129, 2177, 2178, 2179, 2181, /* 570 */ 2182, 2183, 2010, 2148, 2185, 2011, 2188, 2189, 2190, 2191, /* 580 */ 2193, 2195, 2198, 2199, 2200, 2201, 2202, 2204, 2205, 2206, /* 590 */ 2207, 2208, 2209, 2210, 2212, 2213, 2164, 2214, 2187, 2218, /* 600 */ 2222, 2230, 2232, 2235, 2236, 2237, 2241, 2244, 2233, 2252, /* 610 */ 2096, 2257, 2102, 2261, 2108, 2262, 2263, 2243, 2216, 2248, /* 620 */ 2219, 2279, 2220, 2281, 2223, 2250, 2282, 2224, 2284, 2225, /* 630 */ 2290, 2294, 2259, 2242, 2253, 2298, 2264, 2245, 2258, 2301, /* 640 */ 2268, 2254, 2274, 2319, 2285, 2320, 2275, 2283, 2292, 2272, /* 650 */ 2277, 2312, 2278, 2331, 2291, 2299, 2335, 2345, 2346, 2347, /* 660 */ 2304, 2142, 2354, 2272, 2300, 2356, 2272, 2306, 2358, 2367, /* 670 */ 2296, 2368, 2370, 2337, 2321, 2330, 2376, 2341, 2324, 2336, /* 680 */ 2381, 2348, 2329, 2352, 2392, 2359, 2343, 2355, 2398, 2401, /* 690 */ 2402, 2403, 2404, 2405, 2288, 2295, 2371, 2384, 2408, 2387, /* 700 */ 2375, 2378, 2379, 2385, 2386, 2395, 2397, 2399, 2406, 2407, /* 710 */ 2410, 2412, 2413, 2415, 2414, 2420, 2416, 2434, 2417, 2441, /* 720 */ 2422, 2390, 2452, 2431, 2419, 2454, 2456, 2458, 2423, 2462, /* 730 */ 2427, 2470, 2436, 2473, 2453, 2461, 2438, 2440, 2442, 2369, /* 740 */ 2372, 2483, 2293, 2255, 2260, 2374, 2267, 2272, 2443, 2491, /* 750 */ 2314, 2457, 2486, 2505, 2297, 2487, 2317, 2313, 2511, 2513, /* 760 */ 2322, 2315, 2326, 2318, 2514, 2489, 2226, 2424, 2409, 2425, /* 770 */ 2421, 2484, 2492, 2426, 2471, 2432, 2495, 2445, 2433, 2526, /* 780 */ 2527, 2446, 2448, 2449, 2450, 2451, 2528, 2497, 2517, 2455, /* 790 */ 2533, 2265, 2490, 2459, 2538, 2464, 2537, 2465, 2466, 2574, /* 800 */ 2547, 2280, 2549, 2550, 2551, 2552, 2554, 2555, 2467, 2478, /* 810 */ 2544, 2316, 2572, 2556, 2606, 2608, 2494, 2566, 2496, 2498, /* 820 */ 2500, 2501, 2429, 2503, 2611, 2569, 2439, 2619, 2504, 2508, /* 830 */ 2430, 2590, 2460, 2603, 2524, 2366, 2530, 2642, 2623, 2396, /* 840 */ 2531, 2534, 2536, 2539, 2541, 2542, 2543, 2545, 2598, 2548, /* 850 */ 2553, 2601, 2557, 2631, 2411, 2559, 2560, 2659, 2561, 2563, /* 860 */ 2469, 2616, 2564, 2567, 2669, 2648, 2558, 2565, 2272, 2621, /* 870 */ 2568, 2571, 2582, 2575, 2585, 2576, 2679, 2681, 2683, 2475, /* 880 */ 2591, 2645, 2672, 2595, 2597, 2678, 2600, 2609, 2686, 2536, /* 890 */ 2610, 2688, 2539, 2612, 2694, 2541, 2615, 2697, 2542, 2599, /* 900 */ 2602, 2613, 2617, 2625, 2705, 2634, 2716, 2640, 2705, 2705, /* 910 */ 2734, 2682, 2684, 2735, 2724, 2725, 2726, 2727, 2728, 2729, /* 920 */ 2730, 2731, 2732, 2733, 2737, 2689, 2661, 2693, 2670, 2745, /* 930 */ 2744, 2753, 2754, 2769, 2757, 2759, 2760, 2715, 2407, 2764, /* 940 */ 2410, 2766, 2767, 2768, 2775, 2791, 2779, 2817, 2783, 2770, /* 950 */ 2776, 2821, 2786, 2771, 2782, 2823, 2792, 2773, 2785, 2830, /* 960 */ 2795, 2781, 2793, 2836, 2802, 2840, 2819, 2808, 2845, 2832, /* 970 */ 2822, 2816, 2820, 2835, 2837, 2838, 2841, 2843, 2846, }; #define YY_REDUCE_COUNT (390) #define YY_REDUCE_MIN (-503) #define YY_REDUCE_MAX (2515) static const short yy_reduce_ofst[] = { /* 0 */ -239, -365, -325, -19, -202, 325, 366, 705, 810, 840, /* 10 */ 960, 991, 1027, 1156, 1237, 1318, 1342, 1361, 1429, 1494, /* 20 */ 1469, 1537, 1605, 1563, 1642, 1729, 1751, 1778, 1815, 1842, /* 30 */ 1864, 1891, 1928, 1969, 2004, 2036, 2055, 2101, 2133, 2197, /* 40 */ 2221, 2246, 2286, 2310, 2351, 2391, 2418, 2437, 2502, 2515, /* 50 */ -310, -61, -464, -362, 865, 955, 1145, 1165, -297, -271, /* 60 */ 1201, -412, -503, -384, -382, -82, 13, -393, -385, -436, /* 70 */ -356, -210, -21, -389, -324, -388, -247, -439, -142, 115, /* 80 */ 148, -198, -191, -359, 89, 173, 313, 345, 403, 409, /* 90 */ 435, 433, 440, 454, 578, 492, -337, 387, -10, 445, /* 100 */ 583, 472, 412, 601, 393, 614, 15, 653, 675, 794, /* 110 */ 837, 349, 844, 851, 874, 31, 877, 111, 375, 365, /* 120 */ 565, -501, -501, -66, -111, -223, 595, -100, 120, -231, /* 130 */ -3, 548, 753, 814, 817, 834, 836, 839, 843, 861, /* 140 */ 881, 904, 916, 932, 937, 948, 949, 974, -405, 530, /* 150 */ 87, 372, 704, 741, 869, 530, 806, 876, 434, 499, /* 160 */ 673, -224, 884, 228, 64, 893, -195, 547, 644, 863, /* 170 */ 718, 939, 871, 941, 943, -48, 919, -425, -411, 935, /* 180 */ 999, 1009, 1040, 1007, 1093, 1134, 1075, 1012, 1012, 993, /* 190 */ 1008, 1032, 1033, 1236, 1012, 1212, 1212, 1226, 1238, 1245, /* 200 */ 1195, 1105, 1115, 1116, 1197, 1117, 1212, 1211, 1268, 1182, /* 210 */ 1276, 1233, 1203, 1229, 1231, 1212, 1147, 1151, 1136, 1173, /* 220 */ 1158, 1234, 1281, 1242, 1219, 1321, 1247, 1240, 1317, 1252, /* 230 */ 1337, 1274, 1352, 1359, 1308, 1364, 1312, 1316, 1370, 1372, /* 240 */ 1371, 1319, 1323, 1324, 1326, 1368, 1373, 1384, 1386, 1381, /* 250 */ 1393, 1394, 1395, 1405, 1406, 1407, 1408, 1315, 1392, 1399, /* 260 */ 1356, 1415, 1410, 1343, 1417, 1414, 1419, 1374, 1420, 1375, /* 270 */ 1424, 1443, 1441, 1444, 1447, 1426, 1428, 1437, 1439, 1442, /* 280 */ 1446, 1448, 1451, 1452, 1453, 1454, 1460, 1482, 1484, 1481, /* 290 */ 1445, 1455, 1456, 1398, 1411, 1409, 1480, 1413, 1422, 1427, /* 300 */ 1457, 1491, 1421, 1500, 1465, 1377, 1461, 1378, 1462, 1367, /* 310 */ 1382, 1379, 1396, 1412, 1400, 1470, 1416, 1423, 1383, 1391, /* 320 */ 1459, 1550, 1467, 1438, 1483, 1555, 1551, 1552, 1495, 1514, /* 330 */ 1517, 1522, 1532, 1511, 1533, 1518, 1575, 1540, 1525, 1585, /* 340 */ 1485, 1557, 1545, 1553, 1608, 1584, 1609, 1618, 1576, 1578, /* 350 */ 1580, 1581, 1583, 1588, 1599, 1600, 1601, 1602, 1611, 1614, /* 360 */ 1616, 1625, 1627, 1628, 1630, 1631, 1633, 1634, 1635, 1638, /* 370 */ 1596, 1640, 1621, 1629, 1644, 1658, 1660, 1661, 1668, 1582, /* 380 */ 1646, 1593, 1597, 1620, 1622, 1669, 1670, 1659, 1671, 1675, /* 390 */ 1685, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 10 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 20 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 30 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 40 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 50 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 60 */ 2578, 2203, 2203, 2534, 2203, 2203, 2203, 2203, 2203, 2203, /* 70 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2541, 2541, /* 80 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 90 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 100 */ 2203, 2309, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 110 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 120 */ 2307, 2830, 2203, 2956, 2619, 2203, 2203, 2859, 2203, 2203, /* 130 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 140 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2842, /* 150 */ 2203, 2203, 2280, 2280, 2203, 2842, 2842, 2842, 2802, 2802, /* 160 */ 2307, 2203, 2203, 2309, 2203, 2621, 2203, 2203, 2203, 2203, /* 170 */ 2203, 2203, 2203, 2203, 2203, 2450, 2233, 2203, 2203, 2203, /* 180 */ 2203, 2203, 2203, 2604, 2203, 2203, 2888, 2834, 2835, 2950, /* 190 */ 2203, 2891, 2853, 2203, 2848, 2203, 2203, 2203, 2203, 2203, /* 200 */ 2878, 2203, 2203, 2203, 2203, 2203, 2203, 2546, 2203, 2647, /* 210 */ 2203, 2395, 2598, 2203, 2203, 2203, 2203, 2203, 2934, 2832, /* 220 */ 2872, 2203, 2203, 2882, 2203, 2203, 2203, 2635, 2309, 2203, /* 230 */ 2309, 2591, 2529, 2203, 2539, 2203, 2539, 2536, 2203, 2203, /* 240 */ 2203, 2539, 2536, 2536, 2536, 2383, 2379, 2203, 2203, 2377, /* 250 */ 2203, 2203, 2203, 2203, 2263, 2203, 2263, 2203, 2309, 2309, /* 260 */ 2203, 2309, 2203, 2203, 2309, 2203, 2309, 2203, 2309, 2203, /* 270 */ 2309, 2309, 2203, 2309, 2203, 2203, 2203, 2203, 2203, 2203, /* 280 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 290 */ 2203, 2203, 2203, 2633, 2614, 2203, 2307, 2203, 2602, 2600, /* 300 */ 2203, 2307, 2882, 2203, 2203, 2904, 2899, 2904, 2899, 2918, /* 310 */ 2914, 2904, 2923, 2920, 2884, 2882, 2865, 2861, 2953, 2940, /* 320 */ 2936, 2203, 2203, 2870, 2868, 2203, 2307, 2307, 2899, 2203, /* 330 */ 2203, 2203, 2203, 2899, 2203, 2203, 2307, 2203, 2203, 2307, /* 340 */ 2203, 2203, 2203, 2203, 2307, 2203, 2307, 2203, 2203, 2203, /* 350 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 360 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 370 */ 2412, 2203, 2203, 2307, 2203, 2235, 2237, 2247, 2203, 2593, /* 380 */ 2956, 2619, 2624, 2574, 2574, 2453, 2453, 2956, 2453, 2310, /* 390 */ 2208, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 400 */ 2203, 2203, 2203, 2917, 2916, 2753, 2203, 2806, 2805, 2804, /* 410 */ 2795, 2752, 2408, 2203, 2203, 2203, 2751, 2750, 2203, 2203, /* 420 */ 2203, 2203, 2399, 2396, 2203, 2203, 2421, 2203, 2203, 2203, /* 430 */ 2203, 2565, 2564, 2744, 2203, 2203, 2745, 2743, 2742, 2203, /* 440 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 450 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 460 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2937, 2941, 2203, /* 470 */ 2203, 2203, 2831, 2203, 2203, 2203, 2723, 2203, 2203, 2203, /* 480 */ 2203, 2203, 2691, 2686, 2677, 2668, 2683, 2674, 2662, 2680, /* 490 */ 2671, 2659, 2656, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 500 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 510 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 520 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 530 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 540 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2535, /* 550 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 560 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 570 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 580 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 590 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 600 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 610 */ 2203, 2203, 2203, 2203, 2550, 2203, 2203, 2203, 2203, 2203, /* 620 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 630 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 640 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2252, 2730, /* 650 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 660 */ 2203, 2203, 2203, 2733, 2203, 2203, 2734, 2203, 2203, 2203, /* 670 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 680 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 690 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 700 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2354, /* 710 */ 2353, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 720 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 730 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2735, /* 740 */ 2203, 2203, 2203, 2203, 2618, 2203, 2203, 2725, 2203, 2203, /* 750 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 760 */ 2203, 2203, 2203, 2203, 2933, 2885, 2203, 2203, 2203, 2203, /* 770 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 780 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2723, 2203, /* 790 */ 2915, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2931, 2203, /* 800 */ 2935, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2841, 2837, /* 810 */ 2203, 2203, 2833, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 820 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 830 */ 2203, 2203, 2203, 2792, 2203, 2203, 2203, 2826, 2203, 2203, /* 840 */ 2203, 2203, 2449, 2448, 2447, 2446, 2203, 2203, 2203, 2203, /* 850 */ 2203, 2203, 2735, 2203, 2738, 2203, 2203, 2203, 2203, 2203, /* 860 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2722, 2203, /* 870 */ 2777, 2776, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 880 */ 2203, 2203, 2203, 2443, 2203, 2203, 2203, 2203, 2203, 2203, /* 890 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2427, /* 900 */ 2425, 2424, 2423, 2203, 2460, 2203, 2203, 2203, 2456, 2455, /* 910 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 920 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2328, /* 930 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2320, 2203, /* 940 */ 2319, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 950 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 960 */ 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, /* 970 */ 2232, 2203, 2203, 2203, 2203, 2203, 2203, 2203, 2203, }; /********** End of lemon-generated parsing tables *****************************/ /* The next table maps tokens (terminal symbols) into fallback tokens. ** If a construct like the following: ** ** %fallback ID X Y Z. ** ** appears in the grammar, then ID becomes a fallback token for X, Y, ** and Z. Whenever one of the tokens X, Y, or Z is input to the parser ** but it does not parse, the type of the token is changed to ID and ** the parse is retried before an error is thrown. ** ** This feature can be used, for example, to cause some keywords in a language ** to revert to identifiers if they keyword does not apply in the context where ** it appears. */ #ifdef YYFALLBACK static const YYCODETYPE yyFallback[] = { 0, /* $ => nothing */ 0, /* OR => nothing */ 0, /* AND => nothing */ 0, /* UNION => nothing */ 0, /* ALL => nothing */ 0, /* MINUS => nothing */ 0, /* EXCEPT => nothing */ 0, /* INTERSECT => nothing */ 0, /* NK_BITAND => nothing */ 0, /* NK_BITOR => nothing */ 0, /* NK_LSHIFT => nothing */ 0, /* NK_RSHIFT => nothing */ 0, /* NK_PLUS => nothing */ 0, /* NK_MINUS => nothing */ 0, /* NK_STAR => nothing */ 0, /* NK_SLASH => nothing */ 0, /* NK_REM => nothing */ 0, /* NK_CONCAT => nothing */ 0, /* CREATE => nothing */ 0, /* ACCOUNT => nothing */ 0, /* NK_ID => nothing */ 0, /* PASS => nothing */ 0, /* NK_STRING => nothing */ 0, /* ALTER => nothing */ 0, /* PPS => nothing */ 0, /* TSERIES => nothing */ 0, /* STORAGE => nothing */ 0, /* STREAMS => nothing */ 0, /* QTIME => nothing */ 0, /* DBS => nothing */ 0, /* USERS => nothing */ 0, /* CONNS => nothing */ 0, /* STATE => nothing */ 0, /* NK_COMMA => nothing */ 0, /* HOST => nothing */ 0, /* IS_IMPORT => nothing */ 0, /* NK_INTEGER => nothing */ 0, /* CREATEDB => nothing */ 0, /* USER => nothing */ 0, /* ENABLE => nothing */ 0, /* SYSINFO => nothing */ 0, /* ADD => nothing */ 0, /* DROP => nothing */ 0, /* GRANT => nothing */ 0, /* ON => nothing */ 0, /* TO => nothing */ 0, /* REVOKE => nothing */ 0, /* FROM => nothing */ 0, /* SUBSCRIBE => nothing */ 0, /* READ => nothing */ 0, /* WRITE => nothing */ 0, /* NK_DOT => nothing */ 0, /* WITH => nothing */ 0, /* ENCRYPT_KEY => nothing */ 0, /* DNODE => nothing */ 0, /* PORT => nothing */ 0, /* DNODES => nothing */ 0, /* RESTORE => nothing */ 0, /* NK_IPTOKEN => nothing */ 0, /* FORCE => nothing */ 0, /* UNSAFE => nothing */ 0, /* CLUSTER => nothing */ 0, /* LOCAL => nothing */ 0, /* QNODE => nothing */ 0, /* BNODE => nothing */ 0, /* SNODE => nothing */ 0, /* MNODE => nothing */ 0, /* VNODE => nothing */ 0, /* DATABASE => nothing */ 0, /* USE => nothing */ 0, /* FLUSH => nothing */ 0, /* TRIM => nothing */ 0, /* S3MIGRATE => nothing */ 0, /* COMPACT => nothing */ 0, /* IF => nothing */ 0, /* NOT => nothing */ 0, /* EXISTS => nothing */ 0, /* BUFFER => nothing */ 0, /* CACHEMODEL => nothing */ 0, /* CACHESIZE => nothing */ 0, /* COMP => nothing */ 0, /* DURATION => nothing */ 0, /* NK_VARIABLE => nothing */ 0, /* MAXROWS => nothing */ 0, /* MINROWS => nothing */ 0, /* KEEP => nothing */ 0, /* PAGES => nothing */ 0, /* PAGESIZE => nothing */ 0, /* TSDB_PAGESIZE => nothing */ 0, /* PRECISION => nothing */ 0, /* REPLICA => nothing */ 0, /* VGROUPS => nothing */ 0, /* SINGLE_STABLE => nothing */ 0, /* RETENTIONS => nothing */ 0, /* SCHEMALESS => nothing */ 0, /* WAL_LEVEL => nothing */ 0, /* WAL_FSYNC_PERIOD => nothing */ 0, /* WAL_RETENTION_PERIOD => nothing */ 0, /* WAL_RETENTION_SIZE => nothing */ 0, /* WAL_ROLL_PERIOD => nothing */ 0, /* WAL_SEGMENT_SIZE => nothing */ 0, /* STT_TRIGGER => nothing */ 0, /* TABLE_PREFIX => nothing */ 0, /* TABLE_SUFFIX => nothing */ 0, /* S3_CHUNKSIZE => nothing */ 0, /* S3_KEEPLOCAL => nothing */ 0, /* S3_COMPACT => nothing */ 0, /* KEEP_TIME_OFFSET => nothing */ 0, /* ENCRYPT_ALGORITHM => nothing */ 0, /* NK_COLON => nothing */ 0, /* BWLIMIT => nothing */ 0, /* START => nothing */ 0, /* TIMESTAMP => nothing */ 328, /* END => ABORT */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ 0, /* USING => nothing */ 328, /* FILE => ABORT */ 0, /* STABLE => nothing */ 0, /* COLUMN => nothing */ 0, /* MODIFY => nothing */ 0, /* RENAME => nothing */ 0, /* TAG => nothing */ 0, /* SET => nothing */ 0, /* NK_EQ => nothing */ 0, /* TAGS => nothing */ 0, /* BOOL => nothing */ 0, /* TINYINT => nothing */ 0, /* SMALLINT => nothing */ 0, /* INT => nothing */ 0, /* INTEGER => nothing */ 0, /* BIGINT => nothing */ 0, /* FLOAT => nothing */ 0, /* DOUBLE => nothing */ 0, /* BINARY => nothing */ 0, /* NCHAR => nothing */ 0, /* UNSIGNED => nothing */ 0, /* JSON => nothing */ 0, /* VARCHAR => nothing */ 0, /* MEDIUMBLOB => nothing */ 0, /* BLOB => nothing */ 0, /* VARBINARY => nothing */ 0, /* GEOMETRY => nothing */ 0, /* DECIMAL => nothing */ 0, /* COMMENT => nothing */ 0, /* MAX_DELAY => nothing */ 0, /* WATERMARK => nothing */ 0, /* ROLLUP => nothing */ 0, /* TTL => nothing */ 0, /* SMA => nothing */ 0, /* DELETE_MARK => nothing */ 0, /* FIRST => nothing */ 0, /* LAST => nothing */ 0, /* SHOW => nothing */ 0, /* FULL => nothing */ 0, /* PRIVILEGES => nothing */ 0, /* DATABASES => nothing */ 0, /* TABLES => nothing */ 0, /* STABLES => nothing */ 0, /* MNODES => nothing */ 0, /* QNODES => nothing */ 0, /* ARBGROUPS => nothing */ 0, /* FUNCTIONS => nothing */ 0, /* INDEXES => nothing */ 0, /* ACCOUNTS => nothing */ 0, /* APPS => nothing */ 0, /* CONNECTIONS => nothing */ 0, /* LICENCES => nothing */ 0, /* GRANTS => nothing */ 0, /* LOGS => nothing */ 0, /* MACHINES => nothing */ 0, /* ENCRYPTIONS => nothing */ 0, /* QUERIES => nothing */ 0, /* SCORES => nothing */ 0, /* TOPICS => nothing */ 0, /* VARIABLES => nothing */ 0, /* BNODES => nothing */ 0, /* SNODES => nothing */ 0, /* TRANSACTIONS => nothing */ 0, /* DISTRIBUTED => nothing */ 0, /* CONSUMERS => nothing */ 0, /* SUBSCRIPTIONS => nothing */ 0, /* VNODES => nothing */ 0, /* ALIVE => nothing */ 0, /* VIEWS => nothing */ 328, /* VIEW => ABORT */ 0, /* COMPACTS => nothing */ 0, /* NORMAL => nothing */ 0, /* CHILD => nothing */ 0, /* LIKE => nothing */ 0, /* TBNAME => nothing */ 0, /* QTAGS => nothing */ 0, /* AS => nothing */ 0, /* SYSTEM => nothing */ 0, /* TSMA => nothing */ 0, /* INTERVAL => nothing */ 0, /* RECURSIVE => nothing */ 0, /* TSMAS => nothing */ 0, /* FUNCTION => nothing */ 0, /* INDEX => nothing */ 0, /* COUNT => nothing */ 0, /* LAST_ROW => nothing */ 0, /* META => nothing */ 0, /* ONLY => nothing */ 0, /* TOPIC => nothing */ 0, /* CONSUMER => nothing */ 0, /* GROUP => nothing */ 0, /* DESC => nothing */ 0, /* DESCRIBE => nothing */ 0, /* RESET => nothing */ 0, /* QUERY => nothing */ 0, /* CACHE => nothing */ 0, /* EXPLAIN => nothing */ 0, /* ANALYZE => nothing */ 0, /* VERBOSE => nothing */ 0, /* NK_BOOL => nothing */ 0, /* RATIO => nothing */ 0, /* NK_FLOAT => nothing */ 0, /* OUTPUTTYPE => nothing */ 0, /* AGGREGATE => nothing */ 0, /* BUFSIZE => nothing */ 0, /* LANGUAGE => nothing */ 0, /* REPLACE => nothing */ 0, /* STREAM => nothing */ 0, /* INTO => nothing */ 0, /* PAUSE => nothing */ 0, /* RESUME => nothing */ 0, /* PRIMARY => nothing */ 328, /* KEY => ABORT */ 0, /* TRIGGER => nothing */ 0, /* AT_ONCE => nothing */ 0, /* WINDOW_CLOSE => nothing */ 0, /* IGNORE => nothing */ 0, /* EXPIRED => nothing */ 0, /* FILL_HISTORY => nothing */ 0, /* UPDATE => nothing */ 0, /* SUBTABLE => nothing */ 0, /* UNTREATED => nothing */ 0, /* KILL => nothing */ 0, /* CONNECTION => nothing */ 0, /* TRANSACTION => nothing */ 0, /* BALANCE => nothing */ 0, /* VGROUP => nothing */ 0, /* LEADER => nothing */ 0, /* MERGE => nothing */ 0, /* REDISTRIBUTE => nothing */ 0, /* SPLIT => nothing */ 0, /* DELETE => nothing */ 0, /* INSERT => nothing */ 0, /* NK_BIN => nothing */ 0, /* NK_HEX => nothing */ 0, /* NULL => nothing */ 0, /* NK_QUESTION => nothing */ 0, /* NK_ALIAS => nothing */ 0, /* NK_ARROW => nothing */ 0, /* ROWTS => nothing */ 0, /* QSTART => nothing */ 0, /* QEND => nothing */ 0, /* QDURATION => nothing */ 0, /* WSTART => nothing */ 0, /* WEND => nothing */ 0, /* WDURATION => nothing */ 0, /* IROWTS => nothing */ 0, /* ISFILLED => nothing */ 0, /* CAST => nothing */ 0, /* NOW => nothing */ 0, /* TODAY => nothing */ 0, /* TIMEZONE => nothing */ 0, /* CLIENT_VERSION => nothing */ 0, /* SERVER_VERSION => nothing */ 0, /* SERVER_STATUS => nothing */ 0, /* CURRENT_USER => nothing */ 0, /* CASE => nothing */ 0, /* WHEN => nothing */ 0, /* THEN => nothing */ 0, /* ELSE => nothing */ 0, /* BETWEEN => nothing */ 0, /* IS => nothing */ 0, /* NK_LT => nothing */ 0, /* NK_GT => nothing */ 0, /* NK_LE => nothing */ 0, /* NK_GE => nothing */ 0, /* NK_NE => nothing */ 0, /* MATCH => nothing */ 0, /* NMATCH => nothing */ 0, /* CONTAINS => nothing */ 0, /* IN => nothing */ 0, /* JOIN => nothing */ 0, /* INNER => nothing */ 0, /* LEFT => nothing */ 0, /* RIGHT => nothing */ 0, /* OUTER => nothing */ 328, /* SEMI => ABORT */ 0, /* ANTI => nothing */ 0, /* ASOF => nothing */ 0, /* WINDOW => nothing */ 0, /* WINDOW_OFFSET => nothing */ 0, /* JLIMIT => nothing */ 0, /* SELECT => nothing */ 0, /* NK_HINT => nothing */ 0, /* DISTINCT => nothing */ 0, /* WHERE => nothing */ 0, /* PARTITION => nothing */ 0, /* BY => nothing */ 0, /* SESSION => nothing */ 0, /* STATE_WINDOW => nothing */ 0, /* EVENT_WINDOW => nothing */ 0, /* COUNT_WINDOW => nothing */ 0, /* SLIDING => nothing */ 0, /* FILL => nothing */ 0, /* VALUE => nothing */ 0, /* VALUE_F => nothing */ 0, /* NONE => nothing */ 0, /* PREV => nothing */ 0, /* NULL_F => nothing */ 0, /* LINEAR => nothing */ 0, /* NEXT => nothing */ 0, /* HAVING => nothing */ 0, /* RANGE => nothing */ 0, /* EVERY => nothing */ 0, /* ORDER => nothing */ 0, /* SLIMIT => nothing */ 0, /* SOFFSET => nothing */ 0, /* LIMIT => nothing */ 0, /* OFFSET => nothing */ 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ABORT => nothing */ 328, /* AFTER => ABORT */ 328, /* ATTACH => ABORT */ 328, /* BEFORE => ABORT */ 328, /* BEGIN => ABORT */ 328, /* BITAND => ABORT */ 328, /* BITNOT => ABORT */ 328, /* BITOR => ABORT */ 328, /* BLOCKS => ABORT */ 328, /* CHANGE => ABORT */ 328, /* COMMA => ABORT */ 328, /* CONCAT => ABORT */ 328, /* CONFLICT => ABORT */ 328, /* COPY => ABORT */ 328, /* DEFERRED => ABORT */ 328, /* DELIMITERS => ABORT */ 328, /* DETACH => ABORT */ 328, /* DIVIDE => ABORT */ 328, /* DOT => ABORT */ 328, /* EACH => ABORT */ 328, /* FAIL => ABORT */ 328, /* FOR => ABORT */ 328, /* GLOB => ABORT */ 328, /* ID => ABORT */ 328, /* IMMEDIATE => ABORT */ 328, /* IMPORT => ABORT */ 328, /* INITIALLY => ABORT */ 328, /* INSTEAD => ABORT */ 328, /* ISNULL => ABORT */ 328, /* MODULES => ABORT */ 328, /* NK_BITNOT => ABORT */ 328, /* NK_SEMI => ABORT */ 328, /* NOTNULL => ABORT */ 328, /* OF => ABORT */ 328, /* PLUS => ABORT */ 328, /* PRIVILEGE => ABORT */ 328, /* RAISE => ABORT */ 328, /* RESTRICT => ABORT */ 328, /* ROW => ABORT */ 328, /* STAR => ABORT */ 328, /* STATEMENT => ABORT */ 328, /* STRICT => ABORT */ 328, /* STRING => ABORT */ 328, /* TIMES => ABORT */ 328, /* VALUES => ABORT */ 328, /* VARIABLE => ABORT */ 328, /* WAL => ABORT */ 0, /* ENCODE => nothing */ 0, /* COMPRESS => nothing */ 0, /* LEVEL => nothing */ }; #endif /* YYFALLBACK */ /* The following structure represents a single element of the ** parser's stack. Information stored includes: ** ** + The state number for the parser at this level of the stack. ** ** + The value of the token stored at this level of the stack. ** (In other words, the "major" token.) ** ** + The semantic value stored at this level of the stack. This is ** the information used by the action routines in the grammar. ** It is sometimes called the "minor" token. ** ** After the "shift" half of a SHIFTREDUCE action, the stateno field ** actually contains the reduce action for the second half of the ** SHIFTREDUCE. */ struct yyStackEntry { YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */ YYCODETYPE major; /* The major token value. This is the code ** number for the token at this stack level */ YYMINORTYPE minor; /* The user-supplied minor token value. This ** is the value of the token */ }; typedef struct yyStackEntry yyStackEntry; /* The state of the parser is completely contained in an instance of ** the following structure */ struct yyParser { yyStackEntry *yytos; /* Pointer to top element of the stack */ #ifdef YYTRACKMAXSTACKDEPTH int yyhwm; /* High-water mark of the stack */ #endif #ifndef YYNOERRORRECOVERY int yyerrcnt; /* Shifts left before out of the error */ #endif ParseARG_SDECL /* A place to hold %extra_argument */ ParseCTX_SDECL /* A place to hold %extra_context */ #if YYSTACKDEPTH<=0 int yystksz; /* Current side of the stack */ yyStackEntry *yystack; /* The parser's stack */ yyStackEntry yystk0; /* First stack entry */ #else yyStackEntry yystack[YYSTACKDEPTH]; /* The parser's stack */ yyStackEntry *yystackEnd; /* Last entry in the stack */ #endif }; typedef struct yyParser yyParser; #include #ifndef NDEBUG #include 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: **
    **
  • A FILE* to which trace output should be written. ** If NULL, then tracing is turned off. **
  • A prefix string written at the beginning of every ** line of trace output. If NULL, then tracing is ** turned off. **
** ** Outputs: ** None. */ void ParseTrace(FILE *TraceFILE, char *zTracePrompt){ yyTraceFILE = TraceFILE; yyTracePrompt = zTracePrompt; if( yyTraceFILE==0 ) yyTracePrompt = 0; else if( yyTracePrompt==0 ) yyTraceFILE = 0; } #endif /* NDEBUG */ #if defined(YYCOVERAGE) || !defined(NDEBUG) /* For tracing shifts, the names of all terminals and nonterminals ** are required. The following table supplies these names */ static const char *const yyTokenName[] = { /* 0 */ "$", /* 1 */ "OR", /* 2 */ "AND", /* 3 */ "UNION", /* 4 */ "ALL", /* 5 */ "MINUS", /* 6 */ "EXCEPT", /* 7 */ "INTERSECT", /* 8 */ "NK_BITAND", /* 9 */ "NK_BITOR", /* 10 */ "NK_LSHIFT", /* 11 */ "NK_RSHIFT", /* 12 */ "NK_PLUS", /* 13 */ "NK_MINUS", /* 14 */ "NK_STAR", /* 15 */ "NK_SLASH", /* 16 */ "NK_REM", /* 17 */ "NK_CONCAT", /* 18 */ "CREATE", /* 19 */ "ACCOUNT", /* 20 */ "NK_ID", /* 21 */ "PASS", /* 22 */ "NK_STRING", /* 23 */ "ALTER", /* 24 */ "PPS", /* 25 */ "TSERIES", /* 26 */ "STORAGE", /* 27 */ "STREAMS", /* 28 */ "QTIME", /* 29 */ "DBS", /* 30 */ "USERS", /* 31 */ "CONNS", /* 32 */ "STATE", /* 33 */ "NK_COMMA", /* 34 */ "HOST", /* 35 */ "IS_IMPORT", /* 36 */ "NK_INTEGER", /* 37 */ "CREATEDB", /* 38 */ "USER", /* 39 */ "ENABLE", /* 40 */ "SYSINFO", /* 41 */ "ADD", /* 42 */ "DROP", /* 43 */ "GRANT", /* 44 */ "ON", /* 45 */ "TO", /* 46 */ "REVOKE", /* 47 */ "FROM", /* 48 */ "SUBSCRIBE", /* 49 */ "READ", /* 50 */ "WRITE", /* 51 */ "NK_DOT", /* 52 */ "WITH", /* 53 */ "ENCRYPT_KEY", /* 54 */ "DNODE", /* 55 */ "PORT", /* 56 */ "DNODES", /* 57 */ "RESTORE", /* 58 */ "NK_IPTOKEN", /* 59 */ "FORCE", /* 60 */ "UNSAFE", /* 61 */ "CLUSTER", /* 62 */ "LOCAL", /* 63 */ "QNODE", /* 64 */ "BNODE", /* 65 */ "SNODE", /* 66 */ "MNODE", /* 67 */ "VNODE", /* 68 */ "DATABASE", /* 69 */ "USE", /* 70 */ "FLUSH", /* 71 */ "TRIM", /* 72 */ "S3MIGRATE", /* 73 */ "COMPACT", /* 74 */ "IF", /* 75 */ "NOT", /* 76 */ "EXISTS", /* 77 */ "BUFFER", /* 78 */ "CACHEMODEL", /* 79 */ "CACHESIZE", /* 80 */ "COMP", /* 81 */ "DURATION", /* 82 */ "NK_VARIABLE", /* 83 */ "MAXROWS", /* 84 */ "MINROWS", /* 85 */ "KEEP", /* 86 */ "PAGES", /* 87 */ "PAGESIZE", /* 88 */ "TSDB_PAGESIZE", /* 89 */ "PRECISION", /* 90 */ "REPLICA", /* 91 */ "VGROUPS", /* 92 */ "SINGLE_STABLE", /* 93 */ "RETENTIONS", /* 94 */ "SCHEMALESS", /* 95 */ "WAL_LEVEL", /* 96 */ "WAL_FSYNC_PERIOD", /* 97 */ "WAL_RETENTION_PERIOD", /* 98 */ "WAL_RETENTION_SIZE", /* 99 */ "WAL_ROLL_PERIOD", /* 100 */ "WAL_SEGMENT_SIZE", /* 101 */ "STT_TRIGGER", /* 102 */ "TABLE_PREFIX", /* 103 */ "TABLE_SUFFIX", /* 104 */ "S3_CHUNKSIZE", /* 105 */ "S3_KEEPLOCAL", /* 106 */ "S3_COMPACT", /* 107 */ "KEEP_TIME_OFFSET", /* 108 */ "ENCRYPT_ALGORITHM", /* 109 */ "NK_COLON", /* 110 */ "BWLIMIT", /* 111 */ "START", /* 112 */ "TIMESTAMP", /* 113 */ "END", /* 114 */ "TABLE", /* 115 */ "NK_LP", /* 116 */ "NK_RP", /* 117 */ "USING", /* 118 */ "FILE", /* 119 */ "STABLE", /* 120 */ "COLUMN", /* 121 */ "MODIFY", /* 122 */ "RENAME", /* 123 */ "TAG", /* 124 */ "SET", /* 125 */ "NK_EQ", /* 126 */ "TAGS", /* 127 */ "BOOL", /* 128 */ "TINYINT", /* 129 */ "SMALLINT", /* 130 */ "INT", /* 131 */ "INTEGER", /* 132 */ "BIGINT", /* 133 */ "FLOAT", /* 134 */ "DOUBLE", /* 135 */ "BINARY", /* 136 */ "NCHAR", /* 137 */ "UNSIGNED", /* 138 */ "JSON", /* 139 */ "VARCHAR", /* 140 */ "MEDIUMBLOB", /* 141 */ "BLOB", /* 142 */ "VARBINARY", /* 143 */ "GEOMETRY", /* 144 */ "DECIMAL", /* 145 */ "COMMENT", /* 146 */ "MAX_DELAY", /* 147 */ "WATERMARK", /* 148 */ "ROLLUP", /* 149 */ "TTL", /* 150 */ "SMA", /* 151 */ "DELETE_MARK", /* 152 */ "FIRST", /* 153 */ "LAST", /* 154 */ "SHOW", /* 155 */ "FULL", /* 156 */ "PRIVILEGES", /* 157 */ "DATABASES", /* 158 */ "TABLES", /* 159 */ "STABLES", /* 160 */ "MNODES", /* 161 */ "QNODES", /* 162 */ "ARBGROUPS", /* 163 */ "FUNCTIONS", /* 164 */ "INDEXES", /* 165 */ "ACCOUNTS", /* 166 */ "APPS", /* 167 */ "CONNECTIONS", /* 168 */ "LICENCES", /* 169 */ "GRANTS", /* 170 */ "LOGS", /* 171 */ "MACHINES", /* 172 */ "ENCRYPTIONS", /* 173 */ "QUERIES", /* 174 */ "SCORES", /* 175 */ "TOPICS", /* 176 */ "VARIABLES", /* 177 */ "BNODES", /* 178 */ "SNODES", /* 179 */ "TRANSACTIONS", /* 180 */ "DISTRIBUTED", /* 181 */ "CONSUMERS", /* 182 */ "SUBSCRIPTIONS", /* 183 */ "VNODES", /* 184 */ "ALIVE", /* 185 */ "VIEWS", /* 186 */ "VIEW", /* 187 */ "COMPACTS", /* 188 */ "NORMAL", /* 189 */ "CHILD", /* 190 */ "LIKE", /* 191 */ "TBNAME", /* 192 */ "QTAGS", /* 193 */ "AS", /* 194 */ "SYSTEM", /* 195 */ "TSMA", /* 196 */ "INTERVAL", /* 197 */ "RECURSIVE", /* 198 */ "TSMAS", /* 199 */ "FUNCTION", /* 200 */ "INDEX", /* 201 */ "COUNT", /* 202 */ "LAST_ROW", /* 203 */ "META", /* 204 */ "ONLY", /* 205 */ "TOPIC", /* 206 */ "CONSUMER", /* 207 */ "GROUP", /* 208 */ "DESC", /* 209 */ "DESCRIBE", /* 210 */ "RESET", /* 211 */ "QUERY", /* 212 */ "CACHE", /* 213 */ "EXPLAIN", /* 214 */ "ANALYZE", /* 215 */ "VERBOSE", /* 216 */ "NK_BOOL", /* 217 */ "RATIO", /* 218 */ "NK_FLOAT", /* 219 */ "OUTPUTTYPE", /* 220 */ "AGGREGATE", /* 221 */ "BUFSIZE", /* 222 */ "LANGUAGE", /* 223 */ "REPLACE", /* 224 */ "STREAM", /* 225 */ "INTO", /* 226 */ "PAUSE", /* 227 */ "RESUME", /* 228 */ "PRIMARY", /* 229 */ "KEY", /* 230 */ "TRIGGER", /* 231 */ "AT_ONCE", /* 232 */ "WINDOW_CLOSE", /* 233 */ "IGNORE", /* 234 */ "EXPIRED", /* 235 */ "FILL_HISTORY", /* 236 */ "UPDATE", /* 237 */ "SUBTABLE", /* 238 */ "UNTREATED", /* 239 */ "KILL", /* 240 */ "CONNECTION", /* 241 */ "TRANSACTION", /* 242 */ "BALANCE", /* 243 */ "VGROUP", /* 244 */ "LEADER", /* 245 */ "MERGE", /* 246 */ "REDISTRIBUTE", /* 247 */ "SPLIT", /* 248 */ "DELETE", /* 249 */ "INSERT", /* 250 */ "NK_BIN", /* 251 */ "NK_HEX", /* 252 */ "NULL", /* 253 */ "NK_QUESTION", /* 254 */ "NK_ALIAS", /* 255 */ "NK_ARROW", /* 256 */ "ROWTS", /* 257 */ "QSTART", /* 258 */ "QEND", /* 259 */ "QDURATION", /* 260 */ "WSTART", /* 261 */ "WEND", /* 262 */ "WDURATION", /* 263 */ "IROWTS", /* 264 */ "ISFILLED", /* 265 */ "CAST", /* 266 */ "NOW", /* 267 */ "TODAY", /* 268 */ "TIMEZONE", /* 269 */ "CLIENT_VERSION", /* 270 */ "SERVER_VERSION", /* 271 */ "SERVER_STATUS", /* 272 */ "CURRENT_USER", /* 273 */ "CASE", /* 274 */ "WHEN", /* 275 */ "THEN", /* 276 */ "ELSE", /* 277 */ "BETWEEN", /* 278 */ "IS", /* 279 */ "NK_LT", /* 280 */ "NK_GT", /* 281 */ "NK_LE", /* 282 */ "NK_GE", /* 283 */ "NK_NE", /* 284 */ "MATCH", /* 285 */ "NMATCH", /* 286 */ "CONTAINS", /* 287 */ "IN", /* 288 */ "JOIN", /* 289 */ "INNER", /* 290 */ "LEFT", /* 291 */ "RIGHT", /* 292 */ "OUTER", /* 293 */ "SEMI", /* 294 */ "ANTI", /* 295 */ "ASOF", /* 296 */ "WINDOW", /* 297 */ "WINDOW_OFFSET", /* 298 */ "JLIMIT", /* 299 */ "SELECT", /* 300 */ "NK_HINT", /* 301 */ "DISTINCT", /* 302 */ "WHERE", /* 303 */ "PARTITION", /* 304 */ "BY", /* 305 */ "SESSION", /* 306 */ "STATE_WINDOW", /* 307 */ "EVENT_WINDOW", /* 308 */ "COUNT_WINDOW", /* 309 */ "SLIDING", /* 310 */ "FILL", /* 311 */ "VALUE", /* 312 */ "VALUE_F", /* 313 */ "NONE", /* 314 */ "PREV", /* 315 */ "NULL_F", /* 316 */ "LINEAR", /* 317 */ "NEXT", /* 318 */ "HAVING", /* 319 */ "RANGE", /* 320 */ "EVERY", /* 321 */ "ORDER", /* 322 */ "SLIMIT", /* 323 */ "SOFFSET", /* 324 */ "LIMIT", /* 325 */ "OFFSET", /* 326 */ "ASC", /* 327 */ "NULLS", /* 328 */ "ABORT", /* 329 */ "AFTER", /* 330 */ "ATTACH", /* 331 */ "BEFORE", /* 332 */ "BEGIN", /* 333 */ "BITAND", /* 334 */ "BITNOT", /* 335 */ "BITOR", /* 336 */ "BLOCKS", /* 337 */ "CHANGE", /* 338 */ "COMMA", /* 339 */ "CONCAT", /* 340 */ "CONFLICT", /* 341 */ "COPY", /* 342 */ "DEFERRED", /* 343 */ "DELIMITERS", /* 344 */ "DETACH", /* 345 */ "DIVIDE", /* 346 */ "DOT", /* 347 */ "EACH", /* 348 */ "FAIL", /* 349 */ "FOR", /* 350 */ "GLOB", /* 351 */ "ID", /* 352 */ "IMMEDIATE", /* 353 */ "IMPORT", /* 354 */ "INITIALLY", /* 355 */ "INSTEAD", /* 356 */ "ISNULL", /* 357 */ "MODULES", /* 358 */ "NK_BITNOT", /* 359 */ "NK_SEMI", /* 360 */ "NOTNULL", /* 361 */ "OF", /* 362 */ "PLUS", /* 363 */ "PRIVILEGE", /* 364 */ "RAISE", /* 365 */ "RESTRICT", /* 366 */ "ROW", /* 367 */ "STAR", /* 368 */ "STATEMENT", /* 369 */ "STRICT", /* 370 */ "STRING", /* 371 */ "TIMES", /* 372 */ "VALUES", /* 373 */ "VARIABLE", /* 374 */ "WAL", /* 375 */ "ENCODE", /* 376 */ "COMPRESS", /* 377 */ "LEVEL", /* 378 */ "cmd", /* 379 */ "account_options", /* 380 */ "alter_account_options", /* 381 */ "literal", /* 382 */ "alter_account_option", /* 383 */ "ip_range_list", /* 384 */ "white_list", /* 385 */ "white_list_opt", /* 386 */ "is_import_opt", /* 387 */ "is_createdb_opt", /* 388 */ "user_name", /* 389 */ "sysinfo_opt", /* 390 */ "privileges", /* 391 */ "priv_level", /* 392 */ "with_opt", /* 393 */ "priv_type_list", /* 394 */ "priv_type", /* 395 */ "db_name", /* 396 */ "table_name", /* 397 */ "topic_name", /* 398 */ "search_condition", /* 399 */ "dnode_endpoint", /* 400 */ "force_opt", /* 401 */ "unsafe_opt", /* 402 */ "not_exists_opt", /* 403 */ "db_options", /* 404 */ "exists_opt", /* 405 */ "alter_db_options", /* 406 */ "speed_opt", /* 407 */ "start_opt", /* 408 */ "end_opt", /* 409 */ "integer_list", /* 410 */ "variable_list", /* 411 */ "retention_list", /* 412 */ "signed", /* 413 */ "alter_db_option", /* 414 */ "retention", /* 415 */ "full_table_name", /* 416 */ "column_def_list", /* 417 */ "tags_def_opt", /* 418 */ "table_options", /* 419 */ "multi_create_clause", /* 420 */ "tag_list_opt", /* 421 */ "tags_def", /* 422 */ "multi_drop_clause", /* 423 */ "alter_table_clause", /* 424 */ "alter_table_options", /* 425 */ "column_name", /* 426 */ "type_name", /* 427 */ "column_options", /* 428 */ "tags_literal", /* 429 */ "create_subtable_clause", /* 430 */ "specific_cols_opt", /* 431 */ "tags_literal_list", /* 432 */ "drop_table_clause", /* 433 */ "col_name_list", /* 434 */ "tag_def_list", /* 435 */ "tag_def", /* 436 */ "column_def", /* 437 */ "type_name_default_len", /* 438 */ "duration_list", /* 439 */ "rollup_func_list", /* 440 */ "alter_table_option", /* 441 */ "duration_literal", /* 442 */ "rollup_func_name", /* 443 */ "function_name", /* 444 */ "col_name", /* 445 */ "db_kind_opt", /* 446 */ "table_kind_db_name_cond_opt", /* 447 */ "like_pattern_opt", /* 448 */ "db_name_cond_opt", /* 449 */ "table_name_cond", /* 450 */ "from_db_opt", /* 451 */ "table_kind", /* 452 */ "tag_item", /* 453 */ "column_alias", /* 454 */ "tsma_name", /* 455 */ "tsma_func_list", /* 456 */ "full_tsma_name", /* 457 */ "func_list", /* 458 */ "index_options", /* 459 */ "full_index_name", /* 460 */ "index_name", /* 461 */ "sliding_opt", /* 462 */ "sma_stream_opt", /* 463 */ "func", /* 464 */ "sma_func_name", /* 465 */ "expression_list", /* 466 */ "with_meta", /* 467 */ "query_or_subquery", /* 468 */ "where_clause_opt", /* 469 */ "cgroup_name", /* 470 */ "analyze_opt", /* 471 */ "explain_options", /* 472 */ "insert_query", /* 473 */ "or_replace_opt", /* 474 */ "agg_func_opt", /* 475 */ "bufsize_opt", /* 476 */ "language_opt", /* 477 */ "full_view_name", /* 478 */ "view_name", /* 479 */ "stream_name", /* 480 */ "stream_options", /* 481 */ "col_list_opt", /* 482 */ "tag_def_or_ref_opt", /* 483 */ "subtable_opt", /* 484 */ "ignore_opt", /* 485 */ "column_stream_def_list", /* 486 */ "column_stream_def", /* 487 */ "stream_col_options", /* 488 */ "expression", /* 489 */ "on_vgroup_id", /* 490 */ "dnode_list", /* 491 */ "literal_func", /* 492 */ "signed_literal", /* 493 */ "literal_list", /* 494 */ "table_alias", /* 495 */ "expr_or_subquery", /* 496 */ "pseudo_column", /* 497 */ "column_reference", /* 498 */ "function_expression", /* 499 */ "case_when_expression", /* 500 */ "star_func", /* 501 */ "star_func_para_list", /* 502 */ "noarg_func", /* 503 */ "other_para_list", /* 504 */ "star_func_para", /* 505 */ "when_then_list", /* 506 */ "case_when_else_opt", /* 507 */ "common_expression", /* 508 */ "when_then_expr", /* 509 */ "predicate", /* 510 */ "compare_op", /* 511 */ "in_op", /* 512 */ "in_predicate_value", /* 513 */ "boolean_value_expression", /* 514 */ "boolean_primary", /* 515 */ "from_clause_opt", /* 516 */ "table_reference_list", /* 517 */ "table_reference", /* 518 */ "table_primary", /* 519 */ "joined_table", /* 520 */ "alias_opt", /* 521 */ "subquery", /* 522 */ "parenthesized_joined_table", /* 523 */ "join_type", /* 524 */ "join_subtype", /* 525 */ "join_on_clause_opt", /* 526 */ "window_offset_clause_opt", /* 527 */ "jlimit_clause_opt", /* 528 */ "window_offset_literal", /* 529 */ "query_specification", /* 530 */ "hint_list", /* 531 */ "set_quantifier_opt", /* 532 */ "tag_mode_opt", /* 533 */ "select_list", /* 534 */ "partition_by_clause_opt", /* 535 */ "range_opt", /* 536 */ "every_opt", /* 537 */ "fill_opt", /* 538 */ "twindow_clause_opt", /* 539 */ "group_by_clause_opt", /* 540 */ "having_clause_opt", /* 541 */ "select_item", /* 542 */ "partition_list", /* 543 */ "partition_item", /* 544 */ "interval_sliding_duration_literal", /* 545 */ "fill_mode", /* 546 */ "group_by_list", /* 547 */ "query_expression", /* 548 */ "query_simple", /* 549 */ "order_by_clause_opt", /* 550 */ "slimit_clause_opt", /* 551 */ "limit_clause_opt", /* 552 */ "union_query_expression", /* 553 */ "query_simple_or_subquery", /* 554 */ "sort_specification_list", /* 555 */ "sort_specification", /* 556 */ "ordering_specification_opt", /* 557 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ #ifndef NDEBUG /* For tracing reduce actions, the names of all rules are required. */ static const char *const yyRuleName[] = { /* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options", /* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options", /* 2 */ "account_options ::=", /* 3 */ "account_options ::= account_options PPS literal", /* 4 */ "account_options ::= account_options TSERIES literal", /* 5 */ "account_options ::= account_options STORAGE literal", /* 6 */ "account_options ::= account_options STREAMS literal", /* 7 */ "account_options ::= account_options QTIME literal", /* 8 */ "account_options ::= account_options DBS literal", /* 9 */ "account_options ::= account_options USERS literal", /* 10 */ "account_options ::= account_options CONNS literal", /* 11 */ "account_options ::= account_options STATE literal", /* 12 */ "alter_account_options ::= alter_account_option", /* 13 */ "alter_account_options ::= alter_account_options alter_account_option", /* 14 */ "alter_account_option ::= PASS literal", /* 15 */ "alter_account_option ::= PPS literal", /* 16 */ "alter_account_option ::= TSERIES literal", /* 17 */ "alter_account_option ::= STORAGE literal", /* 18 */ "alter_account_option ::= STREAMS literal", /* 19 */ "alter_account_option ::= QTIME literal", /* 20 */ "alter_account_option ::= DBS literal", /* 21 */ "alter_account_option ::= USERS literal", /* 22 */ "alter_account_option ::= CONNS literal", /* 23 */ "alter_account_option ::= STATE literal", /* 24 */ "ip_range_list ::= NK_STRING", /* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING", /* 26 */ "white_list ::= HOST ip_range_list", /* 27 */ "white_list_opt ::=", /* 28 */ "white_list_opt ::= white_list", /* 29 */ "is_import_opt ::=", /* 30 */ "is_import_opt ::= IS_IMPORT NK_INTEGER", /* 31 */ "is_createdb_opt ::=", /* 32 */ "is_createdb_opt ::= CREATEDB NK_INTEGER", /* 33 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt is_createdb_opt is_import_opt white_list_opt", /* 34 */ "cmd ::= ALTER USER user_name PASS NK_STRING", /* 35 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER", /* 36 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER", /* 37 */ "cmd ::= ALTER USER user_name CREATEDB NK_INTEGER", /* 38 */ "cmd ::= ALTER USER user_name ADD white_list", /* 39 */ "cmd ::= ALTER USER user_name DROP white_list", /* 40 */ "cmd ::= DROP USER user_name", /* 41 */ "sysinfo_opt ::=", /* 42 */ "sysinfo_opt ::= SYSINFO NK_INTEGER", /* 43 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name", /* 44 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name", /* 45 */ "privileges ::= ALL", /* 46 */ "privileges ::= priv_type_list", /* 47 */ "privileges ::= SUBSCRIBE", /* 48 */ "priv_type_list ::= priv_type", /* 49 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", /* 50 */ "priv_type ::= READ", /* 51 */ "priv_type ::= WRITE", /* 52 */ "priv_type ::= ALTER", /* 53 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", /* 54 */ "priv_level ::= db_name NK_DOT NK_STAR", /* 55 */ "priv_level ::= db_name NK_DOT table_name", /* 56 */ "priv_level ::= topic_name", /* 57 */ "with_opt ::=", /* 58 */ "with_opt ::= WITH search_condition", /* 59 */ "cmd ::= CREATE ENCRYPT_KEY NK_STRING", /* 60 */ "cmd ::= CREATE DNODE dnode_endpoint", /* 61 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", /* 62 */ "cmd ::= DROP DNODE NK_INTEGER force_opt", /* 63 */ "cmd ::= DROP DNODE dnode_endpoint force_opt", /* 64 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt", /* 65 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt", /* 66 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", /* 67 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", /* 68 */ "cmd ::= ALTER ALL DNODES NK_STRING", /* 69 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", /* 70 */ "cmd ::= RESTORE DNODE NK_INTEGER", /* 71 */ "dnode_endpoint ::= NK_STRING", /* 72 */ "dnode_endpoint ::= NK_ID", /* 73 */ "dnode_endpoint ::= NK_IPTOKEN", /* 74 */ "force_opt ::=", /* 75 */ "force_opt ::= FORCE", /* 76 */ "unsafe_opt ::= UNSAFE", /* 77 */ "cmd ::= ALTER CLUSTER NK_STRING", /* 78 */ "cmd ::= ALTER CLUSTER NK_STRING NK_STRING", /* 79 */ "cmd ::= ALTER LOCAL NK_STRING", /* 80 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", /* 81 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", /* 82 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", /* 83 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER", /* 84 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", /* 85 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", /* 86 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", /* 87 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", /* 88 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", /* 89 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", /* 90 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER", /* 91 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER", /* 92 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", /* 93 */ "cmd ::= DROP DATABASE exists_opt db_name", /* 94 */ "cmd ::= USE db_name", /* 95 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 96 */ "cmd ::= FLUSH DATABASE db_name", /* 97 */ "cmd ::= TRIM DATABASE db_name speed_opt", /* 98 */ "cmd ::= S3MIGRATE DATABASE db_name", /* 99 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt", /* 100 */ "not_exists_opt ::= IF NOT EXISTS", /* 101 */ "not_exists_opt ::=", /* 102 */ "exists_opt ::= IF EXISTS", /* 103 */ "exists_opt ::=", /* 104 */ "db_options ::=", /* 105 */ "db_options ::= db_options BUFFER NK_INTEGER", /* 106 */ "db_options ::= db_options CACHEMODEL NK_STRING", /* 107 */ "db_options ::= db_options CACHESIZE NK_INTEGER", /* 108 */ "db_options ::= db_options COMP NK_INTEGER", /* 109 */ "db_options ::= db_options DURATION NK_INTEGER", /* 110 */ "db_options ::= db_options DURATION NK_VARIABLE", /* 111 */ "db_options ::= db_options MAXROWS NK_INTEGER", /* 112 */ "db_options ::= db_options MINROWS NK_INTEGER", /* 113 */ "db_options ::= db_options KEEP integer_list", /* 114 */ "db_options ::= db_options KEEP variable_list", /* 115 */ "db_options ::= db_options PAGES NK_INTEGER", /* 116 */ "db_options ::= db_options PAGESIZE NK_INTEGER", /* 117 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", /* 118 */ "db_options ::= db_options PRECISION NK_STRING", /* 119 */ "db_options ::= db_options REPLICA NK_INTEGER", /* 120 */ "db_options ::= db_options VGROUPS NK_INTEGER", /* 121 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", /* 122 */ "db_options ::= db_options RETENTIONS retention_list", /* 123 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", /* 124 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", /* 125 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", /* 126 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", /* 127 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 128 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", /* 129 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 130 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", /* 131 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", /* 132 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", /* 133 */ "db_options ::= db_options TABLE_PREFIX signed", /* 134 */ "db_options ::= db_options TABLE_SUFFIX signed", /* 135 */ "db_options ::= db_options S3_CHUNKSIZE NK_INTEGER", /* 136 */ "db_options ::= db_options S3_KEEPLOCAL NK_INTEGER", /* 137 */ "db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE", /* 138 */ "db_options ::= db_options S3_COMPACT NK_INTEGER", /* 139 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER", /* 140 */ "db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING", /* 141 */ "alter_db_options ::= alter_db_option", /* 142 */ "alter_db_options ::= alter_db_options alter_db_option", /* 143 */ "alter_db_option ::= BUFFER NK_INTEGER", /* 144 */ "alter_db_option ::= CACHEMODEL NK_STRING", /* 145 */ "alter_db_option ::= CACHESIZE NK_INTEGER", /* 146 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", /* 147 */ "alter_db_option ::= KEEP integer_list", /* 148 */ "alter_db_option ::= KEEP variable_list", /* 149 */ "alter_db_option ::= PAGES NK_INTEGER", /* 150 */ "alter_db_option ::= REPLICA NK_INTEGER", /* 151 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", /* 152 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", /* 153 */ "alter_db_option ::= MINROWS NK_INTEGER", /* 154 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER", /* 155 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 156 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER", /* 157 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 158 */ "alter_db_option ::= S3_KEEPLOCAL NK_INTEGER", /* 159 */ "alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE", /* 160 */ "alter_db_option ::= S3_COMPACT NK_INTEGER", /* 161 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER", /* 162 */ "alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING", /* 163 */ "integer_list ::= NK_INTEGER", /* 164 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", /* 165 */ "variable_list ::= NK_VARIABLE", /* 166 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", /* 167 */ "retention_list ::= retention", /* 168 */ "retention_list ::= retention_list NK_COMMA retention", /* 169 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", /* 170 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE", /* 171 */ "speed_opt ::=", /* 172 */ "speed_opt ::= BWLIMIT NK_INTEGER", /* 173 */ "start_opt ::=", /* 174 */ "start_opt ::= START WITH NK_INTEGER", /* 175 */ "start_opt ::= START WITH NK_STRING", /* 176 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", /* 177 */ "end_opt ::=", /* 178 */ "end_opt ::= END WITH NK_INTEGER", /* 179 */ "end_opt ::= END WITH NK_STRING", /* 180 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", /* 181 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", /* 182 */ "cmd ::= CREATE TABLE multi_create_clause", /* 183 */ "cmd ::= CREATE TABLE not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING", /* 184 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", /* 185 */ "cmd ::= DROP TABLE multi_drop_clause", /* 186 */ "cmd ::= DROP STABLE exists_opt full_table_name", /* 187 */ "cmd ::= ALTER TABLE alter_table_clause", /* 188 */ "cmd ::= ALTER STABLE alter_table_clause", /* 189 */ "alter_table_clause ::= full_table_name alter_table_options", /* 190 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name column_options", /* 191 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", /* 192 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", /* 193 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options", /* 194 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", /* 195 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", /* 196 */ "alter_table_clause ::= full_table_name DROP TAG column_name", /* 197 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", /* 198 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", /* 199 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal", /* 200 */ "multi_create_clause ::= create_subtable_clause", /* 201 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", /* 202 */ "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", /* 203 */ "multi_drop_clause ::= drop_table_clause", /* 204 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", /* 205 */ "drop_table_clause ::= exists_opt full_table_name", /* 206 */ "specific_cols_opt ::=", /* 207 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", /* 208 */ "full_table_name ::= table_name", /* 209 */ "full_table_name ::= db_name NK_DOT table_name", /* 210 */ "tag_def_list ::= tag_def", /* 211 */ "tag_def_list ::= tag_def_list NK_COMMA tag_def", /* 212 */ "tag_def ::= column_name type_name", /* 213 */ "column_def_list ::= column_def", /* 214 */ "column_def_list ::= column_def_list NK_COMMA column_def", /* 215 */ "column_def ::= column_name type_name column_options", /* 216 */ "type_name ::= BOOL", /* 217 */ "type_name ::= TINYINT", /* 218 */ "type_name ::= SMALLINT", /* 219 */ "type_name ::= INT", /* 220 */ "type_name ::= INTEGER", /* 221 */ "type_name ::= BIGINT", /* 222 */ "type_name ::= FLOAT", /* 223 */ "type_name ::= DOUBLE", /* 224 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", /* 225 */ "type_name ::= TIMESTAMP", /* 226 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", /* 227 */ "type_name ::= TINYINT UNSIGNED", /* 228 */ "type_name ::= SMALLINT UNSIGNED", /* 229 */ "type_name ::= INT UNSIGNED", /* 230 */ "type_name ::= BIGINT UNSIGNED", /* 231 */ "type_name ::= JSON", /* 232 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", /* 233 */ "type_name ::= MEDIUMBLOB", /* 234 */ "type_name ::= BLOB", /* 235 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", /* 236 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", /* 237 */ "type_name ::= DECIMAL", /* 238 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 239 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 240 */ "type_name_default_len ::= BINARY", /* 241 */ "type_name_default_len ::= NCHAR", /* 242 */ "type_name_default_len ::= VARCHAR", /* 243 */ "type_name_default_len ::= VARBINARY", /* 244 */ "tags_def_opt ::=", /* 245 */ "tags_def_opt ::= tags_def", /* 246 */ "tags_def ::= TAGS NK_LP tag_def_list NK_RP", /* 247 */ "table_options ::=", /* 248 */ "table_options ::= table_options COMMENT NK_STRING", /* 249 */ "table_options ::= table_options MAX_DELAY duration_list", /* 250 */ "table_options ::= table_options WATERMARK duration_list", /* 251 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", /* 252 */ "table_options ::= table_options TTL NK_INTEGER", /* 253 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", /* 254 */ "table_options ::= table_options DELETE_MARK duration_list", /* 255 */ "alter_table_options ::= alter_table_option", /* 256 */ "alter_table_options ::= alter_table_options alter_table_option", /* 257 */ "alter_table_option ::= COMMENT NK_STRING", /* 258 */ "alter_table_option ::= TTL NK_INTEGER", /* 259 */ "duration_list ::= duration_literal", /* 260 */ "duration_list ::= duration_list NK_COMMA duration_literal", /* 261 */ "rollup_func_list ::= rollup_func_name", /* 262 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", /* 263 */ "rollup_func_name ::= function_name", /* 264 */ "rollup_func_name ::= FIRST", /* 265 */ "rollup_func_name ::= LAST", /* 266 */ "col_name_list ::= col_name", /* 267 */ "col_name_list ::= col_name_list NK_COMMA col_name", /* 268 */ "col_name ::= column_name", /* 269 */ "cmd ::= SHOW DNODES", /* 270 */ "cmd ::= SHOW USERS", /* 271 */ "cmd ::= SHOW USERS FULL", /* 272 */ "cmd ::= SHOW USER PRIVILEGES", /* 273 */ "cmd ::= SHOW db_kind_opt DATABASES", /* 274 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", /* 275 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", /* 276 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", /* 277 */ "cmd ::= SHOW MNODES", /* 278 */ "cmd ::= SHOW QNODES", /* 279 */ "cmd ::= SHOW ARBGROUPS", /* 280 */ "cmd ::= SHOW FUNCTIONS", /* 281 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", /* 282 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", /* 283 */ "cmd ::= SHOW STREAMS", /* 284 */ "cmd ::= SHOW ACCOUNTS", /* 285 */ "cmd ::= SHOW APPS", /* 286 */ "cmd ::= SHOW CONNECTIONS", /* 287 */ "cmd ::= SHOW LICENCES", /* 288 */ "cmd ::= SHOW GRANTS", /* 289 */ "cmd ::= SHOW GRANTS FULL", /* 290 */ "cmd ::= SHOW GRANTS LOGS", /* 291 */ "cmd ::= SHOW CLUSTER MACHINES", /* 292 */ "cmd ::= SHOW CREATE DATABASE db_name", /* 293 */ "cmd ::= SHOW CREATE TABLE full_table_name", /* 294 */ "cmd ::= SHOW CREATE STABLE full_table_name", /* 295 */ "cmd ::= SHOW ENCRYPTIONS", /* 296 */ "cmd ::= SHOW QUERIES", /* 297 */ "cmd ::= SHOW SCORES", /* 298 */ "cmd ::= SHOW TOPICS", /* 299 */ "cmd ::= SHOW VARIABLES", /* 300 */ "cmd ::= SHOW CLUSTER VARIABLES", /* 301 */ "cmd ::= SHOW LOCAL VARIABLES", /* 302 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", /* 303 */ "cmd ::= SHOW BNODES", /* 304 */ "cmd ::= SHOW SNODES", /* 305 */ "cmd ::= SHOW CLUSTER", /* 306 */ "cmd ::= SHOW TRANSACTIONS", /* 307 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", /* 308 */ "cmd ::= SHOW CONSUMERS", /* 309 */ "cmd ::= SHOW SUBSCRIPTIONS", /* 310 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", /* 311 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", /* 312 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", /* 313 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", /* 314 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", /* 315 */ "cmd ::= SHOW VNODES", /* 316 */ "cmd ::= SHOW db_name_cond_opt ALIVE", /* 317 */ "cmd ::= SHOW CLUSTER ALIVE", /* 318 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt", /* 319 */ "cmd ::= SHOW CREATE VIEW full_table_name", /* 320 */ "cmd ::= SHOW COMPACTS", /* 321 */ "cmd ::= SHOW COMPACT NK_INTEGER", /* 322 */ "table_kind_db_name_cond_opt ::=", /* 323 */ "table_kind_db_name_cond_opt ::= table_kind", /* 324 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", /* 325 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", /* 326 */ "table_kind ::= NORMAL", /* 327 */ "table_kind ::= CHILD", /* 328 */ "db_name_cond_opt ::=", /* 329 */ "db_name_cond_opt ::= db_name NK_DOT", /* 330 */ "like_pattern_opt ::=", /* 331 */ "like_pattern_opt ::= LIKE NK_STRING", /* 332 */ "table_name_cond ::= table_name", /* 333 */ "from_db_opt ::=", /* 334 */ "from_db_opt ::= FROM db_name", /* 335 */ "tag_list_opt ::=", /* 336 */ "tag_list_opt ::= tag_item", /* 337 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", /* 338 */ "tag_item ::= TBNAME", /* 339 */ "tag_item ::= QTAGS", /* 340 */ "tag_item ::= column_name", /* 341 */ "tag_item ::= column_name column_alias", /* 342 */ "tag_item ::= column_name AS column_alias", /* 343 */ "db_kind_opt ::=", /* 344 */ "db_kind_opt ::= USER", /* 345 */ "db_kind_opt ::= SYSTEM", /* 346 */ "cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP", /* 347 */ "cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP", /* 348 */ "cmd ::= DROP TSMA exists_opt full_tsma_name", /* 349 */ "cmd ::= SHOW db_name_cond_opt TSMAS", /* 350 */ "full_tsma_name ::= tsma_name", /* 351 */ "full_tsma_name ::= db_name NK_DOT tsma_name", /* 352 */ "tsma_func_list ::= FUNCTION NK_LP func_list NK_RP", /* 353 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", /* 354 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", /* 355 */ "cmd ::= DROP INDEX exists_opt full_index_name", /* 356 */ "full_index_name ::= index_name", /* 357 */ "full_index_name ::= db_name NK_DOT index_name", /* 358 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", /* 359 */ "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", /* 360 */ "func_list ::= func", /* 361 */ "func_list ::= func_list NK_COMMA func", /* 362 */ "func ::= sma_func_name NK_LP expression_list NK_RP", /* 363 */ "sma_func_name ::= function_name", /* 364 */ "sma_func_name ::= COUNT", /* 365 */ "sma_func_name ::= FIRST", /* 366 */ "sma_func_name ::= LAST", /* 367 */ "sma_func_name ::= LAST_ROW", /* 368 */ "sma_stream_opt ::=", /* 369 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", /* 370 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", /* 371 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", /* 372 */ "with_meta ::= AS", /* 373 */ "with_meta ::= WITH META AS", /* 374 */ "with_meta ::= ONLY META AS", /* 375 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", /* 376 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", /* 377 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", /* 378 */ "cmd ::= DROP TOPIC exists_opt topic_name", /* 379 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", /* 380 */ "cmd ::= DESC full_table_name", /* 381 */ "cmd ::= DESCRIBE full_table_name", /* 382 */ "cmd ::= RESET QUERY CACHE", /* 383 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", /* 384 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", /* 385 */ "analyze_opt ::=", /* 386 */ "analyze_opt ::= ANALYZE", /* 387 */ "explain_options ::=", /* 388 */ "explain_options ::= explain_options VERBOSE NK_BOOL", /* 389 */ "explain_options ::= explain_options RATIO NK_FLOAT", /* 390 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", /* 391 */ "cmd ::= DROP FUNCTION exists_opt function_name", /* 392 */ "agg_func_opt ::=", /* 393 */ "agg_func_opt ::= AGGREGATE", /* 394 */ "bufsize_opt ::=", /* 395 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", /* 396 */ "language_opt ::=", /* 397 */ "language_opt ::= LANGUAGE NK_STRING", /* 398 */ "or_replace_opt ::=", /* 399 */ "or_replace_opt ::= OR REPLACE", /* 400 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", /* 401 */ "cmd ::= DROP VIEW exists_opt full_view_name", /* 402 */ "full_view_name ::= view_name", /* 403 */ "full_view_name ::= db_name NK_DOT view_name", /* 404 */ "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", /* 405 */ "cmd ::= DROP STREAM exists_opt stream_name", /* 406 */ "cmd ::= PAUSE STREAM exists_opt stream_name", /* 407 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", /* 408 */ "col_list_opt ::=", /* 409 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP", /* 410 */ "column_stream_def_list ::= column_stream_def", /* 411 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def", /* 412 */ "column_stream_def ::= column_name stream_col_options", /* 413 */ "stream_col_options ::=", /* 414 */ "stream_col_options ::= stream_col_options PRIMARY KEY", /* 415 */ "tag_def_or_ref_opt ::=", /* 416 */ "tag_def_or_ref_opt ::= tags_def", /* 417 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP", /* 418 */ "stream_options ::=", /* 419 */ "stream_options ::= stream_options TRIGGER AT_ONCE", /* 420 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", /* 421 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", /* 422 */ "stream_options ::= stream_options WATERMARK duration_literal", /* 423 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", /* 424 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", /* 425 */ "stream_options ::= stream_options DELETE_MARK duration_literal", /* 426 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", /* 427 */ "subtable_opt ::=", /* 428 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", /* 429 */ "ignore_opt ::=", /* 430 */ "ignore_opt ::= IGNORE UNTREATED", /* 431 */ "cmd ::= KILL CONNECTION NK_INTEGER", /* 432 */ "cmd ::= KILL QUERY NK_STRING", /* 433 */ "cmd ::= KILL TRANSACTION NK_INTEGER", /* 434 */ "cmd ::= KILL COMPACT NK_INTEGER", /* 435 */ "cmd ::= BALANCE VGROUP", /* 436 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", /* 437 */ "cmd ::= BALANCE VGROUP LEADER DATABASE db_name", /* 438 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", /* 439 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", /* 440 */ "cmd ::= SPLIT VGROUP NK_INTEGER", /* 441 */ "on_vgroup_id ::=", /* 442 */ "on_vgroup_id ::= ON NK_INTEGER", /* 443 */ "dnode_list ::= DNODE NK_INTEGER", /* 444 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", /* 445 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 446 */ "cmd ::= query_or_subquery", /* 447 */ "cmd ::= insert_query", /* 448 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", /* 449 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", /* 450 */ "tags_literal ::= NK_INTEGER", /* 451 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal", /* 452 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal", /* 453 */ "tags_literal ::= NK_PLUS NK_INTEGER", /* 454 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal", /* 455 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal", /* 456 */ "tags_literal ::= NK_MINUS NK_INTEGER", /* 457 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal", /* 458 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal", /* 459 */ "tags_literal ::= NK_FLOAT", /* 460 */ "tags_literal ::= NK_PLUS NK_FLOAT", /* 461 */ "tags_literal ::= NK_MINUS NK_FLOAT", /* 462 */ "tags_literal ::= NK_BIN", /* 463 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal", /* 464 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal", /* 465 */ "tags_literal ::= NK_PLUS NK_BIN", /* 466 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal", /* 467 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal", /* 468 */ "tags_literal ::= NK_MINUS NK_BIN", /* 469 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal", /* 470 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal", /* 471 */ "tags_literal ::= NK_HEX", /* 472 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal", /* 473 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal", /* 474 */ "tags_literal ::= NK_PLUS NK_HEX", /* 475 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal", /* 476 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal", /* 477 */ "tags_literal ::= NK_MINUS NK_HEX", /* 478 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal", /* 479 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal", /* 480 */ "tags_literal ::= NK_STRING", /* 481 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal", /* 482 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal", /* 483 */ "tags_literal ::= NK_BOOL", /* 484 */ "tags_literal ::= NULL", /* 485 */ "tags_literal ::= literal_func", /* 486 */ "tags_literal ::= literal_func NK_PLUS duration_literal", /* 487 */ "tags_literal ::= literal_func NK_MINUS duration_literal", /* 488 */ "tags_literal_list ::= tags_literal", /* 489 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal", /* 490 */ "literal ::= NK_INTEGER", /* 491 */ "literal ::= NK_FLOAT", /* 492 */ "literal ::= NK_STRING", /* 493 */ "literal ::= NK_BOOL", /* 494 */ "literal ::= TIMESTAMP NK_STRING", /* 495 */ "literal ::= duration_literal", /* 496 */ "literal ::= NULL", /* 497 */ "literal ::= NK_QUESTION", /* 498 */ "duration_literal ::= NK_VARIABLE", /* 499 */ "signed ::= NK_INTEGER", /* 500 */ "signed ::= NK_PLUS NK_INTEGER", /* 501 */ "signed ::= NK_MINUS NK_INTEGER", /* 502 */ "signed ::= NK_FLOAT", /* 503 */ "signed ::= NK_PLUS NK_FLOAT", /* 504 */ "signed ::= NK_MINUS NK_FLOAT", /* 505 */ "signed_literal ::= signed", /* 506 */ "signed_literal ::= NK_STRING", /* 507 */ "signed_literal ::= NK_BOOL", /* 508 */ "signed_literal ::= TIMESTAMP NK_STRING", /* 509 */ "signed_literal ::= duration_literal", /* 510 */ "signed_literal ::= NULL", /* 511 */ "signed_literal ::= literal_func", /* 512 */ "signed_literal ::= NK_QUESTION", /* 513 */ "literal_list ::= signed_literal", /* 514 */ "literal_list ::= literal_list NK_COMMA signed_literal", /* 515 */ "db_name ::= NK_ID", /* 516 */ "table_name ::= NK_ID", /* 517 */ "column_name ::= NK_ID", /* 518 */ "function_name ::= NK_ID", /* 519 */ "view_name ::= NK_ID", /* 520 */ "table_alias ::= NK_ID", /* 521 */ "column_alias ::= NK_ID", /* 522 */ "column_alias ::= NK_ALIAS", /* 523 */ "user_name ::= NK_ID", /* 524 */ "topic_name ::= NK_ID", /* 525 */ "stream_name ::= NK_ID", /* 526 */ "cgroup_name ::= NK_ID", /* 527 */ "index_name ::= NK_ID", /* 528 */ "tsma_name ::= NK_ID", /* 529 */ "expr_or_subquery ::= expression", /* 530 */ "expression ::= literal", /* 531 */ "expression ::= pseudo_column", /* 532 */ "expression ::= column_reference", /* 533 */ "expression ::= function_expression", /* 534 */ "expression ::= case_when_expression", /* 535 */ "expression ::= NK_LP expression NK_RP", /* 536 */ "expression ::= NK_PLUS expr_or_subquery", /* 537 */ "expression ::= NK_MINUS expr_or_subquery", /* 538 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", /* 539 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", /* 540 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", /* 541 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", /* 542 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", /* 543 */ "expression ::= column_reference NK_ARROW NK_STRING", /* 544 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", /* 545 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", /* 546 */ "expression_list ::= expr_or_subquery", /* 547 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", /* 548 */ "column_reference ::= column_name", /* 549 */ "column_reference ::= table_name NK_DOT column_name", /* 550 */ "column_reference ::= NK_ALIAS", /* 551 */ "column_reference ::= table_name NK_DOT NK_ALIAS", /* 552 */ "pseudo_column ::= ROWTS", /* 553 */ "pseudo_column ::= TBNAME", /* 554 */ "pseudo_column ::= table_name NK_DOT TBNAME", /* 555 */ "pseudo_column ::= QSTART", /* 556 */ "pseudo_column ::= QEND", /* 557 */ "pseudo_column ::= QDURATION", /* 558 */ "pseudo_column ::= WSTART", /* 559 */ "pseudo_column ::= WEND", /* 560 */ "pseudo_column ::= WDURATION", /* 561 */ "pseudo_column ::= IROWTS", /* 562 */ "pseudo_column ::= ISFILLED", /* 563 */ "pseudo_column ::= QTAGS", /* 564 */ "function_expression ::= function_name NK_LP expression_list NK_RP", /* 565 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", /* 566 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", /* 567 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP", /* 568 */ "function_expression ::= literal_func", /* 569 */ "literal_func ::= noarg_func NK_LP NK_RP", /* 570 */ "literal_func ::= NOW", /* 571 */ "literal_func ::= TODAY", /* 572 */ "noarg_func ::= NOW", /* 573 */ "noarg_func ::= TODAY", /* 574 */ "noarg_func ::= TIMEZONE", /* 575 */ "noarg_func ::= DATABASE", /* 576 */ "noarg_func ::= CLIENT_VERSION", /* 577 */ "noarg_func ::= SERVER_VERSION", /* 578 */ "noarg_func ::= SERVER_STATUS", /* 579 */ "noarg_func ::= CURRENT_USER", /* 580 */ "noarg_func ::= USER", /* 581 */ "star_func ::= COUNT", /* 582 */ "star_func ::= FIRST", /* 583 */ "star_func ::= LAST", /* 584 */ "star_func ::= LAST_ROW", /* 585 */ "star_func_para_list ::= NK_STAR", /* 586 */ "star_func_para_list ::= other_para_list", /* 587 */ "other_para_list ::= star_func_para", /* 588 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", /* 589 */ "star_func_para ::= expr_or_subquery", /* 590 */ "star_func_para ::= table_name NK_DOT NK_STAR", /* 591 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", /* 592 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", /* 593 */ "when_then_list ::= when_then_expr", /* 594 */ "when_then_list ::= when_then_list when_then_expr", /* 595 */ "when_then_expr ::= WHEN common_expression THEN common_expression", /* 596 */ "case_when_else_opt ::=", /* 597 */ "case_when_else_opt ::= ELSE common_expression", /* 598 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", /* 599 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", /* 600 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", /* 601 */ "predicate ::= expr_or_subquery IS NULL", /* 602 */ "predicate ::= expr_or_subquery IS NOT NULL", /* 603 */ "predicate ::= expr_or_subquery in_op in_predicate_value", /* 604 */ "compare_op ::= NK_LT", /* 605 */ "compare_op ::= NK_GT", /* 606 */ "compare_op ::= NK_LE", /* 607 */ "compare_op ::= NK_GE", /* 608 */ "compare_op ::= NK_NE", /* 609 */ "compare_op ::= NK_EQ", /* 610 */ "compare_op ::= LIKE", /* 611 */ "compare_op ::= NOT LIKE", /* 612 */ "compare_op ::= MATCH", /* 613 */ "compare_op ::= NMATCH", /* 614 */ "compare_op ::= CONTAINS", /* 615 */ "in_op ::= IN", /* 616 */ "in_op ::= NOT IN", /* 617 */ "in_predicate_value ::= NK_LP literal_list NK_RP", /* 618 */ "boolean_value_expression ::= boolean_primary", /* 619 */ "boolean_value_expression ::= NOT boolean_primary", /* 620 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 621 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 622 */ "boolean_primary ::= predicate", /* 623 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 624 */ "common_expression ::= expr_or_subquery", /* 625 */ "common_expression ::= boolean_value_expression", /* 626 */ "from_clause_opt ::=", /* 627 */ "from_clause_opt ::= FROM table_reference_list", /* 628 */ "table_reference_list ::= table_reference", /* 629 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 630 */ "table_reference ::= table_primary", /* 631 */ "table_reference ::= joined_table", /* 632 */ "table_primary ::= table_name alias_opt", /* 633 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 634 */ "table_primary ::= subquery alias_opt", /* 635 */ "table_primary ::= parenthesized_joined_table", /* 636 */ "alias_opt ::=", /* 637 */ "alias_opt ::= table_alias", /* 638 */ "alias_opt ::= AS table_alias", /* 639 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 640 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 641 */ "joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt", /* 642 */ "join_type ::=", /* 643 */ "join_type ::= INNER", /* 644 */ "join_type ::= LEFT", /* 645 */ "join_type ::= RIGHT", /* 646 */ "join_type ::= FULL", /* 647 */ "join_subtype ::=", /* 648 */ "join_subtype ::= OUTER", /* 649 */ "join_subtype ::= SEMI", /* 650 */ "join_subtype ::= ANTI", /* 651 */ "join_subtype ::= ASOF", /* 652 */ "join_subtype ::= WINDOW", /* 653 */ "join_on_clause_opt ::=", /* 654 */ "join_on_clause_opt ::= ON search_condition", /* 655 */ "window_offset_clause_opt ::=", /* 656 */ "window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP", /* 657 */ "window_offset_literal ::= NK_VARIABLE", /* 658 */ "window_offset_literal ::= NK_MINUS NK_VARIABLE", /* 659 */ "jlimit_clause_opt ::=", /* 660 */ "jlimit_clause_opt ::= JLIMIT NK_INTEGER", /* 661 */ "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", /* 662 */ "hint_list ::=", /* 663 */ "hint_list ::= NK_HINT", /* 664 */ "tag_mode_opt ::=", /* 665 */ "tag_mode_opt ::= TAGS", /* 666 */ "set_quantifier_opt ::=", /* 667 */ "set_quantifier_opt ::= DISTINCT", /* 668 */ "set_quantifier_opt ::= ALL", /* 669 */ "select_list ::= select_item", /* 670 */ "select_list ::= select_list NK_COMMA select_item", /* 671 */ "select_item ::= NK_STAR", /* 672 */ "select_item ::= common_expression", /* 673 */ "select_item ::= common_expression column_alias", /* 674 */ "select_item ::= common_expression AS column_alias", /* 675 */ "select_item ::= table_name NK_DOT NK_STAR", /* 676 */ "where_clause_opt ::=", /* 677 */ "where_clause_opt ::= WHERE search_condition", /* 678 */ "partition_by_clause_opt ::=", /* 679 */ "partition_by_clause_opt ::= PARTITION BY partition_list", /* 680 */ "partition_list ::= partition_item", /* 681 */ "partition_list ::= partition_list NK_COMMA partition_item", /* 682 */ "partition_item ::= expr_or_subquery", /* 683 */ "partition_item ::= expr_or_subquery column_alias", /* 684 */ "partition_item ::= expr_or_subquery AS column_alias", /* 685 */ "twindow_clause_opt ::=", /* 686 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", /* 687 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", /* 688 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", /* 689 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", /* 690 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", /* 691 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", /* 692 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 693 */ "sliding_opt ::=", /* 694 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", /* 695 */ "interval_sliding_duration_literal ::= NK_VARIABLE", /* 696 */ "interval_sliding_duration_literal ::= NK_STRING", /* 697 */ "interval_sliding_duration_literal ::= NK_INTEGER", /* 698 */ "fill_opt ::=", /* 699 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 700 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", /* 701 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", /* 702 */ "fill_mode ::= NONE", /* 703 */ "fill_mode ::= PREV", /* 704 */ "fill_mode ::= NULL", /* 705 */ "fill_mode ::= NULL_F", /* 706 */ "fill_mode ::= LINEAR", /* 707 */ "fill_mode ::= NEXT", /* 708 */ "group_by_clause_opt ::=", /* 709 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 710 */ "group_by_list ::= expr_or_subquery", /* 711 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", /* 712 */ "having_clause_opt ::=", /* 713 */ "having_clause_opt ::= HAVING search_condition", /* 714 */ "range_opt ::=", /* 715 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", /* 716 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", /* 717 */ "every_opt ::=", /* 718 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", /* 719 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 720 */ "query_simple ::= query_specification", /* 721 */ "query_simple ::= union_query_expression", /* 722 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", /* 723 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", /* 724 */ "query_simple_or_subquery ::= query_simple", /* 725 */ "query_simple_or_subquery ::= subquery", /* 726 */ "query_or_subquery ::= query_expression", /* 727 */ "query_or_subquery ::= subquery", /* 728 */ "order_by_clause_opt ::=", /* 729 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 730 */ "slimit_clause_opt ::=", /* 731 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 732 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 733 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 734 */ "limit_clause_opt ::=", /* 735 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 736 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 737 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 738 */ "subquery ::= NK_LP query_expression NK_RP", /* 739 */ "subquery ::= NK_LP subquery NK_RP", /* 740 */ "search_condition ::= common_expression", /* 741 */ "sort_specification_list ::= sort_specification", /* 742 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 743 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", /* 744 */ "ordering_specification_opt ::=", /* 745 */ "ordering_specification_opt ::= ASC", /* 746 */ "ordering_specification_opt ::= DESC", /* 747 */ "null_ordering_opt ::=", /* 748 */ "null_ordering_opt ::= NULLS FIRST", /* 749 */ "null_ordering_opt ::= NULLS LAST", /* 750 */ "column_options ::=", /* 751 */ "column_options ::= column_options PRIMARY KEY", /* 752 */ "column_options ::= column_options ENCODE NK_STRING", /* 753 */ "column_options ::= column_options COMPRESS NK_STRING", /* 754 */ "column_options ::= column_options LEVEL NK_STRING", }; #endif /* NDEBUG */ #if YYSTACKDEPTH<=0 /* ** Try to increase the size of the parser stack. Return the number ** of errors. Return 0 on success. */ static int yyGrowStack(yyParser *p){ int newSize; int idx; yyStackEntry *pNew; newSize = p->yystksz*2 + 100; idx = p->yytos ? (int)(p->yytos - p->yystack) : 0; if( p->yystack==&p->yystk0 ){ pNew = malloc(newSize*sizeof(pNew[0])); if( pNew ) pNew[0] = p->yystk0; }else{ pNew = realloc(p->yystack, newSize*sizeof(pNew[0])); } if( pNew ){ p->yystack = pNew; p->yytos = &p->yystack[idx]; #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sStack grows from %d to %d entries.\n", yyTracePrompt, p->yystksz, newSize); } #endif p->yystksz = newSize; } return pNew==0; } #endif /* Datatype of the argument to the memory allocated passed as the ** second argument to ParseAlloc() below. This can be changed by ** putting an appropriate #define in the %include section of the input ** grammar. */ #ifndef YYMALLOCARGTYPE # define YYMALLOCARGTYPE size_t #endif /* Initialize a new parser that has already been allocated. */ void ParseInit(void *yypRawParser ParseCTX_PDECL){ yyParser *yypParser = (yyParser*)yypRawParser; ParseCTX_STORE #ifdef YYTRACKMAXSTACKDEPTH yypParser->yyhwm = 0; #endif #if YYSTACKDEPTH<=0 yypParser->yytos = NULL; yypParser->yystack = NULL; yypParser->yystksz = 0; if( yyGrowStack(yypParser) ){ yypParser->yystack = &yypParser->yystk0; yypParser->yystksz = 1; } #endif #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif yypParser->yytos = yypParser->yystack; yypParser->yystack[0].stateno = 0; yypParser->yystack[0].major = 0; #if YYSTACKDEPTH>0 yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1]; #endif } #ifndef Parse_ENGINEALWAYSONSTACK /* ** This function allocates a new parser. ** The only argument is a pointer to a function which works like ** malloc. ** ** Inputs: ** A pointer to the function used to allocate memory. ** ** Outputs: ** A pointer to a parser. This pointer is used in subsequent calls ** to Parse and ParseFree. */ void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){ yyParser *yypParser; yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) ); if( yypParser ){ ParseCTX_STORE ParseInit(yypParser ParseCTX_PARAM); } return (void*)yypParser; } #endif /* Parse_ENGINEALWAYSONSTACK */ /* The following function deletes the "minor type" or semantic value ** associated with a symbol. The symbol can be either a terminal ** or nonterminal. "yymajor" is the symbol code, and "yypminor" is ** a pointer to the value to be deleted. The code used to do the ** deletions is derived from the %destructor and/or %token_destructor ** directives of the input grammar. */ static void yy_destructor( yyParser *yypParser, /* The parser */ YYCODETYPE yymajor, /* Type code for object to destroy */ YYMINORTYPE *yypminor /* The object to be destroyed */ ){ ParseARG_FETCH ParseCTX_FETCH switch( yymajor ){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen ** when the symbol is popped from the stack during a ** reduce or during error processing or when a parser is ** being destroyed before it is finished parsing. ** ** Note: during a reduce, the only symbols destroyed are those ** which appear on the RHS of the rule, but which are *not* used ** inside the C code. */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ case 378: /* cmd */ case 381: /* literal */ case 392: /* with_opt */ case 398: /* search_condition */ case 403: /* db_options */ case 405: /* alter_db_options */ case 407: /* start_opt */ case 408: /* end_opt */ case 412: /* signed */ case 414: /* retention */ case 415: /* full_table_name */ case 418: /* table_options */ case 423: /* alter_table_clause */ case 424: /* alter_table_options */ case 427: /* column_options */ case 428: /* tags_literal */ case 429: /* create_subtable_clause */ case 432: /* drop_table_clause */ case 435: /* tag_def */ case 436: /* column_def */ case 441: /* duration_literal */ case 442: /* rollup_func_name */ case 444: /* col_name */ case 447: /* like_pattern_opt */ case 448: /* db_name_cond_opt */ case 449: /* table_name_cond */ case 450: /* from_db_opt */ case 452: /* tag_item */ case 456: /* full_tsma_name */ case 458: /* index_options */ case 459: /* full_index_name */ case 461: /* sliding_opt */ case 462: /* sma_stream_opt */ case 463: /* func */ case 467: /* query_or_subquery */ case 468: /* where_clause_opt */ case 471: /* explain_options */ case 472: /* insert_query */ case 477: /* full_view_name */ case 480: /* stream_options */ case 483: /* subtable_opt */ case 486: /* column_stream_def */ case 487: /* stream_col_options */ case 488: /* expression */ case 491: /* literal_func */ case 492: /* signed_literal */ case 495: /* expr_or_subquery */ case 496: /* pseudo_column */ case 497: /* column_reference */ case 498: /* function_expression */ case 499: /* case_when_expression */ case 504: /* star_func_para */ case 506: /* case_when_else_opt */ case 507: /* common_expression */ case 508: /* when_then_expr */ case 509: /* predicate */ case 512: /* in_predicate_value */ case 513: /* boolean_value_expression */ case 514: /* boolean_primary */ case 515: /* from_clause_opt */ case 516: /* table_reference_list */ case 517: /* table_reference */ case 518: /* table_primary */ case 519: /* joined_table */ case 521: /* subquery */ case 522: /* parenthesized_joined_table */ case 525: /* join_on_clause_opt */ case 526: /* window_offset_clause_opt */ case 527: /* jlimit_clause_opt */ case 528: /* window_offset_literal */ case 529: /* query_specification */ case 535: /* range_opt */ case 536: /* every_opt */ case 537: /* fill_opt */ case 538: /* twindow_clause_opt */ case 540: /* having_clause_opt */ case 541: /* select_item */ case 543: /* partition_item */ case 544: /* interval_sliding_duration_literal */ case 547: /* query_expression */ case 548: /* query_simple */ case 550: /* slimit_clause_opt */ case 551: /* limit_clause_opt */ case 552: /* union_query_expression */ case 553: /* query_simple_or_subquery */ case 555: /* sort_specification */ { #line 7 "sql.y" nodesDestroyNode((yypminor->yy416)); #line 3517 "sql.c" } break; case 379: /* account_options */ case 380: /* alter_account_options */ case 382: /* alter_account_option */ case 406: /* speed_opt */ case 466: /* with_meta */ case 475: /* bufsize_opt */ { #line 54 "sql.y" #line 3529 "sql.c" } break; case 383: /* ip_range_list */ case 384: /* white_list */ case 385: /* white_list_opt */ case 409: /* integer_list */ case 410: /* variable_list */ case 411: /* retention_list */ case 416: /* column_def_list */ case 417: /* tags_def_opt */ case 419: /* multi_create_clause */ case 420: /* tag_list_opt */ case 421: /* tags_def */ case 422: /* multi_drop_clause */ case 430: /* specific_cols_opt */ case 431: /* tags_literal_list */ case 433: /* col_name_list */ case 434: /* tag_def_list */ case 438: /* duration_list */ case 439: /* rollup_func_list */ case 457: /* func_list */ case 465: /* expression_list */ case 481: /* col_list_opt */ case 482: /* tag_def_or_ref_opt */ case 485: /* column_stream_def_list */ case 490: /* dnode_list */ case 493: /* literal_list */ case 501: /* star_func_para_list */ case 503: /* other_para_list */ case 505: /* when_then_list */ case 530: /* hint_list */ case 533: /* select_list */ case 534: /* partition_by_clause_opt */ case 539: /* group_by_clause_opt */ case 542: /* partition_list */ case 546: /* group_by_list */ case 549: /* order_by_clause_opt */ case 554: /* sort_specification_list */ { #line 85 "sql.y" nodesDestroyList((yypminor->yy316)); #line 3571 "sql.c" } break; case 386: /* is_import_opt */ case 387: /* is_createdb_opt */ case 389: /* sysinfo_opt */ { #line 99 "sql.y" #line 3580 "sql.c" } break; case 388: /* user_name */ case 395: /* db_name */ case 396: /* table_name */ case 397: /* topic_name */ case 399: /* dnode_endpoint */ case 425: /* column_name */ case 443: /* function_name */ case 453: /* column_alias */ case 454: /* tsma_name */ case 460: /* index_name */ case 464: /* sma_func_name */ case 469: /* cgroup_name */ case 476: /* language_opt */ case 478: /* view_name */ case 479: /* stream_name */ case 489: /* on_vgroup_id */ case 494: /* table_alias */ case 500: /* star_func */ case 502: /* noarg_func */ case 520: /* alias_opt */ { #line 1082 "sql.y" #line 3606 "sql.c" } break; case 390: /* privileges */ case 393: /* priv_type_list */ case 394: /* priv_type */ { #line 131 "sql.y" #line 3615 "sql.c" } break; case 391: /* priv_level */ { #line 148 "sql.y" #line 3622 "sql.c" } break; case 400: /* force_opt */ case 401: /* unsafe_opt */ case 402: /* not_exists_opt */ case 404: /* exists_opt */ case 470: /* analyze_opt */ case 473: /* or_replace_opt */ case 474: /* agg_func_opt */ case 484: /* ignore_opt */ case 531: /* set_quantifier_opt */ case 532: /* tag_mode_opt */ { #line 180 "sql.y" #line 3638 "sql.c" } break; case 413: /* alter_db_option */ case 440: /* alter_table_option */ { #line 288 "sql.y" #line 3646 "sql.c" } break; case 426: /* type_name */ case 437: /* type_name_default_len */ { #line 425 "sql.y" #line 3654 "sql.c" } break; case 445: /* db_kind_opt */ case 451: /* table_kind */ { #line 604 "sql.y" #line 3662 "sql.c" } break; case 446: /* table_kind_db_name_cond_opt */ { #line 569 "sql.y" #line 3669 "sql.c" } break; case 455: /* tsma_func_list */ { #line 623 "sql.y" nodesDestroyNode((yypminor->yy416)); #line 3676 "sql.c" } break; case 510: /* compare_op */ case 511: /* in_op */ { #line 1280 "sql.y" #line 3684 "sql.c" } break; case 523: /* join_type */ { #line 1361 "sql.y" #line 3691 "sql.c" } break; case 524: /* join_subtype */ { #line 1369 "sql.y" #line 3698 "sql.c" } break; case 545: /* fill_mode */ { #line 1485 "sql.y" #line 3705 "sql.c" } break; case 556: /* ordering_specification_opt */ { #line 1570 "sql.y" #line 3712 "sql.c" } break; case 557: /* null_ordering_opt */ { #line 1576 "sql.y" #line 3719 "sql.c" } break; /********* End destructor definitions *****************************************/ default: break; /* If no destructor action specified: do nothing */ } } /* ** Pop the parser's stack once. ** ** If there is a destructor routine associated with the token which ** is popped from the stack, then call it. */ static void yy_pop_parser_stack(yyParser *pParser){ yyStackEntry *yytos; assert( pParser->yytos!=0 ); assert( pParser->yytos > pParser->yystack ); yytos = pParser->yytos--; #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sPopping %s\n", yyTracePrompt, yyTokenName[yytos->major]); } #endif yy_destructor(pParser, yytos->major, &yytos->minor); } /* ** Clear all secondary memory allocations from the parser */ void ParseFinalize(void *p){ yyParser *pParser = (yyParser*)p; while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser); #if YYSTACKDEPTH<=0 if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack); #endif } #ifndef Parse_ENGINEALWAYSONSTACK /* ** Deallocate and destroy a parser. Destructors are called for ** all stack elements before shutting the parser down. ** ** If the YYPARSEFREENEVERNULL macro exists (for example because it ** is defined in a %include section of the input grammar) then it is ** assumed that the input pointer is never NULL. */ void ParseFree( void *p, /* The parser to be deleted */ void (*freeProc)(void*) /* Function used to reclaim memory */ ){ #ifndef YYPARSEFREENEVERNULL if( p==0 ) return; #endif ParseFinalize(p); (*freeProc)(p); } #endif /* Parse_ENGINEALWAYSONSTACK */ /* ** Return the peak depth of the stack for a parser. */ #ifdef YYTRACKMAXSTACKDEPTH int ParseStackPeak(void *p){ yyParser *pParser = (yyParser*)p; return pParser->yyhwm; } #endif /* This array of booleans keeps track of the parser statement ** coverage. The element yycoverage[X][Y] is set when the parser ** is in state X and has a lookahead token Y. In a well-tested ** systems, every element of this matrix should end up being set. */ #if defined(YYCOVERAGE) static unsigned char yycoverage[YYNSTATE][YYNTOKEN]; #endif /* ** Write into out a description of every state/lookahead combination that ** ** (1) has not been used by the parser, and ** (2) is not a syntax error. ** ** Return the number of missed state/lookahead combinations. */ #if defined(YYCOVERAGE) int ParseCoverage(FILE *out){ int stateno, iLookAhead, i; int nMissed = 0; for(stateno=0; statenoYY_MAX_SHIFT ) return stateno; assert( stateno <= YY_SHIFT_COUNT ); #if defined(YYCOVERAGE) yycoverage[stateno][iLookAhead] = 1; #endif do{ i = yy_shift_ofst[stateno]; assert( i>=0 ); assert( i<=YY_ACTTAB_COUNT ); assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); assert( iLookAhead!=YYNOCODE ); assert( iLookAhead < YYNTOKEN ); i += iLookAhead; assert( i<(int)YY_NLOOKAHEAD ); if( yy_lookahead[i]!=iLookAhead ){ #ifdef YYFALLBACK YYCODETYPE iFallback; /* Fallback token */ assert( iLookAhead %s\n", yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]); } #endif assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */ iLookAhead = iFallback; continue; } #endif #ifdef YYWILDCARD { int j = i - iLookAhead + YYWILDCARD; assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) ); if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){ #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n", yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[YYWILDCARD]); } #endif /* NDEBUG */ return yy_action[j]; } } #endif /* YYWILDCARD */ return yy_default[stateno]; }else{ assert( i>=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) ); return yy_action[i]; } }while(1); } /* ** Find the appropriate action for a parser given the non-terminal ** look-ahead token iLookAhead. */ static YYACTIONTYPE yy_find_reduce_action( YYACTIONTYPE stateno, /* Current state number */ YYCODETYPE iLookAhead /* The look-ahead token */ ){ int i; #ifdef YYERRORSYMBOL if( stateno>YY_REDUCE_COUNT ){ return yy_default[stateno]; } #else assert( stateno<=YY_REDUCE_COUNT ); #endif i = yy_reduce_ofst[stateno]; assert( iLookAhead!=YYNOCODE ); i += iLookAhead; #ifdef YYERRORSYMBOL if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){ return yy_default[stateno]; } #else assert( i>=0 && iyytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will execute if the parser ** stack every overflows */ /******** Begin %stack_overflow code ******************************************/ /******** End %stack_overflow code ********************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument var */ ParseCTX_STORE } /* ** Print tracing information for a SHIFT action */ #ifndef NDEBUG static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){ if( yyTraceFILE ){ if( yyNewStateyytos->major], yyNewState); }else{ fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n", yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major], yyNewState - YY_MIN_REDUCE); } } } #else # define yyTraceShift(X,Y,Z) #endif /* ** Perform a shift action. */ static void yy_shift( yyParser *yypParser, /* The parser to be shifted */ YYACTIONTYPE yyNewState, /* The new state to shift in */ YYCODETYPE yyMajor, /* The major token to shift in */ ParseTOKENTYPE yyMinor /* The minor token to shift in */ ){ yyStackEntry *yytos; yypParser->yytos++; #ifdef YYTRACKMAXSTACKDEPTH if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) ); } #endif #if YYSTACKDEPTH>0 if( yypParser->yytos>yypParser->yystackEnd ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){ if( yyGrowStack(yypParser) ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } } #endif if( yyNewState > YY_MAX_SHIFT ){ yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE; } yytos = yypParser->yytos; yytos->stateno = yyNewState; yytos->major = yyMajor; yytos->minor.yy0 = yyMinor; yyTraceShift(yypParser, yyNewState, "Shift"); } /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side ** of that rule */ static const YYCODETYPE yyRuleInfoLhs[] = { 378, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ 378, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 379, /* (2) account_options ::= */ 379, /* (3) account_options ::= account_options PPS literal */ 379, /* (4) account_options ::= account_options TSERIES literal */ 379, /* (5) account_options ::= account_options STORAGE literal */ 379, /* (6) account_options ::= account_options STREAMS literal */ 379, /* (7) account_options ::= account_options QTIME literal */ 379, /* (8) account_options ::= account_options DBS literal */ 379, /* (9) account_options ::= account_options USERS literal */ 379, /* (10) account_options ::= account_options CONNS literal */ 379, /* (11) account_options ::= account_options STATE literal */ 380, /* (12) alter_account_options ::= alter_account_option */ 380, /* (13) alter_account_options ::= alter_account_options alter_account_option */ 382, /* (14) alter_account_option ::= PASS literal */ 382, /* (15) alter_account_option ::= PPS literal */ 382, /* (16) alter_account_option ::= TSERIES literal */ 382, /* (17) alter_account_option ::= STORAGE literal */ 382, /* (18) alter_account_option ::= STREAMS literal */ 382, /* (19) alter_account_option ::= QTIME literal */ 382, /* (20) alter_account_option ::= DBS literal */ 382, /* (21) alter_account_option ::= USERS literal */ 382, /* (22) alter_account_option ::= CONNS literal */ 382, /* (23) alter_account_option ::= STATE literal */ 383, /* (24) ip_range_list ::= NK_STRING */ 383, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ 384, /* (26) white_list ::= HOST ip_range_list */ 385, /* (27) white_list_opt ::= */ 385, /* (28) white_list_opt ::= white_list */ 386, /* (29) is_import_opt ::= */ 386, /* (30) is_import_opt ::= IS_IMPORT NK_INTEGER */ 387, /* (31) is_createdb_opt ::= */ 387, /* (32) is_createdb_opt ::= CREATEDB NK_INTEGER */ 378, /* (33) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt is_createdb_opt is_import_opt white_list_opt */ 378, /* (34) cmd ::= ALTER USER user_name PASS NK_STRING */ 378, /* (35) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ 378, /* (36) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ 378, /* (37) cmd ::= ALTER USER user_name CREATEDB NK_INTEGER */ 378, /* (38) cmd ::= ALTER USER user_name ADD white_list */ 378, /* (39) cmd ::= ALTER USER user_name DROP white_list */ 378, /* (40) cmd ::= DROP USER user_name */ 389, /* (41) sysinfo_opt ::= */ 389, /* (42) sysinfo_opt ::= SYSINFO NK_INTEGER */ 378, /* (43) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ 378, /* (44) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ 390, /* (45) privileges ::= ALL */ 390, /* (46) privileges ::= priv_type_list */ 390, /* (47) privileges ::= SUBSCRIBE */ 393, /* (48) priv_type_list ::= priv_type */ 393, /* (49) priv_type_list ::= priv_type_list NK_COMMA priv_type */ 394, /* (50) priv_type ::= READ */ 394, /* (51) priv_type ::= WRITE */ 394, /* (52) priv_type ::= ALTER */ 391, /* (53) priv_level ::= NK_STAR NK_DOT NK_STAR */ 391, /* (54) priv_level ::= db_name NK_DOT NK_STAR */ 391, /* (55) priv_level ::= db_name NK_DOT table_name */ 391, /* (56) priv_level ::= topic_name */ 392, /* (57) with_opt ::= */ 392, /* (58) with_opt ::= WITH search_condition */ 378, /* (59) cmd ::= CREATE ENCRYPT_KEY NK_STRING */ 378, /* (60) cmd ::= CREATE DNODE dnode_endpoint */ 378, /* (61) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ 378, /* (62) cmd ::= DROP DNODE NK_INTEGER force_opt */ 378, /* (63) cmd ::= DROP DNODE dnode_endpoint force_opt */ 378, /* (64) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ 378, /* (65) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ 378, /* (66) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ 378, /* (67) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ 378, /* (68) cmd ::= ALTER ALL DNODES NK_STRING */ 378, /* (69) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ 378, /* (70) cmd ::= RESTORE DNODE NK_INTEGER */ 399, /* (71) dnode_endpoint ::= NK_STRING */ 399, /* (72) dnode_endpoint ::= NK_ID */ 399, /* (73) dnode_endpoint ::= NK_IPTOKEN */ 400, /* (74) force_opt ::= */ 400, /* (75) force_opt ::= FORCE */ 401, /* (76) unsafe_opt ::= UNSAFE */ 378, /* (77) cmd ::= ALTER CLUSTER NK_STRING */ 378, /* (78) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ 378, /* (79) cmd ::= ALTER LOCAL NK_STRING */ 378, /* (80) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ 378, /* (81) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ 378, /* (82) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ 378, /* (83) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ 378, /* (84) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ 378, /* (85) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ 378, /* (86) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ 378, /* (87) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ 378, /* (88) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ 378, /* (89) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ 378, /* (90) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ 378, /* (91) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ 378, /* (92) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ 378, /* (93) cmd ::= DROP DATABASE exists_opt db_name */ 378, /* (94) cmd ::= USE db_name */ 378, /* (95) cmd ::= ALTER DATABASE db_name alter_db_options */ 378, /* (96) cmd ::= FLUSH DATABASE db_name */ 378, /* (97) cmd ::= TRIM DATABASE db_name speed_opt */ 378, /* (98) cmd ::= S3MIGRATE DATABASE db_name */ 378, /* (99) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ 402, /* (100) not_exists_opt ::= IF NOT EXISTS */ 402, /* (101) not_exists_opt ::= */ 404, /* (102) exists_opt ::= IF EXISTS */ 404, /* (103) exists_opt ::= */ 403, /* (104) db_options ::= */ 403, /* (105) db_options ::= db_options BUFFER NK_INTEGER */ 403, /* (106) db_options ::= db_options CACHEMODEL NK_STRING */ 403, /* (107) db_options ::= db_options CACHESIZE NK_INTEGER */ 403, /* (108) db_options ::= db_options COMP NK_INTEGER */ 403, /* (109) db_options ::= db_options DURATION NK_INTEGER */ 403, /* (110) db_options ::= db_options DURATION NK_VARIABLE */ 403, /* (111) db_options ::= db_options MAXROWS NK_INTEGER */ 403, /* (112) db_options ::= db_options MINROWS NK_INTEGER */ 403, /* (113) db_options ::= db_options KEEP integer_list */ 403, /* (114) db_options ::= db_options KEEP variable_list */ 403, /* (115) db_options ::= db_options PAGES NK_INTEGER */ 403, /* (116) db_options ::= db_options PAGESIZE NK_INTEGER */ 403, /* (117) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ 403, /* (118) db_options ::= db_options PRECISION NK_STRING */ 403, /* (119) db_options ::= db_options REPLICA NK_INTEGER */ 403, /* (120) db_options ::= db_options VGROUPS NK_INTEGER */ 403, /* (121) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ 403, /* (122) db_options ::= db_options RETENTIONS retention_list */ 403, /* (123) db_options ::= db_options SCHEMALESS NK_INTEGER */ 403, /* (124) db_options ::= db_options WAL_LEVEL NK_INTEGER */ 403, /* (125) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ 403, /* (126) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ 403, /* (127) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 403, /* (128) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ 403, /* (129) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 403, /* (130) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ 403, /* (131) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ 403, /* (132) db_options ::= db_options STT_TRIGGER NK_INTEGER */ 403, /* (133) db_options ::= db_options TABLE_PREFIX signed */ 403, /* (134) db_options ::= db_options TABLE_SUFFIX signed */ 403, /* (135) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */ 403, /* (136) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */ 403, /* (137) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ 403, /* (138) db_options ::= db_options S3_COMPACT NK_INTEGER */ 403, /* (139) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ 403, /* (140) db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */ 405, /* (141) alter_db_options ::= alter_db_option */ 405, /* (142) alter_db_options ::= alter_db_options alter_db_option */ 413, /* (143) alter_db_option ::= BUFFER NK_INTEGER */ 413, /* (144) alter_db_option ::= CACHEMODEL NK_STRING */ 413, /* (145) alter_db_option ::= CACHESIZE NK_INTEGER */ 413, /* (146) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ 413, /* (147) alter_db_option ::= KEEP integer_list */ 413, /* (148) alter_db_option ::= KEEP variable_list */ 413, /* (149) alter_db_option ::= PAGES NK_INTEGER */ 413, /* (150) alter_db_option ::= REPLICA NK_INTEGER */ 413, /* (151) alter_db_option ::= WAL_LEVEL NK_INTEGER */ 413, /* (152) alter_db_option ::= STT_TRIGGER NK_INTEGER */ 413, /* (153) alter_db_option ::= MINROWS NK_INTEGER */ 413, /* (154) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ 413, /* (155) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 413, /* (156) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ 413, /* (157) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 413, /* (158) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */ 413, /* (159) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ 413, /* (160) alter_db_option ::= S3_COMPACT NK_INTEGER */ 413, /* (161) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ 413, /* (162) alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */ 409, /* (163) integer_list ::= NK_INTEGER */ 409, /* (164) integer_list ::= integer_list NK_COMMA NK_INTEGER */ 410, /* (165) variable_list ::= NK_VARIABLE */ 410, /* (166) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ 411, /* (167) retention_list ::= retention */ 411, /* (168) retention_list ::= retention_list NK_COMMA retention */ 414, /* (169) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 414, /* (170) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ 406, /* (171) speed_opt ::= */ 406, /* (172) speed_opt ::= BWLIMIT NK_INTEGER */ 407, /* (173) start_opt ::= */ 407, /* (174) start_opt ::= START WITH NK_INTEGER */ 407, /* (175) start_opt ::= START WITH NK_STRING */ 407, /* (176) start_opt ::= START WITH TIMESTAMP NK_STRING */ 408, /* (177) end_opt ::= */ 408, /* (178) end_opt ::= END WITH NK_INTEGER */ 408, /* (179) end_opt ::= END WITH NK_STRING */ 408, /* (180) end_opt ::= END WITH TIMESTAMP NK_STRING */ 378, /* (181) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ 378, /* (182) cmd ::= CREATE TABLE multi_create_clause */ 378, /* (183) cmd ::= CREATE TABLE not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING */ 378, /* (184) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ 378, /* (185) cmd ::= DROP TABLE multi_drop_clause */ 378, /* (186) cmd ::= DROP STABLE exists_opt full_table_name */ 378, /* (187) cmd ::= ALTER TABLE alter_table_clause */ 378, /* (188) cmd ::= ALTER STABLE alter_table_clause */ 423, /* (189) alter_table_clause ::= full_table_name alter_table_options */ 423, /* (190) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name column_options */ 423, /* (191) alter_table_clause ::= full_table_name DROP COLUMN column_name */ 423, /* (192) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ 423, /* (193) alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */ 423, /* (194) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ 423, /* (195) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ 423, /* (196) alter_table_clause ::= full_table_name DROP TAG column_name */ 423, /* (197) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ 423, /* (198) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ 423, /* (199) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ 419, /* (200) multi_create_clause ::= create_subtable_clause */ 419, /* (201) multi_create_clause ::= multi_create_clause create_subtable_clause */ 429, /* (202) 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 */ 422, /* (203) multi_drop_clause ::= drop_table_clause */ 422, /* (204) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ 432, /* (205) drop_table_clause ::= exists_opt full_table_name */ 430, /* (206) specific_cols_opt ::= */ 430, /* (207) specific_cols_opt ::= NK_LP col_name_list NK_RP */ 415, /* (208) full_table_name ::= table_name */ 415, /* (209) full_table_name ::= db_name NK_DOT table_name */ 434, /* (210) tag_def_list ::= tag_def */ 434, /* (211) tag_def_list ::= tag_def_list NK_COMMA tag_def */ 435, /* (212) tag_def ::= column_name type_name */ 416, /* (213) column_def_list ::= column_def */ 416, /* (214) column_def_list ::= column_def_list NK_COMMA column_def */ 436, /* (215) column_def ::= column_name type_name column_options */ 426, /* (216) type_name ::= BOOL */ 426, /* (217) type_name ::= TINYINT */ 426, /* (218) type_name ::= SMALLINT */ 426, /* (219) type_name ::= INT */ 426, /* (220) type_name ::= INTEGER */ 426, /* (221) type_name ::= BIGINT */ 426, /* (222) type_name ::= FLOAT */ 426, /* (223) type_name ::= DOUBLE */ 426, /* (224) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ 426, /* (225) type_name ::= TIMESTAMP */ 426, /* (226) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ 426, /* (227) type_name ::= TINYINT UNSIGNED */ 426, /* (228) type_name ::= SMALLINT UNSIGNED */ 426, /* (229) type_name ::= INT UNSIGNED */ 426, /* (230) type_name ::= BIGINT UNSIGNED */ 426, /* (231) type_name ::= JSON */ 426, /* (232) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ 426, /* (233) type_name ::= MEDIUMBLOB */ 426, /* (234) type_name ::= BLOB */ 426, /* (235) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ 426, /* (236) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ 426, /* (237) type_name ::= DECIMAL */ 426, /* (238) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 426, /* (239) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 437, /* (240) type_name_default_len ::= BINARY */ 437, /* (241) type_name_default_len ::= NCHAR */ 437, /* (242) type_name_default_len ::= VARCHAR */ 437, /* (243) type_name_default_len ::= VARBINARY */ 417, /* (244) tags_def_opt ::= */ 417, /* (245) tags_def_opt ::= tags_def */ 421, /* (246) tags_def ::= TAGS NK_LP tag_def_list NK_RP */ 418, /* (247) table_options ::= */ 418, /* (248) table_options ::= table_options COMMENT NK_STRING */ 418, /* (249) table_options ::= table_options MAX_DELAY duration_list */ 418, /* (250) table_options ::= table_options WATERMARK duration_list */ 418, /* (251) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ 418, /* (252) table_options ::= table_options TTL NK_INTEGER */ 418, /* (253) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ 418, /* (254) table_options ::= table_options DELETE_MARK duration_list */ 424, /* (255) alter_table_options ::= alter_table_option */ 424, /* (256) alter_table_options ::= alter_table_options alter_table_option */ 440, /* (257) alter_table_option ::= COMMENT NK_STRING */ 440, /* (258) alter_table_option ::= TTL NK_INTEGER */ 438, /* (259) duration_list ::= duration_literal */ 438, /* (260) duration_list ::= duration_list NK_COMMA duration_literal */ 439, /* (261) rollup_func_list ::= rollup_func_name */ 439, /* (262) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ 442, /* (263) rollup_func_name ::= function_name */ 442, /* (264) rollup_func_name ::= FIRST */ 442, /* (265) rollup_func_name ::= LAST */ 433, /* (266) col_name_list ::= col_name */ 433, /* (267) col_name_list ::= col_name_list NK_COMMA col_name */ 444, /* (268) col_name ::= column_name */ 378, /* (269) cmd ::= SHOW DNODES */ 378, /* (270) cmd ::= SHOW USERS */ 378, /* (271) cmd ::= SHOW USERS FULL */ 378, /* (272) cmd ::= SHOW USER PRIVILEGES */ 378, /* (273) cmd ::= SHOW db_kind_opt DATABASES */ 378, /* (274) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ 378, /* (275) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ 378, /* (276) cmd ::= SHOW db_name_cond_opt VGROUPS */ 378, /* (277) cmd ::= SHOW MNODES */ 378, /* (278) cmd ::= SHOW QNODES */ 378, /* (279) cmd ::= SHOW ARBGROUPS */ 378, /* (280) cmd ::= SHOW FUNCTIONS */ 378, /* (281) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ 378, /* (282) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ 378, /* (283) cmd ::= SHOW STREAMS */ 378, /* (284) cmd ::= SHOW ACCOUNTS */ 378, /* (285) cmd ::= SHOW APPS */ 378, /* (286) cmd ::= SHOW CONNECTIONS */ 378, /* (287) cmd ::= SHOW LICENCES */ 378, /* (288) cmd ::= SHOW GRANTS */ 378, /* (289) cmd ::= SHOW GRANTS FULL */ 378, /* (290) cmd ::= SHOW GRANTS LOGS */ 378, /* (291) cmd ::= SHOW CLUSTER MACHINES */ 378, /* (292) cmd ::= SHOW CREATE DATABASE db_name */ 378, /* (293) cmd ::= SHOW CREATE TABLE full_table_name */ 378, /* (294) cmd ::= SHOW CREATE STABLE full_table_name */ 378, /* (295) cmd ::= SHOW ENCRYPTIONS */ 378, /* (296) cmd ::= SHOW QUERIES */ 378, /* (297) cmd ::= SHOW SCORES */ 378, /* (298) cmd ::= SHOW TOPICS */ 378, /* (299) cmd ::= SHOW VARIABLES */ 378, /* (300) cmd ::= SHOW CLUSTER VARIABLES */ 378, /* (301) cmd ::= SHOW LOCAL VARIABLES */ 378, /* (302) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ 378, /* (303) cmd ::= SHOW BNODES */ 378, /* (304) cmd ::= SHOW SNODES */ 378, /* (305) cmd ::= SHOW CLUSTER */ 378, /* (306) cmd ::= SHOW TRANSACTIONS */ 378, /* (307) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ 378, /* (308) cmd ::= SHOW CONSUMERS */ 378, /* (309) cmd ::= SHOW SUBSCRIPTIONS */ 378, /* (310) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ 378, /* (311) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ 378, /* (312) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ 378, /* (313) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ 378, /* (314) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ 378, /* (315) cmd ::= SHOW VNODES */ 378, /* (316) cmd ::= SHOW db_name_cond_opt ALIVE */ 378, /* (317) cmd ::= SHOW CLUSTER ALIVE */ 378, /* (318) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ 378, /* (319) cmd ::= SHOW CREATE VIEW full_table_name */ 378, /* (320) cmd ::= SHOW COMPACTS */ 378, /* (321) cmd ::= SHOW COMPACT NK_INTEGER */ 446, /* (322) table_kind_db_name_cond_opt ::= */ 446, /* (323) table_kind_db_name_cond_opt ::= table_kind */ 446, /* (324) table_kind_db_name_cond_opt ::= db_name NK_DOT */ 446, /* (325) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ 451, /* (326) table_kind ::= NORMAL */ 451, /* (327) table_kind ::= CHILD */ 448, /* (328) db_name_cond_opt ::= */ 448, /* (329) db_name_cond_opt ::= db_name NK_DOT */ 447, /* (330) like_pattern_opt ::= */ 447, /* (331) like_pattern_opt ::= LIKE NK_STRING */ 449, /* (332) table_name_cond ::= table_name */ 450, /* (333) from_db_opt ::= */ 450, /* (334) from_db_opt ::= FROM db_name */ 420, /* (335) tag_list_opt ::= */ 420, /* (336) tag_list_opt ::= tag_item */ 420, /* (337) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ 452, /* (338) tag_item ::= TBNAME */ 452, /* (339) tag_item ::= QTAGS */ 452, /* (340) tag_item ::= column_name */ 452, /* (341) tag_item ::= column_name column_alias */ 452, /* (342) tag_item ::= column_name AS column_alias */ 445, /* (343) db_kind_opt ::= */ 445, /* (344) db_kind_opt ::= USER */ 445, /* (345) db_kind_opt ::= SYSTEM */ 378, /* (346) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ 378, /* (347) cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ 378, /* (348) cmd ::= DROP TSMA exists_opt full_tsma_name */ 378, /* (349) cmd ::= SHOW db_name_cond_opt TSMAS */ 456, /* (350) full_tsma_name ::= tsma_name */ 456, /* (351) full_tsma_name ::= db_name NK_DOT tsma_name */ 455, /* (352) tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ 378, /* (353) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ 378, /* (354) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ 378, /* (355) cmd ::= DROP INDEX exists_opt full_index_name */ 459, /* (356) full_index_name ::= index_name */ 459, /* (357) full_index_name ::= db_name NK_DOT index_name */ 458, /* (358) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ 458, /* (359) 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 */ 457, /* (360) func_list ::= func */ 457, /* (361) func_list ::= func_list NK_COMMA func */ 463, /* (362) func ::= sma_func_name NK_LP expression_list NK_RP */ 464, /* (363) sma_func_name ::= function_name */ 464, /* (364) sma_func_name ::= COUNT */ 464, /* (365) sma_func_name ::= FIRST */ 464, /* (366) sma_func_name ::= LAST */ 464, /* (367) sma_func_name ::= LAST_ROW */ 462, /* (368) sma_stream_opt ::= */ 462, /* (369) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ 462, /* (370) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ 462, /* (371) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ 466, /* (372) with_meta ::= AS */ 466, /* (373) with_meta ::= WITH META AS */ 466, /* (374) with_meta ::= ONLY META AS */ 378, /* (375) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ 378, /* (376) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ 378, /* (377) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ 378, /* (378) cmd ::= DROP TOPIC exists_opt topic_name */ 378, /* (379) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ 378, /* (380) cmd ::= DESC full_table_name */ 378, /* (381) cmd ::= DESCRIBE full_table_name */ 378, /* (382) cmd ::= RESET QUERY CACHE */ 378, /* (383) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ 378, /* (384) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 470, /* (385) analyze_opt ::= */ 470, /* (386) analyze_opt ::= ANALYZE */ 471, /* (387) explain_options ::= */ 471, /* (388) explain_options ::= explain_options VERBOSE NK_BOOL */ 471, /* (389) explain_options ::= explain_options RATIO NK_FLOAT */ 378, /* (390) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ 378, /* (391) cmd ::= DROP FUNCTION exists_opt function_name */ 474, /* (392) agg_func_opt ::= */ 474, /* (393) agg_func_opt ::= AGGREGATE */ 475, /* (394) bufsize_opt ::= */ 475, /* (395) bufsize_opt ::= BUFSIZE NK_INTEGER */ 476, /* (396) language_opt ::= */ 476, /* (397) language_opt ::= LANGUAGE NK_STRING */ 473, /* (398) or_replace_opt ::= */ 473, /* (399) or_replace_opt ::= OR REPLACE */ 378, /* (400) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ 378, /* (401) cmd ::= DROP VIEW exists_opt full_view_name */ 477, /* (402) full_view_name ::= view_name */ 477, /* (403) full_view_name ::= db_name NK_DOT view_name */ 378, /* (404) 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 */ 378, /* (405) cmd ::= DROP STREAM exists_opt stream_name */ 378, /* (406) cmd ::= PAUSE STREAM exists_opt stream_name */ 378, /* (407) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 481, /* (408) col_list_opt ::= */ 481, /* (409) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ 485, /* (410) column_stream_def_list ::= column_stream_def */ 485, /* (411) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ 486, /* (412) column_stream_def ::= column_name stream_col_options */ 487, /* (413) stream_col_options ::= */ 487, /* (414) stream_col_options ::= stream_col_options PRIMARY KEY */ 482, /* (415) tag_def_or_ref_opt ::= */ 482, /* (416) tag_def_or_ref_opt ::= tags_def */ 482, /* (417) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ 480, /* (418) stream_options ::= */ 480, /* (419) stream_options ::= stream_options TRIGGER AT_ONCE */ 480, /* (420) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ 480, /* (421) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ 480, /* (422) stream_options ::= stream_options WATERMARK duration_literal */ 480, /* (423) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ 480, /* (424) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ 480, /* (425) stream_options ::= stream_options DELETE_MARK duration_literal */ 480, /* (426) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 483, /* (427) subtable_opt ::= */ 483, /* (428) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 484, /* (429) ignore_opt ::= */ 484, /* (430) ignore_opt ::= IGNORE UNTREATED */ 378, /* (431) cmd ::= KILL CONNECTION NK_INTEGER */ 378, /* (432) cmd ::= KILL QUERY NK_STRING */ 378, /* (433) cmd ::= KILL TRANSACTION NK_INTEGER */ 378, /* (434) cmd ::= KILL COMPACT NK_INTEGER */ 378, /* (435) cmd ::= BALANCE VGROUP */ 378, /* (436) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ 378, /* (437) cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ 378, /* (438) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ 378, /* (439) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ 378, /* (440) cmd ::= SPLIT VGROUP NK_INTEGER */ 489, /* (441) on_vgroup_id ::= */ 489, /* (442) on_vgroup_id ::= ON NK_INTEGER */ 490, /* (443) dnode_list ::= DNODE NK_INTEGER */ 490, /* (444) dnode_list ::= dnode_list DNODE NK_INTEGER */ 378, /* (445) cmd ::= DELETE FROM full_table_name where_clause_opt */ 378, /* (446) cmd ::= query_or_subquery */ 378, /* (447) cmd ::= insert_query */ 472, /* (448) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ 472, /* (449) insert_query ::= INSERT INTO full_table_name query_or_subquery */ 428, /* (450) tags_literal ::= NK_INTEGER */ 428, /* (451) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ 428, /* (452) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ 428, /* (453) tags_literal ::= NK_PLUS NK_INTEGER */ 428, /* (454) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ 428, /* (455) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ 428, /* (456) tags_literal ::= NK_MINUS NK_INTEGER */ 428, /* (457) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ 428, /* (458) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ 428, /* (459) tags_literal ::= NK_FLOAT */ 428, /* (460) tags_literal ::= NK_PLUS NK_FLOAT */ 428, /* (461) tags_literal ::= NK_MINUS NK_FLOAT */ 428, /* (462) tags_literal ::= NK_BIN */ 428, /* (463) tags_literal ::= NK_BIN NK_PLUS duration_literal */ 428, /* (464) tags_literal ::= NK_BIN NK_MINUS duration_literal */ 428, /* (465) tags_literal ::= NK_PLUS NK_BIN */ 428, /* (466) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ 428, /* (467) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ 428, /* (468) tags_literal ::= NK_MINUS NK_BIN */ 428, /* (469) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ 428, /* (470) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ 428, /* (471) tags_literal ::= NK_HEX */ 428, /* (472) tags_literal ::= NK_HEX NK_PLUS duration_literal */ 428, /* (473) tags_literal ::= NK_HEX NK_MINUS duration_literal */ 428, /* (474) tags_literal ::= NK_PLUS NK_HEX */ 428, /* (475) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ 428, /* (476) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ 428, /* (477) tags_literal ::= NK_MINUS NK_HEX */ 428, /* (478) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ 428, /* (479) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ 428, /* (480) tags_literal ::= NK_STRING */ 428, /* (481) tags_literal ::= NK_STRING NK_PLUS duration_literal */ 428, /* (482) tags_literal ::= NK_STRING NK_MINUS duration_literal */ 428, /* (483) tags_literal ::= NK_BOOL */ 428, /* (484) tags_literal ::= NULL */ 428, /* (485) tags_literal ::= literal_func */ 428, /* (486) tags_literal ::= literal_func NK_PLUS duration_literal */ 428, /* (487) tags_literal ::= literal_func NK_MINUS duration_literal */ 431, /* (488) tags_literal_list ::= tags_literal */ 431, /* (489) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ 381, /* (490) literal ::= NK_INTEGER */ 381, /* (491) literal ::= NK_FLOAT */ 381, /* (492) literal ::= NK_STRING */ 381, /* (493) literal ::= NK_BOOL */ 381, /* (494) literal ::= TIMESTAMP NK_STRING */ 381, /* (495) literal ::= duration_literal */ 381, /* (496) literal ::= NULL */ 381, /* (497) literal ::= NK_QUESTION */ 441, /* (498) duration_literal ::= NK_VARIABLE */ 412, /* (499) signed ::= NK_INTEGER */ 412, /* (500) signed ::= NK_PLUS NK_INTEGER */ 412, /* (501) signed ::= NK_MINUS NK_INTEGER */ 412, /* (502) signed ::= NK_FLOAT */ 412, /* (503) signed ::= NK_PLUS NK_FLOAT */ 412, /* (504) signed ::= NK_MINUS NK_FLOAT */ 492, /* (505) signed_literal ::= signed */ 492, /* (506) signed_literal ::= NK_STRING */ 492, /* (507) signed_literal ::= NK_BOOL */ 492, /* (508) signed_literal ::= TIMESTAMP NK_STRING */ 492, /* (509) signed_literal ::= duration_literal */ 492, /* (510) signed_literal ::= NULL */ 492, /* (511) signed_literal ::= literal_func */ 492, /* (512) signed_literal ::= NK_QUESTION */ 493, /* (513) literal_list ::= signed_literal */ 493, /* (514) literal_list ::= literal_list NK_COMMA signed_literal */ 395, /* (515) db_name ::= NK_ID */ 396, /* (516) table_name ::= NK_ID */ 425, /* (517) column_name ::= NK_ID */ 443, /* (518) function_name ::= NK_ID */ 478, /* (519) view_name ::= NK_ID */ 494, /* (520) table_alias ::= NK_ID */ 453, /* (521) column_alias ::= NK_ID */ 453, /* (522) column_alias ::= NK_ALIAS */ 388, /* (523) user_name ::= NK_ID */ 397, /* (524) topic_name ::= NK_ID */ 479, /* (525) stream_name ::= NK_ID */ 469, /* (526) cgroup_name ::= NK_ID */ 460, /* (527) index_name ::= NK_ID */ 454, /* (528) tsma_name ::= NK_ID */ 495, /* (529) expr_or_subquery ::= expression */ 488, /* (530) expression ::= literal */ 488, /* (531) expression ::= pseudo_column */ 488, /* (532) expression ::= column_reference */ 488, /* (533) expression ::= function_expression */ 488, /* (534) expression ::= case_when_expression */ 488, /* (535) expression ::= NK_LP expression NK_RP */ 488, /* (536) expression ::= NK_PLUS expr_or_subquery */ 488, /* (537) expression ::= NK_MINUS expr_or_subquery */ 488, /* (538) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ 488, /* (539) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ 488, /* (540) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ 488, /* (541) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ 488, /* (542) expression ::= expr_or_subquery NK_REM expr_or_subquery */ 488, /* (543) expression ::= column_reference NK_ARROW NK_STRING */ 488, /* (544) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ 488, /* (545) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ 465, /* (546) expression_list ::= expr_or_subquery */ 465, /* (547) expression_list ::= expression_list NK_COMMA expr_or_subquery */ 497, /* (548) column_reference ::= column_name */ 497, /* (549) column_reference ::= table_name NK_DOT column_name */ 497, /* (550) column_reference ::= NK_ALIAS */ 497, /* (551) column_reference ::= table_name NK_DOT NK_ALIAS */ 496, /* (552) pseudo_column ::= ROWTS */ 496, /* (553) pseudo_column ::= TBNAME */ 496, /* (554) pseudo_column ::= table_name NK_DOT TBNAME */ 496, /* (555) pseudo_column ::= QSTART */ 496, /* (556) pseudo_column ::= QEND */ 496, /* (557) pseudo_column ::= QDURATION */ 496, /* (558) pseudo_column ::= WSTART */ 496, /* (559) pseudo_column ::= WEND */ 496, /* (560) pseudo_column ::= WDURATION */ 496, /* (561) pseudo_column ::= IROWTS */ 496, /* (562) pseudo_column ::= ISFILLED */ 496, /* (563) pseudo_column ::= QTAGS */ 498, /* (564) function_expression ::= function_name NK_LP expression_list NK_RP */ 498, /* (565) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ 498, /* (566) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ 498, /* (567) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ 498, /* (568) function_expression ::= literal_func */ 491, /* (569) literal_func ::= noarg_func NK_LP NK_RP */ 491, /* (570) literal_func ::= NOW */ 491, /* (571) literal_func ::= TODAY */ 502, /* (572) noarg_func ::= NOW */ 502, /* (573) noarg_func ::= TODAY */ 502, /* (574) noarg_func ::= TIMEZONE */ 502, /* (575) noarg_func ::= DATABASE */ 502, /* (576) noarg_func ::= CLIENT_VERSION */ 502, /* (577) noarg_func ::= SERVER_VERSION */ 502, /* (578) noarg_func ::= SERVER_STATUS */ 502, /* (579) noarg_func ::= CURRENT_USER */ 502, /* (580) noarg_func ::= USER */ 500, /* (581) star_func ::= COUNT */ 500, /* (582) star_func ::= FIRST */ 500, /* (583) star_func ::= LAST */ 500, /* (584) star_func ::= LAST_ROW */ 501, /* (585) star_func_para_list ::= NK_STAR */ 501, /* (586) star_func_para_list ::= other_para_list */ 503, /* (587) other_para_list ::= star_func_para */ 503, /* (588) other_para_list ::= other_para_list NK_COMMA star_func_para */ 504, /* (589) star_func_para ::= expr_or_subquery */ 504, /* (590) star_func_para ::= table_name NK_DOT NK_STAR */ 499, /* (591) case_when_expression ::= CASE when_then_list case_when_else_opt END */ 499, /* (592) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ 505, /* (593) when_then_list ::= when_then_expr */ 505, /* (594) when_then_list ::= when_then_list when_then_expr */ 508, /* (595) when_then_expr ::= WHEN common_expression THEN common_expression */ 506, /* (596) case_when_else_opt ::= */ 506, /* (597) case_when_else_opt ::= ELSE common_expression */ 509, /* (598) predicate ::= expr_or_subquery compare_op expr_or_subquery */ 509, /* (599) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ 509, /* (600) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ 509, /* (601) predicate ::= expr_or_subquery IS NULL */ 509, /* (602) predicate ::= expr_or_subquery IS NOT NULL */ 509, /* (603) predicate ::= expr_or_subquery in_op in_predicate_value */ 510, /* (604) compare_op ::= NK_LT */ 510, /* (605) compare_op ::= NK_GT */ 510, /* (606) compare_op ::= NK_LE */ 510, /* (607) compare_op ::= NK_GE */ 510, /* (608) compare_op ::= NK_NE */ 510, /* (609) compare_op ::= NK_EQ */ 510, /* (610) compare_op ::= LIKE */ 510, /* (611) compare_op ::= NOT LIKE */ 510, /* (612) compare_op ::= MATCH */ 510, /* (613) compare_op ::= NMATCH */ 510, /* (614) compare_op ::= CONTAINS */ 511, /* (615) in_op ::= IN */ 511, /* (616) in_op ::= NOT IN */ 512, /* (617) in_predicate_value ::= NK_LP literal_list NK_RP */ 513, /* (618) boolean_value_expression ::= boolean_primary */ 513, /* (619) boolean_value_expression ::= NOT boolean_primary */ 513, /* (620) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ 513, /* (621) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ 514, /* (622) boolean_primary ::= predicate */ 514, /* (623) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ 507, /* (624) common_expression ::= expr_or_subquery */ 507, /* (625) common_expression ::= boolean_value_expression */ 515, /* (626) from_clause_opt ::= */ 515, /* (627) from_clause_opt ::= FROM table_reference_list */ 516, /* (628) table_reference_list ::= table_reference */ 516, /* (629) table_reference_list ::= table_reference_list NK_COMMA table_reference */ 517, /* (630) table_reference ::= table_primary */ 517, /* (631) table_reference ::= joined_table */ 518, /* (632) table_primary ::= table_name alias_opt */ 518, /* (633) table_primary ::= db_name NK_DOT table_name alias_opt */ 518, /* (634) table_primary ::= subquery alias_opt */ 518, /* (635) table_primary ::= parenthesized_joined_table */ 520, /* (636) alias_opt ::= */ 520, /* (637) alias_opt ::= table_alias */ 520, /* (638) alias_opt ::= AS table_alias */ 522, /* (639) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ 522, /* (640) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ 519, /* (641) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ 523, /* (642) join_type ::= */ 523, /* (643) join_type ::= INNER */ 523, /* (644) join_type ::= LEFT */ 523, /* (645) join_type ::= RIGHT */ 523, /* (646) join_type ::= FULL */ 524, /* (647) join_subtype ::= */ 524, /* (648) join_subtype ::= OUTER */ 524, /* (649) join_subtype ::= SEMI */ 524, /* (650) join_subtype ::= ANTI */ 524, /* (651) join_subtype ::= ASOF */ 524, /* (652) join_subtype ::= WINDOW */ 525, /* (653) join_on_clause_opt ::= */ 525, /* (654) join_on_clause_opt ::= ON search_condition */ 526, /* (655) window_offset_clause_opt ::= */ 526, /* (656) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ 528, /* (657) window_offset_literal ::= NK_VARIABLE */ 528, /* (658) window_offset_literal ::= NK_MINUS NK_VARIABLE */ 527, /* (659) jlimit_clause_opt ::= */ 527, /* (660) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ 529, /* (661) 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 */ 530, /* (662) hint_list ::= */ 530, /* (663) hint_list ::= NK_HINT */ 532, /* (664) tag_mode_opt ::= */ 532, /* (665) tag_mode_opt ::= TAGS */ 531, /* (666) set_quantifier_opt ::= */ 531, /* (667) set_quantifier_opt ::= DISTINCT */ 531, /* (668) set_quantifier_opt ::= ALL */ 533, /* (669) select_list ::= select_item */ 533, /* (670) select_list ::= select_list NK_COMMA select_item */ 541, /* (671) select_item ::= NK_STAR */ 541, /* (672) select_item ::= common_expression */ 541, /* (673) select_item ::= common_expression column_alias */ 541, /* (674) select_item ::= common_expression AS column_alias */ 541, /* (675) select_item ::= table_name NK_DOT NK_STAR */ 468, /* (676) where_clause_opt ::= */ 468, /* (677) where_clause_opt ::= WHERE search_condition */ 534, /* (678) partition_by_clause_opt ::= */ 534, /* (679) partition_by_clause_opt ::= PARTITION BY partition_list */ 542, /* (680) partition_list ::= partition_item */ 542, /* (681) partition_list ::= partition_list NK_COMMA partition_item */ 543, /* (682) partition_item ::= expr_or_subquery */ 543, /* (683) partition_item ::= expr_or_subquery column_alias */ 543, /* (684) partition_item ::= expr_or_subquery AS column_alias */ 538, /* (685) twindow_clause_opt ::= */ 538, /* (686) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ 538, /* (687) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ 538, /* (688) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ 538, /* (689) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ 538, /* (690) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 538, /* (691) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ 538, /* (692) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 461, /* (693) sliding_opt ::= */ 461, /* (694) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ 544, /* (695) interval_sliding_duration_literal ::= NK_VARIABLE */ 544, /* (696) interval_sliding_duration_literal ::= NK_STRING */ 544, /* (697) interval_sliding_duration_literal ::= NK_INTEGER */ 537, /* (698) fill_opt ::= */ 537, /* (699) fill_opt ::= FILL NK_LP fill_mode NK_RP */ 537, /* (700) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ 537, /* (701) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ 545, /* (702) fill_mode ::= NONE */ 545, /* (703) fill_mode ::= PREV */ 545, /* (704) fill_mode ::= NULL */ 545, /* (705) fill_mode ::= NULL_F */ 545, /* (706) fill_mode ::= LINEAR */ 545, /* (707) fill_mode ::= NEXT */ 539, /* (708) group_by_clause_opt ::= */ 539, /* (709) group_by_clause_opt ::= GROUP BY group_by_list */ 546, /* (710) group_by_list ::= expr_or_subquery */ 546, /* (711) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 540, /* (712) having_clause_opt ::= */ 540, /* (713) having_clause_opt ::= HAVING search_condition */ 535, /* (714) range_opt ::= */ 535, /* (715) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ 535, /* (716) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 536, /* (717) every_opt ::= */ 536, /* (718) every_opt ::= EVERY NK_LP duration_literal NK_RP */ 547, /* (719) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ 548, /* (720) query_simple ::= query_specification */ 548, /* (721) query_simple ::= union_query_expression */ 552, /* (722) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ 552, /* (723) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ 553, /* (724) query_simple_or_subquery ::= query_simple */ 553, /* (725) query_simple_or_subquery ::= subquery */ 467, /* (726) query_or_subquery ::= query_expression */ 467, /* (727) query_or_subquery ::= subquery */ 549, /* (728) order_by_clause_opt ::= */ 549, /* (729) order_by_clause_opt ::= ORDER BY sort_specification_list */ 550, /* (730) slimit_clause_opt ::= */ 550, /* (731) slimit_clause_opt ::= SLIMIT NK_INTEGER */ 550, /* (732) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ 550, /* (733) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 551, /* (734) limit_clause_opt ::= */ 551, /* (735) limit_clause_opt ::= LIMIT NK_INTEGER */ 551, /* (736) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ 551, /* (737) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 521, /* (738) subquery ::= NK_LP query_expression NK_RP */ 521, /* (739) subquery ::= NK_LP subquery NK_RP */ 398, /* (740) search_condition ::= common_expression */ 554, /* (741) sort_specification_list ::= sort_specification */ 554, /* (742) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ 555, /* (743) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 556, /* (744) ordering_specification_opt ::= */ 556, /* (745) ordering_specification_opt ::= ASC */ 556, /* (746) ordering_specification_opt ::= DESC */ 557, /* (747) null_ordering_opt ::= */ 557, /* (748) null_ordering_opt ::= NULLS FIRST */ 557, /* (749) null_ordering_opt ::= NULLS LAST */ 427, /* (750) column_options ::= */ 427, /* (751) column_options ::= column_options PRIMARY KEY */ 427, /* (752) column_options ::= column_options ENCODE NK_STRING */ 427, /* (753) column_options ::= column_options COMPRESS NK_STRING */ 427, /* (754) column_options ::= column_options LEVEL NK_STRING */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number ** of symbols on the right-hand side of that rule. */ static const signed char yyRuleInfoNRhs[] = { -6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ -4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 0, /* (2) account_options ::= */ -3, /* (3) account_options ::= account_options PPS literal */ -3, /* (4) account_options ::= account_options TSERIES literal */ -3, /* (5) account_options ::= account_options STORAGE literal */ -3, /* (6) account_options ::= account_options STREAMS literal */ -3, /* (7) account_options ::= account_options QTIME literal */ -3, /* (8) account_options ::= account_options DBS literal */ -3, /* (9) account_options ::= account_options USERS literal */ -3, /* (10) account_options ::= account_options CONNS literal */ -3, /* (11) account_options ::= account_options STATE literal */ -1, /* (12) alter_account_options ::= alter_account_option */ -2, /* (13) alter_account_options ::= alter_account_options alter_account_option */ -2, /* (14) alter_account_option ::= PASS literal */ -2, /* (15) alter_account_option ::= PPS literal */ -2, /* (16) alter_account_option ::= TSERIES literal */ -2, /* (17) alter_account_option ::= STORAGE literal */ -2, /* (18) alter_account_option ::= STREAMS literal */ -2, /* (19) alter_account_option ::= QTIME literal */ -2, /* (20) alter_account_option ::= DBS literal */ -2, /* (21) alter_account_option ::= USERS literal */ -2, /* (22) alter_account_option ::= CONNS literal */ -2, /* (23) alter_account_option ::= STATE literal */ -1, /* (24) ip_range_list ::= NK_STRING */ -3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ -2, /* (26) white_list ::= HOST ip_range_list */ 0, /* (27) white_list_opt ::= */ -1, /* (28) white_list_opt ::= white_list */ 0, /* (29) is_import_opt ::= */ -2, /* (30) is_import_opt ::= IS_IMPORT NK_INTEGER */ 0, /* (31) is_createdb_opt ::= */ -2, /* (32) is_createdb_opt ::= CREATEDB NK_INTEGER */ -9, /* (33) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt is_createdb_opt is_import_opt white_list_opt */ -5, /* (34) cmd ::= ALTER USER user_name PASS NK_STRING */ -5, /* (35) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -5, /* (36) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -5, /* (37) cmd ::= ALTER USER user_name CREATEDB NK_INTEGER */ -5, /* (38) cmd ::= ALTER USER user_name ADD white_list */ -5, /* (39) cmd ::= ALTER USER user_name DROP white_list */ -3, /* (40) cmd ::= DROP USER user_name */ 0, /* (41) sysinfo_opt ::= */ -2, /* (42) sysinfo_opt ::= SYSINFO NK_INTEGER */ -7, /* (43) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -7, /* (44) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -1, /* (45) privileges ::= ALL */ -1, /* (46) privileges ::= priv_type_list */ -1, /* (47) privileges ::= SUBSCRIBE */ -1, /* (48) priv_type_list ::= priv_type */ -3, /* (49) priv_type_list ::= priv_type_list NK_COMMA priv_type */ -1, /* (50) priv_type ::= READ */ -1, /* (51) priv_type ::= WRITE */ -1, /* (52) priv_type ::= ALTER */ -3, /* (53) priv_level ::= NK_STAR NK_DOT NK_STAR */ -3, /* (54) priv_level ::= db_name NK_DOT NK_STAR */ -3, /* (55) priv_level ::= db_name NK_DOT table_name */ -1, /* (56) priv_level ::= topic_name */ 0, /* (57) with_opt ::= */ -2, /* (58) with_opt ::= WITH search_condition */ -3, /* (59) cmd ::= CREATE ENCRYPT_KEY NK_STRING */ -3, /* (60) cmd ::= CREATE DNODE dnode_endpoint */ -5, /* (61) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -4, /* (62) cmd ::= DROP DNODE NK_INTEGER force_opt */ -4, /* (63) cmd ::= DROP DNODE dnode_endpoint force_opt */ -4, /* (64) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -4, /* (65) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -4, /* (66) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ -5, /* (67) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ -4, /* (68) cmd ::= ALTER ALL DNODES NK_STRING */ -5, /* (69) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ -3, /* (70) cmd ::= RESTORE DNODE NK_INTEGER */ -1, /* (71) dnode_endpoint ::= NK_STRING */ -1, /* (72) dnode_endpoint ::= NK_ID */ -1, /* (73) dnode_endpoint ::= NK_IPTOKEN */ 0, /* (74) force_opt ::= */ -1, /* (75) force_opt ::= FORCE */ -1, /* (76) unsafe_opt ::= UNSAFE */ -3, /* (77) cmd ::= ALTER CLUSTER NK_STRING */ -4, /* (78) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ -3, /* (79) cmd ::= ALTER LOCAL NK_STRING */ -4, /* (80) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ -5, /* (81) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ -5, /* (82) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ -5, /* (83) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ -5, /* (84) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ -5, /* (85) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ -5, /* (86) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ -5, /* (87) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ -5, /* (88) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ -5, /* (89) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ -5, /* (90) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ -5, /* (91) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ -5, /* (92) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -4, /* (93) cmd ::= DROP DATABASE exists_opt db_name */ -2, /* (94) cmd ::= USE db_name */ -4, /* (95) cmd ::= ALTER DATABASE db_name alter_db_options */ -3, /* (96) cmd ::= FLUSH DATABASE db_name */ -4, /* (97) cmd ::= TRIM DATABASE db_name speed_opt */ -3, /* (98) cmd ::= S3MIGRATE DATABASE db_name */ -5, /* (99) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -3, /* (100) not_exists_opt ::= IF NOT EXISTS */ 0, /* (101) not_exists_opt ::= */ -2, /* (102) exists_opt ::= IF EXISTS */ 0, /* (103) exists_opt ::= */ 0, /* (104) db_options ::= */ -3, /* (105) db_options ::= db_options BUFFER NK_INTEGER */ -3, /* (106) db_options ::= db_options CACHEMODEL NK_STRING */ -3, /* (107) db_options ::= db_options CACHESIZE NK_INTEGER */ -3, /* (108) db_options ::= db_options COMP NK_INTEGER */ -3, /* (109) db_options ::= db_options DURATION NK_INTEGER */ -3, /* (110) db_options ::= db_options DURATION NK_VARIABLE */ -3, /* (111) db_options ::= db_options MAXROWS NK_INTEGER */ -3, /* (112) db_options ::= db_options MINROWS NK_INTEGER */ -3, /* (113) db_options ::= db_options KEEP integer_list */ -3, /* (114) db_options ::= db_options KEEP variable_list */ -3, /* (115) db_options ::= db_options PAGES NK_INTEGER */ -3, /* (116) db_options ::= db_options PAGESIZE NK_INTEGER */ -3, /* (117) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -3, /* (118) db_options ::= db_options PRECISION NK_STRING */ -3, /* (119) db_options ::= db_options REPLICA NK_INTEGER */ -3, /* (120) db_options ::= db_options VGROUPS NK_INTEGER */ -3, /* (121) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -3, /* (122) db_options ::= db_options RETENTIONS retention_list */ -3, /* (123) db_options ::= db_options SCHEMALESS NK_INTEGER */ -3, /* (124) db_options ::= db_options WAL_LEVEL NK_INTEGER */ -3, /* (125) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -3, /* (126) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -4, /* (127) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -3, /* (128) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -4, /* (129) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -3, /* (130) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -3, /* (131) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -3, /* (132) db_options ::= db_options STT_TRIGGER NK_INTEGER */ -3, /* (133) db_options ::= db_options TABLE_PREFIX signed */ -3, /* (134) db_options ::= db_options TABLE_SUFFIX signed */ -3, /* (135) db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */ -3, /* (136) db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */ -3, /* (137) db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ -3, /* (138) db_options ::= db_options S3_COMPACT NK_INTEGER */ -3, /* (139) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ -3, /* (140) db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */ -1, /* (141) alter_db_options ::= alter_db_option */ -2, /* (142) alter_db_options ::= alter_db_options alter_db_option */ -2, /* (143) alter_db_option ::= BUFFER NK_INTEGER */ -2, /* (144) alter_db_option ::= CACHEMODEL NK_STRING */ -2, /* (145) alter_db_option ::= CACHESIZE NK_INTEGER */ -2, /* (146) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -2, /* (147) alter_db_option ::= KEEP integer_list */ -2, /* (148) alter_db_option ::= KEEP variable_list */ -2, /* (149) alter_db_option ::= PAGES NK_INTEGER */ -2, /* (150) alter_db_option ::= REPLICA NK_INTEGER */ -2, /* (151) alter_db_option ::= WAL_LEVEL NK_INTEGER */ -2, /* (152) alter_db_option ::= STT_TRIGGER NK_INTEGER */ -2, /* (153) alter_db_option ::= MINROWS NK_INTEGER */ -2, /* (154) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -3, /* (155) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -2, /* (156) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -3, /* (157) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -2, /* (158) alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */ -2, /* (159) alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ -2, /* (160) alter_db_option ::= S3_COMPACT NK_INTEGER */ -2, /* (161) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ -2, /* (162) alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */ -1, /* (163) integer_list ::= NK_INTEGER */ -3, /* (164) integer_list ::= integer_list NK_COMMA NK_INTEGER */ -1, /* (165) variable_list ::= NK_VARIABLE */ -3, /* (166) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -1, /* (167) retention_list ::= retention */ -3, /* (168) retention_list ::= retention_list NK_COMMA retention */ -3, /* (169) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -3, /* (170) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ 0, /* (171) speed_opt ::= */ -2, /* (172) speed_opt ::= BWLIMIT NK_INTEGER */ 0, /* (173) start_opt ::= */ -3, /* (174) start_opt ::= START WITH NK_INTEGER */ -3, /* (175) start_opt ::= START WITH NK_STRING */ -4, /* (176) start_opt ::= START WITH TIMESTAMP NK_STRING */ 0, /* (177) end_opt ::= */ -3, /* (178) end_opt ::= END WITH NK_INTEGER */ -3, /* (179) end_opt ::= END WITH NK_STRING */ -4, /* (180) end_opt ::= END WITH TIMESTAMP NK_STRING */ -9, /* (181) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ -3, /* (182) cmd ::= CREATE TABLE multi_create_clause */ -10, /* (183) cmd ::= CREATE TABLE not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING */ -9, /* (184) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ -3, /* (185) cmd ::= DROP TABLE multi_drop_clause */ -4, /* (186) cmd ::= DROP STABLE exists_opt full_table_name */ -3, /* (187) cmd ::= ALTER TABLE alter_table_clause */ -3, /* (188) cmd ::= ALTER STABLE alter_table_clause */ -2, /* (189) alter_table_clause ::= full_table_name alter_table_options */ -6, /* (190) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name column_options */ -4, /* (191) alter_table_clause ::= full_table_name DROP COLUMN column_name */ -5, /* (192) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -5, /* (193) alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */ -5, /* (194) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -5, /* (195) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -4, /* (196) alter_table_clause ::= full_table_name DROP TAG column_name */ -5, /* (197) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -5, /* (198) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -6, /* (199) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ -1, /* (200) multi_create_clause ::= create_subtable_clause */ -2, /* (201) multi_create_clause ::= multi_create_clause create_subtable_clause */ -10, /* (202) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ -1, /* (203) multi_drop_clause ::= drop_table_clause */ -3, /* (204) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ -2, /* (205) drop_table_clause ::= exists_opt full_table_name */ 0, /* (206) specific_cols_opt ::= */ -3, /* (207) specific_cols_opt ::= NK_LP col_name_list NK_RP */ -1, /* (208) full_table_name ::= table_name */ -3, /* (209) full_table_name ::= db_name NK_DOT table_name */ -1, /* (210) tag_def_list ::= tag_def */ -3, /* (211) tag_def_list ::= tag_def_list NK_COMMA tag_def */ -2, /* (212) tag_def ::= column_name type_name */ -1, /* (213) column_def_list ::= column_def */ -3, /* (214) column_def_list ::= column_def_list NK_COMMA column_def */ -3, /* (215) column_def ::= column_name type_name column_options */ -1, /* (216) type_name ::= BOOL */ -1, /* (217) type_name ::= TINYINT */ -1, /* (218) type_name ::= SMALLINT */ -1, /* (219) type_name ::= INT */ -1, /* (220) type_name ::= INTEGER */ -1, /* (221) type_name ::= BIGINT */ -1, /* (222) type_name ::= FLOAT */ -1, /* (223) type_name ::= DOUBLE */ -4, /* (224) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -1, /* (225) type_name ::= TIMESTAMP */ -4, /* (226) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -2, /* (227) type_name ::= TINYINT UNSIGNED */ -2, /* (228) type_name ::= SMALLINT UNSIGNED */ -2, /* (229) type_name ::= INT UNSIGNED */ -2, /* (230) type_name ::= BIGINT UNSIGNED */ -1, /* (231) type_name ::= JSON */ -4, /* (232) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -1, /* (233) type_name ::= MEDIUMBLOB */ -1, /* (234) type_name ::= BLOB */ -4, /* (235) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -4, /* (236) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -1, /* (237) type_name ::= DECIMAL */ -4, /* (238) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (239) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -1, /* (240) type_name_default_len ::= BINARY */ -1, /* (241) type_name_default_len ::= NCHAR */ -1, /* (242) type_name_default_len ::= VARCHAR */ -1, /* (243) type_name_default_len ::= VARBINARY */ 0, /* (244) tags_def_opt ::= */ -1, /* (245) tags_def_opt ::= tags_def */ -4, /* (246) tags_def ::= TAGS NK_LP tag_def_list NK_RP */ 0, /* (247) table_options ::= */ -3, /* (248) table_options ::= table_options COMMENT NK_STRING */ -3, /* (249) table_options ::= table_options MAX_DELAY duration_list */ -3, /* (250) table_options ::= table_options WATERMARK duration_list */ -5, /* (251) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -3, /* (252) table_options ::= table_options TTL NK_INTEGER */ -5, /* (253) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -3, /* (254) table_options ::= table_options DELETE_MARK duration_list */ -1, /* (255) alter_table_options ::= alter_table_option */ -2, /* (256) alter_table_options ::= alter_table_options alter_table_option */ -2, /* (257) alter_table_option ::= COMMENT NK_STRING */ -2, /* (258) alter_table_option ::= TTL NK_INTEGER */ -1, /* (259) duration_list ::= duration_literal */ -3, /* (260) duration_list ::= duration_list NK_COMMA duration_literal */ -1, /* (261) rollup_func_list ::= rollup_func_name */ -3, /* (262) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ -1, /* (263) rollup_func_name ::= function_name */ -1, /* (264) rollup_func_name ::= FIRST */ -1, /* (265) rollup_func_name ::= LAST */ -1, /* (266) col_name_list ::= col_name */ -3, /* (267) col_name_list ::= col_name_list NK_COMMA col_name */ -1, /* (268) col_name ::= column_name */ -2, /* (269) cmd ::= SHOW DNODES */ -2, /* (270) cmd ::= SHOW USERS */ -3, /* (271) cmd ::= SHOW USERS FULL */ -3, /* (272) cmd ::= SHOW USER PRIVILEGES */ -3, /* (273) cmd ::= SHOW db_kind_opt DATABASES */ -4, /* (274) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ -4, /* (275) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -3, /* (276) cmd ::= SHOW db_name_cond_opt VGROUPS */ -2, /* (277) cmd ::= SHOW MNODES */ -2, /* (278) cmd ::= SHOW QNODES */ -2, /* (279) cmd ::= SHOW ARBGROUPS */ -2, /* (280) cmd ::= SHOW FUNCTIONS */ -5, /* (281) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -6, /* (282) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -2, /* (283) cmd ::= SHOW STREAMS */ -2, /* (284) cmd ::= SHOW ACCOUNTS */ -2, /* (285) cmd ::= SHOW APPS */ -2, /* (286) cmd ::= SHOW CONNECTIONS */ -2, /* (287) cmd ::= SHOW LICENCES */ -2, /* (288) cmd ::= SHOW GRANTS */ -3, /* (289) cmd ::= SHOW GRANTS FULL */ -3, /* (290) cmd ::= SHOW GRANTS LOGS */ -3, /* (291) cmd ::= SHOW CLUSTER MACHINES */ -4, /* (292) cmd ::= SHOW CREATE DATABASE db_name */ -4, /* (293) cmd ::= SHOW CREATE TABLE full_table_name */ -4, /* (294) cmd ::= SHOW CREATE STABLE full_table_name */ -2, /* (295) cmd ::= SHOW ENCRYPTIONS */ -2, /* (296) cmd ::= SHOW QUERIES */ -2, /* (297) cmd ::= SHOW SCORES */ -2, /* (298) cmd ::= SHOW TOPICS */ -2, /* (299) cmd ::= SHOW VARIABLES */ -3, /* (300) cmd ::= SHOW CLUSTER VARIABLES */ -3, /* (301) cmd ::= SHOW LOCAL VARIABLES */ -5, /* (302) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -2, /* (303) cmd ::= SHOW BNODES */ -2, /* (304) cmd ::= SHOW SNODES */ -2, /* (305) cmd ::= SHOW CLUSTER */ -2, /* (306) cmd ::= SHOW TRANSACTIONS */ -4, /* (307) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -2, /* (308) cmd ::= SHOW CONSUMERS */ -2, /* (309) cmd ::= SHOW SUBSCRIPTIONS */ -5, /* (310) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -6, /* (311) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -7, /* (312) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -8, /* (313) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -5, /* (314) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ -2, /* (315) cmd ::= SHOW VNODES */ -3, /* (316) cmd ::= SHOW db_name_cond_opt ALIVE */ -3, /* (317) cmd ::= SHOW CLUSTER ALIVE */ -4, /* (318) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ -4, /* (319) cmd ::= SHOW CREATE VIEW full_table_name */ -2, /* (320) cmd ::= SHOW COMPACTS */ -3, /* (321) cmd ::= SHOW COMPACT NK_INTEGER */ 0, /* (322) table_kind_db_name_cond_opt ::= */ -1, /* (323) table_kind_db_name_cond_opt ::= table_kind */ -2, /* (324) table_kind_db_name_cond_opt ::= db_name NK_DOT */ -3, /* (325) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ -1, /* (326) table_kind ::= NORMAL */ -1, /* (327) table_kind ::= CHILD */ 0, /* (328) db_name_cond_opt ::= */ -2, /* (329) db_name_cond_opt ::= db_name NK_DOT */ 0, /* (330) like_pattern_opt ::= */ -2, /* (331) like_pattern_opt ::= LIKE NK_STRING */ -1, /* (332) table_name_cond ::= table_name */ 0, /* (333) from_db_opt ::= */ -2, /* (334) from_db_opt ::= FROM db_name */ 0, /* (335) tag_list_opt ::= */ -1, /* (336) tag_list_opt ::= tag_item */ -3, /* (337) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ -1, /* (338) tag_item ::= TBNAME */ -1, /* (339) tag_item ::= QTAGS */ -1, /* (340) tag_item ::= column_name */ -2, /* (341) tag_item ::= column_name column_alias */ -3, /* (342) tag_item ::= column_name AS column_alias */ 0, /* (343) db_kind_opt ::= */ -1, /* (344) db_kind_opt ::= USER */ -1, /* (345) db_kind_opt ::= SYSTEM */ -11, /* (346) cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ -11, /* (347) cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ -4, /* (348) cmd ::= DROP TSMA exists_opt full_tsma_name */ -3, /* (349) cmd ::= SHOW db_name_cond_opt TSMAS */ -1, /* (350) full_tsma_name ::= tsma_name */ -3, /* (351) full_tsma_name ::= db_name NK_DOT tsma_name */ -4, /* (352) tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ -8, /* (353) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ -9, /* (354) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ -4, /* (355) cmd ::= DROP INDEX exists_opt full_index_name */ -1, /* (356) full_index_name ::= index_name */ -3, /* (357) full_index_name ::= db_name NK_DOT index_name */ -10, /* (358) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -12, /* (359) 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, /* (360) func_list ::= func */ -3, /* (361) func_list ::= func_list NK_COMMA func */ -4, /* (362) func ::= sma_func_name NK_LP expression_list NK_RP */ -1, /* (363) sma_func_name ::= function_name */ -1, /* (364) sma_func_name ::= COUNT */ -1, /* (365) sma_func_name ::= FIRST */ -1, /* (366) sma_func_name ::= LAST */ -1, /* (367) sma_func_name ::= LAST_ROW */ 0, /* (368) sma_stream_opt ::= */ -3, /* (369) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -3, /* (370) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -3, /* (371) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -1, /* (372) with_meta ::= AS */ -3, /* (373) with_meta ::= WITH META AS */ -3, /* (374) with_meta ::= ONLY META AS */ -6, /* (375) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -7, /* (376) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -8, /* (377) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -4, /* (378) cmd ::= DROP TOPIC exists_opt topic_name */ -7, /* (379) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -2, /* (380) cmd ::= DESC full_table_name */ -2, /* (381) cmd ::= DESCRIBE full_table_name */ -3, /* (382) cmd ::= RESET QUERY CACHE */ -4, /* (383) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ -4, /* (384) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 0, /* (385) analyze_opt ::= */ -1, /* (386) analyze_opt ::= ANALYZE */ 0, /* (387) explain_options ::= */ -3, /* (388) explain_options ::= explain_options VERBOSE NK_BOOL */ -3, /* (389) explain_options ::= explain_options RATIO NK_FLOAT */ -12, /* (390) 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, /* (391) cmd ::= DROP FUNCTION exists_opt function_name */ 0, /* (392) agg_func_opt ::= */ -1, /* (393) agg_func_opt ::= AGGREGATE */ 0, /* (394) bufsize_opt ::= */ -2, /* (395) bufsize_opt ::= BUFSIZE NK_INTEGER */ 0, /* (396) language_opt ::= */ -2, /* (397) language_opt ::= LANGUAGE NK_STRING */ 0, /* (398) or_replace_opt ::= */ -2, /* (399) or_replace_opt ::= OR REPLACE */ -6, /* (400) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ -4, /* (401) cmd ::= DROP VIEW exists_opt full_view_name */ -1, /* (402) full_view_name ::= view_name */ -3, /* (403) full_view_name ::= db_name NK_DOT view_name */ -12, /* (404) 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, /* (405) cmd ::= DROP STREAM exists_opt stream_name */ -4, /* (406) cmd ::= PAUSE STREAM exists_opt stream_name */ -5, /* (407) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 0, /* (408) col_list_opt ::= */ -3, /* (409) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ -1, /* (410) column_stream_def_list ::= column_stream_def */ -3, /* (411) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ -2, /* (412) column_stream_def ::= column_name stream_col_options */ 0, /* (413) stream_col_options ::= */ -3, /* (414) stream_col_options ::= stream_col_options PRIMARY KEY */ 0, /* (415) tag_def_or_ref_opt ::= */ -1, /* (416) tag_def_or_ref_opt ::= tags_def */ -4, /* (417) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ 0, /* (418) stream_options ::= */ -3, /* (419) stream_options ::= stream_options TRIGGER AT_ONCE */ -3, /* (420) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -4, /* (421) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -3, /* (422) stream_options ::= stream_options WATERMARK duration_literal */ -4, /* (423) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -3, /* (424) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -3, /* (425) stream_options ::= stream_options DELETE_MARK duration_literal */ -4, /* (426) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 0, /* (427) subtable_opt ::= */ -4, /* (428) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 0, /* (429) ignore_opt ::= */ -2, /* (430) ignore_opt ::= IGNORE UNTREATED */ -3, /* (431) cmd ::= KILL CONNECTION NK_INTEGER */ -3, /* (432) cmd ::= KILL QUERY NK_STRING */ -3, /* (433) cmd ::= KILL TRANSACTION NK_INTEGER */ -3, /* (434) cmd ::= KILL COMPACT NK_INTEGER */ -2, /* (435) cmd ::= BALANCE VGROUP */ -4, /* (436) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ -5, /* (437) cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ -4, /* (438) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -4, /* (439) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -3, /* (440) cmd ::= SPLIT VGROUP NK_INTEGER */ 0, /* (441) on_vgroup_id ::= */ -2, /* (442) on_vgroup_id ::= ON NK_INTEGER */ -2, /* (443) dnode_list ::= DNODE NK_INTEGER */ -3, /* (444) dnode_list ::= dnode_list DNODE NK_INTEGER */ -4, /* (445) cmd ::= DELETE FROM full_table_name where_clause_opt */ -1, /* (446) cmd ::= query_or_subquery */ -1, /* (447) cmd ::= insert_query */ -7, /* (448) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -4, /* (449) insert_query ::= INSERT INTO full_table_name query_or_subquery */ -1, /* (450) tags_literal ::= NK_INTEGER */ -3, /* (451) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ -3, /* (452) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ -2, /* (453) tags_literal ::= NK_PLUS NK_INTEGER */ -4, /* (454) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ -4, /* (455) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ -2, /* (456) tags_literal ::= NK_MINUS NK_INTEGER */ -4, /* (457) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ -4, /* (458) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ -1, /* (459) tags_literal ::= NK_FLOAT */ -2, /* (460) tags_literal ::= NK_PLUS NK_FLOAT */ -2, /* (461) tags_literal ::= NK_MINUS NK_FLOAT */ -1, /* (462) tags_literal ::= NK_BIN */ -3, /* (463) tags_literal ::= NK_BIN NK_PLUS duration_literal */ -3, /* (464) tags_literal ::= NK_BIN NK_MINUS duration_literal */ -2, /* (465) tags_literal ::= NK_PLUS NK_BIN */ -4, /* (466) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ -4, /* (467) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ -2, /* (468) tags_literal ::= NK_MINUS NK_BIN */ -4, /* (469) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ -4, /* (470) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ -1, /* (471) tags_literal ::= NK_HEX */ -3, /* (472) tags_literal ::= NK_HEX NK_PLUS duration_literal */ -3, /* (473) tags_literal ::= NK_HEX NK_MINUS duration_literal */ -2, /* (474) tags_literal ::= NK_PLUS NK_HEX */ -4, /* (475) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ -4, /* (476) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ -2, /* (477) tags_literal ::= NK_MINUS NK_HEX */ -4, /* (478) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ -4, /* (479) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ -1, /* (480) tags_literal ::= NK_STRING */ -3, /* (481) tags_literal ::= NK_STRING NK_PLUS duration_literal */ -3, /* (482) tags_literal ::= NK_STRING NK_MINUS duration_literal */ -1, /* (483) tags_literal ::= NK_BOOL */ -1, /* (484) tags_literal ::= NULL */ -1, /* (485) tags_literal ::= literal_func */ -3, /* (486) tags_literal ::= literal_func NK_PLUS duration_literal */ -3, /* (487) tags_literal ::= literal_func NK_MINUS duration_literal */ -1, /* (488) tags_literal_list ::= tags_literal */ -3, /* (489) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ -1, /* (490) literal ::= NK_INTEGER */ -1, /* (491) literal ::= NK_FLOAT */ -1, /* (492) literal ::= NK_STRING */ -1, /* (493) literal ::= NK_BOOL */ -2, /* (494) literal ::= TIMESTAMP NK_STRING */ -1, /* (495) literal ::= duration_literal */ -1, /* (496) literal ::= NULL */ -1, /* (497) literal ::= NK_QUESTION */ -1, /* (498) duration_literal ::= NK_VARIABLE */ -1, /* (499) signed ::= NK_INTEGER */ -2, /* (500) signed ::= NK_PLUS NK_INTEGER */ -2, /* (501) signed ::= NK_MINUS NK_INTEGER */ -1, /* (502) signed ::= NK_FLOAT */ -2, /* (503) signed ::= NK_PLUS NK_FLOAT */ -2, /* (504) signed ::= NK_MINUS NK_FLOAT */ -1, /* (505) signed_literal ::= signed */ -1, /* (506) signed_literal ::= NK_STRING */ -1, /* (507) signed_literal ::= NK_BOOL */ -2, /* (508) signed_literal ::= TIMESTAMP NK_STRING */ -1, /* (509) signed_literal ::= duration_literal */ -1, /* (510) signed_literal ::= NULL */ -1, /* (511) signed_literal ::= literal_func */ -1, /* (512) signed_literal ::= NK_QUESTION */ -1, /* (513) literal_list ::= signed_literal */ -3, /* (514) literal_list ::= literal_list NK_COMMA signed_literal */ -1, /* (515) db_name ::= NK_ID */ -1, /* (516) table_name ::= NK_ID */ -1, /* (517) column_name ::= NK_ID */ -1, /* (518) function_name ::= NK_ID */ -1, /* (519) view_name ::= NK_ID */ -1, /* (520) table_alias ::= NK_ID */ -1, /* (521) column_alias ::= NK_ID */ -1, /* (522) column_alias ::= NK_ALIAS */ -1, /* (523) user_name ::= NK_ID */ -1, /* (524) topic_name ::= NK_ID */ -1, /* (525) stream_name ::= NK_ID */ -1, /* (526) cgroup_name ::= NK_ID */ -1, /* (527) index_name ::= NK_ID */ -1, /* (528) tsma_name ::= NK_ID */ -1, /* (529) expr_or_subquery ::= expression */ -1, /* (530) expression ::= literal */ -1, /* (531) expression ::= pseudo_column */ -1, /* (532) expression ::= column_reference */ -1, /* (533) expression ::= function_expression */ -1, /* (534) expression ::= case_when_expression */ -3, /* (535) expression ::= NK_LP expression NK_RP */ -2, /* (536) expression ::= NK_PLUS expr_or_subquery */ -2, /* (537) expression ::= NK_MINUS expr_or_subquery */ -3, /* (538) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ -3, /* (539) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -3, /* (540) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -3, /* (541) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -3, /* (542) expression ::= expr_or_subquery NK_REM expr_or_subquery */ -3, /* (543) expression ::= column_reference NK_ARROW NK_STRING */ -3, /* (544) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ -3, /* (545) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -1, /* (546) expression_list ::= expr_or_subquery */ -3, /* (547) expression_list ::= expression_list NK_COMMA expr_or_subquery */ -1, /* (548) column_reference ::= column_name */ -3, /* (549) column_reference ::= table_name NK_DOT column_name */ -1, /* (550) column_reference ::= NK_ALIAS */ -3, /* (551) column_reference ::= table_name NK_DOT NK_ALIAS */ -1, /* (552) pseudo_column ::= ROWTS */ -1, /* (553) pseudo_column ::= TBNAME */ -3, /* (554) pseudo_column ::= table_name NK_DOT TBNAME */ -1, /* (555) pseudo_column ::= QSTART */ -1, /* (556) pseudo_column ::= QEND */ -1, /* (557) pseudo_column ::= QDURATION */ -1, /* (558) pseudo_column ::= WSTART */ -1, /* (559) pseudo_column ::= WEND */ -1, /* (560) pseudo_column ::= WDURATION */ -1, /* (561) pseudo_column ::= IROWTS */ -1, /* (562) pseudo_column ::= ISFILLED */ -1, /* (563) pseudo_column ::= QTAGS */ -4, /* (564) function_expression ::= function_name NK_LP expression_list NK_RP */ -4, /* (565) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ -6, /* (566) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -6, /* (567) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ -1, /* (568) function_expression ::= literal_func */ -3, /* (569) literal_func ::= noarg_func NK_LP NK_RP */ -1, /* (570) literal_func ::= NOW */ -1, /* (571) literal_func ::= TODAY */ -1, /* (572) noarg_func ::= NOW */ -1, /* (573) noarg_func ::= TODAY */ -1, /* (574) noarg_func ::= TIMEZONE */ -1, /* (575) noarg_func ::= DATABASE */ -1, /* (576) noarg_func ::= CLIENT_VERSION */ -1, /* (577) noarg_func ::= SERVER_VERSION */ -1, /* (578) noarg_func ::= SERVER_STATUS */ -1, /* (579) noarg_func ::= CURRENT_USER */ -1, /* (580) noarg_func ::= USER */ -1, /* (581) star_func ::= COUNT */ -1, /* (582) star_func ::= FIRST */ -1, /* (583) star_func ::= LAST */ -1, /* (584) star_func ::= LAST_ROW */ -1, /* (585) star_func_para_list ::= NK_STAR */ -1, /* (586) star_func_para_list ::= other_para_list */ -1, /* (587) other_para_list ::= star_func_para */ -3, /* (588) other_para_list ::= other_para_list NK_COMMA star_func_para */ -1, /* (589) star_func_para ::= expr_or_subquery */ -3, /* (590) star_func_para ::= table_name NK_DOT NK_STAR */ -4, /* (591) case_when_expression ::= CASE when_then_list case_when_else_opt END */ -5, /* (592) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -1, /* (593) when_then_list ::= when_then_expr */ -2, /* (594) when_then_list ::= when_then_list when_then_expr */ -4, /* (595) when_then_expr ::= WHEN common_expression THEN common_expression */ 0, /* (596) case_when_else_opt ::= */ -2, /* (597) case_when_else_opt ::= ELSE common_expression */ -3, /* (598) predicate ::= expr_or_subquery compare_op expr_or_subquery */ -5, /* (599) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -6, /* (600) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -3, /* (601) predicate ::= expr_or_subquery IS NULL */ -4, /* (602) predicate ::= expr_or_subquery IS NOT NULL */ -3, /* (603) predicate ::= expr_or_subquery in_op in_predicate_value */ -1, /* (604) compare_op ::= NK_LT */ -1, /* (605) compare_op ::= NK_GT */ -1, /* (606) compare_op ::= NK_LE */ -1, /* (607) compare_op ::= NK_GE */ -1, /* (608) compare_op ::= NK_NE */ -1, /* (609) compare_op ::= NK_EQ */ -1, /* (610) compare_op ::= LIKE */ -2, /* (611) compare_op ::= NOT LIKE */ -1, /* (612) compare_op ::= MATCH */ -1, /* (613) compare_op ::= NMATCH */ -1, /* (614) compare_op ::= CONTAINS */ -1, /* (615) in_op ::= IN */ -2, /* (616) in_op ::= NOT IN */ -3, /* (617) in_predicate_value ::= NK_LP literal_list NK_RP */ -1, /* (618) boolean_value_expression ::= boolean_primary */ -2, /* (619) boolean_value_expression ::= NOT boolean_primary */ -3, /* (620) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -3, /* (621) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -1, /* (622) boolean_primary ::= predicate */ -3, /* (623) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ -1, /* (624) common_expression ::= expr_or_subquery */ -1, /* (625) common_expression ::= boolean_value_expression */ 0, /* (626) from_clause_opt ::= */ -2, /* (627) from_clause_opt ::= FROM table_reference_list */ -1, /* (628) table_reference_list ::= table_reference */ -3, /* (629) table_reference_list ::= table_reference_list NK_COMMA table_reference */ -1, /* (630) table_reference ::= table_primary */ -1, /* (631) table_reference ::= joined_table */ -2, /* (632) table_primary ::= table_name alias_opt */ -4, /* (633) table_primary ::= db_name NK_DOT table_name alias_opt */ -2, /* (634) table_primary ::= subquery alias_opt */ -1, /* (635) table_primary ::= parenthesized_joined_table */ 0, /* (636) alias_opt ::= */ -1, /* (637) alias_opt ::= table_alias */ -2, /* (638) alias_opt ::= AS table_alias */ -3, /* (639) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ -3, /* (640) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ -8, /* (641) joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ 0, /* (642) join_type ::= */ -1, /* (643) join_type ::= INNER */ -1, /* (644) join_type ::= LEFT */ -1, /* (645) join_type ::= RIGHT */ -1, /* (646) join_type ::= FULL */ 0, /* (647) join_subtype ::= */ -1, /* (648) join_subtype ::= OUTER */ -1, /* (649) join_subtype ::= SEMI */ -1, /* (650) join_subtype ::= ANTI */ -1, /* (651) join_subtype ::= ASOF */ -1, /* (652) join_subtype ::= WINDOW */ 0, /* (653) join_on_clause_opt ::= */ -2, /* (654) join_on_clause_opt ::= ON search_condition */ 0, /* (655) window_offset_clause_opt ::= */ -6, /* (656) window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ -1, /* (657) window_offset_literal ::= NK_VARIABLE */ -2, /* (658) window_offset_literal ::= NK_MINUS NK_VARIABLE */ 0, /* (659) jlimit_clause_opt ::= */ -2, /* (660) jlimit_clause_opt ::= JLIMIT NK_INTEGER */ -14, /* (661) 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, /* (662) hint_list ::= */ -1, /* (663) hint_list ::= NK_HINT */ 0, /* (664) tag_mode_opt ::= */ -1, /* (665) tag_mode_opt ::= TAGS */ 0, /* (666) set_quantifier_opt ::= */ -1, /* (667) set_quantifier_opt ::= DISTINCT */ -1, /* (668) set_quantifier_opt ::= ALL */ -1, /* (669) select_list ::= select_item */ -3, /* (670) select_list ::= select_list NK_COMMA select_item */ -1, /* (671) select_item ::= NK_STAR */ -1, /* (672) select_item ::= common_expression */ -2, /* (673) select_item ::= common_expression column_alias */ -3, /* (674) select_item ::= common_expression AS column_alias */ -3, /* (675) select_item ::= table_name NK_DOT NK_STAR */ 0, /* (676) where_clause_opt ::= */ -2, /* (677) where_clause_opt ::= WHERE search_condition */ 0, /* (678) partition_by_clause_opt ::= */ -3, /* (679) partition_by_clause_opt ::= PARTITION BY partition_list */ -1, /* (680) partition_list ::= partition_item */ -3, /* (681) partition_list ::= partition_list NK_COMMA partition_item */ -1, /* (682) partition_item ::= expr_or_subquery */ -2, /* (683) partition_item ::= expr_or_subquery column_alias */ -3, /* (684) partition_item ::= expr_or_subquery AS column_alias */ 0, /* (685) twindow_clause_opt ::= */ -6, /* (686) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ -4, /* (687) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -6, /* (688) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -8, /* (689) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -7, /* (690) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ -4, /* (691) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ -6, /* (692) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 0, /* (693) sliding_opt ::= */ -4, /* (694) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ -1, /* (695) interval_sliding_duration_literal ::= NK_VARIABLE */ -1, /* (696) interval_sliding_duration_literal ::= NK_STRING */ -1, /* (697) interval_sliding_duration_literal ::= NK_INTEGER */ 0, /* (698) fill_opt ::= */ -4, /* (699) fill_opt ::= FILL NK_LP fill_mode NK_RP */ -6, /* (700) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -6, /* (701) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -1, /* (702) fill_mode ::= NONE */ -1, /* (703) fill_mode ::= PREV */ -1, /* (704) fill_mode ::= NULL */ -1, /* (705) fill_mode ::= NULL_F */ -1, /* (706) fill_mode ::= LINEAR */ -1, /* (707) fill_mode ::= NEXT */ 0, /* (708) group_by_clause_opt ::= */ -3, /* (709) group_by_clause_opt ::= GROUP BY group_by_list */ -1, /* (710) group_by_list ::= expr_or_subquery */ -3, /* (711) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 0, /* (712) having_clause_opt ::= */ -2, /* (713) having_clause_opt ::= HAVING search_condition */ 0, /* (714) range_opt ::= */ -6, /* (715) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -4, /* (716) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 0, /* (717) every_opt ::= */ -4, /* (718) every_opt ::= EVERY NK_LP duration_literal NK_RP */ -4, /* (719) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -1, /* (720) query_simple ::= query_specification */ -1, /* (721) query_simple ::= union_query_expression */ -4, /* (722) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -3, /* (723) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -1, /* (724) query_simple_or_subquery ::= query_simple */ -1, /* (725) query_simple_or_subquery ::= subquery */ -1, /* (726) query_or_subquery ::= query_expression */ -1, /* (727) query_or_subquery ::= subquery */ 0, /* (728) order_by_clause_opt ::= */ -3, /* (729) order_by_clause_opt ::= ORDER BY sort_specification_list */ 0, /* (730) slimit_clause_opt ::= */ -2, /* (731) slimit_clause_opt ::= SLIMIT NK_INTEGER */ -4, /* (732) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ -4, /* (733) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 0, /* (734) limit_clause_opt ::= */ -2, /* (735) limit_clause_opt ::= LIMIT NK_INTEGER */ -4, /* (736) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ -4, /* (737) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ -3, /* (738) subquery ::= NK_LP query_expression NK_RP */ -3, /* (739) subquery ::= NK_LP subquery NK_RP */ -1, /* (740) search_condition ::= common_expression */ -1, /* (741) sort_specification_list ::= sort_specification */ -3, /* (742) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ -3, /* (743) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 0, /* (744) ordering_specification_opt ::= */ -1, /* (745) ordering_specification_opt ::= ASC */ -1, /* (746) ordering_specification_opt ::= DESC */ 0, /* (747) null_ordering_opt ::= */ -2, /* (748) null_ordering_opt ::= NULLS FIRST */ -2, /* (749) null_ordering_opt ::= NULLS LAST */ 0, /* (750) column_options ::= */ -3, /* (751) column_options ::= column_options PRIMARY KEY */ -3, /* (752) column_options ::= column_options ENCODE NK_STRING */ -3, /* (753) column_options ::= column_options COMPRESS NK_STRING */ -3, /* (754) column_options ::= column_options LEVEL NK_STRING */ }; static void yy_accept(yyParser*); /* Forward Declaration */ /* ** Perform a reduce action and the shift that must immediately ** follow the reduce. ** ** The yyLookahead and yyLookaheadToken parameters provide reduce actions ** access to the lookahead token (if any). The yyLookahead will be YYNOCODE ** if the lookahead token has already been consumed. As this procedure is ** only called from one place, optimizing compilers will in-line it, which ** means that the extra parameters have no performance impact. */ static YYACTIONTYPE yy_reduce( yyParser *yypParser, /* The parser */ unsigned int yyruleno, /* Number of the rule by which to reduce */ int yyLookahead, /* Lookahead token, or YYNOCODE if none */ ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */ ParseCTX_PDECL /* %extra_context */ ){ int yygoto; /* The next state */ YYACTIONTYPE yyact; /* The next action */ yyStackEntry *yymsp; /* The top of the parser's stack */ int yysize; /* Amount to pop the stack */ ParseARG_FETCH (void)yyLookahead; (void)yyLookaheadToken; yymsp = yypParser->yytos; switch( yyruleno ){ /* Beginning here are the reduction cases. A typical example ** follows: ** case 0: ** #line ** { ... } // User supplied code ** #line ** break; */ /********** Begin reduce actions **********************************************/ YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ #line 50 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } #line 5567 "sql.c" yy_destructor(yypParser,379,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ #line 51 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } #line 5573 "sql.c" yy_destructor(yypParser,380,&yymsp[0].minor); break; case 2: /* account_options ::= */ #line 55 "sql.y" { } #line 5579 "sql.c" break; case 3: /* account_options ::= account_options PPS literal */ case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5); case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6); case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7); case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8); case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); { yy_destructor(yypParser,379,&yymsp[-2].minor); #line 56 "sql.y" { } #line 5593 "sql.c" yy_destructor(yypParser,381,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,382,&yymsp[0].minor); #line 68 "sql.y" { } #line 5601 "sql.c" } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,380,&yymsp[-1].minor); #line 69 "sql.y" { } #line 5608 "sql.c" yy_destructor(yypParser,382,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ case 15: /* alter_account_option ::= PPS literal */ yytestcase(yyruleno==15); case 16: /* alter_account_option ::= TSERIES literal */ yytestcase(yyruleno==16); case 17: /* alter_account_option ::= STORAGE literal */ yytestcase(yyruleno==17); case 18: /* alter_account_option ::= STREAMS literal */ yytestcase(yyruleno==18); case 19: /* alter_account_option ::= QTIME literal */ yytestcase(yyruleno==19); case 20: /* alter_account_option ::= DBS literal */ yytestcase(yyruleno==20); case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21); case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); #line 73 "sql.y" { } #line 5624 "sql.c" yy_destructor(yypParser,381,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ #line 86 "sql.y" { yylhsminor.yy316 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } #line 5630 "sql.c" yymsp[0].minor.yy316 = yylhsminor.yy316; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ #line 87 "sql.y" { yylhsminor.yy316 = addNodeToList(pCxt, yymsp[-2].minor.yy316, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } #line 5636 "sql.c" yymsp[-2].minor.yy316 = yylhsminor.yy316; break; case 26: /* white_list ::= HOST ip_range_list */ #line 91 "sql.y" { yymsp[-1].minor.yy316 = yymsp[0].minor.yy316; } #line 5642 "sql.c" break; case 27: /* white_list_opt ::= */ case 206: /* specific_cols_opt ::= */ yytestcase(yyruleno==206); case 244: /* tags_def_opt ::= */ yytestcase(yyruleno==244); case 335: /* tag_list_opt ::= */ yytestcase(yyruleno==335); case 408: /* col_list_opt ::= */ yytestcase(yyruleno==408); case 415: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==415); case 678: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==678); case 708: /* group_by_clause_opt ::= */ yytestcase(yyruleno==708); case 728: /* order_by_clause_opt ::= */ yytestcase(yyruleno==728); #line 95 "sql.y" { yymsp[1].minor.yy316 = NULL; } #line 5655 "sql.c" break; case 28: /* white_list_opt ::= white_list */ case 245: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==245); case 416: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==416); case 586: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==586); #line 96 "sql.y" { yylhsminor.yy316 = yymsp[0].minor.yy316; } #line 5663 "sql.c" yymsp[0].minor.yy316 = yylhsminor.yy316; break; case 29: /* is_import_opt ::= */ case 31: /* is_createdb_opt ::= */ yytestcase(yyruleno==31); #line 100 "sql.y" { yymsp[1].minor.yy1043 = 0; } #line 5670 "sql.c" break; case 30: /* is_import_opt ::= IS_IMPORT NK_INTEGER */ case 32: /* is_createdb_opt ::= CREATEDB NK_INTEGER */ yytestcase(yyruleno==32); case 42: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ yytestcase(yyruleno==42); #line 101 "sql.y" { yymsp[-1].minor.yy1043 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } #line 5677 "sql.c" break; case 33: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt is_createdb_opt is_import_opt white_list_opt */ #line 109 "sql.y" { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-6].minor.yy1109, &yymsp[-4].minor.yy0, yymsp[-3].minor.yy1043, yymsp[-1].minor.yy1043, yymsp[-2].minor.yy1043); pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy316); } #line 5685 "sql.c" break; case 34: /* cmd ::= ALTER USER user_name PASS NK_STRING */ #line 113 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1109, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } #line 5690 "sql.c" break; case 35: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ #line 114 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1109, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } #line 5695 "sql.c" break; case 36: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ #line 115 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1109, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } #line 5700 "sql.c" break; case 37: /* cmd ::= ALTER USER user_name CREATEDB NK_INTEGER */ #line 116 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1109, TSDB_ALTER_USER_CREATEDB, &yymsp[0].minor.yy0); } #line 5705 "sql.c" break; case 38: /* cmd ::= ALTER USER user_name ADD white_list */ #line 117 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1109, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy316); } #line 5710 "sql.c" break; case 39: /* cmd ::= ALTER USER user_name DROP white_list */ #line 118 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy1109, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy316); } #line 5715 "sql.c" break; case 40: /* cmd ::= DROP USER user_name */ #line 119 "sql.y" { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy1109); } #line 5720 "sql.c" break; case 41: /* sysinfo_opt ::= */ #line 123 "sql.y" { yymsp[1].minor.yy1043 = 1; } #line 5725 "sql.c" break; case 43: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ #line 127 "sql.y" { pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy1089, &yymsp[-3].minor.yy849, &yymsp[0].minor.yy1109, yymsp[-2].minor.yy416); } #line 5730 "sql.c" break; case 44: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ #line 128 "sql.y" { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy1089, &yymsp[-3].minor.yy849, &yymsp[0].minor.yy1109, yymsp[-2].minor.yy416); } #line 5735 "sql.c" break; case 45: /* privileges ::= ALL */ #line 132 "sql.y" { yymsp[0].minor.yy1089 = PRIVILEGE_TYPE_ALL; } #line 5740 "sql.c" break; case 46: /* privileges ::= priv_type_list */ case 48: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==48); #line 133 "sql.y" { yylhsminor.yy1089 = yymsp[0].minor.yy1089; } #line 5746 "sql.c" yymsp[0].minor.yy1089 = yylhsminor.yy1089; break; case 47: /* privileges ::= SUBSCRIBE */ #line 134 "sql.y" { yymsp[0].minor.yy1089 = PRIVILEGE_TYPE_SUBSCRIBE; } #line 5752 "sql.c" break; case 49: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ #line 139 "sql.y" { yylhsminor.yy1089 = yymsp[-2].minor.yy1089 | yymsp[0].minor.yy1089; } #line 5757 "sql.c" yymsp[-2].minor.yy1089 = yylhsminor.yy1089; break; case 50: /* priv_type ::= READ */ #line 143 "sql.y" { yymsp[0].minor.yy1089 = PRIVILEGE_TYPE_READ; } #line 5763 "sql.c" break; case 51: /* priv_type ::= WRITE */ #line 144 "sql.y" { yymsp[0].minor.yy1089 = PRIVILEGE_TYPE_WRITE; } #line 5768 "sql.c" break; case 52: /* priv_type ::= ALTER */ #line 145 "sql.y" { yymsp[0].minor.yy1089 = PRIVILEGE_TYPE_ALTER; } #line 5773 "sql.c" break; case 53: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ #line 149 "sql.y" { yylhsminor.yy849.first = yymsp[-2].minor.yy0; yylhsminor.yy849.second = yymsp[0].minor.yy0; } #line 5778 "sql.c" yymsp[-2].minor.yy849 = yylhsminor.yy849; break; case 54: /* priv_level ::= db_name NK_DOT NK_STAR */ #line 150 "sql.y" { yylhsminor.yy849.first = yymsp[-2].minor.yy1109; yylhsminor.yy849.second = yymsp[0].minor.yy0; } #line 5784 "sql.c" yymsp[-2].minor.yy849 = yylhsminor.yy849; break; case 55: /* priv_level ::= db_name NK_DOT table_name */ #line 151 "sql.y" { yylhsminor.yy849.first = yymsp[-2].minor.yy1109; yylhsminor.yy849.second = yymsp[0].minor.yy1109; } #line 5790 "sql.c" yymsp[-2].minor.yy849 = yylhsminor.yy849; break; case 56: /* priv_level ::= topic_name */ #line 152 "sql.y" { yylhsminor.yy849.first = yymsp[0].minor.yy1109; yylhsminor.yy849.second = nil_token; } #line 5796 "sql.c" yymsp[0].minor.yy849 = yylhsminor.yy849; break; case 57: /* with_opt ::= */ case 173: /* start_opt ::= */ yytestcase(yyruleno==173); case 177: /* end_opt ::= */ yytestcase(yyruleno==177); case 330: /* like_pattern_opt ::= */ yytestcase(yyruleno==330); case 427: /* subtable_opt ::= */ yytestcase(yyruleno==427); case 596: /* case_when_else_opt ::= */ yytestcase(yyruleno==596); case 626: /* from_clause_opt ::= */ yytestcase(yyruleno==626); case 653: /* join_on_clause_opt ::= */ yytestcase(yyruleno==653); case 655: /* window_offset_clause_opt ::= */ yytestcase(yyruleno==655); case 659: /* jlimit_clause_opt ::= */ yytestcase(yyruleno==659); case 676: /* where_clause_opt ::= */ yytestcase(yyruleno==676); case 685: /* twindow_clause_opt ::= */ yytestcase(yyruleno==685); case 693: /* sliding_opt ::= */ yytestcase(yyruleno==693); case 698: /* fill_opt ::= */ yytestcase(yyruleno==698); case 712: /* having_clause_opt ::= */ yytestcase(yyruleno==712); case 714: /* range_opt ::= */ yytestcase(yyruleno==714); case 717: /* every_opt ::= */ yytestcase(yyruleno==717); case 730: /* slimit_clause_opt ::= */ yytestcase(yyruleno==730); case 734: /* limit_clause_opt ::= */ yytestcase(yyruleno==734); #line 154 "sql.y" { yymsp[1].minor.yy416 = NULL; } #line 5820 "sql.c" break; case 58: /* with_opt ::= WITH search_condition */ case 627: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==627); case 654: /* join_on_clause_opt ::= ON search_condition */ yytestcase(yyruleno==654); case 677: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==677); case 713: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==713); #line 155 "sql.y" { yymsp[-1].minor.yy416 = yymsp[0].minor.yy416; } #line 5829 "sql.c" break; case 59: /* cmd ::= CREATE ENCRYPT_KEY NK_STRING */ #line 158 "sql.y" { pCxt->pRootNode = createEncryptKeyStmt(pCxt, &yymsp[0].minor.yy0); } #line 5834 "sql.c" break; case 60: /* cmd ::= CREATE DNODE dnode_endpoint */ #line 161 "sql.y" { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy1109, NULL); } #line 5839 "sql.c" break; case 61: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ #line 162 "sql.y" { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy0); } #line 5844 "sql.c" break; case 62: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ #line 163 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy209, false); } #line 5849 "sql.c" break; case 63: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ #line 164 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy1109, yymsp[0].minor.yy209, false); } #line 5854 "sql.c" break; case 64: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ #line 165 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy209); } #line 5859 "sql.c" break; case 65: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ #line 166 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy1109, false, yymsp[0].minor.yy209); } #line 5864 "sql.c" break; case 66: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ #line 167 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } #line 5869 "sql.c" break; case 67: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ #line 168 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } #line 5874 "sql.c" break; case 68: /* cmd ::= ALTER ALL DNODES NK_STRING */ #line 169 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } #line 5879 "sql.c" break; case 69: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ #line 170 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } #line 5884 "sql.c" break; case 70: /* cmd ::= RESTORE DNODE NK_INTEGER */ #line 171 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } #line 5889 "sql.c" break; case 71: /* dnode_endpoint ::= NK_STRING */ case 72: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==72); case 73: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==73); case 364: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==364); case 365: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==365); case 366: /* sma_func_name ::= LAST */ yytestcase(yyruleno==366); case 367: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==367); case 515: /* db_name ::= NK_ID */ yytestcase(yyruleno==515); case 516: /* table_name ::= NK_ID */ yytestcase(yyruleno==516); case 517: /* column_name ::= NK_ID */ yytestcase(yyruleno==517); case 518: /* function_name ::= NK_ID */ yytestcase(yyruleno==518); case 519: /* view_name ::= NK_ID */ yytestcase(yyruleno==519); case 520: /* table_alias ::= NK_ID */ yytestcase(yyruleno==520); case 521: /* column_alias ::= NK_ID */ yytestcase(yyruleno==521); case 522: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==522); case 523: /* user_name ::= NK_ID */ yytestcase(yyruleno==523); case 524: /* topic_name ::= NK_ID */ yytestcase(yyruleno==524); case 525: /* stream_name ::= NK_ID */ yytestcase(yyruleno==525); case 526: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==526); case 527: /* index_name ::= NK_ID */ yytestcase(yyruleno==527); case 528: /* tsma_name ::= NK_ID */ yytestcase(yyruleno==528); case 572: /* noarg_func ::= NOW */ yytestcase(yyruleno==572); case 573: /* noarg_func ::= TODAY */ yytestcase(yyruleno==573); case 574: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==574); case 575: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==575); case 576: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==576); case 577: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==577); case 578: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==578); case 579: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==579); case 580: /* noarg_func ::= USER */ yytestcase(yyruleno==580); case 581: /* star_func ::= COUNT */ yytestcase(yyruleno==581); case 582: /* star_func ::= FIRST */ yytestcase(yyruleno==582); case 583: /* star_func ::= LAST */ yytestcase(yyruleno==583); case 584: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==584); #line 175 "sql.y" { yylhsminor.yy1109 = yymsp[0].minor.yy0; } #line 5927 "sql.c" yymsp[0].minor.yy1109 = yylhsminor.yy1109; break; case 74: /* force_opt ::= */ case 101: /* not_exists_opt ::= */ yytestcase(yyruleno==101); case 103: /* exists_opt ::= */ yytestcase(yyruleno==103); case 385: /* analyze_opt ::= */ yytestcase(yyruleno==385); case 392: /* agg_func_opt ::= */ yytestcase(yyruleno==392); case 398: /* or_replace_opt ::= */ yytestcase(yyruleno==398); case 429: /* ignore_opt ::= */ yytestcase(yyruleno==429); case 664: /* tag_mode_opt ::= */ yytestcase(yyruleno==664); case 666: /* set_quantifier_opt ::= */ yytestcase(yyruleno==666); #line 181 "sql.y" { yymsp[1].minor.yy209 = false; } #line 5941 "sql.c" break; case 75: /* force_opt ::= FORCE */ case 76: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==76); case 386: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==386); case 393: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==393); case 665: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==665); case 667: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==667); #line 182 "sql.y" { yymsp[0].minor.yy209 = true; } #line 5951 "sql.c" break; case 77: /* cmd ::= ALTER CLUSTER NK_STRING */ #line 189 "sql.y" { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); } #line 5956 "sql.c" break; case 78: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ #line 190 "sql.y" { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } #line 5961 "sql.c" break; case 79: /* cmd ::= ALTER LOCAL NK_STRING */ #line 193 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } #line 5966 "sql.c" break; case 80: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ #line 194 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } #line 5971 "sql.c" break; case 81: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ #line 197 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } #line 5976 "sql.c" break; case 82: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ #line 198 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } #line 5981 "sql.c" break; case 83: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ #line 199 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } #line 5986 "sql.c" break; case 84: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ #line 202 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } #line 5991 "sql.c" break; case 85: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ #line 203 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } #line 5996 "sql.c" break; case 86: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ #line 206 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } #line 6001 "sql.c" break; case 87: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ #line 207 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } #line 6006 "sql.c" break; case 88: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ #line 210 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } #line 6011 "sql.c" break; case 89: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ #line 211 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } #line 6016 "sql.c" break; case 90: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ #line 212 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } #line 6021 "sql.c" break; case 91: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ #line 215 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } #line 6026 "sql.c" break; case 92: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ #line 218 "sql.y" { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy209, &yymsp[-1].minor.yy1109, yymsp[0].minor.yy416); } #line 6031 "sql.c" break; case 93: /* cmd ::= DROP DATABASE exists_opt db_name */ #line 219 "sql.y" { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy209, &yymsp[0].minor.yy1109); } #line 6036 "sql.c" break; case 94: /* cmd ::= USE db_name */ #line 220 "sql.y" { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy1109); } #line 6041 "sql.c" break; case 95: /* cmd ::= ALTER DATABASE db_name alter_db_options */ #line 221 "sql.y" { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy1109, yymsp[0].minor.yy416); } #line 6046 "sql.c" break; case 96: /* cmd ::= FLUSH DATABASE db_name */ #line 222 "sql.y" { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy1109); } #line 6051 "sql.c" break; case 97: /* cmd ::= TRIM DATABASE db_name speed_opt */ #line 223 "sql.y" { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy1109, yymsp[0].minor.yy820); } #line 6056 "sql.c" break; case 98: /* cmd ::= S3MIGRATE DATABASE db_name */ #line 224 "sql.y" { pCxt->pRootNode = createS3MigrateDatabaseStmt(pCxt, &yymsp[0].minor.yy1109); } #line 6061 "sql.c" break; case 99: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ #line 225 "sql.y" { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy1109, yymsp[-1].minor.yy416, yymsp[0].minor.yy416); } #line 6066 "sql.c" break; case 100: /* not_exists_opt ::= IF NOT EXISTS */ #line 229 "sql.y" { yymsp[-2].minor.yy209 = true; } #line 6071 "sql.c" break; case 102: /* exists_opt ::= IF EXISTS */ case 399: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==399); case 430: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==430); #line 234 "sql.y" { yymsp[-1].minor.yy209 = true; } #line 6078 "sql.c" break; case 104: /* db_options ::= */ #line 237 "sql.y" { yymsp[1].minor.yy416 = createDefaultDatabaseOptions(pCxt); } #line 6083 "sql.c" break; case 105: /* db_options ::= db_options BUFFER NK_INTEGER */ #line 238 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } #line 6088 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 106: /* db_options ::= db_options CACHEMODEL NK_STRING */ #line 239 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } #line 6094 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 107: /* db_options ::= db_options CACHESIZE NK_INTEGER */ #line 240 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } #line 6100 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 108: /* db_options ::= db_options COMP NK_INTEGER */ #line 241 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_COMP, &yymsp[0].minor.yy0); } #line 6106 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 109: /* db_options ::= db_options DURATION NK_INTEGER */ case 110: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==110); #line 242 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } #line 6113 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 111: /* db_options ::= db_options MAXROWS NK_INTEGER */ #line 244 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } #line 6119 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 112: /* db_options ::= db_options MINROWS NK_INTEGER */ #line 245 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } #line 6125 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 113: /* db_options ::= db_options KEEP integer_list */ case 114: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==114); #line 246 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_KEEP, yymsp[0].minor.yy316); } #line 6132 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 115: /* db_options ::= db_options PAGES NK_INTEGER */ #line 248 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } #line 6138 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 116: /* db_options ::= db_options PAGESIZE NK_INTEGER */ #line 249 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } #line 6144 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 117: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ #line 250 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } #line 6150 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 118: /* db_options ::= db_options PRECISION NK_STRING */ #line 251 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } #line 6156 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 119: /* db_options ::= db_options REPLICA NK_INTEGER */ #line 252 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } #line 6162 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 120: /* db_options ::= db_options VGROUPS NK_INTEGER */ #line 254 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } #line 6168 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 121: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ #line 255 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } #line 6174 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 122: /* db_options ::= db_options RETENTIONS retention_list */ #line 256 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_RETENTIONS, yymsp[0].minor.yy316); } #line 6180 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 123: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ #line 257 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } #line 6186 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 124: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ #line 258 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_WAL, &yymsp[0].minor.yy0); } #line 6192 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 125: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ #line 259 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } #line 6198 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 126: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ #line 260 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } #line 6204 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 127: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ #line 261 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-3].minor.yy416, DB_OPTION_WAL_RETENTION_PERIOD, &t); } #line 6214 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 128: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ #line 266 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } #line 6220 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 129: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ #line 267 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-3].minor.yy416, DB_OPTION_WAL_RETENTION_SIZE, &t); } #line 6230 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 130: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ #line 272 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } #line 6236 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 131: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ #line 273 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } #line 6242 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 132: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ #line 274 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } #line 6248 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 133: /* db_options ::= db_options TABLE_PREFIX signed */ #line 275 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy416); } #line 6254 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 134: /* db_options ::= db_options TABLE_SUFFIX signed */ #line 276 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy416); } #line 6260 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 135: /* db_options ::= db_options S3_CHUNKSIZE NK_INTEGER */ #line 277 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_S3_CHUNKSIZE, &yymsp[0].minor.yy0); } #line 6266 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 136: /* db_options ::= db_options S3_KEEPLOCAL NK_INTEGER */ case 137: /* db_options ::= db_options S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==137); #line 278 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_S3_KEEPLOCAL, &yymsp[0].minor.yy0); } #line 6273 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 138: /* db_options ::= db_options S3_COMPACT NK_INTEGER */ #line 280 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_S3_COMPACT, &yymsp[0].minor.yy0); } #line 6279 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 139: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ #line 281 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } #line 6285 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 140: /* db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */ #line 282 "sql.y" { yylhsminor.yy416 = setDatabaseOption(pCxt, yymsp[-2].minor.yy416, DB_OPTION_ENCRYPT_ALGORITHM, &yymsp[0].minor.yy0); } #line 6291 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 141: /* alter_db_options ::= alter_db_option */ #line 284 "sql.y" { yylhsminor.yy416 = createAlterDatabaseOptions(pCxt); yylhsminor.yy416 = setAlterDatabaseOption(pCxt, yylhsminor.yy416, &yymsp[0].minor.yy101); } #line 6297 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 142: /* alter_db_options ::= alter_db_options alter_db_option */ #line 285 "sql.y" { yylhsminor.yy416 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy416, &yymsp[0].minor.yy101); } #line 6303 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 143: /* alter_db_option ::= BUFFER NK_INTEGER */ #line 289 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6309 "sql.c" break; case 144: /* alter_db_option ::= CACHEMODEL NK_STRING */ #line 290 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6314 "sql.c" break; case 145: /* alter_db_option ::= CACHESIZE NK_INTEGER */ #line 291 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6319 "sql.c" break; case 146: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ #line 292 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6324 "sql.c" break; case 147: /* alter_db_option ::= KEEP integer_list */ case 148: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==148); #line 293 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_KEEP; yymsp[-1].minor.yy101.pList = yymsp[0].minor.yy316; } #line 6330 "sql.c" break; case 149: /* alter_db_option ::= PAGES NK_INTEGER */ #line 295 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_PAGES; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6335 "sql.c" break; case 150: /* alter_db_option ::= REPLICA NK_INTEGER */ #line 296 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6340 "sql.c" break; case 151: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ #line 298 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_WAL; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6345 "sql.c" break; case 152: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ #line 299 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6350 "sql.c" break; case 153: /* alter_db_option ::= MINROWS NK_INTEGER */ #line 300 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6355 "sql.c" break; case 154: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ #line 301 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6360 "sql.c" break; case 155: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ #line 302 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy101.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy101.val = t; } #line 6369 "sql.c" break; case 156: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ #line 307 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6374 "sql.c" break; case 157: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ #line 308 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy101.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy101.val = t; } #line 6383 "sql.c" break; case 158: /* alter_db_option ::= S3_KEEPLOCAL NK_INTEGER */ case 159: /* alter_db_option ::= S3_KEEPLOCAL NK_VARIABLE */ yytestcase(yyruleno==159); #line 313 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_S3_KEEPLOCAL; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6389 "sql.c" break; case 160: /* alter_db_option ::= S3_COMPACT NK_INTEGER */ #line 315 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_S3_COMPACT, yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6394 "sql.c" break; case 161: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ #line 316 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6399 "sql.c" break; case 162: /* alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */ #line 317 "sql.y" { yymsp[-1].minor.yy101.type = DB_OPTION_ENCRYPT_ALGORITHM; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6404 "sql.c" break; case 163: /* integer_list ::= NK_INTEGER */ #line 321 "sql.y" { yylhsminor.yy316 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } #line 6409 "sql.c" yymsp[0].minor.yy316 = yylhsminor.yy316; break; case 164: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 444: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==444); #line 322 "sql.y" { yylhsminor.yy316 = addNodeToList(pCxt, yymsp[-2].minor.yy316, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } #line 6416 "sql.c" yymsp[-2].minor.yy316 = yylhsminor.yy316; break; case 165: /* variable_list ::= NK_VARIABLE */ #line 326 "sql.y" { yylhsminor.yy316 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 6422 "sql.c" yymsp[0].minor.yy316 = yylhsminor.yy316; break; case 166: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ #line 327 "sql.y" { yylhsminor.yy316 = addNodeToList(pCxt, yymsp[-2].minor.yy316, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 6428 "sql.c" yymsp[-2].minor.yy316 = yylhsminor.yy316; break; case 167: /* retention_list ::= retention */ case 200: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==200); case 203: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==203); case 210: /* tag_def_list ::= tag_def */ yytestcase(yyruleno==210); case 213: /* column_def_list ::= column_def */ yytestcase(yyruleno==213); case 261: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==261); case 266: /* col_name_list ::= col_name */ yytestcase(yyruleno==266); case 336: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==336); case 360: /* func_list ::= func */ yytestcase(yyruleno==360); case 410: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==410); case 488: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==488); case 513: /* literal_list ::= signed_literal */ yytestcase(yyruleno==513); case 587: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==587); case 593: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==593); case 669: /* select_list ::= select_item */ yytestcase(yyruleno==669); case 680: /* partition_list ::= partition_item */ yytestcase(yyruleno==680); case 741: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==741); #line 331 "sql.y" { yylhsminor.yy316 = createNodeList(pCxt, yymsp[0].minor.yy416); } #line 6450 "sql.c" yymsp[0].minor.yy316 = yylhsminor.yy316; break; case 168: /* retention_list ::= retention_list NK_COMMA retention */ case 204: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==204); case 211: /* tag_def_list ::= tag_def_list NK_COMMA tag_def */ yytestcase(yyruleno==211); case 214: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==214); case 262: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==262); case 267: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==267); case 337: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==337); case 361: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==361); case 411: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==411); case 489: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==489); case 514: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==514); case 588: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==588); case 670: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==670); case 681: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==681); case 742: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==742); #line 332 "sql.y" { yylhsminor.yy316 = addNodeToList(pCxt, yymsp[-2].minor.yy316, yymsp[0].minor.yy416); } #line 6470 "sql.c" yymsp[-2].minor.yy316 = yylhsminor.yy316; break; case 169: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ case 170: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==170); #line 334 "sql.y" { yylhsminor.yy416 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 6477 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 171: /* speed_opt ::= */ case 394: /* bufsize_opt ::= */ yytestcase(yyruleno==394); #line 339 "sql.y" { yymsp[1].minor.yy820 = 0; } #line 6484 "sql.c" break; case 172: /* speed_opt ::= BWLIMIT NK_INTEGER */ case 395: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==395); #line 340 "sql.y" { yymsp[-1].minor.yy820 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } #line 6490 "sql.c" break; case 174: /* start_opt ::= START WITH NK_INTEGER */ case 178: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==178); #line 343 "sql.y" { yymsp[-2].minor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } #line 6496 "sql.c" break; case 175: /* start_opt ::= START WITH NK_STRING */ case 179: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==179); #line 344 "sql.y" { yymsp[-2].minor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } #line 6502 "sql.c" break; case 176: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 180: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==180); #line 345 "sql.y" { yymsp[-3].minor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } #line 6508 "sql.c" break; case 181: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 184: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==184); #line 354 "sql.y" { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy209, yymsp[-5].minor.yy416, yymsp[-3].minor.yy316, yymsp[-1].minor.yy316, yymsp[0].minor.yy416); } #line 6514 "sql.c" break; case 182: /* cmd ::= CREATE TABLE multi_create_clause */ #line 355 "sql.y" { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy316); } #line 6519 "sql.c" break; case 183: /* cmd ::= CREATE TABLE not_exists_opt USING full_table_name NK_LP tag_list_opt NK_RP FILE NK_STRING */ #line 357 "sql.y" { pCxt->pRootNode = createCreateSubTableFromFileClause(pCxt, yymsp[-7].minor.yy209, yymsp[-5].minor.yy416, yymsp[-3].minor.yy316, &yymsp[0].minor.yy0); } #line 6524 "sql.c" break; case 185: /* cmd ::= DROP TABLE multi_drop_clause */ #line 360 "sql.y" { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy316); } #line 6529 "sql.c" break; case 186: /* cmd ::= DROP STABLE exists_opt full_table_name */ #line 361 "sql.y" { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy209, yymsp[0].minor.yy416); } #line 6534 "sql.c" break; case 187: /* cmd ::= ALTER TABLE alter_table_clause */ case 446: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==446); case 447: /* cmd ::= insert_query */ yytestcase(yyruleno==447); #line 363 "sql.y" { pCxt->pRootNode = yymsp[0].minor.yy416; } #line 6541 "sql.c" break; case 188: /* cmd ::= ALTER STABLE alter_table_clause */ #line 364 "sql.y" { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy416); } #line 6546 "sql.c" break; case 189: /* alter_table_clause ::= full_table_name alter_table_options */ #line 366 "sql.y" { yylhsminor.yy416 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy416, yymsp[0].minor.yy416); } #line 6551 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 190: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name column_options */ #line 368 "sql.y" { yylhsminor.yy416 = createAlterTableAddModifyColOptions2(pCxt, yymsp[-5].minor.yy416, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-2].minor.yy1109, yymsp[-1].minor.yy952, yymsp[0].minor.yy416); } #line 6557 "sql.c" yymsp[-5].minor.yy416 = yylhsminor.yy416; break; case 191: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ #line 369 "sql.y" { yylhsminor.yy416 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy416, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy1109); } #line 6563 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 192: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ #line 371 "sql.y" { yylhsminor.yy416 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy416, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy1109, yymsp[0].minor.yy952); } #line 6569 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 193: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name column_options */ #line 373 "sql.y" { yylhsminor.yy416 = createAlterTableAddModifyColOptions(pCxt, yymsp[-4].minor.yy416, TSDB_ALTER_TABLE_UPDATE_COLUMN_COMPRESS, &yymsp[-1].minor.yy1109, yymsp[0].minor.yy416); } #line 6575 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 194: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ #line 375 "sql.y" { yylhsminor.yy416 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy416, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy1109, &yymsp[0].minor.yy1109); } #line 6581 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 195: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ #line 377 "sql.y" { yylhsminor.yy416 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy416, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy1109, yymsp[0].minor.yy952); } #line 6587 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 196: /* alter_table_clause ::= full_table_name DROP TAG column_name */ #line 378 "sql.y" { yylhsminor.yy416 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy416, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy1109); } #line 6593 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 197: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ #line 380 "sql.y" { yylhsminor.yy416 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy416, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy1109, yymsp[0].minor.yy952); } #line 6599 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 198: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ #line 382 "sql.y" { yylhsminor.yy416 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy416, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy1109, &yymsp[0].minor.yy1109); } #line 6605 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 199: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ #line 384 "sql.y" { yylhsminor.yy416 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy416, &yymsp[-2].minor.yy1109, yymsp[0].minor.yy416); } #line 6611 "sql.c" yymsp[-5].minor.yy416 = yylhsminor.yy416; break; case 201: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 594: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==594); #line 389 "sql.y" { yylhsminor.yy316 = addNodeToList(pCxt, yymsp[-1].minor.yy316, yymsp[0].minor.yy416); } #line 6618 "sql.c" yymsp[-1].minor.yy316 = yylhsminor.yy316; break; case 202: /* 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 */ #line 393 "sql.y" { yylhsminor.yy416 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy209, yymsp[-8].minor.yy416, yymsp[-6].minor.yy416, yymsp[-5].minor.yy316, yymsp[-2].minor.yy316, yymsp[0].minor.yy416); } #line 6624 "sql.c" yymsp[-9].minor.yy416 = yylhsminor.yy416; break; case 205: /* drop_table_clause ::= exists_opt full_table_name */ #line 400 "sql.y" { yylhsminor.yy416 = createDropTableClause(pCxt, yymsp[-1].minor.yy209, yymsp[0].minor.yy416); } #line 6630 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 207: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 409: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==409); #line 405 "sql.y" { yymsp[-2].minor.yy316 = yymsp[-1].minor.yy316; } #line 6637 "sql.c" break; case 208: /* full_table_name ::= table_name */ case 350: /* full_tsma_name ::= tsma_name */ yytestcase(yyruleno==350); #line 407 "sql.y" { yylhsminor.yy416 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy1109, NULL); } #line 6643 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 209: /* full_table_name ::= db_name NK_DOT table_name */ case 351: /* full_tsma_name ::= db_name NK_DOT tsma_name */ yytestcase(yyruleno==351); #line 408 "sql.y" { yylhsminor.yy416 = createRealTableNode(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy1109, NULL); } #line 6650 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 212: /* tag_def ::= column_name type_name */ #line 414 "sql.y" { yylhsminor.yy416 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy1109, yymsp[0].minor.yy952, NULL); } #line 6656 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 215: /* column_def ::= column_name type_name column_options */ #line 422 "sql.y" { yylhsminor.yy416 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy1109, yymsp[-1].minor.yy952, yymsp[0].minor.yy416); } #line 6662 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 216: /* type_name ::= BOOL */ #line 426 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_BOOL); } #line 6668 "sql.c" break; case 217: /* type_name ::= TINYINT */ #line 427 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_TINYINT); } #line 6673 "sql.c" break; case 218: /* type_name ::= SMALLINT */ #line 428 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_SMALLINT); } #line 6678 "sql.c" break; case 219: /* type_name ::= INT */ case 220: /* type_name ::= INTEGER */ yytestcase(yyruleno==220); #line 429 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_INT); } #line 6684 "sql.c" break; case 221: /* type_name ::= BIGINT */ #line 431 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_BIGINT); } #line 6689 "sql.c" break; case 222: /* type_name ::= FLOAT */ #line 432 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_FLOAT); } #line 6694 "sql.c" break; case 223: /* type_name ::= DOUBLE */ #line 433 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_DOUBLE); } #line 6699 "sql.c" break; case 224: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ #line 434 "sql.y" { yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } #line 6704 "sql.c" break; case 225: /* type_name ::= TIMESTAMP */ #line 435 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } #line 6709 "sql.c" break; case 226: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ #line 436 "sql.y" { yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } #line 6714 "sql.c" break; case 227: /* type_name ::= TINYINT UNSIGNED */ #line 437 "sql.y" { yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_UTINYINT); } #line 6719 "sql.c" break; case 228: /* type_name ::= SMALLINT UNSIGNED */ #line 438 "sql.y" { yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_USMALLINT); } #line 6724 "sql.c" break; case 229: /* type_name ::= INT UNSIGNED */ #line 439 "sql.y" { yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_UINT); } #line 6729 "sql.c" break; case 230: /* type_name ::= BIGINT UNSIGNED */ #line 440 "sql.y" { yymsp[-1].minor.yy952 = createDataType(TSDB_DATA_TYPE_UBIGINT); } #line 6734 "sql.c" break; case 231: /* type_name ::= JSON */ #line 441 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_JSON); } #line 6739 "sql.c" break; case 232: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ #line 442 "sql.y" { yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } #line 6744 "sql.c" break; case 233: /* type_name ::= MEDIUMBLOB */ #line 443 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } #line 6749 "sql.c" break; case 234: /* type_name ::= BLOB */ #line 444 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_BLOB); } #line 6754 "sql.c" break; case 235: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ #line 445 "sql.y" { yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } #line 6759 "sql.c" break; case 236: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ #line 446 "sql.y" { yymsp[-3].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } #line 6764 "sql.c" break; case 237: /* type_name ::= DECIMAL */ #line 447 "sql.y" { yymsp[0].minor.yy952 = createDataType(TSDB_DATA_TYPE_DECIMAL); } #line 6769 "sql.c" break; case 238: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ #line 448 "sql.y" { yymsp[-3].minor.yy952 = createDataType(TSDB_DATA_TYPE_DECIMAL); } #line 6774 "sql.c" break; case 239: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ #line 449 "sql.y" { yymsp[-5].minor.yy952 = createDataType(TSDB_DATA_TYPE_DECIMAL); } #line 6779 "sql.c" break; case 240: /* type_name_default_len ::= BINARY */ #line 453 "sql.y" { yymsp[0].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); } #line 6784 "sql.c" break; case 241: /* type_name_default_len ::= NCHAR */ #line 454 "sql.y" { yymsp[0].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); } #line 6789 "sql.c" break; case 242: /* type_name_default_len ::= VARCHAR */ #line 455 "sql.y" { yymsp[0].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); } #line 6794 "sql.c" break; case 243: /* type_name_default_len ::= VARBINARY */ #line 456 "sql.y" { yymsp[0].minor.yy952 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); } #line 6799 "sql.c" break; case 246: /* tags_def ::= TAGS NK_LP tag_def_list NK_RP */ case 417: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==417); #line 465 "sql.y" { yymsp[-3].minor.yy316 = yymsp[-1].minor.yy316; } #line 6805 "sql.c" break; case 247: /* table_options ::= */ #line 467 "sql.y" { yymsp[1].minor.yy416 = createDefaultTableOptions(pCxt); } #line 6810 "sql.c" break; case 248: /* table_options ::= table_options COMMENT NK_STRING */ #line 468 "sql.y" { yylhsminor.yy416 = setTableOption(pCxt, yymsp[-2].minor.yy416, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } #line 6815 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 249: /* table_options ::= table_options MAX_DELAY duration_list */ #line 469 "sql.y" { yylhsminor.yy416 = setTableOption(pCxt, yymsp[-2].minor.yy416, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy316); } #line 6821 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 250: /* table_options ::= table_options WATERMARK duration_list */ #line 470 "sql.y" { yylhsminor.yy416 = setTableOption(pCxt, yymsp[-2].minor.yy416, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy316); } #line 6827 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 251: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ #line 471 "sql.y" { yylhsminor.yy416 = setTableOption(pCxt, yymsp[-4].minor.yy416, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy316); } #line 6833 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 252: /* table_options ::= table_options TTL NK_INTEGER */ #line 472 "sql.y" { yylhsminor.yy416 = setTableOption(pCxt, yymsp[-2].minor.yy416, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } #line 6839 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 253: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ #line 473 "sql.y" { yylhsminor.yy416 = setTableOption(pCxt, yymsp[-4].minor.yy416, TABLE_OPTION_SMA, yymsp[-1].minor.yy316); } #line 6845 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 254: /* table_options ::= table_options DELETE_MARK duration_list */ #line 474 "sql.y" { yylhsminor.yy416 = setTableOption(pCxt, yymsp[-2].minor.yy416, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy316); } #line 6851 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 255: /* alter_table_options ::= alter_table_option */ #line 476 "sql.y" { yylhsminor.yy416 = createAlterTableOptions(pCxt); yylhsminor.yy416 = setTableOption(pCxt, yylhsminor.yy416, yymsp[0].minor.yy101.type, &yymsp[0].minor.yy101.val); } #line 6857 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 256: /* alter_table_options ::= alter_table_options alter_table_option */ #line 477 "sql.y" { yylhsminor.yy416 = setTableOption(pCxt, yymsp[-1].minor.yy416, yymsp[0].minor.yy101.type, &yymsp[0].minor.yy101.val); } #line 6863 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 257: /* alter_table_option ::= COMMENT NK_STRING */ #line 481 "sql.y" { yymsp[-1].minor.yy101.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6869 "sql.c" break; case 258: /* alter_table_option ::= TTL NK_INTEGER */ #line 482 "sql.y" { yymsp[-1].minor.yy101.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy101.val = yymsp[0].minor.yy0; } #line 6874 "sql.c" break; case 259: /* duration_list ::= duration_literal */ case 546: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==546); #line 486 "sql.y" { yylhsminor.yy316 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy416)); } #line 6880 "sql.c" yymsp[0].minor.yy316 = yylhsminor.yy316; break; case 260: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 547: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==547); #line 487 "sql.y" { yylhsminor.yy316 = addNodeToList(pCxt, yymsp[-2].minor.yy316, releaseRawExprNode(pCxt, yymsp[0].minor.yy416)); } #line 6887 "sql.c" yymsp[-2].minor.yy316 = yylhsminor.yy316; break; case 263: /* rollup_func_name ::= function_name */ #line 494 "sql.y" { yylhsminor.yy416 = createFunctionNode(pCxt, &yymsp[0].minor.yy1109, NULL); } #line 6893 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 264: /* rollup_func_name ::= FIRST */ case 265: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==265); case 339: /* tag_item ::= QTAGS */ yytestcase(yyruleno==339); #line 495 "sql.y" { yylhsminor.yy416 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } #line 6901 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 268: /* col_name ::= column_name */ case 340: /* tag_item ::= column_name */ yytestcase(yyruleno==340); #line 503 "sql.y" { yylhsminor.yy416 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy1109); } #line 6908 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 269: /* cmd ::= SHOW DNODES */ #line 506 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } #line 6914 "sql.c" break; case 270: /* cmd ::= SHOW USERS */ #line 507 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } #line 6919 "sql.c" break; case 271: /* cmd ::= SHOW USERS FULL */ #line 508 "sql.y" { pCxt->pRootNode = createShowStmtWithFull(pCxt, QUERY_NODE_SHOW_USERS_FULL_STMT); } #line 6924 "sql.c" break; case 272: /* cmd ::= SHOW USER PRIVILEGES */ #line 509 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } #line 6929 "sql.c" break; case 273: /* cmd ::= SHOW db_kind_opt DATABASES */ #line 510 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy681); } #line 6937 "sql.c" break; case 274: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ #line 514 "sql.y" { pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy925, yymsp[0].minor.yy416, OP_TYPE_LIKE); } #line 6944 "sql.c" break; case 275: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ #line 517 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy416, yymsp[0].minor.yy416, OP_TYPE_LIKE); } #line 6949 "sql.c" break; case 276: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ #line 518 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy416, NULL, OP_TYPE_LIKE); } #line 6954 "sql.c" break; case 277: /* cmd ::= SHOW MNODES */ #line 519 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } #line 6959 "sql.c" break; case 278: /* cmd ::= SHOW QNODES */ #line 521 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } #line 6964 "sql.c" break; case 279: /* cmd ::= SHOW ARBGROUPS */ #line 522 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); } #line 6969 "sql.c" break; case 280: /* cmd ::= SHOW FUNCTIONS */ #line 523 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } #line 6974 "sql.c" break; case 281: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ #line 524 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy416, yymsp[-1].minor.yy416, OP_TYPE_EQUAL); } #line 6979 "sql.c" break; case 282: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ #line 525 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy1109), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1109), OP_TYPE_EQUAL); } #line 6984 "sql.c" break; case 283: /* cmd ::= SHOW STREAMS */ #line 526 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } #line 6989 "sql.c" break; case 284: /* cmd ::= SHOW ACCOUNTS */ #line 527 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } #line 6994 "sql.c" break; case 285: /* cmd ::= SHOW APPS */ #line 528 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } #line 6999 "sql.c" break; case 286: /* cmd ::= SHOW CONNECTIONS */ #line 529 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } #line 7004 "sql.c" break; case 287: /* cmd ::= SHOW LICENCES */ case 288: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==288); #line 530 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } #line 7010 "sql.c" break; case 289: /* cmd ::= SHOW GRANTS FULL */ #line 532 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); } #line 7015 "sql.c" break; case 290: /* cmd ::= SHOW GRANTS LOGS */ #line 533 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); } #line 7020 "sql.c" break; case 291: /* cmd ::= SHOW CLUSTER MACHINES */ #line 534 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); } #line 7025 "sql.c" break; case 292: /* cmd ::= SHOW CREATE DATABASE db_name */ #line 535 "sql.y" { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy1109); } #line 7030 "sql.c" break; case 293: /* cmd ::= SHOW CREATE TABLE full_table_name */ #line 536 "sql.y" { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy416); } #line 7035 "sql.c" break; case 294: /* cmd ::= SHOW CREATE STABLE full_table_name */ #line 537 "sql.y" { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy416); } #line 7041 "sql.c" break; case 295: /* cmd ::= SHOW ENCRYPTIONS */ #line 539 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ENCRYPTIONS_STMT); } #line 7046 "sql.c" break; case 296: /* cmd ::= SHOW QUERIES */ #line 540 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } #line 7051 "sql.c" break; case 297: /* cmd ::= SHOW SCORES */ #line 541 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } #line 7056 "sql.c" break; case 298: /* cmd ::= SHOW TOPICS */ #line 542 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } #line 7061 "sql.c" break; case 299: /* cmd ::= SHOW VARIABLES */ case 300: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==300); #line 543 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } #line 7067 "sql.c" break; case 301: /* cmd ::= SHOW LOCAL VARIABLES */ #line 545 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } #line 7072 "sql.c" break; case 302: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ #line 546 "sql.y" { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy416); } #line 7077 "sql.c" break; case 303: /* cmd ::= SHOW BNODES */ #line 547 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } #line 7082 "sql.c" break; case 304: /* cmd ::= SHOW SNODES */ #line 548 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } #line 7087 "sql.c" break; case 305: /* cmd ::= SHOW CLUSTER */ #line 549 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } #line 7092 "sql.c" break; case 306: /* cmd ::= SHOW TRANSACTIONS */ #line 550 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } #line 7097 "sql.c" break; case 307: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ #line 551 "sql.y" { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy416); } #line 7102 "sql.c" break; case 308: /* cmd ::= SHOW CONSUMERS */ #line 552 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } #line 7107 "sql.c" break; case 309: /* cmd ::= SHOW SUBSCRIPTIONS */ #line 553 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } #line 7112 "sql.c" break; case 310: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ #line 554 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy416, yymsp[-1].minor.yy416, OP_TYPE_EQUAL); } #line 7117 "sql.c" break; case 311: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ #line 555 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy1109), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1109), OP_TYPE_EQUAL); } #line 7122 "sql.c" break; case 312: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ #line 556 "sql.y" { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy416, yymsp[0].minor.yy416, yymsp[-3].minor.yy316); } #line 7127 "sql.c" break; case 313: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ #line 557 "sql.y" { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1109), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy1109), yymsp[-4].minor.yy316); } #line 7132 "sql.c" break; case 314: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ #line 558 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } #line 7137 "sql.c" break; case 315: /* cmd ::= SHOW VNODES */ #line 559 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } #line 7142 "sql.c" break; case 316: /* cmd ::= SHOW db_name_cond_opt ALIVE */ #line 561 "sql.y" { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy416, QUERY_NODE_SHOW_DB_ALIVE_STMT); } #line 7147 "sql.c" break; case 317: /* cmd ::= SHOW CLUSTER ALIVE */ #line 562 "sql.y" { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } #line 7152 "sql.c" break; case 318: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ #line 563 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy416, yymsp[0].minor.yy416, OP_TYPE_LIKE); } #line 7157 "sql.c" break; case 319: /* cmd ::= SHOW CREATE VIEW full_table_name */ #line 564 "sql.y" { pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy416); } #line 7162 "sql.c" break; case 320: /* cmd ::= SHOW COMPACTS */ #line 565 "sql.y" { pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); } #line 7167 "sql.c" break; case 321: /* cmd ::= SHOW COMPACT NK_INTEGER */ #line 566 "sql.y" { pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } #line 7172 "sql.c" break; case 322: /* table_kind_db_name_cond_opt ::= */ #line 570 "sql.y" { yymsp[1].minor.yy925.kind = SHOW_KIND_ALL; yymsp[1].minor.yy925.dbName = nil_token; } #line 7177 "sql.c" break; case 323: /* table_kind_db_name_cond_opt ::= table_kind */ #line 571 "sql.y" { yylhsminor.yy925.kind = yymsp[0].minor.yy681; yylhsminor.yy925.dbName = nil_token; } #line 7182 "sql.c" yymsp[0].minor.yy925 = yylhsminor.yy925; break; case 324: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ #line 572 "sql.y" { yylhsminor.yy925.kind = SHOW_KIND_ALL; yylhsminor.yy925.dbName = yymsp[-1].minor.yy1109; } #line 7188 "sql.c" yymsp[-1].minor.yy925 = yylhsminor.yy925; break; case 325: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ #line 573 "sql.y" { yylhsminor.yy925.kind = yymsp[-2].minor.yy681; yylhsminor.yy925.dbName = yymsp[-1].minor.yy1109; } #line 7194 "sql.c" yymsp[-2].minor.yy925 = yylhsminor.yy925; break; case 326: /* table_kind ::= NORMAL */ #line 577 "sql.y" { yymsp[0].minor.yy681 = SHOW_KIND_TABLES_NORMAL; } #line 7200 "sql.c" break; case 327: /* table_kind ::= CHILD */ #line 578 "sql.y" { yymsp[0].minor.yy681 = SHOW_KIND_TABLES_CHILD; } #line 7205 "sql.c" break; case 328: /* db_name_cond_opt ::= */ case 333: /* from_db_opt ::= */ yytestcase(yyruleno==333); #line 580 "sql.y" { yymsp[1].minor.yy416 = createDefaultDatabaseCondValue(pCxt); } #line 7211 "sql.c" break; case 329: /* db_name_cond_opt ::= db_name NK_DOT */ #line 581 "sql.y" { yylhsminor.yy416 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy1109); } #line 7216 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 331: /* like_pattern_opt ::= LIKE NK_STRING */ #line 584 "sql.y" { yymsp[-1].minor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } #line 7222 "sql.c" break; case 332: /* table_name_cond ::= table_name */ #line 586 "sql.y" { yylhsminor.yy416 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1109); } #line 7227 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 334: /* from_db_opt ::= FROM db_name */ #line 589 "sql.y" { yymsp[-1].minor.yy416 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy1109); } #line 7233 "sql.c" break; case 338: /* tag_item ::= TBNAME */ #line 597 "sql.y" { yylhsminor.yy416 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } #line 7238 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 341: /* tag_item ::= column_name column_alias */ #line 600 "sql.y" { yylhsminor.yy416 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy1109), &yymsp[0].minor.yy1109); } #line 7244 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 342: /* tag_item ::= column_name AS column_alias */ #line 601 "sql.y" { yylhsminor.yy416 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy1109), &yymsp[0].minor.yy1109); } #line 7250 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 343: /* db_kind_opt ::= */ #line 605 "sql.y" { yymsp[1].minor.yy681 = SHOW_KIND_ALL; } #line 7256 "sql.c" break; case 344: /* db_kind_opt ::= USER */ #line 606 "sql.y" { yymsp[0].minor.yy681 = SHOW_KIND_DATABASES_USER; } #line 7261 "sql.c" break; case 345: /* db_kind_opt ::= SYSTEM */ #line 607 "sql.y" { yymsp[0].minor.yy681 = SHOW_KIND_DATABASES_SYSTEM; } #line 7266 "sql.c" break; case 346: /* cmd ::= CREATE TSMA not_exists_opt tsma_name ON full_table_name tsma_func_list INTERVAL NK_LP duration_literal NK_RP */ #line 613 "sql.y" { pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-8].minor.yy209, &yymsp[-7].minor.yy1109, yymsp[-4].minor.yy416, yymsp[-5].minor.yy416, releaseRawExprNode(pCxt, yymsp[-1].minor.yy416)); } #line 7271 "sql.c" break; case 347: /* cmd ::= CREATE RECURSIVE TSMA not_exists_opt tsma_name ON full_table_name INTERVAL NK_LP duration_literal NK_RP */ #line 615 "sql.y" { pCxt->pRootNode = createCreateTSMAStmt(pCxt, yymsp[-7].minor.yy209, &yymsp[-6].minor.yy1109, NULL, yymsp[-4].minor.yy416, releaseRawExprNode(pCxt, yymsp[-1].minor.yy416)); } #line 7276 "sql.c" break; case 348: /* cmd ::= DROP TSMA exists_opt full_tsma_name */ #line 616 "sql.y" { pCxt->pRootNode = createDropTSMAStmt(pCxt, yymsp[-1].minor.yy209, yymsp[0].minor.yy416); } #line 7281 "sql.c" break; case 349: /* cmd ::= SHOW db_name_cond_opt TSMAS */ #line 617 "sql.y" { pCxt->pRootNode = createShowTSMASStmt(pCxt, yymsp[-1].minor.yy416); } #line 7286 "sql.c" break; case 352: /* tsma_func_list ::= FUNCTION NK_LP func_list NK_RP */ #line 624 "sql.y" { yymsp[-3].minor.yy416 = createTSMAOptions(pCxt, yymsp[-1].minor.yy316); } #line 7291 "sql.c" break; case 353: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ #line 628 "sql.y" { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy209, yymsp[-3].minor.yy416, yymsp[-1].minor.yy416, NULL, yymsp[0].minor.yy416); } #line 7296 "sql.c" break; case 354: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ #line 630 "sql.y" { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy209, yymsp[-5].minor.yy416, yymsp[-3].minor.yy416, yymsp[-1].minor.yy316, NULL); } #line 7301 "sql.c" break; case 355: /* cmd ::= DROP INDEX exists_opt full_index_name */ #line 631 "sql.y" { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy209, yymsp[0].minor.yy416); } #line 7306 "sql.c" break; case 356: /* full_index_name ::= index_name */ #line 633 "sql.y" { yylhsminor.yy416 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy1109); } #line 7311 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 357: /* full_index_name ::= db_name NK_DOT index_name */ #line 634 "sql.y" { yylhsminor.yy416 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy1109); } #line 7317 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 358: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ #line 637 "sql.y" { yymsp[-9].minor.yy416 = createIndexOption(pCxt, yymsp[-7].minor.yy316, releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), NULL, yymsp[-1].minor.yy416, yymsp[0].minor.yy416); } #line 7323 "sql.c" break; case 359: /* 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 640 "sql.y" { yymsp[-11].minor.yy416 = createIndexOption(pCxt, yymsp[-9].minor.yy316, releaseRawExprNode(pCxt, yymsp[-5].minor.yy416), releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), yymsp[-1].minor.yy416, yymsp[0].minor.yy416); } #line 7328 "sql.c" break; case 362: /* func ::= sma_func_name NK_LP expression_list NK_RP */ #line 647 "sql.y" { yylhsminor.yy416 = createFunctionNode(pCxt, &yymsp[-3].minor.yy1109, yymsp[-1].minor.yy316); } #line 7333 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 363: /* sma_func_name ::= function_name */ case 637: /* alias_opt ::= table_alias */ yytestcase(yyruleno==637); #line 651 "sql.y" { yylhsminor.yy1109 = yymsp[0].minor.yy1109; } #line 7340 "sql.c" yymsp[0].minor.yy1109 = yylhsminor.yy1109; break; case 368: /* sma_stream_opt ::= */ case 418: /* stream_options ::= */ yytestcase(yyruleno==418); #line 657 "sql.y" { yymsp[1].minor.yy416 = createStreamOptions(pCxt); } #line 7347 "sql.c" break; case 369: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ #line 658 "sql.y" { ((SStreamOptions*)yymsp[-2].minor.yy416)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = yymsp[-2].minor.yy416; } #line 7352 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 370: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ #line 659 "sql.y" { ((SStreamOptions*)yymsp[-2].minor.yy416)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = yymsp[-2].minor.yy416; } #line 7358 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 371: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ #line 660 "sql.y" { ((SStreamOptions*)yymsp[-2].minor.yy416)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = yymsp[-2].minor.yy416; } #line 7364 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 372: /* with_meta ::= AS */ #line 665 "sql.y" { yymsp[0].minor.yy820 = 0; } #line 7370 "sql.c" break; case 373: /* with_meta ::= WITH META AS */ #line 666 "sql.y" { yymsp[-2].minor.yy820 = 1; } #line 7375 "sql.c" break; case 374: /* with_meta ::= ONLY META AS */ #line 667 "sql.y" { yymsp[-2].minor.yy820 = 2; } #line 7380 "sql.c" break; case 375: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ #line 669 "sql.y" { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy209, &yymsp[-2].minor.yy1109, yymsp[0].minor.yy416); } #line 7385 "sql.c" break; case 376: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ #line 671 "sql.y" { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy209, &yymsp[-3].minor.yy1109, &yymsp[0].minor.yy1109, yymsp[-2].minor.yy820); } #line 7390 "sql.c" break; case 377: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ #line 673 "sql.y" { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy209, &yymsp[-4].minor.yy1109, yymsp[-1].minor.yy416, yymsp[-3].minor.yy820, yymsp[0].minor.yy416); } #line 7395 "sql.c" break; case 378: /* cmd ::= DROP TOPIC exists_opt topic_name */ #line 675 "sql.y" { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy209, &yymsp[0].minor.yy1109); } #line 7400 "sql.c" break; case 379: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ #line 676 "sql.y" { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy209, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy1109); } #line 7405 "sql.c" break; case 380: /* cmd ::= DESC full_table_name */ case 381: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==381); #line 679 "sql.y" { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy416); } #line 7411 "sql.c" break; case 382: /* cmd ::= RESET QUERY CACHE */ #line 683 "sql.y" { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } #line 7416 "sql.c" break; case 383: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 384: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==384); #line 686 "sql.y" { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy209, yymsp[-1].minor.yy416, yymsp[0].minor.yy416); } #line 7422 "sql.c" break; case 387: /* explain_options ::= */ #line 694 "sql.y" { yymsp[1].minor.yy416 = createDefaultExplainOptions(pCxt); } #line 7427 "sql.c" break; case 388: /* explain_options ::= explain_options VERBOSE NK_BOOL */ #line 695 "sql.y" { yylhsminor.yy416 = setExplainVerbose(pCxt, yymsp[-2].minor.yy416, &yymsp[0].minor.yy0); } #line 7432 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 389: /* explain_options ::= explain_options RATIO NK_FLOAT */ #line 696 "sql.y" { yylhsminor.yy416 = setExplainRatio(pCxt, yymsp[-2].minor.yy416, &yymsp[0].minor.yy0); } #line 7438 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 390: /* 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 701 "sql.y" { pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy209, yymsp[-9].minor.yy209, &yymsp[-6].minor.yy1109, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy952, yymsp[-1].minor.yy820, &yymsp[0].minor.yy1109, yymsp[-10].minor.yy209); } #line 7444 "sql.c" break; case 391: /* cmd ::= DROP FUNCTION exists_opt function_name */ #line 702 "sql.y" { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy209, &yymsp[0].minor.yy1109); } #line 7449 "sql.c" break; case 396: /* language_opt ::= */ case 441: /* on_vgroup_id ::= */ yytestcase(yyruleno==441); #line 716 "sql.y" { yymsp[1].minor.yy1109 = nil_token; } #line 7455 "sql.c" break; case 397: /* language_opt ::= LANGUAGE NK_STRING */ case 442: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==442); #line 717 "sql.y" { yymsp[-1].minor.yy1109 = yymsp[0].minor.yy0; } #line 7461 "sql.c" break; case 400: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ #line 726 "sql.y" { pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy209, yymsp[-2].minor.yy416, &yymsp[-1].minor.yy0, yymsp[0].minor.yy416); } #line 7466 "sql.c" break; case 401: /* cmd ::= DROP VIEW exists_opt full_view_name */ #line 727 "sql.y" { pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy209, yymsp[0].minor.yy416); } #line 7471 "sql.c" break; case 402: /* full_view_name ::= view_name */ #line 729 "sql.y" { yylhsminor.yy416 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy1109); } #line 7476 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 403: /* full_view_name ::= db_name NK_DOT view_name */ #line 730 "sql.y" { yylhsminor.yy416 = createViewNode(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy1109); } #line 7482 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 404: /* 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 735 "sql.y" { pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy209, &yymsp[-8].minor.yy1109, yymsp[-5].minor.yy416, yymsp[-7].minor.yy416, yymsp[-3].minor.yy316, yymsp[-2].minor.yy416, yymsp[0].minor.yy416, yymsp[-4].minor.yy316); } #line 7488 "sql.c" break; case 405: /* cmd ::= DROP STREAM exists_opt stream_name */ #line 736 "sql.y" { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy209, &yymsp[0].minor.yy1109); } #line 7493 "sql.c" break; case 406: /* cmd ::= PAUSE STREAM exists_opt stream_name */ #line 737 "sql.y" { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy209, &yymsp[0].minor.yy1109); } #line 7498 "sql.c" break; case 407: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ #line 738 "sql.y" { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy209, yymsp[-1].minor.yy209, &yymsp[0].minor.yy1109); } #line 7503 "sql.c" break; case 412: /* column_stream_def ::= column_name stream_col_options */ #line 751 "sql.y" { yylhsminor.yy416 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy1109, createDataType(TSDB_DATA_TYPE_NULL), yymsp[0].minor.yy416); } #line 7508 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 413: /* stream_col_options ::= */ case 750: /* column_options ::= */ yytestcase(yyruleno==750); #line 752 "sql.y" { yymsp[1].minor.yy416 = createDefaultColumnOptions(pCxt); } #line 7515 "sql.c" break; case 414: /* stream_col_options ::= stream_col_options PRIMARY KEY */ case 751: /* column_options ::= column_options PRIMARY KEY */ yytestcase(yyruleno==751); #line 753 "sql.y" { yylhsminor.yy416 = setColumnOptions(pCxt, yymsp[-2].minor.yy416, COLUMN_OPTION_PRIMARYKEY, NULL); } #line 7521 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 419: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 420: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==420); #line 763 "sql.y" { yylhsminor.yy416 = setStreamOptions(pCxt, yymsp[-2].minor.yy416, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } #line 7528 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 421: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ #line 765 "sql.y" { yylhsminor.yy416 = setStreamOptions(pCxt, yymsp[-3].minor.yy416, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy416)); } #line 7534 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 422: /* stream_options ::= stream_options WATERMARK duration_literal */ #line 766 "sql.y" { yylhsminor.yy416 = setStreamOptions(pCxt, yymsp[-2].minor.yy416, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy416)); } #line 7540 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 423: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ #line 767 "sql.y" { yylhsminor.yy416 = setStreamOptions(pCxt, yymsp[-3].minor.yy416, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } #line 7546 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 424: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ #line 768 "sql.y" { yylhsminor.yy416 = setStreamOptions(pCxt, yymsp[-2].minor.yy416, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } #line 7552 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 425: /* stream_options ::= stream_options DELETE_MARK duration_literal */ #line 769 "sql.y" { yylhsminor.yy416 = setStreamOptions(pCxt, yymsp[-2].minor.yy416, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy416)); } #line 7558 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 426: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ #line 770 "sql.y" { yylhsminor.yy416 = setStreamOptions(pCxt, yymsp[-3].minor.yy416, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } #line 7564 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 428: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ case 694: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==694); case 718: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==718); #line 773 "sql.y" { yymsp[-3].minor.yy416 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy416); } #line 7572 "sql.c" break; case 431: /* cmd ::= KILL CONNECTION NK_INTEGER */ #line 781 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } #line 7577 "sql.c" break; case 432: /* cmd ::= KILL QUERY NK_STRING */ #line 782 "sql.y" { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } #line 7582 "sql.c" break; case 433: /* cmd ::= KILL TRANSACTION NK_INTEGER */ #line 783 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } #line 7587 "sql.c" break; case 434: /* cmd ::= KILL COMPACT NK_INTEGER */ #line 784 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); } #line 7592 "sql.c" break; case 435: /* cmd ::= BALANCE VGROUP */ #line 787 "sql.y" { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } #line 7597 "sql.c" break; case 436: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ #line 788 "sql.y" { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy1109); } #line 7602 "sql.c" break; case 437: /* cmd ::= BALANCE VGROUP LEADER DATABASE db_name */ #line 789 "sql.y" { pCxt->pRootNode = createBalanceVgroupLeaderDBNameStmt(pCxt, &yymsp[0].minor.yy1109); } #line 7607 "sql.c" break; case 438: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ #line 790 "sql.y" { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } #line 7612 "sql.c" break; case 439: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ #line 791 "sql.y" { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy316); } #line 7617 "sql.c" break; case 440: /* cmd ::= SPLIT VGROUP NK_INTEGER */ #line 792 "sql.y" { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } #line 7622 "sql.c" break; case 443: /* dnode_list ::= DNODE NK_INTEGER */ #line 801 "sql.y" { yymsp[-1].minor.yy316 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } #line 7627 "sql.c" break; case 445: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ #line 808 "sql.y" { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy416, yymsp[0].minor.yy416); } #line 7632 "sql.c" break; case 448: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ #line 817 "sql.y" { yymsp[-6].minor.yy416 = createInsertStmt(pCxt, yymsp[-4].minor.yy416, yymsp[-2].minor.yy316, yymsp[0].minor.yy416); } #line 7637 "sql.c" break; case 449: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ #line 818 "sql.y" { yymsp[-3].minor.yy416 = createInsertStmt(pCxt, yymsp[-1].minor.yy416, NULL, yymsp[0].minor.yy416); } #line 7642 "sql.c" break; case 450: /* tags_literal ::= NK_INTEGER */ case 462: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==462); case 471: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==471); #line 821 "sql.y" { yylhsminor.yy416 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } #line 7649 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 451: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ case 452: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==452); case 463: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==463); case 464: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==464); case 472: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==472); case 473: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==473); case 481: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==481); case 482: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==482); #line 822 "sql.y" { SToken l = yymsp[-2].minor.yy0; SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); l.n = (r.z + r.n) - l.z; yylhsminor.yy416 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy416); } #line 7667 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 453: /* tags_literal ::= NK_PLUS NK_INTEGER */ case 456: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==456); case 465: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==465); case 468: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==468); case 474: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==474); case 477: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==477); #line 834 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy416 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL); } #line 7682 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 454: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ case 455: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==455); case 457: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==457); case 458: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==458); case 466: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==466); case 467: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==467); case 469: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==469); case 470: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==470); case 475: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==475); case 476: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==476); case 478: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==478); case 479: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==479); #line 839 "sql.y" { SToken l = yymsp[-3].minor.yy0; SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); l.n = (r.z + r.n) - l.z; yylhsminor.yy416 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy416); } #line 7704 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 459: /* tags_literal ::= NK_FLOAT */ #line 868 "sql.y" { yylhsminor.yy416 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } #line 7710 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 460: /* tags_literal ::= NK_PLUS NK_FLOAT */ case 461: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==461); #line 869 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy416 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL); } #line 7721 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 480: /* tags_literal ::= NK_STRING */ #line 975 "sql.y" { yylhsminor.yy416 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } #line 7727 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 483: /* tags_literal ::= NK_BOOL */ #line 988 "sql.y" { yylhsminor.yy416 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } #line 7733 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 484: /* tags_literal ::= NULL */ #line 989 "sql.y" { yylhsminor.yy416 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } #line 7739 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 485: /* tags_literal ::= literal_func */ #line 991 "sql.y" { yylhsminor.yy416 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy416); } #line 7745 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 486: /* tags_literal ::= literal_func NK_PLUS duration_literal */ case 487: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==487); #line 992 "sql.y" { SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); l.n = (r.z + r.n) - l.z; yylhsminor.yy416 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy416, yymsp[0].minor.yy416); } #line 7757 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 490: /* literal ::= NK_INTEGER */ #line 1011 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } #line 7763 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 491: /* literal ::= NK_FLOAT */ #line 1012 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } #line 7769 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 492: /* literal ::= NK_STRING */ #line 1013 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } #line 7775 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 493: /* literal ::= NK_BOOL */ #line 1014 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } #line 7781 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 494: /* literal ::= TIMESTAMP NK_STRING */ #line 1015 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } #line 7787 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 495: /* literal ::= duration_literal */ case 505: /* signed_literal ::= signed */ yytestcase(yyruleno==505); case 529: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==529); case 530: /* expression ::= literal */ yytestcase(yyruleno==530); case 532: /* expression ::= column_reference */ yytestcase(yyruleno==532); case 533: /* expression ::= function_expression */ yytestcase(yyruleno==533); case 534: /* expression ::= case_when_expression */ yytestcase(yyruleno==534); case 568: /* function_expression ::= literal_func */ yytestcase(yyruleno==568); case 618: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==618); case 622: /* boolean_primary ::= predicate */ yytestcase(yyruleno==622); case 624: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==624); case 625: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==625); case 628: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==628); case 630: /* table_reference ::= table_primary */ yytestcase(yyruleno==630); case 631: /* table_reference ::= joined_table */ yytestcase(yyruleno==631); case 635: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==635); case 720: /* query_simple ::= query_specification */ yytestcase(yyruleno==720); case 721: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==721); case 724: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==724); case 726: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==726); #line 1016 "sql.y" { yylhsminor.yy416 = yymsp[0].minor.yy416; } #line 7812 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 496: /* literal ::= NULL */ #line 1017 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } #line 7818 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 497: /* literal ::= NK_QUESTION */ #line 1018 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 7824 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 498: /* duration_literal ::= NK_VARIABLE */ case 695: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==695); case 696: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==696); case 697: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==697); #line 1020 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 7833 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 499: /* signed ::= NK_INTEGER */ #line 1022 "sql.y" { yylhsminor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } #line 7839 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 500: /* signed ::= NK_PLUS NK_INTEGER */ #line 1023 "sql.y" { yymsp[-1].minor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } #line 7845 "sql.c" break; case 501: /* signed ::= NK_MINUS NK_INTEGER */ #line 1024 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } #line 7854 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 502: /* signed ::= NK_FLOAT */ #line 1029 "sql.y" { yylhsminor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } #line 7860 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 503: /* signed ::= NK_PLUS NK_FLOAT */ #line 1030 "sql.y" { yymsp[-1].minor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } #line 7866 "sql.c" break; case 504: /* signed ::= NK_MINUS NK_FLOAT */ #line 1031 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } #line 7875 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 506: /* signed_literal ::= NK_STRING */ #line 1038 "sql.y" { yylhsminor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } #line 7881 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 507: /* signed_literal ::= NK_BOOL */ #line 1039 "sql.y" { yylhsminor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } #line 7887 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 508: /* signed_literal ::= TIMESTAMP NK_STRING */ #line 1040 "sql.y" { yymsp[-1].minor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } #line 7893 "sql.c" break; case 509: /* signed_literal ::= duration_literal */ case 511: /* signed_literal ::= literal_func */ yytestcase(yyruleno==511); case 589: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==589); case 672: /* select_item ::= common_expression */ yytestcase(yyruleno==672); case 682: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==682); case 725: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==725); case 727: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==727); case 740: /* search_condition ::= common_expression */ yytestcase(yyruleno==740); #line 1041 "sql.y" { yylhsminor.yy416 = releaseRawExprNode(pCxt, yymsp[0].minor.yy416); } #line 7905 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 510: /* signed_literal ::= NULL */ #line 1042 "sql.y" { yylhsminor.yy416 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } #line 7911 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 512: /* signed_literal ::= NK_QUESTION */ #line 1044 "sql.y" { yylhsminor.yy416 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } #line 7917 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 531: /* expression ::= pseudo_column */ #line 1110 "sql.y" { yylhsminor.yy416 = yymsp[0].minor.yy416; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy416, true); } #line 7923 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 535: /* expression ::= NK_LP expression NK_RP */ case 623: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==623); case 739: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==739); #line 1114 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy416)); } #line 7931 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 536: /* expression ::= NK_PLUS expr_or_subquery */ #line 1115 "sql.y" { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy416)); } #line 7940 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 537: /* expression ::= NK_MINUS expr_or_subquery */ #line 1119 "sql.y" { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy416), NULL)); } #line 7949 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 538: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ #line 1123 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 7959 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 539: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ #line 1128 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 7969 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 540: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ #line 1133 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 7979 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 541: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ #line 1138 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 7989 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 542: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ #line 1143 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 7999 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 543: /* expression ::= column_reference NK_ARROW NK_STRING */ #line 1148 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } #line 8008 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 544: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ #line 1152 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 8018 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 545: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ #line 1157 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 8028 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 548: /* column_reference ::= column_name */ #line 1168 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy1109, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy1109)); } #line 8034 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 549: /* column_reference ::= table_name NK_DOT column_name */ #line 1169 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy1109, createColumnNode(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy1109)); } #line 8040 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 550: /* column_reference ::= NK_ALIAS */ #line 1170 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } #line 8046 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 551: /* column_reference ::= table_name NK_DOT NK_ALIAS */ #line 1171 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy0)); } #line 8052 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 552: /* pseudo_column ::= ROWTS */ case 553: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==553); case 555: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==555); case 556: /* pseudo_column ::= QEND */ yytestcase(yyruleno==556); case 557: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==557); case 558: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==558); case 559: /* pseudo_column ::= WEND */ yytestcase(yyruleno==559); case 560: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==560); case 561: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==561); case 562: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==562); case 563: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==563); case 570: /* literal_func ::= NOW */ yytestcase(yyruleno==570); case 571: /* literal_func ::= TODAY */ yytestcase(yyruleno==571); #line 1173 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } #line 8070 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 554: /* pseudo_column ::= table_name NK_DOT TBNAME */ #line 1175 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy1109)))); } #line 8076 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 564: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 565: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==565); #line 1186 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy1109, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy1109, yymsp[-1].minor.yy316)); } #line 8083 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 566: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ case 567: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==567); #line 1189 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), yymsp[-1].minor.yy952)); } #line 8090 "sql.c" yymsp[-5].minor.yy416 = yylhsminor.yy416; break; case 569: /* literal_func ::= noarg_func NK_LP NK_RP */ #line 1195 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy1109, NULL)); } #line 8096 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 585: /* star_func_para_list ::= NK_STAR */ #line 1220 "sql.y" { yylhsminor.yy316 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } #line 8102 "sql.c" yymsp[0].minor.yy316 = yylhsminor.yy316; break; case 590: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 675: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==675); #line 1229 "sql.y" { yylhsminor.yy416 = createColumnNode(pCxt, &yymsp[-2].minor.yy1109, &yymsp[0].minor.yy0); } #line 8109 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 591: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ #line 1232 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy316, yymsp[-1].minor.yy416)); } #line 8115 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 592: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ #line 1234 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), yymsp[-2].minor.yy316, yymsp[-1].minor.yy416)); } #line 8121 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 595: /* when_then_expr ::= WHEN common_expression THEN common_expression */ #line 1241 "sql.y" { yymsp[-3].minor.yy416 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416)); } #line 8127 "sql.c" break; case 597: /* case_when_else_opt ::= ELSE common_expression */ #line 1244 "sql.y" { yymsp[-1].minor.yy416 = releaseRawExprNode(pCxt, yymsp[0].minor.yy416); } #line 8132 "sql.c" break; case 598: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 603: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==603); #line 1247 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy848, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 8142 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 599: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ #line 1254 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy416), releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 8152 "sql.c" yymsp[-4].minor.yy416 = yylhsminor.yy416; break; case 600: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ #line 1260 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy416), releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 8162 "sql.c" yymsp[-5].minor.yy416 = yylhsminor.yy416; break; case 601: /* predicate ::= expr_or_subquery IS NULL */ #line 1265 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), NULL)); } #line 8171 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 602: /* predicate ::= expr_or_subquery IS NOT NULL */ #line 1269 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), NULL)); } #line 8180 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 604: /* compare_op ::= NK_LT */ #line 1281 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_LOWER_THAN; } #line 8186 "sql.c" break; case 605: /* compare_op ::= NK_GT */ #line 1282 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_GREATER_THAN; } #line 8191 "sql.c" break; case 606: /* compare_op ::= NK_LE */ #line 1283 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_LOWER_EQUAL; } #line 8196 "sql.c" break; case 607: /* compare_op ::= NK_GE */ #line 1284 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_GREATER_EQUAL; } #line 8201 "sql.c" break; case 608: /* compare_op ::= NK_NE */ #line 1285 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_NOT_EQUAL; } #line 8206 "sql.c" break; case 609: /* compare_op ::= NK_EQ */ #line 1286 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_EQUAL; } #line 8211 "sql.c" break; case 610: /* compare_op ::= LIKE */ #line 1287 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_LIKE; } #line 8216 "sql.c" break; case 611: /* compare_op ::= NOT LIKE */ #line 1288 "sql.y" { yymsp[-1].minor.yy848 = OP_TYPE_NOT_LIKE; } #line 8221 "sql.c" break; case 612: /* compare_op ::= MATCH */ #line 1289 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_MATCH; } #line 8226 "sql.c" break; case 613: /* compare_op ::= NMATCH */ #line 1290 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_NMATCH; } #line 8231 "sql.c" break; case 614: /* compare_op ::= CONTAINS */ #line 1291 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_JSON_CONTAINS; } #line 8236 "sql.c" break; case 615: /* in_op ::= IN */ #line 1295 "sql.y" { yymsp[0].minor.yy848 = OP_TYPE_IN; } #line 8241 "sql.c" break; case 616: /* in_op ::= NOT IN */ #line 1296 "sql.y" { yymsp[-1].minor.yy848 = OP_TYPE_NOT_IN; } #line 8246 "sql.c" break; case 617: /* in_predicate_value ::= NK_LP literal_list NK_RP */ #line 1298 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy316)); } #line 8251 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 619: /* boolean_value_expression ::= NOT boolean_primary */ #line 1302 "sql.y" { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy416), NULL)); } #line 8260 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 620: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ #line 1307 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 8270 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 621: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ #line 1313 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy416); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy416); yylhsminor.yy416 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 8280 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 629: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ #line 1331 "sql.y" { yylhsminor.yy416 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, JOIN_STYPE_NONE, yymsp[-2].minor.yy416, yymsp[0].minor.yy416, NULL); } #line 8286 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 632: /* table_primary ::= table_name alias_opt */ #line 1337 "sql.y" { yylhsminor.yy416 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy1109, &yymsp[0].minor.yy1109); } #line 8292 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 633: /* table_primary ::= db_name NK_DOT table_name alias_opt */ #line 1338 "sql.y" { yylhsminor.yy416 = createRealTableNode(pCxt, &yymsp[-3].minor.yy1109, &yymsp[-1].minor.yy1109, &yymsp[0].minor.yy1109); } #line 8298 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 634: /* table_primary ::= subquery alias_opt */ #line 1339 "sql.y" { yylhsminor.yy416 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy416), &yymsp[0].minor.yy1109); } #line 8304 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 636: /* alias_opt ::= */ #line 1344 "sql.y" { yymsp[1].minor.yy1109 = nil_token; } #line 8310 "sql.c" break; case 638: /* alias_opt ::= AS table_alias */ #line 1346 "sql.y" { yymsp[-1].minor.yy1109 = yymsp[0].minor.yy1109; } #line 8315 "sql.c" break; case 639: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 640: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==640); #line 1348 "sql.y" { yymsp[-2].minor.yy416 = yymsp[-1].minor.yy416; } #line 8321 "sql.c" break; case 641: /* joined_table ::= table_reference join_type join_subtype JOIN table_reference join_on_clause_opt window_offset_clause_opt jlimit_clause_opt */ #line 1354 "sql.y" { yylhsminor.yy416 = createJoinTableNode(pCxt, yymsp[-6].minor.yy972, yymsp[-5].minor.yy630, yymsp[-7].minor.yy416, yymsp[-3].minor.yy416, yymsp[-2].minor.yy416); yylhsminor.yy416 = addWindowOffsetClause(pCxt, yylhsminor.yy416, yymsp[-1].minor.yy416); yylhsminor.yy416 = addJLimitClause(pCxt, yylhsminor.yy416, yymsp[0].minor.yy416); } #line 8330 "sql.c" yymsp[-7].minor.yy416 = yylhsminor.yy416; break; case 642: /* join_type ::= */ #line 1362 "sql.y" { yymsp[1].minor.yy972 = JOIN_TYPE_INNER; } #line 8336 "sql.c" break; case 643: /* join_type ::= INNER */ #line 1363 "sql.y" { yymsp[0].minor.yy972 = JOIN_TYPE_INNER; } #line 8341 "sql.c" break; case 644: /* join_type ::= LEFT */ #line 1364 "sql.y" { yymsp[0].minor.yy972 = JOIN_TYPE_LEFT; } #line 8346 "sql.c" break; case 645: /* join_type ::= RIGHT */ #line 1365 "sql.y" { yymsp[0].minor.yy972 = JOIN_TYPE_RIGHT; } #line 8351 "sql.c" break; case 646: /* join_type ::= FULL */ #line 1366 "sql.y" { yymsp[0].minor.yy972 = JOIN_TYPE_FULL; } #line 8356 "sql.c" break; case 647: /* join_subtype ::= */ #line 1370 "sql.y" { yymsp[1].minor.yy630 = JOIN_STYPE_NONE; } #line 8361 "sql.c" break; case 648: /* join_subtype ::= OUTER */ #line 1371 "sql.y" { yymsp[0].minor.yy630 = JOIN_STYPE_OUTER; } #line 8366 "sql.c" break; case 649: /* join_subtype ::= SEMI */ #line 1372 "sql.y" { yymsp[0].minor.yy630 = JOIN_STYPE_SEMI; } #line 8371 "sql.c" break; case 650: /* join_subtype ::= ANTI */ #line 1373 "sql.y" { yymsp[0].minor.yy630 = JOIN_STYPE_ANTI; } #line 8376 "sql.c" break; case 651: /* join_subtype ::= ASOF */ #line 1374 "sql.y" { yymsp[0].minor.yy630 = JOIN_STYPE_ASOF; } #line 8381 "sql.c" break; case 652: /* join_subtype ::= WINDOW */ #line 1375 "sql.y" { yymsp[0].minor.yy630 = JOIN_STYPE_WIN; } #line 8386 "sql.c" break; case 656: /* window_offset_clause_opt ::= WINDOW_OFFSET NK_LP window_offset_literal NK_COMMA window_offset_literal NK_RP */ #line 1382 "sql.y" { yymsp[-5].minor.yy416 = createWindowOffsetNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), releaseRawExprNode(pCxt, yymsp[-1].minor.yy416)); } #line 8391 "sql.c" break; case 657: /* window_offset_literal ::= NK_VARIABLE */ #line 1384 "sql.y" { yylhsminor.yy416 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createTimeOffsetValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 8396 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 658: /* window_offset_literal ::= NK_MINUS NK_VARIABLE */ #line 1385 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy416 = createRawExprNode(pCxt, &t, createTimeOffsetValueNode(pCxt, &t)); } #line 8406 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 660: /* jlimit_clause_opt ::= JLIMIT NK_INTEGER */ case 731: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ yytestcase(yyruleno==731); case 735: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==735); #line 1392 "sql.y" { yymsp[-1].minor.yy416 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } #line 8414 "sql.c" break; case 661: /* 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 1398 "sql.y" { yymsp[-13].minor.yy416 = createSelectStmt(pCxt, yymsp[-11].minor.yy209, yymsp[-9].minor.yy316, yymsp[-8].minor.yy416, yymsp[-12].minor.yy316); yymsp[-13].minor.yy416 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy416, yymsp[-10].minor.yy209); yymsp[-13].minor.yy416 = addWhereClause(pCxt, yymsp[-13].minor.yy416, yymsp[-7].minor.yy416); yymsp[-13].minor.yy416 = addPartitionByClause(pCxt, yymsp[-13].minor.yy416, yymsp[-6].minor.yy316); yymsp[-13].minor.yy416 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy416, yymsp[-2].minor.yy416); yymsp[-13].minor.yy416 = addGroupByClause(pCxt, yymsp[-13].minor.yy416, yymsp[-1].minor.yy316); yymsp[-13].minor.yy416 = addHavingClause(pCxt, yymsp[-13].minor.yy416, yymsp[0].minor.yy416); yymsp[-13].minor.yy416 = addRangeClause(pCxt, yymsp[-13].minor.yy416, yymsp[-5].minor.yy416); yymsp[-13].minor.yy416 = addEveryClause(pCxt, yymsp[-13].minor.yy416, yymsp[-4].minor.yy416); yymsp[-13].minor.yy416 = addFillClause(pCxt, yymsp[-13].minor.yy416, yymsp[-3].minor.yy416); } #line 8430 "sql.c" break; case 662: /* hint_list ::= */ #line 1413 "sql.y" { yymsp[1].minor.yy316 = createHintNodeList(pCxt, NULL); } #line 8435 "sql.c" break; case 663: /* hint_list ::= NK_HINT */ #line 1414 "sql.y" { yylhsminor.yy316 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } #line 8440 "sql.c" yymsp[0].minor.yy316 = yylhsminor.yy316; break; case 668: /* set_quantifier_opt ::= ALL */ #line 1425 "sql.y" { yymsp[0].minor.yy209 = false; } #line 8446 "sql.c" break; case 671: /* select_item ::= NK_STAR */ #line 1432 "sql.y" { yylhsminor.yy416 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } #line 8451 "sql.c" yymsp[0].minor.yy416 = yylhsminor.yy416; break; case 673: /* select_item ::= common_expression column_alias */ case 683: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==683); #line 1434 "sql.y" { yylhsminor.yy416 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy416), &yymsp[0].minor.yy1109); } #line 8458 "sql.c" yymsp[-1].minor.yy416 = yylhsminor.yy416; break; case 674: /* select_item ::= common_expression AS column_alias */ case 684: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==684); #line 1435 "sql.y" { yylhsminor.yy416 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), &yymsp[0].minor.yy1109); } #line 8465 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 679: /* partition_by_clause_opt ::= PARTITION BY partition_list */ case 709: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==709); case 729: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==729); #line 1444 "sql.y" { yymsp[-2].minor.yy316 = yymsp[0].minor.yy316; } #line 8473 "sql.c" break; case 686: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ #line 1457 "sql.y" { yymsp[-5].minor.yy416 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), releaseRawExprNode(pCxt, yymsp[-1].minor.yy416)); } #line 8478 "sql.c" break; case 687: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ #line 1458 "sql.y" { yymsp[-3].minor.yy416 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy416)); } #line 8483 "sql.c" break; case 688: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ #line 1460 "sql.y" { yymsp[-5].minor.yy416 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), NULL, yymsp[-1].minor.yy416, yymsp[0].minor.yy416); } #line 8488 "sql.c" break; case 689: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ #line 1464 "sql.y" { yymsp[-7].minor.yy416 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy416), releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), yymsp[-1].minor.yy416, yymsp[0].minor.yy416); } #line 8493 "sql.c" break; case 690: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ #line 1466 "sql.y" { yymsp[-6].minor.yy416 = createEventWindowNode(pCxt, yymsp[-3].minor.yy416, yymsp[0].minor.yy416); } #line 8498 "sql.c" break; case 691: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ #line 1468 "sql.y" { yymsp[-3].minor.yy416 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } #line 8503 "sql.c" break; case 692: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ #line 1470 "sql.y" { yymsp[-5].minor.yy416 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } #line 8508 "sql.c" break; case 699: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ #line 1480 "sql.y" { yymsp[-3].minor.yy416 = createFillNode(pCxt, yymsp[-1].minor.yy882, NULL); } #line 8513 "sql.c" break; case 700: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ #line 1481 "sql.y" { yymsp[-5].minor.yy416 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy316)); } #line 8518 "sql.c" break; case 701: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ #line 1482 "sql.y" { yymsp[-5].minor.yy416 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy316)); } #line 8523 "sql.c" break; case 702: /* fill_mode ::= NONE */ #line 1486 "sql.y" { yymsp[0].minor.yy882 = FILL_MODE_NONE; } #line 8528 "sql.c" break; case 703: /* fill_mode ::= PREV */ #line 1487 "sql.y" { yymsp[0].minor.yy882 = FILL_MODE_PREV; } #line 8533 "sql.c" break; case 704: /* fill_mode ::= NULL */ #line 1488 "sql.y" { yymsp[0].minor.yy882 = FILL_MODE_NULL; } #line 8538 "sql.c" break; case 705: /* fill_mode ::= NULL_F */ #line 1489 "sql.y" { yymsp[0].minor.yy882 = FILL_MODE_NULL_F; } #line 8543 "sql.c" break; case 706: /* fill_mode ::= LINEAR */ #line 1490 "sql.y" { yymsp[0].minor.yy882 = FILL_MODE_LINEAR; } #line 8548 "sql.c" break; case 707: /* fill_mode ::= NEXT */ #line 1491 "sql.y" { yymsp[0].minor.yy882 = FILL_MODE_NEXT; } #line 8553 "sql.c" break; case 710: /* group_by_list ::= expr_or_subquery */ #line 1500 "sql.y" { yylhsminor.yy316 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 8558 "sql.c" yymsp[0].minor.yy316 = yylhsminor.yy316; break; case 711: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ #line 1501 "sql.y" { yylhsminor.yy316 = addNodeToList(pCxt, yymsp[-2].minor.yy316, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy416))); } #line 8564 "sql.c" yymsp[-2].minor.yy316 = yylhsminor.yy316; break; case 715: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ #line 1508 "sql.y" { yymsp[-5].minor.yy416 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy416), releaseRawExprNode(pCxt, yymsp[-1].minor.yy416)); } #line 8570 "sql.c" break; case 716: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ #line 1510 "sql.y" { yymsp[-3].minor.yy416 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy416)); } #line 8575 "sql.c" break; case 719: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ #line 1517 "sql.y" { yylhsminor.yy416 = addOrderByClause(pCxt, yymsp[-3].minor.yy416, yymsp[-2].minor.yy316); yylhsminor.yy416 = addSlimitClause(pCxt, yylhsminor.yy416, yymsp[-1].minor.yy416); yylhsminor.yy416 = addLimitClause(pCxt, yylhsminor.yy416, yymsp[0].minor.yy416); } #line 8584 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 722: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ #line 1527 "sql.y" { yylhsminor.yy416 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy416, yymsp[0].minor.yy416); } #line 8590 "sql.c" yymsp[-3].minor.yy416 = yylhsminor.yy416; break; case 723: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ #line 1529 "sql.y" { yylhsminor.yy416 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy416, yymsp[0].minor.yy416); } #line 8596 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 732: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 736: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==736); #line 1544 "sql.y" { yymsp[-3].minor.yy416 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } #line 8603 "sql.c" break; case 733: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 737: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==737); #line 1545 "sql.y" { yymsp[-3].minor.yy416 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } #line 8609 "sql.c" break; case 738: /* subquery ::= NK_LP query_expression NK_RP */ #line 1553 "sql.y" { yylhsminor.yy416 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy416); } #line 8614 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 743: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ #line 1567 "sql.y" { yylhsminor.yy416 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy416), yymsp[-1].minor.yy506, yymsp[0].minor.yy1045); } #line 8620 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 744: /* ordering_specification_opt ::= */ #line 1571 "sql.y" { yymsp[1].minor.yy506 = ORDER_ASC; } #line 8626 "sql.c" break; case 745: /* ordering_specification_opt ::= ASC */ #line 1572 "sql.y" { yymsp[0].minor.yy506 = ORDER_ASC; } #line 8631 "sql.c" break; case 746: /* ordering_specification_opt ::= DESC */ #line 1573 "sql.y" { yymsp[0].minor.yy506 = ORDER_DESC; } #line 8636 "sql.c" break; case 747: /* null_ordering_opt ::= */ #line 1577 "sql.y" { yymsp[1].minor.yy1045 = NULL_ORDER_DEFAULT; } #line 8641 "sql.c" break; case 748: /* null_ordering_opt ::= NULLS FIRST */ #line 1578 "sql.y" { yymsp[-1].minor.yy1045 = NULL_ORDER_FIRST; } #line 8646 "sql.c" break; case 749: /* null_ordering_opt ::= NULLS LAST */ #line 1579 "sql.y" { yymsp[-1].minor.yy1045 = NULL_ORDER_LAST; } #line 8651 "sql.c" break; case 752: /* column_options ::= column_options ENCODE NK_STRING */ #line 1587 "sql.y" { yylhsminor.yy416 = setColumnOptions(pCxt, yymsp[-2].minor.yy416, COLUMN_OPTION_ENCODE, &yymsp[0].minor.yy0); } #line 8656 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 753: /* column_options ::= column_options COMPRESS NK_STRING */ #line 1588 "sql.y" { yylhsminor.yy416 = setColumnOptions(pCxt, yymsp[-2].minor.yy416, COLUMN_OPTION_COMPRESS, &yymsp[0].minor.yy0); } #line 8662 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; case 754: /* column_options ::= column_options LEVEL NK_STRING */ #line 1589 "sql.y" { yylhsminor.yy416 = setColumnOptions(pCxt, yymsp[-2].minor.yy416, COLUMN_OPTION_LEVEL, &yymsp[0].minor.yy0); } #line 8668 "sql.c" yymsp[-2].minor.yy416 = yylhsminor.yy416; break; default: break; /********** End reduce actions ************************************************/ }; assert( yyrulenoYY_MAX_SHIFT && yyact<=YY_MAX_SHIFTREDUCE) ); /* It is not possible for a REDUCE to be followed by an error */ assert( yyact!=YY_ERROR_ACTION ); yymsp += yysize+1; yypParser->yytos = yymsp; yymsp->stateno = (YYACTIONTYPE)yyact; yymsp->major = (YYCODETYPE)yygoto; yyTraceShift(yypParser, yyact, "... then shift"); return yyact; } /* ** The following code executes when the parse fails */ #ifndef YYNOERRORRECOVERY static void yy_parse_failed( yyParser *yypParser /* The parser */ ){ ParseARG_FETCH ParseCTX_FETCH #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt); } #endif while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will be executed whenever the ** parser fails */ /************ Begin %parse_failure code ***************************************/ /************ End %parse_failure code *****************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE } #endif /* YYNOERRORRECOVERY */ /* ** The following code executes when a syntax error first occurs. */ static void yy_syntax_error( yyParser *yypParser, /* The parser */ int yymajor, /* The major type of the error token */ ParseTOKENTYPE yyminor /* The minor type of the error token */ ){ ParseARG_FETCH ParseCTX_FETCH #define TOKEN yyminor /************ Begin %syntax_error code ****************************************/ #line 29 "sql.y" if (TSDB_CODE_SUCCESS == pCxt->errCode) { if(TOKEN.z) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } else { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL); } } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } #line 8742 "sql.c" /************ End %syntax_error code ******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE } /* ** The following is executed when the parser accepts */ static void yy_accept( yyParser *yypParser /* The parser */ ){ ParseARG_FETCH ParseCTX_FETCH #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt); } #endif #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif assert( yypParser->yytos==yypParser->yystack ); /* Here code is inserted which will be executed whenever the ** parser accepts */ /*********** Begin %parse_accept code *****************************************/ /*********** End %parse_accept code *******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE } /* The main parser program. ** The first argument is a pointer to a structure obtained from ** "ParseAlloc" which describes the current state of the parser. ** The second argument is the major token number. The third is ** the minor token. The fourth optional argument is whatever the ** user wants (and specified in the grammar) and is available for ** use by the action routines. ** ** Inputs: **
    **
  • A pointer to the parser (an opaque structure.) **
  • The major token number. **
  • The minor token number. **
  • An option argument of a grammar-specified type. **
** ** Outputs: ** None. */ void Parse( void *yyp, /* The parser */ int yymajor, /* The major token code number */ ParseTOKENTYPE yyminor /* The value for the token */ ParseARG_PDECL /* Optional %extra_argument parameter */ ){ YYMINORTYPE yyminorunion; YYACTIONTYPE yyact; /* The parser action. */ #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) int yyendofinput; /* True if we are at the end of input */ #endif #ifdef YYERRORSYMBOL int yyerrorhit = 0; /* True if yymajor has invoked an error */ #endif yyParser *yypParser = (yyParser*)yyp; /* The parser */ ParseCTX_FETCH ParseARG_STORE assert( yypParser->yytos!=0 ); #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) yyendofinput = (yymajor==0); #endif yyact = yypParser->yytos->stateno; #ifndef NDEBUG if( yyTraceFILE ){ if( yyact < YY_MIN_REDUCE ){ fprintf(yyTraceFILE,"%sInput '%s' in state %d\n", yyTracePrompt,yyTokenName[yymajor],yyact); }else{ fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n", yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE); } } #endif while(1){ /* Exit by "break" */ assert( yypParser->yytos>=yypParser->yystack ); assert( yyact==yypParser->yytos->stateno ); yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact); if( yyact >= YY_MIN_REDUCE ){ unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */ #ifndef NDEBUG assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ); if( yyTraceFILE ){ int yysize = yyRuleInfoNRhs[yyruleno]; if( yysize ){ fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", yyTracePrompt, yyruleno, yyRuleName[yyruleno], yyrulenoyytos[yysize].stateno); }else{ fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n", yyTracePrompt, yyruleno, yyRuleName[yyruleno], yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack)); } #endif #if YYSTACKDEPTH>0 if( yypParser->yytos>=yypParser->yystackEnd ){ yyStackOverflow(yypParser); break; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){ if( yyGrowStack(yypParser) ){ yyStackOverflow(yypParser); break; } } #endif } yyact = yy_reduce(yypParser,yyruleno,yymajor,yyminor ParseCTX_PARAM); }else if( yyact <= YY_MAX_SHIFTREDUCE ){ yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt--; #endif break; }else if( yyact==YY_ACCEPT_ACTION ){ yypParser->yytos--; yy_accept(yypParser); return; }else{ assert( yyact == YY_ERROR_ACTION ); yyminorunion.yy0 = yyminor; #ifdef YYERRORSYMBOL int yymx; #endif #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt); } #endif #ifdef YYERRORSYMBOL /* A syntax error has occurred. ** The response to an error depends upon whether or not the ** grammar defines an error token "ERROR". ** ** This is what we do if the grammar does define ERROR: ** ** * Call the %syntax_error function. ** ** * Begin popping the stack until we enter a state where ** it is legal to shift the error symbol, then shift ** the error symbol. ** ** * Set the error count to three. ** ** * Begin accepting and shifting new tokens. No new error ** processing will occur until three tokens have been ** shifted successfully. ** */ if( yypParser->yyerrcnt<0 ){ yy_syntax_error(yypParser,yymajor,yyminor); } yymx = yypParser->yytos->major; if( yymx==YYERRORSYMBOL || yyerrorhit ){ #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sDiscard input token %s\n", yyTracePrompt,yyTokenName[yymajor]); } #endif yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion); yymajor = YYNOCODE; }else{ while( yypParser->yytos > yypParser->yystack ){ yyact = yy_find_reduce_action(yypParser->yytos->stateno, YYERRORSYMBOL); if( yyact<=YY_MAX_SHIFTREDUCE ) break; yy_pop_parser_stack(yypParser); } if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){ yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); yy_parse_failed(yypParser); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif yymajor = YYNOCODE; }else if( yymx!=YYERRORSYMBOL ){ yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor); } } yypParser->yyerrcnt = 3; yyerrorhit = 1; if( yymajor==YYNOCODE ) break; yyact = yypParser->yytos->stateno; #elif defined(YYNOERRORRECOVERY) /* If the YYNOERRORRECOVERY macro is defined, then do not attempt to ** do any kind of error recovery. Instead, simply invoke the syntax ** error routine and continue going as if nothing had happened. ** ** Applications can set this macro (for example inside %include) if ** they intend to abandon the parse upon the first syntax error seen. */ yy_syntax_error(yypParser,yymajor, yyminor); yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); break; #else /* YYERRORSYMBOL is not defined */ /* This is what we do if the grammar does not define ERROR: ** ** * Report an error message, and throw away the input token. ** ** * If the input token is $, then fail the parse. ** ** As before, subsequent error messages are suppressed until ** three input tokens have been successfully shifted. */ if( yypParser->yyerrcnt<=0 ){ yy_syntax_error(yypParser,yymajor, yyminor); } yypParser->yyerrcnt = 3; yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); if( yyendofinput ){ yy_parse_failed(yypParser); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif } break; #endif } } #ifndef NDEBUG if( yyTraceFILE ){ yyStackEntry *i; char cDiv = '['; fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt); for(i=&yypParser->yystack[1]; i<=yypParser->yytos; i++){ fprintf(yyTraceFILE,"%c%s", cDiv, yyTokenName[i->major]); cDiv = ' '; } fprintf(yyTraceFILE,"]\n"); } #endif return; } /* ** Return the fallback token corresponding to canonical token iToken, or ** 0 if iToken has no fallback. */ int ParseFallback(int iToken){ #ifdef YYFALLBACK assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) ); return yyFallback[iToken]; #else (void)iToken; return 0; #endif }