From bac6e27c200dc2a8106015a451ddd3860f6818d8 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Sun, 19 Jun 2022 19:39:12 +0800 Subject: [PATCH] feat: sql command 'interp' --- include/common/ttokendef.h | 30 +- include/libs/function/functionMgt.h | 1 + include/libs/nodes/nodes.h | 2 + include/libs/nodes/plannodes.h | 25 +- include/libs/nodes/querynodes.h | 4 + source/libs/command/src/explain.c | 4 +- source/libs/executor/src/executorimpl.c | 2 +- source/libs/function/src/builtins.c | 2 +- source/libs/function/src/functionMgt.c | 7 + source/libs/nodes/src/nodesCloneFuncs.c | 12 +- source/libs/nodes/src/nodesCodeFuncs.c | 121 +- source/libs/nodes/src/nodesUtilFuncs.c | 21 +- source/libs/parser/inc/parAst.h | 4 + source/libs/parser/inc/sql.y | 19 +- source/libs/parser/src/parAstCreater.c | 31 + source/libs/parser/src/parTokenizer.c | 3 +- source/libs/parser/src/parTranslater.c | 1 + source/libs/parser/src/sql.c | 3684 ++++++++++---------- source/libs/parser/test/parSelectTest.cpp | 18 + source/libs/planner/src/planLogicCreater.c | 61 +- source/libs/planner/src/planPhysiCreater.c | 54 +- source/libs/planner/test/planBasicTest.cpp | 8 + 22 files changed, 2239 insertions(+), 1875 deletions(-) diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 57599f9421..35b4a5ce7d 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -241,20 +241,22 @@ #define TK_LINEAR 223 #define TK_NEXT 224 #define TK_HAVING 225 -#define TK_ORDER 226 -#define TK_SLIMIT 227 -#define TK_SOFFSET 228 -#define TK_LIMIT 229 -#define TK_OFFSET 230 -#define TK_ASC 231 -#define TK_NULLS 232 -#define TK_ID 233 -#define TK_NK_BITNOT 234 -#define TK_INSERT 235 -#define TK_VALUES 236 -#define TK_IMPORT 237 -#define TK_NK_SEMI 238 -#define TK_FILE 239 +#define TK_RANGE 226 +#define TK_EVERY 227 +#define TK_ORDER 228 +#define TK_SLIMIT 229 +#define TK_SOFFSET 230 +#define TK_LIMIT 231 +#define TK_OFFSET 232 +#define TK_ASC 233 +#define TK_NULLS 234 +#define TK_ID 235 +#define TK_NK_BITNOT 236 +#define TK_INSERT 237 +#define TK_VALUES 238 +#define TK_IMPORT 239 +#define TK_NK_SEMI 240 +#define TK_FILE 241 #define TK_NK_SPACE 300 #define TK_NK_COMMENT 301 diff --git a/include/libs/function/functionMgt.h b/include/libs/function/functionMgt.h index a21e408310..cbaff29cb2 100644 --- a/include/libs/function/functionMgt.h +++ b/include/libs/function/functionMgt.h @@ -189,6 +189,7 @@ bool fmIsForbidStreamFunc(int32_t funcId); bool fmIsForbidWindowFunc(int32_t funcId); bool fmIsForbidGroupByFunc(int32_t funcId); bool fmIsIntervalInterpoFunc(int32_t funcId); +bool fmIsInterpFunc(int32_t funcId); int32_t fmGetDistMethod(const SFunctionNode* pFunc, SFunctionNode** pPartialFunc, SFunctionNode** pMergeFunc); diff --git a/include/libs/nodes/nodes.h b/include/libs/nodes/nodes.h index 244896d0db..975321cd5b 100644 --- a/include/libs/nodes/nodes.h +++ b/include/libs/nodes/nodes.h @@ -205,6 +205,7 @@ typedef enum ENodeType { QUERY_NODE_LOGIC_PLAN_SORT, QUERY_NODE_LOGIC_PLAN_PARTITION, QUERY_NODE_LOGIC_PLAN_INDEF_ROWS_FUNC, + QUERY_NODE_LOGIC_PLAN_INTERP_FUNC, QUERY_NODE_LOGIC_SUBPLAN, QUERY_NODE_LOGIC_PLAN, @@ -236,6 +237,7 @@ typedef enum ENodeType { QUERY_NODE_PHYSICAL_PLAN_STREAM_STATE, QUERY_NODE_PHYSICAL_PLAN_PARTITION, QUERY_NODE_PHYSICAL_PLAN_INDEF_ROWS_FUNC, + QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC, QUERY_NODE_PHYSICAL_PLAN_DISPATCH, QUERY_NODE_PHYSICAL_PLAN_INSERT, QUERY_NODE_PHYSICAL_PLAN_DELETE, diff --git a/include/libs/nodes/plannodes.h b/include/libs/nodes/plannodes.h index 706cac7afa..38a179869f 100644 --- a/include/libs/nodes/plannodes.h +++ b/include/libs/nodes/plannodes.h @@ -98,9 +98,16 @@ typedef struct SProjectLogicNode { typedef struct SIndefRowsFuncLogicNode { SLogicNode node; - SNodeList* pVectorFuncs; + SNodeList* pFuncs; } SIndefRowsFuncLogicNode; +typedef struct SInterpFuncLogicNode { + SLogicNode node; + SNodeList* pFuncs; + STimeWindow timeRange; + int64_t interval; +} SInterpFuncLogicNode; + typedef enum EModifyTableType { MODIFY_TABLE_TYPE_INSERT = 1, MODIFY_TABLE_TYPE_DELETE } EModifyTableType; typedef struct SVnodeModifyLogicNode { @@ -154,7 +161,7 @@ typedef struct SWindowLogicNode { int8_t slidingUnit; int64_t sessionGap; SNode* pTspk; - SNode* pTsEnd; + SNode* pTsEnd; SNode* pStateExpr; int8_t triggerType; int64_t watermark; @@ -293,9 +300,17 @@ typedef struct SProjectPhysiNode { typedef struct SIndefRowsFuncPhysiNode { SPhysiNode node; SNodeList* pExprs; - SNodeList* pVectorFuncs; + SNodeList* pFuncs; } SIndefRowsFuncPhysiNode; +typedef struct SInterpFuncPhysiNode { + SPhysiNode node; + SNodeList* pExprs; + SNodeList* pFuncs; + STimeWindow timeRange; + int64_t interval; +} SInterpFuncPhysiNode; + typedef struct SJoinPhysiNode { SPhysiNode node; EJoinType joinType; @@ -338,8 +353,8 @@ typedef struct SWinodwPhysiNode { SPhysiNode node; SNodeList* pExprs; // these are expression list of parameter expression of function SNodeList* pFuncs; - SNode* pTspk; // timestamp primary key - SNode* pTsEnd; // window end timestamp + SNode* pTspk; // timestamp primary key + SNode* pTsEnd; // window end timestamp int8_t triggerType; int64_t watermark; double filesFactor; diff --git a/include/libs/nodes/querynodes.h b/include/libs/nodes/querynodes.h index 3a0d3178a3..73e487f073 100644 --- a/include/libs/nodes/querynodes.h +++ b/include/libs/nodes/querynodes.h @@ -240,6 +240,9 @@ typedef struct SSelectStmt { SNode* pWindow; SNodeList* pGroupByList; // SGroupingSetNode SNode* pHaving; + SNode* pRange; + SNode* pEvery; + SNode* pFill; SNodeList* pOrderByList; // SOrderByExprNode SLimitNode* pLimit; SLimitNode* pSlimit; @@ -254,6 +257,7 @@ typedef struct SSelectStmt { bool hasSelectValFunc; bool hasUniqueFunc; bool hasTailFunc; + bool hasInterpFunc; } SSelectStmt; typedef enum ESetOperatorType { SET_OP_TYPE_UNION_ALL = 1, SET_OP_TYPE_UNION } ESetOperatorType; diff --git a/source/libs/command/src/explain.c b/source/libs/command/src/explain.c index 8f91282480..00643be0e1 100644 --- a/source/libs/command/src/explain.c +++ b/source/libs/command/src/explain.c @@ -631,8 +631,8 @@ int32_t qExplainResNodeToRowsImpl(SExplainResNode *pResNode, SExplainCtx *ctx, i QRY_ERR_RET(qExplainBufAppendExecInfo(pResNode->pExecInfo, tbuf, &tlen)); EXPLAIN_ROW_APPEND(EXPLAIN_BLANK_FORMAT); } - if (pIndefNode->pVectorFuncs) { - EXPLAIN_ROW_APPEND(EXPLAIN_FUNCTIONS_FORMAT, pIndefNode->pVectorFuncs->length); + if (pIndefNode->pFuncs) { + EXPLAIN_ROW_APPEND(EXPLAIN_FUNCTIONS_FORMAT, pIndefNode->pFuncs->length); EXPLAIN_ROW_APPEND(EXPLAIN_BLANK_FORMAT); } EXPLAIN_ROW_APPEND(EXPLAIN_WIDTH_FORMAT, pIndefNode->node.pOutputDataBlockDesc->totalRowSize); diff --git a/source/libs/executor/src/executorimpl.c b/source/libs/executor/src/executorimpl.c index 421fd56e1f..58918667f3 100644 --- a/source/libs/executor/src/executorimpl.c +++ b/source/libs/executor/src/executorimpl.c @@ -3716,7 +3716,7 @@ SOperatorInfo* createIndefinitOutputOperatorInfo(SOperatorInfo* downstream, SPhy SIndefRowsFuncPhysiNode* pPhyNode = (SIndefRowsFuncPhysiNode*)pNode; int32_t numOfExpr = 0; - SExprInfo* pExprInfo = createExprInfo(pPhyNode->pVectorFuncs, NULL, &numOfExpr); + SExprInfo* pExprInfo = createExprInfo(pPhyNode->pFuncs, NULL, &numOfExpr); if (pPhyNode->pExprs != NULL) { SExprSupp* pSup1 = &pInfo->scalarSup; diff --git a/source/libs/function/src/builtins.c b/source/libs/function/src/builtins.c index cf8c8399c4..522ee09b3c 100644 --- a/source/libs/function/src/builtins.c +++ b/source/libs/function/src/builtins.c @@ -1881,7 +1881,7 @@ const SBuiltinFuncDefinition funcMgtBuiltins[] = { { .name = "interp", .type = FUNCTION_TYPE_INTERP, - .classification = FUNC_MGT_AGG_FUNC | FUNC_MGT_TIMELINE_FUNC | FUNC_MGT_INTERVAL_INTERPO_FUNC, + .classification = FUNC_MGT_TIMELINE_FUNC | FUNC_MGT_INTERVAL_INTERPO_FUNC, .translateFunc = translateFirstLast, .getEnvFunc = getSelectivityFuncEnv, .initFunc = functionSetup, diff --git a/source/libs/function/src/functionMgt.c b/source/libs/function/src/functionMgt.c index 8f0e5a32e3..710b01ce59 100644 --- a/source/libs/function/src/functionMgt.c +++ b/source/libs/function/src/functionMgt.c @@ -179,6 +179,13 @@ bool fmIsForbidWindowFunc(int32_t funcId) { return isSpecificClassifyFunc(funcId bool fmIsForbidGroupByFunc(int32_t funcId) { return isSpecificClassifyFunc(funcId, FUNC_MGT_FORBID_GROUP_BY_FUNC); } +bool fmIsInterpFunc(int32_t funcId) { + if (funcId < 0 || funcId >= funcMgtBuiltinsNum) { + return false; + } + return FUNCTION_TYPE_INTERP == funcMgtBuiltins[funcId].type; +} + void fmFuncMgtDestroy() { void* m = gFunMgtService.pFuncNameHashTable; if (m != NULL && atomic_val_compare_exchange_ptr((void**)&gFunMgtService.pFuncNameHashTable, m, 0) == m) { diff --git a/source/libs/nodes/src/nodesCloneFuncs.c b/source/libs/nodes/src/nodesCloneFuncs.c index 093b2f581c..b12f910cb1 100644 --- a/source/libs/nodes/src/nodesCloneFuncs.c +++ b/source/libs/nodes/src/nodesCloneFuncs.c @@ -455,7 +455,15 @@ static SNode* logicPartitionCopy(const SPartitionLogicNode* pSrc, SPartitionLogi static SNode* logicIndefRowsFuncCopy(const SIndefRowsFuncLogicNode* pSrc, SIndefRowsFuncLogicNode* pDst) { COPY_BASE_OBJECT_FIELD(node, logicNodeCopy); - CLONE_NODE_LIST_FIELD(pVectorFuncs); + CLONE_NODE_LIST_FIELD(pFuncs); + return (SNode*)pDst; +} + +static SNode* logicInterpFuncCopy(const SInterpFuncLogicNode* pSrc, SInterpFuncLogicNode* pDst) { + COPY_BASE_OBJECT_FIELD(node, logicNodeCopy); + CLONE_NODE_LIST_FIELD(pFuncs); + COPY_OBJECT_FIELD(timeRange, sizeof(STimeWindow)); + COPY_SCALAR_FIELD(interval); return (SNode*)pDst; } @@ -670,6 +678,8 @@ SNode* nodesCloneNode(const SNode* pNode) { return logicPartitionCopy((const SPartitionLogicNode*)pNode, (SPartitionLogicNode*)pDst); case QUERY_NODE_LOGIC_PLAN_INDEF_ROWS_FUNC: return logicIndefRowsFuncCopy((const SIndefRowsFuncLogicNode*)pNode, (SIndefRowsFuncLogicNode*)pDst); + case QUERY_NODE_LOGIC_PLAN_INTERP_FUNC: + return logicInterpFuncCopy((const SInterpFuncLogicNode*)pNode, (SInterpFuncLogicNode*)pDst); case QUERY_NODE_LOGIC_SUBPLAN: return logicSubplanCopy((const SLogicSubplan*)pNode, (SLogicSubplan*)pDst); case QUERY_NODE_PHYSICAL_PLAN_TAG_SCAN: diff --git a/source/libs/nodes/src/nodesCodeFuncs.c b/source/libs/nodes/src/nodesCodeFuncs.c index 7fe023f300..57d1ee7857 100644 --- a/source/libs/nodes/src/nodesCodeFuncs.c +++ b/source/libs/nodes/src/nodesCodeFuncs.c @@ -202,6 +202,8 @@ const char* nodesNodeName(ENodeType type) { return "LogicPartition"; case QUERY_NODE_LOGIC_PLAN_INDEF_ROWS_FUNC: return "LogicIndefRowsFunc"; + case QUERY_NODE_LOGIC_PLAN_INTERP_FUNC: + return "LogicInterpFunc"; case QUERY_NODE_LOGIC_SUBPLAN: return "LogicSubplan"; case QUERY_NODE_LOGIC_PLAN: @@ -258,6 +260,8 @@ const char* nodesNodeName(ENodeType type) { return "PhysiPartition"; case QUERY_NODE_PHYSICAL_PLAN_INDEF_ROWS_FUNC: return "PhysiIndefRowsFunc"; + case QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC: + return "PhysiInterpFunc"; case QUERY_NODE_PHYSICAL_PLAN_DISPATCH: return "PhysiDispatch"; case QUERY_NODE_PHYSICAL_PLAN_INSERT: @@ -935,14 +939,14 @@ static int32_t jsonToLogicPartitionNode(const SJson* pJson, void* pObj) { return code; } -static const char* jkIndefRowsFuncLogicPlanVectorFuncs = "VectorFuncs"; +static const char* jkIndefRowsFuncLogicPlanFuncs = "Funcs"; static int32_t logicIndefRowsFuncNodeToJson(const void* pObj, SJson* pJson) { const SIndefRowsFuncLogicNode* pNode = (const SIndefRowsFuncLogicNode*)pObj; int32_t code = logicPlanNodeToJson(pObj, pJson); if (TSDB_CODE_SUCCESS == code) { - code = nodeListToJson(pJson, jkIndefRowsFuncLogicPlanVectorFuncs, pNode->pVectorFuncs); + code = nodeListToJson(pJson, jkIndefRowsFuncLogicPlanFuncs, pNode->pFuncs); } return code; @@ -953,7 +957,52 @@ static int32_t jsonToLogicIndefRowsFuncNode(const SJson* pJson, void* pObj) { int32_t code = jsonToLogicPlanNode(pJson, pObj); if (TSDB_CODE_SUCCESS == code) { - code = jsonToNodeList(pJson, jkIndefRowsFuncLogicPlanVectorFuncs, &pNode->pVectorFuncs); + code = jsonToNodeList(pJson, jkIndefRowsFuncLogicPlanFuncs, &pNode->pFuncs); + } + + return code; +} + +static const char* jkInterpFuncLogicPlanFuncs = "Funcs"; +static const char* jkInterpFuncLogicPlanStartTime = "StartTime"; +static const char* jkInterpFuncLogicPlanEndTime = "EndTime"; +static const char* jkInterpFuncLogicPlanInterval = "Interval"; + +static int32_t logicInterpFuncNodeToJson(const void* pObj, SJson* pJson) { + const SInterpFuncLogicNode* pNode = (const SInterpFuncLogicNode*)pObj; + + int32_t code = logicPlanNodeToJson(pObj, pJson); + if (TSDB_CODE_SUCCESS == code) { + code = nodeListToJson(pJson, jkInterpFuncLogicPlanFuncs, pNode->pFuncs); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonAddIntegerToObject(pJson, jkInterpFuncLogicPlanStartTime, pNode->timeRange.skey); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonAddIntegerToObject(pJson, jkInterpFuncLogicPlanEndTime, pNode->timeRange.ekey); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonAddIntegerToObject(pJson, jkInterpFuncLogicPlanInterval, pNode->interval); + } + + return code; +} + +static int32_t jsonToLogicInterpFuncNode(const SJson* pJson, void* pObj) { + SInterpFuncLogicNode* pNode = (SInterpFuncLogicNode*)pObj; + + int32_t code = jsonToLogicPlanNode(pJson, pObj); + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeList(pJson, jkInterpFuncLogicPlanFuncs, &pNode->pFuncs); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonGetBigIntValue(pJson, jkInterpFuncLogicPlanStartTime, &pNode->timeRange.skey); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonGetBigIntValue(pJson, jkInterpFuncLogicPlanEndTime, &pNode->timeRange.ekey); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonGetBigIntValue(pJson, jkInterpFuncLogicPlanInterval, &pNode->interval); } return code; @@ -2049,7 +2098,7 @@ static int32_t jsonToPhysiPartitionNode(const SJson* pJson, void* pObj) { } static const char* jkIndefRowsFuncPhysiPlanExprs = "Exprs"; -static const char* jkIndefRowsFuncPhysiPlanVectorFuncs = "VectorFuncs"; +static const char* jkIndefRowsFuncPhysiPlanFuncs = "Funcs"; static int32_t physiIndefRowsFuncNodeToJson(const void* pObj, SJson* pJson) { const SIndefRowsFuncPhysiNode* pNode = (const SIndefRowsFuncPhysiNode*)pObj; @@ -2059,7 +2108,7 @@ static int32_t physiIndefRowsFuncNodeToJson(const void* pObj, SJson* pJson) { code = nodeListToJson(pJson, jkIndefRowsFuncPhysiPlanExprs, pNode->pExprs); } if (TSDB_CODE_SUCCESS == code) { - code = nodeListToJson(pJson, jkIndefRowsFuncPhysiPlanVectorFuncs, pNode->pVectorFuncs); + code = nodeListToJson(pJson, jkIndefRowsFuncPhysiPlanFuncs, pNode->pFuncs); } return code; @@ -2073,7 +2122,59 @@ static int32_t jsonToPhysiIndefRowsFuncNode(const SJson* pJson, void* pObj) { code = jsonToNodeList(pJson, jkIndefRowsFuncPhysiPlanExprs, &pNode->pExprs); } if (TSDB_CODE_SUCCESS == code) { - code = jsonToNodeList(pJson, jkIndefRowsFuncPhysiPlanVectorFuncs, &pNode->pVectorFuncs); + code = jsonToNodeList(pJson, jkIndefRowsFuncPhysiPlanFuncs, &pNode->pFuncs); + } + + return code; +} + +static const char* jkInterpFuncPhysiPlanExprs = "Exprs"; +static const char* jkInterpFuncPhysiPlanFuncs = "Funcs"; +static const char* jkInterpFuncPhysiPlanStartTime = "StartTime"; +static const char* jkInterpFuncPhysiPlanEndTime = "EndTime"; +static const char* jkInterpFuncPhysiPlanInterval = "Interval"; + +static int32_t physiInterpFuncNodeToJson(const void* pObj, SJson* pJson) { + const SInterpFuncPhysiNode* pNode = (const SInterpFuncPhysiNode*)pObj; + + int32_t code = physicPlanNodeToJson(pObj, pJson); + if (TSDB_CODE_SUCCESS == code) { + code = nodeListToJson(pJson, jkInterpFuncPhysiPlanExprs, pNode->pExprs); + } + if (TSDB_CODE_SUCCESS == code) { + code = nodeListToJson(pJson, jkInterpFuncPhysiPlanFuncs, pNode->pFuncs); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonAddIntegerToObject(pJson, jkInterpFuncPhysiPlanStartTime, pNode->timeRange.skey); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonAddIntegerToObject(pJson, jkInterpFuncPhysiPlanEndTime, pNode->timeRange.ekey); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonAddIntegerToObject(pJson, jkInterpFuncPhysiPlanInterval, pNode->interval); + } + + return code; +} + +static int32_t jsonToPhysiInterpFuncNode(const SJson* pJson, void* pObj) { + SInterpFuncPhysiNode* pNode = (SInterpFuncPhysiNode*)pObj; + + int32_t code = jsonToPhysicPlanNode(pJson, pObj); + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeList(pJson, jkInterpFuncPhysiPlanExprs, &pNode->pExprs); + } + if (TSDB_CODE_SUCCESS == code) { + code = jsonToNodeList(pJson, jkInterpFuncPhysiPlanFuncs, &pNode->pFuncs); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonGetBigIntValue(pJson, jkInterpFuncPhysiPlanStartTime, &pNode->timeRange.skey); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonGetBigIntValue(pJson, jkInterpFuncPhysiPlanEndTime, &pNode->timeRange.ekey); + } + if (TSDB_CODE_SUCCESS == code) { + code = tjsonGetBigIntValue(pJson, jkInterpFuncPhysiPlanInterval, &pNode->interval); } return code; @@ -3975,6 +4076,8 @@ static int32_t specificNodeToJson(const void* pObj, SJson* pJson) { return logicPartitionNodeToJson(pObj, pJson); case QUERY_NODE_LOGIC_PLAN_INDEF_ROWS_FUNC: return logicIndefRowsFuncNodeToJson(pObj, pJson); + case QUERY_NODE_LOGIC_PLAN_INTERP_FUNC: + return logicInterpFuncNodeToJson(pObj, pJson); case QUERY_NODE_LOGIC_SUBPLAN: return logicSubplanToJson(pObj, pJson); case QUERY_NODE_LOGIC_PLAN: @@ -4020,6 +4123,8 @@ static int32_t specificNodeToJson(const void* pObj, SJson* pJson) { return physiPartitionNodeToJson(pObj, pJson); case QUERY_NODE_PHYSICAL_PLAN_INDEF_ROWS_FUNC: return physiIndefRowsFuncNodeToJson(pObj, pJson); + case QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC: + return physiInterpFuncNodeToJson(pObj, pJson); case QUERY_NODE_PHYSICAL_PLAN_DISPATCH: return physiDispatchNodeToJson(pObj, pJson); case QUERY_NODE_PHYSICAL_PLAN_INSERT: @@ -4111,6 +4216,8 @@ static int32_t jsonToSpecificNode(const SJson* pJson, void* pObj) { return jsonToLogicPartitionNode(pJson, pObj); case QUERY_NODE_LOGIC_PLAN_INDEF_ROWS_FUNC: return jsonToLogicIndefRowsFuncNode(pJson, pObj); + case QUERY_NODE_LOGIC_PLAN_INTERP_FUNC: + return jsonToLogicInterpFuncNode(pJson, pObj); case QUERY_NODE_LOGIC_SUBPLAN: return jsonToLogicSubplan(pJson, pObj); case QUERY_NODE_LOGIC_PLAN: @@ -4156,6 +4263,8 @@ static int32_t jsonToSpecificNode(const SJson* pJson, void* pObj) { return jsonToPhysiPartitionNode(pJson, pObj); case QUERY_NODE_PHYSICAL_PLAN_INDEF_ROWS_FUNC: return jsonToPhysiIndefRowsFuncNode(pJson, pObj); + case QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC: + return jsonToPhysiInterpFuncNode(pJson, pObj); case QUERY_NODE_PHYSICAL_PLAN_DISPATCH: return jsonToPhysiDispatchNode(pJson, pObj); case QUERY_NODE_PHYSICAL_PLAN_DELETE: diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 89d9ae2d8d..e8e099a53f 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -250,6 +250,8 @@ SNode* nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SPartitionLogicNode)); case QUERY_NODE_LOGIC_PLAN_INDEF_ROWS_FUNC: return makeNode(type, sizeof(SIndefRowsFuncLogicNode)); + case QUERY_NODE_LOGIC_PLAN_INTERP_FUNC: + return makeNode(type, sizeof(SInterpFuncLogicNode)); case QUERY_NODE_LOGIC_SUBPLAN: return makeNode(type, sizeof(SLogicSubplan)); case QUERY_NODE_LOGIC_PLAN: @@ -308,6 +310,8 @@ SNode* nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SPartitionPhysiNode)); case QUERY_NODE_PHYSICAL_PLAN_INDEF_ROWS_FUNC: return makeNode(type, sizeof(SIndefRowsFuncPhysiNode)); + case QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC: + return makeNode(type, sizeof(SInterpFuncLogicNode)); case QUERY_NODE_PHYSICAL_PLAN_DISPATCH: return makeNode(type, sizeof(SDataDispatcherNode)); case QUERY_NODE_PHYSICAL_PLAN_INSERT: @@ -744,7 +748,13 @@ void nodesDestroyNode(SNode* pNode) { case QUERY_NODE_LOGIC_PLAN_INDEF_ROWS_FUNC: { SIndefRowsFuncLogicNode* pLogicNode = (SIndefRowsFuncLogicNode*)pNode; destroyLogicNode((SLogicNode*)pLogicNode); - nodesDestroyList(pLogicNode->pVectorFuncs); + nodesDestroyList(pLogicNode->pFuncs); + break; + } + case QUERY_NODE_LOGIC_PLAN_INTERP_FUNC: { + SInterpFuncLogicNode* pLogicNode = (SInterpFuncLogicNode*)pNode; + destroyLogicNode((SLogicNode*)pLogicNode); + nodesDestroyList(pLogicNode->pFuncs); break; } case QUERY_NODE_LOGIC_SUBPLAN: { @@ -847,7 +857,14 @@ void nodesDestroyNode(SNode* pNode) { SIndefRowsFuncPhysiNode* pPhyNode = (SIndefRowsFuncPhysiNode*)pNode; destroyPhysiNode((SPhysiNode*)pPhyNode); nodesDestroyList(pPhyNode->pExprs); - nodesDestroyList(pPhyNode->pVectorFuncs); + nodesDestroyList(pPhyNode->pFuncs); + break; + } + case QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC: { + SInterpFuncPhysiNode* pPhyNode = (SInterpFuncPhysiNode*)pNode; + destroyPhysiNode((SPhysiNode*)pPhyNode); + nodesDestroyList(pPhyNode->pExprs); + nodesDestroyList(pPhyNode->pFuncs); break; } case QUERY_NODE_PHYSICAL_PLAN_DISPATCH: diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 366aaa71eb..64fcccc827 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -109,6 +109,7 @@ SNode* createIntervalWindowNode(SAstCreateContext* pCxt, SNode* pInterval, SNode SNode* pFill); SNode* createFillNode(SAstCreateContext* pCxt, EFillMode mode, SNode* pValues); SNode* createGroupingSetNode(SAstCreateContext* pCxt, SNode* pNode); +SNode* createInterpTimeRange(SAstCreateContext* pCxt, SNode* pStart, SNode* pEnd); SNode* addWhereClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pWhere); SNode* addPartitionByClause(SAstCreateContext* pCxt, SNode* pStmt, SNodeList* pPartitionByList); @@ -118,6 +119,9 @@ SNode* addHavingClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pHaving); SNode* addOrderByClause(SAstCreateContext* pCxt, SNode* pStmt, SNodeList* pOrderByList); SNode* addSlimitClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pSlimit); SNode* addLimitClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pLimit); +SNode* addRangeClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pRange); +SNode* addEveryClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pEvery); +SNode* addFillClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pFill); SNode* createSelectStmt(SAstCreateContext* pCxt, bool isDistinct, SNodeList* pProjectionList, SNode* pTable); SNode* createSetOperator(SAstCreateContext* pCxt, ESetOperatorType type, SNode* pLeft, SNode* pRight); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index ffc97fc746..4c808fc609 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -791,7 +791,7 @@ join_type(A) ::= INNER. /************************************************ query_specification *************************************************/ query_specification(A) ::= SELECT set_quantifier_opt(B) select_list(C) from_clause(D) where_clause_opt(E) - partition_by_clause_opt(F) twindow_clause_opt(G) + partition_by_clause_opt(F) range_opt(J) every_opt(K) fill_opt(L) twindow_clause_opt(G) group_by_clause_opt(H) having_clause_opt(I). { A = createSelectStmt(pCxt, B, C, D); A = addWhereClause(pCxt, A, E); @@ -799,6 +799,9 @@ query_specification(A) ::= A = addWindowClauseClause(pCxt, A, G); A = addGroupByClause(pCxt, A, H); A = addHavingClause(pCxt, A, I); + A = addRangeClause(pCxt, A, J); + A = addEveryClause(pCxt, A, K); + A = addFillClause(pCxt, A, L); } %type set_quantifier_opt { bool } @@ -860,14 +863,20 @@ fill_mode(A) ::= NEXT. group_by_clause_opt(A) ::= . { A = NULL; } group_by_clause_opt(A) ::= GROUP BY group_by_list(B). { A = B; } -%type group_by_list { SNodeList* } -%destructor group_by_list { nodesDestroyList($$); } -group_by_list(A) ::= expression(B). { A = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, B))); } -group_by_list(A) ::= group_by_list(B) NK_COMMA expression(C). { A = addNodeToList(pCxt, B, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, C))); } +%type group_by_list { SNodeList* } +%destructor group_by_list { nodesDestroyList($$); } +group_by_list(A) ::= expression(B). { A = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, B))); } +group_by_list(A) ::= group_by_list(B) NK_COMMA expression(C). { A = addNodeToList(pCxt, B, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, C))); } having_clause_opt(A) ::= . { A = NULL; } having_clause_opt(A) ::= HAVING search_condition(B). { A = B; } +range_opt(A) ::= . { A = NULL; } +range_opt(A) ::= RANGE NK_LP expression(B) NK_COMMA expression(C) NK_RP. { A = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, B), releaseRawExprNode(pCxt, C)); } + +every_opt(A) ::= . { A = NULL; } +every_opt(A) ::= EVERY NK_LP duration_literal(B) NK_RP. { A = releaseRawExprNode(pCxt, B); } + /************************************************ query_expression ****************************************************/ query_expression(A) ::= query_expression_body(B) diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 31ee2af055..957c3a0da4 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -599,6 +599,11 @@ SNode* createGroupingSetNode(SAstCreateContext* pCxt, SNode* pNode) { return (SNode*)groupingSet; } +SNode* createInterpTimeRange(SAstCreateContext* pCxt, SNode* pStart, SNode* pEnd) { + CHECK_PARSER_STATUS(pCxt); + return createBetweenAnd(pCxt, createPrimaryKeyCol(pCxt), pStart, pEnd); +} + SNode* setProjectionAlias(SAstCreateContext* pCxt, SNode* pNode, const SToken* pAlias) { CHECK_PARSER_STATUS(pCxt); int32_t len = TMIN(sizeof(((SExprNode*)pNode)->aliasName) - 1, pAlias->n); @@ -671,6 +676,32 @@ SNode* addLimitClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pLimit) { CHECK_PARSER_STATUS(pCxt); if (QUERY_NODE_SELECT_STMT == nodeType(pStmt)) { ((SSelectStmt*)pStmt)->pLimit = (SLimitNode*)pLimit; + } else { + ((SSetOperator*)pStmt)->pLimit = pLimit; + } + return pStmt; +} + +SNode* addRangeClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pRange) { + CHECK_PARSER_STATUS(pCxt); + if (QUERY_NODE_SELECT_STMT == nodeType(pStmt)) { + ((SSelectStmt*)pStmt)->pRange = pRange; + } + return pStmt; +} + +SNode* addEveryClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pEvery) { + CHECK_PARSER_STATUS(pCxt); + if (QUERY_NODE_SELECT_STMT == nodeType(pStmt)) { + ((SSelectStmt*)pStmt)->pEvery = pEvery; + } + return pStmt; +} + +SNode* addFillClause(SAstCreateContext* pCxt, SNode* pStmt, SNode* pFill) { + CHECK_PARSER_STATUS(pCxt); + if (QUERY_NODE_SELECT_STMT == nodeType(pStmt)) { + ((SSelectStmt*)pStmt)->pFill = pFill; } return pStmt; } diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 0d5a3fcbe4..21f227b7ea 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -81,6 +81,7 @@ static SKeyword keywordTable[] = { {"DURATION", TK_DURATION}, {"EXISTS", TK_EXISTS}, {"EXPLAIN", TK_EXPLAIN}, + {"EVERY", TK_EVERY}, {"FILL", TK_FILL}, {"FIRST", TK_FIRST}, {"FLOAT", TK_FLOAT}, @@ -152,6 +153,7 @@ static SKeyword keywordTable[] = { {"QTIME", TK_QTIME}, {"QUERIES", TK_QUERIES}, {"QUERY", TK_QUERY}, + {"RANGE", TK_RANGE}, {"RATIO", TK_RATIO}, {"READ", TK_READ}, {"REDISTRIBUTE", TK_REDISTRIBUTE}, @@ -258,7 +260,6 @@ static SKeyword keywordTable[] = { // {"LP", TK_LP}, // {"RP", TK_RP}, // {"COMMA", TK_COMMA}, - // {"EVERY", TK_EVERY}, // {"VARIABLE", TK_VARIABLE}, // {"UPDATE", TK_UPDATE}, // {"CHANGE", TK_CHANGE}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 09fc93932e..7481565ac9 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -1157,6 +1157,7 @@ static void setFuncClassification(SSelectStmt* pSelect, SFunctionNode* pFunc) { pSelect->hasIndefiniteRowsFunc = pSelect->hasIndefiniteRowsFunc ? true : fmIsIndefiniteRowsFunc(pFunc->funcId); pSelect->hasUniqueFunc = pSelect->hasUniqueFunc ? true : (FUNCTION_TYPE_UNIQUE == pFunc->funcType); pSelect->hasTailFunc = pSelect->hasTailFunc ? true : (FUNCTION_TYPE_TAIL == pFunc->funcType); + pSelect->hasInterpFunc = pSelect->hasInterpFunc ? true : (FUNCTION_TYPE_INTERP == pFunc->funcType); } } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index c8e182cf16..422661219e 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -104,25 +104,25 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 360 +#define YYNOCODE 364 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - EFillMode yy54; - int32_t yy100; - bool yy137; - int64_t yy189; - SToken yy209; - ENullOrder yy217; - SDataType yy304; - EOperatorType yy380; - SNodeList* yy424; - EOrder yy578; - SAlterOption yy605; - EJoinType yy612; - SNode* yy632; + SToken yy57; + EOrder yy162; + EJoinType yy204; + SAlterOption yy221; + int32_t yy228; + EFillMode yy270; + EOperatorType yy324; + int64_t yy389; + SNode* yy392; + SDataType yy448; + bool yy481; + ENullOrder yy529; + SNodeList* yy600; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -138,17 +138,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 625 -#define YYNRULE 460 -#define YYNTOKEN 240 -#define YY_MAX_SHIFT 624 -#define YY_MIN_SHIFTREDUCE 915 -#define YY_MAX_SHIFTREDUCE 1374 -#define YY_ERROR_ACTION 1375 -#define YY_ACCEPT_ACTION 1376 -#define YY_NO_ACTION 1377 -#define YY_MIN_REDUCE 1378 -#define YY_MAX_REDUCE 1837 +#define YYNSTATE 636 +#define YYNRULE 464 +#define YYNTOKEN 242 +#define YY_MAX_SHIFT 635 +#define YY_MIN_SHIFTREDUCE 928 +#define YY_MAX_SHIFTREDUCE 1391 +#define YY_ERROR_ACTION 1392 +#define YY_ACCEPT_ACTION 1393 +#define YY_NO_ACTION 1394 +#define YY_MIN_REDUCE 1395 +#define YY_MAX_REDUCE 1858 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -215,590 +215,603 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2079) +#define YY_ACTTAB_COUNT (2123) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 1498, 322, 1684, 1671, 1554, 1556, 301, 399, 1401, 400, - /* 10 */ 1410, 945, 35, 33, 1668, 1500, 57, 65, 500, 1400, - /* 20 */ 310, 24, 1188, 1213, 28, 234, 1668, 540, 539, 1700, - /* 30 */ 111, 36, 34, 32, 31, 30, 1212, 524, 107, 1504, - /* 40 */ 1664, 1670, 1654, 540, 523, 438, 115, 1186, 1654, 949, - /* 50 */ 950, 543, 1664, 1670, 155, 1509, 357, 504, 14, 1654, - /* 60 */ 35, 33, 1315, 543, 1194, 1437, 504, 592, 310, 1713, - /* 70 */ 1188, 1509, 83, 1685, 526, 1687, 1688, 522, 134, 543, - /* 80 */ 1390, 1, 1753, 1555, 1556, 113, 284, 1749, 36, 34, - /* 90 */ 32, 31, 30, 56, 540, 1186, 500, 1815, 1815, 1815, - /* 100 */ 223, 1760, 499, 621, 498, 361, 14, 1815, 351, 150, - /* 110 */ 152, 1814, 1194, 1812, 1812, 1812, 417, 1257, 1258, 152, - /* 120 */ 1094, 1095, 1509, 1812, 115, 599, 598, 597, 325, 2, - /* 130 */ 596, 595, 594, 117, 589, 588, 587, 586, 585, 584, - /* 140 */ 583, 582, 125, 578, 36, 34, 32, 31, 30, 539, - /* 150 */ 56, 621, 36, 34, 32, 31, 30, 449, 448, 1189, - /* 160 */ 1376, 1187, 363, 113, 97, 1257, 1258, 96, 95, 94, - /* 170 */ 93, 92, 91, 90, 89, 88, 132, 502, 147, 1760, - /* 180 */ 1761, 575, 1765, 1192, 1193, 1512, 1239, 1240, 1242, 1243, - /* 190 */ 1244, 1245, 1246, 519, 541, 1254, 1255, 1256, 1259, 282, - /* 200 */ 123, 122, 572, 571, 570, 398, 1322, 1189, 402, 1187, - /* 210 */ 38, 153, 1212, 407, 1329, 400, 1410, 581, 327, 1481, - /* 220 */ 35, 33, 539, 153, 962, 1684, 961, 1371, 310, 1487, - /* 230 */ 1188, 1192, 1193, 294, 1239, 1240, 1242, 1243, 1244, 1245, - /* 240 */ 1246, 519, 541, 1254, 1255, 1256, 1259, 489, 1188, 452, - /* 250 */ 451, 204, 1700, 963, 450, 1186, 1700, 112, 447, 1815, - /* 260 */ 524, 446, 445, 444, 493, 1654, 14, 523, 35, 33, - /* 270 */ 1440, 150, 1194, 1186, 1399, 1812, 310, 56, 1188, 68, - /* 280 */ 153, 1684, 295, 39, 293, 292, 417, 440, 131, 2, - /* 290 */ 1194, 442, 1713, 476, 494, 85, 1685, 526, 1687, 1688, - /* 300 */ 522, 492, 543, 1186, 540, 1753, 197, 1370, 1700, 1752, - /* 310 */ 1749, 621, 1815, 441, 1654, 107, 524, 495, 490, 466, - /* 320 */ 1194, 1654, 443, 523, 151, 1257, 1258, 511, 1812, 621, - /* 330 */ 452, 451, 1509, 1815, 1815, 450, 504, 8, 112, 447, - /* 340 */ 153, 1265, 446, 445, 444, 1813, 150, 1212, 1713, 1812, - /* 350 */ 1812, 83, 1685, 526, 1687, 1688, 522, 1194, 543, 621, - /* 360 */ 1815, 1753, 67, 283, 1314, 284, 1749, 1189, 1398, 1187, - /* 370 */ 26, 1213, 150, 1257, 1258, 1671, 1812, 1815, 318, 1241, - /* 380 */ 36, 34, 32, 31, 30, 1189, 1668, 1187, 500, 150, - /* 390 */ 1767, 1192, 1193, 1812, 1239, 1240, 1242, 1243, 1244, 1245, - /* 400 */ 1246, 519, 541, 1254, 1255, 1256, 1259, 153, 1654, 1192, - /* 410 */ 1193, 389, 1664, 1670, 1764, 1189, 115, 1187, 36, 34, - /* 420 */ 32, 31, 30, 543, 1485, 1561, 577, 527, 35, 33, - /* 430 */ 1260, 160, 300, 1684, 1211, 313, 310, 1604, 1188, 1192, - /* 440 */ 1193, 1559, 1239, 1240, 1242, 1243, 1244, 1245, 1246, 519, - /* 450 */ 541, 1254, 1255, 1256, 1259, 113, 63, 164, 163, 62, - /* 460 */ 1700, 314, 348, 1186, 32, 31, 30, 153, 524, 132, - /* 470 */ 148, 1760, 1761, 1654, 1765, 523, 35, 33, 1511, 65, - /* 480 */ 1194, 577, 350, 346, 310, 1684, 1188, 540, 1226, 36, - /* 490 */ 34, 32, 31, 30, 962, 135, 961, 9, 362, 1466, - /* 500 */ 1713, 1505, 1397, 85, 1685, 526, 1687, 1688, 522, 1396, - /* 510 */ 543, 1186, 1700, 1753, 1241, 1509, 512, 515, 1749, 621, - /* 520 */ 503, 436, 1561, 963, 320, 1654, 1486, 523, 1194, 315, - /* 530 */ 145, 580, 132, 1257, 1258, 540, 1672, 1561, 1559, 1395, - /* 540 */ 540, 1511, 1654, 1548, 321, 9, 364, 1668, 500, 1654, - /* 550 */ 540, 374, 1713, 1559, 569, 84, 1685, 526, 1687, 1688, - /* 560 */ 522, 375, 543, 1509, 1279, 1753, 1379, 621, 1509, 303, - /* 570 */ 1749, 146, 1313, 1664, 1670, 1189, 115, 1187, 1509, 1654, - /* 580 */ 1394, 1257, 1258, 226, 543, 1214, 1284, 97, 482, 1780, - /* 590 */ 96, 95, 94, 93, 92, 91, 90, 89, 88, 1192, - /* 600 */ 1193, 1014, 1239, 1240, 1242, 1243, 1244, 1245, 1246, 519, - /* 610 */ 541, 1254, 1255, 1256, 1259, 113, 323, 527, 1016, 575, - /* 620 */ 1654, 25, 80, 1189, 132, 1187, 1339, 1605, 1393, 1392, - /* 630 */ 149, 1760, 1761, 1511, 1765, 116, 35, 33, 123, 122, - /* 640 */ 572, 571, 570, 1501, 310, 1684, 1188, 1192, 1193, 74, - /* 650 */ 1239, 1240, 1242, 1243, 1244, 1245, 1246, 519, 541, 1254, - /* 660 */ 1255, 1256, 1259, 486, 1337, 1338, 1340, 1341, 1654, 1654, - /* 670 */ 1502, 1186, 1700, 56, 1389, 36, 34, 32, 31, 30, - /* 680 */ 503, 11, 10, 1388, 198, 1654, 406, 523, 1194, 402, - /* 690 */ 593, 591, 1387, 473, 1052, 566, 565, 564, 1056, 563, - /* 700 */ 1058, 1059, 562, 1061, 559, 2, 1067, 556, 1069, 1070, - /* 710 */ 553, 550, 1713, 225, 1654, 84, 1685, 526, 1687, 1688, - /* 720 */ 522, 285, 543, 1654, 281, 1753, 1210, 621, 540, 303, - /* 730 */ 1749, 146, 1654, 382, 404, 257, 394, 540, 1539, 416, - /* 740 */ 1210, 1257, 1258, 1170, 1171, 1226, 133, 1378, 1506, 1781, - /* 750 */ 356, 263, 355, 1277, 395, 1215, 1509, 1767, 1386, 540, - /* 760 */ 54, 1385, 1291, 261, 53, 1509, 1767, 52, 7, 540, - /* 770 */ 1631, 106, 105, 104, 103, 102, 101, 100, 99, 98, - /* 780 */ 474, 1763, 1595, 1189, 165, 1187, 365, 1509, 573, 1212, - /* 790 */ 1762, 1552, 508, 162, 79, 540, 574, 1509, 1654, 1552, - /* 800 */ 1494, 1654, 1496, 153, 76, 1278, 324, 1192, 1193, 56, - /* 810 */ 1239, 1240, 1242, 1243, 1244, 1245, 1246, 519, 541, 1254, - /* 820 */ 1255, 1256, 1259, 1509, 949, 950, 393, 1283, 1492, 388, - /* 830 */ 387, 386, 385, 384, 381, 380, 379, 378, 377, 373, - /* 840 */ 372, 371, 370, 369, 368, 367, 366, 82, 36, 34, - /* 850 */ 32, 31, 30, 1772, 1310, 1384, 1383, 1382, 1684, 1561, - /* 860 */ 442, 540, 27, 308, 1272, 1273, 1274, 1275, 1276, 1280, - /* 870 */ 1281, 1282, 537, 1381, 188, 1560, 457, 186, 201, 60, - /* 880 */ 59, 360, 441, 210, 159, 1700, 11, 10, 540, 1509, - /* 890 */ 354, 465, 540, 524, 285, 1654, 1654, 1654, 1654, 538, - /* 900 */ 523, 280, 1642, 247, 344, 196, 342, 338, 334, 156, - /* 910 */ 329, 190, 192, 1654, 189, 191, 1509, 460, 1484, 1684, - /* 920 */ 1509, 516, 454, 1427, 121, 1713, 1277, 195, 84, 1685, - /* 930 */ 526, 1687, 1688, 522, 194, 543, 1422, 193, 1753, 153, - /* 940 */ 1420, 1310, 303, 1749, 1828, 453, 1700, 336, 1373, 1374, - /* 950 */ 1674, 464, 51, 1787, 524, 50, 1241, 46, 455, 1654, - /* 960 */ 213, 523, 458, 518, 462, 478, 1416, 37, 37, 37, - /* 970 */ 568, 1391, 236, 1467, 229, 119, 120, 487, 1278, 509, - /* 980 */ 1684, 435, 121, 506, 46, 1197, 1713, 1676, 548, 84, - /* 990 */ 1685, 526, 1687, 1688, 522, 1196, 543, 467, 1336, 1753, - /* 1000 */ 1283, 215, 986, 303, 1749, 1828, 1701, 1700, 1285, 1247, - /* 1010 */ 1143, 575, 617, 238, 1810, 524, 532, 244, 120, 987, - /* 1020 */ 1654, 121, 523, 1045, 220, 256, 108, 120, 326, 1073, - /* 1030 */ 123, 122, 572, 571, 570, 27, 308, 1272, 1273, 1274, - /* 1040 */ 1275, 1276, 1280, 1281, 1282, 1411, 1269, 1713, 1549, 1684, - /* 1050 */ 84, 1685, 526, 1687, 1688, 522, 1783, 543, 1684, 1077, - /* 1060 */ 1753, 501, 1084, 228, 303, 1749, 1828, 1082, 124, 231, - /* 1070 */ 233, 5, 3, 328, 1210, 1771, 1700, 335, 331, 290, - /* 1080 */ 1014, 291, 1154, 253, 524, 1700, 161, 376, 1597, 1654, - /* 1090 */ 383, 523, 391, 524, 396, 390, 392, 1216, 1654, 1200, - /* 1100 */ 523, 397, 405, 1219, 504, 408, 168, 1684, 409, 1199, - /* 1110 */ 1218, 410, 1220, 504, 170, 411, 1713, 413, 414, 270, - /* 1120 */ 1685, 526, 1687, 1688, 522, 1713, 543, 173, 270, 1685, - /* 1130 */ 526, 1687, 1688, 522, 1700, 543, 175, 1217, 415, 418, - /* 1140 */ 178, 64, 521, 437, 181, 1815, 439, 1654, 1499, 523, - /* 1150 */ 185, 1495, 299, 87, 1815, 254, 199, 152, 187, 468, - /* 1160 */ 1636, 1812, 126, 1684, 127, 1497, 150, 1493, 469, 128, - /* 1170 */ 1812, 129, 1684, 202, 1713, 480, 1635, 278, 1685, 526, - /* 1180 */ 1687, 1688, 522, 520, 543, 517, 1725, 475, 477, 479, - /* 1190 */ 1700, 205, 624, 472, 208, 1215, 1794, 488, 524, 1700, - /* 1200 */ 530, 1793, 497, 1654, 211, 523, 252, 524, 1784, 214, - /* 1210 */ 484, 1774, 1654, 6, 523, 485, 302, 221, 143, 219, - /* 1220 */ 1310, 140, 114, 1214, 615, 611, 607, 603, 251, 491, - /* 1230 */ 1713, 40, 513, 136, 1685, 526, 1687, 1688, 522, 1713, - /* 1240 */ 543, 510, 85, 1685, 526, 1687, 1688, 522, 183, 543, - /* 1250 */ 304, 1684, 1753, 81, 222, 18, 245, 1750, 1603, 1811, - /* 1260 */ 138, 1602, 1768, 533, 528, 227, 434, 430, 426, 422, - /* 1270 */ 182, 507, 1831, 529, 312, 230, 505, 1829, 1700, 1734, - /* 1280 */ 240, 534, 242, 255, 535, 1510, 524, 73, 75, 536, - /* 1290 */ 546, 1654, 1553, 523, 1482, 66, 250, 258, 180, 514, - /* 1300 */ 620, 47, 1684, 139, 483, 232, 264, 271, 262, 265, - /* 1310 */ 260, 1648, 1647, 58, 1646, 500, 330, 481, 1713, 1684, - /* 1320 */ 206, 279, 1685, 526, 1687, 1688, 522, 1643, 543, 1700, - /* 1330 */ 332, 333, 1181, 1182, 157, 337, 1641, 524, 339, 1162, - /* 1340 */ 340, 200, 1654, 115, 523, 341, 1700, 1640, 343, 1639, - /* 1350 */ 345, 1638, 347, 1637, 524, 349, 1621, 158, 179, 1654, - /* 1360 */ 171, 523, 176, 504, 412, 352, 1157, 353, 1684, 1713, - /* 1370 */ 1156, 1615, 274, 1685, 526, 1687, 1688, 522, 1614, 543, - /* 1380 */ 358, 359, 113, 169, 1129, 1590, 1713, 1613, 1612, 136, - /* 1390 */ 1685, 526, 1687, 1688, 522, 1700, 543, 223, 1760, 499, - /* 1400 */ 61, 498, 1589, 524, 1815, 1588, 1587, 1586, 1654, 496, - /* 1410 */ 523, 1585, 1584, 1583, 1582, 1581, 150, 1580, 1579, 1578, - /* 1420 */ 1812, 307, 1684, 1577, 1576, 1575, 1574, 1573, 1572, 118, - /* 1430 */ 1571, 1570, 1569, 1830, 1568, 1713, 1567, 1566, 279, 1685, - /* 1440 */ 526, 1687, 1688, 522, 1131, 543, 1565, 1564, 1563, 1700, - /* 1450 */ 166, 1406, 952, 109, 951, 1629, 1623, 521, 1562, 1439, - /* 1460 */ 1407, 144, 1654, 174, 523, 401, 1611, 1610, 1600, 1488, - /* 1470 */ 110, 1684, 172, 403, 1438, 317, 316, 167, 177, 1436, - /* 1480 */ 1684, 1434, 421, 1432, 1430, 1202, 425, 420, 1419, 1713, - /* 1490 */ 1418, 419, 278, 1685, 526, 1687, 1688, 522, 1700, 543, - /* 1500 */ 423, 1726, 980, 1405, 427, 1490, 524, 1700, 431, 424, - /* 1510 */ 1195, 1654, 429, 523, 433, 524, 428, 1087, 432, 1489, - /* 1520 */ 1654, 590, 523, 1088, 309, 1013, 1428, 1194, 296, 1012, - /* 1530 */ 592, 1423, 1011, 311, 1010, 1684, 297, 1421, 1713, 1007, - /* 1540 */ 184, 279, 1685, 526, 1687, 1688, 522, 1713, 543, 1006, - /* 1550 */ 279, 1685, 526, 1687, 1688, 522, 1005, 543, 456, 459, - /* 1560 */ 45, 1684, 1700, 298, 1404, 461, 544, 1403, 463, 86, - /* 1570 */ 524, 1628, 1164, 1622, 130, 1654, 470, 523, 1609, 1608, - /* 1580 */ 1607, 1599, 69, 4, 207, 37, 212, 15, 1700, 1335, - /* 1590 */ 1328, 43, 137, 217, 216, 218, 524, 22, 70, 203, - /* 1600 */ 1674, 1654, 1713, 523, 23, 266, 1685, 526, 1687, 1688, - /* 1610 */ 522, 1307, 543, 1684, 16, 1306, 224, 41, 42, 141, - /* 1620 */ 1364, 1353, 1203, 17, 1198, 10, 19, 1684, 1713, 209, - /* 1630 */ 1359, 273, 1685, 526, 1687, 1688, 522, 1358, 543, 1684, - /* 1640 */ 1700, 49, 471, 305, 48, 1363, 1206, 1362, 524, 306, - /* 1650 */ 1249, 29, 142, 1654, 1700, 523, 1248, 541, 1254, 1255, - /* 1660 */ 154, 1234, 524, 1598, 531, 12, 1700, 1654, 20, 523, - /* 1670 */ 235, 241, 21, 237, 524, 1333, 525, 13, 239, 1654, - /* 1680 */ 1713, 523, 1270, 275, 1685, 526, 1687, 1688, 522, 1673, - /* 1690 */ 543, 71, 72, 1684, 1713, 76, 243, 267, 1685, 526, - /* 1700 */ 1687, 1688, 522, 246, 543, 1716, 1713, 1251, 542, 276, - /* 1710 */ 1685, 526, 1687, 1688, 522, 1684, 543, 1204, 44, 547, - /* 1720 */ 1700, 545, 1074, 319, 549, 551, 1071, 552, 524, 1068, - /* 1730 */ 554, 555, 557, 1654, 1062, 523, 558, 560, 1060, 561, - /* 1740 */ 1066, 1065, 1700, 1064, 1051, 77, 1063, 78, 1083, 248, - /* 1750 */ 524, 55, 1079, 567, 576, 1654, 978, 523, 1002, 579, - /* 1760 */ 1713, 249, 1020, 268, 1685, 526, 1687, 1688, 522, 995, - /* 1770 */ 543, 1000, 999, 998, 997, 996, 994, 1684, 993, 1017, - /* 1780 */ 1015, 1435, 1713, 990, 989, 277, 1685, 526, 1687, 1688, - /* 1790 */ 522, 1684, 543, 988, 602, 985, 984, 983, 600, 601, - /* 1800 */ 1433, 605, 604, 606, 1700, 1431, 608, 609, 610, 1429, - /* 1810 */ 612, 614, 524, 613, 1417, 1402, 616, 1654, 1700, 523, - /* 1820 */ 618, 1190, 619, 623, 259, 622, 524, 1377, 1377, 1377, - /* 1830 */ 1377, 1654, 1684, 523, 1377, 1377, 1377, 1377, 1377, 1377, - /* 1840 */ 1377, 1377, 1377, 1377, 1713, 1377, 1684, 269, 1685, 526, - /* 1850 */ 1687, 1688, 522, 1377, 543, 1377, 1377, 1377, 1713, 1700, - /* 1860 */ 1377, 1696, 1685, 526, 1687, 1688, 522, 524, 543, 1377, - /* 1870 */ 1377, 1377, 1654, 1700, 523, 1377, 1377, 1377, 1377, 1377, - /* 1880 */ 1377, 524, 1377, 1377, 1377, 1377, 1654, 1377, 523, 1377, - /* 1890 */ 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1684, 1377, 1713, - /* 1900 */ 1377, 1377, 1695, 1685, 526, 1687, 1688, 522, 1377, 543, - /* 1910 */ 1377, 1684, 1377, 1713, 1377, 1377, 1694, 1685, 526, 1687, - /* 1920 */ 1688, 522, 1377, 543, 1700, 1377, 1377, 1377, 1377, 1377, - /* 1930 */ 1377, 1377, 524, 1377, 1377, 1377, 1377, 1654, 1700, 523, - /* 1940 */ 1377, 1377, 1377, 1377, 1377, 1377, 524, 1377, 1377, 1377, - /* 1950 */ 1377, 1654, 1377, 523, 1377, 1377, 1377, 1377, 1377, 1377, - /* 1960 */ 1684, 1377, 1377, 1377, 1713, 1377, 1377, 288, 1685, 526, - /* 1970 */ 1687, 1688, 522, 1377, 543, 1377, 1377, 1684, 1713, 1377, - /* 1980 */ 1377, 287, 1685, 526, 1687, 1688, 522, 1700, 543, 1377, - /* 1990 */ 1377, 1377, 1377, 1377, 1377, 524, 1377, 1377, 1377, 1377, - /* 2000 */ 1654, 1684, 523, 1377, 1700, 1377, 1377, 1377, 1377, 1377, - /* 2010 */ 1377, 1377, 524, 1377, 1377, 1377, 1377, 1654, 1377, 523, - /* 2020 */ 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1713, 1700, 1377, - /* 2030 */ 289, 1685, 526, 1687, 1688, 522, 524, 543, 1377, 1377, - /* 2040 */ 1377, 1654, 1377, 523, 1713, 1377, 1377, 286, 1685, 526, - /* 2050 */ 1687, 1688, 522, 1377, 543, 1377, 1377, 1377, 1377, 1377, - /* 2060 */ 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1377, 1713, 1377, - /* 2070 */ 1377, 272, 1685, 526, 1687, 1688, 522, 1377, 543, + /* 0 */ 1688, 1836, 1515, 309, 407, 1688, 408, 1427, 326, 1393, + /* 10 */ 137, 1685, 37, 35, 1483, 1835, 1685, 1701, 412, 1833, + /* 20 */ 318, 551, 1201, 551, 1223, 38, 36, 34, 33, 32, + /* 30 */ 325, 324, 109, 415, 109, 408, 1427, 1681, 1687, 446, + /* 40 */ 1215, 451, 1681, 1687, 1717, 30, 240, 1199, 554, 1526, + /* 50 */ 1784, 1526, 535, 554, 22, 551, 550, 1671, 14, 534, + /* 60 */ 37, 35, 1328, 322, 1207, 1208, 157, 335, 318, 1701, + /* 70 */ 1201, 134, 515, 365, 1781, 38, 36, 34, 33, 32, + /* 80 */ 1528, 1, 1207, 1526, 1730, 67, 550, 85, 1702, 537, + /* 90 */ 1704, 1705, 533, 58, 554, 1199, 1717, 1770, 113, 76, + /* 100 */ 371, 292, 1766, 632, 514, 551, 14, 1521, 1836, 1671, + /* 110 */ 1418, 534, 1207, 1836, 1836, 538, 369, 1270, 1271, 958, + /* 120 */ 1519, 555, 152, 465, 550, 1622, 1833, 154, 152, 2, + /* 130 */ 425, 1833, 1833, 1526, 206, 82, 1730, 290, 473, 86, + /* 140 */ 1702, 537, 1704, 1705, 533, 1362, 554, 40, 118, 1770, + /* 150 */ 1671, 632, 198, 311, 1766, 148, 1518, 962, 963, 1202, + /* 160 */ 58, 1200, 70, 328, 468, 1270, 1271, 232, 56, 462, + /* 170 */ 364, 134, 363, 1226, 197, 490, 1797, 1216, 330, 1211, + /* 180 */ 1528, 1571, 1573, 1205, 1206, 41, 1252, 1253, 1255, 1256, + /* 190 */ 1257, 1258, 1259, 530, 552, 1267, 1268, 1269, 1272, 53, + /* 200 */ 1225, 1219, 52, 1572, 1573, 26, 59, 1202, 1836, 1200, + /* 210 */ 505, 155, 552, 1267, 1268, 38, 36, 34, 33, 32, + /* 220 */ 37, 35, 153, 155, 1417, 1701, 1833, 397, 318, 67, + /* 230 */ 1201, 1205, 1206, 302, 1252, 1253, 1255, 1256, 1257, 1258, + /* 240 */ 1259, 530, 552, 1267, 1268, 1269, 1272, 511, 1717, 460, + /* 250 */ 459, 1522, 1717, 484, 458, 1199, 504, 114, 455, 1659, + /* 260 */ 535, 454, 453, 452, 1671, 1671, 14, 534, 37, 35, + /* 270 */ 1107, 1108, 1207, 166, 165, 117, 318, 155, 1201, 1292, + /* 280 */ 515, 1504, 303, 58, 301, 300, 356, 448, 58, 2, + /* 290 */ 155, 450, 1730, 503, 1836, 85, 1702, 537, 1704, 1705, + /* 300 */ 533, 1297, 554, 1199, 344, 1770, 358, 354, 152, 292, + /* 310 */ 1766, 632, 1833, 449, 115, 38, 36, 34, 33, 32, + /* 320 */ 1207, 1836, 136, 1517, 1407, 1270, 1271, 1502, 513, 149, + /* 330 */ 1777, 1778, 1327, 1782, 1685, 152, 27, 8, 425, 1833, + /* 340 */ 1065, 577, 576, 575, 1069, 574, 1071, 1072, 573, 1074, + /* 350 */ 570, 1396, 1080, 567, 1082, 1083, 564, 561, 81, 632, + /* 360 */ 1681, 1687, 38, 36, 34, 33, 32, 1202, 78, 1200, + /* 370 */ 1352, 554, 99, 1270, 1271, 98, 97, 96, 95, 94, + /* 380 */ 93, 92, 91, 90, 588, 1342, 38, 36, 34, 33, + /* 390 */ 32, 1205, 1206, 517, 1252, 1253, 1255, 1256, 1257, 1258, + /* 400 */ 1259, 530, 552, 1267, 1268, 1269, 1272, 497, 1350, 1351, + /* 410 */ 1353, 1354, 975, 155, 974, 1202, 99, 1200, 155, 98, + /* 420 */ 97, 96, 95, 94, 93, 92, 91, 90, 37, 35, + /* 430 */ 1273, 406, 414, 1701, 410, 410, 318, 162, 1201, 1205, + /* 440 */ 1206, 976, 1252, 1253, 1255, 1256, 1257, 1258, 1259, 530, + /* 450 */ 552, 1267, 1268, 1269, 1272, 38, 36, 34, 33, 32, + /* 460 */ 1717, 474, 65, 1199, 1836, 64, 1027, 155, 535, 975, + /* 470 */ 199, 974, 1578, 1671, 1416, 534, 37, 35, 1834, 308, + /* 480 */ 1207, 1454, 1833, 1029, 318, 1784, 1201, 592, 1576, 1498, + /* 490 */ 38, 36, 34, 33, 32, 1415, 444, 9, 976, 500, + /* 500 */ 1730, 1388, 1836, 87, 1702, 537, 1704, 1705, 533, 1780, + /* 510 */ 554, 1199, 200, 1770, 1671, 1226, 152, 1769, 1766, 632, + /* 520 */ 1833, 538, 133, 1578, 147, 1239, 69, 291, 1207, 321, + /* 530 */ 323, 1621, 588, 1270, 1271, 1671, 293, 1565, 1414, 1576, + /* 540 */ 1326, 610, 609, 608, 333, 9, 607, 606, 605, 119, + /* 550 */ 600, 599, 598, 597, 596, 595, 594, 593, 127, 589, + /* 560 */ 1239, 1395, 38, 36, 34, 33, 32, 632, 1290, 506, + /* 570 */ 501, 1183, 1184, 1227, 1335, 1202, 1413, 1200, 1671, 1412, + /* 580 */ 1225, 1270, 1271, 1387, 28, 108, 107, 106, 105, 104, + /* 590 */ 103, 102, 101, 100, 38, 36, 34, 33, 32, 1205, + /* 600 */ 1206, 1411, 1252, 1253, 1255, 1256, 1257, 1258, 1259, 530, + /* 610 */ 552, 1267, 1268, 1269, 1272, 551, 1671, 1578, 134, 1671, + /* 620 */ 1291, 1224, 331, 1202, 329, 1200, 370, 1529, 1278, 1410, + /* 630 */ 134, 457, 456, 1576, 1225, 1207, 37, 35, 1457, 1528, + /* 640 */ 1228, 1671, 1296, 1526, 318, 1503, 1201, 1205, 1206, 527, + /* 650 */ 1252, 1253, 1255, 1256, 1257, 1258, 1259, 530, 552, 1267, + /* 660 */ 1268, 1269, 1272, 11, 10, 34, 33, 32, 1784, 1671, + /* 670 */ 580, 1199, 38, 36, 34, 33, 32, 29, 316, 1285, + /* 680 */ 1286, 1287, 1288, 1289, 1293, 1294, 1295, 584, 1207, 511, + /* 690 */ 1569, 1689, 1779, 604, 602, 1409, 7, 551, 460, 459, + /* 700 */ 586, 231, 1685, 458, 551, 2, 114, 455, 372, 450, + /* 710 */ 454, 453, 452, 1406, 1578, 382, 1225, 117, 293, 125, + /* 720 */ 124, 583, 582, 581, 289, 1526, 1223, 632, 1681, 1687, + /* 730 */ 1577, 449, 1526, 390, 551, 1671, 402, 515, 586, 554, + /* 740 */ 585, 1270, 1271, 1569, 1304, 383, 135, 1254, 1405, 1404, + /* 750 */ 1290, 269, 263, 1671, 403, 1556, 115, 125, 124, 583, + /* 760 */ 582, 581, 1526, 267, 55, 1403, 551, 54, 212, 551, + /* 770 */ 551, 229, 1777, 510, 1282, 509, 551, 424, 1836, 1612, + /* 780 */ 1523, 1648, 522, 1202, 167, 1200, 373, 253, 1671, 1671, + /* 790 */ 164, 591, 154, 519, 1526, 551, 1833, 1526, 1526, 962, + /* 800 */ 963, 1254, 1291, 1511, 1526, 1671, 482, 1205, 1206, 58, + /* 810 */ 1252, 1253, 1255, 1256, 1257, 1258, 1259, 530, 552, 1267, + /* 820 */ 1268, 1269, 1272, 1526, 1296, 1513, 401, 1789, 1323, 396, + /* 830 */ 395, 394, 393, 392, 389, 388, 387, 386, 385, 381, + /* 840 */ 380, 379, 378, 377, 376, 375, 374, 84, 1402, 1509, + /* 850 */ 190, 1701, 1201, 188, 203, 1401, 1400, 1399, 1398, 29, + /* 860 */ 316, 1285, 1286, 1287, 1288, 1289, 1293, 1294, 1295, 1323, + /* 870 */ 603, 192, 194, 196, 191, 193, 195, 1199, 1717, 62, + /* 880 */ 61, 368, 529, 1254, 161, 999, 514, 1501, 1671, 551, + /* 890 */ 362, 1671, 1701, 534, 1207, 1671, 1671, 1671, 1671, 472, + /* 900 */ 548, 288, 1000, 123, 352, 48, 350, 346, 342, 158, + /* 910 */ 337, 359, 470, 216, 11, 10, 1210, 1526, 1730, 1717, + /* 920 */ 1209, 86, 1702, 537, 1704, 1705, 533, 535, 554, 551, + /* 930 */ 1444, 1770, 1671, 632, 534, 311, 1766, 148, 39, 155, + /* 940 */ 549, 1390, 1391, 579, 486, 39, 1349, 1433, 481, 39, + /* 950 */ 1408, 1484, 461, 1439, 218, 1691, 235, 1526, 1798, 1730, + /* 960 */ 551, 1437, 86, 1702, 537, 1704, 1705, 533, 242, 554, + /* 970 */ 1701, 332, 1770, 523, 121, 463, 311, 1766, 1849, 1298, + /* 980 */ 586, 122, 520, 466, 123, 498, 1260, 1804, 1526, 1202, + /* 990 */ 1156, 1200, 1693, 628, 475, 443, 1701, 1717, 223, 125, + /* 1000 */ 124, 583, 582, 581, 1718, 535, 334, 1428, 48, 244, + /* 1010 */ 1671, 559, 534, 1205, 1206, 543, 1800, 122, 123, 110, + /* 1020 */ 122, 1566, 250, 1717, 512, 1058, 3, 234, 237, 239, + /* 1030 */ 1213, 535, 5, 336, 1212, 1223, 1671, 1730, 534, 343, + /* 1040 */ 86, 1702, 537, 1704, 1705, 533, 339, 554, 1701, 262, + /* 1050 */ 1770, 1027, 1086, 298, 311, 1766, 1849, 1701, 1090, 1097, + /* 1060 */ 1095, 126, 299, 1730, 1167, 1827, 86, 1702, 537, 1704, + /* 1070 */ 1705, 533, 259, 554, 384, 1717, 1770, 1614, 163, 399, + /* 1080 */ 311, 1766, 1849, 535, 1717, 391, 398, 400, 1671, 404, + /* 1090 */ 534, 1788, 535, 1229, 405, 413, 1232, 1671, 416, 534, + /* 1100 */ 170, 417, 172, 515, 1231, 418, 1701, 1233, 419, 175, + /* 1110 */ 421, 177, 515, 422, 1230, 1730, 423, 426, 278, 1702, + /* 1120 */ 537, 1704, 1705, 533, 1730, 554, 180, 278, 1702, 537, + /* 1130 */ 1704, 1705, 533, 1717, 554, 66, 183, 445, 447, 1516, + /* 1140 */ 187, 535, 307, 1512, 1836, 89, 1671, 1701, 534, 189, + /* 1150 */ 201, 260, 476, 1836, 128, 129, 1514, 1510, 154, 1653, + /* 1160 */ 130, 131, 1833, 477, 204, 1701, 1652, 152, 483, 207, + /* 1170 */ 1228, 1833, 487, 1730, 1717, 485, 87, 1702, 537, 1704, + /* 1180 */ 1705, 533, 532, 554, 488, 480, 1770, 1671, 210, 534, + /* 1190 */ 526, 1766, 1717, 499, 494, 214, 1811, 496, 541, 1810, + /* 1200 */ 535, 217, 310, 502, 1791, 1671, 6, 534, 1801, 508, + /* 1210 */ 495, 492, 222, 493, 1730, 1323, 1701, 286, 1702, 537, + /* 1220 */ 1704, 1705, 533, 531, 554, 528, 1742, 1227, 116, 227, + /* 1230 */ 42, 524, 1730, 142, 635, 138, 1702, 537, 1704, 1705, + /* 1240 */ 533, 1785, 554, 1717, 312, 226, 224, 521, 258, 18, + /* 1250 */ 1620, 535, 1619, 228, 539, 544, 1671, 1751, 534, 225, + /* 1260 */ 145, 1832, 545, 233, 246, 546, 626, 622, 618, 614, + /* 1270 */ 257, 540, 1527, 320, 248, 261, 75, 1701, 77, 557, + /* 1280 */ 516, 1850, 518, 1730, 525, 1852, 87, 1702, 537, 1704, + /* 1290 */ 1705, 533, 236, 554, 1701, 83, 1770, 1570, 251, 238, + /* 1300 */ 264, 1767, 1499, 631, 1717, 256, 141, 511, 270, 49, + /* 1310 */ 279, 271, 535, 266, 268, 1665, 1664, 1671, 60, 534, + /* 1320 */ 1663, 1717, 338, 1660, 340, 341, 1194, 1195, 159, 535, + /* 1330 */ 491, 547, 345, 1658, 1671, 117, 534, 347, 348, 349, + /* 1340 */ 1657, 351, 1656, 353, 1730, 1701, 355, 287, 1702, 537, + /* 1350 */ 1704, 1705, 533, 1655, 554, 515, 1654, 357, 1638, 489, + /* 1360 */ 360, 1730, 208, 361, 282, 1702, 537, 1704, 1705, 533, + /* 1370 */ 160, 554, 1717, 511, 115, 1170, 1632, 1169, 1631, 366, + /* 1380 */ 535, 1175, 367, 202, 1630, 1671, 1629, 534, 1142, 229, + /* 1390 */ 1777, 510, 1607, 509, 63, 1606, 1836, 1605, 1604, 1701, + /* 1400 */ 1603, 117, 1602, 507, 1601, 1600, 1599, 1598, 1701, 1597, + /* 1410 */ 152, 1596, 1730, 1595, 1833, 138, 1702, 537, 1704, 1705, + /* 1420 */ 533, 1594, 554, 1593, 1592, 1591, 1717, 1590, 1589, 120, + /* 1430 */ 1588, 1587, 1586, 1585, 535, 1717, 1144, 1582, 1581, 1671, + /* 1440 */ 115, 534, 1584, 532, 1583, 1580, 1579, 1456, 1671, 1424, + /* 1450 */ 534, 146, 315, 111, 965, 150, 1777, 1778, 168, 1782, + /* 1460 */ 1423, 1851, 1701, 409, 964, 1646, 1730, 169, 1640, 287, + /* 1470 */ 1702, 537, 1704, 1705, 533, 1730, 554, 511, 286, 1702, + /* 1480 */ 537, 1704, 1705, 533, 1628, 554, 176, 1743, 112, 1717, + /* 1490 */ 1627, 174, 411, 1617, 179, 1505, 1455, 535, 993, 1453, + /* 1500 */ 185, 429, 1671, 427, 534, 117, 428, 1451, 433, 1449, + /* 1510 */ 431, 432, 140, 1701, 437, 317, 435, 436, 442, 438, + /* 1520 */ 434, 430, 184, 1447, 440, 439, 441, 1701, 1436, 1730, + /* 1530 */ 1435, 1422, 287, 1702, 537, 1704, 1705, 533, 1101, 554, + /* 1540 */ 1717, 1507, 47, 186, 115, 1506, 1100, 68, 535, 1026, + /* 1550 */ 182, 1025, 1024, 1671, 1717, 534, 601, 1023, 603, 151, + /* 1560 */ 1777, 1778, 535, 1782, 1445, 1020, 319, 1671, 1019, 534, + /* 1570 */ 304, 1440, 1018, 305, 464, 1438, 306, 1421, 469, 467, + /* 1580 */ 1730, 1420, 1701, 287, 1702, 537, 1704, 1705, 533, 471, + /* 1590 */ 554, 1701, 88, 1645, 1730, 1639, 1177, 272, 1702, 537, + /* 1600 */ 1704, 1705, 533, 1626, 554, 1701, 51, 478, 132, 1717, + /* 1610 */ 181, 1625, 173, 1624, 178, 205, 420, 535, 1717, 1616, + /* 1620 */ 71, 479, 1671, 50, 534, 209, 535, 4, 211, 1364, + /* 1630 */ 39, 1671, 1717, 534, 23, 171, 221, 15, 213, 45, + /* 1640 */ 535, 215, 1348, 139, 219, 1671, 24, 534, 1341, 1730, + /* 1650 */ 220, 1691, 273, 1702, 537, 1704, 1705, 533, 1730, 554, + /* 1660 */ 72, 274, 1702, 537, 1704, 1705, 533, 25, 554, 1320, + /* 1670 */ 44, 230, 1730, 1319, 16, 281, 1702, 537, 1704, 1705, + /* 1680 */ 533, 1701, 554, 43, 143, 17, 1381, 1370, 1376, 1375, + /* 1690 */ 313, 13, 1380, 1379, 314, 10, 1283, 19, 1701, 144, + /* 1700 */ 1262, 31, 1247, 1261, 12, 20, 156, 1701, 1717, 21, + /* 1710 */ 1615, 243, 536, 241, 1346, 245, 535, 73, 247, 542, + /* 1720 */ 74, 1671, 1690, 534, 78, 1717, 249, 252, 1217, 1733, + /* 1730 */ 556, 1264, 553, 535, 1717, 46, 558, 327, 1671, 1087, + /* 1740 */ 534, 560, 535, 1084, 562, 563, 565, 1671, 1730, 534, + /* 1750 */ 1081, 283, 1702, 537, 1704, 1705, 533, 566, 554, 1701, + /* 1760 */ 568, 1075, 571, 569, 1079, 1730, 1073, 572, 275, 1702, + /* 1770 */ 537, 1704, 1705, 533, 1730, 554, 1078, 284, 1702, 537, + /* 1780 */ 1704, 1705, 533, 1701, 554, 1064, 1717, 578, 79, 80, + /* 1790 */ 1077, 1096, 1076, 57, 535, 254, 1092, 991, 587, 1671, + /* 1800 */ 1701, 534, 1015, 1033, 590, 255, 1013, 1012, 1011, 1010, + /* 1810 */ 1717, 1008, 1009, 1007, 1006, 1030, 1028, 1003, 535, 1002, + /* 1820 */ 1001, 1452, 998, 1671, 997, 534, 1730, 1717, 996, 276, + /* 1830 */ 1702, 537, 1704, 1705, 533, 535, 554, 611, 612, 613, + /* 1840 */ 1671, 1450, 534, 615, 616, 617, 1448, 621, 619, 620, + /* 1850 */ 1730, 1701, 1446, 285, 1702, 537, 1704, 1705, 533, 623, + /* 1860 */ 554, 624, 1701, 625, 1434, 627, 1419, 1730, 634, 629, + /* 1870 */ 277, 1702, 537, 1704, 1705, 533, 630, 554, 1717, 1203, + /* 1880 */ 265, 633, 1394, 1394, 1394, 1394, 535, 1394, 1394, 1717, + /* 1890 */ 1394, 1671, 1394, 534, 1394, 1394, 1394, 535, 1394, 1394, + /* 1900 */ 1394, 1394, 1671, 1701, 534, 1394, 1394, 1394, 1394, 1394, + /* 1910 */ 1394, 1394, 1394, 1394, 1701, 1394, 1394, 1394, 1730, 1394, + /* 1920 */ 1394, 1713, 1702, 537, 1704, 1705, 533, 1394, 554, 1730, + /* 1930 */ 1717, 1394, 1712, 1702, 537, 1704, 1705, 533, 535, 554, + /* 1940 */ 1394, 1717, 1394, 1671, 1394, 534, 1394, 1394, 1394, 535, + /* 1950 */ 1394, 1394, 1394, 1394, 1671, 1394, 534, 1394, 1394, 1394, + /* 1960 */ 1394, 1394, 1394, 1394, 1394, 1394, 1394, 1701, 1394, 1394, + /* 1970 */ 1730, 1394, 1394, 1711, 1702, 537, 1704, 1705, 533, 1701, + /* 1980 */ 554, 1730, 1394, 1394, 296, 1702, 537, 1704, 1705, 533, + /* 1990 */ 1394, 554, 1394, 1701, 1717, 1394, 1394, 1394, 1394, 1394, + /* 2000 */ 1394, 1394, 535, 1394, 1394, 1394, 1717, 1671, 1394, 534, + /* 2010 */ 1394, 1394, 1394, 1394, 535, 1394, 1394, 1394, 1394, 1671, + /* 2020 */ 1717, 534, 1394, 1394, 1394, 1394, 1394, 1394, 535, 1394, + /* 2030 */ 1394, 1394, 1394, 1671, 1730, 534, 1394, 295, 1702, 537, + /* 2040 */ 1704, 1705, 533, 1394, 554, 1701, 1730, 1394, 1394, 297, + /* 2050 */ 1702, 537, 1704, 1705, 533, 1394, 554, 1394, 1394, 1394, + /* 2060 */ 1730, 1394, 1394, 294, 1702, 537, 1704, 1705, 533, 1394, + /* 2070 */ 554, 1394, 1717, 1394, 1394, 1394, 1394, 1394, 1394, 1394, + /* 2080 */ 535, 1394, 1394, 1394, 1394, 1671, 1394, 534, 1394, 1394, + /* 2090 */ 1394, 1394, 1394, 1394, 1394, 1394, 1394, 1394, 1394, 1394, + /* 2100 */ 1394, 1394, 1394, 1394, 1394, 1394, 1394, 1394, 1394, 1394, + /* 2110 */ 1394, 1394, 1730, 1394, 1394, 280, 1702, 537, 1704, 1705, + /* 2120 */ 533, 1394, 554, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 271, 281, 243, 272, 284, 285, 275, 246, 243, 248, - /* 10 */ 249, 4, 12, 13, 283, 272, 4, 254, 250, 243, - /* 20 */ 20, 2, 22, 20, 324, 325, 283, 250, 20, 270, - /* 30 */ 267, 12, 13, 14, 15, 16, 20, 278, 261, 276, - /* 40 */ 309, 310, 283, 250, 285, 268, 278, 47, 283, 42, - /* 50 */ 43, 320, 309, 310, 261, 278, 298, 298, 58, 283, - /* 60 */ 12, 13, 14, 320, 64, 0, 298, 41, 20, 310, - /* 70 */ 22, 278, 313, 314, 315, 316, 317, 318, 242, 320, - /* 80 */ 244, 81, 323, 284, 285, 317, 327, 328, 12, 13, - /* 90 */ 14, 15, 16, 81, 250, 47, 250, 339, 339, 339, - /* 100 */ 332, 333, 334, 103, 336, 261, 58, 339, 82, 351, - /* 110 */ 351, 351, 64, 355, 355, 355, 57, 117, 118, 351, - /* 120 */ 117, 118, 278, 355, 278, 60, 61, 62, 63, 81, - /* 130 */ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - /* 140 */ 75, 76, 77, 78, 12, 13, 14, 15, 16, 20, - /* 150 */ 81, 103, 12, 13, 14, 15, 16, 256, 257, 159, - /* 160 */ 240, 161, 250, 317, 21, 117, 118, 24, 25, 26, - /* 170 */ 27, 28, 29, 30, 31, 32, 270, 331, 332, 333, - /* 180 */ 334, 93, 336, 183, 184, 279, 186, 187, 188, 189, - /* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 198, 287, - /* 200 */ 112, 113, 114, 115, 116, 247, 14, 159, 250, 161, - /* 210 */ 81, 211, 20, 246, 82, 248, 249, 258, 298, 260, - /* 220 */ 12, 13, 20, 211, 20, 243, 22, 151, 20, 0, + /* 0 */ 274, 341, 273, 277, 248, 274, 250, 251, 277, 242, + /* 10 */ 257, 285, 12, 13, 261, 355, 285, 245, 14, 359, + /* 20 */ 20, 252, 22, 252, 20, 12, 13, 14, 15, 16, + /* 30 */ 12, 13, 263, 248, 263, 250, 251, 311, 312, 270, + /* 40 */ 22, 270, 311, 312, 272, 326, 327, 47, 322, 280, + /* 50 */ 313, 280, 280, 322, 41, 252, 20, 285, 58, 287, + /* 60 */ 12, 13, 14, 264, 64, 47, 263, 300, 20, 245, + /* 70 */ 22, 272, 300, 300, 337, 12, 13, 14, 15, 16, + /* 80 */ 281, 81, 64, 280, 312, 256, 20, 315, 316, 317, + /* 90 */ 318, 319, 320, 81, 322, 47, 272, 325, 269, 254, + /* 100 */ 252, 329, 330, 103, 280, 252, 58, 278, 341, 285, + /* 110 */ 245, 287, 64, 341, 341, 287, 263, 117, 118, 4, + /* 120 */ 275, 103, 355, 4, 20, 297, 359, 355, 355, 81, + /* 130 */ 57, 359, 359, 280, 55, 254, 312, 289, 19, 315, + /* 140 */ 316, 317, 318, 319, 320, 82, 322, 81, 267, 325, + /* 150 */ 285, 103, 33, 329, 330, 331, 275, 42, 43, 159, + /* 160 */ 81, 161, 83, 264, 45, 117, 118, 343, 3, 50, + /* 170 */ 158, 272, 160, 20, 55, 351, 352, 159, 283, 161, + /* 180 */ 281, 286, 287, 183, 184, 81, 186, 187, 188, 189, + /* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 198, 80, + /* 200 */ 20, 183, 83, 286, 287, 2, 4, 159, 341, 161, + /* 210 */ 20, 211, 194, 195, 196, 12, 13, 14, 15, 16, + /* 220 */ 12, 13, 355, 211, 245, 245, 359, 75, 20, 256, /* 230 */ 22, 183, 184, 35, 186, 187, 188, 189, 190, 191, - /* 240 */ 192, 193, 194, 195, 196, 197, 198, 146, 22, 60, - /* 250 */ 61, 55, 270, 49, 65, 47, 270, 68, 69, 339, - /* 260 */ 278, 72, 73, 74, 278, 283, 58, 285, 12, 13, - /* 270 */ 0, 351, 64, 47, 243, 355, 20, 81, 22, 83, - /* 280 */ 211, 243, 84, 81, 86, 87, 57, 89, 148, 81, - /* 290 */ 64, 93, 310, 298, 20, 313, 314, 315, 316, 317, - /* 300 */ 318, 315, 320, 47, 250, 323, 113, 231, 270, 327, - /* 310 */ 328, 103, 339, 115, 283, 261, 278, 216, 217, 298, - /* 320 */ 64, 283, 268, 285, 351, 117, 118, 41, 355, 103, - /* 330 */ 60, 61, 278, 339, 339, 65, 298, 81, 68, 69, - /* 340 */ 211, 14, 72, 73, 74, 351, 351, 20, 310, 355, - /* 350 */ 355, 313, 314, 315, 316, 317, 318, 64, 320, 103, - /* 360 */ 339, 323, 169, 170, 4, 327, 328, 159, 243, 161, - /* 370 */ 2, 20, 351, 117, 118, 272, 355, 339, 275, 187, - /* 380 */ 12, 13, 14, 15, 16, 159, 283, 161, 250, 351, - /* 390 */ 311, 183, 184, 355, 186, 187, 188, 189, 190, 191, - /* 400 */ 192, 193, 194, 195, 196, 197, 198, 211, 283, 183, - /* 410 */ 184, 75, 309, 310, 335, 159, 278, 161, 12, 13, - /* 420 */ 14, 15, 16, 320, 0, 270, 57, 285, 12, 13, - /* 430 */ 14, 55, 277, 243, 20, 293, 20, 295, 22, 183, - /* 440 */ 184, 286, 186, 187, 188, 189, 190, 191, 192, 193, - /* 450 */ 194, 195, 196, 197, 198, 317, 80, 121, 122, 83, - /* 460 */ 270, 262, 154, 47, 14, 15, 16, 211, 278, 270, - /* 470 */ 332, 333, 334, 283, 336, 285, 12, 13, 279, 254, - /* 480 */ 64, 57, 174, 175, 20, 243, 22, 250, 82, 12, - /* 490 */ 13, 14, 15, 16, 20, 255, 22, 81, 261, 259, - /* 500 */ 310, 276, 243, 313, 314, 315, 316, 317, 318, 243, - /* 510 */ 320, 47, 270, 323, 187, 278, 230, 327, 328, 103, - /* 520 */ 278, 47, 270, 49, 262, 283, 0, 285, 64, 277, - /* 530 */ 269, 64, 270, 117, 118, 250, 272, 270, 286, 243, - /* 540 */ 250, 279, 283, 282, 277, 81, 261, 283, 250, 283, - /* 550 */ 250, 261, 310, 286, 92, 313, 314, 315, 316, 317, - /* 560 */ 318, 261, 320, 278, 142, 323, 0, 103, 278, 327, - /* 570 */ 328, 329, 212, 309, 310, 159, 278, 161, 278, 283, - /* 580 */ 243, 117, 118, 341, 320, 20, 164, 21, 346, 347, - /* 590 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 183, - /* 600 */ 184, 47, 186, 187, 188, 189, 190, 191, 192, 193, - /* 610 */ 194, 195, 196, 197, 198, 317, 262, 285, 64, 93, - /* 620 */ 283, 199, 252, 159, 270, 161, 183, 295, 243, 243, - /* 630 */ 332, 333, 334, 279, 336, 265, 12, 13, 112, 113, - /* 640 */ 114, 115, 116, 273, 20, 243, 22, 183, 184, 252, + /* 240 */ 192, 193, 194, 195, 196, 197, 198, 252, 272, 60, + /* 250 */ 61, 278, 272, 300, 65, 47, 280, 68, 69, 0, + /* 260 */ 280, 72, 73, 74, 285, 285, 58, 287, 12, 13, + /* 270 */ 117, 118, 64, 121, 122, 280, 20, 211, 22, 142, + /* 280 */ 300, 0, 84, 81, 86, 87, 154, 89, 81, 81, + /* 290 */ 211, 93, 312, 317, 341, 315, 316, 317, 318, 319, + /* 300 */ 320, 164, 322, 47, 45, 325, 174, 175, 355, 329, + /* 310 */ 330, 103, 359, 115, 319, 12, 13, 14, 15, 16, + /* 320 */ 64, 341, 244, 274, 246, 117, 118, 0, 333, 334, + /* 330 */ 335, 336, 4, 338, 285, 355, 199, 81, 57, 359, + /* 340 */ 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, + /* 350 */ 104, 0, 106, 107, 108, 109, 110, 111, 81, 103, + /* 360 */ 311, 312, 12, 13, 14, 15, 16, 159, 91, 161, + /* 370 */ 183, 322, 21, 117, 118, 24, 25, 26, 27, 28, + /* 380 */ 29, 30, 31, 32, 57, 82, 12, 13, 14, 15, + /* 390 */ 16, 183, 184, 228, 186, 187, 188, 189, 190, 191, + /* 400 */ 192, 193, 194, 195, 196, 197, 198, 220, 221, 222, + /* 410 */ 223, 224, 20, 211, 22, 159, 21, 161, 211, 24, + /* 420 */ 25, 26, 27, 28, 29, 30, 31, 32, 12, 13, + /* 430 */ 14, 249, 249, 245, 252, 252, 20, 55, 22, 183, + /* 440 */ 184, 49, 186, 187, 188, 189, 190, 191, 192, 193, + /* 450 */ 194, 195, 196, 197, 198, 12, 13, 14, 15, 16, + /* 460 */ 272, 300, 80, 47, 341, 83, 47, 211, 280, 20, + /* 470 */ 113, 22, 272, 285, 245, 287, 12, 13, 355, 279, + /* 480 */ 64, 0, 359, 64, 20, 313, 22, 260, 288, 262, + /* 490 */ 12, 13, 14, 15, 16, 245, 47, 81, 49, 146, + /* 500 */ 312, 151, 341, 315, 316, 317, 318, 319, 320, 337, + /* 510 */ 322, 47, 112, 325, 285, 20, 355, 329, 330, 103, + /* 520 */ 359, 287, 148, 272, 271, 82, 169, 170, 64, 295, + /* 530 */ 279, 297, 57, 117, 118, 285, 58, 284, 245, 288, + /* 540 */ 212, 60, 61, 62, 63, 81, 65, 66, 67, 68, + /* 550 */ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, + /* 560 */ 82, 0, 12, 13, 14, 15, 16, 103, 90, 216, + /* 570 */ 217, 171, 172, 20, 14, 159, 245, 161, 285, 245, + /* 580 */ 20, 117, 118, 233, 2, 24, 25, 26, 27, 28, + /* 590 */ 29, 30, 31, 32, 12, 13, 14, 15, 16, 183, + /* 600 */ 184, 245, 186, 187, 188, 189, 190, 191, 192, 193, + /* 610 */ 194, 195, 196, 197, 198, 252, 285, 272, 272, 285, + /* 620 */ 142, 20, 264, 159, 279, 161, 263, 281, 14, 245, + /* 630 */ 272, 258, 259, 288, 20, 64, 12, 13, 0, 281, + /* 640 */ 20, 285, 164, 280, 20, 0, 22, 183, 184, 58, /* 650 */ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, - /* 660 */ 196, 197, 198, 220, 221, 222, 223, 224, 283, 283, - /* 670 */ 273, 47, 270, 81, 243, 12, 13, 14, 15, 16, - /* 680 */ 278, 1, 2, 243, 112, 283, 247, 285, 64, 250, - /* 690 */ 256, 257, 243, 302, 94, 95, 96, 97, 98, 99, - /* 700 */ 100, 101, 102, 103, 104, 81, 106, 107, 108, 109, - /* 710 */ 110, 111, 310, 148, 283, 313, 314, 315, 316, 317, - /* 720 */ 318, 58, 320, 283, 18, 323, 20, 103, 250, 327, - /* 730 */ 328, 329, 283, 27, 14, 263, 30, 250, 266, 261, - /* 740 */ 20, 117, 118, 171, 172, 82, 18, 0, 261, 347, - /* 750 */ 158, 23, 160, 90, 48, 20, 278, 311, 243, 250, - /* 760 */ 3, 243, 82, 35, 36, 278, 311, 39, 37, 250, - /* 770 */ 261, 24, 25, 26, 27, 28, 29, 30, 31, 32, - /* 780 */ 261, 335, 278, 159, 56, 161, 80, 278, 280, 20, - /* 790 */ 335, 283, 41, 289, 81, 250, 280, 278, 283, 283, - /* 800 */ 271, 283, 271, 211, 91, 142, 261, 183, 184, 81, + /* 660 */ 196, 197, 198, 1, 2, 14, 15, 16, 313, 285, + /* 670 */ 92, 47, 12, 13, 14, 15, 16, 199, 200, 201, + /* 680 */ 202, 203, 204, 205, 206, 207, 208, 282, 64, 252, + /* 690 */ 285, 274, 337, 258, 259, 245, 37, 252, 60, 61, + /* 700 */ 93, 148, 285, 65, 252, 81, 68, 69, 263, 93, + /* 710 */ 72, 73, 74, 245, 272, 263, 20, 280, 58, 112, + /* 720 */ 113, 114, 115, 116, 18, 280, 20, 103, 311, 312, + /* 730 */ 288, 115, 280, 27, 252, 285, 30, 300, 93, 322, + /* 740 */ 282, 117, 118, 285, 82, 263, 18, 187, 245, 245, + /* 750 */ 90, 23, 265, 285, 48, 268, 319, 112, 113, 114, + /* 760 */ 115, 116, 280, 35, 36, 245, 252, 39, 148, 252, + /* 770 */ 252, 334, 335, 336, 183, 338, 252, 263, 341, 280, + /* 780 */ 263, 263, 41, 159, 56, 161, 80, 263, 285, 285, + /* 790 */ 291, 64, 355, 41, 280, 252, 359, 280, 280, 42, + /* 800 */ 43, 187, 142, 273, 280, 285, 263, 183, 184, 81, /* 810 */ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, - /* 820 */ 196, 197, 198, 278, 42, 43, 120, 164, 271, 123, + /* 820 */ 196, 197, 198, 280, 164, 273, 120, 209, 210, 123, /* 830 */ 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, - /* 840 */ 134, 135, 136, 137, 138, 139, 140, 119, 12, 13, - /* 850 */ 14, 15, 16, 209, 210, 243, 243, 243, 243, 270, - /* 860 */ 93, 250, 199, 200, 201, 202, 203, 204, 205, 206, - /* 870 */ 207, 208, 261, 243, 85, 286, 4, 88, 271, 151, - /* 880 */ 152, 153, 115, 148, 156, 270, 1, 2, 250, 278, - /* 890 */ 162, 19, 250, 278, 58, 283, 283, 283, 283, 261, - /* 900 */ 285, 173, 0, 261, 176, 33, 178, 179, 180, 181, - /* 910 */ 182, 85, 85, 283, 88, 88, 278, 45, 0, 243, - /* 920 */ 278, 58, 50, 0, 41, 310, 90, 55, 313, 314, - /* 930 */ 315, 316, 317, 318, 85, 320, 0, 88, 323, 211, - /* 940 */ 0, 210, 327, 328, 329, 22, 270, 45, 117, 118, - /* 950 */ 44, 21, 80, 338, 278, 83, 187, 41, 22, 283, - /* 960 */ 41, 285, 22, 271, 34, 82, 0, 41, 41, 41, - /* 970 */ 271, 244, 41, 259, 358, 41, 41, 349, 142, 228, - /* 980 */ 243, 251, 41, 226, 41, 47, 310, 81, 41, 313, - /* 990 */ 314, 315, 316, 317, 318, 47, 320, 306, 82, 323, - /* 1000 */ 164, 82, 47, 327, 328, 329, 270, 270, 82, 82, - /* 1010 */ 82, 93, 46, 82, 338, 278, 82, 82, 41, 64, - /* 1020 */ 283, 41, 285, 82, 343, 82, 41, 41, 251, 82, - /* 1030 */ 112, 113, 114, 115, 116, 199, 200, 201, 202, 203, - /* 1040 */ 204, 205, 206, 207, 208, 249, 183, 310, 282, 243, - /* 1050 */ 313, 314, 315, 316, 317, 318, 312, 320, 243, 82, - /* 1060 */ 323, 337, 82, 352, 327, 328, 329, 82, 82, 352, - /* 1070 */ 352, 213, 340, 308, 20, 338, 270, 45, 250, 307, - /* 1080 */ 47, 256, 157, 300, 278, 270, 40, 250, 250, 283, - /* 1090 */ 290, 285, 142, 278, 250, 288, 288, 20, 283, 161, - /* 1100 */ 285, 245, 245, 20, 298, 304, 254, 243, 285, 161, - /* 1110 */ 20, 297, 20, 298, 254, 299, 310, 297, 278, 313, - /* 1120 */ 314, 315, 316, 317, 318, 310, 320, 254, 313, 314, - /* 1130 */ 315, 316, 317, 318, 270, 320, 254, 20, 291, 250, - /* 1140 */ 254, 254, 278, 245, 254, 339, 270, 283, 270, 285, - /* 1150 */ 270, 270, 245, 250, 339, 304, 252, 351, 270, 167, - /* 1160 */ 283, 355, 270, 243, 270, 270, 351, 270, 303, 270, - /* 1170 */ 355, 270, 243, 252, 310, 291, 283, 313, 314, 315, - /* 1180 */ 316, 317, 318, 319, 320, 321, 322, 250, 297, 278, - /* 1190 */ 270, 252, 19, 285, 252, 20, 348, 219, 278, 270, - /* 1200 */ 218, 348, 150, 283, 294, 285, 33, 278, 312, 294, - /* 1210 */ 214, 345, 283, 225, 285, 283, 283, 308, 45, 344, - /* 1220 */ 210, 342, 278, 20, 51, 52, 53, 54, 55, 283, - /* 1230 */ 310, 40, 229, 313, 314, 315, 316, 317, 318, 310, - /* 1240 */ 320, 227, 313, 314, 315, 316, 317, 318, 33, 320, - /* 1250 */ 232, 243, 323, 80, 330, 81, 83, 328, 294, 354, - /* 1260 */ 45, 294, 311, 145, 283, 353, 51, 52, 53, 54, - /* 1270 */ 55, 354, 359, 283, 283, 353, 356, 357, 270, 326, - /* 1280 */ 278, 292, 252, 266, 291, 278, 278, 252, 81, 116, - /* 1290 */ 274, 283, 283, 285, 260, 80, 252, 250, 83, 354, - /* 1300 */ 245, 301, 243, 305, 296, 353, 264, 264, 241, 264, - /* 1310 */ 253, 0, 0, 40, 0, 250, 72, 144, 310, 243, - /* 1320 */ 147, 313, 314, 315, 316, 317, 318, 0, 320, 270, - /* 1330 */ 47, 177, 47, 47, 47, 177, 0, 278, 47, 166, - /* 1340 */ 47, 168, 283, 278, 285, 177, 270, 0, 177, 0, - /* 1350 */ 47, 0, 22, 0, 278, 47, 0, 81, 143, 283, - /* 1360 */ 145, 285, 147, 298, 149, 164, 161, 163, 243, 310, - /* 1370 */ 159, 0, 313, 314, 315, 316, 317, 318, 0, 320, - /* 1380 */ 155, 154, 317, 168, 44, 0, 310, 0, 0, 313, - /* 1390 */ 314, 315, 316, 317, 318, 270, 320, 332, 333, 334, - /* 1400 */ 141, 336, 0, 278, 339, 0, 0, 0, 283, 350, - /* 1410 */ 285, 0, 0, 0, 0, 0, 351, 0, 0, 0, - /* 1420 */ 355, 296, 243, 0, 0, 0, 0, 0, 0, 40, - /* 1430 */ 0, 0, 0, 357, 0, 310, 0, 0, 313, 314, - /* 1440 */ 315, 316, 317, 318, 22, 320, 0, 0, 0, 270, - /* 1450 */ 40, 0, 14, 37, 14, 0, 0, 278, 0, 0, - /* 1460 */ 0, 41, 283, 150, 285, 44, 0, 0, 0, 0, - /* 1470 */ 37, 243, 37, 44, 0, 12, 13, 38, 37, 0, - /* 1480 */ 243, 0, 37, 0, 0, 22, 37, 45, 0, 310, - /* 1490 */ 0, 47, 313, 314, 315, 316, 317, 318, 270, 320, - /* 1500 */ 47, 322, 59, 0, 47, 0, 278, 270, 47, 45, - /* 1510 */ 47, 283, 37, 285, 37, 278, 45, 22, 45, 0, - /* 1520 */ 283, 41, 285, 47, 296, 47, 0, 64, 22, 47, - /* 1530 */ 41, 0, 47, 296, 47, 243, 22, 0, 310, 47, - /* 1540 */ 88, 313, 314, 315, 316, 317, 318, 310, 320, 47, - /* 1550 */ 313, 314, 315, 316, 317, 318, 47, 320, 48, 47, - /* 1560 */ 90, 243, 270, 22, 0, 22, 103, 0, 22, 20, - /* 1570 */ 278, 0, 47, 0, 165, 283, 22, 285, 0, 0, - /* 1580 */ 0, 0, 81, 41, 37, 41, 82, 215, 270, 82, - /* 1590 */ 82, 41, 81, 41, 81, 44, 278, 81, 81, 145, - /* 1600 */ 44, 283, 310, 285, 41, 313, 314, 315, 316, 317, - /* 1610 */ 318, 82, 320, 243, 215, 82, 44, 209, 41, 44, - /* 1620 */ 82, 82, 159, 41, 161, 2, 41, 243, 310, 143, - /* 1630 */ 47, 313, 314, 315, 316, 317, 318, 47, 320, 243, - /* 1640 */ 270, 148, 148, 47, 148, 47, 183, 47, 278, 47, - /* 1650 */ 82, 81, 44, 283, 270, 285, 82, 194, 195, 196, - /* 1660 */ 44, 22, 278, 0, 146, 81, 270, 283, 81, 285, - /* 1670 */ 82, 37, 81, 81, 278, 82, 185, 215, 81, 283, - /* 1680 */ 310, 285, 183, 313, 314, 315, 316, 317, 318, 44, - /* 1690 */ 320, 81, 81, 243, 310, 91, 143, 313, 314, 315, - /* 1700 */ 316, 317, 318, 44, 320, 81, 310, 82, 81, 313, - /* 1710 */ 314, 315, 316, 317, 318, 243, 320, 22, 81, 47, - /* 1720 */ 270, 92, 82, 47, 81, 47, 82, 81, 278, 82, - /* 1730 */ 47, 81, 47, 283, 82, 285, 81, 47, 82, 81, - /* 1740 */ 105, 105, 270, 105, 22, 81, 105, 81, 47, 41, - /* 1750 */ 278, 81, 22, 93, 58, 283, 59, 285, 47, 79, - /* 1760 */ 310, 41, 64, 313, 314, 315, 316, 317, 318, 22, - /* 1770 */ 320, 47, 47, 47, 47, 47, 47, 243, 47, 64, - /* 1780 */ 47, 0, 310, 47, 47, 313, 314, 315, 316, 317, - /* 1790 */ 318, 243, 320, 47, 37, 47, 47, 47, 47, 45, - /* 1800 */ 0, 45, 47, 37, 270, 0, 47, 45, 37, 0, - /* 1810 */ 47, 37, 278, 45, 0, 0, 47, 283, 270, 285, - /* 1820 */ 22, 22, 21, 20, 22, 21, 278, 360, 360, 360, - /* 1830 */ 360, 283, 243, 285, 360, 360, 360, 360, 360, 360, - /* 1840 */ 360, 360, 360, 360, 310, 360, 243, 313, 314, 315, - /* 1850 */ 316, 317, 318, 360, 320, 360, 360, 360, 310, 270, - /* 1860 */ 360, 313, 314, 315, 316, 317, 318, 278, 320, 360, - /* 1870 */ 360, 360, 283, 270, 285, 360, 360, 360, 360, 360, - /* 1880 */ 360, 278, 360, 360, 360, 360, 283, 360, 285, 360, - /* 1890 */ 360, 360, 360, 360, 360, 360, 360, 243, 360, 310, - /* 1900 */ 360, 360, 313, 314, 315, 316, 317, 318, 360, 320, - /* 1910 */ 360, 243, 360, 310, 360, 360, 313, 314, 315, 316, - /* 1920 */ 317, 318, 360, 320, 270, 360, 360, 360, 360, 360, - /* 1930 */ 360, 360, 278, 360, 360, 360, 360, 283, 270, 285, - /* 1940 */ 360, 360, 360, 360, 360, 360, 278, 360, 360, 360, - /* 1950 */ 360, 283, 360, 285, 360, 360, 360, 360, 360, 360, - /* 1960 */ 243, 360, 360, 360, 310, 360, 360, 313, 314, 315, - /* 1970 */ 316, 317, 318, 360, 320, 360, 360, 243, 310, 360, - /* 1980 */ 360, 313, 314, 315, 316, 317, 318, 270, 320, 360, - /* 1990 */ 360, 360, 360, 360, 360, 278, 360, 360, 360, 360, - /* 2000 */ 283, 243, 285, 360, 270, 360, 360, 360, 360, 360, - /* 2010 */ 360, 360, 278, 360, 360, 360, 360, 283, 360, 285, - /* 2020 */ 360, 360, 360, 360, 360, 360, 360, 310, 270, 360, - /* 2030 */ 313, 314, 315, 316, 317, 318, 278, 320, 360, 360, - /* 2040 */ 360, 283, 360, 285, 310, 360, 360, 313, 314, 315, - /* 2050 */ 316, 317, 318, 360, 320, 360, 360, 360, 360, 360, - /* 2060 */ 360, 360, 360, 360, 360, 360, 360, 360, 310, 360, - /* 2070 */ 360, 313, 314, 315, 316, 317, 318, 360, 320, + /* 840 */ 134, 135, 136, 137, 138, 139, 140, 119, 245, 273, + /* 850 */ 85, 245, 22, 88, 273, 245, 245, 245, 245, 199, + /* 860 */ 200, 201, 202, 203, 204, 205, 206, 207, 208, 210, + /* 870 */ 41, 85, 85, 85, 88, 88, 88, 47, 272, 151, + /* 880 */ 152, 153, 273, 187, 156, 47, 280, 0, 285, 252, + /* 890 */ 162, 285, 245, 287, 64, 285, 285, 285, 285, 21, + /* 900 */ 263, 173, 64, 41, 176, 41, 178, 179, 180, 181, + /* 910 */ 182, 82, 34, 41, 1, 2, 47, 280, 312, 272, + /* 920 */ 47, 315, 316, 317, 318, 319, 320, 280, 322, 252, + /* 930 */ 0, 325, 285, 103, 287, 329, 330, 331, 41, 211, + /* 940 */ 263, 117, 118, 273, 82, 41, 82, 0, 304, 41, + /* 950 */ 246, 261, 22, 0, 82, 44, 362, 280, 352, 312, + /* 960 */ 252, 0, 315, 316, 317, 318, 319, 320, 41, 322, + /* 970 */ 245, 263, 325, 232, 41, 22, 329, 330, 331, 82, + /* 980 */ 93, 41, 230, 22, 41, 353, 82, 340, 280, 159, + /* 990 */ 82, 161, 81, 46, 308, 253, 245, 272, 348, 112, + /* 1000 */ 113, 114, 115, 116, 272, 280, 253, 251, 41, 82, + /* 1010 */ 285, 41, 287, 183, 184, 82, 314, 41, 41, 41, + /* 1020 */ 41, 284, 82, 272, 339, 82, 342, 356, 356, 356, + /* 1030 */ 161, 280, 213, 310, 161, 20, 285, 312, 287, 45, + /* 1040 */ 315, 316, 317, 318, 319, 320, 252, 322, 245, 82, + /* 1050 */ 325, 47, 82, 309, 329, 330, 331, 245, 82, 82, + /* 1060 */ 82, 82, 258, 312, 157, 340, 315, 316, 317, 318, + /* 1070 */ 319, 320, 302, 322, 252, 272, 325, 252, 40, 142, + /* 1080 */ 329, 330, 331, 280, 272, 292, 290, 290, 285, 252, + /* 1090 */ 287, 340, 280, 20, 247, 247, 20, 285, 306, 287, + /* 1100 */ 256, 287, 256, 300, 20, 299, 245, 20, 301, 256, + /* 1110 */ 299, 256, 300, 280, 20, 312, 293, 252, 315, 316, + /* 1120 */ 317, 318, 319, 320, 312, 322, 256, 315, 316, 317, + /* 1130 */ 318, 319, 320, 272, 322, 256, 256, 247, 272, 272, + /* 1140 */ 272, 280, 247, 272, 341, 252, 285, 245, 287, 272, + /* 1150 */ 254, 306, 167, 341, 272, 272, 272, 272, 355, 285, + /* 1160 */ 272, 272, 359, 305, 254, 245, 285, 355, 252, 254, + /* 1170 */ 20, 359, 280, 312, 272, 299, 315, 316, 317, 318, + /* 1180 */ 319, 320, 280, 322, 293, 287, 325, 285, 254, 287, + /* 1190 */ 329, 330, 272, 219, 285, 296, 347, 285, 218, 347, + /* 1200 */ 280, 296, 285, 285, 350, 285, 225, 287, 314, 150, + /* 1210 */ 227, 214, 349, 226, 312, 210, 245, 315, 316, 317, + /* 1220 */ 318, 319, 320, 321, 322, 323, 324, 20, 280, 310, + /* 1230 */ 40, 231, 312, 347, 19, 315, 316, 317, 318, 319, + /* 1240 */ 320, 313, 322, 272, 234, 344, 346, 229, 33, 81, + /* 1250 */ 296, 280, 296, 332, 285, 145, 285, 328, 287, 345, + /* 1260 */ 45, 358, 294, 357, 280, 293, 51, 52, 53, 54, + /* 1270 */ 55, 285, 280, 285, 254, 268, 254, 245, 81, 276, + /* 1280 */ 360, 361, 358, 312, 358, 363, 315, 316, 317, 318, + /* 1290 */ 319, 320, 357, 322, 245, 80, 325, 285, 83, 357, + /* 1300 */ 252, 330, 262, 247, 272, 254, 307, 252, 266, 303, + /* 1310 */ 266, 266, 280, 255, 243, 0, 0, 285, 40, 287, + /* 1320 */ 0, 272, 72, 0, 47, 177, 47, 47, 47, 280, + /* 1330 */ 298, 116, 177, 0, 285, 280, 287, 47, 47, 177, + /* 1340 */ 0, 177, 0, 47, 312, 245, 22, 315, 316, 317, + /* 1350 */ 318, 319, 320, 0, 322, 300, 0, 47, 0, 144, + /* 1360 */ 164, 312, 147, 163, 315, 316, 317, 318, 319, 320, + /* 1370 */ 81, 322, 272, 252, 319, 161, 0, 159, 0, 155, + /* 1380 */ 280, 166, 154, 168, 0, 285, 0, 287, 44, 334, + /* 1390 */ 335, 336, 0, 338, 141, 0, 341, 0, 0, 245, + /* 1400 */ 0, 280, 0, 354, 0, 0, 0, 0, 245, 0, + /* 1410 */ 355, 0, 312, 0, 359, 315, 316, 317, 318, 319, + /* 1420 */ 320, 0, 322, 0, 0, 0, 272, 0, 0, 40, + /* 1430 */ 0, 0, 0, 0, 280, 272, 22, 0, 0, 285, + /* 1440 */ 319, 287, 0, 280, 0, 0, 0, 0, 285, 0, + /* 1450 */ 287, 41, 298, 37, 14, 334, 335, 336, 40, 338, + /* 1460 */ 0, 361, 245, 44, 14, 0, 312, 38, 0, 315, + /* 1470 */ 316, 317, 318, 319, 320, 312, 322, 252, 315, 316, + /* 1480 */ 317, 318, 319, 320, 0, 322, 150, 324, 37, 272, + /* 1490 */ 0, 37, 44, 0, 37, 0, 0, 280, 59, 0, + /* 1500 */ 33, 37, 285, 47, 287, 280, 45, 0, 37, 0, + /* 1510 */ 47, 45, 45, 245, 37, 298, 47, 45, 51, 52, + /* 1520 */ 53, 54, 55, 0, 45, 47, 37, 245, 0, 312, + /* 1530 */ 0, 0, 315, 316, 317, 318, 319, 320, 47, 322, + /* 1540 */ 272, 0, 90, 88, 319, 0, 22, 80, 280, 47, + /* 1550 */ 83, 47, 47, 285, 272, 287, 41, 47, 41, 334, + /* 1560 */ 335, 336, 280, 338, 0, 47, 298, 285, 47, 287, + /* 1570 */ 22, 0, 47, 22, 48, 0, 22, 0, 22, 47, + /* 1580 */ 312, 0, 245, 315, 316, 317, 318, 319, 320, 22, + /* 1590 */ 322, 245, 20, 0, 312, 0, 47, 315, 316, 317, + /* 1600 */ 318, 319, 320, 0, 322, 245, 148, 22, 165, 272, + /* 1610 */ 143, 0, 145, 0, 147, 145, 149, 280, 272, 0, + /* 1620 */ 81, 148, 285, 148, 287, 37, 280, 41, 143, 82, + /* 1630 */ 41, 285, 272, 287, 81, 168, 44, 215, 81, 41, + /* 1640 */ 280, 82, 82, 81, 81, 285, 81, 287, 82, 312, + /* 1650 */ 41, 44, 315, 316, 317, 318, 319, 320, 312, 322, + /* 1660 */ 81, 315, 316, 317, 318, 319, 320, 41, 322, 82, + /* 1670 */ 41, 44, 312, 82, 215, 315, 316, 317, 318, 319, + /* 1680 */ 320, 245, 322, 209, 44, 41, 82, 82, 47, 47, + /* 1690 */ 47, 215, 47, 47, 47, 2, 183, 41, 245, 44, + /* 1700 */ 82, 81, 22, 82, 81, 81, 44, 245, 272, 81, + /* 1710 */ 0, 81, 185, 82, 82, 81, 280, 81, 37, 146, + /* 1720 */ 81, 285, 44, 287, 91, 272, 143, 44, 22, 81, + /* 1730 */ 92, 82, 81, 280, 272, 81, 47, 47, 285, 82, + /* 1740 */ 287, 81, 280, 82, 47, 81, 47, 285, 312, 287, + /* 1750 */ 82, 315, 316, 317, 318, 319, 320, 81, 322, 245, + /* 1760 */ 47, 82, 47, 81, 105, 312, 82, 81, 315, 316, + /* 1770 */ 317, 318, 319, 320, 312, 322, 105, 315, 316, 317, + /* 1780 */ 318, 319, 320, 245, 322, 22, 272, 93, 81, 81, + /* 1790 */ 105, 47, 105, 81, 280, 41, 22, 59, 58, 285, + /* 1800 */ 245, 287, 47, 64, 79, 41, 47, 47, 47, 47, + /* 1810 */ 272, 22, 47, 47, 47, 64, 47, 47, 280, 47, + /* 1820 */ 47, 0, 47, 285, 47, 287, 312, 272, 47, 315, + /* 1830 */ 316, 317, 318, 319, 320, 280, 322, 47, 45, 37, + /* 1840 */ 285, 0, 287, 47, 45, 37, 0, 37, 47, 45, + /* 1850 */ 312, 245, 0, 315, 316, 317, 318, 319, 320, 47, + /* 1860 */ 322, 45, 245, 37, 0, 47, 0, 312, 20, 22, + /* 1870 */ 315, 316, 317, 318, 319, 320, 21, 322, 272, 22, + /* 1880 */ 22, 21, 364, 364, 364, 364, 280, 364, 364, 272, + /* 1890 */ 364, 285, 364, 287, 364, 364, 364, 280, 364, 364, + /* 1900 */ 364, 364, 285, 245, 287, 364, 364, 364, 364, 364, + /* 1910 */ 364, 364, 364, 364, 245, 364, 364, 364, 312, 364, + /* 1920 */ 364, 315, 316, 317, 318, 319, 320, 364, 322, 312, + /* 1930 */ 272, 364, 315, 316, 317, 318, 319, 320, 280, 322, + /* 1940 */ 364, 272, 364, 285, 364, 287, 364, 364, 364, 280, + /* 1950 */ 364, 364, 364, 364, 285, 364, 287, 364, 364, 364, + /* 1960 */ 364, 364, 364, 364, 364, 364, 364, 245, 364, 364, + /* 1970 */ 312, 364, 364, 315, 316, 317, 318, 319, 320, 245, + /* 1980 */ 322, 312, 364, 364, 315, 316, 317, 318, 319, 320, + /* 1990 */ 364, 322, 364, 245, 272, 364, 364, 364, 364, 364, + /* 2000 */ 364, 364, 280, 364, 364, 364, 272, 285, 364, 287, + /* 2010 */ 364, 364, 364, 364, 280, 364, 364, 364, 364, 285, + /* 2020 */ 272, 287, 364, 364, 364, 364, 364, 364, 280, 364, + /* 2030 */ 364, 364, 364, 285, 312, 287, 364, 315, 316, 317, + /* 2040 */ 318, 319, 320, 364, 322, 245, 312, 364, 364, 315, + /* 2050 */ 316, 317, 318, 319, 320, 364, 322, 364, 364, 364, + /* 2060 */ 312, 364, 364, 315, 316, 317, 318, 319, 320, 364, + /* 2070 */ 322, 364, 272, 364, 364, 364, 364, 364, 364, 364, + /* 2080 */ 280, 364, 364, 364, 364, 285, 364, 287, 364, 364, + /* 2090 */ 364, 364, 364, 364, 364, 364, 364, 364, 364, 364, + /* 2100 */ 364, 364, 364, 364, 364, 364, 364, 364, 364, 364, + /* 2110 */ 364, 364, 312, 364, 364, 315, 316, 317, 318, 319, + /* 2120 */ 320, 364, 322, 364, }; -#define YY_SHIFT_COUNT (624) +#define YY_SHIFT_COUNT (635) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1815) +#define YY_SHIFT_MAX (1866) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 728, 0, 0, 48, 208, 208, 208, 208, 256, 256, /* 10 */ 208, 208, 416, 464, 624, 464, 464, 464, 464, 464, /* 20 */ 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, - /* 30 */ 464, 464, 464, 464, 464, 464, 464, 464, 129, 129, - /* 40 */ 202, 202, 202, 1463, 1463, 1463, 1463, 592, 196, 69, - /* 50 */ 8, 8, 7, 7, 12, 3, 69, 69, 8, 8, - /* 60 */ 8, 8, 8, 8, 8, 8, 59, 8, 8, 16, - /* 70 */ 274, 351, 16, 8, 8, 16, 8, 16, 16, 16, - /* 80 */ 8, 369, 706, 663, 836, 836, 143, 189, 226, 226, - /* 90 */ 226, 226, 226, 226, 226, 226, 226, 226, 226, 226, - /* 100 */ 226, 226, 226, 226, 226, 226, 226, 198, 3, 720, - /* 110 */ 720, 229, 554, 565, 565, 565, 424, 554, 414, 351, - /* 120 */ 16, 16, 293, 293, 462, 467, 600, 600, 600, 600, - /* 130 */ 600, 600, 600, 1173, 566, 270, 76, 443, 474, 193, - /* 140 */ 101, 192, 327, 204, 782, 767, 735, 644, 731, 644, - /* 150 */ 757, 757, 757, 360, 769, 858, 1054, 1032, 1033, 925, - /* 160 */ 1054, 1054, 1046, 950, 950, 1054, 1077, 1077, 1083, 59, - /* 170 */ 351, 59, 1090, 1092, 59, 1090, 59, 414, 1117, 59, - /* 180 */ 59, 1054, 59, 1077, 16, 16, 16, 16, 16, 16, - /* 190 */ 16, 16, 16, 16, 16, 1054, 1077, 293, 293, 1083, - /* 200 */ 369, 992, 351, 369, 1054, 1090, 369, 414, 1117, 369, - /* 210 */ 1175, 978, 982, 293, 978, 982, 293, 293, 16, 988, - /* 220 */ 1052, 996, 858, 1010, 414, 1203, 1191, 1003, 1014, 1018, - /* 230 */ 1003, 1014, 1003, 1014, 1174, 982, 293, 293, 982, 293, - /* 240 */ 1118, 414, 1117, 369, 462, 369, 414, 1207, 293, 467, - /* 250 */ 1054, 369, 1077, 2079, 2079, 2079, 2079, 2079, 2079, 2079, - /* 260 */ 65, 1215, 747, 872, 526, 918, 132, 19, 368, 140, - /* 270 */ 406, 88, 477, 477, 477, 477, 477, 477, 477, 477, - /* 280 */ 308, 376, 336, 572, 680, 422, 450, 450, 450, 450, - /* 290 */ 902, 26, 789, 826, 827, 849, 923, 936, 940, 930, - /* 300 */ 883, 916, 919, 885, 831, 751, 286, 926, 863, 927, - /* 310 */ 906, 928, 931, 934, 935, 941, 938, 948, 943, 947, - /* 320 */ 977, 980, 985, 986, 713, 955, 966, 1311, 1312, 1273, - /* 330 */ 1314, 1244, 1327, 1283, 1154, 1285, 1286, 1287, 1158, 1336, - /* 340 */ 1291, 1293, 1168, 1347, 1171, 1349, 1303, 1351, 1330, 1353, - /* 350 */ 1308, 1356, 1276, 1201, 1204, 1205, 1211, 1371, 1378, 1225, - /* 360 */ 1227, 1387, 1388, 1340, 1385, 1259, 1402, 1405, 1406, 1407, - /* 370 */ 1411, 1412, 1413, 1414, 1415, 1417, 1418, 1419, 1423, 1424, - /* 380 */ 1425, 1426, 1427, 1428, 1389, 1430, 1431, 1432, 1434, 1436, - /* 390 */ 1437, 1422, 1446, 1447, 1448, 1458, 1459, 1460, 1410, 1416, - /* 400 */ 1420, 1438, 1421, 1440, 1429, 1451, 1439, 1433, 1455, 1456, - /* 410 */ 1466, 1435, 1313, 1467, 1468, 1441, 1469, 1443, 1474, 1479, - /* 420 */ 1444, 1442, 1445, 1481, 1453, 1464, 1449, 1483, 1457, 1471, - /* 430 */ 1475, 1484, 1461, 1473, 1477, 1488, 1490, 1503, 1505, 1470, - /* 440 */ 1452, 1476, 1495, 1519, 1478, 1482, 1485, 1487, 1480, 1489, - /* 450 */ 1492, 1502, 1509, 1526, 1506, 1531, 1514, 1510, 1537, 1541, - /* 460 */ 1512, 1564, 1543, 1567, 1546, 1549, 1571, 1493, 1525, 1573, - /* 470 */ 1409, 1554, 1494, 1454, 1578, 1579, 1580, 1496, 1581, 1501, - /* 480 */ 1547, 1486, 1542, 1544, 1372, 1504, 1550, 1507, 1511, 1513, - /* 490 */ 1516, 1508, 1552, 1551, 1556, 1517, 1563, 1399, 1529, 1533, - /* 500 */ 1572, 1408, 1577, 1575, 1538, 1582, 1462, 1539, 1583, 1590, - /* 510 */ 1596, 1598, 1600, 1602, 1539, 1623, 1499, 1585, 1568, 1570, - /* 520 */ 1574, 1608, 1584, 1587, 1616, 1639, 1491, 1591, 1588, 1593, - /* 530 */ 1592, 1597, 1518, 1610, 1663, 1634, 1553, 1611, 1604, 1645, - /* 540 */ 1659, 1624, 1625, 1627, 1695, 1637, 1629, 1640, 1672, 1676, - /* 550 */ 1643, 1644, 1678, 1646, 1647, 1683, 1650, 1652, 1685, 1655, - /* 560 */ 1656, 1690, 1658, 1635, 1636, 1638, 1641, 1722, 1660, 1664, - /* 570 */ 1666, 1701, 1670, 1708, 1708, 1730, 1697, 1696, 1711, 1698, - /* 580 */ 1680, 1720, 1724, 1725, 1726, 1727, 1728, 1747, 1729, 1731, - /* 590 */ 1715, 1480, 1733, 1489, 1736, 1737, 1746, 1748, 1749, 1750, - /* 600 */ 1781, 1751, 1754, 1757, 1800, 1755, 1756, 1766, 1805, 1759, - /* 610 */ 1762, 1771, 1809, 1763, 1768, 1774, 1814, 1769, 1815, 1798, - /* 620 */ 1801, 1799, 1802, 1804, 1803, + /* 30 */ 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, + /* 40 */ 66, 66, 104, 104, 104, 18, 18, 18, 18, 12, + /* 50 */ 79, 207, 36, 36, 115, 115, 202, 153, 207, 207, + /* 60 */ 36, 36, 36, 36, 36, 36, 36, 36, 73, 36, + /* 70 */ 36, 180, 190, 495, 180, 36, 36, 180, 36, 180, + /* 80 */ 180, 180, 36, 475, 706, 478, 660, 660, 395, 189, + /* 90 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, + /* 100 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 198, + /* 110 */ 153, 4, 4, 281, 419, 553, 553, 553, 327, 419, + /* 120 */ 601, 495, 180, 180, 571, 571, 578, 727, 246, 246, + /* 130 */ 246, 246, 246, 246, 246, 1215, 351, 638, 350, 187, + /* 140 */ 449, 357, 353, 560, 614, 392, 757, 616, 620, 618, + /* 150 */ 659, 618, 165, 165, 165, 328, 696, 819, 1015, 994, + /* 160 */ 1004, 907, 1015, 1015, 1038, 937, 937, 1015, 1073, 1073, + /* 170 */ 1076, 73, 495, 73, 1084, 1087, 73, 1084, 73, 601, + /* 180 */ 1094, 73, 73, 1015, 73, 1073, 180, 180, 180, 180, + /* 190 */ 180, 180, 180, 180, 180, 180, 180, 1015, 1073, 571, + /* 200 */ 571, 1076, 475, 985, 495, 475, 1015, 1084, 475, 601, + /* 210 */ 1094, 475, 1150, 571, 974, 980, 571, 974, 980, 571, + /* 220 */ 571, 180, 981, 1059, 974, 983, 987, 997, 819, 1005, + /* 230 */ 601, 1207, 1190, 1000, 1018, 1010, 1000, 1018, 1000, 1018, + /* 240 */ 1168, 980, 571, 571, 980, 571, 1110, 601, 1094, 475, + /* 250 */ 578, 475, 601, 1197, 571, 727, 1015, 475, 1073, 2123, + /* 260 */ 2123, 2123, 2123, 2123, 2123, 2123, 481, 1467, 561, 119, + /* 270 */ 645, 887, 63, 13, 303, 203, 582, 374, 443, 607, + /* 280 */ 550, 550, 550, 550, 550, 550, 550, 550, 132, 382, + /* 290 */ 152, 400, 662, 137, 651, 651, 651, 651, 259, 829, + /* 300 */ 765, 786, 787, 788, 930, 953, 961, 878, 862, 864, + /* 310 */ 872, 913, 824, 752, 741, 897, 591, 904, 911, 908, + /* 320 */ 927, 933, 940, 943, 869, 873, 967, 970, 976, 977, + /* 330 */ 978, 979, 277, 838, 947, 1315, 1316, 1278, 1320, 1250, + /* 340 */ 1323, 1277, 1148, 1279, 1280, 1281, 1155, 1333, 1290, 1291, + /* 350 */ 1162, 1340, 1164, 1342, 1296, 1353, 1324, 1356, 1310, 1358, + /* 360 */ 1289, 1196, 1200, 1214, 1218, 1376, 1378, 1224, 1228, 1384, + /* 370 */ 1386, 1344, 1392, 1253, 1395, 1397, 1398, 1400, 1402, 1404, + /* 380 */ 1405, 1406, 1407, 1409, 1411, 1413, 1421, 1423, 1424, 1425, + /* 390 */ 1427, 1428, 1389, 1430, 1431, 1432, 1433, 1442, 1444, 1414, + /* 400 */ 1437, 1438, 1445, 1446, 1447, 1449, 1418, 1416, 1410, 1440, + /* 410 */ 1419, 1450, 1448, 1460, 1429, 1451, 1465, 1468, 1484, 1454, + /* 420 */ 1336, 1490, 1493, 1457, 1495, 1439, 1496, 1499, 1456, 1461, + /* 430 */ 1464, 1507, 1463, 1466, 1471, 1509, 1469, 1472, 1477, 1523, + /* 440 */ 1478, 1479, 1489, 1528, 1530, 1531, 1541, 1452, 1455, 1491, + /* 450 */ 1524, 1545, 1502, 1504, 1505, 1510, 1515, 1517, 1518, 1521, + /* 460 */ 1525, 1564, 1548, 1571, 1551, 1526, 1575, 1554, 1532, 1577, + /* 470 */ 1556, 1581, 1567, 1572, 1593, 1458, 1549, 1595, 1443, 1585, + /* 480 */ 1473, 1470, 1603, 1611, 1613, 1475, 1619, 1539, 1588, 1485, + /* 490 */ 1586, 1589, 1422, 1553, 1547, 1557, 1559, 1598, 1560, 1562, + /* 500 */ 1563, 1565, 1566, 1609, 1592, 1607, 1579, 1626, 1459, 1587, + /* 510 */ 1591, 1627, 1474, 1629, 1640, 1604, 1644, 1476, 1605, 1641, + /* 520 */ 1642, 1643, 1645, 1646, 1647, 1605, 1693, 1513, 1656, 1618, + /* 530 */ 1620, 1621, 1655, 1623, 1624, 1662, 1680, 1527, 1628, 1631, + /* 540 */ 1632, 1630, 1634, 1573, 1636, 1710, 1681, 1583, 1639, 1633, + /* 550 */ 1678, 1683, 1648, 1649, 1651, 1706, 1654, 1638, 1657, 1689, + /* 560 */ 1690, 1660, 1661, 1697, 1664, 1668, 1699, 1676, 1679, 1713, + /* 570 */ 1682, 1684, 1715, 1686, 1659, 1671, 1685, 1687, 1763, 1694, + /* 580 */ 1707, 1708, 1744, 1712, 1754, 1754, 1774, 1738, 1740, 1755, + /* 590 */ 1739, 1725, 1764, 1759, 1760, 1761, 1762, 1765, 1789, 1766, + /* 600 */ 1767, 1751, 1515, 1769, 1517, 1770, 1772, 1773, 1775, 1777, + /* 610 */ 1781, 1821, 1790, 1793, 1802, 1841, 1796, 1799, 1808, 1846, + /* 620 */ 1801, 1804, 1810, 1852, 1812, 1816, 1826, 1864, 1818, 1866, + /* 630 */ 1847, 1855, 1857, 1858, 1860, 1848, }; -#define YY_REDUCE_COUNT (259) -#define YY_REDUCE_MIN (-300) -#define YY_REDUCE_MAX (1758) +#define YY_REDUCE_COUNT (265) +#define YY_REDUCE_MIN (-340) +#define YY_REDUCE_MAX (1800) static const short yy_reduce_ofst[] = { - /* 0 */ -80, -241, 38, 242, 402, 615, 676, 737, 806, 815, - /* 10 */ -18, 190, 864, 920, 929, 1008, 1059, 1076, 1125, 1179, - /* 20 */ 1228, 1237, 1292, 1318, 1370, 1384, 1396, 1450, 1472, 1534, - /* 30 */ 1548, 1589, 1603, 1654, 1668, 1717, 1734, 1758, -232, 1065, - /* 40 */ -154, 138, 298, -269, 103, -257, 264, -242, -5, 21, - /* 50 */ -223, 54, -239, -33, -240, -280, -27, -6, -207, -156, - /* 60 */ 237, 285, 290, 300, 478, 487, -237, 509, 519, 155, - /* 70 */ -14, 142, 199, 611, 638, 252, 642, 262, 267, 354, - /* 80 */ 545, 370, -88, -300, -300, -300, -164, 240, -235, -224, - /* 90 */ 31, 125, 259, 266, 296, 337, 385, 386, 431, 440, - /* 100 */ 449, 515, 518, 612, 613, 614, 630, 261, -201, -42, - /* 110 */ 439, 225, -99, 79, 446, 455, 397, 434, 504, 332, - /* 120 */ -94, 589, 508, 516, 472, -41, -271, 529, 531, 557, - /* 130 */ 607, 692, 699, 391, 727, 714, 616, 628, 730, 691, - /* 140 */ 681, 736, 736, 777, 796, 766, 744, 724, 724, 724, - /* 150 */ 711, 717, 718, 732, 736, 765, 828, 772, 825, 783, - /* 160 */ 837, 838, 800, 807, 808, 844, 856, 857, 801, 852, - /* 170 */ 823, 860, 814, 816, 873, 820, 882, 840, 847, 886, - /* 180 */ 887, 889, 890, 898, 876, 878, 880, 881, 888, 892, - /* 190 */ 894, 895, 897, 899, 901, 903, 907, 877, 893, 851, - /* 200 */ 904, 865, 908, 921, 937, 891, 939, 911, 884, 942, - /* 210 */ 896, 848, 910, 932, 853, 915, 933, 946, 736, 866, - /* 220 */ 875, 879, 909, 724, 944, 951, 924, 905, 912, 913, - /* 230 */ 917, 922, 945, 952, 953, 964, 981, 990, 967, 991, - /* 240 */ 989, 1002, 993, 1030, 1017, 1035, 1007, 1016, 1009, 1034, - /* 250 */ 1047, 1044, 1055, 1000, 998, 1042, 1043, 1045, 1057, 1067, + /* 0 */ -233, -228, -20, -176, 606, 647, 725, 751, 803, 812, + /* 10 */ 188, 861, 902, 920, 971, 1032, 1049, 1100, 1154, 1163, + /* 20 */ 1217, 1268, 1282, 1337, 1346, 1360, 1436, 1453, 1462, 1514, + /* 30 */ 1538, 1555, 1606, 1617, 1658, 1669, 1722, 1734, 1748, 1800, + /* 40 */ 437, 1055, -5, 1121, 1225, -274, -269, 49, 417, -227, + /* 50 */ -47, 161, -231, -229, -244, -215, -340, -105, -133, 123, + /* 60 */ -197, -147, 363, 445, 452, 482, 514, 517, -171, 518, + /* 70 */ 543, 200, -24, 234, -201, 637, 677, 251, 524, -101, + /* 80 */ 345, 358, 708, -119, -152, -281, -281, -281, 78, -247, + /* 90 */ -135, -21, 229, 250, 293, 331, 334, 356, 384, 450, + /* 100 */ 468, 503, 504, 520, 603, 610, 611, 612, 613, 253, + /* 110 */ -83, 182, 183, -27, 373, -263, 172, 355, -155, 435, + /* 120 */ 499, -172, 346, 442, 405, 458, 487, 227, -271, 530, + /* 130 */ 552, 576, 581, 609, 670, 644, 704, 690, 594, 632, + /* 140 */ 742, 686, 650, 732, 732, 753, 756, 737, 702, 685, + /* 150 */ 685, 685, 671, 672, 673, 684, 732, 723, 794, 744, + /* 160 */ 804, 770, 822, 825, 793, 796, 797, 837, 847, 848, + /* 170 */ 792, 844, 814, 846, 806, 807, 853, 811, 855, 833, + /* 180 */ 823, 870, 879, 865, 880, 890, 866, 867, 868, 871, + /* 190 */ 877, 882, 883, 884, 885, 888, 889, 893, 895, 874, + /* 200 */ 881, 845, 896, 858, 898, 910, 916, 876, 915, 892, + /* 210 */ 891, 934, 894, 909, 849, 899, 912, 852, 905, 917, + /* 220 */ 918, 732, 854, 863, 886, 900, 914, 901, 919, 685, + /* 230 */ 948, 928, 921, 903, 906, 922, 924, 935, 926, 942, + /* 240 */ 929, 954, 969, 986, 956, 988, 968, 984, 972, 1020, + /* 250 */ 1007, 1022, 992, 1003, 1012, 1040, 1048, 1051, 1056, 1006, + /* 260 */ 999, 1042, 1044, 1045, 1058, 1071, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 10 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 20 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 30 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 40 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 50 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 60 */ 1375, 1375, 1375, 1375, 1375, 1375, 1444, 1375, 1375, 1375, - /* 70 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 80 */ 1375, 1442, 1591, 1375, 1755, 1375, 1375, 1375, 1375, 1375, - /* 90 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 100 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 110 */ 1375, 1444, 1375, 1766, 1766, 1766, 1442, 1375, 1375, 1375, - /* 120 */ 1375, 1375, 1375, 1375, 1538, 1375, 1375, 1375, 1375, 1375, - /* 130 */ 1375, 1375, 1375, 1624, 1375, 1375, 1832, 1375, 1375, 1630, - /* 140 */ 1790, 1375, 1375, 1375, 1375, 1491, 1782, 1758, 1772, 1759, - /* 150 */ 1817, 1817, 1817, 1775, 1375, 1786, 1375, 1375, 1375, 1616, - /* 160 */ 1375, 1375, 1596, 1593, 1593, 1375, 1375, 1375, 1375, 1444, - /* 170 */ 1375, 1444, 1375, 1375, 1444, 1375, 1444, 1375, 1375, 1444, - /* 180 */ 1444, 1375, 1444, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 190 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 200 */ 1442, 1626, 1375, 1442, 1375, 1375, 1442, 1375, 1375, 1442, - /* 210 */ 1375, 1797, 1795, 1375, 1797, 1795, 1375, 1375, 1375, 1809, - /* 220 */ 1805, 1788, 1786, 1772, 1375, 1375, 1375, 1823, 1819, 1835, - /* 230 */ 1823, 1819, 1823, 1819, 1375, 1795, 1375, 1375, 1795, 1375, - /* 240 */ 1601, 1375, 1375, 1442, 1375, 1442, 1375, 1507, 1375, 1375, - /* 250 */ 1375, 1442, 1375, 1618, 1632, 1541, 1541, 1541, 1445, 1380, - /* 260 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 270 */ 1375, 1503, 1699, 1808, 1807, 1731, 1730, 1729, 1727, 1698, - /* 280 */ 1375, 1375, 1375, 1375, 1375, 1375, 1692, 1693, 1691, 1690, - /* 290 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 300 */ 1375, 1375, 1375, 1756, 1375, 1820, 1824, 1375, 1375, 1375, - /* 310 */ 1675, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 320 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 330 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 340 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 350 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 360 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 370 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 380 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 390 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 400 */ 1409, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 410 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 420 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 430 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 440 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1472, 1471, - /* 450 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 460 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 470 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 480 */ 1375, 1375, 1779, 1789, 1375, 1375, 1375, 1375, 1375, 1375, - /* 490 */ 1375, 1375, 1375, 1375, 1675, 1375, 1806, 1375, 1765, 1761, - /* 500 */ 1375, 1375, 1757, 1375, 1375, 1818, 1375, 1375, 1375, 1375, - /* 510 */ 1375, 1375, 1375, 1375, 1375, 1751, 1375, 1724, 1375, 1375, - /* 520 */ 1375, 1375, 1375, 1375, 1375, 1375, 1686, 1375, 1375, 1375, - /* 530 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1674, - /* 540 */ 1375, 1715, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 550 */ 1535, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 560 */ 1375, 1375, 1375, 1520, 1518, 1517, 1516, 1375, 1513, 1375, - /* 570 */ 1375, 1375, 1375, 1544, 1543, 1375, 1375, 1375, 1375, 1375, - /* 580 */ 1375, 1464, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 590 */ 1375, 1455, 1375, 1454, 1375, 1375, 1375, 1375, 1375, 1375, - /* 600 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 610 */ 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, 1375, - /* 620 */ 1375, 1375, 1375, 1375, 1375, + /* 0 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 10 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 20 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 30 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 40 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 50 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 60 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1461, 1392, + /* 70 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 80 */ 1392, 1392, 1392, 1459, 1608, 1392, 1772, 1392, 1392, 1392, + /* 90 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 100 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 110 */ 1392, 1392, 1392, 1461, 1392, 1783, 1783, 1783, 1459, 1392, + /* 120 */ 1392, 1392, 1392, 1392, 1392, 1392, 1555, 1392, 1392, 1392, + /* 130 */ 1392, 1392, 1392, 1392, 1392, 1641, 1392, 1392, 1853, 1392, + /* 140 */ 1392, 1647, 1807, 1392, 1392, 1392, 1392, 1508, 1799, 1775, + /* 150 */ 1789, 1776, 1838, 1838, 1838, 1792, 1392, 1803, 1392, 1392, + /* 160 */ 1392, 1633, 1392, 1392, 1613, 1610, 1610, 1392, 1392, 1392, + /* 170 */ 1392, 1461, 1392, 1461, 1392, 1392, 1461, 1392, 1461, 1392, + /* 180 */ 1392, 1461, 1461, 1392, 1461, 1392, 1392, 1392, 1392, 1392, + /* 190 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 200 */ 1392, 1392, 1459, 1643, 1392, 1459, 1392, 1392, 1459, 1392, + /* 210 */ 1392, 1459, 1392, 1392, 1814, 1812, 1392, 1814, 1812, 1392, + /* 220 */ 1392, 1392, 1826, 1822, 1814, 1830, 1828, 1805, 1803, 1789, + /* 230 */ 1392, 1392, 1392, 1844, 1840, 1856, 1844, 1840, 1844, 1840, + /* 240 */ 1392, 1812, 1392, 1392, 1812, 1392, 1618, 1392, 1392, 1459, + /* 250 */ 1392, 1459, 1392, 1524, 1392, 1392, 1392, 1459, 1392, 1635, + /* 260 */ 1649, 1558, 1558, 1558, 1462, 1397, 1392, 1392, 1392, 1392, + /* 270 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1520, + /* 280 */ 1716, 1825, 1824, 1748, 1747, 1746, 1744, 1715, 1392, 1392, + /* 290 */ 1392, 1392, 1392, 1392, 1709, 1710, 1708, 1707, 1392, 1392, + /* 300 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 310 */ 1392, 1773, 1392, 1841, 1845, 1392, 1392, 1392, 1692, 1392, + /* 320 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 330 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 340 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 350 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 360 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 370 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 380 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 390 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 400 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1426, 1392, + /* 410 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 420 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 430 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 440 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 450 */ 1392, 1392, 1392, 1392, 1392, 1392, 1489, 1488, 1392, 1392, + /* 460 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 470 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 480 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 490 */ 1796, 1806, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 500 */ 1392, 1392, 1392, 1392, 1392, 1692, 1392, 1823, 1392, 1782, + /* 510 */ 1778, 1392, 1392, 1774, 1392, 1392, 1839, 1392, 1392, 1392, + /* 520 */ 1392, 1392, 1392, 1392, 1392, 1392, 1768, 1392, 1741, 1392, + /* 530 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1703, 1392, 1392, + /* 540 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 550 */ 1691, 1392, 1732, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 560 */ 1392, 1552, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 570 */ 1392, 1392, 1392, 1392, 1537, 1535, 1534, 1533, 1392, 1530, + /* 580 */ 1392, 1392, 1392, 1392, 1561, 1560, 1392, 1392, 1392, 1392, + /* 590 */ 1392, 1392, 1481, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 600 */ 1392, 1392, 1472, 1392, 1471, 1392, 1392, 1392, 1392, 1392, + /* 610 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 620 */ 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, 1392, + /* 630 */ 1392, 1392, 1392, 1392, 1392, 1392, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1044,6 +1057,8 @@ static const YYCODETYPE yyFallback[] = { 0, /* LINEAR => nothing */ 0, /* NEXT => nothing */ 0, /* HAVING => nothing */ + 0, /* RANGE => nothing */ + 0, /* EVERY => nothing */ 0, /* ORDER => nothing */ 0, /* SLIMIT => nothing */ 0, /* SOFFSET => nothing */ @@ -1052,12 +1067,12 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ID => nothing */ - 233, /* NK_BITNOT => ID */ - 233, /* INSERT => ID */ - 233, /* VALUES => ID */ - 233, /* IMPORT => ID */ - 233, /* NK_SEMI => ID */ - 233, /* FILE => ID */ + 235, /* NK_BITNOT => ID */ + 235, /* INSERT => ID */ + 235, /* VALUES => ID */ + 235, /* IMPORT => ID */ + 235, /* NK_SEMI => ID */ + 235, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -1371,140 +1386,144 @@ static const char *const yyTokenName[] = { /* 223 */ "LINEAR", /* 224 */ "NEXT", /* 225 */ "HAVING", - /* 226 */ "ORDER", - /* 227 */ "SLIMIT", - /* 228 */ "SOFFSET", - /* 229 */ "LIMIT", - /* 230 */ "OFFSET", - /* 231 */ "ASC", - /* 232 */ "NULLS", - /* 233 */ "ID", - /* 234 */ "NK_BITNOT", - /* 235 */ "INSERT", - /* 236 */ "VALUES", - /* 237 */ "IMPORT", - /* 238 */ "NK_SEMI", - /* 239 */ "FILE", - /* 240 */ "cmd", - /* 241 */ "account_options", - /* 242 */ "alter_account_options", - /* 243 */ "literal", - /* 244 */ "alter_account_option", - /* 245 */ "user_name", - /* 246 */ "privileges", - /* 247 */ "priv_level", - /* 248 */ "priv_type_list", - /* 249 */ "priv_type", - /* 250 */ "db_name", - /* 251 */ "dnode_endpoint", - /* 252 */ "not_exists_opt", - /* 253 */ "db_options", - /* 254 */ "exists_opt", - /* 255 */ "alter_db_options", - /* 256 */ "integer_list", - /* 257 */ "variable_list", - /* 258 */ "retention_list", - /* 259 */ "alter_db_option", - /* 260 */ "retention", - /* 261 */ "full_table_name", - /* 262 */ "column_def_list", - /* 263 */ "tags_def_opt", - /* 264 */ "table_options", - /* 265 */ "multi_create_clause", - /* 266 */ "tags_def", - /* 267 */ "multi_drop_clause", - /* 268 */ "alter_table_clause", - /* 269 */ "alter_table_options", - /* 270 */ "column_name", - /* 271 */ "type_name", - /* 272 */ "signed_literal", - /* 273 */ "create_subtable_clause", - /* 274 */ "specific_tags_opt", - /* 275 */ "literal_list", - /* 276 */ "drop_table_clause", - /* 277 */ "col_name_list", - /* 278 */ "table_name", - /* 279 */ "column_def", - /* 280 */ "duration_list", - /* 281 */ "rollup_func_list", - /* 282 */ "alter_table_option", - /* 283 */ "duration_literal", - /* 284 */ "rollup_func_name", - /* 285 */ "function_name", - /* 286 */ "col_name", - /* 287 */ "db_name_cond_opt", - /* 288 */ "like_pattern_opt", - /* 289 */ "table_name_cond", - /* 290 */ "from_db_opt", - /* 291 */ "index_name", - /* 292 */ "index_options", - /* 293 */ "func_list", - /* 294 */ "sliding_opt", - /* 295 */ "func", - /* 296 */ "expression_list", - /* 297 */ "topic_name", - /* 298 */ "query_expression", - /* 299 */ "cgroup_name", - /* 300 */ "analyze_opt", - /* 301 */ "explain_options", - /* 302 */ "agg_func_opt", - /* 303 */ "bufsize_opt", - /* 304 */ "stream_name", - /* 305 */ "stream_options", - /* 306 */ "into_opt", - /* 307 */ "dnode_list", - /* 308 */ "where_clause_opt", - /* 309 */ "signed", - /* 310 */ "literal_func", - /* 311 */ "table_alias", - /* 312 */ "column_alias", - /* 313 */ "expression", - /* 314 */ "pseudo_column", - /* 315 */ "column_reference", - /* 316 */ "function_expression", - /* 317 */ "subquery", - /* 318 */ "star_func", - /* 319 */ "star_func_para_list", - /* 320 */ "noarg_func", - /* 321 */ "other_para_list", - /* 322 */ "star_func_para", - /* 323 */ "predicate", - /* 324 */ "compare_op", - /* 325 */ "in_op", - /* 326 */ "in_predicate_value", - /* 327 */ "boolean_value_expression", - /* 328 */ "boolean_primary", - /* 329 */ "common_expression", - /* 330 */ "from_clause", - /* 331 */ "table_reference_list", - /* 332 */ "table_reference", - /* 333 */ "table_primary", - /* 334 */ "joined_table", - /* 335 */ "alias_opt", - /* 336 */ "parenthesized_joined_table", - /* 337 */ "join_type", - /* 338 */ "search_condition", - /* 339 */ "query_specification", - /* 340 */ "set_quantifier_opt", - /* 341 */ "select_list", - /* 342 */ "partition_by_clause_opt", - /* 343 */ "twindow_clause_opt", - /* 344 */ "group_by_clause_opt", - /* 345 */ "having_clause_opt", - /* 346 */ "select_sublist", - /* 347 */ "select_item", - /* 348 */ "fill_opt", - /* 349 */ "fill_mode", - /* 350 */ "group_by_list", - /* 351 */ "query_expression_body", - /* 352 */ "order_by_clause_opt", - /* 353 */ "slimit_clause_opt", - /* 354 */ "limit_clause_opt", - /* 355 */ "query_primary", - /* 356 */ "sort_specification_list", - /* 357 */ "sort_specification", - /* 358 */ "ordering_specification_opt", - /* 359 */ "null_ordering_opt", + /* 226 */ "RANGE", + /* 227 */ "EVERY", + /* 228 */ "ORDER", + /* 229 */ "SLIMIT", + /* 230 */ "SOFFSET", + /* 231 */ "LIMIT", + /* 232 */ "OFFSET", + /* 233 */ "ASC", + /* 234 */ "NULLS", + /* 235 */ "ID", + /* 236 */ "NK_BITNOT", + /* 237 */ "INSERT", + /* 238 */ "VALUES", + /* 239 */ "IMPORT", + /* 240 */ "NK_SEMI", + /* 241 */ "FILE", + /* 242 */ "cmd", + /* 243 */ "account_options", + /* 244 */ "alter_account_options", + /* 245 */ "literal", + /* 246 */ "alter_account_option", + /* 247 */ "user_name", + /* 248 */ "privileges", + /* 249 */ "priv_level", + /* 250 */ "priv_type_list", + /* 251 */ "priv_type", + /* 252 */ "db_name", + /* 253 */ "dnode_endpoint", + /* 254 */ "not_exists_opt", + /* 255 */ "db_options", + /* 256 */ "exists_opt", + /* 257 */ "alter_db_options", + /* 258 */ "integer_list", + /* 259 */ "variable_list", + /* 260 */ "retention_list", + /* 261 */ "alter_db_option", + /* 262 */ "retention", + /* 263 */ "full_table_name", + /* 264 */ "column_def_list", + /* 265 */ "tags_def_opt", + /* 266 */ "table_options", + /* 267 */ "multi_create_clause", + /* 268 */ "tags_def", + /* 269 */ "multi_drop_clause", + /* 270 */ "alter_table_clause", + /* 271 */ "alter_table_options", + /* 272 */ "column_name", + /* 273 */ "type_name", + /* 274 */ "signed_literal", + /* 275 */ "create_subtable_clause", + /* 276 */ "specific_tags_opt", + /* 277 */ "literal_list", + /* 278 */ "drop_table_clause", + /* 279 */ "col_name_list", + /* 280 */ "table_name", + /* 281 */ "column_def", + /* 282 */ "duration_list", + /* 283 */ "rollup_func_list", + /* 284 */ "alter_table_option", + /* 285 */ "duration_literal", + /* 286 */ "rollup_func_name", + /* 287 */ "function_name", + /* 288 */ "col_name", + /* 289 */ "db_name_cond_opt", + /* 290 */ "like_pattern_opt", + /* 291 */ "table_name_cond", + /* 292 */ "from_db_opt", + /* 293 */ "index_name", + /* 294 */ "index_options", + /* 295 */ "func_list", + /* 296 */ "sliding_opt", + /* 297 */ "func", + /* 298 */ "expression_list", + /* 299 */ "topic_name", + /* 300 */ "query_expression", + /* 301 */ "cgroup_name", + /* 302 */ "analyze_opt", + /* 303 */ "explain_options", + /* 304 */ "agg_func_opt", + /* 305 */ "bufsize_opt", + /* 306 */ "stream_name", + /* 307 */ "stream_options", + /* 308 */ "into_opt", + /* 309 */ "dnode_list", + /* 310 */ "where_clause_opt", + /* 311 */ "signed", + /* 312 */ "literal_func", + /* 313 */ "table_alias", + /* 314 */ "column_alias", + /* 315 */ "expression", + /* 316 */ "pseudo_column", + /* 317 */ "column_reference", + /* 318 */ "function_expression", + /* 319 */ "subquery", + /* 320 */ "star_func", + /* 321 */ "star_func_para_list", + /* 322 */ "noarg_func", + /* 323 */ "other_para_list", + /* 324 */ "star_func_para", + /* 325 */ "predicate", + /* 326 */ "compare_op", + /* 327 */ "in_op", + /* 328 */ "in_predicate_value", + /* 329 */ "boolean_value_expression", + /* 330 */ "boolean_primary", + /* 331 */ "common_expression", + /* 332 */ "from_clause", + /* 333 */ "table_reference_list", + /* 334 */ "table_reference", + /* 335 */ "table_primary", + /* 336 */ "joined_table", + /* 337 */ "alias_opt", + /* 338 */ "parenthesized_joined_table", + /* 339 */ "join_type", + /* 340 */ "search_condition", + /* 341 */ "query_specification", + /* 342 */ "set_quantifier_opt", + /* 343 */ "select_list", + /* 344 */ "partition_by_clause_opt", + /* 345 */ "range_opt", + /* 346 */ "every_opt", + /* 347 */ "fill_opt", + /* 348 */ "twindow_clause_opt", + /* 349 */ "group_by_clause_opt", + /* 350 */ "having_clause_opt", + /* 351 */ "select_sublist", + /* 352 */ "select_item", + /* 353 */ "fill_mode", + /* 354 */ "group_by_list", + /* 355 */ "query_expression_body", + /* 356 */ "order_by_clause_opt", + /* 357 */ "slimit_clause_opt", + /* 358 */ "limit_clause_opt", + /* 359 */ "query_primary", + /* 360 */ "sort_specification_list", + /* 361 */ "sort_specification", + /* 362 */ "ordering_specification_opt", + /* 363 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1908,7 +1927,7 @@ static const char *const yyRuleName[] = { /* 393 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", /* 394 */ "join_type ::=", /* 395 */ "join_type ::= INNER", - /* 396 */ "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", + /* 396 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", /* 397 */ "set_quantifier_opt ::=", /* 398 */ "set_quantifier_opt ::= DISTINCT", /* 399 */ "set_quantifier_opt ::= ALL", @@ -1945,33 +1964,37 @@ static const char *const yyRuleName[] = { /* 430 */ "group_by_list ::= group_by_list NK_COMMA expression", /* 431 */ "having_clause_opt ::=", /* 432 */ "having_clause_opt ::= HAVING search_condition", - /* 433 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 434 */ "query_expression_body ::= query_primary", - /* 435 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 436 */ "query_expression_body ::= query_expression_body UNION query_expression_body", - /* 437 */ "query_primary ::= query_specification", - /* 438 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", - /* 439 */ "order_by_clause_opt ::=", - /* 440 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 441 */ "slimit_clause_opt ::=", - /* 442 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 443 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 444 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 445 */ "limit_clause_opt ::=", - /* 446 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 447 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 448 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 449 */ "subquery ::= NK_LP query_expression NK_RP", - /* 450 */ "search_condition ::= common_expression", - /* 451 */ "sort_specification_list ::= sort_specification", - /* 452 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 453 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 454 */ "ordering_specification_opt ::=", - /* 455 */ "ordering_specification_opt ::= ASC", - /* 456 */ "ordering_specification_opt ::= DESC", - /* 457 */ "null_ordering_opt ::=", - /* 458 */ "null_ordering_opt ::= NULLS FIRST", - /* 459 */ "null_ordering_opt ::= NULLS LAST", + /* 433 */ "range_opt ::=", + /* 434 */ "range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP", + /* 435 */ "every_opt ::=", + /* 436 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 437 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 438 */ "query_expression_body ::= query_primary", + /* 439 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 440 */ "query_expression_body ::= query_expression_body UNION query_expression_body", + /* 441 */ "query_primary ::= query_specification", + /* 442 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", + /* 443 */ "order_by_clause_opt ::=", + /* 444 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 445 */ "slimit_clause_opt ::=", + /* 446 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 447 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 448 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 449 */ "limit_clause_opt ::=", + /* 450 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 451 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 452 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 453 */ "subquery ::= NK_LP query_expression NK_RP", + /* 454 */ "search_condition ::= common_expression", + /* 455 */ "sort_specification_list ::= sort_specification", + /* 456 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 457 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 458 */ "ordering_specification_opt ::=", + /* 459 */ "ordering_specification_opt ::= ASC", + /* 460 */ "ordering_specification_opt ::= DESC", + /* 461 */ "null_ordering_opt ::=", + /* 462 */ "null_ordering_opt ::= NULLS FIRST", + /* 463 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2098,174 +2121,176 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 240: /* cmd */ - case 243: /* literal */ - case 253: /* db_options */ - case 255: /* alter_db_options */ - case 260: /* retention */ - case 261: /* full_table_name */ - case 264: /* table_options */ - case 268: /* alter_table_clause */ - case 269: /* alter_table_options */ - case 272: /* signed_literal */ - case 273: /* create_subtable_clause */ - case 276: /* drop_table_clause */ - case 279: /* column_def */ - case 283: /* duration_literal */ - case 284: /* rollup_func_name */ - case 286: /* col_name */ - case 287: /* db_name_cond_opt */ - case 288: /* like_pattern_opt */ - case 289: /* table_name_cond */ - case 290: /* from_db_opt */ - case 292: /* index_options */ - case 294: /* sliding_opt */ - case 295: /* func */ - case 298: /* query_expression */ - case 301: /* explain_options */ - case 305: /* stream_options */ - case 306: /* into_opt */ - case 308: /* where_clause_opt */ - case 309: /* signed */ - case 310: /* literal_func */ - case 313: /* expression */ - case 314: /* pseudo_column */ - case 315: /* column_reference */ - case 316: /* function_expression */ - case 317: /* subquery */ - case 322: /* star_func_para */ - case 323: /* predicate */ - case 326: /* in_predicate_value */ - case 327: /* boolean_value_expression */ - case 328: /* boolean_primary */ - case 329: /* common_expression */ - case 330: /* from_clause */ - case 331: /* table_reference_list */ - case 332: /* table_reference */ - case 333: /* table_primary */ - case 334: /* joined_table */ - case 336: /* parenthesized_joined_table */ - case 338: /* search_condition */ - case 339: /* query_specification */ - case 343: /* twindow_clause_opt */ - case 345: /* having_clause_opt */ - case 347: /* select_item */ - case 348: /* fill_opt */ - case 351: /* query_expression_body */ - case 353: /* slimit_clause_opt */ - case 354: /* limit_clause_opt */ - case 355: /* query_primary */ - case 357: /* sort_specification */ + case 242: /* cmd */ + case 245: /* literal */ + case 255: /* db_options */ + case 257: /* alter_db_options */ + case 262: /* retention */ + case 263: /* full_table_name */ + case 266: /* table_options */ + case 270: /* alter_table_clause */ + case 271: /* alter_table_options */ + case 274: /* signed_literal */ + case 275: /* create_subtable_clause */ + case 278: /* drop_table_clause */ + case 281: /* column_def */ + case 285: /* duration_literal */ + case 286: /* rollup_func_name */ + case 288: /* col_name */ + case 289: /* db_name_cond_opt */ + case 290: /* like_pattern_opt */ + case 291: /* table_name_cond */ + case 292: /* from_db_opt */ + case 294: /* index_options */ + case 296: /* sliding_opt */ + case 297: /* func */ + case 300: /* query_expression */ + case 303: /* explain_options */ + case 307: /* stream_options */ + case 308: /* into_opt */ + case 310: /* where_clause_opt */ + case 311: /* signed */ + case 312: /* literal_func */ + case 315: /* expression */ + case 316: /* pseudo_column */ + case 317: /* column_reference */ + case 318: /* function_expression */ + case 319: /* subquery */ + case 324: /* star_func_para */ + case 325: /* predicate */ + case 328: /* in_predicate_value */ + case 329: /* boolean_value_expression */ + case 330: /* boolean_primary */ + case 331: /* common_expression */ + case 332: /* from_clause */ + case 333: /* table_reference_list */ + case 334: /* table_reference */ + case 335: /* table_primary */ + case 336: /* joined_table */ + case 338: /* parenthesized_joined_table */ + case 340: /* search_condition */ + case 341: /* query_specification */ + case 345: /* range_opt */ + case 346: /* every_opt */ + case 347: /* fill_opt */ + case 348: /* twindow_clause_opt */ + case 350: /* having_clause_opt */ + case 352: /* select_item */ + case 355: /* query_expression_body */ + case 357: /* slimit_clause_opt */ + case 358: /* limit_clause_opt */ + case 359: /* query_primary */ + case 361: /* sort_specification */ { - nodesDestroyNode((yypminor->yy632)); + nodesDestroyNode((yypminor->yy392)); } break; - case 241: /* account_options */ - case 242: /* alter_account_options */ - case 244: /* alter_account_option */ - case 303: /* bufsize_opt */ + case 243: /* account_options */ + case 244: /* alter_account_options */ + case 246: /* alter_account_option */ + case 305: /* bufsize_opt */ { } break; - case 245: /* user_name */ - case 247: /* priv_level */ - case 250: /* db_name */ - case 251: /* dnode_endpoint */ - case 270: /* column_name */ - case 278: /* table_name */ - case 285: /* function_name */ - case 291: /* index_name */ - case 297: /* topic_name */ - case 299: /* cgroup_name */ - case 304: /* stream_name */ - case 311: /* table_alias */ - case 312: /* column_alias */ - case 318: /* star_func */ - case 320: /* noarg_func */ - case 335: /* alias_opt */ + case 247: /* user_name */ + case 249: /* priv_level */ + case 252: /* db_name */ + case 253: /* dnode_endpoint */ + case 272: /* column_name */ + case 280: /* table_name */ + case 287: /* function_name */ + case 293: /* index_name */ + case 299: /* topic_name */ + case 301: /* cgroup_name */ + case 306: /* stream_name */ + case 313: /* table_alias */ + case 314: /* column_alias */ + case 320: /* star_func */ + case 322: /* noarg_func */ + case 337: /* alias_opt */ { } break; - case 246: /* privileges */ - case 248: /* priv_type_list */ - case 249: /* priv_type */ + case 248: /* privileges */ + case 250: /* priv_type_list */ + case 251: /* priv_type */ { } break; - case 252: /* not_exists_opt */ - case 254: /* exists_opt */ - case 300: /* analyze_opt */ - case 302: /* agg_func_opt */ - case 340: /* set_quantifier_opt */ + case 254: /* not_exists_opt */ + case 256: /* exists_opt */ + case 302: /* analyze_opt */ + case 304: /* agg_func_opt */ + case 342: /* set_quantifier_opt */ { } break; - case 256: /* integer_list */ - case 257: /* variable_list */ - case 258: /* retention_list */ - case 262: /* column_def_list */ - case 263: /* tags_def_opt */ - case 265: /* multi_create_clause */ - case 266: /* tags_def */ - case 267: /* multi_drop_clause */ - case 274: /* specific_tags_opt */ - case 275: /* literal_list */ - case 277: /* col_name_list */ - case 280: /* duration_list */ - case 281: /* rollup_func_list */ - case 293: /* func_list */ - case 296: /* expression_list */ - case 307: /* dnode_list */ - case 319: /* star_func_para_list */ - case 321: /* other_para_list */ - case 341: /* select_list */ - case 342: /* partition_by_clause_opt */ - case 344: /* group_by_clause_opt */ - case 346: /* select_sublist */ - case 350: /* group_by_list */ - case 352: /* order_by_clause_opt */ - case 356: /* sort_specification_list */ + case 258: /* integer_list */ + case 259: /* variable_list */ + case 260: /* retention_list */ + case 264: /* column_def_list */ + case 265: /* tags_def_opt */ + case 267: /* multi_create_clause */ + case 268: /* tags_def */ + case 269: /* multi_drop_clause */ + case 276: /* specific_tags_opt */ + case 277: /* literal_list */ + case 279: /* col_name_list */ + case 282: /* duration_list */ + case 283: /* rollup_func_list */ + case 295: /* func_list */ + case 298: /* expression_list */ + case 309: /* dnode_list */ + case 321: /* star_func_para_list */ + case 323: /* other_para_list */ + case 343: /* select_list */ + case 344: /* partition_by_clause_opt */ + case 349: /* group_by_clause_opt */ + case 351: /* select_sublist */ + case 354: /* group_by_list */ + case 356: /* order_by_clause_opt */ + case 360: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy424)); + nodesDestroyList((yypminor->yy600)); } break; - case 259: /* alter_db_option */ - case 282: /* alter_table_option */ + case 261: /* alter_db_option */ + case 284: /* alter_table_option */ { } break; - case 271: /* type_name */ + case 273: /* type_name */ { } break; - case 324: /* compare_op */ - case 325: /* in_op */ + case 326: /* compare_op */ + case 327: /* in_op */ { } break; - case 337: /* join_type */ + case 339: /* join_type */ { } break; - case 349: /* fill_mode */ + case 353: /* fill_mode */ { } break; - case 358: /* ordering_specification_opt */ + case 362: /* ordering_specification_opt */ { } break; - case 359: /* null_ordering_opt */ + case 363: /* null_ordering_opt */ { } @@ -2564,466 +2589,470 @@ 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[] = { - { 240, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 240, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 241, 0 }, /* (2) account_options ::= */ - { 241, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 241, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 241, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 241, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 241, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 241, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 241, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 241, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 241, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 242, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 242, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 244, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 244, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 244, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 244, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 244, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 244, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 244, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 244, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 244, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 244, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 240, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 240, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 240, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 240, -3 }, /* (27) cmd ::= DROP USER user_name */ - { 240, -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */ - { 240, -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */ - { 246, -1 }, /* (30) privileges ::= ALL */ - { 246, -1 }, /* (31) privileges ::= priv_type_list */ - { 248, -1 }, /* (32) priv_type_list ::= priv_type */ - { 248, -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - { 249, -1 }, /* (34) priv_type ::= READ */ - { 249, -1 }, /* (35) priv_type ::= WRITE */ - { 247, -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */ - { 247, -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */ - { 240, -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */ - { 240, -5 }, /* (39) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ - { 240, -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */ - { 240, -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */ - { 240, -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 240, -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 240, -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */ - { 240, -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 251, -1 }, /* (46) dnode_endpoint ::= NK_STRING */ - { 251, -1 }, /* (47) dnode_endpoint ::= NK_ID */ - { 251, -1 }, /* (48) dnode_endpoint ::= NK_IPTOKEN */ - { 240, -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */ - { 240, -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 240, -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 240, -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */ - { 240, -2 }, /* (61) cmd ::= USE db_name */ - { 240, -4 }, /* (62) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 252, -3 }, /* (63) not_exists_opt ::= IF NOT EXISTS */ - { 252, 0 }, /* (64) not_exists_opt ::= */ - { 254, -2 }, /* (65) exists_opt ::= IF EXISTS */ - { 254, 0 }, /* (66) exists_opt ::= */ - { 253, 0 }, /* (67) db_options ::= */ - { 253, -3 }, /* (68) db_options ::= db_options BUFFER NK_INTEGER */ - { 253, -3 }, /* (69) db_options ::= db_options CACHELAST NK_INTEGER */ - { 253, -3 }, /* (70) db_options ::= db_options COMP NK_INTEGER */ - { 253, -3 }, /* (71) db_options ::= db_options DURATION NK_INTEGER */ - { 253, -3 }, /* (72) db_options ::= db_options DURATION NK_VARIABLE */ - { 253, -3 }, /* (73) db_options ::= db_options FSYNC NK_INTEGER */ - { 253, -3 }, /* (74) db_options ::= db_options MAXROWS NK_INTEGER */ - { 253, -3 }, /* (75) db_options ::= db_options MINROWS NK_INTEGER */ - { 253, -3 }, /* (76) db_options ::= db_options KEEP integer_list */ - { 253, -3 }, /* (77) db_options ::= db_options KEEP variable_list */ - { 253, -3 }, /* (78) db_options ::= db_options PAGES NK_INTEGER */ - { 253, -3 }, /* (79) db_options ::= db_options PAGESIZE NK_INTEGER */ - { 253, -3 }, /* (80) db_options ::= db_options PRECISION NK_STRING */ - { 253, -3 }, /* (81) db_options ::= db_options REPLICA NK_INTEGER */ - { 253, -3 }, /* (82) db_options ::= db_options STRICT NK_INTEGER */ - { 253, -3 }, /* (83) db_options ::= db_options WAL NK_INTEGER */ - { 253, -3 }, /* (84) db_options ::= db_options VGROUPS NK_INTEGER */ - { 253, -3 }, /* (85) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 253, -3 }, /* (86) db_options ::= db_options RETENTIONS retention_list */ - { 253, -3 }, /* (87) db_options ::= db_options SCHEMALESS NK_INTEGER */ - { 255, -1 }, /* (88) alter_db_options ::= alter_db_option */ - { 255, -2 }, /* (89) alter_db_options ::= alter_db_options alter_db_option */ - { 259, -2 }, /* (90) alter_db_option ::= BUFFER NK_INTEGER */ - { 259, -2 }, /* (91) alter_db_option ::= CACHELAST NK_INTEGER */ - { 259, -2 }, /* (92) alter_db_option ::= FSYNC NK_INTEGER */ - { 259, -2 }, /* (93) alter_db_option ::= KEEP integer_list */ - { 259, -2 }, /* (94) alter_db_option ::= KEEP variable_list */ - { 259, -2 }, /* (95) alter_db_option ::= PAGES NK_INTEGER */ - { 259, -2 }, /* (96) alter_db_option ::= REPLICA NK_INTEGER */ - { 259, -2 }, /* (97) alter_db_option ::= STRICT NK_INTEGER */ - { 259, -2 }, /* (98) alter_db_option ::= WAL NK_INTEGER */ - { 256, -1 }, /* (99) integer_list ::= NK_INTEGER */ - { 256, -3 }, /* (100) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 257, -1 }, /* (101) variable_list ::= NK_VARIABLE */ - { 257, -3 }, /* (102) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 258, -1 }, /* (103) retention_list ::= retention */ - { 258, -3 }, /* (104) retention_list ::= retention_list NK_COMMA retention */ - { 260, -3 }, /* (105) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 240, -9 }, /* (106) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 240, -3 }, /* (107) cmd ::= CREATE TABLE multi_create_clause */ - { 240, -9 }, /* (108) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 240, -3 }, /* (109) cmd ::= DROP TABLE multi_drop_clause */ - { 240, -4 }, /* (110) cmd ::= DROP STABLE exists_opt full_table_name */ - { 240, -3 }, /* (111) cmd ::= ALTER TABLE alter_table_clause */ - { 240, -3 }, /* (112) cmd ::= ALTER STABLE alter_table_clause */ - { 268, -2 }, /* (113) alter_table_clause ::= full_table_name alter_table_options */ - { 268, -5 }, /* (114) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 268, -4 }, /* (115) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 268, -5 }, /* (116) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 268, -5 }, /* (117) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 268, -5 }, /* (118) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 268, -4 }, /* (119) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 268, -5 }, /* (120) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 268, -5 }, /* (121) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 268, -6 }, /* (122) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - { 265, -1 }, /* (123) multi_create_clause ::= create_subtable_clause */ - { 265, -2 }, /* (124) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 273, -10 }, /* (125) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ - { 267, -1 }, /* (126) multi_drop_clause ::= drop_table_clause */ - { 267, -2 }, /* (127) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 276, -2 }, /* (128) drop_table_clause ::= exists_opt full_table_name */ - { 274, 0 }, /* (129) specific_tags_opt ::= */ - { 274, -3 }, /* (130) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 261, -1 }, /* (131) full_table_name ::= table_name */ - { 261, -3 }, /* (132) full_table_name ::= db_name NK_DOT table_name */ - { 262, -1 }, /* (133) column_def_list ::= column_def */ - { 262, -3 }, /* (134) column_def_list ::= column_def_list NK_COMMA column_def */ - { 279, -2 }, /* (135) column_def ::= column_name type_name */ - { 279, -4 }, /* (136) column_def ::= column_name type_name COMMENT NK_STRING */ - { 271, -1 }, /* (137) type_name ::= BOOL */ - { 271, -1 }, /* (138) type_name ::= TINYINT */ - { 271, -1 }, /* (139) type_name ::= SMALLINT */ - { 271, -1 }, /* (140) type_name ::= INT */ - { 271, -1 }, /* (141) type_name ::= INTEGER */ - { 271, -1 }, /* (142) type_name ::= BIGINT */ - { 271, -1 }, /* (143) type_name ::= FLOAT */ - { 271, -1 }, /* (144) type_name ::= DOUBLE */ - { 271, -4 }, /* (145) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 271, -1 }, /* (146) type_name ::= TIMESTAMP */ - { 271, -4 }, /* (147) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 271, -2 }, /* (148) type_name ::= TINYINT UNSIGNED */ - { 271, -2 }, /* (149) type_name ::= SMALLINT UNSIGNED */ - { 271, -2 }, /* (150) type_name ::= INT UNSIGNED */ - { 271, -2 }, /* (151) type_name ::= BIGINT UNSIGNED */ - { 271, -1 }, /* (152) type_name ::= JSON */ - { 271, -4 }, /* (153) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 271, -1 }, /* (154) type_name ::= MEDIUMBLOB */ - { 271, -1 }, /* (155) type_name ::= BLOB */ - { 271, -4 }, /* (156) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 271, -1 }, /* (157) type_name ::= DECIMAL */ - { 271, -4 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 271, -6 }, /* (159) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 263, 0 }, /* (160) tags_def_opt ::= */ - { 263, -1 }, /* (161) tags_def_opt ::= tags_def */ - { 266, -4 }, /* (162) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 264, 0 }, /* (163) table_options ::= */ - { 264, -3 }, /* (164) table_options ::= table_options COMMENT NK_STRING */ - { 264, -3 }, /* (165) table_options ::= table_options MAX_DELAY duration_list */ - { 264, -3 }, /* (166) table_options ::= table_options WATERMARK duration_list */ - { 264, -5 }, /* (167) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - { 264, -3 }, /* (168) table_options ::= table_options TTL NK_INTEGER */ - { 264, -5 }, /* (169) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 269, -1 }, /* (170) alter_table_options ::= alter_table_option */ - { 269, -2 }, /* (171) alter_table_options ::= alter_table_options alter_table_option */ - { 282, -2 }, /* (172) alter_table_option ::= COMMENT NK_STRING */ - { 282, -2 }, /* (173) alter_table_option ::= TTL NK_INTEGER */ - { 280, -1 }, /* (174) duration_list ::= duration_literal */ - { 280, -3 }, /* (175) duration_list ::= duration_list NK_COMMA duration_literal */ - { 281, -1 }, /* (176) rollup_func_list ::= rollup_func_name */ - { 281, -3 }, /* (177) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - { 284, -1 }, /* (178) rollup_func_name ::= function_name */ - { 284, -1 }, /* (179) rollup_func_name ::= FIRST */ - { 284, -1 }, /* (180) rollup_func_name ::= LAST */ - { 277, -1 }, /* (181) col_name_list ::= col_name */ - { 277, -3 }, /* (182) col_name_list ::= col_name_list NK_COMMA col_name */ - { 286, -1 }, /* (183) col_name ::= column_name */ - { 240, -2 }, /* (184) cmd ::= SHOW DNODES */ - { 240, -2 }, /* (185) cmd ::= SHOW USERS */ - { 240, -2 }, /* (186) cmd ::= SHOW DATABASES */ - { 240, -4 }, /* (187) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 240, -4 }, /* (188) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 240, -3 }, /* (189) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 240, -2 }, /* (190) cmd ::= SHOW MNODES */ - { 240, -2 }, /* (191) cmd ::= SHOW MODULES */ - { 240, -2 }, /* (192) cmd ::= SHOW QNODES */ - { 240, -2 }, /* (193) cmd ::= SHOW FUNCTIONS */ - { 240, -5 }, /* (194) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 240, -2 }, /* (195) cmd ::= SHOW STREAMS */ - { 240, -2 }, /* (196) cmd ::= SHOW ACCOUNTS */ - { 240, -2 }, /* (197) cmd ::= SHOW APPS */ - { 240, -2 }, /* (198) cmd ::= SHOW CONNECTIONS */ - { 240, -2 }, /* (199) cmd ::= SHOW LICENCE */ - { 240, -2 }, /* (200) cmd ::= SHOW GRANTS */ - { 240, -4 }, /* (201) cmd ::= SHOW CREATE DATABASE db_name */ - { 240, -4 }, /* (202) cmd ::= SHOW CREATE TABLE full_table_name */ - { 240, -4 }, /* (203) cmd ::= SHOW CREATE STABLE full_table_name */ - { 240, -2 }, /* (204) cmd ::= SHOW QUERIES */ - { 240, -2 }, /* (205) cmd ::= SHOW SCORES */ - { 240, -2 }, /* (206) cmd ::= SHOW TOPICS */ - { 240, -2 }, /* (207) cmd ::= SHOW VARIABLES */ - { 240, -2 }, /* (208) cmd ::= SHOW BNODES */ - { 240, -2 }, /* (209) cmd ::= SHOW SNODES */ - { 240, -2 }, /* (210) cmd ::= SHOW CLUSTER */ - { 240, -2 }, /* (211) cmd ::= SHOW TRANSACTIONS */ - { 240, -4 }, /* (212) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - { 287, 0 }, /* (213) db_name_cond_opt ::= */ - { 287, -2 }, /* (214) db_name_cond_opt ::= db_name NK_DOT */ - { 288, 0 }, /* (215) like_pattern_opt ::= */ - { 288, -2 }, /* (216) like_pattern_opt ::= LIKE NK_STRING */ - { 289, -1 }, /* (217) table_name_cond ::= table_name */ - { 290, 0 }, /* (218) from_db_opt ::= */ - { 290, -2 }, /* (219) from_db_opt ::= FROM db_name */ - { 240, -8 }, /* (220) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 240, -10 }, /* (221) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 240, -6 }, /* (222) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 292, 0 }, /* (223) index_options ::= */ - { 292, -9 }, /* (224) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 292, -11 }, /* (225) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 293, -1 }, /* (226) func_list ::= func */ - { 293, -3 }, /* (227) func_list ::= func_list NK_COMMA func */ - { 295, -4 }, /* (228) func ::= function_name NK_LP expression_list NK_RP */ - { 240, -6 }, /* (229) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 240, -7 }, /* (230) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ - { 240, -7 }, /* (231) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ - { 240, -4 }, /* (232) cmd ::= DROP TOPIC exists_opt topic_name */ - { 240, -7 }, /* (233) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - { 240, -2 }, /* (234) cmd ::= DESC full_table_name */ - { 240, -2 }, /* (235) cmd ::= DESCRIBE full_table_name */ - { 240, -3 }, /* (236) cmd ::= RESET QUERY CACHE */ - { 240, -4 }, /* (237) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 300, 0 }, /* (238) analyze_opt ::= */ - { 300, -1 }, /* (239) analyze_opt ::= ANALYZE */ - { 301, 0 }, /* (240) explain_options ::= */ - { 301, -3 }, /* (241) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 301, -3 }, /* (242) explain_options ::= explain_options RATIO NK_FLOAT */ - { 240, -6 }, /* (243) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 240, -10 }, /* (244) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 240, -4 }, /* (245) cmd ::= DROP FUNCTION exists_opt function_name */ - { 302, 0 }, /* (246) agg_func_opt ::= */ - { 302, -1 }, /* (247) agg_func_opt ::= AGGREGATE */ - { 303, 0 }, /* (248) bufsize_opt ::= */ - { 303, -2 }, /* (249) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 240, -8 }, /* (250) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ - { 240, -4 }, /* (251) cmd ::= DROP STREAM exists_opt stream_name */ - { 306, 0 }, /* (252) into_opt ::= */ - { 306, -2 }, /* (253) into_opt ::= INTO full_table_name */ - { 305, 0 }, /* (254) stream_options ::= */ - { 305, -3 }, /* (255) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 305, -3 }, /* (256) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 305, -4 }, /* (257) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - { 305, -3 }, /* (258) stream_options ::= stream_options WATERMARK duration_literal */ - { 240, -3 }, /* (259) cmd ::= KILL CONNECTION NK_INTEGER */ - { 240, -3 }, /* (260) cmd ::= KILL QUERY NK_STRING */ - { 240, -3 }, /* (261) cmd ::= KILL TRANSACTION NK_INTEGER */ - { 240, -2 }, /* (262) cmd ::= BALANCE VGROUP */ - { 240, -4 }, /* (263) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 240, -4 }, /* (264) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 240, -3 }, /* (265) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 307, -2 }, /* (266) dnode_list ::= DNODE NK_INTEGER */ - { 307, -3 }, /* (267) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 240, -3 }, /* (268) cmd ::= SYNCDB db_name REPLICA */ - { 240, -4 }, /* (269) cmd ::= DELETE FROM full_table_name where_clause_opt */ - { 240, -1 }, /* (270) cmd ::= query_expression */ - { 243, -1 }, /* (271) literal ::= NK_INTEGER */ - { 243, -1 }, /* (272) literal ::= NK_FLOAT */ - { 243, -1 }, /* (273) literal ::= NK_STRING */ - { 243, -1 }, /* (274) literal ::= NK_BOOL */ - { 243, -2 }, /* (275) literal ::= TIMESTAMP NK_STRING */ - { 243, -1 }, /* (276) literal ::= duration_literal */ - { 243, -1 }, /* (277) literal ::= NULL */ - { 243, -1 }, /* (278) literal ::= NK_QUESTION */ - { 283, -1 }, /* (279) duration_literal ::= NK_VARIABLE */ - { 309, -1 }, /* (280) signed ::= NK_INTEGER */ - { 309, -2 }, /* (281) signed ::= NK_PLUS NK_INTEGER */ - { 309, -2 }, /* (282) signed ::= NK_MINUS NK_INTEGER */ - { 309, -1 }, /* (283) signed ::= NK_FLOAT */ - { 309, -2 }, /* (284) signed ::= NK_PLUS NK_FLOAT */ - { 309, -2 }, /* (285) signed ::= NK_MINUS NK_FLOAT */ - { 272, -1 }, /* (286) signed_literal ::= signed */ - { 272, -1 }, /* (287) signed_literal ::= NK_STRING */ - { 272, -1 }, /* (288) signed_literal ::= NK_BOOL */ - { 272, -2 }, /* (289) signed_literal ::= TIMESTAMP NK_STRING */ - { 272, -1 }, /* (290) signed_literal ::= duration_literal */ - { 272, -1 }, /* (291) signed_literal ::= NULL */ - { 272, -1 }, /* (292) signed_literal ::= literal_func */ - { 275, -1 }, /* (293) literal_list ::= signed_literal */ - { 275, -3 }, /* (294) literal_list ::= literal_list NK_COMMA signed_literal */ - { 250, -1 }, /* (295) db_name ::= NK_ID */ - { 278, -1 }, /* (296) table_name ::= NK_ID */ - { 270, -1 }, /* (297) column_name ::= NK_ID */ - { 285, -1 }, /* (298) function_name ::= NK_ID */ - { 311, -1 }, /* (299) table_alias ::= NK_ID */ - { 312, -1 }, /* (300) column_alias ::= NK_ID */ - { 245, -1 }, /* (301) user_name ::= NK_ID */ - { 291, -1 }, /* (302) index_name ::= NK_ID */ - { 297, -1 }, /* (303) topic_name ::= NK_ID */ - { 304, -1 }, /* (304) stream_name ::= NK_ID */ - { 299, -1 }, /* (305) cgroup_name ::= NK_ID */ - { 313, -1 }, /* (306) expression ::= literal */ - { 313, -1 }, /* (307) expression ::= pseudo_column */ - { 313, -1 }, /* (308) expression ::= column_reference */ - { 313, -1 }, /* (309) expression ::= function_expression */ - { 313, -1 }, /* (310) expression ::= subquery */ - { 313, -3 }, /* (311) expression ::= NK_LP expression NK_RP */ - { 313, -2 }, /* (312) expression ::= NK_PLUS expression */ - { 313, -2 }, /* (313) expression ::= NK_MINUS expression */ - { 313, -3 }, /* (314) expression ::= expression NK_PLUS expression */ - { 313, -3 }, /* (315) expression ::= expression NK_MINUS expression */ - { 313, -3 }, /* (316) expression ::= expression NK_STAR expression */ - { 313, -3 }, /* (317) expression ::= expression NK_SLASH expression */ - { 313, -3 }, /* (318) expression ::= expression NK_REM expression */ - { 313, -3 }, /* (319) expression ::= column_reference NK_ARROW NK_STRING */ - { 296, -1 }, /* (320) expression_list ::= expression */ - { 296, -3 }, /* (321) expression_list ::= expression_list NK_COMMA expression */ - { 315, -1 }, /* (322) column_reference ::= column_name */ - { 315, -3 }, /* (323) column_reference ::= table_name NK_DOT column_name */ - { 314, -1 }, /* (324) pseudo_column ::= ROWTS */ - { 314, -1 }, /* (325) pseudo_column ::= TBNAME */ - { 314, -3 }, /* (326) pseudo_column ::= table_name NK_DOT TBNAME */ - { 314, -1 }, /* (327) pseudo_column ::= QSTARTTS */ - { 314, -1 }, /* (328) pseudo_column ::= QENDTS */ - { 314, -1 }, /* (329) pseudo_column ::= WSTARTTS */ - { 314, -1 }, /* (330) pseudo_column ::= WENDTS */ - { 314, -1 }, /* (331) pseudo_column ::= WDURATION */ - { 316, -4 }, /* (332) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 316, -4 }, /* (333) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 316, -6 }, /* (334) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 316, -1 }, /* (335) function_expression ::= literal_func */ - { 310, -3 }, /* (336) literal_func ::= noarg_func NK_LP NK_RP */ - { 310, -1 }, /* (337) literal_func ::= NOW */ - { 320, -1 }, /* (338) noarg_func ::= NOW */ - { 320, -1 }, /* (339) noarg_func ::= TODAY */ - { 320, -1 }, /* (340) noarg_func ::= TIMEZONE */ - { 318, -1 }, /* (341) star_func ::= COUNT */ - { 318, -1 }, /* (342) star_func ::= FIRST */ - { 318, -1 }, /* (343) star_func ::= LAST */ - { 318, -1 }, /* (344) star_func ::= LAST_ROW */ - { 319, -1 }, /* (345) star_func_para_list ::= NK_STAR */ - { 319, -1 }, /* (346) star_func_para_list ::= other_para_list */ - { 321, -1 }, /* (347) other_para_list ::= star_func_para */ - { 321, -3 }, /* (348) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 322, -1 }, /* (349) star_func_para ::= expression */ - { 322, -3 }, /* (350) star_func_para ::= table_name NK_DOT NK_STAR */ - { 323, -3 }, /* (351) predicate ::= expression compare_op expression */ - { 323, -5 }, /* (352) predicate ::= expression BETWEEN expression AND expression */ - { 323, -6 }, /* (353) predicate ::= expression NOT BETWEEN expression AND expression */ - { 323, -3 }, /* (354) predicate ::= expression IS NULL */ - { 323, -4 }, /* (355) predicate ::= expression IS NOT NULL */ - { 323, -3 }, /* (356) predicate ::= expression in_op in_predicate_value */ - { 324, -1 }, /* (357) compare_op ::= NK_LT */ - { 324, -1 }, /* (358) compare_op ::= NK_GT */ - { 324, -1 }, /* (359) compare_op ::= NK_LE */ - { 324, -1 }, /* (360) compare_op ::= NK_GE */ - { 324, -1 }, /* (361) compare_op ::= NK_NE */ - { 324, -1 }, /* (362) compare_op ::= NK_EQ */ - { 324, -1 }, /* (363) compare_op ::= LIKE */ - { 324, -2 }, /* (364) compare_op ::= NOT LIKE */ - { 324, -1 }, /* (365) compare_op ::= MATCH */ - { 324, -1 }, /* (366) compare_op ::= NMATCH */ - { 324, -1 }, /* (367) compare_op ::= CONTAINS */ - { 325, -1 }, /* (368) in_op ::= IN */ - { 325, -2 }, /* (369) in_op ::= NOT IN */ - { 326, -3 }, /* (370) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 327, -1 }, /* (371) boolean_value_expression ::= boolean_primary */ - { 327, -2 }, /* (372) boolean_value_expression ::= NOT boolean_primary */ - { 327, -3 }, /* (373) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 327, -3 }, /* (374) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 328, -1 }, /* (375) boolean_primary ::= predicate */ - { 328, -3 }, /* (376) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 329, -1 }, /* (377) common_expression ::= expression */ - { 329, -1 }, /* (378) common_expression ::= boolean_value_expression */ - { 330, -2 }, /* (379) from_clause ::= FROM table_reference_list */ - { 331, -1 }, /* (380) table_reference_list ::= table_reference */ - { 331, -3 }, /* (381) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 332, -1 }, /* (382) table_reference ::= table_primary */ - { 332, -1 }, /* (383) table_reference ::= joined_table */ - { 333, -2 }, /* (384) table_primary ::= table_name alias_opt */ - { 333, -4 }, /* (385) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 333, -2 }, /* (386) table_primary ::= subquery alias_opt */ - { 333, -1 }, /* (387) table_primary ::= parenthesized_joined_table */ - { 335, 0 }, /* (388) alias_opt ::= */ - { 335, -1 }, /* (389) alias_opt ::= table_alias */ - { 335, -2 }, /* (390) alias_opt ::= AS table_alias */ - { 336, -3 }, /* (391) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 336, -3 }, /* (392) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 334, -6 }, /* (393) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 337, 0 }, /* (394) join_type ::= */ - { 337, -1 }, /* (395) join_type ::= INNER */ - { 339, -9 }, /* (396) 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 */ - { 340, 0 }, /* (397) set_quantifier_opt ::= */ - { 340, -1 }, /* (398) set_quantifier_opt ::= DISTINCT */ - { 340, -1 }, /* (399) set_quantifier_opt ::= ALL */ - { 341, -1 }, /* (400) select_list ::= NK_STAR */ - { 341, -1 }, /* (401) select_list ::= select_sublist */ - { 346, -1 }, /* (402) select_sublist ::= select_item */ - { 346, -3 }, /* (403) select_sublist ::= select_sublist NK_COMMA select_item */ - { 347, -1 }, /* (404) select_item ::= common_expression */ - { 347, -2 }, /* (405) select_item ::= common_expression column_alias */ - { 347, -3 }, /* (406) select_item ::= common_expression AS column_alias */ - { 347, -3 }, /* (407) select_item ::= table_name NK_DOT NK_STAR */ - { 308, 0 }, /* (408) where_clause_opt ::= */ - { 308, -2 }, /* (409) where_clause_opt ::= WHERE search_condition */ - { 342, 0 }, /* (410) partition_by_clause_opt ::= */ - { 342, -3 }, /* (411) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 343, 0 }, /* (412) twindow_clause_opt ::= */ - { 343, -6 }, /* (413) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 343, -4 }, /* (414) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 343, -6 }, /* (415) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 343, -8 }, /* (416) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 294, 0 }, /* (417) sliding_opt ::= */ - { 294, -4 }, /* (418) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 348, 0 }, /* (419) fill_opt ::= */ - { 348, -4 }, /* (420) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 348, -6 }, /* (421) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 349, -1 }, /* (422) fill_mode ::= NONE */ - { 349, -1 }, /* (423) fill_mode ::= PREV */ - { 349, -1 }, /* (424) fill_mode ::= NULL */ - { 349, -1 }, /* (425) fill_mode ::= LINEAR */ - { 349, -1 }, /* (426) fill_mode ::= NEXT */ - { 344, 0 }, /* (427) group_by_clause_opt ::= */ - { 344, -3 }, /* (428) group_by_clause_opt ::= GROUP BY group_by_list */ - { 350, -1 }, /* (429) group_by_list ::= expression */ - { 350, -3 }, /* (430) group_by_list ::= group_by_list NK_COMMA expression */ - { 345, 0 }, /* (431) having_clause_opt ::= */ - { 345, -2 }, /* (432) having_clause_opt ::= HAVING search_condition */ - { 298, -4 }, /* (433) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 351, -1 }, /* (434) query_expression_body ::= query_primary */ - { 351, -4 }, /* (435) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 351, -3 }, /* (436) query_expression_body ::= query_expression_body UNION query_expression_body */ - { 355, -1 }, /* (437) query_primary ::= query_specification */ - { 355, -6 }, /* (438) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ - { 352, 0 }, /* (439) order_by_clause_opt ::= */ - { 352, -3 }, /* (440) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 353, 0 }, /* (441) slimit_clause_opt ::= */ - { 353, -2 }, /* (442) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 353, -4 }, /* (443) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 353, -4 }, /* (444) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 354, 0 }, /* (445) limit_clause_opt ::= */ - { 354, -2 }, /* (446) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 354, -4 }, /* (447) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 354, -4 }, /* (448) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 317, -3 }, /* (449) subquery ::= NK_LP query_expression NK_RP */ - { 338, -1 }, /* (450) search_condition ::= common_expression */ - { 356, -1 }, /* (451) sort_specification_list ::= sort_specification */ - { 356, -3 }, /* (452) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 357, -3 }, /* (453) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 358, 0 }, /* (454) ordering_specification_opt ::= */ - { 358, -1 }, /* (455) ordering_specification_opt ::= ASC */ - { 358, -1 }, /* (456) ordering_specification_opt ::= DESC */ - { 359, 0 }, /* (457) null_ordering_opt ::= */ - { 359, -2 }, /* (458) null_ordering_opt ::= NULLS FIRST */ - { 359, -2 }, /* (459) null_ordering_opt ::= NULLS LAST */ + { 242, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 242, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 243, 0 }, /* (2) account_options ::= */ + { 243, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 243, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 243, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 243, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 243, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 243, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 243, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 243, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 243, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 244, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 244, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 246, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 246, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 246, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 246, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 246, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 246, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 246, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 246, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 246, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 246, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 242, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ + { 242, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 242, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + { 242, -3 }, /* (27) cmd ::= DROP USER user_name */ + { 242, -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */ + { 242, -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */ + { 248, -1 }, /* (30) privileges ::= ALL */ + { 248, -1 }, /* (31) privileges ::= priv_type_list */ + { 250, -1 }, /* (32) priv_type_list ::= priv_type */ + { 250, -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + { 251, -1 }, /* (34) priv_type ::= READ */ + { 251, -1 }, /* (35) priv_type ::= WRITE */ + { 249, -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */ + { 249, -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */ + { 242, -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */ + { 242, -5 }, /* (39) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + { 242, -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */ + { 242, -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */ + { 242, -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 242, -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 242, -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */ + { 242, -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 253, -1 }, /* (46) dnode_endpoint ::= NK_STRING */ + { 253, -1 }, /* (47) dnode_endpoint ::= NK_ID */ + { 253, -1 }, /* (48) dnode_endpoint ::= NK_IPTOKEN */ + { 242, -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */ + { 242, -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 242, -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 242, -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 242, -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 242, -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 242, -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 242, -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 242, -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 242, -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 242, -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 242, -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */ + { 242, -2 }, /* (61) cmd ::= USE db_name */ + { 242, -4 }, /* (62) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 254, -3 }, /* (63) not_exists_opt ::= IF NOT EXISTS */ + { 254, 0 }, /* (64) not_exists_opt ::= */ + { 256, -2 }, /* (65) exists_opt ::= IF EXISTS */ + { 256, 0 }, /* (66) exists_opt ::= */ + { 255, 0 }, /* (67) db_options ::= */ + { 255, -3 }, /* (68) db_options ::= db_options BUFFER NK_INTEGER */ + { 255, -3 }, /* (69) db_options ::= db_options CACHELAST NK_INTEGER */ + { 255, -3 }, /* (70) db_options ::= db_options COMP NK_INTEGER */ + { 255, -3 }, /* (71) db_options ::= db_options DURATION NK_INTEGER */ + { 255, -3 }, /* (72) db_options ::= db_options DURATION NK_VARIABLE */ + { 255, -3 }, /* (73) db_options ::= db_options FSYNC NK_INTEGER */ + { 255, -3 }, /* (74) db_options ::= db_options MAXROWS NK_INTEGER */ + { 255, -3 }, /* (75) db_options ::= db_options MINROWS NK_INTEGER */ + { 255, -3 }, /* (76) db_options ::= db_options KEEP integer_list */ + { 255, -3 }, /* (77) db_options ::= db_options KEEP variable_list */ + { 255, -3 }, /* (78) db_options ::= db_options PAGES NK_INTEGER */ + { 255, -3 }, /* (79) db_options ::= db_options PAGESIZE NK_INTEGER */ + { 255, -3 }, /* (80) db_options ::= db_options PRECISION NK_STRING */ + { 255, -3 }, /* (81) db_options ::= db_options REPLICA NK_INTEGER */ + { 255, -3 }, /* (82) db_options ::= db_options STRICT NK_INTEGER */ + { 255, -3 }, /* (83) db_options ::= db_options WAL NK_INTEGER */ + { 255, -3 }, /* (84) db_options ::= db_options VGROUPS NK_INTEGER */ + { 255, -3 }, /* (85) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 255, -3 }, /* (86) db_options ::= db_options RETENTIONS retention_list */ + { 255, -3 }, /* (87) db_options ::= db_options SCHEMALESS NK_INTEGER */ + { 257, -1 }, /* (88) alter_db_options ::= alter_db_option */ + { 257, -2 }, /* (89) alter_db_options ::= alter_db_options alter_db_option */ + { 261, -2 }, /* (90) alter_db_option ::= BUFFER NK_INTEGER */ + { 261, -2 }, /* (91) alter_db_option ::= CACHELAST NK_INTEGER */ + { 261, -2 }, /* (92) alter_db_option ::= FSYNC NK_INTEGER */ + { 261, -2 }, /* (93) alter_db_option ::= KEEP integer_list */ + { 261, -2 }, /* (94) alter_db_option ::= KEEP variable_list */ + { 261, -2 }, /* (95) alter_db_option ::= PAGES NK_INTEGER */ + { 261, -2 }, /* (96) alter_db_option ::= REPLICA NK_INTEGER */ + { 261, -2 }, /* (97) alter_db_option ::= STRICT NK_INTEGER */ + { 261, -2 }, /* (98) alter_db_option ::= WAL NK_INTEGER */ + { 258, -1 }, /* (99) integer_list ::= NK_INTEGER */ + { 258, -3 }, /* (100) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 259, -1 }, /* (101) variable_list ::= NK_VARIABLE */ + { 259, -3 }, /* (102) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 260, -1 }, /* (103) retention_list ::= retention */ + { 260, -3 }, /* (104) retention_list ::= retention_list NK_COMMA retention */ + { 262, -3 }, /* (105) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 242, -9 }, /* (106) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 242, -3 }, /* (107) cmd ::= CREATE TABLE multi_create_clause */ + { 242, -9 }, /* (108) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 242, -3 }, /* (109) cmd ::= DROP TABLE multi_drop_clause */ + { 242, -4 }, /* (110) cmd ::= DROP STABLE exists_opt full_table_name */ + { 242, -3 }, /* (111) cmd ::= ALTER TABLE alter_table_clause */ + { 242, -3 }, /* (112) cmd ::= ALTER STABLE alter_table_clause */ + { 270, -2 }, /* (113) alter_table_clause ::= full_table_name alter_table_options */ + { 270, -5 }, /* (114) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 270, -4 }, /* (115) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 270, -5 }, /* (116) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 270, -5 }, /* (117) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 270, -5 }, /* (118) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 270, -4 }, /* (119) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 270, -5 }, /* (120) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 270, -5 }, /* (121) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 270, -6 }, /* (122) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + { 267, -1 }, /* (123) multi_create_clause ::= create_subtable_clause */ + { 267, -2 }, /* (124) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 275, -10 }, /* (125) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ + { 269, -1 }, /* (126) multi_drop_clause ::= drop_table_clause */ + { 269, -2 }, /* (127) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 278, -2 }, /* (128) drop_table_clause ::= exists_opt full_table_name */ + { 276, 0 }, /* (129) specific_tags_opt ::= */ + { 276, -3 }, /* (130) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 263, -1 }, /* (131) full_table_name ::= table_name */ + { 263, -3 }, /* (132) full_table_name ::= db_name NK_DOT table_name */ + { 264, -1 }, /* (133) column_def_list ::= column_def */ + { 264, -3 }, /* (134) column_def_list ::= column_def_list NK_COMMA column_def */ + { 281, -2 }, /* (135) column_def ::= column_name type_name */ + { 281, -4 }, /* (136) column_def ::= column_name type_name COMMENT NK_STRING */ + { 273, -1 }, /* (137) type_name ::= BOOL */ + { 273, -1 }, /* (138) type_name ::= TINYINT */ + { 273, -1 }, /* (139) type_name ::= SMALLINT */ + { 273, -1 }, /* (140) type_name ::= INT */ + { 273, -1 }, /* (141) type_name ::= INTEGER */ + { 273, -1 }, /* (142) type_name ::= BIGINT */ + { 273, -1 }, /* (143) type_name ::= FLOAT */ + { 273, -1 }, /* (144) type_name ::= DOUBLE */ + { 273, -4 }, /* (145) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 273, -1 }, /* (146) type_name ::= TIMESTAMP */ + { 273, -4 }, /* (147) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 273, -2 }, /* (148) type_name ::= TINYINT UNSIGNED */ + { 273, -2 }, /* (149) type_name ::= SMALLINT UNSIGNED */ + { 273, -2 }, /* (150) type_name ::= INT UNSIGNED */ + { 273, -2 }, /* (151) type_name ::= BIGINT UNSIGNED */ + { 273, -1 }, /* (152) type_name ::= JSON */ + { 273, -4 }, /* (153) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 273, -1 }, /* (154) type_name ::= MEDIUMBLOB */ + { 273, -1 }, /* (155) type_name ::= BLOB */ + { 273, -4 }, /* (156) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 273, -1 }, /* (157) type_name ::= DECIMAL */ + { 273, -4 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 273, -6 }, /* (159) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 265, 0 }, /* (160) tags_def_opt ::= */ + { 265, -1 }, /* (161) tags_def_opt ::= tags_def */ + { 268, -4 }, /* (162) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 266, 0 }, /* (163) table_options ::= */ + { 266, -3 }, /* (164) table_options ::= table_options COMMENT NK_STRING */ + { 266, -3 }, /* (165) table_options ::= table_options MAX_DELAY duration_list */ + { 266, -3 }, /* (166) table_options ::= table_options WATERMARK duration_list */ + { 266, -5 }, /* (167) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + { 266, -3 }, /* (168) table_options ::= table_options TTL NK_INTEGER */ + { 266, -5 }, /* (169) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 271, -1 }, /* (170) alter_table_options ::= alter_table_option */ + { 271, -2 }, /* (171) alter_table_options ::= alter_table_options alter_table_option */ + { 284, -2 }, /* (172) alter_table_option ::= COMMENT NK_STRING */ + { 284, -2 }, /* (173) alter_table_option ::= TTL NK_INTEGER */ + { 282, -1 }, /* (174) duration_list ::= duration_literal */ + { 282, -3 }, /* (175) duration_list ::= duration_list NK_COMMA duration_literal */ + { 283, -1 }, /* (176) rollup_func_list ::= rollup_func_name */ + { 283, -3 }, /* (177) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + { 286, -1 }, /* (178) rollup_func_name ::= function_name */ + { 286, -1 }, /* (179) rollup_func_name ::= FIRST */ + { 286, -1 }, /* (180) rollup_func_name ::= LAST */ + { 279, -1 }, /* (181) col_name_list ::= col_name */ + { 279, -3 }, /* (182) col_name_list ::= col_name_list NK_COMMA col_name */ + { 288, -1 }, /* (183) col_name ::= column_name */ + { 242, -2 }, /* (184) cmd ::= SHOW DNODES */ + { 242, -2 }, /* (185) cmd ::= SHOW USERS */ + { 242, -2 }, /* (186) cmd ::= SHOW DATABASES */ + { 242, -4 }, /* (187) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 242, -4 }, /* (188) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 242, -3 }, /* (189) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 242, -2 }, /* (190) cmd ::= SHOW MNODES */ + { 242, -2 }, /* (191) cmd ::= SHOW MODULES */ + { 242, -2 }, /* (192) cmd ::= SHOW QNODES */ + { 242, -2 }, /* (193) cmd ::= SHOW FUNCTIONS */ + { 242, -5 }, /* (194) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 242, -2 }, /* (195) cmd ::= SHOW STREAMS */ + { 242, -2 }, /* (196) cmd ::= SHOW ACCOUNTS */ + { 242, -2 }, /* (197) cmd ::= SHOW APPS */ + { 242, -2 }, /* (198) cmd ::= SHOW CONNECTIONS */ + { 242, -2 }, /* (199) cmd ::= SHOW LICENCE */ + { 242, -2 }, /* (200) cmd ::= SHOW GRANTS */ + { 242, -4 }, /* (201) cmd ::= SHOW CREATE DATABASE db_name */ + { 242, -4 }, /* (202) cmd ::= SHOW CREATE TABLE full_table_name */ + { 242, -4 }, /* (203) cmd ::= SHOW CREATE STABLE full_table_name */ + { 242, -2 }, /* (204) cmd ::= SHOW QUERIES */ + { 242, -2 }, /* (205) cmd ::= SHOW SCORES */ + { 242, -2 }, /* (206) cmd ::= SHOW TOPICS */ + { 242, -2 }, /* (207) cmd ::= SHOW VARIABLES */ + { 242, -2 }, /* (208) cmd ::= SHOW BNODES */ + { 242, -2 }, /* (209) cmd ::= SHOW SNODES */ + { 242, -2 }, /* (210) cmd ::= SHOW CLUSTER */ + { 242, -2 }, /* (211) cmd ::= SHOW TRANSACTIONS */ + { 242, -4 }, /* (212) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + { 289, 0 }, /* (213) db_name_cond_opt ::= */ + { 289, -2 }, /* (214) db_name_cond_opt ::= db_name NK_DOT */ + { 290, 0 }, /* (215) like_pattern_opt ::= */ + { 290, -2 }, /* (216) like_pattern_opt ::= LIKE NK_STRING */ + { 291, -1 }, /* (217) table_name_cond ::= table_name */ + { 292, 0 }, /* (218) from_db_opt ::= */ + { 292, -2 }, /* (219) from_db_opt ::= FROM db_name */ + { 242, -8 }, /* (220) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 242, -10 }, /* (221) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 242, -6 }, /* (222) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 294, 0 }, /* (223) index_options ::= */ + { 294, -9 }, /* (224) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 294, -11 }, /* (225) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 295, -1 }, /* (226) func_list ::= func */ + { 295, -3 }, /* (227) func_list ::= func_list NK_COMMA func */ + { 297, -4 }, /* (228) func ::= function_name NK_LP expression_list NK_RP */ + { 242, -6 }, /* (229) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 242, -7 }, /* (230) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + { 242, -7 }, /* (231) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + { 242, -4 }, /* (232) cmd ::= DROP TOPIC exists_opt topic_name */ + { 242, -7 }, /* (233) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + { 242, -2 }, /* (234) cmd ::= DESC full_table_name */ + { 242, -2 }, /* (235) cmd ::= DESCRIBE full_table_name */ + { 242, -3 }, /* (236) cmd ::= RESET QUERY CACHE */ + { 242, -4 }, /* (237) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 302, 0 }, /* (238) analyze_opt ::= */ + { 302, -1 }, /* (239) analyze_opt ::= ANALYZE */ + { 303, 0 }, /* (240) explain_options ::= */ + { 303, -3 }, /* (241) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 303, -3 }, /* (242) explain_options ::= explain_options RATIO NK_FLOAT */ + { 242, -6 }, /* (243) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 242, -10 }, /* (244) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 242, -4 }, /* (245) cmd ::= DROP FUNCTION exists_opt function_name */ + { 304, 0 }, /* (246) agg_func_opt ::= */ + { 304, -1 }, /* (247) agg_func_opt ::= AGGREGATE */ + { 305, 0 }, /* (248) bufsize_opt ::= */ + { 305, -2 }, /* (249) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 242, -8 }, /* (250) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + { 242, -4 }, /* (251) cmd ::= DROP STREAM exists_opt stream_name */ + { 308, 0 }, /* (252) into_opt ::= */ + { 308, -2 }, /* (253) into_opt ::= INTO full_table_name */ + { 307, 0 }, /* (254) stream_options ::= */ + { 307, -3 }, /* (255) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 307, -3 }, /* (256) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 307, -4 }, /* (257) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + { 307, -3 }, /* (258) stream_options ::= stream_options WATERMARK duration_literal */ + { 242, -3 }, /* (259) cmd ::= KILL CONNECTION NK_INTEGER */ + { 242, -3 }, /* (260) cmd ::= KILL QUERY NK_STRING */ + { 242, -3 }, /* (261) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 242, -2 }, /* (262) cmd ::= BALANCE VGROUP */ + { 242, -4 }, /* (263) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 242, -4 }, /* (264) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 242, -3 }, /* (265) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 309, -2 }, /* (266) dnode_list ::= DNODE NK_INTEGER */ + { 309, -3 }, /* (267) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 242, -3 }, /* (268) cmd ::= SYNCDB db_name REPLICA */ + { 242, -4 }, /* (269) cmd ::= DELETE FROM full_table_name where_clause_opt */ + { 242, -1 }, /* (270) cmd ::= query_expression */ + { 245, -1 }, /* (271) literal ::= NK_INTEGER */ + { 245, -1 }, /* (272) literal ::= NK_FLOAT */ + { 245, -1 }, /* (273) literal ::= NK_STRING */ + { 245, -1 }, /* (274) literal ::= NK_BOOL */ + { 245, -2 }, /* (275) literal ::= TIMESTAMP NK_STRING */ + { 245, -1 }, /* (276) literal ::= duration_literal */ + { 245, -1 }, /* (277) literal ::= NULL */ + { 245, -1 }, /* (278) literal ::= NK_QUESTION */ + { 285, -1 }, /* (279) duration_literal ::= NK_VARIABLE */ + { 311, -1 }, /* (280) signed ::= NK_INTEGER */ + { 311, -2 }, /* (281) signed ::= NK_PLUS NK_INTEGER */ + { 311, -2 }, /* (282) signed ::= NK_MINUS NK_INTEGER */ + { 311, -1 }, /* (283) signed ::= NK_FLOAT */ + { 311, -2 }, /* (284) signed ::= NK_PLUS NK_FLOAT */ + { 311, -2 }, /* (285) signed ::= NK_MINUS NK_FLOAT */ + { 274, -1 }, /* (286) signed_literal ::= signed */ + { 274, -1 }, /* (287) signed_literal ::= NK_STRING */ + { 274, -1 }, /* (288) signed_literal ::= NK_BOOL */ + { 274, -2 }, /* (289) signed_literal ::= TIMESTAMP NK_STRING */ + { 274, -1 }, /* (290) signed_literal ::= duration_literal */ + { 274, -1 }, /* (291) signed_literal ::= NULL */ + { 274, -1 }, /* (292) signed_literal ::= literal_func */ + { 277, -1 }, /* (293) literal_list ::= signed_literal */ + { 277, -3 }, /* (294) literal_list ::= literal_list NK_COMMA signed_literal */ + { 252, -1 }, /* (295) db_name ::= NK_ID */ + { 280, -1 }, /* (296) table_name ::= NK_ID */ + { 272, -1 }, /* (297) column_name ::= NK_ID */ + { 287, -1 }, /* (298) function_name ::= NK_ID */ + { 313, -1 }, /* (299) table_alias ::= NK_ID */ + { 314, -1 }, /* (300) column_alias ::= NK_ID */ + { 247, -1 }, /* (301) user_name ::= NK_ID */ + { 293, -1 }, /* (302) index_name ::= NK_ID */ + { 299, -1 }, /* (303) topic_name ::= NK_ID */ + { 306, -1 }, /* (304) stream_name ::= NK_ID */ + { 301, -1 }, /* (305) cgroup_name ::= NK_ID */ + { 315, -1 }, /* (306) expression ::= literal */ + { 315, -1 }, /* (307) expression ::= pseudo_column */ + { 315, -1 }, /* (308) expression ::= column_reference */ + { 315, -1 }, /* (309) expression ::= function_expression */ + { 315, -1 }, /* (310) expression ::= subquery */ + { 315, -3 }, /* (311) expression ::= NK_LP expression NK_RP */ + { 315, -2 }, /* (312) expression ::= NK_PLUS expression */ + { 315, -2 }, /* (313) expression ::= NK_MINUS expression */ + { 315, -3 }, /* (314) expression ::= expression NK_PLUS expression */ + { 315, -3 }, /* (315) expression ::= expression NK_MINUS expression */ + { 315, -3 }, /* (316) expression ::= expression NK_STAR expression */ + { 315, -3 }, /* (317) expression ::= expression NK_SLASH expression */ + { 315, -3 }, /* (318) expression ::= expression NK_REM expression */ + { 315, -3 }, /* (319) expression ::= column_reference NK_ARROW NK_STRING */ + { 298, -1 }, /* (320) expression_list ::= expression */ + { 298, -3 }, /* (321) expression_list ::= expression_list NK_COMMA expression */ + { 317, -1 }, /* (322) column_reference ::= column_name */ + { 317, -3 }, /* (323) column_reference ::= table_name NK_DOT column_name */ + { 316, -1 }, /* (324) pseudo_column ::= ROWTS */ + { 316, -1 }, /* (325) pseudo_column ::= TBNAME */ + { 316, -3 }, /* (326) pseudo_column ::= table_name NK_DOT TBNAME */ + { 316, -1 }, /* (327) pseudo_column ::= QSTARTTS */ + { 316, -1 }, /* (328) pseudo_column ::= QENDTS */ + { 316, -1 }, /* (329) pseudo_column ::= WSTARTTS */ + { 316, -1 }, /* (330) pseudo_column ::= WENDTS */ + { 316, -1 }, /* (331) pseudo_column ::= WDURATION */ + { 318, -4 }, /* (332) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 318, -4 }, /* (333) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 318, -6 }, /* (334) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 318, -1 }, /* (335) function_expression ::= literal_func */ + { 312, -3 }, /* (336) literal_func ::= noarg_func NK_LP NK_RP */ + { 312, -1 }, /* (337) literal_func ::= NOW */ + { 322, -1 }, /* (338) noarg_func ::= NOW */ + { 322, -1 }, /* (339) noarg_func ::= TODAY */ + { 322, -1 }, /* (340) noarg_func ::= TIMEZONE */ + { 320, -1 }, /* (341) star_func ::= COUNT */ + { 320, -1 }, /* (342) star_func ::= FIRST */ + { 320, -1 }, /* (343) star_func ::= LAST */ + { 320, -1 }, /* (344) star_func ::= LAST_ROW */ + { 321, -1 }, /* (345) star_func_para_list ::= NK_STAR */ + { 321, -1 }, /* (346) star_func_para_list ::= other_para_list */ + { 323, -1 }, /* (347) other_para_list ::= star_func_para */ + { 323, -3 }, /* (348) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 324, -1 }, /* (349) star_func_para ::= expression */ + { 324, -3 }, /* (350) star_func_para ::= table_name NK_DOT NK_STAR */ + { 325, -3 }, /* (351) predicate ::= expression compare_op expression */ + { 325, -5 }, /* (352) predicate ::= expression BETWEEN expression AND expression */ + { 325, -6 }, /* (353) predicate ::= expression NOT BETWEEN expression AND expression */ + { 325, -3 }, /* (354) predicate ::= expression IS NULL */ + { 325, -4 }, /* (355) predicate ::= expression IS NOT NULL */ + { 325, -3 }, /* (356) predicate ::= expression in_op in_predicate_value */ + { 326, -1 }, /* (357) compare_op ::= NK_LT */ + { 326, -1 }, /* (358) compare_op ::= NK_GT */ + { 326, -1 }, /* (359) compare_op ::= NK_LE */ + { 326, -1 }, /* (360) compare_op ::= NK_GE */ + { 326, -1 }, /* (361) compare_op ::= NK_NE */ + { 326, -1 }, /* (362) compare_op ::= NK_EQ */ + { 326, -1 }, /* (363) compare_op ::= LIKE */ + { 326, -2 }, /* (364) compare_op ::= NOT LIKE */ + { 326, -1 }, /* (365) compare_op ::= MATCH */ + { 326, -1 }, /* (366) compare_op ::= NMATCH */ + { 326, -1 }, /* (367) compare_op ::= CONTAINS */ + { 327, -1 }, /* (368) in_op ::= IN */ + { 327, -2 }, /* (369) in_op ::= NOT IN */ + { 328, -3 }, /* (370) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 329, -1 }, /* (371) boolean_value_expression ::= boolean_primary */ + { 329, -2 }, /* (372) boolean_value_expression ::= NOT boolean_primary */ + { 329, -3 }, /* (373) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 329, -3 }, /* (374) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 330, -1 }, /* (375) boolean_primary ::= predicate */ + { 330, -3 }, /* (376) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 331, -1 }, /* (377) common_expression ::= expression */ + { 331, -1 }, /* (378) common_expression ::= boolean_value_expression */ + { 332, -2 }, /* (379) from_clause ::= FROM table_reference_list */ + { 333, -1 }, /* (380) table_reference_list ::= table_reference */ + { 333, -3 }, /* (381) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 334, -1 }, /* (382) table_reference ::= table_primary */ + { 334, -1 }, /* (383) table_reference ::= joined_table */ + { 335, -2 }, /* (384) table_primary ::= table_name alias_opt */ + { 335, -4 }, /* (385) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 335, -2 }, /* (386) table_primary ::= subquery alias_opt */ + { 335, -1 }, /* (387) table_primary ::= parenthesized_joined_table */ + { 337, 0 }, /* (388) alias_opt ::= */ + { 337, -1 }, /* (389) alias_opt ::= table_alias */ + { 337, -2 }, /* (390) alias_opt ::= AS table_alias */ + { 338, -3 }, /* (391) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 338, -3 }, /* (392) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 336, -6 }, /* (393) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 339, 0 }, /* (394) join_type ::= */ + { 339, -1 }, /* (395) join_type ::= INNER */ + { 341, -12 }, /* (396) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 342, 0 }, /* (397) set_quantifier_opt ::= */ + { 342, -1 }, /* (398) set_quantifier_opt ::= DISTINCT */ + { 342, -1 }, /* (399) set_quantifier_opt ::= ALL */ + { 343, -1 }, /* (400) select_list ::= NK_STAR */ + { 343, -1 }, /* (401) select_list ::= select_sublist */ + { 351, -1 }, /* (402) select_sublist ::= select_item */ + { 351, -3 }, /* (403) select_sublist ::= select_sublist NK_COMMA select_item */ + { 352, -1 }, /* (404) select_item ::= common_expression */ + { 352, -2 }, /* (405) select_item ::= common_expression column_alias */ + { 352, -3 }, /* (406) select_item ::= common_expression AS column_alias */ + { 352, -3 }, /* (407) select_item ::= table_name NK_DOT NK_STAR */ + { 310, 0 }, /* (408) where_clause_opt ::= */ + { 310, -2 }, /* (409) where_clause_opt ::= WHERE search_condition */ + { 344, 0 }, /* (410) partition_by_clause_opt ::= */ + { 344, -3 }, /* (411) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 348, 0 }, /* (412) twindow_clause_opt ::= */ + { 348, -6 }, /* (413) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 348, -4 }, /* (414) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 348, -6 }, /* (415) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 348, -8 }, /* (416) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 296, 0 }, /* (417) sliding_opt ::= */ + { 296, -4 }, /* (418) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 347, 0 }, /* (419) fill_opt ::= */ + { 347, -4 }, /* (420) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 347, -6 }, /* (421) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 353, -1 }, /* (422) fill_mode ::= NONE */ + { 353, -1 }, /* (423) fill_mode ::= PREV */ + { 353, -1 }, /* (424) fill_mode ::= NULL */ + { 353, -1 }, /* (425) fill_mode ::= LINEAR */ + { 353, -1 }, /* (426) fill_mode ::= NEXT */ + { 349, 0 }, /* (427) group_by_clause_opt ::= */ + { 349, -3 }, /* (428) group_by_clause_opt ::= GROUP BY group_by_list */ + { 354, -1 }, /* (429) group_by_list ::= expression */ + { 354, -3 }, /* (430) group_by_list ::= group_by_list NK_COMMA expression */ + { 350, 0 }, /* (431) having_clause_opt ::= */ + { 350, -2 }, /* (432) having_clause_opt ::= HAVING search_condition */ + { 345, 0 }, /* (433) range_opt ::= */ + { 345, -6 }, /* (434) range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ + { 346, 0 }, /* (435) every_opt ::= */ + { 346, -4 }, /* (436) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + { 300, -4 }, /* (437) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 355, -1 }, /* (438) query_expression_body ::= query_primary */ + { 355, -4 }, /* (439) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 355, -3 }, /* (440) query_expression_body ::= query_expression_body UNION query_expression_body */ + { 359, -1 }, /* (441) query_primary ::= query_specification */ + { 359, -6 }, /* (442) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + { 356, 0 }, /* (443) order_by_clause_opt ::= */ + { 356, -3 }, /* (444) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 357, 0 }, /* (445) slimit_clause_opt ::= */ + { 357, -2 }, /* (446) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 357, -4 }, /* (447) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 357, -4 }, /* (448) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 358, 0 }, /* (449) limit_clause_opt ::= */ + { 358, -2 }, /* (450) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 358, -4 }, /* (451) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 358, -4 }, /* (452) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 319, -3 }, /* (453) subquery ::= NK_LP query_expression NK_RP */ + { 340, -1 }, /* (454) search_condition ::= common_expression */ + { 360, -1 }, /* (455) sort_specification_list ::= sort_specification */ + { 360, -3 }, /* (456) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 361, -3 }, /* (457) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 362, 0 }, /* (458) ordering_specification_opt ::= */ + { 362, -1 }, /* (459) ordering_specification_opt ::= ASC */ + { 362, -1 }, /* (460) ordering_specification_opt ::= DESC */ + { 363, 0 }, /* (461) null_ordering_opt ::= */ + { 363, -2 }, /* (462) null_ordering_opt ::= NULLS FIRST */ + { 363, -2 }, /* (463) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3112,11 +3141,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,241,&yymsp[0].minor); + yy_destructor(yypParser,243,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,242,&yymsp[0].minor); + yy_destructor(yypParser,244,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3130,20 +3159,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,241,&yymsp[-2].minor); +{ yy_destructor(yypParser,243,&yymsp[-2].minor); { } - yy_destructor(yypParser,243,&yymsp[0].minor); + yy_destructor(yypParser,245,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,244,&yymsp[0].minor); +{ yy_destructor(yypParser,246,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,242,&yymsp[-1].minor); +{ yy_destructor(yypParser,244,&yymsp[-1].minor); { } - yy_destructor(yypParser,244,&yymsp[0].minor); + yy_destructor(yypParser,246,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3157,63 +3186,63 @@ 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,243,&yymsp[0].minor); + yy_destructor(yypParser,245,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy209, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy57, 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.yy209, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy57, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy57); } break; case 28: /* cmd ::= GRANT privileges ON priv_level TO user_name */ -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy189, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy389, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57); } break; case 29: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy189, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy389, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57); } break; case 30: /* privileges ::= ALL */ -{ yymsp[0].minor.yy189 = PRIVILEGE_TYPE_ALL; } +{ yymsp[0].minor.yy389 = PRIVILEGE_TYPE_ALL; } break; case 31: /* privileges ::= priv_type_list */ case 32: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==32); -{ yylhsminor.yy189 = yymsp[0].minor.yy189; } - yymsp[0].minor.yy189 = yylhsminor.yy189; +{ yylhsminor.yy389 = yymsp[0].minor.yy389; } + yymsp[0].minor.yy389 = yylhsminor.yy389; break; case 33: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy189 = yymsp[-2].minor.yy189 | yymsp[0].minor.yy189; } - yymsp[-2].minor.yy189 = yylhsminor.yy189; +{ yylhsminor.yy389 = yymsp[-2].minor.yy389 | yymsp[0].minor.yy389; } + yymsp[-2].minor.yy389 = yylhsminor.yy389; break; case 34: /* priv_type ::= READ */ -{ yymsp[0].minor.yy189 = PRIVILEGE_TYPE_READ; } +{ yymsp[0].minor.yy389 = PRIVILEGE_TYPE_READ; } break; case 35: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy189 = PRIVILEGE_TYPE_WRITE; } +{ yymsp[0].minor.yy389 = PRIVILEGE_TYPE_WRITE; } break; case 36: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy209 = yymsp[-2].minor.yy0; } - yymsp[-2].minor.yy209 = yylhsminor.yy209; +{ yylhsminor.yy57 = yymsp[-2].minor.yy0; } + yymsp[-2].minor.yy57 = yylhsminor.yy57; break; case 37: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy209 = yymsp[-2].minor.yy209; } - yymsp[-2].minor.yy209 = yylhsminor.yy209; +{ yylhsminor.yy57 = yymsp[-2].minor.yy57; } + yymsp[-2].minor.yy57 = yylhsminor.yy57; break; case 38: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy209, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy57, NULL); } break; case 39: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0); } break; case 40: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 41: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy57); } break; case 42: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -3248,8 +3277,8 @@ static YYACTIONTYPE yy_reduce( case 342: /* star_func ::= FIRST */ yytestcase(yyruleno==342); case 343: /* star_func ::= LAST */ yytestcase(yyruleno==343); case 344: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==344); -{ yylhsminor.yy209 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy209 = yylhsminor.yy209; +{ yylhsminor.yy57 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy57 = yylhsminor.yy57; break; case 49: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -3282,156 +3311,156 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 59: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy137, &yymsp[-1].minor.yy209, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy481, &yymsp[-1].minor.yy57, yymsp[0].minor.yy392); } break; case 60: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy481, &yymsp[0].minor.yy57); } break; case 61: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy57); } break; case 62: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy209, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy57, yymsp[0].minor.yy392); } break; case 63: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy137 = true; } +{ yymsp[-2].minor.yy481 = true; } break; case 64: /* not_exists_opt ::= */ case 66: /* exists_opt ::= */ yytestcase(yyruleno==66); case 238: /* analyze_opt ::= */ yytestcase(yyruleno==238); case 246: /* agg_func_opt ::= */ yytestcase(yyruleno==246); case 397: /* set_quantifier_opt ::= */ yytestcase(yyruleno==397); -{ yymsp[1].minor.yy137 = false; } +{ yymsp[1].minor.yy481 = false; } break; case 65: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy137 = true; } +{ yymsp[-1].minor.yy481 = true; } break; case 67: /* db_options ::= */ -{ yymsp[1].minor.yy632 = createDefaultDatabaseOptions(pCxt); } +{ yymsp[1].minor.yy392 = createDefaultDatabaseOptions(pCxt); } break; case 68: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 69: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 70: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 71: /* db_options ::= db_options DURATION NK_INTEGER */ case 72: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==72); -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 73: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 74: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 75: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 76: /* db_options ::= db_options KEEP integer_list */ case 77: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==77); -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_KEEP, yymsp[0].minor.yy424); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP, yymsp[0].minor.yy600); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 78: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 79: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 80: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 81: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 82: /* db_options ::= db_options STRICT NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 83: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 84: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 85: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 86: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_RETENTIONS, yymsp[0].minor.yy424); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_RETENTIONS, yymsp[0].minor.yy600); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 87: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 88: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy632 = createAlterDatabaseOptions(pCxt); yylhsminor.yy632 = setAlterDatabaseOption(pCxt, yylhsminor.yy632, &yymsp[0].minor.yy605); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterDatabaseOptions(pCxt); yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yylhsminor.yy392, &yymsp[0].minor.yy221); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 89: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy632 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy632, &yymsp[0].minor.yy605); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy392, &yymsp[0].minor.yy221); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 90: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy221.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } break; case 91: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy221.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } break; case 92: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy221.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } break; case 93: /* alter_db_option ::= KEEP integer_list */ case 94: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==94); -{ yymsp[-1].minor.yy605.type = DB_OPTION_KEEP; yymsp[-1].minor.yy605.pList = yymsp[0].minor.yy424; } +{ yymsp[-1].minor.yy221.type = DB_OPTION_KEEP; yymsp[-1].minor.yy221.pList = yymsp[0].minor.yy600; } break; case 95: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_PAGES; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy221.type = DB_OPTION_PAGES; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } break; case 96: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy221.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } break; case 97: /* alter_db_option ::= STRICT NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_STRICT; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy221.type = DB_OPTION_STRICT; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } break; case 98: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_WAL; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy221.type = DB_OPTION_WAL; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } break; case 99: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy424 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 100: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ case 267: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==267); -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 101: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy424 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 102: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 103: /* retention_list ::= retention */ case 123: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==123); @@ -3443,9 +3472,9 @@ static YYACTIONTYPE yy_reduce( case 293: /* literal_list ::= signed_literal */ yytestcase(yyruleno==293); case 347: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==347); case 402: /* select_sublist ::= select_item */ yytestcase(yyruleno==402); - case 451: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==451); -{ yylhsminor.yy424 = createNodeList(pCxt, yymsp[0].minor.yy632); } - yymsp[0].minor.yy424 = yylhsminor.yy424; + case 455: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==455); +{ yylhsminor.yy600 = createNodeList(pCxt, yymsp[0].minor.yy392); } + yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 104: /* retention_list ::= retention_list NK_COMMA retention */ case 134: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==134); @@ -3455,250 +3484,250 @@ static YYACTIONTYPE yy_reduce( case 294: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==294); case 348: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==348); case 403: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==403); - case 452: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==452); -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, yymsp[0].minor.yy632); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; + case 456: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==456); +{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, yymsp[0].minor.yy392); } + yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 105: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy632 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 106: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 108: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==108); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy137, yymsp[-5].minor.yy632, yymsp[-3].minor.yy424, yymsp[-1].minor.yy424, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy481, yymsp[-5].minor.yy392, yymsp[-3].minor.yy600, yymsp[-1].minor.yy600, yymsp[0].minor.yy392); } break; case 107: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy424); } +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy600); } break; case 109: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy424); } +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy600); } break; case 110: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy137, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy481, yymsp[0].minor.yy392); } break; case 111: /* cmd ::= ALTER TABLE alter_table_clause */ case 112: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==112); case 270: /* cmd ::= query_expression */ yytestcase(yyruleno==270); -{ pCxt->pRootNode = yymsp[0].minor.yy632; } +{ pCxt->pRootNode = yymsp[0].minor.yy392; } break; case 113: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy632 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 114: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy632 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 115: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy632 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy632, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy209); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy57); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 116: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy632 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 117: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy632 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy57, &yymsp[0].minor.yy57); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 118: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy632 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 119: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy632 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy632, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy209); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy57); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 120: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy632 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 121: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy632 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy57, &yymsp[0].minor.yy57); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 122: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -{ yylhsminor.yy632 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy632, &yymsp[-2].minor.yy209, yymsp[0].minor.yy632); } - yymsp[-5].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy392, &yymsp[-2].minor.yy57, yymsp[0].minor.yy392); } + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; case 124: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 127: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==127); -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-1].minor.yy424, yymsp[0].minor.yy632); } - yymsp[-1].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy392); } + yymsp[-1].minor.yy600 = yylhsminor.yy600; break; case 125: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ -{ yylhsminor.yy632 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy137, yymsp[-8].minor.yy632, yymsp[-6].minor.yy632, yymsp[-5].minor.yy424, yymsp[-2].minor.yy424, yymsp[0].minor.yy632); } - yymsp[-9].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy481, yymsp[-8].minor.yy392, yymsp[-6].minor.yy392, yymsp[-5].minor.yy600, yymsp[-2].minor.yy600, yymsp[0].minor.yy392); } + yymsp[-9].minor.yy392 = yylhsminor.yy392; break; case 128: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy632 = createDropTableClause(pCxt, yymsp[-1].minor.yy137, yymsp[0].minor.yy632); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createDropTableClause(pCxt, yymsp[-1].minor.yy481, yymsp[0].minor.yy392); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 129: /* specific_tags_opt ::= */ case 160: /* tags_def_opt ::= */ yytestcase(yyruleno==160); case 410: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==410); case 427: /* group_by_clause_opt ::= */ yytestcase(yyruleno==427); - case 439: /* order_by_clause_opt ::= */ yytestcase(yyruleno==439); -{ yymsp[1].minor.yy424 = NULL; } + case 443: /* order_by_clause_opt ::= */ yytestcase(yyruleno==443); +{ yymsp[1].minor.yy600 = NULL; } break; case 130: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy424 = yymsp[-1].minor.yy424; } +{ yymsp[-2].minor.yy600 = yymsp[-1].minor.yy600; } break; case 131: /* full_table_name ::= table_name */ -{ yylhsminor.yy632 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy209, NULL); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy57, NULL); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 132: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy632 = createRealTableNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209, NULL); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57, NULL); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 135: /* column_def ::= column_name type_name */ -{ yylhsminor.yy632 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304, NULL); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448, NULL); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 136: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy632 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-2].minor.yy304, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy57, yymsp[-2].minor.yy448, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 137: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_BOOL); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 138: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_TINYINT); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 139: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 140: /* type_name ::= INT */ case 141: /* type_name ::= INTEGER */ yytestcase(yyruleno==141); -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_INT); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_INT); } break; case 142: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_BIGINT); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 143: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_FLOAT); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 144: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 145: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 146: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 147: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 148: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 149: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 150: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_UINT); } +{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 151: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 152: /* type_name ::= JSON */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_JSON); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 153: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 154: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 155: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_BLOB); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 156: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 157: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 158: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-3].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 159: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-5].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 161: /* tags_def_opt ::= tags_def */ case 346: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==346); case 401: /* select_list ::= select_sublist */ yytestcase(yyruleno==401); -{ yylhsminor.yy424 = yymsp[0].minor.yy424; } - yymsp[0].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = yymsp[0].minor.yy600; } + yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 162: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy424 = yymsp[-1].minor.yy424; } +{ yymsp[-3].minor.yy600 = yymsp[-1].minor.yy600; } break; case 163: /* table_options ::= */ -{ yymsp[1].minor.yy632 = createDefaultTableOptions(pCxt); } +{ yymsp[1].minor.yy392 = createDefaultTableOptions(pCxt); } break; case 164: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 165: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy424); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy600); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 166: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy424); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy600); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 167: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-4].minor.yy632, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy424); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy600); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 168: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 169: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-4].minor.yy632, TABLE_OPTION_SMA, yymsp[-1].minor.yy424); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_SMA, yymsp[-1].minor.yy600); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 170: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy632 = createAlterTableOptions(pCxt); yylhsminor.yy632 = setTableOption(pCxt, yylhsminor.yy632, yymsp[0].minor.yy605.type, &yymsp[0].minor.yy605.val); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createAlterTableOptions(pCxt); yylhsminor.yy392 = setTableOption(pCxt, yylhsminor.yy392, yymsp[0].minor.yy221.type, &yymsp[0].minor.yy221.val); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 171: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-1].minor.yy632, yymsp[0].minor.yy605.type, &yymsp[0].minor.yy605.val); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy221.type, &yymsp[0].minor.yy221.val); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 172: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy605.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy221.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } break; case 173: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy221.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } break; case 174: /* duration_list ::= duration_literal */ case 320: /* expression_list ::= expression */ yytestcase(yyruleno==320); -{ yylhsminor.yy424 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); } - yymsp[0].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } + yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 175: /* duration_list ::= duration_list NK_COMMA duration_literal */ case 321: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==321); -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } + yymsp[-2].minor.yy600 = yylhsminor.yy600; break; case 178: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy632 = createFunctionNode(pCxt, &yymsp[0].minor.yy209, NULL); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy57, NULL); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 179: /* rollup_func_name ::= FIRST */ case 180: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==180); -{ yylhsminor.yy632 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 183: /* col_name ::= column_name */ -{ yylhsminor.yy632 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy209); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy57); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 184: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } @@ -3710,13 +3739,13 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; case 187: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy632, yymsp[0].minor.yy632, OP_TYPE_LIKE); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } break; case 188: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy632, yymsp[0].minor.yy632, OP_TYPE_LIKE); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } break; case 189: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy632, NULL, OP_TYPE_LIKE); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy392, NULL, OP_TYPE_LIKE); } break; case 190: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } @@ -3731,7 +3760,7 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; case 194: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy632, yymsp[-1].minor.yy632, OP_TYPE_EQUAL); } +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); } break; case 195: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } @@ -3750,13 +3779,13 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT); } break; case 201: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy57); } break; case 202: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy392); } break; case 203: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy392); } break; case 204: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } @@ -3783,15 +3812,15 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; case 212: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy392); } break; case 213: /* db_name_cond_opt ::= */ case 218: /* from_db_opt ::= */ yytestcase(yyruleno==218); -{ yymsp[1].minor.yy632 = createDefaultDatabaseCondValue(pCxt); } +{ yymsp[1].minor.yy392 = createDefaultDatabaseCondValue(pCxt); } break; case 214: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy209); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy57); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 215: /* like_pattern_opt ::= */ case 223: /* index_options ::= */ yytestcase(yyruleno==223); @@ -3801,125 +3830,127 @@ static YYACTIONTYPE yy_reduce( case 417: /* sliding_opt ::= */ yytestcase(yyruleno==417); case 419: /* fill_opt ::= */ yytestcase(yyruleno==419); case 431: /* having_clause_opt ::= */ yytestcase(yyruleno==431); - case 441: /* slimit_clause_opt ::= */ yytestcase(yyruleno==441); - case 445: /* limit_clause_opt ::= */ yytestcase(yyruleno==445); -{ yymsp[1].minor.yy632 = NULL; } + case 433: /* range_opt ::= */ yytestcase(yyruleno==433); + case 435: /* every_opt ::= */ yytestcase(yyruleno==435); + case 445: /* slimit_clause_opt ::= */ yytestcase(yyruleno==445); + case 449: /* limit_clause_opt ::= */ yytestcase(yyruleno==449); +{ yymsp[1].minor.yy392 = NULL; } break; case 216: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 217: /* table_name_cond ::= table_name */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy209); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy57); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 219: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy209); } +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy57); } break; case 220: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy137, &yymsp[-3].minor.yy209, &yymsp[-1].minor.yy209, NULL, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy481, &yymsp[-3].minor.yy57, &yymsp[-1].minor.yy57, NULL, yymsp[0].minor.yy392); } break; case 221: /* 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.yy137, &yymsp[-5].minor.yy209, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy424, NULL); } +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy481, &yymsp[-5].minor.yy57, &yymsp[-3].minor.yy57, yymsp[-1].minor.yy600, NULL); } break; case 222: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy137, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy481, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57); } break; case 224: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy632 = createIndexOption(pCxt, yymsp[-6].minor.yy424, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), NULL, yymsp[0].minor.yy632); } +{ yymsp[-8].minor.yy392 = createIndexOption(pCxt, yymsp[-6].minor.yy600, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), NULL, yymsp[0].minor.yy392); } break; case 225: /* 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.yy632 = createIndexOption(pCxt, yymsp[-8].minor.yy424, releaseRawExprNode(pCxt, yymsp[-4].minor.yy632), releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), yymsp[0].minor.yy632); } +{ yymsp[-10].minor.yy392 = createIndexOption(pCxt, yymsp[-8].minor.yy600, releaseRawExprNode(pCxt, yymsp[-4].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[0].minor.yy392); } break; case 228: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy632 = createFunctionNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy424); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[-3].minor.yy57, yymsp[-1].minor.yy600); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 229: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy137, &yymsp[-2].minor.yy209, yymsp[0].minor.yy632, NULL, NULL); } +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy481, &yymsp[-2].minor.yy57, yymsp[0].minor.yy392, NULL, NULL); } break; case 230: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy137, &yymsp[-3].minor.yy209, NULL, &yymsp[0].minor.yy209, NULL); } +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy481, &yymsp[-3].minor.yy57, NULL, &yymsp[0].minor.yy57, NULL); } break; case 231: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy137, &yymsp[-3].minor.yy209, NULL, NULL, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy481, &yymsp[-3].minor.yy57, NULL, NULL, yymsp[0].minor.yy392); } break; case 232: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy481, &yymsp[0].minor.yy57); } break; case 233: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy137, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy481, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57); } break; case 234: /* cmd ::= DESC full_table_name */ case 235: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==235); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy392); } break; case 236: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; case 237: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy137, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy481, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 239: /* analyze_opt ::= ANALYZE */ case 247: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==247); case 398: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==398); -{ yymsp[0].minor.yy137 = true; } +{ yymsp[0].minor.yy481 = true; } break; case 240: /* explain_options ::= */ -{ yymsp[1].minor.yy632 = createDefaultExplainOptions(pCxt); } +{ yymsp[1].minor.yy392 = createDefaultExplainOptions(pCxt); } break; case 241: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy632 = setExplainVerbose(pCxt, yymsp[-2].minor.yy632, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setExplainVerbose(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 242: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy632 = setExplainRatio(pCxt, yymsp[-2].minor.yy632, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setExplainRatio(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 243: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ -{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy424); } +{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy600); } break; case 244: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy137, yymsp[-8].minor.yy137, &yymsp[-5].minor.yy209, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy304, yymsp[0].minor.yy100); } +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy481, yymsp[-8].minor.yy481, &yymsp[-5].minor.yy57, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy448, yymsp[0].minor.yy228); } break; case 245: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy481, &yymsp[0].minor.yy57); } break; case 248: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy100 = 0; } +{ yymsp[1].minor.yy228 = 0; } break; case 249: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy100 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy228 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 250: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy137, &yymsp[-4].minor.yy209, yymsp[-2].minor.yy632, yymsp[-3].minor.yy632, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy481, &yymsp[-4].minor.yy57, yymsp[-2].minor.yy392, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } break; case 251: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy481, &yymsp[0].minor.yy57); } break; case 253: /* into_opt ::= INTO full_table_name */ case 379: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==379); case 409: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==409); case 432: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==432); -{ yymsp[-1].minor.yy632 = yymsp[0].minor.yy632; } +{ yymsp[-1].minor.yy392 = yymsp[0].minor.yy392; } break; case 254: /* stream_options ::= */ -{ yymsp[1].minor.yy632 = createStreamOptions(pCxt); } +{ yymsp[1].minor.yy392 = createStreamOptions(pCxt); } break; case 255: /* stream_options ::= stream_options TRIGGER AT_ONCE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy632)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy632 = yymsp[-2].minor.yy632; } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ ((SStreamOptions*)yymsp[-2].minor.yy392)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 256: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy632)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy632 = yymsp[-2].minor.yy632; } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ ((SStreamOptions*)yymsp[-2].minor.yy392)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 257: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-3].minor.yy632)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy632)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy632); yylhsminor.yy632 = yymsp[-3].minor.yy632; } - yymsp[-3].minor.yy632 = yylhsminor.yy632; +{ ((SStreamOptions*)yymsp[-3].minor.yy392)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy392)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-3].minor.yy392; } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 258: /* stream_options ::= stream_options WATERMARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy632)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy632); yylhsminor.yy632 = yymsp[-2].minor.yy632; } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 259: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } @@ -3937,39 +3968,39 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 264: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy424); } +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy600); } break; case 265: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; case 266: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy424 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +{ yymsp[-1].minor.yy600 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; case 268: /* cmd ::= SYNCDB db_name REPLICA */ -{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy209); } +{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy57); } break; case 269: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 271: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 272: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 273: /* literal ::= NK_STRING */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 274: /* literal ::= NK_BOOL */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 275: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 276: /* literal ::= duration_literal */ case 286: /* signed_literal ::= signed */ yytestcase(yyruleno==286); @@ -3987,149 +4018,149 @@ static YYACTIONTYPE yy_reduce( case 382: /* table_reference ::= table_primary */ yytestcase(yyruleno==382); case 383: /* table_reference ::= joined_table */ yytestcase(yyruleno==383); case 387: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==387); - case 434: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==434); - case 437: /* query_primary ::= query_specification */ yytestcase(yyruleno==437); -{ yylhsminor.yy632 = yymsp[0].minor.yy632; } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 438: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==438); + case 441: /* query_primary ::= query_specification */ yytestcase(yyruleno==441); +{ yylhsminor.yy392 = yymsp[0].minor.yy392; } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 277: /* literal ::= NULL */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 278: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 279: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 280: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 281: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 282: /* 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.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 283: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 284: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; case 285: /* 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.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 287: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 288: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 289: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 290: /* signed_literal ::= duration_literal */ case 292: /* signed_literal ::= literal_func */ yytestcase(yyruleno==292); case 349: /* star_func_para ::= expression */ yytestcase(yyruleno==349); case 404: /* select_item ::= common_expression */ yytestcase(yyruleno==404); - case 450: /* search_condition ::= common_expression */ yytestcase(yyruleno==450); -{ yylhsminor.yy632 = releaseRawExprNode(pCxt, yymsp[0].minor.yy632); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 454: /* search_condition ::= common_expression */ yytestcase(yyruleno==454); +{ yylhsminor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 291: /* signed_literal ::= NULL */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 311: /* expression ::= NK_LP expression NK_RP */ case 376: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==376); -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 312: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 313: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy632), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 314: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 315: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 316: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 317: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 318: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 319: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 322: /* column_reference ::= column_name */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy209, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy209)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy57, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy57)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 323: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209, createColumnNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57, createColumnNode(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 324: /* pseudo_column ::= ROWTS */ case 325: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==325); @@ -4139,312 +4170,319 @@ static YYACTIONTYPE yy_reduce( case 330: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==330); case 331: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==331); case 337: /* literal_func ::= NOW */ yytestcase(yyruleno==337); -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 326: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy209)))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy57)))); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 332: /* function_expression ::= function_name NK_LP expression_list NK_RP */ case 333: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==333); -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy424)); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy57, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy57, yymsp[-1].minor.yy600)); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 334: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), yymsp[-1].minor.yy304)); } - yymsp[-5].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy448)); } + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; case 336: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy209, NULL)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy57, NULL)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 345: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy424 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 350: /* star_func_para ::= table_name NK_DOT NK_STAR */ case 407: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==407); -{ yylhsminor.yy632 = createColumnNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createColumnNode(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 351: /* predicate ::= expression compare_op expression */ case 356: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==356); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy380, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy324, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 352: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy632), releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 353: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy632), releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-5].minor.yy632 = yylhsminor.yy632; + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; case 354: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), NULL)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 355: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL)); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 357: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy380 = OP_TYPE_LOWER_THAN; } +{ yymsp[0].minor.yy324 = OP_TYPE_LOWER_THAN; } break; case 358: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy380 = OP_TYPE_GREATER_THAN; } +{ yymsp[0].minor.yy324 = OP_TYPE_GREATER_THAN; } break; case 359: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy380 = OP_TYPE_LOWER_EQUAL; } +{ yymsp[0].minor.yy324 = OP_TYPE_LOWER_EQUAL; } break; case 360: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy380 = OP_TYPE_GREATER_EQUAL; } +{ yymsp[0].minor.yy324 = OP_TYPE_GREATER_EQUAL; } break; case 361: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy380 = OP_TYPE_NOT_EQUAL; } +{ yymsp[0].minor.yy324 = OP_TYPE_NOT_EQUAL; } break; case 362: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy380 = OP_TYPE_EQUAL; } +{ yymsp[0].minor.yy324 = OP_TYPE_EQUAL; } break; case 363: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy380 = OP_TYPE_LIKE; } +{ yymsp[0].minor.yy324 = OP_TYPE_LIKE; } break; case 364: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy380 = OP_TYPE_NOT_LIKE; } +{ yymsp[-1].minor.yy324 = OP_TYPE_NOT_LIKE; } break; case 365: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy380 = OP_TYPE_MATCH; } +{ yymsp[0].minor.yy324 = OP_TYPE_MATCH; } break; case 366: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy380 = OP_TYPE_NMATCH; } +{ yymsp[0].minor.yy324 = OP_TYPE_NMATCH; } break; case 367: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy380 = OP_TYPE_JSON_CONTAINS; } +{ yymsp[0].minor.yy324 = OP_TYPE_JSON_CONTAINS; } break; case 368: /* in_op ::= IN */ -{ yymsp[0].minor.yy380 = OP_TYPE_IN; } +{ yymsp[0].minor.yy324 = OP_TYPE_IN; } break; case 369: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy380 = OP_TYPE_NOT_IN; } +{ yymsp[-1].minor.yy324 = OP_TYPE_NOT_IN; } break; case 370: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy600)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 372: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy632), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 373: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 374: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 381: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy632 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy632, yymsp[0].minor.yy632, NULL); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, NULL); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 384: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy632 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy57, &yymsp[0].minor.yy57); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 385: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy632 = createRealTableNode(pCxt, &yymsp[-3].minor.yy209, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-3].minor.yy57, &yymsp[-1].minor.yy57, &yymsp[0].minor.yy57); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 386: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy632 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632), &yymsp[0].minor.yy209); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy57); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 388: /* alias_opt ::= */ -{ yymsp[1].minor.yy209 = nil_token; } +{ yymsp[1].minor.yy57 = nil_token; } break; case 389: /* alias_opt ::= table_alias */ -{ yylhsminor.yy209 = yymsp[0].minor.yy209; } - yymsp[0].minor.yy209 = yylhsminor.yy209; +{ yylhsminor.yy57 = yymsp[0].minor.yy57; } + yymsp[0].minor.yy57 = yylhsminor.yy57; break; case 390: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy209 = yymsp[0].minor.yy209; } +{ yymsp[-1].minor.yy57 = yymsp[0].minor.yy57; } break; case 391: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ case 392: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==392); -{ yymsp[-2].minor.yy632 = yymsp[-1].minor.yy632; } +{ yymsp[-2].minor.yy392 = yymsp[-1].minor.yy392; } break; case 393: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy632 = createJoinTableNode(pCxt, yymsp[-4].minor.yy612, yymsp[-5].minor.yy632, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } - yymsp[-5].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = createJoinTableNode(pCxt, yymsp[-4].minor.yy204, yymsp[-5].minor.yy392, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; case 394: /* join_type ::= */ -{ yymsp[1].minor.yy612 = JOIN_TYPE_INNER; } +{ yymsp[1].minor.yy204 = JOIN_TYPE_INNER; } break; case 395: /* join_type ::= INNER */ -{ yymsp[0].minor.yy612 = JOIN_TYPE_INNER; } +{ yymsp[0].minor.yy204 = JOIN_TYPE_INNER; } break; - case 396: /* 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 396: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-8].minor.yy632 = createSelectStmt(pCxt, yymsp[-7].minor.yy137, yymsp[-6].minor.yy424, yymsp[-5].minor.yy632); - yymsp[-8].minor.yy632 = addWhereClause(pCxt, yymsp[-8].minor.yy632, yymsp[-4].minor.yy632); - yymsp[-8].minor.yy632 = addPartitionByClause(pCxt, yymsp[-8].minor.yy632, yymsp[-3].minor.yy424); - yymsp[-8].minor.yy632 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy632, yymsp[-2].minor.yy632); - yymsp[-8].minor.yy632 = addGroupByClause(pCxt, yymsp[-8].minor.yy632, yymsp[-1].minor.yy424); - yymsp[-8].minor.yy632 = addHavingClause(pCxt, yymsp[-8].minor.yy632, yymsp[0].minor.yy632); + yymsp[-11].minor.yy392 = createSelectStmt(pCxt, yymsp[-10].minor.yy481, yymsp[-9].minor.yy600, yymsp[-8].minor.yy392); + yymsp[-11].minor.yy392 = addWhereClause(pCxt, yymsp[-11].minor.yy392, yymsp[-7].minor.yy392); + yymsp[-11].minor.yy392 = addPartitionByClause(pCxt, yymsp[-11].minor.yy392, yymsp[-6].minor.yy600); + yymsp[-11].minor.yy392 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy392, yymsp[-2].minor.yy392); + yymsp[-11].minor.yy392 = addGroupByClause(pCxt, yymsp[-11].minor.yy392, yymsp[-1].minor.yy600); + yymsp[-11].minor.yy392 = addHavingClause(pCxt, yymsp[-11].minor.yy392, yymsp[0].minor.yy392); + yymsp[-11].minor.yy392 = addRangeClause(pCxt, yymsp[-11].minor.yy392, yymsp[-5].minor.yy392); + yymsp[-11].minor.yy392 = addEveryClause(pCxt, yymsp[-11].minor.yy392, yymsp[-4].minor.yy392); + yymsp[-11].minor.yy392 = addFillClause(pCxt, yymsp[-11].minor.yy392, yymsp[-3].minor.yy392); } break; case 399: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy137 = false; } +{ yymsp[0].minor.yy481 = false; } break; case 400: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy424 = NULL; } +{ yymsp[0].minor.yy600 = NULL; } break; case 405: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy632 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632), &yymsp[0].minor.yy209); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy57); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 406: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy632 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), &yymsp[0].minor.yy209); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; +{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), &yymsp[0].minor.yy57); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 411: /* partition_by_clause_opt ::= PARTITION BY expression_list */ case 428: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==428); - case 440: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==440); -{ yymsp[-2].minor.yy424 = yymsp[0].minor.yy424; } + case 444: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==444); +{ yymsp[-2].minor.yy600 = yymsp[0].minor.yy600; } break; case 413: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy632 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), releaseRawExprNode(pCxt, yymsp[-1].minor.yy632)); } +{ yymsp[-5].minor.yy392 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; case 414: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ -{ yymsp[-3].minor.yy632 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632)); } +{ yymsp[-3].minor.yy392 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; case 415: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy632 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), NULL, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } +{ yymsp[-5].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 416: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy632 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy632), releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } +{ yymsp[-7].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 418: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy632 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy632); } + case 436: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==436); +{ yymsp[-3].minor.yy392 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy392); } break; case 420: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy632 = createFillNode(pCxt, yymsp[-1].minor.yy54, NULL); } +{ yymsp[-3].minor.yy392 = createFillNode(pCxt, yymsp[-1].minor.yy270, NULL); } break; case 421: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy632 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); } +{ yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy600)); } break; case 422: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy54 = FILL_MODE_NONE; } +{ yymsp[0].minor.yy270 = FILL_MODE_NONE; } break; case 423: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy54 = FILL_MODE_PREV; } +{ yymsp[0].minor.yy270 = FILL_MODE_PREV; } break; case 424: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy54 = FILL_MODE_NULL; } +{ yymsp[0].minor.yy270 = FILL_MODE_NULL; } break; case 425: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy54 = FILL_MODE_LINEAR; } +{ yymsp[0].minor.yy270 = FILL_MODE_LINEAR; } break; case 426: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy54 = FILL_MODE_NEXT; } +{ yymsp[0].minor.yy270 = FILL_MODE_NEXT; } break; case 429: /* group_by_list ::= expression */ -{ yylhsminor.yy424 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); } - yymsp[0].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } + yymsp[0].minor.yy600 = yylhsminor.yy600; break; case 430: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; +{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } + yymsp[-2].minor.yy600 = yylhsminor.yy600; + break; + case 434: /* range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ +{ yymsp[-5].minor.yy392 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; - case 433: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 437: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy632 = addOrderByClause(pCxt, yymsp[-3].minor.yy632, yymsp[-2].minor.yy424); - yylhsminor.yy632 = addSlimitClause(pCxt, yylhsminor.yy632, yymsp[-1].minor.yy632); - yylhsminor.yy632 = addLimitClause(pCxt, yylhsminor.yy632, yymsp[0].minor.yy632); + yylhsminor.yy392 = addOrderByClause(pCxt, yymsp[-3].minor.yy392, yymsp[-2].minor.yy600); + yylhsminor.yy392 = addSlimitClause(pCxt, yylhsminor.yy392, yymsp[-1].minor.yy392); + yylhsminor.yy392 = addLimitClause(pCxt, yylhsminor.yy392, yymsp[0].minor.yy392); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 435: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy632 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy632, yymsp[0].minor.yy632); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + case 439: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 436: /* query_expression_body ::= query_expression_body UNION query_expression_body */ -{ yylhsminor.yy632 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 440: /* query_expression_body ::= query_expression_body UNION query_expression_body */ +{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 438: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ -{ yymsp[-5].minor.yy632 = yymsp[-4].minor.yy632; } - yy_destructor(yypParser,352,&yymsp[-3].minor); - yy_destructor(yypParser,353,&yymsp[-2].minor); - yy_destructor(yypParser,354,&yymsp[-1].minor); + case 442: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ +{ yymsp[-5].minor.yy392 = yymsp[-4].minor.yy392; } + yy_destructor(yypParser,356,&yymsp[-3].minor); + yy_destructor(yypParser,357,&yymsp[-2].minor); + yy_destructor(yypParser,358,&yymsp[-1].minor); break; - case 442: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 446: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==446); -{ yymsp[-1].minor.yy632 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 446: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 450: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==450); +{ yymsp[-1].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 443: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 447: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==447); -{ yymsp[-3].minor.yy632 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 447: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 451: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==451); +{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 444: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 448: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==448); -{ yymsp[-3].minor.yy632 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 448: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 452: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==452); +{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 449: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy632); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 453: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy392); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 453: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy632 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), yymsp[-1].minor.yy578, yymsp[0].minor.yy217); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 457: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy392 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[-1].minor.yy162, yymsp[0].minor.yy529); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 454: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy578 = ORDER_ASC; } + case 458: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy162 = ORDER_ASC; } break; - case 455: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy578 = ORDER_ASC; } + case 459: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy162 = ORDER_ASC; } break; - case 456: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy578 = ORDER_DESC; } + case 460: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy162 = ORDER_DESC; } break; - case 457: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy217 = NULL_ORDER_DEFAULT; } + case 461: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy529 = NULL_ORDER_DEFAULT; } break; - case 458: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_FIRST; } + case 462: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy529 = NULL_ORDER_FIRST; } break; - case 459: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_LAST; } + case 463: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy529 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/parser/test/parSelectTest.cpp b/source/libs/parser/test/parSelectTest.cpp index a69b012574..693c422ae0 100644 --- a/source/libs/parser/test/parSelectTest.cpp +++ b/source/libs/parser/test/parSelectTest.cpp @@ -256,6 +256,24 @@ TEST_F(ParserSelectTest, intervalSemanticCheck) { run("SELECT _WSTARTTS, _WENDTS, _WDURATION, sum(c1) FROM t1", TSDB_CODE_PAR_INVALID_WINDOW_PC); } +TEST_F(ParserSelectTest, interp) { + useDb("root", "test"); + + run("SELECT INTERP(c1) FROM t1"); + + run("SELECT INTERP(c1) FROM t1 RANGE('2017-7-14 18:00:00', '2017-7-14 19:00:00')"); + + run("SELECT INTERP(c1) FROM t1 RANGE('2017-7-14 18:00:00', '2017-7-14 19:00:00') FILL(LINEAR)"); + + run("SELECT INTERP(c1) FROM t1 EVERY(5s)"); + + run("SELECT INTERP(c1) FROM t1 EVERY(5s) FILL(LINEAR)"); + + run("SELECT INTERP(c1) FROM t1 RANGE('2017-7-14 18:00:00', '2017-7-14 19:00:00') EVERY(5s)"); + + run("SELECT INTERP(c1) FROM t1 RANGE('2017-7-14 18:00:00', '2017-7-14 19:00:00') EVERY(5s) FILL(LINEAR)"); +} + TEST_F(ParserSelectTest, subquery) { useDb("root", "test"); diff --git a/source/libs/planner/src/planLogicCreater.c b/source/libs/planner/src/planLogicCreater.c index 5556c6a0a9..b365afff02 100644 --- a/source/libs/planner/src/planLogicCreater.c +++ b/source/libs/planner/src/planLogicCreater.c @@ -91,7 +91,7 @@ static EDealRes doNameExpr(SNode* pNode, void* pContext) { return DEAL_RES_CONTINUE; } -static int32_t rewriteExprForSelect(SNodeList* pExprs, SSelectStmt* pSelect, ESqlClause clause) { +static int32_t rewriteExprsForSelect(SNodeList* pExprs, SSelectStmt* pSelect, ESqlClause clause) { nodesWalkExprs(pExprs, doNameExpr, NULL); SRewriteExprCxt cxt = {.errCode = TSDB_CODE_SUCCESS, .pExprs = pExprs}; nodesRewriteSelectStmt(pSelect, clause, doRewriteExpr, &cxt); @@ -266,7 +266,7 @@ static int32_t createScanLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect // rewrite the expression in subsequent clauses if (TSDB_CODE_SUCCESS == code) { - code = rewriteExprForSelect(pScan->pScanPseudoCols, pSelect, SQL_CLAUSE_FROM); + code = rewriteExprsForSelect(pScan->pScanPseudoCols, pSelect, SQL_CLAUSE_FROM); } pScan->scanType = getScanType(pCxt, pScan->pScanPseudoCols, pScan->pScanCols, pScan->tableType); @@ -425,7 +425,7 @@ static int32_t createAggLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect, // rewrite the expression in subsequent clauses if (TSDB_CODE_SUCCESS == code) { - code = rewriteExprForSelect(pAgg->pGroupKeys, pSelect, SQL_CLAUSE_GROUP_BY); + code = rewriteExprsForSelect(pAgg->pGroupKeys, pSelect, SQL_CLAUSE_GROUP_BY); } if (TSDB_CODE_SUCCESS == code && pSelect->hasAggFuncs) { @@ -434,7 +434,7 @@ static int32_t createAggLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect, // rewrite the expression in subsequent clauses if (TSDB_CODE_SUCCESS == code) { - code = rewriteExprForSelect(pAgg->pAggFuncs, pSelect, SQL_CLAUSE_GROUP_BY); + code = rewriteExprsForSelect(pAgg->pAggFuncs, pSelect, SQL_CLAUSE_GROUP_BY); } if (TSDB_CODE_SUCCESS == code && NULL != pSelect->pHaving) { @@ -473,14 +473,15 @@ static int32_t createIndefRowsFuncLogicNode(SLogicPlanContext* pCxt, SSelectStmt return TSDB_CODE_OUT_OF_MEMORY; } - int32_t code = nodesCollectFuncs(pSelect, SQL_CLAUSE_SELECT, fmIsVectorFunc, &pIdfRowsFunc->pVectorFuncs); + // indefinite rows functions and _select_values functions + int32_t code = nodesCollectFuncs(pSelect, SQL_CLAUSE_SELECT, fmIsVectorFunc, &pIdfRowsFunc->pFuncs); if (TSDB_CODE_SUCCESS == code) { - code = rewriteExprForSelect(pIdfRowsFunc->pVectorFuncs, pSelect, SQL_CLAUSE_SELECT); + code = rewriteExprsForSelect(pIdfRowsFunc->pFuncs, pSelect, SQL_CLAUSE_SELECT); } // set the output if (TSDB_CODE_SUCCESS == code) { - code = createColumnByRewriteExprs(pIdfRowsFunc->pVectorFuncs, &pIdfRowsFunc->node.pTargets); + code = createColumnByRewriteExprs(pIdfRowsFunc->pFuncs, &pIdfRowsFunc->node.pTargets); } if (TSDB_CODE_SUCCESS == code) { @@ -492,6 +493,45 @@ static int32_t createIndefRowsFuncLogicNode(SLogicPlanContext* pCxt, SSelectStmt return code; } +static int32_t createInterpFuncLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect, SLogicNode** pLogicNode) { + if (!pSelect->hasInterpFunc) { + return TSDB_CODE_SUCCESS; + } + + SInterpFuncLogicNode* pInterpFunc = (SInterpFuncLogicNode*)nodesMakeNode(QUERY_NODE_LOGIC_PLAN_INTERP_FUNC); + if (NULL == pInterpFunc) { + return TSDB_CODE_OUT_OF_MEMORY; + } + + int32_t code = nodesCollectFuncs(pSelect, SQL_CLAUSE_SELECT, fmIsInterpFunc, &pInterpFunc->pFuncs); + if (TSDB_CODE_SUCCESS == code) { + code = rewriteExprsForSelect(pInterpFunc->pFuncs, pSelect, SQL_CLAUSE_SELECT); + } + + if (TSDB_CODE_SUCCESS == code && NULL != pSelect->pRange) { + // SRangeNode* pRange = (SRangeNode*)pSelect->pRange; + // pInterpFunc->timeRange.skey = ((SValueNode*)pRange->pStart)->datum.i; + // pInterpFunc->timeRange.ekey = ((SValueNode*)pRange->pEnd)->datum.i; + } + + if (TSDB_CODE_SUCCESS == code && NULL != pSelect->pEvery) { + pInterpFunc->interval = ((SValueNode*)pSelect->pEvery)->datum.i; + } + + // set the output + if (TSDB_CODE_SUCCESS == code) { + code = createColumnByRewriteExprs(pInterpFunc->pFuncs, &pInterpFunc->node.pTargets); + } + + if (TSDB_CODE_SUCCESS == code) { + *pLogicNode = (SLogicNode*)pInterpFunc; + } else { + nodesDestroyNode((SNode*)pInterpFunc); + } + + return code; +} + static int32_t createWindowLogicNodeFinalize(SLogicPlanContext* pCxt, SSelectStmt* pSelect, SWindowLogicNode* pWindow, SLogicNode** pLogicNode) { int32_t code = nodesCollectFuncs(pSelect, SQL_CLAUSE_WINDOW, fmIsWindowClauseFunc, &pWindow->pFuncs); @@ -506,7 +546,7 @@ static int32_t createWindowLogicNodeFinalize(SLogicPlanContext* pCxt, SSelectStm } if (TSDB_CODE_SUCCESS == code) { - code = rewriteExprForSelect(pWindow->pFuncs, pSelect, SQL_CLAUSE_WINDOW); + code = rewriteExprsForSelect(pWindow->pFuncs, pSelect, SQL_CLAUSE_WINDOW); } if (TSDB_CODE_SUCCESS == code) { @@ -778,7 +818,7 @@ static int32_t createDistinctLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSe // rewrite the expression in subsequent clauses if (TSDB_CODE_SUCCESS == code) { - code = rewriteExprForSelect(pAgg->pGroupKeys, pSelect, SQL_CLAUSE_DISTINCT); + code = rewriteExprsForSelect(pAgg->pGroupKeys, pSelect, SQL_CLAUSE_DISTINCT); } // set the output @@ -813,6 +853,9 @@ static int32_t createSelectLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSele if (TSDB_CODE_SUCCESS == code) { code = createSelectRootLogicNode(pCxt, pSelect, createIndefRowsFuncLogicNode, &pRoot); } + if (TSDB_CODE_SUCCESS == code) { + code = createSelectRootLogicNode(pCxt, pSelect, createInterpFuncLogicNode, &pRoot); + } if (TSDB_CODE_SUCCESS == code) { code = createSelectRootLogicNode(pCxt, pSelect, createDistinctLogicNode, &pRoot); } diff --git a/source/libs/planner/src/planPhysiCreater.c b/source/libs/planner/src/planPhysiCreater.c index 79cc9095a5..369ab14204 100644 --- a/source/libs/planner/src/planPhysiCreater.c +++ b/source/libs/planner/src/planPhysiCreater.c @@ -825,8 +825,8 @@ static int32_t createIndefRowsFuncPhysiNode(SPhysiPlanContext* pCxt, SNodeList* } SNodeList* pPrecalcExprs = NULL; - SNodeList* pVectorFuncs = NULL; - int32_t code = rewritePrecalcExprs(pCxt, pFuncLogicNode->pVectorFuncs, &pPrecalcExprs, &pVectorFuncs); + SNodeList* pFuncs = NULL; + int32_t code = rewritePrecalcExprs(pCxt, pFuncLogicNode->pFuncs, &pPrecalcExprs, &pFuncs); SDataBlockDescNode* pChildTupe = (((SPhysiNode*)nodesListGetNode(pChildren, 0))->pOutputDataBlockDesc); // push down expression to pOutputDataBlockDesc of child node @@ -837,10 +837,10 @@ static int32_t createIndefRowsFuncPhysiNode(SPhysiPlanContext* pCxt, SNodeList* } } - if (TSDB_CODE_SUCCESS == code && NULL != pVectorFuncs) { - code = setListSlotId(pCxt, pChildTupe->dataBlockId, -1, pVectorFuncs, &pIdfRowsFunc->pVectorFuncs); + if (TSDB_CODE_SUCCESS == code) { + code = setListSlotId(pCxt, pChildTupe->dataBlockId, -1, pFuncs, &pIdfRowsFunc->pFuncs); if (TSDB_CODE_SUCCESS == code) { - code = addDataBlockSlots(pCxt, pIdfRowsFunc->pVectorFuncs, pIdfRowsFunc->node.pOutputDataBlockDesc); + code = addDataBlockSlots(pCxt, pIdfRowsFunc->pFuncs, pIdfRowsFunc->node.pOutputDataBlockDesc); } } @@ -853,6 +853,48 @@ static int32_t createIndefRowsFuncPhysiNode(SPhysiPlanContext* pCxt, SNodeList* return code; } +static int32_t createInterpFuncPhysiNode(SPhysiPlanContext* pCxt, SNodeList* pChildren, + SInterpFuncLogicNode* pFuncLogicNode, SPhysiNode** pPhyNode) { + SInterpFuncPhysiNode* pInterpFunc = + (SInterpFuncPhysiNode*)makePhysiNode(pCxt, (SLogicNode*)pFuncLogicNode, QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC); + if (NULL == pInterpFunc) { + return TSDB_CODE_OUT_OF_MEMORY; + } + + SNodeList* pPrecalcExprs = NULL; + SNodeList* pFuncs = NULL; + int32_t code = rewritePrecalcExprs(pCxt, pFuncLogicNode->pFuncs, &pPrecalcExprs, &pFuncs); + + SDataBlockDescNode* pChildTupe = (((SPhysiNode*)nodesListGetNode(pChildren, 0))->pOutputDataBlockDesc); + // push down expression to pOutputDataBlockDesc of child node + if (TSDB_CODE_SUCCESS == code && NULL != pPrecalcExprs) { + code = setListSlotId(pCxt, pChildTupe->dataBlockId, -1, pPrecalcExprs, &pInterpFunc->pExprs); + if (TSDB_CODE_SUCCESS == code) { + code = pushdownDataBlockSlots(pCxt, pInterpFunc->pExprs, pChildTupe); + } + } + + if (TSDB_CODE_SUCCESS == code) { + code = setListSlotId(pCxt, pChildTupe->dataBlockId, -1, pFuncs, &pInterpFunc->pFuncs); + if (TSDB_CODE_SUCCESS == code) { + code = addDataBlockSlots(pCxt, pInterpFunc->pFuncs, pInterpFunc->node.pOutputDataBlockDesc); + } + } + + if (TSDB_CODE_SUCCESS == code) { + pInterpFunc->timeRange = pFuncLogicNode->timeRange; + pInterpFunc->interval = pFuncLogicNode->interval; + } + + if (TSDB_CODE_SUCCESS == code) { + *pPhyNode = (SPhysiNode*)pInterpFunc; + } else { + nodesDestroyNode((SNode*)pInterpFunc); + } + + return code; +} + static int32_t createProjectPhysiNode(SPhysiPlanContext* pCxt, SNodeList* pChildren, SProjectLogicNode* pProjectLogicNode, SPhysiNode** pPhyNode) { SProjectPhysiNode* pProject = @@ -1298,6 +1340,8 @@ static int32_t doCreatePhysiNode(SPhysiPlanContext* pCxt, SLogicNode* pLogicNode return createFillPhysiNode(pCxt, pChildren, (SFillLogicNode*)pLogicNode, pPhyNode); case QUERY_NODE_LOGIC_PLAN_INDEF_ROWS_FUNC: return createIndefRowsFuncPhysiNode(pCxt, pChildren, (SIndefRowsFuncLogicNode*)pLogicNode, pPhyNode); + case QUERY_NODE_LOGIC_PLAN_INTERP_FUNC: + return createInterpFuncPhysiNode(pCxt, pChildren, (SInterpFuncLogicNode*)pLogicNode, pPhyNode); case QUERY_NODE_LOGIC_PLAN_MERGE: return createMergePhysiNode(pCxt, (SMergeLogicNode*)pLogicNode, pPhyNode); default: diff --git a/source/libs/planner/test/planBasicTest.cpp b/source/libs/planner/test/planBasicTest.cpp index 4213cc050c..f74c7df355 100644 --- a/source/libs/planner/test/planBasicTest.cpp +++ b/source/libs/planner/test/planBasicTest.cpp @@ -75,3 +75,11 @@ TEST_F(PlanBasicTest, tailFunc) { run("SELECT TAIL(c2 + 10, 10, 80) FROM t1 WHERE c1 > 10"); } + +TEST_F(PlanBasicTest, interpFunc) { + useDb("root", "test"); + + run("SELECT INTERP(c1) FROM t1"); + + run("SELECT INTERP(c1) FROM t1 RANGE('2017-7-14 18:00:00', '2017-7-14 19:00:00') EVERY(5s) FILL(LINEAR)"); +} -- GitLab