/* 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_LOCAL 58 #define TK_QNODE 59 #define TK_BNODE 60 #define TK_SNODE 61 #define TK_MNODE 62 #define TK_VNODE 63 #define TK_DATABASE 64 #define TK_USE 65 #define TK_FLUSH 66 #define TK_TRIM 67 #define TK_COMPACT 68 #define TK_IF 69 #define TK_NOT 70 #define TK_EXISTS 71 #define TK_BUFFER 72 #define TK_CACHEMODEL 73 #define TK_CACHESIZE 74 #define TK_COMP 75 #define TK_DURATION 76 #define TK_NK_VARIABLE 77 #define TK_MAXROWS 78 #define TK_MINROWS 79 #define TK_KEEP 80 #define TK_PAGES 81 #define TK_PAGESIZE 82 #define TK_TSDB_PAGESIZE 83 #define TK_PRECISION 84 #define TK_REPLICA 85 #define TK_VGROUPS 86 #define TK_SINGLE_STABLE 87 #define TK_RETENTIONS 88 #define TK_SCHEMALESS 89 #define TK_WAL_LEVEL 90 #define TK_WAL_FSYNC_PERIOD 91 #define TK_WAL_RETENTION_PERIOD 92 #define TK_WAL_RETENTION_SIZE 93 #define TK_WAL_ROLL_PERIOD 94 #define TK_WAL_SEGMENT_SIZE 95 #define TK_STT_TRIGGER 96 #define TK_TABLE_PREFIX 97 #define TK_TABLE_SUFFIX 98 #define TK_KEEP_TIME_OFFSET 99 #define TK_NK_COLON 100 #define TK_BWLIMIT 101 #define TK_START 102 #define TK_TIMESTAMP 103 #define TK_END 104 #define TK_TABLE 105 #define TK_NK_LP 106 #define TK_NK_RP 107 #define TK_STABLE 108 #define TK_COLUMN 109 #define TK_MODIFY 110 #define TK_RENAME 111 #define TK_TAG 112 #define TK_SET 113 #define TK_NK_EQ 114 #define TK_USING 115 #define TK_TAGS 116 #define TK_BOOL 117 #define TK_TINYINT 118 #define TK_SMALLINT 119 #define TK_INT 120 #define TK_INTEGER 121 #define TK_BIGINT 122 #define TK_FLOAT 123 #define TK_DOUBLE 124 #define TK_BINARY 125 #define TK_NCHAR 126 #define TK_UNSIGNED 127 #define TK_JSON 128 #define TK_VARCHAR 129 #define TK_MEDIUMBLOB 130 #define TK_BLOB 131 #define TK_VARBINARY 132 #define TK_GEOMETRY 133 #define TK_DECIMAL 134 #define TK_COMMENT 135 #define TK_MAX_DELAY 136 #define TK_WATERMARK 137 #define TK_ROLLUP 138 #define TK_TTL 139 #define TK_SMA 140 #define TK_DELETE_MARK 141 #define TK_FIRST 142 #define TK_LAST 143 #define TK_SHOW 144 #define TK_PRIVILEGES 145 #define TK_DATABASES 146 #define TK_TABLES 147 #define TK_STABLES 148 #define TK_MNODES 149 #define TK_QNODES 150 #define TK_FUNCTIONS 151 #define TK_INDEXES 152 #define TK_ACCOUNTS 153 #define TK_APPS 154 #define TK_CONNECTIONS 155 #define TK_LICENCES 156 #define TK_GRANTS 157 #define TK_QUERIES 158 #define TK_SCORES 159 #define TK_TOPICS 160 #define TK_VARIABLES 161 #define TK_CLUSTER 162 #define TK_BNODES 163 #define TK_SNODES 164 #define TK_TRANSACTIONS 165 #define TK_DISTRIBUTED 166 #define TK_CONSUMERS 167 #define TK_SUBSCRIPTIONS 168 #define TK_VNODES 169 #define TK_ALIVE 170 #define TK_VIEWS 171 #define TK_VIEW 172 #define TK_COMPACTS 173 #define TK_NORMAL 174 #define TK_CHILD 175 #define TK_LIKE 176 #define TK_TBNAME 177 #define TK_QTAGS 178 #define TK_AS 179 #define TK_SYSTEM 180 #define TK_INDEX 181 #define TK_FUNCTION 182 #define TK_INTERVAL 183 #define TK_COUNT 184 #define TK_LAST_ROW 185 #define TK_META 186 #define TK_ONLY 187 #define TK_TOPIC 188 #define TK_CONSUMER 189 #define TK_GROUP 190 #define TK_DESC 191 #define TK_DESCRIBE 192 #define TK_RESET 193 #define TK_QUERY 194 #define TK_CACHE 195 #define TK_EXPLAIN 196 #define TK_ANALYZE 197 #define TK_VERBOSE 198 #define TK_NK_BOOL 199 #define TK_RATIO 200 #define TK_NK_FLOAT 201 #define TK_OUTPUTTYPE 202 #define TK_AGGREGATE 203 #define TK_BUFSIZE 204 #define TK_LANGUAGE 205 #define TK_REPLACE 206 #define TK_STREAM 207 #define TK_INTO 208 #define TK_PAUSE 209 #define TK_RESUME 210 #define TK_TRIGGER 211 #define TK_AT_ONCE 212 #define TK_WINDOW_CLOSE 213 #define TK_IGNORE 214 #define TK_EXPIRED 215 #define TK_FILL_HISTORY 216 #define TK_UPDATE 217 #define TK_SUBTABLE 218 #define TK_UNTREATED 219 #define TK_KILL 220 #define TK_CONNECTION 221 #define TK_TRANSACTION 222 #define TK_BALANCE 223 #define TK_VGROUP 224 #define TK_LEADER 225 #define TK_MERGE 226 #define TK_REDISTRIBUTE 227 #define TK_SPLIT 228 #define TK_DELETE 229 #define TK_INSERT 230 #define TK_NULL 231 #define TK_NK_QUESTION 232 #define TK_NK_ALIAS 233 #define TK_NK_ARROW 234 #define TK_ROWTS 235 #define TK_QSTART 236 #define TK_QEND 237 #define TK_QDURATION 238 #define TK_WSTART 239 #define TK_WEND 240 #define TK_WDURATION 241 #define TK_IROWTS 242 #define TK_ISFILLED 243 #define TK_CAST 244 #define TK_NOW 245 #define TK_TODAY 246 #define TK_TIMEZONE 247 #define TK_CLIENT_VERSION 248 #define TK_SERVER_VERSION 249 #define TK_SERVER_STATUS 250 #define TK_CURRENT_USER 251 #define TK_CASE 252 #define TK_WHEN 253 #define TK_THEN 254 #define TK_ELSE 255 #define TK_BETWEEN 256 #define TK_IS 257 #define TK_NK_LT 258 #define TK_NK_GT 259 #define TK_NK_LE 260 #define TK_NK_GE 261 #define TK_NK_NE 262 #define TK_MATCH 263 #define TK_NMATCH 264 #define TK_CONTAINS 265 #define TK_IN 266 #define TK_JOIN 267 #define TK_INNER 268 #define TK_SELECT 269 #define TK_NK_HINT 270 #define TK_DISTINCT 271 #define TK_WHERE 272 #define TK_PARTITION 273 #define TK_BY 274 #define TK_SESSION 275 #define TK_STATE_WINDOW 276 #define TK_EVENT_WINDOW 277 #define TK_COUNT_WINDOW 278 #define TK_SLIDING 279 #define TK_FILL 280 #define TK_VALUE 281 #define TK_VALUE_F 282 #define TK_NONE 283 #define TK_PREV 284 #define TK_NULL_F 285 #define TK_LINEAR 286 #define TK_NEXT 287 #define TK_HAVING 288 #define TK_RANGE 289 #define TK_EVERY 290 #define TK_ORDER 291 #define TK_SLIMIT 292 #define TK_SOFFSET 293 #define TK_LIMIT 294 #define TK_OFFSET 295 #define TK_ASC 296 #define TK_NULLS 297 #define TK_ABORT 298 #define TK_AFTER 299 #define TK_ATTACH 300 #define TK_BEFORE 301 #define TK_BEGIN 302 #define TK_BITAND 303 #define TK_BITNOT 304 #define TK_BITOR 305 #define TK_BLOCKS 306 #define TK_CHANGE 307 #define TK_COMMA 308 #define TK_CONCAT 309 #define TK_CONFLICT 310 #define TK_COPY 311 #define TK_DEFERRED 312 #define TK_DELIMITERS 313 #define TK_DETACH 314 #define TK_DIVIDE 315 #define TK_DOT 316 #define TK_EACH 317 #define TK_FAIL 318 #define TK_FILE 319 #define TK_FOR 320 #define TK_GLOB 321 #define TK_ID 322 #define TK_IMMEDIATE 323 #define TK_IMPORT 324 #define TK_INITIALLY 325 #define TK_INSTEAD 326 #define TK_ISNULL 327 #define TK_KEY 328 #define TK_MODULES 329 #define TK_NK_BITNOT 330 #define TK_NK_SEMI 331 #define TK_NOTNULL 332 #define TK_OF 333 #define TK_PLUS 334 #define TK_PRIVILEGE 335 #define TK_RAISE 336 #define TK_RESTRICT 337 #define TK_ROW 338 #define TK_SEMI 339 #define TK_STAR 340 #define TK_STATEMENT 341 #define TK_STRICT 342 #define TK_STRING 343 #define TK_TIMES 344 #define TK_VALUES 345 #define TK_VARIABLE 346 #define TK_WAL 347 #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 509 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; SDataType yy34; SToken yy39; ENullOrder yy89; EJoinType yy90; bool yy145; SAlterOption yy187; SNodeList* yy200; int8_t yy211; EOperatorType yy240; int32_t yy474; EFillMode yy624; int64_t yy731; SNode* yy890; EOrder yy900; EShowKind yy979; STokenPair yy1011; SShowTablesOption yy1013; } 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 843 #define YYNRULE 643 #define YYNRULE_WITH_ACTION 643 #define YYNTOKEN 348 #define YY_MAX_SHIFT 842 #define YY_MIN_SHIFTREDUCE 1246 #define YY_MAX_SHIFTREDUCE 1888 #define YY_ERROR_ACTION 1889 #define YY_ACCEPT_ACTION 1890 #define YY_NO_ACTION 1891 #define YY_MIN_REDUCE 1892 #define YY_MAX_REDUCE 2534 /************* 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 (2911) static const YYACTIONTYPE yy_action[] = { /* 0 */ 409, 561, 197, 418, 562, 1935, 569, 2069, 171, 562, /* 10 */ 1935, 168, 48, 46, 1811, 2215, 2082, 34, 397, 2082, /* 20 */ 415, 471, 1652, 41, 40, 1677, 2131, 47, 45, 44, /* 30 */ 43, 42, 36, 2213, 715, 1737, 1976, 1650, 41, 40, /* 40 */ 38, 320, 47, 45, 44, 43, 42, 2335, 41, 40, /* 50 */ 480, 2191, 47, 45, 44, 43, 42, 707, 146, 1678, /* 60 */ 710, 184, 2127, 2128, 1732, 1893, 528, 526, 420, 365, /* 70 */ 19, 2126, 2128, 217, 41, 40, 173, 1658, 47, 45, /* 80 */ 44, 43, 42, 383, 2019, 2195, 127, 95, 2353, 126, /* 90 */ 125, 124, 123, 122, 121, 120, 119, 118, 1677, 219, /* 100 */ 2301, 237, 744, 839, 385, 564, 15, 1943, 814, 813, /* 110 */ 812, 811, 427, 2075, 810, 809, 151, 804, 803, 802, /* 120 */ 801, 800, 799, 798, 150, 792, 791, 790, 426, 425, /* 130 */ 787, 786, 785, 183, 182, 784, 695, 486, 2191, 2505, /* 140 */ 1652, 2334, 1739, 1740, 2372, 1835, 184, 114, 2336, 748, /* 150 */ 2338, 2339, 743, 148, 738, 1650, 2396, 694, 203, 186, /* 160 */ 1836, 2425, 2506, 696, 1286, 411, 2421, 300, 2433, 706, /* 170 */ 2196, 138, 705, 727, 2505, 707, 146, 1712, 1722, 558, /* 180 */ 205, 1483, 1484, 1293, 1738, 1741, 221, 556, 2455, 2133, /* 190 */ 552, 548, 694, 203, 2215, 1658, 381, 2506, 696, 1653, /* 200 */ 1834, 1651, 797, 2510, 2131, 2041, 1288, 1291, 1292, 408, /* 210 */ 41, 40, 2212, 715, 47, 45, 44, 43, 42, 127, /* 220 */ 1680, 839, 126, 125, 124, 123, 122, 121, 120, 119, /* 230 */ 118, 1656, 1657, 1709, 727, 1711, 1714, 1715, 1716, 1717, /* 240 */ 1718, 1719, 1720, 1721, 740, 736, 1730, 1731, 1733, 1734, /* 250 */ 1735, 1736, 2, 48, 46, 1551, 1552, 1885, 364, 51, /* 260 */ 1675, 415, 1312, 1652, 1311, 1677, 2133, 512, 196, 2335, /* 270 */ 531, 650, 375, 396, 695, 530, 1737, 2505, 1650, 142, /* 280 */ 2120, 2131, 745, 2440, 709, 201, 2433, 2434, 239, 144, /* 290 */ 2438, 494, 564, 532, 1943, 694, 203, 1313, 496, 2311, /* 300 */ 2506, 696, 223, 514, 2191, 1732, 1892, 1878, 474, 2437, /* 310 */ 2353, 19, 174, 2071, 1904, 68, 1766, 1653, 1658, 1651, /* 320 */ 311, 312, 2301, 2315, 744, 310, 1768, 2335, 728, 2080, /* 330 */ 136, 135, 134, 133, 132, 131, 130, 129, 128, 63, /* 340 */ 745, 1391, 1945, 90, 839, 384, 89, 15, 137, 1656, /* 350 */ 1657, 63, 226, 41, 40, 604, 482, 47, 45, 44, /* 360 */ 43, 42, 1884, 2334, 611, 1681, 2372, 2317, 2353, 175, /* 370 */ 2336, 748, 2338, 2339, 743, 448, 738, 738, 1767, 302, /* 380 */ 2301, 1393, 744, 1739, 1740, 1915, 2202, 2181, 1388, 519, /* 390 */ 518, 517, 516, 511, 510, 509, 508, 507, 502, 501, /* 400 */ 500, 499, 367, 491, 490, 489, 35, 484, 483, 382, /* 410 */ 88, 668, 2466, 475, 1539, 1540, 1773, 63, 1712, 1722, /* 420 */ 1558, 2334, 304, 1678, 2372, 1738, 1741, 114, 2336, 748, /* 430 */ 2338, 2339, 743, 727, 738, 52, 651, 639, 2301, 2525, /* 440 */ 1653, 2425, 1651, 41, 40, 411, 2421, 47, 45, 44, /* 450 */ 43, 42, 637, 794, 635, 269, 268, 3, 37, 413, /* 460 */ 1761, 1762, 1763, 1764, 1765, 1769, 1770, 1771, 1772, 54, /* 470 */ 689, 685, 1656, 1657, 1709, 578, 1711, 1714, 1715, 1716, /* 480 */ 1717, 1718, 1719, 1720, 1721, 740, 736, 1730, 1731, 1733, /* 490 */ 1734, 1735, 1736, 2, 12, 48, 46, 775, 2353, 2335, /* 500 */ 2124, 452, 304, 415, 690, 1652, 728, 2080, 2133, 255, /* 510 */ 571, 2254, 745, 2311, 304, 405, 63, 796, 1737, 51, /* 520 */ 1650, 728, 2080, 2131, 199, 179, 208, 2320, 454, 450, /* 530 */ 2335, 579, 2208, 598, 594, 590, 586, 2315, 254, 577, /* 540 */ 2353, 137, 1854, 710, 2294, 1571, 1572, 1732, 609, 623, /* 550 */ 622, 621, 2301, 19, 744, 581, 613, 143, 617, 688, /* 560 */ 1658, 783, 616, 691, 686, 679, 675, 615, 620, 391, /* 570 */ 390, 2353, 648, 614, 522, 1914, 610, 2133, 1682, 96, /* 580 */ 304, 2317, 252, 2301, 410, 744, 839, 1570, 1573, 15, /* 590 */ 1681, 738, 2131, 2334, 667, 2056, 2372, 2505, 304, 114, /* 600 */ 2336, 748, 2338, 2339, 743, 2311, 738, 2133, 462, 149, /* 610 */ 461, 156, 2396, 2425, 419, 2511, 203, 411, 2421, 2319, /* 620 */ 2506, 696, 2131, 12, 2334, 1739, 1740, 2372, 2301, 2315, /* 630 */ 114, 2336, 748, 2338, 2339, 743, 227, 738, 2057, 566, /* 640 */ 460, 1681, 186, 608, 2425, 563, 242, 607, 411, 2421, /* 650 */ 728, 2080, 112, 707, 146, 251, 244, 1843, 521, 520, /* 660 */ 1712, 1722, 249, 575, 783, 728, 2080, 1738, 1741, 147, /* 670 */ 56, 2456, 1815, 2317, 412, 1448, 272, 2072, 1677, 304, /* 680 */ 271, 241, 1653, 738, 1651, 468, 44, 43, 42, 1439, /* 690 */ 773, 772, 771, 1443, 770, 1445, 1446, 769, 766, 1658, /* 700 */ 1454, 763, 1456, 1457, 760, 757, 754, 682, 681, 1841, /* 710 */ 1842, 1844, 1845, 1846, 1656, 1657, 1709, 1709, 1711, 1714, /* 720 */ 1715, 1716, 1717, 1718, 1719, 1720, 1721, 740, 736, 1730, /* 730 */ 1731, 1733, 1734, 1735, 1736, 2, 48, 46, 1742, 2335, /* 740 */ 728, 2080, 728, 2080, 415, 2164, 1652, 98, 649, 194, /* 750 */ 370, 1680, 745, 395, 2463, 641, 12, 651, 10, 1737, /* 760 */ 469, 1650, 488, 202, 2433, 2434, 842, 144, 2438, 2510, /* 770 */ 284, 2335, 2505, 781, 161, 160, 778, 777, 776, 158, /* 780 */ 2353, 2055, 327, 730, 745, 2397, 2476, 779, 1732, 418, /* 790 */ 2124, 2509, 2301, 2322, 744, 2506, 2508, 171, 193, 2440, /* 800 */ 198, 1658, 421, 1682, 774, 2082, 830, 826, 822, 818, /* 810 */ 171, 324, 2353, 1293, 100, 41, 40, 1913, 2082, 47, /* 820 */ 45, 44, 43, 42, 2301, 2436, 744, 839, 707, 146, /* 830 */ 49, 653, 2254, 2334, 1677, 1713, 2372, 1291, 1292, 114, /* 840 */ 2336, 748, 2338, 2339, 743, 1912, 738, 1911, 1315, 1316, /* 850 */ 2324, 2525, 113, 2425, 1682, 318, 1747, 411, 2421, 424, /* 860 */ 423, 666, 1677, 600, 599, 2334, 1739, 1740, 2372, 1666, /* 870 */ 2301, 114, 2336, 748, 2338, 2339, 743, 2510, 738, 732, /* 880 */ 2505, 2397, 1737, 2525, 1659, 2425, 325, 724, 1910, 411, /* 890 */ 2421, 1710, 2335, 47, 45, 44, 43, 42, 2301, 2509, /* 900 */ 2301, 1712, 1722, 2506, 2507, 745, 498, 677, 1738, 1741, /* 910 */ 302, 1732, 424, 423, 1827, 497, 781, 161, 160, 778, /* 920 */ 777, 776, 158, 1653, 1658, 1651, 728, 2080, 307, 728, /* 930 */ 2080, 728, 2080, 2353, 1890, 306, 171, 1659, 204, 2433, /* 940 */ 2434, 2301, 144, 2438, 2083, 2301, 503, 744, 2509, 504, /* 950 */ 734, 505, 1909, 2065, 277, 1656, 1657, 1709, 2067, 1711, /* 960 */ 1714, 1715, 1716, 1717, 1718, 1719, 1720, 1721, 740, 736, /* 970 */ 1730, 1731, 1733, 1734, 1735, 1736, 2, 48, 46, 1908, /* 980 */ 1907, 728, 2080, 728, 2080, 415, 2334, 1652, 1906, 2372, /* 990 */ 61, 1713, 114, 2336, 748, 2338, 2339, 743, 664, 738, /* 1000 */ 1737, 580, 1650, 2077, 2525, 2301, 2425, 1403, 728, 2080, /* 1010 */ 411, 2421, 2335, 430, 728, 2080, 619, 618, 429, 1713, /* 1020 */ 728, 2080, 1402, 728, 2080, 745, 1808, 2498, 275, 1732, /* 1030 */ 728, 2080, 2301, 2301, 283, 1312, 1681, 1311, 602, 601, /* 1040 */ 713, 2301, 1658, 315, 728, 2080, 1667, 1710, 1662, 106, /* 1050 */ 725, 41, 40, 2353, 1295, 47, 45, 44, 43, 42, /* 1060 */ 1676, 728, 2080, 667, 726, 2301, 2505, 744, 839, 273, /* 1070 */ 1313, 49, 14, 13, 2073, 1710, 1407, 2440, 1670, 1672, /* 1080 */ 1979, 321, 728, 2080, 2511, 203, 2335, 1903, 533, 2506, /* 1090 */ 696, 1406, 736, 1730, 1731, 1733, 1734, 1735, 1736, 742, /* 1100 */ 2063, 1662, 422, 2435, 9, 1902, 2334, 1739, 1740, 2372, /* 1110 */ 808, 806, 114, 2336, 748, 2338, 2339, 743, 95, 738, /* 1120 */ 99, 1901, 780, 702, 2525, 2124, 2425, 2353, 1900, 1899, /* 1130 */ 411, 2421, 781, 161, 160, 778, 777, 776, 158, 2301, /* 1140 */ 2301, 744, 1712, 1722, 2076, 1620, 1621, 2133, 2133, 1738, /* 1150 */ 1741, 1599, 623, 622, 621, 1920, 834, 535, 2301, 613, /* 1160 */ 143, 617, 714, 723, 1653, 616, 1651, 1677, 1898, 2282, /* 1170 */ 615, 620, 391, 390, 2301, 2263, 614, 159, 1780, 610, /* 1180 */ 2334, 2301, 2301, 2372, 1897, 1896, 356, 2336, 748, 2338, /* 1190 */ 2339, 743, 741, 738, 729, 2390, 1656, 1657, 1709, 1895, /* 1200 */ 1711, 1714, 1715, 1716, 1717, 1718, 1719, 1720, 1721, 740, /* 1210 */ 736, 1730, 1731, 1733, 1734, 1735, 1736, 2, 48, 46, /* 1220 */ 2335, 2301, 170, 2445, 1800, 628, 415, 2133, 1652, 274, /* 1230 */ 2285, 334, 2174, 745, 2110, 2444, 698, 2301, 2301, 464, /* 1240 */ 640, 1737, 2132, 1650, 463, 139, 76, 2058, 643, 1682, /* 1250 */ 642, 55, 2301, 2335, 612, 260, 270, 86, 258, 262, /* 1260 */ 264, 2353, 261, 263, 266, 1963, 745, 265, 1954, 1952, /* 1270 */ 1732, 735, 631, 2301, 478, 744, 699, 159, 1386, 625, /* 1280 */ 152, 437, 2084, 1658, 280, 267, 739, 624, 159, 667, /* 1290 */ 626, 629, 2505, 1807, 2353, 50, 87, 14, 13, 50, /* 1300 */ 187, 1887, 1888, 159, 50, 50, 2301, 309, 744, 839, /* 1310 */ 2511, 203, 15, 75, 2334, 2506, 696, 2372, 1946, 157, /* 1320 */ 114, 2336, 748, 2338, 2339, 743, 72, 738, 159, 71, /* 1330 */ 1800, 1661, 2525, 2020, 2425, 66, 41, 40, 411, 2421, /* 1340 */ 47, 45, 44, 43, 42, 2295, 1346, 2334, 1739, 1740, /* 1350 */ 2372, 1615, 788, 114, 2336, 748, 2338, 2339, 743, 111, /* 1360 */ 738, 30, 1618, 1905, 1660, 2400, 50, 2425, 108, 1840, /* 1370 */ 832, 411, 2421, 1839, 289, 789, 1365, 712, 1568, 1723, /* 1380 */ 1710, 313, 297, 1712, 1722, 703, 1347, 720, 752, 2469, /* 1390 */ 1738, 1741, 683, 317, 210, 667, 157, 291, 2505, 1363, /* 1400 */ 159, 141, 1433, 2017, 2354, 1653, 2016, 1651, 2200, 1774, /* 1410 */ 1936, 2459, 680, 646, 140, 401, 2511, 203, 157, 687, /* 1420 */ 2335, 2506, 696, 717, 398, 428, 2201, 652, 1942, 660, /* 1430 */ 2121, 2460, 1758, 745, 2470, 1855, 708, 1656, 1657, 1709, /* 1440 */ 333, 1711, 1714, 1715, 1716, 1717, 1718, 1719, 1720, 1721, /* 1450 */ 740, 736, 1730, 1731, 1733, 1734, 1735, 1736, 2, 299, /* 1460 */ 172, 2353, 1461, 667, 296, 341, 2505, 2042, 5, 303, /* 1470 */ 1465, 436, 431, 2301, 1472, 744, 379, 667, 2335, 444, /* 1480 */ 2505, 445, 338, 74, 2511, 203, 73, 711, 1470, 2506, /* 1490 */ 696, 745, 162, 1685, 456, 1664, 366, 455, 2511, 203, /* 1500 */ 211, 212, 458, 2506, 696, 214, 328, 235, 543, 541, /* 1510 */ 538, 1592, 1675, 1676, 2334, 472, 2335, 2372, 479, 2353, /* 1520 */ 114, 2336, 748, 2338, 2339, 743, 225, 738, 1663, 745, /* 1530 */ 481, 2301, 2398, 744, 2425, 485, 700, 667, 411, 2421, /* 1540 */ 2505, 487, 524, 506, 492, 513, 2193, 523, 63, 515, /* 1550 */ 525, 536, 537, 2335, 534, 230, 539, 2353, 2511, 203, /* 1560 */ 229, 540, 232, 2506, 696, 1683, 745, 542, 544, 2301, /* 1570 */ 559, 744, 2334, 4, 567, 2372, 560, 568, 114, 2336, /* 1580 */ 748, 2338, 2339, 743, 570, 738, 64, 2335, 1678, 1684, /* 1590 */ 731, 240, 2425, 573, 2353, 92, 411, 2421, 243, 572, /* 1600 */ 745, 1686, 574, 246, 389, 388, 2301, 576, 744, 248, /* 1610 */ 2334, 1687, 93, 2372, 2209, 582, 175, 2336, 748, 2338, /* 1620 */ 2339, 743, 94, 738, 116, 605, 253, 2070, 2353, 603, /* 1630 */ 257, 2066, 632, 84, 83, 467, 633, 259, 216, 645, /* 1640 */ 2301, 164, 744, 165, 360, 97, 647, 2334, 2068, 2064, /* 1650 */ 2372, 459, 457, 176, 2336, 748, 2338, 2339, 743, 2467, /* 1660 */ 738, 2335, 363, 2272, 2269, 446, 153, 166, 443, 439, /* 1670 */ 435, 432, 460, 167, 745, 387, 386, 276, 606, 1679, /* 1680 */ 2268, 2334, 655, 281, 2372, 329, 2255, 115, 2336, 748, /* 1690 */ 2338, 2339, 743, 654, 738, 659, 671, 662, 279, 2335, /* 1700 */ 608, 2425, 2353, 684, 607, 2424, 2421, 697, 2526, 718, /* 1710 */ 2475, 304, 745, 656, 2301, 661, 744, 2474, 2447, 286, /* 1720 */ 288, 8, 693, 670, 290, 672, 669, 295, 402, 1800, /* 1730 */ 704, 701, 2528, 145, 1680, 2335, 1805, 1803, 190, 330, /* 1740 */ 2353, 2441, 305, 331, 154, 716, 178, 2223, 745, 2222, /* 1750 */ 2221, 292, 2301, 407, 744, 2334, 721, 155, 2372, 332, /* 1760 */ 722, 115, 2336, 748, 2338, 2339, 743, 105, 738, 2081, /* 1770 */ 293, 62, 2406, 1, 107, 2425, 2353, 335, 294, 733, /* 1780 */ 2421, 2504, 206, 2125, 750, 323, 298, 1270, 2301, 833, /* 1790 */ 744, 836, 53, 746, 359, 344, 2372, 163, 371, 115, /* 1800 */ 2336, 748, 2338, 2339, 743, 838, 738, 2335, 358, 372, /* 1810 */ 348, 339, 337, 2425, 81, 2286, 433, 374, 2421, 2293, /* 1820 */ 745, 2292, 2291, 434, 1643, 1644, 209, 438, 2284, 2334, /* 1830 */ 2335, 440, 2372, 441, 442, 115, 2336, 748, 2338, 2339, /* 1840 */ 743, 1642, 738, 745, 2283, 380, 2281, 447, 2353, 2425, /* 1850 */ 2280, 2279, 451, 399, 2422, 449, 2278, 453, 1631, 2259, /* 1860 */ 2301, 213, 744, 2258, 215, 1595, 82, 2236, 1594, 2235, /* 1870 */ 2234, 2353, 465, 466, 2233, 2232, 400, 2183, 470, 2180, /* 1880 */ 1538, 2179, 473, 2301, 2173, 744, 476, 477, 2170, 218, /* 1890 */ 2169, 2168, 85, 2167, 2172, 2171, 2166, 220, 2165, 2163, /* 1900 */ 2335, 2334, 2162, 2161, 2372, 222, 2160, 357, 2336, 748, /* 1910 */ 2338, 2339, 743, 745, 738, 493, 495, 2176, 2159, 2158, /* 1920 */ 2157, 2156, 2155, 2335, 2334, 2178, 2154, 2372, 2153, 2152, /* 1930 */ 357, 2336, 748, 2338, 2339, 743, 745, 738, 2335, 2151, /* 1940 */ 2150, 2353, 2149, 2148, 2147, 2146, 2145, 2144, 2143, 224, /* 1950 */ 91, 745, 1544, 2301, 2142, 744, 2141, 2177, 2335, 2175, /* 1960 */ 2140, 2139, 2138, 228, 2353, 2137, 2136, 2135, 2134, 527, /* 1970 */ 529, 742, 1404, 368, 369, 1408, 2301, 1982, 744, 2353, /* 1980 */ 231, 1981, 1980, 1978, 406, 1975, 1400, 546, 545, 1974, /* 1990 */ 1967, 2301, 549, 744, 2334, 233, 1956, 2372, 234, 2353, /* 2000 */ 350, 2336, 748, 2338, 2339, 743, 547, 738, 553, 550, /* 2010 */ 1931, 2301, 551, 744, 554, 555, 557, 2334, 78, 236, /* 2020 */ 2372, 185, 1294, 176, 2336, 748, 2338, 2339, 743, 2321, /* 2030 */ 738, 1930, 2334, 195, 238, 2372, 2335, 2257, 357, 2336, /* 2040 */ 748, 2338, 2339, 743, 565, 738, 692, 79, 2253, 745, /* 2050 */ 2243, 2335, 2334, 2231, 245, 2372, 247, 2230, 356, 2336, /* 2060 */ 748, 2338, 2339, 743, 745, 738, 2335, 2391, 250, 2207, /* 2070 */ 2059, 1339, 1977, 1973, 584, 583, 585, 2353, 2527, 745, /* 2080 */ 1971, 587, 414, 588, 589, 1969, 591, 592, 593, 2301, /* 2090 */ 1966, 744, 2353, 595, 596, 1951, 597, 416, 1949, 1950, /* 2100 */ 1948, 1927, 2061, 1477, 2301, 256, 744, 2353, 65, 1476, /* 2110 */ 2060, 1390, 1389, 1387, 1385, 1384, 1383, 805, 1382, 2301, /* 2120 */ 627, 744, 807, 1381, 1964, 1378, 1376, 1955, 1377, 1375, /* 2130 */ 2334, 2335, 1953, 2372, 392, 393, 357, 2336, 748, 2338, /* 2140 */ 2339, 743, 1926, 738, 745, 2334, 630, 394, 2372, 1925, /* 2150 */ 1924, 357, 2336, 748, 2338, 2339, 743, 1923, 738, 634, /* 2160 */ 644, 1922, 1629, 2372, 117, 2335, 352, 2336, 748, 2338, /* 2170 */ 2339, 743, 2353, 738, 636, 638, 1625, 29, 745, 2256, /* 2180 */ 1627, 57, 1624, 278, 2301, 2252, 744, 1603, 2335, 1601, /* 2190 */ 58, 2242, 1605, 657, 169, 658, 282, 2229, 2228, 69, /* 2200 */ 1580, 745, 2510, 663, 665, 1579, 2353, 20, 6, 17, /* 2210 */ 1857, 21, 31, 285, 673, 1831, 7, 674, 2301, 676, /* 2220 */ 744, 678, 22, 287, 1838, 2334, 189, 177, 2372, 2353, /* 2230 */ 1826, 342, 2336, 748, 2338, 2339, 743, 188, 738, 32, /* 2240 */ 33, 2301, 80, 744, 200, 2322, 23, 67, 1877, 24, /* 2250 */ 1872, 1871, 18, 1878, 403, 1876, 60, 1875, 404, 2334, /* 2260 */ 2335, 1797, 2372, 1796, 301, 340, 2336, 748, 2338, 2339, /* 2270 */ 743, 59, 738, 745, 180, 2227, 2206, 308, 101, 102, /* 2280 */ 1833, 25, 2334, 2335, 2205, 2372, 191, 314, 343, 2336, /* 2290 */ 748, 2338, 2339, 743, 70, 738, 745, 719, 103, 316, /* 2300 */ 104, 2353, 108, 2335, 319, 26, 1749, 1748, 13, 1668, /* 2310 */ 2375, 737, 11, 2301, 39, 744, 745, 1727, 1725, 1724, /* 2320 */ 181, 1702, 192, 751, 2353, 1759, 417, 755, 16, 322, /* 2330 */ 27, 747, 758, 1694, 28, 753, 2301, 1462, 744, 1459, /* 2340 */ 756, 761, 759, 749, 2353, 1458, 1455, 762, 764, 1449, /* 2350 */ 1447, 765, 767, 768, 2334, 109, 2301, 2372, 744, 110, /* 2360 */ 349, 2336, 748, 2338, 2339, 743, 1471, 738, 77, 1467, /* 2370 */ 1372, 1337, 782, 1453, 1369, 1452, 2335, 2334, 1451, 1450, /* 2380 */ 2372, 1368, 1367, 353, 2336, 748, 2338, 2339, 743, 745, /* 2390 */ 738, 1366, 1364, 1362, 1398, 1361, 1360, 2334, 2335, 1397, /* 2400 */ 2372, 793, 207, 345, 2336, 748, 2338, 2339, 743, 795, /* 2410 */ 738, 745, 1358, 2335, 1357, 1356, 1355, 2353, 1354, 1353, /* 2420 */ 1352, 1392, 1349, 1394, 1343, 1348, 745, 1345, 1344, 2301, /* 2430 */ 1342, 744, 1972, 815, 2335, 1970, 819, 816, 1968, 2353, /* 2440 */ 817, 823, 821, 820, 1965, 825, 824, 745, 827, 829, /* 2450 */ 1947, 2301, 828, 744, 2353, 831, 2335, 1283, 1921, 1271, /* 2460 */ 835, 326, 837, 1891, 1654, 336, 2301, 840, 744, 745, /* 2470 */ 2334, 2335, 1891, 2372, 841, 2353, 354, 2336, 748, 2338, /* 2480 */ 2339, 743, 1891, 738, 745, 1891, 1891, 2301, 1891, 744, /* 2490 */ 1891, 2335, 2334, 1891, 1891, 2372, 1891, 2353, 346, 2336, /* 2500 */ 748, 2338, 2339, 743, 745, 738, 1891, 2334, 1891, 2301, /* 2510 */ 2372, 744, 2353, 355, 2336, 748, 2338, 2339, 743, 1891, /* 2520 */ 738, 1891, 1891, 1891, 2301, 1891, 744, 1891, 2334, 1891, /* 2530 */ 1891, 2372, 2353, 1891, 347, 2336, 748, 2338, 2339, 743, /* 2540 */ 1891, 738, 1891, 1891, 2301, 1891, 744, 1891, 1891, 1891, /* 2550 */ 2334, 1891, 1891, 2372, 1891, 1891, 361, 2336, 748, 2338, /* 2560 */ 2339, 743, 1891, 738, 1891, 2334, 1891, 1891, 2372, 1891, /* 2570 */ 2335, 362, 2336, 748, 2338, 2339, 743, 1891, 738, 1891, /* 2580 */ 1891, 1891, 1891, 745, 1891, 2334, 2335, 1891, 2372, 1891, /* 2590 */ 1891, 2347, 2336, 748, 2338, 2339, 743, 1891, 738, 745, /* 2600 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, /* 2610 */ 1891, 2353, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, /* 2620 */ 1891, 1891, 1891, 2301, 1891, 744, 1891, 2353, 1891, 1891, /* 2630 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 2301, /* 2640 */ 1891, 744, 1891, 2335, 1891, 1891, 1891, 1891, 1891, 1891, /* 2650 */ 1891, 1891, 1891, 1891, 1891, 1891, 745, 1891, 1891, 1891, /* 2660 */ 1891, 1891, 1891, 1891, 2334, 2335, 1891, 2372, 1891, 1891, /* 2670 */ 2346, 2336, 748, 2338, 2339, 743, 1891, 738, 745, 1891, /* 2680 */ 2334, 1891, 1891, 2372, 2353, 1891, 2345, 2336, 748, 2338, /* 2690 */ 2339, 743, 1891, 738, 1891, 1891, 2301, 1891, 744, 1891, /* 2700 */ 1891, 1891, 1891, 1891, 1891, 1891, 2353, 1891, 2335, 1891, /* 2710 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 2301, 1891, /* 2720 */ 744, 745, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, /* 2730 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 2334, 2335, 1891, /* 2740 */ 2372, 1891, 1891, 376, 2336, 748, 2338, 2339, 743, 2353, /* 2750 */ 738, 745, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 2334, /* 2760 */ 1891, 2301, 2372, 744, 1891, 377, 2336, 748, 2338, 2339, /* 2770 */ 743, 1891, 738, 1891, 1891, 1891, 1891, 1891, 1891, 2353, /* 2780 */ 1891, 2335, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, /* 2790 */ 1891, 2301, 1891, 744, 745, 1891, 1891, 1891, 1891, 1891, /* 2800 */ 1891, 1891, 2334, 2335, 1891, 2372, 1891, 1891, 373, 2336, /* 2810 */ 748, 2338, 2339, 743, 1891, 738, 745, 1891, 1891, 1891, /* 2820 */ 1891, 1891, 2353, 1891, 1891, 1891, 1891, 1891, 1891, 1891, /* 2830 */ 1891, 1891, 2334, 1891, 2301, 2372, 744, 1891, 378, 2336, /* 2840 */ 748, 2338, 2339, 743, 2353, 738, 1891, 1891, 1891, 1891, /* 2850 */ 1891, 1891, 1891, 1891, 1891, 1891, 2301, 1891, 744, 1891, /* 2860 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, 1891, /* 2870 */ 1891, 1891, 1891, 1891, 1891, 746, 1891, 1891, 2372, 1891, /* 2880 */ 1891, 352, 2336, 748, 2338, 2339, 743, 1891, 738, 1891, /* 2890 */ 1891, 1891, 1891, 1891, 1891, 1891, 1891, 2334, 1891, 1891, /* 2900 */ 2372, 1891, 1891, 351, 2336, 748, 2338, 2339, 743, 1891, /* 2910 */ 738, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 384, 358, 433, 384, 361, 362, 358, 393, 392, 361, /* 10 */ 362, 392, 12, 13, 14, 406, 400, 2, 399, 400, /* 20 */ 20, 363, 22, 8, 9, 20, 407, 12, 13, 14, /* 30 */ 15, 16, 2, 424, 425, 35, 0, 37, 8, 9, /* 40 */ 466, 467, 12, 13, 14, 15, 16, 351, 8, 9, /* 50 */ 363, 364, 12, 13, 14, 15, 16, 363, 364, 20, /* 60 */ 364, 392, 405, 406, 64, 0, 408, 409, 402, 411, /* 70 */ 70, 405, 406, 415, 8, 9, 373, 77, 12, 13, /* 80 */ 14, 15, 16, 414, 381, 416, 21, 372, 392, 24, /* 90 */ 25, 26, 27, 28, 29, 30, 31, 32, 20, 412, /* 100 */ 404, 359, 406, 103, 389, 363, 106, 365, 72, 73, /* 110 */ 74, 75, 76, 398, 78, 79, 80, 81, 82, 83, /* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, /* 130 */ 94, 95, 96, 97, 98, 99, 477, 363, 364, 480, /* 140 */ 22, 445, 142, 143, 448, 22, 392, 451, 452, 453, /* 150 */ 454, 455, 456, 461, 458, 37, 464, 498, 499, 463, /* 160 */ 37, 465, 503, 504, 4, 469, 470, 473, 474, 475, /* 170 */ 416, 477, 478, 20, 480, 363, 364, 177, 178, 51, /* 180 */ 484, 142, 143, 23, 184, 185, 412, 59, 492, 392, /* 190 */ 62, 63, 498, 499, 406, 77, 399, 503, 504, 199, /* 200 */ 77, 201, 379, 3, 407, 382, 46, 47, 48, 421, /* 210 */ 8, 9, 424, 425, 12, 13, 14, 15, 16, 21, /* 220 */ 20, 103, 24, 25, 26, 27, 28, 29, 30, 31, /* 230 */ 32, 231, 232, 233, 20, 235, 236, 237, 238, 239, /* 240 */ 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, /* 250 */ 250, 251, 252, 12, 13, 177, 178, 191, 18, 106, /* 260 */ 20, 20, 20, 22, 22, 20, 392, 27, 391, 351, /* 270 */ 30, 20, 70, 399, 477, 35, 35, 480, 37, 37, /* 280 */ 403, 407, 364, 450, 472, 473, 474, 475, 359, 477, /* 290 */ 478, 51, 363, 53, 365, 498, 499, 55, 58, 380, /* 300 */ 503, 504, 64, 363, 364, 64, 0, 107, 68, 476, /* 310 */ 392, 70, 350, 394, 352, 4, 114, 199, 77, 201, /* 320 */ 136, 137, 404, 404, 406, 141, 176, 351, 363, 364, /* 330 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 106, /* 340 */ 364, 37, 366, 105, 103, 105, 108, 106, 383, 231, /* 350 */ 232, 106, 412, 8, 9, 390, 116, 12, 13, 14, /* 360 */ 15, 16, 296, 445, 13, 20, 448, 448, 392, 451, /* 370 */ 452, 453, 454, 455, 456, 68, 458, 458, 176, 179, /* 380 */ 404, 77, 406, 142, 143, 351, 146, 147, 37, 149, /* 390 */ 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, /* 400 */ 160, 161, 162, 163, 164, 165, 256, 167, 168, 169, /* 410 */ 172, 493, 494, 173, 174, 175, 266, 106, 177, 178, /* 420 */ 180, 445, 269, 20, 448, 184, 185, 451, 452, 453, /* 430 */ 454, 455, 456, 20, 458, 106, 363, 21, 404, 463, /* 440 */ 199, 465, 201, 8, 9, 469, 470, 12, 13, 14, /* 450 */ 15, 16, 36, 13, 38, 39, 40, 33, 256, 257, /* 460 */ 258, 259, 260, 261, 262, 263, 264, 265, 266, 45, /* 470 */ 364, 183, 231, 232, 233, 363, 235, 236, 237, 238, /* 480 */ 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, /* 490 */ 249, 250, 251, 252, 253, 12, 13, 401, 392, 351, /* 500 */ 404, 194, 269, 20, 20, 22, 363, 364, 392, 35, /* 510 */ 437, 438, 364, 380, 269, 399, 106, 77, 35, 106, /* 520 */ 37, 363, 364, 407, 179, 51, 383, 394, 221, 222, /* 530 */ 351, 419, 420, 59, 60, 61, 62, 404, 64, 20, /* 540 */ 392, 383, 107, 364, 427, 142, 143, 64, 390, 72, /* 550 */ 73, 74, 404, 70, 406, 69, 79, 80, 81, 453, /* 560 */ 77, 69, 85, 275, 276, 277, 278, 90, 91, 92, /* 570 */ 93, 392, 116, 96, 86, 351, 99, 392, 233, 105, /* 580 */ 269, 448, 108, 404, 399, 406, 103, 184, 185, 106, /* 590 */ 20, 458, 407, 445, 477, 0, 448, 480, 269, 451, /* 600 */ 452, 453, 454, 455, 456, 380, 458, 392, 198, 461, /* 610 */ 200, 463, 464, 465, 399, 498, 499, 469, 470, 394, /* 620 */ 503, 504, 407, 253, 445, 142, 143, 448, 404, 404, /* 630 */ 451, 452, 453, 454, 455, 456, 148, 458, 0, 14, /* 640 */ 230, 20, 463, 135, 465, 20, 172, 139, 469, 470, /* 650 */ 363, 364, 370, 363, 364, 181, 182, 231, 170, 171, /* 660 */ 177, 178, 188, 189, 69, 363, 364, 184, 185, 387, /* 670 */ 383, 492, 14, 448, 449, 103, 137, 395, 20, 269, /* 680 */ 141, 207, 199, 458, 201, 383, 14, 15, 16, 117, /* 690 */ 118, 119, 120, 121, 122, 123, 124, 125, 126, 77, /* 700 */ 128, 129, 130, 131, 132, 133, 134, 281, 282, 283, /* 710 */ 284, 285, 286, 287, 231, 232, 233, 233, 235, 236, /* 720 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, /* 730 */ 247, 248, 249, 250, 251, 252, 12, 13, 14, 351, /* 740 */ 363, 364, 363, 364, 20, 0, 22, 208, 1, 179, /* 750 */ 211, 20, 364, 214, 366, 216, 253, 363, 255, 35, /* 760 */ 383, 37, 383, 473, 474, 475, 19, 477, 478, 477, /* 770 */ 64, 351, 480, 135, 136, 137, 138, 139, 140, 141, /* 780 */ 392, 0, 35, 462, 364, 464, 366, 401, 64, 384, /* 790 */ 404, 499, 404, 49, 406, 503, 504, 392, 51, 450, /* 800 */ 179, 77, 384, 233, 116, 400, 59, 60, 61, 62, /* 810 */ 392, 64, 392, 23, 108, 8, 9, 351, 400, 12, /* 820 */ 13, 14, 15, 16, 404, 476, 406, 103, 363, 364, /* 830 */ 106, 437, 438, 445, 20, 177, 448, 47, 48, 451, /* 840 */ 452, 453, 454, 455, 456, 351, 458, 351, 56, 57, /* 850 */ 106, 463, 105, 465, 233, 108, 14, 469, 470, 12, /* 860 */ 13, 50, 20, 368, 369, 445, 142, 143, 448, 22, /* 870 */ 404, 451, 452, 453, 454, 455, 456, 477, 458, 462, /* 880 */ 480, 464, 35, 463, 37, 465, 34, 140, 351, 469, /* 890 */ 470, 233, 351, 12, 13, 14, 15, 16, 404, 499, /* 900 */ 404, 177, 178, 503, 504, 364, 161, 366, 184, 185, /* 910 */ 179, 64, 12, 13, 107, 170, 135, 136, 137, 138, /* 920 */ 139, 140, 141, 199, 77, 201, 363, 364, 181, 363, /* 930 */ 364, 363, 364, 392, 348, 188, 392, 37, 473, 474, /* 940 */ 475, 404, 477, 478, 400, 404, 383, 406, 3, 383, /* 950 */ 103, 383, 351, 393, 207, 231, 232, 233, 393, 235, /* 960 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, /* 970 */ 246, 247, 248, 249, 250, 251, 252, 12, 13, 351, /* 980 */ 351, 363, 364, 363, 364, 20, 445, 22, 351, 448, /* 990 */ 179, 177, 451, 452, 453, 454, 455, 456, 187, 458, /* 1000 */ 35, 383, 37, 383, 463, 404, 465, 22, 363, 364, /* 1010 */ 469, 470, 351, 427, 363, 364, 377, 378, 432, 177, /* 1020 */ 363, 364, 37, 363, 364, 364, 4, 366, 383, 64, /* 1030 */ 363, 364, 404, 404, 383, 20, 20, 22, 368, 369, /* 1040 */ 383, 404, 77, 383, 363, 364, 199, 233, 201, 370, /* 1050 */ 383, 8, 9, 392, 14, 12, 13, 14, 15, 16, /* 1060 */ 20, 363, 364, 477, 383, 404, 480, 406, 103, 136, /* 1070 */ 55, 106, 1, 2, 395, 233, 22, 450, 231, 232, /* 1080 */ 0, 383, 363, 364, 498, 499, 351, 351, 103, 503, /* 1090 */ 504, 37, 245, 246, 247, 248, 249, 250, 251, 364, /* 1100 */ 393, 201, 383, 476, 42, 351, 445, 142, 143, 448, /* 1110 */ 377, 378, 451, 452, 453, 454, 455, 456, 372, 458, /* 1120 */ 172, 351, 401, 33, 463, 404, 465, 392, 351, 351, /* 1130 */ 469, 470, 135, 136, 137, 138, 139, 140, 141, 404, /* 1140 */ 404, 406, 177, 178, 398, 212, 213, 392, 392, 184, /* 1150 */ 185, 203, 72, 73, 74, 354, 355, 103, 404, 79, /* 1160 */ 80, 81, 407, 407, 199, 85, 201, 20, 351, 0, /* 1170 */ 90, 91, 92, 93, 404, 388, 96, 33, 107, 99, /* 1180 */ 445, 404, 404, 448, 351, 351, 451, 452, 453, 454, /* 1190 */ 455, 456, 457, 458, 459, 460, 231, 232, 233, 351, /* 1200 */ 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, /* 1210 */ 245, 246, 247, 248, 249, 250, 251, 252, 12, 13, /* 1220 */ 351, 404, 179, 267, 268, 4, 20, 392, 22, 442, /* 1230 */ 0, 385, 0, 364, 388, 366, 291, 404, 404, 427, /* 1240 */ 19, 35, 407, 37, 432, 33, 116, 0, 215, 233, /* 1250 */ 217, 107, 404, 351, 13, 109, 35, 45, 112, 109, /* 1260 */ 109, 392, 112, 112, 109, 0, 364, 112, 0, 0, /* 1270 */ 64, 70, 51, 404, 42, 406, 33, 33, 37, 58, /* 1280 */ 33, 51, 393, 77, 393, 64, 393, 22, 33, 477, /* 1290 */ 22, 22, 480, 271, 392, 33, 166, 1, 2, 33, /* 1300 */ 33, 142, 143, 33, 33, 33, 404, 33, 406, 103, /* 1310 */ 498, 499, 106, 33, 445, 503, 504, 448, 0, 33, /* 1320 */ 451, 452, 453, 454, 455, 456, 105, 458, 33, 108, /* 1330 */ 268, 37, 463, 381, 465, 33, 8, 9, 469, 470, /* 1340 */ 12, 13, 14, 15, 16, 427, 37, 445, 142, 143, /* 1350 */ 448, 107, 13, 451, 452, 453, 454, 455, 456, 106, /* 1360 */ 458, 33, 107, 352, 37, 463, 33, 465, 115, 107, /* 1370 */ 52, 469, 470, 107, 107, 13, 37, 107, 107, 107, /* 1380 */ 233, 107, 507, 177, 178, 295, 77, 107, 33, 417, /* 1390 */ 184, 185, 496, 107, 225, 477, 33, 489, 480, 37, /* 1400 */ 33, 367, 107, 380, 392, 199, 380, 201, 417, 107, /* 1410 */ 362, 417, 495, 427, 33, 495, 498, 499, 33, 495, /* 1420 */ 351, 503, 504, 495, 426, 367, 417, 427, 364, 434, /* 1430 */ 403, 417, 231, 364, 417, 107, 479, 231, 232, 233, /* 1440 */ 107, 235, 236, 237, 238, 239, 240, 241, 242, 243, /* 1450 */ 244, 245, 246, 247, 248, 249, 250, 251, 252, 500, /* 1460 */ 18, 392, 107, 477, 471, 23, 480, 382, 272, 482, /* 1470 */ 107, 51, 428, 404, 107, 406, 447, 477, 351, 42, /* 1480 */ 480, 446, 40, 41, 498, 499, 44, 427, 107, 503, /* 1490 */ 504, 364, 107, 20, 439, 201, 54, 214, 498, 499, /* 1500 */ 444, 372, 439, 503, 504, 372, 430, 65, 66, 67, /* 1510 */ 68, 197, 20, 20, 445, 363, 351, 448, 364, 392, /* 1520 */ 451, 452, 453, 454, 455, 456, 45, 458, 201, 364, /* 1530 */ 413, 404, 463, 406, 465, 364, 293, 477, 469, 470, /* 1540 */ 480, 413, 176, 363, 410, 364, 363, 410, 106, 413, /* 1550 */ 410, 104, 376, 351, 102, 363, 101, 392, 498, 499, /* 1560 */ 375, 374, 363, 503, 504, 20, 364, 363, 363, 404, /* 1570 */ 356, 406, 445, 50, 356, 448, 360, 360, 451, 452, /* 1580 */ 453, 454, 455, 456, 439, 458, 144, 351, 20, 20, /* 1590 */ 463, 372, 465, 365, 392, 372, 469, 470, 372, 406, /* 1600 */ 364, 20, 429, 372, 39, 40, 404, 365, 406, 372, /* 1610 */ 445, 20, 372, 448, 420, 363, 451, 452, 453, 454, /* 1620 */ 455, 456, 372, 458, 363, 392, 372, 392, 392, 356, /* 1630 */ 392, 392, 354, 191, 192, 193, 354, 392, 196, 218, /* 1640 */ 404, 392, 406, 392, 356, 106, 443, 445, 392, 392, /* 1650 */ 448, 209, 210, 451, 452, 453, 454, 455, 456, 494, /* 1660 */ 458, 351, 220, 404, 404, 223, 441, 392, 226, 227, /* 1670 */ 228, 229, 230, 392, 364, 110, 111, 370, 113, 20, /* 1680 */ 404, 445, 205, 370, 448, 439, 438, 451, 452, 453, /* 1690 */ 454, 455, 456, 204, 458, 406, 404, 363, 435, 351, /* 1700 */ 135, 465, 392, 280, 139, 469, 470, 505, 506, 279, /* 1710 */ 488, 269, 364, 436, 404, 428, 406, 488, 491, 422, /* 1720 */ 422, 288, 190, 289, 490, 290, 273, 428, 297, 268, /* 1730 */ 294, 292, 508, 364, 20, 351, 116, 270, 365, 422, /* 1740 */ 392, 450, 370, 422, 370, 404, 488, 404, 364, 404, /* 1750 */ 404, 487, 404, 404, 406, 445, 182, 370, 448, 388, /* 1760 */ 418, 451, 452, 453, 454, 455, 456, 370, 458, 364, /* 1770 */ 486, 106, 468, 483, 106, 465, 392, 363, 485, 469, /* 1780 */ 470, 502, 481, 404, 396, 370, 501, 22, 404, 38, /* 1790 */ 406, 353, 431, 445, 440, 386, 448, 357, 423, 451, /* 1800 */ 452, 453, 454, 455, 456, 356, 458, 351, 386, 423, /* 1810 */ 386, 349, 371, 465, 45, 0, 37, 469, 470, 0, /* 1820 */ 364, 0, 0, 224, 37, 37, 37, 224, 0, 445, /* 1830 */ 351, 37, 448, 37, 224, 451, 452, 453, 454, 455, /* 1840 */ 456, 37, 458, 364, 0, 224, 0, 37, 392, 465, /* 1850 */ 0, 0, 22, 397, 470, 37, 0, 37, 219, 0, /* 1860 */ 404, 207, 406, 0, 207, 201, 208, 0, 199, 0, /* 1870 */ 0, 392, 195, 194, 0, 0, 397, 147, 49, 0, /* 1880 */ 49, 0, 37, 404, 0, 406, 37, 51, 0, 49, /* 1890 */ 0, 0, 45, 0, 0, 0, 0, 49, 0, 0, /* 1900 */ 351, 445, 0, 0, 448, 161, 0, 451, 452, 453, /* 1910 */ 454, 455, 456, 364, 458, 37, 161, 0, 0, 0, /* 1920 */ 0, 0, 0, 351, 445, 0, 0, 448, 0, 0, /* 1930 */ 451, 452, 453, 454, 455, 456, 364, 458, 351, 0, /* 1940 */ 0, 392, 0, 0, 0, 0, 0, 0, 0, 49, /* 1950 */ 45, 364, 22, 404, 0, 406, 0, 0, 351, 0, /* 1960 */ 0, 0, 0, 147, 392, 0, 0, 0, 0, 146, /* 1970 */ 145, 364, 22, 50, 50, 22, 404, 0, 406, 392, /* 1980 */ 64, 0, 0, 0, 397, 0, 37, 51, 37, 0, /* 1990 */ 0, 404, 37, 406, 445, 64, 0, 448, 64, 392, /* 2000 */ 451, 452, 453, 454, 455, 456, 42, 458, 37, 51, /* 2010 */ 0, 404, 42, 406, 51, 42, 37, 445, 42, 45, /* 2020 */ 448, 33, 14, 451, 452, 453, 454, 455, 456, 49, /* 2030 */ 458, 0, 445, 49, 43, 448, 351, 0, 451, 452, /* 2040 */ 453, 454, 455, 456, 49, 458, 497, 42, 0, 364, /* 2050 */ 0, 351, 445, 0, 42, 448, 190, 0, 451, 452, /* 2060 */ 453, 454, 455, 456, 364, 458, 351, 460, 49, 0, /* 2070 */ 0, 71, 0, 0, 51, 37, 42, 392, 506, 364, /* 2080 */ 0, 37, 397, 51, 42, 0, 37, 51, 42, 404, /* 2090 */ 0, 406, 392, 37, 51, 0, 42, 397, 0, 0, /* 2100 */ 0, 0, 0, 37, 404, 112, 406, 392, 114, 22, /* 2110 */ 0, 37, 37, 37, 37, 37, 37, 33, 37, 404, /* 2120 */ 53, 406, 33, 37, 0, 37, 22, 0, 37, 37, /* 2130 */ 445, 351, 0, 448, 22, 22, 451, 452, 453, 454, /* 2140 */ 455, 456, 0, 458, 364, 445, 37, 22, 448, 0, /* 2150 */ 0, 451, 452, 453, 454, 455, 456, 0, 458, 37, /* 2160 */ 445, 0, 107, 448, 20, 351, 451, 452, 453, 454, /* 2170 */ 455, 456, 392, 458, 37, 22, 37, 106, 364, 0, /* 2180 */ 37, 179, 37, 49, 404, 0, 406, 22, 351, 37, /* 2190 */ 179, 0, 206, 22, 202, 179, 182, 0, 0, 106, /* 2200 */ 179, 364, 3, 186, 186, 179, 392, 33, 50, 274, /* 2210 */ 107, 33, 106, 106, 37, 107, 50, 106, 404, 104, /* 2220 */ 406, 102, 33, 107, 107, 445, 33, 106, 448, 392, /* 2230 */ 107, 451, 452, 453, 454, 455, 456, 106, 458, 106, /* 2240 */ 33, 404, 106, 406, 49, 49, 274, 3, 107, 33, /* 2250 */ 37, 37, 274, 107, 37, 37, 33, 37, 37, 445, /* 2260 */ 351, 107, 448, 107, 49, 451, 452, 453, 454, 455, /* 2270 */ 456, 267, 458, 364, 49, 0, 0, 107, 106, 42, /* 2280 */ 107, 106, 445, 351, 0, 448, 106, 106, 451, 452, /* 2290 */ 453, 454, 455, 456, 106, 458, 364, 183, 42, 181, /* 2300 */ 106, 392, 115, 351, 49, 33, 104, 104, 2, 22, /* 2310 */ 106, 106, 254, 404, 106, 406, 364, 107, 107, 107, /* 2320 */ 49, 22, 49, 37, 392, 231, 37, 37, 106, 33, /* 2330 */ 106, 234, 37, 107, 106, 106, 404, 107, 406, 107, /* 2340 */ 106, 37, 106, 116, 392, 107, 107, 106, 37, 107, /* 2350 */ 107, 106, 37, 106, 445, 106, 404, 448, 406, 106, /* 2360 */ 451, 452, 453, 454, 455, 456, 37, 458, 106, 22, /* 2370 */ 37, 71, 70, 127, 37, 127, 351, 445, 127, 127, /* 2380 */ 448, 37, 37, 451, 452, 453, 454, 455, 456, 364, /* 2390 */ 458, 37, 37, 37, 77, 37, 37, 445, 351, 77, /* 2400 */ 448, 100, 33, 451, 452, 453, 454, 455, 456, 100, /* 2410 */ 458, 364, 37, 351, 37, 37, 22, 392, 37, 37, /* 2420 */ 37, 37, 37, 77, 22, 37, 364, 37, 37, 404, /* 2430 */ 37, 406, 0, 37, 351, 0, 37, 51, 0, 392, /* 2440 */ 42, 37, 42, 51, 0, 42, 51, 364, 37, 42, /* 2450 */ 0, 404, 51, 406, 392, 37, 351, 37, 0, 22, /* 2460 */ 33, 22, 21, 509, 22, 22, 404, 21, 406, 364, /* 2470 */ 445, 351, 509, 448, 20, 392, 451, 452, 453, 454, /* 2480 */ 455, 456, 509, 458, 364, 509, 509, 404, 509, 406, /* 2490 */ 509, 351, 445, 509, 509, 448, 509, 392, 451, 452, /* 2500 */ 453, 454, 455, 456, 364, 458, 509, 445, 509, 404, /* 2510 */ 448, 406, 392, 451, 452, 453, 454, 455, 456, 509, /* 2520 */ 458, 509, 509, 509, 404, 509, 406, 509, 445, 509, /* 2530 */ 509, 448, 392, 509, 451, 452, 453, 454, 455, 456, /* 2540 */ 509, 458, 509, 509, 404, 509, 406, 509, 509, 509, /* 2550 */ 445, 509, 509, 448, 509, 509, 451, 452, 453, 454, /* 2560 */ 455, 456, 509, 458, 509, 445, 509, 509, 448, 509, /* 2570 */ 351, 451, 452, 453, 454, 455, 456, 509, 458, 509, /* 2580 */ 509, 509, 509, 364, 509, 445, 351, 509, 448, 509, /* 2590 */ 509, 451, 452, 453, 454, 455, 456, 509, 458, 364, /* 2600 */ 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, /* 2610 */ 509, 392, 509, 509, 509, 509, 509, 509, 509, 509, /* 2620 */ 509, 509, 509, 404, 509, 406, 509, 392, 509, 509, /* 2630 */ 509, 509, 509, 509, 509, 509, 509, 509, 509, 404, /* 2640 */ 509, 406, 509, 351, 509, 509, 509, 509, 509, 509, /* 2650 */ 509, 509, 509, 509, 509, 509, 364, 509, 509, 509, /* 2660 */ 509, 509, 509, 509, 445, 351, 509, 448, 509, 509, /* 2670 */ 451, 452, 453, 454, 455, 456, 509, 458, 364, 509, /* 2680 */ 445, 509, 509, 448, 392, 509, 451, 452, 453, 454, /* 2690 */ 455, 456, 509, 458, 509, 509, 404, 509, 406, 509, /* 2700 */ 509, 509, 509, 509, 509, 509, 392, 509, 351, 509, /* 2710 */ 509, 509, 509, 509, 509, 509, 509, 509, 404, 509, /* 2720 */ 406, 364, 509, 509, 509, 509, 509, 509, 509, 509, /* 2730 */ 509, 509, 509, 509, 509, 509, 509, 445, 351, 509, /* 2740 */ 448, 509, 509, 451, 452, 453, 454, 455, 456, 392, /* 2750 */ 458, 364, 509, 509, 509, 509, 509, 509, 509, 445, /* 2760 */ 509, 404, 448, 406, 509, 451, 452, 453, 454, 455, /* 2770 */ 456, 509, 458, 509, 509, 509, 509, 509, 509, 392, /* 2780 */ 509, 351, 509, 509, 509, 509, 509, 509, 509, 509, /* 2790 */ 509, 404, 509, 406, 364, 509, 509, 509, 509, 509, /* 2800 */ 509, 509, 445, 351, 509, 448, 509, 509, 451, 452, /* 2810 */ 453, 454, 455, 456, 509, 458, 364, 509, 509, 509, /* 2820 */ 509, 509, 392, 509, 509, 509, 509, 509, 509, 509, /* 2830 */ 509, 509, 445, 509, 404, 448, 406, 509, 451, 452, /* 2840 */ 453, 454, 455, 456, 392, 458, 509, 509, 509, 509, /* 2850 */ 509, 509, 509, 509, 509, 509, 404, 509, 406, 509, /* 2860 */ 509, 509, 509, 509, 509, 509, 509, 509, 509, 509, /* 2870 */ 509, 509, 509, 509, 509, 445, 509, 509, 448, 509, /* 2880 */ 509, 451, 452, 453, 454, 455, 456, 509, 458, 509, /* 2890 */ 509, 509, 509, 509, 509, 509, 509, 445, 509, 509, /* 2900 */ 448, 509, 509, 451, 452, 453, 454, 455, 456, 509, /* 2910 */ 458, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 2920 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 2930 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 2940 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 2950 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 2960 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 2970 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 2980 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 2990 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3000 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3010 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3020 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3030 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3040 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3050 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3060 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3070 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3080 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3090 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3100 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3110 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3120 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3130 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3140 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3150 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3160 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3170 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3180 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3190 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3200 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3210 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3220 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3230 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3240 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, 348, /* 3250 */ 348, 348, 348, 348, 348, 348, 348, 348, 348, }; #define YY_SHIFT_COUNT (842) #define YY_SHIFT_MIN (0) #define YY_SHIFT_MAX (2458) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 1442, 0, 241, 0, 483, 483, 483, 483, 483, 483, /* 10 */ 483, 483, 483, 483, 483, 483, 724, 965, 965, 1206, /* 20 */ 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, /* 30 */ 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, /* 40 */ 965, 965, 965, 965, 965, 965, 965, 965, 965, 965, /* 50 */ 965, 153, 245, 410, 413, 233, 329, 233, 233, 413, /* 60 */ 413, 233, 847, 233, 240, 847, 847, 311, 233, 5, /* 70 */ 403, 214, 214, 160, 160, 403, 78, 39, 625, 625, /* 80 */ 484, 214, 214, 214, 214, 214, 214, 214, 214, 214, /* 90 */ 214, 214, 251, 519, 214, 214, 486, 5, 214, 251, /* 100 */ 214, 5, 214, 214, 5, 214, 214, 5, 214, 5, /* 110 */ 5, 5, 214, 492, 202, 202, 477, 198, 118, 118, /* 120 */ 118, 118, 118, 118, 118, 118, 118, 118, 118, 118, /* 130 */ 118, 118, 118, 118, 118, 118, 118, 1565, 200, 78, /* 140 */ 39, 792, 792, 304, 731, 731, 731, 595, 503, 503, /* 150 */ 440, 304, 486, 456, 5, 5, 370, 5, 622, 5, /* 160 */ 622, 622, 688, 852, 572, 572, 572, 572, 572, 572, /* 170 */ 572, 572, 747, 1080, 65, 345, 66, 426, 288, 242, /* 180 */ 658, 842, 900, 900, 570, 790, 621, 123, 123, 123, /* 190 */ 811, 123, 814, 1015, 1016, 1040, 508, 948, 1016, 1016, /* 200 */ 1147, 956, 1062, 945, 956, 424, 1022, 440, 1196, 1420, /* 210 */ 1437, 1473, 1283, 486, 1473, 486, 1314, 1492, 1493, 1481, /* 220 */ 1493, 1481, 1366, 1492, 1493, 1492, 1481, 1366, 1366, 1447, /* 230 */ 1452, 1492, 1455, 1492, 1492, 1492, 1545, 1523, 1545, 1523, /* 240 */ 1473, 486, 486, 1568, 486, 1569, 1581, 486, 1569, 486, /* 250 */ 1591, 486, 486, 1492, 486, 1545, 5, 5, 5, 5, /* 260 */ 5, 5, 5, 5, 5, 5, 5, 1492, 852, 852, /* 270 */ 1545, 622, 622, 622, 1421, 1539, 1473, 492, 1659, 1477, /* 280 */ 1489, 1568, 492, 1196, 1492, 622, 1423, 1430, 1423, 1430, /* 290 */ 1433, 1532, 1423, 1435, 1434, 1453, 1196, 1431, 1436, 1439, /* 300 */ 1461, 1493, 1714, 1620, 1467, 1569, 492, 492, 1430, 622, /* 310 */ 622, 622, 622, 1430, 622, 1574, 492, 688, 492, 1493, /* 320 */ 1665, 1668, 622, 1492, 492, 1765, 1751, 1545, 2911, 2911, /* 330 */ 2911, 2911, 2911, 2911, 2911, 2911, 2911, 36, 474, 306, /* 340 */ 1328, 1221, 435, 807, 638, 15, 30, 1043, 781, 40, /* 350 */ 40, 40, 40, 40, 40, 40, 40, 40, 997, 539, /* 360 */ 416, 881, 881, 307, 238, 488, 128, 745, 985, 1054, /* 370 */ 933, 184, 184, 672, 1071, 150, 672, 672, 672, 1230, /* 380 */ 1169, 1144, 1232, 1212, 1130, 1247, 1146, 1150, 1151, 1155, /* 390 */ 351, 1241, 1265, 1268, 1269, 1033, 1244, 1255, 706, 1262, /* 400 */ 1266, 1267, 1159, 1243, 1090, 1270, 1271, 1274, 1280, 1286, /* 410 */ 1295, 1296, 1302, 1201, 1272, 744, 1333, 1355, 1363, 1367, /* 420 */ 1381, 1385, 1253, 1294, 1327, 1339, 1362, 1309, 1318, 1819, /* 430 */ 1821, 1822, 1769, 1815, 1779, 1599, 1787, 1788, 1789, 1603, /* 440 */ 1828, 1794, 1796, 1610, 1804, 1844, 1621, 1846, 1810, 1850, /* 450 */ 1818, 1851, 1830, 1856, 1820, 1639, 1859, 1654, 1863, 1657, /* 460 */ 1658, 1664, 1669, 1867, 1869, 1870, 1677, 1679, 1874, 1875, /* 470 */ 1730, 1829, 1831, 1879, 1845, 1881, 1884, 1849, 1836, 1888, /* 480 */ 1840, 1890, 1847, 1891, 1893, 1894, 1848, 1895, 1896, 1898, /* 490 */ 1899, 1902, 1903, 1744, 1878, 1906, 1755, 1917, 1918, 1919, /* 500 */ 1920, 1921, 1922, 1925, 1926, 1928, 1929, 1939, 1940, 1942, /* 510 */ 1943, 1944, 1945, 1946, 1900, 1947, 1905, 1948, 1954, 1956, /* 520 */ 1957, 1959, 1960, 1961, 1930, 1962, 1816, 1965, 1823, 1966, /* 530 */ 1825, 1967, 1968, 1950, 1923, 1953, 1924, 1977, 1916, 1949, /* 540 */ 1981, 1931, 1982, 1934, 1983, 1985, 1951, 1936, 1964, 1989, /* 550 */ 1955, 1958, 1970, 1990, 1971, 1963, 1973, 1996, 1979, 2010, /* 560 */ 1974, 1976, 1988, 1980, 1984, 2008, 1995, 2031, 1991, 2005, /* 570 */ 2037, 2048, 2050, 2053, 2012, 1866, 2057, 1980, 2019, 2069, /* 580 */ 2070, 2000, 2072, 2073, 2038, 2023, 2034, 2080, 2044, 2032, /* 590 */ 2042, 2085, 2049, 2036, 2046, 2090, 2056, 2043, 2054, 2095, /* 600 */ 2098, 2099, 2100, 2101, 2102, 1994, 1993, 2066, 2087, 2110, /* 610 */ 2074, 2075, 2076, 2077, 2078, 2079, 2081, 2086, 2084, 2089, /* 620 */ 2088, 2091, 2104, 2092, 2124, 2112, 2127, 2113, 2067, 2132, /* 630 */ 2125, 2109, 2142, 2149, 2150, 2122, 2157, 2137, 2161, 2153, /* 640 */ 2144, 2139, 2143, 2145, 2055, 2071, 2179, 2002, 2093, 1986, /* 650 */ 1980, 2134, 2185, 2011, 2152, 2165, 2191, 1992, 2171, 2016, /* 660 */ 2014, 2197, 2198, 2021, 2017, 2026, 2018, 2199, 2174, 1935, /* 670 */ 2106, 2103, 2107, 2108, 2177, 2111, 2158, 2115, 2166, 2119, /* 680 */ 2116, 2178, 2189, 2117, 2121, 2131, 2133, 2123, 2193, 2195, /* 690 */ 2196, 2136, 2207, 1972, 2141, 2146, 2244, 2216, 1978, 2213, /* 700 */ 2214, 2217, 2218, 2220, 2221, 2154, 2156, 2215, 2004, 2223, /* 710 */ 2225, 2275, 2276, 2172, 2237, 2175, 2170, 2173, 2180, 2181, /* 720 */ 2114, 2188, 2284, 2256, 2118, 2194, 2187, 1980, 2255, 2272, /* 730 */ 2202, 2058, 2203, 2306, 2287, 2094, 2204, 2210, 2205, 2211, /* 740 */ 2208, 2212, 2271, 2222, 2224, 2273, 2226, 2299, 2097, 2228, /* 750 */ 2227, 2230, 2286, 2289, 2229, 2232, 2290, 2234, 2238, 2295, /* 760 */ 2236, 2239, 2304, 2241, 2242, 2311, 2245, 2243, 2315, 2247, /* 770 */ 2246, 2248, 2251, 2252, 2249, 2296, 2253, 2329, 2262, 2296, /* 780 */ 2296, 2347, 2300, 2302, 2333, 2337, 2344, 2345, 2354, 2355, /* 790 */ 2356, 2358, 2359, 2317, 2301, 2322, 2309, 2369, 2375, 2377, /* 800 */ 2378, 2394, 2381, 2382, 2383, 2346, 2084, 2384, 2089, 2385, /* 810 */ 2388, 2390, 2391, 2402, 2393, 2432, 2396, 2386, 2398, 2435, /* 820 */ 2399, 2392, 2400, 2438, 2404, 2395, 2403, 2444, 2411, 2401, /* 830 */ 2407, 2450, 2418, 2420, 2458, 2437, 2427, 2439, 2441, 2442, /* 840 */ 2443, 2446, 2454, }; #define YY_REDUCE_COUNT (336) #define YY_REDUCE_MIN (-431) #define YY_REDUCE_MAX (2452) static const short yy_reduce_ofst[] = { /* 0 */ 586, -304, 148, 179, -24, 388, 420, 541, 661, 869, /* 10 */ 902, 1069, 1127, 1236, 1310, 1348, 735, -82, 1202, 1384, /* 20 */ 1165, 1456, 1479, 1549, 1572, 1587, 1607, 1685, 1700, 1715, /* 30 */ 1780, 1814, 1837, 1909, 1932, 1952, 2025, 2047, 2062, 2083, /* 40 */ 2105, 2120, 2140, 2219, 2235, 2292, 2314, 2357, 2387, 2430, /* 50 */ 2452, -306, -203, 812, -188, 117, 918, 986, 1000, 290, /* 60 */ 465, 1060, 225, -341, -342, -81, 133, 292, 400, -381, /* 70 */ -212, -35, 158, -357, -352, -391, -331, -334, -258, -71, /* 80 */ 106, 143, 287, 302, 377, -313, -226, 379, 563, 566, /* 90 */ 568, -60, 73, 112, 618, 620, -285, -126, 645, 394, /* 100 */ 651, 116, 657, 660, -384, 667, 681, 185, 698, 405, /* 110 */ 215, 418, 719, 282, -426, -426, -297, -38, 34, 224, /* 120 */ 466, 494, 496, 537, 601, 628, 629, 637, 736, 754, /* 130 */ 770, 777, 778, 817, 833, 834, 848, -123, -167, -246, /* 140 */ -343, 495, 670, 639, -167, 349, 627, 679, 321, 417, /* 150 */ -177, 733, 746, 787, 755, 756, -308, 544, 96, 835, /* 160 */ 386, 721, 846, 801, -386, 560, 565, 707, 889, 891, /* 170 */ 893, 889, -431, 952, 1011, 972, 875, 896, 908, 1034, /* 180 */ 1012, 1012, 1023, 1026, 991, 1048, 994, 917, 920, 924, /* 190 */ 998, 928, 1012, 1058, 1009, 1064, 1027, 995, 1014, 1017, /* 200 */ 1012, 957, 957, 959, 957, 993, 987, 1085, 1044, 1029, /* 210 */ 1035, 1055, 1056, 1129, 1063, 1133, 1076, 1152, 1154, 1117, /* 220 */ 1171, 1128, 1134, 1180, 1181, 1183, 1136, 1137, 1140, 1176, /* 230 */ 1185, 1192, 1187, 1199, 1204, 1205, 1214, 1216, 1218, 1217, /* 240 */ 1145, 1219, 1223, 1193, 1226, 1228, 1173, 1231, 1242, 1237, /* 250 */ 1194, 1240, 1250, 1252, 1254, 1273, 1233, 1235, 1238, 1239, /* 260 */ 1245, 1249, 1251, 1256, 1257, 1275, 1281, 1261, 1278, 1282, /* 270 */ 1288, 1259, 1260, 1276, 1203, 1225, 1246, 1307, 1248, 1277, /* 280 */ 1263, 1289, 1313, 1287, 1334, 1292, 1222, 1297, 1229, 1298, /* 290 */ 1227, 1234, 1258, 1264, 1284, 1293, 1299, 1224, 1279, 1285, /* 300 */ 957, 1369, 1291, 1290, 1301, 1373, 1372, 1374, 1317, 1341, /* 310 */ 1343, 1345, 1346, 1321, 1349, 1342, 1387, 1371, 1397, 1405, /* 320 */ 1304, 1388, 1379, 1414, 1415, 1438, 1440, 1449, 1361, 1354, /* 330 */ 1375, 1386, 1409, 1422, 1424, 1441, 1462, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 10 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 20 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 30 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 40 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 50 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 60 */ 1889, 2224, 1889, 1889, 2187, 1889, 1889, 1889, 1889, 1889, /* 70 */ 1889, 1889, 1889, 1889, 1889, 1889, 2194, 1889, 1889, 1889, /* 80 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 90 */ 1889, 1889, 1889, 1889, 1889, 1889, 1986, 1889, 1889, 1889, /* 100 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 110 */ 1889, 1889, 1889, 1984, 2427, 1889, 1889, 1889, 1889, 1889, /* 120 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 130 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2439, 1889, /* 140 */ 1889, 1960, 1960, 1889, 2439, 2439, 2439, 1984, 2399, 2399, /* 150 */ 1889, 1889, 1986, 2262, 1889, 1889, 1889, 1889, 1889, 1889, /* 160 */ 1889, 1889, 2109, 1919, 1889, 1889, 1889, 1889, 2133, 1889, /* 170 */ 1889, 1889, 2250, 1889, 1889, 2468, 2529, 1889, 2471, 1889, /* 180 */ 1889, 1889, 1889, 1889, 2199, 1889, 2458, 1889, 1889, 1889, /* 190 */ 1889, 1889, 1889, 1889, 1889, 1889, 2062, 2244, 1889, 1889, /* 200 */ 1889, 2431, 2445, 2513, 2432, 2429, 2452, 1889, 2462, 1889, /* 210 */ 2287, 1889, 2276, 1986, 1889, 1986, 2237, 2182, 1889, 2192, /* 220 */ 1889, 2192, 2189, 1889, 1889, 1889, 2192, 2189, 2189, 2051, /* 230 */ 2047, 1889, 2045, 1889, 1889, 1889, 1889, 1944, 1889, 1944, /* 240 */ 1889, 1986, 1986, 1889, 1986, 1889, 1889, 1986, 1889, 1986, /* 250 */ 1889, 1986, 1986, 1889, 1986, 1889, 1889, 1889, 1889, 1889, /* 260 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 270 */ 1889, 1889, 1889, 1889, 2274, 2260, 1889, 1984, 1889, 2248, /* 280 */ 2246, 1889, 1984, 2462, 1889, 1889, 2483, 2478, 2483, 2478, /* 290 */ 2497, 2493, 2483, 2502, 2499, 2464, 2462, 2532, 2519, 2515, /* 300 */ 2445, 1889, 1889, 2450, 2448, 1889, 1984, 1984, 2478, 1889, /* 310 */ 1889, 1889, 1889, 2478, 1889, 1889, 1984, 1889, 1984, 1889, /* 320 */ 1889, 2078, 1889, 1889, 1984, 1889, 1928, 1889, 2239, 2265, /* 330 */ 2220, 2220, 2112, 2112, 2112, 1987, 1894, 1889, 1889, 1889, /* 340 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2496, /* 350 */ 2495, 2352, 1889, 2403, 2402, 2401, 2392, 2351, 2074, 1889, /* 360 */ 1889, 2350, 2349, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 370 */ 1889, 2211, 2210, 2343, 1889, 1889, 2344, 2342, 2341, 1889, /* 380 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 390 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 400 */ 1889, 1889, 1889, 2516, 2520, 1889, 1889, 1889, 1889, 1889, /* 410 */ 1889, 2428, 1889, 1889, 1889, 2323, 1889, 1889, 1889, 1889, /* 420 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 430 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 440 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 450 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 460 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 470 */ 2188, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 480 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 490 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 500 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 510 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 520 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 530 */ 2203, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 540 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 550 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 560 */ 1889, 1889, 1933, 2330, 1889, 1889, 1889, 1889, 1889, 1889, /* 570 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2333, 1889, 1889, /* 580 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 590 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 600 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 610 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2026, 2025, /* 620 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 630 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 640 */ 1889, 1889, 1889, 1889, 2334, 1889, 1889, 1889, 1889, 1889, /* 650 */ 2325, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 660 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2512, 2465, 1889, /* 670 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 680 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 690 */ 2323, 1889, 2494, 1889, 1889, 2510, 1889, 2514, 1889, 1889, /* 700 */ 1889, 1889, 1889, 1889, 1889, 2438, 2434, 1889, 1889, 2430, /* 710 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 720 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2322, 1889, 2389, /* 730 */ 1889, 1889, 1889, 2423, 1889, 1889, 2374, 1889, 1889, 1889, /* 740 */ 1889, 1889, 1889, 1889, 1889, 1889, 2334, 1889, 2337, 1889, /* 750 */ 1889, 1889, 1889, 1889, 2106, 1889, 1889, 1889, 1889, 1889, /* 760 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 770 */ 2090, 2088, 2087, 2086, 1889, 2119, 1889, 1889, 1889, 2115, /* 780 */ 2114, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 790 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 2005, 1889, 1889, /* 800 */ 1889, 1889, 1889, 1889, 1889, 1889, 1997, 1889, 1996, 1889, /* 810 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 820 */ 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, 1889, /* 830 */ 1889, 1889, 1889, 1889, 1889, 1889, 1918, 1889, 1889, 1889, /* 840 */ 1889, 1889, 1889, }; /********** 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, /* 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 */ 298, /* 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, /* 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, /* FUNCTIONS => nothing */ 0, /* INDEXES => nothing */ 0, /* ACCOUNTS => nothing */ 0, /* APPS => nothing */ 0, /* CONNECTIONS => nothing */ 0, /* LICENCES => nothing */ 0, /* GRANTS => nothing */ 0, /* QUERIES => nothing */ 0, /* SCORES => nothing */ 0, /* TOPICS => nothing */ 0, /* VARIABLES => nothing */ 0, /* CLUSTER => 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 */ 298, /* 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, /* 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 */ 298, /* AFTER => ABORT */ 298, /* ATTACH => ABORT */ 298, /* BEFORE => ABORT */ 298, /* BEGIN => ABORT */ 298, /* BITAND => ABORT */ 298, /* BITNOT => ABORT */ 298, /* BITOR => ABORT */ 298, /* BLOCKS => ABORT */ 298, /* CHANGE => ABORT */ 298, /* COMMA => ABORT */ 298, /* CONCAT => ABORT */ 298, /* CONFLICT => ABORT */ 298, /* COPY => ABORT */ 298, /* DEFERRED => ABORT */ 298, /* DELIMITERS => ABORT */ 298, /* DETACH => ABORT */ 298, /* DIVIDE => ABORT */ 298, /* DOT => ABORT */ 298, /* EACH => ABORT */ 298, /* FAIL => ABORT */ 298, /* FILE => ABORT */ 298, /* FOR => ABORT */ 298, /* GLOB => ABORT */ 298, /* ID => ABORT */ 298, /* IMMEDIATE => ABORT */ 298, /* IMPORT => ABORT */ 298, /* INITIALLY => ABORT */ 298, /* INSTEAD => ABORT */ 298, /* ISNULL => ABORT */ 298, /* KEY => ABORT */ 298, /* MODULES => ABORT */ 298, /* NK_BITNOT => ABORT */ 298, /* NK_SEMI => ABORT */ 298, /* NOTNULL => ABORT */ 298, /* OF => ABORT */ 298, /* PLUS => ABORT */ 298, /* PRIVILEGE => ABORT */ 298, /* RAISE => ABORT */ 298, /* RESTRICT => ABORT */ 298, /* ROW => ABORT */ 298, /* SEMI => ABORT */ 298, /* STAR => ABORT */ 298, /* STATEMENT => ABORT */ 298, /* STRICT => ABORT */ 298, /* STRING => ABORT */ 298, /* TIMES => ABORT */ 298, /* VALUES => ABORT */ 298, /* VARIABLE => ABORT */ 298, /* 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 */ "LOCAL", /* 59 */ "QNODE", /* 60 */ "BNODE", /* 61 */ "SNODE", /* 62 */ "MNODE", /* 63 */ "VNODE", /* 64 */ "DATABASE", /* 65 */ "USE", /* 66 */ "FLUSH", /* 67 */ "TRIM", /* 68 */ "COMPACT", /* 69 */ "IF", /* 70 */ "NOT", /* 71 */ "EXISTS", /* 72 */ "BUFFER", /* 73 */ "CACHEMODEL", /* 74 */ "CACHESIZE", /* 75 */ "COMP", /* 76 */ "DURATION", /* 77 */ "NK_VARIABLE", /* 78 */ "MAXROWS", /* 79 */ "MINROWS", /* 80 */ "KEEP", /* 81 */ "PAGES", /* 82 */ "PAGESIZE", /* 83 */ "TSDB_PAGESIZE", /* 84 */ "PRECISION", /* 85 */ "REPLICA", /* 86 */ "VGROUPS", /* 87 */ "SINGLE_STABLE", /* 88 */ "RETENTIONS", /* 89 */ "SCHEMALESS", /* 90 */ "WAL_LEVEL", /* 91 */ "WAL_FSYNC_PERIOD", /* 92 */ "WAL_RETENTION_PERIOD", /* 93 */ "WAL_RETENTION_SIZE", /* 94 */ "WAL_ROLL_PERIOD", /* 95 */ "WAL_SEGMENT_SIZE", /* 96 */ "STT_TRIGGER", /* 97 */ "TABLE_PREFIX", /* 98 */ "TABLE_SUFFIX", /* 99 */ "KEEP_TIME_OFFSET", /* 100 */ "NK_COLON", /* 101 */ "BWLIMIT", /* 102 */ "START", /* 103 */ "TIMESTAMP", /* 104 */ "END", /* 105 */ "TABLE", /* 106 */ "NK_LP", /* 107 */ "NK_RP", /* 108 */ "STABLE", /* 109 */ "COLUMN", /* 110 */ "MODIFY", /* 111 */ "RENAME", /* 112 */ "TAG", /* 113 */ "SET", /* 114 */ "NK_EQ", /* 115 */ "USING", /* 116 */ "TAGS", /* 117 */ "BOOL", /* 118 */ "TINYINT", /* 119 */ "SMALLINT", /* 120 */ "INT", /* 121 */ "INTEGER", /* 122 */ "BIGINT", /* 123 */ "FLOAT", /* 124 */ "DOUBLE", /* 125 */ "BINARY", /* 126 */ "NCHAR", /* 127 */ "UNSIGNED", /* 128 */ "JSON", /* 129 */ "VARCHAR", /* 130 */ "MEDIUMBLOB", /* 131 */ "BLOB", /* 132 */ "VARBINARY", /* 133 */ "GEOMETRY", /* 134 */ "DECIMAL", /* 135 */ "COMMENT", /* 136 */ "MAX_DELAY", /* 137 */ "WATERMARK", /* 138 */ "ROLLUP", /* 139 */ "TTL", /* 140 */ "SMA", /* 141 */ "DELETE_MARK", /* 142 */ "FIRST", /* 143 */ "LAST", /* 144 */ "SHOW", /* 145 */ "PRIVILEGES", /* 146 */ "DATABASES", /* 147 */ "TABLES", /* 148 */ "STABLES", /* 149 */ "MNODES", /* 150 */ "QNODES", /* 151 */ "FUNCTIONS", /* 152 */ "INDEXES", /* 153 */ "ACCOUNTS", /* 154 */ "APPS", /* 155 */ "CONNECTIONS", /* 156 */ "LICENCES", /* 157 */ "GRANTS", /* 158 */ "QUERIES", /* 159 */ "SCORES", /* 160 */ "TOPICS", /* 161 */ "VARIABLES", /* 162 */ "CLUSTER", /* 163 */ "BNODES", /* 164 */ "SNODES", /* 165 */ "TRANSACTIONS", /* 166 */ "DISTRIBUTED", /* 167 */ "CONSUMERS", /* 168 */ "SUBSCRIPTIONS", /* 169 */ "VNODES", /* 170 */ "ALIVE", /* 171 */ "VIEWS", /* 172 */ "VIEW", /* 173 */ "COMPACTS", /* 174 */ "NORMAL", /* 175 */ "CHILD", /* 176 */ "LIKE", /* 177 */ "TBNAME", /* 178 */ "QTAGS", /* 179 */ "AS", /* 180 */ "SYSTEM", /* 181 */ "INDEX", /* 182 */ "FUNCTION", /* 183 */ "INTERVAL", /* 184 */ "COUNT", /* 185 */ "LAST_ROW", /* 186 */ "META", /* 187 */ "ONLY", /* 188 */ "TOPIC", /* 189 */ "CONSUMER", /* 190 */ "GROUP", /* 191 */ "DESC", /* 192 */ "DESCRIBE", /* 193 */ "RESET", /* 194 */ "QUERY", /* 195 */ "CACHE", /* 196 */ "EXPLAIN", /* 197 */ "ANALYZE", /* 198 */ "VERBOSE", /* 199 */ "NK_BOOL", /* 200 */ "RATIO", /* 201 */ "NK_FLOAT", /* 202 */ "OUTPUTTYPE", /* 203 */ "AGGREGATE", /* 204 */ "BUFSIZE", /* 205 */ "LANGUAGE", /* 206 */ "REPLACE", /* 207 */ "STREAM", /* 208 */ "INTO", /* 209 */ "PAUSE", /* 210 */ "RESUME", /* 211 */ "TRIGGER", /* 212 */ "AT_ONCE", /* 213 */ "WINDOW_CLOSE", /* 214 */ "IGNORE", /* 215 */ "EXPIRED", /* 216 */ "FILL_HISTORY", /* 217 */ "UPDATE", /* 218 */ "SUBTABLE", /* 219 */ "UNTREATED", /* 220 */ "KILL", /* 221 */ "CONNECTION", /* 222 */ "TRANSACTION", /* 223 */ "BALANCE", /* 224 */ "VGROUP", /* 225 */ "LEADER", /* 226 */ "MERGE", /* 227 */ "REDISTRIBUTE", /* 228 */ "SPLIT", /* 229 */ "DELETE", /* 230 */ "INSERT", /* 231 */ "NULL", /* 232 */ "NK_QUESTION", /* 233 */ "NK_ALIAS", /* 234 */ "NK_ARROW", /* 235 */ "ROWTS", /* 236 */ "QSTART", /* 237 */ "QEND", /* 238 */ "QDURATION", /* 239 */ "WSTART", /* 240 */ "WEND", /* 241 */ "WDURATION", /* 242 */ "IROWTS", /* 243 */ "ISFILLED", /* 244 */ "CAST", /* 245 */ "NOW", /* 246 */ "TODAY", /* 247 */ "TIMEZONE", /* 248 */ "CLIENT_VERSION", /* 249 */ "SERVER_VERSION", /* 250 */ "SERVER_STATUS", /* 251 */ "CURRENT_USER", /* 252 */ "CASE", /* 253 */ "WHEN", /* 254 */ "THEN", /* 255 */ "ELSE", /* 256 */ "BETWEEN", /* 257 */ "IS", /* 258 */ "NK_LT", /* 259 */ "NK_GT", /* 260 */ "NK_LE", /* 261 */ "NK_GE", /* 262 */ "NK_NE", /* 263 */ "MATCH", /* 264 */ "NMATCH", /* 265 */ "CONTAINS", /* 266 */ "IN", /* 267 */ "JOIN", /* 268 */ "INNER", /* 269 */ "SELECT", /* 270 */ "NK_HINT", /* 271 */ "DISTINCT", /* 272 */ "WHERE", /* 273 */ "PARTITION", /* 274 */ "BY", /* 275 */ "SESSION", /* 276 */ "STATE_WINDOW", /* 277 */ "EVENT_WINDOW", /* 278 */ "COUNT_WINDOW", /* 279 */ "SLIDING", /* 280 */ "FILL", /* 281 */ "VALUE", /* 282 */ "VALUE_F", /* 283 */ "NONE", /* 284 */ "PREV", /* 285 */ "NULL_F", /* 286 */ "LINEAR", /* 287 */ "NEXT", /* 288 */ "HAVING", /* 289 */ "RANGE", /* 290 */ "EVERY", /* 291 */ "ORDER", /* 292 */ "SLIMIT", /* 293 */ "SOFFSET", /* 294 */ "LIMIT", /* 295 */ "OFFSET", /* 296 */ "ASC", /* 297 */ "NULLS", /* 298 */ "ABORT", /* 299 */ "AFTER", /* 300 */ "ATTACH", /* 301 */ "BEFORE", /* 302 */ "BEGIN", /* 303 */ "BITAND", /* 304 */ "BITNOT", /* 305 */ "BITOR", /* 306 */ "BLOCKS", /* 307 */ "CHANGE", /* 308 */ "COMMA", /* 309 */ "CONCAT", /* 310 */ "CONFLICT", /* 311 */ "COPY", /* 312 */ "DEFERRED", /* 313 */ "DELIMITERS", /* 314 */ "DETACH", /* 315 */ "DIVIDE", /* 316 */ "DOT", /* 317 */ "EACH", /* 318 */ "FAIL", /* 319 */ "FILE", /* 320 */ "FOR", /* 321 */ "GLOB", /* 322 */ "ID", /* 323 */ "IMMEDIATE", /* 324 */ "IMPORT", /* 325 */ "INITIALLY", /* 326 */ "INSTEAD", /* 327 */ "ISNULL", /* 328 */ "KEY", /* 329 */ "MODULES", /* 330 */ "NK_BITNOT", /* 331 */ "NK_SEMI", /* 332 */ "NOTNULL", /* 333 */ "OF", /* 334 */ "PLUS", /* 335 */ "PRIVILEGE", /* 336 */ "RAISE", /* 337 */ "RESTRICT", /* 338 */ "ROW", /* 339 */ "SEMI", /* 340 */ "STAR", /* 341 */ "STATEMENT", /* 342 */ "STRICT", /* 343 */ "STRING", /* 344 */ "TIMES", /* 345 */ "VALUES", /* 346 */ "VARIABLE", /* 347 */ "WAL", /* 348 */ "cmd", /* 349 */ "account_options", /* 350 */ "alter_account_options", /* 351 */ "literal", /* 352 */ "alter_account_option", /* 353 */ "ip_range_list", /* 354 */ "white_list", /* 355 */ "white_list_opt", /* 356 */ "user_name", /* 357 */ "sysinfo_opt", /* 358 */ "privileges", /* 359 */ "priv_level", /* 360 */ "with_opt", /* 361 */ "priv_type_list", /* 362 */ "priv_type", /* 363 */ "db_name", /* 364 */ "table_name", /* 365 */ "topic_name", /* 366 */ "search_condition", /* 367 */ "dnode_endpoint", /* 368 */ "force_opt", /* 369 */ "unsafe_opt", /* 370 */ "not_exists_opt", /* 371 */ "db_options", /* 372 */ "exists_opt", /* 373 */ "alter_db_options", /* 374 */ "speed_opt", /* 375 */ "start_opt", /* 376 */ "end_opt", /* 377 */ "integer_list", /* 378 */ "variable_list", /* 379 */ "retention_list", /* 380 */ "signed", /* 381 */ "alter_db_option", /* 382 */ "retention", /* 383 */ "full_table_name", /* 384 */ "column_def_list", /* 385 */ "tags_def_opt", /* 386 */ "table_options", /* 387 */ "multi_create_clause", /* 388 */ "tags_def", /* 389 */ "multi_drop_clause", /* 390 */ "alter_table_clause", /* 391 */ "alter_table_options", /* 392 */ "column_name", /* 393 */ "type_name", /* 394 */ "signed_literal", /* 395 */ "create_subtable_clause", /* 396 */ "specific_cols_opt", /* 397 */ "expression_list", /* 398 */ "drop_table_clause", /* 399 */ "col_name_list", /* 400 */ "column_def", /* 401 */ "duration_list", /* 402 */ "rollup_func_list", /* 403 */ "alter_table_option", /* 404 */ "duration_literal", /* 405 */ "rollup_func_name", /* 406 */ "function_name", /* 407 */ "col_name", /* 408 */ "db_kind_opt", /* 409 */ "table_kind_db_name_cond_opt", /* 410 */ "like_pattern_opt", /* 411 */ "db_name_cond_opt", /* 412 */ "table_name_cond", /* 413 */ "from_db_opt", /* 414 */ "tag_list_opt", /* 415 */ "table_kind", /* 416 */ "tag_item", /* 417 */ "column_alias", /* 418 */ "index_options", /* 419 */ "full_index_name", /* 420 */ "index_name", /* 421 */ "func_list", /* 422 */ "sliding_opt", /* 423 */ "sma_stream_opt", /* 424 */ "func", /* 425 */ "sma_func_name", /* 426 */ "with_meta", /* 427 */ "query_or_subquery", /* 428 */ "where_clause_opt", /* 429 */ "cgroup_name", /* 430 */ "analyze_opt", /* 431 */ "explain_options", /* 432 */ "insert_query", /* 433 */ "or_replace_opt", /* 434 */ "agg_func_opt", /* 435 */ "bufsize_opt", /* 436 */ "language_opt", /* 437 */ "full_view_name", /* 438 */ "view_name", /* 439 */ "stream_name", /* 440 */ "stream_options", /* 441 */ "col_list_opt", /* 442 */ "tag_def_or_ref_opt", /* 443 */ "subtable_opt", /* 444 */ "ignore_opt", /* 445 */ "expression", /* 446 */ "on_vgroup_id", /* 447 */ "dnode_list", /* 448 */ "literal_func", /* 449 */ "literal_list", /* 450 */ "table_alias", /* 451 */ "expr_or_subquery", /* 452 */ "pseudo_column", /* 453 */ "column_reference", /* 454 */ "function_expression", /* 455 */ "case_when_expression", /* 456 */ "star_func", /* 457 */ "star_func_para_list", /* 458 */ "noarg_func", /* 459 */ "other_para_list", /* 460 */ "star_func_para", /* 461 */ "when_then_list", /* 462 */ "case_when_else_opt", /* 463 */ "common_expression", /* 464 */ "when_then_expr", /* 465 */ "predicate", /* 466 */ "compare_op", /* 467 */ "in_op", /* 468 */ "in_predicate_value", /* 469 */ "boolean_value_expression", /* 470 */ "boolean_primary", /* 471 */ "from_clause_opt", /* 472 */ "table_reference_list", /* 473 */ "table_reference", /* 474 */ "table_primary", /* 475 */ "joined_table", /* 476 */ "alias_opt", /* 477 */ "subquery", /* 478 */ "parenthesized_joined_table", /* 479 */ "join_type", /* 480 */ "query_specification", /* 481 */ "hint_list", /* 482 */ "set_quantifier_opt", /* 483 */ "tag_mode_opt", /* 484 */ "select_list", /* 485 */ "partition_by_clause_opt", /* 486 */ "range_opt", /* 487 */ "every_opt", /* 488 */ "fill_opt", /* 489 */ "twindow_clause_opt", /* 490 */ "group_by_clause_opt", /* 491 */ "having_clause_opt", /* 492 */ "select_item", /* 493 */ "partition_list", /* 494 */ "partition_item", /* 495 */ "interval_sliding_duration_literal", /* 496 */ "fill_mode", /* 497 */ "group_by_list", /* 498 */ "query_expression", /* 499 */ "query_simple", /* 500 */ "order_by_clause_opt", /* 501 */ "slimit_clause_opt", /* 502 */ "limit_clause_opt", /* 503 */ "union_query_expression", /* 504 */ "query_simple_or_subquery", /* 505 */ "sort_specification_list", /* 506 */ "sort_specification", /* 507 */ "ordering_specification_opt", /* 508 */ "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 LOCAL NK_STRING", /* 72 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", /* 73 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", /* 74 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", /* 75 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER", /* 76 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", /* 77 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", /* 78 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", /* 79 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", /* 80 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", /* 81 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", /* 82 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER", /* 83 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER", /* 84 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", /* 85 */ "cmd ::= DROP DATABASE exists_opt db_name", /* 86 */ "cmd ::= USE db_name", /* 87 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 88 */ "cmd ::= FLUSH DATABASE db_name", /* 89 */ "cmd ::= TRIM DATABASE db_name speed_opt", /* 90 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt", /* 91 */ "not_exists_opt ::= IF NOT EXISTS", /* 92 */ "not_exists_opt ::=", /* 93 */ "exists_opt ::= IF EXISTS", /* 94 */ "exists_opt ::=", /* 95 */ "db_options ::=", /* 96 */ "db_options ::= db_options BUFFER NK_INTEGER", /* 97 */ "db_options ::= db_options CACHEMODEL NK_STRING", /* 98 */ "db_options ::= db_options CACHESIZE NK_INTEGER", /* 99 */ "db_options ::= db_options COMP NK_INTEGER", /* 100 */ "db_options ::= db_options DURATION NK_INTEGER", /* 101 */ "db_options ::= db_options DURATION NK_VARIABLE", /* 102 */ "db_options ::= db_options MAXROWS NK_INTEGER", /* 103 */ "db_options ::= db_options MINROWS NK_INTEGER", /* 104 */ "db_options ::= db_options KEEP integer_list", /* 105 */ "db_options ::= db_options KEEP variable_list", /* 106 */ "db_options ::= db_options PAGES NK_INTEGER", /* 107 */ "db_options ::= db_options PAGESIZE NK_INTEGER", /* 108 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", /* 109 */ "db_options ::= db_options PRECISION NK_STRING", /* 110 */ "db_options ::= db_options REPLICA NK_INTEGER", /* 111 */ "db_options ::= db_options VGROUPS NK_INTEGER", /* 112 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", /* 113 */ "db_options ::= db_options RETENTIONS retention_list", /* 114 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", /* 115 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", /* 116 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", /* 117 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", /* 118 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 119 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", /* 120 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 121 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", /* 122 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", /* 123 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", /* 124 */ "db_options ::= db_options TABLE_PREFIX signed", /* 125 */ "db_options ::= db_options TABLE_SUFFIX signed", /* 126 */ "db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER", /* 127 */ "alter_db_options ::= alter_db_option", /* 128 */ "alter_db_options ::= alter_db_options alter_db_option", /* 129 */ "alter_db_option ::= BUFFER NK_INTEGER", /* 130 */ "alter_db_option ::= CACHEMODEL NK_STRING", /* 131 */ "alter_db_option ::= CACHESIZE NK_INTEGER", /* 132 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", /* 133 */ "alter_db_option ::= KEEP integer_list", /* 134 */ "alter_db_option ::= KEEP variable_list", /* 135 */ "alter_db_option ::= PAGES NK_INTEGER", /* 136 */ "alter_db_option ::= REPLICA NK_INTEGER", /* 137 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", /* 138 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", /* 139 */ "alter_db_option ::= MINROWS NK_INTEGER", /* 140 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER", /* 141 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 142 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER", /* 143 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 144 */ "alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER", /* 145 */ "integer_list ::= NK_INTEGER", /* 146 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", /* 147 */ "variable_list ::= NK_VARIABLE", /* 148 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", /* 149 */ "retention_list ::= retention", /* 150 */ "retention_list ::= retention_list NK_COMMA retention", /* 151 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", /* 152 */ "retention ::= NK_MINUS NK_COLON NK_VARIABLE", /* 153 */ "speed_opt ::=", /* 154 */ "speed_opt ::= BWLIMIT NK_INTEGER", /* 155 */ "start_opt ::=", /* 156 */ "start_opt ::= START WITH NK_INTEGER", /* 157 */ "start_opt ::= START WITH NK_STRING", /* 158 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", /* 159 */ "end_opt ::=", /* 160 */ "end_opt ::= END WITH NK_INTEGER", /* 161 */ "end_opt ::= END WITH NK_STRING", /* 162 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", /* 163 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", /* 164 */ "cmd ::= CREATE TABLE multi_create_clause", /* 165 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", /* 166 */ "cmd ::= DROP TABLE multi_drop_clause", /* 167 */ "cmd ::= DROP STABLE exists_opt full_table_name", /* 168 */ "cmd ::= ALTER TABLE alter_table_clause", /* 169 */ "cmd ::= ALTER STABLE alter_table_clause", /* 170 */ "alter_table_clause ::= full_table_name alter_table_options", /* 171 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", /* 172 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", /* 173 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", /* 174 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", /* 175 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", /* 176 */ "alter_table_clause ::= full_table_name DROP TAG column_name", /* 177 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", /* 178 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", /* 179 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", /* 180 */ "multi_create_clause ::= create_subtable_clause", /* 181 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", /* 182 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options", /* 183 */ "multi_drop_clause ::= drop_table_clause", /* 184 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", /* 185 */ "drop_table_clause ::= exists_opt full_table_name", /* 186 */ "specific_cols_opt ::=", /* 187 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", /* 188 */ "full_table_name ::= table_name", /* 189 */ "full_table_name ::= db_name NK_DOT table_name", /* 190 */ "column_def_list ::= column_def", /* 191 */ "column_def_list ::= column_def_list NK_COMMA column_def", /* 192 */ "column_def ::= column_name type_name", /* 193 */ "type_name ::= BOOL", /* 194 */ "type_name ::= TINYINT", /* 195 */ "type_name ::= SMALLINT", /* 196 */ "type_name ::= INT", /* 197 */ "type_name ::= INTEGER", /* 198 */ "type_name ::= BIGINT", /* 199 */ "type_name ::= FLOAT", /* 200 */ "type_name ::= DOUBLE", /* 201 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", /* 202 */ "type_name ::= TIMESTAMP", /* 203 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", /* 204 */ "type_name ::= TINYINT UNSIGNED", /* 205 */ "type_name ::= SMALLINT UNSIGNED", /* 206 */ "type_name ::= INT UNSIGNED", /* 207 */ "type_name ::= BIGINT UNSIGNED", /* 208 */ "type_name ::= JSON", /* 209 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", /* 210 */ "type_name ::= MEDIUMBLOB", /* 211 */ "type_name ::= BLOB", /* 212 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", /* 213 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", /* 214 */ "type_name ::= DECIMAL", /* 215 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 216 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 217 */ "tags_def_opt ::=", /* 218 */ "tags_def_opt ::= tags_def", /* 219 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", /* 220 */ "table_options ::=", /* 221 */ "table_options ::= table_options COMMENT NK_STRING", /* 222 */ "table_options ::= table_options MAX_DELAY duration_list", /* 223 */ "table_options ::= table_options WATERMARK duration_list", /* 224 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", /* 225 */ "table_options ::= table_options TTL NK_INTEGER", /* 226 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", /* 227 */ "table_options ::= table_options DELETE_MARK duration_list", /* 228 */ "alter_table_options ::= alter_table_option", /* 229 */ "alter_table_options ::= alter_table_options alter_table_option", /* 230 */ "alter_table_option ::= COMMENT NK_STRING", /* 231 */ "alter_table_option ::= TTL NK_INTEGER", /* 232 */ "duration_list ::= duration_literal", /* 233 */ "duration_list ::= duration_list NK_COMMA duration_literal", /* 234 */ "rollup_func_list ::= rollup_func_name", /* 235 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", /* 236 */ "rollup_func_name ::= function_name", /* 237 */ "rollup_func_name ::= FIRST", /* 238 */ "rollup_func_name ::= LAST", /* 239 */ "col_name_list ::= col_name", /* 240 */ "col_name_list ::= col_name_list NK_COMMA col_name", /* 241 */ "col_name ::= column_name", /* 242 */ "cmd ::= SHOW DNODES", /* 243 */ "cmd ::= SHOW USERS", /* 244 */ "cmd ::= SHOW USER PRIVILEGES", /* 245 */ "cmd ::= SHOW db_kind_opt DATABASES", /* 246 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", /* 247 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", /* 248 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", /* 249 */ "cmd ::= SHOW MNODES", /* 250 */ "cmd ::= SHOW QNODES", /* 251 */ "cmd ::= SHOW FUNCTIONS", /* 252 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", /* 253 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", /* 254 */ "cmd ::= SHOW STREAMS", /* 255 */ "cmd ::= SHOW ACCOUNTS", /* 256 */ "cmd ::= SHOW APPS", /* 257 */ "cmd ::= SHOW CONNECTIONS", /* 258 */ "cmd ::= SHOW LICENCES", /* 259 */ "cmd ::= SHOW GRANTS", /* 260 */ "cmd ::= SHOW CREATE DATABASE db_name", /* 261 */ "cmd ::= SHOW CREATE TABLE full_table_name", /* 262 */ "cmd ::= SHOW CREATE STABLE full_table_name", /* 263 */ "cmd ::= SHOW QUERIES", /* 264 */ "cmd ::= SHOW SCORES", /* 265 */ "cmd ::= SHOW TOPICS", /* 266 */ "cmd ::= SHOW VARIABLES", /* 267 */ "cmd ::= SHOW CLUSTER VARIABLES", /* 268 */ "cmd ::= SHOW LOCAL VARIABLES", /* 269 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", /* 270 */ "cmd ::= SHOW BNODES", /* 271 */ "cmd ::= SHOW SNODES", /* 272 */ "cmd ::= SHOW CLUSTER", /* 273 */ "cmd ::= SHOW TRANSACTIONS", /* 274 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", /* 275 */ "cmd ::= SHOW CONSUMERS", /* 276 */ "cmd ::= SHOW SUBSCRIPTIONS", /* 277 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", /* 278 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", /* 279 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", /* 280 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", /* 281 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", /* 282 */ "cmd ::= SHOW VNODES", /* 283 */ "cmd ::= SHOW db_name_cond_opt ALIVE", /* 284 */ "cmd ::= SHOW CLUSTER ALIVE", /* 285 */ "cmd ::= SHOW db_name_cond_opt VIEWS", /* 286 */ "cmd ::= SHOW CREATE VIEW full_table_name", /* 287 */ "cmd ::= SHOW COMPACTS", /* 288 */ "cmd ::= SHOW COMPACT NK_INTEGER", /* 289 */ "table_kind_db_name_cond_opt ::=", /* 290 */ "table_kind_db_name_cond_opt ::= table_kind", /* 291 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", /* 292 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", /* 293 */ "table_kind ::= NORMAL", /* 294 */ "table_kind ::= CHILD", /* 295 */ "db_name_cond_opt ::=", /* 296 */ "db_name_cond_opt ::= db_name NK_DOT", /* 297 */ "like_pattern_opt ::=", /* 298 */ "like_pattern_opt ::= LIKE NK_STRING", /* 299 */ "table_name_cond ::= table_name", /* 300 */ "from_db_opt ::=", /* 301 */ "from_db_opt ::= FROM db_name", /* 302 */ "tag_list_opt ::=", /* 303 */ "tag_list_opt ::= tag_item", /* 304 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", /* 305 */ "tag_item ::= TBNAME", /* 306 */ "tag_item ::= QTAGS", /* 307 */ "tag_item ::= column_name", /* 308 */ "tag_item ::= column_name column_alias", /* 309 */ "tag_item ::= column_name AS column_alias", /* 310 */ "db_kind_opt ::=", /* 311 */ "db_kind_opt ::= USER", /* 312 */ "db_kind_opt ::= SYSTEM", /* 313 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", /* 314 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", /* 315 */ "cmd ::= DROP INDEX exists_opt full_index_name", /* 316 */ "full_index_name ::= index_name", /* 317 */ "full_index_name ::= db_name NK_DOT index_name", /* 318 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", /* 319 */ "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", /* 320 */ "func_list ::= func", /* 321 */ "func_list ::= func_list NK_COMMA func", /* 322 */ "func ::= sma_func_name NK_LP expression_list NK_RP", /* 323 */ "sma_func_name ::= function_name", /* 324 */ "sma_func_name ::= COUNT", /* 325 */ "sma_func_name ::= FIRST", /* 326 */ "sma_func_name ::= LAST", /* 327 */ "sma_func_name ::= LAST_ROW", /* 328 */ "sma_stream_opt ::=", /* 329 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", /* 330 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", /* 331 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", /* 332 */ "with_meta ::= AS", /* 333 */ "with_meta ::= WITH META AS", /* 334 */ "with_meta ::= ONLY META AS", /* 335 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", /* 336 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", /* 337 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", /* 338 */ "cmd ::= DROP TOPIC exists_opt topic_name", /* 339 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", /* 340 */ "cmd ::= DESC full_table_name", /* 341 */ "cmd ::= DESCRIBE full_table_name", /* 342 */ "cmd ::= RESET QUERY CACHE", /* 343 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", /* 344 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", /* 345 */ "analyze_opt ::=", /* 346 */ "analyze_opt ::= ANALYZE", /* 347 */ "explain_options ::=", /* 348 */ "explain_options ::= explain_options VERBOSE NK_BOOL", /* 349 */ "explain_options ::= explain_options RATIO NK_FLOAT", /* 350 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", /* 351 */ "cmd ::= DROP FUNCTION exists_opt function_name", /* 352 */ "agg_func_opt ::=", /* 353 */ "agg_func_opt ::= AGGREGATE", /* 354 */ "bufsize_opt ::=", /* 355 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", /* 356 */ "language_opt ::=", /* 357 */ "language_opt ::= LANGUAGE NK_STRING", /* 358 */ "or_replace_opt ::=", /* 359 */ "or_replace_opt ::= OR REPLACE", /* 360 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", /* 361 */ "cmd ::= DROP VIEW exists_opt full_view_name", /* 362 */ "full_view_name ::= view_name", /* 363 */ "full_view_name ::= db_name NK_DOT view_name", /* 364 */ "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", /* 365 */ "cmd ::= DROP STREAM exists_opt stream_name", /* 366 */ "cmd ::= PAUSE STREAM exists_opt stream_name", /* 367 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", /* 368 */ "col_list_opt ::=", /* 369 */ "col_list_opt ::= NK_LP col_name_list NK_RP", /* 370 */ "tag_def_or_ref_opt ::=", /* 371 */ "tag_def_or_ref_opt ::= tags_def", /* 372 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", /* 373 */ "stream_options ::=", /* 374 */ "stream_options ::= stream_options TRIGGER AT_ONCE", /* 375 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", /* 376 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", /* 377 */ "stream_options ::= stream_options WATERMARK duration_literal", /* 378 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", /* 379 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", /* 380 */ "stream_options ::= stream_options DELETE_MARK duration_literal", /* 381 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", /* 382 */ "subtable_opt ::=", /* 383 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", /* 384 */ "ignore_opt ::=", /* 385 */ "ignore_opt ::= IGNORE UNTREATED", /* 386 */ "cmd ::= KILL CONNECTION NK_INTEGER", /* 387 */ "cmd ::= KILL QUERY NK_STRING", /* 388 */ "cmd ::= KILL TRANSACTION NK_INTEGER", /* 389 */ "cmd ::= KILL COMPACT NK_INTEGER", /* 390 */ "cmd ::= BALANCE VGROUP", /* 391 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", /* 392 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", /* 393 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", /* 394 */ "cmd ::= SPLIT VGROUP NK_INTEGER", /* 395 */ "on_vgroup_id ::=", /* 396 */ "on_vgroup_id ::= ON NK_INTEGER", /* 397 */ "dnode_list ::= DNODE NK_INTEGER", /* 398 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", /* 399 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 400 */ "cmd ::= query_or_subquery", /* 401 */ "cmd ::= insert_query", /* 402 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", /* 403 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", /* 404 */ "literal ::= NK_INTEGER", /* 405 */ "literal ::= NK_FLOAT", /* 406 */ "literal ::= NK_STRING", /* 407 */ "literal ::= NK_BOOL", /* 408 */ "literal ::= TIMESTAMP NK_STRING", /* 409 */ "literal ::= duration_literal", /* 410 */ "literal ::= NULL", /* 411 */ "literal ::= NK_QUESTION", /* 412 */ "duration_literal ::= NK_VARIABLE", /* 413 */ "signed ::= NK_INTEGER", /* 414 */ "signed ::= NK_PLUS NK_INTEGER", /* 415 */ "signed ::= NK_MINUS NK_INTEGER", /* 416 */ "signed ::= NK_FLOAT", /* 417 */ "signed ::= NK_PLUS NK_FLOAT", /* 418 */ "signed ::= NK_MINUS NK_FLOAT", /* 419 */ "signed_literal ::= signed", /* 420 */ "signed_literal ::= NK_STRING", /* 421 */ "signed_literal ::= NK_BOOL", /* 422 */ "signed_literal ::= TIMESTAMP NK_STRING", /* 423 */ "signed_literal ::= duration_literal", /* 424 */ "signed_literal ::= NULL", /* 425 */ "signed_literal ::= literal_func", /* 426 */ "signed_literal ::= NK_QUESTION", /* 427 */ "literal_list ::= signed_literal", /* 428 */ "literal_list ::= literal_list NK_COMMA signed_literal", /* 429 */ "db_name ::= NK_ID", /* 430 */ "table_name ::= NK_ID", /* 431 */ "column_name ::= NK_ID", /* 432 */ "function_name ::= NK_ID", /* 433 */ "view_name ::= NK_ID", /* 434 */ "table_alias ::= NK_ID", /* 435 */ "column_alias ::= NK_ID", /* 436 */ "column_alias ::= NK_ALIAS", /* 437 */ "user_name ::= NK_ID", /* 438 */ "topic_name ::= NK_ID", /* 439 */ "stream_name ::= NK_ID", /* 440 */ "cgroup_name ::= NK_ID", /* 441 */ "index_name ::= NK_ID", /* 442 */ "expr_or_subquery ::= expression", /* 443 */ "expression ::= literal", /* 444 */ "expression ::= pseudo_column", /* 445 */ "expression ::= column_reference", /* 446 */ "expression ::= function_expression", /* 447 */ "expression ::= case_when_expression", /* 448 */ "expression ::= NK_LP expression NK_RP", /* 449 */ "expression ::= NK_PLUS expr_or_subquery", /* 450 */ "expression ::= NK_MINUS expr_or_subquery", /* 451 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", /* 452 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", /* 453 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", /* 454 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", /* 455 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", /* 456 */ "expression ::= column_reference NK_ARROW NK_STRING", /* 457 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", /* 458 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", /* 459 */ "expression_list ::= expr_or_subquery", /* 460 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", /* 461 */ "column_reference ::= column_name", /* 462 */ "column_reference ::= table_name NK_DOT column_name", /* 463 */ "column_reference ::= NK_ALIAS", /* 464 */ "column_reference ::= table_name NK_DOT NK_ALIAS", /* 465 */ "pseudo_column ::= ROWTS", /* 466 */ "pseudo_column ::= TBNAME", /* 467 */ "pseudo_column ::= table_name NK_DOT TBNAME", /* 468 */ "pseudo_column ::= QSTART", /* 469 */ "pseudo_column ::= QEND", /* 470 */ "pseudo_column ::= QDURATION", /* 471 */ "pseudo_column ::= WSTART", /* 472 */ "pseudo_column ::= WEND", /* 473 */ "pseudo_column ::= WDURATION", /* 474 */ "pseudo_column ::= IROWTS", /* 475 */ "pseudo_column ::= ISFILLED", /* 476 */ "pseudo_column ::= QTAGS", /* 477 */ "function_expression ::= function_name NK_LP expression_list NK_RP", /* 478 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", /* 479 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", /* 480 */ "function_expression ::= literal_func", /* 481 */ "literal_func ::= noarg_func NK_LP NK_RP", /* 482 */ "literal_func ::= NOW", /* 483 */ "noarg_func ::= NOW", /* 484 */ "noarg_func ::= TODAY", /* 485 */ "noarg_func ::= TIMEZONE", /* 486 */ "noarg_func ::= DATABASE", /* 487 */ "noarg_func ::= CLIENT_VERSION", /* 488 */ "noarg_func ::= SERVER_VERSION", /* 489 */ "noarg_func ::= SERVER_STATUS", /* 490 */ "noarg_func ::= CURRENT_USER", /* 491 */ "noarg_func ::= USER", /* 492 */ "star_func ::= COUNT", /* 493 */ "star_func ::= FIRST", /* 494 */ "star_func ::= LAST", /* 495 */ "star_func ::= LAST_ROW", /* 496 */ "star_func_para_list ::= NK_STAR", /* 497 */ "star_func_para_list ::= other_para_list", /* 498 */ "other_para_list ::= star_func_para", /* 499 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", /* 500 */ "star_func_para ::= expr_or_subquery", /* 501 */ "star_func_para ::= table_name NK_DOT NK_STAR", /* 502 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", /* 503 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", /* 504 */ "when_then_list ::= when_then_expr", /* 505 */ "when_then_list ::= when_then_list when_then_expr", /* 506 */ "when_then_expr ::= WHEN common_expression THEN common_expression", /* 507 */ "case_when_else_opt ::=", /* 508 */ "case_when_else_opt ::= ELSE common_expression", /* 509 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", /* 510 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", /* 511 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", /* 512 */ "predicate ::= expr_or_subquery IS NULL", /* 513 */ "predicate ::= expr_or_subquery IS NOT NULL", /* 514 */ "predicate ::= expr_or_subquery in_op in_predicate_value", /* 515 */ "compare_op ::= NK_LT", /* 516 */ "compare_op ::= NK_GT", /* 517 */ "compare_op ::= NK_LE", /* 518 */ "compare_op ::= NK_GE", /* 519 */ "compare_op ::= NK_NE", /* 520 */ "compare_op ::= NK_EQ", /* 521 */ "compare_op ::= LIKE", /* 522 */ "compare_op ::= NOT LIKE", /* 523 */ "compare_op ::= MATCH", /* 524 */ "compare_op ::= NMATCH", /* 525 */ "compare_op ::= CONTAINS", /* 526 */ "in_op ::= IN", /* 527 */ "in_op ::= NOT IN", /* 528 */ "in_predicate_value ::= NK_LP literal_list NK_RP", /* 529 */ "boolean_value_expression ::= boolean_primary", /* 530 */ "boolean_value_expression ::= NOT boolean_primary", /* 531 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 532 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 533 */ "boolean_primary ::= predicate", /* 534 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 535 */ "common_expression ::= expr_or_subquery", /* 536 */ "common_expression ::= boolean_value_expression", /* 537 */ "from_clause_opt ::=", /* 538 */ "from_clause_opt ::= FROM table_reference_list", /* 539 */ "table_reference_list ::= table_reference", /* 540 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 541 */ "table_reference ::= table_primary", /* 542 */ "table_reference ::= joined_table", /* 543 */ "table_primary ::= table_name alias_opt", /* 544 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 545 */ "table_primary ::= subquery alias_opt", /* 546 */ "table_primary ::= parenthesized_joined_table", /* 547 */ "alias_opt ::=", /* 548 */ "alias_opt ::= table_alias", /* 549 */ "alias_opt ::= AS table_alias", /* 550 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 551 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 552 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 553 */ "join_type ::=", /* 554 */ "join_type ::= INNER", /* 555 */ "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", /* 556 */ "hint_list ::=", /* 557 */ "hint_list ::= NK_HINT", /* 558 */ "tag_mode_opt ::=", /* 559 */ "tag_mode_opt ::= TAGS", /* 560 */ "set_quantifier_opt ::=", /* 561 */ "set_quantifier_opt ::= DISTINCT", /* 562 */ "set_quantifier_opt ::= ALL", /* 563 */ "select_list ::= select_item", /* 564 */ "select_list ::= select_list NK_COMMA select_item", /* 565 */ "select_item ::= NK_STAR", /* 566 */ "select_item ::= common_expression", /* 567 */ "select_item ::= common_expression column_alias", /* 568 */ "select_item ::= common_expression AS column_alias", /* 569 */ "select_item ::= table_name NK_DOT NK_STAR", /* 570 */ "where_clause_opt ::=", /* 571 */ "where_clause_opt ::= WHERE search_condition", /* 572 */ "partition_by_clause_opt ::=", /* 573 */ "partition_by_clause_opt ::= PARTITION BY partition_list", /* 574 */ "partition_list ::= partition_item", /* 575 */ "partition_list ::= partition_list NK_COMMA partition_item", /* 576 */ "partition_item ::= expr_or_subquery", /* 577 */ "partition_item ::= expr_or_subquery column_alias", /* 578 */ "partition_item ::= expr_or_subquery AS column_alias", /* 579 */ "twindow_clause_opt ::=", /* 580 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", /* 581 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", /* 582 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", /* 583 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", /* 584 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", /* 585 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", /* 586 */ "sliding_opt ::=", /* 587 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", /* 588 */ "interval_sliding_duration_literal ::= NK_VARIABLE", /* 589 */ "interval_sliding_duration_literal ::= NK_STRING", /* 590 */ "interval_sliding_duration_literal ::= NK_INTEGER", /* 591 */ "fill_opt ::=", /* 592 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 593 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", /* 594 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", /* 595 */ "fill_mode ::= NONE", /* 596 */ "fill_mode ::= PREV", /* 597 */ "fill_mode ::= NULL", /* 598 */ "fill_mode ::= NULL_F", /* 599 */ "fill_mode ::= LINEAR", /* 600 */ "fill_mode ::= NEXT", /* 601 */ "group_by_clause_opt ::=", /* 602 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 603 */ "group_by_list ::= expr_or_subquery", /* 604 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", /* 605 */ "having_clause_opt ::=", /* 606 */ "having_clause_opt ::= HAVING search_condition", /* 607 */ "range_opt ::=", /* 608 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", /* 609 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", /* 610 */ "every_opt ::=", /* 611 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", /* 612 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 613 */ "query_simple ::= query_specification", /* 614 */ "query_simple ::= union_query_expression", /* 615 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", /* 616 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", /* 617 */ "query_simple_or_subquery ::= query_simple", /* 618 */ "query_simple_or_subquery ::= subquery", /* 619 */ "query_or_subquery ::= query_expression", /* 620 */ "query_or_subquery ::= subquery", /* 621 */ "order_by_clause_opt ::=", /* 622 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 623 */ "slimit_clause_opt ::=", /* 624 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 625 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 626 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 627 */ "limit_clause_opt ::=", /* 628 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 629 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 630 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 631 */ "subquery ::= NK_LP query_expression NK_RP", /* 632 */ "subquery ::= NK_LP subquery NK_RP", /* 633 */ "search_condition ::= common_expression", /* 634 */ "sort_specification_list ::= sort_specification", /* 635 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 636 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", /* 637 */ "ordering_specification_opt ::=", /* 638 */ "ordering_specification_opt ::= ASC", /* 639 */ "ordering_specification_opt ::= DESC", /* 640 */ "null_ordering_opt ::=", /* 641 */ "null_ordering_opt ::= NULLS FIRST", /* 642 */ "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 348: /* cmd */ case 351: /* literal */ case 360: /* with_opt */ case 366: /* search_condition */ case 371: /* db_options */ case 373: /* alter_db_options */ case 375: /* start_opt */ case 376: /* end_opt */ case 380: /* signed */ case 382: /* retention */ case 383: /* full_table_name */ case 386: /* table_options */ case 390: /* alter_table_clause */ case 391: /* alter_table_options */ case 394: /* signed_literal */ case 395: /* create_subtable_clause */ case 398: /* drop_table_clause */ case 400: /* column_def */ case 404: /* duration_literal */ case 405: /* rollup_func_name */ case 407: /* col_name */ case 410: /* like_pattern_opt */ case 411: /* db_name_cond_opt */ case 412: /* table_name_cond */ case 413: /* from_db_opt */ case 416: /* tag_item */ case 418: /* index_options */ case 419: /* full_index_name */ case 422: /* sliding_opt */ case 423: /* sma_stream_opt */ case 424: /* func */ case 427: /* query_or_subquery */ case 428: /* where_clause_opt */ case 431: /* explain_options */ case 432: /* insert_query */ case 437: /* full_view_name */ case 440: /* stream_options */ case 443: /* subtable_opt */ case 445: /* expression */ case 448: /* literal_func */ case 451: /* expr_or_subquery */ case 452: /* pseudo_column */ case 453: /* column_reference */ case 454: /* function_expression */ case 455: /* case_when_expression */ case 460: /* star_func_para */ case 462: /* case_when_else_opt */ case 463: /* common_expression */ case 464: /* when_then_expr */ case 465: /* predicate */ case 468: /* in_predicate_value */ case 469: /* boolean_value_expression */ case 470: /* boolean_primary */ case 471: /* from_clause_opt */ case 472: /* table_reference_list */ case 473: /* table_reference */ case 474: /* table_primary */ case 475: /* joined_table */ case 477: /* subquery */ case 478: /* parenthesized_joined_table */ case 480: /* query_specification */ case 486: /* range_opt */ case 487: /* every_opt */ case 488: /* fill_opt */ case 489: /* twindow_clause_opt */ case 491: /* having_clause_opt */ case 492: /* select_item */ case 494: /* partition_item */ case 495: /* interval_sliding_duration_literal */ case 498: /* query_expression */ case 499: /* query_simple */ case 501: /* slimit_clause_opt */ case 502: /* limit_clause_opt */ case 503: /* union_query_expression */ case 504: /* query_simple_or_subquery */ case 506: /* sort_specification */ { nodesDestroyNode((yypminor->yy890)); } break; case 349: /* account_options */ case 350: /* alter_account_options */ case 352: /* alter_account_option */ case 374: /* speed_opt */ case 426: /* with_meta */ case 435: /* bufsize_opt */ { } break; case 353: /* ip_range_list */ case 354: /* white_list */ case 355: /* white_list_opt */ case 377: /* integer_list */ case 378: /* variable_list */ case 379: /* retention_list */ case 384: /* column_def_list */ case 385: /* tags_def_opt */ case 387: /* multi_create_clause */ case 388: /* tags_def */ case 389: /* multi_drop_clause */ case 396: /* specific_cols_opt */ case 397: /* expression_list */ case 399: /* col_name_list */ case 401: /* duration_list */ case 402: /* rollup_func_list */ case 414: /* tag_list_opt */ case 421: /* func_list */ case 441: /* col_list_opt */ case 442: /* tag_def_or_ref_opt */ case 447: /* dnode_list */ case 449: /* literal_list */ case 457: /* star_func_para_list */ case 459: /* other_para_list */ case 461: /* when_then_list */ case 481: /* hint_list */ case 484: /* select_list */ case 485: /* partition_by_clause_opt */ case 490: /* group_by_clause_opt */ case 493: /* partition_list */ case 497: /* group_by_list */ case 500: /* order_by_clause_opt */ case 505: /* sort_specification_list */ { nodesDestroyList((yypminor->yy200)); } break; case 356: /* user_name */ case 363: /* db_name */ case 364: /* table_name */ case 365: /* topic_name */ case 367: /* dnode_endpoint */ case 392: /* column_name */ case 406: /* function_name */ case 417: /* column_alias */ case 420: /* index_name */ case 425: /* sma_func_name */ case 429: /* cgroup_name */ case 436: /* language_opt */ case 438: /* view_name */ case 439: /* stream_name */ case 446: /* on_vgroup_id */ case 450: /* table_alias */ case 456: /* star_func */ case 458: /* noarg_func */ case 476: /* alias_opt */ { } break; case 357: /* sysinfo_opt */ { } break; case 358: /* privileges */ case 361: /* priv_type_list */ case 362: /* priv_type */ { } break; case 359: /* priv_level */ { } break; case 368: /* force_opt */ case 369: /* unsafe_opt */ case 370: /* not_exists_opt */ case 372: /* exists_opt */ case 430: /* analyze_opt */ case 433: /* or_replace_opt */ case 434: /* agg_func_opt */ case 444: /* ignore_opt */ case 482: /* set_quantifier_opt */ case 483: /* tag_mode_opt */ { } break; case 381: /* alter_db_option */ case 403: /* alter_table_option */ { } break; case 393: /* type_name */ { } break; case 408: /* db_kind_opt */ case 415: /* table_kind */ { } break; case 409: /* table_kind_db_name_cond_opt */ { } break; case 466: /* compare_op */ case 467: /* in_op */ { } break; case 479: /* join_type */ { } break; case 496: /* fill_mode */ { } break; case 507: /* ordering_specification_opt */ { } break; case 508: /* 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[] = { 348, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ 348, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 349, /* (2) account_options ::= */ 349, /* (3) account_options ::= account_options PPS literal */ 349, /* (4) account_options ::= account_options TSERIES literal */ 349, /* (5) account_options ::= account_options STORAGE literal */ 349, /* (6) account_options ::= account_options STREAMS literal */ 349, /* (7) account_options ::= account_options QTIME literal */ 349, /* (8) account_options ::= account_options DBS literal */ 349, /* (9) account_options ::= account_options USERS literal */ 349, /* (10) account_options ::= account_options CONNS literal */ 349, /* (11) account_options ::= account_options STATE literal */ 350, /* (12) alter_account_options ::= alter_account_option */ 350, /* (13) alter_account_options ::= alter_account_options alter_account_option */ 352, /* (14) alter_account_option ::= PASS literal */ 352, /* (15) alter_account_option ::= PPS literal */ 352, /* (16) alter_account_option ::= TSERIES literal */ 352, /* (17) alter_account_option ::= STORAGE literal */ 352, /* (18) alter_account_option ::= STREAMS literal */ 352, /* (19) alter_account_option ::= QTIME literal */ 352, /* (20) alter_account_option ::= DBS literal */ 352, /* (21) alter_account_option ::= USERS literal */ 352, /* (22) alter_account_option ::= CONNS literal */ 352, /* (23) alter_account_option ::= STATE literal */ 353, /* (24) ip_range_list ::= NK_STRING */ 353, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ 354, /* (26) white_list ::= HOST ip_range_list */ 355, /* (27) white_list_opt ::= */ 355, /* (28) white_list_opt ::= white_list */ 348, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ 348, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */ 348, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ 348, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ 348, /* (33) cmd ::= ALTER USER user_name ADD white_list */ 348, /* (34) cmd ::= ALTER USER user_name DROP white_list */ 348, /* (35) cmd ::= DROP USER user_name */ 357, /* (36) sysinfo_opt ::= */ 357, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */ 348, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ 348, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ 358, /* (40) privileges ::= ALL */ 358, /* (41) privileges ::= priv_type_list */ 358, /* (42) privileges ::= SUBSCRIBE */ 361, /* (43) priv_type_list ::= priv_type */ 361, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */ 362, /* (45) priv_type ::= READ */ 362, /* (46) priv_type ::= WRITE */ 362, /* (47) priv_type ::= ALTER */ 359, /* (48) priv_level ::= NK_STAR NK_DOT NK_STAR */ 359, /* (49) priv_level ::= db_name NK_DOT NK_STAR */ 359, /* (50) priv_level ::= db_name NK_DOT table_name */ 359, /* (51) priv_level ::= topic_name */ 360, /* (52) with_opt ::= */ 360, /* (53) with_opt ::= WITH search_condition */ 348, /* (54) cmd ::= CREATE DNODE dnode_endpoint */ 348, /* (55) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ 348, /* (56) cmd ::= DROP DNODE NK_INTEGER force_opt */ 348, /* (57) cmd ::= DROP DNODE dnode_endpoint force_opt */ 348, /* (58) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ 348, /* (59) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ 348, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ 348, /* (61) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ 348, /* (62) cmd ::= ALTER ALL DNODES NK_STRING */ 348, /* (63) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ 348, /* (64) cmd ::= RESTORE DNODE NK_INTEGER */ 367, /* (65) dnode_endpoint ::= NK_STRING */ 367, /* (66) dnode_endpoint ::= NK_ID */ 367, /* (67) dnode_endpoint ::= NK_IPTOKEN */ 368, /* (68) force_opt ::= */ 368, /* (69) force_opt ::= FORCE */ 369, /* (70) unsafe_opt ::= UNSAFE */ 348, /* (71) cmd ::= ALTER LOCAL NK_STRING */ 348, /* (72) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ 348, /* (73) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ 348, /* (74) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ 348, /* (75) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ 348, /* (76) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ 348, /* (77) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ 348, /* (78) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ 348, /* (79) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ 348, /* (80) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ 348, /* (81) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ 348, /* (82) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ 348, /* (83) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ 348, /* (84) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ 348, /* (85) cmd ::= DROP DATABASE exists_opt db_name */ 348, /* (86) cmd ::= USE db_name */ 348, /* (87) cmd ::= ALTER DATABASE db_name alter_db_options */ 348, /* (88) cmd ::= FLUSH DATABASE db_name */ 348, /* (89) cmd ::= TRIM DATABASE db_name speed_opt */ 348, /* (90) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ 370, /* (91) not_exists_opt ::= IF NOT EXISTS */ 370, /* (92) not_exists_opt ::= */ 372, /* (93) exists_opt ::= IF EXISTS */ 372, /* (94) exists_opt ::= */ 371, /* (95) db_options ::= */ 371, /* (96) db_options ::= db_options BUFFER NK_INTEGER */ 371, /* (97) db_options ::= db_options CACHEMODEL NK_STRING */ 371, /* (98) db_options ::= db_options CACHESIZE NK_INTEGER */ 371, /* (99) db_options ::= db_options COMP NK_INTEGER */ 371, /* (100) db_options ::= db_options DURATION NK_INTEGER */ 371, /* (101) db_options ::= db_options DURATION NK_VARIABLE */ 371, /* (102) db_options ::= db_options MAXROWS NK_INTEGER */ 371, /* (103) db_options ::= db_options MINROWS NK_INTEGER */ 371, /* (104) db_options ::= db_options KEEP integer_list */ 371, /* (105) db_options ::= db_options KEEP variable_list */ 371, /* (106) db_options ::= db_options PAGES NK_INTEGER */ 371, /* (107) db_options ::= db_options PAGESIZE NK_INTEGER */ 371, /* (108) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ 371, /* (109) db_options ::= db_options PRECISION NK_STRING */ 371, /* (110) db_options ::= db_options REPLICA NK_INTEGER */ 371, /* (111) db_options ::= db_options VGROUPS NK_INTEGER */ 371, /* (112) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ 371, /* (113) db_options ::= db_options RETENTIONS retention_list */ 371, /* (114) db_options ::= db_options SCHEMALESS NK_INTEGER */ 371, /* (115) db_options ::= db_options WAL_LEVEL NK_INTEGER */ 371, /* (116) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ 371, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ 371, /* (118) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 371, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ 371, /* (120) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 371, /* (121) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ 371, /* (122) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ 371, /* (123) db_options ::= db_options STT_TRIGGER NK_INTEGER */ 371, /* (124) db_options ::= db_options TABLE_PREFIX signed */ 371, /* (125) db_options ::= db_options TABLE_SUFFIX signed */ 371, /* (126) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ 373, /* (127) alter_db_options ::= alter_db_option */ 373, /* (128) alter_db_options ::= alter_db_options alter_db_option */ 381, /* (129) alter_db_option ::= BUFFER NK_INTEGER */ 381, /* (130) alter_db_option ::= CACHEMODEL NK_STRING */ 381, /* (131) alter_db_option ::= CACHESIZE NK_INTEGER */ 381, /* (132) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ 381, /* (133) alter_db_option ::= KEEP integer_list */ 381, /* (134) alter_db_option ::= KEEP variable_list */ 381, /* (135) alter_db_option ::= PAGES NK_INTEGER */ 381, /* (136) alter_db_option ::= REPLICA NK_INTEGER */ 381, /* (137) alter_db_option ::= WAL_LEVEL NK_INTEGER */ 381, /* (138) alter_db_option ::= STT_TRIGGER NK_INTEGER */ 381, /* (139) alter_db_option ::= MINROWS NK_INTEGER */ 381, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ 381, /* (141) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 381, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ 381, /* (143) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 381, /* (144) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ 377, /* (145) integer_list ::= NK_INTEGER */ 377, /* (146) integer_list ::= integer_list NK_COMMA NK_INTEGER */ 378, /* (147) variable_list ::= NK_VARIABLE */ 378, /* (148) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ 379, /* (149) retention_list ::= retention */ 379, /* (150) retention_list ::= retention_list NK_COMMA retention */ 382, /* (151) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 382, /* (152) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ 374, /* (153) speed_opt ::= */ 374, /* (154) speed_opt ::= BWLIMIT NK_INTEGER */ 375, /* (155) start_opt ::= */ 375, /* (156) start_opt ::= START WITH NK_INTEGER */ 375, /* (157) start_opt ::= START WITH NK_STRING */ 375, /* (158) start_opt ::= START WITH TIMESTAMP NK_STRING */ 376, /* (159) end_opt ::= */ 376, /* (160) end_opt ::= END WITH NK_INTEGER */ 376, /* (161) end_opt ::= END WITH NK_STRING */ 376, /* (162) end_opt ::= END WITH TIMESTAMP NK_STRING */ 348, /* (163) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ 348, /* (164) cmd ::= CREATE TABLE multi_create_clause */ 348, /* (165) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ 348, /* (166) cmd ::= DROP TABLE multi_drop_clause */ 348, /* (167) cmd ::= DROP STABLE exists_opt full_table_name */ 348, /* (168) cmd ::= ALTER TABLE alter_table_clause */ 348, /* (169) cmd ::= ALTER STABLE alter_table_clause */ 390, /* (170) alter_table_clause ::= full_table_name alter_table_options */ 390, /* (171) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ 390, /* (172) alter_table_clause ::= full_table_name DROP COLUMN column_name */ 390, /* (173) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ 390, /* (174) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ 390, /* (175) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ 390, /* (176) alter_table_clause ::= full_table_name DROP TAG column_name */ 390, /* (177) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ 390, /* (178) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ 390, /* (179) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ 387, /* (180) multi_create_clause ::= create_subtable_clause */ 387, /* (181) multi_create_clause ::= multi_create_clause create_subtable_clause */ 395, /* (182) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ 389, /* (183) multi_drop_clause ::= drop_table_clause */ 389, /* (184) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ 398, /* (185) drop_table_clause ::= exists_opt full_table_name */ 396, /* (186) specific_cols_opt ::= */ 396, /* (187) specific_cols_opt ::= NK_LP col_name_list NK_RP */ 383, /* (188) full_table_name ::= table_name */ 383, /* (189) full_table_name ::= db_name NK_DOT table_name */ 384, /* (190) column_def_list ::= column_def */ 384, /* (191) column_def_list ::= column_def_list NK_COMMA column_def */ 400, /* (192) column_def ::= column_name type_name */ 393, /* (193) type_name ::= BOOL */ 393, /* (194) type_name ::= TINYINT */ 393, /* (195) type_name ::= SMALLINT */ 393, /* (196) type_name ::= INT */ 393, /* (197) type_name ::= INTEGER */ 393, /* (198) type_name ::= BIGINT */ 393, /* (199) type_name ::= FLOAT */ 393, /* (200) type_name ::= DOUBLE */ 393, /* (201) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ 393, /* (202) type_name ::= TIMESTAMP */ 393, /* (203) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ 393, /* (204) type_name ::= TINYINT UNSIGNED */ 393, /* (205) type_name ::= SMALLINT UNSIGNED */ 393, /* (206) type_name ::= INT UNSIGNED */ 393, /* (207) type_name ::= BIGINT UNSIGNED */ 393, /* (208) type_name ::= JSON */ 393, /* (209) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ 393, /* (210) type_name ::= MEDIUMBLOB */ 393, /* (211) type_name ::= BLOB */ 393, /* (212) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ 393, /* (213) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ 393, /* (214) type_name ::= DECIMAL */ 393, /* (215) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 393, /* (216) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 385, /* (217) tags_def_opt ::= */ 385, /* (218) tags_def_opt ::= tags_def */ 388, /* (219) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 386, /* (220) table_options ::= */ 386, /* (221) table_options ::= table_options COMMENT NK_STRING */ 386, /* (222) table_options ::= table_options MAX_DELAY duration_list */ 386, /* (223) table_options ::= table_options WATERMARK duration_list */ 386, /* (224) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ 386, /* (225) table_options ::= table_options TTL NK_INTEGER */ 386, /* (226) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ 386, /* (227) table_options ::= table_options DELETE_MARK duration_list */ 391, /* (228) alter_table_options ::= alter_table_option */ 391, /* (229) alter_table_options ::= alter_table_options alter_table_option */ 403, /* (230) alter_table_option ::= COMMENT NK_STRING */ 403, /* (231) alter_table_option ::= TTL NK_INTEGER */ 401, /* (232) duration_list ::= duration_literal */ 401, /* (233) duration_list ::= duration_list NK_COMMA duration_literal */ 402, /* (234) rollup_func_list ::= rollup_func_name */ 402, /* (235) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ 405, /* (236) rollup_func_name ::= function_name */ 405, /* (237) rollup_func_name ::= FIRST */ 405, /* (238) rollup_func_name ::= LAST */ 399, /* (239) col_name_list ::= col_name */ 399, /* (240) col_name_list ::= col_name_list NK_COMMA col_name */ 407, /* (241) col_name ::= column_name */ 348, /* (242) cmd ::= SHOW DNODES */ 348, /* (243) cmd ::= SHOW USERS */ 348, /* (244) cmd ::= SHOW USER PRIVILEGES */ 348, /* (245) cmd ::= SHOW db_kind_opt DATABASES */ 348, /* (246) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ 348, /* (247) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ 348, /* (248) cmd ::= SHOW db_name_cond_opt VGROUPS */ 348, /* (249) cmd ::= SHOW MNODES */ 348, /* (250) cmd ::= SHOW QNODES */ 348, /* (251) cmd ::= SHOW FUNCTIONS */ 348, /* (252) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ 348, /* (253) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ 348, /* (254) cmd ::= SHOW STREAMS */ 348, /* (255) cmd ::= SHOW ACCOUNTS */ 348, /* (256) cmd ::= SHOW APPS */ 348, /* (257) cmd ::= SHOW CONNECTIONS */ 348, /* (258) cmd ::= SHOW LICENCES */ 348, /* (259) cmd ::= SHOW GRANTS */ 348, /* (260) cmd ::= SHOW CREATE DATABASE db_name */ 348, /* (261) cmd ::= SHOW CREATE TABLE full_table_name */ 348, /* (262) cmd ::= SHOW CREATE STABLE full_table_name */ 348, /* (263) cmd ::= SHOW QUERIES */ 348, /* (264) cmd ::= SHOW SCORES */ 348, /* (265) cmd ::= SHOW TOPICS */ 348, /* (266) cmd ::= SHOW VARIABLES */ 348, /* (267) cmd ::= SHOW CLUSTER VARIABLES */ 348, /* (268) cmd ::= SHOW LOCAL VARIABLES */ 348, /* (269) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ 348, /* (270) cmd ::= SHOW BNODES */ 348, /* (271) cmd ::= SHOW SNODES */ 348, /* (272) cmd ::= SHOW CLUSTER */ 348, /* (273) cmd ::= SHOW TRANSACTIONS */ 348, /* (274) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ 348, /* (275) cmd ::= SHOW CONSUMERS */ 348, /* (276) cmd ::= SHOW SUBSCRIPTIONS */ 348, /* (277) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ 348, /* (278) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ 348, /* (279) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ 348, /* (280) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ 348, /* (281) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ 348, /* (282) cmd ::= SHOW VNODES */ 348, /* (283) cmd ::= SHOW db_name_cond_opt ALIVE */ 348, /* (284) cmd ::= SHOW CLUSTER ALIVE */ 348, /* (285) cmd ::= SHOW db_name_cond_opt VIEWS */ 348, /* (286) cmd ::= SHOW CREATE VIEW full_table_name */ 348, /* (287) cmd ::= SHOW COMPACTS */ 348, /* (288) cmd ::= SHOW COMPACT NK_INTEGER */ 409, /* (289) table_kind_db_name_cond_opt ::= */ 409, /* (290) table_kind_db_name_cond_opt ::= table_kind */ 409, /* (291) table_kind_db_name_cond_opt ::= db_name NK_DOT */ 409, /* (292) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ 415, /* (293) table_kind ::= NORMAL */ 415, /* (294) table_kind ::= CHILD */ 411, /* (295) db_name_cond_opt ::= */ 411, /* (296) db_name_cond_opt ::= db_name NK_DOT */ 410, /* (297) like_pattern_opt ::= */ 410, /* (298) like_pattern_opt ::= LIKE NK_STRING */ 412, /* (299) table_name_cond ::= table_name */ 413, /* (300) from_db_opt ::= */ 413, /* (301) from_db_opt ::= FROM db_name */ 414, /* (302) tag_list_opt ::= */ 414, /* (303) tag_list_opt ::= tag_item */ 414, /* (304) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ 416, /* (305) tag_item ::= TBNAME */ 416, /* (306) tag_item ::= QTAGS */ 416, /* (307) tag_item ::= column_name */ 416, /* (308) tag_item ::= column_name column_alias */ 416, /* (309) tag_item ::= column_name AS column_alias */ 408, /* (310) db_kind_opt ::= */ 408, /* (311) db_kind_opt ::= USER */ 408, /* (312) db_kind_opt ::= SYSTEM */ 348, /* (313) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ 348, /* (314) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ 348, /* (315) cmd ::= DROP INDEX exists_opt full_index_name */ 419, /* (316) full_index_name ::= index_name */ 419, /* (317) full_index_name ::= db_name NK_DOT index_name */ 418, /* (318) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ 418, /* (319) 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 */ 421, /* (320) func_list ::= func */ 421, /* (321) func_list ::= func_list NK_COMMA func */ 424, /* (322) func ::= sma_func_name NK_LP expression_list NK_RP */ 425, /* (323) sma_func_name ::= function_name */ 425, /* (324) sma_func_name ::= COUNT */ 425, /* (325) sma_func_name ::= FIRST */ 425, /* (326) sma_func_name ::= LAST */ 425, /* (327) sma_func_name ::= LAST_ROW */ 423, /* (328) sma_stream_opt ::= */ 423, /* (329) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ 423, /* (330) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ 423, /* (331) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ 426, /* (332) with_meta ::= AS */ 426, /* (333) with_meta ::= WITH META AS */ 426, /* (334) with_meta ::= ONLY META AS */ 348, /* (335) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ 348, /* (336) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ 348, /* (337) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ 348, /* (338) cmd ::= DROP TOPIC exists_opt topic_name */ 348, /* (339) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ 348, /* (340) cmd ::= DESC full_table_name */ 348, /* (341) cmd ::= DESCRIBE full_table_name */ 348, /* (342) cmd ::= RESET QUERY CACHE */ 348, /* (343) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ 348, /* (344) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 430, /* (345) analyze_opt ::= */ 430, /* (346) analyze_opt ::= ANALYZE */ 431, /* (347) explain_options ::= */ 431, /* (348) explain_options ::= explain_options VERBOSE NK_BOOL */ 431, /* (349) explain_options ::= explain_options RATIO NK_FLOAT */ 348, /* (350) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ 348, /* (351) cmd ::= DROP FUNCTION exists_opt function_name */ 434, /* (352) agg_func_opt ::= */ 434, /* (353) agg_func_opt ::= AGGREGATE */ 435, /* (354) bufsize_opt ::= */ 435, /* (355) bufsize_opt ::= BUFSIZE NK_INTEGER */ 436, /* (356) language_opt ::= */ 436, /* (357) language_opt ::= LANGUAGE NK_STRING */ 433, /* (358) or_replace_opt ::= */ 433, /* (359) or_replace_opt ::= OR REPLACE */ 348, /* (360) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ 348, /* (361) cmd ::= DROP VIEW exists_opt full_view_name */ 437, /* (362) full_view_name ::= view_name */ 437, /* (363) full_view_name ::= db_name NK_DOT view_name */ 348, /* (364) 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 */ 348, /* (365) cmd ::= DROP STREAM exists_opt stream_name */ 348, /* (366) cmd ::= PAUSE STREAM exists_opt stream_name */ 348, /* (367) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 441, /* (368) col_list_opt ::= */ 441, /* (369) col_list_opt ::= NK_LP col_name_list NK_RP */ 442, /* (370) tag_def_or_ref_opt ::= */ 442, /* (371) tag_def_or_ref_opt ::= tags_def */ 442, /* (372) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 440, /* (373) stream_options ::= */ 440, /* (374) stream_options ::= stream_options TRIGGER AT_ONCE */ 440, /* (375) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ 440, /* (376) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ 440, /* (377) stream_options ::= stream_options WATERMARK duration_literal */ 440, /* (378) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ 440, /* (379) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ 440, /* (380) stream_options ::= stream_options DELETE_MARK duration_literal */ 440, /* (381) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 443, /* (382) subtable_opt ::= */ 443, /* (383) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 444, /* (384) ignore_opt ::= */ 444, /* (385) ignore_opt ::= IGNORE UNTREATED */ 348, /* (386) cmd ::= KILL CONNECTION NK_INTEGER */ 348, /* (387) cmd ::= KILL QUERY NK_STRING */ 348, /* (388) cmd ::= KILL TRANSACTION NK_INTEGER */ 348, /* (389) cmd ::= KILL COMPACT NK_INTEGER */ 348, /* (390) cmd ::= BALANCE VGROUP */ 348, /* (391) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ 348, /* (392) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ 348, /* (393) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ 348, /* (394) cmd ::= SPLIT VGROUP NK_INTEGER */ 446, /* (395) on_vgroup_id ::= */ 446, /* (396) on_vgroup_id ::= ON NK_INTEGER */ 447, /* (397) dnode_list ::= DNODE NK_INTEGER */ 447, /* (398) dnode_list ::= dnode_list DNODE NK_INTEGER */ 348, /* (399) cmd ::= DELETE FROM full_table_name where_clause_opt */ 348, /* (400) cmd ::= query_or_subquery */ 348, /* (401) cmd ::= insert_query */ 432, /* (402) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ 432, /* (403) insert_query ::= INSERT INTO full_table_name query_or_subquery */ 351, /* (404) literal ::= NK_INTEGER */ 351, /* (405) literal ::= NK_FLOAT */ 351, /* (406) literal ::= NK_STRING */ 351, /* (407) literal ::= NK_BOOL */ 351, /* (408) literal ::= TIMESTAMP NK_STRING */ 351, /* (409) literal ::= duration_literal */ 351, /* (410) literal ::= NULL */ 351, /* (411) literal ::= NK_QUESTION */ 404, /* (412) duration_literal ::= NK_VARIABLE */ 380, /* (413) signed ::= NK_INTEGER */ 380, /* (414) signed ::= NK_PLUS NK_INTEGER */ 380, /* (415) signed ::= NK_MINUS NK_INTEGER */ 380, /* (416) signed ::= NK_FLOAT */ 380, /* (417) signed ::= NK_PLUS NK_FLOAT */ 380, /* (418) signed ::= NK_MINUS NK_FLOAT */ 394, /* (419) signed_literal ::= signed */ 394, /* (420) signed_literal ::= NK_STRING */ 394, /* (421) signed_literal ::= NK_BOOL */ 394, /* (422) signed_literal ::= TIMESTAMP NK_STRING */ 394, /* (423) signed_literal ::= duration_literal */ 394, /* (424) signed_literal ::= NULL */ 394, /* (425) signed_literal ::= literal_func */ 394, /* (426) signed_literal ::= NK_QUESTION */ 449, /* (427) literal_list ::= signed_literal */ 449, /* (428) literal_list ::= literal_list NK_COMMA signed_literal */ 363, /* (429) db_name ::= NK_ID */ 364, /* (430) table_name ::= NK_ID */ 392, /* (431) column_name ::= NK_ID */ 406, /* (432) function_name ::= NK_ID */ 438, /* (433) view_name ::= NK_ID */ 450, /* (434) table_alias ::= NK_ID */ 417, /* (435) column_alias ::= NK_ID */ 417, /* (436) column_alias ::= NK_ALIAS */ 356, /* (437) user_name ::= NK_ID */ 365, /* (438) topic_name ::= NK_ID */ 439, /* (439) stream_name ::= NK_ID */ 429, /* (440) cgroup_name ::= NK_ID */ 420, /* (441) index_name ::= NK_ID */ 451, /* (442) expr_or_subquery ::= expression */ 445, /* (443) expression ::= literal */ 445, /* (444) expression ::= pseudo_column */ 445, /* (445) expression ::= column_reference */ 445, /* (446) expression ::= function_expression */ 445, /* (447) expression ::= case_when_expression */ 445, /* (448) expression ::= NK_LP expression NK_RP */ 445, /* (449) expression ::= NK_PLUS expr_or_subquery */ 445, /* (450) expression ::= NK_MINUS expr_or_subquery */ 445, /* (451) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ 445, /* (452) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ 445, /* (453) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ 445, /* (454) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ 445, /* (455) expression ::= expr_or_subquery NK_REM expr_or_subquery */ 445, /* (456) expression ::= column_reference NK_ARROW NK_STRING */ 445, /* (457) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ 445, /* (458) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ 397, /* (459) expression_list ::= expr_or_subquery */ 397, /* (460) expression_list ::= expression_list NK_COMMA expr_or_subquery */ 453, /* (461) column_reference ::= column_name */ 453, /* (462) column_reference ::= table_name NK_DOT column_name */ 453, /* (463) column_reference ::= NK_ALIAS */ 453, /* (464) column_reference ::= table_name NK_DOT NK_ALIAS */ 452, /* (465) pseudo_column ::= ROWTS */ 452, /* (466) pseudo_column ::= TBNAME */ 452, /* (467) pseudo_column ::= table_name NK_DOT TBNAME */ 452, /* (468) pseudo_column ::= QSTART */ 452, /* (469) pseudo_column ::= QEND */ 452, /* (470) pseudo_column ::= QDURATION */ 452, /* (471) pseudo_column ::= WSTART */ 452, /* (472) pseudo_column ::= WEND */ 452, /* (473) pseudo_column ::= WDURATION */ 452, /* (474) pseudo_column ::= IROWTS */ 452, /* (475) pseudo_column ::= ISFILLED */ 452, /* (476) pseudo_column ::= QTAGS */ 454, /* (477) function_expression ::= function_name NK_LP expression_list NK_RP */ 454, /* (478) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ 454, /* (479) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ 454, /* (480) function_expression ::= literal_func */ 448, /* (481) literal_func ::= noarg_func NK_LP NK_RP */ 448, /* (482) literal_func ::= NOW */ 458, /* (483) noarg_func ::= NOW */ 458, /* (484) noarg_func ::= TODAY */ 458, /* (485) noarg_func ::= TIMEZONE */ 458, /* (486) noarg_func ::= DATABASE */ 458, /* (487) noarg_func ::= CLIENT_VERSION */ 458, /* (488) noarg_func ::= SERVER_VERSION */ 458, /* (489) noarg_func ::= SERVER_STATUS */ 458, /* (490) noarg_func ::= CURRENT_USER */ 458, /* (491) noarg_func ::= USER */ 456, /* (492) star_func ::= COUNT */ 456, /* (493) star_func ::= FIRST */ 456, /* (494) star_func ::= LAST */ 456, /* (495) star_func ::= LAST_ROW */ 457, /* (496) star_func_para_list ::= NK_STAR */ 457, /* (497) star_func_para_list ::= other_para_list */ 459, /* (498) other_para_list ::= star_func_para */ 459, /* (499) other_para_list ::= other_para_list NK_COMMA star_func_para */ 460, /* (500) star_func_para ::= expr_or_subquery */ 460, /* (501) star_func_para ::= table_name NK_DOT NK_STAR */ 455, /* (502) case_when_expression ::= CASE when_then_list case_when_else_opt END */ 455, /* (503) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ 461, /* (504) when_then_list ::= when_then_expr */ 461, /* (505) when_then_list ::= when_then_list when_then_expr */ 464, /* (506) when_then_expr ::= WHEN common_expression THEN common_expression */ 462, /* (507) case_when_else_opt ::= */ 462, /* (508) case_when_else_opt ::= ELSE common_expression */ 465, /* (509) predicate ::= expr_or_subquery compare_op expr_or_subquery */ 465, /* (510) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ 465, /* (511) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ 465, /* (512) predicate ::= expr_or_subquery IS NULL */ 465, /* (513) predicate ::= expr_or_subquery IS NOT NULL */ 465, /* (514) predicate ::= expr_or_subquery in_op in_predicate_value */ 466, /* (515) compare_op ::= NK_LT */ 466, /* (516) compare_op ::= NK_GT */ 466, /* (517) compare_op ::= NK_LE */ 466, /* (518) compare_op ::= NK_GE */ 466, /* (519) compare_op ::= NK_NE */ 466, /* (520) compare_op ::= NK_EQ */ 466, /* (521) compare_op ::= LIKE */ 466, /* (522) compare_op ::= NOT LIKE */ 466, /* (523) compare_op ::= MATCH */ 466, /* (524) compare_op ::= NMATCH */ 466, /* (525) compare_op ::= CONTAINS */ 467, /* (526) in_op ::= IN */ 467, /* (527) in_op ::= NOT IN */ 468, /* (528) in_predicate_value ::= NK_LP literal_list NK_RP */ 469, /* (529) boolean_value_expression ::= boolean_primary */ 469, /* (530) boolean_value_expression ::= NOT boolean_primary */ 469, /* (531) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ 469, /* (532) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ 470, /* (533) boolean_primary ::= predicate */ 470, /* (534) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ 463, /* (535) common_expression ::= expr_or_subquery */ 463, /* (536) common_expression ::= boolean_value_expression */ 471, /* (537) from_clause_opt ::= */ 471, /* (538) from_clause_opt ::= FROM table_reference_list */ 472, /* (539) table_reference_list ::= table_reference */ 472, /* (540) table_reference_list ::= table_reference_list NK_COMMA table_reference */ 473, /* (541) table_reference ::= table_primary */ 473, /* (542) table_reference ::= joined_table */ 474, /* (543) table_primary ::= table_name alias_opt */ 474, /* (544) table_primary ::= db_name NK_DOT table_name alias_opt */ 474, /* (545) table_primary ::= subquery alias_opt */ 474, /* (546) table_primary ::= parenthesized_joined_table */ 476, /* (547) alias_opt ::= */ 476, /* (548) alias_opt ::= table_alias */ 476, /* (549) alias_opt ::= AS table_alias */ 478, /* (550) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ 478, /* (551) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ 475, /* (552) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 479, /* (553) join_type ::= */ 479, /* (554) join_type ::= INNER */ 480, /* (555) 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 */ 481, /* (556) hint_list ::= */ 481, /* (557) hint_list ::= NK_HINT */ 483, /* (558) tag_mode_opt ::= */ 483, /* (559) tag_mode_opt ::= TAGS */ 482, /* (560) set_quantifier_opt ::= */ 482, /* (561) set_quantifier_opt ::= DISTINCT */ 482, /* (562) set_quantifier_opt ::= ALL */ 484, /* (563) select_list ::= select_item */ 484, /* (564) select_list ::= select_list NK_COMMA select_item */ 492, /* (565) select_item ::= NK_STAR */ 492, /* (566) select_item ::= common_expression */ 492, /* (567) select_item ::= common_expression column_alias */ 492, /* (568) select_item ::= common_expression AS column_alias */ 492, /* (569) select_item ::= table_name NK_DOT NK_STAR */ 428, /* (570) where_clause_opt ::= */ 428, /* (571) where_clause_opt ::= WHERE search_condition */ 485, /* (572) partition_by_clause_opt ::= */ 485, /* (573) partition_by_clause_opt ::= PARTITION BY partition_list */ 493, /* (574) partition_list ::= partition_item */ 493, /* (575) partition_list ::= partition_list NK_COMMA partition_item */ 494, /* (576) partition_item ::= expr_or_subquery */ 494, /* (577) partition_item ::= expr_or_subquery column_alias */ 494, /* (578) partition_item ::= expr_or_subquery AS column_alias */ 489, /* (579) twindow_clause_opt ::= */ 489, /* (580) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ 489, /* (581) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ 489, /* (582) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ 489, /* (583) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ 489, /* (584) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 489, /* (585) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ 422, /* (586) sliding_opt ::= */ 422, /* (587) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ 495, /* (588) interval_sliding_duration_literal ::= NK_VARIABLE */ 495, /* (589) interval_sliding_duration_literal ::= NK_STRING */ 495, /* (590) interval_sliding_duration_literal ::= NK_INTEGER */ 488, /* (591) fill_opt ::= */ 488, /* (592) fill_opt ::= FILL NK_LP fill_mode NK_RP */ 488, /* (593) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ 488, /* (594) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ 496, /* (595) fill_mode ::= NONE */ 496, /* (596) fill_mode ::= PREV */ 496, /* (597) fill_mode ::= NULL */ 496, /* (598) fill_mode ::= NULL_F */ 496, /* (599) fill_mode ::= LINEAR */ 496, /* (600) fill_mode ::= NEXT */ 490, /* (601) group_by_clause_opt ::= */ 490, /* (602) group_by_clause_opt ::= GROUP BY group_by_list */ 497, /* (603) group_by_list ::= expr_or_subquery */ 497, /* (604) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 491, /* (605) having_clause_opt ::= */ 491, /* (606) having_clause_opt ::= HAVING search_condition */ 486, /* (607) range_opt ::= */ 486, /* (608) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ 486, /* (609) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 487, /* (610) every_opt ::= */ 487, /* (611) every_opt ::= EVERY NK_LP duration_literal NK_RP */ 498, /* (612) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ 499, /* (613) query_simple ::= query_specification */ 499, /* (614) query_simple ::= union_query_expression */ 503, /* (615) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ 503, /* (616) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ 504, /* (617) query_simple_or_subquery ::= query_simple */ 504, /* (618) query_simple_or_subquery ::= subquery */ 427, /* (619) query_or_subquery ::= query_expression */ 427, /* (620) query_or_subquery ::= subquery */ 500, /* (621) order_by_clause_opt ::= */ 500, /* (622) order_by_clause_opt ::= ORDER BY sort_specification_list */ 501, /* (623) slimit_clause_opt ::= */ 501, /* (624) slimit_clause_opt ::= SLIMIT NK_INTEGER */ 501, /* (625) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ 501, /* (626) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 502, /* (627) limit_clause_opt ::= */ 502, /* (628) limit_clause_opt ::= LIMIT NK_INTEGER */ 502, /* (629) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ 502, /* (630) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 477, /* (631) subquery ::= NK_LP query_expression NK_RP */ 477, /* (632) subquery ::= NK_LP subquery NK_RP */ 366, /* (633) search_condition ::= common_expression */ 505, /* (634) sort_specification_list ::= sort_specification */ 505, /* (635) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ 506, /* (636) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 507, /* (637) ordering_specification_opt ::= */ 507, /* (638) ordering_specification_opt ::= ASC */ 507, /* (639) ordering_specification_opt ::= DESC */ 508, /* (640) null_ordering_opt ::= */ 508, /* (641) null_ordering_opt ::= NULLS FIRST */ 508, /* (642) 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 LOCAL NK_STRING */ -4, /* (72) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ -5, /* (73) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ -5, /* (74) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ -5, /* (75) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ -5, /* (76) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ -5, /* (77) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ -5, /* (78) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ -5, /* (79) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ -5, /* (80) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ -5, /* (81) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ -5, /* (82) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ -5, /* (83) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ -5, /* (84) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -4, /* (85) cmd ::= DROP DATABASE exists_opt db_name */ -2, /* (86) cmd ::= USE db_name */ -4, /* (87) cmd ::= ALTER DATABASE db_name alter_db_options */ -3, /* (88) cmd ::= FLUSH DATABASE db_name */ -4, /* (89) cmd ::= TRIM DATABASE db_name speed_opt */ -5, /* (90) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -3, /* (91) not_exists_opt ::= IF NOT EXISTS */ 0, /* (92) not_exists_opt ::= */ -2, /* (93) exists_opt ::= IF EXISTS */ 0, /* (94) exists_opt ::= */ 0, /* (95) db_options ::= */ -3, /* (96) db_options ::= db_options BUFFER NK_INTEGER */ -3, /* (97) db_options ::= db_options CACHEMODEL NK_STRING */ -3, /* (98) db_options ::= db_options CACHESIZE NK_INTEGER */ -3, /* (99) db_options ::= db_options COMP NK_INTEGER */ -3, /* (100) db_options ::= db_options DURATION NK_INTEGER */ -3, /* (101) db_options ::= db_options DURATION NK_VARIABLE */ -3, /* (102) db_options ::= db_options MAXROWS NK_INTEGER */ -3, /* (103) db_options ::= db_options MINROWS NK_INTEGER */ -3, /* (104) db_options ::= db_options KEEP integer_list */ -3, /* (105) db_options ::= db_options KEEP variable_list */ -3, /* (106) db_options ::= db_options PAGES NK_INTEGER */ -3, /* (107) db_options ::= db_options PAGESIZE NK_INTEGER */ -3, /* (108) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -3, /* (109) db_options ::= db_options PRECISION NK_STRING */ -3, /* (110) db_options ::= db_options REPLICA NK_INTEGER */ -3, /* (111) db_options ::= db_options VGROUPS NK_INTEGER */ -3, /* (112) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -3, /* (113) db_options ::= db_options RETENTIONS retention_list */ -3, /* (114) db_options ::= db_options SCHEMALESS NK_INTEGER */ -3, /* (115) db_options ::= db_options WAL_LEVEL NK_INTEGER */ -3, /* (116) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -3, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -4, /* (118) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -3, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -4, /* (120) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -3, /* (121) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -3, /* (122) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -3, /* (123) db_options ::= db_options STT_TRIGGER NK_INTEGER */ -3, /* (124) db_options ::= db_options TABLE_PREFIX signed */ -3, /* (125) db_options ::= db_options TABLE_SUFFIX signed */ -3, /* (126) db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ -1, /* (127) alter_db_options ::= alter_db_option */ -2, /* (128) alter_db_options ::= alter_db_options alter_db_option */ -2, /* (129) alter_db_option ::= BUFFER NK_INTEGER */ -2, /* (130) alter_db_option ::= CACHEMODEL NK_STRING */ -2, /* (131) alter_db_option ::= CACHESIZE NK_INTEGER */ -2, /* (132) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -2, /* (133) alter_db_option ::= KEEP integer_list */ -2, /* (134) alter_db_option ::= KEEP variable_list */ -2, /* (135) alter_db_option ::= PAGES NK_INTEGER */ -2, /* (136) alter_db_option ::= REPLICA NK_INTEGER */ -2, /* (137) alter_db_option ::= WAL_LEVEL NK_INTEGER */ -2, /* (138) alter_db_option ::= STT_TRIGGER NK_INTEGER */ -2, /* (139) alter_db_option ::= MINROWS NK_INTEGER */ -2, /* (140) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -3, /* (141) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -2, /* (142) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -3, /* (143) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -2, /* (144) alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ -1, /* (145) integer_list ::= NK_INTEGER */ -3, /* (146) integer_list ::= integer_list NK_COMMA NK_INTEGER */ -1, /* (147) variable_list ::= NK_VARIABLE */ -3, /* (148) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -1, /* (149) retention_list ::= retention */ -3, /* (150) retention_list ::= retention_list NK_COMMA retention */ -3, /* (151) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -3, /* (152) retention ::= NK_MINUS NK_COLON NK_VARIABLE */ 0, /* (153) speed_opt ::= */ -2, /* (154) speed_opt ::= BWLIMIT NK_INTEGER */ 0, /* (155) start_opt ::= */ -3, /* (156) start_opt ::= START WITH NK_INTEGER */ -3, /* (157) start_opt ::= START WITH NK_STRING */ -4, /* (158) start_opt ::= START WITH TIMESTAMP NK_STRING */ 0, /* (159) end_opt ::= */ -3, /* (160) end_opt ::= END WITH NK_INTEGER */ -3, /* (161) end_opt ::= END WITH NK_STRING */ -4, /* (162) end_opt ::= END WITH TIMESTAMP NK_STRING */ -9, /* (163) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ -3, /* (164) cmd ::= CREATE TABLE multi_create_clause */ -9, /* (165) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ -3, /* (166) cmd ::= DROP TABLE multi_drop_clause */ -4, /* (167) cmd ::= DROP STABLE exists_opt full_table_name */ -3, /* (168) cmd ::= ALTER TABLE alter_table_clause */ -3, /* (169) cmd ::= ALTER STABLE alter_table_clause */ -2, /* (170) alter_table_clause ::= full_table_name alter_table_options */ -5, /* (171) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -4, /* (172) alter_table_clause ::= full_table_name DROP COLUMN column_name */ -5, /* (173) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -5, /* (174) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -5, /* (175) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -4, /* (176) alter_table_clause ::= full_table_name DROP TAG column_name */ -5, /* (177) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -5, /* (178) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -6, /* (179) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -1, /* (180) multi_create_clause ::= create_subtable_clause */ -2, /* (181) multi_create_clause ::= multi_create_clause create_subtable_clause */ -10, /* (182) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ -1, /* (183) multi_drop_clause ::= drop_table_clause */ -3, /* (184) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ -2, /* (185) drop_table_clause ::= exists_opt full_table_name */ 0, /* (186) specific_cols_opt ::= */ -3, /* (187) specific_cols_opt ::= NK_LP col_name_list NK_RP */ -1, /* (188) full_table_name ::= table_name */ -3, /* (189) full_table_name ::= db_name NK_DOT table_name */ -1, /* (190) column_def_list ::= column_def */ -3, /* (191) column_def_list ::= column_def_list NK_COMMA column_def */ -2, /* (192) column_def ::= column_name type_name */ -1, /* (193) type_name ::= BOOL */ -1, /* (194) type_name ::= TINYINT */ -1, /* (195) type_name ::= SMALLINT */ -1, /* (196) type_name ::= INT */ -1, /* (197) type_name ::= INTEGER */ -1, /* (198) type_name ::= BIGINT */ -1, /* (199) type_name ::= FLOAT */ -1, /* (200) type_name ::= DOUBLE */ -4, /* (201) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -1, /* (202) type_name ::= TIMESTAMP */ -4, /* (203) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -2, /* (204) type_name ::= TINYINT UNSIGNED */ -2, /* (205) type_name ::= SMALLINT UNSIGNED */ -2, /* (206) type_name ::= INT UNSIGNED */ -2, /* (207) type_name ::= BIGINT UNSIGNED */ -1, /* (208) type_name ::= JSON */ -4, /* (209) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -1, /* (210) type_name ::= MEDIUMBLOB */ -1, /* (211) type_name ::= BLOB */ -4, /* (212) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -4, /* (213) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -1, /* (214) type_name ::= DECIMAL */ -4, /* (215) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (216) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 0, /* (217) tags_def_opt ::= */ -1, /* (218) tags_def_opt ::= tags_def */ -4, /* (219) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 0, /* (220) table_options ::= */ -3, /* (221) table_options ::= table_options COMMENT NK_STRING */ -3, /* (222) table_options ::= table_options MAX_DELAY duration_list */ -3, /* (223) table_options ::= table_options WATERMARK duration_list */ -5, /* (224) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -3, /* (225) table_options ::= table_options TTL NK_INTEGER */ -5, /* (226) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -3, /* (227) table_options ::= table_options DELETE_MARK duration_list */ -1, /* (228) alter_table_options ::= alter_table_option */ -2, /* (229) alter_table_options ::= alter_table_options alter_table_option */ -2, /* (230) alter_table_option ::= COMMENT NK_STRING */ -2, /* (231) alter_table_option ::= TTL NK_INTEGER */ -1, /* (232) duration_list ::= duration_literal */ -3, /* (233) duration_list ::= duration_list NK_COMMA duration_literal */ -1, /* (234) rollup_func_list ::= rollup_func_name */ -3, /* (235) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ -1, /* (236) rollup_func_name ::= function_name */ -1, /* (237) rollup_func_name ::= FIRST */ -1, /* (238) rollup_func_name ::= LAST */ -1, /* (239) col_name_list ::= col_name */ -3, /* (240) col_name_list ::= col_name_list NK_COMMA col_name */ -1, /* (241) col_name ::= column_name */ -2, /* (242) cmd ::= SHOW DNODES */ -2, /* (243) cmd ::= SHOW USERS */ -3, /* (244) cmd ::= SHOW USER PRIVILEGES */ -3, /* (245) cmd ::= SHOW db_kind_opt DATABASES */ -4, /* (246) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ -4, /* (247) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -3, /* (248) cmd ::= SHOW db_name_cond_opt VGROUPS */ -2, /* (249) cmd ::= SHOW MNODES */ -2, /* (250) cmd ::= SHOW QNODES */ -2, /* (251) cmd ::= SHOW FUNCTIONS */ -5, /* (252) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -6, /* (253) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -2, /* (254) cmd ::= SHOW STREAMS */ -2, /* (255) cmd ::= SHOW ACCOUNTS */ -2, /* (256) cmd ::= SHOW APPS */ -2, /* (257) cmd ::= SHOW CONNECTIONS */ -2, /* (258) cmd ::= SHOW LICENCES */ -2, /* (259) cmd ::= SHOW GRANTS */ -4, /* (260) cmd ::= SHOW CREATE DATABASE db_name */ -4, /* (261) cmd ::= SHOW CREATE TABLE full_table_name */ -4, /* (262) cmd ::= SHOW CREATE STABLE full_table_name */ -2, /* (263) cmd ::= SHOW QUERIES */ -2, /* (264) cmd ::= SHOW SCORES */ -2, /* (265) cmd ::= SHOW TOPICS */ -2, /* (266) cmd ::= SHOW VARIABLES */ -3, /* (267) cmd ::= SHOW CLUSTER VARIABLES */ -3, /* (268) cmd ::= SHOW LOCAL VARIABLES */ -5, /* (269) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -2, /* (270) cmd ::= SHOW BNODES */ -2, /* (271) cmd ::= SHOW SNODES */ -2, /* (272) cmd ::= SHOW CLUSTER */ -2, /* (273) cmd ::= SHOW TRANSACTIONS */ -4, /* (274) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -2, /* (275) cmd ::= SHOW CONSUMERS */ -2, /* (276) cmd ::= SHOW SUBSCRIPTIONS */ -5, /* (277) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -6, /* (278) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -7, /* (279) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -8, /* (280) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -5, /* (281) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ -2, /* (282) cmd ::= SHOW VNODES */ -3, /* (283) cmd ::= SHOW db_name_cond_opt ALIVE */ -3, /* (284) cmd ::= SHOW CLUSTER ALIVE */ -3, /* (285) cmd ::= SHOW db_name_cond_opt VIEWS */ -4, /* (286) cmd ::= SHOW CREATE VIEW full_table_name */ -2, /* (287) cmd ::= SHOW COMPACTS */ -3, /* (288) cmd ::= SHOW COMPACT NK_INTEGER */ 0, /* (289) table_kind_db_name_cond_opt ::= */ -1, /* (290) table_kind_db_name_cond_opt ::= table_kind */ -2, /* (291) table_kind_db_name_cond_opt ::= db_name NK_DOT */ -3, /* (292) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ -1, /* (293) table_kind ::= NORMAL */ -1, /* (294) table_kind ::= CHILD */ 0, /* (295) db_name_cond_opt ::= */ -2, /* (296) db_name_cond_opt ::= db_name NK_DOT */ 0, /* (297) like_pattern_opt ::= */ -2, /* (298) like_pattern_opt ::= LIKE NK_STRING */ -1, /* (299) table_name_cond ::= table_name */ 0, /* (300) from_db_opt ::= */ -2, /* (301) from_db_opt ::= FROM db_name */ 0, /* (302) tag_list_opt ::= */ -1, /* (303) tag_list_opt ::= tag_item */ -3, /* (304) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ -1, /* (305) tag_item ::= TBNAME */ -1, /* (306) tag_item ::= QTAGS */ -1, /* (307) tag_item ::= column_name */ -2, /* (308) tag_item ::= column_name column_alias */ -3, /* (309) tag_item ::= column_name AS column_alias */ 0, /* (310) db_kind_opt ::= */ -1, /* (311) db_kind_opt ::= USER */ -1, /* (312) db_kind_opt ::= SYSTEM */ -8, /* (313) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ -9, /* (314) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ -4, /* (315) cmd ::= DROP INDEX exists_opt full_index_name */ -1, /* (316) full_index_name ::= index_name */ -3, /* (317) full_index_name ::= db_name NK_DOT index_name */ -10, /* (318) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -12, /* (319) 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, /* (320) func_list ::= func */ -3, /* (321) func_list ::= func_list NK_COMMA func */ -4, /* (322) func ::= sma_func_name NK_LP expression_list NK_RP */ -1, /* (323) sma_func_name ::= function_name */ -1, /* (324) sma_func_name ::= COUNT */ -1, /* (325) sma_func_name ::= FIRST */ -1, /* (326) sma_func_name ::= LAST */ -1, /* (327) sma_func_name ::= LAST_ROW */ 0, /* (328) sma_stream_opt ::= */ -3, /* (329) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -3, /* (330) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -3, /* (331) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -1, /* (332) with_meta ::= AS */ -3, /* (333) with_meta ::= WITH META AS */ -3, /* (334) with_meta ::= ONLY META AS */ -6, /* (335) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -7, /* (336) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -8, /* (337) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -4, /* (338) cmd ::= DROP TOPIC exists_opt topic_name */ -7, /* (339) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -2, /* (340) cmd ::= DESC full_table_name */ -2, /* (341) cmd ::= DESCRIBE full_table_name */ -3, /* (342) cmd ::= RESET QUERY CACHE */ -4, /* (343) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ -4, /* (344) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 0, /* (345) analyze_opt ::= */ -1, /* (346) analyze_opt ::= ANALYZE */ 0, /* (347) explain_options ::= */ -3, /* (348) explain_options ::= explain_options VERBOSE NK_BOOL */ -3, /* (349) explain_options ::= explain_options RATIO NK_FLOAT */ -12, /* (350) 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, /* (351) cmd ::= DROP FUNCTION exists_opt function_name */ 0, /* (352) agg_func_opt ::= */ -1, /* (353) agg_func_opt ::= AGGREGATE */ 0, /* (354) bufsize_opt ::= */ -2, /* (355) bufsize_opt ::= BUFSIZE NK_INTEGER */ 0, /* (356) language_opt ::= */ -2, /* (357) language_opt ::= LANGUAGE NK_STRING */ 0, /* (358) or_replace_opt ::= */ -2, /* (359) or_replace_opt ::= OR REPLACE */ -6, /* (360) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ -4, /* (361) cmd ::= DROP VIEW exists_opt full_view_name */ -1, /* (362) full_view_name ::= view_name */ -3, /* (363) full_view_name ::= db_name NK_DOT view_name */ -12, /* (364) 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, /* (365) cmd ::= DROP STREAM exists_opt stream_name */ -4, /* (366) cmd ::= PAUSE STREAM exists_opt stream_name */ -5, /* (367) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 0, /* (368) col_list_opt ::= */ -3, /* (369) col_list_opt ::= NK_LP col_name_list NK_RP */ 0, /* (370) tag_def_or_ref_opt ::= */ -1, /* (371) tag_def_or_ref_opt ::= tags_def */ -4, /* (372) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 0, /* (373) stream_options ::= */ -3, /* (374) stream_options ::= stream_options TRIGGER AT_ONCE */ -3, /* (375) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -4, /* (376) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -3, /* (377) stream_options ::= stream_options WATERMARK duration_literal */ -4, /* (378) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -3, /* (379) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -3, /* (380) stream_options ::= stream_options DELETE_MARK duration_literal */ -4, /* (381) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 0, /* (382) subtable_opt ::= */ -4, /* (383) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 0, /* (384) ignore_opt ::= */ -2, /* (385) ignore_opt ::= IGNORE UNTREATED */ -3, /* (386) cmd ::= KILL CONNECTION NK_INTEGER */ -3, /* (387) cmd ::= KILL QUERY NK_STRING */ -3, /* (388) cmd ::= KILL TRANSACTION NK_INTEGER */ -3, /* (389) cmd ::= KILL COMPACT NK_INTEGER */ -2, /* (390) cmd ::= BALANCE VGROUP */ -4, /* (391) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ -4, /* (392) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -4, /* (393) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -3, /* (394) cmd ::= SPLIT VGROUP NK_INTEGER */ 0, /* (395) on_vgroup_id ::= */ -2, /* (396) on_vgroup_id ::= ON NK_INTEGER */ -2, /* (397) dnode_list ::= DNODE NK_INTEGER */ -3, /* (398) dnode_list ::= dnode_list DNODE NK_INTEGER */ -4, /* (399) cmd ::= DELETE FROM full_table_name where_clause_opt */ -1, /* (400) cmd ::= query_or_subquery */ -1, /* (401) cmd ::= insert_query */ -7, /* (402) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -4, /* (403) insert_query ::= INSERT INTO full_table_name query_or_subquery */ -1, /* (404) literal ::= NK_INTEGER */ -1, /* (405) literal ::= NK_FLOAT */ -1, /* (406) literal ::= NK_STRING */ -1, /* (407) literal ::= NK_BOOL */ -2, /* (408) literal ::= TIMESTAMP NK_STRING */ -1, /* (409) literal ::= duration_literal */ -1, /* (410) literal ::= NULL */ -1, /* (411) literal ::= NK_QUESTION */ -1, /* (412) duration_literal ::= NK_VARIABLE */ -1, /* (413) signed ::= NK_INTEGER */ -2, /* (414) signed ::= NK_PLUS NK_INTEGER */ -2, /* (415) signed ::= NK_MINUS NK_INTEGER */ -1, /* (416) signed ::= NK_FLOAT */ -2, /* (417) signed ::= NK_PLUS NK_FLOAT */ -2, /* (418) signed ::= NK_MINUS NK_FLOAT */ -1, /* (419) signed_literal ::= signed */ -1, /* (420) signed_literal ::= NK_STRING */ -1, /* (421) signed_literal ::= NK_BOOL */ -2, /* (422) signed_literal ::= TIMESTAMP NK_STRING */ -1, /* (423) signed_literal ::= duration_literal */ -1, /* (424) signed_literal ::= NULL */ -1, /* (425) signed_literal ::= literal_func */ -1, /* (426) signed_literal ::= NK_QUESTION */ -1, /* (427) literal_list ::= signed_literal */ -3, /* (428) literal_list ::= literal_list NK_COMMA signed_literal */ -1, /* (429) db_name ::= NK_ID */ -1, /* (430) table_name ::= NK_ID */ -1, /* (431) column_name ::= NK_ID */ -1, /* (432) function_name ::= NK_ID */ -1, /* (433) view_name ::= NK_ID */ -1, /* (434) table_alias ::= NK_ID */ -1, /* (435) column_alias ::= NK_ID */ -1, /* (436) column_alias ::= NK_ALIAS */ -1, /* (437) user_name ::= NK_ID */ -1, /* (438) topic_name ::= NK_ID */ -1, /* (439) stream_name ::= NK_ID */ -1, /* (440) cgroup_name ::= NK_ID */ -1, /* (441) index_name ::= NK_ID */ -1, /* (442) expr_or_subquery ::= expression */ -1, /* (443) expression ::= literal */ -1, /* (444) expression ::= pseudo_column */ -1, /* (445) expression ::= column_reference */ -1, /* (446) expression ::= function_expression */ -1, /* (447) expression ::= case_when_expression */ -3, /* (448) expression ::= NK_LP expression NK_RP */ -2, /* (449) expression ::= NK_PLUS expr_or_subquery */ -2, /* (450) expression ::= NK_MINUS expr_or_subquery */ -3, /* (451) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ -3, /* (452) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -3, /* (453) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -3, /* (454) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -3, /* (455) expression ::= expr_or_subquery NK_REM expr_or_subquery */ -3, /* (456) expression ::= column_reference NK_ARROW NK_STRING */ -3, /* (457) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ -3, /* (458) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -1, /* (459) expression_list ::= expr_or_subquery */ -3, /* (460) expression_list ::= expression_list NK_COMMA expr_or_subquery */ -1, /* (461) column_reference ::= column_name */ -3, /* (462) column_reference ::= table_name NK_DOT column_name */ -1, /* (463) column_reference ::= NK_ALIAS */ -3, /* (464) column_reference ::= table_name NK_DOT NK_ALIAS */ -1, /* (465) pseudo_column ::= ROWTS */ -1, /* (466) pseudo_column ::= TBNAME */ -3, /* (467) pseudo_column ::= table_name NK_DOT TBNAME */ -1, /* (468) pseudo_column ::= QSTART */ -1, /* (469) pseudo_column ::= QEND */ -1, /* (470) pseudo_column ::= QDURATION */ -1, /* (471) pseudo_column ::= WSTART */ -1, /* (472) pseudo_column ::= WEND */ -1, /* (473) pseudo_column ::= WDURATION */ -1, /* (474) pseudo_column ::= IROWTS */ -1, /* (475) pseudo_column ::= ISFILLED */ -1, /* (476) pseudo_column ::= QTAGS */ -4, /* (477) function_expression ::= function_name NK_LP expression_list NK_RP */ -4, /* (478) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ -6, /* (479) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -1, /* (480) function_expression ::= literal_func */ -3, /* (481) literal_func ::= noarg_func NK_LP NK_RP */ -1, /* (482) literal_func ::= NOW */ -1, /* (483) noarg_func ::= NOW */ -1, /* (484) noarg_func ::= TODAY */ -1, /* (485) noarg_func ::= TIMEZONE */ -1, /* (486) noarg_func ::= DATABASE */ -1, /* (487) noarg_func ::= CLIENT_VERSION */ -1, /* (488) noarg_func ::= SERVER_VERSION */ -1, /* (489) noarg_func ::= SERVER_STATUS */ -1, /* (490) noarg_func ::= CURRENT_USER */ -1, /* (491) noarg_func ::= USER */ -1, /* (492) star_func ::= COUNT */ -1, /* (493) star_func ::= FIRST */ -1, /* (494) star_func ::= LAST */ -1, /* (495) star_func ::= LAST_ROW */ -1, /* (496) star_func_para_list ::= NK_STAR */ -1, /* (497) star_func_para_list ::= other_para_list */ -1, /* (498) other_para_list ::= star_func_para */ -3, /* (499) other_para_list ::= other_para_list NK_COMMA star_func_para */ -1, /* (500) star_func_para ::= expr_or_subquery */ -3, /* (501) star_func_para ::= table_name NK_DOT NK_STAR */ -4, /* (502) case_when_expression ::= CASE when_then_list case_when_else_opt END */ -5, /* (503) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -1, /* (504) when_then_list ::= when_then_expr */ -2, /* (505) when_then_list ::= when_then_list when_then_expr */ -4, /* (506) when_then_expr ::= WHEN common_expression THEN common_expression */ 0, /* (507) case_when_else_opt ::= */ -2, /* (508) case_when_else_opt ::= ELSE common_expression */ -3, /* (509) predicate ::= expr_or_subquery compare_op expr_or_subquery */ -5, /* (510) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -6, /* (511) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -3, /* (512) predicate ::= expr_or_subquery IS NULL */ -4, /* (513) predicate ::= expr_or_subquery IS NOT NULL */ -3, /* (514) predicate ::= expr_or_subquery in_op in_predicate_value */ -1, /* (515) compare_op ::= NK_LT */ -1, /* (516) compare_op ::= NK_GT */ -1, /* (517) compare_op ::= NK_LE */ -1, /* (518) compare_op ::= NK_GE */ -1, /* (519) compare_op ::= NK_NE */ -1, /* (520) compare_op ::= NK_EQ */ -1, /* (521) compare_op ::= LIKE */ -2, /* (522) compare_op ::= NOT LIKE */ -1, /* (523) compare_op ::= MATCH */ -1, /* (524) compare_op ::= NMATCH */ -1, /* (525) compare_op ::= CONTAINS */ -1, /* (526) in_op ::= IN */ -2, /* (527) in_op ::= NOT IN */ -3, /* (528) in_predicate_value ::= NK_LP literal_list NK_RP */ -1, /* (529) boolean_value_expression ::= boolean_primary */ -2, /* (530) boolean_value_expression ::= NOT boolean_primary */ -3, /* (531) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -3, /* (532) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -1, /* (533) boolean_primary ::= predicate */ -3, /* (534) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ -1, /* (535) common_expression ::= expr_or_subquery */ -1, /* (536) common_expression ::= boolean_value_expression */ 0, /* (537) from_clause_opt ::= */ -2, /* (538) from_clause_opt ::= FROM table_reference_list */ -1, /* (539) table_reference_list ::= table_reference */ -3, /* (540) table_reference_list ::= table_reference_list NK_COMMA table_reference */ -1, /* (541) table_reference ::= table_primary */ -1, /* (542) table_reference ::= joined_table */ -2, /* (543) table_primary ::= table_name alias_opt */ -4, /* (544) table_primary ::= db_name NK_DOT table_name alias_opt */ -2, /* (545) table_primary ::= subquery alias_opt */ -1, /* (546) table_primary ::= parenthesized_joined_table */ 0, /* (547) alias_opt ::= */ -1, /* (548) alias_opt ::= table_alias */ -2, /* (549) alias_opt ::= AS table_alias */ -3, /* (550) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ -3, /* (551) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ -6, /* (552) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 0, /* (553) join_type ::= */ -1, /* (554) join_type ::= INNER */ -14, /* (555) 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, /* (556) hint_list ::= */ -1, /* (557) hint_list ::= NK_HINT */ 0, /* (558) tag_mode_opt ::= */ -1, /* (559) tag_mode_opt ::= TAGS */ 0, /* (560) set_quantifier_opt ::= */ -1, /* (561) set_quantifier_opt ::= DISTINCT */ -1, /* (562) set_quantifier_opt ::= ALL */ -1, /* (563) select_list ::= select_item */ -3, /* (564) select_list ::= select_list NK_COMMA select_item */ -1, /* (565) select_item ::= NK_STAR */ -1, /* (566) select_item ::= common_expression */ -2, /* (567) select_item ::= common_expression column_alias */ -3, /* (568) select_item ::= common_expression AS column_alias */ -3, /* (569) select_item ::= table_name NK_DOT NK_STAR */ 0, /* (570) where_clause_opt ::= */ -2, /* (571) where_clause_opt ::= WHERE search_condition */ 0, /* (572) partition_by_clause_opt ::= */ -3, /* (573) partition_by_clause_opt ::= PARTITION BY partition_list */ -1, /* (574) partition_list ::= partition_item */ -3, /* (575) partition_list ::= partition_list NK_COMMA partition_item */ -1, /* (576) partition_item ::= expr_or_subquery */ -2, /* (577) partition_item ::= expr_or_subquery column_alias */ -3, /* (578) partition_item ::= expr_or_subquery AS column_alias */ 0, /* (579) twindow_clause_opt ::= */ -6, /* (580) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ -4, /* (581) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -6, /* (582) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -8, /* (583) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -7, /* (584) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ -4, /* (585) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ 0, /* (586) sliding_opt ::= */ -4, /* (587) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ -1, /* (588) interval_sliding_duration_literal ::= NK_VARIABLE */ -1, /* (589) interval_sliding_duration_literal ::= NK_STRING */ -1, /* (590) interval_sliding_duration_literal ::= NK_INTEGER */ 0, /* (591) fill_opt ::= */ -4, /* (592) fill_opt ::= FILL NK_LP fill_mode NK_RP */ -6, /* (593) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -6, /* (594) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -1, /* (595) fill_mode ::= NONE */ -1, /* (596) fill_mode ::= PREV */ -1, /* (597) fill_mode ::= NULL */ -1, /* (598) fill_mode ::= NULL_F */ -1, /* (599) fill_mode ::= LINEAR */ -1, /* (600) fill_mode ::= NEXT */ 0, /* (601) group_by_clause_opt ::= */ -3, /* (602) group_by_clause_opt ::= GROUP BY group_by_list */ -1, /* (603) group_by_list ::= expr_or_subquery */ -3, /* (604) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 0, /* (605) having_clause_opt ::= */ -2, /* (606) having_clause_opt ::= HAVING search_condition */ 0, /* (607) range_opt ::= */ -6, /* (608) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -4, /* (609) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 0, /* (610) every_opt ::= */ -4, /* (611) every_opt ::= EVERY NK_LP duration_literal NK_RP */ -4, /* (612) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -1, /* (613) query_simple ::= query_specification */ -1, /* (614) query_simple ::= union_query_expression */ -4, /* (615) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -3, /* (616) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -1, /* (617) query_simple_or_subquery ::= query_simple */ -1, /* (618) query_simple_or_subquery ::= subquery */ -1, /* (619) query_or_subquery ::= query_expression */ -1, /* (620) query_or_subquery ::= subquery */ 0, /* (621) order_by_clause_opt ::= */ -3, /* (622) order_by_clause_opt ::= ORDER BY sort_specification_list */ 0, /* (623) slimit_clause_opt ::= */ -2, /* (624) slimit_clause_opt ::= SLIMIT NK_INTEGER */ -4, /* (625) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ -4, /* (626) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 0, /* (627) limit_clause_opt ::= */ -2, /* (628) limit_clause_opt ::= LIMIT NK_INTEGER */ -4, /* (629) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ -4, /* (630) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ -3, /* (631) subquery ::= NK_LP query_expression NK_RP */ -3, /* (632) subquery ::= NK_LP subquery NK_RP */ -1, /* (633) search_condition ::= common_expression */ -1, /* (634) sort_specification_list ::= sort_specification */ -3, /* (635) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ -3, /* (636) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 0, /* (637) ordering_specification_opt ::= */ -1, /* (638) ordering_specification_opt ::= ASC */ -1, /* (639) ordering_specification_opt ::= DESC */ 0, /* (640) null_ordering_opt ::= */ -2, /* (641) null_ordering_opt ::= NULLS FIRST */ -2, /* (642) 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,349,&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,350,&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,349,&yymsp[-2].minor); { } yy_destructor(yypParser,351,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,352,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,350,&yymsp[-1].minor); { } yy_destructor(yypParser,352,&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,351,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ { yylhsminor.yy200 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy200 = yylhsminor.yy200; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ { yylhsminor.yy200 = addNodeToList(pCxt, yymsp[-2].minor.yy200, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy200 = yylhsminor.yy200; break; case 26: /* white_list ::= HOST ip_range_list */ { yymsp[-1].minor.yy200 = yymsp[0].minor.yy200; } break; case 27: /* white_list_opt ::= */ case 186: /* specific_cols_opt ::= */ yytestcase(yyruleno==186); case 217: /* tags_def_opt ::= */ yytestcase(yyruleno==217); case 302: /* tag_list_opt ::= */ yytestcase(yyruleno==302); case 368: /* col_list_opt ::= */ yytestcase(yyruleno==368); case 370: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==370); case 572: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==572); case 601: /* group_by_clause_opt ::= */ yytestcase(yyruleno==601); case 621: /* order_by_clause_opt ::= */ yytestcase(yyruleno==621); { yymsp[1].minor.yy200 = NULL; } break; case 28: /* white_list_opt ::= white_list */ case 218: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==218); case 371: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==371); case 497: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==497); { yylhsminor.yy200 = yymsp[0].minor.yy200; } yymsp[0].minor.yy200 = yylhsminor.yy200; break; case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy39, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy211); pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy200); } break; case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy39, 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.yy39, 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.yy39, 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.yy39, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy200); } break; case 34: /* cmd ::= ALTER USER user_name DROP white_list */ { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy39, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy200); } break; case 35: /* cmd ::= DROP USER user_name */ { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy39); } break; case 36: /* sysinfo_opt ::= */ { yymsp[1].minor.yy211 = 1; } break; case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ { yymsp[-1].minor.yy211 = 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.yy731, &yymsp[-3].minor.yy1011, &yymsp[0].minor.yy39, yymsp[-2].minor.yy890); } break; case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy731, &yymsp[-3].minor.yy1011, &yymsp[0].minor.yy39, yymsp[-2].minor.yy890); } break; case 40: /* privileges ::= ALL */ { yymsp[0].minor.yy731 = PRIVILEGE_TYPE_ALL; } break; case 41: /* privileges ::= priv_type_list */ case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43); { yylhsminor.yy731 = yymsp[0].minor.yy731; } yymsp[0].minor.yy731 = yylhsminor.yy731; break; case 42: /* privileges ::= SUBSCRIBE */ { yymsp[0].minor.yy731 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ { yylhsminor.yy731 = yymsp[-2].minor.yy731 | yymsp[0].minor.yy731; } yymsp[-2].minor.yy731 = yylhsminor.yy731; break; case 45: /* priv_type ::= READ */ { yymsp[0].minor.yy731 = PRIVILEGE_TYPE_READ; } break; case 46: /* priv_type ::= WRITE */ { yymsp[0].minor.yy731 = PRIVILEGE_TYPE_WRITE; } break; case 47: /* priv_type ::= ALTER */ { yymsp[0].minor.yy731 = PRIVILEGE_TYPE_ALTER; } break; case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ { yylhsminor.yy1011.first = yymsp[-2].minor.yy0; yylhsminor.yy1011.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy1011 = yylhsminor.yy1011; break; case 49: /* priv_level ::= db_name NK_DOT NK_STAR */ { yylhsminor.yy1011.first = yymsp[-2].minor.yy39; yylhsminor.yy1011.second = yymsp[0].minor.yy0; } yymsp[-2].minor.yy1011 = yylhsminor.yy1011; break; case 50: /* priv_level ::= db_name NK_DOT table_name */ { yylhsminor.yy1011.first = yymsp[-2].minor.yy39; yylhsminor.yy1011.second = yymsp[0].minor.yy39; } yymsp[-2].minor.yy1011 = yylhsminor.yy1011; break; case 51: /* priv_level ::= topic_name */ { yylhsminor.yy1011.first = yymsp[0].minor.yy39; yylhsminor.yy1011.second = nil_token; } yymsp[0].minor.yy1011 = yylhsminor.yy1011; break; case 52: /* with_opt ::= */ case 155: /* start_opt ::= */ yytestcase(yyruleno==155); case 159: /* end_opt ::= */ yytestcase(yyruleno==159); case 297: /* like_pattern_opt ::= */ yytestcase(yyruleno==297); case 382: /* subtable_opt ::= */ yytestcase(yyruleno==382); case 507: /* case_when_else_opt ::= */ yytestcase(yyruleno==507); case 537: /* from_clause_opt ::= */ yytestcase(yyruleno==537); case 570: /* where_clause_opt ::= */ yytestcase(yyruleno==570); case 579: /* twindow_clause_opt ::= */ yytestcase(yyruleno==579); case 586: /* sliding_opt ::= */ yytestcase(yyruleno==586); case 591: /* fill_opt ::= */ yytestcase(yyruleno==591); case 605: /* having_clause_opt ::= */ yytestcase(yyruleno==605); case 607: /* range_opt ::= */ yytestcase(yyruleno==607); case 610: /* every_opt ::= */ yytestcase(yyruleno==610); case 623: /* slimit_clause_opt ::= */ yytestcase(yyruleno==623); case 627: /* limit_clause_opt ::= */ yytestcase(yyruleno==627); { yymsp[1].minor.yy890 = NULL; } break; case 53: /* with_opt ::= WITH search_condition */ case 538: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==538); case 571: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==571); case 606: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==606); { yymsp[-1].minor.yy890 = yymsp[0].minor.yy890; } break; case 54: /* cmd ::= CREATE DNODE dnode_endpoint */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy39, NULL); } break; case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy39, &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.yy145, false); } break; case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy39, yymsp[0].minor.yy145, false); } break; case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy145); } break; case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy39, false, yymsp[0].minor.yy145); } 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 324: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==324); case 325: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==325); case 326: /* sma_func_name ::= LAST */ yytestcase(yyruleno==326); case 327: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==327); case 429: /* db_name ::= NK_ID */ yytestcase(yyruleno==429); case 430: /* table_name ::= NK_ID */ yytestcase(yyruleno==430); case 431: /* column_name ::= NK_ID */ yytestcase(yyruleno==431); case 432: /* function_name ::= NK_ID */ yytestcase(yyruleno==432); case 433: /* view_name ::= NK_ID */ yytestcase(yyruleno==433); case 434: /* table_alias ::= NK_ID */ yytestcase(yyruleno==434); case 435: /* column_alias ::= NK_ID */ yytestcase(yyruleno==435); case 436: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==436); case 437: /* user_name ::= NK_ID */ yytestcase(yyruleno==437); case 438: /* topic_name ::= NK_ID */ yytestcase(yyruleno==438); case 439: /* stream_name ::= NK_ID */ yytestcase(yyruleno==439); case 440: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==440); case 441: /* index_name ::= NK_ID */ yytestcase(yyruleno==441); case 483: /* noarg_func ::= NOW */ yytestcase(yyruleno==483); case 484: /* noarg_func ::= TODAY */ yytestcase(yyruleno==484); case 485: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==485); case 486: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==486); case 487: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==487); case 488: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==488); case 489: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==489); case 490: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==490); case 491: /* noarg_func ::= USER */ yytestcase(yyruleno==491); case 492: /* star_func ::= COUNT */ yytestcase(yyruleno==492); case 493: /* star_func ::= FIRST */ yytestcase(yyruleno==493); case 494: /* star_func ::= LAST */ yytestcase(yyruleno==494); case 495: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==495); { yylhsminor.yy39 = yymsp[0].minor.yy0; } yymsp[0].minor.yy39 = yylhsminor.yy39; break; case 68: /* force_opt ::= */ case 92: /* not_exists_opt ::= */ yytestcase(yyruleno==92); case 94: /* exists_opt ::= */ yytestcase(yyruleno==94); case 345: /* analyze_opt ::= */ yytestcase(yyruleno==345); case 352: /* agg_func_opt ::= */ yytestcase(yyruleno==352); case 358: /* or_replace_opt ::= */ yytestcase(yyruleno==358); case 384: /* ignore_opt ::= */ yytestcase(yyruleno==384); case 558: /* tag_mode_opt ::= */ yytestcase(yyruleno==558); case 560: /* set_quantifier_opt ::= */ yytestcase(yyruleno==560); { yymsp[1].minor.yy145 = false; } break; case 69: /* force_opt ::= FORCE */ case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70); case 346: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==346); case 353: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==353); case 559: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==559); case 561: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==561); { yymsp[0].minor.yy145 = true; } break; case 71: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 72: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 73: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 74: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 75: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } break; case 76: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 77: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; case 78: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 79: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; case 80: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 81: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 82: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 83: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } break; case 84: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy145, &yymsp[-1].minor.yy39, yymsp[0].minor.yy890); } break; case 85: /* cmd ::= DROP DATABASE exists_opt db_name */ { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy145, &yymsp[0].minor.yy39); } break; case 86: /* cmd ::= USE db_name */ { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy39); } break; case 87: /* cmd ::= ALTER DATABASE db_name alter_db_options */ { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy39, yymsp[0].minor.yy890); } break; case 88: /* cmd ::= FLUSH DATABASE db_name */ { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy39); } break; case 89: /* cmd ::= TRIM DATABASE db_name speed_opt */ { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy39, yymsp[0].minor.yy474); } break; case 90: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy39, yymsp[-1].minor.yy890, yymsp[0].minor.yy890); } break; case 91: /* not_exists_opt ::= IF NOT EXISTS */ { yymsp[-2].minor.yy145 = true; } break; case 93: /* exists_opt ::= IF EXISTS */ case 359: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==359); case 385: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==385); { yymsp[-1].minor.yy145 = true; } break; case 95: /* db_options ::= */ { yymsp[1].minor.yy890 = createDefaultDatabaseOptions(pCxt); } break; case 96: /* db_options ::= db_options BUFFER NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 97: /* db_options ::= db_options CACHEMODEL NK_STRING */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 98: /* db_options ::= db_options CACHESIZE NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 99: /* db_options ::= db_options COMP NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_COMP, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 100: /* db_options ::= db_options DURATION NK_INTEGER */ case 101: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==101); { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 102: /* db_options ::= db_options MAXROWS NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 103: /* db_options ::= db_options MINROWS NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 104: /* db_options ::= db_options KEEP integer_list */ case 105: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==105); { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_KEEP, yymsp[0].minor.yy200); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 106: /* db_options ::= db_options PAGES NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 107: /* db_options ::= db_options PAGESIZE NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 108: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 109: /* db_options ::= db_options PRECISION NK_STRING */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 110: /* db_options ::= db_options REPLICA NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 111: /* db_options ::= db_options VGROUPS NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 112: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 113: /* db_options ::= db_options RETENTIONS retention_list */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_RETENTIONS, yymsp[0].minor.yy200); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 114: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 115: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_WAL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 116: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 117: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 118: /* 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.yy890 = setDatabaseOption(pCxt, yymsp[-3].minor.yy890, DB_OPTION_WAL_RETENTION_PERIOD, &t); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 119: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 120: /* 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.yy890 = setDatabaseOption(pCxt, yymsp[-3].minor.yy890, DB_OPTION_WAL_RETENTION_SIZE, &t); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 121: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 122: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 123: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 124: /* db_options ::= db_options TABLE_PREFIX signed */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy890); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 125: /* db_options ::= db_options TABLE_SUFFIX signed */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy890); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 126: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ { yylhsminor.yy890 = setDatabaseOption(pCxt, yymsp[-2].minor.yy890, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 127: /* alter_db_options ::= alter_db_option */ { yylhsminor.yy890 = createAlterDatabaseOptions(pCxt); yylhsminor.yy890 = setAlterDatabaseOption(pCxt, yylhsminor.yy890, &yymsp[0].minor.yy187); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 128: /* alter_db_options ::= alter_db_options alter_db_option */ { yylhsminor.yy890 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy890, &yymsp[0].minor.yy187); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 129: /* alter_db_option ::= BUFFER NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 130: /* alter_db_option ::= CACHEMODEL NK_STRING */ { yymsp[-1].minor.yy187.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 131: /* alter_db_option ::= CACHESIZE NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 132: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 133: /* alter_db_option ::= KEEP integer_list */ case 134: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==134); { yymsp[-1].minor.yy187.type = DB_OPTION_KEEP; yymsp[-1].minor.yy187.pList = yymsp[0].minor.yy200; } break; case 135: /* alter_db_option ::= PAGES NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_PAGES; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 136: /* alter_db_option ::= REPLICA NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 137: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_WAL; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 138: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 139: /* alter_db_option ::= MINROWS NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 140: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 141: /* 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.yy187.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy187.val = t; } break; case 142: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 143: /* 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.yy187.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy187.val = t; } break; case 144: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ { yymsp[-1].minor.yy187.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 145: /* integer_list ::= NK_INTEGER */ { yylhsminor.yy200 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy200 = yylhsminor.yy200; break; case 146: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 398: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==398); { yylhsminor.yy200 = addNodeToList(pCxt, yymsp[-2].minor.yy200, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy200 = yylhsminor.yy200; break; case 147: /* variable_list ::= NK_VARIABLE */ { yylhsminor.yy200 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy200 = yylhsminor.yy200; break; case 148: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { yylhsminor.yy200 = addNodeToList(pCxt, yymsp[-2].minor.yy200, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy200 = yylhsminor.yy200; break; case 149: /* retention_list ::= retention */ case 180: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==180); case 183: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==183); case 190: /* column_def_list ::= column_def */ yytestcase(yyruleno==190); case 234: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==234); case 239: /* col_name_list ::= col_name */ yytestcase(yyruleno==239); case 303: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==303); case 320: /* func_list ::= func */ yytestcase(yyruleno==320); case 427: /* literal_list ::= signed_literal */ yytestcase(yyruleno==427); case 498: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==498); case 504: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==504); case 563: /* select_list ::= select_item */ yytestcase(yyruleno==563); case 574: /* partition_list ::= partition_item */ yytestcase(yyruleno==574); case 634: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==634); { yylhsminor.yy200 = createNodeList(pCxt, yymsp[0].minor.yy890); } yymsp[0].minor.yy200 = yylhsminor.yy200; break; case 150: /* retention_list ::= retention_list NK_COMMA retention */ case 184: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==184); case 191: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==191); case 235: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==235); case 240: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==240); case 304: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==304); case 321: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==321); case 428: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==428); case 499: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==499); case 564: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==564); case 575: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==575); case 635: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==635); { yylhsminor.yy200 = addNodeToList(pCxt, yymsp[-2].minor.yy200, yymsp[0].minor.yy890); } yymsp[-2].minor.yy200 = yylhsminor.yy200; break; case 151: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ case 152: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==152); { yylhsminor.yy890 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 153: /* speed_opt ::= */ case 354: /* bufsize_opt ::= */ yytestcase(yyruleno==354); { yymsp[1].minor.yy474 = 0; } break; case 154: /* speed_opt ::= BWLIMIT NK_INTEGER */ case 355: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==355); { yymsp[-1].minor.yy474 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 156: /* start_opt ::= START WITH NK_INTEGER */ case 160: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==160); { yymsp[-2].minor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 157: /* start_opt ::= START WITH NK_STRING */ case 161: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==161); { yymsp[-2].minor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 158: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 162: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==162); { yymsp[-3].minor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 163: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 165: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==165); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy145, yymsp[-5].minor.yy890, yymsp[-3].minor.yy200, yymsp[-1].minor.yy200, yymsp[0].minor.yy890); } break; case 164: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy200); } break; case 166: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy200); } break; case 167: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy145, yymsp[0].minor.yy890); } break; case 168: /* cmd ::= ALTER TABLE alter_table_clause */ case 400: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==400); case 401: /* cmd ::= insert_query */ yytestcase(yyruleno==401); { pCxt->pRootNode = yymsp[0].minor.yy890; } break; case 169: /* cmd ::= ALTER STABLE alter_table_clause */ { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy890); } break; case 170: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy890 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy890, yymsp[0].minor.yy890); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 171: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy890 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy890, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy39, yymsp[0].minor.yy34); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 172: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy890 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy890, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy39); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 173: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy890 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy890, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy39, yymsp[0].minor.yy34); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 174: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy890 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy890, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy39, &yymsp[0].minor.yy39); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 175: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy890 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy890, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy39, yymsp[0].minor.yy34); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 176: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy890 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy890, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy39); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 177: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy890 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy890, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy39, yymsp[0].minor.yy34); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 178: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy890 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy890, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy39, &yymsp[0].minor.yy39); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 179: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { yylhsminor.yy890 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy890, &yymsp[-2].minor.yy39, yymsp[0].minor.yy890); } yymsp[-5].minor.yy890 = yylhsminor.yy890; break; case 181: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 505: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==505); { yylhsminor.yy200 = addNodeToList(pCxt, yymsp[-1].minor.yy200, yymsp[0].minor.yy890); } yymsp[-1].minor.yy200 = yylhsminor.yy200; break; case 182: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ { yylhsminor.yy890 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy145, yymsp[-8].minor.yy890, yymsp[-6].minor.yy890, yymsp[-5].minor.yy200, yymsp[-2].minor.yy200, yymsp[0].minor.yy890); } yymsp[-9].minor.yy890 = yylhsminor.yy890; break; case 185: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy890 = createDropTableClause(pCxt, yymsp[-1].minor.yy145, yymsp[0].minor.yy890); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 187: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 369: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==369); { yymsp[-2].minor.yy200 = yymsp[-1].minor.yy200; } break; case 188: /* full_table_name ::= table_name */ { yylhsminor.yy890 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy39, NULL); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 189: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy890 = createRealTableNode(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy39, NULL); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 192: /* column_def ::= column_name type_name */ { yylhsminor.yy890 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy39, yymsp[0].minor.yy34, NULL); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 193: /* type_name ::= BOOL */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 194: /* type_name ::= TINYINT */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 195: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 196: /* type_name ::= INT */ case 197: /* type_name ::= INTEGER */ yytestcase(yyruleno==197); { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_INT); } break; case 198: /* type_name ::= BIGINT */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 199: /* type_name ::= FLOAT */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 200: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 201: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy34 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 202: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 203: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy34 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 204: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy34 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 205: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy34 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 206: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy34 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 207: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy34 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 208: /* type_name ::= JSON */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 209: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy34 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 210: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 211: /* type_name ::= BLOB */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 212: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy34 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 213: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy34 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } break; case 214: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy34 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 215: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy34 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 216: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy34 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 219: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ case 372: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==372); { yymsp[-3].minor.yy200 = yymsp[-1].minor.yy200; } break; case 220: /* table_options ::= */ { yymsp[1].minor.yy890 = createDefaultTableOptions(pCxt); } break; case 221: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy890 = setTableOption(pCxt, yymsp[-2].minor.yy890, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 222: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy890 = setTableOption(pCxt, yymsp[-2].minor.yy890, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy200); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 223: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy890 = setTableOption(pCxt, yymsp[-2].minor.yy890, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy200); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 224: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy890 = setTableOption(pCxt, yymsp[-4].minor.yy890, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy200); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 225: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy890 = setTableOption(pCxt, yymsp[-2].minor.yy890, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 226: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy890 = setTableOption(pCxt, yymsp[-4].minor.yy890, TABLE_OPTION_SMA, yymsp[-1].minor.yy200); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 227: /* table_options ::= table_options DELETE_MARK duration_list */ { yylhsminor.yy890 = setTableOption(pCxt, yymsp[-2].minor.yy890, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy200); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 228: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy890 = createAlterTableOptions(pCxt); yylhsminor.yy890 = setTableOption(pCxt, yylhsminor.yy890, yymsp[0].minor.yy187.type, &yymsp[0].minor.yy187.val); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 229: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy890 = setTableOption(pCxt, yymsp[-1].minor.yy890, yymsp[0].minor.yy187.type, &yymsp[0].minor.yy187.val); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 230: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy187.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 231: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy187.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy187.val = yymsp[0].minor.yy0; } break; case 232: /* duration_list ::= duration_literal */ case 459: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==459); { yylhsminor.yy200 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy890)); } yymsp[0].minor.yy200 = yylhsminor.yy200; break; case 233: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 460: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==460); { yylhsminor.yy200 = addNodeToList(pCxt, yymsp[-2].minor.yy200, releaseRawExprNode(pCxt, yymsp[0].minor.yy890)); } yymsp[-2].minor.yy200 = yylhsminor.yy200; break; case 236: /* rollup_func_name ::= function_name */ { yylhsminor.yy890 = createFunctionNode(pCxt, &yymsp[0].minor.yy39, NULL); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 237: /* rollup_func_name ::= FIRST */ case 238: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==238); case 306: /* tag_item ::= QTAGS */ yytestcase(yyruleno==306); { yylhsminor.yy890 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 241: /* col_name ::= column_name */ case 307: /* tag_item ::= column_name */ yytestcase(yyruleno==307); { yylhsminor.yy890 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy39); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 242: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; case 243: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; case 244: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } break; case 245: /* cmd ::= SHOW db_kind_opt DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy979); } break; case 246: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy1013, yymsp[0].minor.yy890, OP_TYPE_LIKE); } break; case 247: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy890, yymsp[0].minor.yy890, OP_TYPE_LIKE); } break; case 248: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy890, NULL, OP_TYPE_LIKE); } break; case 249: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; case 250: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; case 251: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 252: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy890, yymsp[-1].minor.yy890, OP_TYPE_EQUAL); } break; case 253: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy39), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy39), OP_TYPE_EQUAL); } break; case 254: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; case 255: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; case 256: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; case 257: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; case 258: /* cmd ::= SHOW LICENCES */ case 259: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==259); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; case 260: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy39); } break; case 261: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy890); } break; case 262: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy890); } break; case 263: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; case 264: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; case 265: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; case 266: /* cmd ::= SHOW VARIABLES */ case 267: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==267); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; case 268: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; case 269: /* 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.yy890); } break; case 270: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; case 271: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; case 272: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; case 273: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 274: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy890); } break; case 275: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; case 276: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; case 277: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy890, yymsp[-1].minor.yy890, OP_TYPE_EQUAL); } break; case 278: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy39), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy39), OP_TYPE_EQUAL); } break; case 279: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy890, yymsp[0].minor.yy890, yymsp[-3].minor.yy200); } break; case 280: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy39), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy39), yymsp[-4].minor.yy200); } break; case 281: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; case 282: /* cmd ::= SHOW VNODES */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } break; case 283: /* cmd ::= SHOW db_name_cond_opt ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy890, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; case 284: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; case 285: /* cmd ::= SHOW db_name_cond_opt VIEWS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-1].minor.yy890, NULL, OP_TYPE_LIKE); } break; case 286: /* cmd ::= SHOW CREATE VIEW full_table_name */ { pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy890); } break; case 287: /* cmd ::= SHOW COMPACTS */ { pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); } break; case 288: /* cmd ::= SHOW COMPACT NK_INTEGER */ { pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 289: /* table_kind_db_name_cond_opt ::= */ { yymsp[1].minor.yy1013.kind = SHOW_KIND_ALL; yymsp[1].minor.yy1013.dbName = nil_token; } break; case 290: /* table_kind_db_name_cond_opt ::= table_kind */ { yylhsminor.yy1013.kind = yymsp[0].minor.yy979; yylhsminor.yy1013.dbName = nil_token; } yymsp[0].minor.yy1013 = yylhsminor.yy1013; break; case 291: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy1013.kind = SHOW_KIND_ALL; yylhsminor.yy1013.dbName = yymsp[-1].minor.yy39; } yymsp[-1].minor.yy1013 = yylhsminor.yy1013; break; case 292: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ { yylhsminor.yy1013.kind = yymsp[-2].minor.yy979; yylhsminor.yy1013.dbName = yymsp[-1].minor.yy39; } yymsp[-2].minor.yy1013 = yylhsminor.yy1013; break; case 293: /* table_kind ::= NORMAL */ { yymsp[0].minor.yy979 = SHOW_KIND_TABLES_NORMAL; } break; case 294: /* table_kind ::= CHILD */ { yymsp[0].minor.yy979 = SHOW_KIND_TABLES_CHILD; } break; case 295: /* db_name_cond_opt ::= */ case 300: /* from_db_opt ::= */ yytestcase(yyruleno==300); { yymsp[1].minor.yy890 = createDefaultDatabaseCondValue(pCxt); } break; case 296: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy890 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy39); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 298: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 299: /* table_name_cond ::= table_name */ { yylhsminor.yy890 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy39); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 301: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy890 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy39); } break; case 305: /* tag_item ::= TBNAME */ { yylhsminor.yy890 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 308: /* tag_item ::= column_name column_alias */ { yylhsminor.yy890 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy39), &yymsp[0].minor.yy39); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 309: /* tag_item ::= column_name AS column_alias */ { yylhsminor.yy890 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy39), &yymsp[0].minor.yy39); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 310: /* db_kind_opt ::= */ { yymsp[1].minor.yy979 = SHOW_KIND_ALL; } break; case 311: /* db_kind_opt ::= USER */ { yymsp[0].minor.yy979 = SHOW_KIND_DATABASES_USER; } break; case 312: /* db_kind_opt ::= SYSTEM */ { yymsp[0].minor.yy979 = SHOW_KIND_DATABASES_SYSTEM; } break; case 313: /* 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.yy145, yymsp[-3].minor.yy890, yymsp[-1].minor.yy890, NULL, yymsp[0].minor.yy890); } break; case 314: /* 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.yy145, yymsp[-5].minor.yy890, yymsp[-3].minor.yy890, yymsp[-1].minor.yy200, NULL); } break; case 315: /* cmd ::= DROP INDEX exists_opt full_index_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy145, yymsp[0].minor.yy890); } break; case 316: /* full_index_name ::= index_name */ { yylhsminor.yy890 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy39); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 317: /* full_index_name ::= db_name NK_DOT index_name */ { yylhsminor.yy890 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy39); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 318: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-9].minor.yy890 = createIndexOption(pCxt, yymsp[-7].minor.yy200, releaseRawExprNode(pCxt, yymsp[-3].minor.yy890), NULL, yymsp[-1].minor.yy890, yymsp[0].minor.yy890); } break; case 319: /* 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.yy890 = createIndexOption(pCxt, yymsp[-9].minor.yy200, releaseRawExprNode(pCxt, yymsp[-5].minor.yy890), releaseRawExprNode(pCxt, yymsp[-3].minor.yy890), yymsp[-1].minor.yy890, yymsp[0].minor.yy890); } break; case 322: /* func ::= sma_func_name NK_LP expression_list NK_RP */ { yylhsminor.yy890 = createFunctionNode(pCxt, &yymsp[-3].minor.yy39, yymsp[-1].minor.yy200); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 323: /* sma_func_name ::= function_name */ case 548: /* alias_opt ::= table_alias */ yytestcase(yyruleno==548); { yylhsminor.yy39 = yymsp[0].minor.yy39; } yymsp[0].minor.yy39 = yylhsminor.yy39; break; case 328: /* sma_stream_opt ::= */ case 373: /* stream_options ::= */ yytestcase(yyruleno==373); { yymsp[1].minor.yy890 = createStreamOptions(pCxt); } break; case 329: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy890)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = yymsp[-2].minor.yy890; } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 330: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy890)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = yymsp[-2].minor.yy890; } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 331: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy890)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = yymsp[-2].minor.yy890; } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 332: /* with_meta ::= AS */ { yymsp[0].minor.yy474 = 0; } break; case 333: /* with_meta ::= WITH META AS */ { yymsp[-2].minor.yy474 = 1; } break; case 334: /* with_meta ::= ONLY META AS */ { yymsp[-2].minor.yy474 = 2; } break; case 335: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy145, &yymsp[-2].minor.yy39, yymsp[0].minor.yy890); } break; case 336: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy145, &yymsp[-3].minor.yy39, &yymsp[0].minor.yy39, yymsp[-2].minor.yy474); } break; case 337: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy145, &yymsp[-4].minor.yy39, yymsp[-1].minor.yy890, yymsp[-3].minor.yy474, yymsp[0].minor.yy890); } break; case 338: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy145, &yymsp[0].minor.yy39); } break; case 339: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy145, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy39); } break; case 340: /* cmd ::= DESC full_table_name */ case 341: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==341); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy890); } break; case 342: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 343: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 344: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==344); { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy145, yymsp[-1].minor.yy890, yymsp[0].minor.yy890); } break; case 347: /* explain_options ::= */ { yymsp[1].minor.yy890 = createDefaultExplainOptions(pCxt); } break; case 348: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy890 = setExplainVerbose(pCxt, yymsp[-2].minor.yy890, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 349: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy890 = setExplainRatio(pCxt, yymsp[-2].minor.yy890, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 350: /* 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.yy145, yymsp[-9].minor.yy145, &yymsp[-6].minor.yy39, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy34, yymsp[-1].minor.yy474, &yymsp[0].minor.yy39, yymsp[-10].minor.yy145); } break; case 351: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy145, &yymsp[0].minor.yy39); } break; case 356: /* language_opt ::= */ case 395: /* on_vgroup_id ::= */ yytestcase(yyruleno==395); { yymsp[1].minor.yy39 = nil_token; } break; case 357: /* language_opt ::= LANGUAGE NK_STRING */ case 396: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==396); { yymsp[-1].minor.yy39 = yymsp[0].minor.yy0; } break; case 360: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ { pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy145, yymsp[-2].minor.yy890, &yymsp[-1].minor.yy0, yymsp[0].minor.yy890); } break; case 361: /* cmd ::= DROP VIEW exists_opt full_view_name */ { pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy145, yymsp[0].minor.yy890); } break; case 362: /* full_view_name ::= view_name */ { yylhsminor.yy890 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy39); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 363: /* full_view_name ::= db_name NK_DOT view_name */ { yylhsminor.yy890 = createViewNode(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy39); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 364: /* 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.yy145, &yymsp[-8].minor.yy39, yymsp[-5].minor.yy890, yymsp[-7].minor.yy890, yymsp[-3].minor.yy200, yymsp[-2].minor.yy890, yymsp[0].minor.yy890, yymsp[-4].minor.yy200); } break; case 365: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy145, &yymsp[0].minor.yy39); } break; case 366: /* cmd ::= PAUSE STREAM exists_opt stream_name */ { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy145, &yymsp[0].minor.yy39); } break; case 367: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy145, yymsp[-1].minor.yy145, &yymsp[0].minor.yy39); } break; case 374: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 375: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==375); { yylhsminor.yy890 = setStreamOptions(pCxt, yymsp[-2].minor.yy890, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 376: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { yylhsminor.yy890 = setStreamOptions(pCxt, yymsp[-3].minor.yy890, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy890)); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 377: /* stream_options ::= stream_options WATERMARK duration_literal */ { yylhsminor.yy890 = setStreamOptions(pCxt, yymsp[-2].minor.yy890, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy890)); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 378: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { yylhsminor.yy890 = setStreamOptions(pCxt, yymsp[-3].minor.yy890, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 379: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { yylhsminor.yy890 = setStreamOptions(pCxt, yymsp[-2].minor.yy890, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 380: /* stream_options ::= stream_options DELETE_MARK duration_literal */ { yylhsminor.yy890 = setStreamOptions(pCxt, yymsp[-2].minor.yy890, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy890)); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 381: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { yylhsminor.yy890 = setStreamOptions(pCxt, yymsp[-3].minor.yy890, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 383: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ case 587: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==587); case 611: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==611); { yymsp[-3].minor.yy890 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy890); } break; case 386: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; case 387: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; case 388: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; case 389: /* cmd ::= KILL COMPACT NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); } break; case 390: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; case 391: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy39); } break; case 392: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 393: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy200); } break; case 394: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 397: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy200 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 399: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy890, yymsp[0].minor.yy890); } break; case 402: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { yymsp[-6].minor.yy890 = createInsertStmt(pCxt, yymsp[-4].minor.yy890, yymsp[-2].minor.yy200, yymsp[0].minor.yy890); } break; case 403: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ { yymsp[-3].minor.yy890 = createInsertStmt(pCxt, yymsp[-1].minor.yy890, NULL, yymsp[0].minor.yy890); } break; case 404: /* literal ::= NK_INTEGER */ { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 405: /* literal ::= NK_FLOAT */ { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 406: /* literal ::= NK_STRING */ { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 407: /* literal ::= NK_BOOL */ { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 408: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 409: /* literal ::= duration_literal */ case 419: /* signed_literal ::= signed */ yytestcase(yyruleno==419); case 442: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==442); case 443: /* expression ::= literal */ yytestcase(yyruleno==443); case 445: /* expression ::= column_reference */ yytestcase(yyruleno==445); case 446: /* expression ::= function_expression */ yytestcase(yyruleno==446); case 447: /* expression ::= case_when_expression */ yytestcase(yyruleno==447); case 480: /* function_expression ::= literal_func */ yytestcase(yyruleno==480); case 529: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==529); case 533: /* boolean_primary ::= predicate */ yytestcase(yyruleno==533); case 535: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==535); case 536: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==536); case 539: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==539); case 541: /* table_reference ::= table_primary */ yytestcase(yyruleno==541); case 542: /* table_reference ::= joined_table */ yytestcase(yyruleno==542); case 546: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==546); case 613: /* query_simple ::= query_specification */ yytestcase(yyruleno==613); case 614: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==614); case 617: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==617); case 619: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==619); { yylhsminor.yy890 = yymsp[0].minor.yy890; } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 410: /* literal ::= NULL */ { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 411: /* literal ::= NK_QUESTION */ { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 412: /* duration_literal ::= NK_VARIABLE */ case 588: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==588); case 589: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==589); case 590: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==590); { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 413: /* signed ::= NK_INTEGER */ { yylhsminor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 414: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; case 415: /* 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.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 416: /* signed ::= NK_FLOAT */ { yylhsminor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 417: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 418: /* 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.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 420: /* signed_literal ::= NK_STRING */ { yylhsminor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 421: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 422: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 423: /* signed_literal ::= duration_literal */ case 425: /* signed_literal ::= literal_func */ yytestcase(yyruleno==425); case 500: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==500); case 566: /* select_item ::= common_expression */ yytestcase(yyruleno==566); case 576: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==576); case 618: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==618); case 620: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==620); case 633: /* search_condition ::= common_expression */ yytestcase(yyruleno==633); { yylhsminor.yy890 = releaseRawExprNode(pCxt, yymsp[0].minor.yy890); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 424: /* signed_literal ::= NULL */ { yylhsminor.yy890 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 426: /* signed_literal ::= NK_QUESTION */ { yylhsminor.yy890 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 444: /* expression ::= pseudo_column */ { yylhsminor.yy890 = yymsp[0].minor.yy890; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy890, true); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 448: /* expression ::= NK_LP expression NK_RP */ case 534: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==534); case 632: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==632); { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy890)); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 449: /* expression ::= NK_PLUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy890)); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 450: /* expression ::= NK_MINUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy890), NULL)); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 451: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 452: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 453: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 454: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 455: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 456: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 457: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 458: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 461: /* column_reference ::= column_name */ { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy39, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy39)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 462: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy39, createColumnNode(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy39)); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 463: /* column_reference ::= NK_ALIAS */ { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 464: /* column_reference ::= table_name NK_DOT NK_ALIAS */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 465: /* pseudo_column ::= ROWTS */ case 466: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==466); case 468: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==468); case 469: /* pseudo_column ::= QEND */ yytestcase(yyruleno==469); case 470: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==470); case 471: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==471); case 472: /* pseudo_column ::= WEND */ yytestcase(yyruleno==472); case 473: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==473); case 474: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==474); case 475: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==475); case 476: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==476); case 482: /* literal_func ::= NOW */ yytestcase(yyruleno==482); { yylhsminor.yy890 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 467: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy39)))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 477: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 478: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==478); { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy39, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy39, yymsp[-1].minor.yy200)); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 479: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy890), yymsp[-1].minor.yy34)); } yymsp[-5].minor.yy890 = yylhsminor.yy890; break; case 481: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy39, NULL)); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 496: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy200 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy200 = yylhsminor.yy200; break; case 501: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 569: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==569); { yylhsminor.yy890 = createColumnNode(pCxt, &yymsp[-2].minor.yy39, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 502: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy200, yymsp[-1].minor.yy890)); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 503: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy890), yymsp[-2].minor.yy200, yymsp[-1].minor.yy890)); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 506: /* when_then_expr ::= WHEN common_expression THEN common_expression */ { yymsp[-3].minor.yy890 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890)); } break; case 508: /* case_when_else_opt ::= ELSE common_expression */ { yymsp[-1].minor.yy890 = releaseRawExprNode(pCxt, yymsp[0].minor.yy890); } break; case 509: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 514: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==514); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy240, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 510: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy890), releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-4].minor.yy890 = yylhsminor.yy890; break; case 511: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy890), releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-5].minor.yy890 = yylhsminor.yy890; break; case 512: /* predicate ::= expr_or_subquery IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), NULL)); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 513: /* predicate ::= expr_or_subquery IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy890), NULL)); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 515: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy240 = OP_TYPE_LOWER_THAN; } break; case 516: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy240 = OP_TYPE_GREATER_THAN; } break; case 517: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy240 = OP_TYPE_LOWER_EQUAL; } break; case 518: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy240 = OP_TYPE_GREATER_EQUAL; } break; case 519: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy240 = OP_TYPE_NOT_EQUAL; } break; case 520: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy240 = OP_TYPE_EQUAL; } break; case 521: /* compare_op ::= LIKE */ { yymsp[0].minor.yy240 = OP_TYPE_LIKE; } break; case 522: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy240 = OP_TYPE_NOT_LIKE; } break; case 523: /* compare_op ::= MATCH */ { yymsp[0].minor.yy240 = OP_TYPE_MATCH; } break; case 524: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy240 = OP_TYPE_NMATCH; } break; case 525: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy240 = OP_TYPE_JSON_CONTAINS; } break; case 526: /* in_op ::= IN */ { yymsp[0].minor.yy240 = OP_TYPE_IN; } break; case 527: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy240 = OP_TYPE_NOT_IN; } break; case 528: /* in_predicate_value ::= NK_LP literal_list NK_RP */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy200)); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 530: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy890), NULL)); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 531: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 532: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy890); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy890); yylhsminor.yy890 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 540: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy890 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy890, yymsp[0].minor.yy890, NULL); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 543: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy890 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy39, &yymsp[0].minor.yy39); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 544: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy890 = createRealTableNode(pCxt, &yymsp[-3].minor.yy39, &yymsp[-1].minor.yy39, &yymsp[0].minor.yy39); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 545: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy890 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy890), &yymsp[0].minor.yy39); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 547: /* alias_opt ::= */ { yymsp[1].minor.yy39 = nil_token; } break; case 549: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy39 = yymsp[0].minor.yy39; } break; case 550: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 551: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==551); { yymsp[-2].minor.yy890 = yymsp[-1].minor.yy890; } break; case 552: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy890 = createJoinTableNode(pCxt, yymsp[-4].minor.yy90, yymsp[-5].minor.yy890, yymsp[-2].minor.yy890, yymsp[0].minor.yy890); } yymsp[-5].minor.yy890 = yylhsminor.yy890; break; case 553: /* join_type ::= */ { yymsp[1].minor.yy90 = JOIN_TYPE_INNER; } break; case 554: /* join_type ::= INNER */ { yymsp[0].minor.yy90 = JOIN_TYPE_INNER; } break; case 555: /* 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.yy890 = createSelectStmt(pCxt, yymsp[-11].minor.yy145, yymsp[-9].minor.yy200, yymsp[-8].minor.yy890, yymsp[-12].minor.yy200); yymsp[-13].minor.yy890 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy890, yymsp[-10].minor.yy145); yymsp[-13].minor.yy890 = addWhereClause(pCxt, yymsp[-13].minor.yy890, yymsp[-7].minor.yy890); yymsp[-13].minor.yy890 = addPartitionByClause(pCxt, yymsp[-13].minor.yy890, yymsp[-6].minor.yy200); yymsp[-13].minor.yy890 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy890, yymsp[-2].minor.yy890); yymsp[-13].minor.yy890 = addGroupByClause(pCxt, yymsp[-13].minor.yy890, yymsp[-1].minor.yy200); yymsp[-13].minor.yy890 = addHavingClause(pCxt, yymsp[-13].minor.yy890, yymsp[0].minor.yy890); yymsp[-13].minor.yy890 = addRangeClause(pCxt, yymsp[-13].minor.yy890, yymsp[-5].minor.yy890); yymsp[-13].minor.yy890 = addEveryClause(pCxt, yymsp[-13].minor.yy890, yymsp[-4].minor.yy890); yymsp[-13].minor.yy890 = addFillClause(pCxt, yymsp[-13].minor.yy890, yymsp[-3].minor.yy890); } break; case 556: /* hint_list ::= */ { yymsp[1].minor.yy200 = createHintNodeList(pCxt, NULL); } break; case 557: /* hint_list ::= NK_HINT */ { yylhsminor.yy200 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy200 = yylhsminor.yy200; break; case 562: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy145 = false; } break; case 565: /* select_item ::= NK_STAR */ { yylhsminor.yy890 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy890 = yylhsminor.yy890; break; case 567: /* select_item ::= common_expression column_alias */ case 577: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==577); { yylhsminor.yy890 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy890), &yymsp[0].minor.yy39); } yymsp[-1].minor.yy890 = yylhsminor.yy890; break; case 568: /* select_item ::= common_expression AS column_alias */ case 578: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==578); { yylhsminor.yy890 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), &yymsp[0].minor.yy39); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 573: /* partition_by_clause_opt ::= PARTITION BY partition_list */ case 602: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==602); case 622: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==622); { yymsp[-2].minor.yy200 = yymsp[0].minor.yy200; } break; case 580: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ { yymsp[-5].minor.yy890 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy890), releaseRawExprNode(pCxt, yymsp[-1].minor.yy890)); } break; case 581: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy890 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy890)); } break; case 582: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy890 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy890), NULL, yymsp[-1].minor.yy890, yymsp[0].minor.yy890); } break; case 583: /* 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.yy890 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy890), releaseRawExprNode(pCxt, yymsp[-3].minor.yy890), yymsp[-1].minor.yy890, yymsp[0].minor.yy890); } break; case 584: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ { yymsp[-6].minor.yy890 = createEventWindowNode(pCxt, yymsp[-3].minor.yy890, yymsp[0].minor.yy890); } break; case 585: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy890 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0); } break; case 592: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy890 = createFillNode(pCxt, yymsp[-1].minor.yy624, NULL); } break; case 593: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy890 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy200)); } break; case 594: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ { yymsp[-5].minor.yy890 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy200)); } break; case 595: /* fill_mode ::= NONE */ { yymsp[0].minor.yy624 = FILL_MODE_NONE; } break; case 596: /* fill_mode ::= PREV */ { yymsp[0].minor.yy624 = FILL_MODE_PREV; } break; case 597: /* fill_mode ::= NULL */ { yymsp[0].minor.yy624 = FILL_MODE_NULL; } break; case 598: /* fill_mode ::= NULL_F */ { yymsp[0].minor.yy624 = FILL_MODE_NULL_F; } break; case 599: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy624 = FILL_MODE_LINEAR; } break; case 600: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy624 = FILL_MODE_NEXT; } break; case 603: /* group_by_list ::= expr_or_subquery */ { yylhsminor.yy200 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[0].minor.yy200 = yylhsminor.yy200; break; case 604: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { yylhsminor.yy200 = addNodeToList(pCxt, yymsp[-2].minor.yy200, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy890))); } yymsp[-2].minor.yy200 = yylhsminor.yy200; break; case 608: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { yymsp[-5].minor.yy890 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy890), releaseRawExprNode(pCxt, yymsp[-1].minor.yy890)); } break; case 609: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy890 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy890)); } break; case 612: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy890 = addOrderByClause(pCxt, yymsp[-3].minor.yy890, yymsp[-2].minor.yy200); yylhsminor.yy890 = addSlimitClause(pCxt, yylhsminor.yy890, yymsp[-1].minor.yy890); yylhsminor.yy890 = addLimitClause(pCxt, yylhsminor.yy890, yymsp[0].minor.yy890); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 615: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { yylhsminor.yy890 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy890, yymsp[0].minor.yy890); } yymsp[-3].minor.yy890 = yylhsminor.yy890; break; case 616: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { yylhsminor.yy890 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy890, yymsp[0].minor.yy890); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 624: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 628: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==628); { yymsp[-1].minor.yy890 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; case 625: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 629: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==629); { yymsp[-3].minor.yy890 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; case 626: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 630: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==630); { yymsp[-3].minor.yy890 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; case 631: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy890 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy890); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 636: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { yylhsminor.yy890 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy890), yymsp[-1].minor.yy900, yymsp[0].minor.yy89); } yymsp[-2].minor.yy890 = yylhsminor.yy890; break; case 637: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy900 = ORDER_ASC; } break; case 638: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy900 = ORDER_ASC; } break; case 639: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy900 = ORDER_DESC; } break; case 640: /* null_ordering_opt ::= */ { yymsp[1].minor.yy89 = NULL_ORDER_DEFAULT; } break; case 641: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy89 = NULL_ORDER_FIRST; } break; case 642: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy89 = 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 }