diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 6745b80ac0..5693091bd5 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -48,111 +48,113 @@ #define TK_DNODES 30 #define TK_NK_ID 31 #define TK_NK_IPTOKEN 32 -#define TK_DATABASE 33 -#define TK_DATABASES 34 -#define TK_USE 35 -#define TK_IF 36 -#define TK_NOT 37 -#define TK_EXISTS 38 -#define TK_BLOCKS 39 -#define TK_CACHE 40 -#define TK_CACHELAST 41 -#define TK_COMP 42 -#define TK_DAYS 43 -#define TK_FSYNC 44 -#define TK_MAXROWS 45 -#define TK_MINROWS 46 -#define TK_KEEP 47 -#define TK_PRECISION 48 -#define TK_QUORUM 49 -#define TK_REPLICA 50 -#define TK_TTL 51 -#define TK_WAL 52 -#define TK_VGROUPS 53 -#define TK_SINGLE_STABLE 54 -#define TK_STREAM_MODE 55 -#define TK_TABLE 56 -#define TK_NK_LP 57 -#define TK_NK_RP 58 -#define TK_STABLE 59 -#define TK_TABLES 60 -#define TK_STABLES 61 -#define TK_USING 62 -#define TK_TAGS 63 -#define TK_NK_DOT 64 -#define TK_NK_COMMA 65 -#define TK_COMMENT 66 -#define TK_BOOL 67 -#define TK_TINYINT 68 -#define TK_SMALLINT 69 -#define TK_INT 70 -#define TK_INTEGER 71 -#define TK_BIGINT 72 -#define TK_FLOAT 73 -#define TK_DOUBLE 74 -#define TK_BINARY 75 -#define TK_TIMESTAMP 76 -#define TK_NCHAR 77 -#define TK_UNSIGNED 78 -#define TK_JSON 79 -#define TK_VARCHAR 80 -#define TK_MEDIUMBLOB 81 -#define TK_BLOB 82 -#define TK_VARBINARY 83 -#define TK_DECIMAL 84 -#define TK_SMA 85 -#define TK_INDEX 86 -#define TK_ON 87 -#define TK_FULLTEXT 88 -#define TK_FUNCTION 89 -#define TK_INTERVAL 90 -#define TK_MNODES 91 -#define TK_NK_FLOAT 92 -#define TK_NK_BOOL 93 -#define TK_NK_VARIABLE 94 -#define TK_BETWEEN 95 -#define TK_IS 96 -#define TK_NULL 97 -#define TK_NK_LT 98 -#define TK_NK_GT 99 -#define TK_NK_LE 100 -#define TK_NK_GE 101 -#define TK_NK_NE 102 -#define TK_NK_EQ 103 -#define TK_LIKE 104 -#define TK_MATCH 105 -#define TK_NMATCH 106 -#define TK_IN 107 -#define TK_FROM 108 -#define TK_AS 109 -#define TK_JOIN 110 -#define TK_INNER 111 -#define TK_SELECT 112 -#define TK_DISTINCT 113 -#define TK_WHERE 114 -#define TK_PARTITION 115 -#define TK_BY 116 -#define TK_SESSION 117 -#define TK_STATE_WINDOW 118 -#define TK_SLIDING 119 -#define TK_FILL 120 -#define TK_VALUE 121 -#define TK_NONE 122 -#define TK_PREV 123 -#define TK_LINEAR 124 -#define TK_NEXT 125 -#define TK_GROUP 126 -#define TK_HAVING 127 -#define TK_ORDER 128 -#define TK_SLIMIT 129 -#define TK_SOFFSET 130 -#define TK_LIMIT 131 -#define TK_OFFSET 132 -#define TK_ASC 133 -#define TK_DESC 134 -#define TK_NULLS 135 -#define TK_FIRST 136 -#define TK_LAST 137 +#define TK_QNODE 33 +#define TK_ON 34 +#define TK_QNODES 35 +#define TK_DATABASE 36 +#define TK_DATABASES 37 +#define TK_USE 38 +#define TK_IF 39 +#define TK_NOT 40 +#define TK_EXISTS 41 +#define TK_BLOCKS 42 +#define TK_CACHE 43 +#define TK_CACHELAST 44 +#define TK_COMP 45 +#define TK_DAYS 46 +#define TK_FSYNC 47 +#define TK_MAXROWS 48 +#define TK_MINROWS 49 +#define TK_KEEP 50 +#define TK_PRECISION 51 +#define TK_QUORUM 52 +#define TK_REPLICA 53 +#define TK_TTL 54 +#define TK_WAL 55 +#define TK_VGROUPS 56 +#define TK_SINGLE_STABLE 57 +#define TK_STREAM_MODE 58 +#define TK_TABLE 59 +#define TK_NK_LP 60 +#define TK_NK_RP 61 +#define TK_STABLE 62 +#define TK_TABLES 63 +#define TK_STABLES 64 +#define TK_USING 65 +#define TK_TAGS 66 +#define TK_NK_DOT 67 +#define TK_NK_COMMA 68 +#define TK_COMMENT 69 +#define TK_BOOL 70 +#define TK_TINYINT 71 +#define TK_SMALLINT 72 +#define TK_INT 73 +#define TK_INTEGER 74 +#define TK_BIGINT 75 +#define TK_FLOAT 76 +#define TK_DOUBLE 77 +#define TK_BINARY 78 +#define TK_TIMESTAMP 79 +#define TK_NCHAR 80 +#define TK_UNSIGNED 81 +#define TK_JSON 82 +#define TK_VARCHAR 83 +#define TK_MEDIUMBLOB 84 +#define TK_BLOB 85 +#define TK_VARBINARY 86 +#define TK_DECIMAL 87 +#define TK_SMA 88 +#define TK_INDEX 89 +#define TK_FULLTEXT 90 +#define TK_FUNCTION 91 +#define TK_INTERVAL 92 +#define TK_MNODES 93 +#define TK_NK_FLOAT 94 +#define TK_NK_BOOL 95 +#define TK_NK_VARIABLE 96 +#define TK_BETWEEN 97 +#define TK_IS 98 +#define TK_NULL 99 +#define TK_NK_LT 100 +#define TK_NK_GT 101 +#define TK_NK_LE 102 +#define TK_NK_GE 103 +#define TK_NK_NE 104 +#define TK_NK_EQ 105 +#define TK_LIKE 106 +#define TK_MATCH 107 +#define TK_NMATCH 108 +#define TK_IN 109 +#define TK_FROM 110 +#define TK_AS 111 +#define TK_JOIN 112 +#define TK_INNER 113 +#define TK_SELECT 114 +#define TK_DISTINCT 115 +#define TK_WHERE 116 +#define TK_PARTITION 117 +#define TK_BY 118 +#define TK_SESSION 119 +#define TK_STATE_WINDOW 120 +#define TK_SLIDING 121 +#define TK_FILL 122 +#define TK_VALUE 123 +#define TK_NONE 124 +#define TK_PREV 125 +#define TK_LINEAR 126 +#define TK_NEXT 127 +#define TK_GROUP 128 +#define TK_HAVING 129 +#define TK_ORDER 130 +#define TK_SLIMIT 131 +#define TK_SOFFSET 132 +#define TK_LIMIT 133 +#define TK_OFFSET 134 +#define TK_ASC 135 +#define TK_DESC 136 +#define TK_NULLS 137 +#define TK_FIRST 138 +#define TK_LAST 139 #define TK_NK_SPACE 300 #define TK_NK_COMMENT 301 diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index aa539667e4..21d9ff83c8 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -179,6 +179,11 @@ typedef struct SCreateIndexStmt { SIndexOptions* pOptions; } SCreateIndexStmt; +typedef struct SCreateQnodeStmt { + ENodeType type; + int32_t dnodeId; +} SCreateQnodeStmt; + #ifdef __cplusplus } #endif diff --git a/include/libs/nodes/nodes.h b/include/libs/nodes/nodes.h index 46b89416b7..cf34c6665a 100644 --- a/include/libs/nodes/nodes.h +++ b/include/libs/nodes/nodes.h @@ -96,7 +96,9 @@ typedef enum ENodeType { QUERY_NODE_SHOW_DNODES_STMT, QUERY_NODE_SHOW_VGROUPS_STMT, QUERY_NODE_SHOW_MNODES_STMT, + QUERY_NODE_SHOW_QNODES_STMT, QUERY_NODE_CREATE_INDEX_STMT, + QUERY_NODE_CREATE_QNODE_STMT, // logic plan node QUERY_NODE_LOGIC_PLAN_SCAN, diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 43caa25c3d..b17a4904da 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -127,9 +127,12 @@ SNodeptr nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SShowStmt)); case QUERY_NODE_SHOW_VGROUPS_STMT: case QUERY_NODE_SHOW_MNODES_STMT: + case QUERY_NODE_SHOW_QNODES_STMT: return makeNode(type, sizeof(SShowStmt)); case QUERY_NODE_CREATE_INDEX_STMT: return makeNode(type, sizeof(SCreateIndexStmt)); + case QUERY_NODE_CREATE_QNODE_STMT: + return makeNode(type, sizeof(SCreateQnodeStmt)); case QUERY_NODE_LOGIC_PLAN_SCAN: return makeNode(type, sizeof(SScanLogicNode)); case QUERY_NODE_LOGIC_PLAN_JOIN: diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index bb22e5703d..f2fcced1a9 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -134,6 +134,7 @@ SNode* createCreateDnodeStmt(SAstCreateContext* pCxt, const SToken* pFqdn, const SNode* createDropDnodeStmt(SAstCreateContext* pCxt, const SToken* pDnode); SNode* createCreateIndexStmt(SAstCreateContext* pCxt, EIndexType type, const SToken* pIndexName, const SToken* pTableName, SNodeList* pCols, SNode* pOptions); SNode* createIndexOption(SAstCreateContext* pCxt, SNodeList* pFuncs, SNode* pInterval, SNode* pOffset, SNode* pSliding); +SNode* createCreateQnodeStmt(SAstCreateContext* pCxt, const SToken* pDnodeId); #ifdef __cplusplus } diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index a9fb0a9f5e..af2fb12c52 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -64,6 +64,10 @@ dnode_endpoint(A) ::= NK_STRING(B). dnode_host_name(A) ::= NK_ID(B). { A = B; } dnode_host_name(A) ::= NK_IPTOKEN(B). { A = B; } +/************************************************ create qnode ********************************************************/ +cmd ::= CREATE QNODE ON DNODE NK_INTEGER(A). { pCxt->pRootNode = createCreateQnodeStmt(pCxt, &A); } +cmd ::= SHOW QNODES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL); } + /************************************************ create/drop/show/use database ***************************************/ cmd ::= CREATE DATABASE not_exists_opt(A) db_name(B) db_options(C). { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, A, &B, C);} cmd ::= DROP DATABASE exists_opt(A) db_name(B). { pCxt->pRootNode = createDropDatabaseStmt(pCxt, A, &B); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 994ca53a0f..b7ecf160fd 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1021,3 +1021,10 @@ SNode* createIndexOption(SAstCreateContext* pCxt, SNodeList* pFuncs, SNode* pInt pOptions->pSliding = pSliding; return (SNode*)pOptions; } + +SNode* createCreateQnodeStmt(SAstCreateContext* pCxt, const SToken* pDnodeId) { + SCreateQnodeStmt* pStmt = nodesMakeNode(QUERY_NODE_CREATE_QNODE_STMT); + CHECK_OUT_OF_MEM(pStmt); + pStmt->dnodeId = strtol(pDnodeId->z, NULL, 10);; + return (SNode*)pStmt; +} diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 57ff6d53a4..4d50d92d9e 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -99,6 +99,8 @@ static SKeyword keywordTable[] = { {"PRECISION", TK_PRECISION}, {"PRIVILEGE", TK_PRIVILEGE}, {"PREV", TK_PREV}, + {"QNODE", TK_QNODE}, + {"QNODES", TK_QNODES}, {"QUORUM", TK_QUORUM}, {"REPLICA", TK_REPLICA}, {"SELECT", TK_SELECT}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index dbba590620..4f89e7e703 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -1077,6 +1077,8 @@ static int32_t nodeTypeToShowType(ENodeType nt) { return TSDB_MGMT_TABLE_VGROUP; case QUERY_NODE_SHOW_MNODES_STMT: return TSDB_MGMT_TABLE_MNODE; + case QUERY_NODE_SHOW_QNODES_STMT: + return TSDB_MGMT_TABLE_QNODE; default: break; } @@ -1185,7 +1187,7 @@ static int32_t translateCreateSmaIndex(STranslateContext* pCxt, SCreateIndexStmt } void* pBuf = pCxt->pCmdMsg->pMsg; tSerializeSVCreateTSmaReq(&pBuf, &createSmaReq); - // todo clear SVCreateTSmaReq + tdDestroyTSma(&createSmaReq.tSma); return TSDB_CODE_SUCCESS; } @@ -1199,6 +1201,25 @@ static int32_t translateCreateIndex(STranslateContext* pCxt, SCreateIndexStmt* p } } +static int32_t translateCreateQnode(STranslateContext* pCxt, SCreateQnodeStmt* pStmt) { + SMCreateQnodeReq createReq = { .dnodeId = pStmt->dnodeId }; + + pCxt->pCmdMsg = malloc(sizeof(SCmdMsgInfo)); + if (NULL == pCxt->pCmdMsg) { + return TSDB_CODE_OUT_OF_MEMORY; + } + pCxt->pCmdMsg->epSet = pCxt->pParseCxt->mgmtEpSet; + pCxt->pCmdMsg->msgType = TDMT_DND_CREATE_QNODE; + pCxt->pCmdMsg->msgLen = tSerializeSMCreateDropQSBNodeReq(NULL, 0, &createReq); + pCxt->pCmdMsg->pMsg = malloc(pCxt->pCmdMsg->msgLen); + if (NULL == pCxt->pCmdMsg->pMsg) { + return TSDB_CODE_OUT_OF_MEMORY; + } + tSerializeSMCreateDropQSBNodeReq(pCxt->pCmdMsg->pMsg, pCxt->pCmdMsg->msgLen, &createReq); + + return TSDB_CODE_SUCCESS; +} + static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { int32_t code = TSDB_CODE_SUCCESS; switch (nodeType(pNode)) { @@ -1244,6 +1265,7 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_SHOW_DNODES_STMT: case QUERY_NODE_SHOW_VGROUPS_STMT: case QUERY_NODE_SHOW_MNODES_STMT: + case QUERY_NODE_SHOW_QNODES_STMT: code = translateShow(pCxt, (SShowStmt*)pNode); break; case QUERY_NODE_SHOW_TABLES_STMT: @@ -1252,6 +1274,9 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_CREATE_INDEX_STMT: code = translateCreateIndex(pCxt, (SCreateIndexStmt*)pNode); break; + case QUERY_NODE_CREATE_QNODE_STMT: + code = translateCreateQnode(pCxt, (SCreateQnodeStmt*)pNode); + break; default: break; } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index c135d59298..8b46d3600b 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -99,22 +99,22 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned char -#define YYNOCODE 216 +#define YYNOCODE 218 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - EOrder yy2; - EJoinType yy36; - SToken yy209; - ENullOrder yy217; - EOperatorType yy236; - SNodeList* yy280; - bool yy281; - SDataType yy304; - EFillMode yy342; - SNode* yy344; + SToken yy5; + bool yy25; + SNodeList* yy40; + ENullOrder yy53; + EOrder yy54; + SNode* yy68; + EJoinType yy92; + EFillMode yy94; + SDataType yy372; + EOperatorType yy416; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -129,17 +129,17 @@ typedef union { #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE -#define YYNSTATE 308 -#define YYNRULE 246 -#define YYNTOKEN 138 -#define YY_MAX_SHIFT 307 -#define YY_MIN_SHIFTREDUCE 475 -#define YY_MAX_SHIFTREDUCE 720 -#define YY_ERROR_ACTION 721 -#define YY_ACCEPT_ACTION 722 -#define YY_NO_ACTION 723 -#define YY_MIN_REDUCE 724 -#define YY_MAX_REDUCE 969 +#define YYNSTATE 313 +#define YYNRULE 248 +#define YYNTOKEN 140 +#define YY_MAX_SHIFT 312 +#define YY_MIN_SHIFTREDUCE 480 +#define YY_MAX_SHIFTREDUCE 727 +#define YY_ERROR_ACTION 728 +#define YY_ACCEPT_ACTION 729 +#define YY_NO_ACTION 730 +#define YY_MIN_REDUCE 731 +#define YY_MAX_REDUCE 978 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -206,318 +206,307 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (1037) +#define YY_ACTTAB_COUNT (963) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 152, 235, 276, 862, 835, 251, 251, 167, 185, 775, - /* 10 */ 838, 835, 31, 29, 27, 26, 25, 837, 835, 208, - /* 20 */ 778, 778, 165, 178, 837, 31, 29, 27, 26, 25, - /* 30 */ 737, 39, 9, 8, 780, 70, 151, 145, 61, 817, - /* 40 */ 250, 815, 773, 235, 251, 862, 235, 248, 862, 164, - /* 50 */ 145, 835, 823, 238, 237, 24, 109, 847, 603, 778, - /* 60 */ 58, 848, 851, 887, 212, 662, 10, 886, 883, 300, - /* 70 */ 299, 298, 297, 296, 295, 294, 293, 292, 291, 290, - /* 80 */ 289, 288, 287, 286, 285, 284, 304, 303, 250, 639, - /* 90 */ 31, 29, 27, 26, 25, 23, 159, 592, 621, 622, - /* 100 */ 623, 624, 625, 626, 627, 629, 630, 631, 23, 159, - /* 110 */ 186, 621, 622, 623, 624, 625, 626, 627, 629, 630, - /* 120 */ 631, 31, 29, 27, 26, 25, 535, 274, 273, 272, - /* 130 */ 539, 271, 541, 542, 270, 544, 267, 20, 550, 264, - /* 140 */ 552, 553, 261, 258, 235, 87, 862, 31, 29, 27, - /* 150 */ 26, 25, 835, 75, 766, 237, 213, 223, 847, 86, - /* 160 */ 82, 56, 848, 851, 887, 54, 948, 603, 144, 883, - /* 170 */ 250, 130, 219, 65, 661, 195, 770, 134, 71, 947, - /* 180 */ 948, 593, 40, 946, 222, 84, 862, 64, 83, 764, - /* 190 */ 186, 583, 835, 81, 39, 237, 10, 946, 847, 581, - /* 200 */ 223, 57, 848, 851, 887, 774, 62, 207, 154, 883, - /* 210 */ 76, 716, 717, 27, 26, 25, 102, 894, 218, 485, - /* 220 */ 217, 166, 105, 948, 817, 283, 815, 189, 200, 914, - /* 230 */ 222, 125, 862, 283, 214, 209, 81, 594, 835, 60, - /* 240 */ 946, 237, 485, 277, 847, 124, 252, 57, 848, 851, - /* 250 */ 887, 82, 486, 487, 154, 883, 76, 251, 226, 235, - /* 260 */ 249, 862, 582, 584, 587, 82, 251, 835, 55, 122, - /* 270 */ 237, 120, 778, 847, 106, 915, 57, 848, 851, 887, - /* 280 */ 169, 778, 205, 154, 883, 960, 99, 235, 251, 862, - /* 290 */ 722, 172, 780, 70, 921, 835, 171, 247, 237, 127, - /* 300 */ 199, 847, 808, 778, 57, 848, 851, 887, 780, 70, - /* 310 */ 595, 154, 883, 960, 48, 104, 235, 188, 862, 21, - /* 320 */ 30, 28, 944, 173, 835, 771, 220, 237, 628, 583, - /* 330 */ 847, 632, 230, 57, 848, 851, 887, 581, 765, 161, - /* 340 */ 154, 883, 960, 6, 901, 12, 948, 30, 28, 663, - /* 350 */ 170, 905, 901, 817, 863, 815, 583, 917, 901, 81, - /* 360 */ 235, 898, 862, 946, 581, 1, 161, 658, 835, 897, - /* 370 */ 234, 237, 12, 223, 847, 896, 670, 133, 848, 851, - /* 380 */ 227, 824, 238, 225, 252, 280, 30, 28, 91, 279, - /* 390 */ 781, 70, 1, 592, 108, 583, 948, 30, 28, 231, - /* 400 */ 582, 584, 587, 581, 281, 161, 583, 174, 817, 81, - /* 410 */ 816, 252, 194, 946, 581, 192, 161, 906, 658, 196, - /* 420 */ 82, 2, 12, 278, 590, 684, 68, 582, 584, 587, - /* 430 */ 618, 7, 59, 96, 633, 235, 763, 862, 9, 8, - /* 440 */ 94, 32, 1, 835, 600, 228, 237, 719, 720, 847, - /* 450 */ 252, 32, 58, 848, 851, 887, 30, 28, 236, 233, - /* 460 */ 883, 252, 842, 30, 28, 583, 582, 584, 587, 840, - /* 470 */ 38, 53, 583, 581, 576, 161, 50, 582, 584, 587, - /* 480 */ 581, 32, 161, 280, 187, 85, 82, 279, 30, 28, - /* 490 */ 190, 184, 235, 596, 862, 183, 590, 583, 150, 182, - /* 500 */ 835, 7, 281, 237, 197, 581, 847, 161, 7, 72, - /* 510 */ 848, 851, 114, 591, 206, 219, 243, 119, 179, 112, - /* 520 */ 252, 278, 528, 66, 67, 181, 180, 252, 523, 68, - /* 530 */ 64, 597, 556, 1, 198, 59, 582, 584, 587, 256, - /* 540 */ 595, 560, 918, 582, 584, 587, 224, 961, 67, 62, - /* 550 */ 565, 928, 252, 241, 92, 69, 175, 68, 221, 77, - /* 560 */ 894, 895, 67, 899, 235, 587, 862, 203, 582, 584, - /* 570 */ 587, 95, 835, 927, 153, 237, 5, 98, 847, 908, - /* 580 */ 74, 58, 848, 851, 887, 100, 235, 687, 862, 884, - /* 590 */ 202, 4, 216, 63, 835, 658, 594, 237, 160, 902, - /* 600 */ 847, 945, 33, 138, 848, 851, 101, 155, 235, 232, - /* 610 */ 862, 204, 685, 686, 688, 689, 835, 963, 229, 237, - /* 620 */ 201, 107, 847, 17, 869, 138, 848, 851, 822, 239, - /* 630 */ 244, 235, 126, 862, 240, 49, 821, 47, 123, 835, - /* 640 */ 307, 254, 237, 245, 116, 847, 163, 128, 137, 848, - /* 650 */ 851, 235, 142, 862, 246, 129, 779, 143, 829, 835, - /* 660 */ 176, 177, 237, 740, 235, 847, 862, 828, 72, 848, - /* 670 */ 851, 827, 835, 494, 738, 237, 158, 191, 847, 215, - /* 680 */ 826, 138, 848, 851, 769, 768, 235, 739, 862, 31, - /* 690 */ 29, 27, 26, 25, 835, 88, 193, 237, 162, 733, - /* 700 */ 847, 728, 767, 138, 848, 851, 962, 732, 731, 727, - /* 710 */ 726, 235, 219, 862, 725, 819, 41, 89, 90, 835, - /* 720 */ 3, 14, 237, 93, 683, 847, 32, 64, 136, 848, - /* 730 */ 851, 235, 210, 862, 36, 73, 97, 211, 42, 835, - /* 740 */ 677, 676, 237, 43, 15, 847, 62, 34, 139, 848, - /* 750 */ 851, 655, 840, 235, 19, 862, 78, 894, 895, 35, - /* 760 */ 899, 835, 654, 16, 237, 11, 705, 847, 44, 103, - /* 770 */ 131, 848, 851, 704, 710, 235, 80, 862, 156, 709, - /* 780 */ 708, 157, 8, 835, 601, 110, 237, 619, 13, 847, - /* 790 */ 18, 113, 140, 848, 851, 818, 111, 681, 235, 115, - /* 800 */ 862, 242, 45, 46, 117, 118, 835, 839, 585, 237, - /* 810 */ 50, 121, 847, 37, 255, 132, 848, 851, 235, 557, - /* 820 */ 862, 253, 168, 257, 534, 554, 835, 259, 260, 237, - /* 830 */ 551, 235, 847, 862, 262, 141, 848, 851, 263, 835, - /* 840 */ 545, 265, 237, 266, 268, 847, 543, 269, 859, 848, - /* 850 */ 851, 549, 548, 235, 547, 862, 546, 275, 51, 52, - /* 860 */ 564, 835, 563, 562, 237, 506, 492, 847, 513, 512, - /* 870 */ 858, 848, 851, 282, 511, 510, 509, 508, 235, 507, - /* 880 */ 862, 505, 504, 503, 502, 501, 835, 500, 499, 237, - /* 890 */ 498, 497, 847, 730, 301, 857, 848, 851, 235, 302, - /* 900 */ 862, 729, 724, 305, 306, 723, 835, 723, 723, 237, - /* 910 */ 723, 723, 847, 723, 723, 148, 848, 851, 723, 723, - /* 920 */ 235, 723, 862, 723, 723, 723, 723, 723, 835, 723, - /* 930 */ 723, 237, 723, 723, 847, 723, 723, 147, 848, 851, - /* 940 */ 723, 723, 235, 723, 862, 723, 723, 723, 723, 723, - /* 950 */ 835, 723, 723, 237, 723, 723, 847, 723, 723, 149, - /* 960 */ 848, 851, 723, 723, 723, 235, 723, 862, 723, 723, - /* 970 */ 723, 723, 723, 835, 723, 219, 237, 723, 723, 847, - /* 980 */ 723, 723, 146, 848, 851, 235, 723, 862, 723, 723, - /* 990 */ 64, 723, 723, 835, 723, 723, 237, 723, 723, 847, - /* 1000 */ 723, 723, 135, 848, 851, 723, 723, 723, 723, 62, - /* 1010 */ 723, 723, 723, 723, 723, 723, 723, 723, 723, 79, - /* 1020 */ 894, 895, 22, 899, 723, 723, 723, 723, 723, 723, - /* 1030 */ 723, 723, 31, 29, 27, 26, 25, + /* 0 */ 152, 236, 277, 871, 844, 252, 252, 167, 186, 784, + /* 10 */ 847, 844, 31, 29, 27, 26, 25, 846, 844, 209, + /* 20 */ 787, 787, 309, 308, 846, 31, 29, 27, 26, 25, + /* 30 */ 746, 236, 151, 871, 106, 826, 39, 824, 251, 844, + /* 40 */ 145, 957, 238, 61, 236, 856, 871, 782, 57, 857, + /* 50 */ 860, 896, 910, 145, 956, 154, 892, 969, 955, 187, + /* 60 */ 164, 610, 213, 832, 239, 166, 930, 10, 826, 907, + /* 70 */ 824, 251, 301, 300, 299, 298, 297, 296, 295, 294, + /* 80 */ 293, 292, 291, 290, 289, 288, 287, 286, 285, 599, + /* 90 */ 31, 29, 27, 26, 25, 24, 109, 23, 159, 228, + /* 100 */ 628, 629, 630, 631, 632, 633, 634, 636, 637, 638, + /* 110 */ 23, 159, 39, 628, 629, 630, 631, 632, 633, 634, + /* 120 */ 636, 637, 638, 783, 542, 275, 274, 273, 546, 272, + /* 130 */ 548, 549, 271, 551, 268, 165, 557, 265, 559, 560, + /* 140 */ 262, 259, 236, 54, 871, 694, 251, 789, 70, 252, + /* 150 */ 844, 65, 249, 238, 779, 224, 856, 208, 214, 56, + /* 160 */ 857, 860, 896, 229, 787, 601, 144, 892, 775, 205, + /* 170 */ 692, 693, 695, 696, 220, 10, 910, 82, 957, 31, + /* 180 */ 29, 27, 26, 25, 215, 210, 223, 170, 871, 64, + /* 190 */ 826, 81, 824, 906, 844, 955, 600, 238, 773, 826, + /* 200 */ 856, 825, 224, 57, 857, 860, 896, 187, 62, 910, + /* 210 */ 154, 892, 76, 723, 724, 27, 26, 25, 102, 903, + /* 220 */ 219, 220, 218, 284, 105, 957, 905, 729, 610, 82, + /* 230 */ 201, 923, 87, 223, 21, 871, 64, 284, 81, 227, + /* 240 */ 75, 844, 955, 635, 238, 104, 639, 856, 490, 86, + /* 250 */ 57, 857, 860, 896, 197, 62, 190, 154, 892, 76, + /* 260 */ 173, 68, 236, 278, 871, 78, 903, 904, 127, 908, + /* 270 */ 844, 817, 40, 238, 252, 84, 856, 250, 924, 57, + /* 280 */ 857, 860, 896, 957, 9, 8, 154, 892, 969, 787, + /* 290 */ 236, 48, 871, 178, 30, 28, 81, 953, 844, 206, + /* 300 */ 955, 238, 780, 590, 856, 833, 239, 57, 857, 860, + /* 310 */ 896, 588, 6, 161, 154, 892, 969, 30, 28, 670, + /* 320 */ 169, 99, 12, 790, 70, 914, 590, 31, 29, 27, + /* 330 */ 26, 25, 789, 70, 588, 774, 161, 189, 490, 236, + /* 340 */ 602, 871, 1, 677, 646, 12, 53, 844, 491, 492, + /* 350 */ 238, 50, 224, 856, 30, 28, 133, 857, 860, 252, + /* 360 */ 599, 253, 122, 590, 252, 1, 226, 172, 915, 665, + /* 370 */ 235, 588, 590, 161, 787, 957, 589, 591, 594, 787, + /* 380 */ 588, 171, 12, 926, 253, 281, 30, 28, 81, 280, + /* 390 */ 669, 665, 955, 789, 70, 590, 82, 9, 8, 589, + /* 400 */ 591, 594, 1, 588, 282, 161, 691, 96, 236, 195, + /* 410 */ 871, 130, 193, 59, 94, 196, 844, 134, 71, 238, + /* 420 */ 91, 253, 856, 279, 221, 58, 857, 860, 896, 625, + /* 430 */ 253, 83, 895, 892, 7, 872, 589, 591, 594, 108, + /* 440 */ 236, 2, 871, 597, 174, 589, 591, 594, 844, 772, + /* 450 */ 231, 238, 188, 253, 856, 38, 640, 58, 857, 860, + /* 460 */ 896, 726, 727, 32, 234, 892, 30, 28, 589, 591, + /* 470 */ 594, 85, 30, 28, 237, 590, 236, 603, 871, 607, + /* 480 */ 191, 590, 150, 588, 844, 161, 32, 238, 82, 588, + /* 490 */ 856, 161, 198, 72, 857, 860, 30, 28, 20, 281, + /* 500 */ 598, 668, 604, 280, 602, 590, 207, 82, 31, 29, + /* 510 */ 27, 26, 25, 588, 7, 161, 232, 199, 282, 927, + /* 520 */ 7, 851, 242, 92, 236, 937, 871, 583, 849, 594, + /* 530 */ 225, 970, 844, 253, 32, 238, 160, 279, 856, 253, + /* 540 */ 114, 138, 857, 860, 1, 204, 936, 112, 589, 591, + /* 550 */ 594, 244, 95, 119, 589, 591, 594, 236, 66, 871, + /* 560 */ 67, 5, 153, 253, 917, 844, 217, 98, 238, 203, + /* 570 */ 74, 856, 4, 63, 58, 857, 860, 896, 589, 591, + /* 580 */ 594, 665, 893, 236, 220, 871, 535, 100, 601, 530, + /* 590 */ 911, 844, 33, 68, 238, 202, 59, 856, 101, 64, + /* 600 */ 138, 857, 860, 236, 155, 871, 563, 972, 233, 567, + /* 610 */ 954, 844, 572, 257, 238, 107, 67, 856, 62, 68, + /* 620 */ 137, 857, 860, 17, 230, 236, 831, 871, 79, 903, + /* 630 */ 904, 878, 908, 844, 245, 47, 238, 49, 240, 856, + /* 640 */ 241, 69, 72, 857, 860, 236, 830, 871, 67, 163, + /* 650 */ 126, 216, 246, 844, 116, 788, 238, 158, 236, 856, + /* 660 */ 871, 255, 138, 857, 860, 247, 844, 128, 123, 238, + /* 670 */ 162, 312, 856, 125, 185, 138, 857, 860, 184, 597, + /* 680 */ 971, 60, 129, 183, 22, 182, 142, 305, 143, 838, + /* 690 */ 124, 236, 749, 871, 31, 29, 27, 26, 25, 844, + /* 700 */ 176, 177, 238, 837, 179, 856, 836, 835, 136, 857, + /* 710 */ 860, 181, 180, 55, 778, 236, 120, 871, 777, 748, + /* 720 */ 745, 740, 735, 844, 776, 501, 238, 747, 739, 856, + /* 730 */ 738, 734, 139, 857, 860, 236, 733, 871, 192, 732, + /* 740 */ 828, 175, 248, 844, 200, 41, 238, 194, 88, 856, + /* 750 */ 89, 90, 131, 857, 860, 236, 3, 871, 32, 14, + /* 760 */ 93, 36, 690, 844, 73, 97, 238, 211, 42, 856, + /* 770 */ 212, 684, 140, 857, 860, 236, 683, 871, 849, 15, + /* 780 */ 19, 34, 11, 844, 662, 43, 238, 44, 236, 856, + /* 790 */ 871, 712, 132, 857, 860, 661, 844, 711, 156, 238, + /* 800 */ 35, 716, 856, 717, 103, 141, 857, 860, 80, 715, + /* 810 */ 157, 16, 236, 8, 871, 110, 608, 13, 18, 113, + /* 820 */ 844, 111, 688, 238, 115, 236, 856, 871, 827, 868, + /* 830 */ 857, 860, 117, 844, 626, 45, 238, 243, 236, 856, + /* 840 */ 871, 118, 867, 857, 860, 46, 844, 50, 592, 238, + /* 850 */ 37, 848, 856, 121, 220, 866, 857, 860, 254, 256, + /* 860 */ 236, 564, 871, 168, 258, 260, 561, 261, 844, 64, + /* 870 */ 558, 238, 263, 236, 856, 871, 264, 148, 857, 860, + /* 880 */ 552, 844, 266, 267, 238, 550, 269, 856, 62, 270, + /* 890 */ 147, 857, 860, 236, 556, 871, 555, 222, 77, 903, + /* 900 */ 904, 844, 908, 554, 238, 541, 553, 856, 276, 51, + /* 910 */ 149, 857, 860, 236, 52, 871, 571, 570, 569, 499, + /* 920 */ 283, 844, 520, 519, 238, 518, 744, 856, 517, 516, + /* 930 */ 146, 857, 860, 236, 515, 871, 514, 513, 512, 511, + /* 940 */ 510, 844, 509, 508, 238, 303, 507, 856, 506, 505, + /* 950 */ 135, 857, 860, 504, 302, 304, 737, 306, 307, 736, + /* 960 */ 731, 310, 311, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 155, 158, 161, 160, 166, 143, 143, 155, 146, 146, - /* 10 */ 172, 166, 12, 13, 14, 15, 16, 172, 166, 176, - /* 20 */ 158, 158, 147, 143, 172, 12, 13, 14, 15, 16, - /* 30 */ 0, 145, 1, 2, 159, 160, 157, 37, 152, 160, - /* 40 */ 31, 162, 156, 158, 143, 160, 158, 146, 160, 165, - /* 50 */ 37, 166, 168, 169, 169, 179, 180, 172, 58, 158, - /* 60 */ 175, 176, 177, 178, 176, 4, 57, 182, 183, 39, - /* 70 */ 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - /* 80 */ 50, 51, 52, 53, 54, 55, 140, 141, 31, 58, - /* 90 */ 12, 13, 14, 15, 16, 95, 96, 31, 98, 99, - /* 100 */ 100, 101, 102, 103, 104, 105, 106, 107, 95, 96, - /* 110 */ 36, 98, 99, 100, 101, 102, 103, 104, 105, 106, - /* 120 */ 107, 12, 13, 14, 15, 16, 67, 68, 69, 70, - /* 130 */ 71, 72, 73, 74, 75, 76, 77, 2, 79, 80, - /* 140 */ 81, 82, 83, 84, 158, 19, 160, 12, 13, 14, - /* 150 */ 15, 16, 166, 27, 0, 169, 31, 171, 172, 33, - /* 160 */ 112, 175, 176, 177, 178, 142, 194, 58, 182, 183, - /* 170 */ 31, 18, 143, 150, 113, 22, 153, 24, 25, 207, - /* 180 */ 194, 31, 56, 211, 158, 59, 160, 158, 35, 0, - /* 190 */ 36, 21, 166, 207, 145, 169, 57, 211, 172, 29, - /* 200 */ 171, 175, 176, 177, 178, 156, 177, 90, 182, 183, - /* 210 */ 184, 133, 134, 14, 15, 16, 187, 188, 189, 21, - /* 220 */ 191, 157, 196, 194, 160, 36, 162, 29, 202, 203, - /* 230 */ 158, 19, 160, 36, 117, 118, 207, 31, 166, 27, - /* 240 */ 211, 169, 21, 63, 172, 33, 76, 175, 176, 177, - /* 250 */ 178, 112, 31, 32, 182, 183, 184, 143, 3, 158, - /* 260 */ 146, 160, 92, 93, 94, 112, 143, 166, 56, 146, - /* 270 */ 169, 59, 158, 172, 214, 203, 175, 176, 177, 178, - /* 280 */ 147, 158, 205, 182, 183, 184, 199, 158, 143, 160, - /* 290 */ 138, 146, 159, 160, 193, 166, 147, 85, 169, 148, - /* 300 */ 88, 172, 151, 158, 175, 176, 177, 178, 159, 160, - /* 310 */ 31, 182, 183, 184, 142, 109, 158, 140, 160, 95, - /* 320 */ 12, 13, 193, 171, 166, 153, 192, 169, 104, 21, - /* 330 */ 172, 107, 65, 175, 176, 177, 178, 29, 0, 31, - /* 340 */ 182, 183, 184, 87, 173, 37, 194, 12, 13, 14, - /* 350 */ 157, 193, 173, 160, 160, 162, 21, 174, 173, 207, - /* 360 */ 158, 190, 160, 211, 29, 57, 31, 111, 166, 190, - /* 370 */ 37, 169, 37, 171, 172, 190, 14, 175, 176, 177, - /* 380 */ 65, 168, 169, 128, 76, 47, 12, 13, 109, 51, - /* 390 */ 159, 160, 57, 31, 208, 21, 194, 12, 13, 132, - /* 400 */ 92, 93, 94, 29, 66, 31, 21, 143, 160, 207, - /* 410 */ 162, 76, 20, 211, 29, 23, 31, 110, 111, 58, - /* 420 */ 112, 195, 37, 85, 31, 58, 65, 92, 93, 94, - /* 430 */ 97, 57, 65, 58, 58, 158, 0, 160, 1, 2, - /* 440 */ 65, 65, 57, 166, 58, 130, 169, 136, 137, 172, - /* 450 */ 76, 65, 175, 176, 177, 178, 12, 13, 14, 182, - /* 460 */ 183, 76, 57, 12, 13, 21, 92, 93, 94, 64, - /* 470 */ 145, 57, 21, 29, 58, 31, 62, 92, 93, 94, - /* 480 */ 29, 65, 31, 47, 143, 145, 112, 51, 12, 13, - /* 490 */ 139, 26, 158, 31, 160, 30, 31, 21, 139, 34, - /* 500 */ 166, 57, 66, 169, 158, 29, 172, 31, 57, 175, - /* 510 */ 176, 177, 58, 31, 120, 143, 58, 58, 53, 65, - /* 520 */ 76, 85, 58, 65, 65, 60, 61, 76, 58, 65, - /* 530 */ 158, 31, 58, 57, 163, 65, 92, 93, 94, 65, - /* 540 */ 31, 58, 174, 92, 93, 94, 212, 213, 65, 177, - /* 550 */ 58, 204, 76, 119, 167, 58, 91, 65, 186, 187, - /* 560 */ 188, 189, 65, 191, 158, 94, 160, 166, 92, 93, - /* 570 */ 94, 167, 166, 204, 166, 169, 127, 200, 172, 201, - /* 580 */ 198, 175, 176, 177, 178, 197, 158, 97, 160, 183, - /* 590 */ 115, 114, 126, 158, 166, 111, 31, 169, 170, 173, - /* 600 */ 172, 210, 108, 175, 176, 177, 185, 135, 158, 131, - /* 610 */ 160, 121, 122, 123, 124, 125, 166, 215, 129, 169, - /* 620 */ 170, 209, 172, 57, 181, 175, 176, 177, 167, 166, - /* 630 */ 89, 158, 151, 160, 166, 57, 167, 142, 142, 166, - /* 640 */ 139, 154, 169, 164, 158, 172, 166, 143, 175, 176, - /* 650 */ 177, 158, 149, 160, 163, 144, 158, 149, 0, 166, - /* 660 */ 53, 64, 169, 0, 158, 172, 160, 0, 175, 176, - /* 670 */ 177, 0, 166, 38, 0, 169, 170, 21, 172, 206, - /* 680 */ 0, 175, 176, 177, 0, 0, 158, 0, 160, 12, - /* 690 */ 13, 14, 15, 16, 166, 19, 21, 169, 170, 0, - /* 700 */ 172, 0, 0, 175, 176, 177, 213, 0, 0, 0, - /* 710 */ 0, 158, 143, 160, 0, 0, 57, 87, 86, 166, - /* 720 */ 65, 116, 169, 58, 58, 172, 65, 158, 175, 176, - /* 730 */ 177, 158, 29, 160, 65, 57, 57, 65, 57, 166, - /* 740 */ 58, 58, 169, 57, 116, 172, 177, 110, 175, 176, - /* 750 */ 177, 58, 64, 158, 65, 160, 187, 188, 189, 65, - /* 760 */ 191, 166, 58, 65, 169, 116, 29, 172, 4, 64, - /* 770 */ 175, 176, 177, 29, 58, 158, 64, 160, 29, 29, - /* 780 */ 29, 29, 2, 166, 58, 64, 169, 97, 57, 172, - /* 790 */ 57, 57, 175, 176, 177, 0, 58, 58, 158, 57, - /* 800 */ 160, 90, 57, 57, 87, 86, 166, 64, 21, 169, - /* 810 */ 62, 64, 172, 57, 29, 175, 176, 177, 158, 58, - /* 820 */ 160, 63, 29, 57, 21, 58, 166, 29, 57, 169, - /* 830 */ 58, 158, 172, 160, 29, 175, 176, 177, 57, 166, - /* 840 */ 58, 29, 169, 57, 29, 172, 58, 57, 175, 176, - /* 850 */ 177, 78, 78, 158, 78, 160, 78, 66, 57, 57, - /* 860 */ 29, 166, 29, 21, 169, 21, 38, 172, 29, 29, - /* 870 */ 175, 176, 177, 37, 29, 29, 29, 29, 158, 29, - /* 880 */ 160, 29, 29, 29, 29, 29, 166, 29, 29, 169, - /* 890 */ 29, 29, 172, 0, 29, 175, 176, 177, 158, 28, - /* 900 */ 160, 0, 0, 21, 20, 216, 166, 216, 216, 169, - /* 910 */ 216, 216, 172, 216, 216, 175, 176, 177, 216, 216, - /* 920 */ 158, 216, 160, 216, 216, 216, 216, 216, 166, 216, - /* 930 */ 216, 169, 216, 216, 172, 216, 216, 175, 176, 177, - /* 940 */ 216, 216, 158, 216, 160, 216, 216, 216, 216, 216, - /* 950 */ 166, 216, 216, 169, 216, 216, 172, 216, 216, 175, - /* 960 */ 176, 177, 216, 216, 216, 158, 216, 160, 216, 216, - /* 970 */ 216, 216, 216, 166, 216, 143, 169, 216, 216, 172, - /* 980 */ 216, 216, 175, 176, 177, 158, 216, 160, 216, 216, - /* 990 */ 158, 216, 216, 166, 216, 216, 169, 216, 216, 172, - /* 1000 */ 216, 216, 175, 176, 177, 216, 216, 216, 216, 177, - /* 1010 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 187, - /* 1020 */ 188, 189, 2, 191, 216, 216, 216, 216, 216, 216, - /* 1030 */ 216, 216, 12, 13, 14, 15, 16, 216, 216, 216, - /* 1040 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1050 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1060 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1070 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1080 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1090 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1100 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1110 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1120 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1130 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1140 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1150 */ 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, - /* 1160 */ 216, + /* 0 */ 157, 160, 163, 162, 168, 145, 145, 157, 148, 148, + /* 10 */ 174, 168, 12, 13, 14, 15, 16, 174, 168, 178, + /* 20 */ 160, 160, 142, 143, 174, 12, 13, 14, 15, 16, + /* 30 */ 0, 160, 159, 162, 216, 162, 147, 164, 31, 168, + /* 40 */ 40, 196, 171, 154, 160, 174, 162, 158, 177, 178, + /* 50 */ 179, 180, 175, 40, 209, 184, 185, 186, 213, 39, + /* 60 */ 167, 61, 178, 170, 171, 159, 195, 60, 162, 192, + /* 70 */ 164, 31, 42, 43, 44, 45, 46, 47, 48, 49, + /* 80 */ 50, 51, 52, 53, 54, 55, 56, 57, 58, 31, + /* 90 */ 12, 13, 14, 15, 16, 181, 182, 97, 98, 68, + /* 100 */ 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, + /* 110 */ 97, 98, 147, 100, 101, 102, 103, 104, 105, 106, + /* 120 */ 107, 108, 109, 158, 70, 71, 72, 73, 74, 75, + /* 130 */ 76, 77, 78, 79, 80, 149, 82, 83, 84, 85, + /* 140 */ 86, 87, 160, 144, 162, 99, 31, 161, 162, 145, + /* 150 */ 168, 152, 148, 171, 155, 173, 174, 92, 31, 177, + /* 160 */ 178, 179, 180, 132, 160, 31, 184, 185, 0, 123, + /* 170 */ 124, 125, 126, 127, 145, 60, 175, 114, 196, 12, + /* 180 */ 13, 14, 15, 16, 119, 120, 160, 159, 162, 160, + /* 190 */ 162, 209, 164, 192, 168, 213, 31, 171, 0, 162, + /* 200 */ 174, 164, 173, 177, 178, 179, 180, 39, 179, 175, + /* 210 */ 184, 185, 186, 135, 136, 14, 15, 16, 189, 190, + /* 220 */ 191, 145, 193, 39, 198, 196, 192, 140, 61, 114, + /* 230 */ 204, 205, 19, 160, 97, 162, 160, 39, 209, 3, + /* 240 */ 27, 168, 213, 106, 171, 111, 109, 174, 21, 36, + /* 250 */ 177, 178, 179, 180, 61, 179, 29, 184, 185, 186, + /* 260 */ 173, 68, 160, 66, 162, 189, 190, 191, 150, 193, + /* 270 */ 168, 153, 59, 171, 145, 62, 174, 148, 205, 177, + /* 280 */ 178, 179, 180, 196, 1, 2, 184, 185, 186, 160, + /* 290 */ 160, 144, 162, 145, 12, 13, 209, 195, 168, 207, + /* 300 */ 213, 171, 155, 21, 174, 170, 171, 177, 178, 179, + /* 310 */ 180, 29, 34, 31, 184, 185, 186, 12, 13, 14, + /* 320 */ 149, 201, 40, 161, 162, 195, 21, 12, 13, 14, + /* 330 */ 15, 16, 161, 162, 29, 0, 31, 142, 21, 160, + /* 340 */ 31, 162, 60, 14, 61, 40, 60, 168, 31, 32, + /* 350 */ 171, 65, 173, 174, 12, 13, 177, 178, 179, 145, + /* 360 */ 31, 79, 148, 21, 145, 60, 130, 148, 112, 113, + /* 370 */ 40, 29, 21, 31, 160, 196, 94, 95, 96, 160, + /* 380 */ 29, 149, 40, 176, 79, 50, 12, 13, 209, 54, + /* 390 */ 4, 113, 213, 161, 162, 21, 114, 1, 2, 94, + /* 400 */ 95, 96, 60, 29, 69, 31, 61, 61, 160, 20, + /* 410 */ 162, 18, 23, 68, 68, 22, 168, 24, 25, 171, + /* 420 */ 111, 79, 174, 88, 194, 177, 178, 179, 180, 99, + /* 430 */ 79, 38, 184, 185, 60, 162, 94, 95, 96, 210, + /* 440 */ 160, 197, 162, 31, 145, 94, 95, 96, 168, 0, + /* 450 */ 68, 171, 145, 79, 174, 147, 61, 177, 178, 179, + /* 460 */ 180, 138, 139, 68, 184, 185, 12, 13, 94, 95, + /* 470 */ 96, 147, 12, 13, 14, 21, 160, 31, 162, 61, + /* 480 */ 141, 21, 141, 29, 168, 31, 68, 171, 114, 29, + /* 490 */ 174, 31, 160, 177, 178, 179, 12, 13, 2, 50, + /* 500 */ 31, 115, 31, 54, 31, 21, 122, 114, 12, 13, + /* 510 */ 14, 15, 16, 29, 60, 31, 134, 165, 69, 176, + /* 520 */ 60, 60, 121, 169, 160, 206, 162, 61, 67, 96, + /* 530 */ 214, 215, 168, 79, 68, 171, 172, 88, 174, 79, + /* 540 */ 61, 177, 178, 179, 60, 168, 206, 68, 94, 95, + /* 550 */ 96, 61, 169, 61, 94, 95, 96, 160, 68, 162, + /* 560 */ 68, 129, 168, 79, 203, 168, 128, 202, 171, 117, + /* 570 */ 200, 174, 116, 160, 177, 178, 179, 180, 94, 95, + /* 580 */ 96, 113, 185, 160, 145, 162, 61, 199, 31, 61, + /* 590 */ 175, 168, 110, 68, 171, 172, 68, 174, 187, 160, + /* 600 */ 177, 178, 179, 160, 137, 162, 61, 217, 133, 61, + /* 610 */ 212, 168, 61, 68, 171, 211, 68, 174, 179, 68, + /* 620 */ 177, 178, 179, 60, 131, 160, 169, 162, 189, 190, + /* 630 */ 191, 183, 193, 168, 91, 144, 171, 60, 168, 174, + /* 640 */ 168, 61, 177, 178, 179, 160, 169, 162, 68, 168, + /* 650 */ 153, 208, 166, 168, 160, 160, 171, 172, 160, 174, + /* 660 */ 162, 156, 177, 178, 179, 165, 168, 145, 144, 171, + /* 670 */ 172, 141, 174, 19, 26, 177, 178, 179, 30, 31, + /* 680 */ 215, 27, 146, 35, 2, 37, 151, 33, 151, 0, + /* 690 */ 36, 160, 0, 162, 12, 13, 14, 15, 16, 168, + /* 700 */ 56, 67, 171, 0, 56, 174, 0, 0, 177, 178, + /* 710 */ 179, 63, 64, 59, 0, 160, 62, 162, 0, 0, + /* 720 */ 0, 0, 0, 168, 0, 41, 171, 0, 0, 174, + /* 730 */ 0, 0, 177, 178, 179, 160, 0, 162, 21, 0, + /* 740 */ 0, 93, 88, 168, 90, 60, 171, 21, 19, 174, + /* 750 */ 34, 89, 177, 178, 179, 160, 68, 162, 68, 118, + /* 760 */ 61, 68, 61, 168, 60, 60, 171, 29, 60, 174, + /* 770 */ 68, 61, 177, 178, 179, 160, 61, 162, 67, 118, + /* 780 */ 68, 112, 118, 168, 61, 60, 171, 4, 160, 174, + /* 790 */ 162, 29, 177, 178, 179, 61, 168, 29, 29, 171, + /* 800 */ 68, 29, 174, 61, 67, 177, 178, 179, 67, 29, + /* 810 */ 29, 68, 160, 2, 162, 67, 61, 60, 60, 60, + /* 820 */ 168, 61, 61, 171, 60, 160, 174, 162, 0, 177, + /* 830 */ 178, 179, 34, 168, 99, 60, 171, 92, 160, 174, + /* 840 */ 162, 89, 177, 178, 179, 60, 168, 65, 21, 171, + /* 850 */ 60, 67, 174, 67, 145, 177, 178, 179, 66, 29, + /* 860 */ 160, 61, 162, 29, 60, 29, 61, 60, 168, 160, + /* 870 */ 61, 171, 29, 160, 174, 162, 60, 177, 178, 179, + /* 880 */ 61, 168, 29, 60, 171, 61, 29, 174, 179, 60, + /* 890 */ 177, 178, 179, 160, 81, 162, 81, 188, 189, 190, + /* 900 */ 191, 168, 193, 81, 171, 21, 81, 174, 69, 60, + /* 910 */ 177, 178, 179, 160, 60, 162, 29, 29, 21, 41, + /* 920 */ 40, 168, 29, 29, 171, 29, 0, 174, 29, 29, + /* 930 */ 177, 178, 179, 160, 29, 162, 29, 21, 29, 29, + /* 940 */ 29, 168, 29, 29, 171, 27, 29, 174, 29, 29, + /* 950 */ 177, 178, 179, 29, 29, 34, 0, 29, 28, 0, + /* 960 */ 0, 21, 20, 218, 218, 218, 218, 218, 218, 218, + /* 970 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 980 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 990 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1000 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1010 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1020 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1030 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1040 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1050 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1060 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1070 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1080 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1090 */ 218, 218, 218, 218, 218, 218, 218, 218, 218, 218, + /* 1100 */ 218, 218, 218, }; -#define YY_SHIFT_COUNT (307) +#define YY_SHIFT_COUNT (312) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1020) +#define YY_SHIFT_MAX (960) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 153, 308, 335, 385, 385, 385, 385, 374, 385, 385, - /* 10 */ 139, 451, 476, 444, 451, 451, 451, 451, 451, 451, - /* 20 */ 451, 451, 451, 451, 451, 451, 451, 451, 451, 451, - /* 30 */ 451, 451, 451, 9, 9, 9, 170, 170, 57, 57, - /* 40 */ 74, 66, 125, 125, 48, 150, 66, 57, 57, 66, - /* 50 */ 57, 66, 66, 66, 57, 197, 0, 13, 13, 170, - /* 60 */ 221, 154, 206, 206, 206, 189, 150, 66, 66, 180, - /* 70 */ 59, 465, 78, 490, 117, 198, 279, 307, 256, 307, - /* 80 */ 362, 255, 61, 393, 74, 393, 74, 462, 462, 482, - /* 90 */ 500, 509, 394, 434, 471, 394, 434, 471, 449, 466, - /* 100 */ 475, 477, 484, 482, 565, 494, 472, 478, 489, 566, - /* 110 */ 66, 434, 471, 471, 434, 471, 541, 482, 500, 180, - /* 120 */ 197, 482, 578, 393, 197, 462, 1037, 1037, 1037, 30, - /* 130 */ 212, 135, 1020, 109, 126, 677, 677, 677, 677, 677, - /* 140 */ 677, 677, 338, 436, 31, 224, 199, 199, 199, 199, - /* 150 */ 392, 361, 367, 375, 437, 311, 315, 267, 376, 333, - /* 160 */ 386, 405, 416, 454, 458, 459, 464, 470, 474, 483, - /* 170 */ 492, 497, 414, 658, 663, 667, 671, 607, 597, 680, - /* 180 */ 684, 685, 687, 699, 701, 702, 635, 674, 707, 708, - /* 190 */ 709, 710, 656, 714, 675, 676, 715, 659, 630, 632, - /* 200 */ 655, 661, 605, 665, 669, 666, 678, 679, 682, 681, - /* 210 */ 683, 703, 672, 688, 686, 689, 628, 693, 704, 705, - /* 220 */ 637, 694, 712, 716, 698, 649, 764, 737, 744, 749, - /* 230 */ 750, 751, 752, 780, 690, 721, 726, 731, 733, 738, - /* 240 */ 739, 734, 742, 711, 745, 795, 717, 719, 746, 748, - /* 250 */ 743, 747, 787, 756, 758, 761, 785, 793, 766, 767, - /* 260 */ 798, 771, 772, 805, 781, 782, 812, 786, 788, 815, - /* 270 */ 790, 773, 774, 776, 778, 803, 791, 801, 802, 831, - /* 280 */ 833, 842, 828, 836, 839, 840, 845, 846, 847, 848, - /* 290 */ 850, 844, 852, 853, 854, 855, 856, 858, 859, 861, - /* 300 */ 862, 893, 865, 871, 901, 902, 882, 884, + /* 0 */ 393, 282, 305, 342, 342, 342, 342, 374, 342, 342, + /* 10 */ 115, 454, 484, 460, 454, 454, 454, 454, 454, 454, + /* 20 */ 454, 454, 454, 454, 454, 454, 454, 454, 454, 454, + /* 30 */ 454, 454, 454, 7, 7, 7, 351, 351, 40, 40, + /* 40 */ 20, 58, 127, 127, 63, 165, 58, 40, 40, 58, + /* 50 */ 40, 58, 58, 58, 40, 184, 0, 13, 13, 351, + /* 60 */ 317, 168, 134, 134, 134, 198, 165, 58, 58, 197, + /* 70 */ 54, 648, 78, 46, 65, 227, 309, 256, 278, 256, + /* 80 */ 329, 236, 386, 412, 20, 412, 20, 446, 446, 469, + /* 90 */ 471, 473, 384, 401, 433, 384, 401, 433, 432, 438, + /* 100 */ 452, 456, 468, 469, 557, 482, 467, 475, 493, 563, + /* 110 */ 58, 401, 433, 433, 401, 433, 543, 469, 471, 197, + /* 120 */ 184, 469, 577, 412, 184, 446, 963, 963, 963, 30, + /* 130 */ 654, 496, 682, 167, 213, 315, 315, 315, 315, 315, + /* 140 */ 315, 315, 335, 449, 283, 137, 201, 201, 201, 201, + /* 150 */ 389, 193, 345, 346, 396, 323, 31, 382, 395, 330, + /* 160 */ 418, 461, 466, 479, 490, 492, 525, 528, 545, 548, + /* 170 */ 551, 580, 286, 689, 692, 703, 706, 644, 634, 707, + /* 180 */ 714, 718, 719, 720, 721, 722, 724, 684, 727, 728, + /* 190 */ 730, 731, 736, 717, 739, 726, 729, 740, 685, 716, + /* 200 */ 662, 688, 690, 641, 699, 693, 701, 704, 705, 710, + /* 210 */ 708, 715, 738, 702, 711, 725, 712, 661, 723, 734, + /* 220 */ 737, 669, 732, 741, 742, 743, 664, 783, 762, 768, + /* 230 */ 769, 772, 780, 781, 811, 735, 748, 755, 757, 758, + /* 240 */ 760, 761, 759, 764, 745, 775, 828, 798, 752, 785, + /* 250 */ 782, 784, 786, 827, 790, 792, 800, 830, 834, 804, + /* 260 */ 805, 836, 807, 809, 843, 816, 819, 853, 823, 824, + /* 270 */ 857, 829, 813, 815, 822, 825, 884, 839, 849, 854, + /* 280 */ 887, 888, 897, 878, 880, 893, 894, 896, 899, 900, + /* 290 */ 905, 907, 916, 909, 910, 911, 913, 914, 917, 919, + /* 300 */ 920, 924, 926, 925, 918, 921, 956, 928, 930, 959, + /* 310 */ 960, 940, 942, }; #define YY_REDUCE_COUNT (128) -#define YY_REDUCE_MIN (-162) -#define YY_REDUCE_MAX (832) +#define YY_REDUCE_MIN (-182) +#define YY_REDUCE_MAX (773) static const short yy_reduce_ofst[] = { - /* 0 */ 152, -14, 26, 72, 101, 129, 158, 202, -115, 277, - /* 10 */ 29, 334, 406, 428, 450, 473, 493, 506, 528, 553, - /* 20 */ 573, 595, 617, 640, 660, 673, 695, 720, 740, 762, - /* 30 */ 784, 807, 827, 372, 569, 832, -155, -148, -138, -137, - /* 40 */ -114, -121, -157, -112, -28, -116, -125, -99, 114, 64, - /* 50 */ 123, 133, 193, 149, 145, 23, -124, -124, -124, -162, - /* 60 */ -54, 49, 171, 179, 185, 172, 213, 231, 248, 151, - /* 70 */ -159, -120, 60, 77, 87, 177, 183, 134, 134, 134, - /* 80 */ 194, 186, 226, 264, 325, 341, 340, 351, 359, 346, - /* 90 */ 371, 368, 347, 387, 401, 369, 404, 408, 378, 377, - /* 100 */ 382, 388, 134, 435, 426, 421, 402, 391, 412, 443, - /* 110 */ 194, 461, 463, 468, 469, 480, 479, 486, 491, 481, - /* 120 */ 495, 498, 487, 504, 496, 501, 503, 508, 511, + /* 0 */ 87, -18, 26, 73, -129, 102, 130, 179, 248, 280, + /* 10 */ 29, 316, 397, 364, 423, 443, 465, 485, 498, 531, + /* 20 */ 555, 575, 595, 615, 628, 652, 665, 678, 700, 713, + /* 30 */ 733, 753, 773, 709, 76, 439, -157, -150, -140, -139, + /* 40 */ -111, -127, -159, -116, -155, -107, -14, 4, 129, -94, + /* 50 */ 214, 171, 28, 232, 219, -1, -86, -86, -86, -164, + /* 60 */ -120, -35, -123, 1, 34, 147, 135, 162, 37, 118, + /* 70 */ -161, 148, -182, 92, 120, 195, 207, 230, 230, 230, + /* 80 */ 273, 229, 244, 299, 308, 307, 324, 339, 341, 332, + /* 90 */ 352, 343, 319, 354, 377, 340, 383, 394, 361, 365, + /* 100 */ 370, 388, 230, 413, 415, 411, 390, 398, 404, 448, + /* 110 */ 273, 457, 470, 472, 477, 481, 486, 494, 500, 497, + /* 120 */ 491, 495, 505, 522, 524, 530, 535, 537, 536, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 10 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 20 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 30 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 40 */ 744, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 50 */ 721, 721, 721, 721, 721, 742, 721, 889, 721, 721, - /* 60 */ 721, 744, 900, 900, 900, 742, 721, 721, 721, 807, - /* 70 */ 721, 721, 964, 721, 924, 721, 916, 892, 906, 893, - /* 80 */ 721, 949, 909, 721, 744, 721, 744, 721, 721, 721, - /* 90 */ 721, 721, 931, 929, 721, 931, 929, 721, 943, 939, - /* 100 */ 922, 920, 906, 721, 721, 721, 967, 955, 951, 721, - /* 110 */ 721, 929, 721, 721, 929, 721, 820, 721, 721, 721, - /* 120 */ 742, 721, 776, 721, 742, 721, 810, 810, 745, 721, - /* 130 */ 721, 721, 721, 721, 721, 861, 942, 941, 860, 866, - /* 140 */ 865, 864, 721, 721, 721, 721, 855, 856, 854, 853, - /* 150 */ 721, 721, 721, 721, 890, 721, 952, 956, 721, 721, - /* 160 */ 721, 841, 721, 721, 721, 721, 721, 721, 721, 721, - /* 170 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 180 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 190 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 200 */ 913, 923, 721, 721, 721, 721, 721, 721, 721, 721, - /* 210 */ 721, 721, 721, 841, 721, 940, 721, 899, 895, 721, - /* 220 */ 721, 891, 721, 721, 950, 721, 721, 721, 721, 721, - /* 230 */ 721, 721, 721, 885, 721, 721, 721, 721, 721, 721, - /* 240 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 250 */ 840, 721, 721, 721, 721, 721, 721, 721, 804, 721, - /* 260 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 270 */ 721, 789, 787, 786, 785, 721, 782, 721, 721, 721, - /* 280 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 290 */ 721, 721, 721, 721, 721, 721, 721, 721, 721, 721, - /* 300 */ 721, 721, 721, 721, 721, 721, 721, 721, + /* 0 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 10 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 20 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 30 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 40 */ 753, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 50 */ 728, 728, 728, 728, 728, 751, 728, 898, 728, 728, + /* 60 */ 728, 753, 909, 909, 909, 751, 728, 728, 728, 816, + /* 70 */ 728, 728, 973, 728, 933, 728, 925, 901, 915, 902, + /* 80 */ 728, 958, 918, 728, 753, 728, 753, 728, 728, 728, + /* 90 */ 728, 728, 940, 938, 728, 940, 938, 728, 952, 948, + /* 100 */ 931, 929, 915, 728, 728, 728, 976, 964, 960, 728, + /* 110 */ 728, 938, 728, 728, 938, 728, 829, 728, 728, 728, + /* 120 */ 751, 728, 785, 728, 751, 728, 819, 819, 754, 728, + /* 130 */ 728, 728, 728, 728, 728, 870, 951, 950, 869, 875, + /* 140 */ 874, 873, 728, 728, 728, 728, 864, 865, 863, 862, + /* 150 */ 728, 728, 728, 728, 899, 728, 961, 965, 728, 728, + /* 160 */ 728, 850, 728, 728, 728, 728, 728, 728, 728, 728, + /* 170 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 180 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 190 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 200 */ 728, 922, 932, 728, 728, 728, 728, 728, 728, 728, + /* 210 */ 728, 728, 728, 728, 850, 728, 949, 728, 908, 904, + /* 220 */ 728, 728, 900, 728, 728, 959, 728, 728, 728, 728, + /* 230 */ 728, 728, 728, 728, 894, 728, 728, 728, 728, 728, + /* 240 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 250 */ 728, 849, 728, 728, 728, 728, 728, 728, 728, 813, + /* 260 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 270 */ 728, 728, 798, 796, 795, 794, 728, 791, 728, 728, + /* 280 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 290 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 300 */ 728, 728, 728, 728, 728, 728, 728, 728, 728, 728, + /* 310 */ 728, 728, 728, }; /********** End of lemon-generated parsing tables *****************************/ @@ -657,189 +646,191 @@ static const char *const yyTokenName[] = { /* 30 */ "DNODES", /* 31 */ "NK_ID", /* 32 */ "NK_IPTOKEN", - /* 33 */ "DATABASE", - /* 34 */ "DATABASES", - /* 35 */ "USE", - /* 36 */ "IF", - /* 37 */ "NOT", - /* 38 */ "EXISTS", - /* 39 */ "BLOCKS", - /* 40 */ "CACHE", - /* 41 */ "CACHELAST", - /* 42 */ "COMP", - /* 43 */ "DAYS", - /* 44 */ "FSYNC", - /* 45 */ "MAXROWS", - /* 46 */ "MINROWS", - /* 47 */ "KEEP", - /* 48 */ "PRECISION", - /* 49 */ "QUORUM", - /* 50 */ "REPLICA", - /* 51 */ "TTL", - /* 52 */ "WAL", - /* 53 */ "VGROUPS", - /* 54 */ "SINGLE_STABLE", - /* 55 */ "STREAM_MODE", - /* 56 */ "TABLE", - /* 57 */ "NK_LP", - /* 58 */ "NK_RP", - /* 59 */ "STABLE", - /* 60 */ "TABLES", - /* 61 */ "STABLES", - /* 62 */ "USING", - /* 63 */ "TAGS", - /* 64 */ "NK_DOT", - /* 65 */ "NK_COMMA", - /* 66 */ "COMMENT", - /* 67 */ "BOOL", - /* 68 */ "TINYINT", - /* 69 */ "SMALLINT", - /* 70 */ "INT", - /* 71 */ "INTEGER", - /* 72 */ "BIGINT", - /* 73 */ "FLOAT", - /* 74 */ "DOUBLE", - /* 75 */ "BINARY", - /* 76 */ "TIMESTAMP", - /* 77 */ "NCHAR", - /* 78 */ "UNSIGNED", - /* 79 */ "JSON", - /* 80 */ "VARCHAR", - /* 81 */ "MEDIUMBLOB", - /* 82 */ "BLOB", - /* 83 */ "VARBINARY", - /* 84 */ "DECIMAL", - /* 85 */ "SMA", - /* 86 */ "INDEX", - /* 87 */ "ON", - /* 88 */ "FULLTEXT", - /* 89 */ "FUNCTION", - /* 90 */ "INTERVAL", - /* 91 */ "MNODES", - /* 92 */ "NK_FLOAT", - /* 93 */ "NK_BOOL", - /* 94 */ "NK_VARIABLE", - /* 95 */ "BETWEEN", - /* 96 */ "IS", - /* 97 */ "NULL", - /* 98 */ "NK_LT", - /* 99 */ "NK_GT", - /* 100 */ "NK_LE", - /* 101 */ "NK_GE", - /* 102 */ "NK_NE", - /* 103 */ "NK_EQ", - /* 104 */ "LIKE", - /* 105 */ "MATCH", - /* 106 */ "NMATCH", - /* 107 */ "IN", - /* 108 */ "FROM", - /* 109 */ "AS", - /* 110 */ "JOIN", - /* 111 */ "INNER", - /* 112 */ "SELECT", - /* 113 */ "DISTINCT", - /* 114 */ "WHERE", - /* 115 */ "PARTITION", - /* 116 */ "BY", - /* 117 */ "SESSION", - /* 118 */ "STATE_WINDOW", - /* 119 */ "SLIDING", - /* 120 */ "FILL", - /* 121 */ "VALUE", - /* 122 */ "NONE", - /* 123 */ "PREV", - /* 124 */ "LINEAR", - /* 125 */ "NEXT", - /* 126 */ "GROUP", - /* 127 */ "HAVING", - /* 128 */ "ORDER", - /* 129 */ "SLIMIT", - /* 130 */ "SOFFSET", - /* 131 */ "LIMIT", - /* 132 */ "OFFSET", - /* 133 */ "ASC", - /* 134 */ "DESC", - /* 135 */ "NULLS", - /* 136 */ "FIRST", - /* 137 */ "LAST", - /* 138 */ "cmd", - /* 139 */ "user_name", - /* 140 */ "dnode_endpoint", - /* 141 */ "dnode_host_name", - /* 142 */ "not_exists_opt", - /* 143 */ "db_name", - /* 144 */ "db_options", - /* 145 */ "exists_opt", - /* 146 */ "full_table_name", - /* 147 */ "column_def_list", - /* 148 */ "tags_def_opt", - /* 149 */ "table_options", - /* 150 */ "multi_create_clause", - /* 151 */ "tags_def", - /* 152 */ "multi_drop_clause", - /* 153 */ "create_subtable_clause", - /* 154 */ "specific_tags_opt", - /* 155 */ "literal_list", - /* 156 */ "drop_table_clause", - /* 157 */ "col_name_list", - /* 158 */ "table_name", - /* 159 */ "column_def", - /* 160 */ "column_name", - /* 161 */ "type_name", - /* 162 */ "col_name", - /* 163 */ "index_name", - /* 164 */ "index_options", - /* 165 */ "func_list", - /* 166 */ "duration_literal", - /* 167 */ "sliding_opt", - /* 168 */ "func", - /* 169 */ "function_name", - /* 170 */ "expression_list", - /* 171 */ "query_expression", - /* 172 */ "literal", - /* 173 */ "table_alias", - /* 174 */ "column_alias", - /* 175 */ "expression", - /* 176 */ "column_reference", - /* 177 */ "subquery", - /* 178 */ "predicate", - /* 179 */ "compare_op", - /* 180 */ "in_op", - /* 181 */ "in_predicate_value", - /* 182 */ "boolean_value_expression", - /* 183 */ "boolean_primary", - /* 184 */ "common_expression", - /* 185 */ "from_clause", - /* 186 */ "table_reference_list", - /* 187 */ "table_reference", - /* 188 */ "table_primary", - /* 189 */ "joined_table", - /* 190 */ "alias_opt", - /* 191 */ "parenthesized_joined_table", - /* 192 */ "join_type", - /* 193 */ "search_condition", - /* 194 */ "query_specification", - /* 195 */ "set_quantifier_opt", - /* 196 */ "select_list", - /* 197 */ "where_clause_opt", - /* 198 */ "partition_by_clause_opt", - /* 199 */ "twindow_clause_opt", - /* 200 */ "group_by_clause_opt", - /* 201 */ "having_clause_opt", - /* 202 */ "select_sublist", - /* 203 */ "select_item", - /* 204 */ "fill_opt", - /* 205 */ "fill_mode", - /* 206 */ "group_by_list", - /* 207 */ "query_expression_body", - /* 208 */ "order_by_clause_opt", - /* 209 */ "slimit_clause_opt", - /* 210 */ "limit_clause_opt", - /* 211 */ "query_primary", - /* 212 */ "sort_specification_list", - /* 213 */ "sort_specification", - /* 214 */ "ordering_specification_opt", - /* 215 */ "null_ordering_opt", + /* 33 */ "QNODE", + /* 34 */ "ON", + /* 35 */ "QNODES", + /* 36 */ "DATABASE", + /* 37 */ "DATABASES", + /* 38 */ "USE", + /* 39 */ "IF", + /* 40 */ "NOT", + /* 41 */ "EXISTS", + /* 42 */ "BLOCKS", + /* 43 */ "CACHE", + /* 44 */ "CACHELAST", + /* 45 */ "COMP", + /* 46 */ "DAYS", + /* 47 */ "FSYNC", + /* 48 */ "MAXROWS", + /* 49 */ "MINROWS", + /* 50 */ "KEEP", + /* 51 */ "PRECISION", + /* 52 */ "QUORUM", + /* 53 */ "REPLICA", + /* 54 */ "TTL", + /* 55 */ "WAL", + /* 56 */ "VGROUPS", + /* 57 */ "SINGLE_STABLE", + /* 58 */ "STREAM_MODE", + /* 59 */ "TABLE", + /* 60 */ "NK_LP", + /* 61 */ "NK_RP", + /* 62 */ "STABLE", + /* 63 */ "TABLES", + /* 64 */ "STABLES", + /* 65 */ "USING", + /* 66 */ "TAGS", + /* 67 */ "NK_DOT", + /* 68 */ "NK_COMMA", + /* 69 */ "COMMENT", + /* 70 */ "BOOL", + /* 71 */ "TINYINT", + /* 72 */ "SMALLINT", + /* 73 */ "INT", + /* 74 */ "INTEGER", + /* 75 */ "BIGINT", + /* 76 */ "FLOAT", + /* 77 */ "DOUBLE", + /* 78 */ "BINARY", + /* 79 */ "TIMESTAMP", + /* 80 */ "NCHAR", + /* 81 */ "UNSIGNED", + /* 82 */ "JSON", + /* 83 */ "VARCHAR", + /* 84 */ "MEDIUMBLOB", + /* 85 */ "BLOB", + /* 86 */ "VARBINARY", + /* 87 */ "DECIMAL", + /* 88 */ "SMA", + /* 89 */ "INDEX", + /* 90 */ "FULLTEXT", + /* 91 */ "FUNCTION", + /* 92 */ "INTERVAL", + /* 93 */ "MNODES", + /* 94 */ "NK_FLOAT", + /* 95 */ "NK_BOOL", + /* 96 */ "NK_VARIABLE", + /* 97 */ "BETWEEN", + /* 98 */ "IS", + /* 99 */ "NULL", + /* 100 */ "NK_LT", + /* 101 */ "NK_GT", + /* 102 */ "NK_LE", + /* 103 */ "NK_GE", + /* 104 */ "NK_NE", + /* 105 */ "NK_EQ", + /* 106 */ "LIKE", + /* 107 */ "MATCH", + /* 108 */ "NMATCH", + /* 109 */ "IN", + /* 110 */ "FROM", + /* 111 */ "AS", + /* 112 */ "JOIN", + /* 113 */ "INNER", + /* 114 */ "SELECT", + /* 115 */ "DISTINCT", + /* 116 */ "WHERE", + /* 117 */ "PARTITION", + /* 118 */ "BY", + /* 119 */ "SESSION", + /* 120 */ "STATE_WINDOW", + /* 121 */ "SLIDING", + /* 122 */ "FILL", + /* 123 */ "VALUE", + /* 124 */ "NONE", + /* 125 */ "PREV", + /* 126 */ "LINEAR", + /* 127 */ "NEXT", + /* 128 */ "GROUP", + /* 129 */ "HAVING", + /* 130 */ "ORDER", + /* 131 */ "SLIMIT", + /* 132 */ "SOFFSET", + /* 133 */ "LIMIT", + /* 134 */ "OFFSET", + /* 135 */ "ASC", + /* 136 */ "DESC", + /* 137 */ "NULLS", + /* 138 */ "FIRST", + /* 139 */ "LAST", + /* 140 */ "cmd", + /* 141 */ "user_name", + /* 142 */ "dnode_endpoint", + /* 143 */ "dnode_host_name", + /* 144 */ "not_exists_opt", + /* 145 */ "db_name", + /* 146 */ "db_options", + /* 147 */ "exists_opt", + /* 148 */ "full_table_name", + /* 149 */ "column_def_list", + /* 150 */ "tags_def_opt", + /* 151 */ "table_options", + /* 152 */ "multi_create_clause", + /* 153 */ "tags_def", + /* 154 */ "multi_drop_clause", + /* 155 */ "create_subtable_clause", + /* 156 */ "specific_tags_opt", + /* 157 */ "literal_list", + /* 158 */ "drop_table_clause", + /* 159 */ "col_name_list", + /* 160 */ "table_name", + /* 161 */ "column_def", + /* 162 */ "column_name", + /* 163 */ "type_name", + /* 164 */ "col_name", + /* 165 */ "index_name", + /* 166 */ "index_options", + /* 167 */ "func_list", + /* 168 */ "duration_literal", + /* 169 */ "sliding_opt", + /* 170 */ "func", + /* 171 */ "function_name", + /* 172 */ "expression_list", + /* 173 */ "query_expression", + /* 174 */ "literal", + /* 175 */ "table_alias", + /* 176 */ "column_alias", + /* 177 */ "expression", + /* 178 */ "column_reference", + /* 179 */ "subquery", + /* 180 */ "predicate", + /* 181 */ "compare_op", + /* 182 */ "in_op", + /* 183 */ "in_predicate_value", + /* 184 */ "boolean_value_expression", + /* 185 */ "boolean_primary", + /* 186 */ "common_expression", + /* 187 */ "from_clause", + /* 188 */ "table_reference_list", + /* 189 */ "table_reference", + /* 190 */ "table_primary", + /* 191 */ "joined_table", + /* 192 */ "alias_opt", + /* 193 */ "parenthesized_joined_table", + /* 194 */ "join_type", + /* 195 */ "search_condition", + /* 196 */ "query_specification", + /* 197 */ "set_quantifier_opt", + /* 198 */ "select_list", + /* 199 */ "where_clause_opt", + /* 200 */ "partition_by_clause_opt", + /* 201 */ "twindow_clause_opt", + /* 202 */ "group_by_clause_opt", + /* 203 */ "having_clause_opt", + /* 204 */ "select_sublist", + /* 205 */ "select_item", + /* 206 */ "fill_opt", + /* 207 */ "fill_mode", + /* 208 */ "group_by_list", + /* 209 */ "query_expression_body", + /* 210 */ "order_by_clause_opt", + /* 211 */ "slimit_clause_opt", + /* 212 */ "limit_clause_opt", + /* 213 */ "query_primary", + /* 214 */ "sort_specification_list", + /* 215 */ "sort_specification", + /* 216 */ "ordering_specification_opt", + /* 217 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -860,239 +851,241 @@ static const char *const yyRuleName[] = { /* 10 */ "dnode_endpoint ::= NK_STRING", /* 11 */ "dnode_host_name ::= NK_ID", /* 12 */ "dnode_host_name ::= NK_IPTOKEN", - /* 13 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", - /* 14 */ "cmd ::= DROP DATABASE exists_opt db_name", - /* 15 */ "cmd ::= SHOW DATABASES", - /* 16 */ "cmd ::= USE db_name", - /* 17 */ "not_exists_opt ::= IF NOT EXISTS", - /* 18 */ "not_exists_opt ::=", - /* 19 */ "exists_opt ::= IF EXISTS", - /* 20 */ "exists_opt ::=", - /* 21 */ "db_options ::=", - /* 22 */ "db_options ::= db_options BLOCKS NK_INTEGER", - /* 23 */ "db_options ::= db_options CACHE NK_INTEGER", - /* 24 */ "db_options ::= db_options CACHELAST NK_INTEGER", - /* 25 */ "db_options ::= db_options COMP NK_INTEGER", - /* 26 */ "db_options ::= db_options DAYS NK_INTEGER", - /* 27 */ "db_options ::= db_options FSYNC NK_INTEGER", - /* 28 */ "db_options ::= db_options MAXROWS NK_INTEGER", - /* 29 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 30 */ "db_options ::= db_options KEEP NK_INTEGER", - /* 31 */ "db_options ::= db_options PRECISION NK_STRING", - /* 32 */ "db_options ::= db_options QUORUM NK_INTEGER", - /* 33 */ "db_options ::= db_options REPLICA NK_INTEGER", - /* 34 */ "db_options ::= db_options TTL NK_INTEGER", - /* 35 */ "db_options ::= db_options WAL NK_INTEGER", - /* 36 */ "db_options ::= db_options VGROUPS NK_INTEGER", - /* 37 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", - /* 38 */ "db_options ::= db_options STREAM_MODE NK_INTEGER", - /* 39 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 40 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 41 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 42 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 43 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 44 */ "cmd ::= SHOW TABLES", - /* 45 */ "cmd ::= SHOW STABLES", - /* 46 */ "multi_create_clause ::= create_subtable_clause", - /* 47 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 48 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", - /* 49 */ "multi_drop_clause ::= drop_table_clause", - /* 50 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 51 */ "drop_table_clause ::= exists_opt full_table_name", - /* 52 */ "specific_tags_opt ::=", - /* 53 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", - /* 54 */ "full_table_name ::= table_name", - /* 55 */ "full_table_name ::= db_name NK_DOT table_name", - /* 56 */ "column_def_list ::= column_def", - /* 57 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 58 */ "column_def ::= column_name type_name", - /* 59 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 60 */ "type_name ::= BOOL", - /* 61 */ "type_name ::= TINYINT", - /* 62 */ "type_name ::= SMALLINT", - /* 63 */ "type_name ::= INT", - /* 64 */ "type_name ::= INTEGER", - /* 65 */ "type_name ::= BIGINT", - /* 66 */ "type_name ::= FLOAT", - /* 67 */ "type_name ::= DOUBLE", - /* 68 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 69 */ "type_name ::= TIMESTAMP", - /* 70 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 71 */ "type_name ::= TINYINT UNSIGNED", - /* 72 */ "type_name ::= SMALLINT UNSIGNED", - /* 73 */ "type_name ::= INT UNSIGNED", - /* 74 */ "type_name ::= BIGINT UNSIGNED", - /* 75 */ "type_name ::= JSON", - /* 76 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 77 */ "type_name ::= MEDIUMBLOB", - /* 78 */ "type_name ::= BLOB", - /* 79 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 80 */ "type_name ::= DECIMAL", - /* 81 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 82 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 83 */ "tags_def_opt ::=", - /* 84 */ "tags_def_opt ::= tags_def", - /* 85 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 86 */ "table_options ::=", - /* 87 */ "table_options ::= table_options COMMENT NK_STRING", - /* 88 */ "table_options ::= table_options KEEP NK_INTEGER", - /* 89 */ "table_options ::= table_options TTL NK_INTEGER", - /* 90 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 91 */ "col_name_list ::= col_name", - /* 92 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 93 */ "col_name ::= column_name", - /* 94 */ "cmd ::= CREATE SMA INDEX index_name ON table_name index_options", - /* 95 */ "cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP", - /* 96 */ "index_options ::=", - /* 97 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 98 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 99 */ "func_list ::= func", - /* 100 */ "func_list ::= func_list NK_COMMA func", - /* 101 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 102 */ "cmd ::= SHOW VGROUPS", - /* 103 */ "cmd ::= SHOW db_name NK_DOT VGROUPS", - /* 104 */ "cmd ::= SHOW MNODES", - /* 105 */ "cmd ::= query_expression", - /* 106 */ "literal ::= NK_INTEGER", - /* 107 */ "literal ::= NK_FLOAT", - /* 108 */ "literal ::= NK_STRING", - /* 109 */ "literal ::= NK_BOOL", - /* 110 */ "literal ::= TIMESTAMP NK_STRING", - /* 111 */ "literal ::= duration_literal", - /* 112 */ "duration_literal ::= NK_VARIABLE", - /* 113 */ "literal_list ::= literal", - /* 114 */ "literal_list ::= literal_list NK_COMMA literal", - /* 115 */ "db_name ::= NK_ID", - /* 116 */ "table_name ::= NK_ID", - /* 117 */ "column_name ::= NK_ID", - /* 118 */ "function_name ::= NK_ID", - /* 119 */ "table_alias ::= NK_ID", - /* 120 */ "column_alias ::= NK_ID", - /* 121 */ "user_name ::= NK_ID", - /* 122 */ "index_name ::= NK_ID", - /* 123 */ "expression ::= literal", - /* 124 */ "expression ::= column_reference", - /* 125 */ "expression ::= function_name NK_LP expression_list NK_RP", - /* 126 */ "expression ::= function_name NK_LP NK_STAR NK_RP", - /* 127 */ "expression ::= subquery", - /* 128 */ "expression ::= NK_LP expression NK_RP", - /* 129 */ "expression ::= NK_PLUS expression", - /* 130 */ "expression ::= NK_MINUS expression", - /* 131 */ "expression ::= expression NK_PLUS expression", - /* 132 */ "expression ::= expression NK_MINUS expression", - /* 133 */ "expression ::= expression NK_STAR expression", - /* 134 */ "expression ::= expression NK_SLASH expression", - /* 135 */ "expression ::= expression NK_REM expression", - /* 136 */ "expression_list ::= expression", - /* 137 */ "expression_list ::= expression_list NK_COMMA expression", - /* 138 */ "column_reference ::= column_name", - /* 139 */ "column_reference ::= table_name NK_DOT column_name", - /* 140 */ "predicate ::= expression compare_op expression", - /* 141 */ "predicate ::= expression BETWEEN expression AND expression", - /* 142 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 143 */ "predicate ::= expression IS NULL", - /* 144 */ "predicate ::= expression IS NOT NULL", - /* 145 */ "predicate ::= expression in_op in_predicate_value", - /* 146 */ "compare_op ::= NK_LT", - /* 147 */ "compare_op ::= NK_GT", - /* 148 */ "compare_op ::= NK_LE", - /* 149 */ "compare_op ::= NK_GE", - /* 150 */ "compare_op ::= NK_NE", - /* 151 */ "compare_op ::= NK_EQ", - /* 152 */ "compare_op ::= LIKE", - /* 153 */ "compare_op ::= NOT LIKE", - /* 154 */ "compare_op ::= MATCH", - /* 155 */ "compare_op ::= NMATCH", - /* 156 */ "in_op ::= IN", - /* 157 */ "in_op ::= NOT IN", - /* 158 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 159 */ "boolean_value_expression ::= boolean_primary", - /* 160 */ "boolean_value_expression ::= NOT boolean_primary", - /* 161 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 162 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 163 */ "boolean_primary ::= predicate", - /* 164 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 165 */ "common_expression ::= expression", - /* 166 */ "common_expression ::= boolean_value_expression", - /* 167 */ "from_clause ::= FROM table_reference_list", - /* 168 */ "table_reference_list ::= table_reference", - /* 169 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 170 */ "table_reference ::= table_primary", - /* 171 */ "table_reference ::= joined_table", - /* 172 */ "table_primary ::= table_name alias_opt", - /* 173 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 174 */ "table_primary ::= subquery alias_opt", - /* 175 */ "table_primary ::= parenthesized_joined_table", - /* 176 */ "alias_opt ::=", - /* 177 */ "alias_opt ::= table_alias", - /* 178 */ "alias_opt ::= AS table_alias", - /* 179 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 180 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 181 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 182 */ "join_type ::=", - /* 183 */ "join_type ::= INNER", - /* 184 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 185 */ "set_quantifier_opt ::=", - /* 186 */ "set_quantifier_opt ::= DISTINCT", - /* 187 */ "set_quantifier_opt ::= ALL", - /* 188 */ "select_list ::= NK_STAR", - /* 189 */ "select_list ::= select_sublist", - /* 190 */ "select_sublist ::= select_item", - /* 191 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 192 */ "select_item ::= common_expression", - /* 193 */ "select_item ::= common_expression column_alias", - /* 194 */ "select_item ::= common_expression AS column_alias", - /* 195 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 196 */ "where_clause_opt ::=", - /* 197 */ "where_clause_opt ::= WHERE search_condition", - /* 198 */ "partition_by_clause_opt ::=", - /* 199 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 200 */ "twindow_clause_opt ::=", - /* 201 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP", - /* 202 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", - /* 203 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 204 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 205 */ "sliding_opt ::=", - /* 206 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 207 */ "fill_opt ::=", - /* 208 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 209 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 210 */ "fill_mode ::= NONE", - /* 211 */ "fill_mode ::= PREV", - /* 212 */ "fill_mode ::= NULL", - /* 213 */ "fill_mode ::= LINEAR", - /* 214 */ "fill_mode ::= NEXT", - /* 215 */ "group_by_clause_opt ::=", - /* 216 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 217 */ "group_by_list ::= expression", - /* 218 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 219 */ "having_clause_opt ::=", - /* 220 */ "having_clause_opt ::= HAVING search_condition", - /* 221 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 222 */ "query_expression_body ::= query_primary", - /* 223 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 224 */ "query_primary ::= query_specification", - /* 225 */ "order_by_clause_opt ::=", - /* 226 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 227 */ "slimit_clause_opt ::=", - /* 228 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 229 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 230 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 231 */ "limit_clause_opt ::=", - /* 232 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 233 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 234 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 235 */ "subquery ::= NK_LP query_expression NK_RP", - /* 236 */ "search_condition ::= common_expression", - /* 237 */ "sort_specification_list ::= sort_specification", - /* 238 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 239 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 240 */ "ordering_specification_opt ::=", - /* 241 */ "ordering_specification_opt ::= ASC", - /* 242 */ "ordering_specification_opt ::= DESC", - /* 243 */ "null_ordering_opt ::=", - /* 244 */ "null_ordering_opt ::= NULLS FIRST", - /* 245 */ "null_ordering_opt ::= NULLS LAST", + /* 13 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", + /* 14 */ "cmd ::= SHOW QNODES", + /* 15 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", + /* 16 */ "cmd ::= DROP DATABASE exists_opt db_name", + /* 17 */ "cmd ::= SHOW DATABASES", + /* 18 */ "cmd ::= USE db_name", + /* 19 */ "not_exists_opt ::= IF NOT EXISTS", + /* 20 */ "not_exists_opt ::=", + /* 21 */ "exists_opt ::= IF EXISTS", + /* 22 */ "exists_opt ::=", + /* 23 */ "db_options ::=", + /* 24 */ "db_options ::= db_options BLOCKS NK_INTEGER", + /* 25 */ "db_options ::= db_options CACHE NK_INTEGER", + /* 26 */ "db_options ::= db_options CACHELAST NK_INTEGER", + /* 27 */ "db_options ::= db_options COMP NK_INTEGER", + /* 28 */ "db_options ::= db_options DAYS NK_INTEGER", + /* 29 */ "db_options ::= db_options FSYNC NK_INTEGER", + /* 30 */ "db_options ::= db_options MAXROWS NK_INTEGER", + /* 31 */ "db_options ::= db_options MINROWS NK_INTEGER", + /* 32 */ "db_options ::= db_options KEEP NK_INTEGER", + /* 33 */ "db_options ::= db_options PRECISION NK_STRING", + /* 34 */ "db_options ::= db_options QUORUM NK_INTEGER", + /* 35 */ "db_options ::= db_options REPLICA NK_INTEGER", + /* 36 */ "db_options ::= db_options TTL NK_INTEGER", + /* 37 */ "db_options ::= db_options WAL NK_INTEGER", + /* 38 */ "db_options ::= db_options VGROUPS NK_INTEGER", + /* 39 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", + /* 40 */ "db_options ::= db_options STREAM_MODE NK_INTEGER", + /* 41 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 42 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 43 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 44 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 45 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 46 */ "cmd ::= SHOW TABLES", + /* 47 */ "cmd ::= SHOW STABLES", + /* 48 */ "multi_create_clause ::= create_subtable_clause", + /* 49 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 50 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", + /* 51 */ "multi_drop_clause ::= drop_table_clause", + /* 52 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 53 */ "drop_table_clause ::= exists_opt full_table_name", + /* 54 */ "specific_tags_opt ::=", + /* 55 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 56 */ "full_table_name ::= table_name", + /* 57 */ "full_table_name ::= db_name NK_DOT table_name", + /* 58 */ "column_def_list ::= column_def", + /* 59 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 60 */ "column_def ::= column_name type_name", + /* 61 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 62 */ "type_name ::= BOOL", + /* 63 */ "type_name ::= TINYINT", + /* 64 */ "type_name ::= SMALLINT", + /* 65 */ "type_name ::= INT", + /* 66 */ "type_name ::= INTEGER", + /* 67 */ "type_name ::= BIGINT", + /* 68 */ "type_name ::= FLOAT", + /* 69 */ "type_name ::= DOUBLE", + /* 70 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 71 */ "type_name ::= TIMESTAMP", + /* 72 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 73 */ "type_name ::= TINYINT UNSIGNED", + /* 74 */ "type_name ::= SMALLINT UNSIGNED", + /* 75 */ "type_name ::= INT UNSIGNED", + /* 76 */ "type_name ::= BIGINT UNSIGNED", + /* 77 */ "type_name ::= JSON", + /* 78 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 79 */ "type_name ::= MEDIUMBLOB", + /* 80 */ "type_name ::= BLOB", + /* 81 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 82 */ "type_name ::= DECIMAL", + /* 83 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 84 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 85 */ "tags_def_opt ::=", + /* 86 */ "tags_def_opt ::= tags_def", + /* 87 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 88 */ "table_options ::=", + /* 89 */ "table_options ::= table_options COMMENT NK_STRING", + /* 90 */ "table_options ::= table_options KEEP NK_INTEGER", + /* 91 */ "table_options ::= table_options TTL NK_INTEGER", + /* 92 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 93 */ "col_name_list ::= col_name", + /* 94 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 95 */ "col_name ::= column_name", + /* 96 */ "cmd ::= CREATE SMA INDEX index_name ON table_name index_options", + /* 97 */ "cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP", + /* 98 */ "index_options ::=", + /* 99 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 100 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 101 */ "func_list ::= func", + /* 102 */ "func_list ::= func_list NK_COMMA func", + /* 103 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 104 */ "cmd ::= SHOW VGROUPS", + /* 105 */ "cmd ::= SHOW db_name NK_DOT VGROUPS", + /* 106 */ "cmd ::= SHOW MNODES", + /* 107 */ "cmd ::= query_expression", + /* 108 */ "literal ::= NK_INTEGER", + /* 109 */ "literal ::= NK_FLOAT", + /* 110 */ "literal ::= NK_STRING", + /* 111 */ "literal ::= NK_BOOL", + /* 112 */ "literal ::= TIMESTAMP NK_STRING", + /* 113 */ "literal ::= duration_literal", + /* 114 */ "duration_literal ::= NK_VARIABLE", + /* 115 */ "literal_list ::= literal", + /* 116 */ "literal_list ::= literal_list NK_COMMA literal", + /* 117 */ "db_name ::= NK_ID", + /* 118 */ "table_name ::= NK_ID", + /* 119 */ "column_name ::= NK_ID", + /* 120 */ "function_name ::= NK_ID", + /* 121 */ "table_alias ::= NK_ID", + /* 122 */ "column_alias ::= NK_ID", + /* 123 */ "user_name ::= NK_ID", + /* 124 */ "index_name ::= NK_ID", + /* 125 */ "expression ::= literal", + /* 126 */ "expression ::= column_reference", + /* 127 */ "expression ::= function_name NK_LP expression_list NK_RP", + /* 128 */ "expression ::= function_name NK_LP NK_STAR NK_RP", + /* 129 */ "expression ::= subquery", + /* 130 */ "expression ::= NK_LP expression NK_RP", + /* 131 */ "expression ::= NK_PLUS expression", + /* 132 */ "expression ::= NK_MINUS expression", + /* 133 */ "expression ::= expression NK_PLUS expression", + /* 134 */ "expression ::= expression NK_MINUS expression", + /* 135 */ "expression ::= expression NK_STAR expression", + /* 136 */ "expression ::= expression NK_SLASH expression", + /* 137 */ "expression ::= expression NK_REM expression", + /* 138 */ "expression_list ::= expression", + /* 139 */ "expression_list ::= expression_list NK_COMMA expression", + /* 140 */ "column_reference ::= column_name", + /* 141 */ "column_reference ::= table_name NK_DOT column_name", + /* 142 */ "predicate ::= expression compare_op expression", + /* 143 */ "predicate ::= expression BETWEEN expression AND expression", + /* 144 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 145 */ "predicate ::= expression IS NULL", + /* 146 */ "predicate ::= expression IS NOT NULL", + /* 147 */ "predicate ::= expression in_op in_predicate_value", + /* 148 */ "compare_op ::= NK_LT", + /* 149 */ "compare_op ::= NK_GT", + /* 150 */ "compare_op ::= NK_LE", + /* 151 */ "compare_op ::= NK_GE", + /* 152 */ "compare_op ::= NK_NE", + /* 153 */ "compare_op ::= NK_EQ", + /* 154 */ "compare_op ::= LIKE", + /* 155 */ "compare_op ::= NOT LIKE", + /* 156 */ "compare_op ::= MATCH", + /* 157 */ "compare_op ::= NMATCH", + /* 158 */ "in_op ::= IN", + /* 159 */ "in_op ::= NOT IN", + /* 160 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 161 */ "boolean_value_expression ::= boolean_primary", + /* 162 */ "boolean_value_expression ::= NOT boolean_primary", + /* 163 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 164 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 165 */ "boolean_primary ::= predicate", + /* 166 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 167 */ "common_expression ::= expression", + /* 168 */ "common_expression ::= boolean_value_expression", + /* 169 */ "from_clause ::= FROM table_reference_list", + /* 170 */ "table_reference_list ::= table_reference", + /* 171 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 172 */ "table_reference ::= table_primary", + /* 173 */ "table_reference ::= joined_table", + /* 174 */ "table_primary ::= table_name alias_opt", + /* 175 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 176 */ "table_primary ::= subquery alias_opt", + /* 177 */ "table_primary ::= parenthesized_joined_table", + /* 178 */ "alias_opt ::=", + /* 179 */ "alias_opt ::= table_alias", + /* 180 */ "alias_opt ::= AS table_alias", + /* 181 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 182 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 183 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 184 */ "join_type ::=", + /* 185 */ "join_type ::= INNER", + /* 186 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 187 */ "set_quantifier_opt ::=", + /* 188 */ "set_quantifier_opt ::= DISTINCT", + /* 189 */ "set_quantifier_opt ::= ALL", + /* 190 */ "select_list ::= NK_STAR", + /* 191 */ "select_list ::= select_sublist", + /* 192 */ "select_sublist ::= select_item", + /* 193 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 194 */ "select_item ::= common_expression", + /* 195 */ "select_item ::= common_expression column_alias", + /* 196 */ "select_item ::= common_expression AS column_alias", + /* 197 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 198 */ "where_clause_opt ::=", + /* 199 */ "where_clause_opt ::= WHERE search_condition", + /* 200 */ "partition_by_clause_opt ::=", + /* 201 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 202 */ "twindow_clause_opt ::=", + /* 203 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP", + /* 204 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", + /* 205 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 206 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 207 */ "sliding_opt ::=", + /* 208 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 209 */ "fill_opt ::=", + /* 210 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 211 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 212 */ "fill_mode ::= NONE", + /* 213 */ "fill_mode ::= PREV", + /* 214 */ "fill_mode ::= NULL", + /* 215 */ "fill_mode ::= LINEAR", + /* 216 */ "fill_mode ::= NEXT", + /* 217 */ "group_by_clause_opt ::=", + /* 218 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 219 */ "group_by_list ::= expression", + /* 220 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 221 */ "having_clause_opt ::=", + /* 222 */ "having_clause_opt ::= HAVING search_condition", + /* 223 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 224 */ "query_expression_body ::= query_primary", + /* 225 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 226 */ "query_primary ::= query_specification", + /* 227 */ "order_by_clause_opt ::=", + /* 228 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 229 */ "slimit_clause_opt ::=", + /* 230 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 231 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 232 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 233 */ "limit_clause_opt ::=", + /* 234 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 235 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 236 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 237 */ "subquery ::= NK_LP query_expression NK_RP", + /* 238 */ "search_condition ::= common_expression", + /* 239 */ "sort_specification_list ::= sort_specification", + /* 240 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 241 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 242 */ "ordering_specification_opt ::=", + /* 243 */ "ordering_specification_opt ::= ASC", + /* 244 */ "ordering_specification_opt ::= DESC", + /* 245 */ "null_ordering_opt ::=", + /* 246 */ "null_ordering_opt ::= NULLS FIRST", + /* 247 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -1219,120 +1212,120 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 138: /* cmd */ - case 144: /* db_options */ - case 146: /* full_table_name */ - case 149: /* table_options */ - case 153: /* create_subtable_clause */ - case 156: /* drop_table_clause */ - case 159: /* column_def */ - case 162: /* col_name */ - case 164: /* index_options */ - case 166: /* duration_literal */ - case 167: /* sliding_opt */ - case 168: /* func */ - case 171: /* query_expression */ - case 172: /* literal */ - case 175: /* expression */ - case 176: /* column_reference */ - case 177: /* subquery */ - case 178: /* predicate */ - case 181: /* in_predicate_value */ - case 182: /* boolean_value_expression */ - case 183: /* boolean_primary */ - case 184: /* common_expression */ - case 185: /* from_clause */ - case 186: /* table_reference_list */ - case 187: /* table_reference */ - case 188: /* table_primary */ - case 189: /* joined_table */ - case 191: /* parenthesized_joined_table */ - case 193: /* search_condition */ - case 194: /* query_specification */ - case 197: /* where_clause_opt */ - case 199: /* twindow_clause_opt */ - case 201: /* having_clause_opt */ - case 203: /* select_item */ - case 204: /* fill_opt */ - case 207: /* query_expression_body */ - case 209: /* slimit_clause_opt */ - case 210: /* limit_clause_opt */ - case 211: /* query_primary */ - case 213: /* sort_specification */ + case 140: /* cmd */ + case 146: /* db_options */ + case 148: /* full_table_name */ + case 151: /* table_options */ + case 155: /* create_subtable_clause */ + case 158: /* drop_table_clause */ + case 161: /* column_def */ + case 164: /* col_name */ + case 166: /* index_options */ + case 168: /* duration_literal */ + case 169: /* sliding_opt */ + case 170: /* func */ + case 173: /* query_expression */ + case 174: /* literal */ + case 177: /* expression */ + case 178: /* column_reference */ + case 179: /* subquery */ + case 180: /* predicate */ + case 183: /* in_predicate_value */ + case 184: /* boolean_value_expression */ + case 185: /* boolean_primary */ + case 186: /* common_expression */ + case 187: /* from_clause */ + case 188: /* table_reference_list */ + case 189: /* table_reference */ + case 190: /* table_primary */ + case 191: /* joined_table */ + case 193: /* parenthesized_joined_table */ + case 195: /* search_condition */ + case 196: /* query_specification */ + case 199: /* where_clause_opt */ + case 201: /* twindow_clause_opt */ + case 203: /* having_clause_opt */ + case 205: /* select_item */ + case 206: /* fill_opt */ + case 209: /* query_expression_body */ + case 211: /* slimit_clause_opt */ + case 212: /* limit_clause_opt */ + case 213: /* query_primary */ + case 215: /* sort_specification */ { - nodesDestroyNode((yypminor->yy344)); + nodesDestroyNode((yypminor->yy68)); } break; - case 139: /* user_name */ - case 140: /* dnode_endpoint */ - case 141: /* dnode_host_name */ - case 143: /* db_name */ - case 158: /* table_name */ - case 160: /* column_name */ - case 163: /* index_name */ - case 169: /* function_name */ - case 173: /* table_alias */ - case 174: /* column_alias */ - case 190: /* alias_opt */ + case 141: /* user_name */ + case 142: /* dnode_endpoint */ + case 143: /* dnode_host_name */ + case 145: /* db_name */ + case 160: /* table_name */ + case 162: /* column_name */ + case 165: /* index_name */ + case 171: /* function_name */ + case 175: /* table_alias */ + case 176: /* column_alias */ + case 192: /* alias_opt */ { } break; - case 142: /* not_exists_opt */ - case 145: /* exists_opt */ - case 195: /* set_quantifier_opt */ + case 144: /* not_exists_opt */ + case 147: /* exists_opt */ + case 197: /* set_quantifier_opt */ { } break; - case 147: /* column_def_list */ - case 148: /* tags_def_opt */ - case 150: /* multi_create_clause */ - case 151: /* tags_def */ - case 152: /* multi_drop_clause */ - case 154: /* specific_tags_opt */ - case 155: /* literal_list */ - case 157: /* col_name_list */ - case 165: /* func_list */ - case 170: /* expression_list */ - case 196: /* select_list */ - case 198: /* partition_by_clause_opt */ - case 200: /* group_by_clause_opt */ - case 202: /* select_sublist */ - case 206: /* group_by_list */ - case 208: /* order_by_clause_opt */ - case 212: /* sort_specification_list */ + case 149: /* column_def_list */ + case 150: /* tags_def_opt */ + case 152: /* multi_create_clause */ + case 153: /* tags_def */ + case 154: /* multi_drop_clause */ + case 156: /* specific_tags_opt */ + case 157: /* literal_list */ + case 159: /* col_name_list */ + case 167: /* func_list */ + case 172: /* expression_list */ + case 198: /* select_list */ + case 200: /* partition_by_clause_opt */ + case 202: /* group_by_clause_opt */ + case 204: /* select_sublist */ + case 208: /* group_by_list */ + case 210: /* order_by_clause_opt */ + case 214: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy280)); + nodesDestroyList((yypminor->yy40)); } break; - case 161: /* type_name */ + case 163: /* type_name */ { } break; - case 179: /* compare_op */ - case 180: /* in_op */ + case 181: /* compare_op */ + case 182: /* in_op */ { } break; - case 192: /* join_type */ + case 194: /* join_type */ { } break; - case 205: /* fill_mode */ + case 207: /* fill_mode */ { } break; - case 214: /* ordering_specification_opt */ + case 216: /* ordering_specification_opt */ { } break; - case 215: /* null_ordering_opt */ + case 217: /* null_ordering_opt */ { } @@ -1631,252 +1624,254 @@ static const struct { YYCODETYPE lhs; /* Symbol on the left-hand side of the rule */ signed char nrhs; /* Negative of the number of RHS symbols in the rule */ } yyRuleInfo[] = { - { 138, -5 }, /* (0) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 138, -5 }, /* (1) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 138, -5 }, /* (2) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 138, -3 }, /* (3) cmd ::= DROP USER user_name */ - { 138, -2 }, /* (4) cmd ::= SHOW USERS */ - { 138, -3 }, /* (5) cmd ::= CREATE DNODE dnode_endpoint */ - { 138, -5 }, /* (6) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ - { 138, -3 }, /* (7) cmd ::= DROP DNODE NK_INTEGER */ - { 138, -3 }, /* (8) cmd ::= DROP DNODE dnode_endpoint */ - { 138, -2 }, /* (9) cmd ::= SHOW DNODES */ - { 140, -1 }, /* (10) dnode_endpoint ::= NK_STRING */ - { 141, -1 }, /* (11) dnode_host_name ::= NK_ID */ - { 141, -1 }, /* (12) dnode_host_name ::= NK_IPTOKEN */ - { 138, -5 }, /* (13) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 138, -4 }, /* (14) cmd ::= DROP DATABASE exists_opt db_name */ - { 138, -2 }, /* (15) cmd ::= SHOW DATABASES */ - { 138, -2 }, /* (16) cmd ::= USE db_name */ - { 142, -3 }, /* (17) not_exists_opt ::= IF NOT EXISTS */ - { 142, 0 }, /* (18) not_exists_opt ::= */ - { 145, -2 }, /* (19) exists_opt ::= IF EXISTS */ - { 145, 0 }, /* (20) exists_opt ::= */ - { 144, 0 }, /* (21) db_options ::= */ - { 144, -3 }, /* (22) db_options ::= db_options BLOCKS NK_INTEGER */ - { 144, -3 }, /* (23) db_options ::= db_options CACHE NK_INTEGER */ - { 144, -3 }, /* (24) db_options ::= db_options CACHELAST NK_INTEGER */ - { 144, -3 }, /* (25) db_options ::= db_options COMP NK_INTEGER */ - { 144, -3 }, /* (26) db_options ::= db_options DAYS NK_INTEGER */ - { 144, -3 }, /* (27) db_options ::= db_options FSYNC NK_INTEGER */ - { 144, -3 }, /* (28) db_options ::= db_options MAXROWS NK_INTEGER */ - { 144, -3 }, /* (29) db_options ::= db_options MINROWS NK_INTEGER */ - { 144, -3 }, /* (30) db_options ::= db_options KEEP NK_INTEGER */ - { 144, -3 }, /* (31) db_options ::= db_options PRECISION NK_STRING */ - { 144, -3 }, /* (32) db_options ::= db_options QUORUM NK_INTEGER */ - { 144, -3 }, /* (33) db_options ::= db_options REPLICA NK_INTEGER */ - { 144, -3 }, /* (34) db_options ::= db_options TTL NK_INTEGER */ - { 144, -3 }, /* (35) db_options ::= db_options WAL NK_INTEGER */ - { 144, -3 }, /* (36) db_options ::= db_options VGROUPS NK_INTEGER */ - { 144, -3 }, /* (37) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 144, -3 }, /* (38) db_options ::= db_options STREAM_MODE NK_INTEGER */ - { 138, -9 }, /* (39) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 138, -3 }, /* (40) cmd ::= CREATE TABLE multi_create_clause */ - { 138, -9 }, /* (41) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 138, -3 }, /* (42) cmd ::= DROP TABLE multi_drop_clause */ - { 138, -4 }, /* (43) cmd ::= DROP STABLE exists_opt full_table_name */ - { 138, -2 }, /* (44) cmd ::= SHOW TABLES */ - { 138, -2 }, /* (45) cmd ::= SHOW STABLES */ - { 150, -1 }, /* (46) multi_create_clause ::= create_subtable_clause */ - { 150, -2 }, /* (47) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 153, -9 }, /* (48) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ - { 152, -1 }, /* (49) multi_drop_clause ::= drop_table_clause */ - { 152, -2 }, /* (50) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 156, -2 }, /* (51) drop_table_clause ::= exists_opt full_table_name */ - { 154, 0 }, /* (52) specific_tags_opt ::= */ - { 154, -3 }, /* (53) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 146, -1 }, /* (54) full_table_name ::= table_name */ - { 146, -3 }, /* (55) full_table_name ::= db_name NK_DOT table_name */ - { 147, -1 }, /* (56) column_def_list ::= column_def */ - { 147, -3 }, /* (57) column_def_list ::= column_def_list NK_COMMA column_def */ - { 159, -2 }, /* (58) column_def ::= column_name type_name */ - { 159, -4 }, /* (59) column_def ::= column_name type_name COMMENT NK_STRING */ - { 161, -1 }, /* (60) type_name ::= BOOL */ - { 161, -1 }, /* (61) type_name ::= TINYINT */ - { 161, -1 }, /* (62) type_name ::= SMALLINT */ - { 161, -1 }, /* (63) type_name ::= INT */ - { 161, -1 }, /* (64) type_name ::= INTEGER */ - { 161, -1 }, /* (65) type_name ::= BIGINT */ - { 161, -1 }, /* (66) type_name ::= FLOAT */ - { 161, -1 }, /* (67) type_name ::= DOUBLE */ - { 161, -4 }, /* (68) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 161, -1 }, /* (69) type_name ::= TIMESTAMP */ - { 161, -4 }, /* (70) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 161, -2 }, /* (71) type_name ::= TINYINT UNSIGNED */ - { 161, -2 }, /* (72) type_name ::= SMALLINT UNSIGNED */ - { 161, -2 }, /* (73) type_name ::= INT UNSIGNED */ - { 161, -2 }, /* (74) type_name ::= BIGINT UNSIGNED */ - { 161, -1 }, /* (75) type_name ::= JSON */ - { 161, -4 }, /* (76) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 161, -1 }, /* (77) type_name ::= MEDIUMBLOB */ - { 161, -1 }, /* (78) type_name ::= BLOB */ - { 161, -4 }, /* (79) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 161, -1 }, /* (80) type_name ::= DECIMAL */ - { 161, -4 }, /* (81) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 161, -6 }, /* (82) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 148, 0 }, /* (83) tags_def_opt ::= */ - { 148, -1 }, /* (84) tags_def_opt ::= tags_def */ - { 151, -4 }, /* (85) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 149, 0 }, /* (86) table_options ::= */ - { 149, -3 }, /* (87) table_options ::= table_options COMMENT NK_STRING */ - { 149, -3 }, /* (88) table_options ::= table_options KEEP NK_INTEGER */ - { 149, -3 }, /* (89) table_options ::= table_options TTL NK_INTEGER */ - { 149, -5 }, /* (90) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 157, -1 }, /* (91) col_name_list ::= col_name */ - { 157, -3 }, /* (92) col_name_list ::= col_name_list NK_COMMA col_name */ - { 162, -1 }, /* (93) col_name ::= column_name */ - { 138, -7 }, /* (94) cmd ::= CREATE SMA INDEX index_name ON table_name index_options */ - { 138, -9 }, /* (95) cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP */ - { 164, 0 }, /* (96) index_options ::= */ - { 164, -9 }, /* (97) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 164, -11 }, /* (98) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 165, -1 }, /* (99) func_list ::= func */ - { 165, -3 }, /* (100) func_list ::= func_list NK_COMMA func */ - { 168, -4 }, /* (101) func ::= function_name NK_LP expression_list NK_RP */ - { 138, -2 }, /* (102) cmd ::= SHOW VGROUPS */ - { 138, -4 }, /* (103) cmd ::= SHOW db_name NK_DOT VGROUPS */ - { 138, -2 }, /* (104) cmd ::= SHOW MNODES */ - { 138, -1 }, /* (105) cmd ::= query_expression */ - { 172, -1 }, /* (106) literal ::= NK_INTEGER */ - { 172, -1 }, /* (107) literal ::= NK_FLOAT */ - { 172, -1 }, /* (108) literal ::= NK_STRING */ - { 172, -1 }, /* (109) literal ::= NK_BOOL */ - { 172, -2 }, /* (110) literal ::= TIMESTAMP NK_STRING */ - { 172, -1 }, /* (111) literal ::= duration_literal */ - { 166, -1 }, /* (112) duration_literal ::= NK_VARIABLE */ - { 155, -1 }, /* (113) literal_list ::= literal */ - { 155, -3 }, /* (114) literal_list ::= literal_list NK_COMMA literal */ - { 143, -1 }, /* (115) db_name ::= NK_ID */ - { 158, -1 }, /* (116) table_name ::= NK_ID */ - { 160, -1 }, /* (117) column_name ::= NK_ID */ - { 169, -1 }, /* (118) function_name ::= NK_ID */ - { 173, -1 }, /* (119) table_alias ::= NK_ID */ - { 174, -1 }, /* (120) column_alias ::= NK_ID */ - { 139, -1 }, /* (121) user_name ::= NK_ID */ - { 163, -1 }, /* (122) index_name ::= NK_ID */ - { 175, -1 }, /* (123) expression ::= literal */ - { 175, -1 }, /* (124) expression ::= column_reference */ - { 175, -4 }, /* (125) expression ::= function_name NK_LP expression_list NK_RP */ - { 175, -4 }, /* (126) expression ::= function_name NK_LP NK_STAR NK_RP */ - { 175, -1 }, /* (127) expression ::= subquery */ - { 175, -3 }, /* (128) expression ::= NK_LP expression NK_RP */ - { 175, -2 }, /* (129) expression ::= NK_PLUS expression */ - { 175, -2 }, /* (130) expression ::= NK_MINUS expression */ - { 175, -3 }, /* (131) expression ::= expression NK_PLUS expression */ - { 175, -3 }, /* (132) expression ::= expression NK_MINUS expression */ - { 175, -3 }, /* (133) expression ::= expression NK_STAR expression */ - { 175, -3 }, /* (134) expression ::= expression NK_SLASH expression */ - { 175, -3 }, /* (135) expression ::= expression NK_REM expression */ - { 170, -1 }, /* (136) expression_list ::= expression */ - { 170, -3 }, /* (137) expression_list ::= expression_list NK_COMMA expression */ - { 176, -1 }, /* (138) column_reference ::= column_name */ - { 176, -3 }, /* (139) column_reference ::= table_name NK_DOT column_name */ - { 178, -3 }, /* (140) predicate ::= expression compare_op expression */ - { 178, -5 }, /* (141) predicate ::= expression BETWEEN expression AND expression */ - { 178, -6 }, /* (142) predicate ::= expression NOT BETWEEN expression AND expression */ - { 178, -3 }, /* (143) predicate ::= expression IS NULL */ - { 178, -4 }, /* (144) predicate ::= expression IS NOT NULL */ - { 178, -3 }, /* (145) predicate ::= expression in_op in_predicate_value */ - { 179, -1 }, /* (146) compare_op ::= NK_LT */ - { 179, -1 }, /* (147) compare_op ::= NK_GT */ - { 179, -1 }, /* (148) compare_op ::= NK_LE */ - { 179, -1 }, /* (149) compare_op ::= NK_GE */ - { 179, -1 }, /* (150) compare_op ::= NK_NE */ - { 179, -1 }, /* (151) compare_op ::= NK_EQ */ - { 179, -1 }, /* (152) compare_op ::= LIKE */ - { 179, -2 }, /* (153) compare_op ::= NOT LIKE */ - { 179, -1 }, /* (154) compare_op ::= MATCH */ - { 179, -1 }, /* (155) compare_op ::= NMATCH */ - { 180, -1 }, /* (156) in_op ::= IN */ - { 180, -2 }, /* (157) in_op ::= NOT IN */ - { 181, -3 }, /* (158) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 182, -1 }, /* (159) boolean_value_expression ::= boolean_primary */ - { 182, -2 }, /* (160) boolean_value_expression ::= NOT boolean_primary */ - { 182, -3 }, /* (161) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 182, -3 }, /* (162) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 183, -1 }, /* (163) boolean_primary ::= predicate */ - { 183, -3 }, /* (164) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 184, -1 }, /* (165) common_expression ::= expression */ - { 184, -1 }, /* (166) common_expression ::= boolean_value_expression */ - { 185, -2 }, /* (167) from_clause ::= FROM table_reference_list */ - { 186, -1 }, /* (168) table_reference_list ::= table_reference */ - { 186, -3 }, /* (169) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 187, -1 }, /* (170) table_reference ::= table_primary */ - { 187, -1 }, /* (171) table_reference ::= joined_table */ - { 188, -2 }, /* (172) table_primary ::= table_name alias_opt */ - { 188, -4 }, /* (173) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 188, -2 }, /* (174) table_primary ::= subquery alias_opt */ - { 188, -1 }, /* (175) table_primary ::= parenthesized_joined_table */ - { 190, 0 }, /* (176) alias_opt ::= */ - { 190, -1 }, /* (177) alias_opt ::= table_alias */ - { 190, -2 }, /* (178) alias_opt ::= AS table_alias */ - { 191, -3 }, /* (179) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 191, -3 }, /* (180) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 189, -6 }, /* (181) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 192, 0 }, /* (182) join_type ::= */ - { 192, -1 }, /* (183) join_type ::= INNER */ - { 194, -9 }, /* (184) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 195, 0 }, /* (185) set_quantifier_opt ::= */ - { 195, -1 }, /* (186) set_quantifier_opt ::= DISTINCT */ - { 195, -1 }, /* (187) set_quantifier_opt ::= ALL */ - { 196, -1 }, /* (188) select_list ::= NK_STAR */ - { 196, -1 }, /* (189) select_list ::= select_sublist */ - { 202, -1 }, /* (190) select_sublist ::= select_item */ - { 202, -3 }, /* (191) select_sublist ::= select_sublist NK_COMMA select_item */ - { 203, -1 }, /* (192) select_item ::= common_expression */ - { 203, -2 }, /* (193) select_item ::= common_expression column_alias */ - { 203, -3 }, /* (194) select_item ::= common_expression AS column_alias */ - { 203, -3 }, /* (195) select_item ::= table_name NK_DOT NK_STAR */ - { 197, 0 }, /* (196) where_clause_opt ::= */ - { 197, -2 }, /* (197) where_clause_opt ::= WHERE search_condition */ - { 198, 0 }, /* (198) partition_by_clause_opt ::= */ - { 198, -3 }, /* (199) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 199, 0 }, /* (200) twindow_clause_opt ::= */ - { 199, -6 }, /* (201) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP */ - { 199, -4 }, /* (202) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ - { 199, -6 }, /* (203) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 199, -8 }, /* (204) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 167, 0 }, /* (205) sliding_opt ::= */ - { 167, -4 }, /* (206) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 204, 0 }, /* (207) fill_opt ::= */ - { 204, -4 }, /* (208) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 204, -6 }, /* (209) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 205, -1 }, /* (210) fill_mode ::= NONE */ - { 205, -1 }, /* (211) fill_mode ::= PREV */ - { 205, -1 }, /* (212) fill_mode ::= NULL */ - { 205, -1 }, /* (213) fill_mode ::= LINEAR */ - { 205, -1 }, /* (214) fill_mode ::= NEXT */ - { 200, 0 }, /* (215) group_by_clause_opt ::= */ - { 200, -3 }, /* (216) group_by_clause_opt ::= GROUP BY group_by_list */ - { 206, -1 }, /* (217) group_by_list ::= expression */ - { 206, -3 }, /* (218) group_by_list ::= group_by_list NK_COMMA expression */ - { 201, 0 }, /* (219) having_clause_opt ::= */ - { 201, -2 }, /* (220) having_clause_opt ::= HAVING search_condition */ - { 171, -4 }, /* (221) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 207, -1 }, /* (222) query_expression_body ::= query_primary */ - { 207, -4 }, /* (223) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 211, -1 }, /* (224) query_primary ::= query_specification */ - { 208, 0 }, /* (225) order_by_clause_opt ::= */ - { 208, -3 }, /* (226) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 209, 0 }, /* (227) slimit_clause_opt ::= */ - { 209, -2 }, /* (228) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 209, -4 }, /* (229) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 209, -4 }, /* (230) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 210, 0 }, /* (231) limit_clause_opt ::= */ - { 210, -2 }, /* (232) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 210, -4 }, /* (233) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 210, -4 }, /* (234) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 177, -3 }, /* (235) subquery ::= NK_LP query_expression NK_RP */ - { 193, -1 }, /* (236) search_condition ::= common_expression */ - { 212, -1 }, /* (237) sort_specification_list ::= sort_specification */ - { 212, -3 }, /* (238) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 213, -3 }, /* (239) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 214, 0 }, /* (240) ordering_specification_opt ::= */ - { 214, -1 }, /* (241) ordering_specification_opt ::= ASC */ - { 214, -1 }, /* (242) ordering_specification_opt ::= DESC */ - { 215, 0 }, /* (243) null_ordering_opt ::= */ - { 215, -2 }, /* (244) null_ordering_opt ::= NULLS FIRST */ - { 215, -2 }, /* (245) null_ordering_opt ::= NULLS LAST */ + { 140, -5 }, /* (0) cmd ::= CREATE USER user_name PASS NK_STRING */ + { 140, -5 }, /* (1) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 140, -5 }, /* (2) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + { 140, -3 }, /* (3) cmd ::= DROP USER user_name */ + { 140, -2 }, /* (4) cmd ::= SHOW USERS */ + { 140, -3 }, /* (5) cmd ::= CREATE DNODE dnode_endpoint */ + { 140, -5 }, /* (6) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ + { 140, -3 }, /* (7) cmd ::= DROP DNODE NK_INTEGER */ + { 140, -3 }, /* (8) cmd ::= DROP DNODE dnode_endpoint */ + { 140, -2 }, /* (9) cmd ::= SHOW DNODES */ + { 142, -1 }, /* (10) dnode_endpoint ::= NK_STRING */ + { 143, -1 }, /* (11) dnode_host_name ::= NK_ID */ + { 143, -1 }, /* (12) dnode_host_name ::= NK_IPTOKEN */ + { 140, -5 }, /* (13) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 140, -2 }, /* (14) cmd ::= SHOW QNODES */ + { 140, -5 }, /* (15) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 140, -4 }, /* (16) cmd ::= DROP DATABASE exists_opt db_name */ + { 140, -2 }, /* (17) cmd ::= SHOW DATABASES */ + { 140, -2 }, /* (18) cmd ::= USE db_name */ + { 144, -3 }, /* (19) not_exists_opt ::= IF NOT EXISTS */ + { 144, 0 }, /* (20) not_exists_opt ::= */ + { 147, -2 }, /* (21) exists_opt ::= IF EXISTS */ + { 147, 0 }, /* (22) exists_opt ::= */ + { 146, 0 }, /* (23) db_options ::= */ + { 146, -3 }, /* (24) db_options ::= db_options BLOCKS NK_INTEGER */ + { 146, -3 }, /* (25) db_options ::= db_options CACHE NK_INTEGER */ + { 146, -3 }, /* (26) db_options ::= db_options CACHELAST NK_INTEGER */ + { 146, -3 }, /* (27) db_options ::= db_options COMP NK_INTEGER */ + { 146, -3 }, /* (28) db_options ::= db_options DAYS NK_INTEGER */ + { 146, -3 }, /* (29) db_options ::= db_options FSYNC NK_INTEGER */ + { 146, -3 }, /* (30) db_options ::= db_options MAXROWS NK_INTEGER */ + { 146, -3 }, /* (31) db_options ::= db_options MINROWS NK_INTEGER */ + { 146, -3 }, /* (32) db_options ::= db_options KEEP NK_INTEGER */ + { 146, -3 }, /* (33) db_options ::= db_options PRECISION NK_STRING */ + { 146, -3 }, /* (34) db_options ::= db_options QUORUM NK_INTEGER */ + { 146, -3 }, /* (35) db_options ::= db_options REPLICA NK_INTEGER */ + { 146, -3 }, /* (36) db_options ::= db_options TTL NK_INTEGER */ + { 146, -3 }, /* (37) db_options ::= db_options WAL NK_INTEGER */ + { 146, -3 }, /* (38) db_options ::= db_options VGROUPS NK_INTEGER */ + { 146, -3 }, /* (39) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 146, -3 }, /* (40) db_options ::= db_options STREAM_MODE NK_INTEGER */ + { 140, -9 }, /* (41) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 140, -3 }, /* (42) cmd ::= CREATE TABLE multi_create_clause */ + { 140, -9 }, /* (43) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 140, -3 }, /* (44) cmd ::= DROP TABLE multi_drop_clause */ + { 140, -4 }, /* (45) cmd ::= DROP STABLE exists_opt full_table_name */ + { 140, -2 }, /* (46) cmd ::= SHOW TABLES */ + { 140, -2 }, /* (47) cmd ::= SHOW STABLES */ + { 152, -1 }, /* (48) multi_create_clause ::= create_subtable_clause */ + { 152, -2 }, /* (49) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 155, -9 }, /* (50) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ + { 154, -1 }, /* (51) multi_drop_clause ::= drop_table_clause */ + { 154, -2 }, /* (52) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 158, -2 }, /* (53) drop_table_clause ::= exists_opt full_table_name */ + { 156, 0 }, /* (54) specific_tags_opt ::= */ + { 156, -3 }, /* (55) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 148, -1 }, /* (56) full_table_name ::= table_name */ + { 148, -3 }, /* (57) full_table_name ::= db_name NK_DOT table_name */ + { 149, -1 }, /* (58) column_def_list ::= column_def */ + { 149, -3 }, /* (59) column_def_list ::= column_def_list NK_COMMA column_def */ + { 161, -2 }, /* (60) column_def ::= column_name type_name */ + { 161, -4 }, /* (61) column_def ::= column_name type_name COMMENT NK_STRING */ + { 163, -1 }, /* (62) type_name ::= BOOL */ + { 163, -1 }, /* (63) type_name ::= TINYINT */ + { 163, -1 }, /* (64) type_name ::= SMALLINT */ + { 163, -1 }, /* (65) type_name ::= INT */ + { 163, -1 }, /* (66) type_name ::= INTEGER */ + { 163, -1 }, /* (67) type_name ::= BIGINT */ + { 163, -1 }, /* (68) type_name ::= FLOAT */ + { 163, -1 }, /* (69) type_name ::= DOUBLE */ + { 163, -4 }, /* (70) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 163, -1 }, /* (71) type_name ::= TIMESTAMP */ + { 163, -4 }, /* (72) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 163, -2 }, /* (73) type_name ::= TINYINT UNSIGNED */ + { 163, -2 }, /* (74) type_name ::= SMALLINT UNSIGNED */ + { 163, -2 }, /* (75) type_name ::= INT UNSIGNED */ + { 163, -2 }, /* (76) type_name ::= BIGINT UNSIGNED */ + { 163, -1 }, /* (77) type_name ::= JSON */ + { 163, -4 }, /* (78) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 163, -1 }, /* (79) type_name ::= MEDIUMBLOB */ + { 163, -1 }, /* (80) type_name ::= BLOB */ + { 163, -4 }, /* (81) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 163, -1 }, /* (82) type_name ::= DECIMAL */ + { 163, -4 }, /* (83) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 163, -6 }, /* (84) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 150, 0 }, /* (85) tags_def_opt ::= */ + { 150, -1 }, /* (86) tags_def_opt ::= tags_def */ + { 153, -4 }, /* (87) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 151, 0 }, /* (88) table_options ::= */ + { 151, -3 }, /* (89) table_options ::= table_options COMMENT NK_STRING */ + { 151, -3 }, /* (90) table_options ::= table_options KEEP NK_INTEGER */ + { 151, -3 }, /* (91) table_options ::= table_options TTL NK_INTEGER */ + { 151, -5 }, /* (92) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 159, -1 }, /* (93) col_name_list ::= col_name */ + { 159, -3 }, /* (94) col_name_list ::= col_name_list NK_COMMA col_name */ + { 164, -1 }, /* (95) col_name ::= column_name */ + { 140, -7 }, /* (96) cmd ::= CREATE SMA INDEX index_name ON table_name index_options */ + { 140, -9 }, /* (97) cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP */ + { 166, 0 }, /* (98) index_options ::= */ + { 166, -9 }, /* (99) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 166, -11 }, /* (100) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 167, -1 }, /* (101) func_list ::= func */ + { 167, -3 }, /* (102) func_list ::= func_list NK_COMMA func */ + { 170, -4 }, /* (103) func ::= function_name NK_LP expression_list NK_RP */ + { 140, -2 }, /* (104) cmd ::= SHOW VGROUPS */ + { 140, -4 }, /* (105) cmd ::= SHOW db_name NK_DOT VGROUPS */ + { 140, -2 }, /* (106) cmd ::= SHOW MNODES */ + { 140, -1 }, /* (107) cmd ::= query_expression */ + { 174, -1 }, /* (108) literal ::= NK_INTEGER */ + { 174, -1 }, /* (109) literal ::= NK_FLOAT */ + { 174, -1 }, /* (110) literal ::= NK_STRING */ + { 174, -1 }, /* (111) literal ::= NK_BOOL */ + { 174, -2 }, /* (112) literal ::= TIMESTAMP NK_STRING */ + { 174, -1 }, /* (113) literal ::= duration_literal */ + { 168, -1 }, /* (114) duration_literal ::= NK_VARIABLE */ + { 157, -1 }, /* (115) literal_list ::= literal */ + { 157, -3 }, /* (116) literal_list ::= literal_list NK_COMMA literal */ + { 145, -1 }, /* (117) db_name ::= NK_ID */ + { 160, -1 }, /* (118) table_name ::= NK_ID */ + { 162, -1 }, /* (119) column_name ::= NK_ID */ + { 171, -1 }, /* (120) function_name ::= NK_ID */ + { 175, -1 }, /* (121) table_alias ::= NK_ID */ + { 176, -1 }, /* (122) column_alias ::= NK_ID */ + { 141, -1 }, /* (123) user_name ::= NK_ID */ + { 165, -1 }, /* (124) index_name ::= NK_ID */ + { 177, -1 }, /* (125) expression ::= literal */ + { 177, -1 }, /* (126) expression ::= column_reference */ + { 177, -4 }, /* (127) expression ::= function_name NK_LP expression_list NK_RP */ + { 177, -4 }, /* (128) expression ::= function_name NK_LP NK_STAR NK_RP */ + { 177, -1 }, /* (129) expression ::= subquery */ + { 177, -3 }, /* (130) expression ::= NK_LP expression NK_RP */ + { 177, -2 }, /* (131) expression ::= NK_PLUS expression */ + { 177, -2 }, /* (132) expression ::= NK_MINUS expression */ + { 177, -3 }, /* (133) expression ::= expression NK_PLUS expression */ + { 177, -3 }, /* (134) expression ::= expression NK_MINUS expression */ + { 177, -3 }, /* (135) expression ::= expression NK_STAR expression */ + { 177, -3 }, /* (136) expression ::= expression NK_SLASH expression */ + { 177, -3 }, /* (137) expression ::= expression NK_REM expression */ + { 172, -1 }, /* (138) expression_list ::= expression */ + { 172, -3 }, /* (139) expression_list ::= expression_list NK_COMMA expression */ + { 178, -1 }, /* (140) column_reference ::= column_name */ + { 178, -3 }, /* (141) column_reference ::= table_name NK_DOT column_name */ + { 180, -3 }, /* (142) predicate ::= expression compare_op expression */ + { 180, -5 }, /* (143) predicate ::= expression BETWEEN expression AND expression */ + { 180, -6 }, /* (144) predicate ::= expression NOT BETWEEN expression AND expression */ + { 180, -3 }, /* (145) predicate ::= expression IS NULL */ + { 180, -4 }, /* (146) predicate ::= expression IS NOT NULL */ + { 180, -3 }, /* (147) predicate ::= expression in_op in_predicate_value */ + { 181, -1 }, /* (148) compare_op ::= NK_LT */ + { 181, -1 }, /* (149) compare_op ::= NK_GT */ + { 181, -1 }, /* (150) compare_op ::= NK_LE */ + { 181, -1 }, /* (151) compare_op ::= NK_GE */ + { 181, -1 }, /* (152) compare_op ::= NK_NE */ + { 181, -1 }, /* (153) compare_op ::= NK_EQ */ + { 181, -1 }, /* (154) compare_op ::= LIKE */ + { 181, -2 }, /* (155) compare_op ::= NOT LIKE */ + { 181, -1 }, /* (156) compare_op ::= MATCH */ + { 181, -1 }, /* (157) compare_op ::= NMATCH */ + { 182, -1 }, /* (158) in_op ::= IN */ + { 182, -2 }, /* (159) in_op ::= NOT IN */ + { 183, -3 }, /* (160) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 184, -1 }, /* (161) boolean_value_expression ::= boolean_primary */ + { 184, -2 }, /* (162) boolean_value_expression ::= NOT boolean_primary */ + { 184, -3 }, /* (163) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 184, -3 }, /* (164) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 185, -1 }, /* (165) boolean_primary ::= predicate */ + { 185, -3 }, /* (166) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 186, -1 }, /* (167) common_expression ::= expression */ + { 186, -1 }, /* (168) common_expression ::= boolean_value_expression */ + { 187, -2 }, /* (169) from_clause ::= FROM table_reference_list */ + { 188, -1 }, /* (170) table_reference_list ::= table_reference */ + { 188, -3 }, /* (171) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 189, -1 }, /* (172) table_reference ::= table_primary */ + { 189, -1 }, /* (173) table_reference ::= joined_table */ + { 190, -2 }, /* (174) table_primary ::= table_name alias_opt */ + { 190, -4 }, /* (175) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 190, -2 }, /* (176) table_primary ::= subquery alias_opt */ + { 190, -1 }, /* (177) table_primary ::= parenthesized_joined_table */ + { 192, 0 }, /* (178) alias_opt ::= */ + { 192, -1 }, /* (179) alias_opt ::= table_alias */ + { 192, -2 }, /* (180) alias_opt ::= AS table_alias */ + { 193, -3 }, /* (181) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 193, -3 }, /* (182) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 191, -6 }, /* (183) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 194, 0 }, /* (184) join_type ::= */ + { 194, -1 }, /* (185) join_type ::= INNER */ + { 196, -9 }, /* (186) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 197, 0 }, /* (187) set_quantifier_opt ::= */ + { 197, -1 }, /* (188) set_quantifier_opt ::= DISTINCT */ + { 197, -1 }, /* (189) set_quantifier_opt ::= ALL */ + { 198, -1 }, /* (190) select_list ::= NK_STAR */ + { 198, -1 }, /* (191) select_list ::= select_sublist */ + { 204, -1 }, /* (192) select_sublist ::= select_item */ + { 204, -3 }, /* (193) select_sublist ::= select_sublist NK_COMMA select_item */ + { 205, -1 }, /* (194) select_item ::= common_expression */ + { 205, -2 }, /* (195) select_item ::= common_expression column_alias */ + { 205, -3 }, /* (196) select_item ::= common_expression AS column_alias */ + { 205, -3 }, /* (197) select_item ::= table_name NK_DOT NK_STAR */ + { 199, 0 }, /* (198) where_clause_opt ::= */ + { 199, -2 }, /* (199) where_clause_opt ::= WHERE search_condition */ + { 200, 0 }, /* (200) partition_by_clause_opt ::= */ + { 200, -3 }, /* (201) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 201, 0 }, /* (202) twindow_clause_opt ::= */ + { 201, -6 }, /* (203) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP */ + { 201, -4 }, /* (204) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ + { 201, -6 }, /* (205) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 201, -8 }, /* (206) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 169, 0 }, /* (207) sliding_opt ::= */ + { 169, -4 }, /* (208) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 206, 0 }, /* (209) fill_opt ::= */ + { 206, -4 }, /* (210) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 206, -6 }, /* (211) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 207, -1 }, /* (212) fill_mode ::= NONE */ + { 207, -1 }, /* (213) fill_mode ::= PREV */ + { 207, -1 }, /* (214) fill_mode ::= NULL */ + { 207, -1 }, /* (215) fill_mode ::= LINEAR */ + { 207, -1 }, /* (216) fill_mode ::= NEXT */ + { 202, 0 }, /* (217) group_by_clause_opt ::= */ + { 202, -3 }, /* (218) group_by_clause_opt ::= GROUP BY group_by_list */ + { 208, -1 }, /* (219) group_by_list ::= expression */ + { 208, -3 }, /* (220) group_by_list ::= group_by_list NK_COMMA expression */ + { 203, 0 }, /* (221) having_clause_opt ::= */ + { 203, -2 }, /* (222) having_clause_opt ::= HAVING search_condition */ + { 173, -4 }, /* (223) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 209, -1 }, /* (224) query_expression_body ::= query_primary */ + { 209, -4 }, /* (225) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 213, -1 }, /* (226) query_primary ::= query_specification */ + { 210, 0 }, /* (227) order_by_clause_opt ::= */ + { 210, -3 }, /* (228) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 211, 0 }, /* (229) slimit_clause_opt ::= */ + { 211, -2 }, /* (230) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 211, -4 }, /* (231) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 211, -4 }, /* (232) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 212, 0 }, /* (233) limit_clause_opt ::= */ + { 212, -2 }, /* (234) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 212, -4 }, /* (235) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 212, -4 }, /* (236) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 179, -3 }, /* (237) subquery ::= NK_LP query_expression NK_RP */ + { 195, -1 }, /* (238) search_condition ::= common_expression */ + { 214, -1 }, /* (239) sort_specification_list ::= sort_specification */ + { 214, -3 }, /* (240) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 215, -3 }, /* (241) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 216, 0 }, /* (242) ordering_specification_opt ::= */ + { 216, -1 }, /* (243) ordering_specification_opt ::= ASC */ + { 216, -1 }, /* (244) ordering_specification_opt ::= DESC */ + { 217, 0 }, /* (245) null_ordering_opt ::= */ + { 217, -2 }, /* (246) null_ordering_opt ::= NULLS FIRST */ + { 217, -2 }, /* (247) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -1964,31 +1959,31 @@ static YYACTIONTYPE yy_reduce( /********** Begin reduce actions **********************************************/ YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0);} +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy0);} break; case 1: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy209, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0);} +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy5, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0);} break; case 2: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy209, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0);} +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy5, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0);} break; case 3: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy5); } break; case 4: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL); } break; case 5: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy209, NULL);} +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy5, NULL);} break; case 6: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0);} +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy0);} break; case 7: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0);} break; case 8: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy209);} +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy5);} break; case 9: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL); } @@ -1996,736 +1991,742 @@ static YYACTIONTYPE yy_reduce( case 10: /* dnode_endpoint ::= NK_STRING */ case 11: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==11); case 12: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==12); - case 115: /* db_name ::= NK_ID */ yytestcase(yyruleno==115); - case 116: /* table_name ::= NK_ID */ yytestcase(yyruleno==116); - case 117: /* column_name ::= NK_ID */ yytestcase(yyruleno==117); - case 118: /* function_name ::= NK_ID */ yytestcase(yyruleno==118); - case 119: /* table_alias ::= NK_ID */ yytestcase(yyruleno==119); - case 120: /* column_alias ::= NK_ID */ yytestcase(yyruleno==120); - case 121: /* user_name ::= NK_ID */ yytestcase(yyruleno==121); - case 122: /* index_name ::= NK_ID */ yytestcase(yyruleno==122); -{ yylhsminor.yy209 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy209 = yylhsminor.yy209; + case 117: /* db_name ::= NK_ID */ yytestcase(yyruleno==117); + case 118: /* table_name ::= NK_ID */ yytestcase(yyruleno==118); + case 119: /* column_name ::= NK_ID */ yytestcase(yyruleno==119); + case 120: /* function_name ::= NK_ID */ yytestcase(yyruleno==120); + case 121: /* table_alias ::= NK_ID */ yytestcase(yyruleno==121); + case 122: /* column_alias ::= NK_ID */ yytestcase(yyruleno==122); + case 123: /* user_name ::= NK_ID */ yytestcase(yyruleno==123); + case 124: /* index_name ::= NK_ID */ yytestcase(yyruleno==124); +{ yylhsminor.yy5 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy5 = yylhsminor.yy5; break; - case 13: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy281, &yymsp[-1].minor.yy209, yymsp[0].minor.yy344);} + case 13: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ +{ pCxt->pRootNode = createCreateQnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 14: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy281, &yymsp[0].minor.yy209); } + case 14: /* cmd ::= SHOW QNODES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL); } break; - case 15: /* cmd ::= SHOW DATABASES */ + case 15: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy25, &yymsp[-1].minor.yy5, yymsp[0].minor.yy68);} + break; + case 16: /* cmd ::= DROP DATABASE exists_opt db_name */ +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy25, &yymsp[0].minor.yy5); } + break; + case 17: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL); } break; - case 16: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy209);} + case 18: /* cmd ::= USE db_name */ +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy5);} break; - case 17: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy281 = true; } + case 19: /* not_exists_opt ::= IF NOT EXISTS */ +{ yymsp[-2].minor.yy25 = true; } break; - case 18: /* not_exists_opt ::= */ - case 20: /* exists_opt ::= */ yytestcase(yyruleno==20); - case 185: /* set_quantifier_opt ::= */ yytestcase(yyruleno==185); -{ yymsp[1].minor.yy281 = false; } + case 20: /* not_exists_opt ::= */ + case 22: /* exists_opt ::= */ yytestcase(yyruleno==22); + case 187: /* set_quantifier_opt ::= */ yytestcase(yyruleno==187); +{ yymsp[1].minor.yy25 = false; } break; - case 19: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy281 = true; } + case 21: /* exists_opt ::= IF EXISTS */ +{ yymsp[-1].minor.yy25 = true; } break; - case 21: /* db_options ::= */ -{ yymsp[1].minor.yy344 = createDefaultDatabaseOptions(pCxt); } + case 23: /* db_options ::= */ +{ yymsp[1].minor.yy68 = createDefaultDatabaseOptions(pCxt); } break; - case 22: /* db_options ::= db_options BLOCKS NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_BLOCKS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 24: /* db_options ::= db_options BLOCKS NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_BLOCKS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 23: /* db_options ::= db_options CACHE NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_CACHE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 25: /* db_options ::= db_options CACHE NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_CACHE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 24: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 26: /* db_options ::= db_options CACHELAST NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 25: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 27: /* db_options ::= db_options COMP NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 26: /* db_options ::= db_options DAYS NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 28: /* db_options ::= db_options DAYS NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 27: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 29: /* db_options ::= db_options FSYNC NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 28: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 30: /* db_options ::= db_options MAXROWS NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 29: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 31: /* db_options ::= db_options MINROWS NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 30: /* db_options ::= db_options KEEP NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_KEEP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 32: /* db_options ::= db_options KEEP NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_KEEP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 31: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 33: /* db_options ::= db_options PRECISION NK_STRING */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 32: /* db_options ::= db_options QUORUM NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_QUORUM, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 34: /* db_options ::= db_options QUORUM NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_QUORUM, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 33: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 35: /* db_options ::= db_options REPLICA NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 34: /* db_options ::= db_options TTL NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 36: /* db_options ::= db_options TTL NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 35: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 37: /* db_options ::= db_options WAL NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 36: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 38: /* db_options ::= db_options VGROUPS NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 37: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_SINGLESTABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 39: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_SINGLESTABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 38: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ -{ yylhsminor.yy344 = setDatabaseOption(pCxt, yymsp[-2].minor.yy344, DB_OPTION_STREAMMODE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 40: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ +{ yylhsminor.yy68 = setDatabaseOption(pCxt, yymsp[-2].minor.yy68, DB_OPTION_STREAMMODE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 39: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 41: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==41); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy281, yymsp[-5].minor.yy344, yymsp[-3].minor.yy280, yymsp[-1].minor.yy280, yymsp[0].minor.yy344);} + case 41: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 43: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==43); +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy25, yymsp[-5].minor.yy68, yymsp[-3].minor.yy40, yymsp[-1].minor.yy40, yymsp[0].minor.yy68);} break; - case 40: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy280);} + case 42: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy40);} break; - case 42: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy280); } + case 44: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy40); } break; - case 43: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy281, yymsp[0].minor.yy344); } + case 45: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy25, yymsp[0].minor.yy68); } break; - case 44: /* cmd ::= SHOW TABLES */ + case 46: /* cmd ::= SHOW TABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, NULL); } break; - case 45: /* cmd ::= SHOW STABLES */ + case 47: /* cmd ::= SHOW STABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, NULL); } break; - case 46: /* multi_create_clause ::= create_subtable_clause */ - case 49: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==49); - case 56: /* column_def_list ::= column_def */ yytestcase(yyruleno==56); - case 91: /* col_name_list ::= col_name */ yytestcase(yyruleno==91); - case 99: /* func_list ::= func */ yytestcase(yyruleno==99); - case 190: /* select_sublist ::= select_item */ yytestcase(yyruleno==190); - case 237: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==237); -{ yylhsminor.yy280 = createNodeList(pCxt, yymsp[0].minor.yy344); } - yymsp[0].minor.yy280 = yylhsminor.yy280; + case 48: /* multi_create_clause ::= create_subtable_clause */ + case 51: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==51); + case 58: /* column_def_list ::= column_def */ yytestcase(yyruleno==58); + case 93: /* col_name_list ::= col_name */ yytestcase(yyruleno==93); + case 101: /* func_list ::= func */ yytestcase(yyruleno==101); + case 192: /* select_sublist ::= select_item */ yytestcase(yyruleno==192); + case 239: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==239); +{ yylhsminor.yy40 = createNodeList(pCxt, yymsp[0].minor.yy68); } + yymsp[0].minor.yy40 = yylhsminor.yy40; break; - case 47: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 50: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==50); -{ yylhsminor.yy280 = addNodeToList(pCxt, yymsp[-1].minor.yy280, yymsp[0].minor.yy344); } - yymsp[-1].minor.yy280 = yylhsminor.yy280; + case 49: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 52: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==52); +{ yylhsminor.yy40 = addNodeToList(pCxt, yymsp[-1].minor.yy40, yymsp[0].minor.yy68); } + yymsp[-1].minor.yy40 = yylhsminor.yy40; break; - case 48: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ -{ yylhsminor.yy344 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy281, yymsp[-7].minor.yy344, yymsp[-5].minor.yy344, yymsp[-4].minor.yy280, yymsp[-1].minor.yy280); } - yymsp[-8].minor.yy344 = yylhsminor.yy344; + case 50: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ +{ yylhsminor.yy68 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy25, yymsp[-7].minor.yy68, yymsp[-5].minor.yy68, yymsp[-4].minor.yy40, yymsp[-1].minor.yy40); } + yymsp[-8].minor.yy68 = yylhsminor.yy68; break; - case 51: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy344 = createDropTableClause(pCxt, yymsp[-1].minor.yy281, yymsp[0].minor.yy344); } - yymsp[-1].minor.yy344 = yylhsminor.yy344; + case 53: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy68 = createDropTableClause(pCxt, yymsp[-1].minor.yy25, yymsp[0].minor.yy68); } + yymsp[-1].minor.yy68 = yylhsminor.yy68; break; - case 52: /* specific_tags_opt ::= */ - case 83: /* tags_def_opt ::= */ yytestcase(yyruleno==83); - case 198: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==198); - case 215: /* group_by_clause_opt ::= */ yytestcase(yyruleno==215); - case 225: /* order_by_clause_opt ::= */ yytestcase(yyruleno==225); -{ yymsp[1].minor.yy280 = NULL; } + case 54: /* specific_tags_opt ::= */ + case 85: /* tags_def_opt ::= */ yytestcase(yyruleno==85); + case 200: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==200); + case 217: /* group_by_clause_opt ::= */ yytestcase(yyruleno==217); + case 227: /* order_by_clause_opt ::= */ yytestcase(yyruleno==227); +{ yymsp[1].minor.yy40 = NULL; } break; - case 53: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy280 = yymsp[-1].minor.yy280; } + case 55: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy40 = yymsp[-1].minor.yy40; } break; - case 54: /* full_table_name ::= table_name */ -{ yylhsminor.yy344 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy209, NULL); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 56: /* full_table_name ::= table_name */ +{ yylhsminor.yy68 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy5, NULL); } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 55: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy344 = createRealTableNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209, NULL); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 57: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy68 = createRealTableNode(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy5, NULL); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 57: /* column_def_list ::= column_def_list NK_COMMA column_def */ - case 92: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==92); - case 100: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==100); - case 191: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==191); - case 238: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==238); -{ yylhsminor.yy280 = addNodeToList(pCxt, yymsp[-2].minor.yy280, yymsp[0].minor.yy344); } - yymsp[-2].minor.yy280 = yylhsminor.yy280; + case 59: /* column_def_list ::= column_def_list NK_COMMA column_def */ + case 94: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==94); + case 102: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==102); + case 193: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==193); + case 240: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==240); +{ yylhsminor.yy40 = addNodeToList(pCxt, yymsp[-2].minor.yy40, yymsp[0].minor.yy68); } + yymsp[-2].minor.yy40 = yylhsminor.yy40; break; - case 58: /* column_def ::= column_name type_name */ -{ yylhsminor.yy344 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304, NULL); } - yymsp[-1].minor.yy344 = yylhsminor.yy344; + case 60: /* column_def ::= column_name type_name */ +{ yylhsminor.yy68 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy5, yymsp[0].minor.yy372, NULL); } + yymsp[-1].minor.yy68 = yylhsminor.yy68; break; - case 59: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy344 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-2].minor.yy304, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy344 = yylhsminor.yy344; + case 61: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy68 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy5, yymsp[-2].minor.yy372, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy68 = yylhsminor.yy68; break; - case 60: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 62: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 61: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 63: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 62: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 64: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 63: /* type_name ::= INT */ - case 64: /* type_name ::= INTEGER */ yytestcase(yyruleno==64); -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_INT); } + case 65: /* type_name ::= INT */ + case 66: /* type_name ::= INTEGER */ yytestcase(yyruleno==66); +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 65: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 67: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 66: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 68: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 67: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 69: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 68: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 70: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy372 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 69: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 71: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 70: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 72: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy372 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 71: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 73: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy372 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 72: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 74: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy372 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 73: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_UINT); } + case 75: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy372 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 74: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 76: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy372 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 75: /* type_name ::= JSON */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_JSON); } + case 77: /* type_name ::= JSON */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 76: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 78: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy372 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 77: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 79: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 78: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 80: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 79: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 81: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy372 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 80: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 82: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy372 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 81: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 83: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy372 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 82: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 84: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy372 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 84: /* tags_def_opt ::= tags_def */ - case 189: /* select_list ::= select_sublist */ yytestcase(yyruleno==189); -{ yylhsminor.yy280 = yymsp[0].minor.yy280; } - yymsp[0].minor.yy280 = yylhsminor.yy280; + case 86: /* tags_def_opt ::= tags_def */ + case 191: /* select_list ::= select_sublist */ yytestcase(yyruleno==191); +{ yylhsminor.yy40 = yymsp[0].minor.yy40; } + yymsp[0].minor.yy40 = yylhsminor.yy40; break; - case 85: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy280 = yymsp[-1].minor.yy280; } + case 87: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy40 = yymsp[-1].minor.yy40; } break; - case 86: /* table_options ::= */ -{ yymsp[1].minor.yy344 = createDefaultTableOptions(pCxt);} + case 88: /* table_options ::= */ +{ yymsp[1].minor.yy68 = createDefaultTableOptions(pCxt);} break; - case 87: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy344 = setTableOption(pCxt, yymsp[-2].minor.yy344, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 89: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy68 = setTableOption(pCxt, yymsp[-2].minor.yy68, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 88: /* table_options ::= table_options KEEP NK_INTEGER */ -{ yylhsminor.yy344 = setTableOption(pCxt, yymsp[-2].minor.yy344, TABLE_OPTION_KEEP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 90: /* table_options ::= table_options KEEP NK_INTEGER */ +{ yylhsminor.yy68 = setTableOption(pCxt, yymsp[-2].minor.yy68, TABLE_OPTION_KEEP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 89: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy344 = setTableOption(pCxt, yymsp[-2].minor.yy344, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 91: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy68 = setTableOption(pCxt, yymsp[-2].minor.yy68, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 90: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy344 = setTableSmaOption(pCxt, yymsp[-4].minor.yy344, yymsp[-1].minor.yy280); } - yymsp[-4].minor.yy344 = yylhsminor.yy344; + case 92: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy68 = setTableSmaOption(pCxt, yymsp[-4].minor.yy68, yymsp[-1].minor.yy40); } + yymsp[-4].minor.yy68 = yylhsminor.yy68; break; - case 93: /* col_name ::= column_name */ -{ yylhsminor.yy344 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy209); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 95: /* col_name ::= column_name */ +{ yylhsminor.yy68 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy5); } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 94: /* cmd ::= CREATE SMA INDEX index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, &yymsp[-3].minor.yy209, &yymsp[-1].minor.yy209, NULL, yymsp[0].minor.yy344); } + case 96: /* cmd ::= CREATE SMA INDEX index_name ON table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, &yymsp[-3].minor.yy5, &yymsp[-1].minor.yy5, NULL, yymsp[0].minor.yy68); } break; - case 95: /* cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, &yymsp[-5].minor.yy209, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy280, NULL); } + case 97: /* cmd ::= CREATE FULLTEXT INDEX index_name ON table_name NK_LP col_name_list NK_RP */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, &yymsp[-5].minor.yy5, &yymsp[-3].minor.yy5, yymsp[-1].minor.yy40, NULL); } break; - case 96: /* index_options ::= */ - case 196: /* where_clause_opt ::= */ yytestcase(yyruleno==196); - case 200: /* twindow_clause_opt ::= */ yytestcase(yyruleno==200); - case 205: /* sliding_opt ::= */ yytestcase(yyruleno==205); - case 207: /* fill_opt ::= */ yytestcase(yyruleno==207); - case 219: /* having_clause_opt ::= */ yytestcase(yyruleno==219); - case 227: /* slimit_clause_opt ::= */ yytestcase(yyruleno==227); - case 231: /* limit_clause_opt ::= */ yytestcase(yyruleno==231); -{ yymsp[1].minor.yy344 = NULL; } + case 98: /* index_options ::= */ + case 198: /* where_clause_opt ::= */ yytestcase(yyruleno==198); + case 202: /* twindow_clause_opt ::= */ yytestcase(yyruleno==202); + case 207: /* sliding_opt ::= */ yytestcase(yyruleno==207); + case 209: /* fill_opt ::= */ yytestcase(yyruleno==209); + case 221: /* having_clause_opt ::= */ yytestcase(yyruleno==221); + case 229: /* slimit_clause_opt ::= */ yytestcase(yyruleno==229); + case 233: /* limit_clause_opt ::= */ yytestcase(yyruleno==233); +{ yymsp[1].minor.yy68 = NULL; } break; - case 97: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy344 = createIndexOption(pCxt, yymsp[-6].minor.yy280, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), NULL, yymsp[0].minor.yy344); } + case 99: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ +{ yymsp[-8].minor.yy68 = createIndexOption(pCxt, yymsp[-6].minor.yy40, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), NULL, yymsp[0].minor.yy68); } break; - case 98: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ -{ yymsp[-10].minor.yy344 = createIndexOption(pCxt, yymsp[-8].minor.yy280, releaseRawExprNode(pCxt, yymsp[-4].minor.yy344), releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), yymsp[0].minor.yy344); } + case 100: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ +{ yymsp[-10].minor.yy68 = createIndexOption(pCxt, yymsp[-8].minor.yy40, releaseRawExprNode(pCxt, yymsp[-4].minor.yy68), releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), yymsp[0].minor.yy68); } break; - case 101: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy344 = createFunctionNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy280); } - yymsp[-3].minor.yy344 = yylhsminor.yy344; + case 103: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy68 = createFunctionNode(pCxt, &yymsp[-3].minor.yy5, yymsp[-1].minor.yy40); } + yymsp[-3].minor.yy68 = yylhsminor.yy68; break; - case 102: /* cmd ::= SHOW VGROUPS */ + case 104: /* cmd ::= SHOW VGROUPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, NULL); } break; - case 103: /* cmd ::= SHOW db_name NK_DOT VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, &yymsp[-2].minor.yy209); } + case 105: /* cmd ::= SHOW db_name NK_DOT VGROUPS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, &yymsp[-2].minor.yy5); } break; - case 104: /* cmd ::= SHOW MNODES */ + case 106: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL); } break; - case 105: /* cmd ::= query_expression */ -{ pCxt->pRootNode = yymsp[0].minor.yy344; } + case 107: /* cmd ::= query_expression */ +{ pCxt->pRootNode = yymsp[0].minor.yy68; } break; - case 106: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy344 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 108: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy68 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 107: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy344 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 109: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy68 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 108: /* literal ::= NK_STRING */ -{ yylhsminor.yy344 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 110: /* literal ::= NK_STRING */ +{ yylhsminor.yy68 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 109: /* literal ::= NK_BOOL */ -{ yylhsminor.yy344 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 111: /* literal ::= NK_BOOL */ +{ yylhsminor.yy68 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 110: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy344 = yylhsminor.yy344; + case 112: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy68 = yylhsminor.yy68; break; - case 111: /* literal ::= duration_literal */ - case 123: /* expression ::= literal */ yytestcase(yyruleno==123); - case 124: /* expression ::= column_reference */ yytestcase(yyruleno==124); - case 127: /* expression ::= subquery */ yytestcase(yyruleno==127); - case 159: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==159); - case 163: /* boolean_primary ::= predicate */ yytestcase(yyruleno==163); - case 165: /* common_expression ::= expression */ yytestcase(yyruleno==165); - case 166: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==166); - case 168: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==168); - case 170: /* table_reference ::= table_primary */ yytestcase(yyruleno==170); - case 171: /* table_reference ::= joined_table */ yytestcase(yyruleno==171); - case 175: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==175); - case 222: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==222); - case 224: /* query_primary ::= query_specification */ yytestcase(yyruleno==224); -{ yylhsminor.yy344 = yymsp[0].minor.yy344; } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 113: /* literal ::= duration_literal */ + case 125: /* expression ::= literal */ yytestcase(yyruleno==125); + case 126: /* expression ::= column_reference */ yytestcase(yyruleno==126); + case 129: /* expression ::= subquery */ yytestcase(yyruleno==129); + case 161: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==161); + case 165: /* boolean_primary ::= predicate */ yytestcase(yyruleno==165); + case 167: /* common_expression ::= expression */ yytestcase(yyruleno==167); + case 168: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==168); + case 170: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==170); + case 172: /* table_reference ::= table_primary */ yytestcase(yyruleno==172); + case 173: /* table_reference ::= joined_table */ yytestcase(yyruleno==173); + case 177: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==177); + case 224: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==224); + case 226: /* query_primary ::= query_specification */ yytestcase(yyruleno==226); +{ yylhsminor.yy68 = yymsp[0].minor.yy68; } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 112: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy344 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 114: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy68 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 113: /* literal_list ::= literal */ - case 136: /* expression_list ::= expression */ yytestcase(yyruleno==136); -{ yylhsminor.yy280 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy344)); } - yymsp[0].minor.yy280 = yylhsminor.yy280; + case 115: /* literal_list ::= literal */ + case 138: /* expression_list ::= expression */ yytestcase(yyruleno==138); +{ yylhsminor.yy40 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy68)); } + yymsp[0].minor.yy40 = yylhsminor.yy40; break; - case 114: /* literal_list ::= literal_list NK_COMMA literal */ - case 137: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==137); -{ yylhsminor.yy280 = addNodeToList(pCxt, yymsp[-2].minor.yy280, releaseRawExprNode(pCxt, yymsp[0].minor.yy344)); } - yymsp[-2].minor.yy280 = yylhsminor.yy280; + case 116: /* literal_list ::= literal_list NK_COMMA literal */ + case 139: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==139); +{ yylhsminor.yy40 = addNodeToList(pCxt, yymsp[-2].minor.yy40, releaseRawExprNode(pCxt, yymsp[0].minor.yy68)); } + yymsp[-2].minor.yy40 = yylhsminor.yy40; break; - case 125: /* expression ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy280)); } - yymsp[-3].minor.yy344 = yylhsminor.yy344; + case 127: /* expression ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy5, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy5, yymsp[-1].minor.yy40)); } + yymsp[-3].minor.yy68 = yylhsminor.yy68; break; - case 126: /* expression ::= function_name NK_LP NK_STAR NK_RP */ -{ yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy209, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } - yymsp[-3].minor.yy344 = yylhsminor.yy344; + case 128: /* expression ::= function_name NK_LP NK_STAR NK_RP */ +{ yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy5, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy5, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } + yymsp[-3].minor.yy68 = yylhsminor.yy68; break; - case 128: /* expression ::= NK_LP expression NK_RP */ - case 164: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==164); -{ yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy344)); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 130: /* expression ::= NK_LP expression NK_RP */ + case 166: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==166); +{ yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy68)); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 129: /* expression ::= NK_PLUS expression */ + case 131: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy344)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy68)); } - yymsp[-1].minor.yy344 = yylhsminor.yy344; + yymsp[-1].minor.yy68 = yylhsminor.yy68; break; - case 130: /* expression ::= NK_MINUS expression */ + case 132: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[0].minor.yy344), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[0].minor.yy68), NULL)); } - yymsp[-1].minor.yy344 = yylhsminor.yy344; + yymsp[-1].minor.yy68 = yylhsminor.yy68; break; - case 131: /* expression ::= expression NK_PLUS expression */ + case 133: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 132: /* expression ::= expression NK_MINUS expression */ + case 134: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 133: /* expression ::= expression NK_STAR expression */ + case 135: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 134: /* expression ::= expression NK_SLASH expression */ + case 136: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 135: /* expression ::= expression NK_REM expression */ + case 137: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 138: /* column_reference ::= column_name */ -{ yylhsminor.yy344 = createRawExprNode(pCxt, &yymsp[0].minor.yy209, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy209)); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 140: /* column_reference ::= column_name */ +{ yylhsminor.yy68 = createRawExprNode(pCxt, &yymsp[0].minor.yy5, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy5)); } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 139: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209, createColumnNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209)); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 141: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy5, createColumnNode(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy5)); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 140: /* predicate ::= expression compare_op expression */ - case 145: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==145); + case 142: /* predicate ::= expression compare_op expression */ + case 147: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==147); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy236, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy416, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 141: /* predicate ::= expression BETWEEN expression AND expression */ + case 143: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy344), releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy68), releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-4].minor.yy344 = yylhsminor.yy344; + yymsp[-4].minor.yy68 = yylhsminor.yy68; break; - case 142: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 144: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[-5].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[-5].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-5].minor.yy344 = yylhsminor.yy344; + yymsp[-5].minor.yy68 = yylhsminor.yy68; break; - case 143: /* predicate ::= expression IS NULL */ + case 145: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), NULL)); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 144: /* predicate ::= expression IS NOT NULL */ + case 146: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy344), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy68), NULL)); } - yymsp[-3].minor.yy344 = yylhsminor.yy344; + yymsp[-3].minor.yy68 = yylhsminor.yy68; break; - case 146: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy236 = OP_TYPE_LOWER_THAN; } + case 148: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy416 = OP_TYPE_LOWER_THAN; } break; - case 147: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy236 = OP_TYPE_GREATER_THAN; } + case 149: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy416 = OP_TYPE_GREATER_THAN; } break; - case 148: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy236 = OP_TYPE_LOWER_EQUAL; } + case 150: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy416 = OP_TYPE_LOWER_EQUAL; } break; - case 149: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy236 = OP_TYPE_GREATER_EQUAL; } + case 151: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy416 = OP_TYPE_GREATER_EQUAL; } break; - case 150: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy236 = OP_TYPE_NOT_EQUAL; } + case 152: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy416 = OP_TYPE_NOT_EQUAL; } break; - case 151: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy236 = OP_TYPE_EQUAL; } + case 153: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy416 = OP_TYPE_EQUAL; } break; - case 152: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy236 = OP_TYPE_LIKE; } + case 154: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy416 = OP_TYPE_LIKE; } break; - case 153: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy236 = OP_TYPE_NOT_LIKE; } + case 155: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy416 = OP_TYPE_NOT_LIKE; } break; - case 154: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy236 = OP_TYPE_MATCH; } + case 156: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy416 = OP_TYPE_MATCH; } break; - case 155: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy236 = OP_TYPE_NMATCH; } + case 157: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy416 = OP_TYPE_NMATCH; } break; - case 156: /* in_op ::= IN */ -{ yymsp[0].minor.yy236 = OP_TYPE_IN; } + case 158: /* in_op ::= IN */ +{ yymsp[0].minor.yy416 = OP_TYPE_IN; } break; - case 157: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy236 = OP_TYPE_NOT_IN; } + case 159: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy416 = OP_TYPE_NOT_IN; } break; - case 158: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy280)); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 160: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy40)); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 160: /* boolean_value_expression ::= NOT boolean_primary */ + case 162: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy344), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy68), NULL)); } - yymsp[-1].minor.yy344 = yylhsminor.yy344; + yymsp[-1].minor.yy68 = yylhsminor.yy68; break; - case 161: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 163: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 162: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 164: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy344); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy68); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 167: /* from_clause ::= FROM table_reference_list */ - case 197: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==197); - case 220: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==220); -{ yymsp[-1].minor.yy344 = yymsp[0].minor.yy344; } + case 169: /* from_clause ::= FROM table_reference_list */ + case 199: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==199); + case 222: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==222); +{ yymsp[-1].minor.yy68 = yymsp[0].minor.yy68; } break; - case 169: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy344 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy344, yymsp[0].minor.yy344, NULL); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 171: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy68 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy68, yymsp[0].minor.yy68, NULL); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 172: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy344 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-1].minor.yy344 = yylhsminor.yy344; + case 174: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy68 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy5, &yymsp[0].minor.yy5); } + yymsp[-1].minor.yy68 = yylhsminor.yy68; break; - case 173: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy344 = createRealTableNode(pCxt, &yymsp[-3].minor.yy209, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-3].minor.yy344 = yylhsminor.yy344; + case 175: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy68 = createRealTableNode(pCxt, &yymsp[-3].minor.yy5, &yymsp[-1].minor.yy5, &yymsp[0].minor.yy5); } + yymsp[-3].minor.yy68 = yylhsminor.yy68; break; - case 174: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy344 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy344), &yymsp[0].minor.yy209); } - yymsp[-1].minor.yy344 = yylhsminor.yy344; + case 176: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy68 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy68), &yymsp[0].minor.yy5); } + yymsp[-1].minor.yy68 = yylhsminor.yy68; break; - case 176: /* alias_opt ::= */ -{ yymsp[1].minor.yy209 = nil_token; } + case 178: /* alias_opt ::= */ +{ yymsp[1].minor.yy5 = nil_token; } break; - case 177: /* alias_opt ::= table_alias */ -{ yylhsminor.yy209 = yymsp[0].minor.yy209; } - yymsp[0].minor.yy209 = yylhsminor.yy209; + case 179: /* alias_opt ::= table_alias */ +{ yylhsminor.yy5 = yymsp[0].minor.yy5; } + yymsp[0].minor.yy5 = yylhsminor.yy5; break; - case 178: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy209 = yymsp[0].minor.yy209; } + case 180: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy5 = yymsp[0].minor.yy5; } break; - case 179: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 180: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==180); -{ yymsp[-2].minor.yy344 = yymsp[-1].minor.yy344; } + case 181: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 182: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==182); +{ yymsp[-2].minor.yy68 = yymsp[-1].minor.yy68; } break; - case 181: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy344 = createJoinTableNode(pCxt, yymsp[-4].minor.yy36, yymsp[-5].minor.yy344, yymsp[-2].minor.yy344, yymsp[0].minor.yy344); } - yymsp[-5].minor.yy344 = yylhsminor.yy344; + case 183: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy68 = createJoinTableNode(pCxt, yymsp[-4].minor.yy92, yymsp[-5].minor.yy68, yymsp[-2].minor.yy68, yymsp[0].minor.yy68); } + yymsp[-5].minor.yy68 = yylhsminor.yy68; break; - case 182: /* join_type ::= */ -{ yymsp[1].minor.yy36 = JOIN_TYPE_INNER; } + case 184: /* join_type ::= */ +{ yymsp[1].minor.yy92 = JOIN_TYPE_INNER; } break; - case 183: /* join_type ::= INNER */ -{ yymsp[0].minor.yy36 = JOIN_TYPE_INNER; } + case 185: /* join_type ::= INNER */ +{ yymsp[0].minor.yy92 = JOIN_TYPE_INNER; } break; - case 184: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 186: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-8].minor.yy344 = createSelectStmt(pCxt, yymsp[-7].minor.yy281, yymsp[-6].minor.yy280, yymsp[-5].minor.yy344); - yymsp[-8].minor.yy344 = addWhereClause(pCxt, yymsp[-8].minor.yy344, yymsp[-4].minor.yy344); - yymsp[-8].minor.yy344 = addPartitionByClause(pCxt, yymsp[-8].minor.yy344, yymsp[-3].minor.yy280); - yymsp[-8].minor.yy344 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy344, yymsp[-2].minor.yy344); - yymsp[-8].minor.yy344 = addGroupByClause(pCxt, yymsp[-8].minor.yy344, yymsp[-1].minor.yy280); - yymsp[-8].minor.yy344 = addHavingClause(pCxt, yymsp[-8].minor.yy344, yymsp[0].minor.yy344); + yymsp[-8].minor.yy68 = createSelectStmt(pCxt, yymsp[-7].minor.yy25, yymsp[-6].minor.yy40, yymsp[-5].minor.yy68); + yymsp[-8].minor.yy68 = addWhereClause(pCxt, yymsp[-8].minor.yy68, yymsp[-4].minor.yy68); + yymsp[-8].minor.yy68 = addPartitionByClause(pCxt, yymsp[-8].minor.yy68, yymsp[-3].minor.yy40); + yymsp[-8].minor.yy68 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy68, yymsp[-2].minor.yy68); + yymsp[-8].minor.yy68 = addGroupByClause(pCxt, yymsp[-8].minor.yy68, yymsp[-1].minor.yy40); + yymsp[-8].minor.yy68 = addHavingClause(pCxt, yymsp[-8].minor.yy68, yymsp[0].minor.yy68); } break; - case 186: /* set_quantifier_opt ::= DISTINCT */ -{ yymsp[0].minor.yy281 = true; } + case 188: /* set_quantifier_opt ::= DISTINCT */ +{ yymsp[0].minor.yy25 = true; } break; - case 187: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy281 = false; } + case 189: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy25 = false; } break; - case 188: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy280 = NULL; } + case 190: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy40 = NULL; } break; - case 192: /* select_item ::= common_expression */ + case 194: /* select_item ::= common_expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy344); - yylhsminor.yy344 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy344), &t); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy68); + yylhsminor.yy68 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy68), &t); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 193: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy344 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy344), &yymsp[0].minor.yy209); } - yymsp[-1].minor.yy344 = yylhsminor.yy344; + case 195: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy68 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy68), &yymsp[0].minor.yy5); } + yymsp[-1].minor.yy68 = yylhsminor.yy68; break; - case 194: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy344 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), &yymsp[0].minor.yy209); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 196: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy68 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), &yymsp[0].minor.yy5); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 195: /* select_item ::= table_name NK_DOT NK_STAR */ -{ yylhsminor.yy344 = createColumnNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 197: /* select_item ::= table_name NK_DOT NK_STAR */ +{ yylhsminor.yy68 = createColumnNode(pCxt, &yymsp[-2].minor.yy5, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 199: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 216: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==216); - case 226: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==226); -{ yymsp[-2].minor.yy280 = yymsp[0].minor.yy280; } + case 201: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 218: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==218); + case 228: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==228); +{ yymsp[-2].minor.yy40 = yymsp[0].minor.yy40; } break; - case 201: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy344 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy344), &yymsp[-1].minor.yy0); } + case 203: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy68 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy68), &yymsp[-1].minor.yy0); } break; - case 202: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ -{ yymsp[-3].minor.yy344 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy344)); } + case 204: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ +{ yymsp[-3].minor.yy68 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy68)); } break; - case 203: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy344 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy344), NULL, yymsp[-1].minor.yy344, yymsp[0].minor.yy344); } + case 205: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy68 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy68), NULL, yymsp[-1].minor.yy68, yymsp[0].minor.yy68); } break; - case 204: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy344 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy344), releaseRawExprNode(pCxt, yymsp[-3].minor.yy344), yymsp[-1].minor.yy344, yymsp[0].minor.yy344); } + case 206: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy68 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy68), releaseRawExprNode(pCxt, yymsp[-3].minor.yy68), yymsp[-1].minor.yy68, yymsp[0].minor.yy68); } break; - case 206: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy344 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy344); } + case 208: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ +{ yymsp[-3].minor.yy68 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy68); } break; - case 208: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy344 = createFillNode(pCxt, yymsp[-1].minor.yy342, NULL); } + case 210: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy68 = createFillNode(pCxt, yymsp[-1].minor.yy94, NULL); } break; - case 209: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy344 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy280)); } + case 211: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy68 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy40)); } break; - case 210: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy342 = FILL_MODE_NONE; } + case 212: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy94 = FILL_MODE_NONE; } break; - case 211: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy342 = FILL_MODE_PREV; } + case 213: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy94 = FILL_MODE_PREV; } break; - case 212: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy342 = FILL_MODE_NULL; } + case 214: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy94 = FILL_MODE_NULL; } break; - case 213: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy342 = FILL_MODE_LINEAR; } + case 215: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy94 = FILL_MODE_LINEAR; } break; - case 214: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy342 = FILL_MODE_NEXT; } + case 216: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy94 = FILL_MODE_NEXT; } break; - case 217: /* group_by_list ::= expression */ -{ yylhsminor.yy280 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); } - yymsp[0].minor.yy280 = yylhsminor.yy280; + case 219: /* group_by_list ::= expression */ +{ yylhsminor.yy40 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } + yymsp[0].minor.yy40 = yylhsminor.yy40; break; - case 218: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy280 = addNodeToList(pCxt, yymsp[-2].minor.yy280, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy344))); } - yymsp[-2].minor.yy280 = yylhsminor.yy280; + case 220: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy40 = addNodeToList(pCxt, yymsp[-2].minor.yy40, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy68))); } + yymsp[-2].minor.yy40 = yylhsminor.yy40; break; - case 221: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 223: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy344 = addOrderByClause(pCxt, yymsp[-3].minor.yy344, yymsp[-2].minor.yy280); - yylhsminor.yy344 = addSlimitClause(pCxt, yylhsminor.yy344, yymsp[-1].minor.yy344); - yylhsminor.yy344 = addLimitClause(pCxt, yylhsminor.yy344, yymsp[0].minor.yy344); + yylhsminor.yy68 = addOrderByClause(pCxt, yymsp[-3].minor.yy68, yymsp[-2].minor.yy40); + yylhsminor.yy68 = addSlimitClause(pCxt, yylhsminor.yy68, yymsp[-1].minor.yy68); + yylhsminor.yy68 = addLimitClause(pCxt, yylhsminor.yy68, yymsp[0].minor.yy68); } - yymsp[-3].minor.yy344 = yylhsminor.yy344; + yymsp[-3].minor.yy68 = yylhsminor.yy68; break; - case 223: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy344 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy344, yymsp[0].minor.yy344); } - yymsp[-3].minor.yy344 = yylhsminor.yy344; + case 225: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy68 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy68, yymsp[0].minor.yy68); } + yymsp[-3].minor.yy68 = yylhsminor.yy68; break; - case 228: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 232: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==232); -{ yymsp[-1].minor.yy344 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 230: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 234: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==234); +{ yymsp[-1].minor.yy68 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 229: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 233: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==233); -{ yymsp[-3].minor.yy344 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 231: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 235: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==235); +{ yymsp[-3].minor.yy68 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 230: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 234: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==234); -{ yymsp[-3].minor.yy344 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 232: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 236: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==236); +{ yymsp[-3].minor.yy68 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 235: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy344 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy344); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 237: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy68 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy68); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 236: /* search_condition ::= common_expression */ -{ yylhsminor.yy344 = releaseRawExprNode(pCxt, yymsp[0].minor.yy344); } - yymsp[0].minor.yy344 = yylhsminor.yy344; + case 238: /* search_condition ::= common_expression */ +{ yylhsminor.yy68 = releaseRawExprNode(pCxt, yymsp[0].minor.yy68); } + yymsp[0].minor.yy68 = yylhsminor.yy68; break; - case 239: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy344 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy344), yymsp[-1].minor.yy2, yymsp[0].minor.yy217); } - yymsp[-2].minor.yy344 = yylhsminor.yy344; + case 241: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy68 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy68), yymsp[-1].minor.yy54, yymsp[0].minor.yy53); } + yymsp[-2].minor.yy68 = yylhsminor.yy68; break; - case 240: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy2 = ORDER_ASC; } + case 242: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy54 = ORDER_ASC; } break; - case 241: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy2 = ORDER_ASC; } + case 243: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy54 = ORDER_ASC; } break; - case 242: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy2 = ORDER_DESC; } + case 244: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy54 = ORDER_DESC; } break; - case 243: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy217 = NULL_ORDER_DEFAULT; } + case 245: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy53 = NULL_ORDER_DEFAULT; } break; - case 244: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_FIRST; } + case 246: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy53 = NULL_ORDER_FIRST; } break; - case 245: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_LAST; } + case 247: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy53 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/parser/test/parserAstTest.cpp b/source/libs/parser/test/parserAstTest.cpp index 119e94dde9..259c4712ba 100644 --- a/source/libs/parser/test/parserAstTest.cpp +++ b/source/libs/parser/test/parserAstTest.cpp @@ -405,3 +405,10 @@ TEST_F(ParserTest, createSmaIndex) { bind("create sma index index1 on t1 function(max(c1), min(c3 + 10), sum(c4)) INTERVAL(10s)"); ASSERT_TRUE(run()); } + +TEST_F(ParserTest, createQnode) { + setDatabase("root", "test"); + + bind("create qnode on dnode 1"); + ASSERT_TRUE(run()); +}