/* This file is automatically generated by Lemon from input grammar ** source file "sql.y". */ /* ** 2000-05-29 ** ** The author disclaims copyright to this source code. In place of ** a legal notice, here is a blessing: ** ** May you do good and not evil. ** May you find forgiveness for yourself and forgive others. ** May you share freely, never taking more than you give. ** ************************************************************************* ** Driver template for the LEMON parser generator. ** ** The "lemon" program processes an LALR(1) input grammar file, then uses ** this template to construct a parser. The "lemon" program inserts text ** at each "%%" line. Also, any "P-a-r-s-e" identifer prefix (without the ** interstitial "-" characters) contained in this template is changed into ** the value of the %name directive from the grammar. Otherwise, the content ** of this template is copied straight through into the generate parser ** source file. ** ** The following is the concatenation of all %include directives from the ** input grammar file: */ /************ Begin %include sections from the grammar ************************/ #line 11 "sql.y" #include #include #include #include #include #define ALLOW_FORBID_FUNC #include "functionMgt.h" #include "nodes.h" #include "parToken.h" #include "ttokendef.h" #include "parAst.h" #define YYSTACKDEPTH 0 #line 46 "sql.c" /**************** End of %include directives **********************************/ /* These constants specify the various numeric values for terminal symbols. ***************** Begin token definitions *************************************/ #ifndef TK_OR #define TK_OR 1 #define TK_AND 2 #define TK_UNION 3 #define TK_ALL 4 #define TK_MINUS 5 #define TK_EXCEPT 6 #define TK_INTERSECT 7 #define TK_NK_BITAND 8 #define TK_NK_BITOR 9 #define TK_NK_LSHIFT 10 #define TK_NK_RSHIFT 11 #define TK_NK_PLUS 12 #define TK_NK_MINUS 13 #define TK_NK_STAR 14 #define TK_NK_SLASH 15 #define TK_NK_REM 16 #define TK_NK_CONCAT 17 #define TK_CREATE 18 #define TK_ACCOUNT 19 #define TK_NK_ID 20 #define TK_PASS 21 #define TK_NK_STRING 22 #define TK_ALTER 23 #define TK_PPS 24 #define TK_TSERIES 25 #define TK_STORAGE 26 #define TK_STREAMS 27 #define TK_QTIME 28 #define TK_DBS 29 #define TK_USERS 30 #define TK_CONNS 31 #define TK_STATE 32 #define TK_USER 33 #define TK_ENABLE 34 #define TK_NK_INTEGER 35 #define TK_SYSINFO 36 #define TK_DROP 37 #define TK_GRANT 38 #define TK_ON 39 #define TK_TO 40 #define TK_REVOKE 41 #define TK_FROM 42 #define TK_SUBSCRIBE 43 #define TK_NK_COMMA 44 #define TK_READ 45 #define TK_WRITE 46 #define TK_NK_DOT 47 #define TK_WITH 48 #define TK_DNODE 49 #define TK_PORT 50 #define TK_DNODES 51 #define TK_RESTORE 52 #define TK_NK_IPTOKEN 53 #define TK_FORCE 54 #define TK_UNSAFE 55 #define TK_LOCAL 56 #define TK_QNODE 57 #define TK_BNODE 58 #define TK_SNODE 59 #define TK_MNODE 60 #define TK_VNODE 61 #define TK_DATABASE 62 #define TK_USE 63 #define TK_FLUSH 64 #define TK_TRIM 65 #define TK_COMPACT 66 #define TK_IF 67 #define TK_NOT 68 #define TK_EXISTS 69 #define TK_BUFFER 70 #define TK_CACHEMODEL 71 #define TK_CACHESIZE 72 #define TK_COMP 73 #define TK_DURATION 74 #define TK_NK_VARIABLE 75 #define TK_MAXROWS 76 #define TK_MINROWS 77 #define TK_KEEP 78 #define TK_PAGES 79 #define TK_PAGESIZE 80 #define TK_TSDB_PAGESIZE 81 #define TK_PRECISION 82 #define TK_REPLICA 83 #define TK_VGROUPS 84 #define TK_SINGLE_STABLE 85 #define TK_RETENTIONS 86 #define TK_SCHEMALESS 87 #define TK_WAL_LEVEL 88 #define TK_WAL_FSYNC_PERIOD 89 #define TK_WAL_RETENTION_PERIOD 90 #define TK_WAL_RETENTION_SIZE 91 #define TK_WAL_ROLL_PERIOD 92 #define TK_WAL_SEGMENT_SIZE 93 #define TK_STT_TRIGGER 94 #define TK_TABLE_PREFIX 95 #define TK_TABLE_SUFFIX 96 #define TK_NK_COLON 97 #define TK_MAX_SPEED 98 #define TK_START 99 #define TK_TIMESTAMP 100 #define TK_END 101 #define TK_TABLE 102 #define TK_NK_LP 103 #define TK_NK_RP 104 #define TK_STABLE 105 #define TK_ADD 106 #define TK_COLUMN 107 #define TK_MODIFY 108 #define TK_RENAME 109 #define TK_TAG 110 #define TK_SET 111 #define TK_NK_EQ 112 #define TK_USING 113 #define TK_TAGS 114 #define TK_COMMENT 115 #define TK_BOOL 116 #define TK_TINYINT 117 #define TK_SMALLINT 118 #define TK_INT 119 #define TK_INTEGER 120 #define TK_BIGINT 121 #define TK_FLOAT 122 #define TK_DOUBLE 123 #define TK_BINARY 124 #define TK_NCHAR 125 #define TK_UNSIGNED 126 #define TK_JSON 127 #define TK_VARCHAR 128 #define TK_MEDIUMBLOB 129 #define TK_BLOB 130 #define TK_VARBINARY 131 #define TK_GEOMETRY 132 #define TK_DECIMAL 133 #define TK_MAX_DELAY 134 #define TK_WATERMARK 135 #define TK_ROLLUP 136 #define TK_TTL 137 #define TK_SMA 138 #define TK_DELETE_MARK 139 #define TK_FIRST 140 #define TK_LAST 141 #define TK_SHOW 142 #define TK_PRIVILEGES 143 #define TK_DATABASES 144 #define TK_TABLES 145 #define TK_STABLES 146 #define TK_MNODES 147 #define TK_QNODES 148 #define TK_FUNCTIONS 149 #define TK_INDEXES 150 #define TK_ACCOUNTS 151 #define TK_APPS 152 #define TK_CONNECTIONS 153 #define TK_LICENCES 154 #define TK_GRANTS 155 #define TK_QUERIES 156 #define TK_SCORES 157 #define TK_TOPICS 158 #define TK_VARIABLES 159 #define TK_CLUSTER 160 #define TK_BNODES 161 #define TK_SNODES 162 #define TK_TRANSACTIONS 163 #define TK_DISTRIBUTED 164 #define TK_CONSUMERS 165 #define TK_SUBSCRIPTIONS 166 #define TK_VNODES 167 #define TK_ALIVE 168 #define TK_LIKE 169 #define TK_TBNAME 170 #define TK_QTAGS 171 #define TK_AS 172 #define TK_INDEX 173 #define TK_FUNCTION 174 #define TK_INTERVAL 175 #define TK_COUNT 176 #define TK_LAST_ROW 177 #define TK_META 178 #define TK_ONLY 179 #define TK_TOPIC 180 #define TK_CONSUMER 181 #define TK_GROUP 182 #define TK_DESC 183 #define TK_DESCRIBE 184 #define TK_RESET 185 #define TK_QUERY 186 #define TK_CACHE 187 #define TK_EXPLAIN 188 #define TK_ANALYZE 189 #define TK_VERBOSE 190 #define TK_NK_BOOL 191 #define TK_RATIO 192 #define TK_NK_FLOAT 193 #define TK_OUTPUTTYPE 194 #define TK_AGGREGATE 195 #define TK_BUFSIZE 196 #define TK_LANGUAGE 197 #define TK_REPLACE 198 #define TK_STREAM 199 #define TK_INTO 200 #define TK_PAUSE 201 #define TK_RESUME 202 #define TK_TRIGGER 203 #define TK_AT_ONCE 204 #define TK_WINDOW_CLOSE 205 #define TK_IGNORE 206 #define TK_EXPIRED 207 #define TK_FILL_HISTORY 208 #define TK_UPDATE 209 #define TK_SUBTABLE 210 #define TK_UNTREATED 211 #define TK_KILL 212 #define TK_CONNECTION 213 #define TK_TRANSACTION 214 #define TK_BALANCE 215 #define TK_VGROUP 216 #define TK_LEADER 217 #define TK_MERGE 218 #define TK_REDISTRIBUTE 219 #define TK_SPLIT 220 #define TK_DELETE 221 #define TK_INSERT 222 #define TK_NULL 223 #define TK_NK_QUESTION 224 #define TK_NK_ARROW 225 #define TK_ROWTS 226 #define TK_QSTART 227 #define TK_QEND 228 #define TK_QDURATION 229 #define TK_WSTART 230 #define TK_WEND 231 #define TK_WDURATION 232 #define TK_IROWTS 233 #define TK_ISFILLED 234 #define TK_CAST 235 #define TK_NOW 236 #define TK_TODAY 237 #define TK_TIMEZONE 238 #define TK_CLIENT_VERSION 239 #define TK_SERVER_VERSION 240 #define TK_SERVER_STATUS 241 #define TK_CURRENT_USER 242 #define TK_CASE 243 #define TK_WHEN 244 #define TK_THEN 245 #define TK_ELSE 246 #define TK_BETWEEN 247 #define TK_IS 248 #define TK_NK_LT 249 #define TK_NK_GT 250 #define TK_NK_LE 251 #define TK_NK_GE 252 #define TK_NK_NE 253 #define TK_MATCH 254 #define TK_NMATCH 255 #define TK_CONTAINS 256 #define TK_IN 257 #define TK_JOIN 258 #define TK_INNER 259 #define TK_SELECT 260 #define TK_DISTINCT 261 #define TK_WHERE 262 #define TK_PARTITION 263 #define TK_BY 264 #define TK_SESSION 265 #define TK_STATE_WINDOW 266 #define TK_EVENT_WINDOW 267 #define TK_SLIDING 268 #define TK_FILL 269 #define TK_VALUE 270 #define TK_VALUE_F 271 #define TK_NONE 272 #define TK_PREV 273 #define TK_NULL_F 274 #define TK_LINEAR 275 #define TK_NEXT 276 #define TK_HAVING 277 #define TK_RANGE 278 #define TK_EVERY 279 #define TK_ORDER 280 #define TK_SLIMIT 281 #define TK_SOFFSET 282 #define TK_LIMIT 283 #define TK_OFFSET 284 #define TK_ASC 285 #define TK_NULLS 286 #define TK_ABORT 287 #define TK_AFTER 288 #define TK_ATTACH 289 #define TK_BEFORE 290 #define TK_BEGIN 291 #define TK_BITAND 292 #define TK_BITNOT 293 #define TK_BITOR 294 #define TK_BLOCKS 295 #define TK_CHANGE 296 #define TK_COMMA 297 #define TK_CONCAT 298 #define TK_CONFLICT 299 #define TK_COPY 300 #define TK_DEFERRED 301 #define TK_DELIMITERS 302 #define TK_DETACH 303 #define TK_DIVIDE 304 #define TK_DOT 305 #define TK_EACH 306 #define TK_FAIL 307 #define TK_FILE 308 #define TK_FOR 309 #define TK_GLOB 310 #define TK_ID 311 #define TK_IMMEDIATE 312 #define TK_IMPORT 313 #define TK_INITIALLY 314 #define TK_INSTEAD 315 #define TK_ISNULL 316 #define TK_KEY 317 #define TK_MODULES 318 #define TK_NK_BITNOT 319 #define TK_NK_SEMI 320 #define TK_NOTNULL 321 #define TK_OF 322 #define TK_PLUS 323 #define TK_PRIVILEGE 324 #define TK_RAISE 325 #define TK_RESTRICT 326 #define TK_ROW 327 #define TK_SEMI 328 #define TK_STAR 329 #define TK_STATEMENT 330 #define TK_STRICT 331 #define TK_STRING 332 #define TK_TIMES 333 #define TK_VALUES 334 #define TK_VARIABLE 335 #define TK_VIEW 336 #define TK_WAL 337 #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 488 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; SNodeList* yy56; EOperatorType yy76; EOrder yy82; SToken yy129; int8_t yy215; bool yy313; int32_t yy356; SAlterOption yy461; STokenPair yy505; ENullOrder yy521; EFillMode yy694; EJoinType yy708; int64_t yy717; SDataType yy784; SNode* yy840; } 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 800 #define YYNRULE 603 #define YYNRULE_WITH_ACTION 603 #define YYNTOKEN 338 #define YY_MAX_SHIFT 799 #define YY_MIN_SHIFTREDUCE 1181 #define YY_MAX_SHIFTREDUCE 1783 #define YY_ERROR_ACTION 1784 #define YY_ACCEPT_ACTION 1785 #define YY_NO_ACTION 1786 #define YY_MIN_REDUCE 1787 #define YY_MAX_REDUCE 2389 /************* 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 (3028) static const YYACTIONTYPE yy_action[] = { /* 0 */ 735, 2198, 2176, 532, 2018, 2159, 533, 1823, 90, 450, /* 10 */ 364, 705, 48, 46, 1710, 169, 2184, 1799, 2016, 181, /* 20 */ 398, 2087, 1557, 41, 40, 368, 2180, 47, 45, 44, /* 30 */ 43, 42, 66, 1638, 1959, 1555, 2085, 675, 366, 2070, /* 40 */ 2216, 146, 41, 40, 2257, 2087, 47, 45, 44, 43, /* 50 */ 42, 2166, 628, 704, 345, 2360, 2176, 391, 401, 2198, /* 60 */ 2084, 675, 1633, 1582, 2182, 395, 1966, 163, 19, 668, /* 70 */ 1955, 2366, 188, 380, 698, 1563, 2361, 654, 30, 687, /* 80 */ 2180, 2016, 653, 358, 537, 2360, 2059, 2197, 2365, 2233, /* 90 */ 534, 2360, 170, 2199, 708, 2201, 2202, 703, 2216, 698, /* 100 */ 796, 652, 188, 15, 38, 303, 2361, 654, 2364, 2166, /* 110 */ 673, 704, 2361, 2363, 2012, 2013, 48, 46, 2182, 47, /* 120 */ 45, 44, 43, 42, 398, 453, 1557, 1667, 698, 688, /* 130 */ 1964, 62, 62, 629, 2325, 407, 406, 1638, 1750, 1555, /* 140 */ 1640, 1641, 221, 1242, 1243, 2197, 535, 2233, 1830, 135, /* 150 */ 112, 2199, 708, 2201, 2202, 703, 572, 698, 1564, 223, /* 160 */ 688, 1964, 185, 535, 2286, 1830, 1633, 674, 394, 2282, /* 170 */ 1613, 1623, 19, 1582, 688, 1964, 1639, 1642, 168, 1563, /* 180 */ 135, 549, 190, 627, 1668, 1788, 1905, 577, 568, 567, /* 190 */ 2314, 1558, 125, 1556, 193, 124, 123, 122, 121, 120, /* 200 */ 119, 118, 117, 116, 796, 745, 125, 15, 2198, 124, /* 210 */ 123, 122, 121, 120, 119, 118, 117, 116, 705, 547, /* 220 */ 1669, 2080, 648, 1561, 1562, 1787, 1612, 1615, 1616, 1617, /* 230 */ 1618, 1619, 1620, 1621, 1622, 700, 696, 1631, 1632, 1634, /* 240 */ 1635, 1636, 1637, 2, 1640, 1641, 687, 2216, 1583, 134, /* 250 */ 133, 132, 131, 130, 129, 128, 127, 126, 2166, 1239, /* 260 */ 704, 1238, 37, 396, 1662, 1663, 1664, 1665, 1666, 1670, /* 270 */ 1671, 1672, 1673, 540, 1613, 1623, 533, 1823, 41, 40, /* 280 */ 1639, 1642, 47, 45, 44, 43, 42, 248, 285, 285, /* 290 */ 1585, 247, 1240, 687, 2197, 1558, 2233, 1556, 35, 112, /* 300 */ 2199, 708, 2201, 2202, 703, 643, 698, 60, 1674, 147, /* 310 */ 184, 155, 2257, 2286, 625, 2198, 1567, 394, 2282, 44, /* 320 */ 43, 42, 2005, 1466, 1467, 668, 103, 1561, 1562, 51, /* 330 */ 1612, 1615, 1616, 1617, 1618, 1619, 1620, 1621, 1622, 700, /* 340 */ 696, 1631, 1632, 1634, 1635, 1636, 1637, 2, 12, 48, /* 350 */ 46, 1957, 93, 737, 2216, 353, 2009, 398, 378, 1557, /* 360 */ 606, 1373, 1583, 529, 9, 2166, 1582, 704, 1408, 1409, /* 370 */ 1638, 527, 1555, 647, 523, 519, 51, 1364, 733, 732, /* 380 */ 731, 1368, 730, 1370, 1371, 729, 726, 2365, 1379, 723, /* 390 */ 1381, 1382, 720, 717, 714, 649, 644, 637, 2160, 1633, /* 400 */ 611, 2197, 2216, 2233, 1584, 19, 112, 2199, 708, 2201, /* 410 */ 2202, 703, 1563, 698, 590, 589, 588, 207, 185, 576, /* 420 */ 2286, 580, 141, 584, 394, 2282, 371, 583, 12, 2198, /* 430 */ 570, 569, 582, 587, 374, 373, 2301, 796, 581, 705, /* 440 */ 15, 575, 262, 392, 595, 628, 2315, 628, 2360, 62, /* 450 */ 2360, 1966, 166, 48, 46, 1643, 646, 86, 674, 605, /* 460 */ 85, 398, 2298, 1557, 2366, 188, 2366, 188, 2216, 2361, /* 470 */ 654, 2361, 654, 246, 1638, 2301, 1555, 1640, 1641, 2166, /* 480 */ 1785, 704, 1483, 1484, 455, 2066, 41, 40, 1773, 598, /* 490 */ 47, 45, 44, 43, 42, 372, 592, 370, 369, 2198, /* 500 */ 574, 2297, 245, 1633, 576, 461, 2066, 1613, 1623, 705, /* 510 */ 672, 1832, 2080, 1639, 1642, 2197, 1563, 2233, 1482, 1485, /* 520 */ 113, 2199, 708, 2201, 2202, 703, 575, 698, 1558, 2018, /* 530 */ 1556, 202, 255, 285, 2286, 379, 665, 144, 2216, 2283, /* 540 */ 1584, 796, 70, 2016, 49, 69, 12, 1214, 10, 2166, /* 550 */ 1585, 704, 205, 413, 488, 2066, 284, 1810, 412, 1316, /* 560 */ 1561, 1562, 674, 1612, 1615, 1616, 1617, 1618, 1619, 1620, /* 570 */ 1621, 1622, 700, 696, 1631, 1632, 1634, 1635, 1636, 1637, /* 580 */ 2, 1640, 1641, 604, 1701, 2197, 1216, 2233, 1219, 1220, /* 590 */ 112, 2199, 708, 2201, 2202, 703, 602, 698, 600, 1318, /* 600 */ 628, 210, 2380, 2360, 2286, 1809, 285, 2166, 394, 2282, /* 610 */ 2049, 1613, 1623, 1239, 683, 1238, 2080, 1639, 1642, 2366, /* 620 */ 188, 586, 585, 1327, 2361, 654, 62, 237, 140, 613, /* 630 */ 688, 1964, 1558, 1866, 1556, 2176, 1326, 688, 1964, 667, /* 640 */ 186, 2294, 2295, 173, 142, 2299, 1240, 249, 2198, 2185, /* 650 */ 56, 566, 562, 558, 554, 2166, 236, 448, 705, 2180, /* 660 */ 2322, 1780, 767, 765, 1561, 1562, 1563, 1612, 1615, 1616, /* 670 */ 1617, 1618, 1619, 1620, 1621, 1622, 700, 696, 1631, 1632, /* 680 */ 1634, 1635, 1636, 1637, 2, 48, 46, 2216, 495, 688, /* 690 */ 1964, 736, 284, 398, 2301, 1557, 91, 2182, 2166, 234, /* 700 */ 704, 504, 203, 590, 589, 588, 1638, 698, 1555, 449, /* 710 */ 580, 141, 584, 442, 444, 441, 583, 1528, 1529, 443, /* 720 */ 2296, 582, 587, 374, 373, 41, 40, 581, 52, 47, /* 730 */ 45, 44, 43, 42, 2197, 1633, 2233, 669, 432, 112, /* 740 */ 2199, 708, 2201, 2202, 703, 440, 698, 158, 1563, 212, /* 750 */ 211, 2380, 403, 2286, 699, 2011, 2013, 394, 2282, 688, /* 760 */ 1964, 628, 401, 1779, 2360, 434, 430, 233, 227, 473, /* 770 */ 1966, 166, 494, 796, 232, 545, 49, 1738, 472, 463, /* 780 */ 2366, 188, 2149, 285, 628, 2361, 654, 2360, 2018, 48, /* 790 */ 46, 1953, 166, 225, 388, 1808, 2198, 398, 181, 1557, /* 800 */ 688, 1964, 2016, 2366, 188, 2018, 705, 55, 2361, 654, /* 810 */ 1638, 393, 1555, 1640, 1641, 665, 144, 1714, 2071, 2016, /* 820 */ 478, 1749, 1941, 1582, 640, 639, 1736, 1737, 1739, 1740, /* 830 */ 1741, 2365, 2131, 404, 2360, 2216, 1807, 665, 144, 1633, /* 840 */ 2364, 1966, 166, 1613, 1623, 2166, 2166, 755, 704, 1639, /* 850 */ 1642, 2364, 1563, 41, 40, 2361, 2362, 47, 45, 44, /* 860 */ 43, 42, 34, 258, 1558, 1940, 1556, 741, 41, 40, /* 870 */ 2009, 1906, 47, 45, 44, 43, 42, 796, 688, 1964, /* 880 */ 15, 250, 2197, 2198, 2233, 285, 2166, 171, 2199, 708, /* 890 */ 2201, 2202, 703, 705, 698, 2335, 1561, 1562, 479, 1612, /* 900 */ 1615, 1616, 1617, 1618, 1619, 1620, 1621, 1622, 700, 696, /* 910 */ 1631, 1632, 1634, 1635, 1636, 1637, 2, 1640, 1641, 187, /* 920 */ 2294, 2295, 2216, 142, 2299, 90, 690, 109, 2258, 1707, /* 930 */ 688, 1964, 745, 2166, 692, 704, 2258, 743, 1800, 655, /* 940 */ 2381, 189, 2294, 2295, 145, 142, 2299, 1613, 1623, 1726, /* 950 */ 548, 1960, 1956, 1639, 1642, 279, 160, 159, 740, 739, /* 960 */ 738, 157, 688, 1964, 742, 688, 1964, 2009, 1558, 2197, /* 970 */ 1556, 2233, 2328, 1614, 112, 2199, 708, 2201, 2202, 703, /* 980 */ 2187, 698, 1961, 1648, 36, 685, 2380, 1939, 2286, 1582, /* 990 */ 41, 40, 394, 2282, 47, 45, 44, 43, 42, 427, /* 1000 */ 1561, 1562, 1863, 1612, 1615, 1616, 1617, 1618, 1619, 1620, /* 1010 */ 1621, 1622, 700, 696, 1631, 1632, 1634, 1635, 1636, 1637, /* 1020 */ 2, 2018, 349, 167, 1580, 688, 1964, 402, 324, 688, /* 1030 */ 1964, 486, 688, 1964, 502, 2016, 2189, 501, 688, 1964, /* 1040 */ 14, 13, 321, 73, 1582, 251, 72, 688, 1964, 259, /* 1050 */ 1331, 273, 671, 469, 1806, 503, 317, 346, 298, 1995, /* 1060 */ 471, 1219, 1220, 1330, 1805, 1804, 139, 686, 219, 514, /* 1070 */ 512, 509, 773, 772, 771, 770, 410, 1803, 769, 768, /* 1080 */ 148, 763, 762, 761, 760, 759, 758, 757, 162, 753, /* 1090 */ 752, 751, 409, 408, 748, 747, 746, 176, 175, 1802, /* 1100 */ 688, 1964, 743, 657, 2166, 1585, 367, 1222, 62, 688, /* 1110 */ 1964, 294, 295, 1581, 2166, 2166, 293, 656, 457, 1557, /* 1120 */ 304, 160, 159, 740, 739, 738, 157, 2166, 506, 405, /* 1130 */ 41, 40, 1555, 2152, 47, 45, 44, 43, 42, 1614, /* 1140 */ 665, 144, 54, 1681, 3, 1801, 1798, 111, 499, 2166, /* 1150 */ 1797, 493, 492, 491, 490, 485, 484, 483, 482, 481, /* 1160 */ 477, 476, 475, 474, 348, 466, 465, 464, 1796, 459, /* 1170 */ 458, 365, 1563, 41, 40, 1949, 166, 47, 45, 44, /* 1180 */ 43, 42, 420, 1795, 1794, 1793, 1706, 1792, 81, 80, /* 1190 */ 447, 2198, 743, 200, 1614, 2166, 2166, 796, 1951, 166, /* 1200 */ 2166, 705, 756, 635, 1791, 1926, 439, 437, 1947, 166, /* 1210 */ 158, 160, 159, 740, 739, 738, 157, 347, 2166, 2198, /* 1220 */ 428, 2306, 1701, 426, 422, 418, 415, 440, 1790, 705, /* 1230 */ 2216, 2353, 1942, 2166, 2166, 2166, 653, 2166, 83, 2360, /* 1240 */ 137, 2166, 74, 704, 282, 2294, 664, 242, 136, 663, /* 1250 */ 240, 2360, 2198, 695, 2166, 652, 188, 261, 2216, 578, /* 1260 */ 2361, 654, 705, 158, 2305, 285, 2018, 652, 188, 2166, /* 1270 */ 1523, 704, 2361, 654, 1967, 166, 149, 2197, 2166, 2233, /* 1280 */ 2017, 1314, 112, 2199, 708, 2201, 2202, 703, 1558, 698, /* 1290 */ 1556, 2216, 84, 260, 2380, 151, 2286, 608, 150, 607, /* 1300 */ 394, 2282, 2166, 579, 704, 2197, 244, 2233, 1850, 243, /* 1310 */ 112, 2199, 708, 2201, 2202, 703, 153, 698, 50, 152, /* 1320 */ 1561, 1562, 2380, 1526, 2286, 1312, 50, 1566, 394, 2282, /* 1330 */ 591, 266, 1782, 1783, 1565, 660, 94, 165, 2197, 158, /* 1340 */ 2233, 658, 2198, 112, 2199, 708, 2201, 2202, 703, 1841, /* 1350 */ 698, 1839, 705, 407, 406, 2380, 641, 2286, 50, 291, /* 1360 */ 1904, 394, 2282, 1571, 71, 156, 158, 14, 13, 64, /* 1370 */ 2198, 593, 108, 596, 1638, 1903, 1564, 2217, 1735, 411, /* 1380 */ 705, 2216, 105, 50, 50, 381, 1734, 1273, 749, 712, /* 1390 */ 156, 268, 2166, 2075, 704, 750, 1833, 158, 1824, 670, /* 1400 */ 138, 1829, 2006, 1633, 2318, 666, 281, 156, 1659, 2216, /* 1410 */ 1292, 278, 1, 5, 419, 1588, 1563, 1290, 1480, 296, /* 1420 */ 2166, 414, 704, 362, 680, 300, 1357, 1274, 2197, 1675, /* 1430 */ 2233, 436, 2198, 112, 2199, 708, 2201, 2202, 703, 435, /* 1440 */ 698, 694, 705, 1624, 316, 2261, 791, 2286, 195, 1386, /* 1450 */ 1390, 394, 2282, 196, 438, 198, 2197, 1397, 2233, 1504, /* 1460 */ 1395, 112, 2199, 708, 2201, 2202, 703, 161, 698, 311, /* 1470 */ 1581, 2216, 454, 2259, 209, 2286, 456, 1585, 460, 394, /* 1480 */ 2282, 2076, 2166, 467, 704, 1569, 462, 497, 1580, 480, /* 1490 */ 489, 2068, 1568, 487, 496, 498, 214, 508, 507, 2198, /* 1500 */ 505, 510, 216, 513, 515, 213, 511, 1586, 4, 705, /* 1510 */ 530, 614, 538, 1583, 224, 531, 541, 539, 2197, 542, /* 1520 */ 2233, 226, 1587, 112, 2199, 708, 2201, 2202, 703, 799, /* 1530 */ 698, 543, 1572, 1589, 1567, 691, 544, 2286, 2216, 229, /* 1540 */ 231, 394, 2282, 310, 550, 546, 88, 571, 89, 2166, /* 1550 */ 235, 704, 573, 1954, 239, 1950, 241, 1952, 1948, 180, /* 1560 */ 114, 2198, 2140, 612, 1575, 1577, 352, 789, 785, 781, /* 1570 */ 777, 705, 308, 2137, 2136, 661, 92, 696, 1631, 1632, /* 1580 */ 1634, 1635, 1636, 1637, 610, 2197, 154, 2233, 616, 615, /* 1590 */ 113, 2199, 708, 2201, 2202, 703, 252, 698, 620, 256, /* 1600 */ 2216, 1511, 622, 623, 2286, 312, 617, 2319, 2285, 2282, /* 1610 */ 678, 2166, 110, 704, 254, 301, 621, 2329, 632, 642, /* 1620 */ 264, 638, 651, 267, 2198, 2334, 384, 2333, 645, 276, /* 1630 */ 272, 8, 2308, 631, 705, 630, 633, 277, 1701, 143, /* 1640 */ 1584, 659, 662, 2383, 385, 1704, 2302, 2197, 684, 2233, /* 1650 */ 178, 286, 113, 2199, 708, 2201, 2202, 703, 98, 698, /* 1660 */ 1590, 2081, 313, 2216, 676, 174, 2286, 274, 275, 677, /* 1670 */ 693, 2282, 2095, 191, 2166, 2094, 704, 2093, 314, 681, /* 1680 */ 390, 100, 2359, 288, 315, 2198, 102, 280, 682, 1965, /* 1690 */ 287, 61, 2267, 104, 710, 702, 2010, 1927, 318, 792, /* 1700 */ 307, 342, 2158, 2198, 354, 793, 327, 795, 53, 253, /* 1710 */ 706, 355, 2233, 705, 2157, 113, 2199, 708, 2201, 2202, /* 1720 */ 703, 2156, 698, 322, 2216, 78, 2153, 320, 416, 2286, /* 1730 */ 417, 1548, 1549, 357, 2282, 2166, 194, 704, 421, 2151, /* 1740 */ 341, 331, 2216, 423, 424, 425, 2150, 2148, 363, 2147, /* 1750 */ 429, 431, 2146, 2166, 433, 704, 1539, 2127, 197, 2126, /* 1760 */ 199, 1507, 79, 1506, 2198, 2108, 2107, 2106, 445, 446, /* 1770 */ 2105, 2197, 2104, 2233, 705, 1457, 339, 2199, 708, 2201, /* 1780 */ 2202, 703, 701, 698, 689, 2251, 2058, 452, 451, 2197, /* 1790 */ 2055, 2233, 201, 2054, 170, 2199, 708, 2201, 2202, 703, /* 1800 */ 82, 698, 2053, 2216, 206, 2045, 468, 382, 2052, 2057, /* 1810 */ 204, 2056, 2051, 2050, 2166, 2048, 704, 2047, 2046, 470, /* 1820 */ 2061, 2044, 2198, 2043, 2042, 2041, 2040, 2039, 2038, 2037, /* 1830 */ 2036, 2035, 705, 2034, 2033, 2032, 2326, 2031, 2030, 208, /* 1840 */ 2029, 2198, 87, 2028, 2027, 2026, 2060, 2025, 2024, 2023, /* 1850 */ 2197, 705, 2233, 2022, 1459, 340, 2199, 708, 2201, 2202, /* 1860 */ 703, 2216, 698, 2021, 2020, 383, 500, 2019, 1869, 215, /* 1870 */ 350, 1868, 2166, 1328, 704, 1867, 1332, 1324, 217, 1865, /* 1880 */ 2216, 218, 1862, 1861, 351, 516, 1854, 520, 517, 1843, /* 1890 */ 521, 2166, 524, 704, 518, 522, 528, 1819, 526, 1221, /* 1900 */ 1818, 2125, 220, 2115, 76, 2103, 222, 525, 2197, 77, /* 1910 */ 2233, 2102, 228, 340, 2199, 708, 2201, 2202, 703, 2186, /* 1920 */ 698, 2198, 182, 183, 536, 230, 2079, 2197, 1943, 2233, /* 1930 */ 1864, 705, 333, 2199, 708, 2201, 2202, 703, 1266, 698, /* 1940 */ 1860, 551, 2198, 553, 552, 1858, 557, 555, 556, 1856, /* 1950 */ 559, 560, 705, 561, 1853, 563, 565, 564, 1838, 1836, /* 1960 */ 2216, 1837, 1835, 1815, 1945, 1401, 1402, 1944, 1315, 1313, /* 1970 */ 1311, 2166, 1310, 704, 1309, 1302, 650, 1308, 1851, 1307, /* 1980 */ 764, 2216, 766, 1304, 1842, 389, 63, 1303, 375, 1840, /* 1990 */ 238, 1301, 2166, 376, 704, 377, 1814, 594, 1813, 1812, /* 2000 */ 597, 603, 115, 599, 601, 1533, 2124, 2197, 2198, 2233, /* 2010 */ 1535, 1532, 171, 2199, 708, 2201, 2202, 703, 702, 698, /* 2020 */ 1537, 29, 67, 1513, 1515, 2114, 618, 2101, 2197, 2100, /* 2030 */ 2233, 2365, 17, 340, 2199, 708, 2201, 2202, 703, 20, /* 2040 */ 698, 21, 6, 23, 31, 2198, 65, 2216, 7, 636, /* 2050 */ 271, 1752, 22, 57, 263, 705, 634, 270, 2166, 2187, /* 2060 */ 704, 265, 619, 1492, 1733, 2382, 2198, 257, 1491, 283, /* 2070 */ 624, 1767, 1766, 386, 33, 172, 705, 269, 24, 1771, /* 2080 */ 32, 164, 1517, 95, 2216, 1725, 1770, 626, 397, 1772, /* 2090 */ 1773, 387, 59, 177, 2197, 2166, 2233, 704, 97, 339, /* 2100 */ 2199, 708, 2201, 2202, 703, 2216, 698, 2099, 2252, 399, /* 2110 */ 2078, 1698, 289, 2077, 1697, 290, 2166, 96, 704, 25, /* 2120 */ 99, 1731, 292, 297, 2198, 302, 68, 101, 105, 26, /* 2130 */ 13, 2197, 1650, 2233, 705, 2236, 340, 2199, 708, 2201, /* 2140 */ 2202, 703, 1649, 698, 1573, 2198, 58, 1660, 179, 1628, /* 2150 */ 697, 192, 2197, 1626, 2233, 705, 299, 340, 2199, 708, /* 2160 */ 2201, 2202, 703, 2216, 698, 679, 11, 39, 1605, 709, /* 2170 */ 1625, 16, 27, 28, 2166, 1597, 704, 18, 1387, 711, /* 2180 */ 400, 1384, 713, 715, 2216, 716, 718, 1383, 1380, 719, /* 2190 */ 721, 722, 724, 1374, 725, 2166, 1372, 704, 727, 728, /* 2200 */ 1363, 1378, 1377, 2198, 305, 734, 1376, 1396, 106, 107, /* 2210 */ 609, 75, 2233, 705, 1392, 335, 2199, 708, 2201, 2202, /* 2220 */ 703, 1375, 698, 1264, 1296, 1295, 707, 744, 1294, 1293, /* 2230 */ 1291, 2197, 1289, 2233, 1288, 2198, 325, 2199, 708, 2201, /* 2240 */ 2202, 703, 2216, 698, 1287, 705, 1322, 754, 306, 1282, /* 2250 */ 1285, 1284, 1283, 2166, 1281, 704, 1280, 1279, 1319, 1317, /* 2260 */ 1276, 1275, 1270, 2198, 1272, 1271, 1269, 1859, 774, 775, /* 2270 */ 1857, 776, 778, 705, 2216, 1855, 782, 779, 780, 1852, /* 2280 */ 786, 784, 788, 783, 787, 2166, 1834, 704, 790, 2197, /* 2290 */ 1211, 2233, 1811, 309, 323, 2199, 708, 2201, 2202, 703, /* 2300 */ 1559, 698, 2216, 794, 798, 319, 797, 1786, 1786, 1786, /* 2310 */ 1786, 1786, 1786, 2166, 1786, 704, 1786, 1786, 1786, 1786, /* 2320 */ 1786, 2197, 1786, 2233, 1786, 1786, 326, 2199, 708, 2201, /* 2330 */ 2202, 703, 1786, 698, 2198, 1786, 1786, 1786, 1786, 1786, /* 2340 */ 1786, 1786, 1786, 1786, 705, 1786, 1786, 1786, 1786, 2197, /* 2350 */ 2198, 2233, 1786, 1786, 332, 2199, 708, 2201, 2202, 703, /* 2360 */ 705, 698, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, /* 2370 */ 1786, 1786, 1786, 2216, 1786, 1786, 1786, 1786, 1786, 1786, /* 2380 */ 1786, 1786, 1786, 1786, 2166, 1786, 704, 1786, 1786, 2216, /* 2390 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, /* 2400 */ 2166, 1786, 704, 1786, 1786, 1786, 1786, 1786, 2198, 1786, /* 2410 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 705, 1786, /* 2420 */ 2197, 1786, 2233, 1786, 1786, 336, 2199, 708, 2201, 2202, /* 2430 */ 703, 1786, 698, 1786, 1786, 1786, 2197, 1786, 2233, 2198, /* 2440 */ 1786, 328, 2199, 708, 2201, 2202, 703, 2216, 698, 705, /* 2450 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2166, 1786, /* 2460 */ 704, 1786, 1786, 1786, 1786, 1786, 2198, 1786, 1786, 1786, /* 2470 */ 1786, 1786, 1786, 1786, 1786, 1786, 705, 1786, 2216, 1786, /* 2480 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2166, /* 2490 */ 1786, 704, 1786, 1786, 2197, 1786, 2233, 2198, 1786, 337, /* 2500 */ 2199, 708, 2201, 2202, 703, 2216, 698, 705, 1786, 1786, /* 2510 */ 1786, 1786, 1786, 1786, 1786, 1786, 2166, 1786, 704, 1786, /* 2520 */ 1786, 1786, 1786, 1786, 1786, 2197, 1786, 2233, 1786, 1786, /* 2530 */ 329, 2199, 708, 2201, 2202, 703, 2216, 698, 1786, 1786, /* 2540 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2166, 1786, 704, /* 2550 */ 1786, 1786, 2197, 1786, 2233, 2198, 1786, 338, 2199, 708, /* 2560 */ 2201, 2202, 703, 1786, 698, 705, 1786, 1786, 1786, 1786, /* 2570 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2198, 1786, 1786, /* 2580 */ 1786, 1786, 1786, 2197, 1786, 2233, 1786, 705, 330, 2199, /* 2590 */ 708, 2201, 2202, 703, 2216, 698, 1786, 1786, 1786, 1786, /* 2600 */ 1786, 1786, 1786, 1786, 1786, 2166, 1786, 704, 1786, 1786, /* 2610 */ 1786, 1786, 1786, 1786, 1786, 1786, 2216, 1786, 1786, 1786, /* 2620 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2166, 1786, 704, /* 2630 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, /* 2640 */ 1786, 2197, 1786, 2233, 2198, 1786, 343, 2199, 708, 2201, /* 2650 */ 2202, 703, 1786, 698, 705, 1786, 1786, 1786, 1786, 1786, /* 2660 */ 1786, 1786, 1786, 2197, 1786, 2233, 1786, 1786, 344, 2199, /* 2670 */ 708, 2201, 2202, 703, 1786, 698, 2198, 1786, 1786, 1786, /* 2680 */ 1786, 1786, 1786, 2216, 1786, 1786, 705, 1786, 1786, 1786, /* 2690 */ 1786, 1786, 1786, 1786, 2166, 1786, 704, 1786, 1786, 1786, /* 2700 */ 1786, 1786, 2198, 1786, 1786, 1786, 1786, 1786, 1786, 1786, /* 2710 */ 1786, 1786, 705, 1786, 1786, 2216, 1786, 1786, 1786, 1786, /* 2720 */ 1786, 1786, 1786, 1786, 1786, 1786, 2166, 1786, 704, 1786, /* 2730 */ 2197, 1786, 2233, 1786, 1786, 2210, 2199, 708, 2201, 2202, /* 2740 */ 703, 2216, 698, 1786, 1786, 1786, 1786, 1786, 1786, 1786, /* 2750 */ 1786, 1786, 2166, 1786, 704, 1786, 1786, 1786, 1786, 1786, /* 2760 */ 1786, 1786, 2197, 1786, 2233, 1786, 1786, 2209, 2199, 708, /* 2770 */ 2201, 2202, 703, 1786, 698, 1786, 1786, 1786, 1786, 1786, /* 2780 */ 1786, 2198, 1786, 1786, 1786, 1786, 1786, 1786, 2197, 1786, /* 2790 */ 2233, 705, 1786, 2208, 2199, 708, 2201, 2202, 703, 1786, /* 2800 */ 698, 1786, 2198, 1786, 1786, 1786, 1786, 1786, 1786, 1786, /* 2810 */ 1786, 1786, 705, 1786, 1786, 1786, 1786, 1786, 2198, 1786, /* 2820 */ 2216, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 705, 1786, /* 2830 */ 1786, 2166, 1786, 704, 1786, 1786, 1786, 1786, 1786, 2198, /* 2840 */ 1786, 2216, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 705, /* 2850 */ 1786, 1786, 2166, 1786, 704, 1786, 1786, 2216, 1786, 1786, /* 2860 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2197, 2166, 2233, /* 2870 */ 704, 1786, 359, 2199, 708, 2201, 2202, 703, 2216, 698, /* 2880 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2197, 2166, /* 2890 */ 2233, 704, 1786, 360, 2199, 708, 2201, 2202, 703, 1786, /* 2900 */ 698, 1786, 1786, 1786, 2197, 1786, 2233, 2198, 1786, 356, /* 2910 */ 2199, 708, 2201, 2202, 703, 1786, 698, 705, 1786, 1786, /* 2920 */ 1786, 1786, 1786, 1786, 1786, 2197, 1786, 2233, 1786, 2198, /* 2930 */ 361, 2199, 708, 2201, 2202, 703, 1786, 698, 1786, 705, /* 2940 */ 1786, 1786, 1786, 1786, 1786, 1786, 2216, 1786, 1786, 1786, /* 2950 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2166, 1786, 704, /* 2960 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2216, 1786, /* 2970 */ 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 2166, /* 2980 */ 1786, 704, 1786, 1786, 1786, 1786, 1786, 1786, 1786, 1786, /* 2990 */ 1786, 1786, 1786, 706, 1786, 2233, 1786, 1786, 335, 2199, /* 3000 */ 708, 2201, 2202, 703, 1786, 698, 1786, 1786, 1786, 1786, /* 3010 */ 1786, 1786, 1786, 1786, 1786, 2197, 1786, 2233, 1786, 1786, /* 3020 */ 334, 2199, 708, 2201, 2202, 703, 1786, 698, }; static const YYCODETYPE yy_lookahead[] = { /* 0 */ 387, 341, 367, 345, 380, 411, 348, 349, 359, 350, /* 10 */ 386, 351, 12, 13, 14, 340, 381, 342, 394, 380, /* 20 */ 20, 393, 22, 8, 9, 376, 391, 12, 13, 14, /* 30 */ 15, 16, 4, 33, 385, 35, 408, 409, 399, 400, /* 40 */ 380, 442, 8, 9, 445, 393, 12, 13, 14, 15, /* 50 */ 16, 391, 458, 393, 395, 461, 367, 405, 371, 341, /* 60 */ 408, 409, 62, 20, 429, 430, 379, 380, 68, 351, /* 70 */ 381, 477, 478, 386, 439, 75, 482, 483, 44, 20, /* 80 */ 391, 394, 458, 68, 14, 461, 0, 427, 458, 429, /* 90 */ 20, 461, 432, 433, 434, 435, 436, 437, 380, 439, /* 100 */ 100, 477, 478, 103, 447, 448, 482, 483, 478, 391, /* 110 */ 20, 393, 482, 483, 392, 393, 12, 13, 429, 12, /* 120 */ 13, 14, 15, 16, 20, 39, 22, 112, 439, 350, /* 130 */ 351, 103, 103, 473, 474, 12, 13, 33, 104, 35, /* 140 */ 140, 141, 346, 54, 55, 427, 350, 429, 352, 370, /* 150 */ 432, 433, 434, 435, 436, 437, 377, 439, 35, 346, /* 160 */ 350, 351, 444, 350, 446, 352, 62, 350, 450, 451, /* 170 */ 170, 171, 68, 20, 350, 351, 176, 177, 360, 75, /* 180 */ 370, 67, 464, 48, 169, 0, 368, 377, 355, 356, /* 190 */ 472, 191, 21, 193, 370, 24, 25, 26, 27, 28, /* 200 */ 29, 30, 31, 32, 100, 67, 21, 103, 341, 24, /* 210 */ 25, 26, 27, 28, 29, 30, 31, 32, 351, 402, /* 220 */ 169, 404, 20, 223, 224, 0, 226, 227, 228, 229, /* 230 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, /* 240 */ 240, 241, 242, 243, 140, 141, 20, 380, 20, 24, /* 250 */ 25, 26, 27, 28, 29, 30, 31, 32, 391, 20, /* 260 */ 393, 22, 247, 248, 249, 250, 251, 252, 253, 254, /* 270 */ 255, 256, 257, 345, 170, 171, 348, 349, 8, 9, /* 280 */ 176, 177, 12, 13, 14, 15, 16, 135, 260, 260, /* 290 */ 20, 139, 53, 20, 427, 191, 429, 193, 247, 432, /* 300 */ 433, 434, 435, 436, 437, 175, 439, 172, 257, 442, /* 310 */ 378, 444, 445, 446, 179, 341, 193, 450, 451, 14, /* 320 */ 15, 16, 390, 170, 171, 351, 357, 223, 224, 103, /* 330 */ 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, /* 340 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 12, /* 350 */ 13, 382, 200, 388, 380, 203, 391, 20, 206, 22, /* 360 */ 208, 100, 20, 49, 39, 391, 20, 393, 140, 141, /* 370 */ 33, 57, 35, 351, 60, 61, 103, 116, 117, 118, /* 380 */ 119, 120, 121, 122, 123, 124, 125, 3, 127, 128, /* 390 */ 129, 130, 131, 132, 133, 265, 266, 267, 411, 62, /* 400 */ 411, 427, 380, 429, 20, 68, 432, 433, 434, 435, /* 410 */ 436, 437, 75, 439, 70, 71, 72, 62, 444, 115, /* 420 */ 446, 77, 78, 79, 450, 451, 37, 83, 244, 341, /* 430 */ 355, 356, 88, 89, 90, 91, 431, 100, 94, 351, /* 440 */ 103, 137, 172, 371, 4, 458, 472, 458, 461, 103, /* 450 */ 461, 379, 380, 12, 13, 14, 434, 102, 350, 19, /* 460 */ 105, 20, 457, 22, 477, 478, 477, 478, 380, 482, /* 470 */ 483, 482, 483, 33, 33, 431, 35, 140, 141, 391, /* 480 */ 338, 393, 140, 141, 350, 351, 8, 9, 104, 49, /* 490 */ 12, 13, 14, 15, 16, 106, 56, 108, 109, 341, /* 500 */ 111, 457, 62, 62, 115, 350, 351, 170, 171, 351, /* 510 */ 402, 353, 404, 176, 177, 427, 75, 429, 176, 177, /* 520 */ 432, 433, 434, 435, 436, 437, 137, 439, 191, 380, /* 530 */ 193, 397, 387, 260, 446, 386, 350, 351, 380, 451, /* 540 */ 20, 100, 102, 394, 103, 105, 244, 4, 246, 391, /* 550 */ 20, 393, 397, 411, 350, 351, 172, 341, 416, 35, /* 560 */ 223, 224, 350, 226, 227, 228, 229, 230, 231, 232, /* 570 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, /* 580 */ 243, 140, 141, 21, 259, 427, 43, 429, 45, 46, /* 590 */ 432, 433, 434, 435, 436, 437, 34, 439, 36, 75, /* 600 */ 458, 397, 444, 461, 446, 341, 260, 391, 450, 451, /* 610 */ 0, 170, 171, 20, 402, 22, 404, 176, 177, 477, /* 620 */ 478, 364, 365, 22, 482, 483, 103, 33, 35, 114, /* 630 */ 350, 351, 191, 0, 193, 367, 35, 350, 351, 453, /* 640 */ 454, 455, 456, 49, 458, 459, 53, 134, 341, 381, /* 650 */ 370, 57, 58, 59, 60, 391, 62, 370, 351, 391, /* 660 */ 353, 183, 364, 365, 223, 224, 75, 226, 227, 228, /* 670 */ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, /* 680 */ 239, 240, 241, 242, 243, 12, 13, 380, 84, 350, /* 690 */ 351, 114, 172, 20, 431, 22, 102, 429, 391, 105, /* 700 */ 393, 100, 172, 70, 71, 72, 33, 439, 35, 370, /* 710 */ 77, 78, 79, 190, 411, 192, 83, 204, 205, 416, /* 720 */ 457, 88, 89, 90, 91, 8, 9, 94, 103, 12, /* 730 */ 13, 14, 15, 16, 427, 62, 429, 411, 186, 432, /* 740 */ 433, 434, 435, 436, 437, 222, 439, 44, 75, 145, /* 750 */ 146, 444, 389, 446, 387, 392, 393, 450, 451, 350, /* 760 */ 351, 458, 371, 285, 461, 213, 214, 173, 174, 159, /* 770 */ 379, 380, 168, 100, 180, 181, 103, 223, 168, 370, /* 780 */ 477, 478, 0, 260, 458, 482, 483, 461, 380, 12, /* 790 */ 13, 379, 380, 199, 386, 341, 341, 20, 380, 22, /* 800 */ 350, 351, 394, 477, 478, 380, 351, 104, 482, 483, /* 810 */ 33, 386, 35, 140, 141, 350, 351, 14, 400, 394, /* 820 */ 370, 104, 0, 20, 270, 271, 272, 273, 274, 275, /* 830 */ 276, 458, 375, 371, 461, 380, 341, 350, 351, 62, /* 840 */ 3, 379, 380, 170, 171, 391, 391, 75, 393, 176, /* 850 */ 177, 478, 75, 8, 9, 482, 483, 12, 13, 14, /* 860 */ 15, 16, 2, 417, 191, 0, 193, 388, 8, 9, /* 870 */ 391, 368, 12, 13, 14, 15, 16, 100, 350, 351, /* 880 */ 103, 424, 427, 341, 429, 260, 391, 432, 433, 434, /* 890 */ 435, 436, 437, 351, 439, 353, 223, 224, 370, 226, /* 900 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, /* 910 */ 237, 238, 239, 240, 241, 242, 243, 140, 141, 454, /* 920 */ 455, 456, 380, 458, 459, 359, 443, 357, 445, 4, /* 930 */ 350, 351, 67, 391, 443, 393, 445, 115, 342, 484, /* 940 */ 485, 454, 455, 456, 374, 458, 459, 170, 171, 104, /* 950 */ 370, 385, 382, 176, 177, 486, 134, 135, 136, 137, /* 960 */ 138, 139, 350, 351, 388, 350, 351, 391, 191, 427, /* 970 */ 193, 429, 401, 170, 432, 433, 434, 435, 436, 437, /* 980 */ 47, 439, 370, 14, 2, 370, 444, 0, 446, 20, /* 990 */ 8, 9, 450, 451, 12, 13, 14, 15, 16, 217, /* 1000 */ 223, 224, 0, 226, 227, 228, 229, 230, 231, 232, /* 1010 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, /* 1020 */ 243, 380, 18, 18, 20, 350, 351, 386, 23, 350, /* 1030 */ 351, 27, 350, 351, 30, 394, 103, 33, 350, 351, /* 1040 */ 1, 2, 37, 38, 20, 370, 41, 350, 351, 370, /* 1050 */ 22, 469, 370, 49, 341, 51, 372, 52, 370, 375, /* 1060 */ 56, 45, 46, 35, 341, 341, 354, 370, 63, 64, /* 1070 */ 65, 66, 70, 71, 72, 73, 74, 341, 76, 77, /* 1080 */ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, /* 1090 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 341, /* 1100 */ 350, 351, 115, 44, 391, 20, 102, 14, 103, 350, /* 1110 */ 351, 134, 135, 20, 391, 391, 139, 280, 114, 22, /* 1120 */ 370, 134, 135, 136, 137, 138, 139, 391, 100, 370, /* 1130 */ 8, 9, 35, 0, 12, 13, 14, 15, 16, 170, /* 1140 */ 350, 351, 42, 104, 44, 341, 341, 142, 144, 391, /* 1150 */ 341, 147, 148, 149, 150, 151, 152, 153, 154, 155, /* 1160 */ 156, 157, 158, 159, 160, 161, 162, 163, 341, 165, /* 1170 */ 166, 167, 75, 8, 9, 379, 380, 12, 13, 14, /* 1180 */ 15, 16, 49, 341, 341, 341, 261, 341, 183, 184, /* 1190 */ 185, 341, 115, 188, 170, 391, 391, 100, 379, 380, /* 1200 */ 391, 351, 366, 353, 341, 369, 201, 202, 379, 380, /* 1210 */ 44, 134, 135, 136, 137, 138, 139, 212, 391, 341, /* 1220 */ 215, 258, 259, 218, 219, 220, 221, 222, 341, 351, /* 1230 */ 380, 353, 0, 391, 391, 391, 458, 391, 42, 461, /* 1240 */ 44, 391, 114, 393, 454, 455, 456, 107, 458, 459, /* 1250 */ 110, 461, 341, 68, 391, 477, 478, 172, 380, 13, /* 1260 */ 482, 483, 351, 44, 353, 260, 380, 477, 478, 391, /* 1270 */ 104, 393, 482, 483, 379, 380, 44, 427, 391, 429, /* 1280 */ 394, 35, 432, 433, 434, 435, 436, 437, 191, 439, /* 1290 */ 193, 380, 164, 62, 444, 107, 446, 207, 110, 209, /* 1300 */ 450, 451, 391, 13, 393, 427, 107, 429, 0, 110, /* 1310 */ 432, 433, 434, 435, 436, 437, 107, 439, 44, 110, /* 1320 */ 223, 224, 444, 104, 446, 35, 44, 35, 450, 451, /* 1330 */ 22, 44, 140, 141, 35, 44, 105, 172, 427, 44, /* 1340 */ 429, 282, 341, 432, 433, 434, 435, 436, 437, 0, /* 1350 */ 439, 0, 351, 12, 13, 444, 475, 446, 44, 44, /* 1360 */ 367, 450, 451, 22, 44, 44, 44, 1, 2, 44, /* 1370 */ 341, 22, 103, 22, 33, 367, 35, 380, 104, 354, /* 1380 */ 351, 380, 113, 44, 44, 410, 104, 35, 13, 44, /* 1390 */ 44, 104, 391, 401, 393, 13, 0, 44, 349, 104, /* 1400 */ 44, 351, 390, 62, 401, 460, 479, 44, 223, 380, /* 1410 */ 35, 452, 463, 262, 49, 20, 75, 35, 104, 104, /* 1420 */ 391, 412, 393, 428, 104, 104, 104, 75, 427, 104, /* 1430 */ 429, 421, 341, 432, 433, 434, 435, 436, 437, 206, /* 1440 */ 439, 100, 351, 104, 104, 444, 50, 446, 426, 104, /* 1450 */ 104, 450, 451, 359, 421, 359, 427, 104, 429, 189, /* 1460 */ 104, 432, 433, 434, 435, 436, 437, 104, 439, 414, /* 1470 */ 20, 380, 351, 444, 42, 446, 398, 20, 351, 450, /* 1480 */ 451, 401, 391, 396, 393, 193, 398, 169, 20, 350, /* 1490 */ 398, 350, 193, 351, 396, 396, 350, 363, 101, 341, /* 1500 */ 99, 98, 350, 350, 350, 362, 361, 20, 48, 351, /* 1510 */ 343, 1, 343, 20, 359, 347, 421, 347, 427, 393, /* 1520 */ 429, 359, 20, 432, 433, 434, 435, 436, 437, 19, /* 1530 */ 439, 352, 191, 20, 193, 444, 413, 446, 380, 359, /* 1540 */ 359, 450, 451, 33, 350, 352, 359, 343, 359, 391, /* 1550 */ 359, 393, 380, 380, 380, 380, 380, 380, 380, 49, /* 1560 */ 350, 341, 391, 425, 223, 224, 343, 57, 58, 59, /* 1570 */ 60, 351, 62, 391, 391, 284, 103, 236, 237, 238, /* 1580 */ 239, 240, 241, 242, 210, 427, 423, 429, 197, 196, /* 1590 */ 432, 433, 434, 435, 436, 437, 357, 439, 393, 357, /* 1600 */ 380, 195, 412, 350, 446, 421, 420, 401, 450, 451, /* 1610 */ 268, 391, 102, 393, 419, 105, 418, 401, 391, 269, /* 1620 */ 406, 391, 182, 406, 341, 468, 391, 468, 391, 465, /* 1630 */ 470, 277, 471, 278, 351, 263, 279, 412, 259, 351, /* 1640 */ 20, 281, 283, 487, 286, 114, 431, 427, 138, 429, /* 1650 */ 352, 357, 432, 433, 434, 435, 436, 437, 357, 439, /* 1660 */ 20, 404, 406, 380, 391, 468, 446, 467, 466, 391, /* 1670 */ 450, 451, 391, 462, 391, 391, 393, 391, 406, 174, /* 1680 */ 391, 357, 481, 173, 375, 341, 357, 480, 403, 351, /* 1690 */ 180, 103, 449, 103, 383, 351, 391, 369, 350, 36, /* 1700 */ 357, 422, 0, 341, 407, 344, 373, 343, 415, 199, /* 1710 */ 427, 407, 429, 351, 0, 432, 433, 434, 435, 436, /* 1720 */ 437, 0, 439, 339, 380, 42, 0, 358, 35, 446, /* 1730 */ 216, 35, 35, 450, 451, 391, 35, 393, 216, 0, /* 1740 */ 373, 373, 380, 35, 35, 216, 0, 0, 216, 0, /* 1750 */ 35, 22, 0, 391, 35, 393, 211, 0, 199, 0, /* 1760 */ 199, 193, 200, 191, 341, 0, 0, 0, 187, 186, /* 1770 */ 0, 427, 0, 429, 351, 47, 432, 433, 434, 435, /* 1780 */ 436, 437, 438, 439, 440, 441, 0, 49, 35, 427, /* 1790 */ 0, 429, 47, 0, 432, 433, 434, 435, 436, 437, /* 1800 */ 42, 439, 0, 380, 159, 0, 35, 384, 0, 0, /* 1810 */ 47, 0, 0, 0, 391, 0, 393, 0, 0, 159, /* 1820 */ 0, 0, 341, 0, 0, 0, 0, 0, 0, 0, /* 1830 */ 0, 0, 351, 0, 0, 0, 474, 0, 0, 47, /* 1840 */ 0, 341, 42, 0, 0, 0, 0, 0, 0, 0, /* 1850 */ 427, 351, 429, 0, 22, 432, 433, 434, 435, 436, /* 1860 */ 437, 380, 439, 0, 0, 384, 143, 0, 0, 62, /* 1870 */ 48, 0, 391, 22, 393, 0, 22, 35, 62, 0, /* 1880 */ 380, 62, 0, 0, 48, 35, 0, 35, 49, 0, /* 1890 */ 49, 391, 35, 393, 39, 39, 35, 0, 39, 14, /* 1900 */ 0, 0, 42, 0, 39, 0, 40, 49, 427, 39, /* 1910 */ 429, 0, 39, 432, 433, 434, 435, 436, 437, 47, /* 1920 */ 439, 341, 44, 47, 47, 182, 0, 427, 0, 429, /* 1930 */ 0, 351, 432, 433, 434, 435, 436, 437, 69, 439, /* 1940 */ 0, 35, 341, 39, 49, 0, 39, 35, 49, 0, /* 1950 */ 35, 49, 351, 39, 0, 35, 39, 49, 0, 0, /* 1960 */ 380, 0, 0, 0, 0, 22, 35, 0, 35, 35, /* 1970 */ 35, 391, 35, 393, 35, 22, 476, 35, 0, 35, /* 1980 */ 44, 380, 44, 35, 0, 384, 112, 35, 22, 0, /* 1990 */ 110, 35, 391, 22, 393, 22, 0, 51, 0, 0, /* 2000 */ 35, 22, 20, 35, 35, 35, 0, 427, 341, 429, /* 2010 */ 35, 35, 432, 433, 434, 435, 436, 437, 351, 439, /* 2020 */ 104, 103, 103, 35, 22, 0, 22, 0, 427, 0, /* 2030 */ 429, 3, 264, 432, 433, 434, 435, 436, 437, 44, /* 2040 */ 439, 44, 48, 264, 103, 341, 3, 380, 48, 99, /* 2050 */ 47, 104, 44, 172, 103, 351, 101, 44, 391, 47, /* 2060 */ 393, 104, 172, 172, 104, 485, 341, 174, 172, 47, /* 2070 */ 178, 35, 35, 35, 44, 103, 351, 103, 44, 35, /* 2080 */ 103, 194, 198, 103, 380, 104, 35, 178, 384, 104, /* 2090 */ 104, 35, 44, 47, 427, 391, 429, 393, 39, 432, /* 2100 */ 433, 434, 435, 436, 437, 380, 439, 0, 441, 384, /* 2110 */ 0, 104, 47, 0, 104, 104, 391, 103, 393, 103, /* 2120 */ 39, 104, 103, 103, 341, 47, 103, 103, 113, 44, /* 2130 */ 2, 427, 101, 429, 351, 103, 432, 433, 434, 435, /* 2140 */ 436, 437, 101, 439, 22, 341, 258, 223, 47, 104, /* 2150 */ 103, 47, 427, 104, 429, 351, 173, 432, 433, 434, /* 2160 */ 435, 436, 437, 380, 439, 175, 245, 103, 22, 114, /* 2170 */ 104, 103, 103, 103, 391, 104, 393, 264, 104, 35, /* 2180 */ 35, 104, 103, 35, 380, 103, 35, 104, 104, 103, /* 2190 */ 35, 103, 35, 104, 103, 391, 104, 393, 35, 103, /* 2200 */ 22, 126, 126, 341, 44, 115, 126, 35, 103, 103, /* 2210 */ 427, 103, 429, 351, 22, 432, 433, 434, 435, 436, /* 2220 */ 437, 126, 439, 69, 35, 35, 225, 68, 35, 35, /* 2230 */ 35, 427, 35, 429, 35, 341, 432, 433, 434, 435, /* 2240 */ 436, 437, 380, 439, 35, 351, 75, 97, 44, 22, /* 2250 */ 35, 35, 35, 391, 35, 393, 35, 35, 75, 35, /* 2260 */ 35, 35, 22, 341, 35, 35, 35, 0, 35, 49, /* 2270 */ 0, 39, 35, 351, 380, 0, 35, 49, 39, 0, /* 2280 */ 35, 39, 39, 49, 49, 391, 0, 393, 35, 427, /* 2290 */ 35, 429, 0, 22, 432, 433, 434, 435, 436, 437, /* 2300 */ 22, 439, 380, 21, 20, 22, 21, 488, 488, 488, /* 2310 */ 488, 488, 488, 391, 488, 393, 488, 488, 488, 488, /* 2320 */ 488, 427, 488, 429, 488, 488, 432, 433, 434, 435, /* 2330 */ 436, 437, 488, 439, 341, 488, 488, 488, 488, 488, /* 2340 */ 488, 488, 488, 488, 351, 488, 488, 488, 488, 427, /* 2350 */ 341, 429, 488, 488, 432, 433, 434, 435, 436, 437, /* 2360 */ 351, 439, 488, 488, 488, 488, 488, 488, 488, 488, /* 2370 */ 488, 488, 488, 380, 488, 488, 488, 488, 488, 488, /* 2380 */ 488, 488, 488, 488, 391, 488, 393, 488, 488, 380, /* 2390 */ 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, /* 2400 */ 391, 488, 393, 488, 488, 488, 488, 488, 341, 488, /* 2410 */ 488, 488, 488, 488, 488, 488, 488, 488, 351, 488, /* 2420 */ 427, 488, 429, 488, 488, 432, 433, 434, 435, 436, /* 2430 */ 437, 488, 439, 488, 488, 488, 427, 488, 429, 341, /* 2440 */ 488, 432, 433, 434, 435, 436, 437, 380, 439, 351, /* 2450 */ 488, 488, 488, 488, 488, 488, 488, 488, 391, 488, /* 2460 */ 393, 488, 488, 488, 488, 488, 341, 488, 488, 488, /* 2470 */ 488, 488, 488, 488, 488, 488, 351, 488, 380, 488, /* 2480 */ 488, 488, 488, 488, 488, 488, 488, 488, 488, 391, /* 2490 */ 488, 393, 488, 488, 427, 488, 429, 341, 488, 432, /* 2500 */ 433, 434, 435, 436, 437, 380, 439, 351, 488, 488, /* 2510 */ 488, 488, 488, 488, 488, 488, 391, 488, 393, 488, /* 2520 */ 488, 488, 488, 488, 488, 427, 488, 429, 488, 488, /* 2530 */ 432, 433, 434, 435, 436, 437, 380, 439, 488, 488, /* 2540 */ 488, 488, 488, 488, 488, 488, 488, 391, 488, 393, /* 2550 */ 488, 488, 427, 488, 429, 341, 488, 432, 433, 434, /* 2560 */ 435, 436, 437, 488, 439, 351, 488, 488, 488, 488, /* 2570 */ 488, 488, 488, 488, 488, 488, 488, 341, 488, 488, /* 2580 */ 488, 488, 488, 427, 488, 429, 488, 351, 432, 433, /* 2590 */ 434, 435, 436, 437, 380, 439, 488, 488, 488, 488, /* 2600 */ 488, 488, 488, 488, 488, 391, 488, 393, 488, 488, /* 2610 */ 488, 488, 488, 488, 488, 488, 380, 488, 488, 488, /* 2620 */ 488, 488, 488, 488, 488, 488, 488, 391, 488, 393, /* 2630 */ 488, 488, 488, 488, 488, 488, 488, 488, 488, 488, /* 2640 */ 488, 427, 488, 429, 341, 488, 432, 433, 434, 435, /* 2650 */ 436, 437, 488, 439, 351, 488, 488, 488, 488, 488, /* 2660 */ 488, 488, 488, 427, 488, 429, 488, 488, 432, 433, /* 2670 */ 434, 435, 436, 437, 488, 439, 341, 488, 488, 488, /* 2680 */ 488, 488, 488, 380, 488, 488, 351, 488, 488, 488, /* 2690 */ 488, 488, 488, 488, 391, 488, 393, 488, 488, 488, /* 2700 */ 488, 488, 341, 488, 488, 488, 488, 488, 488, 488, /* 2710 */ 488, 488, 351, 488, 488, 380, 488, 488, 488, 488, /* 2720 */ 488, 488, 488, 488, 488, 488, 391, 488, 393, 488, /* 2730 */ 427, 488, 429, 488, 488, 432, 433, 434, 435, 436, /* 2740 */ 437, 380, 439, 488, 488, 488, 488, 488, 488, 488, /* 2750 */ 488, 488, 391, 488, 393, 488, 488, 488, 488, 488, /* 2760 */ 488, 488, 427, 488, 429, 488, 488, 432, 433, 434, /* 2770 */ 435, 436, 437, 488, 439, 488, 488, 488, 488, 488, /* 2780 */ 488, 341, 488, 488, 488, 488, 488, 488, 427, 488, /* 2790 */ 429, 351, 488, 432, 433, 434, 435, 436, 437, 488, /* 2800 */ 439, 488, 341, 488, 488, 488, 488, 488, 488, 488, /* 2810 */ 488, 488, 351, 488, 488, 488, 488, 488, 341, 488, /* 2820 */ 380, 488, 488, 488, 488, 488, 488, 488, 351, 488, /* 2830 */ 488, 391, 488, 393, 488, 488, 488, 488, 488, 341, /* 2840 */ 488, 380, 488, 488, 488, 488, 488, 488, 488, 351, /* 2850 */ 488, 488, 391, 488, 393, 488, 488, 380, 488, 488, /* 2860 */ 488, 488, 488, 488, 488, 488, 488, 427, 391, 429, /* 2870 */ 393, 488, 432, 433, 434, 435, 436, 437, 380, 439, /* 2880 */ 488, 488, 488, 488, 488, 488, 488, 488, 427, 391, /* 2890 */ 429, 393, 488, 432, 433, 434, 435, 436, 437, 488, /* 2900 */ 439, 488, 488, 488, 427, 488, 429, 341, 488, 432, /* 2910 */ 433, 434, 435, 436, 437, 488, 439, 351, 488, 488, /* 2920 */ 488, 488, 488, 488, 488, 427, 488, 429, 488, 341, /* 2930 */ 432, 433, 434, 435, 436, 437, 488, 439, 488, 351, /* 2940 */ 488, 488, 488, 488, 488, 488, 380, 488, 488, 488, /* 2950 */ 488, 488, 488, 488, 488, 488, 488, 391, 488, 393, /* 2960 */ 488, 488, 488, 488, 488, 488, 488, 488, 380, 488, /* 2970 */ 488, 488, 488, 488, 488, 488, 488, 488, 488, 391, /* 2980 */ 488, 393, 488, 488, 488, 488, 488, 488, 488, 488, /* 2990 */ 488, 488, 488, 427, 488, 429, 488, 488, 432, 433, /* 3000 */ 434, 435, 436, 437, 488, 439, 488, 488, 488, 488, /* 3010 */ 488, 488, 488, 488, 488, 427, 488, 429, 488, 488, /* 3020 */ 432, 433, 434, 435, 436, 437, 488, 439, 338, 338, /* 3030 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3040 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3050 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3060 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3070 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3080 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3090 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3100 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3110 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3120 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3130 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3140 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3150 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3160 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3170 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3180 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3190 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3200 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3210 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3220 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3230 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3240 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3250 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3260 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3270 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3280 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3290 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3300 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3310 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3320 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3330 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3340 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3350 */ 338, 338, 338, 338, 338, 338, 338, 338, 338, 338, /* 3360 */ 338, 338, 338, 338, 338, 338, }; #define YY_SHIFT_COUNT (799) #define YY_SHIFT_MIN (0) #define YY_SHIFT_MAX (2292) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 1005, 0, 104, 0, 337, 337, 337, 337, 337, 337, /* 10 */ 337, 337, 337, 337, 337, 337, 441, 673, 673, 777, /* 20 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, /* 30 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, /* 40 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, /* 50 */ 673, 273, 346, 523, 226, 29, 625, 29, 226, 226, /* 60 */ 29, 1341, 29, 1341, 1341, 28, 29, 43, 342, 59, /* 70 */ 59, 342, 543, 543, 153, 228, 70, 70, 59, 59, /* 80 */ 59, 59, 59, 59, 59, 59, 59, 59, 90, 59, /* 90 */ 59, 114, 43, 59, 59, 202, 43, 59, 90, 59, /* 100 */ 90, 43, 59, 59, 43, 59, 43, 43, 43, 59, /* 110 */ 138, 1004, 15, 15, 344, 171, 1097, 1097, 1097, 1097, /* 120 */ 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, 1097, /* 130 */ 1097, 1097, 1097, 1097, 1097, 389, 384, 153, 228, 89, /* 140 */ 89, 524, 520, 520, 520, 865, 302, 302, 524, 114, /* 150 */ 43, 43, 43, 43, 515, 184, 43, 591, 43, 591, /* 160 */ 591, 577, 772, 261, 261, 261, 261, 1510, 633, 185, /* 170 */ 270, 478, 554, 593, 130, 123, 123, 803, 135, 969, /* 180 */ 239, 530, 1016, 1093, 304, 1085, 963, 325, 837, 963, /* 190 */ 1100, 925, 1024, 1151, 1365, 1395, 1233, 114, 1395, 114, /* 200 */ 1270, 1450, 1432, 1457, 1450, 1432, 1318, 1468, 1450, 1468, /* 210 */ 1432, 1318, 1318, 1397, 1401, 1468, 1403, 1468, 1468, 1468, /* 220 */ 1487, 1460, 1487, 1460, 1395, 114, 1493, 114, 1502, 1513, /* 230 */ 114, 1502, 114, 114, 114, 1468, 114, 1487, 43, 43, /* 240 */ 43, 43, 43, 43, 43, 1468, 1487, 591, 591, 591, /* 250 */ 1374, 1473, 1395, 138, 1391, 1393, 1493, 138, 1406, 1151, /* 260 */ 1468, 1457, 1457, 591, 1350, 1342, 591, 1350, 1342, 591, /* 270 */ 591, 43, 1354, 1440, 1350, 1357, 1355, 1372, 1151, 1358, /* 280 */ 1359, 1360, 1379, 1450, 1620, 1531, 1502, 138, 138, 1640, /* 290 */ 1342, 591, 591, 591, 591, 591, 1342, 591, 1505, 138, /* 300 */ 577, 138, 1450, 1588, 1590, 591, 772, 1468, 138, 1663, /* 310 */ 1487, 3028, 3028, 3028, 3028, 3028, 3028, 3028, 3028, 3028, /* 320 */ 1002, 594, 225, 34, 440, 717, 845, 822, 860, 982, /* 330 */ 1165, 987, 1122, 1122, 1122, 1122, 1122, 1122, 1122, 1122, /* 340 */ 1122, 1077, 152, 107, 107, 604, 314, 552, 610, 355, /* 350 */ 601, 1028, 562, 513, 977, 977, 305, 1039, 51, 305, /* 360 */ 305, 305, 1133, 782, 703, 86, 1196, 1128, 1232, 1140, /* 370 */ 1188, 1199, 1209, 1246, 1290, 1308, 1349, 1351, 1090, 1166, /* 380 */ 1219, 1231, 1274, 1282, 1287, 1192, 1059, 1291, 1295, 1314, /* 390 */ 1315, 1320, 1321, 1322, 1366, 1325, 1185, 1339, 933, 1340, /* 400 */ 1345, 1346, 1353, 1356, 1363, 1269, 1292, 1299, 1375, 1382, /* 410 */ 1352, 1396, 1702, 1714, 1721, 1683, 1726, 1693, 1514, 1696, /* 420 */ 1697, 1701, 1522, 1739, 1708, 1709, 1529, 1746, 1532, 1747, /* 430 */ 1715, 1749, 1729, 1752, 1719, 1545, 1757, 1559, 1759, 1561, /* 440 */ 1562, 1568, 1572, 1765, 1766, 1767, 1581, 1583, 1770, 1772, /* 450 */ 1728, 1786, 1753, 1738, 1790, 1745, 1793, 1758, 1802, 1808, /* 460 */ 1809, 1763, 1811, 1812, 1813, 1815, 1817, 1818, 1645, 1771, /* 470 */ 1805, 1660, 1820, 1821, 1823, 1824, 1825, 1826, 1827, 1828, /* 480 */ 1829, 1830, 1831, 1833, 1834, 1835, 1837, 1838, 1792, 1840, /* 490 */ 1800, 1843, 1844, 1845, 1846, 1847, 1848, 1832, 1849, 1853, /* 500 */ 1863, 1723, 1864, 1867, 1851, 1822, 1854, 1836, 1868, 1807, /* 510 */ 1842, 1871, 1816, 1875, 1819, 1879, 1882, 1850, 1839, 1855, /* 520 */ 1883, 1852, 1841, 1856, 1886, 1857, 1858, 1859, 1889, 1861, /* 530 */ 1897, 1860, 1865, 1878, 1872, 1876, 1885, 1877, 1900, 1866, /* 540 */ 1870, 1901, 1903, 1905, 1873, 1743, 1911, 1926, 1928, 1869, /* 550 */ 1930, 1940, 1906, 1895, 1904, 1945, 1912, 1899, 1907, 1949, /* 560 */ 1915, 1902, 1914, 1954, 1920, 1908, 1917, 1958, 1959, 1961, /* 570 */ 1962, 1963, 1964, 1874, 1880, 1931, 1943, 1967, 1933, 1934, /* 580 */ 1935, 1937, 1939, 1942, 1944, 1936, 1938, 1948, 1952, 1953, /* 590 */ 1956, 1978, 1966, 1984, 1971, 1946, 1989, 1973, 1965, 1996, /* 600 */ 1968, 1998, 1969, 1999, 1979, 1982, 1970, 1975, 1976, 1916, /* 610 */ 1918, 2006, 1881, 1919, 1884, 1988, 2002, 2025, 1887, 2004, /* 620 */ 1890, 1893, 2027, 2029, 1891, 1892, 1896, 1909, 2028, 1995, /* 630 */ 1768, 1941, 1947, 1951, 1994, 1955, 2000, 1950, 1957, 1997, /* 640 */ 2008, 1960, 1972, 1974, 1977, 1981, 2013, 2003, 2012, 1980, /* 650 */ 2030, 1779, 1985, 1986, 2043, 2034, 1913, 2036, 2037, 2038, /* 660 */ 2044, 2051, 2056, 2007, 2010, 2022, 1888, 2048, 2046, 2107, /* 670 */ 2110, 2014, 2059, 1872, 2065, 2016, 2011, 2017, 2019, 2020, /* 680 */ 1990, 2023, 2113, 2081, 1983, 2024, 2015, 1872, 2078, 2085, /* 690 */ 2031, 1921, 2041, 2128, 2122, 1924, 2032, 2045, 2047, 2049, /* 700 */ 2064, 2066, 2101, 2068, 2069, 2104, 2071, 2146, 2001, 2070, /* 710 */ 2055, 2074, 2144, 2145, 2079, 2077, 2148, 2082, 2083, 2151, /* 720 */ 2086, 2084, 2155, 2088, 2089, 2157, 2091, 2092, 2163, 2096, /* 730 */ 2075, 2076, 2080, 2095, 2178, 2090, 2105, 2160, 2106, 2172, /* 740 */ 2108, 2160, 2160, 2192, 2154, 2159, 2189, 2190, 2193, 2194, /* 750 */ 2195, 2197, 2199, 2209, 2171, 2150, 2204, 2215, 2216, 2217, /* 760 */ 2227, 2219, 2221, 2222, 2183, 1936, 2224, 1938, 2225, 2226, /* 770 */ 2229, 2230, 2240, 2231, 2267, 2233, 2220, 2232, 2270, 2237, /* 780 */ 2228, 2239, 2275, 2241, 2234, 2242, 2279, 2245, 2235, 2243, /* 790 */ 2286, 2253, 2255, 2292, 2271, 2282, 2278, 2283, 2285, 2284, }; #define YY_REDUCE_COUNT (319) #define YY_REDUCE_MIN (-406) #define YY_REDUCE_MAX (2588) static const short yy_reduce_ofst[] = { /* 0 */ 142, -282, -133, -26, 158, 307, 542, 850, 878, 911, /* 10 */ 1001, 1029, 1091, 1158, 1220, 1283, 1344, -340, 455, 88, /* 20 */ 1362, 1423, 1481, 1500, 1580, 1601, 1667, 1704, 1725, 1783, /* 30 */ 1804, 1862, 1894, 1922, 1993, 2009, 2067, 2098, 2125, 2156, /* 40 */ 2214, 2236, 2303, 2335, 2361, 2440, 2461, 2477, 2498, 2566, /* 50 */ 2588, 790, -376, 303, 186, -406, -13, -11, 465, 487, /* 60 */ 326, -365, 778, -311, 268, -370, 373, -313, -348, -221, /* 70 */ -190, -372, -342, -72, -361, 363, -204, -187, -176, 280, /* 80 */ 287, 339, 134, 155, 409, 450, 528, 204, -183, 580, /* 90 */ 612, -351, 149, 675, 679, 22, 408, 682, 108, 688, /* 100 */ 212, 72, 615, 697, 425, 750, 391, 641, 462, 759, /* 110 */ 570, -341, -343, -343, -182, -325, 216, 264, 454, 495, /* 120 */ 713, 723, 724, 736, 758, 804, 805, 809, 827, 842, /* 130 */ 843, 844, 846, 863, 887, -68, 5, 418, -278, -167, /* 140 */ 75, 257, 5, 44, 263, -31, 483, 491, 298, 566, /* 150 */ 412, 796, 819, 829, 457, -401, 895, -35, 886, 479, /* 160 */ 576, 684, 836, -387, 145, 367, -387, 446, 503, 596, /* 170 */ 571, 469, 881, 712, 582, 993, 1008, 997, 975, 997, /* 180 */ 1025, 992, 1049, 1050, 1012, 1003, 945, 945, 927, 945, /* 190 */ 959, 949, 997, 1009, 995, 1010, 1022, 1094, 1033, 1096, /* 200 */ 1055, 1121, 1078, 1080, 1127, 1088, 1087, 1139, 1142, 1141, /* 210 */ 1092, 1098, 1099, 1134, 1143, 1146, 1145, 1152, 1153, 1154, /* 220 */ 1167, 1168, 1169, 1170, 1095, 1155, 1126, 1162, 1179, 1123, /* 230 */ 1180, 1193, 1181, 1187, 1189, 1194, 1191, 1204, 1172, 1173, /* 240 */ 1174, 1175, 1176, 1177, 1178, 1210, 1223, 1171, 1182, 1183, /* 250 */ 1138, 1163, 1184, 1239, 1186, 1195, 1205, 1242, 1198, 1190, /* 260 */ 1253, 1206, 1216, 1227, 1157, 1214, 1230, 1159, 1217, 1235, /* 270 */ 1237, 997, 1161, 1160, 1197, 1200, 1202, 1164, 1225, 1156, /* 280 */ 1201, 1207, 945, 1288, 1215, 1211, 1298, 1294, 1301, 1257, /* 290 */ 1256, 1273, 1278, 1281, 1284, 1286, 1272, 1289, 1285, 1324, /* 300 */ 1309, 1329, 1338, 1243, 1311, 1305, 1328, 1348, 1343, 1361, /* 310 */ 1364, 1293, 1279, 1297, 1304, 1333, 1367, 1368, 1369, 1384, }; static const YYACTIONTYPE yy_default[] = { /* 0 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 10 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 20 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 30 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 40 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 50 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 60 */ 2096, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 70 */ 1784, 1784, 1784, 1784, 2069, 1784, 1784, 1784, 1784, 1784, /* 80 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 90 */ 1784, 1873, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 100 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 110 */ 1871, 2062, 2288, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 120 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 130 */ 1784, 1784, 1784, 1784, 1784, 1784, 2300, 1784, 1784, 1847, /* 140 */ 1847, 1784, 2300, 2300, 2300, 1871, 2260, 2260, 1784, 1873, /* 150 */ 1784, 1784, 1784, 1784, 2130, 1784, 1784, 1784, 1784, 1784, /* 160 */ 1784, 1994, 1784, 2018, 1784, 1784, 1784, 2122, 1784, 1784, /* 170 */ 2327, 2384, 1784, 1784, 2330, 1784, 1784, 1784, 1784, 1784, /* 180 */ 1784, 2074, 1784, 1784, 1946, 2317, 2292, 2306, 2368, 2293, /* 190 */ 2290, 2311, 1784, 2321, 1784, 1784, 2144, 1873, 1784, 1873, /* 200 */ 2109, 1784, 2067, 1784, 1784, 2067, 2064, 1784, 1784, 1784, /* 210 */ 2067, 2064, 2064, 1935, 1931, 1784, 1929, 1784, 1784, 1784, /* 220 */ 1784, 1831, 1784, 1831, 1784, 1873, 1784, 1873, 1784, 1784, /* 230 */ 1873, 1784, 1873, 1873, 1873, 1784, 1873, 1784, 1784, 1784, /* 240 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 250 */ 2142, 2128, 1784, 1871, 2120, 2118, 1784, 1871, 2116, 2321, /* 260 */ 1784, 1784, 1784, 1784, 2338, 2336, 1784, 2338, 2336, 1784, /* 270 */ 1784, 1784, 2352, 2348, 2338, 2357, 2354, 2323, 2321, 2387, /* 280 */ 2374, 2370, 2306, 1784, 1784, 2309, 1784, 1871, 1871, 1784, /* 290 */ 2336, 1784, 1784, 1784, 1784, 1784, 2336, 1784, 1784, 1871, /* 300 */ 1784, 1871, 1784, 1784, 1962, 1784, 1784, 1784, 1871, 1816, /* 310 */ 1784, 2111, 2133, 2092, 2092, 1997, 1997, 1997, 1874, 1789, /* 320 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 330 */ 1784, 1784, 2351, 2350, 2215, 1784, 2264, 2263, 2262, 2253, /* 340 */ 2214, 1958, 1784, 2213, 2212, 1784, 1784, 1784, 1784, 1784, /* 350 */ 1784, 1784, 1784, 1784, 2083, 2082, 2206, 1784, 1784, 2207, /* 360 */ 2205, 2204, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 370 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 380 */ 1784, 1784, 1784, 1784, 1784, 1784, 2371, 2375, 1784, 1784, /* 390 */ 1784, 1784, 1784, 1784, 2289, 1784, 1784, 1784, 2188, 1784, /* 400 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 410 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 420 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 430 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 440 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 450 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 460 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 470 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 480 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 490 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 500 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 510 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 520 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 530 */ 1784, 1784, 1784, 1821, 2193, 1784, 1784, 1784, 1784, 1784, /* 540 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 550 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 560 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 570 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 580 */ 1784, 1784, 1784, 1784, 1784, 1912, 1911, 1784, 1784, 1784, /* 590 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 600 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 2197, /* 610 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 620 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 2367, 2324, /* 630 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 640 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 2188, 1784, /* 650 */ 2349, 1784, 1784, 2365, 1784, 2369, 1784, 1784, 1784, 1784, /* 660 */ 1784, 1784, 1784, 2299, 2295, 1784, 1784, 2291, 1784, 1784, /* 670 */ 1784, 1784, 1784, 2196, 1784, 1784, 1784, 1784, 1784, 1784, /* 680 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 2187, 1784, 2250, /* 690 */ 1784, 1784, 1784, 2284, 1784, 1784, 2235, 1784, 1784, 1784, /* 700 */ 1784, 1784, 1784, 1784, 1784, 1784, 2197, 1784, 2200, 1784, /* 710 */ 1784, 1784, 1784, 1784, 1991, 1784, 1784, 1784, 1784, 1784, /* 720 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 730 */ 1975, 1973, 1972, 1971, 1784, 1968, 1784, 2004, 1784, 1784, /* 740 */ 1784, 2000, 1999, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 750 */ 1784, 1784, 1784, 1784, 1784, 1784, 1892, 1784, 1784, 1784, /* 760 */ 1784, 1784, 1784, 1784, 1784, 1884, 1784, 1883, 1784, 1784, /* 770 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 780 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, /* 790 */ 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, 1784, }; /********** 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, /* USER => nothing */ 0, /* ENABLE => nothing */ 0, /* NK_INTEGER => nothing */ 0, /* SYSINFO => nothing */ 0, /* DROP => nothing */ 0, /* GRANT => nothing */ 0, /* ON => nothing */ 0, /* TO => nothing */ 0, /* REVOKE => nothing */ 0, /* FROM => nothing */ 0, /* SUBSCRIBE => nothing */ 0, /* NK_COMMA => 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, /* NK_COLON => nothing */ 0, /* MAX_SPEED => nothing */ 0, /* START => nothing */ 0, /* TIMESTAMP => nothing */ 287, /* END => ABORT */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ 0, /* STABLE => nothing */ 0, /* ADD => 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, /* COMMENT => 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, /* 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, /* LIKE => nothing */ 0, /* TBNAME => nothing */ 0, /* QTAGS => nothing */ 0, /* AS => 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_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, /* DISTINCT => nothing */ 0, /* WHERE => nothing */ 0, /* PARTITION => nothing */ 0, /* BY => nothing */ 0, /* SESSION => nothing */ 0, /* STATE_WINDOW => nothing */ 0, /* EVENT_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 */ 287, /* AFTER => ABORT */ 287, /* ATTACH => ABORT */ 287, /* BEFORE => ABORT */ 287, /* BEGIN => ABORT */ 287, /* BITAND => ABORT */ 287, /* BITNOT => ABORT */ 287, /* BITOR => ABORT */ 287, /* BLOCKS => ABORT */ 287, /* CHANGE => ABORT */ 287, /* COMMA => ABORT */ 287, /* CONCAT => ABORT */ 287, /* CONFLICT => ABORT */ 287, /* COPY => ABORT */ 287, /* DEFERRED => ABORT */ 287, /* DELIMITERS => ABORT */ 287, /* DETACH => ABORT */ 287, /* DIVIDE => ABORT */ 287, /* DOT => ABORT */ 287, /* EACH => ABORT */ 287, /* FAIL => ABORT */ 287, /* FILE => ABORT */ 287, /* FOR => ABORT */ 287, /* GLOB => ABORT */ 287, /* ID => ABORT */ 287, /* IMMEDIATE => ABORT */ 287, /* IMPORT => ABORT */ 287, /* INITIALLY => ABORT */ 287, /* INSTEAD => ABORT */ 287, /* ISNULL => ABORT */ 287, /* KEY => ABORT */ 287, /* MODULES => ABORT */ 287, /* NK_BITNOT => ABORT */ 287, /* NK_SEMI => ABORT */ 287, /* NOTNULL => ABORT */ 287, /* OF => ABORT */ 287, /* PLUS => ABORT */ 287, /* PRIVILEGE => ABORT */ 287, /* RAISE => ABORT */ 287, /* RESTRICT => ABORT */ 287, /* ROW => ABORT */ 287, /* SEMI => ABORT */ 287, /* STAR => ABORT */ 287, /* STATEMENT => ABORT */ 287, /* STRICT => ABORT */ 287, /* STRING => ABORT */ 287, /* TIMES => ABORT */ 287, /* VALUES => ABORT */ 287, /* VARIABLE => ABORT */ 287, /* VIEW => ABORT */ 287, /* 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 */ "USER", /* 34 */ "ENABLE", /* 35 */ "NK_INTEGER", /* 36 */ "SYSINFO", /* 37 */ "DROP", /* 38 */ "GRANT", /* 39 */ "ON", /* 40 */ "TO", /* 41 */ "REVOKE", /* 42 */ "FROM", /* 43 */ "SUBSCRIBE", /* 44 */ "NK_COMMA", /* 45 */ "READ", /* 46 */ "WRITE", /* 47 */ "NK_DOT", /* 48 */ "WITH", /* 49 */ "DNODE", /* 50 */ "PORT", /* 51 */ "DNODES", /* 52 */ "RESTORE", /* 53 */ "NK_IPTOKEN", /* 54 */ "FORCE", /* 55 */ "UNSAFE", /* 56 */ "LOCAL", /* 57 */ "QNODE", /* 58 */ "BNODE", /* 59 */ "SNODE", /* 60 */ "MNODE", /* 61 */ "VNODE", /* 62 */ "DATABASE", /* 63 */ "USE", /* 64 */ "FLUSH", /* 65 */ "TRIM", /* 66 */ "COMPACT", /* 67 */ "IF", /* 68 */ "NOT", /* 69 */ "EXISTS", /* 70 */ "BUFFER", /* 71 */ "CACHEMODEL", /* 72 */ "CACHESIZE", /* 73 */ "COMP", /* 74 */ "DURATION", /* 75 */ "NK_VARIABLE", /* 76 */ "MAXROWS", /* 77 */ "MINROWS", /* 78 */ "KEEP", /* 79 */ "PAGES", /* 80 */ "PAGESIZE", /* 81 */ "TSDB_PAGESIZE", /* 82 */ "PRECISION", /* 83 */ "REPLICA", /* 84 */ "VGROUPS", /* 85 */ "SINGLE_STABLE", /* 86 */ "RETENTIONS", /* 87 */ "SCHEMALESS", /* 88 */ "WAL_LEVEL", /* 89 */ "WAL_FSYNC_PERIOD", /* 90 */ "WAL_RETENTION_PERIOD", /* 91 */ "WAL_RETENTION_SIZE", /* 92 */ "WAL_ROLL_PERIOD", /* 93 */ "WAL_SEGMENT_SIZE", /* 94 */ "STT_TRIGGER", /* 95 */ "TABLE_PREFIX", /* 96 */ "TABLE_SUFFIX", /* 97 */ "NK_COLON", /* 98 */ "MAX_SPEED", /* 99 */ "START", /* 100 */ "TIMESTAMP", /* 101 */ "END", /* 102 */ "TABLE", /* 103 */ "NK_LP", /* 104 */ "NK_RP", /* 105 */ "STABLE", /* 106 */ "ADD", /* 107 */ "COLUMN", /* 108 */ "MODIFY", /* 109 */ "RENAME", /* 110 */ "TAG", /* 111 */ "SET", /* 112 */ "NK_EQ", /* 113 */ "USING", /* 114 */ "TAGS", /* 115 */ "COMMENT", /* 116 */ "BOOL", /* 117 */ "TINYINT", /* 118 */ "SMALLINT", /* 119 */ "INT", /* 120 */ "INTEGER", /* 121 */ "BIGINT", /* 122 */ "FLOAT", /* 123 */ "DOUBLE", /* 124 */ "BINARY", /* 125 */ "NCHAR", /* 126 */ "UNSIGNED", /* 127 */ "JSON", /* 128 */ "VARCHAR", /* 129 */ "MEDIUMBLOB", /* 130 */ "BLOB", /* 131 */ "VARBINARY", /* 132 */ "GEOMETRY", /* 133 */ "DECIMAL", /* 134 */ "MAX_DELAY", /* 135 */ "WATERMARK", /* 136 */ "ROLLUP", /* 137 */ "TTL", /* 138 */ "SMA", /* 139 */ "DELETE_MARK", /* 140 */ "FIRST", /* 141 */ "LAST", /* 142 */ "SHOW", /* 143 */ "PRIVILEGES", /* 144 */ "DATABASES", /* 145 */ "TABLES", /* 146 */ "STABLES", /* 147 */ "MNODES", /* 148 */ "QNODES", /* 149 */ "FUNCTIONS", /* 150 */ "INDEXES", /* 151 */ "ACCOUNTS", /* 152 */ "APPS", /* 153 */ "CONNECTIONS", /* 154 */ "LICENCES", /* 155 */ "GRANTS", /* 156 */ "QUERIES", /* 157 */ "SCORES", /* 158 */ "TOPICS", /* 159 */ "VARIABLES", /* 160 */ "CLUSTER", /* 161 */ "BNODES", /* 162 */ "SNODES", /* 163 */ "TRANSACTIONS", /* 164 */ "DISTRIBUTED", /* 165 */ "CONSUMERS", /* 166 */ "SUBSCRIPTIONS", /* 167 */ "VNODES", /* 168 */ "ALIVE", /* 169 */ "LIKE", /* 170 */ "TBNAME", /* 171 */ "QTAGS", /* 172 */ "AS", /* 173 */ "INDEX", /* 174 */ "FUNCTION", /* 175 */ "INTERVAL", /* 176 */ "COUNT", /* 177 */ "LAST_ROW", /* 178 */ "META", /* 179 */ "ONLY", /* 180 */ "TOPIC", /* 181 */ "CONSUMER", /* 182 */ "GROUP", /* 183 */ "DESC", /* 184 */ "DESCRIBE", /* 185 */ "RESET", /* 186 */ "QUERY", /* 187 */ "CACHE", /* 188 */ "EXPLAIN", /* 189 */ "ANALYZE", /* 190 */ "VERBOSE", /* 191 */ "NK_BOOL", /* 192 */ "RATIO", /* 193 */ "NK_FLOAT", /* 194 */ "OUTPUTTYPE", /* 195 */ "AGGREGATE", /* 196 */ "BUFSIZE", /* 197 */ "LANGUAGE", /* 198 */ "REPLACE", /* 199 */ "STREAM", /* 200 */ "INTO", /* 201 */ "PAUSE", /* 202 */ "RESUME", /* 203 */ "TRIGGER", /* 204 */ "AT_ONCE", /* 205 */ "WINDOW_CLOSE", /* 206 */ "IGNORE", /* 207 */ "EXPIRED", /* 208 */ "FILL_HISTORY", /* 209 */ "UPDATE", /* 210 */ "SUBTABLE", /* 211 */ "UNTREATED", /* 212 */ "KILL", /* 213 */ "CONNECTION", /* 214 */ "TRANSACTION", /* 215 */ "BALANCE", /* 216 */ "VGROUP", /* 217 */ "LEADER", /* 218 */ "MERGE", /* 219 */ "REDISTRIBUTE", /* 220 */ "SPLIT", /* 221 */ "DELETE", /* 222 */ "INSERT", /* 223 */ "NULL", /* 224 */ "NK_QUESTION", /* 225 */ "NK_ARROW", /* 226 */ "ROWTS", /* 227 */ "QSTART", /* 228 */ "QEND", /* 229 */ "QDURATION", /* 230 */ "WSTART", /* 231 */ "WEND", /* 232 */ "WDURATION", /* 233 */ "IROWTS", /* 234 */ "ISFILLED", /* 235 */ "CAST", /* 236 */ "NOW", /* 237 */ "TODAY", /* 238 */ "TIMEZONE", /* 239 */ "CLIENT_VERSION", /* 240 */ "SERVER_VERSION", /* 241 */ "SERVER_STATUS", /* 242 */ "CURRENT_USER", /* 243 */ "CASE", /* 244 */ "WHEN", /* 245 */ "THEN", /* 246 */ "ELSE", /* 247 */ "BETWEEN", /* 248 */ "IS", /* 249 */ "NK_LT", /* 250 */ "NK_GT", /* 251 */ "NK_LE", /* 252 */ "NK_GE", /* 253 */ "NK_NE", /* 254 */ "MATCH", /* 255 */ "NMATCH", /* 256 */ "CONTAINS", /* 257 */ "IN", /* 258 */ "JOIN", /* 259 */ "INNER", /* 260 */ "SELECT", /* 261 */ "DISTINCT", /* 262 */ "WHERE", /* 263 */ "PARTITION", /* 264 */ "BY", /* 265 */ "SESSION", /* 266 */ "STATE_WINDOW", /* 267 */ "EVENT_WINDOW", /* 268 */ "SLIDING", /* 269 */ "FILL", /* 270 */ "VALUE", /* 271 */ "VALUE_F", /* 272 */ "NONE", /* 273 */ "PREV", /* 274 */ "NULL_F", /* 275 */ "LINEAR", /* 276 */ "NEXT", /* 277 */ "HAVING", /* 278 */ "RANGE", /* 279 */ "EVERY", /* 280 */ "ORDER", /* 281 */ "SLIMIT", /* 282 */ "SOFFSET", /* 283 */ "LIMIT", /* 284 */ "OFFSET", /* 285 */ "ASC", /* 286 */ "NULLS", /* 287 */ "ABORT", /* 288 */ "AFTER", /* 289 */ "ATTACH", /* 290 */ "BEFORE", /* 291 */ "BEGIN", /* 292 */ "BITAND", /* 293 */ "BITNOT", /* 294 */ "BITOR", /* 295 */ "BLOCKS", /* 296 */ "CHANGE", /* 297 */ "COMMA", /* 298 */ "CONCAT", /* 299 */ "CONFLICT", /* 300 */ "COPY", /* 301 */ "DEFERRED", /* 302 */ "DELIMITERS", /* 303 */ "DETACH", /* 304 */ "DIVIDE", /* 305 */ "DOT", /* 306 */ "EACH", /* 307 */ "FAIL", /* 308 */ "FILE", /* 309 */ "FOR", /* 310 */ "GLOB", /* 311 */ "ID", /* 312 */ "IMMEDIATE", /* 313 */ "IMPORT", /* 314 */ "INITIALLY", /* 315 */ "INSTEAD", /* 316 */ "ISNULL", /* 317 */ "KEY", /* 318 */ "MODULES", /* 319 */ "NK_BITNOT", /* 320 */ "NK_SEMI", /* 321 */ "NOTNULL", /* 322 */ "OF", /* 323 */ "PLUS", /* 324 */ "PRIVILEGE", /* 325 */ "RAISE", /* 326 */ "RESTRICT", /* 327 */ "ROW", /* 328 */ "SEMI", /* 329 */ "STAR", /* 330 */ "STATEMENT", /* 331 */ "STRICT", /* 332 */ "STRING", /* 333 */ "TIMES", /* 334 */ "VALUES", /* 335 */ "VARIABLE", /* 336 */ "VIEW", /* 337 */ "WAL", /* 338 */ "cmd", /* 339 */ "account_options", /* 340 */ "alter_account_options", /* 341 */ "literal", /* 342 */ "alter_account_option", /* 343 */ "user_name", /* 344 */ "sysinfo_opt", /* 345 */ "privileges", /* 346 */ "priv_level", /* 347 */ "with_opt", /* 348 */ "priv_type_list", /* 349 */ "priv_type", /* 350 */ "db_name", /* 351 */ "table_name", /* 352 */ "topic_name", /* 353 */ "search_condition", /* 354 */ "dnode_endpoint", /* 355 */ "force_opt", /* 356 */ "unsafe_opt", /* 357 */ "not_exists_opt", /* 358 */ "db_options", /* 359 */ "exists_opt", /* 360 */ "alter_db_options", /* 361 */ "speed_opt", /* 362 */ "start_opt", /* 363 */ "end_opt", /* 364 */ "integer_list", /* 365 */ "variable_list", /* 366 */ "retention_list", /* 367 */ "signed", /* 368 */ "alter_db_option", /* 369 */ "retention", /* 370 */ "full_table_name", /* 371 */ "column_def_list", /* 372 */ "tags_def_opt", /* 373 */ "table_options", /* 374 */ "multi_create_clause", /* 375 */ "tags_def", /* 376 */ "multi_drop_clause", /* 377 */ "alter_table_clause", /* 378 */ "alter_table_options", /* 379 */ "column_def", /* 380 */ "column_name", /* 381 */ "signed_literal", /* 382 */ "create_subtable_clause", /* 383 */ "specific_cols_opt", /* 384 */ "expression_list", /* 385 */ "drop_table_clause", /* 386 */ "col_name_list", /* 387 */ "type_name", /* 388 */ "duration_list", /* 389 */ "rollup_func_list", /* 390 */ "alter_table_option", /* 391 */ "duration_literal", /* 392 */ "rollup_func_name", /* 393 */ "function_name", /* 394 */ "col_name", /* 395 */ "db_name_cond_opt", /* 396 */ "like_pattern_opt", /* 397 */ "table_name_cond", /* 398 */ "from_db_opt", /* 399 */ "tag_list_opt", /* 400 */ "tag_item", /* 401 */ "column_alias", /* 402 */ "full_index_name", /* 403 */ "index_options", /* 404 */ "index_name", /* 405 */ "func_list", /* 406 */ "sliding_opt", /* 407 */ "sma_stream_opt", /* 408 */ "func", /* 409 */ "sma_func_name", /* 410 */ "with_meta", /* 411 */ "query_or_subquery", /* 412 */ "where_clause_opt", /* 413 */ "cgroup_name", /* 414 */ "analyze_opt", /* 415 */ "explain_options", /* 416 */ "insert_query", /* 417 */ "or_replace_opt", /* 418 */ "agg_func_opt", /* 419 */ "bufsize_opt", /* 420 */ "language_opt", /* 421 */ "stream_name", /* 422 */ "stream_options", /* 423 */ "col_list_opt", /* 424 */ "tag_def_or_ref_opt", /* 425 */ "subtable_opt", /* 426 */ "ignore_opt", /* 427 */ "expression", /* 428 */ "dnode_list", /* 429 */ "literal_func", /* 430 */ "literal_list", /* 431 */ "table_alias", /* 432 */ "expr_or_subquery", /* 433 */ "pseudo_column", /* 434 */ "column_reference", /* 435 */ "function_expression", /* 436 */ "case_when_expression", /* 437 */ "star_func", /* 438 */ "star_func_para_list", /* 439 */ "noarg_func", /* 440 */ "other_para_list", /* 441 */ "star_func_para", /* 442 */ "when_then_list", /* 443 */ "case_when_else_opt", /* 444 */ "common_expression", /* 445 */ "when_then_expr", /* 446 */ "predicate", /* 447 */ "compare_op", /* 448 */ "in_op", /* 449 */ "in_predicate_value", /* 450 */ "boolean_value_expression", /* 451 */ "boolean_primary", /* 452 */ "from_clause_opt", /* 453 */ "table_reference_list", /* 454 */ "table_reference", /* 455 */ "table_primary", /* 456 */ "joined_table", /* 457 */ "alias_opt", /* 458 */ "subquery", /* 459 */ "parenthesized_joined_table", /* 460 */ "join_type", /* 461 */ "query_specification", /* 462 */ "tag_mode_opt", /* 463 */ "set_quantifier_opt", /* 464 */ "select_list", /* 465 */ "partition_by_clause_opt", /* 466 */ "range_opt", /* 467 */ "every_opt", /* 468 */ "fill_opt", /* 469 */ "twindow_clause_opt", /* 470 */ "group_by_clause_opt", /* 471 */ "having_clause_opt", /* 472 */ "select_item", /* 473 */ "partition_list", /* 474 */ "partition_item", /* 475 */ "fill_mode", /* 476 */ "group_by_list", /* 477 */ "query_expression", /* 478 */ "query_simple", /* 479 */ "order_by_clause_opt", /* 480 */ "slimit_clause_opt", /* 481 */ "limit_clause_opt", /* 482 */ "union_query_expression", /* 483 */ "query_simple_or_subquery", /* 484 */ "sort_specification_list", /* 485 */ "sort_specification", /* 486 */ "ordering_specification_opt", /* 487 */ "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 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt", /* 25 */ "cmd ::= ALTER USER user_name PASS NK_STRING", /* 26 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER", /* 27 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER", /* 28 */ "cmd ::= DROP USER user_name", /* 29 */ "sysinfo_opt ::=", /* 30 */ "sysinfo_opt ::= SYSINFO NK_INTEGER", /* 31 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name", /* 32 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name", /* 33 */ "privileges ::= ALL", /* 34 */ "privileges ::= priv_type_list", /* 35 */ "privileges ::= SUBSCRIBE", /* 36 */ "priv_type_list ::= priv_type", /* 37 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", /* 38 */ "priv_type ::= READ", /* 39 */ "priv_type ::= WRITE", /* 40 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", /* 41 */ "priv_level ::= db_name NK_DOT NK_STAR", /* 42 */ "priv_level ::= db_name NK_DOT table_name", /* 43 */ "priv_level ::= topic_name", /* 44 */ "with_opt ::=", /* 45 */ "with_opt ::= WITH search_condition", /* 46 */ "cmd ::= CREATE DNODE dnode_endpoint", /* 47 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", /* 48 */ "cmd ::= DROP DNODE NK_INTEGER force_opt", /* 49 */ "cmd ::= DROP DNODE dnode_endpoint force_opt", /* 50 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt", /* 51 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt", /* 52 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", /* 53 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", /* 54 */ "cmd ::= ALTER ALL DNODES NK_STRING", /* 55 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", /* 56 */ "cmd ::= RESTORE DNODE NK_INTEGER", /* 57 */ "dnode_endpoint ::= NK_STRING", /* 58 */ "dnode_endpoint ::= NK_ID", /* 59 */ "dnode_endpoint ::= NK_IPTOKEN", /* 60 */ "force_opt ::=", /* 61 */ "force_opt ::= FORCE", /* 62 */ "unsafe_opt ::= UNSAFE", /* 63 */ "cmd ::= ALTER LOCAL NK_STRING", /* 64 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", /* 65 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", /* 66 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", /* 67 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER", /* 68 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", /* 69 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", /* 70 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", /* 71 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", /* 72 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", /* 73 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", /* 74 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER", /* 75 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER", /* 76 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", /* 77 */ "cmd ::= DROP DATABASE exists_opt db_name", /* 78 */ "cmd ::= USE db_name", /* 79 */ "cmd ::= ALTER DATABASE db_name alter_db_options", /* 80 */ "cmd ::= FLUSH DATABASE db_name", /* 81 */ "cmd ::= TRIM DATABASE db_name speed_opt", /* 82 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt", /* 83 */ "not_exists_opt ::= IF NOT EXISTS", /* 84 */ "not_exists_opt ::=", /* 85 */ "exists_opt ::= IF EXISTS", /* 86 */ "exists_opt ::=", /* 87 */ "db_options ::=", /* 88 */ "db_options ::= db_options BUFFER NK_INTEGER", /* 89 */ "db_options ::= db_options CACHEMODEL NK_STRING", /* 90 */ "db_options ::= db_options CACHESIZE NK_INTEGER", /* 91 */ "db_options ::= db_options COMP NK_INTEGER", /* 92 */ "db_options ::= db_options DURATION NK_INTEGER", /* 93 */ "db_options ::= db_options DURATION NK_VARIABLE", /* 94 */ "db_options ::= db_options MAXROWS NK_INTEGER", /* 95 */ "db_options ::= db_options MINROWS NK_INTEGER", /* 96 */ "db_options ::= db_options KEEP integer_list", /* 97 */ "db_options ::= db_options KEEP variable_list", /* 98 */ "db_options ::= db_options PAGES NK_INTEGER", /* 99 */ "db_options ::= db_options PAGESIZE NK_INTEGER", /* 100 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", /* 101 */ "db_options ::= db_options PRECISION NK_STRING", /* 102 */ "db_options ::= db_options REPLICA NK_INTEGER", /* 103 */ "db_options ::= db_options VGROUPS NK_INTEGER", /* 104 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", /* 105 */ "db_options ::= db_options RETENTIONS retention_list", /* 106 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", /* 107 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", /* 108 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", /* 109 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", /* 110 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 111 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", /* 112 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 113 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", /* 114 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", /* 115 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", /* 116 */ "db_options ::= db_options TABLE_PREFIX signed", /* 117 */ "db_options ::= db_options TABLE_SUFFIX signed", /* 118 */ "alter_db_options ::= alter_db_option", /* 119 */ "alter_db_options ::= alter_db_options alter_db_option", /* 120 */ "alter_db_option ::= BUFFER NK_INTEGER", /* 121 */ "alter_db_option ::= CACHEMODEL NK_STRING", /* 122 */ "alter_db_option ::= CACHESIZE NK_INTEGER", /* 123 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", /* 124 */ "alter_db_option ::= KEEP integer_list", /* 125 */ "alter_db_option ::= KEEP variable_list", /* 126 */ "alter_db_option ::= PAGES NK_INTEGER", /* 127 */ "alter_db_option ::= REPLICA NK_INTEGER", /* 128 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", /* 129 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", /* 130 */ "alter_db_option ::= MINROWS NK_INTEGER", /* 131 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER", /* 132 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", /* 133 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER", /* 134 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", /* 135 */ "integer_list ::= NK_INTEGER", /* 136 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", /* 137 */ "variable_list ::= NK_VARIABLE", /* 138 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", /* 139 */ "retention_list ::= retention", /* 140 */ "retention_list ::= retention_list NK_COMMA retention", /* 141 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", /* 142 */ "speed_opt ::=", /* 143 */ "speed_opt ::= MAX_SPEED NK_INTEGER", /* 144 */ "start_opt ::=", /* 145 */ "start_opt ::= START WITH NK_INTEGER", /* 146 */ "start_opt ::= START WITH NK_STRING", /* 147 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", /* 148 */ "end_opt ::=", /* 149 */ "end_opt ::= END WITH NK_INTEGER", /* 150 */ "end_opt ::= END WITH NK_STRING", /* 151 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", /* 152 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", /* 153 */ "cmd ::= CREATE TABLE multi_create_clause", /* 154 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", /* 155 */ "cmd ::= DROP TABLE multi_drop_clause", /* 156 */ "cmd ::= DROP STABLE exists_opt full_table_name", /* 157 */ "cmd ::= ALTER TABLE alter_table_clause", /* 158 */ "cmd ::= ALTER STABLE alter_table_clause", /* 159 */ "alter_table_clause ::= full_table_name alter_table_options", /* 160 */ "alter_table_clause ::= full_table_name ADD COLUMN column_def", /* 161 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", /* 162 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_def", /* 163 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", /* 164 */ "alter_table_clause ::= full_table_name ADD TAG column_def", /* 165 */ "alter_table_clause ::= full_table_name DROP TAG column_name", /* 166 */ "alter_table_clause ::= full_table_name MODIFY TAG column_def", /* 167 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", /* 168 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", /* 169 */ "multi_create_clause ::= create_subtable_clause", /* 170 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", /* 171 */ "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", /* 172 */ "multi_drop_clause ::= drop_table_clause", /* 173 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", /* 174 */ "drop_table_clause ::= exists_opt full_table_name", /* 175 */ "specific_cols_opt ::=", /* 176 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", /* 177 */ "full_table_name ::= table_name", /* 178 */ "full_table_name ::= db_name NK_DOT table_name", /* 179 */ "column_def_list ::= column_def", /* 180 */ "column_def_list ::= column_def_list NK_COMMA column_def", /* 181 */ "column_def ::= column_name type_name", /* 182 */ "column_def ::= column_name type_name COMMENT NK_STRING", /* 183 */ "type_name ::= BOOL", /* 184 */ "type_name ::= TINYINT", /* 185 */ "type_name ::= SMALLINT", /* 186 */ "type_name ::= INT", /* 187 */ "type_name ::= INTEGER", /* 188 */ "type_name ::= BIGINT", /* 189 */ "type_name ::= FLOAT", /* 190 */ "type_name ::= DOUBLE", /* 191 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", /* 192 */ "type_name ::= TIMESTAMP", /* 193 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", /* 194 */ "type_name ::= TINYINT UNSIGNED", /* 195 */ "type_name ::= SMALLINT UNSIGNED", /* 196 */ "type_name ::= INT UNSIGNED", /* 197 */ "type_name ::= BIGINT UNSIGNED", /* 198 */ "type_name ::= JSON", /* 199 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", /* 200 */ "type_name ::= MEDIUMBLOB", /* 201 */ "type_name ::= BLOB", /* 202 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", /* 203 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", /* 204 */ "type_name ::= DECIMAL", /* 205 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 206 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", /* 207 */ "tags_def_opt ::=", /* 208 */ "tags_def_opt ::= tags_def", /* 209 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", /* 210 */ "table_options ::=", /* 211 */ "table_options ::= table_options COMMENT NK_STRING", /* 212 */ "table_options ::= table_options MAX_DELAY duration_list", /* 213 */ "table_options ::= table_options WATERMARK duration_list", /* 214 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", /* 215 */ "table_options ::= table_options TTL NK_INTEGER", /* 216 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", /* 217 */ "table_options ::= table_options DELETE_MARK duration_list", /* 218 */ "alter_table_options ::= alter_table_option", /* 219 */ "alter_table_options ::= alter_table_options alter_table_option", /* 220 */ "alter_table_option ::= COMMENT NK_STRING", /* 221 */ "alter_table_option ::= TTL NK_INTEGER", /* 222 */ "duration_list ::= duration_literal", /* 223 */ "duration_list ::= duration_list NK_COMMA duration_literal", /* 224 */ "rollup_func_list ::= rollup_func_name", /* 225 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", /* 226 */ "rollup_func_name ::= function_name", /* 227 */ "rollup_func_name ::= FIRST", /* 228 */ "rollup_func_name ::= LAST", /* 229 */ "col_name_list ::= col_name", /* 230 */ "col_name_list ::= col_name_list NK_COMMA col_name", /* 231 */ "col_name ::= column_name", /* 232 */ "cmd ::= SHOW DNODES", /* 233 */ "cmd ::= SHOW USERS", /* 234 */ "cmd ::= SHOW USER PRIVILEGES", /* 235 */ "cmd ::= SHOW DATABASES", /* 236 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", /* 237 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", /* 238 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", /* 239 */ "cmd ::= SHOW MNODES", /* 240 */ "cmd ::= SHOW QNODES", /* 241 */ "cmd ::= SHOW FUNCTIONS", /* 242 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", /* 243 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", /* 244 */ "cmd ::= SHOW STREAMS", /* 245 */ "cmd ::= SHOW ACCOUNTS", /* 246 */ "cmd ::= SHOW APPS", /* 247 */ "cmd ::= SHOW CONNECTIONS", /* 248 */ "cmd ::= SHOW LICENCES", /* 249 */ "cmd ::= SHOW GRANTS", /* 250 */ "cmd ::= SHOW CREATE DATABASE db_name", /* 251 */ "cmd ::= SHOW CREATE TABLE full_table_name", /* 252 */ "cmd ::= SHOW CREATE STABLE full_table_name", /* 253 */ "cmd ::= SHOW QUERIES", /* 254 */ "cmd ::= SHOW SCORES", /* 255 */ "cmd ::= SHOW TOPICS", /* 256 */ "cmd ::= SHOW VARIABLES", /* 257 */ "cmd ::= SHOW CLUSTER VARIABLES", /* 258 */ "cmd ::= SHOW LOCAL VARIABLES", /* 259 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", /* 260 */ "cmd ::= SHOW BNODES", /* 261 */ "cmd ::= SHOW SNODES", /* 262 */ "cmd ::= SHOW CLUSTER", /* 263 */ "cmd ::= SHOW TRANSACTIONS", /* 264 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", /* 265 */ "cmd ::= SHOW CONSUMERS", /* 266 */ "cmd ::= SHOW SUBSCRIPTIONS", /* 267 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", /* 268 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", /* 269 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", /* 270 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", /* 271 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", /* 272 */ "cmd ::= SHOW VNODES", /* 273 */ "cmd ::= SHOW db_name_cond_opt ALIVE", /* 274 */ "cmd ::= SHOW CLUSTER ALIVE", /* 275 */ "db_name_cond_opt ::=", /* 276 */ "db_name_cond_opt ::= db_name NK_DOT", /* 277 */ "like_pattern_opt ::=", /* 278 */ "like_pattern_opt ::= LIKE NK_STRING", /* 279 */ "table_name_cond ::= table_name", /* 280 */ "from_db_opt ::=", /* 281 */ "from_db_opt ::= FROM db_name", /* 282 */ "tag_list_opt ::=", /* 283 */ "tag_list_opt ::= tag_item", /* 284 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", /* 285 */ "tag_item ::= TBNAME", /* 286 */ "tag_item ::= QTAGS", /* 287 */ "tag_item ::= column_name", /* 288 */ "tag_item ::= column_name column_alias", /* 289 */ "tag_item ::= column_name AS column_alias", /* 290 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options", /* 291 */ "cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP", /* 292 */ "cmd ::= DROP INDEX exists_opt full_index_name", /* 293 */ "full_index_name ::= index_name", /* 294 */ "full_index_name ::= db_name NK_DOT index_name", /* 295 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", /* 296 */ "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", /* 297 */ "func_list ::= func", /* 298 */ "func_list ::= func_list NK_COMMA func", /* 299 */ "func ::= sma_func_name NK_LP expression_list NK_RP", /* 300 */ "sma_func_name ::= function_name", /* 301 */ "sma_func_name ::= COUNT", /* 302 */ "sma_func_name ::= FIRST", /* 303 */ "sma_func_name ::= LAST", /* 304 */ "sma_func_name ::= LAST_ROW", /* 305 */ "sma_stream_opt ::=", /* 306 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", /* 307 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", /* 308 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", /* 309 */ "with_meta ::= AS", /* 310 */ "with_meta ::= WITH META AS", /* 311 */ "with_meta ::= ONLY META AS", /* 312 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", /* 313 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", /* 314 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", /* 315 */ "cmd ::= DROP TOPIC exists_opt topic_name", /* 316 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", /* 317 */ "cmd ::= DESC full_table_name", /* 318 */ "cmd ::= DESCRIBE full_table_name", /* 319 */ "cmd ::= RESET QUERY CACHE", /* 320 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", /* 321 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", /* 322 */ "analyze_opt ::=", /* 323 */ "analyze_opt ::= ANALYZE", /* 324 */ "explain_options ::=", /* 325 */ "explain_options ::= explain_options VERBOSE NK_BOOL", /* 326 */ "explain_options ::= explain_options RATIO NK_FLOAT", /* 327 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", /* 328 */ "cmd ::= DROP FUNCTION exists_opt function_name", /* 329 */ "agg_func_opt ::=", /* 330 */ "agg_func_opt ::= AGGREGATE", /* 331 */ "bufsize_opt ::=", /* 332 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", /* 333 */ "language_opt ::=", /* 334 */ "language_opt ::= LANGUAGE NK_STRING", /* 335 */ "or_replace_opt ::=", /* 336 */ "or_replace_opt ::= OR REPLACE", /* 337 */ "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", /* 338 */ "cmd ::= DROP STREAM exists_opt stream_name", /* 339 */ "cmd ::= PAUSE STREAM exists_opt stream_name", /* 340 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", /* 341 */ "col_list_opt ::=", /* 342 */ "col_list_opt ::= NK_LP col_name_list NK_RP", /* 343 */ "tag_def_or_ref_opt ::=", /* 344 */ "tag_def_or_ref_opt ::= tags_def", /* 345 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", /* 346 */ "stream_options ::=", /* 347 */ "stream_options ::= stream_options TRIGGER AT_ONCE", /* 348 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", /* 349 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", /* 350 */ "stream_options ::= stream_options WATERMARK duration_literal", /* 351 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", /* 352 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", /* 353 */ "stream_options ::= stream_options DELETE_MARK duration_literal", /* 354 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", /* 355 */ "subtable_opt ::=", /* 356 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", /* 357 */ "ignore_opt ::=", /* 358 */ "ignore_opt ::= IGNORE UNTREATED", /* 359 */ "cmd ::= KILL CONNECTION NK_INTEGER", /* 360 */ "cmd ::= KILL QUERY NK_STRING", /* 361 */ "cmd ::= KILL TRANSACTION NK_INTEGER", /* 362 */ "cmd ::= BALANCE VGROUP", /* 363 */ "cmd ::= BALANCE VGROUP LEADER", /* 364 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", /* 365 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", /* 366 */ "cmd ::= SPLIT VGROUP NK_INTEGER", /* 367 */ "dnode_list ::= DNODE NK_INTEGER", /* 368 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", /* 369 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 370 */ "cmd ::= query_or_subquery", /* 371 */ "cmd ::= insert_query", /* 372 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", /* 373 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", /* 374 */ "literal ::= NK_INTEGER", /* 375 */ "literal ::= NK_FLOAT", /* 376 */ "literal ::= NK_STRING", /* 377 */ "literal ::= NK_BOOL", /* 378 */ "literal ::= TIMESTAMP NK_STRING", /* 379 */ "literal ::= duration_literal", /* 380 */ "literal ::= NULL", /* 381 */ "literal ::= NK_QUESTION", /* 382 */ "duration_literal ::= NK_VARIABLE", /* 383 */ "signed ::= NK_INTEGER", /* 384 */ "signed ::= NK_PLUS NK_INTEGER", /* 385 */ "signed ::= NK_MINUS NK_INTEGER", /* 386 */ "signed ::= NK_FLOAT", /* 387 */ "signed ::= NK_PLUS NK_FLOAT", /* 388 */ "signed ::= NK_MINUS NK_FLOAT", /* 389 */ "signed_literal ::= signed", /* 390 */ "signed_literal ::= NK_STRING", /* 391 */ "signed_literal ::= NK_BOOL", /* 392 */ "signed_literal ::= TIMESTAMP NK_STRING", /* 393 */ "signed_literal ::= duration_literal", /* 394 */ "signed_literal ::= NULL", /* 395 */ "signed_literal ::= literal_func", /* 396 */ "signed_literal ::= NK_QUESTION", /* 397 */ "literal_list ::= signed_literal", /* 398 */ "literal_list ::= literal_list NK_COMMA signed_literal", /* 399 */ "db_name ::= NK_ID", /* 400 */ "table_name ::= NK_ID", /* 401 */ "column_name ::= NK_ID", /* 402 */ "function_name ::= NK_ID", /* 403 */ "table_alias ::= NK_ID", /* 404 */ "column_alias ::= NK_ID", /* 405 */ "user_name ::= NK_ID", /* 406 */ "topic_name ::= NK_ID", /* 407 */ "stream_name ::= NK_ID", /* 408 */ "cgroup_name ::= NK_ID", /* 409 */ "index_name ::= NK_ID", /* 410 */ "expr_or_subquery ::= expression", /* 411 */ "expression ::= literal", /* 412 */ "expression ::= pseudo_column", /* 413 */ "expression ::= column_reference", /* 414 */ "expression ::= function_expression", /* 415 */ "expression ::= case_when_expression", /* 416 */ "expression ::= NK_LP expression NK_RP", /* 417 */ "expression ::= NK_PLUS expr_or_subquery", /* 418 */ "expression ::= NK_MINUS expr_or_subquery", /* 419 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", /* 420 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", /* 421 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", /* 422 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", /* 423 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", /* 424 */ "expression ::= column_reference NK_ARROW NK_STRING", /* 425 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", /* 426 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", /* 427 */ "expression_list ::= expr_or_subquery", /* 428 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", /* 429 */ "column_reference ::= column_name", /* 430 */ "column_reference ::= table_name NK_DOT column_name", /* 431 */ "pseudo_column ::= ROWTS", /* 432 */ "pseudo_column ::= TBNAME", /* 433 */ "pseudo_column ::= table_name NK_DOT TBNAME", /* 434 */ "pseudo_column ::= QSTART", /* 435 */ "pseudo_column ::= QEND", /* 436 */ "pseudo_column ::= QDURATION", /* 437 */ "pseudo_column ::= WSTART", /* 438 */ "pseudo_column ::= WEND", /* 439 */ "pseudo_column ::= WDURATION", /* 440 */ "pseudo_column ::= IROWTS", /* 441 */ "pseudo_column ::= ISFILLED", /* 442 */ "pseudo_column ::= QTAGS", /* 443 */ "function_expression ::= function_name NK_LP expression_list NK_RP", /* 444 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", /* 445 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", /* 446 */ "function_expression ::= literal_func", /* 447 */ "literal_func ::= noarg_func NK_LP NK_RP", /* 448 */ "literal_func ::= NOW", /* 449 */ "noarg_func ::= NOW", /* 450 */ "noarg_func ::= TODAY", /* 451 */ "noarg_func ::= TIMEZONE", /* 452 */ "noarg_func ::= DATABASE", /* 453 */ "noarg_func ::= CLIENT_VERSION", /* 454 */ "noarg_func ::= SERVER_VERSION", /* 455 */ "noarg_func ::= SERVER_STATUS", /* 456 */ "noarg_func ::= CURRENT_USER", /* 457 */ "noarg_func ::= USER", /* 458 */ "star_func ::= COUNT", /* 459 */ "star_func ::= FIRST", /* 460 */ "star_func ::= LAST", /* 461 */ "star_func ::= LAST_ROW", /* 462 */ "star_func_para_list ::= NK_STAR", /* 463 */ "star_func_para_list ::= other_para_list", /* 464 */ "other_para_list ::= star_func_para", /* 465 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", /* 466 */ "star_func_para ::= expr_or_subquery", /* 467 */ "star_func_para ::= table_name NK_DOT NK_STAR", /* 468 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", /* 469 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", /* 470 */ "when_then_list ::= when_then_expr", /* 471 */ "when_then_list ::= when_then_list when_then_expr", /* 472 */ "when_then_expr ::= WHEN common_expression THEN common_expression", /* 473 */ "case_when_else_opt ::=", /* 474 */ "case_when_else_opt ::= ELSE common_expression", /* 475 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", /* 476 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", /* 477 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", /* 478 */ "predicate ::= expr_or_subquery IS NULL", /* 479 */ "predicate ::= expr_or_subquery IS NOT NULL", /* 480 */ "predicate ::= expr_or_subquery in_op in_predicate_value", /* 481 */ "compare_op ::= NK_LT", /* 482 */ "compare_op ::= NK_GT", /* 483 */ "compare_op ::= NK_LE", /* 484 */ "compare_op ::= NK_GE", /* 485 */ "compare_op ::= NK_NE", /* 486 */ "compare_op ::= NK_EQ", /* 487 */ "compare_op ::= LIKE", /* 488 */ "compare_op ::= NOT LIKE", /* 489 */ "compare_op ::= MATCH", /* 490 */ "compare_op ::= NMATCH", /* 491 */ "compare_op ::= CONTAINS", /* 492 */ "in_op ::= IN", /* 493 */ "in_op ::= NOT IN", /* 494 */ "in_predicate_value ::= NK_LP literal_list NK_RP", /* 495 */ "boolean_value_expression ::= boolean_primary", /* 496 */ "boolean_value_expression ::= NOT boolean_primary", /* 497 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", /* 498 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", /* 499 */ "boolean_primary ::= predicate", /* 500 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", /* 501 */ "common_expression ::= expr_or_subquery", /* 502 */ "common_expression ::= boolean_value_expression", /* 503 */ "from_clause_opt ::=", /* 504 */ "from_clause_opt ::= FROM table_reference_list", /* 505 */ "table_reference_list ::= table_reference", /* 506 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", /* 507 */ "table_reference ::= table_primary", /* 508 */ "table_reference ::= joined_table", /* 509 */ "table_primary ::= table_name alias_opt", /* 510 */ "table_primary ::= db_name NK_DOT table_name alias_opt", /* 511 */ "table_primary ::= subquery alias_opt", /* 512 */ "table_primary ::= parenthesized_joined_table", /* 513 */ "alias_opt ::=", /* 514 */ "alias_opt ::= table_alias", /* 515 */ "alias_opt ::= AS table_alias", /* 516 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", /* 517 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", /* 518 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 519 */ "join_type ::=", /* 520 */ "join_type ::= INNER", /* 521 */ "query_specification ::= SELECT tag_mode_opt set_quantifier_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", /* 522 */ "tag_mode_opt ::=", /* 523 */ "tag_mode_opt ::= TAGS", /* 524 */ "set_quantifier_opt ::=", /* 525 */ "set_quantifier_opt ::= DISTINCT", /* 526 */ "set_quantifier_opt ::= ALL", /* 527 */ "select_list ::= select_item", /* 528 */ "select_list ::= select_list NK_COMMA select_item", /* 529 */ "select_item ::= NK_STAR", /* 530 */ "select_item ::= common_expression", /* 531 */ "select_item ::= common_expression column_alias", /* 532 */ "select_item ::= common_expression AS column_alias", /* 533 */ "select_item ::= table_name NK_DOT NK_STAR", /* 534 */ "where_clause_opt ::=", /* 535 */ "where_clause_opt ::= WHERE search_condition", /* 536 */ "partition_by_clause_opt ::=", /* 537 */ "partition_by_clause_opt ::= PARTITION BY partition_list", /* 538 */ "partition_list ::= partition_item", /* 539 */ "partition_list ::= partition_list NK_COMMA partition_item", /* 540 */ "partition_item ::= expr_or_subquery", /* 541 */ "partition_item ::= expr_or_subquery column_alias", /* 542 */ "partition_item ::= expr_or_subquery AS column_alias", /* 543 */ "twindow_clause_opt ::=", /* 544 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", /* 545 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", /* 546 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", /* 547 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", /* 548 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", /* 549 */ "sliding_opt ::=", /* 550 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", /* 551 */ "fill_opt ::=", /* 552 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", /* 553 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", /* 554 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", /* 555 */ "fill_mode ::= NONE", /* 556 */ "fill_mode ::= PREV", /* 557 */ "fill_mode ::= NULL", /* 558 */ "fill_mode ::= NULL_F", /* 559 */ "fill_mode ::= LINEAR", /* 560 */ "fill_mode ::= NEXT", /* 561 */ "group_by_clause_opt ::=", /* 562 */ "group_by_clause_opt ::= GROUP BY group_by_list", /* 563 */ "group_by_list ::= expr_or_subquery", /* 564 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", /* 565 */ "having_clause_opt ::=", /* 566 */ "having_clause_opt ::= HAVING search_condition", /* 567 */ "range_opt ::=", /* 568 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", /* 569 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", /* 570 */ "every_opt ::=", /* 571 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", /* 572 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", /* 573 */ "query_simple ::= query_specification", /* 574 */ "query_simple ::= union_query_expression", /* 575 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", /* 576 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", /* 577 */ "query_simple_or_subquery ::= query_simple", /* 578 */ "query_simple_or_subquery ::= subquery", /* 579 */ "query_or_subquery ::= query_expression", /* 580 */ "query_or_subquery ::= subquery", /* 581 */ "order_by_clause_opt ::=", /* 582 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", /* 583 */ "slimit_clause_opt ::=", /* 584 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", /* 585 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", /* 586 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 587 */ "limit_clause_opt ::=", /* 588 */ "limit_clause_opt ::= LIMIT NK_INTEGER", /* 589 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", /* 590 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", /* 591 */ "subquery ::= NK_LP query_expression NK_RP", /* 592 */ "subquery ::= NK_LP subquery NK_RP", /* 593 */ "search_condition ::= common_expression", /* 594 */ "sort_specification_list ::= sort_specification", /* 595 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", /* 596 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", /* 597 */ "ordering_specification_opt ::=", /* 598 */ "ordering_specification_opt ::= ASC", /* 599 */ "ordering_specification_opt ::= DESC", /* 600 */ "null_ordering_opt ::=", /* 601 */ "null_ordering_opt ::= NULLS FIRST", /* 602 */ "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 338: /* cmd */ case 341: /* literal */ case 347: /* with_opt */ case 353: /* search_condition */ case 358: /* db_options */ case 360: /* alter_db_options */ case 362: /* start_opt */ case 363: /* end_opt */ case 367: /* signed */ case 369: /* retention */ case 370: /* full_table_name */ case 373: /* table_options */ case 377: /* alter_table_clause */ case 378: /* alter_table_options */ case 379: /* column_def */ case 381: /* signed_literal */ case 382: /* create_subtable_clause */ case 385: /* drop_table_clause */ case 391: /* duration_literal */ case 392: /* rollup_func_name */ case 394: /* col_name */ case 395: /* db_name_cond_opt */ case 396: /* like_pattern_opt */ case 397: /* table_name_cond */ case 398: /* from_db_opt */ case 400: /* tag_item */ case 402: /* full_index_name */ case 403: /* index_options */ case 406: /* sliding_opt */ case 407: /* sma_stream_opt */ case 408: /* func */ case 411: /* query_or_subquery */ case 412: /* where_clause_opt */ case 415: /* explain_options */ case 416: /* insert_query */ case 422: /* stream_options */ case 425: /* subtable_opt */ case 427: /* expression */ case 429: /* literal_func */ case 432: /* expr_or_subquery */ case 433: /* pseudo_column */ case 434: /* column_reference */ case 435: /* function_expression */ case 436: /* case_when_expression */ case 441: /* star_func_para */ case 443: /* case_when_else_opt */ case 444: /* common_expression */ case 445: /* when_then_expr */ case 446: /* predicate */ case 449: /* in_predicate_value */ case 450: /* boolean_value_expression */ case 451: /* boolean_primary */ case 452: /* from_clause_opt */ case 453: /* table_reference_list */ case 454: /* table_reference */ case 455: /* table_primary */ case 456: /* joined_table */ case 458: /* subquery */ case 459: /* parenthesized_joined_table */ case 461: /* query_specification */ case 466: /* range_opt */ case 467: /* every_opt */ case 468: /* fill_opt */ case 469: /* twindow_clause_opt */ case 471: /* having_clause_opt */ case 472: /* select_item */ case 474: /* partition_item */ case 477: /* query_expression */ case 478: /* query_simple */ case 480: /* slimit_clause_opt */ case 481: /* limit_clause_opt */ case 482: /* union_query_expression */ case 483: /* query_simple_or_subquery */ case 485: /* sort_specification */ { #line 7 "sql.y" nodesDestroyNode((yypminor->yy840)); #line 3154 "sql.c" } break; case 339: /* account_options */ case 340: /* alter_account_options */ case 342: /* alter_account_option */ case 361: /* speed_opt */ case 410: /* with_meta */ case 419: /* bufsize_opt */ { #line 54 "sql.y" #line 3166 "sql.c" } break; case 343: /* user_name */ case 350: /* db_name */ case 351: /* table_name */ case 352: /* topic_name */ case 354: /* dnode_endpoint */ case 380: /* column_name */ case 393: /* function_name */ case 401: /* column_alias */ case 404: /* index_name */ case 409: /* sma_func_name */ case 413: /* cgroup_name */ case 420: /* language_opt */ case 421: /* stream_name */ case 431: /* table_alias */ case 437: /* star_func */ case 439: /* noarg_func */ case 457: /* alias_opt */ { #line 742 "sql.y" #line 3189 "sql.c" } break; case 344: /* sysinfo_opt */ { #line 92 "sql.y" #line 3196 "sql.c" } break; case 345: /* privileges */ case 348: /* priv_type_list */ case 349: /* priv_type */ { #line 101 "sql.y" #line 3205 "sql.c" } break; case 346: /* priv_level */ { #line 117 "sql.y" #line 3212 "sql.c" } break; case 355: /* force_opt */ case 356: /* unsafe_opt */ case 357: /* not_exists_opt */ case 359: /* exists_opt */ case 414: /* analyze_opt */ case 417: /* or_replace_opt */ case 418: /* agg_func_opt */ case 426: /* ignore_opt */ case 462: /* tag_mode_opt */ case 463: /* set_quantifier_opt */ { #line 146 "sql.y" #line 3228 "sql.c" } break; case 364: /* integer_list */ case 365: /* variable_list */ case 366: /* retention_list */ case 371: /* column_def_list */ case 372: /* tags_def_opt */ case 374: /* multi_create_clause */ case 375: /* tags_def */ case 376: /* multi_drop_clause */ case 383: /* specific_cols_opt */ case 384: /* expression_list */ case 386: /* col_name_list */ case 388: /* duration_list */ case 389: /* rollup_func_list */ case 399: /* tag_list_opt */ case 405: /* func_list */ case 423: /* col_list_opt */ case 424: /* tag_def_or_ref_opt */ case 428: /* dnode_list */ case 430: /* literal_list */ case 438: /* star_func_para_list */ case 440: /* other_para_list */ case 442: /* when_then_list */ case 464: /* select_list */ case 465: /* partition_by_clause_opt */ case 470: /* group_by_clause_opt */ case 473: /* partition_list */ case 476: /* group_by_list */ case 479: /* order_by_clause_opt */ case 484: /* sort_specification_list */ { #line 270 "sql.y" nodesDestroyList((yypminor->yy56)); #line 3263 "sql.c" } break; case 368: /* alter_db_option */ case 390: /* alter_table_option */ { #line 243 "sql.y" #line 3271 "sql.c" } break; case 387: /* type_name */ { #line 364 "sql.y" #line 3278 "sql.c" } break; case 447: /* compare_op */ case 448: /* in_op */ { #line 930 "sql.y" #line 3286 "sql.c" } break; case 460: /* join_type */ { #line 1006 "sql.y" #line 3293 "sql.c" } break; case 475: /* fill_mode */ { #line 1087 "sql.y" #line 3300 "sql.c" } break; case 486: /* ordering_specification_opt */ { #line 1172 "sql.y" #line 3307 "sql.c" } break; case 487: /* null_ordering_opt */ { #line 1178 "sql.y" #line 3314 "sql.c" } break; /********* End destructor definitions *****************************************/ default: break; /* If no destructor action specified: do nothing */ } } /* ** Pop the parser's stack once. ** ** If there is a destructor routine associated with the token which ** is popped from the stack, then call it. */ static void yy_pop_parser_stack(yyParser *pParser){ yyStackEntry *yytos; assert( pParser->yytos!=0 ); assert( pParser->yytos > pParser->yystack ); yytos = pParser->yytos--; #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sPopping %s\n", yyTracePrompt, yyTokenName[yytos->major]); } #endif yy_destructor(pParser, yytos->major, &yytos->minor); } /* ** Clear all secondary memory allocations from the parser */ void ParseFinalize(void *p){ yyParser *pParser = (yyParser*)p; while( pParser->yytos>pParser->yystack ) yy_pop_parser_stack(pParser); #if YYSTACKDEPTH<=0 if( pParser->yystack!=&pParser->yystk0 ) free(pParser->yystack); #endif } #ifndef Parse_ENGINEALWAYSONSTACK /* ** Deallocate and destroy a parser. Destructors are called for ** all stack elements before shutting the parser down. ** ** If the YYPARSEFREENEVERNULL macro exists (for example because it ** is defined in a %include section of the input grammar) then it is ** assumed that the input pointer is never NULL. */ void ParseFree( void *p, /* The parser to be deleted */ void (*freeProc)(void*) /* Function used to reclaim memory */ ){ #ifndef YYPARSEFREENEVERNULL if( p==0 ) return; #endif ParseFinalize(p); (*freeProc)(p); } #endif /* Parse_ENGINEALWAYSONSTACK */ /* ** Return the peak depth of the stack for a parser. */ #ifdef YYTRACKMAXSTACKDEPTH int ParseStackPeak(void *p){ yyParser *pParser = (yyParser*)p; return pParser->yyhwm; } #endif /* This array of booleans keeps track of the parser statement ** coverage. The element yycoverage[X][Y] is set when the parser ** is in state X and has a lookahead token Y. In a well-tested ** systems, every element of this matrix should end up being set. */ #if defined(YYCOVERAGE) static unsigned char yycoverage[YYNSTATE][YYNTOKEN]; #endif /* ** Write into out a description of every state/lookahead combination that ** ** (1) has not been used by the parser, and ** (2) is not a syntax error. ** ** Return the number of missed state/lookahead combinations. */ #if defined(YYCOVERAGE) int ParseCoverage(FILE *out){ int stateno, iLookAhead, i; int nMissed = 0; for(stateno=0; statenoYY_MAX_SHIFT ) return stateno; assert( stateno <= YY_SHIFT_COUNT ); #if defined(YYCOVERAGE) yycoverage[stateno][iLookAhead] = 1; #endif do{ i = yy_shift_ofst[stateno]; assert( i>=0 ); assert( i<=YY_ACTTAB_COUNT ); assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); assert( iLookAhead!=YYNOCODE ); assert( iLookAhead < YYNTOKEN ); i += iLookAhead; assert( i<(int)YY_NLOOKAHEAD ); if( yy_lookahead[i]!=iLookAhead ){ #ifdef YYFALLBACK YYCODETYPE iFallback; /* Fallback token */ assert( iLookAhead %s\n", yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[iFallback]); } #endif assert( yyFallback[iFallback]==0 ); /* Fallback loop must terminate */ iLookAhead = iFallback; continue; } #endif #ifdef YYWILDCARD { int j = i - iLookAhead + YYWILDCARD; assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) ); if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){ #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n", yyTracePrompt, yyTokenName[iLookAhead], yyTokenName[YYWILDCARD]); } #endif /* NDEBUG */ return yy_action[j]; } } #endif /* YYWILDCARD */ return yy_default[stateno]; }else{ assert( i>=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) ); return yy_action[i]; } }while(1); } /* ** Find the appropriate action for a parser given the non-terminal ** look-ahead token iLookAhead. */ static YYACTIONTYPE yy_find_reduce_action( YYACTIONTYPE stateno, /* Current state number */ YYCODETYPE iLookAhead /* The look-ahead token */ ){ int i; #ifdef YYERRORSYMBOL if( stateno>YY_REDUCE_COUNT ){ return yy_default[stateno]; } #else assert( stateno<=YY_REDUCE_COUNT ); #endif i = yy_reduce_ofst[stateno]; assert( iLookAhead!=YYNOCODE ); i += iLookAhead; #ifdef YYERRORSYMBOL if( i<0 || i>=YY_ACTTAB_COUNT || yy_lookahead[i]!=iLookAhead ){ return yy_default[stateno]; } #else assert( i>=0 && iyytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will execute if the parser ** stack every overflows */ /******** Begin %stack_overflow code ******************************************/ /******** End %stack_overflow code ********************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument var */ ParseCTX_STORE } /* ** Print tracing information for a SHIFT action */ #ifndef NDEBUG static void yyTraceShift(yyParser *yypParser, int yyNewState, const char *zTag){ if( yyTraceFILE ){ if( yyNewStateyytos->major], yyNewState); }else{ fprintf(yyTraceFILE,"%s%s '%s', pending reduce %d\n", yyTracePrompt, zTag, yyTokenName[yypParser->yytos->major], yyNewState - YY_MIN_REDUCE); } } } #else # define yyTraceShift(X,Y,Z) #endif /* ** Perform a shift action. */ static void yy_shift( yyParser *yypParser, /* The parser to be shifted */ YYACTIONTYPE yyNewState, /* The new state to shift in */ YYCODETYPE yyMajor, /* The major token to shift in */ ParseTOKENTYPE yyMinor /* The minor token to shift in */ ){ yyStackEntry *yytos; yypParser->yytos++; #ifdef YYTRACKMAXSTACKDEPTH if( (int)(yypParser->yytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack) ); } #endif #if YYSTACKDEPTH>0 if( yypParser->yytos>yypParser->yystackEnd ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){ if( yyGrowStack(yypParser) ){ yypParser->yytos--; yyStackOverflow(yypParser); return; } } #endif if( yyNewState > YY_MAX_SHIFT ){ yyNewState += YY_MIN_REDUCE - YY_MIN_SHIFTREDUCE; } yytos = yypParser->yytos; yytos->stateno = yyNewState; yytos->major = yyMajor; yytos->minor.yy0 = yyMinor; yyTraceShift(yypParser, yyNewState, "Shift"); } /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side ** of that rule */ static const YYCODETYPE yyRuleInfoLhs[] = { 338, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ 338, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ 339, /* (2) account_options ::= */ 339, /* (3) account_options ::= account_options PPS literal */ 339, /* (4) account_options ::= account_options TSERIES literal */ 339, /* (5) account_options ::= account_options STORAGE literal */ 339, /* (6) account_options ::= account_options STREAMS literal */ 339, /* (7) account_options ::= account_options QTIME literal */ 339, /* (8) account_options ::= account_options DBS literal */ 339, /* (9) account_options ::= account_options USERS literal */ 339, /* (10) account_options ::= account_options CONNS literal */ 339, /* (11) account_options ::= account_options STATE literal */ 340, /* (12) alter_account_options ::= alter_account_option */ 340, /* (13) alter_account_options ::= alter_account_options alter_account_option */ 342, /* (14) alter_account_option ::= PASS literal */ 342, /* (15) alter_account_option ::= PPS literal */ 342, /* (16) alter_account_option ::= TSERIES literal */ 342, /* (17) alter_account_option ::= STORAGE literal */ 342, /* (18) alter_account_option ::= STREAMS literal */ 342, /* (19) alter_account_option ::= QTIME literal */ 342, /* (20) alter_account_option ::= DBS literal */ 342, /* (21) alter_account_option ::= USERS literal */ 342, /* (22) alter_account_option ::= CONNS literal */ 342, /* (23) alter_account_option ::= STATE literal */ 338, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ 338, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ 338, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ 338, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ 338, /* (28) cmd ::= DROP USER user_name */ 344, /* (29) sysinfo_opt ::= */ 344, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ 338, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ 338, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ 345, /* (33) privileges ::= ALL */ 345, /* (34) privileges ::= priv_type_list */ 345, /* (35) privileges ::= SUBSCRIBE */ 348, /* (36) priv_type_list ::= priv_type */ 348, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ 349, /* (38) priv_type ::= READ */ 349, /* (39) priv_type ::= WRITE */ 346, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ 346, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ 346, /* (42) priv_level ::= db_name NK_DOT table_name */ 346, /* (43) priv_level ::= topic_name */ 347, /* (44) with_opt ::= */ 347, /* (45) with_opt ::= WITH search_condition */ 338, /* (46) cmd ::= CREATE DNODE dnode_endpoint */ 338, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ 338, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */ 338, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */ 338, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ 338, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ 338, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ 338, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ 338, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */ 338, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ 338, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */ 354, /* (57) dnode_endpoint ::= NK_STRING */ 354, /* (58) dnode_endpoint ::= NK_ID */ 354, /* (59) dnode_endpoint ::= NK_IPTOKEN */ 355, /* (60) force_opt ::= */ 355, /* (61) force_opt ::= FORCE */ 356, /* (62) unsafe_opt ::= UNSAFE */ 338, /* (63) cmd ::= ALTER LOCAL NK_STRING */ 338, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ 338, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ 338, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ 338, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ 338, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ 338, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ 338, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ 338, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ 338, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ 338, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ 338, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ 338, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ 338, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ 338, /* (77) cmd ::= DROP DATABASE exists_opt db_name */ 338, /* (78) cmd ::= USE db_name */ 338, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */ 338, /* (80) cmd ::= FLUSH DATABASE db_name */ 338, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */ 338, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ 357, /* (83) not_exists_opt ::= IF NOT EXISTS */ 357, /* (84) not_exists_opt ::= */ 359, /* (85) exists_opt ::= IF EXISTS */ 359, /* (86) exists_opt ::= */ 358, /* (87) db_options ::= */ 358, /* (88) db_options ::= db_options BUFFER NK_INTEGER */ 358, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */ 358, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */ 358, /* (91) db_options ::= db_options COMP NK_INTEGER */ 358, /* (92) db_options ::= db_options DURATION NK_INTEGER */ 358, /* (93) db_options ::= db_options DURATION NK_VARIABLE */ 358, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */ 358, /* (95) db_options ::= db_options MINROWS NK_INTEGER */ 358, /* (96) db_options ::= db_options KEEP integer_list */ 358, /* (97) db_options ::= db_options KEEP variable_list */ 358, /* (98) db_options ::= db_options PAGES NK_INTEGER */ 358, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */ 358, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ 358, /* (101) db_options ::= db_options PRECISION NK_STRING */ 358, /* (102) db_options ::= db_options REPLICA NK_INTEGER */ 358, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */ 358, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ 358, /* (105) db_options ::= db_options RETENTIONS retention_list */ 358, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */ 358, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */ 358, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ 358, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ 358, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 358, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ 358, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 358, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ 358, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ 358, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */ 358, /* (116) db_options ::= db_options TABLE_PREFIX signed */ 358, /* (117) db_options ::= db_options TABLE_SUFFIX signed */ 360, /* (118) alter_db_options ::= alter_db_option */ 360, /* (119) alter_db_options ::= alter_db_options alter_db_option */ 368, /* (120) alter_db_option ::= BUFFER NK_INTEGER */ 368, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */ 368, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */ 368, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ 368, /* (124) alter_db_option ::= KEEP integer_list */ 368, /* (125) alter_db_option ::= KEEP variable_list */ 368, /* (126) alter_db_option ::= PAGES NK_INTEGER */ 368, /* (127) alter_db_option ::= REPLICA NK_INTEGER */ 368, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */ 368, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */ 368, /* (130) alter_db_option ::= MINROWS NK_INTEGER */ 368, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ 368, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ 368, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ 368, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ 364, /* (135) integer_list ::= NK_INTEGER */ 364, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */ 365, /* (137) variable_list ::= NK_VARIABLE */ 365, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ 366, /* (139) retention_list ::= retention */ 366, /* (140) retention_list ::= retention_list NK_COMMA retention */ 369, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 361, /* (142) speed_opt ::= */ 361, /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */ 362, /* (144) start_opt ::= */ 362, /* (145) start_opt ::= START WITH NK_INTEGER */ 362, /* (146) start_opt ::= START WITH NK_STRING */ 362, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */ 363, /* (148) end_opt ::= */ 363, /* (149) end_opt ::= END WITH NK_INTEGER */ 363, /* (150) end_opt ::= END WITH NK_STRING */ 363, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */ 338, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ 338, /* (153) cmd ::= CREATE TABLE multi_create_clause */ 338, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ 338, /* (155) cmd ::= DROP TABLE multi_drop_clause */ 338, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */ 338, /* (157) cmd ::= ALTER TABLE alter_table_clause */ 338, /* (158) cmd ::= ALTER STABLE alter_table_clause */ 377, /* (159) alter_table_clause ::= full_table_name alter_table_options */ 377, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_def */ 377, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ 377, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_def */ 377, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ 377, /* (164) alter_table_clause ::= full_table_name ADD TAG column_def */ 377, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ 377, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_def */ 377, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ 377, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ 374, /* (169) multi_create_clause ::= create_subtable_clause */ 374, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */ 382, /* (171) 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 */ 376, /* (172) multi_drop_clause ::= drop_table_clause */ 376, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ 385, /* (174) drop_table_clause ::= exists_opt full_table_name */ 383, /* (175) specific_cols_opt ::= */ 383, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */ 370, /* (177) full_table_name ::= table_name */ 370, /* (178) full_table_name ::= db_name NK_DOT table_name */ 371, /* (179) column_def_list ::= column_def */ 371, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */ 379, /* (181) column_def ::= column_name type_name */ 379, /* (182) column_def ::= column_name type_name COMMENT NK_STRING */ 387, /* (183) type_name ::= BOOL */ 387, /* (184) type_name ::= TINYINT */ 387, /* (185) type_name ::= SMALLINT */ 387, /* (186) type_name ::= INT */ 387, /* (187) type_name ::= INTEGER */ 387, /* (188) type_name ::= BIGINT */ 387, /* (189) type_name ::= FLOAT */ 387, /* (190) type_name ::= DOUBLE */ 387, /* (191) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ 387, /* (192) type_name ::= TIMESTAMP */ 387, /* (193) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ 387, /* (194) type_name ::= TINYINT UNSIGNED */ 387, /* (195) type_name ::= SMALLINT UNSIGNED */ 387, /* (196) type_name ::= INT UNSIGNED */ 387, /* (197) type_name ::= BIGINT UNSIGNED */ 387, /* (198) type_name ::= JSON */ 387, /* (199) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ 387, /* (200) type_name ::= MEDIUMBLOB */ 387, /* (201) type_name ::= BLOB */ 387, /* (202) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ 387, /* (203) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ 387, /* (204) type_name ::= DECIMAL */ 387, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 387, /* (206) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 372, /* (207) tags_def_opt ::= */ 372, /* (208) tags_def_opt ::= tags_def */ 375, /* (209) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 373, /* (210) table_options ::= */ 373, /* (211) table_options ::= table_options COMMENT NK_STRING */ 373, /* (212) table_options ::= table_options MAX_DELAY duration_list */ 373, /* (213) table_options ::= table_options WATERMARK duration_list */ 373, /* (214) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ 373, /* (215) table_options ::= table_options TTL NK_INTEGER */ 373, /* (216) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ 373, /* (217) table_options ::= table_options DELETE_MARK duration_list */ 378, /* (218) alter_table_options ::= alter_table_option */ 378, /* (219) alter_table_options ::= alter_table_options alter_table_option */ 390, /* (220) alter_table_option ::= COMMENT NK_STRING */ 390, /* (221) alter_table_option ::= TTL NK_INTEGER */ 388, /* (222) duration_list ::= duration_literal */ 388, /* (223) duration_list ::= duration_list NK_COMMA duration_literal */ 389, /* (224) rollup_func_list ::= rollup_func_name */ 389, /* (225) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ 392, /* (226) rollup_func_name ::= function_name */ 392, /* (227) rollup_func_name ::= FIRST */ 392, /* (228) rollup_func_name ::= LAST */ 386, /* (229) col_name_list ::= col_name */ 386, /* (230) col_name_list ::= col_name_list NK_COMMA col_name */ 394, /* (231) col_name ::= column_name */ 338, /* (232) cmd ::= SHOW DNODES */ 338, /* (233) cmd ::= SHOW USERS */ 338, /* (234) cmd ::= SHOW USER PRIVILEGES */ 338, /* (235) cmd ::= SHOW DATABASES */ 338, /* (236) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ 338, /* (237) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ 338, /* (238) cmd ::= SHOW db_name_cond_opt VGROUPS */ 338, /* (239) cmd ::= SHOW MNODES */ 338, /* (240) cmd ::= SHOW QNODES */ 338, /* (241) cmd ::= SHOW FUNCTIONS */ 338, /* (242) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ 338, /* (243) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ 338, /* (244) cmd ::= SHOW STREAMS */ 338, /* (245) cmd ::= SHOW ACCOUNTS */ 338, /* (246) cmd ::= SHOW APPS */ 338, /* (247) cmd ::= SHOW CONNECTIONS */ 338, /* (248) cmd ::= SHOW LICENCES */ 338, /* (249) cmd ::= SHOW GRANTS */ 338, /* (250) cmd ::= SHOW CREATE DATABASE db_name */ 338, /* (251) cmd ::= SHOW CREATE TABLE full_table_name */ 338, /* (252) cmd ::= SHOW CREATE STABLE full_table_name */ 338, /* (253) cmd ::= SHOW QUERIES */ 338, /* (254) cmd ::= SHOW SCORES */ 338, /* (255) cmd ::= SHOW TOPICS */ 338, /* (256) cmd ::= SHOW VARIABLES */ 338, /* (257) cmd ::= SHOW CLUSTER VARIABLES */ 338, /* (258) cmd ::= SHOW LOCAL VARIABLES */ 338, /* (259) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ 338, /* (260) cmd ::= SHOW BNODES */ 338, /* (261) cmd ::= SHOW SNODES */ 338, /* (262) cmd ::= SHOW CLUSTER */ 338, /* (263) cmd ::= SHOW TRANSACTIONS */ 338, /* (264) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ 338, /* (265) cmd ::= SHOW CONSUMERS */ 338, /* (266) cmd ::= SHOW SUBSCRIPTIONS */ 338, /* (267) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ 338, /* (268) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ 338, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ 338, /* (270) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ 338, /* (271) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ 338, /* (272) cmd ::= SHOW VNODES */ 338, /* (273) cmd ::= SHOW db_name_cond_opt ALIVE */ 338, /* (274) cmd ::= SHOW CLUSTER ALIVE */ 395, /* (275) db_name_cond_opt ::= */ 395, /* (276) db_name_cond_opt ::= db_name NK_DOT */ 396, /* (277) like_pattern_opt ::= */ 396, /* (278) like_pattern_opt ::= LIKE NK_STRING */ 397, /* (279) table_name_cond ::= table_name */ 398, /* (280) from_db_opt ::= */ 398, /* (281) from_db_opt ::= FROM db_name */ 399, /* (282) tag_list_opt ::= */ 399, /* (283) tag_list_opt ::= tag_item */ 399, /* (284) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ 400, /* (285) tag_item ::= TBNAME */ 400, /* (286) tag_item ::= QTAGS */ 400, /* (287) tag_item ::= column_name */ 400, /* (288) tag_item ::= column_name column_alias */ 400, /* (289) tag_item ::= column_name AS column_alias */ 338, /* (290) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ 338, /* (291) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ 338, /* (292) cmd ::= DROP INDEX exists_opt full_index_name */ 402, /* (293) full_index_name ::= index_name */ 402, /* (294) full_index_name ::= db_name NK_DOT index_name */ 403, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ 403, /* (296) 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 */ 405, /* (297) func_list ::= func */ 405, /* (298) func_list ::= func_list NK_COMMA func */ 408, /* (299) func ::= sma_func_name NK_LP expression_list NK_RP */ 409, /* (300) sma_func_name ::= function_name */ 409, /* (301) sma_func_name ::= COUNT */ 409, /* (302) sma_func_name ::= FIRST */ 409, /* (303) sma_func_name ::= LAST */ 409, /* (304) sma_func_name ::= LAST_ROW */ 407, /* (305) sma_stream_opt ::= */ 407, /* (306) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ 407, /* (307) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ 407, /* (308) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ 410, /* (309) with_meta ::= AS */ 410, /* (310) with_meta ::= WITH META AS */ 410, /* (311) with_meta ::= ONLY META AS */ 338, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ 338, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ 338, /* (314) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ 338, /* (315) cmd ::= DROP TOPIC exists_opt topic_name */ 338, /* (316) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ 338, /* (317) cmd ::= DESC full_table_name */ 338, /* (318) cmd ::= DESCRIBE full_table_name */ 338, /* (319) cmd ::= RESET QUERY CACHE */ 338, /* (320) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ 338, /* (321) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 414, /* (322) analyze_opt ::= */ 414, /* (323) analyze_opt ::= ANALYZE */ 415, /* (324) explain_options ::= */ 415, /* (325) explain_options ::= explain_options VERBOSE NK_BOOL */ 415, /* (326) explain_options ::= explain_options RATIO NK_FLOAT */ 338, /* (327) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ 338, /* (328) cmd ::= DROP FUNCTION exists_opt function_name */ 418, /* (329) agg_func_opt ::= */ 418, /* (330) agg_func_opt ::= AGGREGATE */ 419, /* (331) bufsize_opt ::= */ 419, /* (332) bufsize_opt ::= BUFSIZE NK_INTEGER */ 420, /* (333) language_opt ::= */ 420, /* (334) language_opt ::= LANGUAGE NK_STRING */ 417, /* (335) or_replace_opt ::= */ 417, /* (336) or_replace_opt ::= OR REPLACE */ 338, /* (337) 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 */ 338, /* (338) cmd ::= DROP STREAM exists_opt stream_name */ 338, /* (339) cmd ::= PAUSE STREAM exists_opt stream_name */ 338, /* (340) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 423, /* (341) col_list_opt ::= */ 423, /* (342) col_list_opt ::= NK_LP col_name_list NK_RP */ 424, /* (343) tag_def_or_ref_opt ::= */ 424, /* (344) tag_def_or_ref_opt ::= tags_def */ 424, /* (345) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 422, /* (346) stream_options ::= */ 422, /* (347) stream_options ::= stream_options TRIGGER AT_ONCE */ 422, /* (348) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ 422, /* (349) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ 422, /* (350) stream_options ::= stream_options WATERMARK duration_literal */ 422, /* (351) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ 422, /* (352) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ 422, /* (353) stream_options ::= stream_options DELETE_MARK duration_literal */ 422, /* (354) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 425, /* (355) subtable_opt ::= */ 425, /* (356) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 426, /* (357) ignore_opt ::= */ 426, /* (358) ignore_opt ::= IGNORE UNTREATED */ 338, /* (359) cmd ::= KILL CONNECTION NK_INTEGER */ 338, /* (360) cmd ::= KILL QUERY NK_STRING */ 338, /* (361) cmd ::= KILL TRANSACTION NK_INTEGER */ 338, /* (362) cmd ::= BALANCE VGROUP */ 338, /* (363) cmd ::= BALANCE VGROUP LEADER */ 338, /* (364) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ 338, /* (365) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ 338, /* (366) cmd ::= SPLIT VGROUP NK_INTEGER */ 428, /* (367) dnode_list ::= DNODE NK_INTEGER */ 428, /* (368) dnode_list ::= dnode_list DNODE NK_INTEGER */ 338, /* (369) cmd ::= DELETE FROM full_table_name where_clause_opt */ 338, /* (370) cmd ::= query_or_subquery */ 338, /* (371) cmd ::= insert_query */ 416, /* (372) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ 416, /* (373) insert_query ::= INSERT INTO full_table_name query_or_subquery */ 341, /* (374) literal ::= NK_INTEGER */ 341, /* (375) literal ::= NK_FLOAT */ 341, /* (376) literal ::= NK_STRING */ 341, /* (377) literal ::= NK_BOOL */ 341, /* (378) literal ::= TIMESTAMP NK_STRING */ 341, /* (379) literal ::= duration_literal */ 341, /* (380) literal ::= NULL */ 341, /* (381) literal ::= NK_QUESTION */ 391, /* (382) duration_literal ::= NK_VARIABLE */ 367, /* (383) signed ::= NK_INTEGER */ 367, /* (384) signed ::= NK_PLUS NK_INTEGER */ 367, /* (385) signed ::= NK_MINUS NK_INTEGER */ 367, /* (386) signed ::= NK_FLOAT */ 367, /* (387) signed ::= NK_PLUS NK_FLOAT */ 367, /* (388) signed ::= NK_MINUS NK_FLOAT */ 381, /* (389) signed_literal ::= signed */ 381, /* (390) signed_literal ::= NK_STRING */ 381, /* (391) signed_literal ::= NK_BOOL */ 381, /* (392) signed_literal ::= TIMESTAMP NK_STRING */ 381, /* (393) signed_literal ::= duration_literal */ 381, /* (394) signed_literal ::= NULL */ 381, /* (395) signed_literal ::= literal_func */ 381, /* (396) signed_literal ::= NK_QUESTION */ 430, /* (397) literal_list ::= signed_literal */ 430, /* (398) literal_list ::= literal_list NK_COMMA signed_literal */ 350, /* (399) db_name ::= NK_ID */ 351, /* (400) table_name ::= NK_ID */ 380, /* (401) column_name ::= NK_ID */ 393, /* (402) function_name ::= NK_ID */ 431, /* (403) table_alias ::= NK_ID */ 401, /* (404) column_alias ::= NK_ID */ 343, /* (405) user_name ::= NK_ID */ 352, /* (406) topic_name ::= NK_ID */ 421, /* (407) stream_name ::= NK_ID */ 413, /* (408) cgroup_name ::= NK_ID */ 404, /* (409) index_name ::= NK_ID */ 432, /* (410) expr_or_subquery ::= expression */ 427, /* (411) expression ::= literal */ 427, /* (412) expression ::= pseudo_column */ 427, /* (413) expression ::= column_reference */ 427, /* (414) expression ::= function_expression */ 427, /* (415) expression ::= case_when_expression */ 427, /* (416) expression ::= NK_LP expression NK_RP */ 427, /* (417) expression ::= NK_PLUS expr_or_subquery */ 427, /* (418) expression ::= NK_MINUS expr_or_subquery */ 427, /* (419) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ 427, /* (420) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ 427, /* (421) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ 427, /* (422) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ 427, /* (423) expression ::= expr_or_subquery NK_REM expr_or_subquery */ 427, /* (424) expression ::= column_reference NK_ARROW NK_STRING */ 427, /* (425) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ 427, /* (426) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ 384, /* (427) expression_list ::= expr_or_subquery */ 384, /* (428) expression_list ::= expression_list NK_COMMA expr_or_subquery */ 434, /* (429) column_reference ::= column_name */ 434, /* (430) column_reference ::= table_name NK_DOT column_name */ 433, /* (431) pseudo_column ::= ROWTS */ 433, /* (432) pseudo_column ::= TBNAME */ 433, /* (433) pseudo_column ::= table_name NK_DOT TBNAME */ 433, /* (434) pseudo_column ::= QSTART */ 433, /* (435) pseudo_column ::= QEND */ 433, /* (436) pseudo_column ::= QDURATION */ 433, /* (437) pseudo_column ::= WSTART */ 433, /* (438) pseudo_column ::= WEND */ 433, /* (439) pseudo_column ::= WDURATION */ 433, /* (440) pseudo_column ::= IROWTS */ 433, /* (441) pseudo_column ::= ISFILLED */ 433, /* (442) pseudo_column ::= QTAGS */ 435, /* (443) function_expression ::= function_name NK_LP expression_list NK_RP */ 435, /* (444) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ 435, /* (445) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ 435, /* (446) function_expression ::= literal_func */ 429, /* (447) literal_func ::= noarg_func NK_LP NK_RP */ 429, /* (448) literal_func ::= NOW */ 439, /* (449) noarg_func ::= NOW */ 439, /* (450) noarg_func ::= TODAY */ 439, /* (451) noarg_func ::= TIMEZONE */ 439, /* (452) noarg_func ::= DATABASE */ 439, /* (453) noarg_func ::= CLIENT_VERSION */ 439, /* (454) noarg_func ::= SERVER_VERSION */ 439, /* (455) noarg_func ::= SERVER_STATUS */ 439, /* (456) noarg_func ::= CURRENT_USER */ 439, /* (457) noarg_func ::= USER */ 437, /* (458) star_func ::= COUNT */ 437, /* (459) star_func ::= FIRST */ 437, /* (460) star_func ::= LAST */ 437, /* (461) star_func ::= LAST_ROW */ 438, /* (462) star_func_para_list ::= NK_STAR */ 438, /* (463) star_func_para_list ::= other_para_list */ 440, /* (464) other_para_list ::= star_func_para */ 440, /* (465) other_para_list ::= other_para_list NK_COMMA star_func_para */ 441, /* (466) star_func_para ::= expr_or_subquery */ 441, /* (467) star_func_para ::= table_name NK_DOT NK_STAR */ 436, /* (468) case_when_expression ::= CASE when_then_list case_when_else_opt END */ 436, /* (469) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ 442, /* (470) when_then_list ::= when_then_expr */ 442, /* (471) when_then_list ::= when_then_list when_then_expr */ 445, /* (472) when_then_expr ::= WHEN common_expression THEN common_expression */ 443, /* (473) case_when_else_opt ::= */ 443, /* (474) case_when_else_opt ::= ELSE common_expression */ 446, /* (475) predicate ::= expr_or_subquery compare_op expr_or_subquery */ 446, /* (476) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ 446, /* (477) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ 446, /* (478) predicate ::= expr_or_subquery IS NULL */ 446, /* (479) predicate ::= expr_or_subquery IS NOT NULL */ 446, /* (480) predicate ::= expr_or_subquery in_op in_predicate_value */ 447, /* (481) compare_op ::= NK_LT */ 447, /* (482) compare_op ::= NK_GT */ 447, /* (483) compare_op ::= NK_LE */ 447, /* (484) compare_op ::= NK_GE */ 447, /* (485) compare_op ::= NK_NE */ 447, /* (486) compare_op ::= NK_EQ */ 447, /* (487) compare_op ::= LIKE */ 447, /* (488) compare_op ::= NOT LIKE */ 447, /* (489) compare_op ::= MATCH */ 447, /* (490) compare_op ::= NMATCH */ 447, /* (491) compare_op ::= CONTAINS */ 448, /* (492) in_op ::= IN */ 448, /* (493) in_op ::= NOT IN */ 449, /* (494) in_predicate_value ::= NK_LP literal_list NK_RP */ 450, /* (495) boolean_value_expression ::= boolean_primary */ 450, /* (496) boolean_value_expression ::= NOT boolean_primary */ 450, /* (497) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ 450, /* (498) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ 451, /* (499) boolean_primary ::= predicate */ 451, /* (500) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ 444, /* (501) common_expression ::= expr_or_subquery */ 444, /* (502) common_expression ::= boolean_value_expression */ 452, /* (503) from_clause_opt ::= */ 452, /* (504) from_clause_opt ::= FROM table_reference_list */ 453, /* (505) table_reference_list ::= table_reference */ 453, /* (506) table_reference_list ::= table_reference_list NK_COMMA table_reference */ 454, /* (507) table_reference ::= table_primary */ 454, /* (508) table_reference ::= joined_table */ 455, /* (509) table_primary ::= table_name alias_opt */ 455, /* (510) table_primary ::= db_name NK_DOT table_name alias_opt */ 455, /* (511) table_primary ::= subquery alias_opt */ 455, /* (512) table_primary ::= parenthesized_joined_table */ 457, /* (513) alias_opt ::= */ 457, /* (514) alias_opt ::= table_alias */ 457, /* (515) alias_opt ::= AS table_alias */ 459, /* (516) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ 459, /* (517) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ 456, /* (518) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 460, /* (519) join_type ::= */ 460, /* (520) join_type ::= INNER */ 461, /* (521) query_specification ::= SELECT tag_mode_opt set_quantifier_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 */ 462, /* (522) tag_mode_opt ::= */ 462, /* (523) tag_mode_opt ::= TAGS */ 463, /* (524) set_quantifier_opt ::= */ 463, /* (525) set_quantifier_opt ::= DISTINCT */ 463, /* (526) set_quantifier_opt ::= ALL */ 464, /* (527) select_list ::= select_item */ 464, /* (528) select_list ::= select_list NK_COMMA select_item */ 472, /* (529) select_item ::= NK_STAR */ 472, /* (530) select_item ::= common_expression */ 472, /* (531) select_item ::= common_expression column_alias */ 472, /* (532) select_item ::= common_expression AS column_alias */ 472, /* (533) select_item ::= table_name NK_DOT NK_STAR */ 412, /* (534) where_clause_opt ::= */ 412, /* (535) where_clause_opt ::= WHERE search_condition */ 465, /* (536) partition_by_clause_opt ::= */ 465, /* (537) partition_by_clause_opt ::= PARTITION BY partition_list */ 473, /* (538) partition_list ::= partition_item */ 473, /* (539) partition_list ::= partition_list NK_COMMA partition_item */ 474, /* (540) partition_item ::= expr_or_subquery */ 474, /* (541) partition_item ::= expr_or_subquery column_alias */ 474, /* (542) partition_item ::= expr_or_subquery AS column_alias */ 469, /* (543) twindow_clause_opt ::= */ 469, /* (544) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ 469, /* (545) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ 469, /* (546) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ 469, /* (547) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ 469, /* (548) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 406, /* (549) sliding_opt ::= */ 406, /* (550) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ 468, /* (551) fill_opt ::= */ 468, /* (552) fill_opt ::= FILL NK_LP fill_mode NK_RP */ 468, /* (553) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ 468, /* (554) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ 475, /* (555) fill_mode ::= NONE */ 475, /* (556) fill_mode ::= PREV */ 475, /* (557) fill_mode ::= NULL */ 475, /* (558) fill_mode ::= NULL_F */ 475, /* (559) fill_mode ::= LINEAR */ 475, /* (560) fill_mode ::= NEXT */ 470, /* (561) group_by_clause_opt ::= */ 470, /* (562) group_by_clause_opt ::= GROUP BY group_by_list */ 476, /* (563) group_by_list ::= expr_or_subquery */ 476, /* (564) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 471, /* (565) having_clause_opt ::= */ 471, /* (566) having_clause_opt ::= HAVING search_condition */ 466, /* (567) range_opt ::= */ 466, /* (568) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ 466, /* (569) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 467, /* (570) every_opt ::= */ 467, /* (571) every_opt ::= EVERY NK_LP duration_literal NK_RP */ 477, /* (572) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ 478, /* (573) query_simple ::= query_specification */ 478, /* (574) query_simple ::= union_query_expression */ 482, /* (575) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ 482, /* (576) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ 483, /* (577) query_simple_or_subquery ::= query_simple */ 483, /* (578) query_simple_or_subquery ::= subquery */ 411, /* (579) query_or_subquery ::= query_expression */ 411, /* (580) query_or_subquery ::= subquery */ 479, /* (581) order_by_clause_opt ::= */ 479, /* (582) order_by_clause_opt ::= ORDER BY sort_specification_list */ 480, /* (583) slimit_clause_opt ::= */ 480, /* (584) slimit_clause_opt ::= SLIMIT NK_INTEGER */ 480, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ 480, /* (586) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 481, /* (587) limit_clause_opt ::= */ 481, /* (588) limit_clause_opt ::= LIMIT NK_INTEGER */ 481, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ 481, /* (590) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 458, /* (591) subquery ::= NK_LP query_expression NK_RP */ 458, /* (592) subquery ::= NK_LP subquery NK_RP */ 353, /* (593) search_condition ::= common_expression */ 484, /* (594) sort_specification_list ::= sort_specification */ 484, /* (595) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ 485, /* (596) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 486, /* (597) ordering_specification_opt ::= */ 486, /* (598) ordering_specification_opt ::= ASC */ 486, /* (599) ordering_specification_opt ::= DESC */ 487, /* (600) null_ordering_opt ::= */ 487, /* (601) null_ordering_opt ::= NULLS FIRST */ 487, /* (602) 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 */ -6, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ -5, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ -5, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -5, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -3, /* (28) cmd ::= DROP USER user_name */ 0, /* (29) sysinfo_opt ::= */ -2, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ -7, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -7, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -1, /* (33) privileges ::= ALL */ -1, /* (34) privileges ::= priv_type_list */ -1, /* (35) privileges ::= SUBSCRIBE */ -1, /* (36) priv_type_list ::= priv_type */ -3, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ -1, /* (38) priv_type ::= READ */ -1, /* (39) priv_type ::= WRITE */ -3, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ -3, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ -3, /* (42) priv_level ::= db_name NK_DOT table_name */ -1, /* (43) priv_level ::= topic_name */ 0, /* (44) with_opt ::= */ -2, /* (45) with_opt ::= WITH search_condition */ -3, /* (46) cmd ::= CREATE DNODE dnode_endpoint */ -5, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -4, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */ -4, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */ -4, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -4, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -4, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ -5, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ -4, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */ -5, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ -3, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */ -1, /* (57) dnode_endpoint ::= NK_STRING */ -1, /* (58) dnode_endpoint ::= NK_ID */ -1, /* (59) dnode_endpoint ::= NK_IPTOKEN */ 0, /* (60) force_opt ::= */ -1, /* (61) force_opt ::= FORCE */ -1, /* (62) unsafe_opt ::= UNSAFE */ -3, /* (63) cmd ::= ALTER LOCAL NK_STRING */ -4, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ -5, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ -5, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ -5, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ -5, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ -5, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ -5, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ -5, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ -5, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ -5, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ -5, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ -5, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ -5, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -4, /* (77) cmd ::= DROP DATABASE exists_opt db_name */ -2, /* (78) cmd ::= USE db_name */ -4, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */ -3, /* (80) cmd ::= FLUSH DATABASE db_name */ -4, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */ -5, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -3, /* (83) not_exists_opt ::= IF NOT EXISTS */ 0, /* (84) not_exists_opt ::= */ -2, /* (85) exists_opt ::= IF EXISTS */ 0, /* (86) exists_opt ::= */ 0, /* (87) db_options ::= */ -3, /* (88) db_options ::= db_options BUFFER NK_INTEGER */ -3, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */ -3, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */ -3, /* (91) db_options ::= db_options COMP NK_INTEGER */ -3, /* (92) db_options ::= db_options DURATION NK_INTEGER */ -3, /* (93) db_options ::= db_options DURATION NK_VARIABLE */ -3, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */ -3, /* (95) db_options ::= db_options MINROWS NK_INTEGER */ -3, /* (96) db_options ::= db_options KEEP integer_list */ -3, /* (97) db_options ::= db_options KEEP variable_list */ -3, /* (98) db_options ::= db_options PAGES NK_INTEGER */ -3, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */ -3, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -3, /* (101) db_options ::= db_options PRECISION NK_STRING */ -3, /* (102) db_options ::= db_options REPLICA NK_INTEGER */ -3, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */ -3, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -3, /* (105) db_options ::= db_options RETENTIONS retention_list */ -3, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */ -3, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */ -3, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -3, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -4, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -3, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -4, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -3, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -3, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -3, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */ -3, /* (116) db_options ::= db_options TABLE_PREFIX signed */ -3, /* (117) db_options ::= db_options TABLE_SUFFIX signed */ -1, /* (118) alter_db_options ::= alter_db_option */ -2, /* (119) alter_db_options ::= alter_db_options alter_db_option */ -2, /* (120) alter_db_option ::= BUFFER NK_INTEGER */ -2, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */ -2, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */ -2, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -2, /* (124) alter_db_option ::= KEEP integer_list */ -2, /* (125) alter_db_option ::= KEEP variable_list */ -2, /* (126) alter_db_option ::= PAGES NK_INTEGER */ -2, /* (127) alter_db_option ::= REPLICA NK_INTEGER */ -2, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */ -2, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */ -2, /* (130) alter_db_option ::= MINROWS NK_INTEGER */ -2, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -3, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ -2, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -3, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ -1, /* (135) integer_list ::= NK_INTEGER */ -3, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */ -1, /* (137) variable_list ::= NK_VARIABLE */ -3, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -1, /* (139) retention_list ::= retention */ -3, /* (140) retention_list ::= retention_list NK_COMMA retention */ -3, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ 0, /* (142) speed_opt ::= */ -2, /* (143) speed_opt ::= MAX_SPEED NK_INTEGER */ 0, /* (144) start_opt ::= */ -3, /* (145) start_opt ::= START WITH NK_INTEGER */ -3, /* (146) start_opt ::= START WITH NK_STRING */ -4, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */ 0, /* (148) end_opt ::= */ -3, /* (149) end_opt ::= END WITH NK_INTEGER */ -3, /* (150) end_opt ::= END WITH NK_STRING */ -4, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */ -9, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ -3, /* (153) cmd ::= CREATE TABLE multi_create_clause */ -9, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ -3, /* (155) cmd ::= DROP TABLE multi_drop_clause */ -4, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */ -3, /* (157) cmd ::= ALTER TABLE alter_table_clause */ -3, /* (158) cmd ::= ALTER STABLE alter_table_clause */ -2, /* (159) alter_table_clause ::= full_table_name alter_table_options */ -4, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_def */ -4, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ -4, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_def */ -5, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -4, /* (164) alter_table_clause ::= full_table_name ADD TAG column_def */ -4, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ -4, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_def */ -5, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -6, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -1, /* (169) multi_create_clause ::= create_subtable_clause */ -2, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */ -10, /* (171) 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, /* (172) multi_drop_clause ::= drop_table_clause */ -3, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ -2, /* (174) drop_table_clause ::= exists_opt full_table_name */ 0, /* (175) specific_cols_opt ::= */ -3, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */ -1, /* (177) full_table_name ::= table_name */ -3, /* (178) full_table_name ::= db_name NK_DOT table_name */ -1, /* (179) column_def_list ::= column_def */ -3, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */ -2, /* (181) column_def ::= column_name type_name */ -4, /* (182) column_def ::= column_name type_name COMMENT NK_STRING */ -1, /* (183) type_name ::= BOOL */ -1, /* (184) type_name ::= TINYINT */ -1, /* (185) type_name ::= SMALLINT */ -1, /* (186) type_name ::= INT */ -1, /* (187) type_name ::= INTEGER */ -1, /* (188) type_name ::= BIGINT */ -1, /* (189) type_name ::= FLOAT */ -1, /* (190) type_name ::= DOUBLE */ -4, /* (191) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -1, /* (192) type_name ::= TIMESTAMP */ -4, /* (193) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -2, /* (194) type_name ::= TINYINT UNSIGNED */ -2, /* (195) type_name ::= SMALLINT UNSIGNED */ -2, /* (196) type_name ::= INT UNSIGNED */ -2, /* (197) type_name ::= BIGINT UNSIGNED */ -1, /* (198) type_name ::= JSON */ -4, /* (199) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -1, /* (200) type_name ::= MEDIUMBLOB */ -1, /* (201) type_name ::= BLOB */ -4, /* (202) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -4, /* (203) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -1, /* (204) type_name ::= DECIMAL */ -4, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (206) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ 0, /* (207) tags_def_opt ::= */ -1, /* (208) tags_def_opt ::= tags_def */ -4, /* (209) tags_def ::= TAGS NK_LP column_def_list NK_RP */ 0, /* (210) table_options ::= */ -3, /* (211) table_options ::= table_options COMMENT NK_STRING */ -3, /* (212) table_options ::= table_options MAX_DELAY duration_list */ -3, /* (213) table_options ::= table_options WATERMARK duration_list */ -5, /* (214) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -3, /* (215) table_options ::= table_options TTL NK_INTEGER */ -5, /* (216) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -3, /* (217) table_options ::= table_options DELETE_MARK duration_list */ -1, /* (218) alter_table_options ::= alter_table_option */ -2, /* (219) alter_table_options ::= alter_table_options alter_table_option */ -2, /* (220) alter_table_option ::= COMMENT NK_STRING */ -2, /* (221) alter_table_option ::= TTL NK_INTEGER */ -1, /* (222) duration_list ::= duration_literal */ -3, /* (223) duration_list ::= duration_list NK_COMMA duration_literal */ -1, /* (224) rollup_func_list ::= rollup_func_name */ -3, /* (225) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ -1, /* (226) rollup_func_name ::= function_name */ -1, /* (227) rollup_func_name ::= FIRST */ -1, /* (228) rollup_func_name ::= LAST */ -1, /* (229) col_name_list ::= col_name */ -3, /* (230) col_name_list ::= col_name_list NK_COMMA col_name */ -1, /* (231) col_name ::= column_name */ -2, /* (232) cmd ::= SHOW DNODES */ -2, /* (233) cmd ::= SHOW USERS */ -3, /* (234) cmd ::= SHOW USER PRIVILEGES */ -2, /* (235) cmd ::= SHOW DATABASES */ -4, /* (236) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -4, /* (237) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -3, /* (238) cmd ::= SHOW db_name_cond_opt VGROUPS */ -2, /* (239) cmd ::= SHOW MNODES */ -2, /* (240) cmd ::= SHOW QNODES */ -2, /* (241) cmd ::= SHOW FUNCTIONS */ -5, /* (242) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -6, /* (243) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -2, /* (244) cmd ::= SHOW STREAMS */ -2, /* (245) cmd ::= SHOW ACCOUNTS */ -2, /* (246) cmd ::= SHOW APPS */ -2, /* (247) cmd ::= SHOW CONNECTIONS */ -2, /* (248) cmd ::= SHOW LICENCES */ -2, /* (249) cmd ::= SHOW GRANTS */ -4, /* (250) cmd ::= SHOW CREATE DATABASE db_name */ -4, /* (251) cmd ::= SHOW CREATE TABLE full_table_name */ -4, /* (252) cmd ::= SHOW CREATE STABLE full_table_name */ -2, /* (253) cmd ::= SHOW QUERIES */ -2, /* (254) cmd ::= SHOW SCORES */ -2, /* (255) cmd ::= SHOW TOPICS */ -2, /* (256) cmd ::= SHOW VARIABLES */ -3, /* (257) cmd ::= SHOW CLUSTER VARIABLES */ -3, /* (258) cmd ::= SHOW LOCAL VARIABLES */ -5, /* (259) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -2, /* (260) cmd ::= SHOW BNODES */ -2, /* (261) cmd ::= SHOW SNODES */ -2, /* (262) cmd ::= SHOW CLUSTER */ -2, /* (263) cmd ::= SHOW TRANSACTIONS */ -4, /* (264) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -2, /* (265) cmd ::= SHOW CONSUMERS */ -2, /* (266) cmd ::= SHOW SUBSCRIPTIONS */ -5, /* (267) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -6, /* (268) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -7, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -8, /* (270) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -5, /* (271) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ -2, /* (272) cmd ::= SHOW VNODES */ -3, /* (273) cmd ::= SHOW db_name_cond_opt ALIVE */ -3, /* (274) cmd ::= SHOW CLUSTER ALIVE */ 0, /* (275) db_name_cond_opt ::= */ -2, /* (276) db_name_cond_opt ::= db_name NK_DOT */ 0, /* (277) like_pattern_opt ::= */ -2, /* (278) like_pattern_opt ::= LIKE NK_STRING */ -1, /* (279) table_name_cond ::= table_name */ 0, /* (280) from_db_opt ::= */ -2, /* (281) from_db_opt ::= FROM db_name */ 0, /* (282) tag_list_opt ::= */ -1, /* (283) tag_list_opt ::= tag_item */ -3, /* (284) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ -1, /* (285) tag_item ::= TBNAME */ -1, /* (286) tag_item ::= QTAGS */ -1, /* (287) tag_item ::= column_name */ -2, /* (288) tag_item ::= column_name column_alias */ -3, /* (289) tag_item ::= column_name AS column_alias */ -8, /* (290) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ -9, /* (291) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ -4, /* (292) cmd ::= DROP INDEX exists_opt full_index_name */ -1, /* (293) full_index_name ::= index_name */ -3, /* (294) full_index_name ::= db_name NK_DOT index_name */ -10, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -12, /* (296) 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, /* (297) func_list ::= func */ -3, /* (298) func_list ::= func_list NK_COMMA func */ -4, /* (299) func ::= sma_func_name NK_LP expression_list NK_RP */ -1, /* (300) sma_func_name ::= function_name */ -1, /* (301) sma_func_name ::= COUNT */ -1, /* (302) sma_func_name ::= FIRST */ -1, /* (303) sma_func_name ::= LAST */ -1, /* (304) sma_func_name ::= LAST_ROW */ 0, /* (305) sma_stream_opt ::= */ -3, /* (306) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -3, /* (307) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -3, /* (308) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -1, /* (309) with_meta ::= AS */ -3, /* (310) with_meta ::= WITH META AS */ -3, /* (311) with_meta ::= ONLY META AS */ -6, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -7, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -8, /* (314) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -4, /* (315) cmd ::= DROP TOPIC exists_opt topic_name */ -7, /* (316) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -2, /* (317) cmd ::= DESC full_table_name */ -2, /* (318) cmd ::= DESCRIBE full_table_name */ -3, /* (319) cmd ::= RESET QUERY CACHE */ -4, /* (320) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ -4, /* (321) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ 0, /* (322) analyze_opt ::= */ -1, /* (323) analyze_opt ::= ANALYZE */ 0, /* (324) explain_options ::= */ -3, /* (325) explain_options ::= explain_options VERBOSE NK_BOOL */ -3, /* (326) explain_options ::= explain_options RATIO NK_FLOAT */ -12, /* (327) 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, /* (328) cmd ::= DROP FUNCTION exists_opt function_name */ 0, /* (329) agg_func_opt ::= */ -1, /* (330) agg_func_opt ::= AGGREGATE */ 0, /* (331) bufsize_opt ::= */ -2, /* (332) bufsize_opt ::= BUFSIZE NK_INTEGER */ 0, /* (333) language_opt ::= */ -2, /* (334) language_opt ::= LANGUAGE NK_STRING */ 0, /* (335) or_replace_opt ::= */ -2, /* (336) or_replace_opt ::= OR REPLACE */ -12, /* (337) 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, /* (338) cmd ::= DROP STREAM exists_opt stream_name */ -4, /* (339) cmd ::= PAUSE STREAM exists_opt stream_name */ -5, /* (340) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ 0, /* (341) col_list_opt ::= */ -3, /* (342) col_list_opt ::= NK_LP col_name_list NK_RP */ 0, /* (343) tag_def_or_ref_opt ::= */ -1, /* (344) tag_def_or_ref_opt ::= tags_def */ -4, /* (345) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ 0, /* (346) stream_options ::= */ -3, /* (347) stream_options ::= stream_options TRIGGER AT_ONCE */ -3, /* (348) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -4, /* (349) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -3, /* (350) stream_options ::= stream_options WATERMARK duration_literal */ -4, /* (351) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -3, /* (352) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -3, /* (353) stream_options ::= stream_options DELETE_MARK duration_literal */ -4, /* (354) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ 0, /* (355) subtable_opt ::= */ -4, /* (356) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ 0, /* (357) ignore_opt ::= */ -2, /* (358) ignore_opt ::= IGNORE UNTREATED */ -3, /* (359) cmd ::= KILL CONNECTION NK_INTEGER */ -3, /* (360) cmd ::= KILL QUERY NK_STRING */ -3, /* (361) cmd ::= KILL TRANSACTION NK_INTEGER */ -2, /* (362) cmd ::= BALANCE VGROUP */ -3, /* (363) cmd ::= BALANCE VGROUP LEADER */ -4, /* (364) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ -4, /* (365) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -3, /* (366) cmd ::= SPLIT VGROUP NK_INTEGER */ -2, /* (367) dnode_list ::= DNODE NK_INTEGER */ -3, /* (368) dnode_list ::= dnode_list DNODE NK_INTEGER */ -4, /* (369) cmd ::= DELETE FROM full_table_name where_clause_opt */ -1, /* (370) cmd ::= query_or_subquery */ -1, /* (371) cmd ::= insert_query */ -7, /* (372) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -4, /* (373) insert_query ::= INSERT INTO full_table_name query_or_subquery */ -1, /* (374) literal ::= NK_INTEGER */ -1, /* (375) literal ::= NK_FLOAT */ -1, /* (376) literal ::= NK_STRING */ -1, /* (377) literal ::= NK_BOOL */ -2, /* (378) literal ::= TIMESTAMP NK_STRING */ -1, /* (379) literal ::= duration_literal */ -1, /* (380) literal ::= NULL */ -1, /* (381) literal ::= NK_QUESTION */ -1, /* (382) duration_literal ::= NK_VARIABLE */ -1, /* (383) signed ::= NK_INTEGER */ -2, /* (384) signed ::= NK_PLUS NK_INTEGER */ -2, /* (385) signed ::= NK_MINUS NK_INTEGER */ -1, /* (386) signed ::= NK_FLOAT */ -2, /* (387) signed ::= NK_PLUS NK_FLOAT */ -2, /* (388) signed ::= NK_MINUS NK_FLOAT */ -1, /* (389) signed_literal ::= signed */ -1, /* (390) signed_literal ::= NK_STRING */ -1, /* (391) signed_literal ::= NK_BOOL */ -2, /* (392) signed_literal ::= TIMESTAMP NK_STRING */ -1, /* (393) signed_literal ::= duration_literal */ -1, /* (394) signed_literal ::= NULL */ -1, /* (395) signed_literal ::= literal_func */ -1, /* (396) signed_literal ::= NK_QUESTION */ -1, /* (397) literal_list ::= signed_literal */ -3, /* (398) literal_list ::= literal_list NK_COMMA signed_literal */ -1, /* (399) db_name ::= NK_ID */ -1, /* (400) table_name ::= NK_ID */ -1, /* (401) column_name ::= NK_ID */ -1, /* (402) function_name ::= NK_ID */ -1, /* (403) table_alias ::= NK_ID */ -1, /* (404) column_alias ::= NK_ID */ -1, /* (405) user_name ::= NK_ID */ -1, /* (406) topic_name ::= NK_ID */ -1, /* (407) stream_name ::= NK_ID */ -1, /* (408) cgroup_name ::= NK_ID */ -1, /* (409) index_name ::= NK_ID */ -1, /* (410) expr_or_subquery ::= expression */ -1, /* (411) expression ::= literal */ -1, /* (412) expression ::= pseudo_column */ -1, /* (413) expression ::= column_reference */ -1, /* (414) expression ::= function_expression */ -1, /* (415) expression ::= case_when_expression */ -3, /* (416) expression ::= NK_LP expression NK_RP */ -2, /* (417) expression ::= NK_PLUS expr_or_subquery */ -2, /* (418) expression ::= NK_MINUS expr_or_subquery */ -3, /* (419) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ -3, /* (420) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ -3, /* (421) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ -3, /* (422) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ -3, /* (423) expression ::= expr_or_subquery NK_REM expr_or_subquery */ -3, /* (424) expression ::= column_reference NK_ARROW NK_STRING */ -3, /* (425) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ -3, /* (426) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ -1, /* (427) expression_list ::= expr_or_subquery */ -3, /* (428) expression_list ::= expression_list NK_COMMA expr_or_subquery */ -1, /* (429) column_reference ::= column_name */ -3, /* (430) column_reference ::= table_name NK_DOT column_name */ -1, /* (431) pseudo_column ::= ROWTS */ -1, /* (432) pseudo_column ::= TBNAME */ -3, /* (433) pseudo_column ::= table_name NK_DOT TBNAME */ -1, /* (434) pseudo_column ::= QSTART */ -1, /* (435) pseudo_column ::= QEND */ -1, /* (436) pseudo_column ::= QDURATION */ -1, /* (437) pseudo_column ::= WSTART */ -1, /* (438) pseudo_column ::= WEND */ -1, /* (439) pseudo_column ::= WDURATION */ -1, /* (440) pseudo_column ::= IROWTS */ -1, /* (441) pseudo_column ::= ISFILLED */ -1, /* (442) pseudo_column ::= QTAGS */ -4, /* (443) function_expression ::= function_name NK_LP expression_list NK_RP */ -4, /* (444) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ -6, /* (445) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -1, /* (446) function_expression ::= literal_func */ -3, /* (447) literal_func ::= noarg_func NK_LP NK_RP */ -1, /* (448) literal_func ::= NOW */ -1, /* (449) noarg_func ::= NOW */ -1, /* (450) noarg_func ::= TODAY */ -1, /* (451) noarg_func ::= TIMEZONE */ -1, /* (452) noarg_func ::= DATABASE */ -1, /* (453) noarg_func ::= CLIENT_VERSION */ -1, /* (454) noarg_func ::= SERVER_VERSION */ -1, /* (455) noarg_func ::= SERVER_STATUS */ -1, /* (456) noarg_func ::= CURRENT_USER */ -1, /* (457) noarg_func ::= USER */ -1, /* (458) star_func ::= COUNT */ -1, /* (459) star_func ::= FIRST */ -1, /* (460) star_func ::= LAST */ -1, /* (461) star_func ::= LAST_ROW */ -1, /* (462) star_func_para_list ::= NK_STAR */ -1, /* (463) star_func_para_list ::= other_para_list */ -1, /* (464) other_para_list ::= star_func_para */ -3, /* (465) other_para_list ::= other_para_list NK_COMMA star_func_para */ -1, /* (466) star_func_para ::= expr_or_subquery */ -3, /* (467) star_func_para ::= table_name NK_DOT NK_STAR */ -4, /* (468) case_when_expression ::= CASE when_then_list case_when_else_opt END */ -5, /* (469) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -1, /* (470) when_then_list ::= when_then_expr */ -2, /* (471) when_then_list ::= when_then_list when_then_expr */ -4, /* (472) when_then_expr ::= WHEN common_expression THEN common_expression */ 0, /* (473) case_when_else_opt ::= */ -2, /* (474) case_when_else_opt ::= ELSE common_expression */ -3, /* (475) predicate ::= expr_or_subquery compare_op expr_or_subquery */ -5, /* (476) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ -6, /* (477) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ -3, /* (478) predicate ::= expr_or_subquery IS NULL */ -4, /* (479) predicate ::= expr_or_subquery IS NOT NULL */ -3, /* (480) predicate ::= expr_or_subquery in_op in_predicate_value */ -1, /* (481) compare_op ::= NK_LT */ -1, /* (482) compare_op ::= NK_GT */ -1, /* (483) compare_op ::= NK_LE */ -1, /* (484) compare_op ::= NK_GE */ -1, /* (485) compare_op ::= NK_NE */ -1, /* (486) compare_op ::= NK_EQ */ -1, /* (487) compare_op ::= LIKE */ -2, /* (488) compare_op ::= NOT LIKE */ -1, /* (489) compare_op ::= MATCH */ -1, /* (490) compare_op ::= NMATCH */ -1, /* (491) compare_op ::= CONTAINS */ -1, /* (492) in_op ::= IN */ -2, /* (493) in_op ::= NOT IN */ -3, /* (494) in_predicate_value ::= NK_LP literal_list NK_RP */ -1, /* (495) boolean_value_expression ::= boolean_primary */ -2, /* (496) boolean_value_expression ::= NOT boolean_primary */ -3, /* (497) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ -3, /* (498) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ -1, /* (499) boolean_primary ::= predicate */ -3, /* (500) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ -1, /* (501) common_expression ::= expr_or_subquery */ -1, /* (502) common_expression ::= boolean_value_expression */ 0, /* (503) from_clause_opt ::= */ -2, /* (504) from_clause_opt ::= FROM table_reference_list */ -1, /* (505) table_reference_list ::= table_reference */ -3, /* (506) table_reference_list ::= table_reference_list NK_COMMA table_reference */ -1, /* (507) table_reference ::= table_primary */ -1, /* (508) table_reference ::= joined_table */ -2, /* (509) table_primary ::= table_name alias_opt */ -4, /* (510) table_primary ::= db_name NK_DOT table_name alias_opt */ -2, /* (511) table_primary ::= subquery alias_opt */ -1, /* (512) table_primary ::= parenthesized_joined_table */ 0, /* (513) alias_opt ::= */ -1, /* (514) alias_opt ::= table_alias */ -2, /* (515) alias_opt ::= AS table_alias */ -3, /* (516) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ -3, /* (517) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ -6, /* (518) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ 0, /* (519) join_type ::= */ -1, /* (520) join_type ::= INNER */ -13, /* (521) query_specification ::= SELECT tag_mode_opt set_quantifier_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, /* (522) tag_mode_opt ::= */ -1, /* (523) tag_mode_opt ::= TAGS */ 0, /* (524) set_quantifier_opt ::= */ -1, /* (525) set_quantifier_opt ::= DISTINCT */ -1, /* (526) set_quantifier_opt ::= ALL */ -1, /* (527) select_list ::= select_item */ -3, /* (528) select_list ::= select_list NK_COMMA select_item */ -1, /* (529) select_item ::= NK_STAR */ -1, /* (530) select_item ::= common_expression */ -2, /* (531) select_item ::= common_expression column_alias */ -3, /* (532) select_item ::= common_expression AS column_alias */ -3, /* (533) select_item ::= table_name NK_DOT NK_STAR */ 0, /* (534) where_clause_opt ::= */ -2, /* (535) where_clause_opt ::= WHERE search_condition */ 0, /* (536) partition_by_clause_opt ::= */ -3, /* (537) partition_by_clause_opt ::= PARTITION BY partition_list */ -1, /* (538) partition_list ::= partition_item */ -3, /* (539) partition_list ::= partition_list NK_COMMA partition_item */ -1, /* (540) partition_item ::= expr_or_subquery */ -2, /* (541) partition_item ::= expr_or_subquery column_alias */ -3, /* (542) partition_item ::= expr_or_subquery AS column_alias */ 0, /* (543) twindow_clause_opt ::= */ -6, /* (544) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -4, /* (545) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -6, /* (546) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -8, /* (547) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -7, /* (548) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ 0, /* (549) sliding_opt ::= */ -4, /* (550) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ 0, /* (551) fill_opt ::= */ -4, /* (552) fill_opt ::= FILL NK_LP fill_mode NK_RP */ -6, /* (553) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -6, /* (554) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -1, /* (555) fill_mode ::= NONE */ -1, /* (556) fill_mode ::= PREV */ -1, /* (557) fill_mode ::= NULL */ -1, /* (558) fill_mode ::= NULL_F */ -1, /* (559) fill_mode ::= LINEAR */ -1, /* (560) fill_mode ::= NEXT */ 0, /* (561) group_by_clause_opt ::= */ -3, /* (562) group_by_clause_opt ::= GROUP BY group_by_list */ -1, /* (563) group_by_list ::= expr_or_subquery */ -3, /* (564) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ 0, /* (565) having_clause_opt ::= */ -2, /* (566) having_clause_opt ::= HAVING search_condition */ 0, /* (567) range_opt ::= */ -6, /* (568) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -4, /* (569) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ 0, /* (570) every_opt ::= */ -4, /* (571) every_opt ::= EVERY NK_LP duration_literal NK_RP */ -4, /* (572) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ -1, /* (573) query_simple ::= query_specification */ -1, /* (574) query_simple ::= union_query_expression */ -4, /* (575) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -3, /* (576) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -1, /* (577) query_simple_or_subquery ::= query_simple */ -1, /* (578) query_simple_or_subquery ::= subquery */ -1, /* (579) query_or_subquery ::= query_expression */ -1, /* (580) query_or_subquery ::= subquery */ 0, /* (581) order_by_clause_opt ::= */ -3, /* (582) order_by_clause_opt ::= ORDER BY sort_specification_list */ 0, /* (583) slimit_clause_opt ::= */ -2, /* (584) slimit_clause_opt ::= SLIMIT NK_INTEGER */ -4, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ -4, /* (586) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ 0, /* (587) limit_clause_opt ::= */ -2, /* (588) limit_clause_opt ::= LIMIT NK_INTEGER */ -4, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ -4, /* (590) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ -3, /* (591) subquery ::= NK_LP query_expression NK_RP */ -3, /* (592) subquery ::= NK_LP subquery NK_RP */ -1, /* (593) search_condition ::= common_expression */ -1, /* (594) sort_specification_list ::= sort_specification */ -3, /* (595) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ -3, /* (596) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ 0, /* (597) ordering_specification_opt ::= */ -1, /* (598) ordering_specification_opt ::= ASC */ -1, /* (599) ordering_specification_opt ::= DESC */ 0, /* (600) null_ordering_opt ::= */ -2, /* (601) null_ordering_opt ::= NULLS FIRST */ -2, /* (602) 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 */ #line 50 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } #line 4858 "sql.c" yy_destructor(yypParser,339,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ #line 51 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } #line 4864 "sql.c" yy_destructor(yypParser,340,&yymsp[0].minor); break; case 2: /* account_options ::= */ #line 55 "sql.y" { } #line 4870 "sql.c" break; case 3: /* account_options ::= account_options PPS literal */ case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); case 5: /* account_options ::= account_options STORAGE literal */ yytestcase(yyruleno==5); case 6: /* account_options ::= account_options STREAMS literal */ yytestcase(yyruleno==6); case 7: /* account_options ::= account_options QTIME literal */ yytestcase(yyruleno==7); case 8: /* account_options ::= account_options DBS literal */ yytestcase(yyruleno==8); case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); { yy_destructor(yypParser,339,&yymsp[-2].minor); #line 56 "sql.y" { } #line 4884 "sql.c" yy_destructor(yypParser,341,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,342,&yymsp[0].minor); #line 68 "sql.y" { } #line 4892 "sql.c" } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,340,&yymsp[-1].minor); #line 69 "sql.y" { } #line 4899 "sql.c" yy_destructor(yypParser,342,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ case 15: /* alter_account_option ::= PPS literal */ yytestcase(yyruleno==15); case 16: /* alter_account_option ::= TSERIES literal */ yytestcase(yyruleno==16); case 17: /* alter_account_option ::= STORAGE literal */ yytestcase(yyruleno==17); case 18: /* alter_account_option ::= STREAMS literal */ yytestcase(yyruleno==18); case 19: /* alter_account_option ::= QTIME literal */ yytestcase(yyruleno==19); case 20: /* alter_account_option ::= DBS literal */ yytestcase(yyruleno==20); case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21); case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); #line 73 "sql.y" { } #line 4915 "sql.c" yy_destructor(yypParser,341,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ #line 85 "sql.y" { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy129, &yymsp[-1].minor.yy0, yymsp[0].minor.yy215); } #line 4921 "sql.c" break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ #line 86 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy129, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } #line 4926 "sql.c" break; case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ #line 87 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy129, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } #line 4931 "sql.c" break; case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ #line 88 "sql.y" { pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy129, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } #line 4936 "sql.c" break; case 28: /* cmd ::= DROP USER user_name */ #line 89 "sql.y" { pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy129); } #line 4941 "sql.c" break; case 29: /* sysinfo_opt ::= */ #line 93 "sql.y" { yymsp[1].minor.yy215 = 1; } #line 4946 "sql.c" break; case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ #line 94 "sql.y" { yymsp[-1].minor.yy215 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } #line 4951 "sql.c" break; case 31: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ #line 97 "sql.y" { pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy717, &yymsp[-3].minor.yy505, &yymsp[0].minor.yy129, yymsp[-2].minor.yy840); } #line 4956 "sql.c" break; case 32: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ #line 98 "sql.y" { pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy717, &yymsp[-3].minor.yy505, &yymsp[0].minor.yy129, yymsp[-2].minor.yy840); } #line 4961 "sql.c" break; case 33: /* privileges ::= ALL */ #line 102 "sql.y" { yymsp[0].minor.yy717 = PRIVILEGE_TYPE_ALL; } #line 4966 "sql.c" break; case 34: /* privileges ::= priv_type_list */ case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36); #line 103 "sql.y" { yylhsminor.yy717 = yymsp[0].minor.yy717; } #line 4972 "sql.c" yymsp[0].minor.yy717 = yylhsminor.yy717; break; case 35: /* privileges ::= SUBSCRIBE */ #line 104 "sql.y" { yymsp[0].minor.yy717 = PRIVILEGE_TYPE_SUBSCRIBE; } #line 4978 "sql.c" break; case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ #line 109 "sql.y" { yylhsminor.yy717 = yymsp[-2].minor.yy717 | yymsp[0].minor.yy717; } #line 4983 "sql.c" yymsp[-2].minor.yy717 = yylhsminor.yy717; break; case 38: /* priv_type ::= READ */ #line 113 "sql.y" { yymsp[0].minor.yy717 = PRIVILEGE_TYPE_READ; } #line 4989 "sql.c" break; case 39: /* priv_type ::= WRITE */ #line 114 "sql.y" { yymsp[0].minor.yy717 = PRIVILEGE_TYPE_WRITE; } #line 4994 "sql.c" break; case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ #line 118 "sql.y" { yylhsminor.yy505.first = yymsp[-2].minor.yy0; yylhsminor.yy505.second = yymsp[0].minor.yy0; } #line 4999 "sql.c" yymsp[-2].minor.yy505 = yylhsminor.yy505; break; case 41: /* priv_level ::= db_name NK_DOT NK_STAR */ #line 119 "sql.y" { yylhsminor.yy505.first = yymsp[-2].minor.yy129; yylhsminor.yy505.second = yymsp[0].minor.yy0; } #line 5005 "sql.c" yymsp[-2].minor.yy505 = yylhsminor.yy505; break; case 42: /* priv_level ::= db_name NK_DOT table_name */ #line 120 "sql.y" { yylhsminor.yy505.first = yymsp[-2].minor.yy129; yylhsminor.yy505.second = yymsp[0].minor.yy129; } #line 5011 "sql.c" yymsp[-2].minor.yy505 = yylhsminor.yy505; break; case 43: /* priv_level ::= topic_name */ #line 121 "sql.y" { yylhsminor.yy505.first = yymsp[0].minor.yy129; yylhsminor.yy505.second = nil_token; } #line 5017 "sql.c" yymsp[0].minor.yy505 = yylhsminor.yy505; break; case 44: /* with_opt ::= */ case 144: /* start_opt ::= */ yytestcase(yyruleno==144); case 148: /* end_opt ::= */ yytestcase(yyruleno==148); case 277: /* like_pattern_opt ::= */ yytestcase(yyruleno==277); case 355: /* subtable_opt ::= */ yytestcase(yyruleno==355); case 473: /* case_when_else_opt ::= */ yytestcase(yyruleno==473); case 503: /* from_clause_opt ::= */ yytestcase(yyruleno==503); case 534: /* where_clause_opt ::= */ yytestcase(yyruleno==534); case 543: /* twindow_clause_opt ::= */ yytestcase(yyruleno==543); case 549: /* sliding_opt ::= */ yytestcase(yyruleno==549); case 551: /* fill_opt ::= */ yytestcase(yyruleno==551); case 565: /* having_clause_opt ::= */ yytestcase(yyruleno==565); case 567: /* range_opt ::= */ yytestcase(yyruleno==567); case 570: /* every_opt ::= */ yytestcase(yyruleno==570); case 583: /* slimit_clause_opt ::= */ yytestcase(yyruleno==583); case 587: /* limit_clause_opt ::= */ yytestcase(yyruleno==587); #line 123 "sql.y" { yymsp[1].minor.yy840 = NULL; } #line 5038 "sql.c" break; case 45: /* with_opt ::= WITH search_condition */ case 504: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==504); case 535: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==535); case 566: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==566); #line 124 "sql.y" { yymsp[-1].minor.yy840 = yymsp[0].minor.yy840; } #line 5046 "sql.c" break; case 46: /* cmd ::= CREATE DNODE dnode_endpoint */ #line 127 "sql.y" { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy129, NULL); } #line 5051 "sql.c" break; case 47: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ #line 128 "sql.y" { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy129, &yymsp[0].minor.yy0); } #line 5056 "sql.c" break; case 48: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ #line 129 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy313, false); } #line 5061 "sql.c" break; case 49: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ #line 130 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy129, yymsp[0].minor.yy313, false); } #line 5066 "sql.c" break; case 50: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ #line 131 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy313); } #line 5071 "sql.c" break; case 51: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ #line 132 "sql.y" { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy129, false, yymsp[0].minor.yy313); } #line 5076 "sql.c" break; case 52: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ #line 133 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } #line 5081 "sql.c" break; case 53: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ #line 134 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } #line 5086 "sql.c" break; case 54: /* cmd ::= ALTER ALL DNODES NK_STRING */ #line 135 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } #line 5091 "sql.c" break; case 55: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ #line 136 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } #line 5096 "sql.c" break; case 56: /* cmd ::= RESTORE DNODE NK_INTEGER */ #line 137 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } #line 5101 "sql.c" break; case 57: /* dnode_endpoint ::= NK_STRING */ case 58: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==58); case 59: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==59); case 301: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==301); case 302: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==302); case 303: /* sma_func_name ::= LAST */ yytestcase(yyruleno==303); case 304: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==304); case 399: /* db_name ::= NK_ID */ yytestcase(yyruleno==399); case 400: /* table_name ::= NK_ID */ yytestcase(yyruleno==400); case 401: /* column_name ::= NK_ID */ yytestcase(yyruleno==401); case 402: /* function_name ::= NK_ID */ yytestcase(yyruleno==402); case 403: /* table_alias ::= NK_ID */ yytestcase(yyruleno==403); case 404: /* column_alias ::= NK_ID */ yytestcase(yyruleno==404); case 405: /* user_name ::= NK_ID */ yytestcase(yyruleno==405); case 406: /* topic_name ::= NK_ID */ yytestcase(yyruleno==406); case 407: /* stream_name ::= NK_ID */ yytestcase(yyruleno==407); case 408: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==408); case 409: /* index_name ::= NK_ID */ yytestcase(yyruleno==409); case 449: /* noarg_func ::= NOW */ yytestcase(yyruleno==449); case 450: /* noarg_func ::= TODAY */ yytestcase(yyruleno==450); case 451: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==451); case 452: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==452); case 453: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==453); case 454: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==454); case 455: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==455); case 456: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==456); case 457: /* noarg_func ::= USER */ yytestcase(yyruleno==457); case 458: /* star_func ::= COUNT */ yytestcase(yyruleno==458); case 459: /* star_func ::= FIRST */ yytestcase(yyruleno==459); case 460: /* star_func ::= LAST */ yytestcase(yyruleno==460); case 461: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==461); #line 141 "sql.y" { yylhsminor.yy129 = yymsp[0].minor.yy0; } #line 5136 "sql.c" yymsp[0].minor.yy129 = yylhsminor.yy129; break; case 60: /* force_opt ::= */ case 84: /* not_exists_opt ::= */ yytestcase(yyruleno==84); case 86: /* exists_opt ::= */ yytestcase(yyruleno==86); case 322: /* analyze_opt ::= */ yytestcase(yyruleno==322); case 329: /* agg_func_opt ::= */ yytestcase(yyruleno==329); case 335: /* or_replace_opt ::= */ yytestcase(yyruleno==335); case 357: /* ignore_opt ::= */ yytestcase(yyruleno==357); case 522: /* tag_mode_opt ::= */ yytestcase(yyruleno==522); case 524: /* set_quantifier_opt ::= */ yytestcase(yyruleno==524); #line 147 "sql.y" { yymsp[1].minor.yy313 = false; } #line 5150 "sql.c" break; case 61: /* force_opt ::= FORCE */ case 62: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==62); case 323: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==323); case 330: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==330); case 523: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==523); case 525: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==525); #line 148 "sql.y" { yymsp[0].minor.yy313 = true; } #line 5160 "sql.c" break; case 63: /* cmd ::= ALTER LOCAL NK_STRING */ #line 155 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } #line 5165 "sql.c" break; case 64: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ #line 156 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } #line 5170 "sql.c" break; case 65: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ #line 159 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } #line 5175 "sql.c" break; case 66: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ #line 160 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } #line 5180 "sql.c" break; case 67: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ #line 161 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } #line 5185 "sql.c" break; case 68: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ #line 164 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } #line 5190 "sql.c" break; case 69: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ #line 165 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } #line 5195 "sql.c" break; case 70: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ #line 168 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } #line 5200 "sql.c" break; case 71: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ #line 169 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } #line 5205 "sql.c" break; case 72: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ #line 172 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } #line 5210 "sql.c" break; case 73: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ #line 173 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } #line 5215 "sql.c" break; case 74: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ #line 174 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } #line 5220 "sql.c" break; case 75: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ #line 177 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } #line 5225 "sql.c" break; case 76: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ #line 180 "sql.y" { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy313, &yymsp[-1].minor.yy129, yymsp[0].minor.yy840); } #line 5230 "sql.c" break; case 77: /* cmd ::= DROP DATABASE exists_opt db_name */ #line 181 "sql.y" { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy313, &yymsp[0].minor.yy129); } #line 5235 "sql.c" break; case 78: /* cmd ::= USE db_name */ #line 182 "sql.y" { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy129); } #line 5240 "sql.c" break; case 79: /* cmd ::= ALTER DATABASE db_name alter_db_options */ #line 183 "sql.y" { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy129, yymsp[0].minor.yy840); } #line 5245 "sql.c" break; case 80: /* cmd ::= FLUSH DATABASE db_name */ #line 184 "sql.y" { pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy129); } #line 5250 "sql.c" break; case 81: /* cmd ::= TRIM DATABASE db_name speed_opt */ #line 185 "sql.y" { pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy129, yymsp[0].minor.yy356); } #line 5255 "sql.c" break; case 82: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ #line 186 "sql.y" { pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy129, yymsp[-1].minor.yy840, yymsp[0].minor.yy840); } #line 5260 "sql.c" break; case 83: /* not_exists_opt ::= IF NOT EXISTS */ #line 190 "sql.y" { yymsp[-2].minor.yy313 = true; } #line 5265 "sql.c" break; case 85: /* exists_opt ::= IF EXISTS */ case 336: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==336); case 358: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==358); #line 195 "sql.y" { yymsp[-1].minor.yy313 = true; } #line 5272 "sql.c" break; case 87: /* db_options ::= */ #line 198 "sql.y" { yymsp[1].minor.yy840 = createDefaultDatabaseOptions(pCxt); } #line 5277 "sql.c" break; case 88: /* db_options ::= db_options BUFFER NK_INTEGER */ #line 199 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } #line 5282 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 89: /* db_options ::= db_options CACHEMODEL NK_STRING */ #line 200 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } #line 5288 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 90: /* db_options ::= db_options CACHESIZE NK_INTEGER */ #line 201 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } #line 5294 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 91: /* db_options ::= db_options COMP NK_INTEGER */ #line 202 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_COMP, &yymsp[0].minor.yy0); } #line 5300 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 92: /* db_options ::= db_options DURATION NK_INTEGER */ case 93: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==93); #line 203 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } #line 5307 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 94: /* db_options ::= db_options MAXROWS NK_INTEGER */ #line 205 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } #line 5313 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 95: /* db_options ::= db_options MINROWS NK_INTEGER */ #line 206 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } #line 5319 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 96: /* db_options ::= db_options KEEP integer_list */ case 97: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==97); #line 207 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_KEEP, yymsp[0].minor.yy56); } #line 5326 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 98: /* db_options ::= db_options PAGES NK_INTEGER */ #line 209 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } #line 5332 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 99: /* db_options ::= db_options PAGESIZE NK_INTEGER */ #line 210 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } #line 5338 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 100: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ #line 211 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } #line 5344 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 101: /* db_options ::= db_options PRECISION NK_STRING */ #line 212 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } #line 5350 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 102: /* db_options ::= db_options REPLICA NK_INTEGER */ #line 213 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } #line 5356 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 103: /* db_options ::= db_options VGROUPS NK_INTEGER */ #line 215 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } #line 5362 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 104: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ #line 216 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } #line 5368 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 105: /* db_options ::= db_options RETENTIONS retention_list */ #line 217 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_RETENTIONS, yymsp[0].minor.yy56); } #line 5374 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 106: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ #line 218 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } #line 5380 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 107: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ #line 219 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_WAL, &yymsp[0].minor.yy0); } #line 5386 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 108: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ #line 220 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } #line 5392 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 109: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ #line 221 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } #line 5398 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 110: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ #line 222 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-3].minor.yy840, DB_OPTION_WAL_RETENTION_PERIOD, &t); } #line 5408 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 111: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ #line 227 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } #line 5414 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 112: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ #line 228 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-3].minor.yy840, DB_OPTION_WAL_RETENTION_SIZE, &t); } #line 5424 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 113: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ #line 233 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } #line 5430 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 114: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ #line 234 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } #line 5436 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 115: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ #line 235 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } #line 5442 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 116: /* db_options ::= db_options TABLE_PREFIX signed */ #line 236 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy840); } #line 5448 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 117: /* db_options ::= db_options TABLE_SUFFIX signed */ #line 237 "sql.y" { yylhsminor.yy840 = setDatabaseOption(pCxt, yymsp[-2].minor.yy840, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy840); } #line 5454 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 118: /* alter_db_options ::= alter_db_option */ #line 239 "sql.y" { yylhsminor.yy840 = createAlterDatabaseOptions(pCxt); yylhsminor.yy840 = setAlterDatabaseOption(pCxt, yylhsminor.yy840, &yymsp[0].minor.yy461); } #line 5460 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 119: /* alter_db_options ::= alter_db_options alter_db_option */ #line 240 "sql.y" { yylhsminor.yy840 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy840, &yymsp[0].minor.yy461); } #line 5466 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 120: /* alter_db_option ::= BUFFER NK_INTEGER */ #line 244 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5472 "sql.c" break; case 121: /* alter_db_option ::= CACHEMODEL NK_STRING */ #line 245 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5477 "sql.c" break; case 122: /* alter_db_option ::= CACHESIZE NK_INTEGER */ #line 246 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5482 "sql.c" break; case 123: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ #line 247 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5487 "sql.c" break; case 124: /* alter_db_option ::= KEEP integer_list */ case 125: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==125); #line 248 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_KEEP; yymsp[-1].minor.yy461.pList = yymsp[0].minor.yy56; } #line 5493 "sql.c" break; case 126: /* alter_db_option ::= PAGES NK_INTEGER */ #line 250 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_PAGES; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5498 "sql.c" break; case 127: /* alter_db_option ::= REPLICA NK_INTEGER */ #line 251 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5503 "sql.c" break; case 128: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ #line 253 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_WAL; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5508 "sql.c" break; case 129: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ #line 254 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5513 "sql.c" break; case 130: /* alter_db_option ::= MINROWS NK_INTEGER */ #line 255 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5518 "sql.c" break; case 131: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ #line 256 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5523 "sql.c" break; case 132: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ #line 257 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy461.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy461.val = t; } #line 5532 "sql.c" break; case 133: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ #line 262 "sql.y" { yymsp[-1].minor.yy461.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5537 "sql.c" break; case 134: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ #line 263 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yymsp[-2].minor.yy461.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy461.val = t; } #line 5546 "sql.c" break; case 135: /* integer_list ::= NK_INTEGER */ #line 271 "sql.y" { yylhsminor.yy56 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } #line 5551 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; case 136: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 368: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==368); #line 272 "sql.y" { yylhsminor.yy56 = addNodeToList(pCxt, yymsp[-2].minor.yy56, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } #line 5558 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 137: /* variable_list ::= NK_VARIABLE */ #line 276 "sql.y" { yylhsminor.yy56 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 5564 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; case 138: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ #line 277 "sql.y" { yylhsminor.yy56 = addNodeToList(pCxt, yymsp[-2].minor.yy56, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 5570 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 139: /* retention_list ::= retention */ case 169: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==169); case 172: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==172); case 179: /* column_def_list ::= column_def */ yytestcase(yyruleno==179); case 224: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==224); case 229: /* col_name_list ::= col_name */ yytestcase(yyruleno==229); case 283: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==283); case 297: /* func_list ::= func */ yytestcase(yyruleno==297); case 397: /* literal_list ::= signed_literal */ yytestcase(yyruleno==397); case 464: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==464); case 470: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==470); case 527: /* select_list ::= select_item */ yytestcase(yyruleno==527); case 538: /* partition_list ::= partition_item */ yytestcase(yyruleno==538); case 594: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==594); #line 281 "sql.y" { yylhsminor.yy56 = createNodeList(pCxt, yymsp[0].minor.yy840); } #line 5589 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; case 140: /* retention_list ::= retention_list NK_COMMA retention */ case 173: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==173); case 180: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==180); case 225: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==225); case 230: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==230); case 284: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==284); case 298: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==298); case 398: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==398); case 465: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==465); case 528: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==528); case 539: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==539); case 595: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==595); #line 282 "sql.y" { yylhsminor.yy56 = addNodeToList(pCxt, yymsp[-2].minor.yy56, yymsp[0].minor.yy840); } #line 5606 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 141: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ #line 284 "sql.y" { yylhsminor.yy840 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 5612 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 142: /* speed_opt ::= */ case 331: /* bufsize_opt ::= */ yytestcase(yyruleno==331); #line 288 "sql.y" { yymsp[1].minor.yy356 = 0; } #line 5619 "sql.c" break; case 143: /* speed_opt ::= MAX_SPEED NK_INTEGER */ case 332: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==332); #line 289 "sql.y" { yymsp[-1].minor.yy356 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } #line 5625 "sql.c" break; case 145: /* start_opt ::= START WITH NK_INTEGER */ case 149: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==149); #line 292 "sql.y" { yymsp[-2].minor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } #line 5631 "sql.c" break; case 146: /* start_opt ::= START WITH NK_STRING */ case 150: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==150); #line 293 "sql.y" { yymsp[-2].minor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } #line 5637 "sql.c" break; case 147: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 151: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==151); #line 294 "sql.y" { yymsp[-3].minor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } #line 5643 "sql.c" break; case 152: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 154: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==154); #line 303 "sql.y" { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy313, yymsp[-5].minor.yy840, yymsp[-3].minor.yy56, yymsp[-1].minor.yy56, yymsp[0].minor.yy840); } #line 5649 "sql.c" break; case 153: /* cmd ::= CREATE TABLE multi_create_clause */ #line 304 "sql.y" { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy56); } #line 5654 "sql.c" break; case 155: /* cmd ::= DROP TABLE multi_drop_clause */ #line 307 "sql.y" { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy56); } #line 5659 "sql.c" break; case 156: /* cmd ::= DROP STABLE exists_opt full_table_name */ #line 308 "sql.y" { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy313, yymsp[0].minor.yy840); } #line 5664 "sql.c" break; case 157: /* cmd ::= ALTER TABLE alter_table_clause */ case 370: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==370); case 371: /* cmd ::= insert_query */ yytestcase(yyruleno==371); #line 310 "sql.y" { pCxt->pRootNode = yymsp[0].minor.yy840; } #line 5671 "sql.c" break; case 158: /* cmd ::= ALTER STABLE alter_table_clause */ #line 311 "sql.y" { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy840); } #line 5676 "sql.c" break; case 159: /* alter_table_clause ::= full_table_name alter_table_options */ #line 313 "sql.y" { yylhsminor.yy840 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy840, yymsp[0].minor.yy840); } #line 5681 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 160: /* alter_table_clause ::= full_table_name ADD COLUMN column_def */ #line 315 "sql.y" { yylhsminor.yy840 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy840, TSDB_ALTER_TABLE_ADD_COLUMN, yymsp[0].minor.yy840); } #line 5687 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 161: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ #line 316 "sql.y" { yylhsminor.yy840 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy840, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy129); } #line 5693 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 162: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_def */ #line 318 "sql.y" { yylhsminor.yy840 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy840, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, yymsp[0].minor.yy840); } #line 5699 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 163: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ #line 320 "sql.y" { yylhsminor.yy840 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy840, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy129, &yymsp[0].minor.yy129); } #line 5705 "sql.c" yymsp[-4].minor.yy840 = yylhsminor.yy840; break; case 164: /* alter_table_clause ::= full_table_name ADD TAG column_def */ #line 322 "sql.y" { yylhsminor.yy840 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy840, TSDB_ALTER_TABLE_ADD_TAG, yymsp[0].minor.yy840); } #line 5711 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 165: /* alter_table_clause ::= full_table_name DROP TAG column_name */ #line 323 "sql.y" { yylhsminor.yy840 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy840, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy129); } #line 5717 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 166: /* alter_table_clause ::= full_table_name MODIFY TAG column_def */ #line 325 "sql.y" { yylhsminor.yy840 = createAlterTableAddModifyCol(pCxt, yymsp[-3].minor.yy840, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, yymsp[0].minor.yy840); } #line 5723 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 167: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ #line 327 "sql.y" { yylhsminor.yy840 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy840, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy129, &yymsp[0].minor.yy129); } #line 5729 "sql.c" yymsp[-4].minor.yy840 = yylhsminor.yy840; break; case 168: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ #line 329 "sql.y" { yylhsminor.yy840 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy840, &yymsp[-2].minor.yy129, yymsp[0].minor.yy840); } #line 5735 "sql.c" yymsp[-5].minor.yy840 = yylhsminor.yy840; break; case 170: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 471: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==471); #line 334 "sql.y" { yylhsminor.yy56 = addNodeToList(pCxt, yymsp[-1].minor.yy56, yymsp[0].minor.yy840); } #line 5742 "sql.c" yymsp[-1].minor.yy56 = yylhsminor.yy56; break; case 171: /* 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 */ #line 338 "sql.y" { yylhsminor.yy840 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy313, yymsp[-8].minor.yy840, yymsp[-6].minor.yy840, yymsp[-5].minor.yy56, yymsp[-2].minor.yy56, yymsp[0].minor.yy840); } #line 5748 "sql.c" yymsp[-9].minor.yy840 = yylhsminor.yy840; break; case 174: /* drop_table_clause ::= exists_opt full_table_name */ #line 345 "sql.y" { yylhsminor.yy840 = createDropTableClause(pCxt, yymsp[-1].minor.yy313, yymsp[0].minor.yy840); } #line 5754 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 175: /* specific_cols_opt ::= */ case 207: /* tags_def_opt ::= */ yytestcase(yyruleno==207); case 282: /* tag_list_opt ::= */ yytestcase(yyruleno==282); case 341: /* col_list_opt ::= */ yytestcase(yyruleno==341); case 343: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==343); case 536: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==536); case 561: /* group_by_clause_opt ::= */ yytestcase(yyruleno==561); case 581: /* order_by_clause_opt ::= */ yytestcase(yyruleno==581); #line 349 "sql.y" { yymsp[1].minor.yy56 = NULL; } #line 5767 "sql.c" break; case 176: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ case 342: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==342); #line 350 "sql.y" { yymsp[-2].minor.yy56 = yymsp[-1].minor.yy56; } #line 5773 "sql.c" break; case 177: /* full_table_name ::= table_name */ #line 352 "sql.y" { yylhsminor.yy840 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy129, NULL); } #line 5778 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 178: /* full_table_name ::= db_name NK_DOT table_name */ #line 353 "sql.y" { yylhsminor.yy840 = createRealTableNode(pCxt, &yymsp[-2].minor.yy129, &yymsp[0].minor.yy129, NULL); } #line 5784 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 181: /* column_def ::= column_name type_name */ #line 360 "sql.y" { yylhsminor.yy840 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy129, yymsp[0].minor.yy784, NULL); } #line 5790 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 182: /* column_def ::= column_name type_name COMMENT NK_STRING */ #line 361 "sql.y" { yylhsminor.yy840 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy129, yymsp[-2].minor.yy784, &yymsp[0].minor.yy0); } #line 5796 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 183: /* type_name ::= BOOL */ #line 365 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_BOOL); } #line 5802 "sql.c" break; case 184: /* type_name ::= TINYINT */ #line 366 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_TINYINT); } #line 5807 "sql.c" break; case 185: /* type_name ::= SMALLINT */ #line 367 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_SMALLINT); } #line 5812 "sql.c" break; case 186: /* type_name ::= INT */ case 187: /* type_name ::= INTEGER */ yytestcase(yyruleno==187); #line 368 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_INT); } #line 5818 "sql.c" break; case 188: /* type_name ::= BIGINT */ #line 370 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_BIGINT); } #line 5823 "sql.c" break; case 189: /* type_name ::= FLOAT */ #line 371 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_FLOAT); } #line 5828 "sql.c" break; case 190: /* type_name ::= DOUBLE */ #line 372 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_DOUBLE); } #line 5833 "sql.c" break; case 191: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ #line 373 "sql.y" { yymsp[-3].minor.yy784 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } #line 5838 "sql.c" break; case 192: /* type_name ::= TIMESTAMP */ #line 374 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } #line 5843 "sql.c" break; case 193: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ #line 375 "sql.y" { yymsp[-3].minor.yy784 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } #line 5848 "sql.c" break; case 194: /* type_name ::= TINYINT UNSIGNED */ #line 376 "sql.y" { yymsp[-1].minor.yy784 = createDataType(TSDB_DATA_TYPE_UTINYINT); } #line 5853 "sql.c" break; case 195: /* type_name ::= SMALLINT UNSIGNED */ #line 377 "sql.y" { yymsp[-1].minor.yy784 = createDataType(TSDB_DATA_TYPE_USMALLINT); } #line 5858 "sql.c" break; case 196: /* type_name ::= INT UNSIGNED */ #line 378 "sql.y" { yymsp[-1].minor.yy784 = createDataType(TSDB_DATA_TYPE_UINT); } #line 5863 "sql.c" break; case 197: /* type_name ::= BIGINT UNSIGNED */ #line 379 "sql.y" { yymsp[-1].minor.yy784 = createDataType(TSDB_DATA_TYPE_UBIGINT); } #line 5868 "sql.c" break; case 198: /* type_name ::= JSON */ #line 380 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_JSON); } #line 5873 "sql.c" break; case 199: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ #line 381 "sql.y" { yymsp[-3].minor.yy784 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } #line 5878 "sql.c" break; case 200: /* type_name ::= MEDIUMBLOB */ #line 382 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } #line 5883 "sql.c" break; case 201: /* type_name ::= BLOB */ #line 383 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_BLOB); } #line 5888 "sql.c" break; case 202: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ #line 384 "sql.y" { yymsp[-3].minor.yy784 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } #line 5893 "sql.c" break; case 203: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ #line 385 "sql.y" { yymsp[-3].minor.yy784 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } #line 5898 "sql.c" break; case 204: /* type_name ::= DECIMAL */ #line 386 "sql.y" { yymsp[0].minor.yy784 = createDataType(TSDB_DATA_TYPE_DECIMAL); } #line 5903 "sql.c" break; case 205: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ #line 387 "sql.y" { yymsp[-3].minor.yy784 = createDataType(TSDB_DATA_TYPE_DECIMAL); } #line 5908 "sql.c" break; case 206: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ #line 388 "sql.y" { yymsp[-5].minor.yy784 = createDataType(TSDB_DATA_TYPE_DECIMAL); } #line 5913 "sql.c" break; case 208: /* tags_def_opt ::= tags_def */ case 344: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==344); case 463: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==463); #line 393 "sql.y" { yylhsminor.yy56 = yymsp[0].minor.yy56; } #line 5920 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; case 209: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ case 345: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==345); #line 397 "sql.y" { yymsp[-3].minor.yy56 = yymsp[-1].minor.yy56; } #line 5927 "sql.c" break; case 210: /* table_options ::= */ #line 399 "sql.y" { yymsp[1].minor.yy840 = createDefaultTableOptions(pCxt); } #line 5932 "sql.c" break; case 211: /* table_options ::= table_options COMMENT NK_STRING */ #line 400 "sql.y" { yylhsminor.yy840 = setTableOption(pCxt, yymsp[-2].minor.yy840, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } #line 5937 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 212: /* table_options ::= table_options MAX_DELAY duration_list */ #line 401 "sql.y" { yylhsminor.yy840 = setTableOption(pCxt, yymsp[-2].minor.yy840, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy56); } #line 5943 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 213: /* table_options ::= table_options WATERMARK duration_list */ #line 402 "sql.y" { yylhsminor.yy840 = setTableOption(pCxt, yymsp[-2].minor.yy840, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy56); } #line 5949 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 214: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ #line 403 "sql.y" { yylhsminor.yy840 = setTableOption(pCxt, yymsp[-4].minor.yy840, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy56); } #line 5955 "sql.c" yymsp[-4].minor.yy840 = yylhsminor.yy840; break; case 215: /* table_options ::= table_options TTL NK_INTEGER */ #line 404 "sql.y" { yylhsminor.yy840 = setTableOption(pCxt, yymsp[-2].minor.yy840, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } #line 5961 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 216: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ #line 405 "sql.y" { yylhsminor.yy840 = setTableOption(pCxt, yymsp[-4].minor.yy840, TABLE_OPTION_SMA, yymsp[-1].minor.yy56); } #line 5967 "sql.c" yymsp[-4].minor.yy840 = yylhsminor.yy840; break; case 217: /* table_options ::= table_options DELETE_MARK duration_list */ #line 406 "sql.y" { yylhsminor.yy840 = setTableOption(pCxt, yymsp[-2].minor.yy840, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy56); } #line 5973 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 218: /* alter_table_options ::= alter_table_option */ #line 408 "sql.y" { yylhsminor.yy840 = createAlterTableOptions(pCxt); yylhsminor.yy840 = setTableOption(pCxt, yylhsminor.yy840, yymsp[0].minor.yy461.type, &yymsp[0].minor.yy461.val); } #line 5979 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 219: /* alter_table_options ::= alter_table_options alter_table_option */ #line 409 "sql.y" { yylhsminor.yy840 = setTableOption(pCxt, yymsp[-1].minor.yy840, yymsp[0].minor.yy461.type, &yymsp[0].minor.yy461.val); } #line 5985 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 220: /* alter_table_option ::= COMMENT NK_STRING */ #line 413 "sql.y" { yymsp[-1].minor.yy461.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5991 "sql.c" break; case 221: /* alter_table_option ::= TTL NK_INTEGER */ #line 414 "sql.y" { yymsp[-1].minor.yy461.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy461.val = yymsp[0].minor.yy0; } #line 5996 "sql.c" break; case 222: /* duration_list ::= duration_literal */ case 427: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==427); #line 418 "sql.y" { yylhsminor.yy56 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy840)); } #line 6002 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; case 223: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 428: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==428); #line 419 "sql.y" { yylhsminor.yy56 = addNodeToList(pCxt, yymsp[-2].minor.yy56, releaseRawExprNode(pCxt, yymsp[0].minor.yy840)); } #line 6009 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 226: /* rollup_func_name ::= function_name */ #line 426 "sql.y" { yylhsminor.yy840 = createFunctionNode(pCxt, &yymsp[0].minor.yy129, NULL); } #line 6015 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 227: /* rollup_func_name ::= FIRST */ case 228: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==228); case 286: /* tag_item ::= QTAGS */ yytestcase(yyruleno==286); #line 427 "sql.y" { yylhsminor.yy840 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } #line 6023 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 231: /* col_name ::= column_name */ case 287: /* tag_item ::= column_name */ yytestcase(yyruleno==287); #line 435 "sql.y" { yylhsminor.yy840 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy129); } #line 6030 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 232: /* cmd ::= SHOW DNODES */ #line 438 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } #line 6036 "sql.c" break; case 233: /* cmd ::= SHOW USERS */ #line 439 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } #line 6041 "sql.c" break; case 234: /* cmd ::= SHOW USER PRIVILEGES */ #line 440 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } #line 6046 "sql.c" break; case 235: /* cmd ::= SHOW DATABASES */ #line 441 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } #line 6051 "sql.c" break; case 236: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ #line 442 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy840, yymsp[0].minor.yy840, OP_TYPE_LIKE); } #line 6056 "sql.c" break; case 237: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ #line 443 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy840, yymsp[0].minor.yy840, OP_TYPE_LIKE); } #line 6061 "sql.c" break; case 238: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ #line 444 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy840, NULL, OP_TYPE_LIKE); } #line 6066 "sql.c" break; case 239: /* cmd ::= SHOW MNODES */ #line 445 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } #line 6071 "sql.c" break; case 240: /* cmd ::= SHOW QNODES */ #line 447 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } #line 6076 "sql.c" break; case 241: /* cmd ::= SHOW FUNCTIONS */ #line 448 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } #line 6081 "sql.c" break; case 242: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ #line 449 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy840, yymsp[-1].minor.yy840, OP_TYPE_EQUAL); } #line 6086 "sql.c" break; case 243: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ #line 450 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy129), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy129), OP_TYPE_EQUAL); } #line 6091 "sql.c" break; case 244: /* cmd ::= SHOW STREAMS */ #line 451 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } #line 6096 "sql.c" break; case 245: /* cmd ::= SHOW ACCOUNTS */ #line 452 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } #line 6101 "sql.c" break; case 246: /* cmd ::= SHOW APPS */ #line 453 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } #line 6106 "sql.c" break; case 247: /* cmd ::= SHOW CONNECTIONS */ #line 454 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } #line 6111 "sql.c" break; case 248: /* cmd ::= SHOW LICENCES */ case 249: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==249); #line 455 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } #line 6117 "sql.c" break; case 250: /* cmd ::= SHOW CREATE DATABASE db_name */ #line 457 "sql.y" { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy129); } #line 6122 "sql.c" break; case 251: /* cmd ::= SHOW CREATE TABLE full_table_name */ #line 458 "sql.y" { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy840); } #line 6127 "sql.c" break; case 252: /* cmd ::= SHOW CREATE STABLE full_table_name */ #line 459 "sql.y" { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy840); } #line 6132 "sql.c" break; case 253: /* cmd ::= SHOW QUERIES */ #line 460 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } #line 6137 "sql.c" break; case 254: /* cmd ::= SHOW SCORES */ #line 461 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } #line 6142 "sql.c" break; case 255: /* cmd ::= SHOW TOPICS */ #line 462 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } #line 6147 "sql.c" break; case 256: /* cmd ::= SHOW VARIABLES */ case 257: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==257); #line 463 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } #line 6153 "sql.c" break; case 258: /* cmd ::= SHOW LOCAL VARIABLES */ #line 465 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } #line 6158 "sql.c" break; case 259: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ #line 466 "sql.y" { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy840); } #line 6163 "sql.c" break; case 260: /* cmd ::= SHOW BNODES */ #line 467 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } #line 6168 "sql.c" break; case 261: /* cmd ::= SHOW SNODES */ #line 468 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } #line 6173 "sql.c" break; case 262: /* cmd ::= SHOW CLUSTER */ #line 469 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } #line 6178 "sql.c" break; case 263: /* cmd ::= SHOW TRANSACTIONS */ #line 470 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } #line 6183 "sql.c" break; case 264: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ #line 471 "sql.y" { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy840); } #line 6188 "sql.c" break; case 265: /* cmd ::= SHOW CONSUMERS */ #line 472 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } #line 6193 "sql.c" break; case 266: /* cmd ::= SHOW SUBSCRIPTIONS */ #line 473 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } #line 6198 "sql.c" break; case 267: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ #line 474 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy840, yymsp[-1].minor.yy840, OP_TYPE_EQUAL); } #line 6203 "sql.c" break; case 268: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ #line 475 "sql.y" { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy129), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy129), OP_TYPE_EQUAL); } #line 6208 "sql.c" break; case 269: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ #line 476 "sql.y" { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy840, yymsp[0].minor.yy840, yymsp[-3].minor.yy56); } #line 6213 "sql.c" break; case 270: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ #line 477 "sql.y" { pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy129), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy129), yymsp[-4].minor.yy56); } #line 6218 "sql.c" break; case 271: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ #line 478 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } #line 6223 "sql.c" break; case 272: /* cmd ::= SHOW VNODES */ #line 479 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } #line 6228 "sql.c" break; case 273: /* cmd ::= SHOW db_name_cond_opt ALIVE */ #line 481 "sql.y" { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy840, QUERY_NODE_SHOW_DB_ALIVE_STMT); } #line 6233 "sql.c" break; case 274: /* cmd ::= SHOW CLUSTER ALIVE */ #line 482 "sql.y" { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } #line 6238 "sql.c" break; case 275: /* db_name_cond_opt ::= */ case 280: /* from_db_opt ::= */ yytestcase(yyruleno==280); #line 484 "sql.y" { yymsp[1].minor.yy840 = createDefaultDatabaseCondValue(pCxt); } #line 6244 "sql.c" break; case 276: /* db_name_cond_opt ::= db_name NK_DOT */ #line 485 "sql.y" { yylhsminor.yy840 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy129); } #line 6249 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 278: /* like_pattern_opt ::= LIKE NK_STRING */ #line 488 "sql.y" { yymsp[-1].minor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } #line 6255 "sql.c" break; case 279: /* table_name_cond ::= table_name */ #line 490 "sql.y" { yylhsminor.yy840 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy129); } #line 6260 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 281: /* from_db_opt ::= FROM db_name */ #line 493 "sql.y" { yymsp[-1].minor.yy840 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy129); } #line 6266 "sql.c" break; case 285: /* tag_item ::= TBNAME */ #line 501 "sql.y" { yylhsminor.yy840 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } #line 6271 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 288: /* tag_item ::= column_name column_alias */ #line 504 "sql.y" { yylhsminor.yy840 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy129), &yymsp[0].minor.yy129); } #line 6277 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 289: /* tag_item ::= column_name AS column_alias */ #line 505 "sql.y" { yylhsminor.yy840 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy129), &yymsp[0].minor.yy129); } #line 6283 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 290: /* cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ #line 509 "sql.y" { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy313, yymsp[-3].minor.yy840, yymsp[-1].minor.yy840, NULL, yymsp[0].minor.yy840); } #line 6289 "sql.c" break; case 291: /* cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ #line 511 "sql.y" { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy313, yymsp[-5].minor.yy840, yymsp[-3].minor.yy840, yymsp[-1].minor.yy56, NULL); } #line 6294 "sql.c" break; case 292: /* cmd ::= DROP INDEX exists_opt full_index_name */ #line 512 "sql.y" { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy313, yymsp[0].minor.yy840); } #line 6299 "sql.c" break; case 293: /* full_index_name ::= index_name */ #line 514 "sql.y" { yylhsminor.yy840 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy129); } #line 6304 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 294: /* full_index_name ::= db_name NK_DOT index_name */ #line 515 "sql.y" { yylhsminor.yy840 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy129, &yymsp[0].minor.yy129); } #line 6310 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 295: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ #line 518 "sql.y" { yymsp[-9].minor.yy840 = createIndexOption(pCxt, yymsp[-7].minor.yy56, releaseRawExprNode(pCxt, yymsp[-3].minor.yy840), NULL, yymsp[-1].minor.yy840, yymsp[0].minor.yy840); } #line 6316 "sql.c" break; case 296: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ #line 521 "sql.y" { yymsp[-11].minor.yy840 = createIndexOption(pCxt, yymsp[-9].minor.yy56, releaseRawExprNode(pCxt, yymsp[-5].minor.yy840), releaseRawExprNode(pCxt, yymsp[-3].minor.yy840), yymsp[-1].minor.yy840, yymsp[0].minor.yy840); } #line 6321 "sql.c" break; case 299: /* func ::= sma_func_name NK_LP expression_list NK_RP */ #line 528 "sql.y" { yylhsminor.yy840 = createFunctionNode(pCxt, &yymsp[-3].minor.yy129, yymsp[-1].minor.yy56); } #line 6326 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 300: /* sma_func_name ::= function_name */ case 514: /* alias_opt ::= table_alias */ yytestcase(yyruleno==514); #line 532 "sql.y" { yylhsminor.yy129 = yymsp[0].minor.yy129; } #line 6333 "sql.c" yymsp[0].minor.yy129 = yylhsminor.yy129; break; case 305: /* sma_stream_opt ::= */ case 346: /* stream_options ::= */ yytestcase(yyruleno==346); #line 538 "sql.y" { yymsp[1].minor.yy840 = createStreamOptions(pCxt); } #line 6340 "sql.c" break; case 306: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ #line 539 "sql.y" { ((SStreamOptions*)yymsp[-2].minor.yy840)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = yymsp[-2].minor.yy840; } #line 6345 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 307: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ #line 540 "sql.y" { ((SStreamOptions*)yymsp[-2].minor.yy840)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = yymsp[-2].minor.yy840; } #line 6351 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 308: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ #line 541 "sql.y" { ((SStreamOptions*)yymsp[-2].minor.yy840)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = yymsp[-2].minor.yy840; } #line 6357 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 309: /* with_meta ::= AS */ #line 546 "sql.y" { yymsp[0].minor.yy356 = 0; } #line 6363 "sql.c" break; case 310: /* with_meta ::= WITH META AS */ #line 547 "sql.y" { yymsp[-2].minor.yy356 = 1; } #line 6368 "sql.c" break; case 311: /* with_meta ::= ONLY META AS */ #line 548 "sql.y" { yymsp[-2].minor.yy356 = 2; } #line 6373 "sql.c" break; case 312: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ #line 550 "sql.y" { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy313, &yymsp[-2].minor.yy129, yymsp[0].minor.yy840); } #line 6378 "sql.c" break; case 313: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ #line 552 "sql.y" { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy313, &yymsp[-3].minor.yy129, &yymsp[0].minor.yy129, yymsp[-2].minor.yy356); } #line 6383 "sql.c" break; case 314: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ #line 554 "sql.y" { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy313, &yymsp[-4].minor.yy129, yymsp[-1].minor.yy840, yymsp[-3].minor.yy356, yymsp[0].minor.yy840); } #line 6388 "sql.c" break; case 315: /* cmd ::= DROP TOPIC exists_opt topic_name */ #line 556 "sql.y" { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy313, &yymsp[0].minor.yy129); } #line 6393 "sql.c" break; case 316: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ #line 557 "sql.y" { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy313, &yymsp[-2].minor.yy129, &yymsp[0].minor.yy129); } #line 6398 "sql.c" break; case 317: /* cmd ::= DESC full_table_name */ case 318: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==318); #line 560 "sql.y" { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy840); } #line 6404 "sql.c" break; case 319: /* cmd ::= RESET QUERY CACHE */ #line 564 "sql.y" { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } #line 6409 "sql.c" break; case 320: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ case 321: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==321); #line 567 "sql.y" { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy313, yymsp[-1].minor.yy840, yymsp[0].minor.yy840); } #line 6415 "sql.c" break; case 324: /* explain_options ::= */ #line 575 "sql.y" { yymsp[1].minor.yy840 = createDefaultExplainOptions(pCxt); } #line 6420 "sql.c" break; case 325: /* explain_options ::= explain_options VERBOSE NK_BOOL */ #line 576 "sql.y" { yylhsminor.yy840 = setExplainVerbose(pCxt, yymsp[-2].minor.yy840, &yymsp[0].minor.yy0); } #line 6425 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 326: /* explain_options ::= explain_options RATIO NK_FLOAT */ #line 577 "sql.y" { yylhsminor.yy840 = setExplainRatio(pCxt, yymsp[-2].minor.yy840, &yymsp[0].minor.yy0); } #line 6431 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 327: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ #line 582 "sql.y" { pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy313, yymsp[-9].minor.yy313, &yymsp[-6].minor.yy129, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy784, yymsp[-1].minor.yy356, &yymsp[0].minor.yy129, yymsp[-10].minor.yy313); } #line 6437 "sql.c" break; case 328: /* cmd ::= DROP FUNCTION exists_opt function_name */ #line 583 "sql.y" { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy313, &yymsp[0].minor.yy129); } #line 6442 "sql.c" break; case 333: /* language_opt ::= */ #line 597 "sql.y" { yymsp[1].minor.yy129 = nil_token; } #line 6447 "sql.c" break; case 334: /* language_opt ::= LANGUAGE NK_STRING */ #line 598 "sql.y" { yymsp[-1].minor.yy129 = yymsp[0].minor.yy0; } #line 6452 "sql.c" break; case 337: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ #line 608 "sql.y" { pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy313, &yymsp[-8].minor.yy129, yymsp[-5].minor.yy840, yymsp[-7].minor.yy840, yymsp[-3].minor.yy56, yymsp[-2].minor.yy840, yymsp[0].minor.yy840, yymsp[-4].minor.yy56); } #line 6457 "sql.c" break; case 338: /* cmd ::= DROP STREAM exists_opt stream_name */ #line 609 "sql.y" { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy313, &yymsp[0].minor.yy129); } #line 6462 "sql.c" break; case 339: /* cmd ::= PAUSE STREAM exists_opt stream_name */ #line 610 "sql.y" { pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy313, &yymsp[0].minor.yy129); } #line 6467 "sql.c" break; case 340: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ #line 611 "sql.y" { pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy313, yymsp[-1].minor.yy313, &yymsp[0].minor.yy129); } #line 6472 "sql.c" break; case 347: /* stream_options ::= stream_options TRIGGER AT_ONCE */ case 348: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==348); #line 625 "sql.y" { yylhsminor.yy840 = setStreamOptions(pCxt, yymsp[-2].minor.yy840, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } #line 6478 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 349: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ #line 627 "sql.y" { yylhsminor.yy840 = setStreamOptions(pCxt, yymsp[-3].minor.yy840, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy840)); } #line 6484 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 350: /* stream_options ::= stream_options WATERMARK duration_literal */ #line 628 "sql.y" { yylhsminor.yy840 = setStreamOptions(pCxt, yymsp[-2].minor.yy840, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy840)); } #line 6490 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 351: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ #line 629 "sql.y" { yylhsminor.yy840 = setStreamOptions(pCxt, yymsp[-3].minor.yy840, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } #line 6496 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 352: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ #line 630 "sql.y" { yylhsminor.yy840 = setStreamOptions(pCxt, yymsp[-2].minor.yy840, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } #line 6502 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 353: /* stream_options ::= stream_options DELETE_MARK duration_literal */ #line 631 "sql.y" { yylhsminor.yy840 = setStreamOptions(pCxt, yymsp[-2].minor.yy840, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy840)); } #line 6508 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 354: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ #line 632 "sql.y" { yylhsminor.yy840 = setStreamOptions(pCxt, yymsp[-3].minor.yy840, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } #line 6514 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 356: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ case 550: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==550); case 571: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==571); #line 635 "sql.y" { yymsp[-3].minor.yy840 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy840); } #line 6522 "sql.c" break; case 359: /* cmd ::= KILL CONNECTION NK_INTEGER */ #line 643 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } #line 6527 "sql.c" break; case 360: /* cmd ::= KILL QUERY NK_STRING */ #line 644 "sql.y" { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } #line 6532 "sql.c" break; case 361: /* cmd ::= KILL TRANSACTION NK_INTEGER */ #line 645 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } #line 6537 "sql.c" break; case 362: /* cmd ::= BALANCE VGROUP */ #line 648 "sql.y" { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } #line 6542 "sql.c" break; case 363: /* cmd ::= BALANCE VGROUP LEADER */ #line 649 "sql.y" { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); } #line 6547 "sql.c" break; case 364: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ #line 650 "sql.y" { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } #line 6552 "sql.c" break; case 365: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ #line 651 "sql.y" { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy56); } #line 6557 "sql.c" break; case 366: /* cmd ::= SPLIT VGROUP NK_INTEGER */ #line 652 "sql.y" { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } #line 6562 "sql.c" break; case 367: /* dnode_list ::= DNODE NK_INTEGER */ #line 656 "sql.y" { yymsp[-1].minor.yy56 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } #line 6567 "sql.c" break; case 369: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ #line 663 "sql.y" { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy840, yymsp[0].minor.yy840); } #line 6572 "sql.c" break; case 372: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ #line 672 "sql.y" { yymsp[-6].minor.yy840 = createInsertStmt(pCxt, yymsp[-4].minor.yy840, yymsp[-2].minor.yy56, yymsp[0].minor.yy840); } #line 6577 "sql.c" break; case 373: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ #line 673 "sql.y" { yymsp[-3].minor.yy840 = createInsertStmt(pCxt, yymsp[-1].minor.yy840, NULL, yymsp[0].minor.yy840); } #line 6582 "sql.c" break; case 374: /* literal ::= NK_INTEGER */ #line 676 "sql.y" { yylhsminor.yy840 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } #line 6587 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 375: /* literal ::= NK_FLOAT */ #line 677 "sql.y" { yylhsminor.yy840 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } #line 6593 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 376: /* literal ::= NK_STRING */ #line 678 "sql.y" { yylhsminor.yy840 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } #line 6599 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 377: /* literal ::= NK_BOOL */ #line 679 "sql.y" { yylhsminor.yy840 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } #line 6605 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 378: /* literal ::= TIMESTAMP NK_STRING */ #line 680 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } #line 6611 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 379: /* literal ::= duration_literal */ case 389: /* signed_literal ::= signed */ yytestcase(yyruleno==389); case 410: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==410); case 411: /* expression ::= literal */ yytestcase(yyruleno==411); case 412: /* expression ::= pseudo_column */ yytestcase(yyruleno==412); case 413: /* expression ::= column_reference */ yytestcase(yyruleno==413); case 414: /* expression ::= function_expression */ yytestcase(yyruleno==414); case 415: /* expression ::= case_when_expression */ yytestcase(yyruleno==415); case 446: /* function_expression ::= literal_func */ yytestcase(yyruleno==446); case 495: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==495); case 499: /* boolean_primary ::= predicate */ yytestcase(yyruleno==499); case 501: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==501); case 502: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==502); case 505: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==505); case 507: /* table_reference ::= table_primary */ yytestcase(yyruleno==507); case 508: /* table_reference ::= joined_table */ yytestcase(yyruleno==508); case 512: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==512); case 573: /* query_simple ::= query_specification */ yytestcase(yyruleno==573); case 574: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==574); case 577: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==577); case 579: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==579); #line 681 "sql.y" { yylhsminor.yy840 = yymsp[0].minor.yy840; } #line 6637 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 380: /* literal ::= NULL */ #line 682 "sql.y" { yylhsminor.yy840 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } #line 6643 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 381: /* literal ::= NK_QUESTION */ #line 683 "sql.y" { yylhsminor.yy840 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 6649 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 382: /* duration_literal ::= NK_VARIABLE */ #line 685 "sql.y" { yylhsminor.yy840 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } #line 6655 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 383: /* signed ::= NK_INTEGER */ #line 687 "sql.y" { yylhsminor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } #line 6661 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 384: /* signed ::= NK_PLUS NK_INTEGER */ #line 688 "sql.y" { yymsp[-1].minor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } #line 6667 "sql.c" break; case 385: /* signed ::= NK_MINUS NK_INTEGER */ #line 689 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } #line 6676 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 386: /* signed ::= NK_FLOAT */ #line 694 "sql.y" { yylhsminor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } #line 6682 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 387: /* signed ::= NK_PLUS NK_FLOAT */ #line 695 "sql.y" { yymsp[-1].minor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } #line 6688 "sql.c" break; case 388: /* signed ::= NK_MINUS NK_FLOAT */ #line 696 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; yylhsminor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } #line 6697 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 390: /* signed_literal ::= NK_STRING */ #line 703 "sql.y" { yylhsminor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } #line 6703 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 391: /* signed_literal ::= NK_BOOL */ #line 704 "sql.y" { yylhsminor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } #line 6709 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 392: /* signed_literal ::= TIMESTAMP NK_STRING */ #line 705 "sql.y" { yymsp[-1].minor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } #line 6715 "sql.c" break; case 393: /* signed_literal ::= duration_literal */ case 395: /* signed_literal ::= literal_func */ yytestcase(yyruleno==395); case 466: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==466); case 530: /* select_item ::= common_expression */ yytestcase(yyruleno==530); case 540: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==540); case 578: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==578); case 580: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==580); case 593: /* search_condition ::= common_expression */ yytestcase(yyruleno==593); #line 706 "sql.y" { yylhsminor.yy840 = releaseRawExprNode(pCxt, yymsp[0].minor.yy840); } #line 6727 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 394: /* signed_literal ::= NULL */ #line 707 "sql.y" { yylhsminor.yy840 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } #line 6733 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 396: /* signed_literal ::= NK_QUESTION */ #line 709 "sql.y" { yylhsminor.yy840 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } #line 6739 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 416: /* expression ::= NK_LP expression NK_RP */ case 500: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==500); case 592: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==592); #line 770 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy840)); } #line 6747 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 417: /* expression ::= NK_PLUS expr_or_subquery */ #line 771 "sql.y" { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy840)); } #line 6756 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 418: /* expression ::= NK_MINUS expr_or_subquery */ #line 775 "sql.y" { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy840), NULL)); } #line 6765 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 419: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ #line 779 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6775 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 420: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ #line 784 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6785 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 421: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ #line 789 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6795 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 422: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ #line 794 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6805 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 423: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ #line 799 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6815 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 424: /* expression ::= column_reference NK_ARROW NK_STRING */ #line 804 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } #line 6824 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 425: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ #line 808 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6834 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 426: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ #line 813 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6844 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 429: /* column_reference ::= column_name */ #line 824 "sql.y" { yylhsminor.yy840 = createRawExprNode(pCxt, &yymsp[0].minor.yy129, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy129)); } #line 6850 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 430: /* column_reference ::= table_name NK_DOT column_name */ #line 825 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy129, &yymsp[0].minor.yy129, createColumnNode(pCxt, &yymsp[-2].minor.yy129, &yymsp[0].minor.yy129)); } #line 6856 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 431: /* pseudo_column ::= ROWTS */ case 432: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==432); case 434: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==434); case 435: /* pseudo_column ::= QEND */ yytestcase(yyruleno==435); case 436: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==436); case 437: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==437); case 438: /* pseudo_column ::= WEND */ yytestcase(yyruleno==438); case 439: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==439); case 440: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==440); case 441: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==441); case 442: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==442); case 448: /* literal_func ::= NOW */ yytestcase(yyruleno==448); #line 827 "sql.y" { yylhsminor.yy840 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } #line 6873 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 433: /* pseudo_column ::= table_name NK_DOT TBNAME */ #line 829 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy129, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy129)))); } #line 6879 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 443: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 444: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==444); #line 840 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy129, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy129, yymsp[-1].minor.yy56)); } #line 6886 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 445: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ #line 843 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy840), yymsp[-1].minor.yy784)); } #line 6892 "sql.c" yymsp[-5].minor.yy840 = yylhsminor.yy840; break; case 447: /* literal_func ::= noarg_func NK_LP NK_RP */ #line 846 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy129, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy129, NULL)); } #line 6898 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 462: /* star_func_para_list ::= NK_STAR */ #line 870 "sql.y" { yylhsminor.yy56 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } #line 6904 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; case 467: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 533: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==533); #line 879 "sql.y" { yylhsminor.yy840 = createColumnNode(pCxt, &yymsp[-2].minor.yy129, &yymsp[0].minor.yy0); } #line 6911 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 468: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ #line 882 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy56, yymsp[-1].minor.yy840)); } #line 6917 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 469: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ #line 884 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy840), yymsp[-2].minor.yy56, yymsp[-1].minor.yy840)); } #line 6923 "sql.c" yymsp[-4].minor.yy840 = yylhsminor.yy840; break; case 472: /* when_then_expr ::= WHEN common_expression THEN common_expression */ #line 891 "sql.y" { yymsp[-3].minor.yy840 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840)); } #line 6929 "sql.c" break; case 474: /* case_when_else_opt ::= ELSE common_expression */ #line 894 "sql.y" { yymsp[-1].minor.yy840 = releaseRawExprNode(pCxt, yymsp[0].minor.yy840); } #line 6934 "sql.c" break; case 475: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ case 480: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==480); #line 897 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy76, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6944 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 476: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ #line 904 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy840), releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6954 "sql.c" yymsp[-4].minor.yy840 = yylhsminor.yy840; break; case 477: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ #line 910 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy840), releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 6964 "sql.c" yymsp[-5].minor.yy840 = yylhsminor.yy840; break; case 478: /* predicate ::= expr_or_subquery IS NULL */ #line 915 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), NULL)); } #line 6973 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 479: /* predicate ::= expr_or_subquery IS NOT NULL */ #line 919 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy840), NULL)); } #line 6982 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 481: /* compare_op ::= NK_LT */ #line 931 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_LOWER_THAN; } #line 6988 "sql.c" break; case 482: /* compare_op ::= NK_GT */ #line 932 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_GREATER_THAN; } #line 6993 "sql.c" break; case 483: /* compare_op ::= NK_LE */ #line 933 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_LOWER_EQUAL; } #line 6998 "sql.c" break; case 484: /* compare_op ::= NK_GE */ #line 934 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_GREATER_EQUAL; } #line 7003 "sql.c" break; case 485: /* compare_op ::= NK_NE */ #line 935 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_NOT_EQUAL; } #line 7008 "sql.c" break; case 486: /* compare_op ::= NK_EQ */ #line 936 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_EQUAL; } #line 7013 "sql.c" break; case 487: /* compare_op ::= LIKE */ #line 937 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_LIKE; } #line 7018 "sql.c" break; case 488: /* compare_op ::= NOT LIKE */ #line 938 "sql.y" { yymsp[-1].minor.yy76 = OP_TYPE_NOT_LIKE; } #line 7023 "sql.c" break; case 489: /* compare_op ::= MATCH */ #line 939 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_MATCH; } #line 7028 "sql.c" break; case 490: /* compare_op ::= NMATCH */ #line 940 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_NMATCH; } #line 7033 "sql.c" break; case 491: /* compare_op ::= CONTAINS */ #line 941 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_JSON_CONTAINS; } #line 7038 "sql.c" break; case 492: /* in_op ::= IN */ #line 945 "sql.y" { yymsp[0].minor.yy76 = OP_TYPE_IN; } #line 7043 "sql.c" break; case 493: /* in_op ::= NOT IN */ #line 946 "sql.y" { yymsp[-1].minor.yy76 = OP_TYPE_NOT_IN; } #line 7048 "sql.c" break; case 494: /* in_predicate_value ::= NK_LP literal_list NK_RP */ #line 948 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy56)); } #line 7053 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 496: /* boolean_value_expression ::= NOT boolean_primary */ #line 952 "sql.y" { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy840), NULL)); } #line 7062 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 497: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ #line 957 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 7072 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 498: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ #line 963 "sql.y" { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy840); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy840); yylhsminor.yy840 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 7082 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 506: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ #line 981 "sql.y" { yylhsminor.yy840 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy840, yymsp[0].minor.yy840, NULL); } #line 7088 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 509: /* table_primary ::= table_name alias_opt */ #line 987 "sql.y" { yylhsminor.yy840 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy129, &yymsp[0].minor.yy129); } #line 7094 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 510: /* table_primary ::= db_name NK_DOT table_name alias_opt */ #line 988 "sql.y" { yylhsminor.yy840 = createRealTableNode(pCxt, &yymsp[-3].minor.yy129, &yymsp[-1].minor.yy129, &yymsp[0].minor.yy129); } #line 7100 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 511: /* table_primary ::= subquery alias_opt */ #line 989 "sql.y" { yylhsminor.yy840 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy840), &yymsp[0].minor.yy129); } #line 7106 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 513: /* alias_opt ::= */ #line 994 "sql.y" { yymsp[1].minor.yy129 = nil_token; } #line 7112 "sql.c" break; case 515: /* alias_opt ::= AS table_alias */ #line 996 "sql.y" { yymsp[-1].minor.yy129 = yymsp[0].minor.yy129; } #line 7117 "sql.c" break; case 516: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 517: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==517); #line 998 "sql.y" { yymsp[-2].minor.yy840 = yymsp[-1].minor.yy840; } #line 7123 "sql.c" break; case 518: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ #line 1003 "sql.y" { yylhsminor.yy840 = createJoinTableNode(pCxt, yymsp[-4].minor.yy708, yymsp[-5].minor.yy840, yymsp[-2].minor.yy840, yymsp[0].minor.yy840); } #line 7128 "sql.c" yymsp[-5].minor.yy840 = yylhsminor.yy840; break; case 519: /* join_type ::= */ #line 1007 "sql.y" { yymsp[1].minor.yy708 = JOIN_TYPE_INNER; } #line 7134 "sql.c" break; case 520: /* join_type ::= INNER */ #line 1008 "sql.y" { yymsp[0].minor.yy708 = JOIN_TYPE_INNER; } #line 7139 "sql.c" break; case 521: /* query_specification ::= SELECT tag_mode_opt set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ #line 1014 "sql.y" { yymsp[-12].minor.yy840 = createSelectStmt(pCxt, yymsp[-10].minor.yy313, yymsp[-9].minor.yy56, yymsp[-8].minor.yy840); yymsp[-12].minor.yy840 = setSelectStmtTagMode(pCxt, yymsp[-12].minor.yy840, yymsp[-11].minor.yy313); yymsp[-12].minor.yy840 = addWhereClause(pCxt, yymsp[-12].minor.yy840, yymsp[-7].minor.yy840); yymsp[-12].minor.yy840 = addPartitionByClause(pCxt, yymsp[-12].minor.yy840, yymsp[-6].minor.yy56); yymsp[-12].minor.yy840 = addWindowClauseClause(pCxt, yymsp[-12].minor.yy840, yymsp[-2].minor.yy840); yymsp[-12].minor.yy840 = addGroupByClause(pCxt, yymsp[-12].minor.yy840, yymsp[-1].minor.yy56); yymsp[-12].minor.yy840 = addHavingClause(pCxt, yymsp[-12].minor.yy840, yymsp[0].minor.yy840); yymsp[-12].minor.yy840 = addRangeClause(pCxt, yymsp[-12].minor.yy840, yymsp[-5].minor.yy840); yymsp[-12].minor.yy840 = addEveryClause(pCxt, yymsp[-12].minor.yy840, yymsp[-4].minor.yy840); yymsp[-12].minor.yy840 = addFillClause(pCxt, yymsp[-12].minor.yy840, yymsp[-3].minor.yy840); } #line 7155 "sql.c" break; case 526: /* set_quantifier_opt ::= ALL */ #line 1036 "sql.y" { yymsp[0].minor.yy313 = false; } #line 7160 "sql.c" break; case 529: /* select_item ::= NK_STAR */ #line 1043 "sql.y" { yylhsminor.yy840 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } #line 7165 "sql.c" yymsp[0].minor.yy840 = yylhsminor.yy840; break; case 531: /* select_item ::= common_expression column_alias */ case 541: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==541); #line 1045 "sql.y" { yylhsminor.yy840 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy840), &yymsp[0].minor.yy129); } #line 7172 "sql.c" yymsp[-1].minor.yy840 = yylhsminor.yy840; break; case 532: /* select_item ::= common_expression AS column_alias */ case 542: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==542); #line 1046 "sql.y" { yylhsminor.yy840 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), &yymsp[0].minor.yy129); } #line 7179 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 537: /* partition_by_clause_opt ::= PARTITION BY partition_list */ case 562: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==562); case 582: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==582); #line 1055 "sql.y" { yymsp[-2].minor.yy56 = yymsp[0].minor.yy56; } #line 7187 "sql.c" break; case 544: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ #line 1068 "sql.y" { yymsp[-5].minor.yy840 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy840), releaseRawExprNode(pCxt, yymsp[-1].minor.yy840)); } #line 7192 "sql.c" break; case 545: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ #line 1069 "sql.y" { yymsp[-3].minor.yy840 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy840)); } #line 7197 "sql.c" break; case 546: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ #line 1071 "sql.y" { yymsp[-5].minor.yy840 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy840), NULL, yymsp[-1].minor.yy840, yymsp[0].minor.yy840); } #line 7202 "sql.c" break; case 547: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ #line 1074 "sql.y" { yymsp[-7].minor.yy840 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy840), releaseRawExprNode(pCxt, yymsp[-3].minor.yy840), yymsp[-1].minor.yy840, yymsp[0].minor.yy840); } #line 7207 "sql.c" break; case 548: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ #line 1076 "sql.y" { yymsp[-6].minor.yy840 = createEventWindowNode(pCxt, yymsp[-3].minor.yy840, yymsp[0].minor.yy840); } #line 7212 "sql.c" break; case 552: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ #line 1082 "sql.y" { yymsp[-3].minor.yy840 = createFillNode(pCxt, yymsp[-1].minor.yy694, NULL); } #line 7217 "sql.c" break; case 553: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ #line 1083 "sql.y" { yymsp[-5].minor.yy840 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy56)); } #line 7222 "sql.c" break; case 554: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ #line 1084 "sql.y" { yymsp[-5].minor.yy840 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy56)); } #line 7227 "sql.c" break; case 555: /* fill_mode ::= NONE */ #line 1088 "sql.y" { yymsp[0].minor.yy694 = FILL_MODE_NONE; } #line 7232 "sql.c" break; case 556: /* fill_mode ::= PREV */ #line 1089 "sql.y" { yymsp[0].minor.yy694 = FILL_MODE_PREV; } #line 7237 "sql.c" break; case 557: /* fill_mode ::= NULL */ #line 1090 "sql.y" { yymsp[0].minor.yy694 = FILL_MODE_NULL; } #line 7242 "sql.c" break; case 558: /* fill_mode ::= NULL_F */ #line 1091 "sql.y" { yymsp[0].minor.yy694 = FILL_MODE_NULL_F; } #line 7247 "sql.c" break; case 559: /* fill_mode ::= LINEAR */ #line 1092 "sql.y" { yymsp[0].minor.yy694 = FILL_MODE_LINEAR; } #line 7252 "sql.c" break; case 560: /* fill_mode ::= NEXT */ #line 1093 "sql.y" { yymsp[0].minor.yy694 = FILL_MODE_NEXT; } #line 7257 "sql.c" break; case 563: /* group_by_list ::= expr_or_subquery */ #line 1102 "sql.y" { yylhsminor.yy56 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 7262 "sql.c" yymsp[0].minor.yy56 = yylhsminor.yy56; break; case 564: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ #line 1103 "sql.y" { yylhsminor.yy56 = addNodeToList(pCxt, yymsp[-2].minor.yy56, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy840))); } #line 7268 "sql.c" yymsp[-2].minor.yy56 = yylhsminor.yy56; break; case 568: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ #line 1110 "sql.y" { yymsp[-5].minor.yy840 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy840), releaseRawExprNode(pCxt, yymsp[-1].minor.yy840)); } #line 7274 "sql.c" break; case 569: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ #line 1112 "sql.y" { yymsp[-3].minor.yy840 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy840)); } #line 7279 "sql.c" break; case 572: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ #line 1119 "sql.y" { yylhsminor.yy840 = addOrderByClause(pCxt, yymsp[-3].minor.yy840, yymsp[-2].minor.yy56); yylhsminor.yy840 = addSlimitClause(pCxt, yylhsminor.yy840, yymsp[-1].minor.yy840); yylhsminor.yy840 = addLimitClause(pCxt, yylhsminor.yy840, yymsp[0].minor.yy840); } #line 7288 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 575: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ #line 1129 "sql.y" { yylhsminor.yy840 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy840, yymsp[0].minor.yy840); } #line 7294 "sql.c" yymsp[-3].minor.yy840 = yylhsminor.yy840; break; case 576: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ #line 1131 "sql.y" { yylhsminor.yy840 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy840, yymsp[0].minor.yy840); } #line 7300 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 584: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ case 588: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==588); #line 1145 "sql.y" { yymsp[-1].minor.yy840 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } #line 7307 "sql.c" break; case 585: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ case 589: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==589); #line 1146 "sql.y" { yymsp[-3].minor.yy840 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } #line 7313 "sql.c" break; case 586: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ case 590: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==590); #line 1147 "sql.y" { yymsp[-3].minor.yy840 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } #line 7319 "sql.c" break; case 591: /* subquery ::= NK_LP query_expression NK_RP */ #line 1155 "sql.y" { yylhsminor.yy840 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy840); } #line 7324 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 596: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ #line 1169 "sql.y" { yylhsminor.yy840 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy840), yymsp[-1].minor.yy82, yymsp[0].minor.yy521); } #line 7330 "sql.c" yymsp[-2].minor.yy840 = yylhsminor.yy840; break; case 597: /* ordering_specification_opt ::= */ #line 1173 "sql.y" { yymsp[1].minor.yy82 = ORDER_ASC; } #line 7336 "sql.c" break; case 598: /* ordering_specification_opt ::= ASC */ #line 1174 "sql.y" { yymsp[0].minor.yy82 = ORDER_ASC; } #line 7341 "sql.c" break; case 599: /* ordering_specification_opt ::= DESC */ #line 1175 "sql.y" { yymsp[0].minor.yy82 = ORDER_DESC; } #line 7346 "sql.c" break; case 600: /* null_ordering_opt ::= */ #line 1179 "sql.y" { yymsp[1].minor.yy521 = NULL_ORDER_DEFAULT; } #line 7351 "sql.c" break; case 601: /* null_ordering_opt ::= NULLS FIRST */ #line 1180 "sql.y" { yymsp[-1].minor.yy521 = NULL_ORDER_FIRST; } #line 7356 "sql.c" break; case 602: /* null_ordering_opt ::= NULLS LAST */ #line 1181 "sql.y" { yymsp[-1].minor.yy521 = NULL_ORDER_LAST; } #line 7361 "sql.c" break; default: break; /********** End reduce actions ************************************************/ }; assert( yyrulenoYY_MAX_SHIFT && yyact<=YY_MAX_SHIFTREDUCE) ); /* It is not possible for a REDUCE to be followed by an error */ assert( yyact!=YY_ERROR_ACTION ); yymsp += yysize+1; yypParser->yytos = yymsp; yymsp->stateno = (YYACTIONTYPE)yyact; yymsp->major = (YYCODETYPE)yygoto; yyTraceShift(yypParser, yyact, "... then shift"); return yyact; } /* ** The following code executes when the parse fails */ #ifndef YYNOERRORRECOVERY static void yy_parse_failed( yyParser *yypParser /* The parser */ ){ ParseARG_FETCH ParseCTX_FETCH #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt); } #endif while( yypParser->yytos>yypParser->yystack ) yy_pop_parser_stack(yypParser); /* Here code is inserted which will be executed whenever the ** parser fails */ /************ Begin %parse_failure code ***************************************/ /************ End %parse_failure code *****************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE } #endif /* YYNOERRORRECOVERY */ /* ** The following code executes when a syntax error first occurs. */ static void yy_syntax_error( yyParser *yypParser, /* The parser */ int yymajor, /* The major type of the error token */ ParseTOKENTYPE yyminor /* The minor type of the error token */ ){ ParseARG_FETCH ParseCTX_FETCH #define TOKEN yyminor /************ Begin %syntax_error code ****************************************/ #line 29 "sql.y" if (TSDB_CODE_SUCCESS == pCxt->errCode) { if(TOKEN.z) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } else { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INCOMPLETE_SQL); } } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } #line 7434 "sql.c" /************ End %syntax_error code ******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE } /* ** The following is executed when the parser accepts */ static void yy_accept( yyParser *yypParser /* The parser */ ){ ParseARG_FETCH ParseCTX_FETCH #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt); } #endif #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif assert( yypParser->yytos==yypParser->yystack ); /* Here code is inserted which will be executed whenever the ** parser accepts */ /*********** Begin %parse_accept code *****************************************/ /*********** End %parse_accept code *******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE } /* The main parser program. ** The first argument is a pointer to a structure obtained from ** "ParseAlloc" which describes the current state of the parser. ** The second argument is the major token number. The third is ** the minor token. The fourth optional argument is whatever the ** user wants (and specified in the grammar) and is available for ** use by the action routines. ** ** Inputs: **
    **
  • A pointer to the parser (an opaque structure.) **
  • The major token number. **
  • The minor token number. **
  • An option argument of a grammar-specified type. **
