diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 6eaddca10b0b64b3a1186ad09161a177750bf8dc..6df8152814f40e3a225e336c6164e1476fad6faf 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -658,6 +658,7 @@ typedef struct { int8_t outputType; int32_t outputLen; int32_t bufSize; + int32_t codeLen; int64_t signature; char* pComment; char* pCode; diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 5d8227daa1b91a22db83425ebeb65f46ba02f381..39858cbbdeb4a6218cfdf0d3a712c5107fa93716 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -148,94 +148,95 @@ #define TK_VARIABLES 130 #define TK_BNODES 131 #define TK_SNODES 132 -#define TK_LIKE 133 -#define TK_INDEX 134 -#define TK_FULLTEXT 135 -#define TK_FUNCTION 136 -#define TK_INTERVAL 137 -#define TK_TOPIC 138 -#define TK_AS 139 -#define TK_DESC 140 -#define TK_DESCRIBE 141 -#define TK_RESET 142 -#define TK_QUERY 143 -#define TK_EXPLAIN 144 -#define TK_ANALYZE 145 -#define TK_VERBOSE 146 -#define TK_NK_BOOL 147 -#define TK_RATIO 148 -#define TK_COMPACT 149 -#define TK_VNODES 150 -#define TK_IN 151 -#define TK_OUTPUTTYPE 152 -#define TK_AGGREGATE 153 -#define TK_BUFSIZE 154 -#define TK_STREAM 155 -#define TK_INTO 156 -#define TK_TRIGGER 157 -#define TK_AT_ONCE 158 -#define TK_WINDOW_CLOSE 159 -#define TK_WATERMARK 160 -#define TK_KILL 161 -#define TK_CONNECTION 162 -#define TK_MERGE 163 -#define TK_VGROUP 164 -#define TK_REDISTRIBUTE 165 -#define TK_SPLIT 166 -#define TK_SYNCDB 167 -#define TK_NULL 168 -#define TK_NK_QUESTION 169 -#define TK_NK_ARROW 170 -#define TK_ROWTS 171 -#define TK_TBNAME 172 -#define TK_QSTARTTS 173 -#define TK_QENDTS 174 -#define TK_WSTARTTS 175 -#define TK_WENDTS 176 -#define TK_WDURATION 177 -#define TK_CAST 178 -#define TK_NOW 179 -#define TK_TODAY 180 -#define TK_TIMEZONE 181 -#define TK_COUNT 182 -#define TK_FIRST 183 -#define TK_LAST 184 -#define TK_LAST_ROW 185 -#define TK_BETWEEN 186 -#define TK_IS 187 -#define TK_NK_LT 188 -#define TK_NK_GT 189 -#define TK_NK_LE 190 -#define TK_NK_GE 191 -#define TK_NK_NE 192 -#define TK_MATCH 193 -#define TK_NMATCH 194 -#define TK_CONTAINS 195 -#define TK_JOIN 196 -#define TK_INNER 197 -#define TK_SELECT 198 -#define TK_DISTINCT 199 -#define TK_WHERE 200 -#define TK_PARTITION 201 -#define TK_BY 202 -#define TK_SESSION 203 -#define TK_STATE_WINDOW 204 -#define TK_SLIDING 205 -#define TK_FILL 206 -#define TK_VALUE 207 -#define TK_NONE 208 -#define TK_PREV 209 -#define TK_LINEAR 210 -#define TK_NEXT 211 -#define TK_GROUP 212 -#define TK_HAVING 213 -#define TK_ORDER 214 -#define TK_SLIMIT 215 -#define TK_SOFFSET 216 -#define TK_LIMIT 217 -#define TK_OFFSET 218 -#define TK_ASC 219 -#define TK_NULLS 220 +#define TK_CLUSTER 133 +#define TK_LIKE 134 +#define TK_INDEX 135 +#define TK_FULLTEXT 136 +#define TK_FUNCTION 137 +#define TK_INTERVAL 138 +#define TK_TOPIC 139 +#define TK_AS 140 +#define TK_DESC 141 +#define TK_DESCRIBE 142 +#define TK_RESET 143 +#define TK_QUERY 144 +#define TK_EXPLAIN 145 +#define TK_ANALYZE 146 +#define TK_VERBOSE 147 +#define TK_NK_BOOL 148 +#define TK_RATIO 149 +#define TK_COMPACT 150 +#define TK_VNODES 151 +#define TK_IN 152 +#define TK_OUTPUTTYPE 153 +#define TK_AGGREGATE 154 +#define TK_BUFSIZE 155 +#define TK_STREAM 156 +#define TK_INTO 157 +#define TK_TRIGGER 158 +#define TK_AT_ONCE 159 +#define TK_WINDOW_CLOSE 160 +#define TK_WATERMARK 161 +#define TK_KILL 162 +#define TK_CONNECTION 163 +#define TK_MERGE 164 +#define TK_VGROUP 165 +#define TK_REDISTRIBUTE 166 +#define TK_SPLIT 167 +#define TK_SYNCDB 168 +#define TK_NULL 169 +#define TK_NK_QUESTION 170 +#define TK_NK_ARROW 171 +#define TK_ROWTS 172 +#define TK_TBNAME 173 +#define TK_QSTARTTS 174 +#define TK_QENDTS 175 +#define TK_WSTARTTS 176 +#define TK_WENDTS 177 +#define TK_WDURATION 178 +#define TK_CAST 179 +#define TK_NOW 180 +#define TK_TODAY 181 +#define TK_TIMEZONE 182 +#define TK_COUNT 183 +#define TK_FIRST 184 +#define TK_LAST 185 +#define TK_LAST_ROW 186 +#define TK_BETWEEN 187 +#define TK_IS 188 +#define TK_NK_LT 189 +#define TK_NK_GT 190 +#define TK_NK_LE 191 +#define TK_NK_GE 192 +#define TK_NK_NE 193 +#define TK_MATCH 194 +#define TK_NMATCH 195 +#define TK_CONTAINS 196 +#define TK_JOIN 197 +#define TK_INNER 198 +#define TK_SELECT 199 +#define TK_DISTINCT 200 +#define TK_WHERE 201 +#define TK_PARTITION 202 +#define TK_BY 203 +#define TK_SESSION 204 +#define TK_STATE_WINDOW 205 +#define TK_SLIDING 206 +#define TK_FILL 207 +#define TK_VALUE 208 +#define TK_NONE 209 +#define TK_PREV 210 +#define TK_LINEAR 211 +#define TK_NEXT 212 +#define TK_GROUP 213 +#define TK_HAVING 214 +#define TK_ORDER 215 +#define TK_SLIMIT 216 +#define TK_SOFFSET 217 +#define TK_LIMIT 218 +#define TK_OFFSET 219 +#define TK_ASC 220 +#define TK_NULLS 221 #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 22bbc36ee13acb0411c22074cb09eeb013bd4738..cd49e88b2fa1e677e430ecb3b9c7636fa4376b02 100644 --- a/include/libs/function/functionMgt.h +++ b/include/libs/function/functionMgt.h @@ -110,7 +110,10 @@ typedef enum EFunctionType { FUNCTION_TYPE_QENDTS, FUNCTION_TYPE_WSTARTTS, FUNCTION_TYPE_WENDTS, - FUNCTION_TYPE_WDURATION + FUNCTION_TYPE_WDURATION, + + // user defined funcion + FUNCTION_TYPE_UDF = 10000 } EFunctionType; struct SqlFunctionCtx; @@ -138,6 +141,7 @@ bool fmIsWindowClauseFunc(int32_t funcId); bool fmIsSpecialDataRequiredFunc(int32_t funcId); bool fmIsDynamicScanOptimizedFunc(int32_t funcId); bool fmIsMultiResFunc(int32_t funcId); +bool fmIsUserDefinedFunc(int32_t funcId); typedef enum EFuncDataRequired { FUNC_DATA_REQUIRED_DATA_LOAD = 1, diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index 84f2d9ed6bbc0525ab792de44ca8fa0c728cc890..0394dfd9bd9b5ede18f5f3d8a628a4a5e17c557c 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -295,6 +295,16 @@ typedef struct SDropStreamStmt { bool ignoreNotExists; } SDropStreamStmt; +typedef struct SCreateFunctionStmt { + ENodeType type; + bool ignoreExists; + char funcName[TSDB_FUNC_NAME_LEN]; + bool isAgg; + char libraryPath[PATH_MAX]; + SDataType outputDt; + int32_t bufSize; +} SCreateFunctionStmt; + #ifdef __cplusplus } #endif diff --git a/include/libs/nodes/nodes.h b/include/libs/nodes/nodes.h index 8db93ee5f995de1b88abf3572edfd97d2be49d0a..321ca13f0e22552e35c24de9c61bb79770d1d593 100644 --- a/include/libs/nodes/nodes.h +++ b/include/libs/nodes/nodes.h @@ -134,6 +134,7 @@ typedef enum ENodeType { QUERY_NODE_SHOW_QNODES_STMT, QUERY_NODE_SHOW_SNODES_STMT, QUERY_NODE_SHOW_BNODES_STMT, + QUERY_NODE_SHOW_CLUSTER_STMT, QUERY_NODE_SHOW_DATABASES_STMT, QUERY_NODE_SHOW_FUNCTIONS_STMT, QUERY_NODE_SHOW_INDEXES_STMT, diff --git a/include/util/tdef.h b/include/util/tdef.h index 4189c271026529c5d21eb7903816e4b7259a96a9..50bcb9ecc762039650cb7321f25143204c016938 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -239,6 +239,8 @@ typedef enum ELogicConditionType { #define TSDB_FUNC_BUF_SIZE 512 #define TSDB_FUNC_TYPE_SCALAR 1 #define TSDB_FUNC_TYPE_AGGREGATE 2 +#define TSDB_FUNC_SCRIPT_BIN_LIB 0 +#define TSDB_FUNC_SCRIPT_LUA 1 #define TSDB_FUNC_MAX_RETRIEVE 1024 #define TSDB_INDEX_NAME_LEN 65 // 64 + 1 '\0' diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 56452c29f4da1495e2ee6b8a4cb4b9d0770ebb16..65b52115d4427f6d1a0be6c9fd5f7c8d468b356f 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -1511,6 +1511,7 @@ int32_t tSerializeSCreateFuncReq(void *buf, int32_t bufLen, SCreateFuncReq *pReq if (tEncodeI8(&encoder, pReq->outputType) < 0) return -1; if (tEncodeI32(&encoder, pReq->outputLen) < 0) return -1; if (tEncodeI32(&encoder, pReq->bufSize) < 0) return -1; + if (tEncodeI32(&encoder, pReq->codeLen) < 0) return -1; if (tEncodeI64(&encoder, pReq->signature) < 0) return -1; int32_t codeSize = 0; @@ -1550,6 +1551,7 @@ int32_t tDeserializeSCreateFuncReq(void *buf, int32_t bufLen, SCreateFuncReq *pR if (tDecodeI8(&decoder, &pReq->outputType) < 0) return -1; if (tDecodeI32(&decoder, &pReq->outputLen) < 0) return -1; if (tDecodeI32(&decoder, &pReq->bufSize) < 0) return -1; + if (tDecodeI32(&decoder, &pReq->codeLen) < 0) return -1; if (tDecodeI64(&decoder, &pReq->signature) < 0) return -1; int32_t codeSize = 0; diff --git a/source/dnode/mnode/impl/src/mndFunc.c b/source/dnode/mnode/impl/src/mndFunc.c index 26c7b4d20030557108ac998676f2fbc68757d359..065e7a750de6f3c16cc5bd49e651da5fe31d9dab 100644 --- a/source/dnode/mnode/impl/src/mndFunc.c +++ b/source/dnode/mnode/impl/src/mndFunc.c @@ -77,7 +77,9 @@ static SSdbRaw *mndFuncActionEncode(SFuncObj *pFunc) { SDB_SET_INT64(pRaw, dataPos, pFunc->signature, _OVER) SDB_SET_INT32(pRaw, dataPos, pFunc->commentSize, _OVER) SDB_SET_INT32(pRaw, dataPos, pFunc->codeSize, _OVER) - SDB_SET_BINARY(pRaw, dataPos, pFunc->pComment, pFunc->commentSize, _OVER) + if (pFunc->commentSize > 0) { + SDB_SET_BINARY(pRaw, dataPos, pFunc->pComment, pFunc->commentSize, _OVER) + } SDB_SET_BINARY(pRaw, dataPos, pFunc->pCode, pFunc->codeSize, _OVER) SDB_SET_RESERVE(pRaw, dataPos, SDB_FUNC_RESERVE_SIZE, _OVER) SDB_SET_DATALEN(pRaw, dataPos, _OVER); @@ -125,13 +127,18 @@ static SSdbRow *mndFuncActionDecode(SSdbRaw *pRaw) { SDB_GET_INT32(pRaw, dataPos, &pFunc->commentSize, _OVER) SDB_GET_INT32(pRaw, dataPos, &pFunc->codeSize, _OVER) - pFunc->pComment = taosMemoryCalloc(1, pFunc->commentSize); + if (pFunc->commentSize > 0) { + pFunc->pComment = taosMemoryCalloc(1, pFunc->commentSize); + if (pFunc->pComment == NULL) { + goto _OVER; + } + SDB_GET_BINARY(pRaw, dataPos, pFunc->pComment, pFunc->commentSize, _OVER) + } + pFunc->pCode = taosMemoryCalloc(1, pFunc->codeSize); - if (pFunc->pComment == NULL || pFunc->pCode == NULL) { + if (pFunc->pCode == NULL) { goto _OVER; } - - SDB_GET_BINARY(pRaw, dataPos, pFunc->pComment, pFunc->commentSize, _OVER) SDB_GET_BINARY(pRaw, dataPos, pFunc->pCode, pFunc->codeSize, _OVER) SDB_GET_RESERVE(pRaw, dataPos, SDB_FUNC_RESERVE_SIZE, _OVER) @@ -192,16 +199,20 @@ static int32_t mndCreateFunc(SMnode *pMnode, SNodeMsg *pReq, SCreateFuncReq *pCr func.outputLen = pCreate->outputLen; func.bufSize = pCreate->bufSize; func.signature = pCreate->signature; - func.commentSize = strlen(pCreate->pComment) + 1; - func.codeSize = strlen(pCreate->pCode) + 1; - func.pComment = taosMemoryMalloc(func.commentSize); + if (NULL != pCreate->pComment) { + func.commentSize = strlen(pCreate->pComment) + 1; + func.pComment = taosMemoryMalloc(func.commentSize); + } + func.codeSize = pCreate->codeLen; func.pCode = taosMemoryMalloc(func.codeSize); if (func.pCode == NULL || func.pCode == NULL) { terrno = TSDB_CODE_OUT_OF_MEMORY; goto _OVER; } - memcpy(func.pComment, pCreate->pComment, func.commentSize); + if (func.commentSize > 0) { + memcpy(func.pComment, pCreate->pComment, func.commentSize); + } memcpy(func.pCode, pCreate->pCode, func.codeSize); pTrans = mndTransCreate(pMnode, TRN_POLICY_ROLLBACK, TRN_TYPE_CREATE_FUNC, &pReq->rpcMsg); @@ -293,16 +304,6 @@ static int32_t mndProcessCreateFuncReq(SNodeMsg *pReq) { goto _OVER; } - if (createReq.pComment == NULL) { - terrno = TSDB_CODE_MND_INVALID_FUNC_COMMENT; - goto _OVER; - } - - if (createReq.pComment[0] == 0) { - terrno = TSDB_CODE_MND_INVALID_FUNC_COMMENT; - goto _OVER; - } - if (createReq.pCode == NULL) { terrno = TSDB_CODE_MND_INVALID_FUNC_CODE; goto _OVER; @@ -441,13 +442,19 @@ static int32_t mndProcessRetrieveFuncReq(SNodeMsg *pReq) { funcInfo.commentSize = pFunc->commentSize; funcInfo.codeSize = pFunc->codeSize; funcInfo.pCode = taosMemoryCalloc(1, sizeof(funcInfo.codeSize)); - funcInfo.pComment = taosMemoryCalloc(1, sizeof(funcInfo.commentSize)); - if (funcInfo.pCode == NULL || funcInfo.pComment == NULL) { + if (funcInfo.pCode == NULL) { terrno = TSDB_CODE_OUT_OF_MEMORY; goto RETRIEVE_FUNC_OVER; } - memcpy(funcInfo.pComment, pFunc->pComment, pFunc->commentSize); memcpy(funcInfo.pCode, pFunc->pCode, pFunc->codeSize); + if (funcInfo.commentSize > 0) { + funcInfo.pComment = taosMemoryCalloc(1, sizeof(funcInfo.commentSize)); + if (funcInfo.pComment == NULL) { + terrno = TSDB_CODE_OUT_OF_MEMORY; + goto RETRIEVE_FUNC_OVER; + } + memcpy(funcInfo.pComment, pFunc->pComment, pFunc->commentSize); + } taosArrayPush(retrieveRsp.pFuncInfos, &funcInfo); mndReleaseFunc(pMnode, pFunc); } diff --git a/source/libs/function/CMakeLists.txt b/source/libs/function/CMakeLists.txt index aa909361ea091da6c576ba2b46309ea1bb249286..f524185f2ccbc281098f84ff87895413f0402409 100644 --- a/source/libs/function/CMakeLists.txt +++ b/source/libs/function/CMakeLists.txt @@ -11,7 +11,7 @@ target_include_directories( target_link_libraries( function - PRIVATE os util common nodes scalar + PRIVATE os util common nodes scalar catalog qcom transport PUBLIC uv_a ) diff --git a/source/libs/function/inc/builtins.h b/source/libs/function/inc/builtins.h index fb36c9d978a1c653dbe48fdd80001cb6c1d08f1d..54a68715a877836b6b0104bfa6cda4e68b240f04 100644 --- a/source/libs/function/inc/builtins.h +++ b/source/libs/function/inc/builtins.h @@ -20,26 +20,7 @@ extern "C" { #endif -#include "functionMgt.h" - -#define FUNCTION_NAME_MAX_LENGTH 32 - -#define FUNC_MGT_FUNC_CLASSIFICATION_MASK(n) (1 << n) - -#define FUNC_MGT_AGG_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(0) -#define FUNC_MGT_SCALAR_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(1) -#define FUNC_MGT_NONSTANDARD_SQL_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(2) -#define FUNC_MGT_STRING_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(3) -#define FUNC_MGT_DATETIME_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(4) -#define FUNC_MGT_TIMELINE_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(5) -#define FUNC_MGT_TIMEORDER_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(6) -#define FUNC_MGT_PSEUDO_COLUMN_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(7) -#define FUNC_MGT_WINDOW_PC_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(8) -#define FUNC_MGT_SPECIAL_DATA_REQUIRED FUNC_MGT_FUNC_CLASSIFICATION_MASK(9) -#define FUNC_MGT_DYNAMIC_SCAN_OPTIMIZED FUNC_MGT_FUNC_CLASSIFICATION_MASK(10) -#define FUNC_MGT_MULTI_RES_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(11) - -#define FUNC_MGT_TEST_MASK(val, mask) (((val) & (mask)) != 0) +#include "functionMgtInt.h" typedef int32_t (*FTranslateFunc)(SFunctionNode* pFunc, char* pErrBuf, int32_t len); typedef EFuncDataRequired (*FFuncDataRequired)(SFunctionNode* pFunc, STimeWindow* pTimeWindow); diff --git a/source/libs/function/inc/functionMgtInt.h b/source/libs/function/inc/functionMgtInt.h index 4baf338e9b750ea7ad35f6b63052dc2c05a57fc6..39287f08ee62a535265147855c1f611b7ab90d10 100644 --- a/source/libs/function/inc/functionMgtInt.h +++ b/source/libs/function/inc/functionMgtInt.h @@ -21,9 +21,29 @@ extern "C" { #endif #include "functionMgt.h" -// #include "builtins.h" +#define FUNCTION_NAME_MAX_LENGTH 32 +#define FUNC_MGT_FUNC_CLASSIFICATION_MASK(n) (1 << n) + +#define FUNC_MGT_AGG_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(0) +#define FUNC_MGT_SCALAR_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(1) +#define FUNC_MGT_NONSTANDARD_SQL_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(2) +#define FUNC_MGT_STRING_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(3) +#define FUNC_MGT_DATETIME_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(4) +#define FUNC_MGT_TIMELINE_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(5) +#define FUNC_MGT_TIMEORDER_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(6) +#define FUNC_MGT_PSEUDO_COLUMN_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(7) +#define FUNC_MGT_WINDOW_PC_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(8) +#define FUNC_MGT_SPECIAL_DATA_REQUIRED FUNC_MGT_FUNC_CLASSIFICATION_MASK(9) +#define FUNC_MGT_DYNAMIC_SCAN_OPTIMIZED FUNC_MGT_FUNC_CLASSIFICATION_MASK(10) +#define FUNC_MGT_MULTI_RES_FUNC FUNC_MGT_FUNC_CLASSIFICATION_MASK(11) + +#define FUNC_MGT_TEST_MASK(val, mask) (((val) & (mask)) != 0) + +#define FUNC_UDF_ID_START_OFFSET_VAL 5000 + +extern const int funcMgtUdfNum; #ifdef __cplusplus } diff --git a/source/libs/function/src/functionMgt.c b/source/libs/function/src/functionMgt.c index 950006494932fdd889745ae1304d09915bec9fb4..130b81a60925a20625ad1b50caffafa4337252cc 100644 --- a/source/libs/function/src/functionMgt.c +++ b/source/libs/function/src/functionMgt.c @@ -20,16 +20,22 @@ #include "taoserror.h" #include "thash.h" #include "builtins.h" +#include "catalog.h" typedef struct SFuncMgtService { SHashObj* pFuncNameHashTable; + SArray* pUdfTable; // SUdfInfo } SFuncMgtService; +typedef struct SUdfInfo { + SDataType outputDt; +} SUdfInfo; + static SFuncMgtService gFunMgtService; static TdThreadOnce functionHashTableInit = PTHREAD_ONCE_INIT; static int32_t initFunctionCode = 0; -static void doInitFunctionHashTable() { +static void doInitFunctionTable() { gFunMgtService.pFuncNameHashTable = taosHashInit(funcMgtBuiltinsNum, taosGetDefaultHashFunction(TSDB_DATA_TYPE_BINARY), true, HASH_NO_LOCK); if (NULL == gFunMgtService.pFuncNameHashTable) { initFunctionCode = TSDB_CODE_FAILED; @@ -42,6 +48,8 @@ static void doInitFunctionHashTable() { return; } } + + gFunMgtService.pUdfTable = NULL; } static bool isSpecificClassifyFunc(int32_t funcId, uint64_t classification) { @@ -51,25 +59,56 @@ static bool isSpecificClassifyFunc(int32_t funcId, uint64_t classification) { return FUNC_MGT_TEST_MASK(funcMgtBuiltins[funcId].classification, classification); } +static int32_t getUdfId(const char* pFuncName) { + // todo: udf by call catalog + if (1) { + return -1; + } + if (NULL == gFunMgtService.pUdfTable) { + gFunMgtService.pUdfTable = taosArrayInit(TARRAY_MIN_SIZE, sizeof(SUdfInfo)); + } + SUdfInfo info = {0}; //todo + taosArrayPush(gFunMgtService.pUdfTable, &info); + return taosArrayGetSize(gFunMgtService.pUdfTable) + FUNC_UDF_ID_START_OFFSET_VAL; +} + +static int32_t getFuncId(const char* pFuncName) { + void* pVal = taosHashGet(gFunMgtService.pFuncNameHashTable, pFuncName, strlen(pFuncName)); + if (NULL == pVal) { + return getUdfId(pFuncName); + } + return *(int32_t*)pVal; +} + +static int32_t getUdfResultType(SFunctionNode* pFunc) { + SUdfInfo* pUdf = taosArrayGet(gFunMgtService.pUdfTable, pFunc->funcId - FUNC_UDF_ID_START_OFFSET_VAL - 1); + pFunc->node.resType = pUdf->outputDt; + return TSDB_CODE_SUCCESS; +} + int32_t fmFuncMgtInit() { - taosThreadOnce(&functionHashTableInit, doInitFunctionHashTable); + taosThreadOnce(&functionHashTableInit, doInitFunctionTable); return initFunctionCode; } int32_t fmGetFuncInfo(const char* pFuncName, int32_t* pFuncId, int32_t* pFuncType) { - void* pVal = taosHashGet(gFunMgtService.pFuncNameHashTable, pFuncName, strlen(pFuncName)); - if (NULL == pVal) { + *pFuncId = getFuncId(pFuncName); + if (*pFuncId < 0) { return TSDB_CODE_FAILED; } - *pFuncId = *(int32_t*)pVal; - if (*pFuncId < 0 || *pFuncId >= funcMgtBuiltinsNum) { - return TSDB_CODE_FAILED; + if (fmIsUserDefinedFunc(*pFuncId)) { + *pFuncType = FUNCTION_TYPE_UDF; + } else { + *pFuncType = funcMgtBuiltins[*pFuncId].type; } - *pFuncType = funcMgtBuiltins[*pFuncId].type; return TSDB_CODE_SUCCESS; } int32_t fmGetFuncResultType(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { + if (fmIsUserDefinedFunc(pFunc->funcId)) { + return getUdfResultType(pFunc); + } + if (pFunc->funcId < 0 || pFunc->funcId >= funcMgtBuiltinsNum) { return TSDB_CODE_FAILED; } @@ -77,7 +116,7 @@ int32_t fmGetFuncResultType(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { } EFuncDataRequired fmFuncDataRequired(SFunctionNode* pFunc, STimeWindow* pTimeWindow) { - if (pFunc->funcId < 0 || pFunc->funcId >= funcMgtBuiltinsNum) { + if (fmIsUserDefinedFunc(pFunc->funcId) || pFunc->funcId < 0 || pFunc->funcId >= funcMgtBuiltinsNum) { return FUNC_DATA_REQUIRED_DATA_LOAD; } if (NULL == funcMgtBuiltins[pFunc->funcId].dataRequiredFunc) { @@ -87,7 +126,7 @@ EFuncDataRequired fmFuncDataRequired(SFunctionNode* pFunc, STimeWindow* pTimeWin } int32_t fmGetFuncExecFuncs(int32_t funcId, SFuncExecFuncs* pFpSet) { - if (funcId < 0 || funcId >= funcMgtBuiltinsNum) { + if (fmIsUserDefinedFunc(funcId) || funcId < 0 || funcId >= funcMgtBuiltinsNum) { return TSDB_CODE_FAILED; } pFpSet->getEnv = funcMgtBuiltins[funcId].getEnvFunc; @@ -98,7 +137,7 @@ int32_t fmGetFuncExecFuncs(int32_t funcId, SFuncExecFuncs* pFpSet) { } int32_t fmGetScalarFuncExecFuncs(int32_t funcId, SScalarFuncExecFuncs* pFpSet) { - if (funcId < 0 || funcId >= funcMgtBuiltinsNum) { + if (fmIsUserDefinedFunc(funcId) || funcId < 0 || funcId >= funcMgtBuiltinsNum) { return TSDB_CODE_FAILED; } pFpSet->process = funcMgtBuiltins[funcId].sprocessFunc; @@ -142,6 +181,10 @@ bool fmIsMultiResFunc(int32_t funcId) { return isSpecificClassifyFunc(funcId, FUNC_MGT_MULTI_RES_FUNC); } +bool fmIsUserDefinedFunc(int32_t funcId) { + return funcId > FUNC_UDF_ID_START_OFFSET_VAL; +} + 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/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index d4457a056e26d54ac60cfa7fe2141ee947a37643..7bf6569d388ac9aeae171c0af659778abebbb183 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -149,7 +149,9 @@ SNodeptr nodesMakeNode(ENodeType type) { case QUERY_NODE_RESET_QUERY_CACHE_STMT: return makeNode(type, sizeof(SNode)); case QUERY_NODE_COMPACT_STMT: + break; case QUERY_NODE_CREATE_FUNCTION_STMT: + return makeNode(type, sizeof(SCreateFunctionStmt)); case QUERY_NODE_DROP_FUNCTION_STMT: break; case QUERY_NODE_CREATE_STREAM_STMT: @@ -167,6 +169,7 @@ SNodeptr nodesMakeNode(ENodeType type) { case QUERY_NODE_SHOW_QNODES_STMT: case QUERY_NODE_SHOW_SNODES_STMT: case QUERY_NODE_SHOW_BNODES_STMT: + case QUERY_NODE_SHOW_CLUSTER_STMT: case QUERY_NODE_SHOW_DATABASES_STMT: case QUERY_NODE_SHOW_FUNCTIONS_STMT: case QUERY_NODE_SHOW_INDEXES_STMT: diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index d53181b76f481bda392765cd7c8201cb80630d57..7cb64b78e30ca21e6e8c94129437b07e64c0c2e8 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -167,7 +167,7 @@ SNode* createExplainStmt(SAstCreateContext* pCxt, bool analyze, SNode* pOptions, SNode* createDescribeStmt(SAstCreateContext* pCxt, SNode* pRealTable); SNode* createResetQueryCacheStmt(SAstCreateContext* pCxt); SNode* createCompactStmt(SAstCreateContext* pCxt, SNodeList* pVgroups); -SNode* createCreateFunctionStmt(SAstCreateContext* pCxt, bool aggFunc, const SToken* pFuncName, const SToken* pLibPath, SDataType dataType, int32_t bufSize); +SNode* createCreateFunctionStmt(SAstCreateContext* pCxt, bool ignoreExists, bool aggFunc, const SToken* pFuncName, const SToken* pLibPath, SDataType dataType, int32_t bufSize); SNode* createDropFunctionStmt(SAstCreateContext* pCxt, const SToken* pFuncName); SNode* createStreamOptions(SAstCreateContext* pCxt); SNode* createCreateStreamStmt(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pStreamName, SNode* pRealTable, SNode* pOptions, SNode* pQuery); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 94913eb7c2a910e126aba041ac72f1fc0c318aae..e68a4389fedefe4df1801ca1754723cb29b5fe41 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -346,6 +346,7 @@ cmd ::= SHOW TOPICS. cmd ::= SHOW VARIABLES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); } cmd ::= SHOW BNODES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); } cmd ::= SHOW SNODES. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); } +cmd ::= SHOW CLUSTER. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT, NULL, NULL); } db_name_cond_opt(A) ::= . { A = createDefaultDatabaseCondValue(pCxt); } db_name_cond_opt(A) ::= db_name(B) NK_DOT. { A = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &B); } @@ -413,8 +414,8 @@ explain_options(A) ::= explain_options(B) RATIO NK_FLOAT(C). cmd ::= COMPACT VNODES IN NK_LP integer_list(A) NK_RP. { pCxt->pRootNode = createCompactStmt(pCxt, A); } /************************************************ create/drop function ************************************************/ -cmd ::= CREATE agg_func_opt(A) FUNCTION function_name(B) - AS NK_STRING(C) OUTPUTTYPE type_name(D) bufsize_opt(E). { pCxt->pRootNode = createCreateFunctionStmt(pCxt, A, &B, &C, D, E); } +cmd ::= CREATE agg_func_opt(A) FUNCTION not_exists_opt(F) function_name(B) + AS NK_STRING(C) OUTPUTTYPE type_name(D) bufsize_opt(E). { pCxt->pRootNode = createCreateFunctionStmt(pCxt, F, A, &B, &C, D, E); } cmd ::= DROP FUNCTION function_name(A). { pCxt->pRootNode = createDropFunctionStmt(pCxt, &A); } %type agg_func_opt { bool } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 0bc28beef9b510a3e02de53dd1ffd8986b197f02..9453bf18df682b81e62909e45a8ee0a954fecdd7 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1184,10 +1184,21 @@ SNode* createCompactStmt(SAstCreateContext* pCxt, SNodeList* pVgroups) { return pStmt; } -SNode* createCreateFunctionStmt(SAstCreateContext* pCxt, bool aggFunc, const SToken* pFuncName, const SToken* pLibPath, SDataType dataType, int32_t bufSize) { - SNode* pStmt = nodesMakeNode(QUERY_NODE_CREATE_FUNCTION_STMT); +SNode* createCreateFunctionStmt(SAstCreateContext* pCxt, + bool ignoreExists, bool aggFunc, const SToken* pFuncName, const SToken* pLibPath, SDataType dataType, int32_t bufSize) { + if (pLibPath->n <= 2) { + pCxt->valid = false; + return NULL; + } + SCreateFunctionStmt* pStmt = nodesMakeNode(QUERY_NODE_CREATE_FUNCTION_STMT); CHECK_OUT_OF_MEM(pStmt); - return pStmt; + pStmt->ignoreExists = ignoreExists; + strncpy(pStmt->funcName, pFuncName->z, pFuncName->n); + pStmt->isAgg = aggFunc; + strncpy(pStmt->libraryPath, pLibPath->z + 1, pLibPath->n - 2); + pStmt->outputDt = dataType; + pStmt->bufSize = bufSize; + return (SNode*)pStmt; } SNode* createDropFunctionStmt(SAstCreateContext* pCxt, const SToken* pFuncName) { diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index d8ab3f8ced835fb137fc8623a226affab1df9df2..666cdbb6db804c615c1e73b19cc633a36ba73310 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -52,6 +52,7 @@ static SKeyword keywordTable[] = { {"CACHE", TK_CACHE}, {"CACHELAST", TK_CACHELAST}, {"CAST", TK_CAST}, + {"CLUSTER", TK_CLUSTER}, {"COLUMN", TK_COLUMN}, {"COMMENT", TK_COMMENT}, {"COMP", TK_COMP}, @@ -248,7 +249,6 @@ static SKeyword keywordTable[] = { // {"BEFORE", TK_BEFORE}, // {"BEGIN", TK_BEGIN}, // {"CASCADE", TK_CASCADE}, - // {"CLUSTER", TK_CLUSTER}, // {"CONFLICT", TK_CONFLICT}, // {"COPY", TK_COPY}, // {"DEFERRED", TK_DEFERRED}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 35da51b6d2464afc6405d9cb39926b5b462e732f..ec4aa37db98ba6d1bdcb2912196d4dbe59fc1cc2 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2595,6 +2595,55 @@ static int32_t translateDropStream(STranslateContext* pCxt, SDropStreamStmt* pSt return TSDB_CODE_SUCCESS; } +static int32_t readFromFile(char* pName, int32_t *len, char **buf) { + int64_t filesize = 0; + if (taosStatFile(pName, &filesize, NULL) < 0) { + return TAOS_SYSTEM_ERROR(errno); + } + + *len = filesize; + + if (*len <= 0) { + return TSDB_CODE_TSC_FILE_EMPTY; + } + + *buf = taosMemoryCalloc(1, *len); + if (*buf == NULL) { + return TSDB_CODE_OUT_OF_MEMORY; + } + + TdFilePtr tfile = taosOpenFile(pName, O_RDONLY | O_BINARY); + if (NULL == tfile) { + taosMemoryFreeClear(*buf); + return TAOS_SYSTEM_ERROR(errno); + } + + int64_t s = taosReadFile(tfile, *buf, *len); + if (s != *len) { + taosCloseFile(&tfile); + taosMemoryFreeClear(*buf); + return TSDB_CODE_TSC_APP_ERROR; + } + taosCloseFile(&tfile); + return TSDB_CODE_SUCCESS; +} + +static int32_t translateCreateFunction(STranslateContext* pCxt, SCreateFunctionStmt* pStmt) { + SCreateFuncReq req = {0}; + strcpy(req.name, pStmt->funcName); + req.igExists = pStmt->ignoreExists; + req.funcType = pStmt->isAgg ? TSDB_FUNC_TYPE_AGGREGATE : TSDB_FUNC_TYPE_SCALAR; + req.scriptType = TSDB_FUNC_SCRIPT_BIN_LIB; + req.outputType = pStmt->outputDt.type; + req.outputLen = pStmt->outputDt.bytes; + req.bufSize = pStmt->bufSize; + int32_t code = readFromFile(pStmt->libraryPath, &req.codeLen, &req.pCode); + if (TSDB_CODE_SUCCESS == code) { + code = buildCmdMsg(pCxt, TDMT_MND_CREATE_FUNC, (FSerializeFunc)tSerializeSCreateFuncReq, &req); + } + return code; +} + static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { int32_t code = TSDB_CODE_SUCCESS; switch (nodeType(pNode)) { @@ -2693,6 +2742,9 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_DROP_STREAM_STMT: code = translateDropStream(pCxt, (SDropStreamStmt*)pNode); break; + case QUERY_NODE_CREATE_FUNCTION_STMT: + code = translateCreateFunction(pCxt, (SCreateFunctionStmt*)pNode); + break; default: break; } @@ -2807,6 +2859,7 @@ static const char* getSysDbName(ENodeType type) { case QUERY_NODE_SHOW_BNODES_STMT: case QUERY_NODE_SHOW_SNODES_STMT: case QUERY_NODE_SHOW_LICENCE_STMT: + case QUERY_NODE_SHOW_CLUSTER_STMT: return TSDB_INFORMATION_SCHEMA_DB; case QUERY_NODE_SHOW_CONNECTIONS_STMT: case QUERY_NODE_SHOW_QUERIES_STMT: @@ -2849,6 +2902,8 @@ static const char* getSysTableName(ENodeType type) { return TSDB_INS_TABLE_SNODES; case QUERY_NODE_SHOW_LICENCE_STMT: return TSDB_INS_TABLE_LICENCES; + case QUERY_NODE_SHOW_CLUSTER_STMT: + return TSDB_INS_TABLE_CLUSTER; case QUERY_NODE_SHOW_CONNECTIONS_STMT: return TSDB_PERFS_TABLE_CONNECTIONS; case QUERY_NODE_SHOW_QUERIES_STMT: @@ -3365,6 +3420,7 @@ static int32_t rewriteQuery(STranslateContext* pCxt, SQuery* pQuery) { case QUERY_NODE_SHOW_SNODES_STMT: case QUERY_NODE_SHOW_CONNECTIONS_STMT: case QUERY_NODE_SHOW_QUERIES_STMT: + case QUERY_NODE_SHOW_CLUSTER_STMT: code = rewriteShow(pCxt, pQuery); break; case QUERY_NODE_CREATE_TABLE_STMT: diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index f8396dc50c4cb35d3ab86f814816d545577361ce..48220dbef70c9f0cb3b317d6379d317b80e3f7db 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -100,24 +100,24 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 335 +#define YYNOCODE 336 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - SNode* yy42; - EJoinType yy102; - ENullOrder yy197; - bool yy237; - int32_t yy240; - SNodeList* yy244; - EOperatorType yy270; - SDataType yy314; - SAlterOption yy325; - SToken yy359; - EOrder yy508; - EFillMode yy544; + int32_t yy4; + bool yy89; + EFillMode yy102; + SDataType yy112; + SAlterOption yy221; + ENullOrder yy361; + EJoinType yy372; + SNodeList* yy376; + EOperatorType yy380; + EOrder yy386; + SNode* yy392; + SToken yy449; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -132,17 +132,17 @@ typedef union { #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE -#define YYNSTATE 570 -#define YYNRULE 435 -#define YYNTOKEN 221 -#define YY_MAX_SHIFT 569 -#define YY_MIN_SHIFTREDUCE 847 -#define YY_MAX_SHIFTREDUCE 1281 -#define YY_ERROR_ACTION 1282 -#define YY_ACCEPT_ACTION 1283 -#define YY_NO_ACTION 1284 -#define YY_MIN_REDUCE 1285 -#define YY_MAX_REDUCE 1719 +#define YYNSTATE 572 +#define YYNRULE 436 +#define YYNTOKEN 222 +#define YY_MAX_SHIFT 571 +#define YY_MIN_SHIFTREDUCE 849 +#define YY_MAX_SHIFTREDUCE 1284 +#define YY_ERROR_ACTION 1285 +#define YY_ACCEPT_ACTION 1286 +#define YY_NO_ACTION 1287 +#define YY_MIN_REDUCE 1288 +#define YY_MAX_REDUCE 1723 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -209,536 +209,553 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (1813) +#define YY_ACTTAB_COUNT (1960) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 268, 1587, 285, 53, 1571, 483, 26, 203, 467, 1385, - /* 10 */ 1283, 1557, 33, 31, 77, 1571, 99, 1557, 483, 1557, - /* 20 */ 277, 380, 1102, 442, 1402, 1553, 1560, 321, 1587, 288, - /* 30 */ 1407, 1553, 1559, 1553, 1559, 467, 1490, 1492, 1100, 1587, - /* 40 */ 124, 69, 435, 1407, 1364, 466, 467, 1384, 104, 1543, - /* 50 */ 12, 33, 31, 1224, 482, 105, 466, 1108, 359, 277, - /* 60 */ 1543, 1102, 1399, 293, 1123, 446, 1571, 241, 1572, 469, - /* 70 */ 1574, 1575, 465, 482, 460, 1, 323, 1100, 72, 1572, - /* 80 */ 469, 1574, 1575, 465, 102, 460, 562, 561, 1637, 12, - /* 90 */ 1587, 100, 249, 1633, 482, 383, 1108, 445, 566, 133, - /* 100 */ 1644, 1645, 1698, 1649, 1698, 438, 248, 466, 106, 36, - /* 110 */ 1101, 1543, 514, 483, 1, 136, 1651, 136, 386, 1696, - /* 120 */ 359, 1696, 322, 34, 32, 30, 29, 28, 36, 73, - /* 130 */ 1572, 469, 1574, 1575, 465, 517, 460, 566, 1407, 1637, - /* 140 */ 1648, 483, 483, 270, 1633, 131, 123, 1103, 1297, 1101, - /* 150 */ 330, 331, 1398, 1487, 513, 512, 511, 199, 510, 470, - /* 160 */ 145, 250, 280, 425, 1664, 1499, 1407, 1407, 1106, 1107, - /* 170 */ 1651, 1151, 1152, 1153, 1154, 1155, 1156, 1157, 462, 1162, - /* 180 */ 1163, 1164, 1165, 1166, 1167, 1168, 1103, 1138, 1127, 34, - /* 190 */ 32, 30, 29, 28, 1647, 1186, 418, 1543, 137, 34, - /* 200 */ 32, 30, 29, 28, 523, 442, 1379, 1106, 1107, 432, - /* 210 */ 1151, 1152, 1153, 1154, 1155, 1156, 1157, 462, 1162, 1163, - /* 220 */ 1164, 1165, 1166, 1167, 1168, 33, 31, 250, 483, 483, - /* 230 */ 104, 937, 137, 277, 247, 1102, 1123, 358, 77, 317, - /* 240 */ 419, 260, 137, 338, 1187, 387, 350, 1111, 55, 266, - /* 250 */ 939, 1100, 174, 1407, 1407, 351, 34, 32, 30, 29, - /* 260 */ 28, 1186, 1192, 12, 33, 31, 102, 100, 483, 410, - /* 270 */ 1108, 383, 277, 1383, 1102, 437, 433, 291, 1698, 1698, - /* 280 */ 444, 132, 1644, 1645, 261, 1649, 259, 258, 1, 382, - /* 290 */ 1100, 136, 136, 1407, 386, 1696, 1696, 25, 275, 1181, - /* 300 */ 1182, 1183, 1184, 1185, 1189, 1190, 1191, 198, 1698, 1108, - /* 310 */ 1187, 566, 1248, 127, 34, 32, 30, 29, 28, 1114, - /* 320 */ 1238, 136, 519, 1101, 1448, 1696, 120, 7, 1192, 349, - /* 330 */ 385, 384, 344, 343, 342, 341, 340, 449, 337, 336, - /* 340 */ 335, 334, 333, 329, 328, 327, 326, 325, 324, 137, - /* 350 */ 566, 429, 1246, 1247, 1249, 1250, 30, 29, 28, 884, - /* 360 */ 1103, 883, 1101, 25, 275, 1181, 1182, 1183, 1184, 1185, - /* 370 */ 1189, 1190, 1191, 34, 32, 30, 29, 28, 1125, 885, - /* 380 */ 225, 1106, 1107, 1437, 1151, 1152, 1153, 1154, 1155, 1156, - /* 390 */ 1157, 462, 1162, 1163, 1164, 1165, 1166, 1167, 1168, 1103, - /* 400 */ 975, 506, 505, 504, 979, 503, 981, 982, 502, 984, - /* 410 */ 499, 121, 990, 496, 992, 993, 493, 490, 442, 1410, - /* 420 */ 1106, 1107, 1324, 1151, 1152, 1153, 1154, 1155, 1156, 1157, - /* 430 */ 462, 1162, 1163, 1164, 1165, 1166, 1167, 1168, 33, 31, - /* 440 */ 1169, 1571, 1278, 104, 397, 316, 277, 315, 1102, 442, - /* 450 */ 137, 88, 394, 393, 87, 86, 85, 84, 83, 82, - /* 460 */ 81, 80, 79, 1698, 1100, 1587, 483, 34, 32, 30, - /* 470 */ 29, 28, 445, 281, 104, 1404, 1697, 33, 31, 102, - /* 480 */ 1696, 121, 466, 1108, 883, 277, 1543, 1102, 1651, 1409, - /* 490 */ 483, 1407, 436, 446, 134, 1644, 1645, 137, 1649, 1524, - /* 500 */ 378, 7, 519, 1100, 73, 1572, 469, 1574, 1575, 465, - /* 510 */ 102, 460, 1646, 1571, 1637, 1407, 522, 345, 270, 1633, - /* 520 */ 131, 1277, 1108, 401, 566, 196, 1644, 441, 1126, 440, - /* 530 */ 6, 1138, 1698, 1188, 483, 1456, 1101, 1587, 409, 1665, - /* 540 */ 7, 267, 1308, 480, 464, 136, 1454, 483, 448, 1696, - /* 550 */ 1564, 1193, 173, 53, 466, 404, 481, 22, 1543, 1407, - /* 560 */ 398, 143, 1562, 566, 147, 146, 172, 34, 32, 30, - /* 570 */ 29, 28, 1407, 1103, 1403, 1101, 245, 1572, 469, 1574, - /* 580 */ 1575, 465, 463, 460, 458, 1609, 23, 1543, 51, 165, - /* 590 */ 1571, 50, 163, 45, 1106, 1107, 44, 1151, 1152, 1153, - /* 600 */ 1154, 1155, 1156, 1157, 462, 1162, 1163, 1164, 1165, 1166, - /* 610 */ 1167, 1168, 1103, 24, 1587, 450, 9, 8, 534, 516, - /* 620 */ 515, 467, 311, 34, 32, 30, 29, 28, 1307, 535, - /* 630 */ 533, 466, 1223, 1106, 1107, 1543, 1151, 1152, 1153, 1154, - /* 640 */ 1155, 1156, 1157, 462, 1162, 1163, 1164, 1165, 1166, 1167, - /* 650 */ 1168, 33, 31, 73, 1572, 469, 1574, 1575, 465, 277, - /* 660 */ 460, 1102, 1571, 1637, 1456, 483, 308, 270, 1633, 1710, - /* 670 */ 282, 287, 290, 1543, 217, 1454, 1306, 1100, 1671, 121, - /* 680 */ 121, 1491, 1492, 62, 1219, 310, 1587, 1409, 1409, 1456, - /* 690 */ 1407, 1200, 470, 467, 1124, 289, 1108, 1305, 1500, 396, - /* 700 */ 1454, 390, 1304, 466, 1400, 395, 1303, 1543, 101, 1319, - /* 710 */ 391, 389, 1571, 392, 1, 453, 1302, 509, 388, 1301, - /* 720 */ 1300, 1543, 1299, 1296, 417, 73, 1572, 469, 1574, 1575, - /* 730 */ 465, 399, 460, 1396, 1456, 1637, 1587, 566, 1231, 270, - /* 740 */ 1633, 1710, 1543, 467, 1125, 1455, 569, 1543, 1295, 1101, - /* 750 */ 1694, 1543, 1294, 466, 1293, 1128, 1174, 1543, 1292, 451, - /* 760 */ 221, 1543, 1125, 98, 1543, 1543, 1532, 1543, 1543, 558, - /* 770 */ 1317, 554, 550, 546, 220, 73, 1572, 469, 1574, 1575, - /* 780 */ 465, 1291, 460, 1290, 1289, 1637, 1103, 1334, 1288, 270, - /* 790 */ 1633, 1710, 402, 1543, 1656, 1219, 408, 1543, 1110, 1543, - /* 800 */ 1655, 70, 300, 1543, 215, 9, 8, 1106, 1107, 406, - /* 810 */ 1151, 1152, 1153, 1154, 1155, 1156, 1157, 462, 1162, 1163, - /* 820 */ 1164, 1165, 1166, 1167, 1168, 1392, 1543, 1222, 1543, 1543, - /* 830 */ 1088, 1089, 167, 1543, 479, 166, 1571, 1280, 1281, 542, - /* 840 */ 541, 540, 539, 292, 1394, 538, 537, 536, 107, 531, - /* 850 */ 530, 529, 528, 527, 526, 525, 524, 114, 520, 122, - /* 860 */ 1587, 454, 424, 1382, 231, 180, 1571, 467, 169, 171, - /* 870 */ 1113, 168, 170, 457, 184, 112, 229, 466, 1390, 421, - /* 880 */ 1080, 1543, 176, 47, 187, 68, 446, 1245, 189, 148, - /* 890 */ 1587, 1286, 35, 177, 35, 64, 1194, 467, 1158, 238, - /* 900 */ 1572, 469, 1574, 1575, 465, 35, 460, 466, 909, 1063, - /* 910 */ 206, 1543, 88, 461, 208, 87, 86, 85, 84, 83, - /* 920 */ 82, 81, 80, 79, 106, 1698, 508, 910, 514, 74, - /* 930 */ 1572, 469, 1574, 1575, 465, 1285, 460, 109, 136, 1637, - /* 940 */ 1298, 475, 1696, 1636, 1633, 110, 112, 1365, 47, 214, - /* 950 */ 968, 517, 963, 71, 488, 1571, 200, 430, 996, 97, - /* 960 */ 96, 95, 94, 93, 92, 91, 90, 89, 411, 110, - /* 970 */ 513, 512, 511, 1000, 510, 1449, 111, 193, 377, 1587, - /* 980 */ 1007, 49, 48, 320, 112, 142, 467, 1667, 1006, 110, - /* 990 */ 314, 1178, 443, 113, 1588, 202, 466, 2, 1123, 295, - /* 1000 */ 1543, 299, 256, 1571, 306, 255, 302, 298, 139, 937, - /* 1010 */ 257, 1072, 1571, 222, 332, 1489, 144, 339, 74, 1572, - /* 1020 */ 469, 1574, 1575, 465, 346, 460, 347, 1587, 1637, 348, - /* 1030 */ 1102, 352, 456, 1633, 467, 1132, 1587, 353, 149, 137, - /* 1040 */ 1131, 152, 354, 467, 466, 355, 1100, 356, 1543, 357, - /* 1050 */ 1130, 155, 1129, 466, 379, 360, 52, 1543, 158, 78, - /* 1060 */ 265, 381, 1397, 162, 1571, 1108, 125, 1572, 469, 1574, - /* 1070 */ 1575, 465, 1571, 460, 1108, 74, 1572, 469, 1574, 1575, - /* 1080 */ 465, 223, 460, 1393, 164, 1637, 1528, 115, 1587, 175, - /* 1090 */ 1634, 116, 1395, 1391, 117, 467, 1587, 118, 412, 413, - /* 1100 */ 420, 179, 1571, 467, 182, 466, 566, 416, 422, 1543, - /* 1110 */ 447, 1711, 426, 466, 1128, 431, 423, 1543, 1101, 1678, - /* 1120 */ 473, 185, 1677, 1668, 428, 269, 1587, 246, 1572, 469, - /* 1130 */ 1574, 1575, 465, 467, 460, 125, 1572, 469, 1574, 1575, - /* 1140 */ 465, 188, 460, 466, 5, 439, 434, 1543, 427, 192, - /* 1150 */ 274, 1658, 4, 1219, 1571, 1103, 103, 1127, 37, 271, - /* 1160 */ 455, 1695, 195, 452, 129, 246, 1572, 469, 1574, 1575, - /* 1170 */ 465, 1652, 460, 194, 16, 1498, 1106, 1107, 1587, 1618, - /* 1180 */ 1712, 1497, 201, 471, 476, 464, 1713, 472, 279, 477, - /* 1190 */ 478, 210, 212, 224, 63, 466, 61, 1408, 1380, 1543, - /* 1200 */ 160, 486, 226, 130, 1571, 219, 128, 565, 43, 376, - /* 1210 */ 232, 372, 368, 364, 159, 1571, 233, 245, 1572, 469, - /* 1220 */ 1574, 1575, 465, 228, 460, 230, 1610, 294, 1587, 1537, - /* 1230 */ 1536, 1533, 296, 297, 1096, 467, 1097, 140, 301, 1587, - /* 1240 */ 303, 54, 1531, 304, 157, 466, 467, 305, 1530, 1543, - /* 1250 */ 307, 1529, 276, 1571, 309, 1514, 466, 141, 312, 313, - /* 1260 */ 1543, 1074, 1075, 278, 1508, 1507, 318, 246, 1572, 469, - /* 1270 */ 1574, 1575, 465, 319, 460, 1506, 1505, 1587, 246, 1572, - /* 1280 */ 469, 1574, 1575, 465, 467, 460, 1482, 1046, 1481, 1480, - /* 1290 */ 1479, 1478, 1477, 1476, 466, 1475, 1474, 1473, 1543, 1472, - /* 1300 */ 1571, 156, 1471, 151, 1470, 153, 1469, 1468, 1467, 108, - /* 1310 */ 1466, 1465, 1464, 1571, 1463, 1462, 234, 1572, 469, 1574, - /* 1320 */ 1575, 465, 150, 460, 1587, 1048, 1460, 1459, 1571, 1461, - /* 1330 */ 1458, 467, 1457, 1336, 1522, 1516, 1504, 1587, 902, 1335, - /* 1340 */ 1333, 466, 1495, 154, 467, 1543, 1386, 361, 363, 362, - /* 1350 */ 1331, 1329, 1587, 76, 466, 365, 366, 369, 1543, 467, - /* 1360 */ 370, 367, 1327, 240, 1572, 469, 1574, 1575, 465, 466, - /* 1370 */ 460, 371, 1316, 1543, 375, 1571, 242, 1572, 469, 1574, - /* 1380 */ 1575, 465, 373, 460, 374, 1315, 1312, 1388, 532, 1012, - /* 1390 */ 1571, 235, 1572, 469, 1574, 1575, 465, 1015, 460, 1587, - /* 1400 */ 262, 936, 935, 1571, 161, 1387, 467, 934, 933, 534, - /* 1410 */ 1325, 932, 929, 928, 1587, 263, 466, 1320, 400, 1318, - /* 1420 */ 1543, 467, 403, 264, 1311, 405, 1310, 1587, 407, 75, - /* 1430 */ 1521, 466, 1082, 46, 467, 1543, 1515, 119, 243, 1572, - /* 1440 */ 469, 1574, 1575, 465, 466, 460, 1503, 414, 1543, 1502, - /* 1450 */ 1494, 1571, 56, 236, 1572, 469, 1574, 1575, 465, 181, - /* 1460 */ 460, 3, 415, 35, 1571, 13, 244, 1572, 469, 1574, - /* 1470 */ 1575, 465, 186, 460, 41, 1587, 14, 178, 38, 191, - /* 1480 */ 1244, 183, 467, 126, 40, 1562, 190, 20, 1587, 1237, - /* 1490 */ 1216, 58, 466, 57, 21, 467, 1543, 1215, 1266, 39, - /* 1500 */ 11, 15, 1571, 1265, 272, 466, 1270, 197, 1271, 1543, - /* 1510 */ 135, 1269, 273, 8, 237, 1572, 469, 1574, 1575, 465, - /* 1520 */ 1179, 460, 459, 17, 1161, 138, 1587, 1583, 1572, 469, - /* 1530 */ 1574, 1575, 465, 467, 460, 1160, 27, 1146, 1159, 10, - /* 1540 */ 204, 468, 18, 466, 19, 1493, 205, 1543, 1242, 1571, - /* 1550 */ 207, 209, 59, 211, 60, 1118, 64, 42, 487, 997, - /* 1560 */ 286, 489, 1571, 491, 485, 1582, 1572, 469, 1574, 1575, - /* 1570 */ 465, 474, 460, 1587, 213, 1561, 216, 1571, 994, 492, - /* 1580 */ 467, 991, 494, 495, 497, 985, 1587, 498, 500, 983, - /* 1590 */ 466, 501, 989, 467, 1543, 988, 987, 986, 974, 65, - /* 1600 */ 1009, 1587, 507, 466, 1008, 66, 67, 1543, 467, 1005, - /* 1610 */ 1002, 900, 1581, 1572, 469, 1574, 1575, 465, 466, 460, - /* 1620 */ 518, 925, 1543, 943, 1571, 253, 1572, 469, 1574, 1575, - /* 1630 */ 465, 521, 460, 218, 923, 922, 921, 920, 919, 1571, - /* 1640 */ 252, 1572, 469, 1574, 1575, 465, 918, 460, 1587, 917, - /* 1650 */ 916, 940, 1571, 938, 913, 467, 284, 283, 912, 911, - /* 1660 */ 908, 907, 906, 1587, 905, 466, 1116, 1332, 543, 1543, - /* 1670 */ 467, 544, 545, 1330, 547, 548, 1587, 1337, 1328, 551, - /* 1680 */ 466, 549, 1109, 467, 1543, 552, 553, 254, 1572, 469, - /* 1690 */ 1574, 1575, 465, 466, 460, 1326, 555, 1543, 556, 557, - /* 1700 */ 1314, 1108, 251, 1572, 469, 1574, 1575, 465, 559, 460, - /* 1710 */ 1313, 560, 1309, 563, 564, 239, 1572, 469, 1574, 1575, - /* 1720 */ 465, 1104, 460, 227, 567, 568, 1284, 1284, 1284, 396, - /* 1730 */ 1284, 390, 1284, 1284, 1284, 395, 1284, 1284, 101, 1284, - /* 1740 */ 391, 389, 484, 392, 1284, 1284, 1284, 1284, 388, 1284, - /* 1750 */ 1284, 1284, 1284, 1284, 1112, 1284, 1284, 1284, 1284, 1284, - /* 1760 */ 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, - /* 1770 */ 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, - /* 1780 */ 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, - /* 1790 */ 1284, 1117, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, - /* 1800 */ 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, 1284, - /* 1810 */ 1284, 1284, 1120, + /* 0 */ 269, 1591, 286, 472, 1575, 485, 281, 324, 469, 1503, + /* 10 */ 1286, 1399, 33, 31, 77, 1575, 123, 1561, 1300, 1561, + /* 20 */ 278, 382, 1105, 34, 32, 30, 29, 28, 1591, 1561, + /* 30 */ 1410, 1557, 1563, 1557, 1563, 469, 124, 249, 1103, 1591, + /* 40 */ 1367, 53, 437, 1557, 1564, 468, 469, 1387, 444, 1547, + /* 50 */ 12, 33, 31, 1227, 99, 53, 468, 1111, 484, 278, + /* 60 */ 1547, 1105, 1405, 294, 318, 448, 1575, 242, 1576, 471, + /* 70 */ 1578, 1579, 467, 104, 462, 1, 1406, 1103, 72, 1576, + /* 80 */ 471, 1578, 1579, 467, 361, 462, 484, 289, 1641, 12, + /* 90 */ 1591, 484, 250, 1637, 1494, 1496, 1111, 447, 568, 26, + /* 100 */ 204, 452, 1702, 1702, 1702, 440, 420, 468, 106, 102, + /* 110 */ 1104, 1547, 516, 485, 1, 136, 136, 136, 1327, 1700, + /* 120 */ 1700, 1700, 322, 446, 132, 1648, 1649, 444, 1653, 73, + /* 130 */ 1576, 471, 1578, 1579, 467, 519, 462, 568, 1410, 1641, + /* 140 */ 399, 36, 485, 271, 1637, 131, 36, 69, 1106, 1104, + /* 150 */ 421, 323, 104, 1126, 515, 514, 513, 200, 512, 1491, + /* 160 */ 127, 105, 1128, 427, 1668, 434, 145, 1410, 1402, 1109, + /* 170 */ 1110, 1451, 1154, 1155, 1156, 1157, 1158, 1159, 1160, 464, + /* 180 */ 1165, 1166, 1167, 1168, 1169, 1170, 1171, 1106, 102, 1702, + /* 190 */ 1459, 34, 32, 30, 29, 28, 268, 9, 8, 137, + /* 200 */ 68, 1457, 136, 133, 1648, 1649, 1700, 1653, 1109, 1110, + /* 210 */ 64, 1154, 1155, 1156, 1157, 1158, 1159, 1160, 464, 1165, + /* 220 */ 1166, 1167, 1168, 1169, 1170, 1171, 33, 31, 438, 251, + /* 230 */ 226, 439, 435, 1440, 278, 248, 1105, 1126, 1575, 398, + /* 240 */ 886, 392, 885, 1459, 340, 397, 453, 352, 101, 283, + /* 250 */ 393, 391, 1103, 394, 1457, 1141, 353, 317, 390, 316, + /* 260 */ 887, 137, 1591, 1189, 12, 33, 31, 387, 386, 469, + /* 270 */ 137, 1111, 1203, 278, 22, 1105, 1655, 55, 267, 468, + /* 280 */ 1251, 174, 24, 1547, 34, 32, 30, 29, 28, 1, + /* 290 */ 1655, 1103, 34, 32, 30, 29, 28, 30, 29, 28, + /* 300 */ 1652, 73, 1576, 471, 1578, 1579, 467, 1401, 462, 137, + /* 310 */ 1111, 1641, 568, 1190, 1651, 271, 1637, 1714, 1129, 431, + /* 320 */ 1249, 1250, 1252, 1253, 1104, 412, 1675, 1388, 7, 1288, + /* 330 */ 351, 1195, 137, 346, 345, 344, 343, 342, 1130, 339, + /* 340 */ 338, 337, 336, 335, 331, 330, 329, 328, 327, 326, + /* 350 */ 325, 568, 1547, 97, 96, 95, 94, 93, 92, 91, + /* 360 */ 90, 89, 1106, 1104, 1702, 1702, 25, 276, 1184, 1185, + /* 370 */ 1186, 1187, 1188, 1192, 1193, 1194, 361, 136, 1701, 1311, + /* 380 */ 521, 1700, 1700, 1109, 1110, 939, 1154, 1155, 1156, 1157, + /* 390 */ 1158, 1159, 1160, 464, 1165, 1166, 1167, 1168, 1169, 1170, + /* 400 */ 1171, 1106, 564, 563, 941, 34, 32, 30, 29, 28, + /* 410 */ 88, 396, 395, 87, 86, 85, 84, 83, 82, 81, + /* 420 */ 80, 79, 1109, 1110, 1547, 1154, 1155, 1156, 1157, 1158, + /* 430 */ 1159, 1160, 464, 1165, 1166, 1167, 1168, 1169, 1170, 1171, + /* 440 */ 33, 31, 1172, 251, 1289, 309, 1310, 282, 278, 1127, + /* 450 */ 1105, 288, 137, 485, 472, 121, 261, 100, 199, 121, + /* 460 */ 1504, 385, 332, 1412, 311, 88, 1103, 1412, 87, 86, + /* 470 */ 85, 84, 83, 82, 81, 80, 79, 1189, 1410, 33, + /* 480 */ 31, 143, 100, 1385, 388, 1111, 385, 278, 1309, 1105, + /* 490 */ 1575, 1547, 34, 32, 30, 29, 28, 485, 485, 262, + /* 500 */ 1386, 260, 259, 7, 384, 1103, 77, 333, 51, 388, + /* 510 */ 1322, 50, 291, 389, 1591, 34, 32, 30, 29, 28, + /* 520 */ 121, 469, 1410, 1410, 1111, 485, 568, 1190, 1412, 1308, + /* 530 */ 1459, 468, 401, 1547, 360, 1547, 290, 485, 1104, 121, + /* 540 */ 1459, 1457, 7, 1191, 106, 1195, 1407, 1413, 516, 521, + /* 550 */ 1410, 1458, 62, 73, 1576, 471, 1578, 1579, 467, 511, + /* 560 */ 462, 1196, 1410, 1641, 1340, 568, 524, 271, 1637, 1714, + /* 570 */ 1131, 519, 347, 1403, 1547, 1655, 1106, 1104, 1698, 1241, + /* 580 */ 25, 276, 1184, 1185, 1186, 1187, 1188, 1192, 1193, 1194, + /* 590 */ 515, 514, 513, 1575, 512, 451, 23, 1109, 1110, 1650, + /* 600 */ 1154, 1155, 1156, 1157, 1158, 1159, 1160, 464, 1165, 1166, + /* 610 */ 1167, 1168, 1169, 1170, 1171, 1106, 398, 1591, 392, 147, + /* 620 */ 146, 1281, 397, 1307, 447, 101, 1395, 393, 391, 525, + /* 630 */ 394, 1382, 518, 517, 468, 390, 1109, 1110, 1547, 1154, + /* 640 */ 1155, 1156, 1157, 1158, 1159, 1160, 464, 1165, 1166, 1167, + /* 650 */ 1168, 1169, 1170, 1171, 33, 31, 73, 1576, 471, 1578, + /* 660 */ 1579, 467, 278, 462, 1105, 1575, 1641, 1397, 1547, 485, + /* 670 */ 271, 1637, 131, 34, 32, 30, 29, 28, 1528, 485, + /* 680 */ 1103, 1306, 1226, 485, 444, 885, 537, 535, 482, 1591, + /* 690 */ 185, 1669, 292, 1568, 1410, 1393, 469, 1495, 1496, 1111, + /* 700 */ 1280, 380, 485, 6, 1410, 1566, 468, 177, 1410, 104, + /* 710 */ 1547, 483, 485, 1305, 1304, 1660, 1222, 1, 1337, 1234, + /* 720 */ 1303, 218, 1302, 1299, 1298, 1128, 1547, 1410, 73, 1576, + /* 730 */ 471, 1578, 1579, 467, 463, 462, 510, 1410, 1641, 1536, + /* 740 */ 568, 455, 271, 1637, 1714, 102, 34, 32, 30, 29, + /* 750 */ 28, 1297, 1104, 1659, 1296, 1295, 419, 1294, 1547, 1547, + /* 760 */ 134, 1648, 1649, 1293, 1653, 1547, 1301, 1547, 1547, 1547, + /* 770 */ 544, 543, 542, 541, 293, 301, 540, 539, 538, 107, + /* 780 */ 533, 532, 531, 530, 529, 528, 527, 526, 114, 522, + /* 790 */ 1106, 1177, 165, 459, 536, 163, 1547, 1128, 312, 1547, + /* 800 */ 1547, 120, 1547, 1292, 1091, 1092, 1291, 450, 1547, 1368, + /* 810 */ 1141, 1109, 1110, 201, 1154, 1155, 1156, 1157, 1158, 1159, + /* 820 */ 1160, 464, 1165, 1166, 1167, 1168, 1169, 1170, 1171, 432, + /* 830 */ 977, 508, 507, 506, 981, 505, 983, 984, 504, 986, + /* 840 */ 501, 1452, 992, 498, 994, 995, 495, 492, 1547, 122, + /* 850 */ 1575, 1547, 167, 169, 232, 166, 168, 171, 1222, 410, + /* 860 */ 170, 1320, 1114, 1575, 112, 47, 230, 188, 423, 1248, + /* 870 */ 1113, 190, 408, 35, 1591, 1283, 1284, 1197, 1225, 148, + /* 880 */ 35, 469, 413, 404, 1161, 9, 8, 1591, 456, 35, + /* 890 */ 379, 468, 207, 1066, 469, 1547, 209, 109, 194, 110, + /* 900 */ 448, 477, 1671, 215, 468, 112, 47, 490, 1547, 970, + /* 910 */ 965, 998, 1181, 239, 1576, 471, 1578, 1579, 467, 110, + /* 920 */ 462, 111, 445, 1002, 1592, 1009, 74, 1576, 471, 1578, + /* 930 */ 1579, 467, 203, 462, 1117, 911, 1641, 2, 1126, 1702, + /* 940 */ 1640, 1637, 1116, 71, 1575, 112, 296, 300, 256, 1008, + /* 950 */ 160, 110, 136, 130, 912, 113, 1700, 939, 258, 378, + /* 960 */ 1075, 374, 370, 366, 159, 223, 334, 1493, 1591, 144, + /* 970 */ 341, 349, 49, 48, 321, 469, 142, 354, 348, 350, + /* 980 */ 1135, 315, 355, 149, 1134, 468, 356, 152, 357, 1547, + /* 990 */ 1133, 54, 359, 257, 157, 307, 1575, 303, 299, 139, + /* 1000 */ 358, 155, 52, 362, 1132, 383, 381, 74, 1576, 471, + /* 1010 */ 1578, 1579, 467, 158, 462, 1400, 162, 1641, 78, 571, + /* 1020 */ 1591, 458, 1637, 266, 1396, 164, 1111, 466, 1532, 224, + /* 1030 */ 137, 115, 116, 222, 1398, 1394, 98, 468, 117, 118, + /* 1040 */ 175, 1547, 560, 414, 556, 552, 548, 221, 178, 415, + /* 1050 */ 418, 1575, 156, 180, 151, 422, 153, 1131, 424, 246, + /* 1060 */ 1576, 471, 1578, 1579, 467, 465, 462, 460, 1613, 183, + /* 1070 */ 425, 433, 1682, 150, 70, 1591, 475, 216, 1672, 1681, + /* 1080 */ 186, 430, 469, 189, 1662, 270, 436, 429, 5, 441, + /* 1090 */ 4, 1222, 468, 1130, 37, 1717, 1547, 103, 272, 1656, + /* 1100 */ 1575, 457, 196, 454, 16, 1622, 473, 481, 193, 478, + /* 1110 */ 479, 1502, 129, 474, 125, 1576, 471, 1578, 1579, 467, + /* 1120 */ 280, 462, 195, 1501, 1591, 211, 480, 225, 1699, 202, + /* 1130 */ 213, 469, 61, 63, 1411, 1383, 426, 227, 488, 181, + /* 1140 */ 220, 468, 567, 43, 128, 1547, 233, 234, 229, 231, + /* 1150 */ 1541, 1540, 1575, 295, 1083, 1537, 176, 297, 449, 1715, + /* 1160 */ 444, 298, 1099, 74, 1576, 471, 1578, 1579, 467, 1100, + /* 1170 */ 462, 140, 302, 1641, 1535, 304, 1591, 305, 1638, 306, + /* 1180 */ 1534, 308, 1575, 469, 1533, 104, 310, 1518, 141, 1078, + /* 1190 */ 1077, 313, 314, 468, 1512, 1511, 320, 1547, 319, 1510, + /* 1200 */ 428, 1509, 1486, 1049, 448, 1485, 1591, 1484, 1483, 1482, + /* 1210 */ 1481, 1480, 1479, 469, 108, 247, 1576, 471, 1578, 1579, + /* 1220 */ 467, 102, 462, 468, 1478, 1477, 1476, 1547, 1475, 1474, + /* 1230 */ 1473, 1472, 1471, 1575, 1470, 1469, 197, 1648, 443, 1468, + /* 1240 */ 442, 1467, 1466, 1702, 1465, 125, 1576, 471, 1578, 1579, + /* 1250 */ 467, 1464, 462, 1463, 1462, 1051, 136, 1591, 1461, 1460, + /* 1260 */ 1700, 1339, 1526, 1575, 469, 1520, 1508, 1499, 1389, 904, + /* 1270 */ 154, 1338, 1336, 1334, 468, 363, 364, 1332, 1547, 365, + /* 1280 */ 1330, 275, 368, 367, 372, 371, 369, 1591, 375, 1319, + /* 1290 */ 1716, 1575, 373, 376, 466, 377, 247, 1576, 471, 1578, + /* 1300 */ 1579, 467, 1318, 462, 468, 1315, 1391, 76, 1547, 1014, + /* 1310 */ 1390, 1328, 1017, 263, 1323, 1591, 938, 937, 1321, 936, + /* 1320 */ 161, 935, 469, 934, 931, 264, 246, 1576, 471, 1578, + /* 1330 */ 1579, 467, 468, 462, 930, 1614, 1547, 402, 265, 277, + /* 1340 */ 1575, 534, 285, 284, 1314, 405, 407, 1313, 536, 1105, + /* 1350 */ 409, 75, 1119, 1525, 247, 1576, 471, 1578, 1579, 467, + /* 1360 */ 46, 462, 1519, 1085, 1591, 1103, 119, 416, 1112, 1507, + /* 1370 */ 1506, 469, 1498, 3, 56, 182, 35, 1566, 1575, 13, + /* 1380 */ 41, 468, 14, 38, 1111, 1547, 11, 1111, 279, 1575, + /* 1390 */ 58, 187, 126, 179, 191, 417, 1247, 20, 184, 198, + /* 1400 */ 40, 192, 1591, 247, 1576, 471, 1578, 1579, 467, 469, + /* 1410 */ 462, 1240, 57, 1591, 21, 1219, 1218, 1274, 39, 468, + /* 1420 */ 469, 135, 15, 1547, 8, 568, 1269, 1268, 486, 273, + /* 1430 */ 468, 1273, 1272, 274, 1547, 17, 1164, 1104, 138, 1575, + /* 1440 */ 1115, 235, 1576, 471, 1578, 1579, 467, 1163, 462, 461, + /* 1450 */ 27, 1182, 241, 1576, 471, 1578, 1579, 467, 1162, 462, + /* 1460 */ 10, 1149, 18, 1591, 205, 470, 206, 19, 1497, 212, + /* 1470 */ 469, 476, 1245, 208, 210, 1106, 59, 60, 1120, 1121, + /* 1480 */ 468, 42, 64, 214, 1547, 999, 489, 1565, 287, 1575, + /* 1490 */ 217, 491, 493, 487, 996, 494, 1109, 1110, 496, 1123, + /* 1500 */ 1575, 993, 243, 1576, 471, 1578, 1579, 467, 497, 462, + /* 1510 */ 987, 499, 500, 1591, 985, 502, 503, 991, 976, 990, + /* 1520 */ 469, 989, 65, 988, 1591, 1011, 66, 67, 509, 1007, + /* 1530 */ 468, 469, 1004, 902, 1547, 520, 927, 1010, 945, 523, + /* 1540 */ 925, 468, 219, 924, 923, 1547, 922, 921, 1575, 920, + /* 1550 */ 919, 918, 236, 1576, 471, 1578, 1579, 467, 942, 462, + /* 1560 */ 940, 1575, 403, 244, 1576, 471, 1578, 1579, 467, 915, + /* 1570 */ 462, 914, 1591, 913, 910, 909, 908, 411, 907, 469, + /* 1580 */ 1335, 545, 546, 1333, 547, 1591, 549, 550, 551, 468, + /* 1590 */ 1331, 173, 469, 1547, 406, 553, 554, 555, 1329, 400, + /* 1600 */ 557, 558, 468, 1317, 559, 172, 1547, 561, 562, 1316, + /* 1610 */ 1312, 237, 1576, 471, 1578, 1579, 467, 565, 462, 1107, + /* 1620 */ 566, 570, 228, 569, 245, 1576, 471, 1578, 1579, 467, + /* 1630 */ 1575, 462, 45, 1287, 1287, 44, 1287, 1287, 1287, 1575, + /* 1640 */ 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, + /* 1650 */ 1287, 1287, 1287, 1287, 1591, 1287, 1287, 1287, 1287, 1287, + /* 1660 */ 1287, 469, 1287, 1591, 1287, 1287, 1287, 1287, 1287, 1287, + /* 1670 */ 469, 468, 1287, 1287, 1287, 1547, 1287, 1287, 1287, 1287, + /* 1680 */ 468, 1287, 1287, 1287, 1547, 1287, 1287, 1287, 1287, 1575, + /* 1690 */ 1287, 1287, 1287, 238, 1576, 471, 1578, 1579, 467, 1287, + /* 1700 */ 462, 1287, 1587, 1576, 471, 1578, 1579, 467, 1287, 462, + /* 1710 */ 1287, 1287, 1287, 1591, 1287, 1287, 1287, 1287, 1287, 1287, + /* 1720 */ 469, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, + /* 1730 */ 468, 1287, 1287, 1287, 1547, 1287, 1287, 1287, 1287, 1575, + /* 1740 */ 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, + /* 1750 */ 1575, 1287, 1586, 1576, 471, 1578, 1579, 467, 1287, 462, + /* 1760 */ 1287, 1287, 1287, 1591, 1287, 1287, 1287, 1287, 1287, 1287, + /* 1770 */ 469, 1287, 1287, 1287, 1591, 1287, 1287, 1287, 1287, 1287, + /* 1780 */ 468, 469, 1287, 1287, 1547, 1287, 1287, 1287, 1287, 1287, + /* 1790 */ 1287, 468, 1287, 1287, 1287, 1547, 1287, 1287, 1575, 1287, + /* 1800 */ 1287, 1287, 1585, 1576, 471, 1578, 1579, 467, 1287, 462, + /* 1810 */ 1287, 1575, 1287, 254, 1576, 471, 1578, 1579, 467, 1287, + /* 1820 */ 462, 1287, 1591, 1287, 1287, 1287, 1287, 1287, 1287, 469, + /* 1830 */ 1287, 1287, 1287, 1287, 1287, 1591, 1287, 1287, 1287, 468, + /* 1840 */ 1287, 1287, 469, 1547, 1287, 1287, 1287, 1287, 1287, 1287, + /* 1850 */ 1287, 1287, 468, 1287, 1287, 1287, 1547, 1287, 1287, 1287, + /* 1860 */ 1287, 253, 1576, 471, 1578, 1579, 467, 1287, 462, 1287, + /* 1870 */ 1287, 1287, 1287, 1287, 255, 1576, 471, 1578, 1579, 467, + /* 1880 */ 1575, 462, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1575, + /* 1890 */ 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, 1287, + /* 1900 */ 1287, 1287, 1287, 1287, 1591, 1287, 1287, 1287, 1287, 1287, + /* 1910 */ 1287, 469, 1287, 1591, 1287, 1287, 1287, 1287, 1287, 1287, + /* 1920 */ 469, 468, 1287, 1287, 1287, 1547, 1287, 1287, 1287, 1287, + /* 1930 */ 468, 1287, 1287, 1287, 1547, 1287, 1287, 1287, 1287, 1287, + /* 1940 */ 1287, 1287, 1287, 252, 1576, 471, 1578, 1579, 467, 1287, + /* 1950 */ 462, 1287, 240, 1576, 471, 1578, 1579, 467, 1287, 462, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 252, 248, 252, 232, 224, 230, 298, 299, 255, 0, - /* 10 */ 221, 269, 12, 13, 239, 224, 245, 269, 230, 269, - /* 20 */ 20, 246, 22, 230, 253, 283, 284, 239, 248, 257, - /* 30 */ 255, 283, 284, 283, 284, 255, 264, 265, 38, 248, - /* 40 */ 233, 229, 289, 255, 237, 265, 255, 0, 255, 269, - /* 50 */ 50, 12, 13, 14, 20, 243, 265, 57, 49, 20, - /* 60 */ 269, 22, 250, 274, 20, 274, 224, 287, 288, 289, - /* 70 */ 290, 291, 292, 20, 294, 75, 230, 38, 287, 288, - /* 80 */ 289, 290, 291, 292, 291, 294, 227, 228, 297, 50, - /* 90 */ 248, 61, 301, 302, 20, 65, 57, 255, 98, 306, - /* 100 */ 307, 308, 313, 310, 313, 325, 260, 265, 61, 75, - /* 110 */ 110, 269, 65, 230, 75, 326, 285, 326, 88, 330, - /* 120 */ 49, 330, 239, 12, 13, 14, 15, 16, 75, 287, - /* 130 */ 288, 289, 290, 291, 292, 88, 294, 98, 255, 297, - /* 140 */ 309, 230, 230, 301, 302, 303, 223, 147, 225, 110, - /* 150 */ 239, 239, 224, 255, 107, 108, 109, 315, 111, 265, - /* 160 */ 262, 50, 268, 321, 322, 271, 255, 255, 168, 169, - /* 170 */ 285, 171, 172, 173, 174, 175, 176, 177, 178, 179, - /* 180 */ 180, 181, 182, 183, 184, 185, 147, 76, 20, 12, - /* 190 */ 13, 14, 15, 16, 309, 84, 230, 269, 198, 12, - /* 200 */ 13, 14, 15, 16, 236, 230, 238, 168, 169, 137, - /* 210 */ 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, - /* 220 */ 181, 182, 183, 184, 185, 12, 13, 50, 230, 230, - /* 230 */ 255, 38, 198, 20, 18, 22, 20, 239, 239, 274, - /* 240 */ 274, 35, 198, 27, 133, 246, 30, 38, 156, 157, - /* 250 */ 57, 38, 160, 255, 255, 39, 12, 13, 14, 15, - /* 260 */ 16, 84, 151, 50, 12, 13, 291, 61, 230, 274, - /* 270 */ 57, 65, 20, 0, 22, 203, 204, 239, 313, 313, - /* 280 */ 305, 306, 307, 308, 78, 310, 80, 81, 75, 83, - /* 290 */ 38, 326, 326, 255, 88, 330, 330, 186, 187, 188, - /* 300 */ 189, 190, 191, 192, 193, 194, 195, 139, 313, 57, - /* 310 */ 133, 98, 168, 247, 12, 13, 14, 15, 16, 110, - /* 320 */ 76, 326, 49, 110, 258, 330, 139, 75, 151, 113, - /* 330 */ 234, 235, 116, 117, 118, 119, 120, 3, 122, 123, - /* 340 */ 124, 125, 126, 127, 128, 129, 130, 131, 132, 198, - /* 350 */ 98, 207, 208, 209, 210, 211, 14, 15, 16, 20, - /* 360 */ 147, 22, 110, 186, 187, 188, 189, 190, 191, 192, - /* 370 */ 193, 194, 195, 12, 13, 14, 15, 16, 20, 40, - /* 380 */ 241, 168, 169, 244, 171, 172, 173, 174, 175, 176, - /* 390 */ 177, 178, 179, 180, 181, 182, 183, 184, 185, 147, - /* 400 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, - /* 410 */ 99, 248, 101, 102, 103, 104, 105, 106, 230, 256, - /* 420 */ 168, 169, 0, 171, 172, 173, 174, 175, 176, 177, - /* 430 */ 178, 179, 180, 181, 182, 183, 184, 185, 12, 13, - /* 440 */ 14, 224, 140, 255, 22, 146, 20, 148, 22, 230, - /* 450 */ 198, 21, 234, 235, 24, 25, 26, 27, 28, 29, - /* 460 */ 30, 31, 32, 313, 38, 248, 230, 12, 13, 14, - /* 470 */ 15, 16, 255, 240, 255, 239, 326, 12, 13, 291, - /* 480 */ 330, 248, 265, 57, 22, 20, 269, 22, 285, 256, - /* 490 */ 230, 255, 20, 274, 306, 307, 308, 198, 310, 239, - /* 500 */ 38, 75, 49, 38, 287, 288, 289, 290, 291, 292, - /* 510 */ 291, 294, 309, 224, 297, 255, 57, 67, 301, 302, - /* 520 */ 303, 219, 57, 4, 98, 306, 307, 308, 20, 310, - /* 530 */ 43, 76, 313, 133, 230, 248, 110, 248, 19, 322, - /* 540 */ 75, 254, 224, 239, 255, 326, 259, 230, 214, 330, - /* 550 */ 75, 151, 33, 232, 265, 36, 239, 2, 269, 255, - /* 560 */ 41, 47, 87, 98, 114, 115, 47, 12, 13, 14, - /* 570 */ 15, 16, 255, 147, 253, 110, 287, 288, 289, 290, - /* 580 */ 291, 292, 293, 294, 295, 296, 186, 269, 74, 79, - /* 590 */ 224, 77, 82, 74, 168, 169, 77, 171, 172, 173, - /* 600 */ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, - /* 610 */ 184, 185, 147, 2, 248, 72, 1, 2, 72, 234, - /* 620 */ 235, 255, 76, 12, 13, 14, 15, 16, 224, 234, - /* 630 */ 235, 265, 4, 168, 169, 269, 171, 172, 173, 174, - /* 640 */ 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, - /* 650 */ 185, 12, 13, 287, 288, 289, 290, 291, 292, 20, - /* 660 */ 294, 22, 224, 297, 248, 230, 143, 301, 302, 303, - /* 670 */ 254, 240, 240, 269, 239, 259, 224, 38, 312, 248, - /* 680 */ 248, 264, 265, 229, 197, 162, 248, 256, 256, 248, - /* 690 */ 255, 76, 265, 255, 20, 254, 57, 224, 271, 52, - /* 700 */ 259, 54, 224, 265, 250, 58, 224, 269, 61, 0, - /* 710 */ 63, 64, 224, 66, 75, 72, 224, 86, 71, 224, - /* 720 */ 224, 269, 224, 224, 277, 287, 288, 289, 290, 291, - /* 730 */ 292, 22, 294, 249, 248, 297, 248, 98, 14, 301, - /* 740 */ 302, 303, 269, 255, 20, 259, 19, 269, 224, 110, - /* 750 */ 312, 269, 224, 265, 224, 20, 14, 269, 224, 216, - /* 760 */ 33, 269, 20, 36, 269, 269, 0, 269, 269, 42, - /* 770 */ 0, 44, 45, 46, 47, 287, 288, 289, 290, 291, - /* 780 */ 292, 224, 294, 224, 224, 297, 147, 0, 224, 301, - /* 790 */ 302, 303, 22, 269, 196, 197, 21, 269, 38, 269, - /* 800 */ 312, 74, 36, 269, 77, 1, 2, 168, 169, 34, - /* 810 */ 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, - /* 820 */ 181, 182, 183, 184, 185, 249, 269, 199, 269, 269, - /* 830 */ 158, 159, 79, 269, 107, 82, 224, 183, 184, 52, - /* 840 */ 53, 54, 55, 56, 249, 58, 59, 60, 61, 62, - /* 850 */ 63, 64, 65, 66, 67, 68, 69, 70, 71, 18, - /* 860 */ 248, 218, 135, 0, 23, 138, 224, 255, 79, 79, - /* 870 */ 110, 82, 82, 50, 139, 72, 35, 265, 249, 76, - /* 880 */ 153, 269, 155, 72, 72, 75, 274, 76, 76, 48, - /* 890 */ 248, 0, 72, 249, 72, 85, 76, 255, 76, 287, - /* 900 */ 288, 289, 290, 291, 292, 72, 294, 265, 38, 76, - /* 910 */ 72, 269, 21, 249, 76, 24, 25, 26, 27, 28, - /* 920 */ 29, 30, 31, 32, 61, 313, 249, 57, 65, 287, - /* 930 */ 288, 289, 290, 291, 292, 0, 294, 72, 326, 297, - /* 940 */ 225, 76, 330, 301, 302, 72, 72, 237, 72, 76, - /* 950 */ 76, 88, 76, 112, 72, 224, 333, 324, 76, 24, - /* 960 */ 25, 26, 27, 28, 29, 30, 31, 32, 281, 72, - /* 970 */ 107, 108, 109, 76, 111, 258, 72, 318, 227, 248, - /* 980 */ 76, 140, 141, 142, 72, 144, 255, 286, 76, 72, - /* 990 */ 149, 168, 311, 76, 248, 327, 265, 314, 20, 230, - /* 1000 */ 269, 36, 161, 224, 163, 282, 165, 166, 167, 38, - /* 1010 */ 234, 145, 224, 275, 230, 230, 121, 263, 287, 288, - /* 1020 */ 289, 290, 291, 292, 261, 294, 133, 248, 297, 261, - /* 1030 */ 22, 230, 301, 302, 255, 20, 248, 279, 232, 198, - /* 1040 */ 20, 232, 265, 255, 265, 273, 38, 255, 269, 266, - /* 1050 */ 20, 232, 20, 265, 226, 230, 232, 269, 232, 230, - /* 1060 */ 226, 248, 248, 248, 224, 57, 287, 288, 289, 290, - /* 1070 */ 291, 292, 224, 294, 57, 287, 288, 289, 290, 291, - /* 1080 */ 292, 279, 294, 248, 248, 297, 269, 248, 248, 229, - /* 1090 */ 302, 248, 248, 248, 248, 255, 248, 248, 154, 278, - /* 1100 */ 273, 229, 224, 255, 229, 265, 98, 265, 255, 269, - /* 1110 */ 331, 332, 272, 265, 20, 206, 266, 269, 110, 323, - /* 1120 */ 205, 270, 323, 286, 269, 269, 248, 287, 288, 289, - /* 1130 */ 290, 291, 292, 255, 294, 287, 288, 289, 290, 291, - /* 1140 */ 292, 270, 294, 265, 213, 212, 269, 269, 201, 319, - /* 1150 */ 272, 320, 200, 197, 224, 147, 255, 20, 121, 220, - /* 1160 */ 217, 329, 304, 215, 317, 287, 288, 289, 290, 291, - /* 1170 */ 292, 285, 294, 316, 75, 270, 168, 169, 248, 300, - /* 1180 */ 332, 270, 328, 269, 136, 255, 334, 269, 269, 267, - /* 1190 */ 266, 255, 229, 244, 75, 265, 229, 255, 238, 269, - /* 1200 */ 33, 251, 230, 36, 224, 229, 280, 226, 276, 42, - /* 1210 */ 242, 44, 45, 46, 47, 224, 242, 287, 288, 289, - /* 1220 */ 290, 291, 292, 231, 294, 222, 296, 64, 248, 0, - /* 1230 */ 0, 0, 38, 164, 38, 255, 38, 38, 164, 248, - /* 1240 */ 38, 74, 0, 38, 77, 265, 255, 164, 0, 269, - /* 1250 */ 38, 0, 272, 224, 38, 0, 265, 75, 151, 150, - /* 1260 */ 269, 147, 110, 272, 0, 0, 53, 287, 288, 289, - /* 1270 */ 290, 291, 292, 143, 294, 0, 0, 248, 287, 288, - /* 1280 */ 289, 290, 291, 292, 255, 294, 0, 87, 0, 0, - /* 1290 */ 0, 0, 0, 0, 265, 0, 0, 0, 269, 0, - /* 1300 */ 224, 134, 0, 136, 0, 138, 0, 0, 0, 121, - /* 1310 */ 0, 0, 0, 224, 0, 0, 287, 288, 289, 290, - /* 1320 */ 291, 292, 155, 294, 248, 22, 0, 0, 224, 0, - /* 1330 */ 0, 255, 0, 0, 0, 0, 0, 248, 51, 0, - /* 1340 */ 0, 265, 0, 43, 255, 269, 0, 38, 43, 36, - /* 1350 */ 0, 0, 248, 84, 265, 38, 36, 38, 269, 255, - /* 1360 */ 36, 43, 0, 287, 288, 289, 290, 291, 292, 265, - /* 1370 */ 294, 43, 0, 269, 43, 224, 287, 288, 289, 290, - /* 1380 */ 291, 292, 38, 294, 36, 0, 0, 0, 72, 22, - /* 1390 */ 224, 287, 288, 289, 290, 291, 292, 38, 294, 248, - /* 1400 */ 22, 38, 38, 224, 82, 0, 255, 38, 38, 72, - /* 1410 */ 0, 38, 38, 38, 248, 22, 265, 0, 39, 0, - /* 1420 */ 269, 255, 38, 22, 0, 22, 0, 248, 22, 20, - /* 1430 */ 0, 265, 38, 139, 255, 269, 0, 152, 287, 288, - /* 1440 */ 289, 290, 291, 292, 265, 294, 0, 22, 269, 0, - /* 1450 */ 0, 224, 75, 287, 288, 289, 290, 291, 292, 43, - /* 1460 */ 294, 72, 139, 72, 224, 202, 287, 288, 289, 290, - /* 1470 */ 291, 292, 76, 294, 72, 248, 202, 136, 196, 72, - /* 1480 */ 76, 134, 255, 75, 139, 87, 75, 75, 248, 76, - /* 1490 */ 76, 4, 265, 75, 72, 255, 269, 76, 38, 72, - /* 1500 */ 202, 72, 224, 38, 38, 265, 38, 87, 76, 269, - /* 1510 */ 87, 38, 38, 2, 287, 288, 289, 290, 291, 292, - /* 1520 */ 168, 294, 75, 72, 76, 87, 248, 287, 288, 289, - /* 1530 */ 290, 291, 292, 255, 294, 76, 75, 22, 76, 75, - /* 1540 */ 87, 170, 75, 265, 75, 0, 76, 269, 76, 224, - /* 1550 */ 75, 75, 75, 43, 75, 22, 85, 75, 38, 76, - /* 1560 */ 38, 75, 224, 38, 86, 287, 288, 289, 290, 291, - /* 1570 */ 292, 137, 294, 248, 134, 87, 87, 224, 76, 75, - /* 1580 */ 255, 76, 38, 75, 38, 76, 248, 75, 38, 76, - /* 1590 */ 265, 75, 100, 255, 269, 100, 100, 100, 22, 75, - /* 1600 */ 38, 248, 88, 265, 110, 75, 75, 269, 255, 38, - /* 1610 */ 22, 51, 287, 288, 289, 290, 291, 292, 265, 294, - /* 1620 */ 50, 38, 269, 57, 224, 287, 288, 289, 290, 291, - /* 1630 */ 292, 73, 294, 72, 38, 38, 38, 38, 38, 224, - /* 1640 */ 287, 288, 289, 290, 291, 292, 38, 294, 248, 38, - /* 1650 */ 22, 57, 224, 38, 38, 255, 12, 13, 38, 38, - /* 1660 */ 38, 38, 38, 248, 38, 265, 22, 0, 38, 269, - /* 1670 */ 255, 36, 43, 0, 38, 36, 248, 0, 0, 38, - /* 1680 */ 265, 43, 38, 255, 269, 36, 43, 287, 288, 289, - /* 1690 */ 290, 291, 292, 265, 294, 0, 38, 269, 36, 43, - /* 1700 */ 0, 57, 287, 288, 289, 290, 291, 292, 38, 294, - /* 1710 */ 0, 37, 0, 22, 21, 287, 288, 289, 290, 291, - /* 1720 */ 292, 22, 294, 22, 21, 20, 335, 335, 335, 52, - /* 1730 */ 335, 54, 335, 335, 335, 58, 335, 335, 61, 335, - /* 1740 */ 63, 64, 98, 66, 335, 335, 335, 335, 71, 335, - /* 1750 */ 335, 335, 335, 335, 110, 335, 335, 335, 335, 335, - /* 1760 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1770 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1780 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1790 */ 335, 147, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1800 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1810 */ 335, 335, 168, 335, 335, 335, 335, 335, 335, 335, - /* 1820 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1830 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1840 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1850 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1860 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1870 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1880 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1890 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1900 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1910 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1920 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1930 */ 335, 335, 335, 335, 335, 335, 335, 335, 335, 335, - /* 1940 */ 335, 335, 335, 335, 335, 335, 335, + /* 0 */ 253, 249, 253, 266, 225, 231, 269, 231, 256, 272, + /* 10 */ 222, 250, 12, 13, 240, 225, 224, 270, 226, 270, + /* 20 */ 20, 247, 22, 12, 13, 14, 15, 16, 249, 270, + /* 30 */ 256, 284, 285, 284, 285, 256, 234, 261, 38, 249, + /* 40 */ 238, 233, 290, 284, 285, 266, 256, 0, 231, 270, + /* 50 */ 50, 12, 13, 14, 246, 233, 266, 57, 20, 20, + /* 60 */ 270, 22, 254, 275, 275, 275, 225, 288, 289, 290, + /* 70 */ 291, 292, 293, 256, 295, 75, 254, 38, 288, 289, + /* 80 */ 290, 291, 292, 293, 49, 295, 20, 258, 298, 50, + /* 90 */ 249, 20, 302, 303, 265, 266, 57, 256, 98, 299, + /* 100 */ 300, 72, 314, 314, 314, 326, 231, 266, 61, 292, + /* 110 */ 110, 270, 65, 231, 75, 327, 327, 327, 0, 331, + /* 120 */ 331, 331, 240, 306, 307, 308, 309, 231, 311, 288, + /* 130 */ 289, 290, 291, 292, 293, 88, 295, 98, 256, 298, + /* 140 */ 22, 75, 231, 302, 303, 304, 75, 230, 148, 110, + /* 150 */ 275, 240, 256, 20, 107, 108, 109, 316, 111, 256, + /* 160 */ 248, 244, 20, 322, 323, 138, 263, 256, 251, 169, + /* 170 */ 170, 259, 172, 173, 174, 175, 176, 177, 178, 179, + /* 180 */ 180, 181, 182, 183, 184, 185, 186, 148, 292, 314, + /* 190 */ 249, 12, 13, 14, 15, 16, 255, 1, 2, 199, + /* 200 */ 75, 260, 327, 307, 308, 309, 331, 311, 169, 170, + /* 210 */ 85, 172, 173, 174, 175, 176, 177, 178, 179, 180, + /* 220 */ 181, 182, 183, 184, 185, 186, 12, 13, 20, 50, + /* 230 */ 242, 204, 205, 245, 20, 18, 22, 20, 225, 52, + /* 240 */ 20, 54, 22, 249, 27, 58, 217, 30, 61, 255, + /* 250 */ 63, 64, 38, 66, 260, 76, 39, 147, 71, 149, + /* 260 */ 40, 199, 249, 84, 50, 12, 13, 235, 236, 256, + /* 270 */ 199, 57, 76, 20, 2, 22, 286, 157, 158, 266, + /* 280 */ 169, 161, 2, 270, 12, 13, 14, 15, 16, 75, + /* 290 */ 286, 38, 12, 13, 14, 15, 16, 14, 15, 16, + /* 300 */ 310, 288, 289, 290, 291, 292, 293, 225, 295, 199, + /* 310 */ 57, 298, 98, 134, 310, 302, 303, 304, 20, 208, + /* 320 */ 209, 210, 211, 212, 110, 275, 313, 0, 75, 0, + /* 330 */ 113, 152, 199, 116, 117, 118, 119, 120, 20, 122, + /* 340 */ 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, + /* 350 */ 133, 98, 270, 24, 25, 26, 27, 28, 29, 30, + /* 360 */ 31, 32, 148, 110, 314, 314, 187, 188, 189, 190, + /* 370 */ 191, 192, 193, 194, 195, 196, 49, 327, 327, 225, + /* 380 */ 49, 331, 331, 169, 170, 38, 172, 173, 174, 175, + /* 390 */ 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, + /* 400 */ 186, 148, 228, 229, 57, 12, 13, 14, 15, 16, + /* 410 */ 21, 235, 236, 24, 25, 26, 27, 28, 29, 30, + /* 420 */ 31, 32, 169, 170, 270, 172, 173, 174, 175, 176, + /* 430 */ 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, + /* 440 */ 12, 13, 14, 50, 0, 144, 225, 241, 20, 20, + /* 450 */ 22, 241, 199, 231, 266, 249, 35, 61, 140, 249, + /* 460 */ 272, 65, 240, 257, 163, 21, 38, 257, 24, 25, + /* 470 */ 26, 27, 28, 29, 30, 31, 32, 84, 256, 12, + /* 480 */ 13, 47, 61, 0, 88, 57, 65, 20, 225, 22, + /* 490 */ 225, 270, 12, 13, 14, 15, 16, 231, 231, 78, + /* 500 */ 0, 80, 81, 75, 83, 38, 240, 240, 74, 88, + /* 510 */ 0, 77, 241, 247, 249, 12, 13, 14, 15, 16, + /* 520 */ 249, 256, 256, 256, 57, 231, 98, 134, 257, 225, + /* 530 */ 249, 266, 22, 270, 240, 270, 255, 231, 110, 249, + /* 540 */ 249, 260, 75, 134, 61, 152, 240, 257, 65, 49, + /* 550 */ 256, 260, 230, 288, 289, 290, 291, 292, 293, 86, + /* 560 */ 295, 152, 256, 298, 0, 98, 57, 302, 303, 304, + /* 570 */ 20, 88, 67, 251, 270, 286, 148, 110, 313, 76, + /* 580 */ 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, + /* 590 */ 107, 108, 109, 225, 111, 3, 187, 169, 170, 310, + /* 600 */ 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, + /* 610 */ 182, 183, 184, 185, 186, 148, 52, 249, 54, 114, + /* 620 */ 115, 141, 58, 225, 256, 61, 250, 63, 64, 237, + /* 630 */ 66, 239, 235, 236, 266, 71, 169, 170, 270, 172, + /* 640 */ 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, + /* 650 */ 183, 184, 185, 186, 12, 13, 288, 289, 290, 291, + /* 660 */ 292, 293, 20, 295, 22, 225, 298, 250, 270, 231, + /* 670 */ 302, 303, 304, 12, 13, 14, 15, 16, 240, 231, + /* 680 */ 38, 225, 4, 231, 231, 22, 235, 236, 240, 249, + /* 690 */ 140, 323, 240, 75, 256, 250, 256, 265, 266, 57, + /* 700 */ 220, 38, 231, 43, 256, 87, 266, 250, 256, 256, + /* 710 */ 270, 240, 231, 225, 225, 197, 198, 75, 0, 14, + /* 720 */ 225, 240, 225, 225, 225, 20, 270, 256, 288, 289, + /* 730 */ 290, 291, 292, 293, 250, 295, 250, 256, 298, 0, + /* 740 */ 98, 72, 302, 303, 304, 292, 12, 13, 14, 15, + /* 750 */ 16, 225, 110, 313, 225, 225, 278, 225, 270, 270, + /* 760 */ 307, 308, 309, 225, 311, 270, 226, 270, 270, 270, + /* 770 */ 52, 53, 54, 55, 56, 36, 58, 59, 60, 61, + /* 780 */ 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, + /* 790 */ 148, 14, 79, 50, 72, 82, 270, 20, 76, 270, + /* 800 */ 270, 140, 270, 225, 159, 160, 225, 215, 270, 238, + /* 810 */ 76, 169, 170, 334, 172, 173, 174, 175, 176, 177, + /* 820 */ 178, 179, 180, 181, 182, 183, 184, 185, 186, 325, + /* 830 */ 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, + /* 840 */ 99, 259, 101, 102, 103, 104, 105, 106, 270, 18, + /* 850 */ 225, 270, 79, 79, 23, 82, 82, 79, 198, 21, + /* 860 */ 82, 0, 38, 225, 72, 72, 35, 72, 76, 76, + /* 870 */ 38, 76, 34, 72, 249, 184, 185, 76, 200, 48, + /* 880 */ 72, 256, 282, 22, 76, 1, 2, 249, 219, 72, + /* 890 */ 228, 266, 72, 76, 256, 270, 76, 72, 319, 72, + /* 900 */ 275, 76, 287, 76, 266, 72, 72, 72, 270, 76, + /* 910 */ 76, 76, 169, 288, 289, 290, 291, 292, 293, 72, + /* 920 */ 295, 72, 312, 76, 249, 76, 288, 289, 290, 291, + /* 930 */ 292, 293, 328, 295, 110, 38, 298, 315, 20, 314, + /* 940 */ 302, 303, 110, 112, 225, 72, 231, 36, 283, 76, + /* 950 */ 33, 72, 327, 36, 57, 76, 331, 38, 235, 42, + /* 960 */ 146, 44, 45, 46, 47, 276, 231, 231, 249, 121, + /* 970 */ 264, 134, 141, 142, 143, 256, 145, 231, 262, 262, + /* 980 */ 20, 150, 280, 233, 20, 266, 266, 233, 274, 270, + /* 990 */ 20, 74, 267, 162, 77, 164, 225, 166, 167, 168, + /* 1000 */ 256, 233, 233, 231, 20, 249, 227, 288, 289, 290, + /* 1010 */ 291, 292, 293, 233, 295, 249, 249, 298, 231, 19, + /* 1020 */ 249, 302, 303, 227, 249, 249, 57, 256, 270, 280, + /* 1030 */ 199, 249, 249, 33, 249, 249, 36, 266, 249, 249, + /* 1040 */ 230, 270, 42, 155, 44, 45, 46, 47, 230, 279, + /* 1050 */ 266, 225, 135, 230, 137, 274, 139, 20, 256, 288, + /* 1060 */ 289, 290, 291, 292, 293, 294, 295, 296, 297, 230, + /* 1070 */ 267, 207, 324, 156, 74, 249, 206, 77, 287, 324, + /* 1080 */ 271, 270, 256, 271, 321, 270, 270, 202, 214, 213, + /* 1090 */ 201, 198, 266, 20, 121, 335, 270, 256, 221, 286, + /* 1100 */ 225, 218, 305, 216, 75, 301, 270, 107, 320, 137, + /* 1110 */ 268, 271, 318, 270, 288, 289, 290, 291, 292, 293, + /* 1120 */ 270, 295, 317, 271, 249, 256, 267, 245, 330, 329, + /* 1130 */ 230, 256, 230, 75, 256, 239, 136, 231, 252, 139, + /* 1140 */ 230, 266, 227, 277, 281, 270, 243, 243, 232, 223, + /* 1150 */ 0, 0, 225, 64, 154, 0, 156, 38, 332, 333, + /* 1160 */ 231, 165, 38, 288, 289, 290, 291, 292, 293, 38, + /* 1170 */ 295, 38, 165, 298, 0, 38, 249, 38, 303, 165, + /* 1180 */ 0, 38, 225, 256, 0, 256, 38, 0, 75, 110, + /* 1190 */ 148, 152, 151, 266, 0, 0, 144, 270, 53, 0, + /* 1200 */ 273, 0, 0, 87, 275, 0, 249, 0, 0, 0, + /* 1210 */ 0, 0, 0, 256, 121, 288, 289, 290, 291, 292, + /* 1220 */ 293, 292, 295, 266, 0, 0, 0, 270, 0, 0, + /* 1230 */ 0, 0, 0, 225, 0, 0, 307, 308, 309, 0, + /* 1240 */ 311, 0, 0, 314, 0, 288, 289, 290, 291, 292, + /* 1250 */ 293, 0, 295, 0, 0, 22, 327, 249, 0, 0, + /* 1260 */ 331, 0, 0, 225, 256, 0, 0, 0, 0, 51, + /* 1270 */ 43, 0, 0, 0, 266, 38, 36, 0, 270, 43, + /* 1280 */ 0, 273, 36, 38, 36, 38, 43, 249, 38, 0, + /* 1290 */ 333, 225, 43, 36, 256, 43, 288, 289, 290, 291, + /* 1300 */ 292, 293, 0, 295, 266, 0, 0, 84, 270, 22, + /* 1310 */ 0, 0, 38, 22, 0, 249, 38, 38, 0, 38, + /* 1320 */ 82, 38, 256, 38, 38, 22, 288, 289, 290, 291, + /* 1330 */ 292, 293, 266, 295, 38, 297, 270, 39, 22, 273, + /* 1340 */ 225, 72, 12, 13, 0, 38, 22, 0, 72, 22, + /* 1350 */ 22, 20, 22, 0, 288, 289, 290, 291, 292, 293, + /* 1360 */ 140, 295, 0, 38, 249, 38, 153, 22, 38, 0, + /* 1370 */ 0, 256, 0, 72, 75, 43, 72, 87, 225, 203, + /* 1380 */ 72, 266, 203, 197, 57, 270, 203, 57, 273, 225, + /* 1390 */ 4, 76, 75, 137, 75, 140, 76, 75, 135, 87, + /* 1400 */ 140, 72, 249, 288, 289, 290, 291, 292, 293, 256, + /* 1410 */ 295, 76, 75, 249, 72, 76, 76, 76, 72, 266, + /* 1420 */ 256, 87, 72, 270, 2, 98, 38, 38, 98, 38, + /* 1430 */ 266, 38, 38, 38, 270, 72, 76, 110, 87, 225, + /* 1440 */ 110, 288, 289, 290, 291, 292, 293, 76, 295, 75, + /* 1450 */ 75, 169, 288, 289, 290, 291, 292, 293, 76, 295, + /* 1460 */ 75, 22, 75, 249, 87, 171, 76, 75, 0, 43, + /* 1470 */ 256, 138, 76, 75, 75, 148, 75, 75, 148, 22, + /* 1480 */ 266, 75, 85, 135, 270, 76, 38, 87, 38, 225, + /* 1490 */ 87, 75, 38, 86, 76, 75, 169, 170, 38, 169, + /* 1500 */ 225, 76, 288, 289, 290, 291, 292, 293, 75, 295, + /* 1510 */ 76, 38, 75, 249, 76, 38, 75, 100, 22, 100, + /* 1520 */ 256, 100, 75, 100, 249, 38, 75, 75, 88, 38, + /* 1530 */ 266, 256, 22, 51, 270, 50, 38, 110, 57, 73, + /* 1540 */ 38, 266, 72, 38, 38, 270, 38, 38, 225, 38, + /* 1550 */ 38, 22, 288, 289, 290, 291, 292, 293, 57, 295, + /* 1560 */ 38, 225, 4, 288, 289, 290, 291, 292, 293, 38, + /* 1570 */ 295, 38, 249, 38, 38, 38, 38, 19, 38, 256, + /* 1580 */ 0, 38, 36, 0, 43, 249, 38, 36, 43, 266, + /* 1590 */ 0, 33, 256, 270, 36, 38, 36, 43, 0, 41, + /* 1600 */ 38, 36, 266, 0, 43, 47, 270, 38, 37, 0, + /* 1610 */ 0, 288, 289, 290, 291, 292, 293, 22, 295, 22, + /* 1620 */ 21, 20, 22, 21, 288, 289, 290, 291, 292, 293, + /* 1630 */ 225, 295, 74, 336, 336, 77, 336, 336, 336, 225, + /* 1640 */ 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, + /* 1650 */ 336, 336, 336, 336, 249, 336, 336, 336, 336, 336, + /* 1660 */ 336, 256, 336, 249, 336, 336, 336, 336, 336, 336, + /* 1670 */ 256, 266, 336, 336, 336, 270, 336, 336, 336, 336, + /* 1680 */ 266, 336, 336, 336, 270, 336, 336, 336, 336, 225, + /* 1690 */ 336, 336, 336, 288, 289, 290, 291, 292, 293, 336, + /* 1700 */ 295, 336, 288, 289, 290, 291, 292, 293, 336, 295, + /* 1710 */ 336, 336, 336, 249, 336, 336, 336, 336, 336, 336, + /* 1720 */ 256, 336, 336, 336, 336, 336, 336, 336, 336, 336, + /* 1730 */ 266, 336, 336, 336, 270, 336, 336, 336, 336, 225, + /* 1740 */ 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, + /* 1750 */ 225, 336, 288, 289, 290, 291, 292, 293, 336, 295, + /* 1760 */ 336, 336, 336, 249, 336, 336, 336, 336, 336, 336, + /* 1770 */ 256, 336, 336, 336, 249, 336, 336, 336, 336, 336, + /* 1780 */ 266, 256, 336, 336, 270, 336, 336, 336, 336, 336, + /* 1790 */ 336, 266, 336, 336, 336, 270, 336, 336, 225, 336, + /* 1800 */ 336, 336, 288, 289, 290, 291, 292, 293, 336, 295, + /* 1810 */ 336, 225, 336, 288, 289, 290, 291, 292, 293, 336, + /* 1820 */ 295, 336, 249, 336, 336, 336, 336, 336, 336, 256, + /* 1830 */ 336, 336, 336, 336, 336, 249, 336, 336, 336, 266, + /* 1840 */ 336, 336, 256, 270, 336, 336, 336, 336, 336, 336, + /* 1850 */ 336, 336, 266, 336, 336, 336, 270, 336, 336, 336, + /* 1860 */ 336, 288, 289, 290, 291, 292, 293, 336, 295, 336, + /* 1870 */ 336, 336, 336, 336, 288, 289, 290, 291, 292, 293, + /* 1880 */ 225, 295, 336, 336, 336, 336, 336, 336, 336, 225, + /* 1890 */ 336, 336, 336, 336, 336, 336, 336, 336, 336, 336, + /* 1900 */ 336, 336, 336, 336, 249, 336, 336, 336, 336, 336, + /* 1910 */ 336, 256, 336, 249, 336, 336, 336, 336, 336, 336, + /* 1920 */ 256, 266, 336, 336, 336, 270, 336, 336, 336, 336, + /* 1930 */ 266, 336, 336, 336, 270, 336, 336, 336, 336, 336, + /* 1940 */ 336, 336, 336, 288, 289, 290, 291, 292, 293, 336, + /* 1950 */ 295, 336, 288, 289, 290, 291, 292, 293, 336, 295, }; -#define YY_SHIFT_COUNT (569) +#define YY_SHIFT_COUNT (571) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1712) +#define YY_SHIFT_MAX (1610) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 841, 0, 39, 213, 213, 213, 213, 252, 213, 213, - /* 10 */ 426, 465, 639, 465, 465, 465, 465, 465, 465, 465, - /* 20 */ 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, - /* 30 */ 465, 465, 465, 465, 465, 465, 34, 53, 53, 53, - /* 40 */ 44, 1644, 1644, 299, 74, 74, 151, 1644, 74, 74, - /* 50 */ 74, 74, 74, 74, 71, 74, 358, 472, 151, 508, - /* 60 */ 358, 74, 74, 358, 74, 358, 508, 358, 358, 74, - /* 70 */ 453, 216, 111, 177, 177, 430, 1008, 206, 647, 1008, - /* 80 */ 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, - /* 90 */ 1008, 1008, 1008, 1008, 1008, 1008, 1008, 1008, 339, 9, - /* 100 */ 193, 193, 168, 168, 168, 273, 193, 193, 674, 508, - /* 110 */ 358, 508, 358, 631, 459, 311, 311, 311, 311, 311, - /* 120 */ 311, 311, 727, 891, 1677, 302, 144, 30, 92, 72, - /* 130 */ 462, 735, 598, 487, 598, 724, 334, 628, 742, 978, - /* 140 */ 965, 971, 866, 978, 978, 895, 893, 893, 978, 1015, - /* 150 */ 71, 508, 1020, 71, 674, 1030, 71, 71, 978, 71, - /* 160 */ 1032, 358, 358, 358, 358, 358, 358, 358, 358, 358, - /* 170 */ 358, 358, 978, 1032, 1017, 1015, 453, 944, 508, 1020, - /* 180 */ 453, 674, 1030, 453, 1094, 909, 915, 1017, 909, 915, - /* 190 */ 1017, 1017, 931, 933, 947, 952, 956, 674, 1137, 1037, - /* 200 */ 939, 943, 948, 1099, 358, 915, 1017, 1017, 915, 1017, - /* 210 */ 1048, 674, 1030, 453, 631, 453, 674, 1119, 459, 978, - /* 220 */ 453, 1032, 1813, 1813, 1813, 1813, 1813, 1813, 787, 1167, - /* 230 */ 935, 519, 47, 863, 244, 555, 611, 187, 455, 361, - /* 240 */ 361, 361, 361, 361, 361, 361, 361, 514, 450, 615, - /* 250 */ 400, 342, 342, 342, 342, 766, 523, 546, 510, 753, - /* 260 */ 789, 790, 422, 709, 770, 775, 672, 803, 811, 812, - /* 270 */ 804, 654, 543, 643, 820, 823, 822, 475, 833, 838, - /* 280 */ 865, 873, 874, 209, 760, 876, 882, 897, 904, 912, - /* 290 */ 917, 810, 870, 1229, 1230, 1163, 1231, 1194, 1069, 1196, - /* 300 */ 1198, 1199, 1074, 1242, 1202, 1205, 1083, 1248, 1212, 1251, - /* 310 */ 1216, 1255, 1182, 1107, 1109, 1152, 1114, 1264, 1265, 1213, - /* 320 */ 1130, 1275, 1276, 1200, 1286, 1288, 1289, 1290, 1291, 1292, - /* 330 */ 1293, 1295, 1296, 1297, 1299, 1302, 1304, 1306, 1307, 1308, - /* 340 */ 1188, 1310, 1311, 1312, 1314, 1315, 1329, 1303, 1326, 1327, - /* 350 */ 1330, 1332, 1333, 1334, 1335, 1336, 1342, 1300, 1346, 1287, - /* 360 */ 1339, 1340, 1309, 1313, 1305, 1350, 1317, 1320, 1318, 1351, - /* 370 */ 1319, 1324, 1328, 1362, 1344, 1348, 1331, 1372, 1385, 1386, - /* 380 */ 1387, 1269, 1322, 1359, 1316, 1337, 1367, 1405, 1363, 1364, - /* 390 */ 1369, 1370, 1373, 1316, 1337, 1374, 1375, 1410, 1378, 1417, - /* 400 */ 1393, 1379, 1419, 1401, 1384, 1424, 1403, 1426, 1406, 1409, - /* 410 */ 1430, 1294, 1394, 1436, 1285, 1425, 1323, 1341, 1446, 1449, - /* 420 */ 1345, 1450, 1377, 1416, 1347, 1389, 1391, 1263, 1396, 1402, - /* 430 */ 1404, 1408, 1411, 1412, 1413, 1407, 1398, 1418, 1422, 1274, - /* 440 */ 1414, 1421, 1420, 1282, 1427, 1423, 1432, 1429, 1298, 1487, - /* 450 */ 1460, 1465, 1466, 1468, 1473, 1474, 1511, 1352, 1451, 1448, - /* 460 */ 1447, 1459, 1461, 1462, 1438, 1464, 1467, 1453, 1515, 1371, - /* 470 */ 1469, 1470, 1472, 1475, 1476, 1434, 1477, 1545, 1510, 1440, - /* 480 */ 1479, 1471, 1488, 1489, 1533, 1482, 1478, 1483, 1520, 1522, - /* 490 */ 1486, 1502, 1525, 1504, 1505, 1544, 1508, 1509, 1546, 1512, - /* 500 */ 1513, 1550, 1516, 1492, 1495, 1496, 1497, 1576, 1514, 1524, - /* 510 */ 1562, 1494, 1530, 1531, 1571, 1316, 1337, 1588, 1560, 1570, - /* 520 */ 1583, 1566, 1558, 1561, 1596, 1597, 1598, 1599, 1600, 1608, - /* 530 */ 1611, 1628, 1594, 1316, 1615, 1337, 1616, 1620, 1621, 1622, - /* 540 */ 1623, 1624, 1626, 1667, 1630, 1635, 1629, 1673, 1636, 1639, - /* 550 */ 1638, 1678, 1641, 1649, 1643, 1695, 1658, 1662, 1656, 1700, - /* 560 */ 1670, 1674, 1710, 1712, 1691, 1693, 1699, 1701, 1703, 1705, + /* 0 */ 831, 0, 39, 214, 214, 214, 214, 253, 214, 214, + /* 10 */ 428, 467, 642, 467, 467, 467, 467, 467, 467, 467, + /* 20 */ 467, 467, 467, 467, 467, 467, 467, 467, 467, 467, + /* 30 */ 467, 467, 467, 467, 467, 467, 71, 66, 66, 66, + /* 40 */ 133, 1330, 1330, 110, 38, 38, 62, 1330, 38, 38, + /* 50 */ 38, 38, 38, 38, 35, 38, 142, 208, 62, 298, + /* 60 */ 142, 38, 38, 142, 38, 142, 298, 142, 142, 38, + /* 70 */ 331, 217, 179, 393, 393, 389, 1327, 421, 187, 1327, + /* 80 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 90 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 220, 327, + /* 100 */ 347, 347, 318, 318, 318, 500, 347, 347, 429, 298, + /* 110 */ 142, 298, 142, 473, 509, 741, 741, 741, 741, 741, + /* 120 */ 741, 741, 1000, 444, 564, 480, 111, 396, 120, 27, + /* 130 */ 663, 550, 518, 660, 518, 705, 592, 678, 777, 918, + /* 140 */ 911, 919, 814, 918, 918, 848, 837, 837, 918, 960, + /* 150 */ 35, 298, 964, 35, 429, 970, 35, 35, 918, 35, + /* 160 */ 984, 142, 142, 142, 142, 142, 142, 142, 142, 142, + /* 170 */ 142, 142, 918, 984, 969, 960, 331, 888, 298, 331, + /* 180 */ 964, 331, 429, 970, 331, 1037, 864, 870, 969, 864, + /* 190 */ 870, 969, 969, 874, 876, 885, 889, 893, 429, 1073, + /* 200 */ 973, 877, 883, 887, 1029, 142, 870, 969, 969, 870, + /* 210 */ 969, 972, 429, 970, 331, 473, 331, 429, 1058, 509, + /* 220 */ 918, 331, 984, 1960, 1960, 1960, 1960, 1960, 1960, 718, + /* 230 */ 917, 329, 1558, 47, 483, 503, 272, 280, 661, 734, + /* 240 */ 11, 11, 11, 11, 11, 11, 11, 11, 434, 505, + /* 250 */ 196, 409, 283, 283, 283, 283, 739, 301, 722, 713, + /* 260 */ 773, 774, 778, 118, 510, 861, 838, 645, 792, 793, + /* 270 */ 795, 884, 691, 29, 669, 801, 743, 808, 618, 817, + /* 280 */ 820, 825, 827, 833, 824, 832, 834, 835, 847, 849, + /* 290 */ 873, 879, 125, 897, 1150, 1151, 1089, 1155, 1119, 996, + /* 300 */ 1124, 1131, 1133, 1007, 1174, 1137, 1139, 1014, 1180, 1143, + /* 310 */ 1184, 1148, 1187, 1113, 1039, 1041, 1079, 1042, 1194, 1195, + /* 320 */ 1145, 1052, 1199, 1201, 1116, 1202, 1205, 1207, 1208, 1209, + /* 330 */ 1210, 1211, 1212, 1224, 1225, 1226, 1228, 1229, 1230, 1231, + /* 340 */ 1232, 1234, 1093, 1235, 1239, 1241, 1242, 1244, 1251, 1233, + /* 350 */ 1253, 1254, 1258, 1259, 1261, 1262, 1265, 1266, 1267, 1227, + /* 360 */ 1268, 1218, 1271, 1272, 1237, 1240, 1236, 1273, 1245, 1246, + /* 370 */ 1243, 1277, 1247, 1248, 1249, 1280, 1250, 1257, 1252, 1289, + /* 380 */ 1302, 1305, 1306, 1223, 1238, 1274, 1269, 1276, 1287, 1310, + /* 390 */ 1278, 1279, 1281, 1283, 1285, 1269, 1276, 1286, 1296, 1311, + /* 400 */ 1291, 1314, 1303, 1298, 1318, 1316, 1307, 1344, 1324, 1347, + /* 410 */ 1328, 1331, 1353, 1220, 1325, 1362, 1213, 1345, 1255, 1256, + /* 420 */ 1369, 1370, 1260, 1372, 1299, 1332, 1263, 1301, 1304, 1176, + /* 430 */ 1315, 1308, 1320, 1317, 1319, 1322, 1335, 1329, 1290, 1337, + /* 440 */ 1342, 1179, 1339, 1340, 1312, 1186, 1346, 1334, 1341, 1350, + /* 450 */ 1183, 1386, 1388, 1389, 1391, 1393, 1394, 1395, 1422, 1282, + /* 460 */ 1363, 1360, 1374, 1371, 1375, 1382, 1351, 1385, 1387, 1377, + /* 470 */ 1439, 1294, 1392, 1390, 1396, 1398, 1399, 1333, 1401, 1468, + /* 480 */ 1426, 1348, 1402, 1397, 1400, 1403, 1457, 1406, 1407, 1409, + /* 490 */ 1448, 1450, 1416, 1418, 1454, 1420, 1425, 1460, 1433, 1434, + /* 500 */ 1473, 1437, 1438, 1477, 1441, 1417, 1419, 1421, 1423, 1496, + /* 510 */ 1440, 1447, 1487, 1427, 1451, 1452, 1491, 1269, 1276, 1510, + /* 520 */ 1482, 1485, 1498, 1481, 1466, 1470, 1502, 1505, 1506, 1508, + /* 530 */ 1509, 1511, 1512, 1529, 1501, 1269, 1522, 1276, 1531, 1533, + /* 540 */ 1535, 1536, 1537, 1538, 1540, 1580, 1543, 1546, 1541, 1583, + /* 550 */ 1548, 1551, 1545, 1590, 1557, 1560, 1554, 1598, 1562, 1565, + /* 560 */ 1561, 1603, 1569, 1571, 1609, 1610, 1595, 1599, 1597, 1600, + /* 570 */ 1602, 1601, }; -#define YY_REDUCE_COUNT (227) -#define YY_REDUCE_MIN (-292) -#define YY_REDUCE_MAX (1428) +#define YY_REDUCE_COUNT (228) +#define YY_REDUCE_MIN (-263) +#define YY_REDUCE_MAX (1664) static const short yy_reduce_ofst[] = { - /* 0 */ -211, -209, -158, 217, 366, 438, 488, 612, 642, 731, - /* 10 */ 289, 779, 788, 840, -220, 848, 878, 930, 980, 991, - /* 20 */ 1029, 1076, 1089, 1104, 1151, 1166, 1179, 1227, 1240, 1278, - /* 30 */ 1325, 1338, 1353, 1400, 1415, 1428, 219, -25, -207, 188, - /* 40 */ -34, -252, -250, -35, -225, -1, -5, -258, -212, -117, - /* 50 */ -89, -88, -2, 236, -229, 260, 287, -247, 150, -106, - /* 60 */ 233, 304, 317, 416, 435, 431, -228, 441, 432, 38, - /* 70 */ -188, -154, -292, -292, -292, -77, -72, 66, -193, 318, - /* 80 */ 404, 452, 473, 478, 482, 492, 495, 496, 498, 499, - /* 90 */ 524, 528, 530, 534, 557, 559, 560, 564, -141, 321, - /* 100 */ 96, 218, -169, -115, 203, 454, 385, 395, -102, 427, - /* 110 */ 163, 417, 486, 139, -32, 484, 576, 595, 629, 644, - /* 120 */ 664, 677, 447, 715, 710, 623, 633, 717, 687, 659, - /* 130 */ 751, 701, 681, 681, 681, 746, 668, 683, 746, 769, - /* 140 */ 723, 776, 738, 784, 785, 754, 763, 768, 801, 758, - /* 150 */ 806, 777, 772, 809, 792, 783, 819, 824, 825, 826, - /* 160 */ 828, 813, 814, 815, 835, 836, 839, 843, 844, 845, - /* 170 */ 846, 849, 829, 834, 817, 802, 860, 821, 842, 827, - /* 180 */ 872, 853, 850, 875, 837, 796, 851, 855, 799, 871, - /* 190 */ 856, 877, 831, 830, 847, 857, 681, 901, 886, 858, - /* 200 */ 852, 832, 854, 879, 746, 905, 914, 918, 911, 919, - /* 210 */ 922, 936, 924, 963, 949, 967, 942, 950, 960, 972, - /* 220 */ 976, 981, 932, 926, 968, 974, 992, 1003, + /* 0 */ -212, -210, -159, 368, 13, 265, 440, 625, 638, 719, + /* 10 */ 771, 826, 875, 927, -221, 957, 1008, 1038, 1066, 1115, + /* 20 */ 1153, 1164, 1214, 1264, 1275, 1323, 1336, 1405, 1414, 1464, + /* 30 */ 1514, 1525, 1573, 1586, 1655, 1664, 929, -183, -104, 453, + /* 40 */ -125, -253, -251, -211, -226, 266, 50, -241, -118, -89, + /* 50 */ 222, 267, 294, 306, -192, 438, -59, -248, 51, -263, + /* 60 */ 206, 448, 471, -6, 481, 210, -171, 281, 271, 452, + /* 70 */ -83, -224, -200, -200, -200, -208, 82, -88, -198, 154, + /* 80 */ 221, 263, 304, 398, 456, 488, 489, 495, 497, 498, + /* 90 */ 499, 526, 529, 530, 532, 538, 578, 581, 174, -178, + /* 100 */ 32, 176, -10, 4, 289, 322, 397, 451, -97, 188, + /* 110 */ 290, 432, 291, -12, 392, -239, 376, 417, 445, 457, + /* 120 */ 484, 486, 478, 540, 571, 479, 504, 582, 600, 579, + /* 130 */ 662, 615, 610, 610, 610, 675, 604, 622, 675, 715, + /* 140 */ 665, 723, 689, 735, 736, 706, 716, 717, 746, 702, + /* 150 */ 750, 720, 714, 754, 744, 725, 768, 769, 772, 780, + /* 160 */ 779, 756, 766, 767, 775, 776, 782, 783, 785, 786, + /* 170 */ 789, 790, 787, 796, 758, 749, 810, 770, 784, 818, + /* 180 */ 781, 823, 802, 803, 839, 791, 748, 809, 811, 755, + /* 190 */ 812, 815, 816, 763, 788, 794, 805, 610, 841, 813, + /* 200 */ 797, 760, 798, 800, 804, 675, 840, 836, 843, 852, + /* 210 */ 850, 842, 869, 859, 900, 882, 902, 878, 886, 896, + /* 220 */ 906, 910, 915, 866, 863, 903, 904, 916, 926, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 10 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 20 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 30 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 40 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 50 */ 1282, 1282, 1282, 1282, 1341, 1282, 1282, 1282, 1282, 1282, - /* 60 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 70 */ 1339, 1483, 1282, 1639, 1282, 1282, 1282, 1282, 1282, 1282, - /* 80 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 90 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1341, - /* 100 */ 1282, 1282, 1650, 1650, 1650, 1339, 1282, 1282, 1282, 1282, - /* 110 */ 1282, 1282, 1282, 1436, 1282, 1282, 1282, 1282, 1282, 1282, - /* 120 */ 1282, 1282, 1517, 1282, 1282, 1714, 1282, 1389, 1523, 1674, - /* 130 */ 1282, 1666, 1642, 1656, 1643, 1282, 1699, 1659, 1282, 1282, - /* 140 */ 1282, 1282, 1509, 1282, 1282, 1488, 1485, 1485, 1282, 1282, - /* 150 */ 1341, 1282, 1282, 1341, 1282, 1282, 1341, 1341, 1282, 1341, - /* 160 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 170 */ 1282, 1282, 1282, 1282, 1282, 1282, 1339, 1519, 1282, 1282, - /* 180 */ 1339, 1282, 1282, 1339, 1282, 1681, 1679, 1282, 1681, 1679, - /* 190 */ 1282, 1282, 1693, 1689, 1672, 1670, 1656, 1282, 1282, 1282, - /* 200 */ 1717, 1705, 1701, 1282, 1282, 1679, 1282, 1282, 1679, 1282, - /* 210 */ 1496, 1282, 1282, 1339, 1282, 1339, 1282, 1405, 1282, 1282, - /* 220 */ 1339, 1282, 1511, 1525, 1439, 1439, 1342, 1287, 1282, 1282, - /* 230 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1586, - /* 240 */ 1692, 1691, 1615, 1614, 1613, 1611, 1585, 1282, 1282, 1282, - /* 250 */ 1282, 1579, 1580, 1578, 1577, 1282, 1282, 1282, 1282, 1282, - /* 260 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 270 */ 1640, 1282, 1702, 1706, 1282, 1282, 1282, 1563, 1282, 1282, - /* 280 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 290 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 300 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 310 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 320 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 330 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 340 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 350 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 360 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 370 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 380 */ 1282, 1282, 1282, 1282, 1452, 1451, 1282, 1282, 1282, 1282, - /* 390 */ 1282, 1282, 1282, 1369, 1368, 1282, 1282, 1282, 1282, 1282, - /* 400 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 410 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 420 */ 1282, 1282, 1282, 1282, 1282, 1663, 1673, 1282, 1282, 1282, - /* 430 */ 1282, 1282, 1282, 1282, 1282, 1282, 1563, 1282, 1690, 1282, - /* 440 */ 1649, 1645, 1282, 1282, 1641, 1282, 1282, 1700, 1282, 1282, - /* 450 */ 1282, 1282, 1282, 1282, 1282, 1282, 1635, 1282, 1608, 1282, - /* 460 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1573, - /* 470 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 480 */ 1282, 1282, 1562, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 490 */ 1433, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 500 */ 1282, 1282, 1282, 1418, 1416, 1415, 1414, 1282, 1411, 1282, - /* 510 */ 1282, 1282, 1282, 1282, 1282, 1442, 1441, 1282, 1282, 1282, - /* 520 */ 1282, 1282, 1282, 1362, 1282, 1282, 1282, 1282, 1282, 1282, - /* 530 */ 1282, 1282, 1282, 1353, 1282, 1352, 1282, 1282, 1282, 1282, - /* 540 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 550 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, - /* 560 */ 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, 1282, + /* 0 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 10 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 20 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 30 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 40 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 50 */ 1285, 1285, 1285, 1285, 1344, 1285, 1285, 1285, 1285, 1285, + /* 60 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 70 */ 1342, 1487, 1285, 1643, 1285, 1285, 1285, 1285, 1285, 1285, + /* 80 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 90 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1344, + /* 100 */ 1285, 1285, 1654, 1654, 1654, 1342, 1285, 1285, 1285, 1285, + /* 110 */ 1285, 1285, 1285, 1439, 1285, 1285, 1285, 1285, 1285, 1285, + /* 120 */ 1285, 1285, 1521, 1285, 1285, 1718, 1285, 1392, 1527, 1678, + /* 130 */ 1285, 1670, 1646, 1660, 1647, 1285, 1703, 1663, 1285, 1285, + /* 140 */ 1285, 1285, 1513, 1285, 1285, 1492, 1489, 1489, 1285, 1285, + /* 150 */ 1344, 1285, 1285, 1344, 1285, 1285, 1344, 1344, 1285, 1344, + /* 160 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 170 */ 1285, 1285, 1285, 1285, 1285, 1285, 1342, 1523, 1285, 1342, + /* 180 */ 1285, 1342, 1285, 1285, 1342, 1285, 1685, 1683, 1285, 1685, + /* 190 */ 1683, 1285, 1285, 1697, 1693, 1676, 1674, 1660, 1285, 1285, + /* 200 */ 1285, 1721, 1709, 1705, 1285, 1285, 1683, 1285, 1285, 1683, + /* 210 */ 1285, 1500, 1285, 1285, 1342, 1285, 1342, 1285, 1408, 1285, + /* 220 */ 1285, 1342, 1285, 1515, 1529, 1442, 1442, 1345, 1290, 1285, + /* 230 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 240 */ 1590, 1696, 1695, 1619, 1618, 1617, 1615, 1589, 1285, 1285, + /* 250 */ 1285, 1285, 1583, 1584, 1582, 1581, 1285, 1285, 1285, 1285, + /* 260 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 270 */ 1285, 1644, 1285, 1706, 1710, 1285, 1285, 1285, 1567, 1285, + /* 280 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 290 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 300 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 310 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 320 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 330 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 340 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 350 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 360 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 370 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 380 */ 1285, 1285, 1285, 1285, 1285, 1285, 1455, 1454, 1285, 1285, + /* 390 */ 1285, 1285, 1285, 1285, 1285, 1372, 1371, 1285, 1285, 1285, + /* 400 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 410 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 420 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1667, 1677, 1285, + /* 430 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1567, 1285, + /* 440 */ 1694, 1285, 1653, 1649, 1285, 1285, 1645, 1285, 1285, 1704, + /* 450 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1639, 1285, + /* 460 */ 1612, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 470 */ 1285, 1577, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 480 */ 1285, 1285, 1285, 1285, 1566, 1285, 1285, 1285, 1285, 1285, + /* 490 */ 1285, 1285, 1436, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 500 */ 1285, 1285, 1285, 1285, 1285, 1421, 1419, 1418, 1417, 1285, + /* 510 */ 1414, 1285, 1285, 1285, 1285, 1285, 1285, 1445, 1444, 1285, + /* 520 */ 1285, 1285, 1285, 1285, 1285, 1365, 1285, 1285, 1285, 1285, + /* 530 */ 1285, 1285, 1285, 1285, 1285, 1356, 1285, 1355, 1285, 1285, + /* 540 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 550 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 560 */ 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, 1285, + /* 570 */ 1285, 1285, }; /********** End of lemon-generated parsing tables *****************************/ @@ -978,208 +995,209 @@ static const char *const yyTokenName[] = { /* 130 */ "VARIABLES", /* 131 */ "BNODES", /* 132 */ "SNODES", - /* 133 */ "LIKE", - /* 134 */ "INDEX", - /* 135 */ "FULLTEXT", - /* 136 */ "FUNCTION", - /* 137 */ "INTERVAL", - /* 138 */ "TOPIC", - /* 139 */ "AS", - /* 140 */ "DESC", - /* 141 */ "DESCRIBE", - /* 142 */ "RESET", - /* 143 */ "QUERY", - /* 144 */ "EXPLAIN", - /* 145 */ "ANALYZE", - /* 146 */ "VERBOSE", - /* 147 */ "NK_BOOL", - /* 148 */ "RATIO", - /* 149 */ "COMPACT", - /* 150 */ "VNODES", - /* 151 */ "IN", - /* 152 */ "OUTPUTTYPE", - /* 153 */ "AGGREGATE", - /* 154 */ "BUFSIZE", - /* 155 */ "STREAM", - /* 156 */ "INTO", - /* 157 */ "TRIGGER", - /* 158 */ "AT_ONCE", - /* 159 */ "WINDOW_CLOSE", - /* 160 */ "WATERMARK", - /* 161 */ "KILL", - /* 162 */ "CONNECTION", - /* 163 */ "MERGE", - /* 164 */ "VGROUP", - /* 165 */ "REDISTRIBUTE", - /* 166 */ "SPLIT", - /* 167 */ "SYNCDB", - /* 168 */ "NULL", - /* 169 */ "NK_QUESTION", - /* 170 */ "NK_ARROW", - /* 171 */ "ROWTS", - /* 172 */ "TBNAME", - /* 173 */ "QSTARTTS", - /* 174 */ "QENDTS", - /* 175 */ "WSTARTTS", - /* 176 */ "WENDTS", - /* 177 */ "WDURATION", - /* 178 */ "CAST", - /* 179 */ "NOW", - /* 180 */ "TODAY", - /* 181 */ "TIMEZONE", - /* 182 */ "COUNT", - /* 183 */ "FIRST", - /* 184 */ "LAST", - /* 185 */ "LAST_ROW", - /* 186 */ "BETWEEN", - /* 187 */ "IS", - /* 188 */ "NK_LT", - /* 189 */ "NK_GT", - /* 190 */ "NK_LE", - /* 191 */ "NK_GE", - /* 192 */ "NK_NE", - /* 193 */ "MATCH", - /* 194 */ "NMATCH", - /* 195 */ "CONTAINS", - /* 196 */ "JOIN", - /* 197 */ "INNER", - /* 198 */ "SELECT", - /* 199 */ "DISTINCT", - /* 200 */ "WHERE", - /* 201 */ "PARTITION", - /* 202 */ "BY", - /* 203 */ "SESSION", - /* 204 */ "STATE_WINDOW", - /* 205 */ "SLIDING", - /* 206 */ "FILL", - /* 207 */ "VALUE", - /* 208 */ "NONE", - /* 209 */ "PREV", - /* 210 */ "LINEAR", - /* 211 */ "NEXT", - /* 212 */ "GROUP", - /* 213 */ "HAVING", - /* 214 */ "ORDER", - /* 215 */ "SLIMIT", - /* 216 */ "SOFFSET", - /* 217 */ "LIMIT", - /* 218 */ "OFFSET", - /* 219 */ "ASC", - /* 220 */ "NULLS", - /* 221 */ "cmd", - /* 222 */ "account_options", - /* 223 */ "alter_account_options", - /* 224 */ "literal", - /* 225 */ "alter_account_option", - /* 226 */ "user_name", - /* 227 */ "dnode_endpoint", - /* 228 */ "dnode_host_name", - /* 229 */ "not_exists_opt", - /* 230 */ "db_name", - /* 231 */ "db_options", - /* 232 */ "exists_opt", - /* 233 */ "alter_db_options", - /* 234 */ "integer_list", - /* 235 */ "variable_list", - /* 236 */ "retention_list", - /* 237 */ "alter_db_option", - /* 238 */ "retention", - /* 239 */ "full_table_name", - /* 240 */ "column_def_list", - /* 241 */ "tags_def_opt", - /* 242 */ "table_options", - /* 243 */ "multi_create_clause", - /* 244 */ "tags_def", - /* 245 */ "multi_drop_clause", - /* 246 */ "alter_table_clause", - /* 247 */ "alter_table_options", - /* 248 */ "column_name", - /* 249 */ "type_name", - /* 250 */ "create_subtable_clause", - /* 251 */ "specific_tags_opt", - /* 252 */ "literal_list", - /* 253 */ "drop_table_clause", - /* 254 */ "col_name_list", - /* 255 */ "table_name", - /* 256 */ "column_def", - /* 257 */ "func_name_list", - /* 258 */ "alter_table_option", - /* 259 */ "col_name", - /* 260 */ "db_name_cond_opt", - /* 261 */ "like_pattern_opt", - /* 262 */ "table_name_cond", - /* 263 */ "from_db_opt", - /* 264 */ "func_name", - /* 265 */ "function_name", - /* 266 */ "index_name", - /* 267 */ "index_options", - /* 268 */ "func_list", - /* 269 */ "duration_literal", - /* 270 */ "sliding_opt", - /* 271 */ "func", - /* 272 */ "expression_list", - /* 273 */ "topic_name", - /* 274 */ "query_expression", - /* 275 */ "analyze_opt", - /* 276 */ "explain_options", - /* 277 */ "agg_func_opt", - /* 278 */ "bufsize_opt", - /* 279 */ "stream_name", - /* 280 */ "stream_options", - /* 281 */ "into_opt", - /* 282 */ "dnode_list", - /* 283 */ "signed", - /* 284 */ "signed_literal", - /* 285 */ "table_alias", - /* 286 */ "column_alias", - /* 287 */ "expression", - /* 288 */ "pseudo_column", - /* 289 */ "column_reference", - /* 290 */ "function_expression", - /* 291 */ "subquery", - /* 292 */ "star_func", - /* 293 */ "star_func_para_list", - /* 294 */ "noarg_func", - /* 295 */ "other_para_list", - /* 296 */ "star_func_para", - /* 297 */ "predicate", - /* 298 */ "compare_op", - /* 299 */ "in_op", - /* 300 */ "in_predicate_value", - /* 301 */ "boolean_value_expression", - /* 302 */ "boolean_primary", - /* 303 */ "common_expression", - /* 304 */ "from_clause", - /* 305 */ "table_reference_list", - /* 306 */ "table_reference", - /* 307 */ "table_primary", - /* 308 */ "joined_table", - /* 309 */ "alias_opt", - /* 310 */ "parenthesized_joined_table", - /* 311 */ "join_type", - /* 312 */ "search_condition", - /* 313 */ "query_specification", - /* 314 */ "set_quantifier_opt", - /* 315 */ "select_list", - /* 316 */ "where_clause_opt", - /* 317 */ "partition_by_clause_opt", - /* 318 */ "twindow_clause_opt", - /* 319 */ "group_by_clause_opt", - /* 320 */ "having_clause_opt", - /* 321 */ "select_sublist", - /* 322 */ "select_item", - /* 323 */ "fill_opt", - /* 324 */ "fill_mode", - /* 325 */ "group_by_list", - /* 326 */ "query_expression_body", - /* 327 */ "order_by_clause_opt", - /* 328 */ "slimit_clause_opt", - /* 329 */ "limit_clause_opt", - /* 330 */ "query_primary", - /* 331 */ "sort_specification_list", - /* 332 */ "sort_specification", - /* 333 */ "ordering_specification_opt", - /* 334 */ "null_ordering_opt", + /* 133 */ "CLUSTER", + /* 134 */ "LIKE", + /* 135 */ "INDEX", + /* 136 */ "FULLTEXT", + /* 137 */ "FUNCTION", + /* 138 */ "INTERVAL", + /* 139 */ "TOPIC", + /* 140 */ "AS", + /* 141 */ "DESC", + /* 142 */ "DESCRIBE", + /* 143 */ "RESET", + /* 144 */ "QUERY", + /* 145 */ "EXPLAIN", + /* 146 */ "ANALYZE", + /* 147 */ "VERBOSE", + /* 148 */ "NK_BOOL", + /* 149 */ "RATIO", + /* 150 */ "COMPACT", + /* 151 */ "VNODES", + /* 152 */ "IN", + /* 153 */ "OUTPUTTYPE", + /* 154 */ "AGGREGATE", + /* 155 */ "BUFSIZE", + /* 156 */ "STREAM", + /* 157 */ "INTO", + /* 158 */ "TRIGGER", + /* 159 */ "AT_ONCE", + /* 160 */ "WINDOW_CLOSE", + /* 161 */ "WATERMARK", + /* 162 */ "KILL", + /* 163 */ "CONNECTION", + /* 164 */ "MERGE", + /* 165 */ "VGROUP", + /* 166 */ "REDISTRIBUTE", + /* 167 */ "SPLIT", + /* 168 */ "SYNCDB", + /* 169 */ "NULL", + /* 170 */ "NK_QUESTION", + /* 171 */ "NK_ARROW", + /* 172 */ "ROWTS", + /* 173 */ "TBNAME", + /* 174 */ "QSTARTTS", + /* 175 */ "QENDTS", + /* 176 */ "WSTARTTS", + /* 177 */ "WENDTS", + /* 178 */ "WDURATION", + /* 179 */ "CAST", + /* 180 */ "NOW", + /* 181 */ "TODAY", + /* 182 */ "TIMEZONE", + /* 183 */ "COUNT", + /* 184 */ "FIRST", + /* 185 */ "LAST", + /* 186 */ "LAST_ROW", + /* 187 */ "BETWEEN", + /* 188 */ "IS", + /* 189 */ "NK_LT", + /* 190 */ "NK_GT", + /* 191 */ "NK_LE", + /* 192 */ "NK_GE", + /* 193 */ "NK_NE", + /* 194 */ "MATCH", + /* 195 */ "NMATCH", + /* 196 */ "CONTAINS", + /* 197 */ "JOIN", + /* 198 */ "INNER", + /* 199 */ "SELECT", + /* 200 */ "DISTINCT", + /* 201 */ "WHERE", + /* 202 */ "PARTITION", + /* 203 */ "BY", + /* 204 */ "SESSION", + /* 205 */ "STATE_WINDOW", + /* 206 */ "SLIDING", + /* 207 */ "FILL", + /* 208 */ "VALUE", + /* 209 */ "NONE", + /* 210 */ "PREV", + /* 211 */ "LINEAR", + /* 212 */ "NEXT", + /* 213 */ "GROUP", + /* 214 */ "HAVING", + /* 215 */ "ORDER", + /* 216 */ "SLIMIT", + /* 217 */ "SOFFSET", + /* 218 */ "LIMIT", + /* 219 */ "OFFSET", + /* 220 */ "ASC", + /* 221 */ "NULLS", + /* 222 */ "cmd", + /* 223 */ "account_options", + /* 224 */ "alter_account_options", + /* 225 */ "literal", + /* 226 */ "alter_account_option", + /* 227 */ "user_name", + /* 228 */ "dnode_endpoint", + /* 229 */ "dnode_host_name", + /* 230 */ "not_exists_opt", + /* 231 */ "db_name", + /* 232 */ "db_options", + /* 233 */ "exists_opt", + /* 234 */ "alter_db_options", + /* 235 */ "integer_list", + /* 236 */ "variable_list", + /* 237 */ "retention_list", + /* 238 */ "alter_db_option", + /* 239 */ "retention", + /* 240 */ "full_table_name", + /* 241 */ "column_def_list", + /* 242 */ "tags_def_opt", + /* 243 */ "table_options", + /* 244 */ "multi_create_clause", + /* 245 */ "tags_def", + /* 246 */ "multi_drop_clause", + /* 247 */ "alter_table_clause", + /* 248 */ "alter_table_options", + /* 249 */ "column_name", + /* 250 */ "type_name", + /* 251 */ "create_subtable_clause", + /* 252 */ "specific_tags_opt", + /* 253 */ "literal_list", + /* 254 */ "drop_table_clause", + /* 255 */ "col_name_list", + /* 256 */ "table_name", + /* 257 */ "column_def", + /* 258 */ "func_name_list", + /* 259 */ "alter_table_option", + /* 260 */ "col_name", + /* 261 */ "db_name_cond_opt", + /* 262 */ "like_pattern_opt", + /* 263 */ "table_name_cond", + /* 264 */ "from_db_opt", + /* 265 */ "func_name", + /* 266 */ "function_name", + /* 267 */ "index_name", + /* 268 */ "index_options", + /* 269 */ "func_list", + /* 270 */ "duration_literal", + /* 271 */ "sliding_opt", + /* 272 */ "func", + /* 273 */ "expression_list", + /* 274 */ "topic_name", + /* 275 */ "query_expression", + /* 276 */ "analyze_opt", + /* 277 */ "explain_options", + /* 278 */ "agg_func_opt", + /* 279 */ "bufsize_opt", + /* 280 */ "stream_name", + /* 281 */ "stream_options", + /* 282 */ "into_opt", + /* 283 */ "dnode_list", + /* 284 */ "signed", + /* 285 */ "signed_literal", + /* 286 */ "table_alias", + /* 287 */ "column_alias", + /* 288 */ "expression", + /* 289 */ "pseudo_column", + /* 290 */ "column_reference", + /* 291 */ "function_expression", + /* 292 */ "subquery", + /* 293 */ "star_func", + /* 294 */ "star_func_para_list", + /* 295 */ "noarg_func", + /* 296 */ "other_para_list", + /* 297 */ "star_func_para", + /* 298 */ "predicate", + /* 299 */ "compare_op", + /* 300 */ "in_op", + /* 301 */ "in_predicate_value", + /* 302 */ "boolean_value_expression", + /* 303 */ "boolean_primary", + /* 304 */ "common_expression", + /* 305 */ "from_clause", + /* 306 */ "table_reference_list", + /* 307 */ "table_reference", + /* 308 */ "table_primary", + /* 309 */ "joined_table", + /* 310 */ "alias_opt", + /* 311 */ "parenthesized_joined_table", + /* 312 */ "join_type", + /* 313 */ "search_condition", + /* 314 */ "query_specification", + /* 315 */ "set_quantifier_opt", + /* 316 */ "select_list", + /* 317 */ "where_clause_opt", + /* 318 */ "partition_by_clause_opt", + /* 319 */ "twindow_clause_opt", + /* 320 */ "group_by_clause_opt", + /* 321 */ "having_clause_opt", + /* 322 */ "select_sublist", + /* 323 */ "select_item", + /* 324 */ "fill_opt", + /* 325 */ "fill_mode", + /* 326 */ "group_by_list", + /* 327 */ "query_expression_body", + /* 328 */ "order_by_clause_opt", + /* 329 */ "slimit_clause_opt", + /* 330 */ "limit_clause_opt", + /* 331 */ "query_primary", + /* 332 */ "sort_specification_list", + /* 333 */ "sort_specification", + /* 334 */ "ordering_specification_opt", + /* 335 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1385,243 +1403,244 @@ static const char *const yyRuleName[] = { /* 195 */ "cmd ::= SHOW VARIABLES", /* 196 */ "cmd ::= SHOW BNODES", /* 197 */ "cmd ::= SHOW SNODES", - /* 198 */ "db_name_cond_opt ::=", - /* 199 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 200 */ "like_pattern_opt ::=", - /* 201 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 202 */ "table_name_cond ::= table_name", - /* 203 */ "from_db_opt ::=", - /* 204 */ "from_db_opt ::= FROM db_name", - /* 205 */ "func_name_list ::= func_name", - /* 206 */ "func_name_list ::= func_name_list NK_COMMA func_name", - /* 207 */ "func_name ::= function_name", - /* 208 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 209 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", - /* 210 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", - /* 211 */ "index_options ::=", - /* 212 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 213 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 214 */ "func_list ::= func", - /* 215 */ "func_list ::= func_list NK_COMMA func", - /* 216 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 217 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 218 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", - /* 219 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 220 */ "cmd ::= DESC full_table_name", - /* 221 */ "cmd ::= DESCRIBE full_table_name", - /* 222 */ "cmd ::= RESET QUERY CACHE", - /* 223 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 224 */ "analyze_opt ::=", - /* 225 */ "analyze_opt ::= ANALYZE", - /* 226 */ "explain_options ::=", - /* 227 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 228 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 229 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", - /* 230 */ "cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 231 */ "cmd ::= DROP FUNCTION function_name", - /* 232 */ "agg_func_opt ::=", - /* 233 */ "agg_func_opt ::= AGGREGATE", - /* 234 */ "bufsize_opt ::=", - /* 235 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 236 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", - /* 237 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 238 */ "into_opt ::=", - /* 239 */ "into_opt ::= INTO full_table_name", - /* 240 */ "stream_options ::=", - /* 241 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 242 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 243 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 244 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 245 */ "cmd ::= KILL QUERY NK_INTEGER", - /* 246 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 247 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 248 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 249 */ "dnode_list ::= DNODE NK_INTEGER", - /* 250 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 251 */ "cmd ::= SYNCDB db_name REPLICA", - /* 252 */ "cmd ::= query_expression", - /* 253 */ "literal ::= NK_INTEGER", - /* 254 */ "literal ::= NK_FLOAT", - /* 255 */ "literal ::= NK_STRING", - /* 256 */ "literal ::= NK_BOOL", - /* 257 */ "literal ::= TIMESTAMP NK_STRING", - /* 258 */ "literal ::= duration_literal", - /* 259 */ "literal ::= NULL", - /* 260 */ "literal ::= NK_QUESTION", - /* 261 */ "duration_literal ::= NK_VARIABLE", - /* 262 */ "signed ::= NK_INTEGER", - /* 263 */ "signed ::= NK_PLUS NK_INTEGER", - /* 264 */ "signed ::= NK_MINUS NK_INTEGER", - /* 265 */ "signed ::= NK_FLOAT", - /* 266 */ "signed ::= NK_PLUS NK_FLOAT", - /* 267 */ "signed ::= NK_MINUS NK_FLOAT", - /* 268 */ "signed_literal ::= signed", - /* 269 */ "signed_literal ::= NK_STRING", - /* 270 */ "signed_literal ::= NK_BOOL", - /* 271 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 272 */ "signed_literal ::= duration_literal", - /* 273 */ "signed_literal ::= NULL", - /* 274 */ "literal_list ::= signed_literal", - /* 275 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 276 */ "db_name ::= NK_ID", - /* 277 */ "table_name ::= NK_ID", - /* 278 */ "column_name ::= NK_ID", - /* 279 */ "function_name ::= NK_ID", - /* 280 */ "table_alias ::= NK_ID", - /* 281 */ "column_alias ::= NK_ID", - /* 282 */ "user_name ::= NK_ID", - /* 283 */ "index_name ::= NK_ID", - /* 284 */ "topic_name ::= NK_ID", - /* 285 */ "stream_name ::= NK_ID", - /* 286 */ "expression ::= literal", - /* 287 */ "expression ::= pseudo_column", - /* 288 */ "expression ::= column_reference", - /* 289 */ "expression ::= function_expression", - /* 290 */ "expression ::= subquery", - /* 291 */ "expression ::= NK_LP expression NK_RP", - /* 292 */ "expression ::= NK_PLUS expression", - /* 293 */ "expression ::= NK_MINUS expression", - /* 294 */ "expression ::= expression NK_PLUS expression", - /* 295 */ "expression ::= expression NK_MINUS expression", - /* 296 */ "expression ::= expression NK_STAR expression", - /* 297 */ "expression ::= expression NK_SLASH expression", - /* 298 */ "expression ::= expression NK_REM expression", - /* 299 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 300 */ "expression_list ::= expression", - /* 301 */ "expression_list ::= expression_list NK_COMMA expression", - /* 302 */ "column_reference ::= column_name", - /* 303 */ "column_reference ::= table_name NK_DOT column_name", - /* 304 */ "pseudo_column ::= ROWTS", - /* 305 */ "pseudo_column ::= TBNAME", - /* 306 */ "pseudo_column ::= QSTARTTS", - /* 307 */ "pseudo_column ::= QENDTS", - /* 308 */ "pseudo_column ::= WSTARTTS", - /* 309 */ "pseudo_column ::= WENDTS", - /* 310 */ "pseudo_column ::= WDURATION", - /* 311 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 312 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 313 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", - /* 314 */ "function_expression ::= noarg_func NK_LP NK_RP", - /* 315 */ "noarg_func ::= NOW", - /* 316 */ "noarg_func ::= TODAY", - /* 317 */ "noarg_func ::= TIMEZONE", - /* 318 */ "star_func ::= COUNT", - /* 319 */ "star_func ::= FIRST", - /* 320 */ "star_func ::= LAST", - /* 321 */ "star_func ::= LAST_ROW", - /* 322 */ "star_func_para_list ::= NK_STAR", - /* 323 */ "star_func_para_list ::= other_para_list", - /* 324 */ "other_para_list ::= star_func_para", - /* 325 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 326 */ "star_func_para ::= expression", - /* 327 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 328 */ "predicate ::= expression compare_op expression", - /* 329 */ "predicate ::= expression BETWEEN expression AND expression", - /* 330 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 331 */ "predicate ::= expression IS NULL", - /* 332 */ "predicate ::= expression IS NOT NULL", - /* 333 */ "predicate ::= expression in_op in_predicate_value", - /* 334 */ "compare_op ::= NK_LT", - /* 335 */ "compare_op ::= NK_GT", - /* 336 */ "compare_op ::= NK_LE", - /* 337 */ "compare_op ::= NK_GE", - /* 338 */ "compare_op ::= NK_NE", - /* 339 */ "compare_op ::= NK_EQ", - /* 340 */ "compare_op ::= LIKE", - /* 341 */ "compare_op ::= NOT LIKE", - /* 342 */ "compare_op ::= MATCH", - /* 343 */ "compare_op ::= NMATCH", - /* 344 */ "compare_op ::= CONTAINS", - /* 345 */ "in_op ::= IN", - /* 346 */ "in_op ::= NOT IN", - /* 347 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 348 */ "boolean_value_expression ::= boolean_primary", - /* 349 */ "boolean_value_expression ::= NOT boolean_primary", - /* 350 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 351 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 352 */ "boolean_primary ::= predicate", - /* 353 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 354 */ "common_expression ::= expression", - /* 355 */ "common_expression ::= boolean_value_expression", - /* 356 */ "from_clause ::= FROM table_reference_list", - /* 357 */ "table_reference_list ::= table_reference", - /* 358 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 359 */ "table_reference ::= table_primary", - /* 360 */ "table_reference ::= joined_table", - /* 361 */ "table_primary ::= table_name alias_opt", - /* 362 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 363 */ "table_primary ::= subquery alias_opt", - /* 364 */ "table_primary ::= parenthesized_joined_table", - /* 365 */ "alias_opt ::=", - /* 366 */ "alias_opt ::= table_alias", - /* 367 */ "alias_opt ::= AS table_alias", - /* 368 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 369 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 370 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 371 */ "join_type ::=", - /* 372 */ "join_type ::= INNER", - /* 373 */ "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", - /* 374 */ "set_quantifier_opt ::=", - /* 375 */ "set_quantifier_opt ::= DISTINCT", - /* 376 */ "set_quantifier_opt ::= ALL", - /* 377 */ "select_list ::= NK_STAR", - /* 378 */ "select_list ::= select_sublist", - /* 379 */ "select_sublist ::= select_item", - /* 380 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 381 */ "select_item ::= common_expression", - /* 382 */ "select_item ::= common_expression column_alias", - /* 383 */ "select_item ::= common_expression AS column_alias", - /* 384 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 385 */ "where_clause_opt ::=", - /* 386 */ "where_clause_opt ::= WHERE search_condition", - /* 387 */ "partition_by_clause_opt ::=", - /* 388 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 389 */ "twindow_clause_opt ::=", - /* 390 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 391 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 392 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 393 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 394 */ "sliding_opt ::=", - /* 395 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 396 */ "fill_opt ::=", - /* 397 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 398 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 399 */ "fill_mode ::= NONE", - /* 400 */ "fill_mode ::= PREV", - /* 401 */ "fill_mode ::= NULL", - /* 402 */ "fill_mode ::= LINEAR", - /* 403 */ "fill_mode ::= NEXT", - /* 404 */ "group_by_clause_opt ::=", - /* 405 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 406 */ "group_by_list ::= expression", - /* 407 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 408 */ "having_clause_opt ::=", - /* 409 */ "having_clause_opt ::= HAVING search_condition", - /* 410 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 411 */ "query_expression_body ::= query_primary", - /* 412 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 413 */ "query_primary ::= query_specification", - /* 414 */ "order_by_clause_opt ::=", - /* 415 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 416 */ "slimit_clause_opt ::=", - /* 417 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 418 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 419 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 420 */ "limit_clause_opt ::=", - /* 421 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 422 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 423 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 424 */ "subquery ::= NK_LP query_expression NK_RP", - /* 425 */ "search_condition ::= common_expression", - /* 426 */ "sort_specification_list ::= sort_specification", - /* 427 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 428 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 429 */ "ordering_specification_opt ::=", - /* 430 */ "ordering_specification_opt ::= ASC", - /* 431 */ "ordering_specification_opt ::= DESC", - /* 432 */ "null_ordering_opt ::=", - /* 433 */ "null_ordering_opt ::= NULLS FIRST", - /* 434 */ "null_ordering_opt ::= NULLS LAST", + /* 198 */ "cmd ::= SHOW CLUSTER", + /* 199 */ "db_name_cond_opt ::=", + /* 200 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 201 */ "like_pattern_opt ::=", + /* 202 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 203 */ "table_name_cond ::= table_name", + /* 204 */ "from_db_opt ::=", + /* 205 */ "from_db_opt ::= FROM db_name", + /* 206 */ "func_name_list ::= func_name", + /* 207 */ "func_name_list ::= func_name_list NK_COMMA func_name", + /* 208 */ "func_name ::= function_name", + /* 209 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 210 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", + /* 211 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", + /* 212 */ "index_options ::=", + /* 213 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 214 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 215 */ "func_list ::= func", + /* 216 */ "func_list ::= func_list NK_COMMA func", + /* 217 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 218 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 219 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", + /* 220 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 221 */ "cmd ::= DESC full_table_name", + /* 222 */ "cmd ::= DESCRIBE full_table_name", + /* 223 */ "cmd ::= RESET QUERY CACHE", + /* 224 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 225 */ "analyze_opt ::=", + /* 226 */ "analyze_opt ::= ANALYZE", + /* 227 */ "explain_options ::=", + /* 228 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 229 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 230 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", + /* 231 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 232 */ "cmd ::= DROP FUNCTION function_name", + /* 233 */ "agg_func_opt ::=", + /* 234 */ "agg_func_opt ::= AGGREGATE", + /* 235 */ "bufsize_opt ::=", + /* 236 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 237 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", + /* 238 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 239 */ "into_opt ::=", + /* 240 */ "into_opt ::= INTO full_table_name", + /* 241 */ "stream_options ::=", + /* 242 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 243 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 244 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 245 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 246 */ "cmd ::= KILL QUERY NK_INTEGER", + /* 247 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 248 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 249 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 250 */ "dnode_list ::= DNODE NK_INTEGER", + /* 251 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 252 */ "cmd ::= SYNCDB db_name REPLICA", + /* 253 */ "cmd ::= query_expression", + /* 254 */ "literal ::= NK_INTEGER", + /* 255 */ "literal ::= NK_FLOAT", + /* 256 */ "literal ::= NK_STRING", + /* 257 */ "literal ::= NK_BOOL", + /* 258 */ "literal ::= TIMESTAMP NK_STRING", + /* 259 */ "literal ::= duration_literal", + /* 260 */ "literal ::= NULL", + /* 261 */ "literal ::= NK_QUESTION", + /* 262 */ "duration_literal ::= NK_VARIABLE", + /* 263 */ "signed ::= NK_INTEGER", + /* 264 */ "signed ::= NK_PLUS NK_INTEGER", + /* 265 */ "signed ::= NK_MINUS NK_INTEGER", + /* 266 */ "signed ::= NK_FLOAT", + /* 267 */ "signed ::= NK_PLUS NK_FLOAT", + /* 268 */ "signed ::= NK_MINUS NK_FLOAT", + /* 269 */ "signed_literal ::= signed", + /* 270 */ "signed_literal ::= NK_STRING", + /* 271 */ "signed_literal ::= NK_BOOL", + /* 272 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 273 */ "signed_literal ::= duration_literal", + /* 274 */ "signed_literal ::= NULL", + /* 275 */ "literal_list ::= signed_literal", + /* 276 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 277 */ "db_name ::= NK_ID", + /* 278 */ "table_name ::= NK_ID", + /* 279 */ "column_name ::= NK_ID", + /* 280 */ "function_name ::= NK_ID", + /* 281 */ "table_alias ::= NK_ID", + /* 282 */ "column_alias ::= NK_ID", + /* 283 */ "user_name ::= NK_ID", + /* 284 */ "index_name ::= NK_ID", + /* 285 */ "topic_name ::= NK_ID", + /* 286 */ "stream_name ::= NK_ID", + /* 287 */ "expression ::= literal", + /* 288 */ "expression ::= pseudo_column", + /* 289 */ "expression ::= column_reference", + /* 290 */ "expression ::= function_expression", + /* 291 */ "expression ::= subquery", + /* 292 */ "expression ::= NK_LP expression NK_RP", + /* 293 */ "expression ::= NK_PLUS expression", + /* 294 */ "expression ::= NK_MINUS expression", + /* 295 */ "expression ::= expression NK_PLUS expression", + /* 296 */ "expression ::= expression NK_MINUS expression", + /* 297 */ "expression ::= expression NK_STAR expression", + /* 298 */ "expression ::= expression NK_SLASH expression", + /* 299 */ "expression ::= expression NK_REM expression", + /* 300 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 301 */ "expression_list ::= expression", + /* 302 */ "expression_list ::= expression_list NK_COMMA expression", + /* 303 */ "column_reference ::= column_name", + /* 304 */ "column_reference ::= table_name NK_DOT column_name", + /* 305 */ "pseudo_column ::= ROWTS", + /* 306 */ "pseudo_column ::= TBNAME", + /* 307 */ "pseudo_column ::= QSTARTTS", + /* 308 */ "pseudo_column ::= QENDTS", + /* 309 */ "pseudo_column ::= WSTARTTS", + /* 310 */ "pseudo_column ::= WENDTS", + /* 311 */ "pseudo_column ::= WDURATION", + /* 312 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 313 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 314 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 315 */ "function_expression ::= noarg_func NK_LP NK_RP", + /* 316 */ "noarg_func ::= NOW", + /* 317 */ "noarg_func ::= TODAY", + /* 318 */ "noarg_func ::= TIMEZONE", + /* 319 */ "star_func ::= COUNT", + /* 320 */ "star_func ::= FIRST", + /* 321 */ "star_func ::= LAST", + /* 322 */ "star_func ::= LAST_ROW", + /* 323 */ "star_func_para_list ::= NK_STAR", + /* 324 */ "star_func_para_list ::= other_para_list", + /* 325 */ "other_para_list ::= star_func_para", + /* 326 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 327 */ "star_func_para ::= expression", + /* 328 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 329 */ "predicate ::= expression compare_op expression", + /* 330 */ "predicate ::= expression BETWEEN expression AND expression", + /* 331 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 332 */ "predicate ::= expression IS NULL", + /* 333 */ "predicate ::= expression IS NOT NULL", + /* 334 */ "predicate ::= expression in_op in_predicate_value", + /* 335 */ "compare_op ::= NK_LT", + /* 336 */ "compare_op ::= NK_GT", + /* 337 */ "compare_op ::= NK_LE", + /* 338 */ "compare_op ::= NK_GE", + /* 339 */ "compare_op ::= NK_NE", + /* 340 */ "compare_op ::= NK_EQ", + /* 341 */ "compare_op ::= LIKE", + /* 342 */ "compare_op ::= NOT LIKE", + /* 343 */ "compare_op ::= MATCH", + /* 344 */ "compare_op ::= NMATCH", + /* 345 */ "compare_op ::= CONTAINS", + /* 346 */ "in_op ::= IN", + /* 347 */ "in_op ::= NOT IN", + /* 348 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 349 */ "boolean_value_expression ::= boolean_primary", + /* 350 */ "boolean_value_expression ::= NOT boolean_primary", + /* 351 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 352 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 353 */ "boolean_primary ::= predicate", + /* 354 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 355 */ "common_expression ::= expression", + /* 356 */ "common_expression ::= boolean_value_expression", + /* 357 */ "from_clause ::= FROM table_reference_list", + /* 358 */ "table_reference_list ::= table_reference", + /* 359 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 360 */ "table_reference ::= table_primary", + /* 361 */ "table_reference ::= joined_table", + /* 362 */ "table_primary ::= table_name alias_opt", + /* 363 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 364 */ "table_primary ::= subquery alias_opt", + /* 365 */ "table_primary ::= parenthesized_joined_table", + /* 366 */ "alias_opt ::=", + /* 367 */ "alias_opt ::= table_alias", + /* 368 */ "alias_opt ::= AS table_alias", + /* 369 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 370 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 371 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 372 */ "join_type ::=", + /* 373 */ "join_type ::= INNER", + /* 374 */ "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", + /* 375 */ "set_quantifier_opt ::=", + /* 376 */ "set_quantifier_opt ::= DISTINCT", + /* 377 */ "set_quantifier_opt ::= ALL", + /* 378 */ "select_list ::= NK_STAR", + /* 379 */ "select_list ::= select_sublist", + /* 380 */ "select_sublist ::= select_item", + /* 381 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 382 */ "select_item ::= common_expression", + /* 383 */ "select_item ::= common_expression column_alias", + /* 384 */ "select_item ::= common_expression AS column_alias", + /* 385 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 386 */ "where_clause_opt ::=", + /* 387 */ "where_clause_opt ::= WHERE search_condition", + /* 388 */ "partition_by_clause_opt ::=", + /* 389 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 390 */ "twindow_clause_opt ::=", + /* 391 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 392 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 393 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 394 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 395 */ "sliding_opt ::=", + /* 396 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 397 */ "fill_opt ::=", + /* 398 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 399 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 400 */ "fill_mode ::= NONE", + /* 401 */ "fill_mode ::= PREV", + /* 402 */ "fill_mode ::= NULL", + /* 403 */ "fill_mode ::= LINEAR", + /* 404 */ "fill_mode ::= NEXT", + /* 405 */ "group_by_clause_opt ::=", + /* 406 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 407 */ "group_by_list ::= expression", + /* 408 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 409 */ "having_clause_opt ::=", + /* 410 */ "having_clause_opt ::= HAVING search_condition", + /* 411 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 412 */ "query_expression_body ::= query_primary", + /* 413 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 414 */ "query_primary ::= query_specification", + /* 415 */ "order_by_clause_opt ::=", + /* 416 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 417 */ "slimit_clause_opt ::=", + /* 418 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 419 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 420 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 421 */ "limit_clause_opt ::=", + /* 422 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 423 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 424 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 425 */ "subquery ::= NK_LP query_expression NK_RP", + /* 426 */ "search_condition ::= common_expression", + /* 427 */ "sort_specification_list ::= sort_specification", + /* 428 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 429 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 430 */ "ordering_specification_opt ::=", + /* 431 */ "ordering_specification_opt ::= ASC", + /* 432 */ "ordering_specification_opt ::= DESC", + /* 433 */ "null_ordering_opt ::=", + /* 434 */ "null_ordering_opt ::= NULLS FIRST", + /* 435 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -1748,164 +1767,164 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 221: /* cmd */ - case 224: /* literal */ - case 231: /* db_options */ - case 233: /* alter_db_options */ - case 238: /* retention */ - case 239: /* full_table_name */ - case 242: /* table_options */ - case 246: /* alter_table_clause */ - case 247: /* alter_table_options */ - case 250: /* create_subtable_clause */ - case 253: /* drop_table_clause */ - case 256: /* column_def */ - case 259: /* col_name */ - case 260: /* db_name_cond_opt */ - case 261: /* like_pattern_opt */ - case 262: /* table_name_cond */ - case 263: /* from_db_opt */ - case 264: /* func_name */ - case 267: /* index_options */ - case 269: /* duration_literal */ - case 270: /* sliding_opt */ - case 271: /* func */ - case 274: /* query_expression */ - case 276: /* explain_options */ - case 280: /* stream_options */ - case 281: /* into_opt */ - case 283: /* signed */ - case 284: /* signed_literal */ - case 287: /* expression */ - case 288: /* pseudo_column */ - case 289: /* column_reference */ - case 290: /* function_expression */ - case 291: /* subquery */ - case 296: /* star_func_para */ - case 297: /* predicate */ - case 300: /* in_predicate_value */ - case 301: /* boolean_value_expression */ - case 302: /* boolean_primary */ - case 303: /* common_expression */ - case 304: /* from_clause */ - case 305: /* table_reference_list */ - case 306: /* table_reference */ - case 307: /* table_primary */ - case 308: /* joined_table */ - case 310: /* parenthesized_joined_table */ - case 312: /* search_condition */ - case 313: /* query_specification */ - case 316: /* where_clause_opt */ - case 318: /* twindow_clause_opt */ - case 320: /* having_clause_opt */ - case 322: /* select_item */ - case 323: /* fill_opt */ - case 326: /* query_expression_body */ - case 328: /* slimit_clause_opt */ - case 329: /* limit_clause_opt */ - case 330: /* query_primary */ - case 332: /* sort_specification */ + case 222: /* cmd */ + case 225: /* literal */ + case 232: /* db_options */ + case 234: /* alter_db_options */ + case 239: /* retention */ + case 240: /* full_table_name */ + case 243: /* table_options */ + case 247: /* alter_table_clause */ + case 248: /* alter_table_options */ + case 251: /* create_subtable_clause */ + case 254: /* drop_table_clause */ + case 257: /* column_def */ + case 260: /* col_name */ + case 261: /* db_name_cond_opt */ + case 262: /* like_pattern_opt */ + case 263: /* table_name_cond */ + case 264: /* from_db_opt */ + case 265: /* func_name */ + case 268: /* index_options */ + case 270: /* duration_literal */ + case 271: /* sliding_opt */ + case 272: /* func */ + case 275: /* query_expression */ + case 277: /* explain_options */ + case 281: /* stream_options */ + case 282: /* into_opt */ + case 284: /* signed */ + case 285: /* signed_literal */ + case 288: /* expression */ + case 289: /* pseudo_column */ + case 290: /* column_reference */ + case 291: /* function_expression */ + case 292: /* subquery */ + case 297: /* star_func_para */ + case 298: /* predicate */ + case 301: /* in_predicate_value */ + case 302: /* boolean_value_expression */ + case 303: /* boolean_primary */ + case 304: /* common_expression */ + case 305: /* from_clause */ + case 306: /* table_reference_list */ + case 307: /* table_reference */ + case 308: /* table_primary */ + case 309: /* joined_table */ + case 311: /* parenthesized_joined_table */ + case 313: /* search_condition */ + case 314: /* query_specification */ + case 317: /* where_clause_opt */ + case 319: /* twindow_clause_opt */ + case 321: /* having_clause_opt */ + case 323: /* select_item */ + case 324: /* fill_opt */ + case 327: /* query_expression_body */ + case 329: /* slimit_clause_opt */ + case 330: /* limit_clause_opt */ + case 331: /* query_primary */ + case 333: /* sort_specification */ { - nodesDestroyNode((yypminor->yy42)); + nodesDestroyNode((yypminor->yy392)); } break; - case 222: /* account_options */ - case 223: /* alter_account_options */ - case 225: /* alter_account_option */ - case 278: /* bufsize_opt */ + case 223: /* account_options */ + case 224: /* alter_account_options */ + case 226: /* alter_account_option */ + case 279: /* bufsize_opt */ { } break; - case 226: /* user_name */ - case 227: /* dnode_endpoint */ - case 228: /* dnode_host_name */ - case 230: /* db_name */ - case 248: /* column_name */ - case 255: /* table_name */ - case 265: /* function_name */ - case 266: /* index_name */ - case 273: /* topic_name */ - case 279: /* stream_name */ - case 285: /* table_alias */ - case 286: /* column_alias */ - case 292: /* star_func */ - case 294: /* noarg_func */ - case 309: /* alias_opt */ + case 227: /* user_name */ + case 228: /* dnode_endpoint */ + case 229: /* dnode_host_name */ + case 231: /* db_name */ + case 249: /* column_name */ + case 256: /* table_name */ + case 266: /* function_name */ + case 267: /* index_name */ + case 274: /* topic_name */ + case 280: /* stream_name */ + case 286: /* table_alias */ + case 287: /* column_alias */ + case 293: /* star_func */ + case 295: /* noarg_func */ + case 310: /* alias_opt */ { } break; - case 229: /* not_exists_opt */ - case 232: /* exists_opt */ - case 275: /* analyze_opt */ - case 277: /* agg_func_opt */ - case 314: /* set_quantifier_opt */ + case 230: /* not_exists_opt */ + case 233: /* exists_opt */ + case 276: /* analyze_opt */ + case 278: /* agg_func_opt */ + case 315: /* set_quantifier_opt */ { } break; - case 234: /* integer_list */ - case 235: /* variable_list */ - case 236: /* retention_list */ - case 240: /* column_def_list */ - case 241: /* tags_def_opt */ - case 243: /* multi_create_clause */ - case 244: /* tags_def */ - case 245: /* multi_drop_clause */ - case 251: /* specific_tags_opt */ - case 252: /* literal_list */ - case 254: /* col_name_list */ - case 257: /* func_name_list */ - case 268: /* func_list */ - case 272: /* expression_list */ - case 282: /* dnode_list */ - case 293: /* star_func_para_list */ - case 295: /* other_para_list */ - case 315: /* select_list */ - case 317: /* partition_by_clause_opt */ - case 319: /* group_by_clause_opt */ - case 321: /* select_sublist */ - case 325: /* group_by_list */ - case 327: /* order_by_clause_opt */ - case 331: /* sort_specification_list */ + case 235: /* integer_list */ + case 236: /* variable_list */ + case 237: /* retention_list */ + case 241: /* column_def_list */ + case 242: /* tags_def_opt */ + case 244: /* multi_create_clause */ + case 245: /* tags_def */ + case 246: /* multi_drop_clause */ + case 252: /* specific_tags_opt */ + case 253: /* literal_list */ + case 255: /* col_name_list */ + case 258: /* func_name_list */ + case 269: /* func_list */ + case 273: /* expression_list */ + case 283: /* dnode_list */ + case 294: /* star_func_para_list */ + case 296: /* other_para_list */ + case 316: /* select_list */ + case 318: /* partition_by_clause_opt */ + case 320: /* group_by_clause_opt */ + case 322: /* select_sublist */ + case 326: /* group_by_list */ + case 328: /* order_by_clause_opt */ + case 332: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy244)); + nodesDestroyList((yypminor->yy376)); } break; - case 237: /* alter_db_option */ - case 258: /* alter_table_option */ + case 238: /* alter_db_option */ + case 259: /* alter_table_option */ { } break; - case 249: /* type_name */ + case 250: /* type_name */ { } break; - case 298: /* compare_op */ - case 299: /* in_op */ + case 299: /* compare_op */ + case 300: /* in_op */ { } break; - case 311: /* join_type */ + case 312: /* join_type */ { } break; - case 324: /* fill_mode */ + case 325: /* fill_mode */ { } break; - case 333: /* ordering_specification_opt */ + case 334: /* ordering_specification_opt */ { } break; - case 334: /* null_ordering_opt */ + case 335: /* null_ordering_opt */ { } @@ -2204,441 +2223,442 @@ 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[] = { - { 221, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 221, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 222, 0 }, /* (2) account_options ::= */ - { 222, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 222, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 222, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 222, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 222, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 222, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 222, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 222, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 222, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 223, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 223, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 225, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 225, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 225, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 225, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 225, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 225, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 225, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 225, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 225, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 225, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 221, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 221, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 221, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 221, -3 }, /* (27) cmd ::= DROP USER user_name */ - { 221, -3 }, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ - { 221, -5 }, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ - { 221, -3 }, /* (30) cmd ::= DROP DNODE NK_INTEGER */ - { 221, -3 }, /* (31) cmd ::= DROP DNODE dnode_endpoint */ - { 221, -4 }, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 221, -5 }, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 221, -4 }, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ - { 221, -5 }, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 227, -1 }, /* (36) dnode_endpoint ::= NK_STRING */ - { 228, -1 }, /* (37) dnode_host_name ::= NK_ID */ - { 228, -1 }, /* (38) dnode_host_name ::= NK_IPTOKEN */ - { 221, -3 }, /* (39) cmd ::= ALTER LOCAL NK_STRING */ - { 221, -4 }, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 221, -5 }, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 221, -5 }, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 221, -5 }, /* (43) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 221, -5 }, /* (44) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 221, -5 }, /* (45) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 221, -5 }, /* (46) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 221, -5 }, /* (47) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 221, -5 }, /* (48) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 221, -5 }, /* (49) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 221, -4 }, /* (50) cmd ::= DROP DATABASE exists_opt db_name */ - { 221, -2 }, /* (51) cmd ::= USE db_name */ - { 221, -4 }, /* (52) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 229, -3 }, /* (53) not_exists_opt ::= IF NOT EXISTS */ - { 229, 0 }, /* (54) not_exists_opt ::= */ - { 232, -2 }, /* (55) exists_opt ::= IF EXISTS */ - { 232, 0 }, /* (56) exists_opt ::= */ - { 231, 0 }, /* (57) db_options ::= */ - { 231, -3 }, /* (58) db_options ::= db_options BLOCKS NK_INTEGER */ - { 231, -3 }, /* (59) db_options ::= db_options CACHE NK_INTEGER */ - { 231, -3 }, /* (60) db_options ::= db_options CACHELAST NK_INTEGER */ - { 231, -3 }, /* (61) db_options ::= db_options COMP NK_INTEGER */ - { 231, -3 }, /* (62) db_options ::= db_options DAYS NK_INTEGER */ - { 231, -3 }, /* (63) db_options ::= db_options DAYS NK_VARIABLE */ - { 231, -3 }, /* (64) db_options ::= db_options FSYNC NK_INTEGER */ - { 231, -3 }, /* (65) db_options ::= db_options MAXROWS NK_INTEGER */ - { 231, -3 }, /* (66) db_options ::= db_options MINROWS NK_INTEGER */ - { 231, -3 }, /* (67) db_options ::= db_options KEEP integer_list */ - { 231, -3 }, /* (68) db_options ::= db_options KEEP variable_list */ - { 231, -3 }, /* (69) db_options ::= db_options PRECISION NK_STRING */ - { 231, -3 }, /* (70) db_options ::= db_options QUORUM NK_INTEGER */ - { 231, -3 }, /* (71) db_options ::= db_options REPLICA NK_INTEGER */ - { 231, -3 }, /* (72) db_options ::= db_options TTL NK_INTEGER */ - { 231, -3 }, /* (73) db_options ::= db_options WAL NK_INTEGER */ - { 231, -3 }, /* (74) db_options ::= db_options VGROUPS NK_INTEGER */ - { 231, -3 }, /* (75) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 231, -3 }, /* (76) db_options ::= db_options STREAM_MODE NK_INTEGER */ - { 231, -3 }, /* (77) db_options ::= db_options RETENTIONS retention_list */ - { 231, -3 }, /* (78) db_options ::= db_options STRICT NK_INTEGER */ - { 233, -1 }, /* (79) alter_db_options ::= alter_db_option */ - { 233, -2 }, /* (80) alter_db_options ::= alter_db_options alter_db_option */ - { 237, -2 }, /* (81) alter_db_option ::= BLOCKS NK_INTEGER */ - { 237, -2 }, /* (82) alter_db_option ::= FSYNC NK_INTEGER */ - { 237, -2 }, /* (83) alter_db_option ::= KEEP integer_list */ - { 237, -2 }, /* (84) alter_db_option ::= KEEP variable_list */ - { 237, -2 }, /* (85) alter_db_option ::= WAL NK_INTEGER */ - { 237, -2 }, /* (86) alter_db_option ::= QUORUM NK_INTEGER */ - { 237, -2 }, /* (87) alter_db_option ::= CACHELAST NK_INTEGER */ - { 237, -2 }, /* (88) alter_db_option ::= REPLICA NK_INTEGER */ - { 237, -2 }, /* (89) alter_db_option ::= STRICT NK_INTEGER */ - { 234, -1 }, /* (90) integer_list ::= NK_INTEGER */ - { 234, -3 }, /* (91) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 235, -1 }, /* (92) variable_list ::= NK_VARIABLE */ - { 235, -3 }, /* (93) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 236, -1 }, /* (94) retention_list ::= retention */ - { 236, -3 }, /* (95) retention_list ::= retention_list NK_COMMA retention */ - { 238, -3 }, /* (96) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 221, -9 }, /* (97) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 221, -3 }, /* (98) cmd ::= CREATE TABLE multi_create_clause */ - { 221, -9 }, /* (99) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 221, -3 }, /* (100) cmd ::= DROP TABLE multi_drop_clause */ - { 221, -4 }, /* (101) cmd ::= DROP STABLE exists_opt full_table_name */ - { 221, -3 }, /* (102) cmd ::= ALTER TABLE alter_table_clause */ - { 221, -3 }, /* (103) cmd ::= ALTER STABLE alter_table_clause */ - { 246, -2 }, /* (104) alter_table_clause ::= full_table_name alter_table_options */ - { 246, -5 }, /* (105) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 246, -4 }, /* (106) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 246, -5 }, /* (107) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 246, -5 }, /* (108) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 246, -5 }, /* (109) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 246, -4 }, /* (110) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 246, -5 }, /* (111) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 246, -5 }, /* (112) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 246, -6 }, /* (113) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ - { 243, -1 }, /* (114) multi_create_clause ::= create_subtable_clause */ - { 243, -2 }, /* (115) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 250, -9 }, /* (116) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ - { 245, -1 }, /* (117) multi_drop_clause ::= drop_table_clause */ - { 245, -2 }, /* (118) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 253, -2 }, /* (119) drop_table_clause ::= exists_opt full_table_name */ - { 251, 0 }, /* (120) specific_tags_opt ::= */ - { 251, -3 }, /* (121) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 239, -1 }, /* (122) full_table_name ::= table_name */ - { 239, -3 }, /* (123) full_table_name ::= db_name NK_DOT table_name */ - { 240, -1 }, /* (124) column_def_list ::= column_def */ - { 240, -3 }, /* (125) column_def_list ::= column_def_list NK_COMMA column_def */ - { 256, -2 }, /* (126) column_def ::= column_name type_name */ - { 256, -4 }, /* (127) column_def ::= column_name type_name COMMENT NK_STRING */ - { 249, -1 }, /* (128) type_name ::= BOOL */ - { 249, -1 }, /* (129) type_name ::= TINYINT */ - { 249, -1 }, /* (130) type_name ::= SMALLINT */ - { 249, -1 }, /* (131) type_name ::= INT */ - { 249, -1 }, /* (132) type_name ::= INTEGER */ - { 249, -1 }, /* (133) type_name ::= BIGINT */ - { 249, -1 }, /* (134) type_name ::= FLOAT */ - { 249, -1 }, /* (135) type_name ::= DOUBLE */ - { 249, -4 }, /* (136) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 249, -1 }, /* (137) type_name ::= TIMESTAMP */ - { 249, -4 }, /* (138) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 249, -2 }, /* (139) type_name ::= TINYINT UNSIGNED */ - { 249, -2 }, /* (140) type_name ::= SMALLINT UNSIGNED */ - { 249, -2 }, /* (141) type_name ::= INT UNSIGNED */ - { 249, -2 }, /* (142) type_name ::= BIGINT UNSIGNED */ - { 249, -1 }, /* (143) type_name ::= JSON */ - { 249, -4 }, /* (144) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 249, -1 }, /* (145) type_name ::= MEDIUMBLOB */ - { 249, -1 }, /* (146) type_name ::= BLOB */ - { 249, -4 }, /* (147) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 249, -1 }, /* (148) type_name ::= DECIMAL */ - { 249, -4 }, /* (149) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 249, -6 }, /* (150) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 241, 0 }, /* (151) tags_def_opt ::= */ - { 241, -1 }, /* (152) tags_def_opt ::= tags_def */ - { 244, -4 }, /* (153) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 242, 0 }, /* (154) table_options ::= */ - { 242, -3 }, /* (155) table_options ::= table_options COMMENT NK_STRING */ - { 242, -3 }, /* (156) table_options ::= table_options KEEP integer_list */ - { 242, -3 }, /* (157) table_options ::= table_options KEEP variable_list */ - { 242, -3 }, /* (158) table_options ::= table_options TTL NK_INTEGER */ - { 242, -5 }, /* (159) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 242, -5 }, /* (160) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ - { 242, -3 }, /* (161) table_options ::= table_options FILE_FACTOR NK_FLOAT */ - { 242, -3 }, /* (162) table_options ::= table_options DELAY NK_INTEGER */ - { 247, -1 }, /* (163) alter_table_options ::= alter_table_option */ - { 247, -2 }, /* (164) alter_table_options ::= alter_table_options alter_table_option */ - { 258, -2 }, /* (165) alter_table_option ::= COMMENT NK_STRING */ - { 258, -2 }, /* (166) alter_table_option ::= KEEP integer_list */ - { 258, -2 }, /* (167) alter_table_option ::= KEEP variable_list */ - { 258, -2 }, /* (168) alter_table_option ::= TTL NK_INTEGER */ - { 254, -1 }, /* (169) col_name_list ::= col_name */ - { 254, -3 }, /* (170) col_name_list ::= col_name_list NK_COMMA col_name */ - { 259, -1 }, /* (171) col_name ::= column_name */ - { 221, -2 }, /* (172) cmd ::= SHOW DNODES */ - { 221, -2 }, /* (173) cmd ::= SHOW USERS */ - { 221, -2 }, /* (174) cmd ::= SHOW DATABASES */ - { 221, -4 }, /* (175) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 221, -4 }, /* (176) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 221, -3 }, /* (177) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 221, -2 }, /* (178) cmd ::= SHOW MNODES */ - { 221, -2 }, /* (179) cmd ::= SHOW MODULES */ - { 221, -2 }, /* (180) cmd ::= SHOW QNODES */ - { 221, -2 }, /* (181) cmd ::= SHOW FUNCTIONS */ - { 221, -5 }, /* (182) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 221, -2 }, /* (183) cmd ::= SHOW STREAMS */ - { 221, -2 }, /* (184) cmd ::= SHOW ACCOUNTS */ - { 221, -2 }, /* (185) cmd ::= SHOW APPS */ - { 221, -2 }, /* (186) cmd ::= SHOW CONNECTIONS */ - { 221, -2 }, /* (187) cmd ::= SHOW LICENCE */ - { 221, -2 }, /* (188) cmd ::= SHOW GRANTS */ - { 221, -4 }, /* (189) cmd ::= SHOW CREATE DATABASE db_name */ - { 221, -4 }, /* (190) cmd ::= SHOW CREATE TABLE full_table_name */ - { 221, -4 }, /* (191) cmd ::= SHOW CREATE STABLE full_table_name */ - { 221, -2 }, /* (192) cmd ::= SHOW QUERIES */ - { 221, -2 }, /* (193) cmd ::= SHOW SCORES */ - { 221, -2 }, /* (194) cmd ::= SHOW TOPICS */ - { 221, -2 }, /* (195) cmd ::= SHOW VARIABLES */ - { 221, -2 }, /* (196) cmd ::= SHOW BNODES */ - { 221, -2 }, /* (197) cmd ::= SHOW SNODES */ - { 260, 0 }, /* (198) db_name_cond_opt ::= */ - { 260, -2 }, /* (199) db_name_cond_opt ::= db_name NK_DOT */ - { 261, 0 }, /* (200) like_pattern_opt ::= */ - { 261, -2 }, /* (201) like_pattern_opt ::= LIKE NK_STRING */ - { 262, -1 }, /* (202) table_name_cond ::= table_name */ - { 263, 0 }, /* (203) from_db_opt ::= */ - { 263, -2 }, /* (204) from_db_opt ::= FROM db_name */ - { 257, -1 }, /* (205) func_name_list ::= func_name */ - { 257, -3 }, /* (206) func_name_list ::= func_name_list NK_COMMA func_name */ - { 264, -1 }, /* (207) func_name ::= function_name */ - { 221, -8 }, /* (208) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 221, -10 }, /* (209) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 221, -6 }, /* (210) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 267, 0 }, /* (211) index_options ::= */ - { 267, -9 }, /* (212) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 267, -11 }, /* (213) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 268, -1 }, /* (214) func_list ::= func */ - { 268, -3 }, /* (215) func_list ::= func_list NK_COMMA func */ - { 271, -4 }, /* (216) func ::= function_name NK_LP expression_list NK_RP */ - { 221, -6 }, /* (217) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 221, -6 }, /* (218) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ - { 221, -4 }, /* (219) cmd ::= DROP TOPIC exists_opt topic_name */ - { 221, -2 }, /* (220) cmd ::= DESC full_table_name */ - { 221, -2 }, /* (221) cmd ::= DESCRIBE full_table_name */ - { 221, -3 }, /* (222) cmd ::= RESET QUERY CACHE */ - { 221, -4 }, /* (223) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 275, 0 }, /* (224) analyze_opt ::= */ - { 275, -1 }, /* (225) analyze_opt ::= ANALYZE */ - { 276, 0 }, /* (226) explain_options ::= */ - { 276, -3 }, /* (227) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 276, -3 }, /* (228) explain_options ::= explain_options RATIO NK_FLOAT */ - { 221, -6 }, /* (229) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 221, -9 }, /* (230) cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 221, -3 }, /* (231) cmd ::= DROP FUNCTION function_name */ - { 277, 0 }, /* (232) agg_func_opt ::= */ - { 277, -1 }, /* (233) agg_func_opt ::= AGGREGATE */ - { 278, 0 }, /* (234) bufsize_opt ::= */ - { 278, -2 }, /* (235) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 221, -8 }, /* (236) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ - { 221, -4 }, /* (237) cmd ::= DROP STREAM exists_opt stream_name */ - { 281, 0 }, /* (238) into_opt ::= */ - { 281, -2 }, /* (239) into_opt ::= INTO full_table_name */ - { 280, 0 }, /* (240) stream_options ::= */ - { 280, -3 }, /* (241) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 280, -3 }, /* (242) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 280, -3 }, /* (243) stream_options ::= stream_options WATERMARK duration_literal */ - { 221, -3 }, /* (244) cmd ::= KILL CONNECTION NK_INTEGER */ - { 221, -3 }, /* (245) cmd ::= KILL QUERY NK_INTEGER */ - { 221, -4 }, /* (246) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 221, -4 }, /* (247) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 221, -3 }, /* (248) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 282, -2 }, /* (249) dnode_list ::= DNODE NK_INTEGER */ - { 282, -3 }, /* (250) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 221, -3 }, /* (251) cmd ::= SYNCDB db_name REPLICA */ - { 221, -1 }, /* (252) cmd ::= query_expression */ - { 224, -1 }, /* (253) literal ::= NK_INTEGER */ - { 224, -1 }, /* (254) literal ::= NK_FLOAT */ - { 224, -1 }, /* (255) literal ::= NK_STRING */ - { 224, -1 }, /* (256) literal ::= NK_BOOL */ - { 224, -2 }, /* (257) literal ::= TIMESTAMP NK_STRING */ - { 224, -1 }, /* (258) literal ::= duration_literal */ - { 224, -1 }, /* (259) literal ::= NULL */ - { 224, -1 }, /* (260) literal ::= NK_QUESTION */ - { 269, -1 }, /* (261) duration_literal ::= NK_VARIABLE */ - { 283, -1 }, /* (262) signed ::= NK_INTEGER */ - { 283, -2 }, /* (263) signed ::= NK_PLUS NK_INTEGER */ - { 283, -2 }, /* (264) signed ::= NK_MINUS NK_INTEGER */ - { 283, -1 }, /* (265) signed ::= NK_FLOAT */ - { 283, -2 }, /* (266) signed ::= NK_PLUS NK_FLOAT */ - { 283, -2 }, /* (267) signed ::= NK_MINUS NK_FLOAT */ - { 284, -1 }, /* (268) signed_literal ::= signed */ - { 284, -1 }, /* (269) signed_literal ::= NK_STRING */ - { 284, -1 }, /* (270) signed_literal ::= NK_BOOL */ - { 284, -2 }, /* (271) signed_literal ::= TIMESTAMP NK_STRING */ - { 284, -1 }, /* (272) signed_literal ::= duration_literal */ - { 284, -1 }, /* (273) signed_literal ::= NULL */ - { 252, -1 }, /* (274) literal_list ::= signed_literal */ - { 252, -3 }, /* (275) literal_list ::= literal_list NK_COMMA signed_literal */ - { 230, -1 }, /* (276) db_name ::= NK_ID */ - { 255, -1 }, /* (277) table_name ::= NK_ID */ - { 248, -1 }, /* (278) column_name ::= NK_ID */ - { 265, -1 }, /* (279) function_name ::= NK_ID */ - { 285, -1 }, /* (280) table_alias ::= NK_ID */ - { 286, -1 }, /* (281) column_alias ::= NK_ID */ - { 226, -1 }, /* (282) user_name ::= NK_ID */ - { 266, -1 }, /* (283) index_name ::= NK_ID */ - { 273, -1 }, /* (284) topic_name ::= NK_ID */ - { 279, -1 }, /* (285) stream_name ::= NK_ID */ - { 287, -1 }, /* (286) expression ::= literal */ - { 287, -1 }, /* (287) expression ::= pseudo_column */ - { 287, -1 }, /* (288) expression ::= column_reference */ - { 287, -1 }, /* (289) expression ::= function_expression */ - { 287, -1 }, /* (290) expression ::= subquery */ - { 287, -3 }, /* (291) expression ::= NK_LP expression NK_RP */ - { 287, -2 }, /* (292) expression ::= NK_PLUS expression */ - { 287, -2 }, /* (293) expression ::= NK_MINUS expression */ - { 287, -3 }, /* (294) expression ::= expression NK_PLUS expression */ - { 287, -3 }, /* (295) expression ::= expression NK_MINUS expression */ - { 287, -3 }, /* (296) expression ::= expression NK_STAR expression */ - { 287, -3 }, /* (297) expression ::= expression NK_SLASH expression */ - { 287, -3 }, /* (298) expression ::= expression NK_REM expression */ - { 287, -3 }, /* (299) expression ::= column_reference NK_ARROW NK_STRING */ - { 272, -1 }, /* (300) expression_list ::= expression */ - { 272, -3 }, /* (301) expression_list ::= expression_list NK_COMMA expression */ - { 289, -1 }, /* (302) column_reference ::= column_name */ - { 289, -3 }, /* (303) column_reference ::= table_name NK_DOT column_name */ - { 288, -1 }, /* (304) pseudo_column ::= ROWTS */ - { 288, -1 }, /* (305) pseudo_column ::= TBNAME */ - { 288, -1 }, /* (306) pseudo_column ::= QSTARTTS */ - { 288, -1 }, /* (307) pseudo_column ::= QENDTS */ - { 288, -1 }, /* (308) pseudo_column ::= WSTARTTS */ - { 288, -1 }, /* (309) pseudo_column ::= WENDTS */ - { 288, -1 }, /* (310) pseudo_column ::= WDURATION */ - { 290, -4 }, /* (311) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 290, -4 }, /* (312) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 290, -6 }, /* (313) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 290, -3 }, /* (314) function_expression ::= noarg_func NK_LP NK_RP */ - { 294, -1 }, /* (315) noarg_func ::= NOW */ - { 294, -1 }, /* (316) noarg_func ::= TODAY */ - { 294, -1 }, /* (317) noarg_func ::= TIMEZONE */ - { 292, -1 }, /* (318) star_func ::= COUNT */ - { 292, -1 }, /* (319) star_func ::= FIRST */ - { 292, -1 }, /* (320) star_func ::= LAST */ - { 292, -1 }, /* (321) star_func ::= LAST_ROW */ - { 293, -1 }, /* (322) star_func_para_list ::= NK_STAR */ - { 293, -1 }, /* (323) star_func_para_list ::= other_para_list */ - { 295, -1 }, /* (324) other_para_list ::= star_func_para */ - { 295, -3 }, /* (325) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 296, -1 }, /* (326) star_func_para ::= expression */ - { 296, -3 }, /* (327) star_func_para ::= table_name NK_DOT NK_STAR */ - { 297, -3 }, /* (328) predicate ::= expression compare_op expression */ - { 297, -5 }, /* (329) predicate ::= expression BETWEEN expression AND expression */ - { 297, -6 }, /* (330) predicate ::= expression NOT BETWEEN expression AND expression */ - { 297, -3 }, /* (331) predicate ::= expression IS NULL */ - { 297, -4 }, /* (332) predicate ::= expression IS NOT NULL */ - { 297, -3 }, /* (333) predicate ::= expression in_op in_predicate_value */ - { 298, -1 }, /* (334) compare_op ::= NK_LT */ - { 298, -1 }, /* (335) compare_op ::= NK_GT */ - { 298, -1 }, /* (336) compare_op ::= NK_LE */ - { 298, -1 }, /* (337) compare_op ::= NK_GE */ - { 298, -1 }, /* (338) compare_op ::= NK_NE */ - { 298, -1 }, /* (339) compare_op ::= NK_EQ */ - { 298, -1 }, /* (340) compare_op ::= LIKE */ - { 298, -2 }, /* (341) compare_op ::= NOT LIKE */ - { 298, -1 }, /* (342) compare_op ::= MATCH */ - { 298, -1 }, /* (343) compare_op ::= NMATCH */ - { 298, -1 }, /* (344) compare_op ::= CONTAINS */ - { 299, -1 }, /* (345) in_op ::= IN */ - { 299, -2 }, /* (346) in_op ::= NOT IN */ - { 300, -3 }, /* (347) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 301, -1 }, /* (348) boolean_value_expression ::= boolean_primary */ - { 301, -2 }, /* (349) boolean_value_expression ::= NOT boolean_primary */ - { 301, -3 }, /* (350) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 301, -3 }, /* (351) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 302, -1 }, /* (352) boolean_primary ::= predicate */ - { 302, -3 }, /* (353) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 303, -1 }, /* (354) common_expression ::= expression */ - { 303, -1 }, /* (355) common_expression ::= boolean_value_expression */ - { 304, -2 }, /* (356) from_clause ::= FROM table_reference_list */ - { 305, -1 }, /* (357) table_reference_list ::= table_reference */ - { 305, -3 }, /* (358) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 306, -1 }, /* (359) table_reference ::= table_primary */ - { 306, -1 }, /* (360) table_reference ::= joined_table */ - { 307, -2 }, /* (361) table_primary ::= table_name alias_opt */ - { 307, -4 }, /* (362) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 307, -2 }, /* (363) table_primary ::= subquery alias_opt */ - { 307, -1 }, /* (364) table_primary ::= parenthesized_joined_table */ - { 309, 0 }, /* (365) alias_opt ::= */ - { 309, -1 }, /* (366) alias_opt ::= table_alias */ - { 309, -2 }, /* (367) alias_opt ::= AS table_alias */ - { 310, -3 }, /* (368) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 310, -3 }, /* (369) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 308, -6 }, /* (370) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 311, 0 }, /* (371) join_type ::= */ - { 311, -1 }, /* (372) join_type ::= INNER */ - { 313, -9 }, /* (373) 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 */ - { 314, 0 }, /* (374) set_quantifier_opt ::= */ - { 314, -1 }, /* (375) set_quantifier_opt ::= DISTINCT */ - { 314, -1 }, /* (376) set_quantifier_opt ::= ALL */ - { 315, -1 }, /* (377) select_list ::= NK_STAR */ - { 315, -1 }, /* (378) select_list ::= select_sublist */ - { 321, -1 }, /* (379) select_sublist ::= select_item */ - { 321, -3 }, /* (380) select_sublist ::= select_sublist NK_COMMA select_item */ - { 322, -1 }, /* (381) select_item ::= common_expression */ - { 322, -2 }, /* (382) select_item ::= common_expression column_alias */ - { 322, -3 }, /* (383) select_item ::= common_expression AS column_alias */ - { 322, -3 }, /* (384) select_item ::= table_name NK_DOT NK_STAR */ - { 316, 0 }, /* (385) where_clause_opt ::= */ - { 316, -2 }, /* (386) where_clause_opt ::= WHERE search_condition */ - { 317, 0 }, /* (387) partition_by_clause_opt ::= */ - { 317, -3 }, /* (388) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 318, 0 }, /* (389) twindow_clause_opt ::= */ - { 318, -6 }, /* (390) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 318, -4 }, /* (391) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 318, -6 }, /* (392) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 318, -8 }, /* (393) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 270, 0 }, /* (394) sliding_opt ::= */ - { 270, -4 }, /* (395) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 323, 0 }, /* (396) fill_opt ::= */ - { 323, -4 }, /* (397) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 323, -6 }, /* (398) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 324, -1 }, /* (399) fill_mode ::= NONE */ - { 324, -1 }, /* (400) fill_mode ::= PREV */ - { 324, -1 }, /* (401) fill_mode ::= NULL */ - { 324, -1 }, /* (402) fill_mode ::= LINEAR */ - { 324, -1 }, /* (403) fill_mode ::= NEXT */ - { 319, 0 }, /* (404) group_by_clause_opt ::= */ - { 319, -3 }, /* (405) group_by_clause_opt ::= GROUP BY group_by_list */ - { 325, -1 }, /* (406) group_by_list ::= expression */ - { 325, -3 }, /* (407) group_by_list ::= group_by_list NK_COMMA expression */ - { 320, 0 }, /* (408) having_clause_opt ::= */ - { 320, -2 }, /* (409) having_clause_opt ::= HAVING search_condition */ - { 274, -4 }, /* (410) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 326, -1 }, /* (411) query_expression_body ::= query_primary */ - { 326, -4 }, /* (412) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 330, -1 }, /* (413) query_primary ::= query_specification */ - { 327, 0 }, /* (414) order_by_clause_opt ::= */ - { 327, -3 }, /* (415) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 328, 0 }, /* (416) slimit_clause_opt ::= */ - { 328, -2 }, /* (417) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 328, -4 }, /* (418) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 328, -4 }, /* (419) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 329, 0 }, /* (420) limit_clause_opt ::= */ - { 329, -2 }, /* (421) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 329, -4 }, /* (422) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 329, -4 }, /* (423) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 291, -3 }, /* (424) subquery ::= NK_LP query_expression NK_RP */ - { 312, -1 }, /* (425) search_condition ::= common_expression */ - { 331, -1 }, /* (426) sort_specification_list ::= sort_specification */ - { 331, -3 }, /* (427) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 332, -3 }, /* (428) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 333, 0 }, /* (429) ordering_specification_opt ::= */ - { 333, -1 }, /* (430) ordering_specification_opt ::= ASC */ - { 333, -1 }, /* (431) ordering_specification_opt ::= DESC */ - { 334, 0 }, /* (432) null_ordering_opt ::= */ - { 334, -2 }, /* (433) null_ordering_opt ::= NULLS FIRST */ - { 334, -2 }, /* (434) null_ordering_opt ::= NULLS LAST */ + { 222, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 222, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 223, 0 }, /* (2) account_options ::= */ + { 223, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 223, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 223, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 223, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 223, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 223, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 223, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 223, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 223, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 224, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 224, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 226, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 226, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 226, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 226, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 226, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 226, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 226, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 226, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 226, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 226, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 222, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ + { 222, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 222, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + { 222, -3 }, /* (27) cmd ::= DROP USER user_name */ + { 222, -3 }, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ + { 222, -5 }, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ + { 222, -3 }, /* (30) cmd ::= DROP DNODE NK_INTEGER */ + { 222, -3 }, /* (31) cmd ::= DROP DNODE dnode_endpoint */ + { 222, -4 }, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 222, -5 }, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 222, -4 }, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ + { 222, -5 }, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 228, -1 }, /* (36) dnode_endpoint ::= NK_STRING */ + { 229, -1 }, /* (37) dnode_host_name ::= NK_ID */ + { 229, -1 }, /* (38) dnode_host_name ::= NK_IPTOKEN */ + { 222, -3 }, /* (39) cmd ::= ALTER LOCAL NK_STRING */ + { 222, -4 }, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 222, -5 }, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 222, -5 }, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 222, -5 }, /* (43) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 222, -5 }, /* (44) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 222, -5 }, /* (45) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 222, -5 }, /* (46) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 222, -5 }, /* (47) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 222, -5 }, /* (48) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 222, -5 }, /* (49) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 222, -4 }, /* (50) cmd ::= DROP DATABASE exists_opt db_name */ + { 222, -2 }, /* (51) cmd ::= USE db_name */ + { 222, -4 }, /* (52) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 230, -3 }, /* (53) not_exists_opt ::= IF NOT EXISTS */ + { 230, 0 }, /* (54) not_exists_opt ::= */ + { 233, -2 }, /* (55) exists_opt ::= IF EXISTS */ + { 233, 0 }, /* (56) exists_opt ::= */ + { 232, 0 }, /* (57) db_options ::= */ + { 232, -3 }, /* (58) db_options ::= db_options BLOCKS NK_INTEGER */ + { 232, -3 }, /* (59) db_options ::= db_options CACHE NK_INTEGER */ + { 232, -3 }, /* (60) db_options ::= db_options CACHELAST NK_INTEGER */ + { 232, -3 }, /* (61) db_options ::= db_options COMP NK_INTEGER */ + { 232, -3 }, /* (62) db_options ::= db_options DAYS NK_INTEGER */ + { 232, -3 }, /* (63) db_options ::= db_options DAYS NK_VARIABLE */ + { 232, -3 }, /* (64) db_options ::= db_options FSYNC NK_INTEGER */ + { 232, -3 }, /* (65) db_options ::= db_options MAXROWS NK_INTEGER */ + { 232, -3 }, /* (66) db_options ::= db_options MINROWS NK_INTEGER */ + { 232, -3 }, /* (67) db_options ::= db_options KEEP integer_list */ + { 232, -3 }, /* (68) db_options ::= db_options KEEP variable_list */ + { 232, -3 }, /* (69) db_options ::= db_options PRECISION NK_STRING */ + { 232, -3 }, /* (70) db_options ::= db_options QUORUM NK_INTEGER */ + { 232, -3 }, /* (71) db_options ::= db_options REPLICA NK_INTEGER */ + { 232, -3 }, /* (72) db_options ::= db_options TTL NK_INTEGER */ + { 232, -3 }, /* (73) db_options ::= db_options WAL NK_INTEGER */ + { 232, -3 }, /* (74) db_options ::= db_options VGROUPS NK_INTEGER */ + { 232, -3 }, /* (75) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 232, -3 }, /* (76) db_options ::= db_options STREAM_MODE NK_INTEGER */ + { 232, -3 }, /* (77) db_options ::= db_options RETENTIONS retention_list */ + { 232, -3 }, /* (78) db_options ::= db_options STRICT NK_INTEGER */ + { 234, -1 }, /* (79) alter_db_options ::= alter_db_option */ + { 234, -2 }, /* (80) alter_db_options ::= alter_db_options alter_db_option */ + { 238, -2 }, /* (81) alter_db_option ::= BLOCKS NK_INTEGER */ + { 238, -2 }, /* (82) alter_db_option ::= FSYNC NK_INTEGER */ + { 238, -2 }, /* (83) alter_db_option ::= KEEP integer_list */ + { 238, -2 }, /* (84) alter_db_option ::= KEEP variable_list */ + { 238, -2 }, /* (85) alter_db_option ::= WAL NK_INTEGER */ + { 238, -2 }, /* (86) alter_db_option ::= QUORUM NK_INTEGER */ + { 238, -2 }, /* (87) alter_db_option ::= CACHELAST NK_INTEGER */ + { 238, -2 }, /* (88) alter_db_option ::= REPLICA NK_INTEGER */ + { 238, -2 }, /* (89) alter_db_option ::= STRICT NK_INTEGER */ + { 235, -1 }, /* (90) integer_list ::= NK_INTEGER */ + { 235, -3 }, /* (91) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 236, -1 }, /* (92) variable_list ::= NK_VARIABLE */ + { 236, -3 }, /* (93) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 237, -1 }, /* (94) retention_list ::= retention */ + { 237, -3 }, /* (95) retention_list ::= retention_list NK_COMMA retention */ + { 239, -3 }, /* (96) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 222, -9 }, /* (97) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 222, -3 }, /* (98) cmd ::= CREATE TABLE multi_create_clause */ + { 222, -9 }, /* (99) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 222, -3 }, /* (100) cmd ::= DROP TABLE multi_drop_clause */ + { 222, -4 }, /* (101) cmd ::= DROP STABLE exists_opt full_table_name */ + { 222, -3 }, /* (102) cmd ::= ALTER TABLE alter_table_clause */ + { 222, -3 }, /* (103) cmd ::= ALTER STABLE alter_table_clause */ + { 247, -2 }, /* (104) alter_table_clause ::= full_table_name alter_table_options */ + { 247, -5 }, /* (105) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 247, -4 }, /* (106) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 247, -5 }, /* (107) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 247, -5 }, /* (108) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 247, -5 }, /* (109) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 247, -4 }, /* (110) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 247, -5 }, /* (111) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 247, -5 }, /* (112) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 247, -6 }, /* (113) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ + { 244, -1 }, /* (114) multi_create_clause ::= create_subtable_clause */ + { 244, -2 }, /* (115) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 251, -9 }, /* (116) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ + { 246, -1 }, /* (117) multi_drop_clause ::= drop_table_clause */ + { 246, -2 }, /* (118) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 254, -2 }, /* (119) drop_table_clause ::= exists_opt full_table_name */ + { 252, 0 }, /* (120) specific_tags_opt ::= */ + { 252, -3 }, /* (121) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 240, -1 }, /* (122) full_table_name ::= table_name */ + { 240, -3 }, /* (123) full_table_name ::= db_name NK_DOT table_name */ + { 241, -1 }, /* (124) column_def_list ::= column_def */ + { 241, -3 }, /* (125) column_def_list ::= column_def_list NK_COMMA column_def */ + { 257, -2 }, /* (126) column_def ::= column_name type_name */ + { 257, -4 }, /* (127) column_def ::= column_name type_name COMMENT NK_STRING */ + { 250, -1 }, /* (128) type_name ::= BOOL */ + { 250, -1 }, /* (129) type_name ::= TINYINT */ + { 250, -1 }, /* (130) type_name ::= SMALLINT */ + { 250, -1 }, /* (131) type_name ::= INT */ + { 250, -1 }, /* (132) type_name ::= INTEGER */ + { 250, -1 }, /* (133) type_name ::= BIGINT */ + { 250, -1 }, /* (134) type_name ::= FLOAT */ + { 250, -1 }, /* (135) type_name ::= DOUBLE */ + { 250, -4 }, /* (136) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 250, -1 }, /* (137) type_name ::= TIMESTAMP */ + { 250, -4 }, /* (138) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 250, -2 }, /* (139) type_name ::= TINYINT UNSIGNED */ + { 250, -2 }, /* (140) type_name ::= SMALLINT UNSIGNED */ + { 250, -2 }, /* (141) type_name ::= INT UNSIGNED */ + { 250, -2 }, /* (142) type_name ::= BIGINT UNSIGNED */ + { 250, -1 }, /* (143) type_name ::= JSON */ + { 250, -4 }, /* (144) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 250, -1 }, /* (145) type_name ::= MEDIUMBLOB */ + { 250, -1 }, /* (146) type_name ::= BLOB */ + { 250, -4 }, /* (147) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 250, -1 }, /* (148) type_name ::= DECIMAL */ + { 250, -4 }, /* (149) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 250, -6 }, /* (150) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 242, 0 }, /* (151) tags_def_opt ::= */ + { 242, -1 }, /* (152) tags_def_opt ::= tags_def */ + { 245, -4 }, /* (153) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 243, 0 }, /* (154) table_options ::= */ + { 243, -3 }, /* (155) table_options ::= table_options COMMENT NK_STRING */ + { 243, -3 }, /* (156) table_options ::= table_options KEEP integer_list */ + { 243, -3 }, /* (157) table_options ::= table_options KEEP variable_list */ + { 243, -3 }, /* (158) table_options ::= table_options TTL NK_INTEGER */ + { 243, -5 }, /* (159) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 243, -5 }, /* (160) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + { 243, -3 }, /* (161) table_options ::= table_options FILE_FACTOR NK_FLOAT */ + { 243, -3 }, /* (162) table_options ::= table_options DELAY NK_INTEGER */ + { 248, -1 }, /* (163) alter_table_options ::= alter_table_option */ + { 248, -2 }, /* (164) alter_table_options ::= alter_table_options alter_table_option */ + { 259, -2 }, /* (165) alter_table_option ::= COMMENT NK_STRING */ + { 259, -2 }, /* (166) alter_table_option ::= KEEP integer_list */ + { 259, -2 }, /* (167) alter_table_option ::= KEEP variable_list */ + { 259, -2 }, /* (168) alter_table_option ::= TTL NK_INTEGER */ + { 255, -1 }, /* (169) col_name_list ::= col_name */ + { 255, -3 }, /* (170) col_name_list ::= col_name_list NK_COMMA col_name */ + { 260, -1 }, /* (171) col_name ::= column_name */ + { 222, -2 }, /* (172) cmd ::= SHOW DNODES */ + { 222, -2 }, /* (173) cmd ::= SHOW USERS */ + { 222, -2 }, /* (174) cmd ::= SHOW DATABASES */ + { 222, -4 }, /* (175) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 222, -4 }, /* (176) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 222, -3 }, /* (177) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 222, -2 }, /* (178) cmd ::= SHOW MNODES */ + { 222, -2 }, /* (179) cmd ::= SHOW MODULES */ + { 222, -2 }, /* (180) cmd ::= SHOW QNODES */ + { 222, -2 }, /* (181) cmd ::= SHOW FUNCTIONS */ + { 222, -5 }, /* (182) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 222, -2 }, /* (183) cmd ::= SHOW STREAMS */ + { 222, -2 }, /* (184) cmd ::= SHOW ACCOUNTS */ + { 222, -2 }, /* (185) cmd ::= SHOW APPS */ + { 222, -2 }, /* (186) cmd ::= SHOW CONNECTIONS */ + { 222, -2 }, /* (187) cmd ::= SHOW LICENCE */ + { 222, -2 }, /* (188) cmd ::= SHOW GRANTS */ + { 222, -4 }, /* (189) cmd ::= SHOW CREATE DATABASE db_name */ + { 222, -4 }, /* (190) cmd ::= SHOW CREATE TABLE full_table_name */ + { 222, -4 }, /* (191) cmd ::= SHOW CREATE STABLE full_table_name */ + { 222, -2 }, /* (192) cmd ::= SHOW QUERIES */ + { 222, -2 }, /* (193) cmd ::= SHOW SCORES */ + { 222, -2 }, /* (194) cmd ::= SHOW TOPICS */ + { 222, -2 }, /* (195) cmd ::= SHOW VARIABLES */ + { 222, -2 }, /* (196) cmd ::= SHOW BNODES */ + { 222, -2 }, /* (197) cmd ::= SHOW SNODES */ + { 222, -2 }, /* (198) cmd ::= SHOW CLUSTER */ + { 261, 0 }, /* (199) db_name_cond_opt ::= */ + { 261, -2 }, /* (200) db_name_cond_opt ::= db_name NK_DOT */ + { 262, 0 }, /* (201) like_pattern_opt ::= */ + { 262, -2 }, /* (202) like_pattern_opt ::= LIKE NK_STRING */ + { 263, -1 }, /* (203) table_name_cond ::= table_name */ + { 264, 0 }, /* (204) from_db_opt ::= */ + { 264, -2 }, /* (205) from_db_opt ::= FROM db_name */ + { 258, -1 }, /* (206) func_name_list ::= func_name */ + { 258, -3 }, /* (207) func_name_list ::= func_name_list NK_COMMA func_name */ + { 265, -1 }, /* (208) func_name ::= function_name */ + { 222, -8 }, /* (209) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 222, -10 }, /* (210) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 222, -6 }, /* (211) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 268, 0 }, /* (212) index_options ::= */ + { 268, -9 }, /* (213) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 268, -11 }, /* (214) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 269, -1 }, /* (215) func_list ::= func */ + { 269, -3 }, /* (216) func_list ::= func_list NK_COMMA func */ + { 272, -4 }, /* (217) func ::= function_name NK_LP expression_list NK_RP */ + { 222, -6 }, /* (218) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 222, -6 }, /* (219) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ + { 222, -4 }, /* (220) cmd ::= DROP TOPIC exists_opt topic_name */ + { 222, -2 }, /* (221) cmd ::= DESC full_table_name */ + { 222, -2 }, /* (222) cmd ::= DESCRIBE full_table_name */ + { 222, -3 }, /* (223) cmd ::= RESET QUERY CACHE */ + { 222, -4 }, /* (224) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 276, 0 }, /* (225) analyze_opt ::= */ + { 276, -1 }, /* (226) analyze_opt ::= ANALYZE */ + { 277, 0 }, /* (227) explain_options ::= */ + { 277, -3 }, /* (228) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 277, -3 }, /* (229) explain_options ::= explain_options RATIO NK_FLOAT */ + { 222, -6 }, /* (230) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 222, -10 }, /* (231) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 222, -3 }, /* (232) cmd ::= DROP FUNCTION function_name */ + { 278, 0 }, /* (233) agg_func_opt ::= */ + { 278, -1 }, /* (234) agg_func_opt ::= AGGREGATE */ + { 279, 0 }, /* (235) bufsize_opt ::= */ + { 279, -2 }, /* (236) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 222, -8 }, /* (237) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + { 222, -4 }, /* (238) cmd ::= DROP STREAM exists_opt stream_name */ + { 282, 0 }, /* (239) into_opt ::= */ + { 282, -2 }, /* (240) into_opt ::= INTO full_table_name */ + { 281, 0 }, /* (241) stream_options ::= */ + { 281, -3 }, /* (242) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 281, -3 }, /* (243) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 281, -3 }, /* (244) stream_options ::= stream_options WATERMARK duration_literal */ + { 222, -3 }, /* (245) cmd ::= KILL CONNECTION NK_INTEGER */ + { 222, -3 }, /* (246) cmd ::= KILL QUERY NK_INTEGER */ + { 222, -4 }, /* (247) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 222, -4 }, /* (248) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 222, -3 }, /* (249) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 283, -2 }, /* (250) dnode_list ::= DNODE NK_INTEGER */ + { 283, -3 }, /* (251) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 222, -3 }, /* (252) cmd ::= SYNCDB db_name REPLICA */ + { 222, -1 }, /* (253) cmd ::= query_expression */ + { 225, -1 }, /* (254) literal ::= NK_INTEGER */ + { 225, -1 }, /* (255) literal ::= NK_FLOAT */ + { 225, -1 }, /* (256) literal ::= NK_STRING */ + { 225, -1 }, /* (257) literal ::= NK_BOOL */ + { 225, -2 }, /* (258) literal ::= TIMESTAMP NK_STRING */ + { 225, -1 }, /* (259) literal ::= duration_literal */ + { 225, -1 }, /* (260) literal ::= NULL */ + { 225, -1 }, /* (261) literal ::= NK_QUESTION */ + { 270, -1 }, /* (262) duration_literal ::= NK_VARIABLE */ + { 284, -1 }, /* (263) signed ::= NK_INTEGER */ + { 284, -2 }, /* (264) signed ::= NK_PLUS NK_INTEGER */ + { 284, -2 }, /* (265) signed ::= NK_MINUS NK_INTEGER */ + { 284, -1 }, /* (266) signed ::= NK_FLOAT */ + { 284, -2 }, /* (267) signed ::= NK_PLUS NK_FLOAT */ + { 284, -2 }, /* (268) signed ::= NK_MINUS NK_FLOAT */ + { 285, -1 }, /* (269) signed_literal ::= signed */ + { 285, -1 }, /* (270) signed_literal ::= NK_STRING */ + { 285, -1 }, /* (271) signed_literal ::= NK_BOOL */ + { 285, -2 }, /* (272) signed_literal ::= TIMESTAMP NK_STRING */ + { 285, -1 }, /* (273) signed_literal ::= duration_literal */ + { 285, -1 }, /* (274) signed_literal ::= NULL */ + { 253, -1 }, /* (275) literal_list ::= signed_literal */ + { 253, -3 }, /* (276) literal_list ::= literal_list NK_COMMA signed_literal */ + { 231, -1 }, /* (277) db_name ::= NK_ID */ + { 256, -1 }, /* (278) table_name ::= NK_ID */ + { 249, -1 }, /* (279) column_name ::= NK_ID */ + { 266, -1 }, /* (280) function_name ::= NK_ID */ + { 286, -1 }, /* (281) table_alias ::= NK_ID */ + { 287, -1 }, /* (282) column_alias ::= NK_ID */ + { 227, -1 }, /* (283) user_name ::= NK_ID */ + { 267, -1 }, /* (284) index_name ::= NK_ID */ + { 274, -1 }, /* (285) topic_name ::= NK_ID */ + { 280, -1 }, /* (286) stream_name ::= NK_ID */ + { 288, -1 }, /* (287) expression ::= literal */ + { 288, -1 }, /* (288) expression ::= pseudo_column */ + { 288, -1 }, /* (289) expression ::= column_reference */ + { 288, -1 }, /* (290) expression ::= function_expression */ + { 288, -1 }, /* (291) expression ::= subquery */ + { 288, -3 }, /* (292) expression ::= NK_LP expression NK_RP */ + { 288, -2 }, /* (293) expression ::= NK_PLUS expression */ + { 288, -2 }, /* (294) expression ::= NK_MINUS expression */ + { 288, -3 }, /* (295) expression ::= expression NK_PLUS expression */ + { 288, -3 }, /* (296) expression ::= expression NK_MINUS expression */ + { 288, -3 }, /* (297) expression ::= expression NK_STAR expression */ + { 288, -3 }, /* (298) expression ::= expression NK_SLASH expression */ + { 288, -3 }, /* (299) expression ::= expression NK_REM expression */ + { 288, -3 }, /* (300) expression ::= column_reference NK_ARROW NK_STRING */ + { 273, -1 }, /* (301) expression_list ::= expression */ + { 273, -3 }, /* (302) expression_list ::= expression_list NK_COMMA expression */ + { 290, -1 }, /* (303) column_reference ::= column_name */ + { 290, -3 }, /* (304) column_reference ::= table_name NK_DOT column_name */ + { 289, -1 }, /* (305) pseudo_column ::= ROWTS */ + { 289, -1 }, /* (306) pseudo_column ::= TBNAME */ + { 289, -1 }, /* (307) pseudo_column ::= QSTARTTS */ + { 289, -1 }, /* (308) pseudo_column ::= QENDTS */ + { 289, -1 }, /* (309) pseudo_column ::= WSTARTTS */ + { 289, -1 }, /* (310) pseudo_column ::= WENDTS */ + { 289, -1 }, /* (311) pseudo_column ::= WDURATION */ + { 291, -4 }, /* (312) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 291, -4 }, /* (313) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 291, -6 }, /* (314) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 291, -3 }, /* (315) function_expression ::= noarg_func NK_LP NK_RP */ + { 295, -1 }, /* (316) noarg_func ::= NOW */ + { 295, -1 }, /* (317) noarg_func ::= TODAY */ + { 295, -1 }, /* (318) noarg_func ::= TIMEZONE */ + { 293, -1 }, /* (319) star_func ::= COUNT */ + { 293, -1 }, /* (320) star_func ::= FIRST */ + { 293, -1 }, /* (321) star_func ::= LAST */ + { 293, -1 }, /* (322) star_func ::= LAST_ROW */ + { 294, -1 }, /* (323) star_func_para_list ::= NK_STAR */ + { 294, -1 }, /* (324) star_func_para_list ::= other_para_list */ + { 296, -1 }, /* (325) other_para_list ::= star_func_para */ + { 296, -3 }, /* (326) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 297, -1 }, /* (327) star_func_para ::= expression */ + { 297, -3 }, /* (328) star_func_para ::= table_name NK_DOT NK_STAR */ + { 298, -3 }, /* (329) predicate ::= expression compare_op expression */ + { 298, -5 }, /* (330) predicate ::= expression BETWEEN expression AND expression */ + { 298, -6 }, /* (331) predicate ::= expression NOT BETWEEN expression AND expression */ + { 298, -3 }, /* (332) predicate ::= expression IS NULL */ + { 298, -4 }, /* (333) predicate ::= expression IS NOT NULL */ + { 298, -3 }, /* (334) predicate ::= expression in_op in_predicate_value */ + { 299, -1 }, /* (335) compare_op ::= NK_LT */ + { 299, -1 }, /* (336) compare_op ::= NK_GT */ + { 299, -1 }, /* (337) compare_op ::= NK_LE */ + { 299, -1 }, /* (338) compare_op ::= NK_GE */ + { 299, -1 }, /* (339) compare_op ::= NK_NE */ + { 299, -1 }, /* (340) compare_op ::= NK_EQ */ + { 299, -1 }, /* (341) compare_op ::= LIKE */ + { 299, -2 }, /* (342) compare_op ::= NOT LIKE */ + { 299, -1 }, /* (343) compare_op ::= MATCH */ + { 299, -1 }, /* (344) compare_op ::= NMATCH */ + { 299, -1 }, /* (345) compare_op ::= CONTAINS */ + { 300, -1 }, /* (346) in_op ::= IN */ + { 300, -2 }, /* (347) in_op ::= NOT IN */ + { 301, -3 }, /* (348) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 302, -1 }, /* (349) boolean_value_expression ::= boolean_primary */ + { 302, -2 }, /* (350) boolean_value_expression ::= NOT boolean_primary */ + { 302, -3 }, /* (351) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 302, -3 }, /* (352) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 303, -1 }, /* (353) boolean_primary ::= predicate */ + { 303, -3 }, /* (354) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 304, -1 }, /* (355) common_expression ::= expression */ + { 304, -1 }, /* (356) common_expression ::= boolean_value_expression */ + { 305, -2 }, /* (357) from_clause ::= FROM table_reference_list */ + { 306, -1 }, /* (358) table_reference_list ::= table_reference */ + { 306, -3 }, /* (359) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 307, -1 }, /* (360) table_reference ::= table_primary */ + { 307, -1 }, /* (361) table_reference ::= joined_table */ + { 308, -2 }, /* (362) table_primary ::= table_name alias_opt */ + { 308, -4 }, /* (363) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 308, -2 }, /* (364) table_primary ::= subquery alias_opt */ + { 308, -1 }, /* (365) table_primary ::= parenthesized_joined_table */ + { 310, 0 }, /* (366) alias_opt ::= */ + { 310, -1 }, /* (367) alias_opt ::= table_alias */ + { 310, -2 }, /* (368) alias_opt ::= AS table_alias */ + { 311, -3 }, /* (369) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 311, -3 }, /* (370) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 309, -6 }, /* (371) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 312, 0 }, /* (372) join_type ::= */ + { 312, -1 }, /* (373) join_type ::= INNER */ + { 314, -9 }, /* (374) 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 */ + { 315, 0 }, /* (375) set_quantifier_opt ::= */ + { 315, -1 }, /* (376) set_quantifier_opt ::= DISTINCT */ + { 315, -1 }, /* (377) set_quantifier_opt ::= ALL */ + { 316, -1 }, /* (378) select_list ::= NK_STAR */ + { 316, -1 }, /* (379) select_list ::= select_sublist */ + { 322, -1 }, /* (380) select_sublist ::= select_item */ + { 322, -3 }, /* (381) select_sublist ::= select_sublist NK_COMMA select_item */ + { 323, -1 }, /* (382) select_item ::= common_expression */ + { 323, -2 }, /* (383) select_item ::= common_expression column_alias */ + { 323, -3 }, /* (384) select_item ::= common_expression AS column_alias */ + { 323, -3 }, /* (385) select_item ::= table_name NK_DOT NK_STAR */ + { 317, 0 }, /* (386) where_clause_opt ::= */ + { 317, -2 }, /* (387) where_clause_opt ::= WHERE search_condition */ + { 318, 0 }, /* (388) partition_by_clause_opt ::= */ + { 318, -3 }, /* (389) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 319, 0 }, /* (390) twindow_clause_opt ::= */ + { 319, -6 }, /* (391) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 319, -4 }, /* (392) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 319, -6 }, /* (393) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 319, -8 }, /* (394) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 271, 0 }, /* (395) sliding_opt ::= */ + { 271, -4 }, /* (396) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 324, 0 }, /* (397) fill_opt ::= */ + { 324, -4 }, /* (398) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 324, -6 }, /* (399) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 325, -1 }, /* (400) fill_mode ::= NONE */ + { 325, -1 }, /* (401) fill_mode ::= PREV */ + { 325, -1 }, /* (402) fill_mode ::= NULL */ + { 325, -1 }, /* (403) fill_mode ::= LINEAR */ + { 325, -1 }, /* (404) fill_mode ::= NEXT */ + { 320, 0 }, /* (405) group_by_clause_opt ::= */ + { 320, -3 }, /* (406) group_by_clause_opt ::= GROUP BY group_by_list */ + { 326, -1 }, /* (407) group_by_list ::= expression */ + { 326, -3 }, /* (408) group_by_list ::= group_by_list NK_COMMA expression */ + { 321, 0 }, /* (409) having_clause_opt ::= */ + { 321, -2 }, /* (410) having_clause_opt ::= HAVING search_condition */ + { 275, -4 }, /* (411) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 327, -1 }, /* (412) query_expression_body ::= query_primary */ + { 327, -4 }, /* (413) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 331, -1 }, /* (414) query_primary ::= query_specification */ + { 328, 0 }, /* (415) order_by_clause_opt ::= */ + { 328, -3 }, /* (416) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 329, 0 }, /* (417) slimit_clause_opt ::= */ + { 329, -2 }, /* (418) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 329, -4 }, /* (419) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 329, -4 }, /* (420) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 330, 0 }, /* (421) limit_clause_opt ::= */ + { 330, -2 }, /* (422) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 330, -4 }, /* (423) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 330, -4 }, /* (424) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 292, -3 }, /* (425) subquery ::= NK_LP query_expression NK_RP */ + { 313, -1 }, /* (426) search_condition ::= common_expression */ + { 332, -1 }, /* (427) sort_specification_list ::= sort_specification */ + { 332, -3 }, /* (428) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 333, -3 }, /* (429) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 334, 0 }, /* (430) ordering_specification_opt ::= */ + { 334, -1 }, /* (431) ordering_specification_opt ::= ASC */ + { 334, -1 }, /* (432) ordering_specification_opt ::= DESC */ + { 335, 0 }, /* (433) null_ordering_opt ::= */ + { 335, -2 }, /* (434) null_ordering_opt ::= NULLS FIRST */ + { 335, -2 }, /* (435) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -2727,11 +2747,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,222,&yymsp[0].minor); + yy_destructor(yypParser,223,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->valid = false; generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,223,&yymsp[0].minor); + yy_destructor(yypParser,224,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -2745,20 +2765,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,222,&yymsp[-2].minor); +{ yy_destructor(yypParser,223,&yymsp[-2].minor); { } - yy_destructor(yypParser,224,&yymsp[0].minor); + yy_destructor(yypParser,225,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,225,&yymsp[0].minor); +{ yy_destructor(yypParser,226,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,223,&yymsp[-1].minor); +{ yy_destructor(yypParser,224,&yymsp[-1].minor); { } - yy_destructor(yypParser,225,&yymsp[0].minor); + yy_destructor(yypParser,226,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -2772,31 +2792,31 @@ static YYACTIONTYPE yy_reduce( case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } - yy_destructor(yypParser,224,&yymsp[0].minor); + yy_destructor(yypParser,225,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy359, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy449, &yymsp[0].minor.yy0); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy359, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy449, 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.yy359, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy449, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy359); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy449); } break; case 28: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy359, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy449, NULL); } break; case 29: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy359, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy449, &yymsp[0].minor.yy0); } break; case 30: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 31: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy359); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy449); } break; case 32: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -2813,25 +2833,25 @@ static YYACTIONTYPE yy_reduce( case 36: /* dnode_endpoint ::= NK_STRING */ case 37: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==37); case 38: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==38); - case 276: /* db_name ::= NK_ID */ yytestcase(yyruleno==276); - case 277: /* table_name ::= NK_ID */ yytestcase(yyruleno==277); - case 278: /* column_name ::= NK_ID */ yytestcase(yyruleno==278); - case 279: /* function_name ::= NK_ID */ yytestcase(yyruleno==279); - case 280: /* table_alias ::= NK_ID */ yytestcase(yyruleno==280); - case 281: /* column_alias ::= NK_ID */ yytestcase(yyruleno==281); - case 282: /* user_name ::= NK_ID */ yytestcase(yyruleno==282); - case 283: /* index_name ::= NK_ID */ yytestcase(yyruleno==283); - case 284: /* topic_name ::= NK_ID */ yytestcase(yyruleno==284); - case 285: /* stream_name ::= NK_ID */ yytestcase(yyruleno==285); - case 315: /* noarg_func ::= NOW */ yytestcase(yyruleno==315); - case 316: /* noarg_func ::= TODAY */ yytestcase(yyruleno==316); - case 317: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==317); - case 318: /* star_func ::= COUNT */ yytestcase(yyruleno==318); - case 319: /* star_func ::= FIRST */ yytestcase(yyruleno==319); - case 320: /* star_func ::= LAST */ yytestcase(yyruleno==320); - case 321: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==321); -{ yylhsminor.yy359 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy359 = yylhsminor.yy359; + case 277: /* db_name ::= NK_ID */ yytestcase(yyruleno==277); + case 278: /* table_name ::= NK_ID */ yytestcase(yyruleno==278); + case 279: /* column_name ::= NK_ID */ yytestcase(yyruleno==279); + case 280: /* function_name ::= NK_ID */ yytestcase(yyruleno==280); + case 281: /* table_alias ::= NK_ID */ yytestcase(yyruleno==281); + case 282: /* column_alias ::= NK_ID */ yytestcase(yyruleno==282); + case 283: /* user_name ::= NK_ID */ yytestcase(yyruleno==283); + case 284: /* index_name ::= NK_ID */ yytestcase(yyruleno==284); + case 285: /* topic_name ::= NK_ID */ yytestcase(yyruleno==285); + case 286: /* stream_name ::= NK_ID */ yytestcase(yyruleno==286); + case 316: /* noarg_func ::= NOW */ yytestcase(yyruleno==316); + case 317: /* noarg_func ::= TODAY */ yytestcase(yyruleno==317); + case 318: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==318); + case 319: /* star_func ::= COUNT */ yytestcase(yyruleno==319); + case 320: /* star_func ::= FIRST */ yytestcase(yyruleno==320); + case 321: /* star_func ::= LAST */ yytestcase(yyruleno==321); + case 322: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==322); +{ yylhsminor.yy449 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy449 = yylhsminor.yy449; break; case 39: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -2864,420 +2884,420 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; case 49: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy237, &yymsp[-1].minor.yy359, yymsp[0].minor.yy42); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy89, &yymsp[-1].minor.yy449, yymsp[0].minor.yy392); } break; case 50: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy237, &yymsp[0].minor.yy359); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy89, &yymsp[0].minor.yy449); } break; case 51: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy359); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy449); } break; case 52: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy359, yymsp[0].minor.yy42); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy449, yymsp[0].minor.yy392); } break; case 53: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy237 = true; } +{ yymsp[-2].minor.yy89 = true; } break; case 54: /* not_exists_opt ::= */ case 56: /* exists_opt ::= */ yytestcase(yyruleno==56); - case 224: /* analyze_opt ::= */ yytestcase(yyruleno==224); - case 232: /* agg_func_opt ::= */ yytestcase(yyruleno==232); - case 374: /* set_quantifier_opt ::= */ yytestcase(yyruleno==374); -{ yymsp[1].minor.yy237 = false; } + case 225: /* analyze_opt ::= */ yytestcase(yyruleno==225); + case 233: /* agg_func_opt ::= */ yytestcase(yyruleno==233); + case 375: /* set_quantifier_opt ::= */ yytestcase(yyruleno==375); +{ yymsp[1].minor.yy89 = false; } break; case 55: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy237 = true; } +{ yymsp[-1].minor.yy89 = true; } break; case 57: /* db_options ::= */ -{ yymsp[1].minor.yy42 = createDatabaseOptions(pCxt); } +{ yymsp[1].minor.yy392 = createDatabaseOptions(pCxt); } break; case 58: /* db_options ::= db_options BLOCKS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pNumOfBlocks = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pNumOfBlocks = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 59: /* db_options ::= db_options CACHE NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pCacheBlockSize = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pCacheBlockSize = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 60: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pCachelast = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pCachelast = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 61: /* db_options ::= db_options COMP NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pCompressionLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pCompressionLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 62: /* db_options ::= db_options DAYS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pDaysPerFile = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pDaysPerFile = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 63: /* db_options ::= db_options DAYS NK_VARIABLE */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pDaysPerFile = (SValueNode*)createDurationValueNode(pCxt, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pDaysPerFile = (SValueNode*)createDurationValueNode(pCxt, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 64: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pFsyncPeriod = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pFsyncPeriod = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 65: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pMaxRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pMaxRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 66: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pMinRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pMinRowsPerBlock = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 67: /* db_options ::= db_options KEEP integer_list */ case 68: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==68); -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pKeep = yymsp[0].minor.yy244; yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pKeep = yymsp[0].minor.yy376; yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 69: /* db_options ::= db_options PRECISION NK_STRING */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pPrecision = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pPrecision = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 70: /* db_options ::= db_options QUORUM NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pQuorum = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pQuorum = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 71: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pReplica = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pReplica = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 72: /* db_options ::= db_options TTL NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 73: /* db_options ::= db_options WAL NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pWalLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pWalLevel = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 74: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pNumOfVgroups = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pNumOfVgroups = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 75: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pSingleStable = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pSingleStable = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 76: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pStreamMode = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pStreamMode = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 77: /* db_options ::= db_options RETENTIONS retention_list */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pRetentions = yymsp[0].minor.yy244; yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pRetentions = yymsp[0].minor.yy376; yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 78: /* db_options ::= db_options STRICT NK_INTEGER */ -{ ((SDatabaseOptions*)yymsp[-2].minor.yy42)->pStrict = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((SDatabaseOptions*)yymsp[-2].minor.yy392)->pStrict = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 79: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy42 = createDatabaseOptions(pCxt); yylhsminor.yy42 = setDatabaseAlterOption(pCxt, yylhsminor.yy42, &yymsp[0].minor.yy325); } - yymsp[0].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createDatabaseOptions(pCxt); yylhsminor.yy392 = setDatabaseAlterOption(pCxt, yylhsminor.yy392, &yymsp[0].minor.yy221); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 80: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy42 = setDatabaseAlterOption(pCxt, yymsp[-1].minor.yy42, &yymsp[0].minor.yy325); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = setDatabaseAlterOption(pCxt, yymsp[-1].minor.yy392, &yymsp[0].minor.yy221); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 81: /* alter_db_option ::= BLOCKS NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy325.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy221.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy221.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 82: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy325.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy221.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy221.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 83: /* alter_db_option ::= KEEP integer_list */ case 84: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==84); -{ yymsp[-1].minor.yy325.type = DB_OPTION_KEEP; yymsp[-1].minor.yy325.pList = yymsp[0].minor.yy244; } +{ yymsp[-1].minor.yy221.type = DB_OPTION_KEEP; yymsp[-1].minor.yy221.pList = yymsp[0].minor.yy376; } break; case 85: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_WAL; yymsp[-1].minor.yy325.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy221.type = DB_OPTION_WAL; yymsp[-1].minor.yy221.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 86: /* alter_db_option ::= QUORUM NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy325.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy221.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy221.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 87: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy325.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy221.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy221.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 88: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy325.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy221.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy221.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 89: /* alter_db_option ::= STRICT NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = DB_OPTION_STRICT; yymsp[-1].minor.yy325.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy221.type = DB_OPTION_STRICT; yymsp[-1].minor.yy221.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 90: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy244 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy244 = yylhsminor.yy244; +{ yylhsminor.yy376 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy376 = yylhsminor.yy376; break; case 91: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 250: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==250); -{ yylhsminor.yy244 = addNodeToList(pCxt, yymsp[-2].minor.yy244, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy244 = yylhsminor.yy244; + case 251: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==251); +{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy376 = yylhsminor.yy376; break; case 92: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy244 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy244 = yylhsminor.yy244; +{ yylhsminor.yy376 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy376 = yylhsminor.yy376; break; case 93: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy244 = addNodeToList(pCxt, yymsp[-2].minor.yy244, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy244 = yylhsminor.yy244; +{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy376 = yylhsminor.yy376; break; case 94: /* retention_list ::= retention */ case 114: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==114); case 117: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==117); case 124: /* column_def_list ::= column_def */ yytestcase(yyruleno==124); case 169: /* col_name_list ::= col_name */ yytestcase(yyruleno==169); - case 205: /* func_name_list ::= func_name */ yytestcase(yyruleno==205); - case 214: /* func_list ::= func */ yytestcase(yyruleno==214); - case 274: /* literal_list ::= signed_literal */ yytestcase(yyruleno==274); - case 324: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==324); - case 379: /* select_sublist ::= select_item */ yytestcase(yyruleno==379); - case 426: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==426); -{ yylhsminor.yy244 = createNodeList(pCxt, yymsp[0].minor.yy42); } - yymsp[0].minor.yy244 = yylhsminor.yy244; + case 206: /* func_name_list ::= func_name */ yytestcase(yyruleno==206); + case 215: /* func_list ::= func */ yytestcase(yyruleno==215); + case 275: /* literal_list ::= signed_literal */ yytestcase(yyruleno==275); + case 325: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==325); + case 380: /* select_sublist ::= select_item */ yytestcase(yyruleno==380); + case 427: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==427); +{ yylhsminor.yy376 = createNodeList(pCxt, yymsp[0].minor.yy392); } + yymsp[0].minor.yy376 = yylhsminor.yy376; break; case 95: /* retention_list ::= retention_list NK_COMMA retention */ case 125: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==125); case 170: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==170); - case 206: /* func_name_list ::= func_name_list NK_COMMA func_name */ yytestcase(yyruleno==206); - case 215: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==215); - case 275: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==275); - case 325: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==325); - case 380: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==380); - case 427: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==427); -{ yylhsminor.yy244 = addNodeToList(pCxt, yymsp[-2].minor.yy244, yymsp[0].minor.yy42); } - yymsp[-2].minor.yy244 = yylhsminor.yy244; + case 207: /* func_name_list ::= func_name_list NK_COMMA func_name */ yytestcase(yyruleno==207); + case 216: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==216); + case 276: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==276); + case 326: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==326); + case 381: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==381); + case 428: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==428); +{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, yymsp[0].minor.yy392); } + yymsp[-2].minor.yy376 = yylhsminor.yy376; break; case 96: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy42 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 97: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 99: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==99); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy237, yymsp[-5].minor.yy42, yymsp[-3].minor.yy244, yymsp[-1].minor.yy244, yymsp[0].minor.yy42); } +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy89, yymsp[-5].minor.yy392, yymsp[-3].minor.yy376, yymsp[-1].minor.yy376, yymsp[0].minor.yy392); } break; case 98: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy244); } +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy376); } break; case 100: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy244); } +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy376); } break; case 101: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy237, yymsp[0].minor.yy42); } +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy89, yymsp[0].minor.yy392); } break; case 102: /* cmd ::= ALTER TABLE alter_table_clause */ case 103: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==103); - case 252: /* cmd ::= query_expression */ yytestcase(yyruleno==252); -{ pCxt->pRootNode = yymsp[0].minor.yy42; } + case 253: /* cmd ::= query_expression */ yytestcase(yyruleno==253); +{ pCxt->pRootNode = yymsp[0].minor.yy392; } break; case 104: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy42 = createAlterTableOption(pCxt, yymsp[-1].minor.yy42, yymsp[0].minor.yy42); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableOption(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 105: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy42 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy42, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy359, yymsp[0].minor.yy314); } - yymsp[-4].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy449, yymsp[0].minor.yy112); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 106: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy42 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy42, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy359); } - yymsp[-3].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy449); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 107: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy42 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy42, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy359, yymsp[0].minor.yy314); } - yymsp[-4].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy449, yymsp[0].minor.yy112); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 108: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy42 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy42, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy359, &yymsp[0].minor.yy359); } - yymsp[-4].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy449, &yymsp[0].minor.yy449); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 109: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy42 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy42, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy359, yymsp[0].minor.yy314); } - yymsp[-4].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy449, yymsp[0].minor.yy112); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 110: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy42 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy42, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy359); } - yymsp[-3].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy449); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 111: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy42 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy42, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy359, yymsp[0].minor.yy314); } - yymsp[-4].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy449, yymsp[0].minor.yy112); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 112: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy42 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy42, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy359, &yymsp[0].minor.yy359); } - yymsp[-4].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy449, &yymsp[0].minor.yy449); } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 113: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ -{ yylhsminor.yy42 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy42, &yymsp[-2].minor.yy359, yymsp[0].minor.yy42); } - yymsp[-5].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy392, &yymsp[-2].minor.yy449, yymsp[0].minor.yy392); } + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; case 115: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ case 118: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==118); -{ yylhsminor.yy244 = addNodeToList(pCxt, yymsp[-1].minor.yy244, yymsp[0].minor.yy42); } - yymsp[-1].minor.yy244 = yylhsminor.yy244; +{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-1].minor.yy376, yymsp[0].minor.yy392); } + yymsp[-1].minor.yy376 = yylhsminor.yy376; break; case 116: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ -{ yylhsminor.yy42 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy237, yymsp[-7].minor.yy42, yymsp[-5].minor.yy42, yymsp[-4].minor.yy244, yymsp[-1].minor.yy244); } - yymsp[-8].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy89, yymsp[-7].minor.yy392, yymsp[-5].minor.yy392, yymsp[-4].minor.yy376, yymsp[-1].minor.yy376); } + yymsp[-8].minor.yy392 = yylhsminor.yy392; break; case 119: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy42 = createDropTableClause(pCxt, yymsp[-1].minor.yy237, yymsp[0].minor.yy42); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createDropTableClause(pCxt, yymsp[-1].minor.yy89, yymsp[0].minor.yy392); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 120: /* specific_tags_opt ::= */ case 151: /* tags_def_opt ::= */ yytestcase(yyruleno==151); - case 387: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==387); - case 404: /* group_by_clause_opt ::= */ yytestcase(yyruleno==404); - case 414: /* order_by_clause_opt ::= */ yytestcase(yyruleno==414); -{ yymsp[1].minor.yy244 = NULL; } + case 388: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==388); + case 405: /* group_by_clause_opt ::= */ yytestcase(yyruleno==405); + case 415: /* order_by_clause_opt ::= */ yytestcase(yyruleno==415); +{ yymsp[1].minor.yy376 = NULL; } break; case 121: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy244 = yymsp[-1].minor.yy244; } +{ yymsp[-2].minor.yy376 = yymsp[-1].minor.yy376; } break; case 122: /* full_table_name ::= table_name */ -{ yylhsminor.yy42 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy359, NULL); } - yymsp[0].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy449, NULL); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 123: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy42 = createRealTableNode(pCxt, &yymsp[-2].minor.yy359, &yymsp[0].minor.yy359, NULL); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-2].minor.yy449, &yymsp[0].minor.yy449, NULL); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 126: /* column_def ::= column_name type_name */ -{ yylhsminor.yy42 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy359, yymsp[0].minor.yy314, NULL); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy449, yymsp[0].minor.yy112, NULL); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 127: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy42 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy359, yymsp[-2].minor.yy314, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy449, yymsp[-2].minor.yy112, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; case 128: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_BOOL); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 129: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_TINYINT); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 130: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 131: /* type_name ::= INT */ case 132: /* type_name ::= INTEGER */ yytestcase(yyruleno==132); -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_INT); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_INT); } break; case 133: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_BIGINT); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 134: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_FLOAT); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 135: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 136: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy314 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy112 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 137: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 138: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy314 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy112 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 139: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy314 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +{ yymsp[-1].minor.yy112 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 140: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy314 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +{ yymsp[-1].minor.yy112 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 141: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy314 = createDataType(TSDB_DATA_TYPE_UINT); } +{ yymsp[-1].minor.yy112 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 142: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy314 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +{ yymsp[-1].minor.yy112 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 143: /* type_name ::= JSON */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_JSON); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 144: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy314 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy112 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 145: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 146: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_BLOB); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 147: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy314 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy112 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 148: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy314 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[0].minor.yy112 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 149: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy314 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-3].minor.yy112 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 150: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy314 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-5].minor.yy112 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 152: /* tags_def_opt ::= tags_def */ - case 323: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==323); - case 378: /* select_list ::= select_sublist */ yytestcase(yyruleno==378); -{ yylhsminor.yy244 = yymsp[0].minor.yy244; } - yymsp[0].minor.yy244 = yylhsminor.yy244; + case 324: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==324); + case 379: /* select_list ::= select_sublist */ yytestcase(yyruleno==379); +{ yylhsminor.yy376 = yymsp[0].minor.yy376; } + yymsp[0].minor.yy376 = yylhsminor.yy376; break; case 153: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy244 = yymsp[-1].minor.yy244; } +{ yymsp[-3].minor.yy376 = yymsp[-1].minor.yy376; } break; case 154: /* table_options ::= */ -{ yymsp[1].minor.yy42 = createTableOptions(pCxt); } +{ yymsp[1].minor.yy392 = createTableOptions(pCxt); } break; case 155: /* table_options ::= table_options COMMENT NK_STRING */ -{ ((STableOptions*)yymsp[-2].minor.yy42)->pComments = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((STableOptions*)yymsp[-2].minor.yy392)->pComments = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 156: /* table_options ::= table_options KEEP integer_list */ case 157: /* table_options ::= table_options KEEP variable_list */ yytestcase(yyruleno==157); -{ ((STableOptions*)yymsp[-2].minor.yy42)->pKeep = yymsp[0].minor.yy244; yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((STableOptions*)yymsp[-2].minor.yy392)->pKeep = yymsp[0].minor.yy376; yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 158: /* table_options ::= table_options TTL NK_INTEGER */ -{ ((STableOptions*)yymsp[-2].minor.yy42)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((STableOptions*)yymsp[-2].minor.yy392)->pTtl = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 159: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ ((STableOptions*)yymsp[-4].minor.yy42)->pSma = yymsp[-1].minor.yy244; yylhsminor.yy42 = yymsp[-4].minor.yy42; } - yymsp[-4].minor.yy42 = yylhsminor.yy42; +{ ((STableOptions*)yymsp[-4].minor.yy392)->pSma = yymsp[-1].minor.yy376; yylhsminor.yy392 = yymsp[-4].minor.yy392; } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 160: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ -{ ((STableOptions*)yymsp[-4].minor.yy42)->pFuncs = yymsp[-1].minor.yy244; yylhsminor.yy42 = yymsp[-4].minor.yy42; } - yymsp[-4].minor.yy42 = yylhsminor.yy42; +{ ((STableOptions*)yymsp[-4].minor.yy392)->pFuncs = yymsp[-1].minor.yy376; yylhsminor.yy392 = yymsp[-4].minor.yy392; } + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; case 161: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ -{ ((STableOptions*)yymsp[-2].minor.yy42)->pFilesFactor = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((STableOptions*)yymsp[-2].minor.yy392)->pFilesFactor = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 162: /* table_options ::= table_options DELAY NK_INTEGER */ -{ ((STableOptions*)yymsp[-2].minor.yy42)->pDelay = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; +{ ((STableOptions*)yymsp[-2].minor.yy392)->pDelay = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; case 163: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy42 = createTableOptions(pCxt); yylhsminor.yy42 = setTableAlterOption(pCxt, yylhsminor.yy42, &yymsp[0].minor.yy325); } - yymsp[0].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createTableOptions(pCxt); yylhsminor.yy392 = setTableAlterOption(pCxt, yylhsminor.yy392, &yymsp[0].minor.yy221); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 164: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy42 = setTableAlterOption(pCxt, yymsp[-1].minor.yy42, &yymsp[0].minor.yy325); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = setTableAlterOption(pCxt, yymsp[-1].minor.yy392, &yymsp[0].minor.yy221); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; case 165: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy325.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy325.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy221.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy221.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; case 166: /* alter_table_option ::= KEEP integer_list */ case 167: /* alter_table_option ::= KEEP variable_list */ yytestcase(yyruleno==167); -{ yymsp[-1].minor.yy325.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy325.pList = yymsp[0].minor.yy244; } +{ yymsp[-1].minor.yy221.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy221.pList = yymsp[0].minor.yy376; } break; case 168: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy325.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy325.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-1].minor.yy221.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy221.pVal = (SValueNode*)createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 171: /* col_name ::= column_name */ -{ yylhsminor.yy42 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy359); } - yymsp[0].minor.yy42 = yylhsminor.yy42; +{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy449); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; case 172: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } @@ -3289,13 +3309,13 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } break; case 175: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy42, yymsp[0].minor.yy42); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } break; case 176: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy42, yymsp[0].minor.yy42); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } break; case 177: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy42, NULL); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy392, NULL); } break; case 178: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } @@ -3310,7 +3330,7 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } break; case 182: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy42, yymsp[0].minor.yy42); } +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; case 183: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } @@ -3329,13 +3349,13 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT, NULL, NULL); } break; case 189: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy359); } +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy449); } break; case 190: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy42); } +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy392); } break; case 191: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy42); } +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy392); } break; case 192: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); } @@ -3355,641 +3375,644 @@ static YYACTIONTYPE yy_reduce( case 197: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); } break; - case 198: /* db_name_cond_opt ::= */ - case 203: /* from_db_opt ::= */ yytestcase(yyruleno==203); -{ yymsp[1].minor.yy42 = createDefaultDatabaseCondValue(pCxt); } + case 198: /* cmd ::= SHOW CLUSTER */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT, NULL, NULL); } + break; + case 199: /* db_name_cond_opt ::= */ + case 204: /* from_db_opt ::= */ yytestcase(yyruleno==204); +{ yymsp[1].minor.yy392 = createDefaultDatabaseCondValue(pCxt); } break; - case 199: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy359); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; + case 200: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy449); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 200: /* like_pattern_opt ::= */ - case 211: /* index_options ::= */ yytestcase(yyruleno==211); - case 238: /* into_opt ::= */ yytestcase(yyruleno==238); - case 385: /* where_clause_opt ::= */ yytestcase(yyruleno==385); - case 389: /* twindow_clause_opt ::= */ yytestcase(yyruleno==389); - case 394: /* sliding_opt ::= */ yytestcase(yyruleno==394); - case 396: /* fill_opt ::= */ yytestcase(yyruleno==396); - case 408: /* having_clause_opt ::= */ yytestcase(yyruleno==408); - case 416: /* slimit_clause_opt ::= */ yytestcase(yyruleno==416); - case 420: /* limit_clause_opt ::= */ yytestcase(yyruleno==420); -{ yymsp[1].minor.yy42 = NULL; } + case 201: /* like_pattern_opt ::= */ + case 212: /* index_options ::= */ yytestcase(yyruleno==212); + case 239: /* into_opt ::= */ yytestcase(yyruleno==239); + case 386: /* where_clause_opt ::= */ yytestcase(yyruleno==386); + case 390: /* twindow_clause_opt ::= */ yytestcase(yyruleno==390); + case 395: /* sliding_opt ::= */ yytestcase(yyruleno==395); + case 397: /* fill_opt ::= */ yytestcase(yyruleno==397); + case 409: /* having_clause_opt ::= */ yytestcase(yyruleno==409); + case 417: /* slimit_clause_opt ::= */ yytestcase(yyruleno==417); + case 421: /* limit_clause_opt ::= */ yytestcase(yyruleno==421); +{ yymsp[1].minor.yy392 = NULL; } break; - case 201: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 202: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 202: /* table_name_cond ::= table_name */ -{ yylhsminor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy359); } - yymsp[0].minor.yy42 = yylhsminor.yy42; + case 203: /* table_name_cond ::= table_name */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy449); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 204: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy359); } + case 205: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy449); } break; - case 207: /* func_name ::= function_name */ -{ yylhsminor.yy42 = createFunctionNode(pCxt, &yymsp[0].minor.yy359, NULL); } - yymsp[0].minor.yy42 = yylhsminor.yy42; + case 208: /* func_name ::= function_name */ +{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy449, NULL); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 208: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy237, &yymsp[-3].minor.yy359, &yymsp[-1].minor.yy359, NULL, yymsp[0].minor.yy42); } + case 209: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy89, &yymsp[-3].minor.yy449, &yymsp[-1].minor.yy449, NULL, yymsp[0].minor.yy392); } break; - case 209: /* 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.yy237, &yymsp[-5].minor.yy359, &yymsp[-3].minor.yy359, yymsp[-1].minor.yy244, NULL); } + case 210: /* 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.yy89, &yymsp[-5].minor.yy449, &yymsp[-3].minor.yy449, yymsp[-1].minor.yy376, NULL); } break; - case 210: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy237, &yymsp[-2].minor.yy359, &yymsp[0].minor.yy359); } + case 211: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy89, &yymsp[-2].minor.yy449, &yymsp[0].minor.yy449); } break; - case 212: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy42 = createIndexOption(pCxt, yymsp[-6].minor.yy244, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), NULL, yymsp[0].minor.yy42); } + case 213: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ +{ yymsp[-8].minor.yy392 = createIndexOption(pCxt, yymsp[-6].minor.yy376, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), NULL, yymsp[0].minor.yy392); } break; - case 213: /* 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.yy42 = createIndexOption(pCxt, yymsp[-8].minor.yy244, releaseRawExprNode(pCxt, yymsp[-4].minor.yy42), releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), yymsp[0].minor.yy42); } + case 214: /* 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.yy392 = createIndexOption(pCxt, yymsp[-8].minor.yy376, releaseRawExprNode(pCxt, yymsp[-4].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[0].minor.yy392); } break; - case 216: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy42 = createFunctionNode(pCxt, &yymsp[-3].minor.yy359, yymsp[-1].minor.yy244); } - yymsp[-3].minor.yy42 = yylhsminor.yy42; + case 217: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[-3].minor.yy449, yymsp[-1].minor.yy376); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 217: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy237, &yymsp[-2].minor.yy359, yymsp[0].minor.yy42, NULL); } + case 218: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy89, &yymsp[-2].minor.yy449, yymsp[0].minor.yy392, NULL); } break; - case 218: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy237, &yymsp[-2].minor.yy359, NULL, &yymsp[0].minor.yy359); } + case 219: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy89, &yymsp[-2].minor.yy449, NULL, &yymsp[0].minor.yy449); } break; - case 219: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy237, &yymsp[0].minor.yy359); } + case 220: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy89, &yymsp[0].minor.yy449); } break; - case 220: /* cmd ::= DESC full_table_name */ - case 221: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==221); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy42); } + case 221: /* cmd ::= DESC full_table_name */ + case 222: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==222); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy392); } break; - case 222: /* cmd ::= RESET QUERY CACHE */ + case 223: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 223: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy237, yymsp[-1].minor.yy42, yymsp[0].minor.yy42); } + case 224: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy89, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; - case 225: /* analyze_opt ::= ANALYZE */ - case 233: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==233); - case 375: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==375); -{ yymsp[0].minor.yy237 = true; } + case 226: /* analyze_opt ::= ANALYZE */ + case 234: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==234); + case 376: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==376); +{ yymsp[0].minor.yy89 = true; } break; - case 226: /* explain_options ::= */ -{ yymsp[1].minor.yy42 = createDefaultExplainOptions(pCxt); } + case 227: /* explain_options ::= */ +{ yymsp[1].minor.yy392 = createDefaultExplainOptions(pCxt); } break; - case 227: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy42 = setExplainVerbose(pCxt, yymsp[-2].minor.yy42, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 228: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy392 = setExplainVerbose(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 228: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy42 = setExplainRatio(pCxt, yymsp[-2].minor.yy42, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 229: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy392 = setExplainRatio(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 229: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ -{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy244); } + case 230: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ +{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy376); } break; - case 230: /* cmd ::= CREATE agg_func_opt FUNCTION function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy237, &yymsp[-5].minor.yy359, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy314, yymsp[0].minor.yy240); } + case 231: /* 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.yy89, yymsp[-8].minor.yy89, &yymsp[-5].minor.yy449, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy112, yymsp[0].minor.yy4); } break; - case 231: /* cmd ::= DROP FUNCTION function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, &yymsp[0].minor.yy359); } + case 232: /* cmd ::= DROP FUNCTION function_name */ +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, &yymsp[0].minor.yy449); } break; - case 234: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy240 = 0; } + case 235: /* bufsize_opt ::= */ +{ yymsp[1].minor.yy4 = 0; } break; - case 235: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy240 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + case 236: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ +{ yymsp[-1].minor.yy4 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 236: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy237, &yymsp[-4].minor.yy359, yymsp[-2].minor.yy42, yymsp[-3].minor.yy42, yymsp[0].minor.yy42); } + case 237: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy89, &yymsp[-4].minor.yy449, yymsp[-2].minor.yy392, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } break; - case 237: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy237, &yymsp[0].minor.yy359); } + case 238: /* cmd ::= DROP STREAM exists_opt stream_name */ +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy89, &yymsp[0].minor.yy449); } break; - case 239: /* into_opt ::= INTO full_table_name */ - case 356: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==356); - case 386: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==386); - case 409: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==409); -{ yymsp[-1].minor.yy42 = yymsp[0].minor.yy42; } + case 240: /* into_opt ::= INTO full_table_name */ + case 357: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==357); + case 387: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==387); + case 410: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==410); +{ yymsp[-1].minor.yy392 = yymsp[0].minor.yy392; } break; - case 240: /* stream_options ::= */ -{ yymsp[1].minor.yy42 = createStreamOptions(pCxt); } + case 241: /* stream_options ::= */ +{ yymsp[1].minor.yy392 = createStreamOptions(pCxt); } break; - case 241: /* stream_options ::= stream_options TRIGGER AT_ONCE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy42)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 242: /* stream_options ::= stream_options TRIGGER AT_ONCE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy392)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 242: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy42)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 243: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy392)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy392 = yymsp[-2].minor.yy392; } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 243: /* stream_options ::= stream_options WATERMARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy42)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy42); yylhsminor.yy42 = yymsp[-2].minor.yy42; } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 244: /* stream_options ::= stream_options WATERMARK duration_literal */ +{ ((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 244: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 245: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 245: /* cmd ::= KILL QUERY NK_INTEGER */ + case 246: /* cmd ::= KILL QUERY NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_QUERY_STMT, &yymsp[0].minor.yy0); } break; - case 246: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 247: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 247: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy244); } + case 248: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy376); } break; - case 248: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 249: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 249: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy244 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - break; - case 251: /* cmd ::= SYNCDB db_name REPLICA */ -{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy359); } - break; - case 253: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy42 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 254: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy42 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 255: /* literal ::= NK_STRING */ -{ yylhsminor.yy42 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 256: /* literal ::= NK_BOOL */ -{ yylhsminor.yy42 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 257: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; - break; - case 258: /* literal ::= duration_literal */ - case 268: /* signed_literal ::= signed */ yytestcase(yyruleno==268); - case 286: /* expression ::= literal */ yytestcase(yyruleno==286); - case 287: /* expression ::= pseudo_column */ yytestcase(yyruleno==287); - case 288: /* expression ::= column_reference */ yytestcase(yyruleno==288); - case 289: /* expression ::= function_expression */ yytestcase(yyruleno==289); - case 290: /* expression ::= subquery */ yytestcase(yyruleno==290); - case 348: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==348); - case 352: /* boolean_primary ::= predicate */ yytestcase(yyruleno==352); - case 354: /* common_expression ::= expression */ yytestcase(yyruleno==354); - case 355: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==355); - case 357: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==357); - case 359: /* table_reference ::= table_primary */ yytestcase(yyruleno==359); - case 360: /* table_reference ::= joined_table */ yytestcase(yyruleno==360); - case 364: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==364); - case 411: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==411); - case 413: /* query_primary ::= query_specification */ yytestcase(yyruleno==413); -{ yylhsminor.yy42 = yymsp[0].minor.yy42; } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 259: /* literal ::= NULL */ -{ yylhsminor.yy42 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 260: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy42 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 261: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy42 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 262: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 263: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 264: /* signed ::= NK_MINUS NK_INTEGER */ + case 250: /* dnode_list ::= DNODE NK_INTEGER */ +{ yymsp[-1].minor.yy376 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + break; + case 252: /* cmd ::= SYNCDB db_name REPLICA */ +{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy449); } + break; + case 254: /* literal ::= NK_INTEGER */ +{ 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 255: /* literal ::= NK_FLOAT */ +{ 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 256: /* literal ::= NK_STRING */ +{ 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 257: /* literal ::= NK_BOOL */ +{ 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 258: /* literal ::= TIMESTAMP NK_STRING */ +{ 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 259: /* literal ::= duration_literal */ + case 269: /* signed_literal ::= signed */ yytestcase(yyruleno==269); + case 287: /* expression ::= literal */ yytestcase(yyruleno==287); + case 288: /* expression ::= pseudo_column */ yytestcase(yyruleno==288); + case 289: /* expression ::= column_reference */ yytestcase(yyruleno==289); + case 290: /* expression ::= function_expression */ yytestcase(yyruleno==290); + case 291: /* expression ::= subquery */ yytestcase(yyruleno==291); + case 349: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==349); + case 353: /* boolean_primary ::= predicate */ yytestcase(yyruleno==353); + case 355: /* common_expression ::= expression */ yytestcase(yyruleno==355); + case 356: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==356); + case 358: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==358); + case 360: /* table_reference ::= table_primary */ yytestcase(yyruleno==360); + case 361: /* table_reference ::= joined_table */ yytestcase(yyruleno==361); + case 365: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==365); + case 412: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==412); + case 414: /* query_primary ::= query_specification */ yytestcase(yyruleno==414); +{ yylhsminor.yy392 = yymsp[0].minor.yy392; } + yymsp[0].minor.yy392 = yylhsminor.yy392; + break; + case 260: /* literal ::= NULL */ +{ 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 261: /* literal ::= NK_QUESTION */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; + break; + case 262: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; + break; + case 263: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; + break; + case 264: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 265: /* 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.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 265: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy42 = yylhsminor.yy42; + case 266: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 266: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 267: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 267: /* signed ::= NK_MINUS NK_FLOAT */ + case 268: /* 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.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 269: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy42 = yylhsminor.yy42; + case 270: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 270: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy42 = yylhsminor.yy42; + case 271: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 271: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 272: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 272: /* signed_literal ::= duration_literal */ - case 326: /* star_func_para ::= expression */ yytestcase(yyruleno==326); - case 381: /* select_item ::= common_expression */ yytestcase(yyruleno==381); - case 425: /* search_condition ::= common_expression */ yytestcase(yyruleno==425); -{ yylhsminor.yy42 = releaseRawExprNode(pCxt, yymsp[0].minor.yy42); } - yymsp[0].minor.yy42 = yylhsminor.yy42; + case 273: /* signed_literal ::= duration_literal */ + case 327: /* star_func_para ::= expression */ yytestcase(yyruleno==327); + case 382: /* select_item ::= common_expression */ yytestcase(yyruleno==382); + case 426: /* search_condition ::= common_expression */ yytestcase(yyruleno==426); +{ yylhsminor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } + yymsp[0].minor.yy392 = yylhsminor.yy392; break; - case 273: /* signed_literal ::= NULL */ -{ yymsp[0].minor.yy42 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } + case 274: /* signed_literal ::= NULL */ +{ yymsp[0].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } break; - case 291: /* expression ::= NK_LP expression NK_RP */ - case 353: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==353); -{ yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy42)); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 292: /* expression ::= NK_LP expression NK_RP */ + case 354: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==354); +{ 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 292: /* expression ::= NK_PLUS expression */ + case 293: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy42)); + 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.yy42 = yylhsminor.yy42; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 293: /* expression ::= NK_MINUS expression */ + case 294: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy42), 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.yy42 = yylhsminor.yy42; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 294: /* expression ::= expression NK_PLUS expression */ + case 295: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 295: /* expression ::= expression NK_MINUS expression */ + case 296: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 296: /* expression ::= expression NK_STAR expression */ + case 297: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 297: /* expression ::= expression NK_SLASH expression */ + case 298: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 298: /* expression ::= expression NK_REM expression */ + case 299: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 299: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 300: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), 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.yy42 = yylhsminor.yy42; - break; - case 300: /* expression_list ::= expression */ -{ yylhsminor.yy244 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy42)); } - yymsp[0].minor.yy244 = yylhsminor.yy244; - break; - case 301: /* expression_list ::= expression_list NK_COMMA expression */ -{ yylhsminor.yy244 = addNodeToList(pCxt, yymsp[-2].minor.yy244, releaseRawExprNode(pCxt, yymsp[0].minor.yy42)); } - yymsp[-2].minor.yy244 = yylhsminor.yy244; - break; - case 302: /* column_reference ::= column_name */ -{ yylhsminor.yy42 = createRawExprNode(pCxt, &yymsp[0].minor.yy359, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy359)); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 303: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy359, &yymsp[0].minor.yy359, createColumnNode(pCxt, &yymsp[-2].minor.yy359, &yymsp[0].minor.yy359)); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; - break; - case 304: /* pseudo_column ::= ROWTS */ - case 305: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==305); - case 306: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==306); - case 307: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==307); - case 308: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==308); - case 309: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==309); - case 310: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==310); -{ yylhsminor.yy42 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 311: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 312: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==312); -{ yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy359, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy359, yymsp[-1].minor.yy244)); } - yymsp[-3].minor.yy42 = yylhsminor.yy42; - break; - case 313: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ -{ yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy42), yymsp[-1].minor.yy314)); } - yymsp[-5].minor.yy42 = yylhsminor.yy42; - break; - case 314: /* function_expression ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy359, &yymsp[0].minor.yy0, createFunctionNodeNoArg(pCxt, &yymsp[-2].minor.yy359)); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; - break; - case 322: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy244 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy244 = yylhsminor.yy244; - break; - case 327: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 384: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==384); -{ yylhsminor.yy42 = createColumnNode(pCxt, &yymsp[-2].minor.yy359, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; - break; - case 328: /* predicate ::= expression compare_op expression */ - case 333: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==333); + yymsp[-2].minor.yy392 = yylhsminor.yy392; + break; + case 301: /* expression_list ::= expression */ +{ yylhsminor.yy376 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } + yymsp[0].minor.yy376 = yylhsminor.yy376; + break; + case 302: /* expression_list ::= expression_list NK_COMMA expression */ +{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } + yymsp[-2].minor.yy376 = yylhsminor.yy376; + break; + case 303: /* column_reference ::= column_name */ +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy449, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy449)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; + break; + case 304: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy449, &yymsp[0].minor.yy449, createColumnNode(pCxt, &yymsp[-2].minor.yy449, &yymsp[0].minor.yy449)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; + break; + case 305: /* pseudo_column ::= ROWTS */ + case 306: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==306); + case 307: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==307); + case 308: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==308); + case 309: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==309); + case 310: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==310); + case 311: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==311); +{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy392 = yylhsminor.yy392; + break; + case 312: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 313: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==313); +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy449, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy449, yymsp[-1].minor.yy376)); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; + break; + case 314: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy112)); } + yymsp[-5].minor.yy392 = yylhsminor.yy392; + break; + case 315: /* function_expression ::= noarg_func NK_LP NK_RP */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy449, &yymsp[0].minor.yy0, createFunctionNodeNoArg(pCxt, &yymsp[-2].minor.yy449)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; + break; + case 323: /* star_func_para_list ::= NK_STAR */ +{ yylhsminor.yy376 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy376 = yylhsminor.yy376; + break; + case 328: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 385: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==385); +{ yylhsminor.yy392 = createColumnNode(pCxt, &yymsp[-2].minor.yy449, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; + break; + case 329: /* predicate ::= expression compare_op expression */ + case 334: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==334); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy270, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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.yy380, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 329: /* predicate ::= expression BETWEEN expression AND expression */ + case 330: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy42), releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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.yy42 = yylhsminor.yy42; + yymsp[-4].minor.yy392 = yylhsminor.yy392; break; - case 330: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 331: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy42), releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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.yy42 = yylhsminor.yy42; + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; - case 331: /* predicate ::= expression IS NULL */ + case 332: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), 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.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 332: /* predicate ::= expression IS NOT NULL */ + case 333: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy42), 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.yy42 = yylhsminor.yy42; + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 334: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy270 = OP_TYPE_LOWER_THAN; } + case 335: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy380 = OP_TYPE_LOWER_THAN; } break; - case 335: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy270 = OP_TYPE_GREATER_THAN; } + case 336: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy380 = OP_TYPE_GREATER_THAN; } break; - case 336: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy270 = OP_TYPE_LOWER_EQUAL; } + case 337: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy380 = OP_TYPE_LOWER_EQUAL; } break; - case 337: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy270 = OP_TYPE_GREATER_EQUAL; } + case 338: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy380 = OP_TYPE_GREATER_EQUAL; } break; - case 338: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy270 = OP_TYPE_NOT_EQUAL; } + case 339: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy380 = OP_TYPE_NOT_EQUAL; } break; - case 339: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy270 = OP_TYPE_EQUAL; } + case 340: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy380 = OP_TYPE_EQUAL; } break; - case 340: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy270 = OP_TYPE_LIKE; } + case 341: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy380 = OP_TYPE_LIKE; } break; - case 341: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy270 = OP_TYPE_NOT_LIKE; } + case 342: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy380 = OP_TYPE_NOT_LIKE; } break; - case 342: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy270 = OP_TYPE_MATCH; } + case 343: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy380 = OP_TYPE_MATCH; } break; - case 343: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy270 = OP_TYPE_NMATCH; } + case 344: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy380 = OP_TYPE_NMATCH; } break; - case 344: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy270 = OP_TYPE_JSON_CONTAINS; } + case 345: /* compare_op ::= CONTAINS */ +{ yymsp[0].minor.yy380 = OP_TYPE_JSON_CONTAINS; } break; - case 345: /* in_op ::= IN */ -{ yymsp[0].minor.yy270 = OP_TYPE_IN; } + case 346: /* in_op ::= IN */ +{ yymsp[0].minor.yy380 = OP_TYPE_IN; } break; - case 346: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy270 = OP_TYPE_NOT_IN; } + case 347: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy380 = OP_TYPE_NOT_IN; } break; - case 347: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy244)); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 348: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy376)); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 349: /* boolean_value_expression ::= NOT boolean_primary */ + case 350: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy42), 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.yy42 = yylhsminor.yy42; + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 350: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 351: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 351: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 352: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy42); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy42); - yylhsminor.yy42 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); + 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.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 358: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy42 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy42, yymsp[0].minor.yy42, NULL); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 359: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy392 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, NULL); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 361: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy42 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy359, &yymsp[0].minor.yy359); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; + case 362: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy449, &yymsp[0].minor.yy449); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 362: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy42 = createRealTableNode(pCxt, &yymsp[-3].minor.yy359, &yymsp[-1].minor.yy359, &yymsp[0].minor.yy359); } - yymsp[-3].minor.yy42 = yylhsminor.yy42; + case 363: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-3].minor.yy449, &yymsp[-1].minor.yy449, &yymsp[0].minor.yy449); } + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 363: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy42 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy42), &yymsp[0].minor.yy359); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; + case 364: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy392 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy449); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 365: /* alias_opt ::= */ -{ yymsp[1].minor.yy359 = nil_token; } + case 366: /* alias_opt ::= */ +{ yymsp[1].minor.yy449 = nil_token; } break; - case 366: /* alias_opt ::= table_alias */ -{ yylhsminor.yy359 = yymsp[0].minor.yy359; } - yymsp[0].minor.yy359 = yylhsminor.yy359; + case 367: /* alias_opt ::= table_alias */ +{ yylhsminor.yy449 = yymsp[0].minor.yy449; } + yymsp[0].minor.yy449 = yylhsminor.yy449; break; - case 367: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy359 = yymsp[0].minor.yy359; } + case 368: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy449 = yymsp[0].minor.yy449; } break; - case 368: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 369: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==369); -{ yymsp[-2].minor.yy42 = yymsp[-1].minor.yy42; } + case 369: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 370: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==370); +{ yymsp[-2].minor.yy392 = yymsp[-1].minor.yy392; } break; - case 370: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy42 = createJoinTableNode(pCxt, yymsp[-4].minor.yy102, yymsp[-5].minor.yy42, yymsp[-2].minor.yy42, yymsp[0].minor.yy42); } - yymsp[-5].minor.yy42 = yylhsminor.yy42; + case 371: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy392 = createJoinTableNode(pCxt, yymsp[-4].minor.yy372, yymsp[-5].minor.yy392, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } + yymsp[-5].minor.yy392 = yylhsminor.yy392; break; - case 371: /* join_type ::= */ -{ yymsp[1].minor.yy102 = JOIN_TYPE_INNER; } + case 372: /* join_type ::= */ +{ yymsp[1].minor.yy372 = JOIN_TYPE_INNER; } break; - case 372: /* join_type ::= INNER */ -{ yymsp[0].minor.yy102 = JOIN_TYPE_INNER; } + case 373: /* join_type ::= INNER */ +{ yymsp[0].minor.yy372 = JOIN_TYPE_INNER; } break; - case 373: /* 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 374: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-8].minor.yy42 = createSelectStmt(pCxt, yymsp[-7].minor.yy237, yymsp[-6].minor.yy244, yymsp[-5].minor.yy42); - yymsp[-8].minor.yy42 = addWhereClause(pCxt, yymsp[-8].minor.yy42, yymsp[-4].minor.yy42); - yymsp[-8].minor.yy42 = addPartitionByClause(pCxt, yymsp[-8].minor.yy42, yymsp[-3].minor.yy244); - yymsp[-8].minor.yy42 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy42, yymsp[-2].minor.yy42); - yymsp[-8].minor.yy42 = addGroupByClause(pCxt, yymsp[-8].minor.yy42, yymsp[-1].minor.yy244); - yymsp[-8].minor.yy42 = addHavingClause(pCxt, yymsp[-8].minor.yy42, yymsp[0].minor.yy42); + yymsp[-8].minor.yy392 = createSelectStmt(pCxt, yymsp[-7].minor.yy89, yymsp[-6].minor.yy376, yymsp[-5].minor.yy392); + yymsp[-8].minor.yy392 = addWhereClause(pCxt, yymsp[-8].minor.yy392, yymsp[-4].minor.yy392); + yymsp[-8].minor.yy392 = addPartitionByClause(pCxt, yymsp[-8].minor.yy392, yymsp[-3].minor.yy376); + yymsp[-8].minor.yy392 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy392, yymsp[-2].minor.yy392); + yymsp[-8].minor.yy392 = addGroupByClause(pCxt, yymsp[-8].minor.yy392, yymsp[-1].minor.yy376); + yymsp[-8].minor.yy392 = addHavingClause(pCxt, yymsp[-8].minor.yy392, yymsp[0].minor.yy392); } break; - case 376: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy237 = false; } + case 377: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy89 = false; } break; - case 377: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy244 = NULL; } + case 378: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy376 = NULL; } break; - case 382: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy42 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy42), &yymsp[0].minor.yy359); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; + case 383: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy449); } + yymsp[-1].minor.yy392 = yylhsminor.yy392; break; - case 383: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy42 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), &yymsp[0].minor.yy359); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 384: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), &yymsp[0].minor.yy449); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 388: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 405: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==405); - case 415: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==415); -{ yymsp[-2].minor.yy244 = yymsp[0].minor.yy244; } + case 389: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 406: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==406); + case 416: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==416); +{ yymsp[-2].minor.yy376 = yymsp[0].minor.yy376; } break; - case 390: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy42 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy42), releaseRawExprNode(pCxt, yymsp[-1].minor.yy42)); } + case 391: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy392 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; - case 391: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ -{ yymsp[-3].minor.yy42 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy42)); } + case 392: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ +{ yymsp[-3].minor.yy392 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } break; - case 392: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy42 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy42), NULL, yymsp[-1].minor.yy42, yymsp[0].minor.yy42); } + case 393: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } break; - case 393: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy42 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy42), releaseRawExprNode(pCxt, yymsp[-3].minor.yy42), yymsp[-1].minor.yy42, yymsp[0].minor.yy42); } + case 394: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ 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 395: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy42 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy42); } + case 396: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ +{ yymsp[-3].minor.yy392 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy392); } break; - case 397: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy42 = createFillNode(pCxt, yymsp[-1].minor.yy544, NULL); } + case 398: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy392 = createFillNode(pCxt, yymsp[-1].minor.yy102, NULL); } break; - case 398: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy42 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy244)); } + case 399: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy376)); } break; - case 399: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy544 = FILL_MODE_NONE; } + case 400: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy102 = FILL_MODE_NONE; } break; - case 400: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy544 = FILL_MODE_PREV; } + case 401: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy102 = FILL_MODE_PREV; } break; - case 401: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy544 = FILL_MODE_NULL; } + case 402: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy102 = FILL_MODE_NULL; } break; - case 402: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy544 = FILL_MODE_LINEAR; } + case 403: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy102 = FILL_MODE_LINEAR; } break; - case 403: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy544 = FILL_MODE_NEXT; } + case 404: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy102 = FILL_MODE_NEXT; } break; - case 406: /* group_by_list ::= expression */ -{ yylhsminor.yy244 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); } - yymsp[0].minor.yy244 = yylhsminor.yy244; + case 407: /* group_by_list ::= expression */ +{ yylhsminor.yy376 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } + yymsp[0].minor.yy376 = yylhsminor.yy376; break; - case 407: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy244 = addNodeToList(pCxt, yymsp[-2].minor.yy244, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy42))); } - yymsp[-2].minor.yy244 = yylhsminor.yy244; + case 408: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy376 = addNodeToList(pCxt, yymsp[-2].minor.yy376, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } + yymsp[-2].minor.yy376 = yylhsminor.yy376; break; - case 410: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 411: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy42 = addOrderByClause(pCxt, yymsp[-3].minor.yy42, yymsp[-2].minor.yy244); - yylhsminor.yy42 = addSlimitClause(pCxt, yylhsminor.yy42, yymsp[-1].minor.yy42); - yylhsminor.yy42 = addLimitClause(pCxt, yylhsminor.yy42, yymsp[0].minor.yy42); + yylhsminor.yy392 = addOrderByClause(pCxt, yymsp[-3].minor.yy392, yymsp[-2].minor.yy376); + yylhsminor.yy392 = addSlimitClause(pCxt, yylhsminor.yy392, yymsp[-1].minor.yy392); + yylhsminor.yy392 = addLimitClause(pCxt, yylhsminor.yy392, yymsp[0].minor.yy392); } - yymsp[-3].minor.yy42 = yylhsminor.yy42; + yymsp[-3].minor.yy392 = yylhsminor.yy392; break; - case 412: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy42 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy42, yymsp[0].minor.yy42); } - yymsp[-3].minor.yy42 = yylhsminor.yy42; + case 413: /* 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 417: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 421: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==421); -{ yymsp[-1].minor.yy42 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 418: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 422: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==422); +{ yymsp[-1].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 418: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 422: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==422); -{ yymsp[-3].minor.yy42 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 419: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 423: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==423); +{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 419: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 423: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==423); -{ yymsp[-3].minor.yy42 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 420: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 424: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==424); +{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 424: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy42 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy42); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 425: /* 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 428: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy42 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy42), yymsp[-1].minor.yy508, yymsp[0].minor.yy197); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + case 429: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy392 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[-1].minor.yy386, yymsp[0].minor.yy361); } + yymsp[-2].minor.yy392 = yylhsminor.yy392; break; - case 429: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy508 = ORDER_ASC; } + case 430: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy386 = ORDER_ASC; } break; - case 430: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy508 = ORDER_ASC; } + case 431: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy386 = ORDER_ASC; } break; - case 431: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy508 = ORDER_DESC; } + case 432: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy386 = ORDER_DESC; } break; - case 432: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy197 = NULL_ORDER_DEFAULT; } + case 433: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy361 = NULL_ORDER_DEFAULT; } break; - case 433: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy197 = NULL_ORDER_FIRST; } + case 434: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy361 = NULL_ORDER_FIRST; } break; - case 434: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy197 = NULL_ORDER_LAST; } + case 435: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy361 = NULL_ORDER_LAST; } break; default: break;