diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 83de5b6918..73c15d508c 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -138,55 +138,59 @@ #define TK_INTERVAL 120 #define TK_TOPIC 121 #define TK_AS 122 -#define TK_NK_BOOL 123 -#define TK_NULL 124 -#define TK_NK_VARIABLE 125 -#define TK_NK_UNDERLINE 126 -#define TK_ROWTS 127 -#define TK_TBNAME 128 -#define TK_QSTARTTS 129 -#define TK_QENDTS 130 -#define TK_WSTARTTS 131 -#define TK_WENDTS 132 -#define TK_WDURATION 133 -#define TK_BETWEEN 134 -#define TK_IS 135 -#define TK_NK_LT 136 -#define TK_NK_GT 137 -#define TK_NK_LE 138 -#define TK_NK_GE 139 -#define TK_NK_NE 140 -#define TK_MATCH 141 -#define TK_NMATCH 142 -#define TK_IN 143 -#define TK_JOIN 144 -#define TK_INNER 145 -#define TK_SELECT 146 -#define TK_DISTINCT 147 -#define TK_WHERE 148 -#define TK_PARTITION 149 -#define TK_BY 150 -#define TK_SESSION 151 -#define TK_STATE_WINDOW 152 -#define TK_SLIDING 153 -#define TK_FILL 154 -#define TK_VALUE 155 -#define TK_NONE 156 -#define TK_PREV 157 -#define TK_LINEAR 158 -#define TK_NEXT 159 -#define TK_GROUP 160 -#define TK_HAVING 161 -#define TK_ORDER 162 -#define TK_SLIMIT 163 -#define TK_SOFFSET 164 -#define TK_LIMIT 165 -#define TK_OFFSET 166 -#define TK_ASC 167 -#define TK_DESC 168 -#define TK_NULLS 169 -#define TK_FIRST 170 -#define TK_LAST 171 +#define TK_EXPLAIN 123 +#define TK_ANALYZE 124 +#define TK_VERBOSE 125 +#define TK_NK_BOOL 126 +#define TK_RATIO 127 +#define TK_NULL 128 +#define TK_NK_VARIABLE 129 +#define TK_NK_UNDERLINE 130 +#define TK_ROWTS 131 +#define TK_TBNAME 132 +#define TK_QSTARTTS 133 +#define TK_QENDTS 134 +#define TK_WSTARTTS 135 +#define TK_WENDTS 136 +#define TK_WDURATION 137 +#define TK_BETWEEN 138 +#define TK_IS 139 +#define TK_NK_LT 140 +#define TK_NK_GT 141 +#define TK_NK_LE 142 +#define TK_NK_GE 143 +#define TK_NK_NE 144 +#define TK_MATCH 145 +#define TK_NMATCH 146 +#define TK_IN 147 +#define TK_JOIN 148 +#define TK_INNER 149 +#define TK_SELECT 150 +#define TK_DISTINCT 151 +#define TK_WHERE 152 +#define TK_PARTITION 153 +#define TK_BY 154 +#define TK_SESSION 155 +#define TK_STATE_WINDOW 156 +#define TK_SLIDING 157 +#define TK_FILL 158 +#define TK_VALUE 159 +#define TK_NONE 160 +#define TK_PREV 161 +#define TK_LINEAR 162 +#define TK_NEXT 163 +#define TK_GROUP 164 +#define TK_HAVING 165 +#define TK_ORDER 166 +#define TK_SLIMIT 167 +#define TK_SOFFSET 168 +#define TK_LIMIT 169 +#define TK_OFFSET 170 +#define TK_ASC 171 +#define TK_DESC 172 +#define TK_NULLS 173 +#define TK_FIRST 174 +#define TK_LAST 175 #define TK_NK_SPACE 300 #define TK_NK_COMMENT 301 diff --git a/include/libs/nodes/nodes.h b/include/libs/nodes/nodes.h index 411d34063c..83c0bccaaf 100644 --- a/include/libs/nodes/nodes.h +++ b/include/libs/nodes/nodes.h @@ -70,6 +70,7 @@ typedef enum ENodeType { QUERY_NODE_DATABASE_OPTIONS, QUERY_NODE_TABLE_OPTIONS, QUERY_NODE_INDEX_OPTIONS, + QUERY_NODE_EXPLAIN_OPTIONS, // Statement nodes are used in parser and planner module. QUERY_NODE_SET_OPERATOR, @@ -99,6 +100,7 @@ typedef enum ENodeType { QUERY_NODE_CREATE_TOPIC_STMT, QUERY_NODE_DROP_TOPIC_STMT, QUERY_NODE_ALTER_LOCAL_STMT, + QUERY_NODE_EXPLAIN_STMT, QUERY_NODE_SHOW_DATABASES_STMT, QUERY_NODE_SHOW_TABLES_STMT, QUERY_NODE_SHOW_STABLES_STMT, diff --git a/include/libs/nodes/plannodes.h b/include/libs/nodes/plannodes.h index a41f10068a..f41e049196 100644 --- a/include/libs/nodes/plannodes.h +++ b/include/libs/nodes/plannodes.h @@ -49,6 +49,7 @@ typedef struct SScanLogicNode { STimeWindow scanRange; SName tableName; bool showRewrite; + double ratio; } SScanLogicNode; typedef struct SJoinLogicNode { @@ -197,6 +198,7 @@ typedef struct STableScanPhysiNode { SScanPhysiNode scan; uint8_t scanFlag; // denotes reversed scan of data or not STimeWindow scanRange; + double ratio; } STableScanPhysiNode; typedef STableScanPhysiNode STableSeqScanPhysiNode; @@ -297,18 +299,23 @@ typedef struct SSubplan { SDataSinkNode* pDataSink; // data of the subplan flow into the datasink } SSubplan; -typedef enum EQueryMode { - QUERY_MODE_NORMAL = 1, - QUERY_MODE_EXPLAIN, - QUERY_MODE_EXPLAIN_AN -} EQueryMode; +typedef enum EExplainMode { + EXPLAIN_MODE_DISABLE = 1, + EXPLAIN_MODE_STATIC, + EXPLAIN_MODE_ANALYZE +} EExplainMode; + +typedef struct SExplainInfo { + EExplainMode mode; + bool verbose; +} SExplainInfo; typedef struct SQueryPlan { ENodeType type; uint64_t queryId; int32_t numOfSubplans; - SNodeList* pSubplans; // Element is SNodeListNode. The execution level of subplan, starting from 0. + SExplainInfo explainInfo; } SQueryPlan; #ifdef __cplusplus diff --git a/include/libs/nodes/querynodes.h b/include/libs/nodes/querynodes.h index 5dc2cd35b7..23a63c1a0b 100644 --- a/include/libs/nodes/querynodes.h +++ b/include/libs/nodes/querynodes.h @@ -131,6 +131,7 @@ typedef struct SRealTableNode { struct STableMeta* pMeta; SVgroupsInfo* pVgroupList; char useDbName[TSDB_DB_NAME_LEN]; + double ratio; } SRealTableNode; typedef struct STempTableNode { @@ -282,6 +283,19 @@ typedef struct SVnodeModifOpStmt { const char* sql; // current sql statement position } SVnodeModifOpStmt; +typedef struct SExplainOptions { + ENodeType type; + bool verbose; + double ratio; +} SExplainOptions; + +typedef struct SExplainStmt { + ENodeType type; + bool analyze; + SExplainOptions* pOptions; + SNode* pQuery; +} SExplainStmt; + void nodesWalkSelectStmt(SSelectStmt* pSelect, ESqlClause clause, FNodeWalker walker, void* pContext); void nodesRewriteSelectStmt(SSelectStmt* pSelect, ESqlClause clause, FNodeRewriter rewriter, void* pContext); diff --git a/include/util/tdef.h b/include/util/tdef.h index 193be4a3e6..43981adea2 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -381,6 +381,14 @@ typedef enum ELogicConditionType { #define TSDB_MAX_DB_DELAY 10 #define TSDB_DEFAULT_DB_DELAY 2 +#define TSDB_DEFAULT_EXPLAIN_VERBOSE false + +#define TSDB_MIN_EXPLAIN_RATIO 0 +#define TSDB_MAX_EXPLAIN_RATIO 1 +#define TSDB_DEFAULT_EXPLAIN_RATIO 0.001 + +#define TSDB_EXPLAIN_RESULT_ROW_SIZE 1024 + #define TSDB_MAX_JOIN_TABLE_NUM 10 #define TSDB_MAX_UNION_CLAUSE 5 diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index fdfef6434b..89b4476899 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -82,6 +82,8 @@ SNodeptr nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(STableOptions)); case QUERY_NODE_INDEX_OPTIONS: return makeNode(type, sizeof(SIndexOptions)); + case QUERY_NODE_EXPLAIN_OPTIONS: + return makeNode(type, sizeof(SExplainOptions)); case QUERY_NODE_SET_OPERATOR: return makeNode(type, sizeof(SSetOperator)); case QUERY_NODE_SELECT_STMT: @@ -132,6 +134,8 @@ SNodeptr nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SCreateTopicStmt)); case QUERY_NODE_DROP_TOPIC_STMT: return makeNode(type, sizeof(SDropTopicStmt)); + case QUERY_NODE_EXPLAIN_STMT: + return makeNode(type, sizeof(SExplainStmt)); case QUERY_NODE_SHOW_DATABASES_STMT: case QUERY_NODE_SHOW_TABLES_STMT: case QUERY_NODE_SHOW_STABLES_STMT: diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 0fe5df183d..029ae7e91f 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -159,6 +159,10 @@ SNode* createDropQnodeStmt(SAstCreateContext* pCxt, const SToken* pDnodeId); SNode* createCreateTopicStmt(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, SNode* pQuery, const SToken* pSubscribeDbName); SNode* createDropTopicStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const SToken* pTopicName); SNode* createAlterLocalStmt(SAstCreateContext* pCxt, const SToken* pConfig, const SToken* pValue); +SNode* createDefaultExplainOptions(SAstCreateContext* pCxt); +SNode* setExplainVerbose(SAstCreateContext* pCxt, SNode* pOptions, const SToken* pVal); +SNode* setExplainRatio(SAstCreateContext* pCxt, SNode* pOptions, const SToken* pVal); +SNode* createExplainStmt(SAstCreateContext* pCxt, bool analyze, SNode* pOptions, SNode* pQuery); #ifdef __cplusplus } diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 7556684e8b..5e2f8e4241 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -339,6 +339,18 @@ cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) AS query_expression(C). cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) AS db_name(C). { pCxt->pRootNode = createCreateTopicStmt(pCxt, A, &B, NULL, &C); } cmd ::= DROP TOPIC exists_opt(A) topic_name(B). { pCxt->pRootNode = createDropTopicStmt(pCxt, A, &B); } +/************************************************ select **************************************************************/ +cmd ::= EXPLAIN analyze_opt(A) explain_options(B) query_expression(C). { pCxt->pRootNode = createExplainStmt(pCxt, A, B, C); } + +%type analyze_opt { bool } +%destructor analyze_opt { } +analyze_opt(A) ::= . { A = false; } +analyze_opt(A) ::= ANALYZE. { A = true; } + +explain_options(A) ::= . { A = createDefaultExplainOptions(pCxt); } +explain_options(A) ::= explain_options(B) VERBOSE NK_BOOL(C). { A = setExplainVerbose(pCxt, B, &C); } +explain_options(A) ::= explain_options(B) RATIO NK_FLOAT(C). { A = setExplainRatio(pCxt, B, &C); } + /************************************************ select **************************************************************/ cmd ::= query_expression(A). { pCxt->pRootNode = A; } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index fcabd4614c..8783872ad8 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1316,3 +1316,30 @@ SNode* createAlterLocalStmt(SAstCreateContext* pCxt, const SToken* pConfig, cons } return (SNode*)pStmt; } + +SNode* createDefaultExplainOptions(SAstCreateContext* pCxt) { + SExplainOptions* pOptions = nodesMakeNode(QUERY_NODE_EXPLAIN_OPTIONS); + CHECK_OUT_OF_MEM(pOptions); + pOptions->verbose = TSDB_DEFAULT_EXPLAIN_VERBOSE; + pOptions->ratio = TSDB_DEFAULT_EXPLAIN_RATIO; + return (SNode*)pOptions; +} + +SNode* setExplainVerbose(SAstCreateContext* pCxt, SNode* pOptions, const SToken* pVal) { + ((SExplainOptions*)pOptions)->verbose = (0 == strncasecmp(pVal->z, "true", pVal->n)); + return pOptions; +} + +SNode* setExplainRatio(SAstCreateContext* pCxt, SNode* pOptions, const SToken* pVal) { + ((SExplainOptions*)pOptions)->ratio = strtod(pVal->z, NULL); + return pOptions; +} + +SNode* createExplainStmt(SAstCreateContext* pCxt, bool analyze, SNode* pOptions, SNode* pQuery) { + SExplainStmt* pStmt = nodesMakeNode(QUERY_NODE_EXPLAIN_STMT); + CHECK_OUT_OF_MEM(pStmt); + pStmt->analyze = analyze; + pStmt->pOptions = (SExplainOptions*)pOptions; + pStmt->pQuery = pQuery; + return (SNode*)pStmt; +} diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 3751041ef7..213b14ae5d 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -31,6 +31,7 @@ static SKeyword keywordTable[] = { {"ACCOUNT", TK_ACCOUNT}, {"ALL", TK_ALL}, {"ALTER", TK_ALTER}, + {"ANALYZE", TK_ANALYZE}, {"AND", TK_AND}, {"AS", TK_AS}, {"ASC", TK_ASC}, @@ -56,6 +57,7 @@ static SKeyword keywordTable[] = { {"DOUBLE", TK_DOUBLE}, {"DROP", TK_DROP}, {"EXISTS", TK_EXISTS}, + {"EXPLAIN", TK_EXPLAIN}, {"FILE_FACTOR", TK_FILE_FACTOR}, {"FILL", TK_FILL}, {"FLOAT", TK_FLOAT}, @@ -110,6 +112,7 @@ static SKeyword keywordTable[] = { {"QNODES", TK_QNODES}, {"QSTARTTS", TK_QSTARTTS}, {"QUORUM", TK_QUORUM}, + {"RATIO", TK_RATIO}, {"REPLICA", TK_REPLICA}, {"RETENTIONS", TK_RETENTIONS}, {"ROLLUP", TK_ROLLUP}, @@ -144,6 +147,7 @@ static SKeyword keywordTable[] = { {"USING", TK_USING}, {"VALUES", TK_VALUES}, {"VARCHAR", TK_VARCHAR}, + {"VERBOSE", TK_VERBOSE}, {"VGROUPS", TK_VGROUPS}, {"WAL", TK_WAL}, {"WDURATION", TK_WDURATION}, @@ -224,7 +228,6 @@ static SKeyword keywordTable[] = { // {"DETACH", TK_DETACH}, // {"EACH", TK_EACH}, // {"END", TK_END}, - // {"EXPLAIN", TK_EXPLAIN}, // {"FAIL", TK_FAIL}, // {"FOR", TK_FOR}, // {"IGNORE", TK_IGNORE}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index e3fa2fc631..d453193d0f 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -32,6 +32,7 @@ typedef struct STranslateContext { SCmdMsgInfo* pCmdMsg; SHashObj* pDbs; SHashObj* pTables; + SExplainOptions* pExplainOpt; } STranslateContext; typedef struct SFullDatabaseName { @@ -673,6 +674,7 @@ static int32_t translateTable(STranslateContext* pCxt, SNode* pTable) { switch (nodeType(pTable)) { case QUERY_NODE_REAL_TABLE: { SRealTableNode* pRealTable = (SRealTableNode*)pTable; + pRealTable->ratio = (NULL != pCxt->pExplainOpt ? pCxt->pExplainOpt->ratio : 1.0); SName name; code = getTableMetaImpl(pCxt, toName(pCxt->pParseCxt->acctId, pRealTable->table.dbName, pRealTable->table.tableName, &name), &(pRealTable->pMeta)); @@ -680,10 +682,9 @@ static int32_t translateTable(STranslateContext* pCxt, SNode* pTable) { return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_TABLE_NOT_EXIST, pRealTable->table.tableName); } code = setTableVgroupList(pCxt, &name, pRealTable); - if (TSDB_CODE_SUCCESS != code) { - return code; + if (TSDB_CODE_SUCCESS == code) { + code = addNamespace(pCxt, pRealTable); } - code = addNamespace(pCxt, pRealTable); break; } case QUERY_NODE_TEMP_TABLE: { @@ -1804,6 +1805,13 @@ static int32_t translateAlterLocal(STranslateContext* pCxt, SAlterLocalStmt* pSt return TSDB_CODE_SUCCESS; } +static int32_t translateExplain(STranslateContext* pCxt, SExplainStmt* pStmt) { + if (pStmt->analyze) { + pCxt->pExplainOpt = pStmt->pOptions; + } + return translateQuery(pCxt, pStmt->pQuery); +} + static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { int32_t code = TSDB_CODE_SUCCESS; switch (nodeType(pNode)) { @@ -1885,6 +1893,9 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_ALTER_LOCAL_STMT: code = translateAlterLocal(pCxt, (SAlterLocalStmt*)pNode); break; + case QUERY_NODE_EXPLAIN_STMT: + code = translateExplain(pCxt, (SExplainStmt*)pNode); + break; default: break; } @@ -1903,7 +1914,11 @@ static int32_t translateSubquery(STranslateContext* pCxt, SNode* pNode) { } int32_t qExtractResultSchema(const SNode* pRoot, int32_t* numOfCols, SSchema** pSchema) { - if (NULL != pRoot && QUERY_NODE_SELECT_STMT == nodeType(pRoot)) { + if (NULL == pRoot) { + return TSDB_CODE_SUCCESS; + } + + if (QUERY_NODE_SELECT_STMT == nodeType(pRoot)) { SSelectStmt* pSelect = (SSelectStmt*) pRoot; *numOfCols = LIST_LENGTH(pSelect->pProjectionList); *pSchema = taosMemoryCalloc((*numOfCols), sizeof(SSchema)); @@ -1921,6 +1936,14 @@ int32_t qExtractResultSchema(const SNode* pRoot, int32_t* numOfCols, SSchema** p strcpy((*pSchema)[index].name, pExpr->aliasName); index +=1; } + } else if (QUERY_NODE_EXPLAIN_STMT == nodeType(pRoot)) { + *numOfCols = 1; + *pSchema = taosMemoryCalloc((*numOfCols), sizeof(SSchema)); + if (NULL == (*pSchema)) { + return TSDB_CODE_OUT_OF_MEMORY; + } + (*pSchema)[0].type = TSDB_DATA_TYPE_BINARY; + (*pSchema)[0].bytes = TSDB_EXPLAIN_RESULT_ROW_SIZE; } return TSDB_CODE_SUCCESS; @@ -2505,6 +2528,7 @@ static int32_t rewriteQuery(STranslateContext* pCxt, SQuery* pQuery) { static int32_t setQuery(STranslateContext* pCxt, SQuery* pQuery) { switch (nodeType(pQuery->pRoot)) { case QUERY_NODE_SELECT_STMT: + case QUERY_NODE_EXPLAIN_STMT: pQuery->haveResultSet = true; pQuery->directRpc = false; pQuery->msgType = TDMT_VND_QUERY; diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index ef2c547e44..154b87ba4b 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -100,24 +100,24 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 268 +#define YYNOCODE 274 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - EOrder yy106; - EFillMode yy142; - SNode* yy176; - SToken yy225; - EJoinType yy236; - SAlterOption yy325; - EOperatorType yy404; - SDataType yy448; - ENullOrder yy465; - bool yy505; - int32_t yy508; - SNodeList* yy512; + SAlterOption yy29; + SNodeList* yy40; + ENullOrder yy177; + EOrder yy210; + EOperatorType yy328; + SNode* yy364; + EJoinType yy392; + SDataType yy420; + SToken yy437; + int32_t yy460; + EFillMode yy478; + bool yy493; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -132,17 +132,17 @@ typedef union { #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE -#define YYNSTATE 432 -#define YYNRULE 348 -#define YYNTOKEN 172 -#define YY_MAX_SHIFT 431 -#define YY_MIN_SHIFTREDUCE 675 -#define YY_MAX_SHIFTREDUCE 1022 -#define YY_ERROR_ACTION 1023 -#define YY_ACCEPT_ACTION 1024 -#define YY_NO_ACTION 1025 -#define YY_MIN_REDUCE 1026 -#define YY_MAX_REDUCE 1373 +#define YYNSTATE 438 +#define YYNRULE 354 +#define YYNTOKEN 176 +#define YY_MAX_SHIFT 437 +#define YY_MIN_SHIFTREDUCE 684 +#define YY_MAX_SHIFTREDUCE 1037 +#define YY_ERROR_ACTION 1038 +#define YY_ACCEPT_ACTION 1039 +#define YY_NO_ACTION 1040 +#define YY_MIN_REDUCE 1041 +#define YY_MAX_REDUCE 1394 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -209,405 +209,408 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (1282) +#define YY_ACTTAB_COUNT (1305) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 1230, 43, 306, 1243, 1118, 350, 1226, 1233, 238, 1114, - /* 10 */ 89, 1205, 31, 29, 27, 26, 25, 1259, 1124, 24, - /* 20 */ 170, 1352, 226, 1259, 347, 31, 29, 27, 26, 25, - /* 30 */ 347, 363, 363, 251, 1351, 362, 66, 270, 1350, 1230, - /* 40 */ 349, 1243, 307, 280, 1217, 1226, 1232, 212, 1069, 335, - /* 50 */ 321, 362, 1129, 1129, 61, 1244, 1245, 1248, 1291, 210, - /* 60 */ 212, 1259, 211, 1287, 246, 363, 1065, 1352, 347, 898, - /* 70 */ 1126, 1196, 1198, 239, 1352, 106, 1096, 928, 349, 350, - /* 80 */ 117, 104, 1217, 12, 1350, 1206, 1129, 117, 293, 1131, - /* 90 */ 928, 1350, 107, 1244, 1245, 1248, 1027, 416, 415, 414, - /* 100 */ 413, 412, 411, 410, 409, 408, 407, 406, 405, 404, - /* 110 */ 403, 402, 401, 400, 399, 189, 929, 77, 1159, 1120, - /* 120 */ 76, 75, 74, 73, 72, 71, 70, 69, 68, 929, - /* 130 */ 336, 1365, 424, 423, 23, 233, 923, 924, 925, 926, - /* 140 */ 927, 931, 932, 933, 27, 26, 25, 23, 233, 923, - /* 150 */ 924, 925, 926, 927, 931, 932, 933, 9, 8, 1243, - /* 160 */ 1217, 784, 386, 385, 384, 788, 383, 790, 791, 382, - /* 170 */ 793, 379, 883, 799, 376, 801, 802, 373, 370, 1259, - /* 180 */ 30, 28, 105, 1176, 1038, 243, 334, 1049, 235, 225, - /* 190 */ 863, 30, 28, 965, 1174, 271, 349, 362, 1259, 235, - /* 200 */ 1217, 863, 1230, 1243, 885, 347, 861, 1107, 1226, 1232, - /* 210 */ 62, 1244, 1245, 1248, 1291, 11, 363, 861, 228, 1287, - /* 220 */ 112, 360, 712, 1259, 711, 941, 11, 339, 1217, 1105, - /* 230 */ 347, 324, 166, 30, 28, 1024, 1, 1129, 313, 1318, - /* 240 */ 349, 235, 713, 863, 1217, 12, 320, 1, 31, 29, - /* 250 */ 27, 26, 25, 271, 62, 1244, 1245, 1248, 1291, 861, - /* 260 */ 428, 338, 228, 1287, 1364, 1310, 960, 1048, 11, 363, - /* 270 */ 930, 428, 862, 1325, 66, 398, 1176, 326, 322, 1243, - /* 280 */ 1047, 286, 240, 862, 250, 242, 241, 1174, 21, 1, - /* 290 */ 1129, 864, 867, 868, 201, 876, 911, 934, 118, 1259, - /* 300 */ 325, 109, 864, 867, 868, 201, 334, 911, 1217, 1352, - /* 310 */ 340, 869, 1169, 428, 118, 1243, 349, 1046, 1176, 1045, - /* 320 */ 1217, 1217, 117, 118, 247, 862, 1350, 259, 1060, 1174, - /* 330 */ 62, 1244, 1245, 1248, 1291, 1259, 363, 1305, 228, 1287, - /* 340 */ 112, 361, 347, 363, 864, 867, 868, 201, 184, 911, - /* 350 */ 295, 1243, 349, 30, 28, 1302, 1217, 1129, 1217, 1319, - /* 360 */ 1217, 235, 1305, 863, 1129, 364, 62, 1244, 1245, 1248, - /* 370 */ 1291, 1259, 122, 121, 228, 1287, 1364, 872, 347, 861, - /* 380 */ 1301, 30, 28, 348, 972, 1348, 1044, 389, 349, 235, - /* 390 */ 885, 863, 1217, 118, 363, 331, 877, 880, 868, 249, - /* 400 */ 1043, 1042, 62, 1244, 1245, 1248, 1291, 861, 1041, 7, - /* 410 */ 228, 1287, 1364, 964, 245, 1129, 92, 886, 30, 28, - /* 420 */ 337, 1309, 104, 398, 30, 28, 235, 1217, 863, 59, - /* 430 */ 1131, 1243, 235, 428, 863, 1040, 1176, 7, 1037, 93, - /* 440 */ 248, 1217, 1217, 90, 861, 862, 1121, 1197, 104, 1217, - /* 450 */ 861, 1259, 333, 113, 1298, 1299, 1131, 1303, 347, 1036, - /* 460 */ 1035, 428, 884, 1193, 864, 867, 868, 201, 349, 911, - /* 470 */ 120, 1034, 1217, 862, 7, 887, 1217, 335, 1176, 1217, - /* 480 */ 1, 1033, 202, 1244, 1245, 1248, 284, 118, 297, 1175, - /* 490 */ 283, 1116, 864, 867, 868, 201, 43, 911, 428, 1112, - /* 500 */ 1217, 1217, 1352, 305, 428, 1032, 1243, 1106, 1031, 1030, - /* 510 */ 862, 285, 1217, 1125, 1029, 117, 862, 145, 888, 1350, - /* 520 */ 300, 1305, 1217, 9, 8, 294, 1259, 52, 144, 864, - /* 530 */ 867, 868, 201, 347, 911, 864, 867, 868, 201, 1300, - /* 540 */ 911, 989, 1243, 349, 1122, 104, 1217, 1217, 6, 1217, - /* 550 */ 1217, 40, 342, 1132, 39, 1217, 963, 63, 1244, 1245, - /* 560 */ 1248, 1291, 1259, 331, 395, 1290, 1287, 304, 394, 347, - /* 570 */ 863, 388, 317, 987, 988, 990, 991, 165, 1243, 349, - /* 580 */ 302, 871, 137, 1217, 92, 135, 861, 194, 139, 396, - /* 590 */ 1039, 138, 196, 63, 1244, 1245, 1248, 1291, 1259, 318, - /* 600 */ 711, 345, 1287, 335, 195, 347, 309, 1243, 393, 392, - /* 610 */ 391, 90, 390, 1058, 123, 349, 278, 346, 98, 1217, - /* 620 */ 151, 163, 1298, 330, 1104, 329, 1243, 1259, 1352, 63, - /* 630 */ 1244, 1245, 1248, 1291, 347, 298, 141, 343, 1288, 140, - /* 640 */ 428, 117, 986, 156, 349, 1350, 1259, 874, 1217, 1243, - /* 650 */ 960, 234, 862, 347, 41, 154, 1021, 1022, 206, 1244, - /* 660 */ 1245, 1248, 143, 349, 58, 142, 1097, 1217, 1243, 1259, - /* 670 */ 314, 864, 867, 868, 54, 64, 347, 206, 1244, 1245, - /* 680 */ 1248, 395, 870, 1170, 935, 394, 349, 895, 1259, 167, - /* 690 */ 1217, 160, 277, 1321, 920, 347, 32, 883, 1237, 32, - /* 700 */ 205, 1244, 1245, 1248, 252, 349, 396, 264, 1243, 1217, - /* 710 */ 1235, 856, 175, 1243, 332, 118, 265, 169, 355, 107, - /* 720 */ 1244, 1245, 1248, 32, 173, 393, 392, 391, 1259, 390, - /* 730 */ 95, 1260, 327, 1259, 2, 347, 883, 1195, 119, 253, - /* 740 */ 347, 181, 261, 260, 266, 349, 891, 262, 873, 1217, - /* 750 */ 349, 777, 232, 96, 1217, 1072, 268, 236, 1366, 206, - /* 760 */ 1244, 1245, 1248, 98, 206, 1244, 1245, 1248, 1026, 267, - /* 770 */ 124, 77, 890, 772, 76, 75, 74, 73, 72, 71, - /* 780 */ 70, 69, 68, 127, 263, 41, 42, 258, 257, 256, - /* 790 */ 255, 254, 86, 85, 84, 83, 82, 81, 80, 79, - /* 800 */ 78, 431, 1243, 272, 292, 269, 287, 1243, 130, 291, - /* 810 */ 889, 805, 290, 279, 288, 187, 281, 289, 88, 87, - /* 820 */ 809, 308, 1259, 368, 420, 224, 186, 1259, 292, 347, - /* 830 */ 287, 310, 96, 291, 347, 815, 290, 1243, 288, 349, - /* 840 */ 1119, 289, 134, 1217, 349, 1243, 1115, 97, 1217, 60, - /* 850 */ 814, 136, 182, 204, 1244, 1245, 1248, 1259, 207, 1244, - /* 860 */ 1245, 1248, 98, 99, 347, 1259, 31, 29, 27, 26, - /* 870 */ 25, 100, 347, 101, 349, 96, 1117, 146, 1217, 1113, - /* 880 */ 102, 1243, 349, 359, 103, 149, 1217, 311, 199, 1244, - /* 890 */ 1245, 1248, 888, 1322, 319, 1332, 208, 1244, 1245, 1248, - /* 900 */ 312, 1259, 353, 147, 1243, 152, 316, 227, 347, 1243, - /* 910 */ 31, 29, 27, 26, 25, 1331, 868, 155, 349, 323, - /* 920 */ 5, 328, 1217, 898, 1259, 315, 1312, 159, 4, 1259, - /* 930 */ 110, 347, 200, 1244, 1245, 1248, 347, 960, 91, 887, - /* 940 */ 33, 349, 161, 1306, 1243, 1217, 349, 162, 344, 341, - /* 950 */ 1217, 17, 1243, 229, 1367, 209, 1244, 1245, 1248, 331, - /* 960 */ 1256, 1244, 1245, 1248, 1259, 1273, 356, 357, 179, 1349, - /* 970 */ 168, 347, 1259, 1204, 1243, 1203, 351, 177, 352, 347, - /* 980 */ 92, 349, 51, 237, 358, 1217, 188, 1130, 53, 349, - /* 990 */ 190, 366, 185, 1217, 1259, 1255, 1244, 1245, 1248, 427, - /* 1000 */ 197, 347, 1243, 1254, 1244, 1245, 1248, 90, 198, 193, - /* 1010 */ 1243, 349, 192, 1211, 839, 1217, 1188, 114, 1298, 1299, - /* 1020 */ 94, 1303, 1259, 1187, 1186, 215, 1244, 1245, 1248, 347, - /* 1030 */ 1259, 1185, 1243, 1184, 1183, 1182, 1181, 347, 126, 349, - /* 1040 */ 1243, 841, 1180, 1217, 1179, 1178, 1177, 349, 1071, 1210, - /* 1050 */ 1201, 1217, 1259, 214, 1244, 1245, 1248, 1108, 724, 347, - /* 1060 */ 1259, 216, 1244, 1245, 1248, 1018, 1019, 347, 1070, 349, - /* 1070 */ 1068, 132, 275, 1217, 111, 219, 1057, 349, 331, 273, - /* 1080 */ 276, 1217, 131, 213, 1244, 1245, 1248, 274, 1056, 1053, - /* 1090 */ 1110, 203, 1244, 1245, 1248, 67, 133, 284, 822, 92, - /* 1100 */ 821, 283, 820, 1109, 752, 44, 1066, 751, 129, 750, - /* 1110 */ 749, 220, 748, 218, 217, 747, 282, 20, 221, 1061, - /* 1120 */ 222, 296, 285, 1059, 223, 299, 90, 31, 29, 27, - /* 1130 */ 26, 25, 22, 1052, 301, 1051, 115, 1298, 1299, 303, - /* 1140 */ 1303, 65, 31, 29, 27, 26, 25, 910, 1209, 912, - /* 1150 */ 913, 914, 915, 916, 1208, 128, 1200, 148, 14, 125, - /* 1160 */ 45, 36, 3, 153, 150, 32, 37, 158, 985, 108, - /* 1170 */ 34, 1235, 157, 164, 979, 46, 19, 978, 47, 48, - /* 1180 */ 15, 35, 957, 1007, 1006, 956, 8, 1012, 230, 116, - /* 1190 */ 1011, 1010, 16, 10, 896, 231, 13, 921, 172, 18, - /* 1200 */ 171, 983, 174, 354, 176, 49, 1199, 178, 50, 878, - /* 1210 */ 38, 367, 244, 806, 180, 369, 54, 371, 803, 1234, - /* 1220 */ 800, 183, 365, 372, 374, 783, 375, 377, 794, 378, - /* 1230 */ 380, 792, 817, 381, 813, 812, 811, 55, 722, 56, - /* 1240 */ 57, 744, 397, 743, 736, 742, 741, 740, 739, 738, - /* 1250 */ 387, 737, 1067, 735, 798, 734, 733, 797, 732, 731, - /* 1260 */ 796, 795, 730, 729, 728, 727, 417, 418, 1055, 1054, - /* 1270 */ 421, 422, 419, 1050, 816, 425, 426, 1025, 865, 191, - /* 1280 */ 429, 430, + /* 0 */ 1251, 337, 24, 172, 356, 356, 256, 241, 1247, 1254, + /* 10 */ 1220, 1221, 31, 29, 27, 26, 25, 1264, 369, 369, + /* 20 */ 9, 8, 93, 67, 67, 31, 29, 27, 26, 25, + /* 30 */ 286, 292, 337, 1373, 106, 60, 1053, 1280, 369, 1144, + /* 40 */ 1144, 341, 1135, 276, 353, 94, 118, 215, 1084, 249, + /* 50 */ 1371, 91, 1136, 93, 355, 979, 1211, 1213, 1238, 1144, + /* 60 */ 215, 165, 1319, 336, 110, 335, 1087, 44, 1373, 913, + /* 70 */ 63, 1265, 1266, 1269, 1312, 1184, 90, 943, 231, 1308, + /* 80 */ 1385, 118, 91, 1238, 1139, 1371, 107, 1111, 956, 1346, + /* 90 */ 943, 339, 114, 1319, 1320, 257, 1324, 422, 421, 420, + /* 100 */ 419, 418, 417, 416, 415, 414, 413, 412, 411, 410, + /* 110 */ 409, 408, 407, 406, 405, 298, 944, 293, 105, 242, + /* 120 */ 297, 213, 898, 296, 368, 294, 1147, 105, 295, 944, + /* 130 */ 31, 29, 27, 26, 25, 1146, 368, 1122, 23, 236, + /* 140 */ 938, 939, 940, 941, 942, 946, 947, 948, 27, 26, + /* 150 */ 25, 23, 236, 938, 939, 940, 941, 942, 946, 947, + /* 160 */ 948, 793, 392, 391, 390, 797, 389, 799, 800, 388, + /* 170 */ 802, 385, 1264, 808, 382, 810, 811, 379, 376, 229, + /* 180 */ 30, 28, 337, 277, 12, 30, 28, 980, 238, 277, + /* 190 */ 878, 246, 1280, 238, 1264, 878, 1251, 310, 255, 353, + /* 200 */ 254, 1191, 978, 93, 1247, 1253, 876, 228, 1251, 355, + /* 210 */ 308, 876, 1189, 1238, 1280, 11, 1247, 1253, 341, 369, + /* 220 */ 11, 340, 248, 119, 1141, 62, 1265, 1266, 1269, 1312, + /* 230 */ 105, 355, 91, 214, 1308, 1238, 1, 265, 1146, 1120, + /* 240 */ 1144, 1, 115, 1319, 1320, 1373, 1324, 63, 1265, 1266, + /* 250 */ 1269, 1312, 119, 1191, 720, 231, 1308, 113, 118, 243, + /* 260 */ 434, 6, 1371, 902, 1189, 434, 119, 430, 429, 168, + /* 270 */ 284, 312, 877, 1280, 1280, 319, 1339, 877, 30, 28, + /* 280 */ 353, 353, 124, 123, 222, 404, 238, 1264, 878, 1033, + /* 290 */ 1034, 326, 1331, 975, 879, 53, 882, 883, 204, 879, + /* 300 */ 926, 882, 883, 204, 876, 926, 290, 1280, 327, 330, + /* 310 */ 289, 313, 1137, 11, 340, 721, 1373, 720, 119, 1264, + /* 320 */ 223, 1191, 221, 220, 355, 288, 332, 328, 1238, 1372, + /* 330 */ 1064, 291, 1212, 1371, 1, 722, 119, 368, 1373, 1280, + /* 340 */ 63, 1265, 1266, 1269, 1312, 404, 353, 369, 231, 1308, + /* 350 */ 113, 118, 366, 30, 28, 1371, 355, 369, 434, 900, + /* 360 */ 1238, 238, 367, 878, 395, 167, 1264, 975, 1144, 1340, + /* 370 */ 877, 1238, 63, 1265, 1266, 1269, 1312, 1191, 1144, 876, + /* 380 */ 231, 1308, 1385, 250, 1063, 12, 1280, 192, 1189, 331, + /* 390 */ 1174, 1369, 879, 353, 882, 883, 204, 337, 926, 139, + /* 400 */ 251, 1062, 137, 355, 30, 28, 354, 1238, 105, 7, + /* 410 */ 369, 303, 238, 348, 878, 186, 1146, 44, 93, 63, + /* 420 */ 1265, 1266, 1269, 1312, 1061, 1238, 311, 231, 1308, 1385, + /* 430 */ 876, 1144, 945, 434, 1140, 987, 30, 28, 1330, 345, + /* 440 */ 147, 900, 1238, 306, 238, 877, 878, 91, 300, 1060, + /* 450 */ 1326, 146, 1264, 1059, 21, 1191, 901, 116, 1319, 1320, + /* 460 */ 7, 1324, 876, 949, 899, 1238, 1190, 879, 1323, 882, + /* 470 */ 883, 204, 1280, 926, 41, 30, 28, 40, 1004, 353, + /* 480 */ 1121, 1326, 369, 238, 434, 878, 1058, 252, 1208, 355, + /* 490 */ 1238, 119, 7, 1238, 1238, 122, 877, 1039, 341, 1322, + /* 500 */ 344, 876, 349, 1144, 1057, 205, 1265, 1266, 1269, 323, + /* 510 */ 1002, 1003, 1005, 1006, 1326, 290, 434, 1056, 879, 289, + /* 520 */ 882, 883, 204, 1055, 926, 1373, 346, 1238, 877, 898, + /* 530 */ 1052, 1, 1321, 9, 8, 903, 258, 401, 118, 270, + /* 540 */ 291, 400, 1371, 1264, 141, 1238, 253, 140, 271, 1133, + /* 550 */ 879, 352, 882, 883, 204, 434, 926, 143, 1238, 886, + /* 560 */ 142, 1051, 402, 1280, 1238, 20, 1050, 877, 1049, 1112, + /* 570 */ 353, 1238, 1129, 1373, 1264, 31, 29, 27, 26, 25, + /* 580 */ 355, 399, 398, 397, 1238, 396, 118, 1036, 1037, 879, + /* 590 */ 1371, 882, 883, 204, 1280, 926, 64, 1265, 1266, 1269, + /* 600 */ 1312, 353, 1238, 145, 1311, 1308, 144, 1238, 1131, 1238, + /* 610 */ 1048, 355, 1047, 1264, 315, 1238, 269, 1046, 1264, 264, + /* 620 */ 263, 262, 261, 260, 1045, 889, 99, 64, 1265, 1266, + /* 630 */ 1269, 1312, 935, 1280, 1001, 351, 1308, 153, 1280, 298, + /* 640 */ 353, 293, 1080, 1127, 297, 353, 42, 296, 1075, 294, + /* 650 */ 355, 1238, 295, 1238, 1238, 355, 1264, 1119, 1238, 1238, + /* 660 */ 1042, 885, 1044, 343, 299, 1238, 108, 1265, 1266, 1269, + /* 670 */ 301, 64, 1265, 1266, 1269, 1312, 1280, 169, 394, 1054, + /* 680 */ 1309, 78, 158, 353, 77, 76, 75, 74, 73, 72, + /* 690 */ 71, 70, 69, 355, 156, 324, 1264, 1238, 1073, 878, + /* 700 */ 237, 1264, 1185, 1238, 342, 1386, 162, 950, 283, 209, + /* 710 */ 1265, 1266, 1269, 1258, 401, 876, 1280, 1342, 400, 32, + /* 720 */ 304, 1280, 910, 353, 865, 1256, 338, 888, 353, 1281, + /* 730 */ 171, 871, 177, 355, 32, 361, 32, 1238, 355, 402, + /* 740 */ 320, 183, 1238, 1264, 175, 2, 190, 96, 898, 209, + /* 750 */ 1265, 1266, 1269, 97, 208, 1265, 1266, 1269, 399, 398, + /* 760 */ 397, 1210, 396, 1280, 121, 22, 259, 267, 266, 434, + /* 770 */ 353, 786, 268, 1264, 272, 31, 29, 27, 26, 25, + /* 780 */ 355, 877, 781, 99, 1238, 906, 333, 126, 31, 29, + /* 790 */ 27, 26, 25, 1280, 42, 1264, 108, 1265, 1266, 1269, + /* 800 */ 353, 273, 274, 879, 814, 882, 883, 818, 905, 824, + /* 810 */ 355, 823, 100, 129, 1238, 1280, 374, 235, 275, 97, + /* 820 */ 437, 98, 353, 99, 97, 278, 209, 1265, 1266, 1269, + /* 830 */ 43, 132, 355, 904, 189, 1387, 1238, 89, 287, 239, + /* 840 */ 285, 314, 227, 426, 317, 188, 59, 88, 209, 1265, + /* 850 */ 1266, 1269, 1041, 1134, 78, 136, 55, 77, 76, 75, + /* 860 */ 74, 73, 72, 71, 70, 69, 1130, 138, 61, 101, + /* 870 */ 1264, 184, 102, 1132, 1128, 103, 87, 86, 85, 84, + /* 880 */ 83, 82, 81, 80, 79, 104, 316, 148, 151, 925, + /* 890 */ 1280, 927, 928, 929, 930, 931, 903, 353, 1353, 325, + /* 900 */ 197, 1264, 365, 359, 154, 199, 883, 355, 322, 1343, + /* 910 */ 157, 1238, 1352, 230, 329, 5, 161, 198, 334, 318, + /* 920 */ 321, 1280, 149, 207, 1265, 1266, 1269, 125, 353, 975, + /* 930 */ 1333, 1264, 31, 29, 27, 26, 25, 111, 355, 4, + /* 940 */ 163, 902, 1238, 92, 1327, 33, 232, 17, 164, 347, + /* 950 */ 350, 1280, 1388, 1264, 210, 1265, 1266, 1269, 353, 1294, + /* 960 */ 1370, 362, 170, 179, 191, 1219, 1218, 357, 355, 358, + /* 970 */ 364, 240, 1238, 1280, 363, 1264, 181, 52, 1145, 54, + /* 980 */ 353, 372, 193, 187, 202, 1265, 1266, 1269, 65, 913, + /* 990 */ 355, 433, 195, 39, 1238, 1280, 200, 1264, 201, 196, + /* 1000 */ 1232, 874, 353, 873, 1226, 120, 211, 1265, 1266, 1269, + /* 1010 */ 848, 1203, 355, 1202, 95, 1201, 1238, 1280, 1200, 1264, + /* 1020 */ 1199, 1198, 1197, 1196, 353, 850, 1195, 1194, 203, 1265, + /* 1030 */ 1266, 1269, 119, 1193, 355, 1192, 1086, 1225, 1238, 1280, + /* 1040 */ 1216, 1264, 128, 1123, 733, 1085, 353, 1083, 279, 281, + /* 1050 */ 212, 1265, 1266, 1269, 1072, 280, 355, 1071, 1068, 1125, + /* 1060 */ 1238, 1280, 68, 1264, 135, 1124, 831, 830, 353, 761, + /* 1070 */ 829, 1081, 1277, 1265, 1266, 1269, 760, 759, 355, 758, + /* 1080 */ 757, 1076, 1238, 1280, 756, 224, 225, 1264, 302, 1074, + /* 1090 */ 353, 226, 1067, 305, 1276, 1265, 1266, 1269, 307, 1066, + /* 1100 */ 355, 309, 66, 1224, 1238, 1223, 36, 1280, 152, 150, + /* 1110 */ 14, 1264, 1215, 3, 353, 32, 1275, 1265, 1266, 1269, + /* 1120 */ 245, 244, 155, 15, 355, 37, 34, 10, 1238, 46, + /* 1130 */ 891, 1280, 160, 1264, 49, 1022, 1000, 994, 353, 993, + /* 1140 */ 218, 1265, 1266, 1269, 972, 109, 884, 1021, 355, 233, + /* 1150 */ 8, 159, 1238, 1280, 47, 1264, 48, 1026, 1256, 971, + /* 1160 */ 353, 19, 1025, 1027, 217, 1265, 1266, 1269, 35, 234, + /* 1170 */ 355, 166, 13, 117, 1238, 1280, 16, 1264, 936, 911, + /* 1180 */ 173, 18, 353, 174, 998, 176, 219, 1265, 1266, 1269, + /* 1190 */ 178, 50, 355, 360, 1214, 180, 1238, 1280, 55, 893, + /* 1200 */ 370, 182, 51, 38, 353, 1255, 185, 371, 216, 1265, + /* 1210 */ 1266, 1269, 887, 815, 355, 375, 134, 373, 1238, 112, + /* 1220 */ 247, 807, 812, 377, 378, 282, 809, 133, 380, 381, + /* 1230 */ 206, 1265, 1266, 1269, 892, 803, 895, 883, 383, 384, + /* 1240 */ 386, 801, 387, 806, 805, 804, 792, 393, 56, 826, + /* 1250 */ 45, 822, 57, 131, 58, 821, 820, 731, 825, 403, + /* 1260 */ 753, 752, 745, 751, 750, 749, 748, 747, 746, 744, + /* 1270 */ 743, 742, 1082, 741, 740, 739, 1070, 738, 1069, 737, + /* 1280 */ 736, 423, 424, 427, 428, 1065, 431, 425, 432, 1040, + /* 1290 */ 880, 194, 435, 436, 1040, 1040, 1040, 1040, 1040, 1040, + /* 1300 */ 130, 1040, 1040, 1040, 127, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 216, 183, 181, 175, 196, 212, 222, 223, 215, 196, - /* 10 */ 192, 218, 12, 13, 14, 15, 16, 195, 200, 231, - /* 20 */ 232, 246, 199, 195, 202, 12, 13, 14, 15, 16, - /* 30 */ 202, 181, 181, 181, 259, 20, 186, 186, 263, 216, - /* 40 */ 212, 175, 221, 193, 216, 222, 223, 47, 0, 221, - /* 50 */ 228, 20, 202, 202, 226, 227, 228, 229, 230, 207, - /* 60 */ 47, 195, 234, 235, 204, 181, 0, 246, 202, 69, - /* 70 */ 186, 211, 212, 187, 246, 184, 185, 77, 212, 212, - /* 80 */ 259, 195, 216, 68, 263, 218, 202, 259, 22, 203, - /* 90 */ 77, 263, 226, 227, 228, 229, 0, 49, 50, 51, + /* 0 */ 220, 185, 237, 238, 216, 216, 225, 219, 228, 229, + /* 10 */ 222, 222, 12, 13, 14, 15, 16, 179, 185, 185, + /* 20 */ 1, 2, 206, 190, 190, 12, 13, 14, 15, 16, + /* 30 */ 197, 197, 185, 252, 178, 184, 180, 199, 185, 206, + /* 40 */ 206, 225, 179, 190, 206, 194, 265, 47, 0, 208, + /* 50 */ 269, 235, 201, 206, 216, 4, 215, 216, 220, 206, + /* 60 */ 47, 245, 246, 247, 198, 249, 0, 187, 252, 69, + /* 70 */ 232, 233, 234, 235, 236, 209, 196, 77, 240, 241, + /* 80 */ 242, 265, 235, 220, 204, 269, 188, 189, 69, 251, + /* 90 */ 77, 244, 245, 246, 247, 185, 249, 49, 50, 51, /* 100 */ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - /* 110 */ 62, 63, 64, 65, 66, 188, 116, 21, 191, 175, - /* 120 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 116, - /* 130 */ 264, 265, 178, 179, 134, 135, 136, 137, 138, 139, - /* 140 */ 140, 141, 142, 143, 14, 15, 16, 134, 135, 136, - /* 150 */ 137, 138, 139, 140, 141, 142, 143, 1, 2, 175, - /* 160 */ 216, 83, 84, 85, 86, 87, 88, 89, 90, 91, - /* 170 */ 92, 93, 20, 95, 96, 97, 98, 99, 100, 195, - /* 180 */ 12, 13, 174, 195, 176, 199, 202, 175, 20, 201, - /* 190 */ 22, 12, 13, 14, 206, 46, 212, 20, 195, 20, - /* 200 */ 216, 22, 216, 175, 20, 202, 38, 0, 222, 223, - /* 210 */ 226, 227, 228, 229, 230, 47, 181, 38, 234, 235, - /* 220 */ 236, 186, 20, 195, 22, 69, 47, 81, 216, 0, - /* 230 */ 202, 228, 248, 12, 13, 172, 68, 202, 254, 255, - /* 240 */ 212, 20, 40, 22, 216, 68, 120, 68, 12, 13, - /* 250 */ 14, 15, 16, 46, 226, 227, 228, 229, 230, 38, - /* 260 */ 92, 3, 234, 235, 236, 144, 145, 175, 47, 181, - /* 270 */ 116, 92, 104, 245, 186, 46, 195, 151, 152, 175, - /* 280 */ 175, 193, 201, 104, 221, 12, 13, 206, 134, 68, - /* 290 */ 202, 123, 124, 125, 126, 22, 128, 143, 146, 195, - /* 300 */ 20, 194, 123, 124, 125, 126, 202, 128, 216, 246, - /* 310 */ 164, 38, 205, 92, 146, 175, 212, 175, 195, 175, - /* 320 */ 216, 216, 259, 146, 201, 104, 263, 63, 0, 206, - /* 330 */ 226, 227, 228, 229, 230, 195, 181, 224, 234, 235, - /* 340 */ 236, 186, 202, 181, 123, 124, 125, 126, 186, 128, - /* 350 */ 22, 175, 212, 12, 13, 242, 216, 202, 216, 255, - /* 360 */ 216, 20, 224, 22, 202, 92, 226, 227, 228, 229, - /* 370 */ 230, 195, 108, 109, 234, 235, 236, 104, 202, 38, - /* 380 */ 242, 12, 13, 14, 14, 245, 175, 79, 212, 20, - /* 390 */ 20, 22, 216, 146, 181, 181, 123, 124, 125, 186, - /* 400 */ 175, 175, 226, 227, 228, 229, 230, 38, 175, 68, - /* 410 */ 234, 235, 236, 4, 187, 202, 202, 20, 12, 13, - /* 420 */ 162, 245, 195, 46, 12, 13, 20, 216, 22, 180, - /* 430 */ 203, 175, 20, 92, 22, 175, 195, 68, 175, 190, - /* 440 */ 187, 216, 216, 229, 38, 104, 197, 206, 195, 216, - /* 450 */ 38, 195, 238, 239, 240, 241, 203, 243, 202, 175, - /* 460 */ 175, 92, 20, 202, 123, 124, 125, 126, 212, 128, - /* 470 */ 209, 175, 216, 104, 68, 20, 216, 221, 195, 216, - /* 480 */ 68, 175, 226, 227, 228, 229, 57, 146, 4, 206, - /* 490 */ 61, 196, 123, 124, 125, 126, 183, 128, 92, 196, - /* 500 */ 216, 216, 246, 19, 92, 175, 175, 0, 175, 175, - /* 510 */ 104, 82, 216, 200, 175, 259, 104, 33, 20, 263, - /* 520 */ 36, 224, 216, 1, 2, 41, 195, 180, 44, 123, - /* 530 */ 124, 125, 126, 202, 128, 123, 124, 125, 126, 242, - /* 540 */ 128, 124, 175, 212, 197, 195, 216, 216, 43, 216, - /* 550 */ 216, 67, 81, 203, 70, 216, 147, 226, 227, 228, - /* 560 */ 229, 230, 195, 181, 57, 234, 235, 21, 61, 202, - /* 570 */ 22, 196, 155, 156, 157, 158, 159, 122, 175, 212, - /* 580 */ 34, 38, 72, 216, 202, 75, 38, 18, 72, 82, - /* 590 */ 176, 75, 23, 226, 227, 228, 229, 230, 195, 257, - /* 600 */ 22, 234, 235, 221, 35, 202, 69, 175, 101, 102, - /* 610 */ 103, 229, 105, 0, 45, 212, 38, 47, 81, 216, - /* 620 */ 122, 239, 240, 241, 0, 243, 175, 195, 246, 226, - /* 630 */ 227, 228, 229, 230, 202, 22, 72, 166, 235, 75, - /* 640 */ 92, 259, 69, 69, 212, 263, 195, 104, 216, 175, - /* 650 */ 145, 219, 104, 202, 81, 81, 170, 171, 226, 227, - /* 660 */ 228, 229, 72, 212, 68, 75, 185, 216, 175, 195, - /* 670 */ 219, 123, 124, 125, 78, 106, 202, 226, 227, 228, - /* 680 */ 229, 57, 38, 205, 69, 61, 212, 69, 195, 266, - /* 690 */ 216, 251, 178, 225, 124, 202, 81, 20, 68, 81, - /* 700 */ 226, 227, 228, 229, 27, 212, 82, 30, 175, 216, - /* 710 */ 80, 69, 69, 175, 244, 146, 39, 260, 69, 226, - /* 720 */ 227, 228, 229, 81, 81, 101, 102, 103, 195, 105, - /* 730 */ 81, 195, 258, 195, 247, 202, 20, 181, 115, 210, - /* 740 */ 202, 69, 116, 208, 181, 212, 20, 208, 104, 216, - /* 750 */ 212, 69, 219, 81, 216, 0, 202, 219, 265, 226, - /* 760 */ 227, 228, 229, 81, 226, 227, 228, 229, 0, 220, - /* 770 */ 183, 21, 20, 69, 24, 25, 26, 27, 28, 29, - /* 780 */ 30, 31, 32, 183, 107, 81, 183, 110, 111, 112, - /* 790 */ 113, 114, 24, 25, 26, 27, 28, 29, 30, 31, - /* 800 */ 32, 19, 175, 181, 49, 213, 51, 175, 183, 54, - /* 810 */ 20, 69, 57, 177, 59, 33, 195, 62, 36, 181, - /* 820 */ 69, 220, 195, 81, 42, 177, 44, 195, 49, 202, - /* 830 */ 51, 202, 81, 54, 202, 69, 57, 175, 59, 212, - /* 840 */ 195, 62, 195, 216, 212, 175, 195, 81, 216, 67, - /* 850 */ 69, 195, 70, 226, 227, 228, 229, 195, 226, 227, - /* 860 */ 228, 229, 81, 69, 202, 195, 12, 13, 14, 15, - /* 870 */ 16, 195, 202, 195, 212, 81, 195, 180, 216, 195, - /* 880 */ 195, 175, 212, 101, 195, 180, 216, 213, 226, 227, - /* 890 */ 228, 229, 20, 225, 154, 256, 226, 227, 228, 229, - /* 900 */ 118, 195, 153, 121, 175, 217, 216, 216, 202, 175, - /* 910 */ 12, 13, 14, 15, 16, 256, 125, 217, 212, 216, - /* 920 */ 161, 160, 216, 69, 195, 149, 253, 252, 148, 195, - /* 930 */ 250, 202, 226, 227, 228, 229, 202, 145, 202, 20, - /* 940 */ 115, 212, 249, 224, 175, 216, 212, 237, 165, 163, - /* 950 */ 216, 68, 175, 169, 267, 226, 227, 228, 229, 181, - /* 960 */ 226, 227, 228, 229, 195, 233, 119, 214, 180, 262, - /* 970 */ 261, 202, 195, 217, 175, 217, 216, 202, 216, 202, - /* 980 */ 202, 212, 180, 216, 213, 216, 191, 202, 68, 212, - /* 990 */ 181, 198, 180, 216, 195, 226, 227, 228, 229, 177, - /* 1000 */ 189, 202, 175, 226, 227, 228, 229, 229, 189, 173, - /* 1010 */ 175, 212, 182, 0, 80, 216, 0, 239, 240, 241, - /* 1020 */ 115, 243, 195, 0, 0, 226, 227, 228, 229, 202, - /* 1030 */ 195, 0, 175, 0, 0, 0, 0, 202, 43, 212, - /* 1040 */ 175, 22, 0, 216, 0, 0, 0, 212, 0, 0, - /* 1050 */ 0, 216, 195, 226, 227, 228, 229, 0, 48, 202, - /* 1060 */ 195, 226, 227, 228, 229, 167, 168, 202, 0, 212, - /* 1070 */ 0, 33, 43, 216, 36, 35, 0, 212, 181, 38, - /* 1080 */ 42, 216, 44, 226, 227, 228, 229, 36, 0, 0, - /* 1090 */ 0, 226, 227, 228, 229, 77, 75, 57, 38, 202, - /* 1100 */ 38, 61, 22, 0, 38, 67, 0, 38, 70, 38, - /* 1110 */ 38, 71, 38, 73, 74, 38, 76, 2, 22, 0, - /* 1120 */ 22, 39, 82, 0, 22, 38, 229, 12, 13, 14, - /* 1130 */ 15, 16, 2, 0, 22, 0, 239, 240, 241, 22, - /* 1140 */ 243, 20, 12, 13, 14, 15, 16, 127, 0, 129, - /* 1150 */ 130, 131, 132, 133, 0, 117, 0, 43, 150, 121, - /* 1160 */ 68, 122, 81, 69, 117, 81, 81, 81, 69, 68, - /* 1170 */ 144, 80, 68, 80, 69, 68, 81, 69, 68, 4, - /* 1180 */ 150, 81, 69, 38, 38, 69, 2, 69, 38, 80, - /* 1190 */ 38, 38, 81, 150, 69, 38, 68, 124, 69, 68, - /* 1200 */ 80, 69, 68, 120, 68, 68, 0, 43, 68, 22, - /* 1210 */ 68, 38, 38, 69, 117, 68, 78, 38, 69, 80, - /* 1220 */ 69, 80, 79, 68, 38, 22, 68, 38, 69, 68, - /* 1230 */ 38, 69, 38, 68, 38, 38, 22, 68, 48, 68, - /* 1240 */ 68, 22, 47, 38, 22, 38, 38, 38, 38, 38, - /* 1250 */ 82, 38, 0, 38, 94, 38, 38, 94, 38, 38, - /* 1260 */ 94, 94, 38, 38, 38, 38, 38, 36, 0, 0, - /* 1270 */ 38, 37, 43, 0, 104, 22, 21, 268, 22, 22, - /* 1280 */ 21, 20, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1290 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1300 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1310 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1320 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1330 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1340 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1350 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1360 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1370 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1380 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1390 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1400 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1410 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1420 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1430 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1440 */ 268, 268, 268, 268, 268, 268, 268, 268, 268, 268, - /* 1450 */ 268, 268, 268, 268, + /* 110 */ 62, 63, 64, 65, 66, 49, 116, 51, 199, 191, + /* 120 */ 54, 211, 20, 57, 20, 59, 207, 199, 62, 116, + /* 130 */ 12, 13, 14, 15, 16, 207, 20, 0, 138, 139, + /* 140 */ 140, 141, 142, 143, 144, 145, 146, 147, 14, 15, + /* 150 */ 16, 138, 139, 140, 141, 142, 143, 144, 145, 146, + /* 160 */ 147, 83, 84, 85, 86, 87, 88, 89, 90, 91, + /* 170 */ 92, 93, 179, 95, 96, 97, 98, 99, 100, 203, + /* 180 */ 12, 13, 185, 46, 68, 12, 13, 14, 20, 46, + /* 190 */ 22, 203, 199, 20, 179, 22, 220, 21, 125, 206, + /* 200 */ 127, 199, 151, 206, 228, 229, 38, 205, 220, 216, + /* 210 */ 34, 38, 210, 220, 199, 47, 228, 229, 225, 185, + /* 220 */ 47, 206, 191, 150, 190, 232, 233, 234, 235, 236, + /* 230 */ 199, 216, 235, 240, 241, 220, 68, 63, 207, 0, + /* 240 */ 206, 68, 245, 246, 247, 252, 249, 232, 233, 234, + /* 250 */ 235, 236, 150, 199, 22, 240, 241, 242, 265, 205, + /* 260 */ 92, 43, 269, 20, 210, 92, 150, 182, 183, 254, + /* 270 */ 38, 185, 104, 199, 199, 260, 261, 104, 12, 13, + /* 280 */ 206, 206, 108, 109, 35, 46, 20, 179, 22, 171, + /* 290 */ 172, 120, 148, 149, 126, 184, 128, 129, 130, 126, + /* 300 */ 132, 128, 129, 130, 38, 132, 57, 199, 234, 234, + /* 310 */ 61, 225, 201, 47, 206, 20, 252, 22, 150, 179, + /* 320 */ 71, 199, 73, 74, 216, 76, 155, 156, 220, 265, + /* 330 */ 179, 82, 210, 269, 68, 40, 150, 20, 252, 199, + /* 340 */ 232, 233, 234, 235, 236, 46, 206, 185, 240, 241, + /* 350 */ 242, 265, 190, 12, 13, 269, 216, 185, 92, 20, + /* 360 */ 220, 20, 190, 22, 79, 122, 179, 149, 206, 261, + /* 370 */ 104, 220, 232, 233, 234, 235, 236, 199, 206, 38, + /* 380 */ 240, 241, 242, 205, 179, 68, 199, 192, 210, 20, + /* 390 */ 195, 251, 126, 206, 128, 129, 130, 185, 132, 72, + /* 400 */ 191, 179, 75, 216, 12, 13, 14, 220, 199, 68, + /* 410 */ 185, 4, 20, 81, 22, 190, 207, 187, 206, 232, + /* 420 */ 233, 234, 235, 236, 179, 220, 19, 240, 241, 242, + /* 430 */ 38, 206, 116, 92, 204, 14, 12, 13, 251, 81, + /* 440 */ 33, 20, 220, 36, 20, 104, 22, 235, 41, 179, + /* 450 */ 230, 44, 179, 179, 138, 199, 20, 245, 246, 247, + /* 460 */ 68, 249, 38, 147, 20, 220, 210, 126, 248, 128, + /* 470 */ 129, 130, 199, 132, 67, 12, 13, 70, 128, 206, + /* 480 */ 0, 230, 185, 20, 92, 22, 179, 190, 206, 216, + /* 490 */ 220, 150, 68, 220, 220, 213, 104, 176, 225, 248, + /* 500 */ 3, 38, 170, 206, 179, 232, 233, 234, 235, 159, + /* 510 */ 160, 161, 162, 163, 230, 57, 92, 179, 126, 61, + /* 520 */ 128, 129, 130, 179, 132, 252, 168, 220, 104, 20, + /* 530 */ 179, 68, 248, 1, 2, 20, 27, 57, 265, 30, + /* 540 */ 82, 61, 269, 179, 72, 220, 225, 75, 39, 200, + /* 550 */ 126, 47, 128, 129, 130, 92, 132, 72, 220, 38, + /* 560 */ 75, 179, 82, 199, 220, 2, 179, 104, 179, 189, + /* 570 */ 206, 220, 200, 252, 179, 12, 13, 14, 15, 16, + /* 580 */ 216, 101, 102, 103, 220, 105, 265, 174, 175, 126, + /* 590 */ 269, 128, 129, 130, 199, 132, 232, 233, 234, 235, + /* 600 */ 236, 206, 220, 72, 240, 241, 75, 220, 200, 220, + /* 610 */ 179, 216, 179, 179, 69, 220, 107, 179, 179, 110, + /* 620 */ 111, 112, 113, 114, 179, 104, 81, 232, 233, 234, + /* 630 */ 235, 236, 128, 199, 69, 240, 241, 122, 199, 49, + /* 640 */ 206, 51, 0, 200, 54, 206, 81, 57, 0, 59, + /* 650 */ 216, 220, 62, 220, 220, 216, 179, 0, 220, 220, + /* 660 */ 0, 38, 179, 166, 22, 220, 232, 233, 234, 235, + /* 670 */ 22, 232, 233, 234, 235, 236, 199, 272, 200, 180, + /* 680 */ 241, 21, 69, 206, 24, 25, 26, 27, 28, 29, + /* 690 */ 30, 31, 32, 216, 81, 263, 179, 220, 0, 22, + /* 700 */ 223, 179, 209, 220, 270, 271, 257, 69, 182, 232, + /* 710 */ 233, 234, 235, 68, 57, 38, 199, 231, 61, 81, + /* 720 */ 22, 199, 69, 206, 69, 80, 250, 104, 206, 199, + /* 730 */ 266, 124, 69, 216, 81, 69, 81, 220, 216, 82, + /* 740 */ 223, 69, 220, 179, 81, 253, 226, 81, 20, 232, + /* 750 */ 233, 234, 235, 81, 232, 233, 234, 235, 101, 102, + /* 760 */ 103, 185, 105, 199, 115, 2, 214, 116, 212, 92, + /* 770 */ 206, 69, 212, 179, 185, 12, 13, 14, 15, 16, + /* 780 */ 216, 104, 69, 81, 220, 20, 264, 187, 12, 13, + /* 790 */ 14, 15, 16, 199, 81, 179, 232, 233, 234, 235, + /* 800 */ 206, 224, 206, 126, 69, 128, 129, 69, 20, 69, + /* 810 */ 216, 69, 69, 187, 220, 199, 81, 223, 217, 81, + /* 820 */ 19, 81, 206, 81, 81, 185, 232, 233, 234, 235, + /* 830 */ 187, 187, 216, 20, 33, 271, 220, 36, 199, 223, + /* 840 */ 181, 224, 181, 42, 217, 44, 68, 185, 232, 233, + /* 850 */ 234, 235, 0, 199, 21, 199, 78, 24, 25, 26, + /* 860 */ 27, 28, 29, 30, 31, 32, 199, 199, 67, 199, + /* 870 */ 179, 70, 199, 199, 199, 199, 24, 25, 26, 27, + /* 880 */ 28, 29, 30, 31, 32, 199, 206, 184, 184, 131, + /* 890 */ 199, 133, 134, 135, 136, 137, 20, 206, 262, 158, + /* 900 */ 18, 179, 101, 157, 221, 23, 129, 216, 220, 231, + /* 910 */ 221, 220, 262, 220, 220, 165, 258, 35, 164, 118, + /* 920 */ 153, 199, 121, 232, 233, 234, 235, 45, 206, 149, + /* 930 */ 259, 179, 12, 13, 14, 15, 16, 256, 216, 152, + /* 940 */ 255, 20, 220, 206, 230, 115, 173, 68, 243, 167, + /* 950 */ 169, 199, 273, 179, 232, 233, 234, 235, 206, 239, + /* 960 */ 268, 119, 267, 206, 195, 221, 221, 220, 216, 220, + /* 970 */ 217, 220, 220, 199, 218, 179, 184, 184, 206, 68, + /* 980 */ 206, 202, 185, 184, 232, 233, 234, 235, 106, 69, + /* 990 */ 216, 181, 186, 227, 220, 199, 193, 179, 193, 177, + /* 1000 */ 0, 104, 206, 126, 0, 123, 232, 233, 234, 235, + /* 1010 */ 80, 0, 216, 0, 115, 0, 220, 199, 0, 179, + /* 1020 */ 0, 0, 0, 0, 206, 22, 0, 0, 232, 233, + /* 1030 */ 234, 235, 150, 0, 216, 0, 0, 0, 220, 199, + /* 1040 */ 0, 179, 43, 0, 48, 0, 206, 0, 38, 43, + /* 1050 */ 232, 233, 234, 235, 0, 36, 216, 0, 0, 0, + /* 1060 */ 220, 199, 77, 179, 75, 0, 38, 38, 206, 38, + /* 1070 */ 22, 0, 232, 233, 234, 235, 38, 38, 216, 38, + /* 1080 */ 38, 0, 220, 199, 38, 22, 22, 179, 39, 0, + /* 1090 */ 206, 22, 0, 38, 232, 233, 234, 235, 22, 0, + /* 1100 */ 216, 22, 20, 0, 220, 0, 122, 199, 117, 43, + /* 1110 */ 154, 179, 0, 81, 206, 81, 232, 233, 234, 235, + /* 1120 */ 12, 13, 69, 154, 216, 81, 148, 154, 220, 68, + /* 1130 */ 22, 199, 81, 179, 4, 38, 69, 69, 206, 69, + /* 1140 */ 232, 233, 234, 235, 69, 68, 38, 38, 216, 38, + /* 1150 */ 2, 68, 220, 199, 68, 179, 68, 38, 80, 69, + /* 1160 */ 206, 81, 38, 69, 232, 233, 234, 235, 81, 38, + /* 1170 */ 216, 80, 68, 80, 220, 199, 81, 179, 128, 69, + /* 1180 */ 80, 68, 206, 69, 69, 68, 232, 233, 234, 235, + /* 1190 */ 68, 68, 216, 120, 0, 43, 220, 199, 78, 22, + /* 1200 */ 92, 117, 68, 68, 206, 80, 80, 79, 232, 233, + /* 1210 */ 234, 235, 104, 69, 216, 68, 33, 38, 220, 36, + /* 1220 */ 38, 94, 69, 38, 68, 42, 69, 44, 38, 68, + /* 1230 */ 232, 233, 234, 235, 126, 69, 128, 129, 38, 68, + /* 1240 */ 38, 69, 68, 94, 94, 94, 22, 82, 68, 38, + /* 1250 */ 67, 38, 68, 70, 68, 38, 22, 48, 104, 47, + /* 1260 */ 22, 38, 22, 38, 38, 38, 38, 38, 38, 38, + /* 1270 */ 38, 38, 0, 38, 38, 38, 0, 38, 0, 38, + /* 1280 */ 38, 38, 36, 38, 37, 0, 22, 43, 21, 274, + /* 1290 */ 22, 22, 21, 20, 274, 274, 274, 274, 274, 274, + /* 1300 */ 117, 274, 274, 274, 121, 274, 274, 274, 274, 274, + /* 1310 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1320 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1330 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1340 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1350 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1360 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1370 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1380 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1390 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1400 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1410 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1420 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1430 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1440 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1450 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, + /* 1460 */ 274, 274, 274, 274, 274, 274, 274, 274, 274, 274, }; -#define YY_SHIFT_COUNT (431) +#define YY_SHIFT_COUNT (437) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1273) +#define YY_SHIFT_MAX (1285) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 569, 168, 179, 221, 221, 221, 221, 341, 221, 221, - /* 10 */ 406, 412, 177, 369, 406, 406, 406, 406, 406, 406, - /* 20 */ 406, 406, 406, 406, 406, 406, 406, 406, 406, 406, - /* 30 */ 406, 406, 406, 15, 15, 15, 152, 273, 273, 31, - /* 40 */ 31, 273, 31, 31, 149, 184, 280, 280, 247, 397, - /* 50 */ 184, 31, 31, 184, 31, 184, 397, 184, 184, 31, - /* 60 */ 377, 0, 13, 13, 677, 750, 1040, 548, 548, 548, - /* 70 */ 548, 548, 548, 548, 548, 548, 548, 548, 548, 548, - /* 80 */ 548, 548, 548, 548, 548, 548, 548, 779, 202, 207, - /* 90 */ 455, 455, 455, 229, 442, 397, 184, 184, 184, 308, - /* 100 */ 78, 78, 78, 78, 78, 96, 755, 898, 417, 429, - /* 110 */ 126, 578, 498, 121, 505, 121, 370, 258, 409, 716, - /* 120 */ 623, 626, 626, 716, 726, 149, 442, 752, 149, 149, - /* 130 */ 716, 149, 790, 184, 184, 184, 184, 184, 184, 184, - /* 140 */ 184, 184, 184, 184, 716, 790, 726, 377, 442, 752, - /* 150 */ 377, 872, 740, 749, 791, 740, 749, 791, 791, 759, - /* 160 */ 761, 776, 780, 792, 442, 919, 825, 784, 783, 786, - /* 170 */ 883, 184, 749, 791, 791, 749, 791, 847, 442, 752, - /* 180 */ 377, 308, 377, 442, 920, 716, 377, 790, 1282, 1282, - /* 190 */ 1282, 1282, 48, 768, 782, 1038, 484, 507, 624, 1115, - /* 200 */ 1130, 1020, 854, 236, 236, 236, 236, 236, 236, 236, - /* 210 */ 264, 156, 154, 130, 130, 130, 130, 510, 516, 564, - /* 220 */ 590, 66, 328, 613, 546, 537, 573, 574, 522, 486, - /* 230 */ 146, 471, 615, 570, 618, 630, 642, 643, 649, 672, - /* 240 */ 682, 543, 644, 704, 742, 751, 766, 781, 794, 596, - /* 250 */ 1013, 934, 1016, 1023, 905, 1024, 1031, 1033, 1034, 1035, - /* 260 */ 1036, 1019, 1042, 1044, 1045, 1046, 1048, 1049, 1050, 995, - /* 270 */ 1057, 1010, 1068, 1070, 1041, 1051, 1029, 1076, 1088, 1089, - /* 280 */ 1090, 1018, 1021, 1060, 1062, 1080, 1103, 1066, 1069, 1071, - /* 290 */ 1072, 1074, 1077, 1106, 1096, 1119, 1098, 1082, 1123, 1102, - /* 300 */ 1087, 1133, 1112, 1135, 1117, 1121, 1148, 1154, 1039, 1156, - /* 310 */ 1092, 1114, 1047, 1081, 1084, 1008, 1094, 1085, 1099, 1101, - /* 320 */ 1104, 1105, 1107, 1108, 1086, 1091, 1110, 1095, 1030, 1113, - /* 330 */ 1116, 1093, 1026, 1100, 1109, 1118, 1111, 1043, 1175, 1145, - /* 340 */ 1146, 1150, 1152, 1153, 1157, 1184, 1073, 1120, 1125, 1128, - /* 350 */ 1131, 1129, 1132, 1134, 1136, 1083, 1137, 1206, 1164, 1097, - /* 360 */ 1140, 1138, 1139, 1141, 1187, 1142, 1143, 1144, 1173, 1174, - /* 370 */ 1147, 1149, 1179, 1155, 1151, 1186, 1158, 1159, 1189, 1161, - /* 380 */ 1162, 1192, 1165, 1160, 1163, 1166, 1167, 1203, 1168, 1169, - /* 390 */ 1194, 1170, 1171, 1172, 1196, 1197, 1214, 1190, 1195, 1219, - /* 400 */ 1205, 1207, 1208, 1209, 1210, 1211, 1213, 1222, 1215, 1217, - /* 410 */ 1218, 1220, 1221, 1224, 1225, 1226, 1227, 1252, 1228, 1231, - /* 420 */ 1229, 1268, 1232, 1234, 1269, 1273, 1253, 1255, 1256, 1257, - /* 430 */ 1259, 1261, + /* 0 */ 882, 168, 173, 266, 266, 266, 266, 341, 266, 266, + /* 10 */ 424, 463, 116, 392, 424, 424, 424, 424, 424, 424, + /* 20 */ 424, 424, 424, 424, 424, 424, 424, 424, 424, 424, + /* 30 */ 424, 424, 424, 317, 317, 317, 102, 1108, 1108, 73, + /* 40 */ 104, 104, 1108, 104, 104, 143, 339, 369, 369, 186, + /* 50 */ 436, 339, 104, 104, 339, 104, 339, 436, 339, 339, + /* 60 */ 104, 299, 0, 13, 13, 509, 833, 249, 677, 677, + /* 70 */ 677, 677, 677, 677, 677, 677, 677, 677, 677, 677, + /* 80 */ 677, 677, 677, 677, 677, 677, 677, 677, 590, 295, + /* 90 */ 137, 243, 243, 243, 239, 444, 436, 339, 339, 339, + /* 100 */ 285, 78, 78, 78, 78, 78, 660, 66, 118, 350, + /* 110 */ 458, 171, 232, 515, 144, 218, 144, 421, 497, 51, + /* 120 */ 607, 728, 649, 651, 651, 728, 765, 143, 444, 788, + /* 130 */ 143, 143, 728, 143, 813, 339, 339, 339, 339, 339, + /* 140 */ 339, 339, 339, 339, 339, 339, 728, 813, 765, 299, + /* 150 */ 444, 788, 299, 876, 741, 746, 777, 741, 746, 777, + /* 160 */ 777, 750, 754, 767, 787, 780, 444, 921, 830, 773, + /* 170 */ 781, 782, 879, 339, 746, 777, 777, 746, 777, 842, + /* 180 */ 444, 788, 299, 285, 299, 444, 911, 728, 299, 813, + /* 190 */ 1305, 1305, 1305, 1305, 1305, 48, 852, 801, 1183, 407, + /* 200 */ 480, 657, 563, 763, 758, 920, 776, 776, 776, 776, + /* 210 */ 776, 776, 776, 174, 19, 316, 134, 134, 134, 134, + /* 220 */ 327, 472, 485, 531, 642, 648, 698, 176, 545, 565, + /* 230 */ 613, 532, 413, 358, 332, 638, 504, 653, 645, 655, + /* 240 */ 663, 666, 672, 702, 521, 623, 713, 735, 738, 740, + /* 250 */ 742, 743, 778, 1000, 897, 877, 1004, 930, 1011, 1013, + /* 260 */ 899, 1015, 1018, 1020, 1021, 1022, 1023, 1003, 1026, 1027, + /* 270 */ 1033, 1035, 1036, 1037, 1040, 999, 1043, 996, 1045, 1047, + /* 280 */ 1010, 1019, 1006, 1054, 1057, 1058, 1059, 985, 989, 1028, + /* 290 */ 1029, 1048, 1065, 1031, 1038, 1039, 1041, 1042, 1046, 1071, + /* 300 */ 1063, 1081, 1064, 1049, 1089, 1069, 1055, 1092, 1076, 1099, + /* 310 */ 1079, 1082, 1103, 1105, 984, 1112, 1061, 1066, 991, 1032, + /* 320 */ 1034, 956, 1053, 1044, 1067, 1077, 1083, 1068, 1086, 1070, + /* 330 */ 1051, 1078, 1088, 1080, 969, 1075, 1090, 1091, 978, 1087, + /* 340 */ 1093, 1094, 1095, 973, 1130, 1097, 1109, 1111, 1119, 1124, + /* 350 */ 1131, 1148, 1050, 1100, 1110, 1104, 1113, 1114, 1115, 1117, + /* 360 */ 1122, 1073, 1123, 1194, 1152, 1084, 1134, 1120, 1125, 1126, + /* 370 */ 1177, 1135, 1128, 1144, 1179, 1182, 1147, 1153, 1185, 1156, + /* 380 */ 1157, 1190, 1161, 1166, 1200, 1171, 1172, 1202, 1174, 1127, + /* 390 */ 1149, 1150, 1151, 1224, 1165, 1180, 1211, 1154, 1184, 1186, + /* 400 */ 1213, 1217, 1234, 1209, 1212, 1238, 1223, 1225, 1226, 1227, + /* 410 */ 1228, 1229, 1230, 1240, 1231, 1232, 1233, 1235, 1236, 1237, + /* 420 */ 1239, 1241, 1242, 1272, 1243, 1246, 1244, 1276, 1245, 1247, + /* 430 */ 1278, 1285, 1264, 1267, 1268, 1269, 1271, 1273, }; -#define YY_REDUCE_COUNT (191) -#define YY_REDUCE_MIN (-225) -#define YY_REDUCE_MAX (897) +#define YY_REDUCE_COUNT (194) +#define YY_REDUCE_MIN (-235) +#define YY_REDUCE_MAX (998) static const short yy_reduce_ofst[] = { - /* 0 */ 63, -172, -16, 104, 28, 140, 176, 256, 331, 367, - /* 10 */ -134, 403, 382, 432, 451, 474, 493, 533, 538, 627, - /* 20 */ 632, 662, 670, 706, 729, 734, 769, 777, 799, 827, - /* 30 */ 835, 857, 865, 214, 778, 897, -179, -177, -14, -150, - /* 40 */ 88, -216, -149, -116, -182, -12, -178, 3, -225, -207, - /* 50 */ -114, 35, 155, 81, 162, 227, -140, 123, 253, 213, - /* 60 */ 249, -212, -212, -212, -148, 8, 107, -56, 12, 92, - /* 70 */ 105, 142, 144, 211, 225, 226, 233, 260, 263, 284, - /* 80 */ 285, 296, 306, 330, 333, 334, 339, -109, -46, 313, - /* 90 */ 113, 138, 297, 347, 261, -133, 350, 241, 283, -73, - /* 100 */ -192, -187, 295, 303, 375, 414, 481, 423, 342, 478, - /* 110 */ 440, 514, 468, 470, 470, 470, 536, 457, 487, 556, - /* 120 */ 529, 535, 539, 563, 549, 587, 554, 592, 600, 603, - /* 130 */ 622, 625, 636, 621, 645, 647, 651, 656, 676, 678, - /* 140 */ 681, 684, 685, 689, 638, 648, 601, 697, 629, 674, - /* 150 */ 705, 668, 639, 688, 690, 659, 700, 691, 703, 673, - /* 160 */ 675, 680, 693, 470, 736, 719, 710, 687, 707, 709, - /* 170 */ 732, 536, 756, 760, 762, 758, 767, 753, 775, 771, - /* 180 */ 788, 795, 802, 785, 793, 809, 812, 822, 811, 819, - /* 190 */ 830, 836, + /* 0 */ 321, -7, 15, 108, -162, 140, 187, 273, 364, 395, + /* 10 */ 434, 439, -184, 477, 517, 522, 564, 594, 616, 691, + /* 20 */ 722, 752, 774, 796, 818, 840, 862, 884, 908, 932, + /* 30 */ 954, 976, 998, -153, -3, 212, 86, -24, -12, -219, + /* 40 */ -167, -166, -220, -147, 34, -120, 2, 74, 75, 64, + /* 50 */ -212, -72, 162, 172, 54, 225, 31, -159, 178, 209, + /* 60 */ 297, -149, -235, -235, -235, -90, -144, -134, -137, 151, + /* 70 */ 205, 222, 245, 270, 274, 307, 325, 338, 344, 351, + /* 80 */ 382, 387, 389, 431, 433, 438, 445, 483, -102, 85, + /* 90 */ 230, 220, 251, 284, 111, 282, -211, -81, 122, 256, + /* 100 */ 195, 349, 372, 408, 443, 478, 499, 380, 405, 432, + /* 110 */ 493, 449, 526, 486, 476, 476, 476, 530, 464, 492, + /* 120 */ 520, 576, 552, 556, 560, 589, 577, 600, 596, 601, + /* 130 */ 626, 643, 640, 644, 659, 639, 654, 656, 667, 668, + /* 140 */ 670, 673, 674, 675, 676, 686, 662, 661, 617, 703, + /* 150 */ 680, 627, 704, 678, 636, 683, 688, 650, 689, 693, + /* 160 */ 694, 671, 658, 681, 685, 476, 737, 714, 705, 679, + /* 170 */ 692, 695, 720, 530, 744, 747, 749, 745, 751, 756, + /* 180 */ 757, 753, 792, 769, 793, 772, 779, 797, 799, 810, + /* 190 */ 766, 803, 805, 806, 822, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 10 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 20 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 30 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 40 */ 1023, 1023, 1023, 1023, 1076, 1023, 1023, 1023, 1023, 1023, - /* 50 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 60 */ 1074, 1023, 1293, 1023, 1189, 1023, 1023, 1023, 1023, 1023, - /* 70 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 80 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1076, - /* 90 */ 1304, 1304, 1304, 1074, 1023, 1023, 1023, 1023, 1023, 1158, - /* 100 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1368, 1023, 1111, - /* 110 */ 1328, 1023, 1320, 1296, 1310, 1297, 1023, 1353, 1313, 1023, - /* 120 */ 1194, 1191, 1191, 1023, 1023, 1076, 1023, 1023, 1076, 1076, - /* 130 */ 1023, 1076, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 140 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1074, 1023, 1023, - /* 150 */ 1074, 1023, 1335, 1333, 1023, 1335, 1333, 1023, 1023, 1347, - /* 160 */ 1343, 1326, 1324, 1310, 1023, 1023, 1023, 1371, 1359, 1355, - /* 170 */ 1023, 1023, 1333, 1023, 1023, 1333, 1023, 1202, 1023, 1023, - /* 180 */ 1074, 1023, 1074, 1023, 1127, 1023, 1074, 1023, 1161, 1161, - /* 190 */ 1077, 1028, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 200 */ 1023, 1023, 1023, 1258, 1346, 1345, 1257, 1270, 1269, 1268, - /* 210 */ 1023, 1023, 1023, 1252, 1253, 1251, 1250, 1023, 1023, 1023, - /* 220 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1294, 1023, - /* 230 */ 1356, 1360, 1023, 1023, 1023, 1236, 1023, 1023, 1023, 1023, - /* 240 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 250 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 260 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 270 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 280 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 290 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 300 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 310 */ 1023, 1023, 1023, 1317, 1327, 1023, 1023, 1023, 1023, 1023, - /* 320 */ 1023, 1023, 1023, 1023, 1023, 1236, 1023, 1344, 1023, 1303, - /* 330 */ 1299, 1023, 1023, 1295, 1023, 1023, 1354, 1023, 1023, 1023, - /* 340 */ 1023, 1023, 1023, 1023, 1023, 1289, 1023, 1023, 1023, 1023, - /* 350 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 360 */ 1023, 1023, 1235, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 370 */ 1155, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 380 */ 1023, 1023, 1023, 1140, 1138, 1137, 1136, 1023, 1133, 1023, - /* 390 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 400 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 410 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 420 */ 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, 1023, - /* 430 */ 1023, 1023, + /* 0 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 10 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 20 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 30 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 40 */ 1038, 1038, 1038, 1038, 1038, 1091, 1038, 1038, 1038, 1038, + /* 50 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 60 */ 1038, 1089, 1038, 1314, 1038, 1204, 1038, 1038, 1038, 1038, + /* 70 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 80 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 90 */ 1091, 1325, 1325, 1325, 1089, 1038, 1038, 1038, 1038, 1038, + /* 100 */ 1173, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1389, 1038, + /* 110 */ 1126, 1349, 1038, 1341, 1317, 1331, 1318, 1038, 1374, 1334, + /* 120 */ 1227, 1038, 1209, 1206, 1206, 1038, 1038, 1091, 1038, 1038, + /* 130 */ 1091, 1091, 1038, 1091, 1038, 1038, 1038, 1038, 1038, 1038, + /* 140 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1089, + /* 150 */ 1038, 1038, 1089, 1038, 1356, 1354, 1038, 1356, 1354, 1038, + /* 160 */ 1038, 1368, 1364, 1347, 1345, 1331, 1038, 1038, 1038, 1392, + /* 170 */ 1380, 1376, 1038, 1038, 1354, 1038, 1038, 1354, 1038, 1217, + /* 180 */ 1038, 1038, 1089, 1038, 1089, 1038, 1142, 1038, 1089, 1038, + /* 190 */ 1229, 1176, 1176, 1092, 1043, 1038, 1038, 1038, 1038, 1038, + /* 200 */ 1038, 1038, 1038, 1038, 1038, 1038, 1279, 1367, 1366, 1278, + /* 210 */ 1291, 1290, 1289, 1038, 1038, 1038, 1273, 1274, 1272, 1271, + /* 220 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 230 */ 1038, 1315, 1038, 1377, 1381, 1038, 1038, 1038, 1257, 1038, + /* 240 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 250 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 260 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 270 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 280 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 290 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 300 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 310 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1338, + /* 320 */ 1348, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 330 */ 1038, 1257, 1038, 1365, 1038, 1324, 1320, 1038, 1038, 1316, + /* 340 */ 1038, 1038, 1375, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 350 */ 1038, 1310, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 360 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1256, 1038, + /* 370 */ 1038, 1038, 1038, 1038, 1038, 1038, 1170, 1038, 1038, 1038, + /* 380 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1155, + /* 390 */ 1153, 1152, 1151, 1038, 1148, 1038, 1038, 1038, 1038, 1038, + /* 400 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 410 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 420 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, + /* 430 */ 1038, 1038, 1038, 1038, 1038, 1038, 1038, 1038, }; /********** End of lemon-generated parsing tables *****************************/ @@ -837,151 +840,157 @@ static const char *const yyTokenName[] = { /* 120 */ "INTERVAL", /* 121 */ "TOPIC", /* 122 */ "AS", - /* 123 */ "NK_BOOL", - /* 124 */ "NULL", - /* 125 */ "NK_VARIABLE", - /* 126 */ "NK_UNDERLINE", - /* 127 */ "ROWTS", - /* 128 */ "TBNAME", - /* 129 */ "QSTARTTS", - /* 130 */ "QENDTS", - /* 131 */ "WSTARTTS", - /* 132 */ "WENDTS", - /* 133 */ "WDURATION", - /* 134 */ "BETWEEN", - /* 135 */ "IS", - /* 136 */ "NK_LT", - /* 137 */ "NK_GT", - /* 138 */ "NK_LE", - /* 139 */ "NK_GE", - /* 140 */ "NK_NE", - /* 141 */ "MATCH", - /* 142 */ "NMATCH", - /* 143 */ "IN", - /* 144 */ "JOIN", - /* 145 */ "INNER", - /* 146 */ "SELECT", - /* 147 */ "DISTINCT", - /* 148 */ "WHERE", - /* 149 */ "PARTITION", - /* 150 */ "BY", - /* 151 */ "SESSION", - /* 152 */ "STATE_WINDOW", - /* 153 */ "SLIDING", - /* 154 */ "FILL", - /* 155 */ "VALUE", - /* 156 */ "NONE", - /* 157 */ "PREV", - /* 158 */ "LINEAR", - /* 159 */ "NEXT", - /* 160 */ "GROUP", - /* 161 */ "HAVING", - /* 162 */ "ORDER", - /* 163 */ "SLIMIT", - /* 164 */ "SOFFSET", - /* 165 */ "LIMIT", - /* 166 */ "OFFSET", - /* 167 */ "ASC", - /* 168 */ "DESC", - /* 169 */ "NULLS", - /* 170 */ "FIRST", - /* 171 */ "LAST", - /* 172 */ "cmd", - /* 173 */ "account_options", - /* 174 */ "alter_account_options", - /* 175 */ "literal", - /* 176 */ "alter_account_option", - /* 177 */ "user_name", - /* 178 */ "dnode_endpoint", - /* 179 */ "dnode_host_name", - /* 180 */ "not_exists_opt", - /* 181 */ "db_name", - /* 182 */ "db_options", - /* 183 */ "exists_opt", - /* 184 */ "alter_db_options", - /* 185 */ "alter_db_option", - /* 186 */ "full_table_name", - /* 187 */ "column_def_list", - /* 188 */ "tags_def_opt", - /* 189 */ "table_options", - /* 190 */ "multi_create_clause", - /* 191 */ "tags_def", - /* 192 */ "multi_drop_clause", - /* 193 */ "alter_table_clause", - /* 194 */ "alter_table_options", - /* 195 */ "column_name", - /* 196 */ "type_name", - /* 197 */ "create_subtable_clause", - /* 198 */ "specific_tags_opt", - /* 199 */ "literal_list", - /* 200 */ "drop_table_clause", - /* 201 */ "col_name_list", - /* 202 */ "table_name", - /* 203 */ "column_def", - /* 204 */ "func_name_list", - /* 205 */ "alter_table_option", - /* 206 */ "col_name", - /* 207 */ "db_name_cond_opt", - /* 208 */ "like_pattern_opt", - /* 209 */ "table_name_cond", - /* 210 */ "from_db_opt", - /* 211 */ "func_name", - /* 212 */ "function_name", - /* 213 */ "index_name", - /* 214 */ "index_options", - /* 215 */ "func_list", - /* 216 */ "duration_literal", - /* 217 */ "sliding_opt", - /* 218 */ "func", - /* 219 */ "expression_list", - /* 220 */ "topic_name", - /* 221 */ "query_expression", - /* 222 */ "signed", - /* 223 */ "signed_literal", - /* 224 */ "table_alias", - /* 225 */ "column_alias", - /* 226 */ "expression", - /* 227 */ "pseudo_column", - /* 228 */ "column_reference", - /* 229 */ "subquery", - /* 230 */ "predicate", - /* 231 */ "compare_op", - /* 232 */ "in_op", - /* 233 */ "in_predicate_value", - /* 234 */ "boolean_value_expression", - /* 235 */ "boolean_primary", - /* 236 */ "common_expression", - /* 237 */ "from_clause", - /* 238 */ "table_reference_list", - /* 239 */ "table_reference", - /* 240 */ "table_primary", - /* 241 */ "joined_table", - /* 242 */ "alias_opt", - /* 243 */ "parenthesized_joined_table", - /* 244 */ "join_type", - /* 245 */ "search_condition", - /* 246 */ "query_specification", - /* 247 */ "set_quantifier_opt", - /* 248 */ "select_list", - /* 249 */ "where_clause_opt", - /* 250 */ "partition_by_clause_opt", - /* 251 */ "twindow_clause_opt", - /* 252 */ "group_by_clause_opt", - /* 253 */ "having_clause_opt", - /* 254 */ "select_sublist", - /* 255 */ "select_item", - /* 256 */ "fill_opt", - /* 257 */ "fill_mode", - /* 258 */ "group_by_list", - /* 259 */ "query_expression_body", - /* 260 */ "order_by_clause_opt", - /* 261 */ "slimit_clause_opt", - /* 262 */ "limit_clause_opt", - /* 263 */ "query_primary", - /* 264 */ "sort_specification_list", - /* 265 */ "sort_specification", - /* 266 */ "ordering_specification_opt", - /* 267 */ "null_ordering_opt", + /* 123 */ "EXPLAIN", + /* 124 */ "ANALYZE", + /* 125 */ "VERBOSE", + /* 126 */ "NK_BOOL", + /* 127 */ "RATIO", + /* 128 */ "NULL", + /* 129 */ "NK_VARIABLE", + /* 130 */ "NK_UNDERLINE", + /* 131 */ "ROWTS", + /* 132 */ "TBNAME", + /* 133 */ "QSTARTTS", + /* 134 */ "QENDTS", + /* 135 */ "WSTARTTS", + /* 136 */ "WENDTS", + /* 137 */ "WDURATION", + /* 138 */ "BETWEEN", + /* 139 */ "IS", + /* 140 */ "NK_LT", + /* 141 */ "NK_GT", + /* 142 */ "NK_LE", + /* 143 */ "NK_GE", + /* 144 */ "NK_NE", + /* 145 */ "MATCH", + /* 146 */ "NMATCH", + /* 147 */ "IN", + /* 148 */ "JOIN", + /* 149 */ "INNER", + /* 150 */ "SELECT", + /* 151 */ "DISTINCT", + /* 152 */ "WHERE", + /* 153 */ "PARTITION", + /* 154 */ "BY", + /* 155 */ "SESSION", + /* 156 */ "STATE_WINDOW", + /* 157 */ "SLIDING", + /* 158 */ "FILL", + /* 159 */ "VALUE", + /* 160 */ "NONE", + /* 161 */ "PREV", + /* 162 */ "LINEAR", + /* 163 */ "NEXT", + /* 164 */ "GROUP", + /* 165 */ "HAVING", + /* 166 */ "ORDER", + /* 167 */ "SLIMIT", + /* 168 */ "SOFFSET", + /* 169 */ "LIMIT", + /* 170 */ "OFFSET", + /* 171 */ "ASC", + /* 172 */ "DESC", + /* 173 */ "NULLS", + /* 174 */ "FIRST", + /* 175 */ "LAST", + /* 176 */ "cmd", + /* 177 */ "account_options", + /* 178 */ "alter_account_options", + /* 179 */ "literal", + /* 180 */ "alter_account_option", + /* 181 */ "user_name", + /* 182 */ "dnode_endpoint", + /* 183 */ "dnode_host_name", + /* 184 */ "not_exists_opt", + /* 185 */ "db_name", + /* 186 */ "db_options", + /* 187 */ "exists_opt", + /* 188 */ "alter_db_options", + /* 189 */ "alter_db_option", + /* 190 */ "full_table_name", + /* 191 */ "column_def_list", + /* 192 */ "tags_def_opt", + /* 193 */ "table_options", + /* 194 */ "multi_create_clause", + /* 195 */ "tags_def", + /* 196 */ "multi_drop_clause", + /* 197 */ "alter_table_clause", + /* 198 */ "alter_table_options", + /* 199 */ "column_name", + /* 200 */ "type_name", + /* 201 */ "create_subtable_clause", + /* 202 */ "specific_tags_opt", + /* 203 */ "literal_list", + /* 204 */ "drop_table_clause", + /* 205 */ "col_name_list", + /* 206 */ "table_name", + /* 207 */ "column_def", + /* 208 */ "func_name_list", + /* 209 */ "alter_table_option", + /* 210 */ "col_name", + /* 211 */ "db_name_cond_opt", + /* 212 */ "like_pattern_opt", + /* 213 */ "table_name_cond", + /* 214 */ "from_db_opt", + /* 215 */ "func_name", + /* 216 */ "function_name", + /* 217 */ "index_name", + /* 218 */ "index_options", + /* 219 */ "func_list", + /* 220 */ "duration_literal", + /* 221 */ "sliding_opt", + /* 222 */ "func", + /* 223 */ "expression_list", + /* 224 */ "topic_name", + /* 225 */ "query_expression", + /* 226 */ "analyze_opt", + /* 227 */ "explain_options", + /* 228 */ "signed", + /* 229 */ "signed_literal", + /* 230 */ "table_alias", + /* 231 */ "column_alias", + /* 232 */ "expression", + /* 233 */ "pseudo_column", + /* 234 */ "column_reference", + /* 235 */ "subquery", + /* 236 */ "predicate", + /* 237 */ "compare_op", + /* 238 */ "in_op", + /* 239 */ "in_predicate_value", + /* 240 */ "boolean_value_expression", + /* 241 */ "boolean_primary", + /* 242 */ "common_expression", + /* 243 */ "from_clause", + /* 244 */ "table_reference_list", + /* 245 */ "table_reference", + /* 246 */ "table_primary", + /* 247 */ "joined_table", + /* 248 */ "alias_opt", + /* 249 */ "parenthesized_joined_table", + /* 250 */ "join_type", + /* 251 */ "search_condition", + /* 252 */ "query_specification", + /* 253 */ "set_quantifier_opt", + /* 254 */ "select_list", + /* 255 */ "where_clause_opt", + /* 256 */ "partition_by_clause_opt", + /* 257 */ "twindow_clause_opt", + /* 258 */ "group_by_clause_opt", + /* 259 */ "having_clause_opt", + /* 260 */ "select_sublist", + /* 261 */ "select_item", + /* 262 */ "fill_opt", + /* 263 */ "fill_mode", + /* 264 */ "group_by_list", + /* 265 */ "query_expression_body", + /* 266 */ "order_by_clause_opt", + /* 267 */ "slimit_clause_opt", + /* 268 */ "limit_clause_opt", + /* 269 */ "query_primary", + /* 270 */ "sort_specification_list", + /* 271 */ "sort_specification", + /* 272 */ "ordering_specification_opt", + /* 273 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1174,169 +1183,175 @@ static const char *const yyRuleName[] = { /* 182 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", /* 183 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", /* 184 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 185 */ "cmd ::= query_expression", - /* 186 */ "literal ::= NK_INTEGER", - /* 187 */ "literal ::= NK_FLOAT", - /* 188 */ "literal ::= NK_STRING", - /* 189 */ "literal ::= NK_BOOL", - /* 190 */ "literal ::= TIMESTAMP NK_STRING", - /* 191 */ "literal ::= duration_literal", - /* 192 */ "literal ::= NULL", - /* 193 */ "duration_literal ::= NK_VARIABLE", - /* 194 */ "signed ::= NK_INTEGER", - /* 195 */ "signed ::= NK_PLUS NK_INTEGER", - /* 196 */ "signed ::= NK_MINUS NK_INTEGER", - /* 197 */ "signed ::= NK_FLOAT", - /* 198 */ "signed ::= NK_PLUS NK_FLOAT", - /* 199 */ "signed ::= NK_MINUS NK_FLOAT", - /* 200 */ "signed_literal ::= signed", - /* 201 */ "signed_literal ::= NK_STRING", - /* 202 */ "signed_literal ::= NK_BOOL", - /* 203 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 204 */ "signed_literal ::= duration_literal", - /* 205 */ "signed_literal ::= NULL", - /* 206 */ "literal_list ::= signed_literal", - /* 207 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 208 */ "db_name ::= NK_ID", - /* 209 */ "table_name ::= NK_ID", - /* 210 */ "column_name ::= NK_ID", - /* 211 */ "function_name ::= NK_ID", - /* 212 */ "table_alias ::= NK_ID", - /* 213 */ "column_alias ::= NK_ID", - /* 214 */ "user_name ::= NK_ID", - /* 215 */ "index_name ::= NK_ID", - /* 216 */ "topic_name ::= NK_ID", - /* 217 */ "expression ::= literal", - /* 218 */ "expression ::= pseudo_column", - /* 219 */ "expression ::= column_reference", - /* 220 */ "expression ::= function_name NK_LP expression_list NK_RP", - /* 221 */ "expression ::= function_name NK_LP NK_STAR NK_RP", - /* 222 */ "expression ::= subquery", - /* 223 */ "expression ::= NK_LP expression NK_RP", - /* 224 */ "expression ::= NK_PLUS expression", - /* 225 */ "expression ::= NK_MINUS expression", - /* 226 */ "expression ::= expression NK_PLUS expression", - /* 227 */ "expression ::= expression NK_MINUS expression", - /* 228 */ "expression ::= expression NK_STAR expression", - /* 229 */ "expression ::= expression NK_SLASH expression", - /* 230 */ "expression ::= expression NK_REM expression", - /* 231 */ "expression_list ::= expression", - /* 232 */ "expression_list ::= expression_list NK_COMMA expression", - /* 233 */ "column_reference ::= column_name", - /* 234 */ "column_reference ::= table_name NK_DOT column_name", - /* 235 */ "pseudo_column ::= NK_UNDERLINE ROWTS", - /* 236 */ "pseudo_column ::= TBNAME", - /* 237 */ "pseudo_column ::= NK_UNDERLINE QSTARTTS", - /* 238 */ "pseudo_column ::= NK_UNDERLINE QENDTS", - /* 239 */ "pseudo_column ::= NK_UNDERLINE WSTARTTS", - /* 240 */ "pseudo_column ::= NK_UNDERLINE WENDTS", - /* 241 */ "pseudo_column ::= NK_UNDERLINE WDURATION", - /* 242 */ "predicate ::= expression compare_op expression", - /* 243 */ "predicate ::= expression BETWEEN expression AND expression", - /* 244 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 245 */ "predicate ::= expression IS NULL", - /* 246 */ "predicate ::= expression IS NOT NULL", - /* 247 */ "predicate ::= expression in_op in_predicate_value", - /* 248 */ "compare_op ::= NK_LT", - /* 249 */ "compare_op ::= NK_GT", - /* 250 */ "compare_op ::= NK_LE", - /* 251 */ "compare_op ::= NK_GE", - /* 252 */ "compare_op ::= NK_NE", - /* 253 */ "compare_op ::= NK_EQ", - /* 254 */ "compare_op ::= LIKE", - /* 255 */ "compare_op ::= NOT LIKE", - /* 256 */ "compare_op ::= MATCH", - /* 257 */ "compare_op ::= NMATCH", - /* 258 */ "in_op ::= IN", - /* 259 */ "in_op ::= NOT IN", - /* 260 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 261 */ "boolean_value_expression ::= boolean_primary", - /* 262 */ "boolean_value_expression ::= NOT boolean_primary", - /* 263 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 264 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 265 */ "boolean_primary ::= predicate", - /* 266 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 267 */ "common_expression ::= expression", - /* 268 */ "common_expression ::= boolean_value_expression", - /* 269 */ "from_clause ::= FROM table_reference_list", - /* 270 */ "table_reference_list ::= table_reference", - /* 271 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 272 */ "table_reference ::= table_primary", - /* 273 */ "table_reference ::= joined_table", - /* 274 */ "table_primary ::= table_name alias_opt", - /* 275 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 276 */ "table_primary ::= subquery alias_opt", - /* 277 */ "table_primary ::= parenthesized_joined_table", - /* 278 */ "alias_opt ::=", - /* 279 */ "alias_opt ::= table_alias", - /* 280 */ "alias_opt ::= AS table_alias", - /* 281 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 282 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 283 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 284 */ "join_type ::=", - /* 285 */ "join_type ::= INNER", - /* 286 */ "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", - /* 287 */ "set_quantifier_opt ::=", - /* 288 */ "set_quantifier_opt ::= DISTINCT", - /* 289 */ "set_quantifier_opt ::= ALL", - /* 290 */ "select_list ::= NK_STAR", - /* 291 */ "select_list ::= select_sublist", - /* 292 */ "select_sublist ::= select_item", - /* 293 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 294 */ "select_item ::= common_expression", - /* 295 */ "select_item ::= common_expression column_alias", - /* 296 */ "select_item ::= common_expression AS column_alias", - /* 297 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 298 */ "where_clause_opt ::=", - /* 299 */ "where_clause_opt ::= WHERE search_condition", - /* 300 */ "partition_by_clause_opt ::=", - /* 301 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 302 */ "twindow_clause_opt ::=", - /* 303 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 304 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", - /* 305 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 306 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 307 */ "sliding_opt ::=", - /* 308 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 309 */ "fill_opt ::=", - /* 310 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 311 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 312 */ "fill_mode ::= NONE", - /* 313 */ "fill_mode ::= PREV", - /* 314 */ "fill_mode ::= NULL", - /* 315 */ "fill_mode ::= LINEAR", - /* 316 */ "fill_mode ::= NEXT", - /* 317 */ "group_by_clause_opt ::=", - /* 318 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 319 */ "group_by_list ::= expression", - /* 320 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 321 */ "having_clause_opt ::=", - /* 322 */ "having_clause_opt ::= HAVING search_condition", - /* 323 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 324 */ "query_expression_body ::= query_primary", - /* 325 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 326 */ "query_primary ::= query_specification", - /* 327 */ "order_by_clause_opt ::=", - /* 328 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 329 */ "slimit_clause_opt ::=", - /* 330 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 331 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 332 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 333 */ "limit_clause_opt ::=", - /* 334 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 335 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 336 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 337 */ "subquery ::= NK_LP query_expression NK_RP", - /* 338 */ "search_condition ::= common_expression", - /* 339 */ "sort_specification_list ::= sort_specification", - /* 340 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 341 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 342 */ "ordering_specification_opt ::=", - /* 343 */ "ordering_specification_opt ::= ASC", - /* 344 */ "ordering_specification_opt ::= DESC", - /* 345 */ "null_ordering_opt ::=", - /* 346 */ "null_ordering_opt ::= NULLS FIRST", - /* 347 */ "null_ordering_opt ::= NULLS LAST", + /* 185 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 186 */ "analyze_opt ::=", + /* 187 */ "analyze_opt ::= ANALYZE", + /* 188 */ "explain_options ::=", + /* 189 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 190 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 191 */ "cmd ::= query_expression", + /* 192 */ "literal ::= NK_INTEGER", + /* 193 */ "literal ::= NK_FLOAT", + /* 194 */ "literal ::= NK_STRING", + /* 195 */ "literal ::= NK_BOOL", + /* 196 */ "literal ::= TIMESTAMP NK_STRING", + /* 197 */ "literal ::= duration_literal", + /* 198 */ "literal ::= NULL", + /* 199 */ "duration_literal ::= NK_VARIABLE", + /* 200 */ "signed ::= NK_INTEGER", + /* 201 */ "signed ::= NK_PLUS NK_INTEGER", + /* 202 */ "signed ::= NK_MINUS NK_INTEGER", + /* 203 */ "signed ::= NK_FLOAT", + /* 204 */ "signed ::= NK_PLUS NK_FLOAT", + /* 205 */ "signed ::= NK_MINUS NK_FLOAT", + /* 206 */ "signed_literal ::= signed", + /* 207 */ "signed_literal ::= NK_STRING", + /* 208 */ "signed_literal ::= NK_BOOL", + /* 209 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 210 */ "signed_literal ::= duration_literal", + /* 211 */ "signed_literal ::= NULL", + /* 212 */ "literal_list ::= signed_literal", + /* 213 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 214 */ "db_name ::= NK_ID", + /* 215 */ "table_name ::= NK_ID", + /* 216 */ "column_name ::= NK_ID", + /* 217 */ "function_name ::= NK_ID", + /* 218 */ "table_alias ::= NK_ID", + /* 219 */ "column_alias ::= NK_ID", + /* 220 */ "user_name ::= NK_ID", + /* 221 */ "index_name ::= NK_ID", + /* 222 */ "topic_name ::= NK_ID", + /* 223 */ "expression ::= literal", + /* 224 */ "expression ::= pseudo_column", + /* 225 */ "expression ::= column_reference", + /* 226 */ "expression ::= function_name NK_LP expression_list NK_RP", + /* 227 */ "expression ::= function_name NK_LP NK_STAR NK_RP", + /* 228 */ "expression ::= subquery", + /* 229 */ "expression ::= NK_LP expression NK_RP", + /* 230 */ "expression ::= NK_PLUS expression", + /* 231 */ "expression ::= NK_MINUS expression", + /* 232 */ "expression ::= expression NK_PLUS expression", + /* 233 */ "expression ::= expression NK_MINUS expression", + /* 234 */ "expression ::= expression NK_STAR expression", + /* 235 */ "expression ::= expression NK_SLASH expression", + /* 236 */ "expression ::= expression NK_REM expression", + /* 237 */ "expression_list ::= expression", + /* 238 */ "expression_list ::= expression_list NK_COMMA expression", + /* 239 */ "column_reference ::= column_name", + /* 240 */ "column_reference ::= table_name NK_DOT column_name", + /* 241 */ "pseudo_column ::= NK_UNDERLINE ROWTS", + /* 242 */ "pseudo_column ::= TBNAME", + /* 243 */ "pseudo_column ::= NK_UNDERLINE QSTARTTS", + /* 244 */ "pseudo_column ::= NK_UNDERLINE QENDTS", + /* 245 */ "pseudo_column ::= NK_UNDERLINE WSTARTTS", + /* 246 */ "pseudo_column ::= NK_UNDERLINE WENDTS", + /* 247 */ "pseudo_column ::= NK_UNDERLINE WDURATION", + /* 248 */ "predicate ::= expression compare_op expression", + /* 249 */ "predicate ::= expression BETWEEN expression AND expression", + /* 250 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 251 */ "predicate ::= expression IS NULL", + /* 252 */ "predicate ::= expression IS NOT NULL", + /* 253 */ "predicate ::= expression in_op in_predicate_value", + /* 254 */ "compare_op ::= NK_LT", + /* 255 */ "compare_op ::= NK_GT", + /* 256 */ "compare_op ::= NK_LE", + /* 257 */ "compare_op ::= NK_GE", + /* 258 */ "compare_op ::= NK_NE", + /* 259 */ "compare_op ::= NK_EQ", + /* 260 */ "compare_op ::= LIKE", + /* 261 */ "compare_op ::= NOT LIKE", + /* 262 */ "compare_op ::= MATCH", + /* 263 */ "compare_op ::= NMATCH", + /* 264 */ "in_op ::= IN", + /* 265 */ "in_op ::= NOT IN", + /* 266 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 267 */ "boolean_value_expression ::= boolean_primary", + /* 268 */ "boolean_value_expression ::= NOT boolean_primary", + /* 269 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 270 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 271 */ "boolean_primary ::= predicate", + /* 272 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 273 */ "common_expression ::= expression", + /* 274 */ "common_expression ::= boolean_value_expression", + /* 275 */ "from_clause ::= FROM table_reference_list", + /* 276 */ "table_reference_list ::= table_reference", + /* 277 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 278 */ "table_reference ::= table_primary", + /* 279 */ "table_reference ::= joined_table", + /* 280 */ "table_primary ::= table_name alias_opt", + /* 281 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 282 */ "table_primary ::= subquery alias_opt", + /* 283 */ "table_primary ::= parenthesized_joined_table", + /* 284 */ "alias_opt ::=", + /* 285 */ "alias_opt ::= table_alias", + /* 286 */ "alias_opt ::= AS table_alias", + /* 287 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 288 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 289 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 290 */ "join_type ::=", + /* 291 */ "join_type ::= INNER", + /* 292 */ "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", + /* 293 */ "set_quantifier_opt ::=", + /* 294 */ "set_quantifier_opt ::= DISTINCT", + /* 295 */ "set_quantifier_opt ::= ALL", + /* 296 */ "select_list ::= NK_STAR", + /* 297 */ "select_list ::= select_sublist", + /* 298 */ "select_sublist ::= select_item", + /* 299 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 300 */ "select_item ::= common_expression", + /* 301 */ "select_item ::= common_expression column_alias", + /* 302 */ "select_item ::= common_expression AS column_alias", + /* 303 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 304 */ "where_clause_opt ::=", + /* 305 */ "where_clause_opt ::= WHERE search_condition", + /* 306 */ "partition_by_clause_opt ::=", + /* 307 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 308 */ "twindow_clause_opt ::=", + /* 309 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 310 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", + /* 311 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 312 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 313 */ "sliding_opt ::=", + /* 314 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 315 */ "fill_opt ::=", + /* 316 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 317 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 318 */ "fill_mode ::= NONE", + /* 319 */ "fill_mode ::= PREV", + /* 320 */ "fill_mode ::= NULL", + /* 321 */ "fill_mode ::= LINEAR", + /* 322 */ "fill_mode ::= NEXT", + /* 323 */ "group_by_clause_opt ::=", + /* 324 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 325 */ "group_by_list ::= expression", + /* 326 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 327 */ "having_clause_opt ::=", + /* 328 */ "having_clause_opt ::= HAVING search_condition", + /* 329 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 330 */ "query_expression_body ::= query_primary", + /* 331 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 332 */ "query_primary ::= query_specification", + /* 333 */ "order_by_clause_opt ::=", + /* 334 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 335 */ "slimit_clause_opt ::=", + /* 336 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 337 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 338 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 339 */ "limit_clause_opt ::=", + /* 340 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 341 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 342 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 343 */ "subquery ::= NK_LP query_expression NK_RP", + /* 344 */ "search_condition ::= common_expression", + /* 345 */ "sort_specification_list ::= sort_specification", + /* 346 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 347 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 348 */ "ordering_specification_opt ::=", + /* 349 */ "ordering_specification_opt ::= ASC", + /* 350 */ "ordering_specification_opt ::= DESC", + /* 351 */ "null_ordering_opt ::=", + /* 352 */ "null_ordering_opt ::= NULLS FIRST", + /* 353 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -1463,146 +1478,148 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 172: /* cmd */ - case 175: /* literal */ - case 182: /* db_options */ - case 184: /* alter_db_options */ - case 186: /* full_table_name */ - case 189: /* table_options */ - case 193: /* alter_table_clause */ - case 194: /* alter_table_options */ - case 197: /* create_subtable_clause */ - case 200: /* drop_table_clause */ - case 203: /* column_def */ - case 206: /* col_name */ - case 207: /* db_name_cond_opt */ - case 208: /* like_pattern_opt */ - case 209: /* table_name_cond */ - case 210: /* from_db_opt */ - case 211: /* func_name */ - case 214: /* index_options */ - case 216: /* duration_literal */ - case 217: /* sliding_opt */ - case 218: /* func */ - case 221: /* query_expression */ - case 222: /* signed */ - case 223: /* signed_literal */ - case 226: /* expression */ - case 227: /* pseudo_column */ - case 228: /* column_reference */ - case 229: /* subquery */ - case 230: /* predicate */ - case 233: /* in_predicate_value */ - case 234: /* boolean_value_expression */ - case 235: /* boolean_primary */ - case 236: /* common_expression */ - case 237: /* from_clause */ - case 238: /* table_reference_list */ - case 239: /* table_reference */ - case 240: /* table_primary */ - case 241: /* joined_table */ - case 243: /* parenthesized_joined_table */ - case 245: /* search_condition */ - case 246: /* query_specification */ - case 249: /* where_clause_opt */ - case 251: /* twindow_clause_opt */ - case 253: /* having_clause_opt */ - case 255: /* select_item */ - case 256: /* fill_opt */ - case 259: /* query_expression_body */ - case 261: /* slimit_clause_opt */ - case 262: /* limit_clause_opt */ - case 263: /* query_primary */ - case 265: /* sort_specification */ + case 176: /* cmd */ + case 179: /* literal */ + case 186: /* db_options */ + case 188: /* alter_db_options */ + case 190: /* full_table_name */ + case 193: /* table_options */ + case 197: /* alter_table_clause */ + case 198: /* alter_table_options */ + case 201: /* create_subtable_clause */ + case 204: /* drop_table_clause */ + case 207: /* column_def */ + case 210: /* col_name */ + case 211: /* db_name_cond_opt */ + case 212: /* like_pattern_opt */ + case 213: /* table_name_cond */ + case 214: /* from_db_opt */ + case 215: /* func_name */ + case 218: /* index_options */ + case 220: /* duration_literal */ + case 221: /* sliding_opt */ + case 222: /* func */ + case 225: /* query_expression */ + case 227: /* explain_options */ + case 228: /* signed */ + case 229: /* signed_literal */ + case 232: /* expression */ + case 233: /* pseudo_column */ + case 234: /* column_reference */ + case 235: /* subquery */ + case 236: /* predicate */ + case 239: /* in_predicate_value */ + case 240: /* boolean_value_expression */ + case 241: /* boolean_primary */ + case 242: /* common_expression */ + case 243: /* from_clause */ + case 244: /* table_reference_list */ + case 245: /* table_reference */ + case 246: /* table_primary */ + case 247: /* joined_table */ + case 249: /* parenthesized_joined_table */ + case 251: /* search_condition */ + case 252: /* query_specification */ + case 255: /* where_clause_opt */ + case 257: /* twindow_clause_opt */ + case 259: /* having_clause_opt */ + case 261: /* select_item */ + case 262: /* fill_opt */ + case 265: /* query_expression_body */ + case 267: /* slimit_clause_opt */ + case 268: /* limit_clause_opt */ + case 269: /* query_primary */ + case 271: /* sort_specification */ { - nodesDestroyNode((yypminor->yy176)); + nodesDestroyNode((yypminor->yy364)); } break; - case 173: /* account_options */ - case 174: /* alter_account_options */ - case 176: /* alter_account_option */ + case 177: /* account_options */ + case 178: /* alter_account_options */ + case 180: /* alter_account_option */ { } break; - case 177: /* user_name */ - case 178: /* dnode_endpoint */ - case 179: /* dnode_host_name */ - case 181: /* db_name */ - case 195: /* column_name */ - case 202: /* table_name */ - case 212: /* function_name */ - case 213: /* index_name */ - case 220: /* topic_name */ - case 224: /* table_alias */ - case 225: /* column_alias */ - case 242: /* alias_opt */ + case 181: /* user_name */ + case 182: /* dnode_endpoint */ + case 183: /* dnode_host_name */ + case 185: /* db_name */ + case 199: /* column_name */ + case 206: /* table_name */ + case 216: /* function_name */ + case 217: /* index_name */ + case 224: /* topic_name */ + case 230: /* table_alias */ + case 231: /* column_alias */ + case 248: /* alias_opt */ { } break; - case 180: /* not_exists_opt */ - case 183: /* exists_opt */ - case 247: /* set_quantifier_opt */ + case 184: /* not_exists_opt */ + case 187: /* exists_opt */ + case 226: /* analyze_opt */ + case 253: /* set_quantifier_opt */ { } break; - case 185: /* alter_db_option */ - case 205: /* alter_table_option */ + case 189: /* alter_db_option */ + case 209: /* alter_table_option */ { } break; - case 187: /* column_def_list */ - case 188: /* tags_def_opt */ - case 190: /* multi_create_clause */ - case 191: /* tags_def */ - case 192: /* multi_drop_clause */ - case 198: /* specific_tags_opt */ - case 199: /* literal_list */ - case 201: /* col_name_list */ - case 204: /* func_name_list */ - case 215: /* func_list */ - case 219: /* expression_list */ - case 248: /* select_list */ - case 250: /* partition_by_clause_opt */ - case 252: /* group_by_clause_opt */ - case 254: /* select_sublist */ - case 258: /* group_by_list */ - case 260: /* order_by_clause_opt */ - case 264: /* sort_specification_list */ + case 191: /* column_def_list */ + case 192: /* tags_def_opt */ + case 194: /* multi_create_clause */ + case 195: /* tags_def */ + case 196: /* multi_drop_clause */ + case 202: /* specific_tags_opt */ + case 203: /* literal_list */ + case 205: /* col_name_list */ + case 208: /* func_name_list */ + case 219: /* func_list */ + case 223: /* expression_list */ + case 254: /* select_list */ + case 256: /* partition_by_clause_opt */ + case 258: /* group_by_clause_opt */ + case 260: /* select_sublist */ + case 264: /* group_by_list */ + case 266: /* order_by_clause_opt */ + case 270: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy512)); + nodesDestroyList((yypminor->yy40)); } break; - case 196: /* type_name */ + case 200: /* type_name */ { } break; - case 231: /* compare_op */ - case 232: /* in_op */ + case 237: /* compare_op */ + case 238: /* in_op */ { } break; - case 244: /* join_type */ + case 250: /* join_type */ { } break; - case 257: /* fill_mode */ + case 263: /* fill_mode */ { } break; - case 266: /* ordering_specification_opt */ + case 272: /* ordering_specification_opt */ { } break; - case 267: /* null_ordering_opt */ + case 273: /* null_ordering_opt */ { } @@ -1901,354 +1918,360 @@ 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[] = { - { 172, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 172, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 173, 0 }, /* (2) account_options ::= */ - { 173, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 173, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 173, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 173, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 173, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 173, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 173, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 173, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 173, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 174, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 174, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 176, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 176, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 176, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 176, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 176, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 176, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 176, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 176, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 176, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 176, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 172, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 172, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 172, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 172, -3 }, /* (27) cmd ::= DROP USER user_name */ - { 172, -3 }, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ - { 172, -5 }, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ - { 172, -3 }, /* (30) cmd ::= DROP DNODE NK_INTEGER */ - { 172, -3 }, /* (31) cmd ::= DROP DNODE dnode_endpoint */ - { 172, -4 }, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 172, -5 }, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 172, -4 }, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ - { 172, -5 }, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 178, -1 }, /* (36) dnode_endpoint ::= NK_STRING */ - { 179, -1 }, /* (37) dnode_host_name ::= NK_ID */ - { 179, -1 }, /* (38) dnode_host_name ::= NK_IPTOKEN */ - { 172, -3 }, /* (39) cmd ::= ALTER LOCAL NK_STRING */ - { 172, -4 }, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 172, -5 }, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 172, -5 }, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 172, -5 }, /* (43) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 172, -4 }, /* (44) cmd ::= DROP DATABASE exists_opt db_name */ - { 172, -2 }, /* (45) cmd ::= USE db_name */ - { 172, -4 }, /* (46) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 180, -3 }, /* (47) not_exists_opt ::= IF NOT EXISTS */ - { 180, 0 }, /* (48) not_exists_opt ::= */ - { 183, -2 }, /* (49) exists_opt ::= IF EXISTS */ - { 183, 0 }, /* (50) exists_opt ::= */ - { 182, 0 }, /* (51) db_options ::= */ - { 182, -3 }, /* (52) db_options ::= db_options BLOCKS NK_INTEGER */ - { 182, -3 }, /* (53) db_options ::= db_options CACHE NK_INTEGER */ - { 182, -3 }, /* (54) db_options ::= db_options CACHELAST NK_INTEGER */ - { 182, -3 }, /* (55) db_options ::= db_options COMP NK_INTEGER */ - { 182, -3 }, /* (56) db_options ::= db_options DAYS NK_INTEGER */ - { 182, -3 }, /* (57) db_options ::= db_options FSYNC NK_INTEGER */ - { 182, -3 }, /* (58) db_options ::= db_options MAXROWS NK_INTEGER */ - { 182, -3 }, /* (59) db_options ::= db_options MINROWS NK_INTEGER */ - { 182, -3 }, /* (60) db_options ::= db_options KEEP NK_INTEGER */ - { 182, -3 }, /* (61) db_options ::= db_options PRECISION NK_STRING */ - { 182, -3 }, /* (62) db_options ::= db_options QUORUM NK_INTEGER */ - { 182, -3 }, /* (63) db_options ::= db_options REPLICA NK_INTEGER */ - { 182, -3 }, /* (64) db_options ::= db_options TTL NK_INTEGER */ - { 182, -3 }, /* (65) db_options ::= db_options WAL NK_INTEGER */ - { 182, -3 }, /* (66) db_options ::= db_options VGROUPS NK_INTEGER */ - { 182, -3 }, /* (67) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 182, -3 }, /* (68) db_options ::= db_options STREAM_MODE NK_INTEGER */ - { 182, -3 }, /* (69) db_options ::= db_options RETENTIONS NK_STRING */ - { 184, -1 }, /* (70) alter_db_options ::= alter_db_option */ - { 184, -2 }, /* (71) alter_db_options ::= alter_db_options alter_db_option */ - { 185, -2 }, /* (72) alter_db_option ::= BLOCKS NK_INTEGER */ - { 185, -2 }, /* (73) alter_db_option ::= FSYNC NK_INTEGER */ - { 185, -2 }, /* (74) alter_db_option ::= KEEP NK_INTEGER */ - { 185, -2 }, /* (75) alter_db_option ::= WAL NK_INTEGER */ - { 185, -2 }, /* (76) alter_db_option ::= QUORUM NK_INTEGER */ - { 185, -2 }, /* (77) alter_db_option ::= CACHELAST NK_INTEGER */ - { 172, -9 }, /* (78) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 172, -3 }, /* (79) cmd ::= CREATE TABLE multi_create_clause */ - { 172, -9 }, /* (80) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 172, -3 }, /* (81) cmd ::= DROP TABLE multi_drop_clause */ - { 172, -4 }, /* (82) cmd ::= DROP STABLE exists_opt full_table_name */ - { 172, -3 }, /* (83) cmd ::= ALTER TABLE alter_table_clause */ - { 172, -3 }, /* (84) cmd ::= ALTER STABLE alter_table_clause */ - { 193, -2 }, /* (85) alter_table_clause ::= full_table_name alter_table_options */ - { 193, -5 }, /* (86) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 193, -4 }, /* (87) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 193, -5 }, /* (88) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 193, -5 }, /* (89) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 193, -5 }, /* (90) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 193, -4 }, /* (91) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 193, -5 }, /* (92) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 193, -5 }, /* (93) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 193, -6 }, /* (94) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ - { 190, -1 }, /* (95) multi_create_clause ::= create_subtable_clause */ - { 190, -2 }, /* (96) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 197, -9 }, /* (97) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ - { 192, -1 }, /* (98) multi_drop_clause ::= drop_table_clause */ - { 192, -2 }, /* (99) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 200, -2 }, /* (100) drop_table_clause ::= exists_opt full_table_name */ - { 198, 0 }, /* (101) specific_tags_opt ::= */ - { 198, -3 }, /* (102) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 186, -1 }, /* (103) full_table_name ::= table_name */ - { 186, -3 }, /* (104) full_table_name ::= db_name NK_DOT table_name */ - { 187, -1 }, /* (105) column_def_list ::= column_def */ - { 187, -3 }, /* (106) column_def_list ::= column_def_list NK_COMMA column_def */ - { 203, -2 }, /* (107) column_def ::= column_name type_name */ - { 203, -4 }, /* (108) column_def ::= column_name type_name COMMENT NK_STRING */ - { 196, -1 }, /* (109) type_name ::= BOOL */ - { 196, -1 }, /* (110) type_name ::= TINYINT */ - { 196, -1 }, /* (111) type_name ::= SMALLINT */ - { 196, -1 }, /* (112) type_name ::= INT */ - { 196, -1 }, /* (113) type_name ::= INTEGER */ - { 196, -1 }, /* (114) type_name ::= BIGINT */ - { 196, -1 }, /* (115) type_name ::= FLOAT */ - { 196, -1 }, /* (116) type_name ::= DOUBLE */ - { 196, -4 }, /* (117) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 196, -1 }, /* (118) type_name ::= TIMESTAMP */ - { 196, -4 }, /* (119) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 196, -2 }, /* (120) type_name ::= TINYINT UNSIGNED */ - { 196, -2 }, /* (121) type_name ::= SMALLINT UNSIGNED */ - { 196, -2 }, /* (122) type_name ::= INT UNSIGNED */ - { 196, -2 }, /* (123) type_name ::= BIGINT UNSIGNED */ - { 196, -1 }, /* (124) type_name ::= JSON */ - { 196, -4 }, /* (125) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 196, -1 }, /* (126) type_name ::= MEDIUMBLOB */ - { 196, -1 }, /* (127) type_name ::= BLOB */ - { 196, -4 }, /* (128) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 196, -1 }, /* (129) type_name ::= DECIMAL */ - { 196, -4 }, /* (130) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 196, -6 }, /* (131) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 188, 0 }, /* (132) tags_def_opt ::= */ - { 188, -1 }, /* (133) tags_def_opt ::= tags_def */ - { 191, -4 }, /* (134) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 189, 0 }, /* (135) table_options ::= */ - { 189, -3 }, /* (136) table_options ::= table_options COMMENT NK_STRING */ - { 189, -3 }, /* (137) table_options ::= table_options KEEP NK_INTEGER */ - { 189, -3 }, /* (138) table_options ::= table_options TTL NK_INTEGER */ - { 189, -5 }, /* (139) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 189, -5 }, /* (140) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ - { 189, -3 }, /* (141) table_options ::= table_options FILE_FACTOR NK_FLOAT */ - { 189, -3 }, /* (142) table_options ::= table_options DELAY NK_INTEGER */ - { 194, -1 }, /* (143) alter_table_options ::= alter_table_option */ - { 194, -2 }, /* (144) alter_table_options ::= alter_table_options alter_table_option */ - { 205, -2 }, /* (145) alter_table_option ::= COMMENT NK_STRING */ - { 205, -2 }, /* (146) alter_table_option ::= KEEP NK_INTEGER */ - { 205, -2 }, /* (147) alter_table_option ::= TTL NK_INTEGER */ - { 201, -1 }, /* (148) col_name_list ::= col_name */ - { 201, -3 }, /* (149) col_name_list ::= col_name_list NK_COMMA col_name */ - { 206, -1 }, /* (150) col_name ::= column_name */ - { 172, -2 }, /* (151) cmd ::= SHOW DNODES */ - { 172, -2 }, /* (152) cmd ::= SHOW USERS */ - { 172, -2 }, /* (153) cmd ::= SHOW DATABASES */ - { 172, -4 }, /* (154) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 172, -4 }, /* (155) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 172, -3 }, /* (156) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 172, -2 }, /* (157) cmd ::= SHOW MNODES */ - { 172, -2 }, /* (158) cmd ::= SHOW MODULES */ - { 172, -2 }, /* (159) cmd ::= SHOW QNODES */ - { 172, -2 }, /* (160) cmd ::= SHOW FUNCTIONS */ - { 172, -5 }, /* (161) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 172, -2 }, /* (162) cmd ::= SHOW STREAMS */ - { 207, 0 }, /* (163) db_name_cond_opt ::= */ - { 207, -2 }, /* (164) db_name_cond_opt ::= db_name NK_DOT */ - { 208, 0 }, /* (165) like_pattern_opt ::= */ - { 208, -2 }, /* (166) like_pattern_opt ::= LIKE NK_STRING */ - { 209, -1 }, /* (167) table_name_cond ::= table_name */ - { 210, 0 }, /* (168) from_db_opt ::= */ - { 210, -2 }, /* (169) from_db_opt ::= FROM db_name */ - { 204, -1 }, /* (170) func_name_list ::= func_name */ - { 204, -3 }, /* (171) func_name_list ::= func_name_list NK_COMMA col_name */ - { 211, -1 }, /* (172) func_name ::= function_name */ - { 172, -8 }, /* (173) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 172, -10 }, /* (174) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 172, -6 }, /* (175) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 214, 0 }, /* (176) index_options ::= */ - { 214, -9 }, /* (177) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 214, -11 }, /* (178) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 215, -1 }, /* (179) func_list ::= func */ - { 215, -3 }, /* (180) func_list ::= func_list NK_COMMA func */ - { 218, -4 }, /* (181) func ::= function_name NK_LP expression_list NK_RP */ - { 172, -6 }, /* (182) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 172, -6 }, /* (183) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ - { 172, -4 }, /* (184) cmd ::= DROP TOPIC exists_opt topic_name */ - { 172, -1 }, /* (185) cmd ::= query_expression */ - { 175, -1 }, /* (186) literal ::= NK_INTEGER */ - { 175, -1 }, /* (187) literal ::= NK_FLOAT */ - { 175, -1 }, /* (188) literal ::= NK_STRING */ - { 175, -1 }, /* (189) literal ::= NK_BOOL */ - { 175, -2 }, /* (190) literal ::= TIMESTAMP NK_STRING */ - { 175, -1 }, /* (191) literal ::= duration_literal */ - { 175, -1 }, /* (192) literal ::= NULL */ - { 216, -1 }, /* (193) duration_literal ::= NK_VARIABLE */ - { 222, -1 }, /* (194) signed ::= NK_INTEGER */ - { 222, -2 }, /* (195) signed ::= NK_PLUS NK_INTEGER */ - { 222, -2 }, /* (196) signed ::= NK_MINUS NK_INTEGER */ - { 222, -1 }, /* (197) signed ::= NK_FLOAT */ - { 222, -2 }, /* (198) signed ::= NK_PLUS NK_FLOAT */ - { 222, -2 }, /* (199) signed ::= NK_MINUS NK_FLOAT */ - { 223, -1 }, /* (200) signed_literal ::= signed */ - { 223, -1 }, /* (201) signed_literal ::= NK_STRING */ - { 223, -1 }, /* (202) signed_literal ::= NK_BOOL */ - { 223, -2 }, /* (203) signed_literal ::= TIMESTAMP NK_STRING */ - { 223, -1 }, /* (204) signed_literal ::= duration_literal */ - { 223, -1 }, /* (205) signed_literal ::= NULL */ - { 199, -1 }, /* (206) literal_list ::= signed_literal */ - { 199, -3 }, /* (207) literal_list ::= literal_list NK_COMMA signed_literal */ - { 181, -1 }, /* (208) db_name ::= NK_ID */ - { 202, -1 }, /* (209) table_name ::= NK_ID */ - { 195, -1 }, /* (210) column_name ::= NK_ID */ - { 212, -1 }, /* (211) function_name ::= NK_ID */ - { 224, -1 }, /* (212) table_alias ::= NK_ID */ - { 225, -1 }, /* (213) column_alias ::= NK_ID */ - { 177, -1 }, /* (214) user_name ::= NK_ID */ - { 213, -1 }, /* (215) index_name ::= NK_ID */ - { 220, -1 }, /* (216) topic_name ::= NK_ID */ - { 226, -1 }, /* (217) expression ::= literal */ - { 226, -1 }, /* (218) expression ::= pseudo_column */ - { 226, -1 }, /* (219) expression ::= column_reference */ - { 226, -4 }, /* (220) expression ::= function_name NK_LP expression_list NK_RP */ - { 226, -4 }, /* (221) expression ::= function_name NK_LP NK_STAR NK_RP */ - { 226, -1 }, /* (222) expression ::= subquery */ - { 226, -3 }, /* (223) expression ::= NK_LP expression NK_RP */ - { 226, -2 }, /* (224) expression ::= NK_PLUS expression */ - { 226, -2 }, /* (225) expression ::= NK_MINUS expression */ - { 226, -3 }, /* (226) expression ::= expression NK_PLUS expression */ - { 226, -3 }, /* (227) expression ::= expression NK_MINUS expression */ - { 226, -3 }, /* (228) expression ::= expression NK_STAR expression */ - { 226, -3 }, /* (229) expression ::= expression NK_SLASH expression */ - { 226, -3 }, /* (230) expression ::= expression NK_REM expression */ - { 219, -1 }, /* (231) expression_list ::= expression */ - { 219, -3 }, /* (232) expression_list ::= expression_list NK_COMMA expression */ - { 228, -1 }, /* (233) column_reference ::= column_name */ - { 228, -3 }, /* (234) column_reference ::= table_name NK_DOT column_name */ - { 227, -2 }, /* (235) pseudo_column ::= NK_UNDERLINE ROWTS */ - { 227, -1 }, /* (236) pseudo_column ::= TBNAME */ - { 227, -2 }, /* (237) pseudo_column ::= NK_UNDERLINE QSTARTTS */ - { 227, -2 }, /* (238) pseudo_column ::= NK_UNDERLINE QENDTS */ - { 227, -2 }, /* (239) pseudo_column ::= NK_UNDERLINE WSTARTTS */ - { 227, -2 }, /* (240) pseudo_column ::= NK_UNDERLINE WENDTS */ - { 227, -2 }, /* (241) pseudo_column ::= NK_UNDERLINE WDURATION */ - { 230, -3 }, /* (242) predicate ::= expression compare_op expression */ - { 230, -5 }, /* (243) predicate ::= expression BETWEEN expression AND expression */ - { 230, -6 }, /* (244) predicate ::= expression NOT BETWEEN expression AND expression */ - { 230, -3 }, /* (245) predicate ::= expression IS NULL */ - { 230, -4 }, /* (246) predicate ::= expression IS NOT NULL */ - { 230, -3 }, /* (247) predicate ::= expression in_op in_predicate_value */ - { 231, -1 }, /* (248) compare_op ::= NK_LT */ - { 231, -1 }, /* (249) compare_op ::= NK_GT */ - { 231, -1 }, /* (250) compare_op ::= NK_LE */ - { 231, -1 }, /* (251) compare_op ::= NK_GE */ - { 231, -1 }, /* (252) compare_op ::= NK_NE */ - { 231, -1 }, /* (253) compare_op ::= NK_EQ */ - { 231, -1 }, /* (254) compare_op ::= LIKE */ - { 231, -2 }, /* (255) compare_op ::= NOT LIKE */ - { 231, -1 }, /* (256) compare_op ::= MATCH */ - { 231, -1 }, /* (257) compare_op ::= NMATCH */ - { 232, -1 }, /* (258) in_op ::= IN */ - { 232, -2 }, /* (259) in_op ::= NOT IN */ - { 233, -3 }, /* (260) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 234, -1 }, /* (261) boolean_value_expression ::= boolean_primary */ - { 234, -2 }, /* (262) boolean_value_expression ::= NOT boolean_primary */ - { 234, -3 }, /* (263) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 234, -3 }, /* (264) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 235, -1 }, /* (265) boolean_primary ::= predicate */ - { 235, -3 }, /* (266) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 236, -1 }, /* (267) common_expression ::= expression */ - { 236, -1 }, /* (268) common_expression ::= boolean_value_expression */ - { 237, -2 }, /* (269) from_clause ::= FROM table_reference_list */ - { 238, -1 }, /* (270) table_reference_list ::= table_reference */ - { 238, -3 }, /* (271) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 239, -1 }, /* (272) table_reference ::= table_primary */ - { 239, -1 }, /* (273) table_reference ::= joined_table */ - { 240, -2 }, /* (274) table_primary ::= table_name alias_opt */ - { 240, -4 }, /* (275) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 240, -2 }, /* (276) table_primary ::= subquery alias_opt */ - { 240, -1 }, /* (277) table_primary ::= parenthesized_joined_table */ - { 242, 0 }, /* (278) alias_opt ::= */ - { 242, -1 }, /* (279) alias_opt ::= table_alias */ - { 242, -2 }, /* (280) alias_opt ::= AS table_alias */ - { 243, -3 }, /* (281) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 243, -3 }, /* (282) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 241, -6 }, /* (283) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 244, 0 }, /* (284) join_type ::= */ - { 244, -1 }, /* (285) join_type ::= INNER */ - { 246, -9 }, /* (286) 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 */ - { 247, 0 }, /* (287) set_quantifier_opt ::= */ - { 247, -1 }, /* (288) set_quantifier_opt ::= DISTINCT */ - { 247, -1 }, /* (289) set_quantifier_opt ::= ALL */ - { 248, -1 }, /* (290) select_list ::= NK_STAR */ - { 248, -1 }, /* (291) select_list ::= select_sublist */ - { 254, -1 }, /* (292) select_sublist ::= select_item */ - { 254, -3 }, /* (293) select_sublist ::= select_sublist NK_COMMA select_item */ - { 255, -1 }, /* (294) select_item ::= common_expression */ - { 255, -2 }, /* (295) select_item ::= common_expression column_alias */ - { 255, -3 }, /* (296) select_item ::= common_expression AS column_alias */ - { 255, -3 }, /* (297) select_item ::= table_name NK_DOT NK_STAR */ - { 249, 0 }, /* (298) where_clause_opt ::= */ - { 249, -2 }, /* (299) where_clause_opt ::= WHERE search_condition */ - { 250, 0 }, /* (300) partition_by_clause_opt ::= */ - { 250, -3 }, /* (301) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 251, 0 }, /* (302) twindow_clause_opt ::= */ - { 251, -6 }, /* (303) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 251, -4 }, /* (304) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ - { 251, -6 }, /* (305) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 251, -8 }, /* (306) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 217, 0 }, /* (307) sliding_opt ::= */ - { 217, -4 }, /* (308) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 256, 0 }, /* (309) fill_opt ::= */ - { 256, -4 }, /* (310) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 256, -6 }, /* (311) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 257, -1 }, /* (312) fill_mode ::= NONE */ - { 257, -1 }, /* (313) fill_mode ::= PREV */ - { 257, -1 }, /* (314) fill_mode ::= NULL */ - { 257, -1 }, /* (315) fill_mode ::= LINEAR */ - { 257, -1 }, /* (316) fill_mode ::= NEXT */ - { 252, 0 }, /* (317) group_by_clause_opt ::= */ - { 252, -3 }, /* (318) group_by_clause_opt ::= GROUP BY group_by_list */ - { 258, -1 }, /* (319) group_by_list ::= expression */ - { 258, -3 }, /* (320) group_by_list ::= group_by_list NK_COMMA expression */ - { 253, 0 }, /* (321) having_clause_opt ::= */ - { 253, -2 }, /* (322) having_clause_opt ::= HAVING search_condition */ - { 221, -4 }, /* (323) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 259, -1 }, /* (324) query_expression_body ::= query_primary */ - { 259, -4 }, /* (325) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 263, -1 }, /* (326) query_primary ::= query_specification */ - { 260, 0 }, /* (327) order_by_clause_opt ::= */ - { 260, -3 }, /* (328) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 261, 0 }, /* (329) slimit_clause_opt ::= */ - { 261, -2 }, /* (330) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 261, -4 }, /* (331) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 261, -4 }, /* (332) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 262, 0 }, /* (333) limit_clause_opt ::= */ - { 262, -2 }, /* (334) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 262, -4 }, /* (335) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 262, -4 }, /* (336) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 229, -3 }, /* (337) subquery ::= NK_LP query_expression NK_RP */ - { 245, -1 }, /* (338) search_condition ::= common_expression */ - { 264, -1 }, /* (339) sort_specification_list ::= sort_specification */ - { 264, -3 }, /* (340) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 265, -3 }, /* (341) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 266, 0 }, /* (342) ordering_specification_opt ::= */ - { 266, -1 }, /* (343) ordering_specification_opt ::= ASC */ - { 266, -1 }, /* (344) ordering_specification_opt ::= DESC */ - { 267, 0 }, /* (345) null_ordering_opt ::= */ - { 267, -2 }, /* (346) null_ordering_opt ::= NULLS FIRST */ - { 267, -2 }, /* (347) null_ordering_opt ::= NULLS LAST */ + { 176, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 176, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 177, 0 }, /* (2) account_options ::= */ + { 177, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 177, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 177, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 177, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 177, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 177, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 177, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 177, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 177, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 178, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 178, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 180, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 180, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 180, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 180, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 180, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 180, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 180, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 180, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 180, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 180, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 176, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ + { 176, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 176, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + { 176, -3 }, /* (27) cmd ::= DROP USER user_name */ + { 176, -3 }, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ + { 176, -5 }, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ + { 176, -3 }, /* (30) cmd ::= DROP DNODE NK_INTEGER */ + { 176, -3 }, /* (31) cmd ::= DROP DNODE dnode_endpoint */ + { 176, -4 }, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 176, -5 }, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 176, -4 }, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ + { 176, -5 }, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 182, -1 }, /* (36) dnode_endpoint ::= NK_STRING */ + { 183, -1 }, /* (37) dnode_host_name ::= NK_ID */ + { 183, -1 }, /* (38) dnode_host_name ::= NK_IPTOKEN */ + { 176, -3 }, /* (39) cmd ::= ALTER LOCAL NK_STRING */ + { 176, -4 }, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 176, -5 }, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 176, -5 }, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 176, -5 }, /* (43) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 176, -4 }, /* (44) cmd ::= DROP DATABASE exists_opt db_name */ + { 176, -2 }, /* (45) cmd ::= USE db_name */ + { 176, -4 }, /* (46) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 184, -3 }, /* (47) not_exists_opt ::= IF NOT EXISTS */ + { 184, 0 }, /* (48) not_exists_opt ::= */ + { 187, -2 }, /* (49) exists_opt ::= IF EXISTS */ + { 187, 0 }, /* (50) exists_opt ::= */ + { 186, 0 }, /* (51) db_options ::= */ + { 186, -3 }, /* (52) db_options ::= db_options BLOCKS NK_INTEGER */ + { 186, -3 }, /* (53) db_options ::= db_options CACHE NK_INTEGER */ + { 186, -3 }, /* (54) db_options ::= db_options CACHELAST NK_INTEGER */ + { 186, -3 }, /* (55) db_options ::= db_options COMP NK_INTEGER */ + { 186, -3 }, /* (56) db_options ::= db_options DAYS NK_INTEGER */ + { 186, -3 }, /* (57) db_options ::= db_options FSYNC NK_INTEGER */ + { 186, -3 }, /* (58) db_options ::= db_options MAXROWS NK_INTEGER */ + { 186, -3 }, /* (59) db_options ::= db_options MINROWS NK_INTEGER */ + { 186, -3 }, /* (60) db_options ::= db_options KEEP NK_INTEGER */ + { 186, -3 }, /* (61) db_options ::= db_options PRECISION NK_STRING */ + { 186, -3 }, /* (62) db_options ::= db_options QUORUM NK_INTEGER */ + { 186, -3 }, /* (63) db_options ::= db_options REPLICA NK_INTEGER */ + { 186, -3 }, /* (64) db_options ::= db_options TTL NK_INTEGER */ + { 186, -3 }, /* (65) db_options ::= db_options WAL NK_INTEGER */ + { 186, -3 }, /* (66) db_options ::= db_options VGROUPS NK_INTEGER */ + { 186, -3 }, /* (67) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 186, -3 }, /* (68) db_options ::= db_options STREAM_MODE NK_INTEGER */ + { 186, -3 }, /* (69) db_options ::= db_options RETENTIONS NK_STRING */ + { 188, -1 }, /* (70) alter_db_options ::= alter_db_option */ + { 188, -2 }, /* (71) alter_db_options ::= alter_db_options alter_db_option */ + { 189, -2 }, /* (72) alter_db_option ::= BLOCKS NK_INTEGER */ + { 189, -2 }, /* (73) alter_db_option ::= FSYNC NK_INTEGER */ + { 189, -2 }, /* (74) alter_db_option ::= KEEP NK_INTEGER */ + { 189, -2 }, /* (75) alter_db_option ::= WAL NK_INTEGER */ + { 189, -2 }, /* (76) alter_db_option ::= QUORUM NK_INTEGER */ + { 189, -2 }, /* (77) alter_db_option ::= CACHELAST NK_INTEGER */ + { 176, -9 }, /* (78) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 176, -3 }, /* (79) cmd ::= CREATE TABLE multi_create_clause */ + { 176, -9 }, /* (80) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 176, -3 }, /* (81) cmd ::= DROP TABLE multi_drop_clause */ + { 176, -4 }, /* (82) cmd ::= DROP STABLE exists_opt full_table_name */ + { 176, -3 }, /* (83) cmd ::= ALTER TABLE alter_table_clause */ + { 176, -3 }, /* (84) cmd ::= ALTER STABLE alter_table_clause */ + { 197, -2 }, /* (85) alter_table_clause ::= full_table_name alter_table_options */ + { 197, -5 }, /* (86) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 197, -4 }, /* (87) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 197, -5 }, /* (88) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 197, -5 }, /* (89) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 197, -5 }, /* (90) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 197, -4 }, /* (91) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 197, -5 }, /* (92) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 197, -5 }, /* (93) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 197, -6 }, /* (94) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ + { 194, -1 }, /* (95) multi_create_clause ::= create_subtable_clause */ + { 194, -2 }, /* (96) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 201, -9 }, /* (97) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ + { 196, -1 }, /* (98) multi_drop_clause ::= drop_table_clause */ + { 196, -2 }, /* (99) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 204, -2 }, /* (100) drop_table_clause ::= exists_opt full_table_name */ + { 202, 0 }, /* (101) specific_tags_opt ::= */ + { 202, -3 }, /* (102) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 190, -1 }, /* (103) full_table_name ::= table_name */ + { 190, -3 }, /* (104) full_table_name ::= db_name NK_DOT table_name */ + { 191, -1 }, /* (105) column_def_list ::= column_def */ + { 191, -3 }, /* (106) column_def_list ::= column_def_list NK_COMMA column_def */ + { 207, -2 }, /* (107) column_def ::= column_name type_name */ + { 207, -4 }, /* (108) column_def ::= column_name type_name COMMENT NK_STRING */ + { 200, -1 }, /* (109) type_name ::= BOOL */ + { 200, -1 }, /* (110) type_name ::= TINYINT */ + { 200, -1 }, /* (111) type_name ::= SMALLINT */ + { 200, -1 }, /* (112) type_name ::= INT */ + { 200, -1 }, /* (113) type_name ::= INTEGER */ + { 200, -1 }, /* (114) type_name ::= BIGINT */ + { 200, -1 }, /* (115) type_name ::= FLOAT */ + { 200, -1 }, /* (116) type_name ::= DOUBLE */ + { 200, -4 }, /* (117) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 200, -1 }, /* (118) type_name ::= TIMESTAMP */ + { 200, -4 }, /* (119) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 200, -2 }, /* (120) type_name ::= TINYINT UNSIGNED */ + { 200, -2 }, /* (121) type_name ::= SMALLINT UNSIGNED */ + { 200, -2 }, /* (122) type_name ::= INT UNSIGNED */ + { 200, -2 }, /* (123) type_name ::= BIGINT UNSIGNED */ + { 200, -1 }, /* (124) type_name ::= JSON */ + { 200, -4 }, /* (125) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 200, -1 }, /* (126) type_name ::= MEDIUMBLOB */ + { 200, -1 }, /* (127) type_name ::= BLOB */ + { 200, -4 }, /* (128) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 200, -1 }, /* (129) type_name ::= DECIMAL */ + { 200, -4 }, /* (130) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 200, -6 }, /* (131) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 192, 0 }, /* (132) tags_def_opt ::= */ + { 192, -1 }, /* (133) tags_def_opt ::= tags_def */ + { 195, -4 }, /* (134) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 193, 0 }, /* (135) table_options ::= */ + { 193, -3 }, /* (136) table_options ::= table_options COMMENT NK_STRING */ + { 193, -3 }, /* (137) table_options ::= table_options KEEP NK_INTEGER */ + { 193, -3 }, /* (138) table_options ::= table_options TTL NK_INTEGER */ + { 193, -5 }, /* (139) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 193, -5 }, /* (140) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + { 193, -3 }, /* (141) table_options ::= table_options FILE_FACTOR NK_FLOAT */ + { 193, -3 }, /* (142) table_options ::= table_options DELAY NK_INTEGER */ + { 198, -1 }, /* (143) alter_table_options ::= alter_table_option */ + { 198, -2 }, /* (144) alter_table_options ::= alter_table_options alter_table_option */ + { 209, -2 }, /* (145) alter_table_option ::= COMMENT NK_STRING */ + { 209, -2 }, /* (146) alter_table_option ::= KEEP NK_INTEGER */ + { 209, -2 }, /* (147) alter_table_option ::= TTL NK_INTEGER */ + { 205, -1 }, /* (148) col_name_list ::= col_name */ + { 205, -3 }, /* (149) col_name_list ::= col_name_list NK_COMMA col_name */ + { 210, -1 }, /* (150) col_name ::= column_name */ + { 176, -2 }, /* (151) cmd ::= SHOW DNODES */ + { 176, -2 }, /* (152) cmd ::= SHOW USERS */ + { 176, -2 }, /* (153) cmd ::= SHOW DATABASES */ + { 176, -4 }, /* (154) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 176, -4 }, /* (155) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 176, -3 }, /* (156) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 176, -2 }, /* (157) cmd ::= SHOW MNODES */ + { 176, -2 }, /* (158) cmd ::= SHOW MODULES */ + { 176, -2 }, /* (159) cmd ::= SHOW QNODES */ + { 176, -2 }, /* (160) cmd ::= SHOW FUNCTIONS */ + { 176, -5 }, /* (161) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 176, -2 }, /* (162) cmd ::= SHOW STREAMS */ + { 211, 0 }, /* (163) db_name_cond_opt ::= */ + { 211, -2 }, /* (164) db_name_cond_opt ::= db_name NK_DOT */ + { 212, 0 }, /* (165) like_pattern_opt ::= */ + { 212, -2 }, /* (166) like_pattern_opt ::= LIKE NK_STRING */ + { 213, -1 }, /* (167) table_name_cond ::= table_name */ + { 214, 0 }, /* (168) from_db_opt ::= */ + { 214, -2 }, /* (169) from_db_opt ::= FROM db_name */ + { 208, -1 }, /* (170) func_name_list ::= func_name */ + { 208, -3 }, /* (171) func_name_list ::= func_name_list NK_COMMA col_name */ + { 215, -1 }, /* (172) func_name ::= function_name */ + { 176, -8 }, /* (173) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 176, -10 }, /* (174) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 176, -6 }, /* (175) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 218, 0 }, /* (176) index_options ::= */ + { 218, -9 }, /* (177) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 218, -11 }, /* (178) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 219, -1 }, /* (179) func_list ::= func */ + { 219, -3 }, /* (180) func_list ::= func_list NK_COMMA func */ + { 222, -4 }, /* (181) func ::= function_name NK_LP expression_list NK_RP */ + { 176, -6 }, /* (182) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 176, -6 }, /* (183) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ + { 176, -4 }, /* (184) cmd ::= DROP TOPIC exists_opt topic_name */ + { 176, -4 }, /* (185) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 226, 0 }, /* (186) analyze_opt ::= */ + { 226, -1 }, /* (187) analyze_opt ::= ANALYZE */ + { 227, 0 }, /* (188) explain_options ::= */ + { 227, -3 }, /* (189) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 227, -3 }, /* (190) explain_options ::= explain_options RATIO NK_FLOAT */ + { 176, -1 }, /* (191) cmd ::= query_expression */ + { 179, -1 }, /* (192) literal ::= NK_INTEGER */ + { 179, -1 }, /* (193) literal ::= NK_FLOAT */ + { 179, -1 }, /* (194) literal ::= NK_STRING */ + { 179, -1 }, /* (195) literal ::= NK_BOOL */ + { 179, -2 }, /* (196) literal ::= TIMESTAMP NK_STRING */ + { 179, -1 }, /* (197) literal ::= duration_literal */ + { 179, -1 }, /* (198) literal ::= NULL */ + { 220, -1 }, /* (199) duration_literal ::= NK_VARIABLE */ + { 228, -1 }, /* (200) signed ::= NK_INTEGER */ + { 228, -2 }, /* (201) signed ::= NK_PLUS NK_INTEGER */ + { 228, -2 }, /* (202) signed ::= NK_MINUS NK_INTEGER */ + { 228, -1 }, /* (203) signed ::= NK_FLOAT */ + { 228, -2 }, /* (204) signed ::= NK_PLUS NK_FLOAT */ + { 228, -2 }, /* (205) signed ::= NK_MINUS NK_FLOAT */ + { 229, -1 }, /* (206) signed_literal ::= signed */ + { 229, -1 }, /* (207) signed_literal ::= NK_STRING */ + { 229, -1 }, /* (208) signed_literal ::= NK_BOOL */ + { 229, -2 }, /* (209) signed_literal ::= TIMESTAMP NK_STRING */ + { 229, -1 }, /* (210) signed_literal ::= duration_literal */ + { 229, -1 }, /* (211) signed_literal ::= NULL */ + { 203, -1 }, /* (212) literal_list ::= signed_literal */ + { 203, -3 }, /* (213) literal_list ::= literal_list NK_COMMA signed_literal */ + { 185, -1 }, /* (214) db_name ::= NK_ID */ + { 206, -1 }, /* (215) table_name ::= NK_ID */ + { 199, -1 }, /* (216) column_name ::= NK_ID */ + { 216, -1 }, /* (217) function_name ::= NK_ID */ + { 230, -1 }, /* (218) table_alias ::= NK_ID */ + { 231, -1 }, /* (219) column_alias ::= NK_ID */ + { 181, -1 }, /* (220) user_name ::= NK_ID */ + { 217, -1 }, /* (221) index_name ::= NK_ID */ + { 224, -1 }, /* (222) topic_name ::= NK_ID */ + { 232, -1 }, /* (223) expression ::= literal */ + { 232, -1 }, /* (224) expression ::= pseudo_column */ + { 232, -1 }, /* (225) expression ::= column_reference */ + { 232, -4 }, /* (226) expression ::= function_name NK_LP expression_list NK_RP */ + { 232, -4 }, /* (227) expression ::= function_name NK_LP NK_STAR NK_RP */ + { 232, -1 }, /* (228) expression ::= subquery */ + { 232, -3 }, /* (229) expression ::= NK_LP expression NK_RP */ + { 232, -2 }, /* (230) expression ::= NK_PLUS expression */ + { 232, -2 }, /* (231) expression ::= NK_MINUS expression */ + { 232, -3 }, /* (232) expression ::= expression NK_PLUS expression */ + { 232, -3 }, /* (233) expression ::= expression NK_MINUS expression */ + { 232, -3 }, /* (234) expression ::= expression NK_STAR expression */ + { 232, -3 }, /* (235) expression ::= expression NK_SLASH expression */ + { 232, -3 }, /* (236) expression ::= expression NK_REM expression */ + { 223, -1 }, /* (237) expression_list ::= expression */ + { 223, -3 }, /* (238) expression_list ::= expression_list NK_COMMA expression */ + { 234, -1 }, /* (239) column_reference ::= column_name */ + { 234, -3 }, /* (240) column_reference ::= table_name NK_DOT column_name */ + { 233, -2 }, /* (241) pseudo_column ::= NK_UNDERLINE ROWTS */ + { 233, -1 }, /* (242) pseudo_column ::= TBNAME */ + { 233, -2 }, /* (243) pseudo_column ::= NK_UNDERLINE QSTARTTS */ + { 233, -2 }, /* (244) pseudo_column ::= NK_UNDERLINE QENDTS */ + { 233, -2 }, /* (245) pseudo_column ::= NK_UNDERLINE WSTARTTS */ + { 233, -2 }, /* (246) pseudo_column ::= NK_UNDERLINE WENDTS */ + { 233, -2 }, /* (247) pseudo_column ::= NK_UNDERLINE WDURATION */ + { 236, -3 }, /* (248) predicate ::= expression compare_op expression */ + { 236, -5 }, /* (249) predicate ::= expression BETWEEN expression AND expression */ + { 236, -6 }, /* (250) predicate ::= expression NOT BETWEEN expression AND expression */ + { 236, -3 }, /* (251) predicate ::= expression IS NULL */ + { 236, -4 }, /* (252) predicate ::= expression IS NOT NULL */ + { 236, -3 }, /* (253) predicate ::= expression in_op in_predicate_value */ + { 237, -1 }, /* (254) compare_op ::= NK_LT */ + { 237, -1 }, /* (255) compare_op ::= NK_GT */ + { 237, -1 }, /* (256) compare_op ::= NK_LE */ + { 237, -1 }, /* (257) compare_op ::= NK_GE */ + { 237, -1 }, /* (258) compare_op ::= NK_NE */ + { 237, -1 }, /* (259) compare_op ::= NK_EQ */ + { 237, -1 }, /* (260) compare_op ::= LIKE */ + { 237, -2 }, /* (261) compare_op ::= NOT LIKE */ + { 237, -1 }, /* (262) compare_op ::= MATCH */ + { 237, -1 }, /* (263) compare_op ::= NMATCH */ + { 238, -1 }, /* (264) in_op ::= IN */ + { 238, -2 }, /* (265) in_op ::= NOT IN */ + { 239, -3 }, /* (266) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 240, -1 }, /* (267) boolean_value_expression ::= boolean_primary */ + { 240, -2 }, /* (268) boolean_value_expression ::= NOT boolean_primary */ + { 240, -3 }, /* (269) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 240, -3 }, /* (270) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 241, -1 }, /* (271) boolean_primary ::= predicate */ + { 241, -3 }, /* (272) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 242, -1 }, /* (273) common_expression ::= expression */ + { 242, -1 }, /* (274) common_expression ::= boolean_value_expression */ + { 243, -2 }, /* (275) from_clause ::= FROM table_reference_list */ + { 244, -1 }, /* (276) table_reference_list ::= table_reference */ + { 244, -3 }, /* (277) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 245, -1 }, /* (278) table_reference ::= table_primary */ + { 245, -1 }, /* (279) table_reference ::= joined_table */ + { 246, -2 }, /* (280) table_primary ::= table_name alias_opt */ + { 246, -4 }, /* (281) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 246, -2 }, /* (282) table_primary ::= subquery alias_opt */ + { 246, -1 }, /* (283) table_primary ::= parenthesized_joined_table */ + { 248, 0 }, /* (284) alias_opt ::= */ + { 248, -1 }, /* (285) alias_opt ::= table_alias */ + { 248, -2 }, /* (286) alias_opt ::= AS table_alias */ + { 249, -3 }, /* (287) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 249, -3 }, /* (288) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 247, -6 }, /* (289) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 250, 0 }, /* (290) join_type ::= */ + { 250, -1 }, /* (291) join_type ::= INNER */ + { 252, -9 }, /* (292) 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 */ + { 253, 0 }, /* (293) set_quantifier_opt ::= */ + { 253, -1 }, /* (294) set_quantifier_opt ::= DISTINCT */ + { 253, -1 }, /* (295) set_quantifier_opt ::= ALL */ + { 254, -1 }, /* (296) select_list ::= NK_STAR */ + { 254, -1 }, /* (297) select_list ::= select_sublist */ + { 260, -1 }, /* (298) select_sublist ::= select_item */ + { 260, -3 }, /* (299) select_sublist ::= select_sublist NK_COMMA select_item */ + { 261, -1 }, /* (300) select_item ::= common_expression */ + { 261, -2 }, /* (301) select_item ::= common_expression column_alias */ + { 261, -3 }, /* (302) select_item ::= common_expression AS column_alias */ + { 261, -3 }, /* (303) select_item ::= table_name NK_DOT NK_STAR */ + { 255, 0 }, /* (304) where_clause_opt ::= */ + { 255, -2 }, /* (305) where_clause_opt ::= WHERE search_condition */ + { 256, 0 }, /* (306) partition_by_clause_opt ::= */ + { 256, -3 }, /* (307) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 257, 0 }, /* (308) twindow_clause_opt ::= */ + { 257, -6 }, /* (309) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 257, -4 }, /* (310) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ + { 257, -6 }, /* (311) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 257, -8 }, /* (312) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 221, 0 }, /* (313) sliding_opt ::= */ + { 221, -4 }, /* (314) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 262, 0 }, /* (315) fill_opt ::= */ + { 262, -4 }, /* (316) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 262, -6 }, /* (317) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 263, -1 }, /* (318) fill_mode ::= NONE */ + { 263, -1 }, /* (319) fill_mode ::= PREV */ + { 263, -1 }, /* (320) fill_mode ::= NULL */ + { 263, -1 }, /* (321) fill_mode ::= LINEAR */ + { 263, -1 }, /* (322) fill_mode ::= NEXT */ + { 258, 0 }, /* (323) group_by_clause_opt ::= */ + { 258, -3 }, /* (324) group_by_clause_opt ::= GROUP BY group_by_list */ + { 264, -1 }, /* (325) group_by_list ::= expression */ + { 264, -3 }, /* (326) group_by_list ::= group_by_list NK_COMMA expression */ + { 259, 0 }, /* (327) having_clause_opt ::= */ + { 259, -2 }, /* (328) having_clause_opt ::= HAVING search_condition */ + { 225, -4 }, /* (329) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 265, -1 }, /* (330) query_expression_body ::= query_primary */ + { 265, -4 }, /* (331) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 269, -1 }, /* (332) query_primary ::= query_specification */ + { 266, 0 }, /* (333) order_by_clause_opt ::= */ + { 266, -3 }, /* (334) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 267, 0 }, /* (335) slimit_clause_opt ::= */ + { 267, -2 }, /* (336) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 267, -4 }, /* (337) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 267, -4 }, /* (338) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 268, 0 }, /* (339) limit_clause_opt ::= */ + { 268, -2 }, /* (340) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 268, -4 }, /* (341) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 268, -4 }, /* (342) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 235, -3 }, /* (343) subquery ::= NK_LP query_expression NK_RP */ + { 251, -1 }, /* (344) search_condition ::= common_expression */ + { 270, -1 }, /* (345) sort_specification_list ::= sort_specification */ + { 270, -3 }, /* (346) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 271, -3 }, /* (347) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 272, 0 }, /* (348) ordering_specification_opt ::= */ + { 272, -1 }, /* (349) ordering_specification_opt ::= ASC */ + { 272, -1 }, /* (350) ordering_specification_opt ::= DESC */ + { 273, 0 }, /* (351) null_ordering_opt ::= */ + { 273, -2 }, /* (352) null_ordering_opt ::= NULLS FIRST */ + { 273, -2 }, /* (353) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -2337,11 +2360,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,173,&yymsp[0].minor); + yy_destructor(yypParser,177,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,174,&yymsp[0].minor); + yy_destructor(yypParser,178,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -2355,20 +2378,20 @@ static YYACTIONTYPE yy_reduce( case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); -{ yy_destructor(yypParser,173,&yymsp[-2].minor); +{ yy_destructor(yypParser,177,&yymsp[-2].minor); { } - yy_destructor(yypParser,175,&yymsp[0].minor); + yy_destructor(yypParser,179,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,176,&yymsp[0].minor); +{ yy_destructor(yypParser,180,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,174,&yymsp[-1].minor); +{ yy_destructor(yypParser,178,&yymsp[-1].minor); { } - yy_destructor(yypParser,176,&yymsp[0].minor); + yy_destructor(yypParser,180,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -2382,31 +2405,31 @@ static YYACTIONTYPE yy_reduce( case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } - yy_destructor(yypParser,175,&yymsp[0].minor); + yy_destructor(yypParser,179,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy225, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy437, &yymsp[0].minor.yy0); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy225, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy437, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 26: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy225, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy437, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy225); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy437); } break; case 28: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy225, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy437, NULL); } break; case 29: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy225, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy437, &yymsp[0].minor.yy0); } break; case 30: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 31: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy225); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy437); } break; case 32: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -2423,17 +2446,17 @@ static YYACTIONTYPE yy_reduce( case 36: /* dnode_endpoint ::= NK_STRING */ case 37: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==37); case 38: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==38); - case 208: /* db_name ::= NK_ID */ yytestcase(yyruleno==208); - case 209: /* table_name ::= NK_ID */ yytestcase(yyruleno==209); - case 210: /* column_name ::= NK_ID */ yytestcase(yyruleno==210); - case 211: /* function_name ::= NK_ID */ yytestcase(yyruleno==211); - case 212: /* table_alias ::= NK_ID */ yytestcase(yyruleno==212); - case 213: /* column_alias ::= NK_ID */ yytestcase(yyruleno==213); - case 214: /* user_name ::= NK_ID */ yytestcase(yyruleno==214); - case 215: /* index_name ::= NK_ID */ yytestcase(yyruleno==215); - case 216: /* topic_name ::= NK_ID */ yytestcase(yyruleno==216); -{ yylhsminor.yy225 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy225 = yylhsminor.yy225; + case 214: /* db_name ::= NK_ID */ yytestcase(yyruleno==214); + case 215: /* table_name ::= NK_ID */ yytestcase(yyruleno==215); + case 216: /* column_name ::= NK_ID */ yytestcase(yyruleno==216); + case 217: /* function_name ::= NK_ID */ yytestcase(yyruleno==217); + case 218: /* table_alias ::= NK_ID */ yytestcase(yyruleno==218); + case 219: /* column_alias ::= NK_ID */ yytestcase(yyruleno==219); + case 220: /* user_name ::= NK_ID */ yytestcase(yyruleno==220); + case 221: /* index_name ::= NK_ID */ yytestcase(yyruleno==221); + case 222: /* topic_name ::= NK_ID */ yytestcase(yyruleno==222); +{ yylhsminor.yy437 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy437 = yylhsminor.yy437; break; case 39: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -2448,186 +2471,187 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createDropQnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 43: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy505, &yymsp[-1].minor.yy225, yymsp[0].minor.yy176); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy493, &yymsp[-1].minor.yy437, yymsp[0].minor.yy364); } break; case 44: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy505, &yymsp[0].minor.yy225); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy493, &yymsp[0].minor.yy437); } break; case 45: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy225); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy437); } break; case 46: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy225, yymsp[0].minor.yy176); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy437, yymsp[0].minor.yy364); } break; case 47: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy505 = true; } +{ yymsp[-2].minor.yy493 = true; } break; case 48: /* not_exists_opt ::= */ case 50: /* exists_opt ::= */ yytestcase(yyruleno==50); - case 287: /* set_quantifier_opt ::= */ yytestcase(yyruleno==287); -{ yymsp[1].minor.yy505 = false; } + case 186: /* analyze_opt ::= */ yytestcase(yyruleno==186); + case 293: /* set_quantifier_opt ::= */ yytestcase(yyruleno==293); +{ yymsp[1].minor.yy493 = false; } break; case 49: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy505 = true; } +{ yymsp[-1].minor.yy493 = true; } break; case 51: /* db_options ::= */ -{ yymsp[1].minor.yy176 = createDefaultDatabaseOptions(pCxt); } +{ yymsp[1].minor.yy364 = createDefaultDatabaseOptions(pCxt); } break; case 52: /* db_options ::= db_options BLOCKS NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_BLOCKS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_BLOCKS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 53: /* db_options ::= db_options CACHE NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_CACHE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_CACHE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 54: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 55: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 56: /* db_options ::= db_options DAYS NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 57: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 58: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 59: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 60: /* db_options ::= db_options KEEP NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_KEEP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_KEEP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 61: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 62: /* db_options ::= db_options QUORUM NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_QUORUM, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_QUORUM, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 63: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 64: /* db_options ::= db_options TTL NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 65: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 66: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 67: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 68: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_STREAM_MODE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_STREAM_MODE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 69: /* db_options ::= db_options RETENTIONS NK_STRING */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-2].minor.yy176, DB_OPTION_RETENTIONS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-2].minor.yy364, DB_OPTION_RETENTIONS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 70: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy176 = createDefaultAlterDatabaseOptions(pCxt); yylhsminor.yy176 = setDatabaseOption(pCxt, yylhsminor.yy176, yymsp[0].minor.yy325.type, &yymsp[0].minor.yy325.val); } - yymsp[0].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createDefaultAlterDatabaseOptions(pCxt); yylhsminor.yy364 = setDatabaseOption(pCxt, yylhsminor.yy364, yymsp[0].minor.yy29.type, &yymsp[0].minor.yy29.val); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; case 71: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy176 = setDatabaseOption(pCxt, yymsp[-1].minor.yy176, yymsp[0].minor.yy325.type, &yymsp[0].minor.yy325.val); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setDatabaseOption(pCxt, yymsp[-1].minor.yy364, yymsp[0].minor.yy29.type, &yymsp[0].minor.yy29.val); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; case 72: /* alter_db_option ::= BLOCKS NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy325.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy29.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; } break; case 73: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy325.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy29.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; } break; case 74: /* alter_db_option ::= KEEP NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_KEEP; yymsp[-1].minor.yy325.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy29.type = DB_OPTION_KEEP; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; } break; case 75: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_WAL; yymsp[-1].minor.yy325.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy29.type = DB_OPTION_WAL; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; } break; case 76: /* alter_db_option ::= QUORUM NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy325.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy29.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; } break; case 77: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy325.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy29.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; } break; case 78: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 80: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==80); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy505, yymsp[-5].minor.yy176, yymsp[-3].minor.yy512, yymsp[-1].minor.yy512, yymsp[0].minor.yy176); } +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy493, yymsp[-5].minor.yy364, yymsp[-3].minor.yy40, yymsp[-1].minor.yy40, yymsp[0].minor.yy364); } break; case 79: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy512); } +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy40); } break; case 81: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy512); } +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy40); } break; case 82: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy505, yymsp[0].minor.yy176); } +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy493, yymsp[0].minor.yy364); } break; case 83: /* cmd ::= ALTER TABLE alter_table_clause */ case 84: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==84); - case 185: /* cmd ::= query_expression */ yytestcase(yyruleno==185); -{ pCxt->pRootNode = yymsp[0].minor.yy176; } + case 191: /* cmd ::= query_expression */ yytestcase(yyruleno==191); +{ pCxt->pRootNode = yymsp[0].minor.yy364; } break; case 85: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy176 = createAlterTableOption(pCxt, yymsp[-1].minor.yy176, yymsp[0].minor.yy176); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableOption(pCxt, yymsp[-1].minor.yy364, yymsp[0].minor.yy364); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; case 86: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy176 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy176, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy225, yymsp[0].minor.yy448); } - yymsp[-4].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy364, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy437, yymsp[0].minor.yy420); } + yymsp[-4].minor.yy364 = yylhsminor.yy364; break; case 87: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy176 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy176, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy225); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy364, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy437); } + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; case 88: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy176 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy176, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy225, yymsp[0].minor.yy448); } - yymsp[-4].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy364, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy437, yymsp[0].minor.yy420); } + yymsp[-4].minor.yy364 = yylhsminor.yy364; break; case 89: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy176 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy176, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy225, &yymsp[0].minor.yy225); } - yymsp[-4].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy364, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy437, &yymsp[0].minor.yy437); } + yymsp[-4].minor.yy364 = yylhsminor.yy364; break; case 90: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy176 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy176, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy225, yymsp[0].minor.yy448); } - yymsp[-4].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy364, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy437, yymsp[0].minor.yy420); } + yymsp[-4].minor.yy364 = yylhsminor.yy364; break; case 91: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy176 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy176, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy225); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy364, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy437); } + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; case 92: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy176 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy176, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy225, yymsp[0].minor.yy448); } - yymsp[-4].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy364, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy437, yymsp[0].minor.yy420); } + yymsp[-4].minor.yy364 = yylhsminor.yy364; break; case 93: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy176 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy176, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy225, &yymsp[0].minor.yy225); } - yymsp[-4].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy364, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy437, &yymsp[0].minor.yy437); } + yymsp[-4].minor.yy364 = yylhsminor.yy364; break; case 94: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ -{ yylhsminor.yy176 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy176, &yymsp[-2].minor.yy225, yymsp[0].minor.yy176); } - yymsp[-5].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy364, &yymsp[-2].minor.yy437, yymsp[0].minor.yy364); } + yymsp[-5].minor.yy364 = yylhsminor.yy364; break; case 95: /* multi_create_clause ::= create_subtable_clause */ case 98: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==98); @@ -2635,187 +2659,187 @@ static YYACTIONTYPE yy_reduce( case 148: /* col_name_list ::= col_name */ yytestcase(yyruleno==148); case 170: /* func_name_list ::= func_name */ yytestcase(yyruleno==170); case 179: /* func_list ::= func */ yytestcase(yyruleno==179); - case 206: /* literal_list ::= signed_literal */ yytestcase(yyruleno==206); - case 292: /* select_sublist ::= select_item */ yytestcase(yyruleno==292); - case 339: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==339); -{ yylhsminor.yy512 = createNodeList(pCxt, yymsp[0].minor.yy176); } - yymsp[0].minor.yy512 = yylhsminor.yy512; + case 212: /* literal_list ::= signed_literal */ yytestcase(yyruleno==212); + case 298: /* select_sublist ::= select_item */ yytestcase(yyruleno==298); + case 345: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==345); +{ yylhsminor.yy40 = createNodeList(pCxt, yymsp[0].minor.yy364); } + yymsp[0].minor.yy40 = yylhsminor.yy40; break; case 96: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 99: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==99); -{ yylhsminor.yy512 = addNodeToList(pCxt, yymsp[-1].minor.yy512, yymsp[0].minor.yy176); } - yymsp[-1].minor.yy512 = yylhsminor.yy512; +{ yylhsminor.yy40 = addNodeToList(pCxt, yymsp[-1].minor.yy40, yymsp[0].minor.yy364); } + yymsp[-1].minor.yy40 = yylhsminor.yy40; break; case 97: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ -{ yylhsminor.yy176 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy505, yymsp[-7].minor.yy176, yymsp[-5].minor.yy176, yymsp[-4].minor.yy512, yymsp[-1].minor.yy512); } - yymsp[-8].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy493, yymsp[-7].minor.yy364, yymsp[-5].minor.yy364, yymsp[-4].minor.yy40, yymsp[-1].minor.yy40); } + yymsp[-8].minor.yy364 = yylhsminor.yy364; break; case 100: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy176 = createDropTableClause(pCxt, yymsp[-1].minor.yy505, yymsp[0].minor.yy176); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createDropTableClause(pCxt, yymsp[-1].minor.yy493, yymsp[0].minor.yy364); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; case 101: /* specific_tags_opt ::= */ case 132: /* tags_def_opt ::= */ yytestcase(yyruleno==132); - case 300: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==300); - case 317: /* group_by_clause_opt ::= */ yytestcase(yyruleno==317); - case 327: /* order_by_clause_opt ::= */ yytestcase(yyruleno==327); -{ yymsp[1].minor.yy512 = NULL; } + case 306: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==306); + case 323: /* group_by_clause_opt ::= */ yytestcase(yyruleno==323); + case 333: /* order_by_clause_opt ::= */ yytestcase(yyruleno==333); +{ yymsp[1].minor.yy40 = NULL; } break; case 102: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy512 = yymsp[-1].minor.yy512; } +{ yymsp[-2].minor.yy40 = yymsp[-1].minor.yy40; } break; case 103: /* full_table_name ::= table_name */ -{ yylhsminor.yy176 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy225, NULL); } - yymsp[0].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy437, NULL); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; case 104: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy176 = createRealTableNode(pCxt, &yymsp[-2].minor.yy225, &yymsp[0].minor.yy225, NULL); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createRealTableNode(pCxt, &yymsp[-2].minor.yy437, &yymsp[0].minor.yy437, NULL); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 106: /* column_def_list ::= column_def_list NK_COMMA column_def */ case 149: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==149); case 171: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==171); case 180: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==180); - case 207: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==207); - case 293: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==293); - case 340: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==340); -{ yylhsminor.yy512 = addNodeToList(pCxt, yymsp[-2].minor.yy512, yymsp[0].minor.yy176); } - yymsp[-2].minor.yy512 = yylhsminor.yy512; + case 213: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==213); + case 299: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==299); + case 346: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==346); +{ yylhsminor.yy40 = addNodeToList(pCxt, yymsp[-2].minor.yy40, yymsp[0].minor.yy364); } + yymsp[-2].minor.yy40 = yylhsminor.yy40; break; case 107: /* column_def ::= column_name type_name */ -{ yylhsminor.yy176 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy225, yymsp[0].minor.yy448, NULL); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy437, yymsp[0].minor.yy420, NULL); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; case 108: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy176 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy225, yymsp[-2].minor.yy448, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy437, yymsp[-2].minor.yy420, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; case 109: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BOOL); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 110: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TINYINT); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 111: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 112: /* type_name ::= INT */ case 113: /* type_name ::= INTEGER */ yytestcase(yyruleno==113); -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_INT); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_INT); } break; case 114: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BIGINT); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 115: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_FLOAT); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 116: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 117: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy420 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 118: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 119: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy420 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 120: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +{ yymsp[-1].minor.yy420 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 121: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +{ yymsp[-1].minor.yy420 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 122: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UINT); } +{ yymsp[-1].minor.yy420 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 123: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +{ yymsp[-1].minor.yy420 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 124: /* type_name ::= JSON */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_JSON); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 125: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy420 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 126: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 127: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BLOB); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 128: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy420 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 129: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[0].minor.yy420 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 130: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-3].minor.yy420 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 131: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-5].minor.yy420 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 133: /* tags_def_opt ::= tags_def */ - case 291: /* select_list ::= select_sublist */ yytestcase(yyruleno==291); -{ yylhsminor.yy512 = yymsp[0].minor.yy512; } - yymsp[0].minor.yy512 = yylhsminor.yy512; + case 297: /* select_list ::= select_sublist */ yytestcase(yyruleno==297); +{ yylhsminor.yy40 = yymsp[0].minor.yy40; } + yymsp[0].minor.yy40 = yylhsminor.yy40; break; case 134: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy512 = yymsp[-1].minor.yy512; } +{ yymsp[-3].minor.yy40 = yymsp[-1].minor.yy40; } break; case 135: /* table_options ::= */ -{ yymsp[1].minor.yy176 = createDefaultTableOptions(pCxt); } +{ yymsp[1].minor.yy364 = createDefaultTableOptions(pCxt); } break; case 136: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy176 = setTableOption(pCxt, yymsp[-2].minor.yy176, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setTableOption(pCxt, yymsp[-2].minor.yy364, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 137: /* table_options ::= table_options KEEP NK_INTEGER */ -{ yylhsminor.yy176 = setTableOption(pCxt, yymsp[-2].minor.yy176, TABLE_OPTION_KEEP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setTableOption(pCxt, yymsp[-2].minor.yy364, TABLE_OPTION_KEEP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 138: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy176 = setTableOption(pCxt, yymsp[-2].minor.yy176, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setTableOption(pCxt, yymsp[-2].minor.yy364, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 139: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy176 = setTableSmaOption(pCxt, yymsp[-4].minor.yy176, yymsp[-1].minor.yy512); } - yymsp[-4].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setTableSmaOption(pCxt, yymsp[-4].minor.yy364, yymsp[-1].minor.yy40); } + yymsp[-4].minor.yy364 = yylhsminor.yy364; break; case 140: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ -{ yylhsminor.yy176 = setTableRollupOption(pCxt, yymsp[-4].minor.yy176, yymsp[-1].minor.yy512); } - yymsp[-4].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setTableRollupOption(pCxt, yymsp[-4].minor.yy364, yymsp[-1].minor.yy40); } + yymsp[-4].minor.yy364 = yylhsminor.yy364; break; case 141: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ -{ yylhsminor.yy176 = setTableOption(pCxt, yymsp[-2].minor.yy176, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setTableOption(pCxt, yymsp[-2].minor.yy364, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 142: /* table_options ::= table_options DELAY NK_INTEGER */ -{ yylhsminor.yy176 = setTableOption(pCxt, yymsp[-2].minor.yy176, TABLE_OPTION_DELAY, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setTableOption(pCxt, yymsp[-2].minor.yy364, TABLE_OPTION_DELAY, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; case 143: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy176 = createDefaultAlterTableOptions(pCxt); yylhsminor.yy176 = setTableOption(pCxt, yylhsminor.yy176, yymsp[0].minor.yy325.type, &yymsp[0].minor.yy325.val); } - yymsp[0].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createDefaultAlterTableOptions(pCxt); yylhsminor.yy364 = setTableOption(pCxt, yylhsminor.yy364, yymsp[0].minor.yy29.type, &yymsp[0].minor.yy29.val); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; case 144: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy176 = setTableOption(pCxt, yymsp[-1].minor.yy176, yymsp[0].minor.yy325.type, &yymsp[0].minor.yy325.val); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = setTableOption(pCxt, yymsp[-1].minor.yy364, yymsp[0].minor.yy29.type, &yymsp[0].minor.yy29.val); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; case 145: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy325.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy325.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy29.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; } break; case 146: /* alter_table_option ::= KEEP NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy325.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy29.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; } break; case 147: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy325.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy29.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy29.val = yymsp[0].minor.yy0; } break; case 150: /* col_name ::= column_name */ -{ yylhsminor.yy176 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy225); } - yymsp[0].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy437); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; case 151: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } @@ -2827,13 +2851,13 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } break; case 154: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy176, yymsp[0].minor.yy176); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy364, yymsp[0].minor.yy364); } break; case 155: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy176, yymsp[0].minor.yy176); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy364, yymsp[0].minor.yy364); } break; case 156: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy176, NULL); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy364, NULL); } break; case 157: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } @@ -2848,551 +2872,566 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } break; case 161: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy176, yymsp[0].minor.yy176); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy364, yymsp[0].minor.yy364); } break; case 162: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } break; case 163: /* db_name_cond_opt ::= */ case 168: /* from_db_opt ::= */ yytestcase(yyruleno==168); -{ yymsp[1].minor.yy176 = createDefaultDatabaseCondValue(pCxt); } +{ yymsp[1].minor.yy364 = createDefaultDatabaseCondValue(pCxt); } break; case 164: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy225); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy437); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; case 165: /* like_pattern_opt ::= */ case 176: /* index_options ::= */ yytestcase(yyruleno==176); - case 298: /* where_clause_opt ::= */ yytestcase(yyruleno==298); - case 302: /* twindow_clause_opt ::= */ yytestcase(yyruleno==302); - case 307: /* sliding_opt ::= */ yytestcase(yyruleno==307); - case 309: /* fill_opt ::= */ yytestcase(yyruleno==309); - case 321: /* having_clause_opt ::= */ yytestcase(yyruleno==321); - case 329: /* slimit_clause_opt ::= */ yytestcase(yyruleno==329); - case 333: /* limit_clause_opt ::= */ yytestcase(yyruleno==333); -{ yymsp[1].minor.yy176 = NULL; } + case 304: /* where_clause_opt ::= */ yytestcase(yyruleno==304); + case 308: /* twindow_clause_opt ::= */ yytestcase(yyruleno==308); + case 313: /* sliding_opt ::= */ yytestcase(yyruleno==313); + case 315: /* fill_opt ::= */ yytestcase(yyruleno==315); + case 327: /* having_clause_opt ::= */ yytestcase(yyruleno==327); + case 335: /* slimit_clause_opt ::= */ yytestcase(yyruleno==335); + case 339: /* limit_clause_opt ::= */ yytestcase(yyruleno==339); +{ yymsp[1].minor.yy364 = NULL; } break; case 166: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 167: /* table_name_cond ::= table_name */ -{ yylhsminor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy225); } - yymsp[0].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy437); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; case 169: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy225); } +{ yymsp[-1].minor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy437); } break; case 172: /* func_name ::= function_name */ -{ yylhsminor.yy176 = createFunctionNode(pCxt, &yymsp[0].minor.yy225, NULL); } - yymsp[0].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createFunctionNode(pCxt, &yymsp[0].minor.yy437, NULL); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; case 173: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy505, &yymsp[-3].minor.yy225, &yymsp[-1].minor.yy225, NULL, yymsp[0].minor.yy176); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy493, &yymsp[-3].minor.yy437, &yymsp[-1].minor.yy437, NULL, yymsp[0].minor.yy364); } break; case 174: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy505, &yymsp[-5].minor.yy225, &yymsp[-3].minor.yy225, yymsp[-1].minor.yy512, NULL); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy493, &yymsp[-5].minor.yy437, &yymsp[-3].minor.yy437, yymsp[-1].minor.yy40, NULL); } break; case 175: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy505, &yymsp[-2].minor.yy225, &yymsp[0].minor.yy225); } +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy493, &yymsp[-2].minor.yy437, &yymsp[0].minor.yy437); } break; case 177: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy176 = createIndexOption(pCxt, yymsp[-6].minor.yy512, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), NULL, yymsp[0].minor.yy176); } +{ yymsp[-8].minor.yy364 = createIndexOption(pCxt, yymsp[-6].minor.yy40, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), NULL, yymsp[0].minor.yy364); } break; case 178: /* 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.yy176 = createIndexOption(pCxt, yymsp[-8].minor.yy512, releaseRawExprNode(pCxt, yymsp[-4].minor.yy176), releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), yymsp[0].minor.yy176); } +{ yymsp[-10].minor.yy364 = createIndexOption(pCxt, yymsp[-8].minor.yy40, releaseRawExprNode(pCxt, yymsp[-4].minor.yy364), releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), yymsp[0].minor.yy364); } break; case 181: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy176 = createFunctionNode(pCxt, &yymsp[-3].minor.yy225, yymsp[-1].minor.yy512); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; +{ yylhsminor.yy364 = createFunctionNode(pCxt, &yymsp[-3].minor.yy437, yymsp[-1].minor.yy40); } + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; case 182: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy505, &yymsp[-2].minor.yy225, yymsp[0].minor.yy176, NULL); } +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy493, &yymsp[-2].minor.yy437, yymsp[0].minor.yy364, NULL); } break; case 183: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy505, &yymsp[-2].minor.yy225, NULL, &yymsp[0].minor.yy225); } +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy493, &yymsp[-2].minor.yy437, NULL, &yymsp[0].minor.yy437); } break; case 184: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy505, &yymsp[0].minor.yy225); } +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy493, &yymsp[0].minor.yy437); } break; - case 186: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy176 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 185: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy493, yymsp[-1].minor.yy364, yymsp[0].minor.yy364); } break; - case 187: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy176 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 187: /* analyze_opt ::= ANALYZE */ + case 294: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==294); +{ yymsp[0].minor.yy493 = true; } break; - case 188: /* literal ::= NK_STRING */ -{ yylhsminor.yy176 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 188: /* explain_options ::= */ +{ yymsp[1].minor.yy364 = createDefaultExplainOptions(pCxt); } break; - case 189: /* literal ::= NK_BOOL */ -{ yylhsminor.yy176 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 189: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy364 = setExplainVerbose(pCxt, yymsp[-2].minor.yy364, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 190: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + case 190: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy364 = setExplainRatio(pCxt, yymsp[-2].minor.yy364, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 191: /* literal ::= duration_literal */ - case 200: /* signed_literal ::= signed */ yytestcase(yyruleno==200); - case 217: /* expression ::= literal */ yytestcase(yyruleno==217); - case 218: /* expression ::= pseudo_column */ yytestcase(yyruleno==218); - case 219: /* expression ::= column_reference */ yytestcase(yyruleno==219); - case 222: /* expression ::= subquery */ yytestcase(yyruleno==222); - case 261: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==261); - case 265: /* boolean_primary ::= predicate */ yytestcase(yyruleno==265); - case 267: /* common_expression ::= expression */ yytestcase(yyruleno==267); - case 268: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==268); - case 270: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==270); - case 272: /* table_reference ::= table_primary */ yytestcase(yyruleno==272); - case 273: /* table_reference ::= joined_table */ yytestcase(yyruleno==273); - case 277: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==277); - case 324: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==324); - case 326: /* query_primary ::= query_specification */ yytestcase(yyruleno==326); -{ yylhsminor.yy176 = yymsp[0].minor.yy176; } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 192: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy364 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 192: /* literal ::= NULL */ -{ yylhsminor.yy176 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL)); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 193: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy364 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 193: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy176 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 194: /* literal ::= NK_STRING */ +{ yylhsminor.yy364 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 194: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 195: /* literal ::= NK_BOOL */ +{ yylhsminor.yy364 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 195: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + case 196: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 196: /* signed ::= NK_MINUS NK_INTEGER */ + case 197: /* literal ::= duration_literal */ + case 206: /* signed_literal ::= signed */ yytestcase(yyruleno==206); + case 223: /* expression ::= literal */ yytestcase(yyruleno==223); + case 224: /* expression ::= pseudo_column */ yytestcase(yyruleno==224); + case 225: /* expression ::= column_reference */ yytestcase(yyruleno==225); + case 228: /* expression ::= subquery */ yytestcase(yyruleno==228); + case 267: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==267); + case 271: /* boolean_primary ::= predicate */ yytestcase(yyruleno==271); + case 273: /* common_expression ::= expression */ yytestcase(yyruleno==273); + case 274: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==274); + case 276: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==276); + case 278: /* table_reference ::= table_primary */ yytestcase(yyruleno==278); + case 279: /* table_reference ::= joined_table */ yytestcase(yyruleno==279); + case 283: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==283); + case 330: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==330); + case 332: /* query_primary ::= query_specification */ yytestcase(yyruleno==332); +{ yylhsminor.yy364 = yymsp[0].minor.yy364; } + yymsp[0].minor.yy364 = yylhsminor.yy364; + break; + case 198: /* literal ::= NULL */ +{ yylhsminor.yy364 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL)); } + yymsp[0].minor.yy364 = yylhsminor.yy364; + break; + case 199: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy364 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy364 = yylhsminor.yy364; + break; + case 200: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy364 = yylhsminor.yy364; + break; + case 201: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 202: /* signed ::= NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 197: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 203: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 198: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 204: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 199: /* signed ::= NK_MINUS NK_FLOAT */ + case 205: /* signed ::= NK_MINUS NK_FLOAT */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 201: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 207: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 202: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 208: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 203: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 209: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 204: /* signed_literal ::= duration_literal */ - case 338: /* search_condition ::= common_expression */ yytestcase(yyruleno==338); -{ yylhsminor.yy176 = releaseRawExprNode(pCxt, yymsp[0].minor.yy176); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 210: /* signed_literal ::= duration_literal */ + case 344: /* search_condition ::= common_expression */ yytestcase(yyruleno==344); +{ yylhsminor.yy364 = releaseRawExprNode(pCxt, yymsp[0].minor.yy364); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 205: /* signed_literal ::= NULL */ -{ yymsp[0].minor.yy176 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } + case 211: /* signed_literal ::= NULL */ +{ yymsp[0].minor.yy364 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } break; - case 220: /* expression ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy225, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy225, yymsp[-1].minor.yy512)); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; + case 226: /* expression ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy437, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy437, yymsp[-1].minor.yy40)); } + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; - case 221: /* expression ::= function_name NK_LP NK_STAR NK_RP */ -{ yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy225, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy225, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; + case 227: /* expression ::= function_name NK_LP NK_STAR NK_RP */ +{ yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy437, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy437, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; - case 223: /* expression ::= NK_LP expression NK_RP */ - case 266: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==266); -{ yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy176)); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + case 229: /* expression ::= NK_LP expression NK_RP */ + case 272: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==272); +{ yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy364)); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 224: /* expression ::= NK_PLUS expression */ + case 230: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy176)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy364)); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 225: /* expression ::= NK_MINUS expression */ + case 231: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[0].minor.yy176), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[0].minor.yy364), NULL)); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 226: /* expression ::= expression NK_PLUS expression */ + case 232: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 227: /* expression ::= expression NK_MINUS expression */ + case 233: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 228: /* expression ::= expression NK_STAR expression */ + case 234: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 229: /* expression ::= expression NK_SLASH expression */ + case 235: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 230: /* expression ::= expression NK_REM expression */ + case 236: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 231: /* expression_list ::= expression */ -{ yylhsminor.yy512 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy176)); } - yymsp[0].minor.yy512 = yylhsminor.yy512; + case 237: /* expression_list ::= expression */ +{ yylhsminor.yy40 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy364)); } + yymsp[0].minor.yy40 = yylhsminor.yy40; break; - case 232: /* expression_list ::= expression_list NK_COMMA expression */ -{ yylhsminor.yy512 = addNodeToList(pCxt, yymsp[-2].minor.yy512, releaseRawExprNode(pCxt, yymsp[0].minor.yy176)); } - yymsp[-2].minor.yy512 = yylhsminor.yy512; + case 238: /* expression_list ::= expression_list NK_COMMA expression */ +{ yylhsminor.yy40 = addNodeToList(pCxt, yymsp[-2].minor.yy40, releaseRawExprNode(pCxt, yymsp[0].minor.yy364)); } + yymsp[-2].minor.yy40 = yylhsminor.yy40; break; - case 233: /* column_reference ::= column_name */ -{ yylhsminor.yy176 = createRawExprNode(pCxt, &yymsp[0].minor.yy225, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy225)); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 239: /* column_reference ::= column_name */ +{ yylhsminor.yy364 = createRawExprNode(pCxt, &yymsp[0].minor.yy437, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy437)); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 234: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy225, &yymsp[0].minor.yy225, createColumnNode(pCxt, &yymsp[-2].minor.yy225, &yymsp[0].minor.yy225)); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + case 240: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy437, &yymsp[0].minor.yy437, createColumnNode(pCxt, &yymsp[-2].minor.yy437, &yymsp[0].minor.yy437)); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 235: /* pseudo_column ::= NK_UNDERLINE ROWTS */ - case 237: /* pseudo_column ::= NK_UNDERLINE QSTARTTS */ yytestcase(yyruleno==237); - case 238: /* pseudo_column ::= NK_UNDERLINE QENDTS */ yytestcase(yyruleno==238); - case 239: /* pseudo_column ::= NK_UNDERLINE WSTARTTS */ yytestcase(yyruleno==239); - case 240: /* pseudo_column ::= NK_UNDERLINE WENDTS */ yytestcase(yyruleno==240); - case 241: /* pseudo_column ::= NK_UNDERLINE WDURATION */ yytestcase(yyruleno==241); + case 241: /* pseudo_column ::= NK_UNDERLINE ROWTS */ + case 243: /* pseudo_column ::= NK_UNDERLINE QSTARTTS */ yytestcase(yyruleno==243); + case 244: /* pseudo_column ::= NK_UNDERLINE QENDTS */ yytestcase(yyruleno==244); + case 245: /* pseudo_column ::= NK_UNDERLINE WSTARTTS */ yytestcase(yyruleno==245); + case 246: /* pseudo_column ::= NK_UNDERLINE WENDTS */ yytestcase(yyruleno==246); + case 247: /* pseudo_column ::= NK_UNDERLINE WDURATION */ yytestcase(yyruleno==247); { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy176 = createRawExprNode(pCxt, &t, createFunctionNode(pCxt, &t, NULL)); + yylhsminor.yy364 = createRawExprNode(pCxt, &t, createFunctionNode(pCxt, &t, NULL)); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 236: /* pseudo_column ::= TBNAME */ -{ yylhsminor.yy176 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + case 242: /* pseudo_column ::= TBNAME */ +{ yylhsminor.yy364 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 242: /* predicate ::= expression compare_op expression */ - case 247: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==247); + case 248: /* predicate ::= expression compare_op expression */ + case 253: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==253); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy404, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy328, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 243: /* predicate ::= expression BETWEEN expression AND expression */ + case 249: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy176), releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy364), releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-4].minor.yy176 = yylhsminor.yy176; + yymsp[-4].minor.yy364 = yylhsminor.yy364; break; - case 244: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 250: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[-5].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[-5].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-5].minor.yy176 = yylhsminor.yy176; + yymsp[-5].minor.yy364 = yylhsminor.yy364; break; - case 245: /* predicate ::= expression IS NULL */ + case 251: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), NULL)); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 246: /* predicate ::= expression IS NOT NULL */ + case 252: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy176), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy364), NULL)); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; - case 248: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy404 = OP_TYPE_LOWER_THAN; } + case 254: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy328 = OP_TYPE_LOWER_THAN; } break; - case 249: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy404 = OP_TYPE_GREATER_THAN; } + case 255: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy328 = OP_TYPE_GREATER_THAN; } break; - case 250: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy404 = OP_TYPE_LOWER_EQUAL; } + case 256: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy328 = OP_TYPE_LOWER_EQUAL; } break; - case 251: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy404 = OP_TYPE_GREATER_EQUAL; } + case 257: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy328 = OP_TYPE_GREATER_EQUAL; } break; - case 252: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy404 = OP_TYPE_NOT_EQUAL; } + case 258: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy328 = OP_TYPE_NOT_EQUAL; } break; - case 253: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy404 = OP_TYPE_EQUAL; } + case 259: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy328 = OP_TYPE_EQUAL; } break; - case 254: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy404 = OP_TYPE_LIKE; } + case 260: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy328 = OP_TYPE_LIKE; } break; - case 255: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy404 = OP_TYPE_NOT_LIKE; } + case 261: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy328 = OP_TYPE_NOT_LIKE; } break; - case 256: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy404 = OP_TYPE_MATCH; } + case 262: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy328 = OP_TYPE_MATCH; } break; - case 257: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy404 = OP_TYPE_NMATCH; } + case 263: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy328 = OP_TYPE_NMATCH; } break; - case 258: /* in_op ::= IN */ -{ yymsp[0].minor.yy404 = OP_TYPE_IN; } + case 264: /* in_op ::= IN */ +{ yymsp[0].minor.yy328 = OP_TYPE_IN; } break; - case 259: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy404 = OP_TYPE_NOT_IN; } + case 265: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy328 = OP_TYPE_NOT_IN; } break; - case 260: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy512)); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + case 266: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy40)); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 262: /* boolean_value_expression ::= NOT boolean_primary */ + case 268: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy176), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy364), NULL)); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 263: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 269: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 264: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 270: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy176); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy364); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 269: /* from_clause ::= FROM table_reference_list */ - case 299: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==299); - case 322: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==322); -{ yymsp[-1].minor.yy176 = yymsp[0].minor.yy176; } + case 275: /* from_clause ::= FROM table_reference_list */ + case 305: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==305); + case 328: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==328); +{ yymsp[-1].minor.yy364 = yymsp[0].minor.yy364; } break; - case 271: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy176 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy176, yymsp[0].minor.yy176, NULL); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + case 277: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy364 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy364, yymsp[0].minor.yy364, NULL); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 274: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy176 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy225, &yymsp[0].minor.yy225); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + case 280: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy364 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy437, &yymsp[0].minor.yy437); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 275: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy176 = createRealTableNode(pCxt, &yymsp[-3].minor.yy225, &yymsp[-1].minor.yy225, &yymsp[0].minor.yy225); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; + case 281: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy364 = createRealTableNode(pCxt, &yymsp[-3].minor.yy437, &yymsp[-1].minor.yy437, &yymsp[0].minor.yy437); } + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; - case 276: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy176 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy176), &yymsp[0].minor.yy225); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + case 282: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy364 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy364), &yymsp[0].minor.yy437); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 278: /* alias_opt ::= */ -{ yymsp[1].minor.yy225 = nil_token; } + case 284: /* alias_opt ::= */ +{ yymsp[1].minor.yy437 = nil_token; } break; - case 279: /* alias_opt ::= table_alias */ -{ yylhsminor.yy225 = yymsp[0].minor.yy225; } - yymsp[0].minor.yy225 = yylhsminor.yy225; + case 285: /* alias_opt ::= table_alias */ +{ yylhsminor.yy437 = yymsp[0].minor.yy437; } + yymsp[0].minor.yy437 = yylhsminor.yy437; break; - case 280: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy225 = yymsp[0].minor.yy225; } + case 286: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy437 = yymsp[0].minor.yy437; } break; - case 281: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 282: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==282); -{ yymsp[-2].minor.yy176 = yymsp[-1].minor.yy176; } + case 287: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 288: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==288); +{ yymsp[-2].minor.yy364 = yymsp[-1].minor.yy364; } break; - case 283: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy176 = createJoinTableNode(pCxt, yymsp[-4].minor.yy236, yymsp[-5].minor.yy176, yymsp[-2].minor.yy176, yymsp[0].minor.yy176); } - yymsp[-5].minor.yy176 = yylhsminor.yy176; + case 289: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy364 = createJoinTableNode(pCxt, yymsp[-4].minor.yy392, yymsp[-5].minor.yy364, yymsp[-2].minor.yy364, yymsp[0].minor.yy364); } + yymsp[-5].minor.yy364 = yylhsminor.yy364; break; - case 284: /* join_type ::= */ -{ yymsp[1].minor.yy236 = JOIN_TYPE_INNER; } + case 290: /* join_type ::= */ +{ yymsp[1].minor.yy392 = JOIN_TYPE_INNER; } break; - case 285: /* join_type ::= INNER */ -{ yymsp[0].minor.yy236 = JOIN_TYPE_INNER; } + case 291: /* join_type ::= INNER */ +{ yymsp[0].minor.yy392 = JOIN_TYPE_INNER; } break; - case 286: /* 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 292: /* 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.yy176 = createSelectStmt(pCxt, yymsp[-7].minor.yy505, yymsp[-6].minor.yy512, yymsp[-5].minor.yy176); - yymsp[-8].minor.yy176 = addWhereClause(pCxt, yymsp[-8].minor.yy176, yymsp[-4].minor.yy176); - yymsp[-8].minor.yy176 = addPartitionByClause(pCxt, yymsp[-8].minor.yy176, yymsp[-3].minor.yy512); - yymsp[-8].minor.yy176 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy176, yymsp[-2].minor.yy176); - yymsp[-8].minor.yy176 = addGroupByClause(pCxt, yymsp[-8].minor.yy176, yymsp[-1].minor.yy512); - yymsp[-8].minor.yy176 = addHavingClause(pCxt, yymsp[-8].minor.yy176, yymsp[0].minor.yy176); + yymsp[-8].minor.yy364 = createSelectStmt(pCxt, yymsp[-7].minor.yy493, yymsp[-6].minor.yy40, yymsp[-5].minor.yy364); + yymsp[-8].minor.yy364 = addWhereClause(pCxt, yymsp[-8].minor.yy364, yymsp[-4].minor.yy364); + yymsp[-8].minor.yy364 = addPartitionByClause(pCxt, yymsp[-8].minor.yy364, yymsp[-3].minor.yy40); + yymsp[-8].minor.yy364 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy364, yymsp[-2].minor.yy364); + yymsp[-8].minor.yy364 = addGroupByClause(pCxt, yymsp[-8].minor.yy364, yymsp[-1].minor.yy40); + yymsp[-8].minor.yy364 = addHavingClause(pCxt, yymsp[-8].minor.yy364, yymsp[0].minor.yy364); } break; - case 288: /* set_quantifier_opt ::= DISTINCT */ -{ yymsp[0].minor.yy505 = true; } + case 295: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy493 = false; } break; - case 289: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy505 = false; } + case 296: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy40 = NULL; } break; - case 290: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy512 = NULL; } - break; - case 294: /* select_item ::= common_expression */ + case 300: /* select_item ::= common_expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy176); - yylhsminor.yy176 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy176), &t); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy364); + yylhsminor.yy364 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy364), &t); } - yymsp[0].minor.yy176 = yylhsminor.yy176; + yymsp[0].minor.yy364 = yylhsminor.yy364; break; - case 295: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy176 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy176), &yymsp[0].minor.yy225); } - yymsp[-1].minor.yy176 = yylhsminor.yy176; + case 301: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy364 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy364), &yymsp[0].minor.yy437); } + yymsp[-1].minor.yy364 = yylhsminor.yy364; break; - case 296: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy176 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), &yymsp[0].minor.yy225); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + case 302: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy364 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), &yymsp[0].minor.yy437); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 297: /* select_item ::= table_name NK_DOT NK_STAR */ -{ yylhsminor.yy176 = createColumnNode(pCxt, &yymsp[-2].minor.yy225, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + case 303: /* select_item ::= table_name NK_DOT NK_STAR */ +{ yylhsminor.yy364 = createColumnNode(pCxt, &yymsp[-2].minor.yy437, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 301: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 318: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==318); - case 328: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==328); -{ yymsp[-2].minor.yy512 = yymsp[0].minor.yy512; } + case 307: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 324: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==324); + case 334: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==334); +{ yymsp[-2].minor.yy40 = yymsp[0].minor.yy40; } break; - case 303: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy176 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy176), releaseRawExprNode(pCxt, yymsp[-1].minor.yy176)); } + case 309: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy364 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy364), releaseRawExprNode(pCxt, yymsp[-1].minor.yy364)); } break; - case 304: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ -{ yymsp[-3].minor.yy176 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy176)); } + case 310: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ +{ yymsp[-3].minor.yy364 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy364)); } break; - case 305: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy176 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy176), NULL, yymsp[-1].minor.yy176, yymsp[0].minor.yy176); } + case 311: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy364 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy364), NULL, yymsp[-1].minor.yy364, yymsp[0].minor.yy364); } break; - case 306: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy176 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy176), releaseRawExprNode(pCxt, yymsp[-3].minor.yy176), yymsp[-1].minor.yy176, yymsp[0].minor.yy176); } + case 312: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy364 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy364), releaseRawExprNode(pCxt, yymsp[-3].minor.yy364), yymsp[-1].minor.yy364, yymsp[0].minor.yy364); } break; - case 308: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy176 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy176); } + case 314: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ +{ yymsp[-3].minor.yy364 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy364); } break; - case 310: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy176 = createFillNode(pCxt, yymsp[-1].minor.yy142, NULL); } + case 316: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy364 = createFillNode(pCxt, yymsp[-1].minor.yy478, NULL); } break; - case 311: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy176 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy512)); } + case 317: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy364 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy40)); } break; - case 312: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy142 = FILL_MODE_NONE; } + case 318: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy478 = FILL_MODE_NONE; } break; - case 313: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy142 = FILL_MODE_PREV; } + case 319: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy478 = FILL_MODE_PREV; } break; - case 314: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy142 = FILL_MODE_NULL; } + case 320: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy478 = FILL_MODE_NULL; } break; - case 315: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy142 = FILL_MODE_LINEAR; } + case 321: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy478 = FILL_MODE_LINEAR; } break; - case 316: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy142 = FILL_MODE_NEXT; } + case 322: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy478 = FILL_MODE_NEXT; } break; - case 319: /* group_by_list ::= expression */ -{ yylhsminor.yy512 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); } - yymsp[0].minor.yy512 = yylhsminor.yy512; + case 325: /* group_by_list ::= expression */ +{ yylhsminor.yy40 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } + yymsp[0].minor.yy40 = yylhsminor.yy40; break; - case 320: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy512 = addNodeToList(pCxt, yymsp[-2].minor.yy512, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy176))); } - yymsp[-2].minor.yy512 = yylhsminor.yy512; + case 326: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy40 = addNodeToList(pCxt, yymsp[-2].minor.yy40, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy364))); } + yymsp[-2].minor.yy40 = yylhsminor.yy40; break; - case 323: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 329: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy176 = addOrderByClause(pCxt, yymsp[-3].minor.yy176, yymsp[-2].minor.yy512); - yylhsminor.yy176 = addSlimitClause(pCxt, yylhsminor.yy176, yymsp[-1].minor.yy176); - yylhsminor.yy176 = addLimitClause(pCxt, yylhsminor.yy176, yymsp[0].minor.yy176); + yylhsminor.yy364 = addOrderByClause(pCxt, yymsp[-3].minor.yy364, yymsp[-2].minor.yy40); + yylhsminor.yy364 = addSlimitClause(pCxt, yylhsminor.yy364, yymsp[-1].minor.yy364); + yylhsminor.yy364 = addLimitClause(pCxt, yylhsminor.yy364, yymsp[0].minor.yy364); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; - case 325: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy176 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy176, yymsp[0].minor.yy176); } - yymsp[-3].minor.yy176 = yylhsminor.yy176; + case 331: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy364 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy364, yymsp[0].minor.yy364); } + yymsp[-3].minor.yy364 = yylhsminor.yy364; break; - case 330: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 334: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==334); -{ yymsp[-1].minor.yy176 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 336: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 340: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==340); +{ yymsp[-1].minor.yy364 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 331: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 335: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==335); -{ yymsp[-3].minor.yy176 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 337: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 341: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==341); +{ yymsp[-3].minor.yy364 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 332: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 336: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==336); -{ yymsp[-3].minor.yy176 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 338: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 342: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==342); +{ yymsp[-3].minor.yy364 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 337: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy176 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy176); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + case 343: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy364 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy364); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 341: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy176 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy176), yymsp[-1].minor.yy106, yymsp[0].minor.yy465); } - yymsp[-2].minor.yy176 = yylhsminor.yy176; + case 347: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy364 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy364), yymsp[-1].minor.yy210, yymsp[0].minor.yy177); } + yymsp[-2].minor.yy364 = yylhsminor.yy364; break; - case 342: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy106 = ORDER_ASC; } + case 348: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy210 = ORDER_ASC; } break; - case 343: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy106 = ORDER_ASC; } + case 349: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy210 = ORDER_ASC; } break; - case 344: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy106 = ORDER_DESC; } + case 350: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy210 = ORDER_DESC; } break; - case 345: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy465 = NULL_ORDER_DEFAULT; } + case 351: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy177 = NULL_ORDER_DEFAULT; } break; - case 346: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy465 = NULL_ORDER_FIRST; } + case 352: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy177 = NULL_ORDER_FIRST; } break; - case 347: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy465 = NULL_ORDER_LAST; } + case 353: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy177 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/parser/test/parserAstTest.cpp b/source/libs/parser/test/parserAstTest.cpp index 87f20e8d25..6dc3b53ae3 100644 --- a/source/libs/parser/test/parserAstTest.cpp +++ b/source/libs/parser/test/parserAstTest.cpp @@ -647,3 +647,16 @@ TEST_F(ParserTest, dropTopic) { bind("drop topic if exists tp1"); ASSERT_TRUE(run()); } + +TEST_F(ParserTest, explain) { + setDatabase("root", "test"); + + bind("explain SELECT * FROM t1"); + ASSERT_TRUE(run()); + + bind("explain analyze SELECT * FROM t1"); + ASSERT_TRUE(run()); + + bind("explain analyze verbose true ratio 0.01 SELECT * FROM t1"); + ASSERT_TRUE(run()); +} diff --git a/source/libs/planner/src/planLogicCreater.c b/source/libs/planner/src/planLogicCreater.c index c0d7ff238e..7f6d8826e6 100644 --- a/source/libs/planner/src/planLogicCreater.c +++ b/source/libs/planner/src/planLogicCreater.c @@ -197,6 +197,7 @@ static int32_t createScanLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect strcpy(pScan->tableName.dbname, pRealTable->table.dbName); strcpy(pScan->tableName.tname, pRealTable->table.tableName); pScan->showRewrite = pCxt->pPlanCxt->showRewrite; + pScan->ratio = pRealTable->ratio; // set columns to scan SNodeList* pCols = NULL; @@ -704,6 +705,8 @@ static int32_t createQueryLogicNode(SLogicPlanContext* pCxt, SNode* pStmt, SLogi return createSelectLogicNode(pCxt, (SSelectStmt*)pStmt, pLogicNode); case QUERY_NODE_VNODE_MODIF_STMT: return createVnodeModifLogicNode(pCxt, (SVnodeModifOpStmt*)pStmt, pLogicNode); + case QUERY_NODE_EXPLAIN_STMT: + return createQueryLogicNode(pCxt, ((SExplainStmt*)pStmt)->pQuery, pLogicNode); default: break; } diff --git a/source/libs/planner/src/planPhysiCreater.c b/source/libs/planner/src/planPhysiCreater.c index d5e35fa594..9ef1c01cd1 100644 --- a/source/libs/planner/src/planPhysiCreater.c +++ b/source/libs/planner/src/planPhysiCreater.c @@ -398,6 +398,7 @@ static int32_t createTableScanPhysiNode(SPhysiPlanContext* pCxt, SSubplan* pSubp pTableScan->scanFlag = pScanLogicNode->scanFlag; pTableScan->scanRange = pScanLogicNode->scanRange; + pTableScan->ratio = pScanLogicNode->ratio; vgroupInfoToNodeAddr(pScanLogicNode->pVgroupList->vgroups, &pSubplan->execNode); taosArrayPush(pCxt->pExecNodeList, &pSubplan->execNode); pSubplan->execNodeStat.tableNum = pScanLogicNode->pVgroupList->vgroups[0].numOfTable; @@ -1095,6 +1096,16 @@ static void destoryPhysiPlanContext(SPhysiPlanContext* pCxt) { taosArrayDestroyEx(pCxt->pLocationHelper, destoryLocationHash); } +static void setExplainInfo(SPlanContext* pCxt, SQueryPlan* pPlan) { + if (QUERY_NODE_EXPLAIN_STMT == nodeType(pCxt->pAstRoot)) { + SExplainStmt* pStmt = (SExplainStmt*)pCxt->pAstRoot; + pPlan->explainInfo.mode = pStmt->analyze ? EXPLAIN_MODE_ANALYZE : EXPLAIN_MODE_STATIC; + pPlan->explainInfo.verbose = pStmt->pOptions->verbose; + } else { + pPlan->explainInfo.mode = EXPLAIN_MODE_DISABLE; + } +} + int32_t createPhysiPlan(SPlanContext* pCxt, SQueryLogicPlan* pLogicPlan, SQueryPlan** pPlan, SArray* pExecNodeList) { SPhysiPlanContext cxt = { .pPlanCxt = pCxt, @@ -1106,7 +1117,12 @@ int32_t createPhysiPlan(SPlanContext* pCxt, SQueryLogicPlan* pLogicPlan, SQueryP if (NULL == cxt.pLocationHelper) { return TSDB_CODE_OUT_OF_MEMORY; } + int32_t code = doCreatePhysiPlan(&cxt, pLogicPlan, pPlan); + if (TSDB_CODE_SUCCESS == code) { + setExplainInfo(pCxt, *pPlan); + } + destoryPhysiPlanContext(&cxt); return code; } diff --git a/source/libs/planner/test/plannerTest.cpp b/source/libs/planner/test/plannerTest.cpp index 7b706242e5..d19d88f455 100644 --- a/source/libs/planner/test/plannerTest.cpp +++ b/source/libs/planner/test/plannerTest.cpp @@ -282,3 +282,16 @@ TEST_F(PlannerTest, createSmaIndex) { bind("create sma index index1 on t1 function(max(c1), min(c3 + 10), sum(c4)) INTERVAL(10s)"); ASSERT_TRUE(run()); } + +TEST_F(PlannerTest, explain) { + setDatabase("root", "test"); + + bind("explain SELECT * FROM t1"); + ASSERT_TRUE(run()); + + bind("explain analyze SELECT * FROM t1"); + ASSERT_TRUE(run()); + + bind("explain analyze verbose true ratio 0.01 SELECT * FROM t1"); + ASSERT_TRUE(run()); +}