/* 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 ************************/ #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 /**************** End of %include directives **********************************/ /* These constants specify the various numeric values for terminal symbols. ***************** Begin token definitions *************************************/ #ifndef TK_OR #define TK_OR 1 #define TK_AND 2 #define TK_UNION 3 #define TK_ALL 4 #define TK_MINUS 5 #define TK_EXCEPT 6 #define TK_INTERSECT 7 #define TK_NK_BITAND 8 #define TK_NK_BITOR 9 #define TK_NK_LSHIFT 10 #define TK_NK_RSHIFT 11 #define TK_NK_PLUS 12 #define TK_NK_MINUS 13 #define TK_NK_STAR 14 #define TK_NK_SLASH 15 #define TK_NK_REM 16 #define TK_NK_CONCAT 17 #define TK_CREATE 18 #define TK_ACCOUNT 19 #define TK_NK_ID 20 #define TK_PASS 21 #define TK_NK_STRING 22 #define TK_ALTER 23 #define TK_PPS 24 #define TK_TSERIES 25 #define TK_STORAGE 26 #define TK_STREAMS 27 #define TK_QTIME 28 #define TK_DBS 29 #define TK_USERS 30 #define TK_CONNS 31 #define TK_STATE 32 #define TK_NK_COMMA 33 #define TK_HOST 34 #define TK_USER 35 #define TK_ENABLE 36 #define TK_NK_INTEGER 37 #define TK_SYSINFO 38 #define TK_ADD 39 #define TK_DROP 40 #define TK_GRANT 41 #define TK_ON 42 #define TK_TO 43 #define TK_REVOKE 44 #define TK_FROM 45 #define TK_SUBSCRIBE 46 #define TK_READ 47 #define TK_WRITE 48 #define TK_NK_DOT 49 #define TK_WITH 50 #define TK_DNODE 51 #define TK_PORT 52 #define TK_DNODES 53 #define TK_RESTORE 54 #define TK_NK_IPTOKEN 55 #define TK_FORCE 56 #define TK_UNSAFE 57 #define TK_CLUSTER 58 #define TK_LOCAL 59 #define TK_QNODE 60 #define TK_BNODE 61 #define TK_SNODE 62 #define TK_MNODE 63 #define TK_VNODE 64 #define TK_DATABASE 65 #define TK_USE 66 #define TK_FLUSH 67 #define TK_TRIM 68 #define TK_COMPACT 69 #define TK_IF 70 #define TK_NOT 71 #define TK_EXISTS 72 #define TK_BUFFER 73 #define TK_CACHEMODEL 74 #define TK_CACHESIZE 75 #define TK_COMP 76 #define TK_DURATION 77 #define TK_NK_VARIABLE 78 #define TK_MAXROWS 79 #define TK_MINROWS 80 #define TK_KEEP 81 #define TK_PAGES 82 #define TK_PAGESIZE 83 #define TK_TSDB_PAGESIZE 84 #define TK_PRECISION 85 #define TK_REPLICA 86 #define TK_VGROUPS 87 #define TK_SINGLE_STABLE 88 #define TK_RETENTIONS 89 #define TK_SCHEMALESS 90 #define TK_WAL_LEVEL 91 #define TK_WAL_FSYNC_PERIOD 92 #define TK_WAL_RETENTION_PERIOD 93 #define TK_WAL_RETENTION_SIZE 94 #define TK_WAL_ROLL_PERIOD 95 #define TK_WAL_SEGMENT_SIZE 96 #define TK_STT_TRIGGER 97 #define TK_TABLE_PREFIX 98 #define TK_TABLE_SUFFIX 99 #define TK_KEEP_TIME_OFFSET 100 #define TK_NK_COLON 101 #define TK_BWLIMIT 102 #define TK_START 103 #define TK_TIMESTAMP 104 #define TK_END 105 #define TK_TABLE 106 #define TK_NK_LP 107 #define TK_NK_RP 108 #define TK_STABLE 109 #define TK_COLUMN 110 #define TK_MODIFY 111 #define TK_RENAME 112 #define TK_TAG 113 #define TK_SET 114 #define TK_NK_EQ 115 #define TK_USING 116 #define TK_TAGS 117 #define TK_PRIMARY 118 #define TK_KEY 119 #define TK_BOOL 120 #define TK_TINYINT 121 #define TK_SMALLINT 122 #define TK_INT 123 #define TK_INTEGER 124 #define TK_BIGINT 125 #define TK_FLOAT 126 #define TK_DOUBLE 127 #define TK_BINARY 128 #define TK_NCHAR 129 #define TK_UNSIGNED 130 #define TK_JSON 131 #define TK_VARCHAR 132 #define TK_MEDIUMBLOB 133 #define TK_BLOB 134 #define TK_VARBINARY 135 #define TK_GEOMETRY 136 #define TK_DECIMAL 137 #define TK_COMMENT 138 #define TK_MAX_DELAY 139 #define TK_WATERMARK 140 #define TK_ROLLUP 141 #define TK_TTL 142 #define TK_SMA 143 #define TK_DELETE_MARK 144 #define TK_FIRST 145 #define TK_LAST 146 #define TK_SHOW 147 #define TK_PRIVILEGES 148 #define TK_DATABASES 149 #define TK_TABLES 150 #define TK_STABLES 151 #define TK_MNODES 152 #define TK_QNODES 153 #define TK_ARBGROUPS 154 #define TK_FUNCTIONS 155 #define TK_INDEXES 156 #define TK_ACCOUNTS 157 #define TK_APPS 158 #define TK_CONNECTIONS 159 #define TK_LICENCES 160 #define TK_GRANTS 161 #define TK_FULL 162 #define TK_LOGS 163 #define TK_MACHINES 164 #define TK_QUERIES 165 #define TK_SCORES 166 #define TK_TOPICS 167 #define TK_VARIABLES 168 #define TK_BNODES 169 #define TK_SNODES 170 #define TK_TRANSACTIONS 171 #define TK_DISTRIBUTED 172 #define TK_CONSUMERS 173 #define TK_SUBSCRIPTIONS 174 #define TK_VNODES 175 #define TK_ALIVE 176 #define TK_VIEWS 177 #define TK_VIEW 178 #define TK_COMPACTS 179 #define TK_NORMAL 180 #define TK_CHILD 181 #define TK_LIKE 182 #define TK_TBNAME 183 #define TK_QTAGS 184 #define TK_AS 185 #define TK_SYSTEM 186 #define TK_INDEX 187 #define TK_FUNCTION 188 #define TK_INTERVAL 189 #define TK_COUNT 190 #define TK_LAST_ROW 191 #define TK_META 192 #define TK_ONLY 193 #define TK_TOPIC 194 #define TK_CONSUMER 195 #define TK_GROUP 196 #define TK_DESC 197 #define TK_DESCRIBE 198 #define TK_RESET 199 #define TK_QUERY 200 #define TK_CACHE 201 #define TK_EXPLAIN 202 #define TK_ANALYZE 203 #define TK_VERBOSE 204 #define TK_NK_BOOL 205 #define TK_RATIO 206 #define TK_NK_FLOAT 207 #define TK_OUTPUTTYPE 208 #define TK_AGGREGATE 209 #define TK_BUFSIZE 210 #define TK_LANGUAGE 211 #define TK_REPLACE 212 #define TK_STREAM 213 #define TK_INTO 214 #define TK_PAUSE 215 #define TK_RESUME 216 #define TK_TRIGGER 217 #define TK_AT_ONCE 218 #define TK_WINDOW_CLOSE 219 #define TK_IGNORE 220 #define TK_EXPIRED 221 #define TK_FILL_HISTORY 222 #define TK_UPDATE 223 #define TK_SUBTABLE 224 #define TK_UNTREATED 225 #define TK_KILL 226 #define TK_CONNECTION 227 #define TK_TRANSACTION 228 #define TK_BALANCE 229 #define TK_VGROUP 230 #define TK_LEADER 231 #define TK_MERGE 232 #define TK_REDISTRIBUTE 233 #define TK_SPLIT 234 #define TK_DELETE 235 #define TK_INSERT 236 #define TK_NK_BIN 237 #define TK_NK_HEX 238 #define TK_NULL 239 #define TK_NK_QUESTION 240 #define TK_NK_ALIAS 241 #define TK_NK_ARROW 242 #define TK_ROWTS 243 #define TK_QSTART 244 #define TK_QEND 245 #define TK_QDURATION 246 #define TK_WSTART 247 #define TK_WEND 248 #define TK_WDURATION 249 #define TK_IROWTS 250 #define TK_ISFILLED 251 #define TK_CAST 252 #define TK_NOW 253 #define TK_TODAY 254 #define TK_TIMEZONE 255 #define TK_CLIENT_VERSION 256 #define TK_SERVER_VERSION 257 #define TK_SERVER_STATUS 258 #define TK_CURRENT_USER 259 #define TK_CASE 260 #define TK_WHEN 261 #define TK_THEN 262 #define TK_ELSE 263 #define TK_BETWEEN 264 #define TK_IS 265 #define TK_NK_LT 266 #define TK_NK_GT 267 #define TK_NK_LE 268 #define TK_NK_GE 269 #define TK_NK_NE 270 #define TK_MATCH 271 #define TK_NMATCH 272 #define TK_CONTAINS 273 #define TK_IN 274 #define TK_JOIN 275 #define TK_INNER 276 #define TK_SELECT 277 #define TK_NK_HINT 278 #define TK_DISTINCT 279 #define TK_WHERE 280 #define TK_PARTITION 281 #define TK_BY 282 #define TK_SESSION 283 #define TK_STATE_WINDOW 284 #define TK_EVENT_WINDOW 285 #define TK_COUNT_WINDOW 286 #define TK_SLIDING 287 #define TK_FILL 288 #define TK_VALUE 289 #define TK_VALUE_F 290 #define TK_NONE 291 #define TK_PREV 292 #define TK_NULL_F 293 #define TK_LINEAR 294 #define TK_NEXT 295 #define TK_HAVING 296 #define TK_RANGE 297 #define TK_EVERY 298 #define TK_ORDER 299 #define TK_SLIMIT 300 #define TK_SOFFSET 301 #define TK_LIMIT 302 #define TK_OFFSET 303 #define TK_ASC 304 #define TK_NULLS 305 #define TK_ABORT 306 #define TK_AFTER 307 #define TK_ATTACH 308 #define TK_BEFORE 309 #define TK_BEGIN 310 #define TK_BITAND 311 #define TK_BITNOT 312 #define TK_BITOR 313 #define TK_BLOCKS 314 #define TK_CHANGE 315 #define TK_COMMA 316 #define TK_CONCAT 317 #define TK_CONFLICT 318 #define TK_COPY 319 #define TK_DEFERRED 320 #define TK_DELIMITERS 321 #define TK_DETACH 322 #define TK_DIVIDE 323 #define TK_DOT 324 #define TK_EACH 325 #define TK_FAIL 326 #define TK_FILE 327 #define TK_FOR 328 #define TK_GLOB 329 #define TK_ID 330 #define TK_IMMEDIATE 331 #define TK_IMPORT 332 #define TK_INITIALLY 333 #define TK_INSTEAD 334 #define TK_ISNULL 335 #define TK_MODULES 336 #define TK_NK_BITNOT 337 #define TK_NK_SEMI 338 #define TK_NOTNULL 339 #define TK_OF 340 #define TK_PLUS 341 #define TK_PRIVILEGE 342 #define TK_RAISE 343 #define TK_RESTRICT 344 #define TK_ROW 345 #define TK_SEMI 346 #define TK_STAR 347 #define TK_STATEMENT 348 #define TK_STRICT 349 #define TK_STRING 350 #define TK_TIMES 351 #define TK_VALUES 352 #define TK_VARIABLE 353 #define TK_WAL 354 #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 520 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; int32_t yy20; SNodeList* yy184; ENullOrder yy217; EOperatorType yy220; SToken yy369; EFillMode yy374; bool yy377; SNode* yy392; SShowTablesOption yy397; EOrder yy578; int8_t yy743; SAlterOption yy845; EShowKind yy849; SDataType yy864; int64_t yy909; EJoinType yy932; STokenPair yy937; } 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 895 #define YYNRULE 696 #define YYNRULE_WITH_ACTION 696 #define YYNTOKEN 355 #define YY_MAX_SHIFT 894 #define YY_MIN_SHIFTREDUCE 1330 #define YY_MAX_SHIFTREDUCE 2025 #define YY_ERROR_ACTION 2026 #define YY_ACCEPT_ACTION 2027 #define YY_NO_ACTION 2028 #define YY_MIN_REDUCE 2029 #define YY_MAX_REDUCE 2724 /************* 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 (3107) static const YYACTIONTYPE yy_action[] = { /* 0 */ 825, 505, 37, 311, 744, 605, 504, 2695, 606, 2072, /* 10 */ 2359, 459, 47, 45, 1947, 2482, 2208, 186, 457, 166, /* 20 */ 440, 2030, 1787, 756, 147, 743, 205, 2221, 2357, 781, /* 30 */ 2696, 745, 2308, 2210, 1812, 1873, 2115, 1785, 610, 411, /* 40 */ 2359, 2339, 128, 2523, 607, 127, 126, 125, 124, 123, /* 50 */ 122, 121, 120, 119, 715, 443, 759, 2695, 2356, 781, /* 60 */ 1813, 1377, 40, 39, 739, 1868, 46, 44, 43, 42, /* 70 */ 41, 19, 446, 426, 2406, 2701, 205, 738, 1793, 793, /* 80 */ 2696, 745, 2273, 798, 2541, 1375, 1376, 40, 39, 409, /* 90 */ 446, 46, 44, 43, 42, 41, 2489, 2271, 776, 613, /* 100 */ 694, 798, 606, 2072, 891, 2541, 175, 15, 793, 866, /* 110 */ 865, 864, 863, 468, 2158, 862, 861, 152, 856, 855, /* 120 */ 854, 853, 852, 851, 850, 151, 844, 843, 842, 467, /* 130 */ 466, 839, 838, 837, 185, 184, 836, 303, 2622, 755, /* 140 */ 2522, 139, 754, 2560, 2695, 1875, 1876, 115, 2524, 780, /* 150 */ 2526, 2527, 775, 174, 798, 2407, 444, 2483, 365, 188, /* 160 */ 161, 2614, 743, 205, 173, 436, 2610, 2696, 745, 602, /* 170 */ 737, 744, 2221, 62, 2695, 363, 75, 698, 600, 74, /* 180 */ 207, 596, 592, 1847, 1857, 1570, 1571, 1991, 2644, 392, /* 190 */ 1874, 1877, 743, 205, 1370, 50, 548, 2696, 745, 489, /* 200 */ 547, 238, 587, 585, 582, 1788, 461, 1786, 546, 2266, /* 210 */ 2268, 40, 39, 1377, 446, 46, 44, 43, 42, 41, /* 220 */ 176, 699, 2041, 128, 2699, 798, 127, 126, 125, 124, /* 230 */ 123, 122, 121, 120, 119, 54, 1372, 1375, 1376, 1791, /* 240 */ 1792, 1844, 62, 1846, 1849, 1850, 1851, 1852, 1853, 1854, /* 250 */ 1855, 1856, 772, 796, 795, 1867, 1869, 1870, 1871, 1872, /* 260 */ 2, 47, 45, 2029, 849, 793, 389, 2180, 1810, 440, /* 270 */ 503, 1787, 502, 240, 401, 555, 512, 608, 575, 2080, /* 280 */ 794, 2219, 63, 574, 1873, 1844, 1785, 137, 136, 135, /* 290 */ 134, 133, 132, 131, 130, 129, 615, 2398, 33, 535, /* 300 */ 210, 576, 501, 621, 40, 39, 390, 537, 46, 44, /* 310 */ 43, 42, 41, 2700, 1868, 1812, 2695, 515, 1902, 242, /* 320 */ 19, 572, 570, 608, 391, 2080, 1815, 1793, 219, 2273, /* 330 */ 493, 2430, 85, 84, 508, 2699, 435, 218, 113, 2696, /* 340 */ 2698, 40, 39, 307, 2271, 46, 44, 43, 42, 41, /* 350 */ 500, 498, 50, 891, 412, 150, 15, 495, 491, 1535, /* 360 */ 1951, 388, 198, 2211, 487, 523, 1812, 484, 480, 476, /* 370 */ 473, 501, 186, 695, 2260, 1526, 823, 822, 821, 1530, /* 380 */ 820, 1532, 1533, 819, 816, 1903, 1541, 813, 1543, 1544, /* 390 */ 810, 807, 804, 1379, 1875, 1876, 2340, 2346, 2325, 1811, /* 400 */ 563, 562, 561, 560, 559, 554, 553, 552, 551, 395, /* 410 */ 465, 464, 307, 541, 540, 539, 538, 532, 531, 530, /* 420 */ 625, 525, 524, 410, 66, 756, 147, 516, 1630, 1631, /* 430 */ 1980, 96, 1847, 1857, 1649, 1794, 2433, 40, 39, 1874, /* 440 */ 1877, 46, 44, 43, 42, 41, 315, 316, 413, 1816, /* 450 */ 1812, 314, 35, 696, 1788, 1813, 1786, 2214, 40, 39, /* 460 */ 756, 147, 46, 44, 43, 42, 41, 36, 438, 1897, /* 470 */ 1898, 1899, 1900, 1901, 1905, 1906, 1907, 1908, 1642, 1643, /* 480 */ 731, 730, 1978, 1979, 1981, 1982, 1983, 478, 1791, 1792, /* 490 */ 1844, 305, 1846, 1849, 1850, 1851, 1852, 1853, 1854, 1855, /* 500 */ 1856, 772, 796, 795, 1867, 1869, 1870, 1871, 1872, 2, /* 510 */ 12, 47, 45, 2523, 275, 1396, 2273, 1395, 274, 440, /* 520 */ 747, 1787, 307, 445, 62, 2700, 777, 62, 2695, 1848, /* 530 */ 2022, 2271, 143, 258, 1873, 846, 1785, 62, 674, 204, /* 540 */ 2622, 2623, 2523, 145, 2627, 794, 2219, 2699, 12, 181, /* 550 */ 1397, 2696, 2697, 686, 2541, 759, 14, 13, 642, 638, /* 560 */ 634, 630, 212, 257, 1868, 55, 2489, 1972, 776, 273, /* 570 */ 19, 51, 734, 758, 203, 2622, 2623, 1793, 145, 2627, /* 580 */ 1662, 1663, 1973, 2541, 287, 677, 699, 1845, 99, 794, /* 590 */ 2219, 398, 671, 669, 424, 2489, 687, 776, 2700, 270, /* 600 */ 848, 2052, 1883, 891, 97, 1797, 15, 255, 1812, 138, /* 610 */ 2522, 452, 2629, 2560, 201, 1815, 648, 115, 2524, 780, /* 620 */ 2526, 2527, 775, 1971, 798, 1661, 1664, 149, 101, 157, /* 630 */ 2585, 2614, 794, 2219, 154, 436, 2610, 2021, 2626, 2522, /* 640 */ 71, 2411, 2560, 70, 1875, 1876, 115, 2524, 780, 2526, /* 650 */ 2527, 775, 138, 798, 2489, 794, 2219, 455, 188, 653, /* 660 */ 2614, 701, 2398, 1916, 436, 2610, 740, 735, 728, 724, /* 670 */ 1817, 794, 2219, 40, 39, 509, 245, 46, 44, 43, /* 680 */ 42, 41, 1847, 1857, 2051, 254, 247, 2645, 1944, 1874, /* 690 */ 1877, 510, 252, 619, 307, 685, 277, 307, 29, 1396, /* 700 */ 1535, 1395, 2195, 2015, 1788, 566, 1786, 307, 622, 1706, /* 710 */ 683, 244, 681, 272, 271, 835, 1526, 823, 822, 821, /* 720 */ 1530, 820, 1532, 1533, 819, 816, 2050, 1541, 813, 1543, /* 730 */ 1544, 810, 807, 804, 1397, 756, 147, 2489, 1791, 1792, /* 740 */ 1844, 307, 1846, 1849, 1850, 1851, 1852, 1853, 1854, 1855, /* 750 */ 1856, 772, 796, 795, 1867, 1869, 1870, 1871, 1872, 2, /* 760 */ 47, 45, 1878, 2523, 623, 2352, 521, 2335, 440, 230, /* 770 */ 1787, 1848, 835, 1992, 527, 2335, 777, 2049, 2082, 2489, /* 780 */ 305, 1756, 276, 1873, 2273, 1785, 46, 44, 43, 42, /* 790 */ 41, 460, 2523, 148, 565, 229, 2585, 794, 2219, 2271, /* 800 */ 1793, 667, 666, 665, 2541, 777, 2196, 2652, 657, 144, /* 810 */ 661, 451, 450, 1868, 660, 221, 2489, 529, 776, 659, /* 820 */ 664, 419, 418, 223, 2027, 658, 1793, 1755, 654, 1845, /* 830 */ 2489, 1787, 2083, 2541, 40, 39, 794, 2219, 46, 44, /* 840 */ 43, 42, 41, 1904, 652, 2489, 1785, 776, 651, 206, /* 850 */ 2622, 2623, 891, 145, 2627, 48, 542, 454, 453, 2048, /* 860 */ 2522, 1715, 1716, 2560, 2523, 2047, 1477, 115, 2524, 780, /* 870 */ 2526, 2527, 775, 2292, 798, 794, 2219, 774, 12, 2715, /* 880 */ 10, 2614, 794, 2219, 884, 436, 2610, 1793, 694, 2522, /* 890 */ 2267, 2268, 2560, 1875, 1876, 543, 115, 2524, 780, 2526, /* 900 */ 2527, 775, 544, 798, 471, 2541, 2442, 1479, 2715, 470, /* 910 */ 2614, 826, 2489, 891, 436, 2610, 1812, 2489, 2489, 776, /* 920 */ 794, 2219, 40, 39, 350, 34, 46, 44, 43, 42, /* 930 */ 41, 1847, 1857, 714, 1963, 1909, 794, 2219, 1874, 1877, /* 940 */ 624, 2204, 425, 2406, 833, 163, 162, 830, 829, 828, /* 950 */ 160, 1399, 1400, 1788, 2206, 1786, 2216, 715, 2499, 715, /* 960 */ 2695, 2522, 2695, 1943, 2560, 43, 42, 41, 381, 2524, /* 970 */ 780, 2526, 2527, 775, 773, 798, 764, 2579, 2701, 205, /* 980 */ 2701, 205, 2503, 2696, 745, 2696, 745, 1791, 1792, 1844, /* 990 */ 107, 1846, 1849, 1850, 1851, 1852, 1853, 1854, 1855, 1856, /* 1000 */ 772, 796, 795, 1867, 1869, 1870, 1871, 1872, 2, 47, /* 1010 */ 45, 225, 2523, 2443, 1788, 2212, 1786, 440, 2499, 1787, /* 1020 */ 2046, 557, 2335, 794, 2219, 777, 2202, 2665, 692, 2505, /* 1030 */ 2507, 437, 1873, 2194, 1785, 550, 549, 794, 2219, 173, /* 1040 */ 798, 2523, 2503, 278, 2045, 644, 643, 2222, 1791, 1792, /* 1050 */ 646, 645, 91, 2541, 777, 90, 726, 286, 794, 2219, /* 1060 */ 794, 2219, 1868, 794, 2219, 2489, 715, 776, 60, 2695, /* 1070 */ 228, 794, 2219, 2489, 827, 1793, 712, 2264, 762, 1848, /* 1080 */ 319, 715, 2541, 791, 2695, 794, 2219, 2701, 205, 2505, /* 1090 */ 2508, 792, 2696, 745, 2489, 9, 776, 2489, 459, 172, /* 1100 */ 798, 891, 2701, 205, 48, 346, 173, 2696, 745, 2522, /* 1110 */ 2629, 1816, 2560, 2523, 2221, 1816, 115, 2524, 780, 2526, /* 1120 */ 2527, 775, 199, 798, 89, 1489, 777, 1816, 2715, 2273, /* 1130 */ 2614, 794, 2219, 2044, 436, 2610, 2625, 1845, 2522, 2629, /* 1140 */ 1488, 2560, 1875, 1876, 763, 115, 2524, 780, 2526, 2527, /* 1150 */ 775, 463, 798, 700, 2541, 760, 1812, 2715, 765, 2614, /* 1160 */ 2586, 2043, 462, 436, 2610, 2624, 2489, 767, 776, 2586, /* 1170 */ 173, 833, 163, 162, 830, 829, 828, 160, 2221, 96, /* 1180 */ 1847, 1857, 663, 662, 2273, 1493, 2489, 1874, 1877, 417, /* 1190 */ 416, 3, 833, 163, 162, 830, 829, 828, 160, 789, /* 1200 */ 1492, 655, 1788, 53, 1786, 2215, 715, 577, 715, 2695, /* 1210 */ 2522, 2695, 2040, 2560, 2489, 748, 2039, 178, 2524, 780, /* 1220 */ 2526, 2527, 775, 1796, 798, 1474, 2038, 2701, 205, 2701, /* 1230 */ 205, 283, 2696, 745, 2696, 745, 1791, 1792, 1844, 100, /* 1240 */ 1846, 1849, 1850, 1851, 1852, 1853, 1854, 1855, 1856, 772, /* 1250 */ 796, 795, 1867, 1869, 1870, 1871, 1872, 2, 47, 45, /* 1260 */ 2523, 415, 414, 2037, 650, 2489, 440, 579, 1787, 2489, /* 1270 */ 1690, 746, 2716, 777, 2036, 2688, 196, 2035, 2318, 2489, /* 1280 */ 200, 1873, 2034, 1785, 2033, 2032, 831, 2273, 652, 2264, /* 1290 */ 2523, 77, 651, 860, 858, 832, 359, 154, 2264, 2250, /* 1300 */ 140, 2541, 2272, 777, 656, 2633, 2057, 886, 2197, 2634, /* 1310 */ 1936, 1868, 87, 2489, 263, 776, 2489, 261, 265, 267, /* 1320 */ 519, 264, 266, 269, 1793, 2102, 268, 2489, 1472, 1936, /* 1330 */ 2489, 2541, 1817, 2100, 2091, 2489, 1817, 2489, 2489, 2089, /* 1340 */ 689, 153, 688, 2489, 722, 776, 88, 668, 1817, 49, /* 1350 */ 891, 49, 189, 15, 771, 670, 672, 2522, 2510, 751, /* 1360 */ 2560, 675, 2024, 2025, 115, 2524, 780, 2526, 2527, 775, /* 1370 */ 2159, 798, 1713, 161, 14, 13, 2715, 1845, 2614, 465, /* 1380 */ 464, 770, 436, 2610, 64, 49, 49, 2522, 2042, 1801, /* 1390 */ 2560, 1875, 1876, 1799, 115, 2524, 780, 2526, 2527, 775, /* 1400 */ 1795, 798, 1873, 313, 1794, 76, 2715, 159, 2614, 161, /* 1410 */ 325, 324, 436, 2610, 840, 2523, 2512, 327, 326, 1967, /* 1420 */ 329, 328, 331, 330, 1977, 2658, 1976, 292, 777, 1847, /* 1430 */ 1857, 841, 1868, 333, 332, 73, 1874, 1877, 1451, 335, /* 1440 */ 334, 337, 336, 112, 732, 1793, 339, 338, 761, 341, /* 1450 */ 340, 1788, 109, 1786, 2118, 1449, 2541, 300, 294, 1910, /* 1460 */ 1858, 1659, 343, 342, 345, 344, 802, 142, 2489, 159, /* 1470 */ 776, 769, 1432, 2542, 2156, 161, 2155, 2073, 317, 2344, /* 1480 */ 786, 141, 321, 749, 1519, 1791, 1792, 1844, 2648, 1846, /* 1490 */ 1849, 1850, 1851, 1852, 1853, 1854, 1855, 1856, 772, 796, /* 1500 */ 795, 1867, 1869, 1870, 1871, 1872, 2, 394, 393, 159, /* 1510 */ 358, 729, 2522, 1433, 431, 2560, 736, 447, 427, 115, /* 1520 */ 2524, 780, 2526, 2527, 775, 783, 798, 667, 666, 665, /* 1530 */ 1873, 2589, 456, 2614, 657, 144, 661, 436, 2610, 2523, /* 1540 */ 660, 1548, 469, 2079, 1552, 659, 664, 419, 418, 1894, /* 1550 */ 1559, 658, 777, 2345, 654, 2261, 1557, 708, 2649, 2659, /* 1560 */ 1868, 757, 302, 2523, 299, 306, 2181, 5, 472, 477, /* 1570 */ 1798, 407, 1802, 485, 1797, 1820, 777, 486, 497, 496, /* 1580 */ 2541, 214, 213, 1683, 164, 499, 216, 353, 1810, 513, /* 1590 */ 1811, 520, 2489, 227, 776, 522, 526, 568, 528, 2523, /* 1600 */ 533, 545, 564, 556, 2541, 2337, 1805, 1807, 567, 558, /* 1610 */ 569, 580, 777, 581, 578, 232, 2489, 233, 776, 583, /* 1620 */ 796, 795, 1867, 1869, 1870, 1871, 1872, 235, 586, 752, /* 1630 */ 584, 588, 1818, 603, 4, 604, 2522, 611, 612, 2560, /* 1640 */ 2541, 614, 243, 115, 2524, 780, 2526, 2527, 775, 1813, /* 1650 */ 798, 93, 2489, 616, 776, 2587, 246, 2614, 1819, 1821, /* 1660 */ 2522, 436, 2610, 2560, 617, 618, 1822, 115, 2524, 780, /* 1670 */ 2526, 2527, 775, 249, 798, 620, 251, 2353, 94, 766, /* 1680 */ 95, 2614, 626, 256, 647, 436, 2610, 649, 2209, 260, /* 1690 */ 117, 678, 2205, 679, 262, 167, 2522, 168, 385, 2560, /* 1700 */ 1778, 2207, 1754, 116, 2524, 780, 2526, 2527, 775, 691, /* 1710 */ 798, 2420, 2203, 169, 170, 98, 2523, 2614, 2417, 279, /* 1720 */ 693, 2613, 2610, 354, 155, 1814, 2399, 703, 2416, 777, /* 1730 */ 704, 702, 449, 448, 1779, 710, 707, 284, 719, 733, /* 1740 */ 784, 709, 2664, 2663, 2636, 8, 2523, 742, 796, 795, /* 1750 */ 1867, 1869, 1870, 1871, 1872, 293, 720, 2541, 289, 777, /* 1760 */ 291, 180, 718, 295, 717, 282, 432, 2718, 753, 2489, /* 1770 */ 296, 776, 2694, 298, 750, 297, 1936, 146, 301, 1815, /* 1780 */ 1941, 1939, 61, 192, 308, 2630, 156, 2541, 782, 2523, /* 1790 */ 355, 356, 2367, 2366, 2365, 442, 788, 787, 357, 2489, /* 1800 */ 1, 776, 777, 158, 2481, 106, 2480, 2595, 2476, 2220, /* 1810 */ 2475, 2467, 1354, 2522, 108, 2466, 2560, 800, 348, 885, /* 1820 */ 116, 2524, 780, 2526, 2527, 775, 52, 798, 2458, 2441, /* 1830 */ 2541, 2457, 888, 208, 2614, 2473, 2472, 165, 768, 2610, /* 1840 */ 890, 2464, 2489, 778, 776, 360, 2560, 2440, 364, 2523, /* 1850 */ 116, 2524, 780, 2526, 2527, 775, 2463, 798, 2452, 362, /* 1860 */ 384, 2439, 777, 82, 2614, 2434, 2451, 2470, 400, 2610, /* 1870 */ 2469, 2523, 372, 2461, 2460, 2449, 405, 383, 2448, 2446, /* 1880 */ 2445, 2265, 373, 474, 777, 475, 2522, 406, 1738, 2560, /* 1890 */ 2541, 1739, 211, 177, 2524, 780, 2526, 2527, 775, 479, /* 1900 */ 798, 2432, 2489, 481, 776, 482, 483, 1737, 2431, 408, /* 1910 */ 2429, 488, 2541, 490, 2427, 492, 2426, 494, 1726, 2403, /* 1920 */ 2402, 215, 217, 1686, 2489, 2428, 776, 83, 1685, 2380, /* 1930 */ 2379, 2378, 506, 507, 2377, 716, 2655, 2376, 511, 2327, /* 1940 */ 1629, 2324, 514, 2323, 2317, 518, 2522, 220, 517, 2560, /* 1950 */ 2314, 2523, 2313, 116, 2524, 780, 2526, 2527, 775, 2312, /* 1960 */ 798, 2311, 86, 2316, 777, 2315, 2310, 2614, 2522, 2309, /* 1970 */ 222, 2560, 2611, 224, 2304, 177, 2524, 780, 2526, 2527, /* 1980 */ 775, 2523, 798, 2307, 2306, 2305, 534, 536, 2302, 2301, /* 1990 */ 2300, 2299, 2541, 92, 777, 2322, 2298, 2297, 2296, 2523, /* 2000 */ 2320, 2303, 2295, 2294, 2489, 2293, 776, 2291, 2290, 2289, /* 2010 */ 2288, 2287, 777, 2286, 2285, 2284, 226, 2283, 2656, 2282, /* 2020 */ 2281, 2321, 2541, 2319, 2280, 2279, 429, 2278, 1635, 2523, /* 2030 */ 2277, 231, 571, 2276, 2489, 573, 776, 2275, 2274, 2121, /* 2040 */ 2541, 234, 777, 2120, 1490, 236, 2119, 237, 2522, 396, /* 2050 */ 1494, 2560, 2489, 2117, 776, 382, 2524, 780, 2526, 2527, /* 2060 */ 775, 2114, 798, 1486, 2113, 2106, 397, 2093, 589, 590, /* 2070 */ 2541, 591, 593, 597, 430, 250, 595, 2068, 2522, 601, /* 2080 */ 187, 2560, 2489, 594, 776, 375, 2524, 780, 2526, 2527, /* 2090 */ 775, 598, 798, 599, 239, 1378, 2522, 79, 2067, 2560, /* 2100 */ 241, 2509, 80, 382, 2524, 780, 2526, 2527, 775, 2523, /* 2110 */ 798, 197, 609, 2401, 2397, 2387, 2375, 2374, 253, 2351, /* 2120 */ 248, 2198, 774, 627, 628, 629, 2522, 2116, 2523, 2560, /* 2130 */ 1425, 741, 2112, 178, 2524, 780, 2526, 2527, 775, 2110, /* 2140 */ 798, 777, 632, 631, 633, 2108, 2523, 635, 636, 637, /* 2150 */ 2541, 2105, 640, 641, 2088, 639, 2086, 2087, 2085, 777, /* 2160 */ 2064, 2200, 2489, 72, 776, 1564, 1563, 259, 2199, 2541, /* 2170 */ 1476, 1475, 1473, 1471, 1470, 1469, 857, 1468, 1467, 859, /* 2180 */ 2103, 2489, 2101, 776, 1464, 1463, 1462, 2541, 2717, 1461, /* 2190 */ 2092, 420, 421, 422, 2090, 673, 423, 2063, 2062, 2489, /* 2200 */ 676, 776, 2061, 439, 680, 2060, 2522, 684, 697, 2560, /* 2210 */ 682, 2059, 118, 381, 2524, 780, 2526, 2527, 775, 28, /* 2220 */ 798, 441, 2580, 1720, 1722, 2522, 894, 2400, 2560, 56, /* 2230 */ 1719, 67, 382, 2524, 780, 2526, 2527, 775, 1724, 798, /* 2240 */ 695, 2396, 352, 2522, 1710, 281, 2560, 1692, 2523, 2386, /* 2250 */ 382, 2524, 780, 2526, 2527, 775, 57, 798, 195, 706, /* 2260 */ 1694, 777, 1696, 2373, 171, 705, 2372, 882, 878, 874, /* 2270 */ 870, 2523, 349, 285, 1671, 1670, 711, 2700, 20, 713, /* 2280 */ 1994, 721, 30, 288, 777, 1968, 17, 428, 723, 2541, /* 2290 */ 6, 290, 7, 725, 727, 21, 179, 22, 191, 65, /* 2300 */ 202, 2489, 190, 776, 2510, 2523, 32, 1975, 31, 24, /* 2310 */ 304, 1962, 2541, 114, 2014, 81, 322, 2015, 777, 2009, /* 2320 */ 2008, 433, 2013, 23, 2489, 2012, 776, 18, 434, 1933, /* 2330 */ 59, 2523, 1932, 2371, 58, 182, 2350, 102, 25, 1885, /* 2340 */ 103, 11, 13, 1803, 777, 690, 2541, 1895, 2560, 183, /* 2350 */ 790, 2523, 377, 2524, 780, 2526, 2527, 775, 2489, 798, /* 2360 */ 776, 1884, 1860, 193, 777, 38, 1837, 1859, 2522, 2349, /* 2370 */ 104, 2560, 2541, 779, 16, 367, 2524, 780, 2526, 2527, /* 2380 */ 775, 323, 798, 1829, 2489, 26, 776, 27, 109, 312, /* 2390 */ 801, 458, 2541, 805, 310, 1970, 194, 318, 808, 69, /* 2400 */ 320, 309, 2522, 785, 2489, 2560, 776, 1862, 105, 366, /* 2410 */ 2524, 780, 2526, 2527, 775, 2565, 798, 2564, 797, 68, /* 2420 */ 280, 799, 811, 1549, 803, 814, 1546, 806, 2522, 817, /* 2430 */ 1545, 2560, 1542, 2523, 809, 368, 2524, 780, 2526, 2527, /* 2440 */ 775, 812, 798, 1536, 815, 818, 777, 1534, 2522, 1540, /* 2450 */ 110, 2560, 347, 1539, 1558, 374, 2524, 780, 2526, 2527, /* 2460 */ 775, 1538, 798, 2523, 1525, 824, 111, 78, 1554, 1423, /* 2470 */ 834, 1537, 1458, 1455, 2541, 1454, 777, 1453, 1452, 1450, /* 2480 */ 1448, 2523, 1447, 1484, 1446, 845, 2489, 1483, 776, 209, /* 2490 */ 847, 1444, 1443, 1441, 777, 1442, 1440, 1439, 1438, 1480, /* 2500 */ 1478, 1435, 1434, 1431, 2541, 1430, 1429, 1428, 2111, 867, /* 2510 */ 2109, 869, 871, 868, 2107, 875, 2489, 2104, 776, 873, /* 2520 */ 879, 877, 2541, 881, 872, 876, 2084, 880, 883, 1367, /* 2530 */ 2522, 2058, 887, 2560, 2489, 1355, 776, 378, 2524, 780, /* 2540 */ 2526, 2527, 775, 351, 798, 889, 2028, 1789, 893, 361, /* 2550 */ 892, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, /* 2560 */ 2522, 2028, 2523, 2560, 2028, 2028, 2028, 369, 2524, 780, /* 2570 */ 2526, 2527, 775, 2028, 798, 777, 2028, 2028, 2522, 2028, /* 2580 */ 2523, 2560, 2028, 2028, 2028, 379, 2524, 780, 2526, 2527, /* 2590 */ 775, 2028, 798, 777, 2028, 2523, 2028, 2028, 2028, 2028, /* 2600 */ 2028, 2028, 2028, 2541, 2028, 2028, 2028, 2028, 777, 2028, /* 2610 */ 2523, 2028, 2028, 2028, 2028, 2489, 2028, 776, 2028, 2028, /* 2620 */ 2028, 2541, 2028, 777, 2028, 2028, 2028, 2028, 2028, 2028, /* 2630 */ 2028, 2028, 2028, 2489, 2028, 776, 2541, 2028, 2028, 2028, /* 2640 */ 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2489, 2028, /* 2650 */ 776, 2541, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2522, /* 2660 */ 2028, 2028, 2560, 2489, 2028, 776, 370, 2524, 780, 2526, /* 2670 */ 2527, 775, 2028, 798, 2028, 2028, 2028, 2522, 2028, 2028, /* 2680 */ 2560, 2028, 2028, 2523, 380, 2524, 780, 2526, 2527, 775, /* 2690 */ 2028, 798, 2522, 2028, 2028, 2560, 777, 2028, 2028, 371, /* 2700 */ 2524, 780, 2526, 2527, 775, 2028, 798, 2522, 2028, 2523, /* 2710 */ 2560, 2028, 2028, 2028, 386, 2524, 780, 2526, 2527, 775, /* 2720 */ 2028, 798, 777, 2028, 2541, 2028, 2028, 2028, 2028, 2028, /* 2730 */ 2028, 2523, 2028, 2028, 2028, 2028, 2489, 2028, 776, 2028, /* 2740 */ 2028, 2028, 2028, 2028, 777, 2028, 2028, 2028, 2028, 2028, /* 2750 */ 2541, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, /* 2760 */ 2028, 2028, 2489, 2028, 776, 2028, 2028, 2028, 2028, 2523, /* 2770 */ 2028, 2028, 2541, 2028, 2028, 2028, 2028, 2028, 2028, 2028, /* 2780 */ 2522, 2028, 777, 2560, 2489, 2028, 776, 387, 2524, 780, /* 2790 */ 2526, 2527, 775, 2028, 798, 2028, 2028, 2028, 2028, 2028, /* 2800 */ 2028, 2028, 2028, 2028, 2028, 2028, 2522, 2028, 2028, 2560, /* 2810 */ 2541, 2028, 2028, 2535, 2524, 780, 2526, 2527, 775, 2028, /* 2820 */ 798, 2028, 2489, 2028, 776, 2028, 2028, 2028, 2522, 2028, /* 2830 */ 2028, 2560, 2028, 2028, 2028, 2534, 2524, 780, 2526, 2527, /* 2840 */ 775, 2028, 798, 2028, 2028, 2523, 2028, 2028, 2028, 2028, /* 2850 */ 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 777, 2028, /* 2860 */ 2028, 2028, 2028, 2028, 2028, 2028, 2522, 2028, 2028, 2560, /* 2870 */ 2028, 2028, 2028, 2533, 2524, 780, 2526, 2527, 775, 2028, /* 2880 */ 798, 2523, 2028, 2028, 2028, 2028, 2541, 2028, 2028, 2028, /* 2890 */ 2028, 2028, 2028, 2028, 777, 2028, 2028, 2028, 2489, 2028, /* 2900 */ 776, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, /* 2910 */ 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2523, /* 2920 */ 2028, 2028, 2541, 2028, 2028, 2028, 2028, 2028, 2028, 2028, /* 2930 */ 2028, 2028, 777, 2028, 2489, 2028, 776, 2028, 2028, 2028, /* 2940 */ 2028, 2028, 2522, 2028, 2028, 2560, 2028, 2028, 2028, 402, /* 2950 */ 2524, 780, 2526, 2527, 775, 2028, 798, 2028, 2028, 2028, /* 2960 */ 2541, 2028, 2523, 2028, 2028, 2028, 2028, 2028, 2028, 2028, /* 2970 */ 2028, 2028, 2489, 2028, 776, 777, 2028, 2028, 2522, 2028, /* 2980 */ 2523, 2560, 2028, 2028, 2028, 403, 2524, 780, 2526, 2527, /* 2990 */ 775, 2028, 798, 777, 2028, 2523, 2028, 2028, 2028, 2028, /* 3000 */ 2028, 2028, 2028, 2541, 2028, 2028, 2028, 2028, 777, 2028, /* 3010 */ 2028, 2028, 2028, 2028, 2028, 2489, 2522, 776, 2028, 2560, /* 3020 */ 2028, 2541, 2028, 399, 2524, 780, 2526, 2527, 775, 2028, /* 3030 */ 798, 2028, 2028, 2489, 2028, 776, 2541, 2028, 2028, 2028, /* 3040 */ 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2489, 2028, /* 3050 */ 776, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2522, /* 3060 */ 2028, 2028, 2560, 2028, 2028, 2028, 404, 2524, 780, 2526, /* 3070 */ 2527, 775, 2028, 798, 2028, 2028, 2028, 778, 2028, 2028, /* 3080 */ 2560, 2028, 2028, 2028, 377, 2524, 780, 2526, 2527, 775, /* 3090 */ 2028, 798, 2522, 2028, 2028, 2560, 2028, 2028, 2028, 376, /* 3100 */ 2524, 780, 2526, 2527, 775, 2028, 798, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 400, 435, 477, 478, 488, 365, 440, 491, 368, 369, /* 10 */ 413, 391, 12, 13, 14, 401, 400, 399, 404, 399, /* 20 */ 20, 0, 22, 370, 371, 509, 510, 407, 431, 432, /* 30 */ 514, 515, 0, 401, 20, 35, 0, 37, 14, 421, /* 40 */ 413, 423, 21, 358, 20, 24, 25, 26, 27, 28, /* 50 */ 29, 30, 31, 32, 488, 428, 371, 491, 431, 432, /* 60 */ 20, 23, 8, 9, 20, 65, 12, 13, 14, 15, /* 70 */ 16, 71, 458, 453, 454, 509, 510, 371, 78, 20, /* 80 */ 514, 515, 399, 469, 399, 47, 48, 8, 9, 406, /* 90 */ 458, 12, 13, 14, 15, 16, 411, 414, 413, 365, /* 100 */ 399, 469, 368, 369, 104, 399, 380, 107, 20, 73, /* 110 */ 74, 75, 76, 77, 388, 79, 80, 81, 82, 83, /* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, /* 130 */ 94, 95, 96, 97, 98, 99, 100, 484, 485, 486, /* 140 */ 455, 488, 489, 458, 491, 145, 146, 462, 463, 464, /* 150 */ 465, 466, 467, 18, 469, 454, 391, 401, 23, 474, /* 160 */ 33, 476, 509, 510, 399, 480, 481, 514, 515, 51, /* 170 */ 464, 488, 407, 107, 491, 40, 41, 20, 60, 44, /* 180 */ 495, 63, 64, 183, 184, 145, 146, 108, 503, 54, /* 190 */ 190, 191, 509, 510, 4, 107, 164, 514, 515, 69, /* 200 */ 168, 66, 67, 68, 69, 205, 409, 207, 176, 412, /* 210 */ 413, 8, 9, 23, 458, 12, 13, 14, 15, 16, /* 220 */ 357, 370, 359, 21, 3, 469, 24, 25, 26, 27, /* 230 */ 28, 29, 30, 31, 32, 108, 46, 47, 48, 239, /* 240 */ 240, 241, 107, 243, 244, 245, 246, 247, 248, 249, /* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, /* 260 */ 260, 12, 13, 0, 386, 20, 18, 389, 20, 20, /* 270 */ 204, 22, 206, 366, 71, 27, 370, 370, 30, 372, /* 280 */ 370, 371, 147, 35, 35, 241, 37, 24, 25, 26, /* 290 */ 27, 28, 29, 30, 31, 32, 445, 446, 2, 51, /* 300 */ 390, 53, 236, 20, 8, 9, 58, 59, 12, 13, /* 310 */ 14, 15, 16, 488, 65, 20, 491, 69, 115, 366, /* 320 */ 71, 415, 416, 370, 418, 372, 20, 78, 422, 399, /* 330 */ 200, 0, 197, 198, 199, 510, 406, 202, 377, 514, /* 340 */ 515, 8, 9, 277, 414, 12, 13, 14, 15, 16, /* 350 */ 215, 216, 107, 104, 106, 394, 107, 227, 228, 104, /* 360 */ 14, 226, 398, 402, 229, 117, 20, 232, 233, 234, /* 370 */ 235, 236, 399, 118, 410, 120, 121, 122, 123, 124, /* 380 */ 125, 126, 127, 128, 129, 182, 131, 132, 133, 134, /* 390 */ 135, 136, 137, 14, 145, 146, 423, 149, 150, 20, /* 400 */ 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, /* 410 */ 12, 13, 277, 165, 166, 167, 168, 169, 170, 171, /* 420 */ 70, 173, 174, 175, 4, 370, 371, 179, 180, 181, /* 430 */ 239, 379, 183, 184, 186, 37, 0, 8, 9, 190, /* 440 */ 191, 12, 13, 14, 15, 16, 139, 140, 396, 20, /* 450 */ 20, 144, 2, 117, 205, 20, 207, 405, 8, 9, /* 460 */ 370, 371, 12, 13, 14, 15, 16, 264, 265, 266, /* 470 */ 267, 268, 269, 270, 271, 272, 273, 274, 183, 184, /* 480 */ 289, 290, 291, 292, 293, 294, 295, 51, 239, 240, /* 490 */ 241, 185, 243, 244, 245, 246, 247, 248, 249, 250, /* 500 */ 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, /* 510 */ 261, 12, 13, 358, 140, 20, 399, 22, 144, 20, /* 520 */ 299, 22, 277, 406, 107, 488, 371, 107, 491, 183, /* 530 */ 197, 414, 37, 35, 35, 13, 37, 107, 4, 484, /* 540 */ 485, 486, 358, 488, 489, 370, 371, 510, 261, 51, /* 550 */ 55, 514, 515, 19, 399, 371, 1, 2, 60, 61, /* 560 */ 62, 63, 231, 65, 65, 390, 411, 22, 413, 35, /* 570 */ 71, 107, 189, 483, 484, 485, 486, 78, 488, 489, /* 580 */ 145, 146, 37, 399, 65, 51, 370, 241, 214, 370, /* 590 */ 371, 217, 58, 59, 220, 411, 222, 413, 3, 65, /* 600 */ 78, 358, 14, 104, 106, 207, 107, 109, 20, 390, /* 610 */ 455, 37, 461, 458, 185, 20, 397, 462, 463, 464, /* 620 */ 465, 466, 467, 78, 469, 190, 191, 472, 109, 474, /* 630 */ 475, 476, 370, 371, 33, 480, 481, 304, 487, 455, /* 640 */ 106, 395, 458, 109, 145, 146, 462, 463, 464, 465, /* 650 */ 466, 467, 390, 469, 411, 370, 371, 37, 474, 397, /* 660 */ 476, 445, 446, 108, 480, 481, 283, 284, 285, 286, /* 670 */ 241, 370, 371, 8, 9, 390, 178, 12, 13, 14, /* 680 */ 15, 16, 183, 184, 358, 187, 188, 503, 4, 190, /* 690 */ 191, 390, 194, 195, 277, 21, 450, 277, 33, 20, /* 700 */ 104, 22, 0, 108, 205, 87, 207, 277, 370, 108, /* 710 */ 36, 213, 38, 39, 40, 70, 120, 121, 122, 123, /* 720 */ 124, 125, 126, 127, 128, 129, 358, 131, 132, 133, /* 730 */ 134, 135, 136, 137, 55, 370, 371, 411, 239, 240, /* 740 */ 241, 277, 243, 244, 245, 246, 247, 248, 249, 250, /* 750 */ 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, /* 760 */ 12, 13, 14, 358, 426, 427, 370, 371, 20, 151, /* 770 */ 22, 183, 70, 108, 370, 371, 371, 358, 373, 411, /* 780 */ 185, 207, 139, 35, 399, 37, 12, 13, 14, 15, /* 790 */ 16, 406, 358, 472, 176, 177, 475, 370, 371, 414, /* 800 */ 78, 73, 74, 75, 399, 371, 0, 373, 80, 81, /* 810 */ 82, 237, 238, 65, 86, 419, 411, 390, 413, 91, /* 820 */ 92, 93, 94, 419, 355, 97, 78, 207, 100, 241, /* 830 */ 411, 22, 0, 399, 8, 9, 370, 371, 12, 13, /* 840 */ 14, 15, 16, 182, 138, 411, 37, 413, 142, 484, /* 850 */ 485, 486, 104, 488, 489, 107, 390, 237, 238, 358, /* 860 */ 455, 218, 219, 458, 358, 358, 37, 462, 463, 464, /* 870 */ 465, 466, 467, 0, 469, 370, 371, 371, 261, 474, /* 880 */ 263, 476, 370, 371, 52, 480, 481, 78, 399, 455, /* 890 */ 412, 413, 458, 145, 146, 390, 462, 463, 464, 465, /* 900 */ 466, 467, 390, 469, 435, 399, 435, 78, 474, 440, /* 910 */ 476, 117, 411, 104, 480, 481, 20, 411, 411, 413, /* 920 */ 370, 371, 8, 9, 34, 264, 12, 13, 14, 15, /* 930 */ 16, 183, 184, 50, 108, 274, 370, 371, 190, 191, /* 940 */ 390, 400, 453, 454, 138, 139, 140, 141, 142, 143, /* 950 */ 144, 56, 57, 205, 400, 207, 390, 488, 387, 488, /* 960 */ 491, 455, 491, 279, 458, 14, 15, 16, 462, 463, /* 970 */ 464, 465, 466, 467, 468, 469, 470, 471, 509, 510, /* 980 */ 509, 510, 411, 514, 515, 514, 515, 239, 240, 241, /* 990 */ 377, 243, 244, 245, 246, 247, 248, 249, 250, 251, /* 1000 */ 252, 253, 254, 255, 256, 257, 258, 259, 260, 12, /* 1010 */ 13, 65, 358, 435, 205, 402, 207, 20, 387, 22, /* 1020 */ 358, 370, 371, 370, 371, 371, 400, 373, 435, 458, /* 1030 */ 459, 460, 35, 0, 37, 162, 163, 370, 371, 399, /* 1040 */ 469, 358, 411, 390, 358, 375, 376, 407, 239, 240, /* 1050 */ 375, 376, 106, 399, 371, 109, 373, 390, 370, 371, /* 1060 */ 370, 371, 65, 370, 371, 411, 488, 413, 185, 491, /* 1070 */ 419, 370, 371, 411, 408, 78, 193, 411, 390, 183, /* 1080 */ 390, 488, 399, 390, 491, 370, 371, 509, 510, 458, /* 1090 */ 459, 390, 514, 515, 411, 42, 413, 411, 391, 185, /* 1100 */ 469, 104, 509, 510, 107, 390, 399, 514, 515, 455, /* 1110 */ 461, 20, 458, 358, 407, 20, 462, 463, 464, 465, /* 1120 */ 466, 467, 441, 469, 178, 22, 371, 20, 474, 399, /* 1130 */ 476, 370, 371, 358, 480, 481, 487, 241, 455, 461, /* 1140 */ 37, 458, 145, 146, 414, 462, 463, 464, 465, 466, /* 1150 */ 467, 390, 469, 435, 399, 435, 20, 474, 473, 476, /* 1160 */ 475, 358, 391, 480, 481, 487, 411, 473, 413, 475, /* 1170 */ 399, 138, 139, 140, 141, 142, 143, 144, 407, 379, /* 1180 */ 183, 184, 384, 385, 399, 22, 411, 190, 191, 39, /* 1190 */ 40, 33, 138, 139, 140, 141, 142, 143, 144, 414, /* 1200 */ 37, 13, 205, 45, 207, 405, 488, 104, 488, 491, /* 1210 */ 455, 491, 358, 458, 411, 33, 358, 462, 463, 464, /* 1220 */ 465, 466, 467, 37, 469, 37, 358, 509, 510, 509, /* 1230 */ 510, 400, 514, 515, 514, 515, 239, 240, 241, 178, /* 1240 */ 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, /* 1250 */ 253, 254, 255, 256, 257, 258, 259, 260, 12, 13, /* 1260 */ 358, 111, 112, 358, 114, 411, 20, 104, 22, 411, /* 1270 */ 209, 516, 517, 371, 358, 373, 185, 358, 0, 411, /* 1280 */ 185, 35, 358, 37, 358, 358, 408, 399, 138, 411, /* 1290 */ 358, 117, 142, 384, 385, 408, 392, 33, 411, 395, /* 1300 */ 33, 399, 414, 371, 13, 373, 361, 362, 0, 275, /* 1310 */ 276, 65, 45, 411, 110, 413, 411, 113, 110, 110, /* 1320 */ 42, 113, 113, 110, 78, 0, 113, 411, 37, 276, /* 1330 */ 411, 399, 241, 0, 0, 411, 241, 411, 411, 0, /* 1340 */ 221, 33, 223, 411, 33, 413, 172, 22, 241, 33, /* 1350 */ 104, 33, 33, 107, 400, 22, 22, 455, 49, 33, /* 1360 */ 458, 22, 145, 146, 462, 463, 464, 465, 466, 467, /* 1370 */ 388, 469, 108, 33, 1, 2, 474, 241, 476, 12, /* 1380 */ 13, 71, 480, 481, 33, 33, 33, 455, 359, 22, /* 1390 */ 458, 145, 146, 207, 462, 463, 464, 465, 466, 467, /* 1400 */ 37, 469, 35, 33, 37, 33, 474, 33, 476, 33, /* 1410 */ 12, 13, 480, 481, 13, 358, 107, 12, 13, 108, /* 1420 */ 12, 13, 12, 13, 108, 424, 108, 108, 371, 183, /* 1430 */ 184, 13, 65, 12, 13, 33, 190, 191, 37, 12, /* 1440 */ 13, 12, 13, 107, 507, 78, 12, 13, 108, 12, /* 1450 */ 13, 205, 116, 207, 0, 37, 399, 518, 500, 108, /* 1460 */ 108, 108, 12, 13, 12, 13, 33, 374, 411, 33, /* 1470 */ 413, 104, 37, 399, 387, 33, 387, 369, 108, 424, /* 1480 */ 108, 33, 108, 301, 108, 239, 240, 241, 424, 243, /* 1490 */ 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, /* 1500 */ 254, 255, 256, 257, 258, 259, 260, 12, 13, 33, /* 1510 */ 108, 506, 455, 78, 506, 458, 506, 22, 434, 462, /* 1520 */ 463, 464, 465, 466, 467, 506, 469, 73, 74, 75, /* 1530 */ 35, 474, 37, 476, 80, 81, 82, 480, 481, 358, /* 1540 */ 86, 108, 374, 371, 108, 91, 92, 93, 94, 239, /* 1550 */ 108, 97, 371, 424, 100, 410, 108, 442, 424, 424, /* 1560 */ 65, 490, 511, 358, 482, 493, 389, 280, 436, 51, /* 1570 */ 207, 457, 205, 42, 207, 20, 371, 456, 447, 220, /* 1580 */ 399, 379, 452, 203, 108, 447, 379, 438, 20, 370, /* 1590 */ 20, 371, 411, 45, 413, 420, 371, 182, 420, 358, /* 1600 */ 417, 370, 417, 371, 399, 370, 239, 240, 417, 420, /* 1610 */ 417, 105, 371, 383, 103, 382, 411, 370, 413, 102, /* 1620 */ 253, 254, 255, 256, 257, 258, 259, 370, 370, 303, /* 1630 */ 381, 370, 20, 363, 50, 367, 455, 363, 367, 458, /* 1640 */ 399, 447, 379, 462, 463, 464, 465, 466, 467, 20, /* 1650 */ 469, 379, 411, 413, 413, 474, 379, 476, 20, 20, /* 1660 */ 455, 480, 481, 458, 372, 437, 20, 462, 463, 464, /* 1670 */ 465, 466, 467, 379, 469, 372, 379, 427, 379, 474, /* 1680 */ 379, 476, 370, 379, 363, 480, 481, 399, 399, 399, /* 1690 */ 370, 361, 399, 361, 399, 399, 455, 399, 363, 458, /* 1700 */ 205, 399, 207, 462, 463, 464, 465, 466, 467, 224, /* 1710 */ 469, 411, 399, 399, 399, 107, 358, 476, 411, 377, /* 1720 */ 451, 480, 481, 447, 449, 20, 446, 211, 411, 371, /* 1730 */ 444, 210, 237, 238, 239, 370, 413, 377, 411, 288, /* 1740 */ 287, 436, 499, 499, 502, 296, 358, 196, 253, 254, /* 1750 */ 255, 256, 257, 258, 259, 501, 298, 399, 429, 371, /* 1760 */ 429, 499, 297, 498, 281, 443, 305, 519, 302, 411, /* 1770 */ 497, 413, 513, 436, 300, 496, 276, 371, 512, 20, /* 1780 */ 117, 278, 107, 372, 377, 461, 377, 399, 411, 358, /* 1790 */ 429, 429, 411, 411, 411, 411, 425, 188, 395, 411, /* 1800 */ 494, 413, 371, 377, 411, 377, 411, 479, 411, 371, /* 1810 */ 411, 411, 22, 455, 107, 411, 458, 403, 377, 38, /* 1820 */ 462, 463, 464, 465, 466, 467, 439, 469, 411, 0, /* 1830 */ 399, 411, 360, 492, 476, 411, 411, 364, 480, 481, /* 1840 */ 363, 411, 411, 455, 413, 370, 458, 0, 356, 358, /* 1850 */ 462, 463, 464, 465, 466, 467, 411, 469, 411, 378, /* 1860 */ 448, 0, 371, 45, 476, 0, 411, 411, 480, 481, /* 1870 */ 411, 358, 393, 411, 411, 411, 430, 393, 411, 411, /* 1880 */ 411, 411, 393, 37, 371, 230, 455, 430, 37, 458, /* 1890 */ 399, 37, 37, 462, 463, 464, 465, 466, 467, 230, /* 1900 */ 469, 0, 411, 37, 413, 37, 230, 37, 0, 230, /* 1910 */ 0, 37, 399, 37, 0, 22, 0, 37, 225, 0, /* 1920 */ 0, 213, 213, 207, 411, 0, 413, 214, 205, 0, /* 1930 */ 0, 0, 201, 200, 0, 504, 505, 0, 49, 150, /* 1940 */ 49, 0, 37, 0, 0, 51, 455, 49, 37, 458, /* 1950 */ 0, 358, 0, 462, 463, 464, 465, 466, 467, 0, /* 1960 */ 469, 0, 45, 0, 371, 0, 0, 476, 455, 0, /* 1970 */ 49, 458, 481, 168, 0, 462, 463, 464, 465, 466, /* 1980 */ 467, 358, 469, 0, 0, 0, 37, 168, 0, 0, /* 1990 */ 0, 0, 399, 45, 371, 0, 0, 0, 0, 358, /* 2000 */ 0, 0, 0, 0, 411, 0, 413, 0, 0, 0, /* 2010 */ 0, 0, 371, 0, 0, 0, 49, 0, 505, 0, /* 2020 */ 0, 0, 399, 0, 0, 0, 433, 0, 22, 358, /* 2030 */ 0, 150, 149, 0, 411, 148, 413, 0, 0, 0, /* 2040 */ 399, 65, 371, 0, 22, 65, 0, 65, 455, 50, /* 2050 */ 22, 458, 411, 0, 413, 462, 463, 464, 465, 466, /* 2060 */ 467, 0, 469, 37, 0, 0, 50, 0, 37, 51, /* 2070 */ 399, 42, 37, 37, 433, 196, 42, 0, 455, 37, /* 2080 */ 33, 458, 411, 51, 413, 462, 463, 464, 465, 466, /* 2090 */ 467, 51, 469, 42, 45, 14, 455, 42, 0, 458, /* 2100 */ 43, 49, 42, 462, 463, 464, 465, 466, 467, 358, /* 2110 */ 469, 49, 49, 0, 0, 0, 0, 0, 49, 0, /* 2120 */ 42, 0, 371, 37, 51, 42, 455, 0, 358, 458, /* 2130 */ 72, 508, 0, 462, 463, 464, 465, 466, 467, 0, /* 2140 */ 469, 371, 51, 37, 42, 0, 358, 37, 51, 42, /* 2150 */ 399, 0, 51, 42, 0, 37, 0, 0, 0, 371, /* 2160 */ 0, 0, 411, 115, 413, 37, 22, 113, 0, 399, /* 2170 */ 37, 37, 37, 37, 37, 37, 33, 37, 37, 33, /* 2180 */ 0, 411, 0, 413, 37, 37, 22, 399, 517, 37, /* 2190 */ 0, 22, 22, 22, 0, 53, 22, 0, 0, 411, /* 2200 */ 37, 413, 0, 433, 37, 0, 455, 22, 1, 458, /* 2210 */ 37, 0, 20, 462, 463, 464, 465, 466, 467, 107, /* 2220 */ 469, 433, 471, 37, 37, 455, 19, 0, 458, 185, /* 2230 */ 37, 107, 462, 463, 464, 465, 466, 467, 108, 469, /* 2240 */ 118, 0, 35, 455, 119, 49, 458, 37, 358, 0, /* 2250 */ 462, 463, 464, 465, 466, 467, 185, 469, 51, 185, /* 2260 */ 22, 371, 212, 0, 208, 22, 0, 60, 61, 62, /* 2270 */ 63, 358, 65, 188, 185, 185, 192, 3, 33, 192, /* 2280 */ 108, 37, 107, 107, 371, 108, 282, 37, 107, 399, /* 2290 */ 50, 108, 50, 105, 103, 33, 107, 33, 33, 3, /* 2300 */ 49, 411, 107, 413, 49, 358, 33, 108, 107, 33, /* 2310 */ 49, 108, 399, 106, 108, 107, 109, 108, 371, 37, /* 2320 */ 37, 37, 37, 282, 411, 37, 413, 282, 37, 108, /* 2330 */ 33, 358, 108, 0, 275, 49, 0, 107, 33, 105, /* 2340 */ 42, 262, 2, 22, 371, 455, 399, 239, 458, 49, /* 2350 */ 143, 358, 462, 463, 464, 465, 466, 467, 411, 469, /* 2360 */ 413, 105, 108, 49, 371, 107, 22, 108, 455, 0, /* 2370 */ 42, 458, 399, 242, 107, 462, 463, 464, 465, 466, /* 2380 */ 467, 49, 469, 108, 411, 107, 413, 107, 116, 108, /* 2390 */ 37, 37, 399, 37, 187, 108, 107, 107, 37, 107, /* 2400 */ 187, 194, 455, 189, 411, 458, 413, 108, 107, 462, /* 2410 */ 463, 464, 465, 466, 467, 107, 469, 107, 107, 107, /* 2420 */ 213, 117, 37, 108, 107, 37, 108, 107, 455, 37, /* 2430 */ 108, 458, 108, 358, 107, 462, 463, 464, 465, 466, /* 2440 */ 467, 107, 469, 108, 107, 107, 371, 108, 455, 130, /* 2450 */ 107, 458, 33, 130, 37, 462, 463, 464, 465, 466, /* 2460 */ 467, 130, 469, 358, 119, 118, 107, 107, 22, 72, /* 2470 */ 71, 130, 37, 37, 399, 37, 371, 37, 37, 37, /* 2480 */ 37, 358, 37, 78, 37, 101, 411, 78, 413, 33, /* 2490 */ 101, 37, 37, 22, 371, 37, 37, 37, 37, 78, /* 2500 */ 37, 37, 37, 37, 399, 37, 22, 37, 0, 37, /* 2510 */ 0, 42, 37, 51, 0, 37, 411, 0, 413, 42, /* 2520 */ 37, 42, 399, 42, 51, 51, 0, 51, 37, 37, /* 2530 */ 455, 0, 33, 458, 411, 22, 413, 462, 463, 464, /* 2540 */ 465, 466, 467, 22, 469, 21, 520, 22, 20, 22, /* 2550 */ 21, 520, 520, 520, 520, 520, 520, 520, 520, 520, /* 2560 */ 455, 520, 358, 458, 520, 520, 520, 462, 463, 464, /* 2570 */ 465, 466, 467, 520, 469, 371, 520, 520, 455, 520, /* 2580 */ 358, 458, 520, 520, 520, 462, 463, 464, 465, 466, /* 2590 */ 467, 520, 469, 371, 520, 358, 520, 520, 520, 520, /* 2600 */ 520, 520, 520, 399, 520, 520, 520, 520, 371, 520, /* 2610 */ 358, 520, 520, 520, 520, 411, 520, 413, 520, 520, /* 2620 */ 520, 399, 520, 371, 520, 520, 520, 520, 520, 520, /* 2630 */ 520, 520, 520, 411, 520, 413, 399, 520, 520, 520, /* 2640 */ 520, 520, 520, 520, 520, 520, 520, 520, 411, 520, /* 2650 */ 413, 399, 520, 520, 520, 520, 520, 520, 520, 455, /* 2660 */ 520, 520, 458, 411, 520, 413, 462, 463, 464, 465, /* 2670 */ 466, 467, 520, 469, 520, 520, 520, 455, 520, 520, /* 2680 */ 458, 520, 520, 358, 462, 463, 464, 465, 466, 467, /* 2690 */ 520, 469, 455, 520, 520, 458, 371, 520, 520, 462, /* 2700 */ 463, 464, 465, 466, 467, 520, 469, 455, 520, 358, /* 2710 */ 458, 520, 520, 520, 462, 463, 464, 465, 466, 467, /* 2720 */ 520, 469, 371, 520, 399, 520, 520, 520, 520, 520, /* 2730 */ 520, 358, 520, 520, 520, 520, 411, 520, 413, 520, /* 2740 */ 520, 520, 520, 520, 371, 520, 520, 520, 520, 520, /* 2750 */ 399, 520, 520, 520, 520, 520, 520, 520, 520, 520, /* 2760 */ 520, 520, 411, 520, 413, 520, 520, 520, 520, 358, /* 2770 */ 520, 520, 399, 520, 520, 520, 520, 520, 520, 520, /* 2780 */ 455, 520, 371, 458, 411, 520, 413, 462, 463, 464, /* 2790 */ 465, 466, 467, 520, 469, 520, 520, 520, 520, 520, /* 2800 */ 520, 520, 520, 520, 520, 520, 455, 520, 520, 458, /* 2810 */ 399, 520, 520, 462, 463, 464, 465, 466, 467, 520, /* 2820 */ 469, 520, 411, 520, 413, 520, 520, 520, 455, 520, /* 2830 */ 520, 458, 520, 520, 520, 462, 463, 464, 465, 466, /* 2840 */ 467, 520, 469, 520, 520, 358, 520, 520, 520, 520, /* 2850 */ 520, 520, 520, 520, 520, 520, 520, 520, 371, 520, /* 2860 */ 520, 520, 520, 520, 520, 520, 455, 520, 520, 458, /* 2870 */ 520, 520, 520, 462, 463, 464, 465, 466, 467, 520, /* 2880 */ 469, 358, 520, 520, 520, 520, 399, 520, 520, 520, /* 2890 */ 520, 520, 520, 520, 371, 520, 520, 520, 411, 520, /* 2900 */ 413, 520, 520, 520, 520, 520, 520, 520, 520, 520, /* 2910 */ 520, 520, 520, 520, 520, 520, 520, 520, 520, 358, /* 2920 */ 520, 520, 399, 520, 520, 520, 520, 520, 520, 520, /* 2930 */ 520, 520, 371, 520, 411, 520, 413, 520, 520, 520, /* 2940 */ 520, 520, 455, 520, 520, 458, 520, 520, 520, 462, /* 2950 */ 463, 464, 465, 466, 467, 520, 469, 520, 520, 520, /* 2960 */ 399, 520, 358, 520, 520, 520, 520, 520, 520, 520, /* 2970 */ 520, 520, 411, 520, 413, 371, 520, 520, 455, 520, /* 2980 */ 358, 458, 520, 520, 520, 462, 463, 464, 465, 466, /* 2990 */ 467, 520, 469, 371, 520, 358, 520, 520, 520, 520, /* 3000 */ 520, 520, 520, 399, 520, 520, 520, 520, 371, 520, /* 3010 */ 520, 520, 520, 520, 520, 411, 455, 413, 520, 458, /* 3020 */ 520, 399, 520, 462, 463, 464, 465, 466, 467, 520, /* 3030 */ 469, 520, 520, 411, 520, 413, 399, 520, 520, 520, /* 3040 */ 520, 520, 520, 520, 520, 520, 520, 520, 411, 520, /* 3050 */ 413, 520, 520, 520, 520, 520, 520, 520, 520, 455, /* 3060 */ 520, 520, 458, 520, 520, 520, 462, 463, 464, 465, /* 3070 */ 466, 467, 520, 469, 520, 520, 520, 455, 520, 520, /* 3080 */ 458, 520, 520, 520, 462, 463, 464, 465, 466, 467, /* 3090 */ 520, 469, 455, 520, 520, 458, 520, 520, 520, 462, /* 3100 */ 463, 464, 465, 466, 467, 520, 469, 355, 355, 355, /* 3110 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3120 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3130 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3140 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3150 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3160 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3170 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3180 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3190 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3200 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3210 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3220 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3230 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3240 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3250 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3260 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3270 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3280 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3290 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3300 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3310 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3320 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3330 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3340 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3350 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3360 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3370 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3380 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3390 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3400 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3410 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3420 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3430 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3440 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3450 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3460 */ 355, 355, }; #define YY_SHIFT_COUNT (894) #define YY_SHIFT_MIN (0) #define YY_SHIFT_MAX (2531) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 135, 0, 249, 0, 499, 499, 499, 499, 499, 499, /* 10 */ 499, 499, 499, 499, 499, 499, 748, 997, 997, 1246, /* 20 */ 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, /* 30 */ 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, /* 40 */ 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, /* 50 */ 245, 430, 66, 88, 417, 464, 417, 417, 88, 88, /* 60 */ 417, 1367, 417, 248, 1367, 420, 417, 14, 1495, 435, /* 70 */ 59, 59, 1495, 1495, 190, 190, 435, 295, 40, 24, /* 80 */ 24, 44, 59, 59, 59, 59, 59, 59, 59, 59, /* 90 */ 59, 59, 59, 157, 283, 59, 59, 350, 14, 59, /* 100 */ 157, 59, 14, 59, 59, 14, 59, 59, 14, 59, /* 110 */ 14, 14, 14, 59, 645, 203, 203, 728, 202, 809, /* 120 */ 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, /* 130 */ 809, 809, 809, 809, 809, 809, 809, 809, 1150, 595, /* 140 */ 295, 40, 895, 895, 829, 306, 306, 306, 617, 617, /* 150 */ 702, 522, 829, 350, 14, 336, 14, 287, 14, 14, /* 160 */ 722, 14, 722, 722, 794, 890, 255, 596, 596, 596, /* 170 */ 596, 596, 596, 596, 2207, 1454, 21, 429, 333, 191, /* 180 */ 383, 495, 346, 588, 398, 398, 1091, 38, 1095, 545, /* 190 */ 545, 545, 883, 896, 545, 679, 1107, 379, 706, 1061, /* 200 */ 1107, 1107, 1136, 1034, 1053, 221, 1034, 1158, 684, 522, /* 210 */ 1287, 1518, 1531, 1555, 1359, 350, 1555, 350, 1380, 1568, /* 220 */ 1570, 1548, 1570, 1548, 1415, 1568, 1570, 1568, 1548, 1415, /* 230 */ 1415, 1415, 1506, 1511, 1568, 1517, 1568, 1568, 1568, 1612, /* 240 */ 1584, 1612, 1584, 1555, 350, 350, 1629, 350, 1638, 1639, /* 250 */ 350, 1638, 350, 1646, 350, 350, 1568, 350, 1612, 14, /* 260 */ 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, /* 270 */ 1568, 890, 890, 1612, 722, 722, 722, 1485, 1608, 1555, /* 280 */ 645, 1705, 1516, 1521, 1629, 645, 1287, 1568, 722, 1451, /* 290 */ 1453, 1451, 1453, 1449, 1551, 1451, 1458, 1465, 1483, 1287, /* 300 */ 1461, 1466, 1474, 1500, 1570, 1759, 1663, 1503, 1638, 645, /* 310 */ 645, 1675, 1453, 722, 722, 722, 722, 1453, 722, 1609, /* 320 */ 645, 794, 645, 1570, 722, 722, 722, 722, 722, 722, /* 330 */ 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, /* 340 */ 722, 722, 722, 722, 722, 722, 1707, 722, 1568, 645, /* 350 */ 1790, 1781, 1612, 3107, 3107, 3107, 3107, 3107, 3107, 3107, /* 360 */ 3107, 3107, 36, 498, 263, 534, 665, 79, 826, 296, /* 370 */ 450, 914, 806, 1033, 54, 54, 54, 54, 54, 54, /* 380 */ 54, 54, 54, 1054, 374, 674, 774, 774, 130, 946, /* 390 */ 32, 618, 118, 574, 620, 873, 1103, 1163, 643, 951, /* 400 */ 555, 661, 951, 951, 951, 307, 307, 436, 331, 127, /* 410 */ 1278, 1267, 1174, 1308, 1204, 1208, 1209, 1213, 1188, 1291, /* 420 */ 1325, 1333, 1334, 1339, 1119, 601, 1264, 519, 1311, 1316, /* 430 */ 1318, 1319, 1217, 1182, 1326, 1340, 1373, 1351, 1310, 1352, /* 440 */ 1309, 1353, 1370, 1372, 1374, 1376, 1398, 1405, 1408, 1410, /* 450 */ 1421, 1427, 1429, 1434, 1437, 1450, 1452, 1402, 1433, 1436, /* 460 */ 1442, 1448, 1476, 1336, 1186, 1363, 1401, 1418, 1435, 832, /* 470 */ 1829, 1847, 1861, 1818, 1865, 1846, 1655, 1851, 1854, 1855, /* 480 */ 1669, 1901, 1866, 1868, 1676, 1870, 1908, 1679, 1910, 1874, /* 490 */ 1925, 1876, 1914, 1893, 1916, 1880, 1693, 1919, 1708, 1920, /* 500 */ 1709, 1713, 1716, 1723, 1929, 1930, 1931, 1731, 1733, 1934, /* 510 */ 1937, 1789, 1889, 1891, 1941, 1905, 1943, 1944, 1911, 1894, /* 520 */ 1950, 1898, 1952, 1917, 1959, 1961, 1963, 1921, 1965, 1966, /* 530 */ 1969, 1983, 1984, 1985, 1805, 1949, 1974, 1819, 1988, 1989, /* 540 */ 1990, 1991, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, /* 550 */ 2005, 2007, 2008, 2009, 2010, 2011, 2013, 1967, 2014, 1948, /* 560 */ 2015, 2017, 2019, 2020, 2021, 2023, 2024, 2025, 2006, 2027, /* 570 */ 1881, 2030, 1883, 2033, 1887, 2037, 2038, 2022, 1999, 2028, /* 580 */ 2016, 2039, 1976, 2026, 2043, 1980, 2046, 1982, 2053, 2061, /* 590 */ 2031, 2018, 2029, 2064, 2035, 2032, 2034, 2065, 2036, 2040, /* 600 */ 2051, 2067, 2042, 2077, 2049, 2055, 2047, 2052, 2062, 2081, /* 610 */ 2063, 2098, 2057, 2060, 2113, 2114, 2115, 2116, 2078, 1879, /* 620 */ 2117, 2052, 2069, 2119, 2121, 2058, 2127, 2132, 2086, 2073, /* 630 */ 2083, 2139, 2106, 2091, 2102, 2145, 2110, 2097, 2107, 2151, /* 640 */ 2118, 2101, 2111, 2154, 2156, 2157, 2158, 2160, 2161, 2048, /* 650 */ 2054, 2128, 2144, 2168, 2133, 2134, 2135, 2136, 2137, 2138, /* 660 */ 2140, 2141, 2143, 2146, 2147, 2148, 2164, 2152, 2180, 2169, /* 670 */ 2182, 2170, 2190, 2171, 2142, 2194, 2174, 2163, 2197, 2198, /* 680 */ 2202, 2167, 2205, 2173, 2211, 2185, 2192, 2186, 2187, 2193, /* 690 */ 2130, 2112, 2227, 2044, 2122, 2125, 2124, 2050, 2052, 2196, /* 700 */ 2241, 2071, 2210, 2238, 2249, 2056, 2243, 2074, 2085, 2263, /* 710 */ 2266, 2089, 2084, 2090, 2087, 2274, 2245, 2004, 2175, 2172, /* 720 */ 2176, 2177, 2244, 2250, 2181, 2240, 2188, 2242, 2191, 2183, /* 730 */ 2262, 2264, 2199, 2189, 2195, 2201, 2203, 2265, 2251, 2255, /* 740 */ 2208, 2273, 2041, 2206, 2209, 2296, 2276, 2045, 2282, 2283, /* 750 */ 2284, 2285, 2288, 2291, 2221, 2224, 2261, 2059, 2297, 2286, /* 760 */ 2333, 2336, 2230, 2298, 2305, 2234, 2079, 2256, 2340, 2321, /* 770 */ 2108, 2254, 2258, 2259, 2300, 2267, 2278, 2314, 2275, 2344, /* 780 */ 2131, 2280, 2281, 2287, 2289, 2290, 2214, 2292, 2369, 2328, /* 790 */ 2213, 2301, 2272, 2052, 2332, 2308, 2310, 2299, 2311, 2312, /* 800 */ 2304, 2315, 2353, 2354, 2317, 2318, 2356, 2320, 2322, 2361, /* 810 */ 2327, 2324, 2385, 2334, 2335, 2388, 2337, 2339, 2392, 2338, /* 820 */ 2319, 2323, 2331, 2341, 2345, 2347, 2343, 2419, 2359, 2417, /* 830 */ 2360, 2419, 2419, 2446, 2397, 2399, 2435, 2436, 2438, 2440, /* 840 */ 2441, 2442, 2443, 2445, 2447, 2405, 2384, 2409, 2389, 2456, /* 850 */ 2454, 2455, 2458, 2471, 2459, 2460, 2461, 2421, 2143, 2463, /* 860 */ 2146, 2464, 2465, 2466, 2468, 2484, 2470, 2508, 2472, 2462, /* 870 */ 2469, 2510, 2475, 2473, 2477, 2514, 2478, 2474, 2479, 2517, /* 880 */ 2483, 2476, 2481, 2526, 2491, 2492, 2531, 2513, 2499, 2521, /* 890 */ 2524, 2525, 2527, 2529, 2528, }; #define YY_REDUCE_COUNT (361) #define YY_REDUCE_MIN (-484) #define YY_REDUCE_MAX (2637) static const short yy_reduce_ofst[] = { /* 0 */ 469, -315, 155, 184, 405, 434, 654, 683, 902, 932, /* 10 */ 1057, 1181, 1205, 1241, 1358, 1388, 506, 1431, 755, 1491, /* 20 */ 1513, 1593, 1641, 1623, 1671, 1751, 1770, 1788, 1890, 1913, /* 30 */ 1947, 1973, 1993, 2075, 2105, 2123, 2204, 2222, 2237, 2252, /* 40 */ 2325, 2351, 2373, 2411, 2487, 2523, 2561, 2604, 2622, 2637, /* 50 */ -347, -317, -434, 90, 471, 578, 593, 718, 55, 365, /* 60 */ 720, 571, -484, -94, 631, -175, 37, -380, -386, -373, /* 70 */ 219, 262, -368, -244, -360, -266, -403, -382, -203, -93, /* 80 */ -47, -294, -90, 175, 285, 301, 396, 404, 427, 466, /* 90 */ 505, 512, 651, -149, 338, 550, 566, 52, 489, 653, /* 100 */ 216, 667, -70, 688, 690, -235, 693, 701, 117, 715, /* 110 */ 707, 385, 771, 761, -39, -475, -475, -274, -137, 243, /* 120 */ 326, 368, 419, 501, 507, 662, 686, 775, 803, 854, /* 130 */ 858, 868, 905, 916, 919, 924, 926, 927, -36, 151, /* 140 */ -27, 478, 670, 675, 798, 151, 649, 678, 685, 694, /* 150 */ 613, -122, 909, 800, -299, 246, 730, 321, 785, 640, /* 160 */ 666, 888, 878, 887, 904, 945, -400, -384, 541, 554, /* 170 */ 626, 831, 954, -400, 681, 982, 1029, 1001, 939, 937, /* 180 */ 958, 1093, 1074, 1074, 1087, 1089, 1055, 1108, 1064, 1005, /* 190 */ 1008, 1010, 1084, 1074, 1019, 1168, 1129, 1172, 1145, 1115, /* 200 */ 1134, 1135, 1074, 1071, 1071, 1051, 1071, 1082, 1072, 1177, /* 210 */ 1132, 1114, 1121, 1131, 1130, 1202, 1138, 1207, 1149, 1219, /* 220 */ 1220, 1175, 1225, 1178, 1183, 1231, 1232, 1235, 1189, 1185, /* 230 */ 1191, 1193, 1230, 1233, 1247, 1249, 1257, 1258, 1261, 1270, /* 240 */ 1268, 1274, 1271, 1194, 1263, 1272, 1240, 1277, 1292, 1228, /* 250 */ 1294, 1303, 1297, 1250, 1299, 1301, 1312, 1304, 1321, 1288, /* 260 */ 1289, 1290, 1293, 1295, 1296, 1298, 1302, 1313, 1314, 1315, /* 270 */ 1320, 1330, 1332, 1335, 1300, 1307, 1317, 1269, 1275, 1276, /* 280 */ 1342, 1280, 1286, 1322, 1323, 1360, 1305, 1365, 1327, 1243, /* 290 */ 1329, 1244, 1331, 1242, 1254, 1262, 1265, 1273, 1279, 1337, /* 300 */ 1248, 1259, 1266, 1071, 1406, 1324, 1306, 1341, 1411, 1407, /* 310 */ 1409, 1328, 1361, 1377, 1381, 1382, 1383, 1362, 1384, 1371, /* 320 */ 1426, 1403, 1428, 1438, 1393, 1395, 1397, 1399, 1400, 1404, /* 330 */ 1417, 1420, 1424, 1425, 1430, 1445, 1447, 1455, 1456, 1459, /* 340 */ 1462, 1463, 1464, 1467, 1468, 1469, 1414, 1470, 1475, 1441, /* 350 */ 1472, 1473, 1477, 1387, 1412, 1446, 1457, 1479, 1484, 1489, /* 360 */ 1481, 1492, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 10 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 20 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 30 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 40 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 50 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 60 */ 2368, 2026, 2026, 2331, 2026, 2026, 2026, 2026, 2026, 2026, /* 70 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2338, 2026, 2026, /* 80 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 90 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2125, 2026, 2026, /* 100 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 110 */ 2026, 2026, 2026, 2026, 2123, 2616, 2026, 2026, 2026, 2026, /* 120 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 130 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2628, /* 140 */ 2026, 2026, 2097, 2097, 2026, 2628, 2628, 2628, 2588, 2588, /* 150 */ 2123, 2026, 2026, 2125, 2026, 2410, 2026, 2026, 2026, 2026, /* 160 */ 2026, 2026, 2026, 2026, 2249, 2056, 2408, 2026, 2026, 2026, /* 170 */ 2026, 2026, 2026, 2026, 2394, 2026, 2026, 2657, 2719, 2026, /* 180 */ 2660, 2026, 2026, 2026, 2026, 2026, 2343, 2026, 2647, 2026, /* 190 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2201, 2388, /* 200 */ 2026, 2026, 2026, 2620, 2634, 2703, 2621, 2618, 2641, 2026, /* 210 */ 2651, 2026, 2435, 2026, 2424, 2125, 2026, 2125, 2381, 2326, /* 220 */ 2026, 2336, 2026, 2336, 2333, 2026, 2026, 2026, 2336, 2333, /* 230 */ 2333, 2333, 2190, 2186, 2026, 2184, 2026, 2026, 2026, 2026, /* 240 */ 2081, 2026, 2081, 2026, 2125, 2125, 2026, 2125, 2026, 2026, /* 250 */ 2125, 2026, 2125, 2026, 2125, 2125, 2026, 2125, 2026, 2026, /* 260 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 270 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2422, 2404, 2026, /* 280 */ 2123, 2026, 2392, 2390, 2026, 2123, 2651, 2026, 2026, 2673, /* 290 */ 2668, 2673, 2668, 2687, 2683, 2673, 2692, 2689, 2653, 2651, /* 300 */ 2722, 2709, 2705, 2634, 2026, 2026, 2639, 2637, 2026, 2123, /* 310 */ 2123, 2026, 2668, 2026, 2026, 2026, 2026, 2668, 2026, 2026, /* 320 */ 2123, 2026, 2123, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 330 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 340 */ 2026, 2026, 2026, 2026, 2026, 2026, 2217, 2026, 2026, 2123, /* 350 */ 2026, 2065, 2026, 2383, 2413, 2364, 2364, 2252, 2252, 2252, /* 360 */ 2126, 2031, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 370 */ 2026, 2026, 2026, 2026, 2686, 2685, 2540, 2026, 2592, 2591, /* 380 */ 2590, 2581, 2539, 2213, 2026, 2026, 2538, 2537, 2026, 2026, /* 390 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2531, /* 400 */ 2026, 2026, 2532, 2530, 2529, 2355, 2354, 2026, 2026, 2026, /* 410 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 420 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 430 */ 2026, 2026, 2026, 2706, 2710, 2026, 2617, 2026, 2026, 2026, /* 440 */ 2511, 2026, 2026, 2026, 2026, 2026, 2479, 2474, 2465, 2456, /* 450 */ 2471, 2462, 2450, 2468, 2459, 2447, 2444, 2026, 2026, 2026, /* 460 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 470 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 480 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 490 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 500 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 510 */ 2026, 2332, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 520 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 530 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 540 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 550 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 560 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 570 */ 2026, 2026, 2026, 2026, 2347, 2026, 2026, 2026, 2026, 2026, /* 580 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 590 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 600 */ 2026, 2026, 2026, 2026, 2026, 2026, 2070, 2518, 2026, 2026, /* 610 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 620 */ 2026, 2521, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 630 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 640 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 650 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 660 */ 2026, 2026, 2165, 2164, 2026, 2026, 2026, 2026, 2026, 2026, /* 670 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 680 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 690 */ 2522, 2026, 2026, 2026, 2408, 2026, 2026, 2026, 2513, 2026, /* 700 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 710 */ 2026, 2026, 2026, 2026, 2026, 2702, 2654, 2026, 2026, 2026, /* 720 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 730 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2511, /* 740 */ 2026, 2684, 2026, 2026, 2700, 2026, 2704, 2026, 2026, 2026, /* 750 */ 2026, 2026, 2026, 2026, 2627, 2623, 2026, 2026, 2619, 2026, /* 760 */ 2026, 2026, 2026, 2026, 2578, 2026, 2026, 2026, 2612, 2026, /* 770 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2522, 2026, /* 780 */ 2525, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 790 */ 2026, 2026, 2026, 2510, 2026, 2563, 2562, 2026, 2026, 2026, /* 800 */ 2026, 2026, 2026, 2026, 2246, 2026, 2026, 2026, 2026, 2026, /* 810 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 820 */ 2230, 2228, 2227, 2226, 2026, 2223, 2026, 2259, 2026, 2026, /* 830 */ 2026, 2255, 2254, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 840 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2144, /* 850 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2136, 2026, /* 860 */ 2135, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 870 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, /* 880 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2055, 2026, /* 890 */ 2026, 2026, 2026, 2026, 2026, }; /********** End of lemon-generated parsing tables *****************************/ /* The next table maps tokens (terminal symbols) into fallback tokens. ** If a construct like the following: ** ** %fallback ID X Y Z. ** ** appears in the grammar, then ID becomes a fallback token for X, Y, ** and Z. Whenever one of the tokens X, Y, or Z is input to the parser ** but it does not parse, the type of the token is changed to ID and ** the parse is retried before an error is thrown. ** ** This feature can be used, for example, to cause some keywords in a language ** to revert to identifiers if they keyword does not apply in the context where ** it appears. */ #ifdef YYFALLBACK static const YYCODETYPE yyFallback[] = { 0, /* $ => nothing */ 0, /* OR => nothing */ 0, /* AND => nothing */ 0, /* UNION => nothing */ 0, /* ALL => nothing */ 0, /* MINUS => nothing */ 0, /* EXCEPT => nothing */ 0, /* INTERSECT => nothing */ 0, /* NK_BITAND => nothing */ 0, /* NK_BITOR => nothing */ 0, /* NK_LSHIFT => nothing */ 0, /* NK_RSHIFT => nothing */ 0, /* NK_PLUS => nothing */ 0, /* NK_MINUS => nothing */ 0, /* NK_STAR => nothing */ 0, /* NK_SLASH => nothing */ 0, /* NK_REM => nothing */ 0, /* NK_CONCAT => nothing */ 0, /* CREATE => nothing */ 0, /* ACCOUNT => nothing */ 0, /* NK_ID => nothing */ 0, /* PASS => nothing */ 0, /* NK_STRING => nothing */ 0, /* ALTER => nothing */ 0, /* PPS => nothing */ 0, /* TSERIES => nothing */ 0, /* STORAGE => nothing */ 0, /* STREAMS => nothing */ 0, /* QTIME => nothing */ 0, /* DBS => nothing */ 0, /* USERS => nothing */ 0, /* CONNS => nothing */ 0, /* STATE => nothing */ 0, /* NK_COMMA => nothing */ 0, /* HOST => nothing */ 0, /* USER => nothing */ 0, /* ENABLE => nothing */ 0, /* NK_INTEGER => nothing */ 0, /* SYSINFO => nothing */ 0, /* ADD => nothing */ 0, /* DROP => nothing */ 0, /* GRANT => nothing */ 0, /* ON => nothing */ 0, /* TO => nothing */ 0, /* REVOKE => nothing */ 0, /* FROM => nothing */ 0, /* SUBSCRIBE => nothing */ 0, /* READ => nothing */ 0, /* WRITE => nothing */ 0, /* NK_DOT => nothing */ 0, /* WITH => nothing */ 0, /* DNODE => nothing */ 0, /* PORT => nothing */ 0, /* DNODES => nothing */ 0, /* RESTORE => nothing */ 0, /* NK_IPTOKEN => nothing */ 0, /* FORCE => nothing */ 0, /* UNSAFE => nothing */ 0, /* CLUSTER => nothing */ 0, /* LOCAL => nothing */ 0, /* QNODE => nothing */ 0, /* BNODE => nothing */ 0, /* SNODE => nothing */ 0, /* MNODE => nothing */ 0, /* VNODE => nothing */ 0, /* DATABASE => nothing */ 0, /* USE => nothing */ 0, /* FLUSH => nothing */ 0, /* TRIM => nothing */ 0, /* COMPACT => nothing */ 0, /* IF => nothing */ 0, /* NOT => nothing */ 0, /* EXISTS => nothing */ 0, /* BUFFER => nothing */ 0, /* CACHEMODEL => nothing */ 0, /* CACHESIZE => nothing */ 0, /* COMP => nothing */ 0, /* DURATION => nothing */ 0, /* NK_VARIABLE => nothing */ 0, /* MAXROWS => nothing */ 0, /* MINROWS => nothing */ 0, /* KEEP => nothing */ 0, /* PAGES => nothing */ 0, /* PAGESIZE => nothing */ 0, /* TSDB_PAGESIZE => nothing */ 0, /* PRECISION => nothing */ 0, /* REPLICA => nothing */ 0, /* VGROUPS => nothing */ 0, /* SINGLE_STABLE => nothing */ 0, /* RETENTIONS => nothing */ 0, /* SCHEMALESS => nothing */ 0, /* WAL_LEVEL => nothing */ 0, /* WAL_FSYNC_PERIOD => nothing */ 0, /* WAL_RETENTION_PERIOD => nothing */ 0, /* WAL_RETENTION_SIZE => nothing */ 0, /* WAL_ROLL_PERIOD => nothing */ 0, /* WAL_SEGMENT_SIZE => nothing */ 0, /* STT_TRIGGER => nothing */ 0, /* TABLE_PREFIX => nothing */ 0, /* TABLE_SUFFIX => nothing */ 0, /* KEEP_TIME_OFFSET => nothing */ 0, /* NK_COLON => nothing */ 0, /* BWLIMIT => nothing */ 0, /* START => nothing */ 0, /* TIMESTAMP => nothing */ 306, /* END => ABORT */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ 0, /* STABLE => nothing */ 0, /* COLUMN => nothing */ 0, /* MODIFY => nothing */ 0, /* RENAME => nothing */ 0, /* TAG => nothing */ 0, /* SET => nothing */ 0, /* NK_EQ => nothing */ 0, /* USING => nothing */ 0, /* TAGS => nothing */ 0, /* PRIMARY => nothing */ 306, /* KEY => ABORT */ 0, /* BOOL => nothing */ 0, /* TINYINT => nothing */ 0, /* SMALLINT => nothing */ 0, /* INT => nothing */ 0, /* INTEGER => nothing */ 0, /* BIGINT => nothing */ 0, /* FLOAT => nothing */ 0, /* DOUBLE => nothing */ 0, /* BINARY => nothing */ 0, /* NCHAR => nothing */ 0, /* UNSIGNED => nothing */ 0, /* JSON => nothing */ 0, /* VARCHAR => nothing */ 0, /* MEDIUMBLOB => nothing */ 0, /* BLOB => nothing */ 0, /* VARBINARY => nothing */ 0, /* GEOMETRY => nothing */ 0, /* DECIMAL => nothing */ 0, /* COMMENT => nothing */ 0, /* MAX_DELAY => nothing */ 0, /* WATERMARK => nothing */ 0, /* ROLLUP => nothing */ 0, /* TTL => nothing */ 0, /* SMA => nothing */ 0, /* DELETE_MARK => nothing */ 0, /* FIRST => nothing */ 0, /* LAST => nothing */ 0, /* SHOW => nothing */ 0, /* PRIVILEGES => nothing */ 0, /* DATABASES => nothing */ 0, /* TABLES => nothing */ 0, /* STABLES => nothing */ 0, /* MNODES => nothing */ 0, /* QNODES => nothing */ 0, /* ARBGROUPS => nothing */ 0, /* FUNCTIONS => nothing */ 0, /* INDEXES => nothing */ 0, /* ACCOUNTS => nothing */ 0, /* APPS => nothing */ 0, /* CONNECTIONS => nothing */ 0, /* LICENCES => nothing */ 0, /* GRANTS => nothing */ 0, /* FULL => nothing */ 0, /* LOGS => nothing */ 0, /* MACHINES => nothing */ 0, /* QUERIES => nothing */ 0, /* SCORES => nothing */ 0, /* TOPICS => nothing */ 0, /* VARIABLES => nothing */ 0, /* BNODES => nothing */ 0, /* SNODES => nothing */ 0, /* TRANSACTIONS => nothing */ 0, /* DISTRIBUTED => nothing */ 0, /* CONSUMERS => nothing */ 0, /* SUBSCRIPTIONS => nothing */ 0, /* VNODES => nothing */ 0, /* ALIVE => nothing */ 0, /* VIEWS => nothing */ 306, /* VIEW => ABORT */ 0, /* COMPACTS => nothing */ 0, /* NORMAL => nothing */ 0, /* CHILD => nothing */ 0, /* LIKE => nothing */ 0, /* TBNAME => nothing */ 0, /* QTAGS => nothing */ 0, /* AS => nothing */ 0, /* SYSTEM => nothing */ 0, /* INDEX => nothing */ 0, /* FUNCTION => nothing */ 0, /* INTERVAL => nothing */ 0, /* COUNT => nothing */ 0, /* LAST_ROW => nothing */ 0, /* META => nothing */ 0, /* ONLY => nothing */ 0, /* TOPIC => nothing */ 0, /* CONSUMER => nothing */ 0, /* GROUP => nothing */ 0, /* DESC => nothing */ 0, /* DESCRIBE => nothing */ 0, /* RESET => nothing */ 0, /* QUERY => nothing */ 0, /* CACHE => nothing */ 0, /* EXPLAIN => nothing */ 0, /* ANALYZE => nothing */ 0, /* VERBOSE => nothing */ 0, /* NK_BOOL => nothing */ 0, /* RATIO => nothing */ 0, /* NK_FLOAT => nothing */ 0, /* OUTPUTTYPE => nothing */ 0, /* AGGREGATE => nothing */ 0, /* BUFSIZE => nothing */ 0, /* LANGUAGE => nothing */ 0, /* REPLACE => nothing */ 0, /* STREAM => nothing */ 0, /* INTO => nothing */ 0, /* PAUSE => nothing */ 0, /* RESUME => nothing */ 0, /* TRIGGER => nothing */ 0, /* AT_ONCE => nothing */ 0, /* WINDOW_CLOSE => nothing */ 0, /* IGNORE => nothing */ 0, /* EXPIRED => nothing */ 0, /* FILL_HISTORY => nothing */ 0, /* UPDATE => nothing */ 0, /* SUBTABLE => nothing */ 0, /* UNTREATED => nothing */ 0, /* KILL => nothing */ 0, /* CONNECTION => nothing */ 0, /* TRANSACTION => nothing */ 0, /* BALANCE => nothing */ 0, /* VGROUP => nothing */ 0, /* LEADER => nothing */ 0, /* MERGE => nothing */ 0, /* REDISTRIBUTE => nothing */ 0, /* SPLIT => nothing */ 0, /* DELETE => nothing */ 0, /* INSERT => nothing */ 0, /* 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, /* 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 */ 306, /* AFTER => ABORT */ 306, /* ATTACH => ABORT */ 306, /* BEFORE => ABORT */ 306, /* BEGIN => ABORT */ 306, /* BITAND => ABORT */ 306, /* BITNOT => ABORT */ 306, /* BITOR => ABORT */ 306, /* BLOCKS => ABORT */ 306, /* CHANGE => ABORT */ 306, /* COMMA => ABORT */ 306, /* CONCAT => ABORT */ 306, /* CONFLICT => ABORT */ 306, /* COPY => ABORT */ 306, /* DEFERRED => ABORT */ 306, /* DELIMITERS => ABORT */ 306, /* DETACH => ABORT */ 306, /* DIVIDE => ABORT */ 306, /* DOT => ABORT */ 306, /* EACH => ABORT */ 306, /* FAIL => ABORT */ 306, /* FILE => ABORT */ 306, /* FOR => ABORT */ 306, /* GLOB => ABORT */ 306, /* ID => ABORT */ 306, /* IMMEDIATE => ABORT */ 306, /* IMPORT => ABORT */ 306, /* INITIALLY => ABORT */ 306, /* INSTEAD => ABORT */ 306, /* ISNULL => ABORT */ 306, /* MODULES => ABORT */ 306, /* NK_BITNOT => ABORT */ 306, /* NK_SEMI => ABORT */ 306, /* NOTNULL => ABORT */ 306, /* OF => ABORT */ 306, /* PLUS => ABORT */ 306, /* PRIVILEGE => ABORT */ 306, /* RAISE => ABORT */ 306, /* RESTRICT => ABORT */ 306, /* ROW => ABORT */ 306, /* SEMI => ABORT */ 306, /* STAR => ABORT */ 306, /* STATEMENT => ABORT */ 306, /* STRICT => ABORT */ 306, /* STRING => ABORT */ 306, /* TIMES => ABORT */ 306, /* VALUES => ABORT */ 306, /* VARIABLE => ABORT */ 306, /* WAL => ABORT */ }; #endif /* YYFALLBACK */ /* The following structure represents a single element of the ** parser's stack. Information stored includes: ** ** + The state number for the parser at this level of the stack. ** ** + The value of the token stored at this level of the stack. ** (In other words, the "major" token.) ** ** + The semantic value stored at this level of the stack. This is ** the information used by the action routines in the grammar. ** It is sometimes called the "minor" token. ** ** After the "shift" half of a SHIFTREDUCE action, the stateno field ** actually contains the reduce action for the second half of the ** SHIFTREDUCE. */ struct yyStackEntry { YYACTIONTYPE stateno; /* The state-number, or reduce action in SHIFTREDUCE */ YYCODETYPE major; /* The major token value. This is the code ** number for the token at this stack level */ YYMINORTYPE minor; /* The user-supplied minor token value. This ** is the value of the token */ }; typedef struct yyStackEntry yyStackEntry; /* The state of the parser is completely contained in an instance of ** the following structure */ struct yyParser { yyStackEntry *yytos; /* Pointer to top element of the stack */ #ifdef YYTRACKMAXSTACKDEPTH int yyhwm; /* High-water mark of the stack */ #endif #ifndef YYNOERRORRECOVERY int yyerrcnt; /* Shifts left before out of the error */ #endif 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 */ "USER", /* 36 */ "ENABLE", /* 37 */ "NK_INTEGER", /* 38 */ "SYSINFO", /* 39 */ "ADD", /* 40 */ "DROP", /* 41 */ "GRANT", /* 42 */ "ON", /* 43 */ "TO", /* 44 */ "REVOKE", /* 45 */ "FROM", /* 46 */ "SUBSCRIBE", /* 47 */ "READ", /* 48 */ "WRITE", /* 49 */ "NK_DOT", /* 50 */ "WITH", /* 51 */ "DNODE", /* 52 */ "PORT", /* 53 */ "DNODES", /* 54 */ "RESTORE", /* 55 */ "NK_IPTOKEN", /* 56 */ "FORCE", /* 57 */ "UNSAFE", /* 58 */ "CLUSTER", /* 59 */ "LOCAL", /* 60 */ "QNODE", /* 61 */ "BNODE", /* 62 */ "SNODE", /* 63 */ "MNODE", /* 64 */ "VNODE", /* 65 */ "DATABASE", /* 66 */ "USE", /* 67 */ "FLUSH", /* 68 */ "TRIM", /* 69 */ "COMPACT", /* 70 */ "IF", /* 71 */ "NOT", /* 72 */ "EXISTS", /* 73 */ "BUFFER", /* 74 */ "CACHEMODEL", /* 75 */ "CACHESIZE", /* 76 */ "COMP", /* 77 */ "DURATION", /* 78 */ "NK_VARIABLE", /* 79 */ "MAXROWS", /* 80 */ "MINROWS", /* 81 */ "KEEP", /* 82 */ "PAGES", /* 83 */ "PAGESIZE", /* 84 */ "TSDB_PAGESIZE", /* 85 */ "PRECISION", /* 86 */ "REPLICA", /* 87 */ "VGROUPS", /* 88 */ "SINGLE_STABLE", /* 89 */ "RETENTIONS", /* 90 */ "SCHEMALESS", /* 91 */ "WAL_LEVEL", /* 92 */ "WAL_FSYNC_PERIOD", /* 93 */ "WAL_RETENTION_PERIOD", /* 94 */ "WAL_RETENTION_SIZE", /* 95 */ "WAL_ROLL_PERIOD", /* 96 */ "WAL_SEGMENT_SIZE", /* 97 */ "STT_TRIGGER", /* 98 */ "TABLE_PREFIX", /* 99 */ "TABLE_SUFFIX", /* 100 */ "KEEP_TIME_OFFSET", /* 101 */ "NK_COLON", /* 102 */ "BWLIMIT", /* 103 */ "START", /* 104 */ "TIMESTAMP", /* 105 */ "END", /* 106 */ "TABLE", /* 107 */ "NK_LP", /* 108 */ "NK_RP", /* 109 */ "STABLE", /* 110 */ "COLUMN", /* 111 */ "MODIFY", /* 112 */ "RENAME", /* 113 */ "TAG", /* 114 */ "SET", /* 115 */ "NK_EQ", /* 116 */ "USING", /* 117 */ "TAGS", /* 118 */ "PRIMARY", /* 119 */ "KEY", /* 120 */ "BOOL", /* 121 */ "TINYINT", /* 122 */ "SMALLINT", /* 123 */ "INT", /* 124 */ "INTEGER", /* 125 */ "BIGINT", /* 126 */ "FLOAT", /* 127 */ "DOUBLE", /* 128 */ "BINARY", /* 129 */ "NCHAR", /* 130 */ "UNSIGNED", /* 131 */ "JSON", /* 132 */ "VARCHAR", /* 133 */ "MEDIUMBLOB", /* 134 */ "BLOB", /* 135 */ "VARBINARY", /* 136 */ "GEOMETRY", /* 137 */ "DECIMAL", /* 138 */ "COMMENT", /* 139 */ "MAX_DELAY", /* 140 */ "WATERMARK", /* 141 */ "ROLLUP", /* 142 */ "TTL", /* 143 */ "SMA", /* 144 */ "DELETE_MARK", /* 145 */ "FIRST", /* 146 */ "LAST", /* 147 */ "SHOW", /* 148 */ "PRIVILEGES", /* 149 */ "DATABASES", /* 150 */ "TABLES", /* 151 */ "STABLES", /* 152 */ "MNODES", /* 153 */ "QNODES", /* 154 */ "ARBGROUPS", /* 155 */ "FUNCTIONS", /* 156 */ "INDEXES", /* 157 */ "ACCOUNTS", /* 158 */ "APPS", /* 159 */ "CONNECTIONS", /* 160 */ "LICENCES", /* 161 */ "GRANTS", /* 162 */ "FULL", /* 163 */ "LOGS", /* 164 */ "MACHINES", /* 165 */ "QUERIES", /* 166 */ "SCORES", /* 167 */ "TOPICS", /* 168 */ "VARIABLES", /* 169 */ "BNODES", /* 170 */ "SNODES", /* 171 */ "TRANSACTIONS", /* 172 */ "DISTRIBUTED", /* 173 */ "CONSUMERS", /* 174 */ "SUBSCRIPTIONS", /* 175 */ "VNODES", /* 176 */ "ALIVE", /* 177 */ "VIEWS", /* 178 */ "VIEW", /* 179 */ "COMPACTS", /* 180 */ "NORMAL", /* 181 */ "CHILD", /* 182 */ "LIKE", /* 183 */ "TBNAME", /* 184 */ "QTAGS", /* 185 */ "AS", /* 186 */ "SYSTEM", /* 187 */ "INDEX", /* 188 */ "FUNCTION", /* 189 */ "INTERVAL", /* 190 */ "COUNT", /* 191 */ "LAST_ROW", /* 192 */ "META", /* 193 */ "ONLY", /* 194 */ "TOPIC", /* 195 */ "CONSUMER", /* 196 */ "GROUP", /* 197 */ "DESC", /* 198 */ "DESCRIBE", /* 199 */ "RESET", /* 200 */ "QUERY", /* 201 */ "CACHE", /* 202 */ "EXPLAIN", /* 203 */ "ANALYZE", /* 204 */ "VERBOSE", /* 205 */ "NK_BOOL", /* 206 */ "RATIO", /* 207 */ "NK_FLOAT", /* 208 */ "OUTPUTTYPE", /* 209 */ "AGGREGATE", /* 210 */ "BUFSIZE", /* 211 */ "LANGUAGE", /* 212 */ "REPLACE", /* 213 */ "STREAM", /* 214 */ "INTO", /* 215 */ "PAUSE", /* 216 */ "RESUME", /* 217 */ "TRIGGER", /* 218 */ "AT_ONCE", /* 219 */ "WINDOW_CLOSE", /* 220 */ "IGNORE", /* 221 */ "EXPIRED", /* 222 */ "FILL_HISTORY", /* 223 */ "UPDATE", /* 224 */ "SUBTABLE", /* 225 */ "UNTREATED", /* 226 */ "KILL", /* 227 */ "CONNECTION", /* 228 */ "TRANSACTION", /* 229 */ "BALANCE", /* 230 */ "VGROUP", /* 231 */ "LEADER", /* 232 */ "MERGE", /* 233 */ "REDISTRIBUTE", /* 234 */ "SPLIT", /* 235 */ "DELETE", /* 236 */ "INSERT", /* 237 */ "NK_BIN", /* 238 */ "NK_HEX", /* 239 */ "NULL", /* 240 */ "NK_QUESTION", /* 241 */ "NK_ALIAS", /* 242 */ "NK_ARROW", /* 243 */ "ROWTS", /* 244 */ "QSTART", /* 245 */ "QEND", /* 246 */ "QDURATION", /* 247 */ "WSTART", /* 248 */ "WEND", /* 249 */ "WDURATION", /* 250 */ "IROWTS", /* 251 */ "ISFILLED", /* 252 */ "CAST", /* 253 */ "NOW", /* 254 */ "TODAY", /* 255 */ "TIMEZONE", /* 256 */ "CLIENT_VERSION", /* 257 */ "SERVER_VERSION", /* 258 */ "SERVER_STATUS", /* 259 */ "CURRENT_USER", /* 260 */ "CASE", /* 261 */ "WHEN", /* 262 */ "THEN", /* 263 */ "ELSE", /* 264 */ "BETWEEN", /* 265 */ "IS", /* 266 */ "NK_LT", /* 267 */ "NK_GT", /* 268 */ "NK_LE", /* 269 */ "NK_GE", /* 270 */ "NK_NE", /* 271 */ "MATCH", /* 272 */ "NMATCH", /* 273 */ "CONTAINS", /* 274 */ "IN", /* 275 */ "JOIN", /* 276 */ "INNER", /* 277 */ "SELECT", /* 278 */ "NK_HINT", /* 279 */ "DISTINCT", /* 280 */ "WHERE", /* 281 */ "PARTITION", /* 282 */ "BY", /* 283 */ "SESSION", /* 284 */ "STATE_WINDOW", /* 285 */ "EVENT_WINDOW", /* 286 */ "COUNT_WINDOW", /* 287 */ "SLIDING", /* 288 */ "FILL", /* 289 */ "VALUE", /* 290 */ "VALUE_F", /* 291 */ "NONE", /* 292 */ "PREV", /* 293 */ "NULL_F", /* 294 */ "LINEAR", /* 295 */ "NEXT", /* 296 */ "HAVING", /* 297 */ "RANGE", /* 298 */ "EVERY", /* 299 */ "ORDER", /* 300 */ "SLIMIT", /* 301 */ "SOFFSET", /* 302 */ "LIMIT", /* 303 */ "OFFSET", /* 304 */ "ASC", /* 305 */ "NULLS", /* 306 */ "ABORT", /* 307 */ "AFTER", /* 308 */ "ATTACH", /* 309 */ "BEFORE", /* 310 */ "BEGIN", /* 311 */ "BITAND", /* 312 */ "BITNOT", /* 313 */ "BITOR", /* 314 */ "BLOCKS", /* 315 */ "CHANGE", /* 316 */ "COMMA", /* 317 */ "CONCAT", /* 318 */ "CONFLICT", /* 319 */ "COPY", /* 320 */ "DEFERRED", /* 321 */ "DELIMITERS", /* 322 */ "DETACH", /* 323 */ "DIVIDE", /* 324 */ "DOT", /* 325 */ "EACH", /* 326 */ "FAIL", /* 327 */ "FILE", /* 328 */ "FOR", /* 329 */ "GLOB", /* 330 */ "ID", /* 331 */ "IMMEDIATE", /* 332 */ "IMPORT", /* 333 */ "INITIALLY", /* 334 */ "INSTEAD", /* 335 */ "ISNULL", /* 336 */ "MODULES", /* 337 */ "NK_BITNOT", /* 338 */ "NK_SEMI", /* 339 */ "NOTNULL", /* 340 */ "OF", /* 341 */ "PLUS", /* 342 */ "PRIVILEGE", /* 343 */ "RAISE", /* 344 */ "RESTRICT", /* 345 */ "ROW", /* 346 */ "SEMI", /* 347 */ "STAR", /* 348 */ "STATEMENT", /* 349 */ "STRICT", /* 350 */ "STRING", /* 351 */ "TIMES", /* 352 */ "VALUES", /* 353 */ "VARIABLE", /* 354 */ "WAL", /* 355 */ "cmd", /* 356 */ "account_options", /* 357 */ "alter_account_options", /* 358 */ "literal", /* 359 */ "alter_account_option", /* 360 */ "ip_range_list", /* 361 */ "white_list", /* 362 */ "white_list_opt", /* 363 */ "user_name", /* 364 */ "sysinfo_opt", /* 365 */ "privileges", /* 366 */ "priv_level", /* 367 */ "with_opt", /* 368 */ "priv_type_list", /* 369 */ "priv_type", /* 370 */ "db_name", /* 371 */ "table_name", /* 372 */ "topic_name", /* 373 */ "search_condition", /* 374 */ "dnode_endpoint", /* 375 */ "force_opt", /* 376 */ "unsafe_opt", /* 377 */ "not_exists_opt", /* 378 */ "db_options", /* 379 */ "exists_opt", /* 380 */ "alter_db_options", /* 381 */ "speed_opt", /* 382 */ "start_opt", /* 383 */ "end_opt", /* 384 */ "integer_list", /* 385 */ "variable_list", /* 386 */ "retention_list", /* 387 */ "signed", /* 388 */ "alter_db_option", /* 389 */ "retention", /* 390 */ "full_table_name", /* 391 */ "column_def_list", /* 392 */ "tags_def_opt", /* 393 */ "table_options", /* 394 */ "multi_create_clause", /* 395 */ "tags_def", /* 396 */ "multi_drop_clause", /* 397 */ "alter_table_clause", /* 398 */ "alter_table_options", /* 399 */ "column_name", /* 400 */ "type_name", /* 401 */ "tags_literal", /* 402 */ "create_subtable_clause", /* 403 */ "specific_cols_opt", /* 404 */ "tags_literal_list", /* 405 */ "drop_table_clause", /* 406 */ "col_name_list", /* 407 */ "column_def", /* 408 */ "duration_list", /* 409 */ "rollup_func_list", /* 410 */ "alter_table_option", /* 411 */ "duration_literal", /* 412 */ "rollup_func_name", /* 413 */ "function_name", /* 414 */ "col_name", /* 415 */ "db_kind_opt", /* 416 */ "table_kind_db_name_cond_opt", /* 417 */ "like_pattern_opt", /* 418 */ "db_name_cond_opt", /* 419 */ "table_name_cond", /* 420 */ "from_db_opt", /* 421 */ "tag_list_opt", /* 422 */ "table_kind", /* 423 */ "tag_item", /* 424 */ "column_alias", /* 425 */ "index_options", /* 426 */ "full_index_name", /* 427 */ "index_name", /* 428 */ "func_list", /* 429 */ "sliding_opt", /* 430 */ "sma_stream_opt", /* 431 */ "func", /* 432 */ "sma_func_name", /* 433 */ "expression_list", /* 434 */ "with_meta", /* 435 */ "query_or_subquery", /* 436 */ "where_clause_opt", /* 437 */ "cgroup_name", /* 438 */ "analyze_opt", /* 439 */ "explain_options", /* 440 */ "insert_query", /* 441 */ "or_replace_opt", /* 442 */ "agg_func_opt", /* 443 */ "bufsize_opt", /* 444 */ "language_opt", /* 445 */ "full_view_name", /* 446 */ "view_name", /* 447 */ "stream_name", /* 448 */ "stream_options", /* 449 */ "col_list_opt", /* 450 */ "tag_def_or_ref_opt", /* 451 */ "subtable_opt", /* 452 */ "ignore_opt", /* 453 */ "column_stream_def_list", /* 454 */ "column_stream_def", /* 455 */ "expression", /* 456 */ "on_vgroup_id", /* 457 */ "dnode_list", /* 458 */ "literal_func", /* 459 */ "signed_literal", /* 460 */ "literal_list", /* 461 */ "table_alias", /* 462 */ "expr_or_subquery", /* 463 */ "pseudo_column", /* 464 */ "column_reference", /* 465 */ "function_expression", /* 466 */ "case_when_expression", /* 467 */ "star_func", /* 468 */ "star_func_para_list", /* 469 */ "noarg_func", /* 470 */ "other_para_list", /* 471 */ "star_func_para", /* 472 */ "when_then_list", /* 473 */ "case_when_else_opt", /* 474 */ "common_expression", /* 475 */ "when_then_expr", /* 476 */ "predicate", /* 477 */ "compare_op", /* 478 */ "in_op", /* 479 */ "in_predicate_value", /* 480 */ "boolean_value_expression", /* 481 */ "boolean_primary", /* 482 */ "from_clause_opt", /* 483 */ "table_reference_list", /* 484 */ "table_reference", /* 485 */ "table_primary", /* 486 */ "joined_table", /* 487 */ "alias_opt", /* 488 */ "subquery", /* 489 */ "parenthesized_joined_table", /* 490 */ "join_type", /* 491 */ "query_specification", /* 492 */ "hint_list", /* 493 */ "set_quantifier_opt", /* 494 */ "tag_mode_opt", /* 495 */ "select_list", /* 496 */ "partition_by_clause_opt", /* 497 */ "range_opt", /* 498 */ "every_opt", /* 499 */ "fill_opt", /* 500 */ "twindow_clause_opt", /* 501 */ "group_by_clause_opt", /* 502 */ "having_clause_opt", /* 503 */ "select_item", /* 504 */ "partition_list", /* 505 */ "partition_item", /* 506 */ "interval_sliding_duration_literal", /* 507 */ "fill_mode", /* 508 */ "group_by_list", /* 509 */ "query_expression", /* 510 */ "query_simple", /* 511 */ "order_by_clause_opt", /* 512 */ "slimit_clause_opt", /* 513 */ "limit_clause_opt", /* 514 */ "union_query_expression", /* 515 */ "query_simple_or_subquery", /* 516 */ "sort_specification_list", /* 517 */ "sort_specification", /* 518 */ "ordering_specification_opt", /* 519 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ #ifndef NDEBUG /* For tracing reduce actions, the names of all rules are required. */ static const char *const yyRuleName[] = { /* 0 */ "cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options", /* 1 */ "cmd ::= ALTER ACCOUNT NK_ID alter_account_options", /* 2 */ "account_options ::=", /* 3 */ "account_options ::= account_options PPS literal", /* 4 */ "account_options ::= account_options TSERIES literal", /* 5 */ "account_options ::= account_options STORAGE literal", /* 6 */ "account_options ::= account_options STREAMS literal", /* 7 */ "account_options ::= account_options QTIME literal", /* 8 */ "account_options ::= account_options DBS literal", /* 9 */ "account_options ::= account_options USERS literal", /* 10 */ "account_options ::= account_options CONNS literal", /* 11 */ "account_options ::= account_options STATE literal", /* 12 */ "alter_account_options ::= alter_account_option", /* 13 */ "alter_account_options ::= alter_account_options alter_account_option", /* 14 */ "alter_account_option ::= PASS literal", /* 15 */ "alter_account_option ::= PPS literal", /* 16 */ "alter_account_option ::= TSERIES literal", /* 17 */ "alter_account_option ::= STORAGE literal", /* 18 */ "alter_account_option ::= STREAMS literal", /* 19 */ "alter_account_option ::= QTIME literal", /* 20 */ "alter_account_option ::= DBS literal", /* 21 */ "alter_account_option ::= USERS literal", /* 22 */ "alter_account_option ::= CONNS literal", /* 23 */ "alter_account_option ::= STATE literal", /* 24 */ "ip_range_list ::= NK_STRING", /* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING", /* 26 */ "white_list ::= HOST ip_range_list", /* 27 */ "white_list_opt ::=", /* 28 */ "white_list_opt ::= white_list", /* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt", /* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING", /* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER", /* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER", /* 33 */ "cmd ::= ALTER USER user_name ADD white_list", /* 34 */ "cmd ::= ALTER USER user_name DROP white_list", /* 35 */ "cmd ::= DROP USER user_name", /* 36 */ "sysinfo_opt ::=", /* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER", /* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name", /* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name", /* 40 */ "privileges ::= ALL", /* 41 */ "privileges ::= priv_type_list", /* 42 */ "privileges ::= SUBSCRIBE", /* 43 */ "priv_type_list ::= priv_type", /* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", /* 45 */ "priv_type ::= READ", /* 46 */ "priv_type ::= WRITE", /* 47 */ "priv_type ::= ALTER", /* 48 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", /* 49 */ "priv_level ::= db_name NK_DOT NK_STAR", /* 50 */ "priv_level ::= db_name NK_DOT table_name", /* 51 */ "priv_level ::= topic_name", /* 52 */ "with_opt ::=", /* 53 */ "with_opt ::= WITH search_condition", /* 54 */ "cmd ::= CREATE DNODE dnode_endpoint", /* 55 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", /* 56 */ "cmd ::= DROP DNODE NK_INTEGER force_opt", /* 57 */ "cmd ::= DROP DNODE dnode_endpoint force_opt", /* 58 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt", /* 59 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt", /* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", /* 61 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", /* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING", /* 63 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", /* 64 */ "cmd ::= RESTORE DNODE NK_INTEGER", /* 65 */ "dnode_endpoint ::= NK_STRING", /* 66 */ "dnode_endpoint ::= NK_ID", /* 67 */ "dnode_endpoint ::= NK_IPTOKEN", /* 68 */ "force_opt ::=", /* 69 */ "force_opt ::= FORCE", /* 70 */ "unsafe_opt ::= UNSAFE", /* 71 */ "cmd ::= ALTER CLUSTER NK_STRING", /* 72 */ "cmd ::= ALTER CLUSTER NK_STRING NK_STRING", /* 73 */ "cmd ::= ALTER LOCAL NK_STRING", /* 74 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", /* 75 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", /* 76 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", /* 77 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER", /* 78 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", /* 79 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", /* 80 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", /* 81 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", /* 82 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", /* 83 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", /* 84 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER", /* 85 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER", /* 86 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", /* 87 */ "cmd ::= DROP DATABASE exists_opt db_name", /* 88 */ "cmd ::= USE db_name", /* 89 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 90 */ "cmd ::= FLUSH DATABASE db_name", /* 91 */ "cmd ::= TRIM DATABASE db_name speed_opt", /* 92 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt", /* 93 */ "not_exists_opt ::= IF NOT EXISTS", /* 94 */ "not_exists_opt ::=", /* 95 */ "exists_opt ::= IF EXISTS", /* 96 */ "exists_opt ::=", /* 97 */ "db_options ::=", /* 98 */ "db_options ::= db_options BUFFER NK_INTEGER", /* 99 */ "db_options ::= db_options CACHEMODEL NK_STRING", /* 100 */ "db_options ::= db_options CACHESIZE NK_INTEGER", /* 101 */ "db_options ::= db_options COMP NK_INTEGER", /* 102 */ "db_options ::= db_options DURATION NK_INTEGER", /* 103 */ "db_options ::= db_options DURATION NK_VARIABLE", /* 104 */ "db_options ::= db_options MAXROWS NK_INTEGER", /* 105 */ "db_options ::= db_options MINROWS NK_INTEGER", /* 106 */ "db_options ::= db_options KEEP integer_list", /* 107 */ "db_options ::= db_options KEEP variable_list", /* 108 */ "db_options ::= db_options PAGES NK_INTEGER", /* 109 */ "db_options ::= db_options PAGESIZE NK_INTEGER", /* 110 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", /* 111 */ "db_options ::= db_options PRECISION NK_STRING", /* 112 */ "db_options ::= db_options REPLICA NK_INTEGER", /* 113 */ "db_options ::= db_options VGROUPS NK_INTEGER", /* 114 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", /* 115 */ "db_options ::= db_options RETENTIONS retention_list", /* 116 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", /* 117 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", /* 118 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", /* 119 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", /* 120 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 121 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", /* 122 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 123 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", /* 124 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", /* 125 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", /* 126 */ "db_options ::= db_options TABLE_PREFIX signed", /* 127 */ "db_options ::= db_options TABLE_SUFFIX signed", /* 128 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER", /* 129 */ "alter_db_options ::= alter_db_option", /* 130 */ "alter_db_options ::= alter_db_options alter_db_option", /* 131 */ "alter_db_option ::= BUFFER NK_INTEGER", /* 132 */ "alter_db_option ::= CACHEMODEL NK_STRING", /* 133 */ "alter_db_option ::= CACHESIZE NK_INTEGER", /* 134 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", /* 135 */ "alter_db_option ::= KEEP integer_list", /* 136 */ "alter_db_option ::= KEEP variable_list", /* 137 */ "alter_db_option ::= PAGES NK_INTEGER", /* 138 */ "alter_db_option ::= REPLICA NK_INTEGER", /* 139 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", /* 140 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", /* 141 */ "alter_db_option ::= MINROWS NK_INTEGER", /* 142 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER", /* 143 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 144 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER", /* 145 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 146 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER", /* 147 */ "integer_list ::= NK_INTEGER", /* 148 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", /* 149 */ "variable_list ::= NK_VARIABLE", /* 150 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", /* 151 */ "retention_list ::= retention", /* 152 */ "retention_list ::= retention_list NK_COMMA retention", /* 153 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", /* 154 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE", /* 155 */ "speed_opt ::=", /* 156 */ "speed_opt ::= BWLIMIT NK_INTEGER", /* 157 */ "start_opt ::=", /* 158 */ "start_opt ::= START WITH NK_INTEGER", /* 159 */ "start_opt ::= START WITH NK_STRING", /* 160 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", /* 161 */ "end_opt ::=", /* 162 */ "end_opt ::= END WITH NK_INTEGER", /* 163 */ "end_opt ::= END WITH NK_STRING", /* 164 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", /* 165 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", /* 166 */ "cmd ::= CREATE TABLE multi_create_clause", /* 167 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", /* 168 */ "cmd ::= DROP TABLE multi_drop_clause", /* 169 */ "cmd ::= DROP STABLE exists_opt full_table_name", /* 170 */ "cmd ::= ALTER TABLE alter_table_clause", /* 171 */ "cmd ::= ALTER STABLE alter_table_clause", /* 172 */ "alter_table_clause ::= full_table_name alter_table_options", /* 173 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", /* 174 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", /* 175 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", /* 176 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", /* 177 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", /* 178 */ "alter_table_clause ::= full_table_name DROP TAG column_name", /* 179 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", /* 180 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", /* 181 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal", /* 182 */ "multi_create_clause ::= create_subtable_clause", /* 183 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", /* 184 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options", /* 185 */ "multi_drop_clause ::= drop_table_clause", /* 186 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", /* 187 */ "drop_table_clause ::= exists_opt full_table_name", /* 188 */ "specific_cols_opt ::=", /* 189 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", /* 190 */ "full_table_name ::= table_name", /* 191 */ "full_table_name ::= db_name NK_DOT table_name", /* 192 */ "column_def_list ::= column_def", /* 193 */ "column_def_list ::= column_def_list NK_COMMA column_def", /* 194 */ "column_def ::= column_name type_name", /* 195 */ "column_def ::= column_name type_name PRIMARY KEY", /* 196 */ "type_name ::= BOOL", /* 197 */ "type_name ::= TINYINT", /* 198 */ "type_name ::= SMALLINT", /* 199 */ "type_name ::= INT", /* 200 */ "type_name ::= INTEGER", /* 201 */ "type_name ::= BIGINT", /* 202 */ "type_name ::= FLOAT", /* 203 */ "type_name ::= DOUBLE", /* 204 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", /* 205 */ "type_name ::= TIMESTAMP", /* 206 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", /* 207 */ "type_name ::= TINYINT UNSIGNED", /* 208 */ "type_name ::= SMALLINT UNSIGNED", /* 209 */ "type_name ::= INT UNSIGNED", /* 210 */ "type_name ::= BIGINT UNSIGNED", /* 211 */ "type_name ::= JSON", /* 212 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", /* 213 */ "type_name ::= MEDIUMBLOB", /* 214 */ "type_name ::= BLOB", /* 215 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", /* 216 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", /* 217 */ "type_name ::= DECIMAL", /* 218 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 219 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 220 */ "tags_def_opt ::=", /* 221 */ "tags_def_opt ::= tags_def", /* 222 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", /* 223 */ "table_options ::=", /* 224 */ "table_options ::= table_options COMMENT NK_STRING", /* 225 */ "table_options ::= table_options MAX_DELAY duration_list", /* 226 */ "table_options ::= table_options WATERMARK duration_list", /* 227 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", /* 228 */ "table_options ::= table_options TTL NK_INTEGER", /* 229 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", /* 230 */ "table_options ::= table_options DELETE_MARK duration_list", /* 231 */ "alter_table_options ::= alter_table_option", /* 232 */ "alter_table_options ::= alter_table_options alter_table_option", /* 233 */ "alter_table_option ::= COMMENT NK_STRING", /* 234 */ "alter_table_option ::= TTL NK_INTEGER", /* 235 */ "duration_list ::= duration_literal", /* 236 */ "duration_list ::= duration_list NK_COMMA duration_literal", /* 237 */ "rollup_func_list ::= rollup_func_name", /* 238 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", /* 239 */ "rollup_func_name ::= function_name", /* 240 */ "rollup_func_name ::= FIRST", /* 241 */ "rollup_func_name ::= LAST", /* 242 */ "col_name_list ::= col_name", /* 243 */ "col_name_list ::= col_name_list NK_COMMA col_name", /* 244 */ "col_name ::= column_name", /* 245 */ "cmd ::= SHOW DNODES", /* 246 */ "cmd ::= SHOW USERS", /* 247 */ "cmd ::= SHOW USER PRIVILEGES", /* 248 */ "cmd ::= SHOW db_kind_opt DATABASES", /* 249 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", /* 250 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", /* 251 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", /* 252 */ "cmd ::= SHOW MNODES", /* 253 */ "cmd ::= SHOW QNODES", /* 254 */ "cmd ::= SHOW ARBGROUPS", /* 255 */ "cmd ::= SHOW FUNCTIONS", /* 256 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", /* 257 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", /* 258 */ "cmd ::= SHOW STREAMS", /* 259 */ "cmd ::= SHOW ACCOUNTS", /* 260 */ "cmd ::= SHOW APPS", /* 261 */ "cmd ::= SHOW CONNECTIONS", /* 262 */ "cmd ::= SHOW LICENCES", /* 263 */ "cmd ::= SHOW GRANTS", /* 264 */ "cmd ::= SHOW GRANTS FULL", /* 265 */ "cmd ::= SHOW GRANTS LOGS", /* 266 */ "cmd ::= SHOW CLUSTER MACHINES", /* 267 */ "cmd ::= SHOW CREATE DATABASE db_name", /* 268 */ "cmd ::= SHOW CREATE TABLE full_table_name", /* 269 */ "cmd ::= SHOW CREATE STABLE full_table_name", /* 270 */ "cmd ::= SHOW QUERIES", /* 271 */ "cmd ::= SHOW SCORES", /* 272 */ "cmd ::= SHOW TOPICS", /* 273 */ "cmd ::= SHOW VARIABLES", /* 274 */ "cmd ::= SHOW CLUSTER VARIABLES", /* 275 */ "cmd ::= SHOW LOCAL VARIABLES", /* 276 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", /* 277 */ "cmd ::= SHOW BNODES", /* 278 */ "cmd ::= SHOW SNODES", /* 279 */ "cmd ::= SHOW CLUSTER", /* 280 */ "cmd ::= SHOW TRANSACTIONS", /* 281 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", /* 282 */ "cmd ::= SHOW CONSUMERS", /* 283 */ "cmd ::= SHOW SUBSCRIPTIONS", /* 284 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", /* 285 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", /* 286 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", /* 287 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", /* 288 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", /* 289 */ "cmd ::= SHOW VNODES", /* 290 */ "cmd ::= SHOW db_name_cond_opt ALIVE", /* 291 */ "cmd ::= SHOW CLUSTER ALIVE", /* 292 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt", /* 293 */ "cmd ::= SHOW CREATE VIEW full_table_name", /* 294 */ "cmd ::= SHOW COMPACTS", /* 295 */ "cmd ::= SHOW COMPACT NK_INTEGER", /* 296 */ "table_kind_db_name_cond_opt ::=", /* 297 */ "table_kind_db_name_cond_opt ::= table_kind", /* 298 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", /* 299 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", /* 300 */ "table_kind ::= NORMAL", /* 301 */ "table_kind ::= CHILD", /* 302 */ "db_name_cond_opt ::=", /* 303 */ "db_name_cond_opt ::= db_name NK_DOT", /* 304 */ "like_pattern_opt ::=", /* 305 */ "like_pattern_opt ::= LIKE NK_STRING", /* 306 */ "table_name_cond ::= table_name", /* 307 */ "from_db_opt ::=", /* 308 */ "from_db_opt ::= FROM db_name", /* 309 */ "tag_list_opt ::=", /* 310 */ "tag_list_opt ::= tag_item", /* 311 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", /* 312 */ "tag_item ::= TBNAME", /* 313 */ "tag_item ::= QTAGS", /* 314 */ "tag_item ::= column_name", /* 315 */ "tag_item ::= column_name column_alias", /* 316 */ "tag_item ::= column_name AS column_alias", /* 317 */ "db_kind_opt ::=", /* 318 */ "db_kind_opt ::= USER", /* 319 */ "db_kind_opt ::= SYSTEM", /* 320 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", /* 321 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", /* 322 */ "cmd ::= DROP INDEX exists_opt full_index_name", /* 323 */ "full_index_name ::= index_name", /* 324 */ "full_index_name ::= db_name NK_DOT index_name", /* 325 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", /* 326 */ "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", /* 327 */ "func_list ::= func", /* 328 */ "func_list ::= func_list NK_COMMA func", /* 329 */ "func ::= sma_func_name NK_LP expression_list NK_RP", /* 330 */ "sma_func_name ::= function_name", /* 331 */ "sma_func_name ::= COUNT", /* 332 */ "sma_func_name ::= FIRST", /* 333 */ "sma_func_name ::= LAST", /* 334 */ "sma_func_name ::= LAST_ROW", /* 335 */ "sma_stream_opt ::=", /* 336 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", /* 337 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", /* 338 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", /* 339 */ "with_meta ::= AS", /* 340 */ "with_meta ::= WITH META AS", /* 341 */ "with_meta ::= ONLY META AS", /* 342 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", /* 343 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", /* 344 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", /* 345 */ "cmd ::= DROP TOPIC exists_opt topic_name", /* 346 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", /* 347 */ "cmd ::= DESC full_table_name", /* 348 */ "cmd ::= DESCRIBE full_table_name", /* 349 */ "cmd ::= RESET QUERY CACHE", /* 350 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", /* 351 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", /* 352 */ "analyze_opt ::=", /* 353 */ "analyze_opt ::= ANALYZE", /* 354 */ "explain_options ::=", /* 355 */ "explain_options ::= explain_options VERBOSE NK_BOOL", /* 356 */ "explain_options ::= explain_options RATIO NK_FLOAT", /* 357 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", /* 358 */ "cmd ::= DROP FUNCTION exists_opt function_name", /* 359 */ "agg_func_opt ::=", /* 360 */ "agg_func_opt ::= AGGREGATE", /* 361 */ "bufsize_opt ::=", /* 362 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", /* 363 */ "language_opt ::=", /* 364 */ "language_opt ::= LANGUAGE NK_STRING", /* 365 */ "or_replace_opt ::=", /* 366 */ "or_replace_opt ::= OR REPLACE", /* 367 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", /* 368 */ "cmd ::= DROP VIEW exists_opt full_view_name", /* 369 */ "full_view_name ::= view_name", /* 370 */ "full_view_name ::= db_name NK_DOT view_name", /* 371 */ "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", /* 372 */ "cmd ::= DROP STREAM exists_opt stream_name", /* 373 */ "cmd ::= PAUSE STREAM exists_opt stream_name", /* 374 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", /* 375 */ "col_list_opt ::=", /* 376 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP", /* 377 */ "column_stream_def_list ::= column_stream_def", /* 378 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def", /* 379 */ "column_stream_def ::= column_name", /* 380 */ "column_stream_def ::= column_name PRIMARY KEY", /* 381 */ "tag_def_or_ref_opt ::=", /* 382 */ "tag_def_or_ref_opt ::= tags_def", /* 383 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP", /* 384 */ "stream_options ::=", /* 385 */ "stream_options ::= stream_options TRIGGER AT_ONCE", /* 386 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", /* 387 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", /* 388 */ "stream_options ::= stream_options WATERMARK duration_literal", /* 389 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", /* 390 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", /* 391 */ "stream_options ::= stream_options DELETE_MARK duration_literal", /* 392 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", /* 393 */ "subtable_opt ::=", /* 394 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", /* 395 */ "ignore_opt ::=", /* 396 */ "ignore_opt ::= IGNORE UNTREATED", /* 397 */ "cmd ::= KILL CONNECTION NK_INTEGER", /* 398 */ "cmd ::= KILL QUERY NK_STRING", /* 399 */ "cmd ::= KILL TRANSACTION NK_INTEGER", /* 400 */ "cmd ::= KILL COMPACT NK_INTEGER", /* 401 */ "cmd ::= BALANCE VGROUP", /* 402 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", /* 403 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", /* 404 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", /* 405 */ "cmd ::= SPLIT VGROUP NK_INTEGER", /* 406 */ "on_vgroup_id ::=", /* 407 */ "on_vgroup_id ::= ON NK_INTEGER", /* 408 */ "dnode_list ::= DNODE NK_INTEGER", /* 409 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", /* 410 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 411 */ "cmd ::= query_or_subquery", /* 412 */ "cmd ::= insert_query", /* 413 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", /* 414 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", /* 415 */ "tags_literal ::= NK_INTEGER", /* 416 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal", /* 417 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal", /* 418 */ "tags_literal ::= NK_PLUS NK_INTEGER", /* 419 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal", /* 420 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal", /* 421 */ "tags_literal ::= NK_MINUS NK_INTEGER", /* 422 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal", /* 423 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal", /* 424 */ "tags_literal ::= NK_FLOAT", /* 425 */ "tags_literal ::= NK_PLUS NK_FLOAT", /* 426 */ "tags_literal ::= NK_MINUS NK_FLOAT", /* 427 */ "tags_literal ::= NK_BIN", /* 428 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal", /* 429 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal", /* 430 */ "tags_literal ::= NK_PLUS NK_BIN", /* 431 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal", /* 432 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal", /* 433 */ "tags_literal ::= NK_MINUS NK_BIN", /* 434 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal", /* 435 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal", /* 436 */ "tags_literal ::= NK_HEX", /* 437 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal", /* 438 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal", /* 439 */ "tags_literal ::= NK_PLUS NK_HEX", /* 440 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal", /* 441 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal", /* 442 */ "tags_literal ::= NK_MINUS NK_HEX", /* 443 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal", /* 444 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal", /* 445 */ "tags_literal ::= NK_STRING", /* 446 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal", /* 447 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal", /* 448 */ "tags_literal ::= NK_BOOL", /* 449 */ "tags_literal ::= NULL", /* 450 */ "tags_literal ::= literal_func", /* 451 */ "tags_literal ::= literal_func NK_PLUS duration_literal", /* 452 */ "tags_literal ::= literal_func NK_MINUS duration_literal", /* 453 */ "tags_literal_list ::= tags_literal", /* 454 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal", /* 455 */ "literal ::= NK_INTEGER", /* 456 */ "literal ::= NK_FLOAT", /* 457 */ "literal ::= NK_STRING", /* 458 */ "literal ::= NK_BOOL", /* 459 */ "literal ::= TIMESTAMP NK_STRING", /* 460 */ "literal ::= duration_literal", /* 461 */ "literal ::= NULL", /* 462 */ "literal ::= NK_QUESTION", /* 463 */ "duration_literal ::= NK_VARIABLE", /* 464 */ "signed ::= NK_INTEGER", /* 465 */ "signed ::= NK_PLUS NK_INTEGER", /* 466 */ "signed ::= NK_MINUS NK_INTEGER", /* 467 */ "signed ::= NK_FLOAT", /* 468 */ "signed ::= NK_PLUS NK_FLOAT", /* 469 */ "signed ::= NK_MINUS NK_FLOAT", /* 470 */ "signed_literal ::= signed", /* 471 */ "signed_literal ::= NK_STRING", /* 472 */ "signed_literal ::= NK_BOOL", /* 473 */ "signed_literal ::= TIMESTAMP NK_STRING", /* 474 */ "signed_literal ::= duration_literal", /* 475 */ "signed_literal ::= NULL", /* 476 */ "signed_literal ::= literal_func", /* 477 */ "signed_literal ::= NK_QUESTION", /* 478 */ "literal_list ::= signed_literal", /* 479 */ "literal_list ::= literal_list NK_COMMA signed_literal", /* 480 */ "db_name ::= NK_ID", /* 481 */ "table_name ::= NK_ID", /* 482 */ "column_name ::= NK_ID", /* 483 */ "function_name ::= NK_ID", /* 484 */ "view_name ::= NK_ID", /* 485 */ "table_alias ::= NK_ID", /* 486 */ "column_alias ::= NK_ID", /* 487 */ "column_alias ::= NK_ALIAS", /* 488 */ "user_name ::= NK_ID", /* 489 */ "topic_name ::= NK_ID", /* 490 */ "stream_name ::= NK_ID", /* 491 */ "cgroup_name ::= NK_ID", /* 492 */ "index_name ::= NK_ID", /* 493 */ "expr_or_subquery ::= expression", /* 494 */ "expression ::= literal", /* 495 */ "expression ::= pseudo_column", /* 496 */ "expression ::= column_reference", /* 497 */ "expression ::= function_expression", /* 498 */ "expression ::= case_when_expression", /* 499 */ "expression ::= NK_LP expression NK_RP", /* 500 */ "expression ::= NK_PLUS expr_or_subquery", /* 501 */ "expression ::= NK_MINUS expr_or_subquery", /* 502 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", /* 503 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", /* 504 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", /* 505 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", /* 506 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", /* 507 */ "expression ::= column_reference NK_ARROW NK_STRING", /* 508 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", /* 509 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", /* 510 */ "expression_list ::= expr_or_subquery", /* 511 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", /* 512 */ "column_reference ::= column_name", /* 513 */ "column_reference ::= table_name NK_DOT column_name", /* 514 */ "column_reference ::= NK_ALIAS", /* 515 */ "column_reference ::= table_name NK_DOT NK_ALIAS", /* 516 */ "pseudo_column ::= ROWTS", /* 517 */ "pseudo_column ::= TBNAME", /* 518 */ "pseudo_column ::= table_name NK_DOT TBNAME", /* 519 */ "pseudo_column ::= QSTART", /* 520 */ "pseudo_column ::= QEND", /* 521 */ "pseudo_column ::= QDURATION", /* 522 */ "pseudo_column ::= WSTART", /* 523 */ "pseudo_column ::= WEND", /* 524 */ "pseudo_column ::= WDURATION", /* 525 */ "pseudo_column ::= IROWTS", /* 526 */ "pseudo_column ::= ISFILLED", /* 527 */ "pseudo_column ::= QTAGS", /* 528 */ "function_expression ::= function_name NK_LP expression_list NK_RP", /* 529 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", /* 530 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", /* 531 */ "function_expression ::= literal_func", /* 532 */ "literal_func ::= noarg_func NK_LP NK_RP", /* 533 */ "literal_func ::= NOW", /* 534 */ "literal_func ::= TODAY", /* 535 */ "noarg_func ::= NOW", /* 536 */ "noarg_func ::= TODAY", /* 537 */ "noarg_func ::= TIMEZONE", /* 538 */ "noarg_func ::= DATABASE", /* 539 */ "noarg_func ::= CLIENT_VERSION", /* 540 */ "noarg_func ::= SERVER_VERSION", /* 541 */ "noarg_func ::= SERVER_STATUS", /* 542 */ "noarg_func ::= CURRENT_USER", /* 543 */ "noarg_func ::= USER", /* 544 */ "star_func ::= COUNT", /* 545 */ "star_func ::= FIRST", /* 546 */ "star_func ::= LAST", /* 547 */ "star_func ::= LAST_ROW", /* 548 */ "star_func_para_list ::= NK_STAR", /* 549 */ "star_func_para_list ::= other_para_list", /* 550 */ "other_para_list ::= star_func_para", /* 551 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", /* 552 */ "star_func_para ::= expr_or_subquery", /* 553 */ "star_func_para ::= table_name NK_DOT NK_STAR", /* 554 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", /* 555 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", /* 556 */ "when_then_list ::= when_then_expr", /* 557 */ "when_then_list ::= when_then_list when_then_expr", /* 558 */ "when_then_expr ::= WHEN common_expression THEN common_expression", /* 559 */ "case_when_else_opt ::=", /* 560 */ "case_when_else_opt ::= ELSE common_expression", /* 561 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", /* 562 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", /* 563 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", /* 564 */ "predicate ::= expr_or_subquery IS NULL", /* 565 */ "predicate ::= expr_or_subquery IS NOT NULL", /* 566 */ "predicate ::= expr_or_subquery in_op in_predicate_value", /* 567 */ "compare_op ::= NK_LT", /* 568 */ "compare_op ::= NK_GT", /* 569 */ "compare_op ::= NK_LE", /* 570 */ "compare_op ::= NK_GE", /* 571 */ "compare_op ::= NK_NE", /* 572 */ "compare_op ::= NK_EQ", /* 573 */ "compare_op ::= LIKE", /* 574 */ "compare_op ::= NOT LIKE", /* 575 */ "compare_op ::= MATCH", /* 576 */ "compare_op ::= NMATCH", /* 577 */ "compare_op ::= CONTAINS", /* 578 */ "in_op ::= IN", /* 579 */ "in_op ::= NOT IN", /* 580 */ "in_predicate_value ::= NK_LP literal_list NK_RP", /* 581 */ "boolean_value_expression ::= boolean_primary", /* 582 */ "boolean_value_expression ::= NOT boolean_primary", /* 583 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 584 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 585 */ "boolean_primary ::= predicate", /* 586 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 587 */ "common_expression ::= expr_or_subquery", /* 588 */ "common_expression ::= boolean_value_expression", /* 589 */ "from_clause_opt ::=", /* 590 */ "from_clause_opt ::= FROM table_reference_list", /* 591 */ "table_reference_list ::= table_reference", /* 592 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 593 */ "table_reference ::= table_primary", /* 594 */ "table_reference ::= joined_table", /* 595 */ "table_primary ::= table_name alias_opt", /* 596 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 597 */ "table_primary ::= subquery alias_opt", /* 598 */ "table_primary ::= parenthesized_joined_table", /* 599 */ "alias_opt ::=", /* 600 */ "alias_opt ::= table_alias", /* 601 */ "alias_opt ::= AS table_alias", /* 602 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 603 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 604 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 605 */ "join_type ::=", /* 606 */ "join_type ::= INNER", /* 607 */ "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", /* 608 */ "hint_list ::=", /* 609 */ "hint_list ::= NK_HINT", /* 610 */ "tag_mode_opt ::=", /* 611 */ "tag_mode_opt ::= TAGS", /* 612 */ "set_quantifier_opt ::=", /* 613 */ "set_quantifier_opt ::= DISTINCT", /* 614 */ "set_quantifier_opt ::= ALL", /* 615 */ "select_list ::= select_item", /* 616 */ "select_list ::= select_list NK_COMMA select_item", /* 617 */ "select_item ::= NK_STAR", /* 618 */ "select_item ::= common_expression", /* 619 */ "select_item ::= common_expression column_alias", /* 620 */ "select_item ::= common_expression AS column_alias", /* 621 */ "select_item ::= table_name NK_DOT NK_STAR", /* 622 */ "where_clause_opt ::=", /* 623 */ "where_clause_opt ::= WHERE search_condition", /* 624 */ "partition_by_clause_opt ::=", /* 625 */ "partition_by_clause_opt ::= PARTITION BY partition_list", /* 626 */ "partition_list ::= partition_item", /* 627 */ "partition_list ::= partition_list NK_COMMA partition_item", /* 628 */ "partition_item ::= expr_or_subquery", /* 629 */ "partition_item ::= expr_or_subquery column_alias", /* 630 */ "partition_item ::= expr_or_subquery AS column_alias", /* 631 */ "twindow_clause_opt ::=", /* 632 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", /* 633 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", /* 634 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", /* 635 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", /* 636 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", /* 637 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", /* 638 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 639 */ "sliding_opt ::=", /* 640 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", /* 641 */ "interval_sliding_duration_literal ::= NK_VARIABLE", /* 642 */ "interval_sliding_duration_literal ::= NK_STRING", /* 643 */ "interval_sliding_duration_literal ::= NK_INTEGER", /* 644 */ "fill_opt ::=", /* 645 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 646 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", /* 647 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", /* 648 */ "fill_mode ::= NONE", /* 649 */ "fill_mode ::= PREV", /* 650 */ "fill_mode ::= NULL", /* 651 */ "fill_mode ::= NULL_F", /* 652 */ "fill_mode ::= LINEAR", /* 653 */ "fill_mode ::= NEXT", /* 654 */ "group_by_clause_opt ::=", /* 655 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 656 */ "group_by_list ::= expr_or_subquery", /* 657 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", /* 658 */ "having_clause_opt ::=", /* 659 */ "having_clause_opt ::= HAVING search_condition", /* 660 */ "range_opt ::=", /* 661 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", /* 662 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", /* 663 */ "every_opt ::=", /* 664 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", /* 665 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 666 */ "query_simple ::= query_specification", /* 667 */ "query_simple ::= union_query_expression", /* 668 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", /* 669 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", /* 670 */ "query_simple_or_subquery ::= query_simple", /* 671 */ "query_simple_or_subquery ::= subquery", /* 672 */ "query_or_subquery ::= query_expression", /* 673 */ "query_or_subquery ::= subquery", /* 674 */ "order_by_clause_opt ::=", /* 675 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 676 */ "slimit_clause_opt ::=", /* 677 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 678 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 679 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 680 */ "limit_clause_opt ::=", /* 681 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 682 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 683 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 684 */ "subquery ::= NK_LP query_expression NK_RP", /* 685 */ "subquery ::= NK_LP subquery NK_RP", /* 686 */ "search_condition ::= common_expression", /* 687 */ "sort_specification_list ::= sort_specification", /* 688 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 689 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", /* 690 */ "ordering_specification_opt ::=", /* 691 */ "ordering_specification_opt ::= ASC", /* 692 */ "ordering_specification_opt ::= DESC", /* 693 */ "null_ordering_opt ::=", /* 694 */ "null_ordering_opt ::= NULLS FIRST", /* 695 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ #if YYSTACKDEPTH<=0 /* ** Try to increase the size of the parser stack. Return the number ** of errors. Return 0 on success. */ static int yyGrowStack(yyParser *p){ int newSize; int idx; yyStackEntry *pNew; newSize = p->yystksz*2 + 100; idx = p->yytos ? (int)(p->yytos - p->yystack) : 0; if( p->yystack==&p->yystk0 ){ 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 355: /* cmd */ case 358: /* literal */ case 367: /* with_opt */ case 373: /* search_condition */ case 378: /* db_options */ case 380: /* alter_db_options */ case 382: /* start_opt */ case 383: /* end_opt */ case 387: /* signed */ case 389: /* retention */ case 390: /* full_table_name */ case 393: /* table_options */ case 397: /* alter_table_clause */ case 398: /* alter_table_options */ case 401: /* tags_literal */ case 402: /* create_subtable_clause */ case 405: /* drop_table_clause */ case 407: /* column_def */ case 411: /* duration_literal */ case 412: /* rollup_func_name */ case 414: /* col_name */ case 417: /* like_pattern_opt */ case 418: /* db_name_cond_opt */ case 419: /* table_name_cond */ case 420: /* from_db_opt */ case 423: /* tag_item */ case 425: /* index_options */ case 426: /* full_index_name */ case 429: /* sliding_opt */ case 430: /* sma_stream_opt */ case 431: /* func */ case 435: /* query_or_subquery */ case 436: /* where_clause_opt */ case 439: /* explain_options */ case 440: /* insert_query */ case 445: /* full_view_name */ case 448: /* stream_options */ case 451: /* subtable_opt */ case 454: /* column_stream_def */ case 455: /* expression */ case 458: /* literal_func */ case 459: /* signed_literal */ case 462: /* expr_or_subquery */ case 463: /* pseudo_column */ case 464: /* column_reference */ case 465: /* function_expression */ case 466: /* case_when_expression */ case 471: /* star_func_para */ case 473: /* case_when_else_opt */ case 474: /* common_expression */ case 475: /* when_then_expr */ case 476: /* predicate */ case 479: /* in_predicate_value */ case 480: /* boolean_value_expression */ case 481: /* boolean_primary */ case 482: /* from_clause_opt */ case 483: /* table_reference_list */ case 484: /* table_reference */ case 485: /* table_primary */ case 486: /* joined_table */ case 488: /* subquery */ case 489: /* parenthesized_joined_table */ case 491: /* query_specification */ case 497: /* range_opt */ case 498: /* every_opt */ case 499: /* fill_opt */ case 500: /* twindow_clause_opt */ case 502: /* having_clause_opt */ case 503: /* select_item */ case 505: /* partition_item */ case 506: /* interval_sliding_duration_literal */ case 509: /* query_expression */ case 510: /* query_simple */ case 512: /* slimit_clause_opt */ case 513: /* limit_clause_opt */ case 514: /* union_query_expression */ case 515: /* query_simple_or_subquery */ case 517: /* sort_specification */ { nodesDestroyNode((yypminor->yy392)); } break; case 356: /* account_options */ case 357: /* alter_account_options */ case 359: /* alter_account_option */ case 381: /* speed_opt */ case 434: /* with_meta */ case 443: /* bufsize_opt */ { } break; case 360: /* ip_range_list */ case 361: /* white_list */ case 362: /* white_list_opt */ case 384: /* integer_list */ case 385: /* variable_list */ case 386: /* retention_list */ case 391: /* column_def_list */ case 392: /* tags_def_opt */ case 394: /* multi_create_clause */ case 395: /* tags_def */ case 396: /* multi_drop_clause */ case 403: /* specific_cols_opt */ case 404: /* tags_literal_list */ case 406: /* col_name_list */ case 408: /* duration_list */ case 409: /* rollup_func_list */ case 421: /* tag_list_opt */ case 428: /* func_list */ case 433: /* expression_list */ case 449: /* col_list_opt */ case 450: /* tag_def_or_ref_opt */ case 453: /* column_stream_def_list */ case 457: /* dnode_list */ case 460: /* literal_list */ case 468: /* star_func_para_list */ case 470: /* other_para_list */ case 472: /* when_then_list */ case 492: /* hint_list */ case 495: /* select_list */ case 496: /* partition_by_clause_opt */ case 501: /* group_by_clause_opt */ case 504: /* partition_list */ case 508: /* group_by_list */ case 511: /* order_by_clause_opt */ case 516: /* sort_specification_list */ { nodesDestroyList((yypminor->yy184)); } break; case 363: /* user_name */ case 370: /* db_name */ case 371: /* table_name */ case 372: /* topic_name */ case 374: /* dnode_endpoint */ case 399: /* column_name */ case 413: /* function_name */ case 424: /* column_alias */ case 427: /* index_name */ case 432: /* sma_func_name */ case 437: /* cgroup_name */ case 444: /* language_opt */ case 446: /* view_name */ case 447: /* stream_name */ case 456: /* on_vgroup_id */ case 461: /* table_alias */ case 467: /* star_func */ case 469: /* noarg_func */ case 487: /* alias_opt */ { } break; case 364: /* sysinfo_opt */ { } break; case 365: /* privileges */ case 368: /* priv_type_list */ case 369: /* priv_type */ { } break; case 366: /* priv_level */ { } break; case 375: /* force_opt */ case 376: /* unsafe_opt */ case 377: /* not_exists_opt */ case 379: /* exists_opt */ case 438: /* analyze_opt */ case 441: /* or_replace_opt */ case 442: /* agg_func_opt */ case 452: /* ignore_opt */ case 493: /* set_quantifier_opt */ case 494: /* tag_mode_opt */ { } break; case 388: /* alter_db_option */ case 410: /* alter_table_option */ { } break; case 400: /* type_name */ { } break; case 415: /* db_kind_opt */ case 422: /* table_kind */ { } break; case 416: /* table_kind_db_name_cond_opt */ { } break; case 477: /* compare_op */ case 478: /* in_op */ { } break; case 490: /* join_type */ { } break; case 507: /* fill_mode */ { } break; case 518: /* ordering_specification_opt */ { } break; case 519: /* null_ordering_opt */ { } 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[] = { 355, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ 355, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 356, /* (2) account_options ::= */ 356, /* (3) account_options ::= account_options PPS literal */ 356, /* (4) account_options ::= account_options TSERIES literal */ 356, /* (5) account_options ::= account_options STORAGE literal */ 356, /* (6) account_options ::= account_options STREAMS literal */ 356, /* (7) account_options ::= account_options QTIME literal */ 356, /* (8) account_options ::= account_options DBS literal */ 356, /* (9) account_options ::= account_options USERS literal */ 356, /* (10) account_options ::= account_options CONNS literal */ 356, /* (11) account_options ::= account_options STATE literal */ 357, /* (12) alter_account_options ::= alter_account_option */ 357, /* (13) alter_account_options ::= alter_account_options alter_account_option */ 359, /* (14) alter_account_option ::= PASS literal */ 359, /* (15) alter_account_option ::= PPS literal */ 359, /* (16) alter_account_option ::= TSERIES literal */ 359, /* (17) alter_account_option ::= STORAGE literal */ 359, /* (18) alter_account_option ::= STREAMS literal */ 359, /* (19) alter_account_option ::= QTIME literal */ 359, /* (20) alter_account_option ::= DBS literal */ 359, /* (21) alter_account_option ::= USERS literal */ 359, /* (22) alter_account_option ::= CONNS literal */ 359, /* (23) alter_account_option ::= STATE literal */ 360, /* (24) ip_range_list ::= NK_STRING */ 360, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ 361, /* (26) white_list ::= HOST ip_range_list */ 362, /* (27) white_list_opt ::= */ 362, /* (28) white_list_opt ::= white_list */ 355, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ 355, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */ 355, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ 355, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ 355, /* (33) cmd ::= ALTER USER user_name ADD white_list */ 355, /* (34) cmd ::= ALTER USER user_name DROP white_list */ 355, /* (35) cmd ::= DROP USER user_name */ 364, /* (36) sysinfo_opt ::= */ 364, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */ 355, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ 355, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ 365, /* (40) privileges ::= ALL */ 365, /* (41) privileges ::= priv_type_list */ 365, /* (42) privileges ::= SUBSCRIBE */ 368, /* (43) priv_type_list ::= priv_type */ 368, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */ 369, /* (45) priv_type ::= READ */ 369, /* (46) priv_type ::= WRITE */ 369, /* (47) priv_type ::= ALTER */ 366, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */ 366, /* (49) priv_level ::= db_name NK_DOT NK_STAR */ 366, /* (50) priv_level ::= db_name NK_DOT table_name */ 366, /* (51) priv_level ::= topic_name */ 367, /* (52) with_opt ::= */ 367, /* (53) with_opt ::= WITH search_condition */ 355, /* (54) cmd ::= CREATE DNODE dnode_endpoint */ 355, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ 355, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */ 355, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */ 355, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ 355, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ 355, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ 355, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ 355, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */ 355, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ 355, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */ 374, /* (65) dnode_endpoint ::= NK_STRING */ 374, /* (66) dnode_endpoint ::= NK_ID */ 374, /* (67) dnode_endpoint ::= NK_IPTOKEN */ 375, /* (68) force_opt ::= */ 375, /* (69) force_opt ::= FORCE */ 376, /* (70) unsafe_opt ::= UNSAFE */ 355, /* (71) cmd ::= ALTER CLUSTER NK_STRING */ 355, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ 355, /* (73) cmd ::= ALTER LOCAL NK_STRING */ 355, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ 355, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ 355, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ 355, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ 355, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ 355, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ 355, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ 355, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ 355, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ 355, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ 355, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ 355, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ 355, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ 355, /* (87) cmd ::= DROP DATABASE exists_opt db_name */ 355, /* (88) cmd ::= USE db_name */ 355, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */ 355, /* (90) cmd ::= FLUSH DATABASE db_name */ 355, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */ 355, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ 377, /* (93) not_exists_opt ::= IF NOT EXISTS */ 377, /* (94) not_exists_opt ::= */ 379, /* (95) exists_opt ::= IF EXISTS */ 379, /* (96) exists_opt ::= */ 378, /* (97) db_options ::= */ 378, /* (98) db_options ::= db_options BUFFER NK_INTEGER */ 378, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */ 378, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */ 378, /* (101) db_options ::= db_options COMP NK_INTEGER */ 378, /* (102) db_options ::= db_options DURATION NK_INTEGER */ 378, /* (103) db_options ::= db_options DURATION NK_VARIABLE */ 378, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */ 378, /* (105) db_options ::= db_options MINROWS NK_INTEGER */ 378, /* (106) db_options ::= db_options KEEP integer_list */ 378, /* (107) db_options ::= db_options KEEP variable_list */ 378, /* (108) db_options ::= db_options PAGES NK_INTEGER */ 378, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */ 378, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ 378, /* (111) db_options ::= db_options PRECISION NK_STRING */ 378, /* (112) db_options ::= db_options REPLICA NK_INTEGER */ 378, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */ 378, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ 378, /* (115) db_options ::= db_options RETENTIONS retention_list */ 378, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */ 378, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */ 378, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ 378, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ 378, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 378, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ 378, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 378, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ 378, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ 378, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */ 378, /* (126) db_options ::= db_options TABLE_PREFIX signed */ 378, /* (127) db_options ::= db_options TABLE_SUFFIX signed */ 378, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ 380, /* (129) alter_db_options ::= alter_db_option */ 380, /* (130) alter_db_options ::= alter_db_options alter_db_option */ 388, /* (131) alter_db_option ::= BUFFER NK_INTEGER */ 388, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */ 388, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */ 388, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ 388, /* (135) alter_db_option ::= KEEP integer_list */ 388, /* (136) alter_db_option ::= KEEP variable_list */ 388, /* (137) alter_db_option ::= PAGES NK_INTEGER */ 388, /* (138) alter_db_option ::= REPLICA NK_INTEGER */ 388, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */ 388, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */ 388, /* (141) alter_db_option ::= MINROWS NK_INTEGER */ 388, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ 388, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 388, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ 388, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 388, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ 384, /* (147) integer_list ::= NK_INTEGER */ 384, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */ 385, /* (149) variable_list ::= NK_VARIABLE */ 385, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ 386, /* (151) retention_list ::= retention */ 386, /* (152) retention_list ::= retention_list NK_COMMA retention */ 389, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 389, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ 381, /* (155) speed_opt ::= */ 381, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */ 382, /* (157) start_opt ::= */ 382, /* (158) start_opt ::= START WITH NK_INTEGER */ 382, /* (159) start_opt ::= START WITH NK_STRING */ 382, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */ 383, /* (161) end_opt ::= */ 383, /* (162) end_opt ::= END WITH NK_INTEGER */ 383, /* (163) end_opt ::= END WITH NK_STRING */ 383, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */ 355, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ 355, /* (166) cmd ::= CREATE TABLE multi_create_clause */ 355, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ 355, /* (168) cmd ::= DROP TABLE multi_drop_clause */ 355, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */ 355, /* (170) cmd ::= ALTER TABLE alter_table_clause */ 355, /* (171) cmd ::= ALTER STABLE alter_table_clause */ 397, /* (172) alter_table_clause ::= full_table_name alter_table_options */ 397, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ 397, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */ 397, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ 397, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ 397, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ 397, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */ 397, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ 397, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ 397, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ 394, /* (182) multi_create_clause ::= create_subtable_clause */ 394, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */ 402, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ 396, /* (185) multi_drop_clause ::= drop_table_clause */ 396, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ 405, /* (187) drop_table_clause ::= exists_opt full_table_name */ 403, /* (188) specific_cols_opt ::= */ 403, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */ 390, /* (190) full_table_name ::= table_name */ 390, /* (191) full_table_name ::= db_name NK_DOT table_name */ 391, /* (192) column_def_list ::= column_def */ 391, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */ 407, /* (194) column_def ::= column_name type_name */ 407, /* (195) column_def ::= column_name type_name PRIMARY KEY */ 400, /* (196) type_name ::= BOOL */ 400, /* (197) type_name ::= TINYINT */ 400, /* (198) type_name ::= SMALLINT */ 400, /* (199) type_name ::= INT */ 400, /* (200) type_name ::= INTEGER */ 400, /* (201) type_name ::= BIGINT */ 400, /* (202) type_name ::= FLOAT */ 400, /* (203) type_name ::= DOUBLE */ 400, /* (204) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ 400, /* (205) type_name ::= TIMESTAMP */ 400, /* (206) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ 400, /* (207) type_name ::= TINYINT UNSIGNED */ 400, /* (208) type_name ::= SMALLINT UNSIGNED */ 400, /* (209) type_name ::= INT UNSIGNED */ 400, /* (210) type_name ::= BIGINT UNSIGNED */ 400, /* (211) type_name ::= JSON */ 400, /* (212) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ 400, /* (213) type_name ::= MEDIUMBLOB */ 400, /* (214) type_name ::= BLOB */ 400, /* (215) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ 400, /* (216) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ 400, /* (217) type_name ::= DECIMAL */ 400, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 400, /* (219) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 392, /* (220) tags_def_opt ::= */ 392, /* (221) tags_def_opt ::= tags_def */ 395, /* (222) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 393, /* (223) table_options ::= */ 393, /* (224) table_options ::= table_options COMMENT NK_STRING */ 393, /* (225) table_options ::= table_options MAX_DELAY duration_list */ 393, /* (226) table_options ::= table_options WATERMARK duration_list */ 393, /* (227) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ 393, /* (228) table_options ::= table_options TTL NK_INTEGER */ 393, /* (229) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ 393, /* (230) table_options ::= table_options DELETE_MARK duration_list */ 398, /* (231) alter_table_options ::= alter_table_option */ 398, /* (232) alter_table_options ::= alter_table_options alter_table_option */ 410, /* (233) alter_table_option ::= COMMENT NK_STRING */ 410, /* (234) alter_table_option ::= TTL NK_INTEGER */ 408, /* (235) duration_list ::= duration_literal */ 408, /* (236) duration_list ::= duration_list NK_COMMA duration_literal */ 409, /* (237) rollup_func_list ::= rollup_func_name */ 409, /* (238) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ 412, /* (239) rollup_func_name ::= function_name */ 412, /* (240) rollup_func_name ::= FIRST */ 412, /* (241) rollup_func_name ::= LAST */ 406, /* (242) col_name_list ::= col_name */ 406, /* (243) col_name_list ::= col_name_list NK_COMMA col_name */ 414, /* (244) col_name ::= column_name */ 355, /* (245) cmd ::= SHOW DNODES */ 355, /* (246) cmd ::= SHOW USERS */ 355, /* (247) cmd ::= SHOW USER PRIVILEGES */ 355, /* (248) cmd ::= SHOW db_kind_opt DATABASES */ 355, /* (249) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ 355, /* (250) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ 355, /* (251) cmd ::= SHOW db_name_cond_opt VGROUPS */ 355, /* (252) cmd ::= SHOW MNODES */ 355, /* (253) cmd ::= SHOW QNODES */ 355, /* (254) cmd ::= SHOW ARBGROUPS */ 355, /* (255) cmd ::= SHOW FUNCTIONS */ 355, /* (256) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ 355, /* (257) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ 355, /* (258) cmd ::= SHOW STREAMS */ 355, /* (259) cmd ::= SHOW ACCOUNTS */ 355, /* (260) cmd ::= SHOW APPS */ 355, /* (261) cmd ::= SHOW CONNECTIONS */ 355, /* (262) cmd ::= SHOW LICENCES */ 355, /* (263) cmd ::= SHOW GRANTS */ 355, /* (264) cmd ::= SHOW GRANTS FULL */ 355, /* (265) cmd ::= SHOW GRANTS LOGS */ 355, /* (266) cmd ::= SHOW CLUSTER MACHINES */ 355, /* (267) cmd ::= SHOW CREATE DATABASE db_name */ 355, /* (268) cmd ::= SHOW CREATE TABLE full_table_name */ 355, /* (269) cmd ::= SHOW CREATE STABLE full_table_name */ 355, /* (270) cmd ::= SHOW QUERIES */ 355, /* (271) cmd ::= SHOW SCORES */ 355, /* (272) cmd ::= SHOW TOPICS */ 355, /* (273) cmd ::= SHOW VARIABLES */ 355, /* (274) cmd ::= SHOW CLUSTER VARIABLES */ 355, /* (275) cmd ::= SHOW LOCAL VARIABLES */ 355, /* (276) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ 355, /* (277) cmd ::= SHOW BNODES */ 355, /* (278) cmd ::= SHOW SNODES */ 355, /* (279) cmd ::= SHOW CLUSTER */ 355, /* (280) cmd ::= SHOW TRANSACTIONS */ 355, /* (281) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ 355, /* (282) cmd ::= SHOW CONSUMERS */ 355, /* (283) cmd ::= SHOW SUBSCRIPTIONS */ 355, /* (284) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ 355, /* (285) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ 355, /* (286) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ 355, /* (287) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ 355, /* (288) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ 355, /* (289) cmd ::= SHOW VNODES */ 355, /* (290) cmd ::= SHOW db_name_cond_opt ALIVE */ 355, /* (291) cmd ::= SHOW CLUSTER ALIVE */ 355, /* (292) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ 355, /* (293) cmd ::= SHOW CREATE VIEW full_table_name */ 355, /* (294) cmd ::= SHOW COMPACTS */ 355, /* (295) cmd ::= SHOW COMPACT NK_INTEGER */ 416, /* (296) table_kind_db_name_cond_opt ::= */ 416, /* (297) table_kind_db_name_cond_opt ::= table_kind */ 416, /* (298) table_kind_db_name_cond_opt ::= db_name NK_DOT */ 416, /* (299) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ 422, /* (300) table_kind ::= NORMAL */ 422, /* (301) table_kind ::= CHILD */ 418, /* (302) db_name_cond_opt ::= */ 418, /* (303) db_name_cond_opt ::= db_name NK_DOT */ 417, /* (304) like_pattern_opt ::= */ 417, /* (305) like_pattern_opt ::= LIKE NK_STRING */ 419, /* (306) table_name_cond ::= table_name */ 420, /* (307) from_db_opt ::= */ 420, /* (308) from_db_opt ::= FROM db_name */ 421, /* (309) tag_list_opt ::= */ 421, /* (310) tag_list_opt ::= tag_item */ 421, /* (311) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ 423, /* (312) tag_item ::= TBNAME */ 423, /* (313) tag_item ::= QTAGS */ 423, /* (314) tag_item ::= column_name */ 423, /* (315) tag_item ::= column_name column_alias */ 423, /* (316) tag_item ::= column_name AS column_alias */ 415, /* (317) db_kind_opt ::= */ 415, /* (318) db_kind_opt ::= USER */ 415, /* (319) db_kind_opt ::= SYSTEM */ 355, /* (320) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ 355, /* (321) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ 355, /* (322) cmd ::= DROP INDEX exists_opt full_index_name */ 426, /* (323) full_index_name ::= index_name */ 426, /* (324) full_index_name ::= db_name NK_DOT index_name */ 425, /* (325) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ 425, /* (326) 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 */ 428, /* (327) func_list ::= func */ 428, /* (328) func_list ::= func_list NK_COMMA func */ 431, /* (329) func ::= sma_func_name NK_LP expression_list NK_RP */ 432, /* (330) sma_func_name ::= function_name */ 432, /* (331) sma_func_name ::= COUNT */ 432, /* (332) sma_func_name ::= FIRST */ 432, /* (333) sma_func_name ::= LAST */ 432, /* (334) sma_func_name ::= LAST_ROW */ 430, /* (335) sma_stream_opt ::= */ 430, /* (336) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ 430, /* (337) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ 430, /* (338) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ 434, /* (339) with_meta ::= AS */ 434, /* (340) with_meta ::= WITH META AS */ 434, /* (341) with_meta ::= ONLY META AS */ 355, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ 355, /* (343) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ 355, /* (344) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ 355, /* (345) cmd ::= DROP TOPIC exists_opt topic_name */ 355, /* (346) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ 355, /* (347) cmd ::= DESC full_table_name */ 355, /* (348) cmd ::= DESCRIBE full_table_name */ 355, /* (349) cmd ::= RESET QUERY CACHE */ 355, /* (350) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ 355, /* (351) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 438, /* (352) analyze_opt ::= */ 438, /* (353) analyze_opt ::= ANALYZE */ 439, /* (354) explain_options ::= */ 439, /* (355) explain_options ::= explain_options VERBOSE NK_BOOL */ 439, /* (356) explain_options ::= explain_options RATIO NK_FLOAT */ 355, /* (357) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ 355, /* (358) cmd ::= DROP FUNCTION exists_opt function_name */ 442, /* (359) agg_func_opt ::= */ 442, /* (360) agg_func_opt ::= AGGREGATE */ 443, /* (361) bufsize_opt ::= */ 443, /* (362) bufsize_opt ::= BUFSIZE NK_INTEGER */ 444, /* (363) language_opt ::= */ 444, /* (364) language_opt ::= LANGUAGE NK_STRING */ 441, /* (365) or_replace_opt ::= */ 441, /* (366) or_replace_opt ::= OR REPLACE */ 355, /* (367) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ 355, /* (368) cmd ::= DROP VIEW exists_opt full_view_name */ 445, /* (369) full_view_name ::= view_name */ 445, /* (370) full_view_name ::= db_name NK_DOT view_name */ 355, /* (371) 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 */ 355, /* (372) cmd ::= DROP STREAM exists_opt stream_name */ 355, /* (373) cmd ::= PAUSE STREAM exists_opt stream_name */ 355, /* (374) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 449, /* (375) col_list_opt ::= */ 449, /* (376) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ 453, /* (377) column_stream_def_list ::= column_stream_def */ 453, /* (378) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ 454, /* (379) column_stream_def ::= column_name */ 454, /* (380) column_stream_def ::= column_name PRIMARY KEY */ 450, /* (381) tag_def_or_ref_opt ::= */ 450, /* (382) tag_def_or_ref_opt ::= tags_def */ 450, /* (383) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ 448, /* (384) stream_options ::= */ 448, /* (385) stream_options ::= stream_options TRIGGER AT_ONCE */ 448, /* (386) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ 448, /* (387) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ 448, /* (388) stream_options ::= stream_options WATERMARK duration_literal */ 448, /* (389) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ 448, /* (390) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ 448, /* (391) stream_options ::= stream_options DELETE_MARK duration_literal */ 448, /* (392) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 451, /* (393) subtable_opt ::= */ 451, /* (394) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 452, /* (395) ignore_opt ::= */ 452, /* (396) ignore_opt ::= IGNORE UNTREATED */ 355, /* (397) cmd ::= KILL CONNECTION NK_INTEGER */ 355, /* (398) cmd ::= KILL QUERY NK_STRING */ 355, /* (399) cmd ::= KILL TRANSACTION NK_INTEGER */ 355, /* (400) cmd ::= KILL COMPACT NK_INTEGER */ 355, /* (401) cmd ::= BALANCE VGROUP */ 355, /* (402) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ 355, /* (403) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ 355, /* (404) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ 355, /* (405) cmd ::= SPLIT VGROUP NK_INTEGER */ 456, /* (406) on_vgroup_id ::= */ 456, /* (407) on_vgroup_id ::= ON NK_INTEGER */ 457, /* (408) dnode_list ::= DNODE NK_INTEGER */ 457, /* (409) dnode_list ::= dnode_list DNODE NK_INTEGER */ 355, /* (410) cmd ::= DELETE FROM full_table_name where_clause_opt */ 355, /* (411) cmd ::= query_or_subquery */ 355, /* (412) cmd ::= insert_query */ 440, /* (413) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ 440, /* (414) insert_query ::= INSERT INTO full_table_name query_or_subquery */ 401, /* (415) tags_literal ::= NK_INTEGER */ 401, /* (416) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ 401, /* (417) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ 401, /* (418) tags_literal ::= NK_PLUS NK_INTEGER */ 401, /* (419) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ 401, /* (420) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ 401, /* (421) tags_literal ::= NK_MINUS NK_INTEGER */ 401, /* (422) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ 401, /* (423) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ 401, /* (424) tags_literal ::= NK_FLOAT */ 401, /* (425) tags_literal ::= NK_PLUS NK_FLOAT */ 401, /* (426) tags_literal ::= NK_MINUS NK_FLOAT */ 401, /* (427) tags_literal ::= NK_BIN */ 401, /* (428) tags_literal ::= NK_BIN NK_PLUS duration_literal */ 401, /* (429) tags_literal ::= NK_BIN NK_MINUS duration_literal */ 401, /* (430) tags_literal ::= NK_PLUS NK_BIN */ 401, /* (431) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ 401, /* (432) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ 401, /* (433) tags_literal ::= NK_MINUS NK_BIN */ 401, /* (434) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ 401, /* (435) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ 401, /* (436) tags_literal ::= NK_HEX */ 401, /* (437) tags_literal ::= NK_HEX NK_PLUS duration_literal */ 401, /* (438) tags_literal ::= NK_HEX NK_MINUS duration_literal */ 401, /* (439) tags_literal ::= NK_PLUS NK_HEX */ 401, /* (440) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ 401, /* (441) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ 401, /* (442) tags_literal ::= NK_MINUS NK_HEX */ 401, /* (443) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ 401, /* (444) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ 401, /* (445) tags_literal ::= NK_STRING */ 401, /* (446) tags_literal ::= NK_STRING NK_PLUS duration_literal */ 401, /* (447) tags_literal ::= NK_STRING NK_MINUS duration_literal */ 401, /* (448) tags_literal ::= NK_BOOL */ 401, /* (449) tags_literal ::= NULL */ 401, /* (450) tags_literal ::= literal_func */ 401, /* (451) tags_literal ::= literal_func NK_PLUS duration_literal */ 401, /* (452) tags_literal ::= literal_func NK_MINUS duration_literal */ 404, /* (453) tags_literal_list ::= tags_literal */ 404, /* (454) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ 358, /* (455) literal ::= NK_INTEGER */ 358, /* (456) literal ::= NK_FLOAT */ 358, /* (457) literal ::= NK_STRING */ 358, /* (458) literal ::= NK_BOOL */ 358, /* (459) literal ::= TIMESTAMP NK_STRING */ 358, /* (460) literal ::= duration_literal */ 358, /* (461) literal ::= NULL */ 358, /* (462) literal ::= NK_QUESTION */ 411, /* (463) duration_literal ::= NK_VARIABLE */ 387, /* (464) signed ::= NK_INTEGER */ 387, /* (465) signed ::= NK_PLUS NK_INTEGER */ 387, /* (466) signed ::= NK_MINUS NK_INTEGER */ 387, /* (467) signed ::= NK_FLOAT */ 387, /* (468) signed ::= NK_PLUS NK_FLOAT */ 387, /* (469) signed ::= NK_MINUS NK_FLOAT */ 459, /* (470) signed_literal ::= signed */ 459, /* (471) signed_literal ::= NK_STRING */ 459, /* (472) signed_literal ::= NK_BOOL */ 459, /* (473) signed_literal ::= TIMESTAMP NK_STRING */ 459, /* (474) signed_literal ::= duration_literal */ 459, /* (475) signed_literal ::= NULL */ 459, /* (476) signed_literal ::= literal_func */ 459, /* (477) signed_literal ::= NK_QUESTION */ 460, /* (478) literal_list ::= signed_literal */ 460, /* (479) literal_list ::= literal_list NK_COMMA signed_literal */ 370, /* (480) db_name ::= NK_ID */ 371, /* (481) table_name ::= NK_ID */ 399, /* (482) column_name ::= NK_ID */ 413, /* (483) function_name ::= NK_ID */ 446, /* (484) view_name ::= NK_ID */ 461, /* (485) table_alias ::= NK_ID */ 424, /* (486) column_alias ::= NK_ID */ 424, /* (487) column_alias ::= NK_ALIAS */ 363, /* (488) user_name ::= NK_ID */ 372, /* (489) topic_name ::= NK_ID */ 447, /* (490) stream_name ::= NK_ID */ 437, /* (491) cgroup_name ::= NK_ID */ 427, /* (492) index_name ::= NK_ID */ 462, /* (493) expr_or_subquery ::= expression */ 455, /* (494) expression ::= literal */ 455, /* (495) expression ::= pseudo_column */ 455, /* (496) expression ::= column_reference */ 455, /* (497) expression ::= function_expression */ 455, /* (498) expression ::= case_when_expression */ 455, /* (499) expression ::= NK_LP expression NK_RP */ 455, /* (500) expression ::= NK_PLUS expr_or_subquery */ 455, /* (501) expression ::= NK_MINUS expr_or_subquery */ 455, /* (502) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ 455, /* (503) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ 455, /* (504) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ 455, /* (505) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ 455, /* (506) expression ::= expr_or_subquery NK_REM expr_or_subquery */ 455, /* (507) expression ::= column_reference NK_ARROW NK_STRING */ 455, /* (508) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ 455, /* (509) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ 433, /* (510) expression_list ::= expr_or_subquery */ 433, /* (511) expression_list ::= expression_list NK_COMMA expr_or_subquery */ 464, /* (512) column_reference ::= column_name */ 464, /* (513) column_reference ::= table_name NK_DOT column_name */ 464, /* (514) column_reference ::= NK_ALIAS */ 464, /* (515) column_reference ::= table_name NK_DOT NK_ALIAS */ 463, /* (516) pseudo_column ::= ROWTS */ 463, /* (517) pseudo_column ::= TBNAME */ 463, /* (518) pseudo_column ::= table_name NK_DOT TBNAME */ 463, /* (519) pseudo_column ::= QSTART */ 463, /* (520) pseudo_column ::= QEND */ 463, /* (521) pseudo_column ::= QDURATION */ 463, /* (522) pseudo_column ::= WSTART */ 463, /* (523) pseudo_column ::= WEND */ 463, /* (524) pseudo_column ::= WDURATION */ 463, /* (525) pseudo_column ::= IROWTS */ 463, /* (526) pseudo_column ::= ISFILLED */ 463, /* (527) pseudo_column ::= QTAGS */ 465, /* (528) function_expression ::= function_name NK_LP expression_list NK_RP */ 465, /* (529) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ 465, /* (530) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ 465, /* (531) function_expression ::= literal_func */ 458, /* (532) literal_func ::= noarg_func NK_LP NK_RP */ 458, /* (533) literal_func ::= NOW */ 458, /* (534) literal_func ::= TODAY */ 469, /* (535) noarg_func ::= NOW */ 469, /* (536) noarg_func ::= TODAY */ 469, /* (537) noarg_func ::= TIMEZONE */ 469, /* (538) noarg_func ::= DATABASE */ 469, /* (539) noarg_func ::= CLIENT_VERSION */ 469, /* (540) noarg_func ::= SERVER_VERSION */ 469, /* (541) noarg_func ::= SERVER_STATUS */ 469, /* (542) noarg_func ::= CURRENT_USER */ 469, /* (543) noarg_func ::= USER */ 467, /* (544) star_func ::= COUNT */ 467, /* (545) star_func ::= FIRST */ 467, /* (546) star_func ::= LAST */ 467, /* (547) star_func ::= LAST_ROW */ 468, /* (548) star_func_para_list ::= NK_STAR */ 468, /* (549) star_func_para_list ::= other_para_list */ 470, /* (550) other_para_list ::= star_func_para */ 470, /* (551) other_para_list ::= other_para_list NK_COMMA star_func_para */ 471, /* (552) star_func_para ::= expr_or_subquery */ 471, /* (553) star_func_para ::= table_name NK_DOT NK_STAR */ 466, /* (554) case_when_expression ::= CASE when_then_list case_when_else_opt END */ 466, /* (555) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ 472, /* (556) when_then_list ::= when_then_expr */ 472, /* (557) when_then_list ::= when_then_list when_then_expr */ 475, /* (558) when_then_expr ::= WHEN common_expression THEN common_expression */ 473, /* (559) case_when_else_opt ::= */ 473, /* (560) case_when_else_opt ::= ELSE common_expression */ 476, /* (561) predicate ::= expr_or_subquery compare_op expr_or_subquery */ 476, /* (562) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ 476, /* (563) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ 476, /* (564) predicate ::= expr_or_subquery IS NULL */ 476, /* (565) predicate ::= expr_or_subquery IS NOT NULL */ 476, /* (566) predicate ::= expr_or_subquery in_op in_predicate_value */ 477, /* (567) compare_op ::= NK_LT */ 477, /* (568) compare_op ::= NK_GT */ 477, /* (569) compare_op ::= NK_LE */ 477, /* (570) compare_op ::= NK_GE */ 477, /* (571) compare_op ::= NK_NE */ 477, /* (572) compare_op ::= NK_EQ */ 477, /* (573) compare_op ::= LIKE */ 477, /* (574) compare_op ::= NOT LIKE */ 477, /* (575) compare_op ::= MATCH */ 477, /* (576) compare_op ::= NMATCH */ 477, /* (577) compare_op ::= CONTAINS */ 478, /* (578) in_op ::= IN */ 478, /* (579) in_op ::= NOT IN */ 479, /* (580) in_predicate_value ::= NK_LP literal_list NK_RP */ 480, /* (581) boolean_value_expression ::= boolean_primary */ 480, /* (582) boolean_value_expression ::= NOT boolean_primary */ 480, /* (583) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ 480, /* (584) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ 481, /* (585) boolean_primary ::= predicate */ 481, /* (586) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ 474, /* (587) common_expression ::= expr_or_subquery */ 474, /* (588) common_expression ::= boolean_value_expression */ 482, /* (589) from_clause_opt ::= */ 482, /* (590) from_clause_opt ::= FROM table_reference_list */ 483, /* (591) table_reference_list ::= table_reference */ 483, /* (592) table_reference_list ::= table_reference_list NK_COMMA table_reference */ 484, /* (593) table_reference ::= table_primary */ 484, /* (594) table_reference ::= joined_table */ 485, /* (595) table_primary ::= table_name alias_opt */ 485, /* (596) table_primary ::= db_name NK_DOT table_name alias_opt */ 485, /* (597) table_primary ::= subquery alias_opt */ 485, /* (598) table_primary ::= parenthesized_joined_table */ 487, /* (599) alias_opt ::= */ 487, /* (600) alias_opt ::= table_alias */ 487, /* (601) alias_opt ::= AS table_alias */ 489, /* (602) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ 489, /* (603) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ 486, /* (604) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 490, /* (605) join_type ::= */ 490, /* (606) join_type ::= INNER */ 491, /* (607) 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 */ 492, /* (608) hint_list ::= */ 492, /* (609) hint_list ::= NK_HINT */ 494, /* (610) tag_mode_opt ::= */ 494, /* (611) tag_mode_opt ::= TAGS */ 493, /* (612) set_quantifier_opt ::= */ 493, /* (613) set_quantifier_opt ::= DISTINCT */ 493, /* (614) set_quantifier_opt ::= ALL */ 495, /* (615) select_list ::= select_item */ 495, /* (616) select_list ::= select_list NK_COMMA select_item */ 503, /* (617) select_item ::= NK_STAR */ 503, /* (618) select_item ::= common_expression */ 503, /* (619) select_item ::= common_expression column_alias */ 503, /* (620) select_item ::= common_expression AS column_alias */ 503, /* (621) select_item ::= table_name NK_DOT NK_STAR */ 436, /* (622) where_clause_opt ::= */ 436, /* (623) where_clause_opt ::= WHERE search_condition */ 496, /* (624) partition_by_clause_opt ::= */ 496, /* (625) partition_by_clause_opt ::= PARTITION BY partition_list */ 504, /* (626) partition_list ::= partition_item */ 504, /* (627) partition_list ::= partition_list NK_COMMA partition_item */ 505, /* (628) partition_item ::= expr_or_subquery */ 505, /* (629) partition_item ::= expr_or_subquery column_alias */ 505, /* (630) partition_item ::= expr_or_subquery AS column_alias */ 500, /* (631) twindow_clause_opt ::= */ 500, /* (632) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ 500, /* (633) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ 500, /* (634) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ 500, /* (635) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ 500, /* (636) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 500, /* (637) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ 500, /* (638) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 429, /* (639) sliding_opt ::= */ 429, /* (640) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ 506, /* (641) interval_sliding_duration_literal ::= NK_VARIABLE */ 506, /* (642) interval_sliding_duration_literal ::= NK_STRING */ 506, /* (643) interval_sliding_duration_literal ::= NK_INTEGER */ 499, /* (644) fill_opt ::= */ 499, /* (645) fill_opt ::= FILL NK_LP fill_mode NK_RP */ 499, /* (646) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ 499, /* (647) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ 507, /* (648) fill_mode ::= NONE */ 507, /* (649) fill_mode ::= PREV */ 507, /* (650) fill_mode ::= NULL */ 507, /* (651) fill_mode ::= NULL_F */ 507, /* (652) fill_mode ::= LINEAR */ 507, /* (653) fill_mode ::= NEXT */ 501, /* (654) group_by_clause_opt ::= */ 501, /* (655) group_by_clause_opt ::= GROUP BY group_by_list */ 508, /* (656) group_by_list ::= expr_or_subquery */ 508, /* (657) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 502, /* (658) having_clause_opt ::= */ 502, /* (659) having_clause_opt ::= HAVING search_condition */ 497, /* (660) range_opt ::= */ 497, /* (661) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ 497, /* (662) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 498, /* (663) every_opt ::= */ 498, /* (664) every_opt ::= EVERY NK_LP duration_literal NK_RP */ 509, /* (665) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ 510, /* (666) query_simple ::= query_specification */ 510, /* (667) query_simple ::= union_query_expression */ 514, /* (668) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ 514, /* (669) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ 515, /* (670) query_simple_or_subquery ::= query_simple */ 515, /* (671) query_simple_or_subquery ::= subquery */ 435, /* (672) query_or_subquery ::= query_expression */ 435, /* (673) query_or_subquery ::= subquery */ 511, /* (674) order_by_clause_opt ::= */ 511, /* (675) order_by_clause_opt ::= ORDER BY sort_specification_list */ 512, /* (676) slimit_clause_opt ::= */ 512, /* (677) slimit_clause_opt ::= SLIMIT NK_INTEGER */ 512, /* (678) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ 512, /* (679) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 513, /* (680) limit_clause_opt ::= */ 513, /* (681) limit_clause_opt ::= LIMIT NK_INTEGER */ 513, /* (682) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ 513, /* (683) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 488, /* (684) subquery ::= NK_LP query_expression NK_RP */ 488, /* (685) subquery ::= NK_LP subquery NK_RP */ 373, /* (686) search_condition ::= common_expression */ 516, /* (687) sort_specification_list ::= sort_specification */ 516, /* (688) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ 517, /* (689) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 518, /* (690) ordering_specification_opt ::= */ 518, /* (691) ordering_specification_opt ::= ASC */ 518, /* (692) ordering_specification_opt ::= DESC */ 519, /* (693) null_ordering_opt ::= */ 519, /* (694) null_ordering_opt ::= NULLS FIRST */ 519, /* (695) null_ordering_opt ::= NULLS LAST */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number ** of symbols on the right-hand side of that rule. */ static const signed char yyRuleInfoNRhs[] = { -6, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ -4, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 0, /* (2) account_options ::= */ -3, /* (3) account_options ::= account_options PPS literal */ -3, /* (4) account_options ::= account_options TSERIES literal */ -3, /* (5) account_options ::= account_options STORAGE literal */ -3, /* (6) account_options ::= account_options STREAMS literal */ -3, /* (7) account_options ::= account_options QTIME literal */ -3, /* (8) account_options ::= account_options DBS literal */ -3, /* (9) account_options ::= account_options USERS literal */ -3, /* (10) account_options ::= account_options CONNS literal */ -3, /* (11) account_options ::= account_options STATE literal */ -1, /* (12) alter_account_options ::= alter_account_option */ -2, /* (13) alter_account_options ::= alter_account_options alter_account_option */ -2, /* (14) alter_account_option ::= PASS literal */ -2, /* (15) alter_account_option ::= PPS literal */ -2, /* (16) alter_account_option ::= TSERIES literal */ -2, /* (17) alter_account_option ::= STORAGE literal */ -2, /* (18) alter_account_option ::= STREAMS literal */ -2, /* (19) alter_account_option ::= QTIME literal */ -2, /* (20) alter_account_option ::= DBS literal */ -2, /* (21) alter_account_option ::= USERS literal */ -2, /* (22) alter_account_option ::= CONNS literal */ -2, /* (23) alter_account_option ::= STATE literal */ -1, /* (24) ip_range_list ::= NK_STRING */ -3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ -2, /* (26) white_list ::= HOST ip_range_list */ 0, /* (27) white_list_opt ::= */ -1, /* (28) white_list_opt ::= white_list */ -7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ -5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */ -5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -5, /* (33) cmd ::= ALTER USER user_name ADD white_list */ -5, /* (34) cmd ::= ALTER USER user_name DROP white_list */ -3, /* (35) cmd ::= DROP USER user_name */ 0, /* (36) sysinfo_opt ::= */ -2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */ -7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -1, /* (40) privileges ::= ALL */ -1, /* (41) privileges ::= priv_type_list */ -1, /* (42) privileges ::= SUBSCRIBE */ -1, /* (43) priv_type_list ::= priv_type */ -3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */ -1, /* (45) priv_type ::= READ */ -1, /* (46) priv_type ::= WRITE */ -1, /* (47) priv_type ::= ALTER */ -3, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */ -3, /* (49) priv_level ::= db_name NK_DOT NK_STAR */ -3, /* (50) priv_level ::= db_name NK_DOT table_name */ -1, /* (51) priv_level ::= topic_name */ 0, /* (52) with_opt ::= */ -2, /* (53) with_opt ::= WITH search_condition */ -3, /* (54) cmd ::= CREATE DNODE dnode_endpoint */ -5, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -4, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */ -4, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */ -4, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -4, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -4, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ -5, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ -4, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */ -5, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ -3, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */ -1, /* (65) dnode_endpoint ::= NK_STRING */ -1, /* (66) dnode_endpoint ::= NK_ID */ -1, /* (67) dnode_endpoint ::= NK_IPTOKEN */ 0, /* (68) force_opt ::= */ -1, /* (69) force_opt ::= FORCE */ -1, /* (70) unsafe_opt ::= UNSAFE */ -3, /* (71) cmd ::= ALTER CLUSTER NK_STRING */ -4, /* (72) cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ -3, /* (73) cmd ::= ALTER LOCAL NK_STRING */ -4, /* (74) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ -5, /* (75) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ -5, /* (76) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ -5, /* (77) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ -5, /* (78) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ -5, /* (79) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ -5, /* (80) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ -5, /* (81) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ -5, /* (82) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ -5, /* (83) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ -5, /* (84) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ -5, /* (85) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ -5, /* (86) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -4, /* (87) cmd ::= DROP DATABASE exists_opt db_name */ -2, /* (88) cmd ::= USE db_name */ -4, /* (89) cmd ::= ALTER DATABASE db_name alter_db_options */ -3, /* (90) cmd ::= FLUSH DATABASE db_name */ -4, /* (91) cmd ::= TRIM DATABASE db_name speed_opt */ -5, /* (92) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -3, /* (93) not_exists_opt ::= IF NOT EXISTS */ 0, /* (94) not_exists_opt ::= */ -2, /* (95) exists_opt ::= IF EXISTS */ 0, /* (96) exists_opt ::= */ 0, /* (97) db_options ::= */ -3, /* (98) db_options ::= db_options BUFFER NK_INTEGER */ -3, /* (99) db_options ::= db_options CACHEMODEL NK_STRING */ -3, /* (100) db_options ::= db_options CACHESIZE NK_INTEGER */ -3, /* (101) db_options ::= db_options COMP NK_INTEGER */ -3, /* (102) db_options ::= db_options DURATION NK_INTEGER */ -3, /* (103) db_options ::= db_options DURATION NK_VARIABLE */ -3, /* (104) db_options ::= db_options MAXROWS NK_INTEGER */ -3, /* (105) db_options ::= db_options MINROWS NK_INTEGER */ -3, /* (106) db_options ::= db_options KEEP integer_list */ -3, /* (107) db_options ::= db_options KEEP variable_list */ -3, /* (108) db_options ::= db_options PAGES NK_INTEGER */ -3, /* (109) db_options ::= db_options PAGESIZE NK_INTEGER */ -3, /* (110) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -3, /* (111) db_options ::= db_options PRECISION NK_STRING */ -3, /* (112) db_options ::= db_options REPLICA NK_INTEGER */ -3, /* (113) db_options ::= db_options VGROUPS NK_INTEGER */ -3, /* (114) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -3, /* (115) db_options ::= db_options RETENTIONS retention_list */ -3, /* (116) db_options ::= db_options SCHEMALESS NK_INTEGER */ -3, /* (117) db_options ::= db_options WAL_LEVEL NK_INTEGER */ -3, /* (118) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -3, /* (119) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -4, /* (120) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -3, /* (121) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -4, /* (122) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -3, /* (123) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -3, /* (124) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -3, /* (125) db_options ::= db_options STT_TRIGGER NK_INTEGER */ -3, /* (126) db_options ::= db_options TABLE_PREFIX signed */ -3, /* (127) db_options ::= db_options TABLE_SUFFIX signed */ -3, /* (128) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ -1, /* (129) alter_db_options ::= alter_db_option */ -2, /* (130) alter_db_options ::= alter_db_options alter_db_option */ -2, /* (131) alter_db_option ::= BUFFER NK_INTEGER */ -2, /* (132) alter_db_option ::= CACHEMODEL NK_STRING */ -2, /* (133) alter_db_option ::= CACHESIZE NK_INTEGER */ -2, /* (134) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -2, /* (135) alter_db_option ::= KEEP integer_list */ -2, /* (136) alter_db_option ::= KEEP variable_list */ -2, /* (137) alter_db_option ::= PAGES NK_INTEGER */ -2, /* (138) alter_db_option ::= REPLICA NK_INTEGER */ -2, /* (139) alter_db_option ::= WAL_LEVEL NK_INTEGER */ -2, /* (140) alter_db_option ::= STT_TRIGGER NK_INTEGER */ -2, /* (141) alter_db_option ::= MINROWS NK_INTEGER */ -2, /* (142) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -3, /* (143) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -2, /* (144) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -3, /* (145) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -2, /* (146) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ -1, /* (147) integer_list ::= NK_INTEGER */ -3, /* (148) integer_list ::= integer_list NK_COMMA NK_INTEGER */ -1, /* (149) variable_list ::= NK_VARIABLE */ -3, /* (150) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -1, /* (151) retention_list ::= retention */ -3, /* (152) retention_list ::= retention_list NK_COMMA retention */ -3, /* (153) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -3, /* (154) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ 0, /* (155) speed_opt ::= */ -2, /* (156) speed_opt ::= BWLIMIT NK_INTEGER */ 0, /* (157) start_opt ::= */ -3, /* (158) start_opt ::= START WITH NK_INTEGER */ -3, /* (159) start_opt ::= START WITH NK_STRING */ -4, /* (160) start_opt ::= START WITH TIMESTAMP NK_STRING */ 0, /* (161) end_opt ::= */ -3, /* (162) end_opt ::= END WITH NK_INTEGER */ -3, /* (163) end_opt ::= END WITH NK_STRING */ -4, /* (164) end_opt ::= END WITH TIMESTAMP NK_STRING */ -9, /* (165) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ -3, /* (166) cmd ::= CREATE TABLE multi_create_clause */ -9, /* (167) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ -3, /* (168) cmd ::= DROP TABLE multi_drop_clause */ -4, /* (169) cmd ::= DROP STABLE exists_opt full_table_name */ -3, /* (170) cmd ::= ALTER TABLE alter_table_clause */ -3, /* (171) cmd ::= ALTER STABLE alter_table_clause */ -2, /* (172) alter_table_clause ::= full_table_name alter_table_options */ -5, /* (173) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -4, /* (174) alter_table_clause ::= full_table_name DROP COLUMN column_name */ -5, /* (175) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -5, /* (176) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -5, /* (177) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -4, /* (178) alter_table_clause ::= full_table_name DROP TAG column_name */ -5, /* (179) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -5, /* (180) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -6, /* (181) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ -1, /* (182) multi_create_clause ::= create_subtable_clause */ -2, /* (183) multi_create_clause ::= multi_create_clause create_subtable_clause */ -10, /* (184) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ -1, /* (185) multi_drop_clause ::= drop_table_clause */ -3, /* (186) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ -2, /* (187) drop_table_clause ::= exists_opt full_table_name */ 0, /* (188) specific_cols_opt ::= */ -3, /* (189) specific_cols_opt ::= NK_LP col_name_list NK_RP */ -1, /* (190) full_table_name ::= table_name */ -3, /* (191) full_table_name ::= db_name NK_DOT table_name */ -1, /* (192) column_def_list ::= column_def */ -3, /* (193) column_def_list ::= column_def_list NK_COMMA column_def */ -2, /* (194) column_def ::= column_name type_name */ -4, /* (195) column_def ::= column_name type_name PRIMARY KEY */ -1, /* (196) type_name ::= BOOL */ -1, /* (197) type_name ::= TINYINT */ -1, /* (198) type_name ::= SMALLINT */ -1, /* (199) type_name ::= INT */ -1, /* (200) type_name ::= INTEGER */ -1, /* (201) type_name ::= BIGINT */ -1, /* (202) type_name ::= FLOAT */ -1, /* (203) type_name ::= DOUBLE */ -4, /* (204) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -1, /* (205) type_name ::= TIMESTAMP */ -4, /* (206) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -2, /* (207) type_name ::= TINYINT UNSIGNED */ -2, /* (208) type_name ::= SMALLINT UNSIGNED */ -2, /* (209) type_name ::= INT UNSIGNED */ -2, /* (210) type_name ::= BIGINT UNSIGNED */ -1, /* (211) type_name ::= JSON */ -4, /* (212) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -1, /* (213) type_name ::= MEDIUMBLOB */ -1, /* (214) type_name ::= BLOB */ -4, /* (215) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -4, /* (216) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -1, /* (217) type_name ::= DECIMAL */ -4, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (219) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 0, /* (220) tags_def_opt ::= */ -1, /* (221) tags_def_opt ::= tags_def */ -4, /* (222) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 0, /* (223) table_options ::= */ -3, /* (224) table_options ::= table_options COMMENT NK_STRING */ -3, /* (225) table_options ::= table_options MAX_DELAY duration_list */ -3, /* (226) table_options ::= table_options WATERMARK duration_list */ -5, /* (227) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -3, /* (228) table_options ::= table_options TTL NK_INTEGER */ -5, /* (229) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -3, /* (230) table_options ::= table_options DELETE_MARK duration_list */ -1, /* (231) alter_table_options ::= alter_table_option */ -2, /* (232) alter_table_options ::= alter_table_options alter_table_option */ -2, /* (233) alter_table_option ::= COMMENT NK_STRING */ -2, /* (234) alter_table_option ::= TTL NK_INTEGER */ -1, /* (235) duration_list ::= duration_literal */ -3, /* (236) duration_list ::= duration_list NK_COMMA duration_literal */ -1, /* (237) rollup_func_list ::= rollup_func_name */ -3, /* (238) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ -1, /* (239) rollup_func_name ::= function_name */ -1, /* (240) rollup_func_name ::= FIRST */ -1, /* (241) rollup_func_name ::= LAST */ -1, /* (242) col_name_list ::= col_name */ -3, /* (243) col_name_list ::= col_name_list NK_COMMA col_name */ -1, /* (244) col_name ::= column_name */ -2, /* (245) cmd ::= SHOW DNODES */ -2, /* (246) cmd ::= SHOW USERS */ -3, /* (247) cmd ::= SHOW USER PRIVILEGES */ -3, /* (248) cmd ::= SHOW db_kind_opt DATABASES */ -4, /* (249) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ -4, /* (250) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -3, /* (251) cmd ::= SHOW db_name_cond_opt VGROUPS */ -2, /* (252) cmd ::= SHOW MNODES */ -2, /* (253) cmd ::= SHOW QNODES */ -2, /* (254) cmd ::= SHOW ARBGROUPS */ -2, /* (255) cmd ::= SHOW FUNCTIONS */ -5, /* (256) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -6, /* (257) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -2, /* (258) cmd ::= SHOW STREAMS */ -2, /* (259) cmd ::= SHOW ACCOUNTS */ -2, /* (260) cmd ::= SHOW APPS */ -2, /* (261) cmd ::= SHOW CONNECTIONS */ -2, /* (262) cmd ::= SHOW LICENCES */ -2, /* (263) cmd ::= SHOW GRANTS */ -3, /* (264) cmd ::= SHOW GRANTS FULL */ -3, /* (265) cmd ::= SHOW GRANTS LOGS */ -3, /* (266) cmd ::= SHOW CLUSTER MACHINES */ -4, /* (267) cmd ::= SHOW CREATE DATABASE db_name */ -4, /* (268) cmd ::= SHOW CREATE TABLE full_table_name */ -4, /* (269) cmd ::= SHOW CREATE STABLE full_table_name */ -2, /* (270) cmd ::= SHOW QUERIES */ -2, /* (271) cmd ::= SHOW SCORES */ -2, /* (272) cmd ::= SHOW TOPICS */ -2, /* (273) cmd ::= SHOW VARIABLES */ -3, /* (274) cmd ::= SHOW CLUSTER VARIABLES */ -3, /* (275) cmd ::= SHOW LOCAL VARIABLES */ -5, /* (276) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -2, /* (277) cmd ::= SHOW BNODES */ -2, /* (278) cmd ::= SHOW SNODES */ -2, /* (279) cmd ::= SHOW CLUSTER */ -2, /* (280) cmd ::= SHOW TRANSACTIONS */ -4, /* (281) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -2, /* (282) cmd ::= SHOW CONSUMERS */ -2, /* (283) cmd ::= SHOW SUBSCRIPTIONS */ -5, /* (284) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -6, /* (285) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -7, /* (286) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -8, /* (287) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -5, /* (288) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ -2, /* (289) cmd ::= SHOW VNODES */ -3, /* (290) cmd ::= SHOW db_name_cond_opt ALIVE */ -3, /* (291) cmd ::= SHOW CLUSTER ALIVE */ -4, /* (292) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ -4, /* (293) cmd ::= SHOW CREATE VIEW full_table_name */ -2, /* (294) cmd ::= SHOW COMPACTS */ -3, /* (295) cmd ::= SHOW COMPACT NK_INTEGER */ 0, /* (296) table_kind_db_name_cond_opt ::= */ -1, /* (297) table_kind_db_name_cond_opt ::= table_kind */ -2, /* (298) table_kind_db_name_cond_opt ::= db_name NK_DOT */ -3, /* (299) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ -1, /* (300) table_kind ::= NORMAL */ -1, /* (301) table_kind ::= CHILD */ 0, /* (302) db_name_cond_opt ::= */ -2, /* (303) db_name_cond_opt ::= db_name NK_DOT */ 0, /* (304) like_pattern_opt ::= */ -2, /* (305) like_pattern_opt ::= LIKE NK_STRING */ -1, /* (306) table_name_cond ::= table_name */ 0, /* (307) from_db_opt ::= */ -2, /* (308) from_db_opt ::= FROM db_name */ 0, /* (309) tag_list_opt ::= */ -1, /* (310) tag_list_opt ::= tag_item */ -3, /* (311) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ -1, /* (312) tag_item ::= TBNAME */ -1, /* (313) tag_item ::= QTAGS */ -1, /* (314) tag_item ::= column_name */ -2, /* (315) tag_item ::= column_name column_alias */ -3, /* (316) tag_item ::= column_name AS column_alias */ 0, /* (317) db_kind_opt ::= */ -1, /* (318) db_kind_opt ::= USER */ -1, /* (319) db_kind_opt ::= SYSTEM */ -8, /* (320) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ -9, /* (321) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ -4, /* (322) cmd ::= DROP INDEX exists_opt full_index_name */ -1, /* (323) full_index_name ::= index_name */ -3, /* (324) full_index_name ::= db_name NK_DOT index_name */ -10, /* (325) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -12, /* (326) 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, /* (327) func_list ::= func */ -3, /* (328) func_list ::= func_list NK_COMMA func */ -4, /* (329) func ::= sma_func_name NK_LP expression_list NK_RP */ -1, /* (330) sma_func_name ::= function_name */ -1, /* (331) sma_func_name ::= COUNT */ -1, /* (332) sma_func_name ::= FIRST */ -1, /* (333) sma_func_name ::= LAST */ -1, /* (334) sma_func_name ::= LAST_ROW */ 0, /* (335) sma_stream_opt ::= */ -3, /* (336) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -3, /* (337) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -3, /* (338) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -1, /* (339) with_meta ::= AS */ -3, /* (340) with_meta ::= WITH META AS */ -3, /* (341) with_meta ::= ONLY META AS */ -6, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -7, /* (343) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -8, /* (344) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -4, /* (345) cmd ::= DROP TOPIC exists_opt topic_name */ -7, /* (346) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -2, /* (347) cmd ::= DESC full_table_name */ -2, /* (348) cmd ::= DESCRIBE full_table_name */ -3, /* (349) cmd ::= RESET QUERY CACHE */ -4, /* (350) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ -4, /* (351) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 0, /* (352) analyze_opt ::= */ -1, /* (353) analyze_opt ::= ANALYZE */ 0, /* (354) explain_options ::= */ -3, /* (355) explain_options ::= explain_options VERBOSE NK_BOOL */ -3, /* (356) explain_options ::= explain_options RATIO NK_FLOAT */ -12, /* (357) 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, /* (358) cmd ::= DROP FUNCTION exists_opt function_name */ 0, /* (359) agg_func_opt ::= */ -1, /* (360) agg_func_opt ::= AGGREGATE */ 0, /* (361) bufsize_opt ::= */ -2, /* (362) bufsize_opt ::= BUFSIZE NK_INTEGER */ 0, /* (363) language_opt ::= */ -2, /* (364) language_opt ::= LANGUAGE NK_STRING */ 0, /* (365) or_replace_opt ::= */ -2, /* (366) or_replace_opt ::= OR REPLACE */ -6, /* (367) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ -4, /* (368) cmd ::= DROP VIEW exists_opt full_view_name */ -1, /* (369) full_view_name ::= view_name */ -3, /* (370) full_view_name ::= db_name NK_DOT view_name */ -12, /* (371) 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, /* (372) cmd ::= DROP STREAM exists_opt stream_name */ -4, /* (373) cmd ::= PAUSE STREAM exists_opt stream_name */ -5, /* (374) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 0, /* (375) col_list_opt ::= */ -3, /* (376) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ -1, /* (377) column_stream_def_list ::= column_stream_def */ -3, /* (378) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ -1, /* (379) column_stream_def ::= column_name */ -3, /* (380) column_stream_def ::= column_name PRIMARY KEY */ 0, /* (381) tag_def_or_ref_opt ::= */ -1, /* (382) tag_def_or_ref_opt ::= tags_def */ -4, /* (383) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ 0, /* (384) stream_options ::= */ -3, /* (385) stream_options ::= stream_options TRIGGER AT_ONCE */ -3, /* (386) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -4, /* (387) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -3, /* (388) stream_options ::= stream_options WATERMARK duration_literal */ -4, /* (389) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -3, /* (390) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -3, /* (391) stream_options ::= stream_options DELETE_MARK duration_literal */ -4, /* (392) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 0, /* (393) subtable_opt ::= */ -4, /* (394) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 0, /* (395) ignore_opt ::= */ -2, /* (396) ignore_opt ::= IGNORE UNTREATED */ -3, /* (397) cmd ::= KILL CONNECTION NK_INTEGER */ -3, /* (398) cmd ::= KILL QUERY NK_STRING */ -3, /* (399) cmd ::= KILL TRANSACTION NK_INTEGER */ -3, /* (400) cmd ::= KILL COMPACT NK_INTEGER */ -2, /* (401) cmd ::= BALANCE VGROUP */ -4, /* (402) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ -4, /* (403) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -4, /* (404) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -3, /* (405) cmd ::= SPLIT VGROUP NK_INTEGER */ 0, /* (406) on_vgroup_id ::= */ -2, /* (407) on_vgroup_id ::= ON NK_INTEGER */ -2, /* (408) dnode_list ::= DNODE NK_INTEGER */ -3, /* (409) dnode_list ::= dnode_list DNODE NK_INTEGER */ -4, /* (410) cmd ::= DELETE FROM full_table_name where_clause_opt */ -1, /* (411) cmd ::= query_or_subquery */ -1, /* (412) cmd ::= insert_query */ -7, /* (413) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -4, /* (414) insert_query ::= INSERT INTO full_table_name query_or_subquery */ -1, /* (415) tags_literal ::= NK_INTEGER */ -3, /* (416) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ -3, /* (417) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ -2, /* (418) tags_literal ::= NK_PLUS NK_INTEGER */ -4, /* (419) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ -4, /* (420) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ -2, /* (421) tags_literal ::= NK_MINUS NK_INTEGER */ -4, /* (422) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ -4, /* (423) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ -1, /* (424) tags_literal ::= NK_FLOAT */ -2, /* (425) tags_literal ::= NK_PLUS NK_FLOAT */ -2, /* (426) tags_literal ::= NK_MINUS NK_FLOAT */ -1, /* (427) tags_literal ::= NK_BIN */ -3, /* (428) tags_literal ::= NK_BIN NK_PLUS duration_literal */ -3, /* (429) tags_literal ::= NK_BIN NK_MINUS duration_literal */ -2, /* (430) tags_literal ::= NK_PLUS NK_BIN */ -4, /* (431) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ -4, /* (432) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ -2, /* (433) tags_literal ::= NK_MINUS NK_BIN */ -4, /* (434) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ -4, /* (435) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ -1, /* (436) tags_literal ::= NK_HEX */ -3, /* (437) tags_literal ::= NK_HEX NK_PLUS duration_literal */ -3, /* (438) tags_literal ::= NK_HEX NK_MINUS duration_literal */ -2, /* (439) tags_literal ::= NK_PLUS NK_HEX */ -4, /* (440) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ -4, /* (441) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ -2, /* (442) tags_literal ::= NK_MINUS NK_HEX */ -4, /* (443) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ -4, /* (444) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ -1, /* (445) tags_literal ::= NK_STRING */ -3, /* (446) tags_literal ::= NK_STRING NK_PLUS duration_literal */ -3, /* (447) tags_literal ::= NK_STRING NK_MINUS duration_literal */ -1, /* (448) tags_literal ::= NK_BOOL */ -1, /* (449) tags_literal ::= NULL */ -1, /* (450) tags_literal ::= literal_func */ -3, /* (451) tags_literal ::= literal_func NK_PLUS duration_literal */ -3, /* (452) tags_literal ::= literal_func NK_MINUS duration_literal */ -1, /* (453) tags_literal_list ::= tags_literal */ -3, /* (454) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ -1, /* (455) literal ::= NK_INTEGER */ -1, /* (456) literal ::= NK_FLOAT */ -1, /* (457) literal ::= NK_STRING */ -1, /* (458) literal ::= NK_BOOL */ -2, /* (459) literal ::= TIMESTAMP NK_STRING */ -1, /* (460) literal ::= duration_literal */ -1, /* (461) literal ::= NULL */ -1, /* (462) literal ::= NK_QUESTION */ -1, /* (463) duration_literal ::= NK_VARIABLE */ -1, /* (464) signed ::= NK_INTEGER */ -2, /* (465) signed ::= NK_PLUS NK_INTEGER */ -2, /* (466) signed ::= NK_MINUS NK_INTEGER */ -1, /* (467) signed ::= NK_FLOAT */ -2, /* (468) signed ::= NK_PLUS NK_FLOAT */ -2, /* (469) signed ::= NK_MINUS NK_FLOAT */ -1, /* (470) signed_literal ::= signed */ -1, /* (471) signed_literal ::= NK_STRING */ -1, /* (472) signed_literal ::= NK_BOOL */ -2, /* (473) signed_literal ::= TIMESTAMP NK_STRING */ -1, /* (474) signed_literal ::= duration_literal */ -1, /* (475) signed_literal ::= NULL */ -1, /* (476) signed_literal ::= literal_func */ -1, /* (477) signed_literal ::= NK_QUESTION */ -1, /* (478) literal_list ::= signed_literal */ -3, /* (479) literal_list ::= literal_list NK_COMMA signed_literal */ -1, /* (480) db_name ::= NK_ID */ -1, /* (481) table_name ::= NK_ID */ -1, /* (482) column_name ::= NK_ID */ -1, /* (483) function_name ::= NK_ID */ -1, /* (484) view_name ::= NK_ID */ -1, /* (485) table_alias ::= NK_ID */ -1, /* (486) column_alias ::= NK_ID */ -1, /* (487) column_alias ::= NK_ALIAS */ -1, /* (488) user_name ::= NK_ID */ -1, /* (489) topic_name ::= NK_ID */ -1, /* (490) stream_name ::= NK_ID */ -1, /* (491) cgroup_name ::= NK_ID */ -1, /* (492) index_name ::= NK_ID */ -1, /* (493) expr_or_subquery ::= expression */ -1, /* (494) expression ::= literal */ -1, /* (495) expression ::= pseudo_column */ -1, /* (496) expression ::= column_reference */ -1, /* (497) expression ::= function_expression */ -1, /* (498) expression ::= case_when_expression */ -3, /* (499) expression ::= NK_LP expression NK_RP */ -2, /* (500) expression ::= NK_PLUS expr_or_subquery */ -2, /* (501) expression ::= NK_MINUS expr_or_subquery */ -3, /* (502) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ -3, /* (503) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -3, /* (504) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -3, /* (505) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -3, /* (506) expression ::= expr_or_subquery NK_REM expr_or_subquery */ -3, /* (507) expression ::= column_reference NK_ARROW NK_STRING */ -3, /* (508) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ -3, /* (509) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -1, /* (510) expression_list ::= expr_or_subquery */ -3, /* (511) expression_list ::= expression_list NK_COMMA expr_or_subquery */ -1, /* (512) column_reference ::= column_name */ -3, /* (513) column_reference ::= table_name NK_DOT column_name */ -1, /* (514) column_reference ::= NK_ALIAS */ -3, /* (515) column_reference ::= table_name NK_DOT NK_ALIAS */ -1, /* (516) pseudo_column ::= ROWTS */ -1, /* (517) pseudo_column ::= TBNAME */ -3, /* (518) pseudo_column ::= table_name NK_DOT TBNAME */ -1, /* (519) pseudo_column ::= QSTART */ -1, /* (520) pseudo_column ::= QEND */ -1, /* (521) pseudo_column ::= QDURATION */ -1, /* (522) pseudo_column ::= WSTART */ -1, /* (523) pseudo_column ::= WEND */ -1, /* (524) pseudo_column ::= WDURATION */ -1, /* (525) pseudo_column ::= IROWTS */ -1, /* (526) pseudo_column ::= ISFILLED */ -1, /* (527) pseudo_column ::= QTAGS */ -4, /* (528) function_expression ::= function_name NK_LP expression_list NK_RP */ -4, /* (529) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ -6, /* (530) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -1, /* (531) function_expression ::= literal_func */ -3, /* (532) literal_func ::= noarg_func NK_LP NK_RP */ -1, /* (533) literal_func ::= NOW */ -1, /* (534) literal_func ::= TODAY */ -1, /* (535) noarg_func ::= NOW */ -1, /* (536) noarg_func ::= TODAY */ -1, /* (537) noarg_func ::= TIMEZONE */ -1, /* (538) noarg_func ::= DATABASE */ -1, /* (539) noarg_func ::= CLIENT_VERSION */ -1, /* (540) noarg_func ::= SERVER_VERSION */ -1, /* (541) noarg_func ::= SERVER_STATUS */ -1, /* (542) noarg_func ::= CURRENT_USER */ -1, /* (543) noarg_func ::= USER */ -1, /* (544) star_func ::= COUNT */ -1, /* (545) star_func ::= FIRST */ -1, /* (546) star_func ::= LAST */ -1, /* (547) star_func ::= LAST_ROW */ -1, /* (548) star_func_para_list ::= NK_STAR */ -1, /* (549) star_func_para_list ::= other_para_list */ -1, /* (550) other_para_list ::= star_func_para */ -3, /* (551) other_para_list ::= other_para_list NK_COMMA star_func_para */ -1, /* (552) star_func_para ::= expr_or_subquery */ -3, /* (553) star_func_para ::= table_name NK_DOT NK_STAR */ -4, /* (554) case_when_expression ::= CASE when_then_list case_when_else_opt END */ -5, /* (555) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -1, /* (556) when_then_list ::= when_then_expr */ -2, /* (557) when_then_list ::= when_then_list when_then_expr */ -4, /* (558) when_then_expr ::= WHEN common_expression THEN common_expression */ 0, /* (559) case_when_else_opt ::= */ -2, /* (560) case_when_else_opt ::= ELSE common_expression */ -3, /* (561) predicate ::= expr_or_subquery compare_op expr_or_subquery */ -5, /* (562) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -6, /* (563) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -3, /* (564) predicate ::= expr_or_subquery IS NULL */ -4, /* (565) predicate ::= expr_or_subquery IS NOT NULL */ -3, /* (566) predicate ::= expr_or_subquery in_op in_predicate_value */ -1, /* (567) compare_op ::= NK_LT */ -1, /* (568) compare_op ::= NK_GT */ -1, /* (569) compare_op ::= NK_LE */ -1, /* (570) compare_op ::= NK_GE */ -1, /* (571) compare_op ::= NK_NE */ -1, /* (572) compare_op ::= NK_EQ */ -1, /* (573) compare_op ::= LIKE */ -2, /* (574) compare_op ::= NOT LIKE */ -1, /* (575) compare_op ::= MATCH */ -1, /* (576) compare_op ::= NMATCH */ -1, /* (577) compare_op ::= CONTAINS */ -1, /* (578) in_op ::= IN */ -2, /* (579) in_op ::= NOT IN */ -3, /* (580) in_predicate_value ::= NK_LP literal_list NK_RP */ -1, /* (581) boolean_value_expression ::= boolean_primary */ -2, /* (582) boolean_value_expression ::= NOT boolean_primary */ -3, /* (583) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -3, /* (584) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -1, /* (585) boolean_primary ::= predicate */ -3, /* (586) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ -1, /* (587) common_expression ::= expr_or_subquery */ -1, /* (588) common_expression ::= boolean_value_expression */ 0, /* (589) from_clause_opt ::= */ -2, /* (590) from_clause_opt ::= FROM table_reference_list */ -1, /* (591) table_reference_list ::= table_reference */ -3, /* (592) table_reference_list ::= table_reference_list NK_COMMA table_reference */ -1, /* (593) table_reference ::= table_primary */ -1, /* (594) table_reference ::= joined_table */ -2, /* (595) table_primary ::= table_name alias_opt */ -4, /* (596) table_primary ::= db_name NK_DOT table_name alias_opt */ -2, /* (597) table_primary ::= subquery alias_opt */ -1, /* (598) table_primary ::= parenthesized_joined_table */ 0, /* (599) alias_opt ::= */ -1, /* (600) alias_opt ::= table_alias */ -2, /* (601) alias_opt ::= AS table_alias */ -3, /* (602) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ -3, /* (603) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ -6, /* (604) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 0, /* (605) join_type ::= */ -1, /* (606) join_type ::= INNER */ -14, /* (607) 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, /* (608) hint_list ::= */ -1, /* (609) hint_list ::= NK_HINT */ 0, /* (610) tag_mode_opt ::= */ -1, /* (611) tag_mode_opt ::= TAGS */ 0, /* (612) set_quantifier_opt ::= */ -1, /* (613) set_quantifier_opt ::= DISTINCT */ -1, /* (614) set_quantifier_opt ::= ALL */ -1, /* (615) select_list ::= select_item */ -3, /* (616) select_list ::= select_list NK_COMMA select_item */ -1, /* (617) select_item ::= NK_STAR */ -1, /* (618) select_item ::= common_expression */ -2, /* (619) select_item ::= common_expression column_alias */ -3, /* (620) select_item ::= common_expression AS column_alias */ -3, /* (621) select_item ::= table_name NK_DOT NK_STAR */ 0, /* (622) where_clause_opt ::= */ -2, /* (623) where_clause_opt ::= WHERE search_condition */ 0, /* (624) partition_by_clause_opt ::= */ -3, /* (625) partition_by_clause_opt ::= PARTITION BY partition_list */ -1, /* (626) partition_list ::= partition_item */ -3, /* (627) partition_list ::= partition_list NK_COMMA partition_item */ -1, /* (628) partition_item ::= expr_or_subquery */ -2, /* (629) partition_item ::= expr_or_subquery column_alias */ -3, /* (630) partition_item ::= expr_or_subquery AS column_alias */ 0, /* (631) twindow_clause_opt ::= */ -6, /* (632) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ -4, /* (633) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -6, /* (634) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -8, /* (635) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -7, /* (636) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ -4, /* (637) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ -6, /* (638) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 0, /* (639) sliding_opt ::= */ -4, /* (640) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ -1, /* (641) interval_sliding_duration_literal ::= NK_VARIABLE */ -1, /* (642) interval_sliding_duration_literal ::= NK_STRING */ -1, /* (643) interval_sliding_duration_literal ::= NK_INTEGER */ 0, /* (644) fill_opt ::= */ -4, /* (645) fill_opt ::= FILL NK_LP fill_mode NK_RP */ -6, /* (646) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -6, /* (647) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -1, /* (648) fill_mode ::= NONE */ -1, /* (649) fill_mode ::= PREV */ -1, /* (650) fill_mode ::= NULL */ -1, /* (651) fill_mode ::= NULL_F */ -1, /* (652) fill_mode ::= LINEAR */ -1, /* (653) fill_mode ::= NEXT */ 0, /* (654) group_by_clause_opt ::= */ -3, /* (655) group_by_clause_opt ::= GROUP BY group_by_list */ -1, /* (656) group_by_list ::= expr_or_subquery */ -3, /* (657) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 0, /* (658) having_clause_opt ::= */ -2, /* (659) having_clause_opt ::= HAVING search_condition */ 0, /* (660) range_opt ::= */ -6, /* (661) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -4, /* (662) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 0, /* (663) every_opt ::= */ -4, /* (664) every_opt ::= EVERY NK_LP duration_literal NK_RP */ -4, /* (665) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -1, /* (666) query_simple ::= query_specification */ -1, /* (667) query_simple ::= union_query_expression */ -4, /* (668) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -3, /* (669) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -1, /* (670) query_simple_or_subquery ::= query_simple */ -1, /* (671) query_simple_or_subquery ::= subquery */ -1, /* (672) query_or_subquery ::= query_expression */ -1, /* (673) query_or_subquery ::= subquery */ 0, /* (674) order_by_clause_opt ::= */ -3, /* (675) order_by_clause_opt ::= ORDER BY sort_specification_list */ 0, /* (676) slimit_clause_opt ::= */ -2, /* (677) slimit_clause_opt ::= SLIMIT NK_INTEGER */ -4, /* (678) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ -4, /* (679) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 0, /* (680) limit_clause_opt ::= */ -2, /* (681) limit_clause_opt ::= LIMIT NK_INTEGER */ -4, /* (682) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ -4, /* (683) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ -3, /* (684) subquery ::= NK_LP query_expression NK_RP */ -3, /* (685) subquery ::= NK_LP subquery NK_RP */ -1, /* (686) search_condition ::= common_expression */ -1, /* (687) sort_specification_list ::= sort_specification */ -3, /* (688) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ -3, /* (689) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 0, /* (690) ordering_specification_opt ::= */ -1, /* (691) ordering_specification_opt ::= ASC */ -1, /* (692) ordering_specification_opt ::= DESC */ 0, /* (693) null_ordering_opt ::= */ -2, /* (694) null_ordering_opt ::= NULLS FIRST */ -2, /* (695) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ /* ** Perform a reduce action and the shift that must immediately ** follow the reduce. ** ** The yyLookahead and yyLookaheadToken parameters provide reduce actions ** access to the lookahead token (if any). The yyLookahead will be YYNOCODE ** if the lookahead token has already been consumed. As this procedure is ** only called from one place, optimizing compilers will in-line it, which ** means that the extra parameters have no performance impact. */ static YYACTIONTYPE yy_reduce( yyParser *yypParser, /* The parser */ unsigned int yyruleno, /* Number of the rule by which to reduce */ int yyLookahead, /* Lookahead token, or YYNOCODE if none */ 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 */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } yy_destructor(yypParser,356,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } yy_destructor(yypParser,357,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } break; case 3: /* account_options ::= account_options PPS literal */ case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5); case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6); case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7); case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8); case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); { yy_destructor(yypParser,356,&yymsp[-2].minor); { } yy_destructor(yypParser,358,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,359,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,357,&yymsp[-1].minor); { } yy_destructor(yypParser,359,&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); { } yy_destructor(yypParser,358,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ { yylhsminor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy184 = yylhsminor.yy184; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ { yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy184 = yylhsminor.yy184; break; case 26: /* white_list ::= HOST ip_range_list */ { yymsp[-1].minor.yy184 = yymsp[0].minor.yy184; } break; case 27: /* white_list_opt ::= */ case 188: /* specific_cols_opt ::= */ yytestcase(yyruleno==188); case 220: /* tags_def_opt ::= */ yytestcase(yyruleno==220); case 309: /* tag_list_opt ::= */ yytestcase(yyruleno==309); case 375: /* col_list_opt ::= */ yytestcase(yyruleno==375); case 381: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==381); case 624: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==624); case 654: /* group_by_clause_opt ::= */ yytestcase(yyruleno==654); case 674: /* order_by_clause_opt ::= */ yytestcase(yyruleno==674); { yymsp[1].minor.yy184 = NULL; } break; case 28: /* white_list_opt ::= white_list */ case 221: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==221); case 382: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==382); case 549: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==549); { yylhsminor.yy184 = yymsp[0].minor.yy184; } yymsp[0].minor.yy184 = yylhsminor.yy184; break; case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy369, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy743); pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy184); } break; case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } break; case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 33: /* cmd ::= ALTER USER user_name ADD white_list */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy184); } break; case 34: /* cmd ::= ALTER USER user_name DROP white_list */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy184); } break; case 35: /* cmd ::= DROP USER user_name */ { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy369); } break; case 36: /* sysinfo_opt ::= */ { yymsp[1].minor.yy743 = 1; } break; case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ { yymsp[-1].minor.yy743 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ { pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy937, &yymsp[0].minor.yy369, yymsp[-2].minor.yy392); } break; case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy937, &yymsp[0].minor.yy369, yymsp[-2].minor.yy392); } break; case 40: /* privileges ::= ALL */ { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALL; } break; case 41: /* privileges ::= priv_type_list */ case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43); { yylhsminor.yy909 = yymsp[0].minor.yy909; } yymsp[0].minor.yy909 = yylhsminor.yy909; break; case 42: /* privileges ::= SUBSCRIBE */ { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ { yylhsminor.yy909 = yymsp[-2].minor.yy909 | yymsp[0].minor.yy909; } yymsp[-2].minor.yy909 = yylhsminor.yy909; break; case 45: /* priv_type ::= READ */ { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_READ; } break; case 46: /* priv_type ::= WRITE */ { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_WRITE; } break; case 47: /* priv_type ::= ALTER */ { yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALTER; } break; case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ { yylhsminor.yy937.first = yymsp[-2].minor.yy0; yylhsminor.yy937.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy937 = yylhsminor.yy937; break; case 49: /* priv_level ::= db_name NK_DOT NK_STAR */ { yylhsminor.yy937.first = yymsp[-2].minor.yy369; yylhsminor.yy937.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy937 = yylhsminor.yy937; break; case 50: /* priv_level ::= db_name NK_DOT table_name */ { yylhsminor.yy937.first = yymsp[-2].minor.yy369; yylhsminor.yy937.second = yymsp[0].minor.yy369; } yymsp[-2].minor.yy937 = yylhsminor.yy937; break; case 51: /* priv_level ::= topic_name */ { yylhsminor.yy937.first = yymsp[0].minor.yy369; yylhsminor.yy937.second = nil_token; } yymsp[0].minor.yy937 = yylhsminor.yy937; break; case 52: /* with_opt ::= */ case 157: /* start_opt ::= */ yytestcase(yyruleno==157); case 161: /* end_opt ::= */ yytestcase(yyruleno==161); case 304: /* like_pattern_opt ::= */ yytestcase(yyruleno==304); case 393: /* subtable_opt ::= */ yytestcase(yyruleno==393); case 559: /* case_when_else_opt ::= */ yytestcase(yyruleno==559); case 589: /* from_clause_opt ::= */ yytestcase(yyruleno==589); case 622: /* where_clause_opt ::= */ yytestcase(yyruleno==622); case 631: /* twindow_clause_opt ::= */ yytestcase(yyruleno==631); case 639: /* sliding_opt ::= */ yytestcase(yyruleno==639); case 644: /* fill_opt ::= */ yytestcase(yyruleno==644); case 658: /* having_clause_opt ::= */ yytestcase(yyruleno==658); case 660: /* range_opt ::= */ yytestcase(yyruleno==660); case 663: /* every_opt ::= */ yytestcase(yyruleno==663); case 676: /* slimit_clause_opt ::= */ yytestcase(yyruleno==676); case 680: /* limit_clause_opt ::= */ yytestcase(yyruleno==680); { yymsp[1].minor.yy392 = NULL; } break; case 53: /* with_opt ::= WITH search_condition */ case 590: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==590); case 623: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==623); case 659: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==659); { yymsp[-1].minor.yy392 = yymsp[0].minor.yy392; } break; case 54: /* cmd ::= CREATE DNODE dnode_endpoint */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy369, NULL); } break; case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0); } break; case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy377, false); } break; case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy377, false); } break; case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy377); } break; case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy369, false, yymsp[0].minor.yy377); } break; case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } break; case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } break; case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } break; case 65: /* dnode_endpoint ::= NK_STRING */ case 66: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==66); case 67: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==67); case 331: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==331); case 332: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==332); case 333: /* sma_func_name ::= LAST */ yytestcase(yyruleno==333); case 334: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==334); case 480: /* db_name ::= NK_ID */ yytestcase(yyruleno==480); case 481: /* table_name ::= NK_ID */ yytestcase(yyruleno==481); case 482: /* column_name ::= NK_ID */ yytestcase(yyruleno==482); case 483: /* function_name ::= NK_ID */ yytestcase(yyruleno==483); case 484: /* view_name ::= NK_ID */ yytestcase(yyruleno==484); case 485: /* table_alias ::= NK_ID */ yytestcase(yyruleno==485); case 486: /* column_alias ::= NK_ID */ yytestcase(yyruleno==486); case 487: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==487); case 488: /* user_name ::= NK_ID */ yytestcase(yyruleno==488); case 489: /* topic_name ::= NK_ID */ yytestcase(yyruleno==489); case 490: /* stream_name ::= NK_ID */ yytestcase(yyruleno==490); case 491: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==491); case 492: /* index_name ::= NK_ID */ yytestcase(yyruleno==492); case 535: /* noarg_func ::= NOW */ yytestcase(yyruleno==535); case 536: /* noarg_func ::= TODAY */ yytestcase(yyruleno==536); case 537: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==537); case 538: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==538); case 539: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==539); case 540: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==540); case 541: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==541); case 542: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==542); case 543: /* noarg_func ::= USER */ yytestcase(yyruleno==543); case 544: /* star_func ::= COUNT */ yytestcase(yyruleno==544); case 545: /* star_func ::= FIRST */ yytestcase(yyruleno==545); case 546: /* star_func ::= LAST */ yytestcase(yyruleno==546); case 547: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==547); { yylhsminor.yy369 = yymsp[0].minor.yy0; } yymsp[0].minor.yy369 = yylhsminor.yy369; break; case 68: /* force_opt ::= */ case 94: /* not_exists_opt ::= */ yytestcase(yyruleno==94); case 96: /* exists_opt ::= */ yytestcase(yyruleno==96); case 352: /* analyze_opt ::= */ yytestcase(yyruleno==352); case 359: /* agg_func_opt ::= */ yytestcase(yyruleno==359); case 365: /* or_replace_opt ::= */ yytestcase(yyruleno==365); case 395: /* ignore_opt ::= */ yytestcase(yyruleno==395); case 610: /* tag_mode_opt ::= */ yytestcase(yyruleno==610); case 612: /* set_quantifier_opt ::= */ yytestcase(yyruleno==612); { yymsp[1].minor.yy377 = false; } break; case 69: /* force_opt ::= FORCE */ case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70); case 353: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==353); case 360: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==360); case 611: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==611); case 613: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==613); { yymsp[0].minor.yy377 = true; } break; case 71: /* cmd ::= ALTER CLUSTER NK_STRING */ { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 73: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } break; case 86: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy377, &yymsp[-1].minor.yy369, yymsp[0].minor.yy392); } break; case 87: /* cmd ::= DROP DATABASE exists_opt db_name */ { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } break; case 88: /* cmd ::= USE db_name */ { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy369); } break; case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */ { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy392); } break; case 90: /* cmd ::= FLUSH DATABASE db_name */ { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy369); } break; case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */ { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy20); } break; case 92: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy369, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 93: /* not_exists_opt ::= IF NOT EXISTS */ { yymsp[-2].minor.yy377 = true; } break; case 95: /* exists_opt ::= IF EXISTS */ case 366: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==366); case 396: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==396); { yymsp[-1].minor.yy377 = true; } break; case 97: /* db_options ::= */ { yymsp[1].minor.yy392 = createDefaultDatabaseOptions(pCxt); } break; case 98: /* db_options ::= db_options BUFFER NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 99: /* db_options ::= db_options CACHEMODEL NK_STRING */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 100: /* db_options ::= db_options CACHESIZE NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 101: /* db_options ::= db_options COMP NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_COMP, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 102: /* db_options ::= db_options DURATION NK_INTEGER */ case 103: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==103); { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 104: /* db_options ::= db_options MAXROWS NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 105: /* db_options ::= db_options MINROWS NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 106: /* db_options ::= db_options KEEP integer_list */ case 107: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==107); { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP, yymsp[0].minor.yy184); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 108: /* db_options ::= db_options PAGES NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 109: /* db_options ::= db_options PAGESIZE NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 110: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 111: /* db_options ::= db_options PRECISION NK_STRING */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 112: /* db_options ::= db_options REPLICA NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 113: /* db_options ::= db_options VGROUPS NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 114: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 115: /* db_options ::= db_options RETENTIONS retention_list */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_RETENTIONS, yymsp[0].minor.yy184); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 116: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 117: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 118: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 119: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 120: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-3].minor.yy392, DB_OPTION_WAL_RETENTION_PERIOD, &t); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 121: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 122: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-3].minor.yy392, DB_OPTION_WAL_RETENTION_SIZE, &t); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 123: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 124: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 125: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 126: /* db_options ::= db_options TABLE_PREFIX signed */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy392); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 127: /* db_options ::= db_options TABLE_SUFFIX signed */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy392); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 128: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ { yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 129: /* alter_db_options ::= alter_db_option */ { yylhsminor.yy392 = createAlterDatabaseOptions(pCxt); yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yylhsminor.yy392, &yymsp[0].minor.yy845); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 130: /* alter_db_options ::= alter_db_options alter_db_option */ { yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy392, &yymsp[0].minor.yy845); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 131: /* alter_db_option ::= BUFFER NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 132: /* alter_db_option ::= CACHEMODEL NK_STRING */ { yymsp[-1].minor.yy845.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 133: /* alter_db_option ::= CACHESIZE NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 134: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 135: /* alter_db_option ::= KEEP integer_list */ case 136: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==136); { yymsp[-1].minor.yy845.type = DB_OPTION_KEEP; yymsp[-1].minor.yy845.pList = yymsp[0].minor.yy184; } break; case 137: /* alter_db_option ::= PAGES NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_PAGES; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 138: /* alter_db_option ::= REPLICA NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 139: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_WAL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 140: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 141: /* alter_db_option ::= MINROWS NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 142: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 143: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { 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.yy845.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy845.val = t; } break; case 144: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 145: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { 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.yy845.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy845.val = t; } break; case 146: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ { yymsp[-1].minor.yy845.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 147: /* integer_list ::= NK_INTEGER */ { yylhsminor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy184 = yylhsminor.yy184; break; case 148: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 409: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==409); { yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy184 = yylhsminor.yy184; break; case 149: /* variable_list ::= NK_VARIABLE */ { yylhsminor.yy184 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy184 = yylhsminor.yy184; break; case 150: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy184 = yylhsminor.yy184; break; case 151: /* retention_list ::= retention */ case 182: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==182); case 185: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==185); case 192: /* column_def_list ::= column_def */ yytestcase(yyruleno==192); case 237: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==237); case 242: /* col_name_list ::= col_name */ yytestcase(yyruleno==242); case 310: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==310); case 327: /* func_list ::= func */ yytestcase(yyruleno==327); case 377: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==377); case 453: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==453); case 478: /* literal_list ::= signed_literal */ yytestcase(yyruleno==478); case 550: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==550); case 556: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==556); case 615: /* select_list ::= select_item */ yytestcase(yyruleno==615); case 626: /* partition_list ::= partition_item */ yytestcase(yyruleno==626); case 687: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==687); { yylhsminor.yy184 = createNodeList(pCxt, yymsp[0].minor.yy392); } yymsp[0].minor.yy184 = yylhsminor.yy184; break; case 152: /* retention_list ::= retention_list NK_COMMA retention */ case 186: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==186); case 193: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==193); case 238: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==238); case 243: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==243); case 311: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==311); case 328: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==328); case 378: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==378); case 454: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==454); case 479: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==479); case 551: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==551); case 616: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==616); case 627: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==627); case 688: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==688); { yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); } yymsp[-2].minor.yy184 = yylhsminor.yy184; break; case 153: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ case 154: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==154); { yylhsminor.yy392 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 155: /* speed_opt ::= */ case 361: /* bufsize_opt ::= */ yytestcase(yyruleno==361); { yymsp[1].minor.yy20 = 0; } break; case 156: /* speed_opt ::= BWLIMIT NK_INTEGER */ case 362: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==362); { yymsp[-1].minor.yy20 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 158: /* start_opt ::= START WITH NK_INTEGER */ case 162: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==162); { yymsp[-2].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 159: /* start_opt ::= START WITH NK_STRING */ case 163: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==163); { yymsp[-2].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 160: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 164: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==164); { yymsp[-3].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 165: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 167: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==167); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy377, yymsp[-5].minor.yy392, yymsp[-3].minor.yy184, yymsp[-1].minor.yy184, yymsp[0].minor.yy392); } break; case 166: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy184); } break; case 168: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy184); } break; case 169: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } break; case 170: /* cmd ::= ALTER TABLE alter_table_clause */ case 411: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==411); case 412: /* cmd ::= insert_query */ yytestcase(yyruleno==412); { pCxt->pRootNode = yymsp[0].minor.yy392; } break; case 171: /* cmd ::= ALTER STABLE alter_table_clause */ { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy392); } break; case 172: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy392 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 173: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 174: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy369); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 175: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 176: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 177: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 178: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy369); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 179: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 180: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 181: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ { yylhsminor.yy392 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy392, &yymsp[-2].minor.yy369, yymsp[0].minor.yy392); } yymsp[-5].minor.yy392 = yylhsminor.yy392; break; case 183: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 557: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==557); { yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-1].minor.yy184, yymsp[0].minor.yy392); } yymsp[-1].minor.yy184 = yylhsminor.yy184; break; case 184: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ { yylhsminor.yy392 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy377, yymsp[-8].minor.yy392, yymsp[-6].minor.yy392, yymsp[-5].minor.yy184, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); } yymsp[-9].minor.yy392 = yylhsminor.yy392; break; case 187: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy392 = createDropTableClause(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 189: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 376: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==376); { yymsp[-2].minor.yy184 = yymsp[-1].minor.yy184; } break; case 190: /* full_table_name ::= table_name */ { yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy369, NULL); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 191: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369, NULL); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 194: /* column_def ::= column_name type_name */ { yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864, NULL, false); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 195: /* column_def ::= column_name type_name PRIMARY KEY */ { yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy369, yymsp[-2].minor.yy864, NULL, true); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 196: /* type_name ::= BOOL */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 197: /* type_name ::= TINYINT */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 198: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 199: /* type_name ::= INT */ case 200: /* type_name ::= INTEGER */ yytestcase(yyruleno==200); { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_INT); } break; case 201: /* type_name ::= BIGINT */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 202: /* type_name ::= FLOAT */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 203: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 204: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 205: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 206: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 207: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 208: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 209: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 210: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 211: /* type_name ::= JSON */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 212: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 213: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 214: /* type_name ::= BLOB */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 215: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 216: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } break; case 217: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 218: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 219: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 222: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ case 383: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==383); { yymsp[-3].minor.yy184 = yymsp[-1].minor.yy184; } break; case 223: /* table_options ::= */ { yymsp[1].minor.yy392 = createDefaultTableOptions(pCxt); } break; case 224: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 225: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy184); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 226: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy184); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 227: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy184); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 228: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 229: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_SMA, yymsp[-1].minor.yy184); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 230: /* table_options ::= table_options DELETE_MARK duration_list */ { yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy184); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 231: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy392 = createAlterTableOptions(pCxt); yylhsminor.yy392 = setTableOption(pCxt, yylhsminor.yy392, yymsp[0].minor.yy845.type, &yymsp[0].minor.yy845.val); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 232: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy392 = setTableOption(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy845.type, &yymsp[0].minor.yy845.val); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 233: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy845.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 234: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy845.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } break; case 235: /* duration_list ::= duration_literal */ case 510: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==510); { yylhsminor.yy184 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } yymsp[0].minor.yy184 = yylhsminor.yy184; break; case 236: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 511: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==511); { yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } yymsp[-2].minor.yy184 = yylhsminor.yy184; break; case 239: /* rollup_func_name ::= function_name */ { yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy369, NULL); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 240: /* rollup_func_name ::= FIRST */ case 241: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==241); case 313: /* tag_item ::= QTAGS */ yytestcase(yyruleno==313); { yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 244: /* col_name ::= column_name */ case 314: /* tag_item ::= column_name */ yytestcase(yyruleno==314); { yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy369); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 245: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; case 246: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; case 247: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } break; case 248: /* cmd ::= SHOW db_kind_opt DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy849); } break; case 249: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy397, yymsp[0].minor.yy392, OP_TYPE_LIKE); } break; case 250: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } break; case 251: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy392, NULL, OP_TYPE_LIKE); } break; case 252: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; case 253: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; case 254: /* cmd ::= SHOW ARBGROUPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); } break; case 255: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 256: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); } break; case 257: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy369), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369), OP_TYPE_EQUAL); } break; case 258: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; case 259: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; case 260: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; case 261: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; case 262: /* cmd ::= SHOW LICENCES */ case 263: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==263); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; case 264: /* cmd ::= SHOW GRANTS FULL */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); } break; case 265: /* cmd ::= SHOW GRANTS LOGS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); } break; case 266: /* cmd ::= SHOW CLUSTER MACHINES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); } break; case 267: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy369); } break; case 268: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy392); } break; case 269: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy392); } break; case 270: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; case 271: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; case 272: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; case 273: /* cmd ::= SHOW VARIABLES */ case 274: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==274); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; case 275: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; case 276: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy392); } break; case 277: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; case 278: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; case 279: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; case 280: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 281: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy392); } break; case 282: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; case 283: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; case 284: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); } break; case 285: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy369), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369), OP_TYPE_EQUAL); } break; case 286: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392, yymsp[-3].minor.yy184); } break; case 287: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy369), yymsp[-4].minor.yy184); } break; case 288: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; case 289: /* cmd ::= SHOW VNODES */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } break; case 290: /* cmd ::= SHOW db_name_cond_opt ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy392, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; case 291: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; case 292: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } break; case 293: /* cmd ::= SHOW CREATE VIEW full_table_name */ { pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy392); } break; case 294: /* cmd ::= SHOW COMPACTS */ { pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); } break; case 295: /* cmd ::= SHOW COMPACT NK_INTEGER */ { pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 296: /* table_kind_db_name_cond_opt ::= */ { yymsp[1].minor.yy397.kind = SHOW_KIND_ALL; yymsp[1].minor.yy397.dbName = nil_token; } break; case 297: /* table_kind_db_name_cond_opt ::= table_kind */ { yylhsminor.yy397.kind = yymsp[0].minor.yy849; yylhsminor.yy397.dbName = nil_token; } yymsp[0].minor.yy397 = yylhsminor.yy397; break; case 298: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy397.kind = SHOW_KIND_ALL; yylhsminor.yy397.dbName = yymsp[-1].minor.yy369; } yymsp[-1].minor.yy397 = yylhsminor.yy397; break; case 299: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ { yylhsminor.yy397.kind = yymsp[-2].minor.yy849; yylhsminor.yy397.dbName = yymsp[-1].minor.yy369; } yymsp[-2].minor.yy397 = yylhsminor.yy397; break; case 300: /* table_kind ::= NORMAL */ { yymsp[0].minor.yy849 = SHOW_KIND_TABLES_NORMAL; } break; case 301: /* table_kind ::= CHILD */ { yymsp[0].minor.yy849 = SHOW_KIND_TABLES_CHILD; } break; case 302: /* db_name_cond_opt ::= */ case 307: /* from_db_opt ::= */ yytestcase(yyruleno==307); { yymsp[1].minor.yy392 = createDefaultDatabaseCondValue(pCxt); } break; case 303: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy392 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy369); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 305: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 306: /* table_name_cond ::= table_name */ { yylhsminor.yy392 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 308: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy392 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369); } break; case 312: /* tag_item ::= TBNAME */ { yylhsminor.yy392 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 315: /* tag_item ::= column_name column_alias */ { yylhsminor.yy392 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy369), &yymsp[0].minor.yy369); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 316: /* tag_item ::= column_name AS column_alias */ { yylhsminor.yy392 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy369), &yymsp[0].minor.yy369); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 317: /* db_kind_opt ::= */ { yymsp[1].minor.yy849 = SHOW_KIND_ALL; } break; case 318: /* db_kind_opt ::= USER */ { yymsp[0].minor.yy849 = SHOW_KIND_DATABASES_USER; } break; case 319: /* db_kind_opt ::= SYSTEM */ { yymsp[0].minor.yy849 = SHOW_KIND_DATABASES_SYSTEM; } break; case 320: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy377, yymsp[-3].minor.yy392, yymsp[-1].minor.yy392, NULL, yymsp[0].minor.yy392); } break; case 321: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy377, yymsp[-5].minor.yy392, yymsp[-3].minor.yy392, yymsp[-1].minor.yy184, NULL); } break; case 322: /* cmd ::= DROP INDEX exists_opt full_index_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } break; case 323: /* full_index_name ::= index_name */ { yylhsminor.yy392 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy369); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 324: /* full_index_name ::= db_name NK_DOT index_name */ { yylhsminor.yy392 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 325: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-9].minor.yy392 = createIndexOption(pCxt, yymsp[-7].minor.yy184, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 326: /* 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 */ { yymsp[-11].minor.yy392 = createIndexOption(pCxt, yymsp[-9].minor.yy184, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 329: /* func ::= sma_func_name NK_LP expression_list NK_RP */ { yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[-3].minor.yy369, yymsp[-1].minor.yy184); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 330: /* sma_func_name ::= function_name */ case 600: /* alias_opt ::= table_alias */ yytestcase(yyruleno==600); { yylhsminor.yy369 = yymsp[0].minor.yy369; } yymsp[0].minor.yy369 = yylhsminor.yy369; break; case 335: /* sma_stream_opt ::= */ case 384: /* stream_options ::= */ yytestcase(yyruleno==384); { yymsp[1].minor.yy392 = createStreamOptions(pCxt); } break; case 336: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy392)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 337: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy392)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 338: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy392)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 339: /* with_meta ::= AS */ { yymsp[0].minor.yy20 = 0; } break; case 340: /* with_meta ::= WITH META AS */ { yymsp[-2].minor.yy20 = 1; } break; case 341: /* with_meta ::= ONLY META AS */ { yymsp[-2].minor.yy20 = 2; } break; case 342: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy377, &yymsp[-2].minor.yy369, yymsp[0].minor.yy392); } break; case 343: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy377, &yymsp[-3].minor.yy369, &yymsp[0].minor.yy369, yymsp[-2].minor.yy20); } break; case 344: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy377, &yymsp[-4].minor.yy369, yymsp[-1].minor.yy392, yymsp[-3].minor.yy20, yymsp[0].minor.yy392); } break; case 345: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } break; case 346: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy377, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369); } break; case 347: /* cmd ::= DESC full_table_name */ case 348: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==348); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy392); } break; case 349: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 350: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 351: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==351); { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy377, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 354: /* explain_options ::= */ { yymsp[1].minor.yy392 = createDefaultExplainOptions(pCxt); } break; case 355: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy392 = setExplainVerbose(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 356: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy392 = setExplainRatio(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 357: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ { pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy377, yymsp[-9].minor.yy377, &yymsp[-6].minor.yy369, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy864, yymsp[-1].minor.yy20, &yymsp[0].minor.yy369, yymsp[-10].minor.yy377); } break; case 358: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } break; case 363: /* language_opt ::= */ case 406: /* on_vgroup_id ::= */ yytestcase(yyruleno==406); { yymsp[1].minor.yy369 = nil_token; } break; case 364: /* language_opt ::= LANGUAGE NK_STRING */ case 407: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==407); { yymsp[-1].minor.yy369 = yymsp[0].minor.yy0; } break; case 367: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ { pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy377, yymsp[-2].minor.yy392, &yymsp[-1].minor.yy0, yymsp[0].minor.yy392); } break; case 368: /* cmd ::= DROP VIEW exists_opt full_view_name */ { pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } break; case 369: /* full_view_name ::= view_name */ { yylhsminor.yy392 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy369); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 370: /* full_view_name ::= db_name NK_DOT view_name */ { yylhsminor.yy392 = createViewNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 371: /* 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 */ { pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy377, &yymsp[-8].minor.yy369, yymsp[-5].minor.yy392, yymsp[-7].minor.yy392, yymsp[-3].minor.yy184, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, yymsp[-4].minor.yy184); } break; case 372: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } break; case 373: /* cmd ::= PAUSE STREAM exists_opt stream_name */ { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } break; case 374: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy377, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } break; case 379: /* column_stream_def ::= column_name */ { yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[0].minor.yy369, createDataType(TSDB_DATA_TYPE_NULL), NULL, false); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 380: /* column_stream_def ::= column_name PRIMARY KEY */ { yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy369, createDataType(TSDB_DATA_TYPE_NULL), NULL, true); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 385: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 386: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==386); { yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 387: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-3].minor.yy392, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 388: /* stream_options ::= stream_options WATERMARK duration_literal */ { yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 389: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-3].minor.yy392, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 390: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 391: /* stream_options ::= stream_options DELETE_MARK duration_literal */ { yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 392: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-3].minor.yy392, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 394: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ case 640: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==640); case 664: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==664); { yymsp[-3].minor.yy392 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy392); } break; case 397: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; case 398: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; case 399: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; case 400: /* cmd ::= KILL COMPACT NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); } break; case 401: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; case 402: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy369); } break; case 403: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 404: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy184); } break; case 405: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 408: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 410: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 413: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { yymsp[-6].minor.yy392 = createInsertStmt(pCxt, yymsp[-4].minor.yy392, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); } break; case 414: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ { yymsp[-3].minor.yy392 = createInsertStmt(pCxt, yymsp[-1].minor.yy392, NULL, yymsp[0].minor.yy392); } break; case 415: /* tags_literal ::= NK_INTEGER */ case 427: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==427); case 436: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==436); { yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 416: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ case 417: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==417); case 428: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==428); case 429: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==429); case 437: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==437); case 438: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==438); case 446: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==446); case 447: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==447); { SToken l = yymsp[-2].minor.yy0; SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); l.n = (r.z + r.n) - l.z; yylhsminor.yy392 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy392); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 418: /* tags_literal ::= NK_PLUS NK_INTEGER */ case 421: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==421); case 430: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==430); case 433: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==433); case 439: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==439); case 442: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==442); { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 419: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ case 420: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==420); case 422: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==422); case 423: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==423); case 431: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==431); case 432: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==432); case 434: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==434); case 435: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==435); case 440: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==440); case 441: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==441); case 443: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==443); case 444: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==444); { SToken l = yymsp[-3].minor.yy0; SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); l.n = (r.z + r.n) - l.z; yylhsminor.yy392 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy392); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 424: /* tags_literal ::= NK_FLOAT */ { yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 425: /* tags_literal ::= NK_PLUS NK_FLOAT */ case 426: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==426); { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 445: /* tags_literal ::= NK_STRING */ { yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 448: /* tags_literal ::= NK_BOOL */ { yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 449: /* tags_literal ::= NULL */ { yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 450: /* tags_literal ::= literal_func */ { yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy392); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 451: /* tags_literal ::= literal_func NK_PLUS duration_literal */ case 452: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==452); { SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); l.n = (r.z + r.n) - l.z; yylhsminor.yy392 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 455: /* literal ::= NK_INTEGER */ { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 456: /* literal ::= NK_FLOAT */ { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 457: /* literal ::= NK_STRING */ { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 458: /* literal ::= NK_BOOL */ { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 459: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 460: /* literal ::= duration_literal */ case 470: /* signed_literal ::= signed */ yytestcase(yyruleno==470); case 493: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==493); case 494: /* expression ::= literal */ yytestcase(yyruleno==494); case 496: /* expression ::= column_reference */ yytestcase(yyruleno==496); case 497: /* expression ::= function_expression */ yytestcase(yyruleno==497); case 498: /* expression ::= case_when_expression */ yytestcase(yyruleno==498); case 531: /* function_expression ::= literal_func */ yytestcase(yyruleno==531); case 581: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==581); case 585: /* boolean_primary ::= predicate */ yytestcase(yyruleno==585); case 587: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==587); case 588: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==588); case 591: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==591); case 593: /* table_reference ::= table_primary */ yytestcase(yyruleno==593); case 594: /* table_reference ::= joined_table */ yytestcase(yyruleno==594); case 598: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==598); case 666: /* query_simple ::= query_specification */ yytestcase(yyruleno==666); case 667: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==667); case 670: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==670); case 672: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==672); { yylhsminor.yy392 = yymsp[0].minor.yy392; } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 461: /* literal ::= NULL */ { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 462: /* literal ::= NK_QUESTION */ { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 463: /* duration_literal ::= NK_VARIABLE */ case 641: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==641); case 642: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==642); case 643: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==643); { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 464: /* signed ::= NK_INTEGER */ { yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 465: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; case 466: /* signed ::= NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 467: /* signed ::= NK_FLOAT */ { yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 468: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 469: /* signed ::= NK_MINUS NK_FLOAT */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 471: /* signed_literal ::= NK_STRING */ { yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 472: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 473: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 474: /* signed_literal ::= duration_literal */ case 476: /* signed_literal ::= literal_func */ yytestcase(yyruleno==476); case 552: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==552); case 618: /* select_item ::= common_expression */ yytestcase(yyruleno==618); case 628: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==628); case 671: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==671); case 673: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==673); case 686: /* search_condition ::= common_expression */ yytestcase(yyruleno==686); { yylhsminor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 475: /* signed_literal ::= NULL */ { yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 477: /* signed_literal ::= NK_QUESTION */ { yylhsminor.yy392 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 495: /* expression ::= pseudo_column */ { yylhsminor.yy392 = yymsp[0].minor.yy392; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy392, true); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 499: /* expression ::= NK_LP expression NK_RP */ case 586: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==586); case 685: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==685); { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 500: /* expression ::= NK_PLUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 501: /* expression ::= NK_MINUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 502: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 503: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 504: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 505: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 506: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 507: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 508: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 509: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 512: /* column_reference ::= column_name */ { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy369, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy369)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 513: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369, createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369)); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 514: /* column_reference ::= NK_ALIAS */ { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 515: /* column_reference ::= table_name NK_DOT NK_ALIAS */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 516: /* pseudo_column ::= ROWTS */ case 517: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==517); case 519: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==519); case 520: /* pseudo_column ::= QEND */ yytestcase(yyruleno==520); case 521: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==521); case 522: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==522); case 523: /* pseudo_column ::= WEND */ yytestcase(yyruleno==523); case 524: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==524); case 525: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==525); case 526: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==526); case 527: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==527); case 533: /* literal_func ::= NOW */ yytestcase(yyruleno==533); case 534: /* literal_func ::= TODAY */ yytestcase(yyruleno==534); { yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 518: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy369)))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 528: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 529: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==529); { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy369, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy369, yymsp[-1].minor.yy184)); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 530: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy864)); } yymsp[-5].minor.yy392 = yylhsminor.yy392; break; case 532: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy369, NULL)); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 548: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy184 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy184 = yylhsminor.yy184; break; case 553: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 621: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==621); { yylhsminor.yy392 = createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 554: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy184, yymsp[-1].minor.yy392)); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 555: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-2].minor.yy184, yymsp[-1].minor.yy392)); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 558: /* when_then_expr ::= WHEN common_expression THEN common_expression */ { yymsp[-3].minor.yy392 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } break; case 560: /* case_when_else_opt ::= ELSE common_expression */ { yymsp[-1].minor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } break; case 561: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 566: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==566); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy220, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 562: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 563: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-5].minor.yy392 = yylhsminor.yy392; break; case 564: /* predicate ::= expr_or_subquery IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), NULL)); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 565: /* predicate ::= expr_or_subquery IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL)); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 567: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy220 = OP_TYPE_LOWER_THAN; } break; case 568: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy220 = OP_TYPE_GREATER_THAN; } break; case 569: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy220 = OP_TYPE_LOWER_EQUAL; } break; case 570: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy220 = OP_TYPE_GREATER_EQUAL; } break; case 571: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy220 = OP_TYPE_NOT_EQUAL; } break; case 572: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy220 = OP_TYPE_EQUAL; } break; case 573: /* compare_op ::= LIKE */ { yymsp[0].minor.yy220 = OP_TYPE_LIKE; } break; case 574: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy220 = OP_TYPE_NOT_LIKE; } break; case 575: /* compare_op ::= MATCH */ { yymsp[0].minor.yy220 = OP_TYPE_MATCH; } break; case 576: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy220 = OP_TYPE_NMATCH; } break; case 577: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy220 = OP_TYPE_JSON_CONTAINS; } break; case 578: /* in_op ::= IN */ { yymsp[0].minor.yy220 = OP_TYPE_IN; } break; case 579: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy220 = OP_TYPE_NOT_IN; } break; case 580: /* in_predicate_value ::= NK_LP literal_list NK_RP */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy184)); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 582: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 583: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 584: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 592: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy392 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, NULL); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 595: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 596: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-3].minor.yy369, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 597: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy392 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy369); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 599: /* alias_opt ::= */ { yymsp[1].minor.yy369 = nil_token; } break; case 601: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy369 = yymsp[0].minor.yy369; } break; case 602: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 603: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==603); { yymsp[-2].minor.yy392 = yymsp[-1].minor.yy392; } break; case 604: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy392 = createJoinTableNode(pCxt, yymsp[-4].minor.yy932, yymsp[-5].minor.yy392, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } yymsp[-5].minor.yy392 = yylhsminor.yy392; break; case 605: /* join_type ::= */ { yymsp[1].minor.yy932 = JOIN_TYPE_INNER; } break; case 606: /* join_type ::= INNER */ { yymsp[0].minor.yy932 = JOIN_TYPE_INNER; } break; case 607: /* 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 */ { yymsp[-13].minor.yy392 = createSelectStmt(pCxt, yymsp[-11].minor.yy377, yymsp[-9].minor.yy184, yymsp[-8].minor.yy392, yymsp[-12].minor.yy184); yymsp[-13].minor.yy392 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy392, yymsp[-10].minor.yy377); yymsp[-13].minor.yy392 = addWhereClause(pCxt, yymsp[-13].minor.yy392, yymsp[-7].minor.yy392); yymsp[-13].minor.yy392 = addPartitionByClause(pCxt, yymsp[-13].minor.yy392, yymsp[-6].minor.yy184); yymsp[-13].minor.yy392 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy392, yymsp[-2].minor.yy392); yymsp[-13].minor.yy392 = addGroupByClause(pCxt, yymsp[-13].minor.yy392, yymsp[-1].minor.yy184); yymsp[-13].minor.yy392 = addHavingClause(pCxt, yymsp[-13].minor.yy392, yymsp[0].minor.yy392); yymsp[-13].minor.yy392 = addRangeClause(pCxt, yymsp[-13].minor.yy392, yymsp[-5].minor.yy392); yymsp[-13].minor.yy392 = addEveryClause(pCxt, yymsp[-13].minor.yy392, yymsp[-4].minor.yy392); yymsp[-13].minor.yy392 = addFillClause(pCxt, yymsp[-13].minor.yy392, yymsp[-3].minor.yy392); } break; case 608: /* hint_list ::= */ { yymsp[1].minor.yy184 = createHintNodeList(pCxt, NULL); } break; case 609: /* hint_list ::= NK_HINT */ { yylhsminor.yy184 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy184 = yylhsminor.yy184; break; case 614: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy377 = false; } break; case 617: /* select_item ::= NK_STAR */ { yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 619: /* select_item ::= common_expression column_alias */ case 629: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==629); { yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy369); } yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 620: /* select_item ::= common_expression AS column_alias */ case 630: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==630); { yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), &yymsp[0].minor.yy369); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 625: /* partition_by_clause_opt ::= PARTITION BY partition_list */ case 655: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==655); case 675: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==675); { yymsp[-2].minor.yy184 = yymsp[0].minor.yy184; } break; case 632: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ { yymsp[-5].minor.yy392 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; case 633: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy392 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; case 634: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 635: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 636: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ { yymsp[-6].minor.yy392 = createEventWindowNode(pCxt, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } break; case 637: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy392 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } break; case 638: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy392 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } break; case 645: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy392 = createFillNode(pCxt, yymsp[-1].minor.yy374, NULL); } break; case 646: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy184)); } break; case 647: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy184)); } break; case 648: /* fill_mode ::= NONE */ { yymsp[0].minor.yy374 = FILL_MODE_NONE; } break; case 649: /* fill_mode ::= PREV */ { yymsp[0].minor.yy374 = FILL_MODE_PREV; } break; case 650: /* fill_mode ::= NULL */ { yymsp[0].minor.yy374 = FILL_MODE_NULL; } break; case 651: /* fill_mode ::= NULL_F */ { yymsp[0].minor.yy374 = FILL_MODE_NULL_F; } break; case 652: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy374 = FILL_MODE_LINEAR; } break; case 653: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy374 = FILL_MODE_NEXT; } break; case 656: /* group_by_list ::= expr_or_subquery */ { yylhsminor.yy184 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[0].minor.yy184 = yylhsminor.yy184; break; case 657: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } yymsp[-2].minor.yy184 = yylhsminor.yy184; break; case 661: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { yymsp[-5].minor.yy392 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; case 662: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy392 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; case 665: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy392 = addOrderByClause(pCxt, yymsp[-3].minor.yy392, yymsp[-2].minor.yy184); yylhsminor.yy392 = addSlimitClause(pCxt, yylhsminor.yy392, yymsp[-1].minor.yy392); yylhsminor.yy392 = addLimitClause(pCxt, yylhsminor.yy392, yymsp[0].minor.yy392); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 668: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 669: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 677: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 681: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==681); { yymsp[-1].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 678: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 682: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==682); { yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; case 679: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 683: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==683); { yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; case 684: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy392); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 689: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { yylhsminor.yy392 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[-1].minor.yy578, yymsp[0].minor.yy217); } yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 690: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy578 = ORDER_ASC; } break; case 691: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy578 = ORDER_ASC; } break; case 692: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy578 = ORDER_DESC; } break; case 693: /* null_ordering_opt ::= */ { yymsp[1].minor.yy217 = NULL_ORDER_DEFAULT; } break; case 694: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy217 = NULL_ORDER_FIRST; } break; case 695: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy217 = NULL_ORDER_LAST; } 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 ****************************************/ 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); } /************ 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 }