** ** Outputs: ** None. */ void Parse( void *yyp, /* The parser */ int yymajor, /* The major token code number */ ParseTOKENTYPE yyminor /* The value for the token */ ParseARG_PDECL /* Optional %extra_argument parameter */ ){ YYMINORTYPE yyminorunion; YYACTIONTYPE yyact; /* The parser action. */ #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) int yyendofinput; /* True if we are at the end of input */ #endif #ifdef YYERRORSYMBOL int yyerrorhit = 0; /* True if yymajor has invoked an error */ #endif yyParser *yypParser = (yyParser*)yyp; /* The parser */ ParseCTX_FETCH ParseARG_STORE assert( yypParser->yytos!=0 ); #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) yyendofinput = (yymajor==0); #endif yyact = yypParser->yytos->stateno; #ifndef NDEBUG if( yyTraceFILE ){ if( yyact < YY_MIN_REDUCE ){ fprintf(yyTraceFILE,"%sInput '%s' in state %d\n", yyTracePrompt,yyTokenName[yymajor],yyact); }else{ fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n", yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE); } } #endif while(1){ /* Exit by "break" */ assert( yypParser->yytos>=yypParser->yystack ); assert( yyact==yypParser->yytos->stateno ); yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact); if( yyact >= YY_MIN_REDUCE ){ unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */ #ifndef NDEBUG assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ); if( yyTraceFILE ){ int yysize = yyRuleInfoNRhs[yyruleno]; if( yysize ){ fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", yyTracePrompt, yyruleno, yyRuleName[yyruleno], yyrulenoyytos[yysize].stateno); }else{ fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n", yyTracePrompt, yyruleno, yyRuleName[yyruleno], yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack)); } #endif #if YYSTACKDEPTH>0 if( yypParser->yytos>=yypParser->yystackEnd ){ yyStackOverflow(yypParser); break; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){ if( yyGrowStack(yypParser) ){ yyStackOverflow(yypParser); break; } } #endif } yyact = yy_reduce(yypParser,yyruleno,yymajor,yyminor ParseCTX_PARAM); }else if( yyact <= YY_MAX_SHIFTREDUCE ){ yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt--; #endif break; }else if( yyact==YY_ACCEPT_ACTION ){ yypParser->yytos--; yy_accept(yypParser); return; }else{ assert( yyact == YY_ERROR_ACTION ); yyminorunion.yy0 = yyminor; #ifdef YYERRORSYMBOL int yymx; #endif #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sSyntax Error!\n",yyTracePrompt); } #endif #ifdef YYERRORSYMBOL /* A syntax error has occurred. ** The response to an error depends upon whether or not the ** grammar defines an error token "ERROR". ** ** This is what we do if the grammar does define ERROR: ** ** * Call the %syntax_error function. ** ** * Begin popping the stack until we enter a state where ** it is legal to shift the error symbol, then shift ** the error symbol. ** ** * Set the error count to three. ** ** * Begin accepting and shifting new tokens. No new error ** processing will occur until three tokens have been ** shifted successfully. ** */ if( yypParser->yyerrcnt<0 ){ yy_syntax_error(yypParser,yymajor,yyminor); } yymx = yypParser->yytos->major; if( yymx==YYERRORSYMBOL || yyerrorhit ){ #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sDiscard input token %s\n", yyTracePrompt,yyTokenName[yymajor]); } #endif yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion); yymajor = YYNOCODE; }else{ while( yypParser->yytos > yypParser->yystack ){ yyact = yy_find_reduce_action(yypParser->yytos->stateno, YYERRORSYMBOL); if( yyact<=YY_MAX_SHIFTREDUCE ) break; yy_pop_parser_stack(yypParser); } if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){ yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); yy_parse_failed(yypParser); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif yymajor = YYNOCODE; }else if( yymx!=YYERRORSYMBOL ){ yy_shift(yypParser,yyact,YYERRORSYMBOL,yyminor); } } yypParser->yyerrcnt = 3; yyerrorhit = 1; if( yymajor==YYNOCODE ) break; yyact = yypParser->yytos->stateno; #elif defined(YYNOERRORRECOVERY) /* If the YYNOERRORRECOVERY macro is defined, then do not attempt to ** do any kind of error recovery. Instead, simply invoke the syntax ** error routine and continue going as if nothing had happened. ** ** Applications can set this macro (for example inside %include) if ** they intend to abandon the parse upon the first syntax error seen. */ yy_syntax_error(yypParser,yymajor, yyminor); yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); break; #else /* YYERRORSYMBOL is not defined */ /* This is what we do if the grammar does not define ERROR: ** ** * Report an error message, and throw away the input token. ** ** * If the input token is $, then fail the parse. ** ** As before, subsequent error messages are suppressed until ** three input tokens have been successfully shifted. */ if( yypParser->yyerrcnt<=0 ){ yy_syntax_error(yypParser,yymajor, yyminor); } yypParser->yyerrcnt = 3; yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); if( yyendofinput ){ yy_parse_failed(yypParser); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt = -1; #endif } break; #endif } } #ifndef NDEBUG if( yyTraceFILE ){ yyStackEntry *i; char cDiv = '['; fprintf(yyTraceFILE,"%sReturn. Stack=",yyTracePrompt); for(i=&yypParser->yystack[1]; i<=yypParser->yytos; i++){ fprintf(yyTraceFILE,"%c%s", cDiv, yyTokenName[i->major]); cDiv = ' '; } fprintf(yyTraceFILE,"]\n"); } #endif return; } /* ** Return the fallback token corresponding to canonical token iToken, or ** 0 if iToken has no fallback. */ int ParseFallback(int iToken){ #ifdef YYFALLBACK assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) ); return yyFallback[iToken]; #else (void)iToken; return 0; #endif }