diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 3cc0aa795e..7636d9b9d0 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -135,6 +135,8 @@ typedef enum _mgmt_table { #define TSDB_ALTER_USER_ADD_WRITE_DB 0x6 #define TSDB_ALTER_USER_REMOVE_WRITE_DB 0x7 #define TSDB_ALTER_USER_CLEAR_WRITE_DB 0x8 +#define TSDB_ALTER_USER_ADD_ALL_DB 0x9 +#define TSDB_ALTER_USER_REMOVE_ALL_DB 0xA #define TSDB_ALTER_USER_PRIVILEGES 0x2 diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 5c24617369..68199fa519 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -51,201 +51,208 @@ #define TK_USER 33 #define TK_PRIVILEGE 34 #define TK_DROP 35 -#define TK_DNODE 36 -#define TK_PORT 37 -#define TK_NK_INTEGER 38 -#define TK_DNODES 39 -#define TK_NK_IPTOKEN 40 -#define TK_LOCAL 41 -#define TK_QNODE 42 -#define TK_ON 43 -#define TK_BNODE 44 -#define TK_SNODE 45 -#define TK_MNODE 46 -#define TK_DATABASE 47 -#define TK_USE 48 -#define TK_IF 49 -#define TK_NOT 50 -#define TK_EXISTS 51 -#define TK_BUFFER 52 -#define TK_CACHELAST 53 -#define TK_COMP 54 -#define TK_DAYS 55 -#define TK_NK_VARIABLE 56 -#define TK_FSYNC 57 -#define TK_MAXROWS 58 -#define TK_MINROWS 59 -#define TK_KEEP 60 -#define TK_PAGES 61 -#define TK_PAGESIZE 62 -#define TK_PRECISION 63 -#define TK_REPLICA 64 -#define TK_STRICT 65 -#define TK_WAL 66 -#define TK_VGROUPS 67 -#define TK_SINGLE_STABLE 68 -#define TK_RETENTIONS 69 -#define TK_NK_COMMA 70 -#define TK_NK_COLON 71 -#define TK_TABLE 72 -#define TK_NK_LP 73 -#define TK_NK_RP 74 -#define TK_STABLE 75 -#define TK_ADD 76 -#define TK_COLUMN 77 -#define TK_MODIFY 78 -#define TK_RENAME 79 -#define TK_TAG 80 -#define TK_SET 81 -#define TK_NK_EQ 82 -#define TK_USING 83 -#define TK_TAGS 84 -#define TK_NK_DOT 85 -#define TK_COMMENT 86 -#define TK_BOOL 87 -#define TK_TINYINT 88 -#define TK_SMALLINT 89 -#define TK_INT 90 -#define TK_INTEGER 91 -#define TK_BIGINT 92 -#define TK_FLOAT 93 -#define TK_DOUBLE 94 -#define TK_BINARY 95 -#define TK_TIMESTAMP 96 -#define TK_NCHAR 97 -#define TK_UNSIGNED 98 -#define TK_JSON 99 -#define TK_VARCHAR 100 -#define TK_MEDIUMBLOB 101 -#define TK_BLOB 102 -#define TK_VARBINARY 103 -#define TK_DECIMAL 104 -#define TK_DELAY 105 -#define TK_FILE_FACTOR 106 -#define TK_NK_FLOAT 107 -#define TK_ROLLUP 108 -#define TK_TTL 109 -#define TK_SMA 110 -#define TK_SHOW 111 -#define TK_DATABASES 112 -#define TK_TABLES 113 -#define TK_STABLES 114 -#define TK_MNODES 115 -#define TK_MODULES 116 -#define TK_QNODES 117 -#define TK_FUNCTIONS 118 -#define TK_INDEXES 119 -#define TK_FROM 120 -#define TK_ACCOUNTS 121 -#define TK_APPS 122 -#define TK_CONNECTIONS 123 -#define TK_LICENCE 124 -#define TK_GRANTS 125 -#define TK_QUERIES 126 -#define TK_SCORES 127 -#define TK_TOPICS 128 -#define TK_VARIABLES 129 -#define TK_BNODES 130 -#define TK_SNODES 131 -#define TK_CLUSTER 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_WITH 140 -#define TK_SCHEMA 141 -#define TK_DESC 142 -#define TK_DESCRIBE 143 -#define TK_RESET 144 -#define TK_QUERY 145 -#define TK_CACHE 146 -#define TK_EXPLAIN 147 -#define TK_ANALYZE 148 -#define TK_VERBOSE 149 -#define TK_NK_BOOL 150 -#define TK_RATIO 151 -#define TK_COMPACT 152 -#define TK_VNODES 153 -#define TK_IN 154 -#define TK_OUTPUTTYPE 155 -#define TK_AGGREGATE 156 -#define TK_BUFSIZE 157 -#define TK_STREAM 158 -#define TK_INTO 159 -#define TK_TRIGGER 160 -#define TK_AT_ONCE 161 -#define TK_WINDOW_CLOSE 162 -#define TK_WATERMARK 163 -#define TK_KILL 164 -#define TK_CONNECTION 165 -#define TK_MERGE 166 -#define TK_VGROUP 167 -#define TK_REDISTRIBUTE 168 -#define TK_SPLIT 169 -#define TK_SYNCDB 170 -#define TK_NULL 171 -#define TK_NK_QUESTION 172 -#define TK_NK_ARROW 173 -#define TK_ROWTS 174 -#define TK_TBNAME 175 -#define TK_QSTARTTS 176 -#define TK_QENDTS 177 -#define TK_WSTARTTS 178 -#define TK_WENDTS 179 -#define TK_WDURATION 180 -#define TK_CAST 181 -#define TK_NOW 182 -#define TK_TODAY 183 -#define TK_TIMEZONE 184 -#define TK_COUNT 185 -#define TK_FIRST 186 -#define TK_LAST 187 -#define TK_LAST_ROW 188 -#define TK_BETWEEN 189 -#define TK_IS 190 -#define TK_NK_LT 191 -#define TK_NK_GT 192 -#define TK_NK_LE 193 -#define TK_NK_GE 194 -#define TK_NK_NE 195 -#define TK_MATCH 196 -#define TK_NMATCH 197 -#define TK_CONTAINS 198 -#define TK_JOIN 199 -#define TK_INNER 200 -#define TK_SELECT 201 -#define TK_DISTINCT 202 -#define TK_WHERE 203 -#define TK_PARTITION 204 -#define TK_BY 205 -#define TK_SESSION 206 -#define TK_STATE_WINDOW 207 -#define TK_SLIDING 208 -#define TK_FILL 209 -#define TK_VALUE 210 -#define TK_NONE 211 -#define TK_PREV 212 -#define TK_LINEAR 213 -#define TK_NEXT 214 -#define TK_GROUP 215 -#define TK_HAVING 216 -#define TK_ORDER 217 -#define TK_SLIMIT 218 -#define TK_SOFFSET 219 -#define TK_LIMIT 220 -#define TK_OFFSET 221 -#define TK_ASC 222 -#define TK_NULLS 223 -#define TK_ID 224 -#define TK_NK_BITNOT 225 -#define TK_INSERT 226 -#define TK_VALUES 227 -#define TK_IMPORT 228 -#define TK_NK_SEMI 229 -#define TK_FILE 230 +#define TK_GRANT 36 +#define TK_ON 37 +#define TK_TO 38 +#define TK_REVOKE 39 +#define TK_FROM 40 +#define TK_NK_COMMA 41 +#define TK_READ 42 +#define TK_WRITE 43 +#define TK_NK_DOT 44 +#define TK_DNODE 45 +#define TK_PORT 46 +#define TK_NK_INTEGER 47 +#define TK_DNODES 48 +#define TK_NK_IPTOKEN 49 +#define TK_LOCAL 50 +#define TK_QNODE 51 +#define TK_BNODE 52 +#define TK_SNODE 53 +#define TK_MNODE 54 +#define TK_DATABASE 55 +#define TK_USE 56 +#define TK_IF 57 +#define TK_NOT 58 +#define TK_EXISTS 59 +#define TK_BUFFER 60 +#define TK_CACHELAST 61 +#define TK_COMP 62 +#define TK_DAYS 63 +#define TK_NK_VARIABLE 64 +#define TK_FSYNC 65 +#define TK_MAXROWS 66 +#define TK_MINROWS 67 +#define TK_KEEP 68 +#define TK_PAGES 69 +#define TK_PAGESIZE 70 +#define TK_PRECISION 71 +#define TK_REPLICA 72 +#define TK_STRICT 73 +#define TK_WAL 74 +#define TK_VGROUPS 75 +#define TK_SINGLE_STABLE 76 +#define TK_RETENTIONS 77 +#define TK_NK_COLON 78 +#define TK_TABLE 79 +#define TK_NK_LP 80 +#define TK_NK_RP 81 +#define TK_STABLE 82 +#define TK_ADD 83 +#define TK_COLUMN 84 +#define TK_MODIFY 85 +#define TK_RENAME 86 +#define TK_TAG 87 +#define TK_SET 88 +#define TK_NK_EQ 89 +#define TK_USING 90 +#define TK_TAGS 91 +#define TK_COMMENT 92 +#define TK_BOOL 93 +#define TK_TINYINT 94 +#define TK_SMALLINT 95 +#define TK_INT 96 +#define TK_INTEGER 97 +#define TK_BIGINT 98 +#define TK_FLOAT 99 +#define TK_DOUBLE 100 +#define TK_BINARY 101 +#define TK_TIMESTAMP 102 +#define TK_NCHAR 103 +#define TK_UNSIGNED 104 +#define TK_JSON 105 +#define TK_VARCHAR 106 +#define TK_MEDIUMBLOB 107 +#define TK_BLOB 108 +#define TK_VARBINARY 109 +#define TK_DECIMAL 110 +#define TK_DELAY 111 +#define TK_FILE_FACTOR 112 +#define TK_NK_FLOAT 113 +#define TK_ROLLUP 114 +#define TK_TTL 115 +#define TK_SMA 116 +#define TK_SHOW 117 +#define TK_DATABASES 118 +#define TK_TABLES 119 +#define TK_STABLES 120 +#define TK_MNODES 121 +#define TK_MODULES 122 +#define TK_QNODES 123 +#define TK_FUNCTIONS 124 +#define TK_INDEXES 125 +#define TK_ACCOUNTS 126 +#define TK_APPS 127 +#define TK_CONNECTIONS 128 +#define TK_LICENCE 129 +#define TK_GRANTS 130 +#define TK_QUERIES 131 +#define TK_SCORES 132 +#define TK_TOPICS 133 +#define TK_VARIABLES 134 +#define TK_BNODES 135 +#define TK_SNODES 136 +#define TK_CLUSTER 137 +#define TK_TRANSACTIONS 138 +#define TK_LIKE 139 +#define TK_INDEX 140 +#define TK_FULLTEXT 141 +#define TK_FUNCTION 142 +#define TK_INTERVAL 143 +#define TK_TOPIC 144 +#define TK_AS 145 +#define TK_WITH 146 +#define TK_SCHEMA 147 +#define TK_DESC 148 +#define TK_DESCRIBE 149 +#define TK_RESET 150 +#define TK_QUERY 151 +#define TK_CACHE 152 +#define TK_EXPLAIN 153 +#define TK_ANALYZE 154 +#define TK_VERBOSE 155 +#define TK_NK_BOOL 156 +#define TK_RATIO 157 +#define TK_COMPACT 158 +#define TK_VNODES 159 +#define TK_IN 160 +#define TK_OUTPUTTYPE 161 +#define TK_AGGREGATE 162 +#define TK_BUFSIZE 163 +#define TK_STREAM 164 +#define TK_INTO 165 +#define TK_TRIGGER 166 +#define TK_AT_ONCE 167 +#define TK_WINDOW_CLOSE 168 +#define TK_WATERMARK 169 +#define TK_KILL 170 +#define TK_CONNECTION 171 +#define TK_TRANSACTION 172 +#define TK_MERGE 173 +#define TK_VGROUP 174 +#define TK_REDISTRIBUTE 175 +#define TK_SPLIT 176 +#define TK_SYNCDB 177 +#define TK_NULL 178 +#define TK_NK_QUESTION 179 +#define TK_NK_ARROW 180 +#define TK_ROWTS 181 +#define TK_TBNAME 182 +#define TK_QSTARTTS 183 +#define TK_QENDTS 184 +#define TK_WSTARTTS 185 +#define TK_WENDTS 186 +#define TK_WDURATION 187 +#define TK_CAST 188 +#define TK_NOW 189 +#define TK_TODAY 190 +#define TK_TIMEZONE 191 +#define TK_COUNT 192 +#define TK_FIRST 193 +#define TK_LAST 194 +#define TK_LAST_ROW 195 +#define TK_BETWEEN 196 +#define TK_IS 197 +#define TK_NK_LT 198 +#define TK_NK_GT 199 +#define TK_NK_LE 200 +#define TK_NK_GE 201 +#define TK_NK_NE 202 +#define TK_MATCH 203 +#define TK_NMATCH 204 +#define TK_CONTAINS 205 +#define TK_JOIN 206 +#define TK_INNER 207 +#define TK_SELECT 208 +#define TK_DISTINCT 209 +#define TK_WHERE 210 +#define TK_PARTITION 211 +#define TK_BY 212 +#define TK_SESSION 213 +#define TK_STATE_WINDOW 214 +#define TK_SLIDING 215 +#define TK_FILL 216 +#define TK_VALUE 217 +#define TK_NONE 218 +#define TK_PREV 219 +#define TK_LINEAR 220 +#define TK_NEXT 221 +#define TK_GROUP 222 +#define TK_HAVING 223 +#define TK_ORDER 224 +#define TK_SLIMIT 225 +#define TK_SOFFSET 226 +#define TK_LIMIT 227 +#define TK_OFFSET 228 +#define TK_ASC 229 +#define TK_NULLS 230 +#define TK_ID 231 +#define TK_NK_BITNOT 232 +#define TK_INSERT 233 +#define TK_VALUES 234 +#define TK_IMPORT 235 +#define TK_NK_SEMI 236 +#define TK_FILE 237 #define TK_NK_SPACE 300 #define TK_NK_COMMENT 301 diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index 22e2de9c26..5e294ae455 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -310,6 +310,29 @@ typedef struct SCreateFunctionStmt { int32_t bufSize; } SCreateFunctionStmt; +typedef struct SDropFunctionStmt { + ENodeType type; + char funcName[TSDB_FUNC_NAME_LEN]; + bool ignoreNotExists; +} SDropFunctionStmt; + +#define PRIVILEGE_TYPE_MASK(n) (1 << n) + +#define PRIVILEGE_TYPE_ALL PRIVILEGE_TYPE_MASK(0) +#define PRIVILEGE_TYPE_READ PRIVILEGE_TYPE_MASK(1) +#define PRIVILEGE_TYPE_WRITE PRIVILEGE_TYPE_MASK(2) + +#define PRIVILEGE_TYPE_TEST_MASK(val, mask) (((val) & (mask)) != 0) + +typedef struct SGrantStmt { + ENodeType type; + char userName[TSDB_USER_LEN]; + char dbName[TSDB_DB_NAME_LEN]; + int64_t privileges; +} SGrantStmt; + +typedef SGrantStmt SRevokeStmt; + #ifdef __cplusplus } #endif diff --git a/include/libs/nodes/nodes.h b/include/libs/nodes/nodes.h index 115bb4349d..34ccea2898 100644 --- a/include/libs/nodes/nodes.h +++ b/include/libs/nodes/nodes.h @@ -143,6 +143,8 @@ typedef enum ENodeType { QUERY_NODE_REDISTRIBUTE_VGROUP_STMT, QUERY_NODE_SPLIT_VGROUP_STMT, QUERY_NODE_SYNCDB_STMT, + QUERY_NODE_GRANT_STMT, + QUERY_NODE_REVOKE_STMT, QUERY_NODE_SHOW_DNODES_STMT, QUERY_NODE_SHOW_MNODES_STMT, QUERY_NODE_SHOW_MODULES_STMT, @@ -174,8 +176,10 @@ typedef enum ENodeType { QUERY_NODE_SHOW_CREATE_DATABASE_STMT, QUERY_NODE_SHOW_CREATE_TABLE_STMT, QUERY_NODE_SHOW_CREATE_STABLE_STMT, + QUERY_NODE_SHOW_TRANSACTIONS_STMT, QUERY_NODE_KILL_CONNECTION_STMT, QUERY_NODE_KILL_QUERY_STMT, + QUERY_NODE_KILL_TRANSACTION_STMT, // logic plan node QUERY_NODE_LOGIC_PLAN_SCAN, diff --git a/include/libs/planner/planner.h b/include/libs/planner/planner.h index adbd84b044..367407cae5 100644 --- a/include/libs/planner/planner.h +++ b/include/libs/planner/planner.h @@ -25,20 +25,18 @@ extern "C" { typedef struct SPlanContext { uint64_t queryId; - int32_t acctId; - SEpSet mgmtEpSet; - SNode* pAstRoot; - bool topicQuery; - bool streamQuery; - bool rSmaQuery; - bool showRewrite; - int8_t triggerType; - int64_t watermark; - int32_t placeholderNum; - void* pTransporter; - struct SCatalog* pCatalog; - char* pMsg; - int32_t msgLen; + int32_t acctId; + SEpSet mgmtEpSet; + SNode* pAstRoot; + bool topicQuery; + bool streamQuery; + bool rSmaQuery; + bool showRewrite; + int8_t triggerType; + int64_t watermark; + int32_t placeholderNum; + char* pMsg; + int32_t msgLen; } SPlanContext; // Create the physical plan for the query, according to the AST. @@ -47,7 +45,7 @@ int32_t qCreateQueryPlan(SPlanContext* pCxt, SQueryPlan** pPlan, SArray* pExecNo // Set datasource of this subplan, multiple calls may be made to a subplan. // @pSubplan subplan to be schedule // @groupId id of a group of datasource subplans of this @pSubplan -// @pSource one execution location of this group of datasource subplans +// @pSource one execution location of this group of datasource subplans int32_t qSetSubplanExecutionNode(SSubplan* pSubplan, int32_t groupId, SDownstreamSourceNode* pSource); int32_t qStmtBindParam(SQueryPlan* pPlan, TAOS_MULTI_BIND* pParams, int32_t colIdx, uint64_t queryId); @@ -56,7 +54,7 @@ int32_t qStmtBindParam(SQueryPlan* pPlan, TAOS_MULTI_BIND* pParams, int32_t colI int32_t qSubPlanToString(const SSubplan* pSubplan, char** pStr, int32_t* pLen); int32_t qStringToSubplan(const char* pStr, SSubplan** pSubplan); -char* qQueryPlanToString(const SQueryPlan* pPlan); +char* qQueryPlanToString(const SQueryPlan* pPlan); SQueryPlan* qStringToQueryPlan(const char* pStr); void qDestroyQueryPlan(SQueryPlan* pPlan); diff --git a/include/util/taoserror.h b/include/util/taoserror.h index 8ff62f825c..4e843aeb59 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -632,6 +632,7 @@ int32_t* taosGetErrno(); #define TSDB_CODE_PAR_INVALID_FIRST_COLUMN TAOS_DEF_ERROR_CODE(0, 0x2641) #define TSDB_CODE_PAR_INVALID_VAR_COLUMN_LEN TAOS_DEF_ERROR_CODE(0, 0x2642) #define TSDB_CODE_PAR_INVALID_TAGS_NUM TAOS_DEF_ERROR_CODE(0, 0x2643) +#define TSDB_CODE_PAR_PERMISSION_DENIED TAOS_DEF_ERROR_CODE(0, 0x2644) //planner #define TSDB_CODE_PLAN_INTERNAL_ERROR TAOS_DEF_ERROR_CODE(0, 0x2700) diff --git a/source/client/src/clientImpl.c b/source/client/src/clientImpl.c index 427cd72c0f..97c7d2bad1 100644 --- a/source/client/src/clientImpl.c +++ b/source/client/src/clientImpl.c @@ -162,18 +162,17 @@ int32_t buildRequest(STscObj* pTscObj, const char* sql, int sqlLen, SRequestObj* int32_t parseSql(SRequestObj* pRequest, bool topicQuery, SQuery** pQuery, SStmtCallback* pStmtCb) { STscObj* pTscObj = pRequest->pTscObj; - SParseContext cxt = { - .requestId = pRequest->requestId, - .acctId = pTscObj->acctId, - .db = pRequest->pDb, - .topicQuery = topicQuery, - .pSql = pRequest->sqlstr, - .sqlLen = pRequest->sqlLen, - .pMsg = pRequest->msgBuf, - .msgLen = ERROR_MSG_BUF_DEFAULT_SIZE, - .pTransporter = pTscObj->pAppInfo->pTransporter, - .pStmtCb = pStmtCb, - }; + SParseContext cxt = {.requestId = pRequest->requestId, + .acctId = pTscObj->acctId, + .db = pRequest->pDb, + .topicQuery = topicQuery, + .pSql = pRequest->sqlstr, + .sqlLen = pRequest->sqlLen, + .pMsg = pRequest->msgBuf, + .msgLen = ERROR_MSG_BUF_DEFAULT_SIZE, + .pTransporter = pTscObj->pAppInfo->pTransporter, + .pStmtCb = pStmtCb, + .pUser = pTscObj->user}; cxt.mgmtEpSet = getEpSet_s(&pTscObj->pAppInfo->mgmtEp); int32_t code = catalogGetHandle(pTscObj->pAppInfo->clusterId, &cxt.pCatalog); @@ -232,11 +231,15 @@ int32_t getPlan(SRequestObj* pRequest, SQuery* pQuery, SQueryPlan** pPlan, SArra .mgmtEpSet = getEpSet_s(&pRequest->pTscObj->pAppInfo->mgmtEp), .pAstRoot = pQuery->pRoot, .showRewrite = pQuery->showRewrite, - .pTransporter = pRequest->pTscObj->pAppInfo->pTransporter, .pMsg = pRequest->msgBuf, .msgLen = ERROR_MSG_BUF_DEFAULT_SIZE, .placeholderNum = pQuery->placeholderNum}; - int32_t code = catalogGetHandle(pRequest->pTscObj->pAppInfo->clusterId, &cxt.pCatalog); + SEpSet mgmtEpSet = getEpSet_s(&pRequest->pTscObj->pAppInfo->mgmtEp); + SCatalog* pCatalog = NULL; + int32_t code = catalogGetHandle(pRequest->pTscObj->pAppInfo->clusterId, &pCatalog); + if (TSDB_CODE_SUCCESS == code) { + code = catalogGetQnodeList(pCatalog, pRequest->pTscObj->pAppInfo->pTransporter, &mgmtEpSet, pNodeList); + } if (TSDB_CODE_SUCCESS == code) { code = qCreateQueryPlan(&cxt, pPlan, pNodeList); } diff --git a/source/dnode/mnode/impl/src/mndUser.c b/source/dnode/mnode/impl/src/mndUser.c index 81ded4ef8b..d0af17ff5c 100644 --- a/source/dnode/mnode/impl/src/mndUser.c +++ b/source/dnode/mnode/impl/src/mndUser.c @@ -412,7 +412,7 @@ static int32_t mndProcessAlterUserReq(SNodeMsg *pReq) { goto _OVER; } - if (alterReq.pass[0] == 0) { + if (TSDB_ALTER_USER_PASSWD == alterReq.alterType && alterReq.pass[0] == 0) { terrno = TSDB_CODE_MND_INVALID_PASS_FORMAT; goto _OVER; } diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 319b680161..4ae502b0d8 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -112,6 +112,8 @@ SNodeptr nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SDropTableStmt)); case QUERY_NODE_DROP_SUPER_TABLE_STMT: return makeNode(type, sizeof(SDropSuperTableStmt)); + case QUERY_NODE_ALTER_TABLE_STMT: + return makeNode(type, sizeof(SAlterTableStmt)); case QUERY_NODE_CREATE_USER_STMT: return makeNode(type, sizeof(SCreateUserStmt)); case QUERY_NODE_ALTER_USER_STMT: @@ -155,7 +157,7 @@ SNodeptr nodesMakeNode(ENodeType type) { case QUERY_NODE_CREATE_FUNCTION_STMT: return makeNode(type, sizeof(SCreateFunctionStmt)); case QUERY_NODE_DROP_FUNCTION_STMT: - break; + return makeNode(type, sizeof(SDropFunctionStmt)); case QUERY_NODE_CREATE_STREAM_STMT: return makeNode(type, sizeof(SCreateStreamStmt)); case QUERY_NODE_DROP_STREAM_STMT: @@ -165,6 +167,10 @@ SNodeptr nodesMakeNode(ENodeType type) { case QUERY_NODE_SPLIT_VGROUP_STMT: case QUERY_NODE_SYNCDB_STMT: break; + case QUERY_NODE_GRANT_STMT: + return makeNode(type, sizeof(SGrantStmt)); + case QUERY_NODE_REVOKE_STMT: + return makeNode(type, sizeof(SRevokeStmt)); case QUERY_NODE_SHOW_DNODES_STMT: case QUERY_NODE_SHOW_MNODES_STMT: case QUERY_NODE_SHOW_MODULES_STMT: @@ -195,9 +201,11 @@ SNodeptr nodesMakeNode(ENodeType type) { case QUERY_NODE_SHOW_CREATE_DATABASE_STMT: case QUERY_NODE_SHOW_CREATE_TABLE_STMT: case QUERY_NODE_SHOW_CREATE_STABLE_STMT: + case QUERY_NODE_SHOW_TRANSACTIONS_STMT: return makeNode(type, sizeof(SShowStmt)); case QUERY_NODE_KILL_CONNECTION_STMT: case QUERY_NODE_KILL_QUERY_STMT: + case QUERY_NODE_KILL_TRANSACTION_STMT: return makeNode(type, sizeof(SKillStmt)); case QUERY_NODE_LOGIC_PLAN_SCAN: return makeNode(type, sizeof(SScanLogicNode)); diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 8ecfab72ce..b15078157a 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -178,7 +178,7 @@ SNode* createResetQueryCacheStmt(SAstCreateContext* pCxt); SNode* createCompactStmt(SAstCreateContext* pCxt, SNodeList* pVgroups); 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* createDropFunctionStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const SToken* pFuncName); SNode* createStreamOptions(SAstCreateContext* pCxt); SNode* createCreateStreamStmt(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pStreamName, SNode* pRealTable, SNode* pOptions, SNode* pQuery); @@ -188,6 +188,8 @@ SNode* createMergeVgroupStmt(SAstCreateContext* pCxt, const SToken* pVgId1, cons SNode* createRedistributeVgroupStmt(SAstCreateContext* pCxt, const SToken* pVgId, SNodeList* pDnodes); SNode* createSplitVgroupStmt(SAstCreateContext* pCxt, const SToken* pVgId); SNode* createSyncdbStmt(SAstCreateContext* pCxt, const SToken* pDbName); +SNode* createGrantStmt(SAstCreateContext* pCxt, int64_t privileges, SToken* pDbName, SToken* pUserName); +SNode* createRevokeStmt(SAstCreateContext* pCxt, int64_t privileges, SToken* pDbName, SToken* pUserName); #ifdef __cplusplus } diff --git a/source/libs/parser/inc/parInt.h b/source/libs/parser/inc/parInt.h index 7641b6951e..2ad1ebc112 100644 --- a/source/libs/parser/inc/parInt.h +++ b/source/libs/parser/inc/parInt.h @@ -26,6 +26,7 @@ extern "C" { int32_t parseInsertSql(SParseContext* pContext, SQuery** pQuery); int32_t parse(SParseContext* pParseCxt, SQuery** pQuery); +int32_t authenticate(SParseContext* pParseCxt, SQuery* pQuery); int32_t translate(SParseContext* pParseCxt, SQuery* pQuery); int32_t extractResultSchema(const SNode* pRoot, int32_t* numOfCols, SSchema** pSchema); int32_t calculateConstant(SParseContext* pParseCxt, SQuery* pQuery); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 30f0d8ed8b..a365faca19 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -81,6 +81,30 @@ cmd ::= ALTER USER user_name(A) PASS NK_STRING(B). cmd ::= ALTER USER user_name(A) PRIVILEGE NK_STRING(B). { pCxt->pRootNode = createAlterUserStmt(pCxt, &A, TSDB_ALTER_USER_PRIVILEGES, &B); } cmd ::= DROP USER user_name(A). { pCxt->pRootNode = createDropUserStmt(pCxt, &A); } +/************************************************ grant/revoke ********************************************************/ +cmd ::= GRANT privileges(A) ON priv_level(B) TO user_name(C). { pCxt->pRootNode = createGrantStmt(pCxt, A, &B, &C); } +cmd ::= REVOKE privileges(A) ON priv_level(B) FROM user_name(C). { pCxt->pRootNode = createRevokeStmt(pCxt, A, &B, &C); } + +%type privileges { int64_t } +%destructor privileges { } +privileges(A) ::= ALL. { A = PRIVILEGE_TYPE_ALL; } +privileges(A) ::= priv_type_list(B). { A = B; } + +%type priv_type_list { int64_t } +%destructor priv_type_list { } +priv_type_list(A) ::= priv_type(B). { A = B; } +priv_type_list(A) ::= priv_type_list(B) NK_COMMA priv_type(C). { A = B | C; } + +%type priv_type { int64_t } +%destructor priv_type { } +priv_type(A) ::= READ. { A = PRIVILEGE_TYPE_READ; } +priv_type(A) ::= WRITE. { A = PRIVILEGE_TYPE_WRITE; } + +%type priv_level { SToken } +%destructor priv_level { } +priv_level(A) ::= NK_STAR(B) NK_DOT NK_STAR. { A = B; } +priv_level(A) ::= db_name(B) NK_DOT NK_STAR. { A = B; } + /************************************************ create/drop/alter dnode *********************************************/ cmd ::= CREATE DNODE dnode_endpoint(A). { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &A, NULL); } cmd ::= CREATE DNODE dnode_host_name(A) PORT NK_INTEGER(B). { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &A, &B); } @@ -337,6 +361,7 @@ cmd ::= SHOW VARIABLES. 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); } +cmd ::= SHOW TRANSACTIONS. { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_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,7 +438,7 @@ cmd ::= COMPACT VNODES IN NK_LP integer_list(A) NK_RP. /************************************************ create/drop function ************************************************/ 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); } +cmd ::= DROP FUNCTION exists_opt(B) function_name(A). { pCxt->pRootNode = createDropFunctionStmt(pCxt, B, &A); } %type agg_func_opt { bool } %destructor agg_func_opt { } @@ -441,6 +466,7 @@ stream_options(A) ::= stream_options(B) WATERMARK duration_literal(C). /************************************************ kill connection/query ***********************************************/ cmd ::= KILL CONNECTION NK_INTEGER(A). { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &A); } cmd ::= KILL QUERY NK_INTEGER(A). { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_QUERY_STMT, &A); } +cmd ::= KILL TRANSACTION NK_INTEGER(A). { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &A); } /************************************************ merge/redistribute/ vgroup ******************************************/ cmd ::= MERGE VGROUP NK_INTEGER(A) NK_INTEGER(B). { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &A, &B); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 82c5d17f10..e36d0d9a54 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -363,8 +363,10 @@ SNode* createCastFunctionNode(SAstCreateContext* pCxt, SNode* pExpr, SDataType d CHECK_OUT_OF_MEM(func); strcpy(func->functionName, "cast"); func->node.resType = dt; - if (TSDB_DATA_TYPE_NCHAR == dt.type) { - func->node.resType.bytes = func->node.resType.bytes * TSDB_NCHAR_SIZE; + if (TSDB_DATA_TYPE_VARCHAR == dt.type) { + func->node.resType.bytes = func->node.resType.bytes + VARSTR_HEADER_SIZE; + } else if (TSDB_DATA_TYPE_NCHAR == dt.type) { + func->node.resType.bytes = func->node.resType.bytes * TSDB_NCHAR_SIZE + VARSTR_HEADER_SIZE; } nodesListMakeAppend(&func->pParameterList, pExpr); return (SNode*)func; @@ -1258,10 +1260,12 @@ SNode* createCreateFunctionStmt(SAstCreateContext* pCxt, bool ignoreExists, bool return (SNode*)pStmt; } -SNode* createDropFunctionStmt(SAstCreateContext* pCxt, const SToken* pFuncName) { - SNode* pStmt = nodesMakeNode(QUERY_NODE_DROP_FUNCTION_STMT); +SNode* createDropFunctionStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const SToken* pFuncName) { + SDropFunctionStmt* pStmt = nodesMakeNode(QUERY_NODE_DROP_FUNCTION_STMT); CHECK_OUT_OF_MEM(pStmt); - return pStmt; + pStmt->ignoreNotExists = ignoreNotExists; + strncpy(pStmt->funcName, pFuncName->z, pFuncName->n); + return (SNode*)pStmt; } SNode* createStreamOptions(SAstCreateContext* pCxt) { @@ -1324,3 +1328,27 @@ SNode* createSyncdbStmt(SAstCreateContext* pCxt, const SToken* pDbName) { CHECK_OUT_OF_MEM(pStmt); return pStmt; } + +SNode* createGrantStmt(SAstCreateContext* pCxt, int64_t privileges, SToken* pDbName, SToken* pUserName) { + if (!checkDbName(pCxt, pDbName, false) || !checkUserName(pCxt, pUserName)) { + return NULL; + } + SGrantStmt* pStmt = nodesMakeNode(QUERY_NODE_GRANT_STMT); + CHECK_OUT_OF_MEM(pStmt); + pStmt->privileges = privileges; + strncpy(pStmt->dbName, pDbName->z, pDbName->n); + strncpy(pStmt->userName, pUserName->z, pUserName->n); + return (SNode*)pStmt; +} + +SNode* createRevokeStmt(SAstCreateContext* pCxt, int64_t privileges, SToken* pDbName, SToken* pUserName) { + if (!checkDbName(pCxt, pDbName, false) || !checkUserName(pCxt, pUserName)) { + return NULL; + } + SRevokeStmt* pStmt = nodesMakeNode(QUERY_NODE_REVOKE_STMT); + CHECK_OUT_OF_MEM(pStmt); + pStmt->privileges = privileges; + strncpy(pStmt->dbName, pDbName->z, pDbName->n); + strncpy(pStmt->userName, pUserName->z, pUserName->n); + return (SNode*)pStmt; +} diff --git a/source/libs/parser/src/parAuthenticator.c b/source/libs/parser/src/parAuthenticator.c new file mode 100644 index 0000000000..c343c934ea --- /dev/null +++ b/source/libs/parser/src/parAuthenticator.c @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2019 TAOS Data, Inc. + * + * This program is free software: you can use, redistribute, and/or modify + * it under the terms of the GNU Affero General Public License, version 3 + * or later ("AGPL"), as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +#include "catalog.h" +#include "parInt.h" + +typedef struct SAuthCxt { + SParseContext* pParseCxt; + int32_t errCode; +} SAuthCxt; + +static int32_t authQuery(SAuthCxt* pCxt, SNode* pStmt); + +static int32_t checkAuth(SParseContext* pCxt, const char* dbName, AUTH_TYPE type) { + if (pCxt->isSuperUser) { + return TSDB_CODE_SUCCESS; + } + bool pass = false; + int32_t code = catalogChkAuth(pCxt->pCatalog, pCxt->pTransporter, &pCxt->mgmtEpSet, pCxt->pUser, dbName, type, &pass); + return TSDB_CODE_SUCCESS == code ? (pass ? TSDB_CODE_SUCCESS : TSDB_CODE_PAR_PERMISSION_DENIED) : code; +} + +static EDealRes authSubquery(SAuthCxt* pCxt, SNode* pStmt) { + return TSDB_CODE_SUCCESS == authQuery(pCxt, pStmt) ? DEAL_RES_CONTINUE : DEAL_RES_ERROR; +} + +static EDealRes authSelectImpl(SNode* pNode, void* pContext) { + SAuthCxt* pCxt = pContext; + if (QUERY_NODE_REAL_TABLE == nodeType(pNode)) { + pCxt->errCode = checkAuth(pCxt->pParseCxt, ((SRealTableNode*)pNode)->table.dbName, AUTH_TYPE_READ); + return TSDB_CODE_SUCCESS == pCxt->errCode ? DEAL_RES_CONTINUE : DEAL_RES_ERROR; + } else if (QUERY_NODE_TEMP_TABLE == nodeType(pNode)) { + return authSubquery(pCxt, ((STempTableNode*)pNode)->pSubquery); + } + return DEAL_RES_CONTINUE; +} + +static int32_t authSelect(SAuthCxt* pCxt, SSelectStmt* pSelect) { + nodesWalkSelectStmt(pSelect, SQL_CLAUSE_FROM, authSelectImpl, pCxt); + return pCxt->errCode; +} + +static int32_t authSetOperator(SAuthCxt* pCxt, SSetOperator* pSetOper) { + int32_t code = authQuery(pCxt, pSetOper->pLeft); + if (TSDB_CODE_SUCCESS == code) { + code = authQuery(pCxt, pSetOper->pRight); + } + return code; +} + +static int32_t authQuery(SAuthCxt* pCxt, SNode* pStmt) { + switch (nodeType(pStmt)) { + case QUERY_NODE_SET_OPERATOR: + return authSetOperator(pCxt, (SSetOperator*)pStmt); + case QUERY_NODE_SELECT_STMT: + return authSelect(pCxt, (SSelectStmt*)pStmt); + case QUERY_NODE_VNODE_MODIF_STMT: + case QUERY_NODE_CREATE_DATABASE_STMT: + case QUERY_NODE_DROP_DATABASE_STMT: + case QUERY_NODE_ALTER_DATABASE_STMT: + case QUERY_NODE_CREATE_TABLE_STMT: + case QUERY_NODE_CREATE_SUBTABLE_CLAUSE: + case QUERY_NODE_CREATE_MULTI_TABLE_STMT: + case QUERY_NODE_DROP_TABLE_CLAUSE: + case QUERY_NODE_DROP_TABLE_STMT: + case QUERY_NODE_DROP_SUPER_TABLE_STMT: + case QUERY_NODE_ALTER_TABLE_STMT: + case QUERY_NODE_CREATE_USER_STMT: + case QUERY_NODE_ALTER_USER_STMT: + case QUERY_NODE_DROP_USER_STMT: + case QUERY_NODE_USE_DATABASE_STMT: + case QUERY_NODE_CREATE_DNODE_STMT: + case QUERY_NODE_DROP_DNODE_STMT: + case QUERY_NODE_ALTER_DNODE_STMT: + case QUERY_NODE_CREATE_INDEX_STMT: + case QUERY_NODE_DROP_INDEX_STMT: + case QUERY_NODE_CREATE_QNODE_STMT: + case QUERY_NODE_DROP_QNODE_STMT: + case QUERY_NODE_CREATE_BNODE_STMT: + case QUERY_NODE_DROP_BNODE_STMT: + case QUERY_NODE_CREATE_SNODE_STMT: + case QUERY_NODE_DROP_SNODE_STMT: + case QUERY_NODE_CREATE_MNODE_STMT: + case QUERY_NODE_DROP_MNODE_STMT: + case QUERY_NODE_CREATE_TOPIC_STMT: + case QUERY_NODE_DROP_TOPIC_STMT: + case QUERY_NODE_ALTER_LOCAL_STMT: + case QUERY_NODE_EXPLAIN_STMT: + case QUERY_NODE_DESCRIBE_STMT: + case QUERY_NODE_RESET_QUERY_CACHE_STMT: + case QUERY_NODE_COMPACT_STMT: + case QUERY_NODE_CREATE_FUNCTION_STMT: + case QUERY_NODE_DROP_FUNCTION_STMT: + case QUERY_NODE_CREATE_STREAM_STMT: + case QUERY_NODE_DROP_STREAM_STMT: + case QUERY_NODE_MERGE_VGROUP_STMT: + case QUERY_NODE_REDISTRIBUTE_VGROUP_STMT: + case QUERY_NODE_SPLIT_VGROUP_STMT: + case QUERY_NODE_SYNCDB_STMT: + case QUERY_NODE_GRANT_STMT: + case QUERY_NODE_REVOKE_STMT: + case QUERY_NODE_SHOW_DNODES_STMT: + case QUERY_NODE_SHOW_MNODES_STMT: + case QUERY_NODE_SHOW_MODULES_STMT: + 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: + case QUERY_NODE_SHOW_STABLES_STMT: + case QUERY_NODE_SHOW_STREAMS_STMT: + case QUERY_NODE_SHOW_TABLES_STMT: + case QUERY_NODE_SHOW_USERS_STMT: + case QUERY_NODE_SHOW_LICENCE_STMT: + case QUERY_NODE_SHOW_VGROUPS_STMT: + case QUERY_NODE_SHOW_TOPICS_STMT: + case QUERY_NODE_SHOW_CONSUMERS_STMT: + case QUERY_NODE_SHOW_SUBSCRIBES_STMT: + case QUERY_NODE_SHOW_TRANS_STMT: + case QUERY_NODE_SHOW_SMAS_STMT: + case QUERY_NODE_SHOW_CONFIGS_STMT: + case QUERY_NODE_SHOW_CONNECTIONS_STMT: + case QUERY_NODE_SHOW_QUERIES_STMT: + case QUERY_NODE_SHOW_VNODES_STMT: + case QUERY_NODE_SHOW_APPS_STMT: + case QUERY_NODE_SHOW_SCORES_STMT: + case QUERY_NODE_SHOW_VARIABLE_STMT: + case QUERY_NODE_SHOW_CREATE_DATABASE_STMT: + case QUERY_NODE_SHOW_CREATE_TABLE_STMT: + case QUERY_NODE_SHOW_CREATE_STABLE_STMT: + case QUERY_NODE_SHOW_TRANSACTIONS_STMT: + case QUERY_NODE_KILL_CONNECTION_STMT: + case QUERY_NODE_KILL_QUERY_STMT: + case QUERY_NODE_KILL_TRANSACTION_STMT: + default: + break; + } + + return TSDB_CODE_SUCCESS; +} + +int32_t authenticate(SParseContext* pParseCxt, SQuery* pQuery) { + SAuthCxt cxt = {.pParseCxt = pParseCxt, .errCode = TSDB_CODE_SUCCESS}; + return authQuery(&cxt, pQuery->pRoot); +} diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 44d68a7886..54a0fce3e7 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -85,6 +85,7 @@ static SKeyword keywordTable[] = { {"FSYNC", TK_FSYNC}, {"FUNCTION", TK_FUNCTION}, {"FUNCTIONS", TK_FUNCTIONS}, + {"GRANT", TK_GRANT}, {"GRANTS", TK_GRANTS}, {"GROUP", TK_GROUP}, {"HAVING", TK_HAVING}, @@ -147,9 +148,12 @@ static SKeyword keywordTable[] = { {"QUERIES", TK_QUERIES}, {"QUERY", TK_QUERY}, {"RATIO", TK_RATIO}, + {"READ", TK_READ}, + {"RENAME", TK_RENAME}, {"REPLICA", TK_REPLICA}, {"RESET", TK_RESET}, {"RETENTIONS", TK_RETENTIONS}, + {"REVOKE", TK_REVOKE}, {"ROLLUP", TK_ROLLUP}, {"SCHEMA", TK_SCHEMA}, {"SCORES", TK_SCORES}, @@ -182,9 +186,12 @@ static SKeyword keywordTable[] = { {"TIMESTAMP", TK_TIMESTAMP}, {"TIMEZONE", TK_TIMEZONE}, {"TINYINT", TK_TINYINT}, + {"TO", TK_TO}, {"TODAY", TK_TODAY}, {"TOPIC", TK_TOPIC}, {"TOPICS", TK_TOPICS}, + {"TRANSACTION", TK_TRANSACTION}, + {"TRANSACTIONS", TK_TRANSACTIONS}, {"TRIGGER", TK_TRIGGER}, {"TSERIES", TK_TSERIES}, {"TTL", TK_TTL}, @@ -206,6 +213,7 @@ static SKeyword keywordTable[] = { {"WHERE", TK_WHERE}, {"WINDOW_CLOSE", TK_WINDOW_CLOSE}, {"WITH", TK_WITH}, + {"WRITE", TK_WRITE}, {"_QENDTS", TK_QENDTS}, {"_QSTARTTS", TK_QSTARTTS}, {"_ROWTS", TK_ROWTS}, @@ -471,7 +479,7 @@ uint32_t tGetToken(const char* z, uint32_t* tokenId) { int delim = z[0]; bool strEnd = false; for (i = 1; z[i]; i++) { - if (z[i] == '\\') { // ignore the escaped character that follows this backslash + if (delim != '`' && z[i] == '\\') { // ignore the escaped character that follows this backslash i++; continue; } diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 9c6f5dbee1..faf920ead0 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2629,6 +2629,7 @@ static int32_t setAlterTableField(SAlterTableStmt* pStmt, SMAlterStbReq* pAlterR break; } + pAlterReq->numOfFields = taosArrayGetSize(pAlterReq->pFields); return TSDB_CODE_SUCCESS; } @@ -2637,9 +2638,8 @@ static int32_t translateAlterTable(STranslateContext* pCxt, SAlterTableStmt* pSt SName tableName; tNameExtractFullName(toName(pCxt->pParseCxt->acctId, pStmt->dbName, pStmt->tableName, &tableName), alterReq.name); alterReq.alterType = pStmt->alterType; - alterReq.numOfFields = 1; - if (TSDB_ALTER_TABLE_UPDATE_OPTIONS == pStmt->alterType) { - // todo + if (TSDB_ALTER_TABLE_UPDATE_OPTIONS == pStmt->alterType || TSDB_ALTER_TABLE_UPDATE_TAG_VAL == pStmt->alterType) { + return TSDB_CODE_FAILED; } else { if (TSDB_CODE_SUCCESS != setAlterTableField(pStmt, &alterReq)) { return TSDB_CODE_OUT_OF_MEMORY; @@ -3023,6 +3023,12 @@ static int32_t translateKillQuery(STranslateContext* pCxt, SKillStmt* pStmt) { return buildCmdMsg(pCxt, TDMT_MND_KILL_QUERY, (FSerializeFunc)tSerializeSKillQueryReq, &killReq); } +static int32_t translateKillTransaction(STranslateContext* pCxt, SKillStmt* pStmt) { + SKillTransReq killReq = {0}; + killReq.transId = pStmt->targetId; + return buildCmdMsg(pCxt, TDMT_MND_KILL_TRANS, (FSerializeFunc)tSerializeSKillTransReq, &killReq); +} + static int32_t translateCreateStream(STranslateContext* pCxt, SCreateStreamStmt* pStmt) { SCMCreateStreamReq createReq = {0}; @@ -3121,6 +3127,38 @@ static int32_t translateCreateFunction(STranslateContext* pCxt, SCreateFunctionS return code; } +static int32_t translateGrant(STranslateContext* pCxt, SGrantStmt* pStmt) { + SAlterUserReq req = {0}; + if (PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_ALL) || + (PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_READ) && + PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_WRITE))) { + req.alterType = TSDB_ALTER_USER_ADD_ALL_DB; + } else if (PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_READ)) { + req.alterType = TSDB_ALTER_USER_ADD_READ_DB; + } else if (PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_WRITE)) { + req.alterType = TSDB_ALTER_USER_ADD_WRITE_DB; + } + strcpy(req.user, pStmt->userName); + strcpy(req.dbname, pStmt->dbName); + return buildCmdMsg(pCxt, TDMT_MND_ALTER_USER, (FSerializeFunc)tSerializeSAlterUserReq, &req); +} + +static int32_t translateRevoke(STranslateContext* pCxt, SRevokeStmt* pStmt) { + SAlterUserReq req = {0}; + if (PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_ALL) || + (PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_READ) && + PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_WRITE))) { + req.alterType = TSDB_ALTER_USER_REMOVE_ALL_DB; + } else if (PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_READ)) { + req.alterType = TSDB_ALTER_USER_REMOVE_READ_DB; + } else if (PRIVILEGE_TYPE_TEST_MASK(pStmt->privileges, PRIVILEGE_TYPE_WRITE)) { + req.alterType = TSDB_ALTER_USER_REMOVE_WRITE_DB; + } + strcpy(req.user, pStmt->userName); + strcpy(req.dbname, pStmt->dbName); + return buildCmdMsg(pCxt, TDMT_MND_ALTER_USER, (FSerializeFunc)tSerializeSAlterUserReq, &req); +} + static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { int32_t code = TSDB_CODE_SUCCESS; switch (nodeType(pNode)) { @@ -3216,6 +3254,9 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_KILL_QUERY_STMT: code = translateKillQuery(pCxt, (SKillStmt*)pNode); break; + case QUERY_NODE_KILL_TRANSACTION_STMT: + code = translateKillTransaction(pCxt, (SKillStmt*)pNode); + break; case QUERY_NODE_CREATE_STREAM_STMT: code = translateCreateStream(pCxt, (SCreateStreamStmt*)pNode); break; @@ -3225,6 +3266,12 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_CREATE_FUNCTION_STMT: code = translateCreateFunction(pCxt, (SCreateFunctionStmt*)pNode); break; + case QUERY_NODE_GRANT_STMT: + code = translateGrant(pCxt, (SGrantStmt*)pNode); + break; + case QUERY_NODE_REVOKE_STMT: + code = translateRevoke(pCxt, (SRevokeStmt*)pNode); + break; default: break; } @@ -3345,6 +3392,7 @@ static const char* getSysDbName(ENodeType type) { case QUERY_NODE_SHOW_CONNECTIONS_STMT: case QUERY_NODE_SHOW_QUERIES_STMT: case QUERY_NODE_SHOW_TOPICS_STMT: + case QUERY_NODE_SHOW_TRANSACTIONS_STMT: return TSDB_PERFORMANCE_SCHEMA_DB; default: break; @@ -3392,6 +3440,8 @@ static const char* getSysTableName(ENodeType type) { return TSDB_PERFS_TABLE_QUERIES; case QUERY_NODE_SHOW_TOPICS_STMT: return TSDB_PERFS_TABLE_TOPICS; + case QUERY_NODE_SHOW_TRANSACTIONS_STMT: + return TSDB_PERFS_TABLE_TRANS; default: break; } diff --git a/source/libs/parser/src/parser.c b/source/libs/parser/src/parser.c index 09ef130bc1..bc98a41923 100644 --- a/source/libs/parser/src/parser.c +++ b/source/libs/parser/src/parser.c @@ -36,6 +36,9 @@ bool isInsertSql(const char* pStr, size_t length) { static int32_t parseSqlIntoAst(SParseContext* pCxt, SQuery** pQuery) { int32_t code = parse(pCxt, pQuery); + if (TSDB_CODE_SUCCESS == code) { + code = authenticate(pCxt, *pQuery); + } if (TSDB_CODE_SUCCESS == code) { code = translate(pCxt, *pQuery); } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 4d06024c68..06db8c909e 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -100,24 +100,25 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 347 +#define YYNOCODE 358 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - EJoinType yy84; - SDataType yy156; - ENullOrder yy181; - EOrder yy272; - EFillMode yy284; - EOperatorType yy304; - SAlterOption yy475; - SToken yy555; - SNodeList* yy568; - int32_t yy610; + EOrder yy14; + ENullOrder yy17; + SNodeList* yy60; + SToken yy105; + int32_t yy140; + SNode* yy172; + EFillMode yy202; + SDataType yy248; + EOperatorType yy572; + int64_t yy593; + SAlterOption yy609; bool yy617; - SNode* yy662; + EJoinType yy636; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -133,17 +134,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 569 -#define YYNRULE 438 -#define YYNTOKEN 231 -#define YY_MAX_SHIFT 568 -#define YY_MIN_SHIFTREDUCE 848 -#define YY_MAX_SHIFTREDUCE 1285 -#define YY_ERROR_ACTION 1286 -#define YY_ACCEPT_ACTION 1287 -#define YY_NO_ACTION 1288 -#define YY_MIN_REDUCE 1289 -#define YY_MAX_REDUCE 1726 +#define YYNSTATE 591 +#define YYNRULE 450 +#define YYNTOKEN 238 +#define YY_MAX_SHIFT 590 +#define YY_MIN_SHIFTREDUCE 877 +#define YY_MAX_SHIFTREDUCE 1326 +#define YY_ERROR_ACTION 1327 +#define YY_ACCEPT_ACTION 1328 +#define YY_NO_ACTION 1329 +#define YY_MIN_REDUCE 1330 +#define YY_MAX_REDUCE 1779 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -210,579 +211,594 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2054) +#define YY_ACTTAB_COUNT (2104) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 1575, 1560, 1705, 470, 1591, 483, 285, 26, 203, 1498, - /* 10 */ 273, 467, 33, 31, 326, 1704, 1556, 1564, 1562, 1702, - /* 20 */ 282, 445, 1102, 22, 1591, 123, 1400, 1560, 486, 1366, - /* 30 */ 1409, 467, 482, 34, 32, 30, 29, 28, 1100, 483, - /* 40 */ 1287, 466, 1556, 1563, 1562, 1546, 104, 438, 98, 1124, - /* 50 */ 12, 33, 31, 1227, 486, 386, 1108, 1575, 1386, 282, - /* 60 */ 482, 1102, 1603, 365, 1409, 75, 1576, 469, 1578, 1579, - /* 70 */ 465, 1546, 486, 1, 351, 1643, 1454, 1100, 294, 1642, - /* 80 */ 1639, 1591, 272, 1126, 102, 1489, 1491, 1452, 467, 12, - /* 90 */ 1128, 885, 1705, 884, 298, 1108, 565, 59, 466, 132, - /* 100 */ 1650, 1651, 1546, 1655, 24, 1703, 439, 1101, 449, 1702, - /* 110 */ 1127, 886, 1, 36, 34, 32, 30, 29, 28, 1603, - /* 120 */ 146, 145, 73, 1576, 469, 1578, 1579, 465, 1290, 486, - /* 130 */ 520, 122, 1643, 1301, 1705, 565, 253, 1639, 1657, 34, - /* 140 */ 32, 30, 29, 28, 518, 1125, 1101, 135, 1705, 88, - /* 150 */ 1103, 1702, 87, 86, 85, 84, 83, 82, 81, 80, - /* 160 */ 79, 135, 1654, 517, 516, 1702, 515, 514, 513, 56, - /* 170 */ 270, 1106, 1107, 173, 1152, 1153, 1154, 1155, 1156, 1157, - /* 180 */ 1158, 462, 484, 1166, 1167, 1168, 1169, 1170, 1171, 1103, - /* 190 */ 974, 509, 508, 507, 978, 506, 980, 981, 505, 983, - /* 200 */ 502, 136, 989, 499, 991, 992, 496, 493, 482, 198, - /* 210 */ 1106, 1107, 264, 1152, 1153, 1154, 1155, 1156, 1157, 1158, - /* 220 */ 462, 484, 1166, 1167, 1168, 1169, 1170, 1171, 33, 31, - /* 230 */ 136, 322, 328, 1575, 1384, 523, 282, 1381, 1102, 88, - /* 240 */ 1251, 136, 87, 86, 85, 84, 83, 82, 81, 80, - /* 250 */ 79, 1312, 1191, 265, 1100, 263, 262, 1591, 388, 1454, - /* 260 */ 435, 36, 251, 390, 464, 287, 12, 33, 31, 1282, - /* 270 */ 1452, 1705, 1108, 1196, 466, 282, 422, 1102, 1546, 432, - /* 280 */ 1249, 1250, 1252, 1253, 135, 321, 389, 320, 1702, 1, - /* 290 */ 30, 29, 28, 1100, 136, 1603, 1546, 136, 248, 1576, - /* 300 */ 469, 1578, 1579, 465, 463, 486, 460, 1615, 23, 1311, - /* 310 */ 390, 1108, 565, 1310, 1575, 34, 32, 30, 29, 28, - /* 320 */ 518, 423, 483, 1101, 33, 31, 1172, 483, 7, 440, - /* 330 */ 436, 327, 282, 389, 1102, 1454, 296, 136, 1591, 517, - /* 340 */ 516, 293, 515, 514, 513, 467, 1452, 1409, 1657, 1281, - /* 350 */ 1100, 565, 1409, 1568, 1546, 466, 129, 512, 1546, 1546, - /* 360 */ 1387, 1705, 1101, 33, 31, 1566, 1103, 1448, 1108, 561, - /* 370 */ 560, 282, 1653, 1102, 135, 1309, 1603, 1241, 1702, 244, - /* 380 */ 1576, 469, 1578, 1579, 465, 7, 486, 1106, 1107, 1100, - /* 390 */ 1152, 1153, 1154, 1155, 1156, 1157, 1158, 462, 484, 1166, - /* 400 */ 1167, 1168, 1169, 1170, 1171, 1103, 1308, 1108, 565, 365, - /* 410 */ 34, 32, 30, 29, 28, 397, 396, 441, 1307, 1101, - /* 420 */ 1546, 522, 535, 533, 7, 1306, 1106, 1107, 54, 1152, - /* 430 */ 1153, 1154, 1155, 1156, 1157, 1158, 462, 484, 1166, 1167, - /* 440 */ 1168, 1169, 1170, 1171, 9, 8, 54, 565, 142, 1405, - /* 450 */ 421, 1546, 400, 399, 568, 1398, 136, 398, 1101, 100, - /* 460 */ 101, 395, 1103, 1546, 394, 393, 392, 1404, 221, 1394, - /* 470 */ 1546, 99, 1139, 52, 1305, 1304, 51, 557, 1486, 553, - /* 480 */ 549, 545, 220, 1106, 1107, 144, 1152, 1153, 1154, 1155, - /* 490 */ 1156, 1157, 1158, 462, 484, 1166, 1167, 1168, 1169, 1170, - /* 500 */ 1171, 1103, 34, 32, 30, 29, 28, 71, 286, 48, - /* 510 */ 215, 34, 32, 30, 29, 28, 120, 1203, 445, 1546, - /* 520 */ 1546, 1226, 1106, 1107, 1411, 1152, 1153, 1154, 1155, 1156, - /* 530 */ 1157, 1158, 462, 484, 1166, 1167, 1168, 1169, 1170, 1171, - /* 540 */ 33, 31, 250, 104, 1124, 479, 63, 1575, 282, 1064, - /* 550 */ 1102, 344, 1088, 1089, 356, 483, 470, 1066, 70, 936, - /* 560 */ 483, 1385, 1499, 357, 336, 483, 1100, 1402, 414, 98, - /* 570 */ 427, 1591, 105, 180, 337, 1303, 391, 938, 467, 1401, - /* 580 */ 1409, 102, 1396, 518, 1108, 1409, 1300, 1299, 466, 1298, - /* 590 */ 1409, 1080, 1546, 175, 6, 447, 131, 1650, 1651, 1657, - /* 600 */ 1655, 1, 517, 516, 445, 515, 514, 513, 1705, 1603, - /* 610 */ 520, 1302, 74, 1576, 469, 1578, 1579, 465, 1065, 486, - /* 620 */ 1546, 135, 1643, 1652, 565, 1702, 275, 1639, 1717, 104, - /* 630 */ 227, 1546, 1546, 1439, 1546, 1101, 355, 1677, 119, 350, - /* 640 */ 349, 348, 347, 346, 1289, 343, 342, 341, 340, 339, - /* 650 */ 335, 334, 333, 332, 331, 330, 329, 120, 34, 32, - /* 660 */ 30, 29, 28, 1490, 1491, 1412, 1454, 102, 97, 96, - /* 670 */ 95, 94, 93, 92, 91, 90, 89, 1453, 1103, 1662, - /* 680 */ 1222, 292, 133, 1650, 1651, 1535, 1655, 1129, 1392, 120, - /* 690 */ 459, 1297, 1234, 1575, 1296, 1295, 254, 1411, 1126, 1106, - /* 700 */ 1107, 1294, 1152, 1153, 1154, 1155, 1156, 1157, 1158, 462, - /* 710 */ 484, 1166, 1167, 1168, 1169, 1170, 1171, 1591, 483, 1225, - /* 720 */ 1139, 305, 313, 451, 448, 445, 1293, 364, 1189, 34, - /* 730 */ 32, 30, 29, 28, 466, 1292, 1546, 295, 1546, 1546, - /* 740 */ 1546, 1177, 315, 1409, 534, 120, 1546, 1126, 316, 200, - /* 750 */ 104, 1222, 121, 1411, 455, 1603, 1367, 233, 74, 1576, - /* 760 */ 469, 1578, 1579, 465, 290, 486, 483, 254, 1643, 231, - /* 770 */ 449, 1546, 275, 1639, 130, 1406, 483, 1111, 884, 1190, - /* 780 */ 1546, 1560, 147, 452, 164, 1527, 199, 162, 102, 1575, - /* 790 */ 176, 1409, 428, 1670, 384, 415, 1556, 1563, 1562, 1189, - /* 800 */ 1195, 1409, 461, 196, 1650, 444, 184, 443, 486, 166, - /* 810 */ 1705, 1181, 165, 1591, 168, 170, 412, 167, 169, 511, - /* 820 */ 448, 43, 252, 135, 483, 1328, 1323, 1702, 110, 410, - /* 830 */ 466, 1341, 424, 480, 1546, 25, 280, 1184, 1185, 1186, - /* 840 */ 1187, 1188, 1192, 1193, 1194, 72, 1114, 401, 403, 1409, - /* 850 */ 1190, 1603, 9, 8, 74, 1576, 469, 1578, 1579, 465, - /* 860 */ 1321, 486, 42, 187, 1643, 483, 1248, 189, 275, 1639, - /* 870 */ 130, 1195, 1284, 1285, 481, 35, 50, 49, 325, 1197, - /* 880 */ 1110, 141, 406, 400, 399, 433, 319, 193, 398, 1671, - /* 890 */ 1409, 101, 395, 1575, 383, 394, 393, 392, 260, 1449, - /* 900 */ 311, 1673, 307, 303, 138, 456, 25, 280, 1184, 1185, - /* 910 */ 1186, 1187, 1188, 1192, 1193, 1194, 483, 1591, 35, 35, - /* 920 */ 446, 1592, 1159, 1059, 467, 217, 206, 108, 202, 109, - /* 930 */ 208, 475, 453, 214, 466, 136, 2, 1124, 1546, 110, - /* 940 */ 1575, 1409, 42, 967, 491, 300, 226, 109, 995, 1113, - /* 950 */ 110, 999, 111, 109, 1006, 1603, 1004, 112, 74, 1576, - /* 960 */ 469, 1578, 1579, 465, 1591, 486, 69, 936, 1643, 909, - /* 970 */ 304, 467, 275, 1639, 1717, 261, 65, 1072, 222, 353, - /* 980 */ 259, 466, 1338, 1700, 338, 1546, 1488, 910, 143, 345, - /* 990 */ 352, 354, 358, 1133, 359, 148, 360, 1132, 361, 151, - /* 1000 */ 362, 1131, 1603, 154, 363, 74, 1576, 469, 1578, 1579, - /* 1010 */ 465, 53, 486, 366, 157, 1643, 1130, 385, 387, 275, - /* 1020 */ 1639, 1717, 1399, 161, 1395, 163, 114, 78, 1575, 115, - /* 1030 */ 1661, 1108, 1397, 1393, 541, 540, 539, 297, 116, 538, - /* 1040 */ 537, 536, 106, 531, 530, 529, 528, 527, 526, 525, - /* 1050 */ 524, 113, 1591, 269, 117, 1531, 416, 174, 420, 467, - /* 1060 */ 223, 177, 224, 179, 425, 426, 417, 182, 1129, 466, - /* 1070 */ 434, 1684, 473, 1546, 5, 1575, 1674, 185, 1683, 449, - /* 1080 */ 431, 1664, 188, 274, 127, 437, 442, 194, 430, 4, - /* 1090 */ 1603, 1222, 103, 240, 1576, 469, 1578, 1579, 465, 1591, - /* 1100 */ 486, 1128, 195, 1701, 1658, 37, 467, 457, 276, 1720, - /* 1110 */ 454, 16, 1624, 192, 1497, 471, 466, 472, 284, 1705, - /* 1120 */ 1546, 477, 476, 1496, 201, 64, 478, 210, 1575, 212, - /* 1130 */ 225, 1410, 135, 564, 62, 219, 1702, 1603, 126, 1575, - /* 1140 */ 75, 1576, 469, 1578, 1579, 465, 1382, 486, 228, 489, - /* 1150 */ 1643, 271, 1591, 234, 458, 1639, 241, 44, 235, 467, - /* 1160 */ 230, 1540, 232, 1591, 1539, 299, 1536, 302, 301, 466, - /* 1170 */ 467, 1096, 1097, 1546, 139, 306, 1534, 308, 310, 309, - /* 1180 */ 466, 1533, 312, 1532, 1546, 314, 1517, 140, 317, 318, - /* 1190 */ 1603, 1075, 1074, 124, 1576, 469, 1578, 1579, 465, 1575, - /* 1200 */ 486, 1603, 1511, 1510, 75, 1576, 469, 1578, 1579, 465, - /* 1210 */ 323, 486, 324, 1509, 1643, 107, 1042, 1575, 1508, 1640, - /* 1220 */ 1481, 1480, 1479, 1591, 1478, 1477, 1476, 1475, 1474, 1473, - /* 1230 */ 467, 1472, 1471, 1470, 1469, 1468, 1467, 450, 1718, 1466, - /* 1240 */ 466, 1591, 1465, 1464, 1546, 1463, 1462, 429, 467, 1461, - /* 1250 */ 1575, 1460, 1459, 1458, 1457, 1456, 1455, 1340, 466, 1044, - /* 1260 */ 1525, 1603, 1546, 1519, 249, 1576, 469, 1578, 1579, 465, - /* 1270 */ 1503, 486, 1494, 153, 1591, 77, 367, 1335, 371, 1603, - /* 1280 */ 1575, 467, 124, 1576, 469, 1578, 1579, 465, 1388, 486, - /* 1290 */ 369, 466, 903, 1339, 405, 1546, 1337, 368, 279, 1333, - /* 1300 */ 372, 373, 376, 375, 1591, 377, 1331, 379, 1320, 413, - /* 1310 */ 1575, 464, 1603, 1319, 380, 249, 1576, 469, 1578, 1579, - /* 1320 */ 465, 466, 486, 172, 381, 1546, 408, 1719, 1316, 1390, - /* 1330 */ 160, 402, 1010, 1009, 1591, 935, 934, 171, 1389, 933, - /* 1340 */ 932, 467, 1603, 532, 534, 248, 1576, 469, 1578, 1579, - /* 1350 */ 465, 466, 486, 929, 1616, 1546, 928, 927, 281, 1329, - /* 1360 */ 1324, 266, 46, 1575, 267, 45, 404, 1322, 268, 407, - /* 1370 */ 1315, 409, 1603, 1314, 1575, 249, 1576, 469, 1578, 1579, - /* 1380 */ 465, 1524, 486, 411, 76, 1082, 1518, 1591, 418, 1502, - /* 1390 */ 1501, 1493, 3, 57, 467, 178, 181, 13, 1591, 118, - /* 1400 */ 35, 1566, 40, 191, 466, 467, 47, 419, 1546, 125, - /* 1410 */ 183, 283, 14, 38, 186, 466, 11, 1247, 190, 1546, - /* 1420 */ 1270, 20, 21, 1269, 1240, 1603, 197, 58, 249, 1576, - /* 1430 */ 469, 1578, 1579, 465, 1575, 486, 1603, 1219, 39, 236, - /* 1440 */ 1576, 469, 1578, 1579, 465, 1218, 486, 134, 1275, 1575, - /* 1450 */ 15, 277, 1274, 1273, 278, 8, 1182, 17, 1591, 1147, - /* 1460 */ 137, 204, 468, 474, 1492, 467, 1161, 27, 211, 1160, - /* 1470 */ 10, 18, 1118, 1591, 19, 466, 205, 1245, 207, 1546, - /* 1480 */ 467, 209, 60, 61, 1606, 213, 1163, 65, 973, 490, - /* 1490 */ 466, 1565, 216, 485, 1546, 41, 1603, 996, 291, 243, - /* 1500 */ 1576, 469, 1578, 1579, 465, 488, 486, 492, 494, 1575, - /* 1510 */ 993, 1603, 495, 497, 245, 1576, 469, 1578, 1579, 465, - /* 1520 */ 1575, 486, 990, 984, 500, 498, 503, 501, 988, 982, - /* 1530 */ 504, 987, 510, 1591, 66, 67, 986, 1005, 985, 1575, - /* 1540 */ 467, 68, 1003, 1002, 1591, 1001, 901, 519, 942, 521, - /* 1550 */ 466, 467, 218, 923, 1546, 922, 921, 920, 919, 918, - /* 1560 */ 917, 466, 916, 1591, 939, 1546, 937, 913, 912, 1575, - /* 1570 */ 467, 1603, 1336, 911, 237, 1576, 469, 1578, 1579, 465, - /* 1580 */ 466, 486, 1603, 543, 1546, 246, 1576, 469, 1578, 1579, - /* 1590 */ 465, 908, 486, 1591, 907, 906, 542, 544, 1334, 546, - /* 1600 */ 467, 1603, 547, 548, 238, 1576, 469, 1578, 1579, 465, - /* 1610 */ 466, 486, 1332, 550, 1546, 551, 552, 1330, 554, 555, - /* 1620 */ 556, 1318, 1575, 558, 559, 1317, 1313, 562, 563, 567, - /* 1630 */ 1104, 1603, 229, 1575, 247, 1576, 469, 1578, 1579, 465, - /* 1640 */ 566, 486, 1288, 1288, 1288, 1288, 1591, 1288, 1288, 1288, - /* 1650 */ 1288, 1288, 1288, 467, 1288, 1288, 1288, 1591, 1288, 1288, - /* 1660 */ 1288, 1288, 1288, 466, 467, 1288, 1288, 1546, 1288, 1288, - /* 1670 */ 1288, 1288, 1288, 1288, 466, 1288, 1288, 1288, 1546, 1288, - /* 1680 */ 1288, 1288, 1288, 1288, 1603, 1288, 1288, 239, 1576, 469, - /* 1690 */ 1578, 1579, 465, 1575, 486, 1603, 1288, 1288, 1587, 1576, - /* 1700 */ 469, 1578, 1579, 465, 1288, 486, 1288, 1288, 1575, 1288, - /* 1710 */ 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1591, 1288, 1288, - /* 1720 */ 1288, 1288, 1288, 1288, 467, 1288, 1288, 1288, 1288, 1288, - /* 1730 */ 1288, 1288, 1591, 1288, 466, 1288, 1288, 1288, 1546, 467, - /* 1740 */ 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 466, - /* 1750 */ 1288, 1288, 1288, 1546, 1288, 1603, 1288, 1288, 1586, 1576, - /* 1760 */ 469, 1578, 1579, 465, 1288, 486, 1288, 1288, 1575, 1288, - /* 1770 */ 1603, 1288, 1288, 1585, 1576, 469, 1578, 1579, 465, 1575, - /* 1780 */ 486, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, - /* 1790 */ 1288, 1288, 1591, 1288, 1288, 1288, 1288, 1288, 1575, 467, - /* 1800 */ 1288, 1288, 1288, 1591, 1288, 1288, 1288, 1288, 1288, 466, - /* 1810 */ 467, 1288, 1288, 1546, 1288, 1288, 1288, 1288, 1288, 1288, - /* 1820 */ 466, 1288, 1591, 1288, 1546, 1288, 1288, 1288, 1575, 467, - /* 1830 */ 1603, 1288, 1288, 257, 1576, 469, 1578, 1579, 465, 466, - /* 1840 */ 486, 1603, 1288, 1546, 256, 1576, 469, 1578, 1579, 465, - /* 1850 */ 1288, 486, 1591, 1288, 1288, 1288, 1288, 1288, 1288, 467, - /* 1860 */ 1603, 1288, 1288, 258, 1576, 469, 1578, 1579, 465, 466, - /* 1870 */ 486, 159, 1288, 1546, 128, 1288, 289, 288, 1288, 1288, - /* 1880 */ 382, 1575, 378, 374, 370, 158, 1116, 1288, 1288, 1288, - /* 1890 */ 1603, 1288, 1288, 255, 1576, 469, 1578, 1579, 465, 1288, - /* 1900 */ 486, 1288, 1109, 1102, 1288, 1591, 1288, 1288, 1288, 1288, - /* 1910 */ 55, 1288, 467, 156, 1288, 1288, 1288, 1288, 1288, 1100, - /* 1920 */ 1108, 1288, 466, 1288, 1288, 1288, 1546, 1288, 1288, 1288, - /* 1930 */ 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1108, 1288, 1288, - /* 1940 */ 1288, 1288, 1288, 1603, 1288, 1288, 242, 1576, 469, 1578, - /* 1950 */ 1579, 465, 1288, 486, 1288, 1288, 1288, 1288, 1288, 1288, - /* 1960 */ 487, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, - /* 1970 */ 1288, 1112, 155, 1288, 150, 1288, 152, 565, 1288, 1288, - /* 1980 */ 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1101, 1288, - /* 1990 */ 1288, 1288, 1288, 1288, 1288, 1288, 149, 1288, 1288, 1288, - /* 2000 */ 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, - /* 2010 */ 1288, 1288, 1288, 1288, 1117, 1288, 1288, 1288, 1288, 1288, - /* 2020 */ 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, 1288, - /* 2030 */ 1288, 1103, 1288, 1288, 1288, 1120, 1288, 1288, 1288, 1288, - /* 2040 */ 1288, 1288, 1288, 1288, 1288, 1288, 484, 1166, 1167, 1288, - /* 2050 */ 1288, 1288, 1106, 1107, + /* 0 */ 372, 72, 373, 1362, 380, 505, 373, 1362, 1613, 26, + /* 10 */ 211, 1449, 33, 31, 109, 1445, 332, 336, 1628, 1758, + /* 20 */ 290, 1452, 1143, 1609, 1617, 1615, 34, 32, 30, 29, + /* 30 */ 28, 1710, 1757, 1460, 90, 508, 1755, 89, 88, 87, + /* 40 */ 86, 85, 84, 83, 82, 81, 1644, 1141, 1505, 281, + /* 50 */ 30, 29, 28, 489, 280, 1707, 1758, 467, 12, 1503, + /* 60 */ 33, 31, 1268, 488, 1149, 504, 1613, 1599, 290, 140, + /* 70 */ 1143, 1451, 263, 1755, 504, 34, 32, 30, 29, 28, + /* 80 */ 1, 1609, 1616, 1615, 1656, 108, 22, 128, 1629, 491, + /* 90 */ 1631, 1632, 487, 508, 508, 1141, 34, 32, 30, 29, + /* 100 */ 28, 56, 587, 1230, 1644, 471, 12, 505, 33, 31, + /* 110 */ 1353, 489, 1149, 1142, 104, 504, 290, 1758, 1143, 100, + /* 120 */ 1599, 263, 1455, 106, 338, 36, 408, 126, 1, 1342, + /* 130 */ 1756, 472, 1771, 127, 1755, 1460, 505, 1417, 204, 1703, + /* 140 */ 466, 1330, 465, 1141, 1180, 1758, 371, 460, 100, 375, + /* 150 */ 587, 1165, 1230, 1231, 12, 413, 1144, 260, 140, 1599, + /* 160 */ 1149, 1142, 1755, 556, 1460, 99, 98, 97, 96, 95, + /* 170 */ 94, 93, 92, 91, 1236, 36, 1, 540, 1147, 1148, + /* 180 */ 457, 1193, 1194, 1195, 1196, 1197, 1198, 1199, 484, 506, + /* 190 */ 1207, 1208, 1209, 1210, 1211, 1212, 539, 538, 587, 537, + /* 200 */ 536, 535, 1231, 326, 1144, 331, 1292, 330, 141, 1142, + /* 210 */ 25, 288, 1225, 1226, 1227, 1228, 1229, 1233, 1234, 1235, + /* 220 */ 583, 582, 492, 1236, 1352, 293, 1147, 1148, 1550, 1193, + /* 230 */ 1194, 1195, 1196, 1197, 1198, 1199, 484, 506, 1207, 1208, + /* 240 */ 1209, 1210, 1211, 1212, 1389, 454, 1290, 1291, 1293, 1294, + /* 250 */ 462, 458, 1144, 34, 32, 30, 29, 28, 141, 25, + /* 260 */ 288, 1225, 1226, 1227, 1228, 1229, 1233, 1234, 1235, 9, + /* 270 */ 8, 467, 1438, 1599, 1147, 1148, 1328, 1193, 1194, 1195, + /* 280 */ 1196, 1197, 1198, 1199, 484, 506, 1207, 1208, 1209, 1210, + /* 290 */ 1211, 1212, 33, 31, 34, 32, 30, 29, 28, 108, + /* 300 */ 290, 1436, 1143, 141, 563, 562, 561, 305, 907, 560, + /* 310 */ 559, 558, 110, 553, 552, 551, 550, 549, 548, 547, + /* 320 */ 546, 117, 1282, 1351, 1505, 302, 924, 1141, 923, 387, + /* 330 */ 295, 1628, 1541, 1543, 306, 1503, 1538, 106, 141, 141, + /* 340 */ 33, 31, 1213, 149, 1149, 61, 911, 912, 290, 1244, + /* 350 */ 1143, 469, 136, 1703, 1704, 925, 1708, 24, 542, 1644, + /* 360 */ 7, 34, 32, 30, 29, 28, 489, 34, 32, 30, + /* 370 */ 29, 28, 1599, 1505, 1758, 1141, 488, 1392, 294, 301, + /* 380 */ 1599, 50, 587, 451, 1503, 1167, 124, 140, 33, 31, + /* 390 */ 323, 1755, 1149, 1142, 1462, 1350, 290, 1656, 1143, 461, + /* 400 */ 257, 1629, 491, 1631, 1632, 487, 379, 508, 7, 375, + /* 410 */ 325, 321, 1013, 531, 530, 529, 1017, 528, 1019, 1020, + /* 420 */ 527, 1022, 524, 1141, 1028, 521, 1030, 1031, 518, 515, + /* 430 */ 587, 34, 32, 30, 29, 28, 1144, 422, 421, 300, + /* 440 */ 1149, 1142, 420, 1168, 1599, 105, 417, 124, 505, 416, + /* 450 */ 415, 414, 387, 58, 278, 1462, 7, 181, 1147, 1148, + /* 460 */ 337, 1193, 1194, 1195, 1196, 1197, 1198, 1199, 484, 506, + /* 470 */ 1207, 1208, 1209, 1210, 1211, 1212, 1460, 1104, 587, 419, + /* 480 */ 418, 1232, 422, 421, 1144, 1106, 1349, 420, 141, 1142, + /* 490 */ 105, 417, 362, 436, 416, 415, 414, 1323, 377, 1588, + /* 500 */ 1180, 1143, 1237, 542, 1165, 444, 1147, 1148, 298, 1193, + /* 510 */ 1194, 1195, 1196, 1197, 1198, 1199, 484, 506, 1207, 1208, + /* 520 */ 1209, 1210, 1211, 1212, 147, 1613, 1141, 34, 32, 30, + /* 530 */ 29, 28, 1144, 1758, 434, 1599, 151, 150, 23, 1348, + /* 540 */ 1609, 1616, 1615, 1149, 313, 1105, 140, 432, 54, 141, + /* 550 */ 1755, 53, 508, 445, 1147, 1148, 1628, 1193, 1194, 1195, + /* 560 */ 1196, 1197, 1198, 1199, 484, 506, 1207, 1208, 1209, 1210, + /* 570 */ 1211, 1212, 33, 31, 259, 71, 1165, 975, 1322, 303, + /* 580 */ 290, 587, 1143, 355, 1644, 67, 367, 124, 1599, 134, + /* 590 */ 1169, 489, 1142, 1758, 977, 1462, 167, 1347, 1346, 1345, + /* 600 */ 1499, 488, 473, 1344, 368, 1599, 140, 1141, 133, 505, + /* 610 */ 1755, 471, 1341, 56, 404, 400, 396, 392, 166, 272, + /* 620 */ 1710, 347, 1656, 1267, 1149, 248, 1629, 491, 1631, 1632, + /* 630 */ 487, 505, 508, 124, 1456, 1144, 65, 1460, 467, 1710, + /* 640 */ 1, 1463, 57, 348, 1706, 164, 1599, 1599, 1599, 557, + /* 650 */ 555, 1758, 1599, 1340, 1542, 1543, 1453, 1147, 1148, 1460, + /* 660 */ 123, 1599, 587, 1705, 140, 1339, 108, 273, 1755, 271, + /* 670 */ 270, 923, 410, 1142, 366, 1338, 412, 361, 360, 359, + /* 680 */ 358, 357, 354, 353, 352, 351, 350, 346, 345, 344, + /* 690 */ 343, 342, 341, 340, 339, 492, 406, 505, 505, 411, + /* 700 */ 505, 1551, 1599, 163, 106, 158, 1170, 160, 467, 386, + /* 710 */ 1457, 1505, 1579, 1337, 1599, 206, 1144, 1336, 1335, 137, + /* 720 */ 1703, 1704, 1504, 1708, 1599, 1460, 1460, 156, 1460, 1334, + /* 730 */ 1628, 1333, 235, 911, 912, 1490, 108, 1437, 1147, 1148, + /* 740 */ 412, 1193, 1194, 1195, 1196, 1197, 1198, 1199, 484, 506, + /* 750 */ 1207, 1208, 1209, 1210, 1211, 1212, 505, 6, 1644, 505, + /* 760 */ 505, 1166, 1599, 411, 505, 489, 1599, 1599, 502, 1128, + /* 770 */ 1129, 503, 225, 477, 106, 488, 304, 474, 1599, 1599, + /* 780 */ 1599, 545, 544, 1432, 1460, 471, 1379, 1460, 1460, 138, + /* 790 */ 1703, 1704, 1460, 1708, 1715, 1263, 1656, 43, 261, 75, + /* 800 */ 1629, 491, 1631, 1632, 487, 1628, 508, 114, 423, 1696, + /* 810 */ 1275, 1218, 172, 262, 1692, 170, 1167, 1167, 125, 174, + /* 820 */ 9, 8, 173, 241, 1374, 1758, 481, 176, 1266, 540, + /* 830 */ 175, 192, 42, 1644, 1331, 239, 49, 1152, 140, 48, + /* 840 */ 470, 178, 1755, 195, 177, 1372, 425, 446, 539, 538, + /* 850 */ 488, 537, 536, 535, 1599, 90, 152, 1619, 89, 88, + /* 860 */ 87, 86, 85, 84, 83, 82, 81, 428, 534, 1628, + /* 870 */ 1151, 1656, 1289, 35, 76, 1629, 491, 1631, 1632, 487, + /* 880 */ 35, 508, 948, 197, 1696, 1325, 1326, 1447, 283, 1692, + /* 890 */ 135, 1443, 184, 1621, 35, 483, 590, 1644, 443, 949, + /* 900 */ 533, 1343, 207, 1155, 489, 1418, 208, 214, 450, 1723, + /* 910 */ 229, 437, 42, 1238, 488, 112, 1628, 74, 1599, 455, + /* 920 */ 1200, 201, 101, 113, 1363, 405, 114, 1263, 579, 575, + /* 930 */ 571, 567, 228, 1500, 1099, 1656, 1154, 468, 128, 1629, + /* 940 */ 491, 1631, 1632, 487, 1644, 508, 1222, 216, 52, 51, + /* 950 */ 335, 470, 234, 146, 513, 497, 73, 113, 329, 223, + /* 960 */ 478, 488, 475, 222, 114, 1599, 1006, 1726, 1645, 2, + /* 970 */ 258, 115, 113, 319, 210, 315, 311, 143, 1165, 308, + /* 980 */ 312, 1628, 1656, 1772, 268, 76, 1629, 491, 1631, 1632, + /* 990 */ 487, 975, 508, 501, 1034, 1696, 1112, 1038, 230, 283, + /* 1000 */ 1692, 135, 269, 349, 1045, 148, 1540, 356, 141, 1644, + /* 1010 */ 369, 1043, 116, 1171, 364, 363, 489, 370, 449, 378, + /* 1020 */ 1724, 188, 1174, 381, 365, 155, 488, 1173, 157, 384, + /* 1030 */ 1599, 382, 383, 159, 1172, 385, 162, 55, 165, 1120, + /* 1040 */ 388, 183, 1628, 1435, 427, 1149, 407, 1656, 409, 277, + /* 1050 */ 76, 1629, 491, 1631, 1632, 487, 1450, 508, 169, 435, + /* 1060 */ 1696, 1583, 1446, 171, 283, 1692, 1770, 118, 119, 80, + /* 1070 */ 1644, 231, 232, 180, 1448, 1730, 1444, 489, 120, 121, + /* 1080 */ 182, 438, 439, 1170, 185, 430, 456, 488, 187, 190, + /* 1090 */ 424, 1599, 447, 495, 442, 179, 1628, 1727, 448, 5, + /* 1100 */ 1737, 464, 1736, 193, 453, 200, 196, 282, 1656, 452, + /* 1110 */ 459, 76, 1629, 491, 1631, 1632, 487, 4, 508, 46, + /* 1120 */ 202, 1696, 45, 107, 1644, 283, 1692, 1770, 1263, 1169, + /* 1130 */ 1711, 489, 37, 284, 16, 540, 1753, 479, 1717, 476, + /* 1140 */ 1549, 488, 493, 498, 131, 1599, 494, 500, 1548, 292, + /* 1150 */ 1628, 1677, 203, 499, 539, 538, 218, 537, 536, 535, + /* 1160 */ 233, 66, 1656, 220, 1461, 76, 1629, 491, 1631, 1632, + /* 1170 */ 487, 64, 508, 511, 1433, 1696, 236, 227, 1644, 283, + /* 1180 */ 1692, 1770, 1628, 1773, 44, 489, 586, 279, 1754, 130, + /* 1190 */ 1714, 209, 242, 240, 238, 488, 249, 243, 1593, 1599, + /* 1200 */ 1628, 1592, 307, 1589, 309, 310, 1137, 1138, 144, 314, + /* 1210 */ 1644, 1587, 316, 317, 1586, 318, 1656, 489, 320, 77, + /* 1220 */ 1629, 491, 1631, 1632, 487, 1585, 508, 488, 1644, 1696, + /* 1230 */ 322, 1599, 1628, 1695, 1692, 489, 1584, 324, 1569, 327, + /* 1240 */ 1115, 328, 145, 1114, 1563, 488, 1562, 333, 1656, 1599, + /* 1250 */ 1628, 244, 1629, 491, 1631, 1632, 487, 334, 508, 1561, + /* 1260 */ 1644, 1560, 1082, 1533, 1532, 1531, 1656, 486, 1530, 77, + /* 1270 */ 1629, 491, 1631, 1632, 487, 1529, 508, 488, 1644, 1696, + /* 1280 */ 1528, 1599, 1527, 480, 1692, 489, 1526, 1525, 1524, 1523, + /* 1290 */ 1522, 1521, 1520, 1519, 1518, 488, 1517, 1628, 1656, 1599, + /* 1300 */ 1516, 256, 1629, 491, 1631, 1632, 487, 485, 508, 482, + /* 1310 */ 1668, 111, 1628, 1515, 1514, 1513, 1656, 1512, 1511, 77, + /* 1320 */ 1629, 491, 1631, 1632, 487, 1644, 508, 1510, 1084, 1696, + /* 1330 */ 1509, 1508, 489, 1507, 1693, 1506, 1391, 1359, 153, 102, + /* 1340 */ 1644, 374, 488, 914, 132, 376, 1599, 489, 913, 1358, + /* 1350 */ 154, 1577, 1571, 103, 1555, 1546, 161, 488, 1439, 1390, + /* 1360 */ 1388, 1599, 1386, 1656, 287, 391, 252, 1629, 491, 1631, + /* 1370 */ 1632, 487, 389, 508, 1384, 395, 399, 390, 1656, 942, + /* 1380 */ 1382, 257, 1629, 491, 1631, 1632, 487, 1628, 508, 393, + /* 1390 */ 394, 397, 398, 401, 403, 402, 1371, 1370, 1357, 1441, + /* 1400 */ 79, 1048, 1440, 1049, 463, 1380, 274, 1375, 168, 554, + /* 1410 */ 974, 973, 972, 971, 556, 1644, 968, 1628, 426, 967, + /* 1420 */ 1373, 1356, 486, 966, 429, 275, 276, 1355, 431, 78, + /* 1430 */ 433, 1576, 488, 1122, 1570, 122, 1599, 440, 1554, 1553, + /* 1440 */ 47, 1545, 3, 13, 441, 1644, 186, 59, 189, 14, + /* 1450 */ 191, 35, 489, 1656, 40, 129, 256, 1629, 491, 1631, + /* 1460 */ 1632, 487, 488, 508, 1628, 1669, 1599, 199, 194, 289, + /* 1470 */ 1288, 198, 20, 1628, 1281, 60, 1619, 21, 38, 205, + /* 1480 */ 8, 1260, 11, 1656, 39, 15, 257, 1629, 491, 1631, + /* 1490 */ 1632, 487, 1644, 508, 139, 1259, 1311, 1316, 1310, 489, + /* 1500 */ 285, 1644, 1315, 1314, 286, 17, 1202, 142, 489, 488, + /* 1510 */ 27, 212, 1188, 1599, 1544, 1159, 291, 10, 488, 219, + /* 1520 */ 1628, 1223, 1599, 1201, 496, 18, 19, 215, 490, 213, + /* 1530 */ 1656, 1618, 217, 257, 1629, 491, 1631, 1632, 487, 1656, + /* 1540 */ 508, 1286, 251, 1629, 491, 1631, 1632, 487, 1644, 508, + /* 1550 */ 1628, 62, 221, 63, 224, 489, 67, 1659, 512, 510, + /* 1560 */ 1204, 507, 299, 41, 514, 488, 1035, 1032, 516, 1599, + /* 1570 */ 1029, 517, 519, 1023, 520, 522, 523, 525, 1644, 1021, + /* 1580 */ 526, 1012, 1628, 68, 1027, 489, 1656, 532, 69, 253, + /* 1590 */ 1629, 491, 1631, 1632, 487, 488, 508, 1044, 70, 1599, + /* 1600 */ 1041, 1026, 1040, 1025, 940, 1024, 541, 981, 226, 543, + /* 1610 */ 1644, 962, 1628, 961, 957, 1042, 1656, 489, 960, 245, + /* 1620 */ 1629, 491, 1631, 1632, 487, 959, 508, 488, 958, 956, + /* 1630 */ 955, 1599, 978, 976, 952, 951, 950, 947, 946, 1387, + /* 1640 */ 1644, 566, 945, 564, 565, 1385, 569, 489, 1656, 568, + /* 1650 */ 570, 254, 1629, 491, 1631, 1632, 487, 488, 508, 1628, + /* 1660 */ 1383, 1599, 572, 573, 574, 1381, 576, 577, 578, 1369, + /* 1670 */ 580, 581, 1368, 1354, 1628, 584, 585, 588, 1656, 1145, + /* 1680 */ 237, 246, 1629, 491, 1631, 1632, 487, 1644, 508, 1329, + /* 1690 */ 589, 1329, 1329, 1329, 489, 1329, 1329, 1329, 1329, 1329, + /* 1700 */ 1329, 1329, 1644, 1329, 488, 1329, 1628, 1329, 1599, 489, + /* 1710 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 488, + /* 1720 */ 1329, 1329, 1329, 1599, 1329, 1656, 1329, 1329, 255, 1629, + /* 1730 */ 491, 1631, 1632, 487, 1644, 508, 1329, 1329, 1329, 1329, + /* 1740 */ 1656, 489, 1329, 247, 1629, 491, 1631, 1632, 487, 1329, + /* 1750 */ 508, 488, 1329, 1329, 1329, 1599, 1329, 1329, 1628, 1329, + /* 1760 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 1770 */ 1329, 1329, 1656, 1329, 1329, 1640, 1629, 491, 1631, 1632, + /* 1780 */ 487, 1329, 508, 1329, 1329, 1329, 1644, 1329, 1628, 1329, + /* 1790 */ 1329, 1329, 1329, 489, 1329, 1329, 1329, 1329, 1329, 1329, + /* 1800 */ 1329, 1329, 1329, 488, 1329, 1329, 1329, 1599, 1329, 1329, + /* 1810 */ 1329, 1329, 1329, 1329, 1329, 1329, 1644, 1329, 1329, 1329, + /* 1820 */ 1628, 1329, 1329, 489, 1656, 1329, 1329, 1639, 1629, 491, + /* 1830 */ 1631, 1632, 487, 488, 508, 1628, 1329, 1599, 1329, 1329, + /* 1840 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1644, 1329, + /* 1850 */ 1329, 1329, 1329, 1329, 1656, 489, 1329, 1638, 1629, 491, + /* 1860 */ 1631, 1632, 487, 1644, 508, 488, 1329, 1329, 1329, 1599, + /* 1870 */ 489, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 1880 */ 488, 1329, 1628, 1329, 1599, 1329, 1656, 1329, 1329, 266, + /* 1890 */ 1629, 491, 1631, 1632, 487, 1628, 508, 1329, 1329, 1329, + /* 1900 */ 1329, 1656, 1329, 1329, 265, 1629, 491, 1631, 1632, 487, + /* 1910 */ 1644, 508, 1329, 1329, 1329, 1329, 1329, 489, 1329, 1329, + /* 1920 */ 1329, 1329, 1329, 1644, 297, 296, 1329, 488, 1329, 1329, + /* 1930 */ 489, 1599, 1329, 1329, 1157, 1329, 1329, 1329, 1329, 1329, + /* 1940 */ 488, 1329, 1329, 1329, 1599, 1329, 1628, 1329, 1656, 1329, + /* 1950 */ 1329, 267, 1629, 491, 1631, 1632, 487, 1329, 508, 1150, + /* 1960 */ 1329, 1656, 1329, 1329, 264, 1629, 491, 1631, 1632, 487, + /* 1970 */ 1329, 508, 1329, 1329, 1644, 1329, 1149, 1329, 1329, 1329, + /* 1980 */ 1329, 489, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 1990 */ 1329, 488, 1329, 1329, 1329, 1599, 1329, 1329, 1329, 1329, + /* 2000 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 2010 */ 1329, 1329, 1656, 1329, 509, 250, 1629, 491, 1631, 1632, + /* 2020 */ 487, 1329, 508, 1329, 1329, 1153, 1329, 1329, 1329, 1329, + /* 2030 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 2040 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 2050 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 2060 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1158, 1329, + /* 2070 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 2080 */ 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 2090 */ 1161, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, 1329, + /* 2100 */ 1329, 506, 1207, 1208, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 234, 279, 325, 275, 258, 240, 278, 310, 311, 281, - /* 10 */ 262, 265, 12, 13, 249, 338, 294, 295, 296, 342, - /* 20 */ 20, 240, 22, 2, 258, 243, 234, 279, 306, 247, - /* 30 */ 265, 265, 20, 12, 13, 14, 15, 16, 38, 240, - /* 40 */ 231, 275, 294, 295, 296, 279, 265, 301, 249, 20, - /* 50 */ 50, 12, 13, 14, 306, 256, 56, 234, 0, 20, - /* 60 */ 20, 22, 296, 49, 265, 299, 300, 301, 302, 303, - /* 70 */ 304, 279, 306, 73, 67, 309, 258, 38, 267, 313, - /* 80 */ 314, 258, 264, 20, 303, 274, 275, 269, 265, 50, - /* 90 */ 20, 20, 325, 22, 285, 56, 96, 4, 275, 318, - /* 100 */ 319, 320, 279, 322, 2, 338, 20, 107, 285, 342, - /* 110 */ 20, 40, 73, 73, 12, 13, 14, 15, 16, 296, - /* 120 */ 113, 114, 299, 300, 301, 302, 303, 304, 0, 306, - /* 130 */ 49, 233, 309, 235, 325, 96, 313, 314, 297, 12, - /* 140 */ 13, 14, 15, 16, 86, 20, 107, 338, 325, 21, - /* 150 */ 150, 342, 24, 25, 26, 27, 28, 29, 30, 31, - /* 160 */ 32, 338, 321, 105, 106, 342, 108, 109, 110, 159, - /* 170 */ 160, 171, 172, 163, 174, 175, 176, 177, 178, 179, - /* 180 */ 180, 181, 182, 183, 184, 185, 186, 187, 188, 150, - /* 190 */ 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, - /* 200 */ 97, 201, 99, 100, 101, 102, 103, 104, 20, 139, - /* 210 */ 171, 172, 35, 174, 175, 176, 177, 178, 179, 180, - /* 220 */ 181, 182, 183, 184, 185, 186, 187, 188, 12, 13, - /* 230 */ 201, 285, 240, 234, 0, 246, 20, 248, 22, 21, - /* 240 */ 171, 201, 24, 25, 26, 27, 28, 29, 30, 31, - /* 250 */ 32, 234, 133, 76, 38, 78, 79, 258, 81, 258, - /* 260 */ 137, 73, 270, 86, 265, 264, 50, 12, 13, 142, - /* 270 */ 269, 325, 56, 154, 275, 20, 240, 22, 279, 210, - /* 280 */ 211, 212, 213, 214, 338, 149, 109, 151, 342, 73, - /* 290 */ 14, 15, 16, 38, 201, 296, 279, 201, 299, 300, - /* 300 */ 301, 302, 303, 304, 305, 306, 307, 308, 189, 234, - /* 310 */ 86, 56, 96, 234, 234, 12, 13, 14, 15, 16, - /* 320 */ 86, 285, 240, 107, 12, 13, 14, 240, 73, 206, - /* 330 */ 207, 249, 20, 109, 22, 258, 249, 201, 258, 105, - /* 340 */ 106, 264, 108, 109, 110, 265, 269, 265, 297, 222, - /* 350 */ 38, 96, 265, 73, 279, 275, 257, 84, 279, 279, - /* 360 */ 0, 325, 107, 12, 13, 85, 150, 268, 56, 237, - /* 370 */ 238, 20, 321, 22, 338, 234, 296, 74, 342, 299, - /* 380 */ 300, 301, 302, 303, 304, 73, 306, 171, 172, 38, - /* 390 */ 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, - /* 400 */ 184, 185, 186, 187, 188, 150, 234, 56, 96, 49, - /* 410 */ 12, 13, 14, 15, 16, 244, 245, 337, 234, 107, - /* 420 */ 279, 56, 244, 245, 73, 234, 171, 172, 242, 174, - /* 430 */ 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, - /* 440 */ 185, 186, 187, 188, 1, 2, 242, 96, 47, 263, - /* 450 */ 288, 279, 52, 53, 19, 259, 201, 57, 107, 255, - /* 460 */ 60, 61, 150, 279, 64, 65, 66, 263, 33, 259, - /* 470 */ 279, 36, 74, 72, 234, 234, 75, 42, 265, 44, - /* 480 */ 45, 46, 47, 171, 172, 272, 174, 175, 176, 177, - /* 490 */ 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, - /* 500 */ 188, 150, 12, 13, 14, 15, 16, 72, 250, 3, - /* 510 */ 75, 12, 13, 14, 15, 16, 258, 74, 240, 279, - /* 520 */ 279, 4, 171, 172, 266, 174, 175, 176, 177, 178, - /* 530 */ 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, - /* 540 */ 12, 13, 18, 265, 20, 110, 239, 234, 20, 72, - /* 550 */ 22, 27, 161, 162, 30, 240, 275, 80, 239, 38, - /* 560 */ 240, 0, 281, 39, 249, 240, 38, 260, 285, 249, - /* 570 */ 135, 258, 253, 138, 249, 234, 256, 56, 265, 260, - /* 580 */ 265, 303, 259, 86, 56, 265, 234, 234, 275, 234, - /* 590 */ 265, 156, 279, 158, 43, 317, 318, 319, 320, 297, - /* 600 */ 322, 73, 105, 106, 240, 108, 109, 110, 325, 296, - /* 610 */ 49, 235, 299, 300, 301, 302, 303, 304, 141, 306, - /* 620 */ 279, 338, 309, 321, 96, 342, 313, 314, 315, 265, - /* 630 */ 251, 279, 279, 254, 279, 107, 112, 324, 139, 115, - /* 640 */ 116, 117, 118, 119, 0, 121, 122, 123, 124, 125, - /* 650 */ 126, 127, 128, 129, 130, 131, 132, 258, 12, 13, - /* 660 */ 14, 15, 16, 274, 275, 266, 258, 303, 24, 25, - /* 670 */ 26, 27, 28, 29, 30, 31, 32, 269, 150, 199, - /* 680 */ 200, 250, 318, 319, 320, 0, 322, 20, 259, 258, - /* 690 */ 50, 234, 14, 234, 234, 234, 50, 266, 20, 171, - /* 700 */ 172, 234, 174, 175, 176, 177, 178, 179, 180, 181, - /* 710 */ 182, 183, 184, 185, 186, 187, 188, 258, 240, 202, - /* 720 */ 74, 36, 145, 217, 265, 240, 234, 249, 82, 12, - /* 730 */ 13, 14, 15, 16, 275, 234, 279, 250, 279, 279, - /* 740 */ 279, 14, 165, 265, 70, 258, 279, 20, 74, 345, - /* 750 */ 265, 200, 18, 266, 70, 296, 247, 23, 299, 300, - /* 760 */ 301, 302, 303, 304, 262, 306, 240, 50, 309, 35, - /* 770 */ 285, 279, 313, 314, 315, 249, 240, 38, 22, 133, - /* 780 */ 279, 279, 48, 70, 77, 249, 327, 80, 303, 234, - /* 790 */ 259, 265, 333, 334, 38, 292, 294, 295, 296, 82, - /* 800 */ 154, 265, 259, 318, 319, 320, 139, 322, 306, 77, - /* 810 */ 325, 171, 80, 258, 77, 77, 21, 80, 80, 259, - /* 820 */ 265, 139, 140, 338, 240, 0, 0, 342, 70, 34, - /* 830 */ 275, 0, 74, 249, 279, 189, 190, 191, 192, 193, - /* 840 */ 194, 195, 196, 197, 198, 111, 107, 22, 22, 265, - /* 850 */ 133, 296, 1, 2, 299, 300, 301, 302, 303, 304, - /* 860 */ 0, 306, 70, 70, 309, 240, 74, 74, 313, 314, - /* 870 */ 315, 154, 186, 187, 249, 70, 142, 143, 144, 74, - /* 880 */ 38, 147, 22, 52, 53, 336, 152, 330, 57, 334, - /* 890 */ 265, 60, 61, 234, 237, 64, 65, 66, 164, 268, - /* 900 */ 166, 298, 168, 169, 170, 221, 189, 190, 191, 192, - /* 910 */ 193, 194, 195, 196, 197, 198, 240, 258, 70, 70, - /* 920 */ 323, 258, 74, 74, 265, 249, 70, 70, 339, 70, - /* 930 */ 74, 74, 219, 74, 275, 201, 326, 20, 279, 70, - /* 940 */ 234, 265, 70, 74, 70, 240, 74, 70, 74, 107, - /* 950 */ 70, 74, 70, 70, 74, 296, 74, 74, 299, 300, - /* 960 */ 301, 302, 303, 304, 258, 306, 73, 38, 309, 38, - /* 970 */ 36, 265, 313, 314, 315, 244, 83, 148, 286, 133, - /* 980 */ 293, 275, 0, 324, 240, 279, 240, 56, 120, 273, - /* 990 */ 271, 271, 240, 20, 290, 242, 275, 20, 283, 242, - /* 1000 */ 265, 20, 296, 242, 276, 299, 300, 301, 302, 303, - /* 1010 */ 304, 242, 306, 240, 242, 309, 20, 236, 258, 313, - /* 1020 */ 314, 315, 258, 258, 258, 258, 258, 240, 234, 258, - /* 1030 */ 324, 56, 258, 258, 52, 53, 54, 55, 258, 57, - /* 1040 */ 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, - /* 1050 */ 68, 69, 258, 236, 258, 279, 157, 239, 275, 265, - /* 1060 */ 290, 239, 283, 239, 265, 276, 289, 239, 20, 275, - /* 1070 */ 209, 335, 208, 279, 216, 234, 298, 280, 335, 285, - /* 1080 */ 279, 332, 280, 279, 329, 279, 215, 328, 204, 203, - /* 1090 */ 296, 200, 265, 299, 300, 301, 302, 303, 304, 258, - /* 1100 */ 306, 20, 316, 341, 297, 120, 265, 220, 223, 346, - /* 1110 */ 218, 73, 312, 331, 280, 279, 275, 279, 279, 325, - /* 1120 */ 279, 277, 136, 280, 340, 73, 276, 265, 234, 239, - /* 1130 */ 254, 265, 338, 236, 239, 239, 342, 296, 291, 234, - /* 1140 */ 299, 300, 301, 302, 303, 304, 248, 306, 240, 261, - /* 1150 */ 309, 284, 258, 252, 313, 314, 252, 287, 252, 265, - /* 1160 */ 241, 0, 232, 258, 0, 64, 0, 167, 38, 275, - /* 1170 */ 265, 38, 38, 279, 38, 167, 0, 38, 167, 38, - /* 1180 */ 275, 0, 38, 0, 279, 38, 0, 73, 154, 153, - /* 1190 */ 296, 107, 150, 299, 300, 301, 302, 303, 304, 234, - /* 1200 */ 306, 296, 0, 0, 299, 300, 301, 302, 303, 304, - /* 1210 */ 146, 306, 145, 0, 309, 120, 85, 234, 0, 314, - /* 1220 */ 0, 0, 0, 258, 0, 0, 0, 0, 0, 0, - /* 1230 */ 265, 0, 0, 0, 0, 0, 0, 343, 344, 0, - /* 1240 */ 275, 258, 0, 0, 279, 0, 0, 282, 265, 0, - /* 1250 */ 234, 0, 0, 0, 0, 0, 0, 0, 275, 22, - /* 1260 */ 0, 296, 279, 0, 299, 300, 301, 302, 303, 304, - /* 1270 */ 0, 306, 0, 43, 258, 82, 38, 0, 38, 296, - /* 1280 */ 234, 265, 299, 300, 301, 302, 303, 304, 0, 306, - /* 1290 */ 43, 275, 51, 0, 4, 279, 0, 36, 282, 0, - /* 1300 */ 36, 43, 36, 38, 258, 43, 0, 38, 0, 19, - /* 1310 */ 234, 265, 296, 0, 36, 299, 300, 301, 302, 303, - /* 1320 */ 304, 275, 306, 33, 43, 279, 36, 344, 0, 0, - /* 1330 */ 80, 41, 38, 22, 258, 38, 38, 47, 0, 38, - /* 1340 */ 38, 265, 296, 70, 70, 299, 300, 301, 302, 303, - /* 1350 */ 304, 275, 306, 38, 308, 279, 38, 38, 282, 0, - /* 1360 */ 0, 22, 72, 234, 22, 75, 39, 0, 22, 38, - /* 1370 */ 0, 22, 296, 0, 234, 299, 300, 301, 302, 303, - /* 1380 */ 304, 0, 306, 22, 20, 38, 0, 258, 22, 0, - /* 1390 */ 0, 0, 70, 73, 265, 136, 43, 205, 258, 155, - /* 1400 */ 70, 85, 70, 70, 275, 265, 139, 139, 279, 73, - /* 1410 */ 134, 282, 205, 199, 74, 275, 205, 74, 73, 279, - /* 1420 */ 38, 73, 70, 38, 74, 296, 85, 73, 299, 300, - /* 1430 */ 301, 302, 303, 304, 234, 306, 296, 74, 70, 299, - /* 1440 */ 300, 301, 302, 303, 304, 74, 306, 85, 74, 234, - /* 1450 */ 70, 38, 38, 38, 38, 2, 171, 70, 258, 22, - /* 1460 */ 85, 85, 173, 137, 0, 265, 74, 73, 43, 74, - /* 1470 */ 73, 73, 22, 258, 73, 275, 74, 74, 73, 279, - /* 1480 */ 265, 73, 73, 73, 73, 134, 74, 83, 22, 38, - /* 1490 */ 275, 85, 85, 73, 279, 73, 296, 74, 38, 299, - /* 1500 */ 300, 301, 302, 303, 304, 84, 306, 73, 38, 234, - /* 1510 */ 74, 296, 73, 38, 299, 300, 301, 302, 303, 304, - /* 1520 */ 234, 306, 74, 74, 38, 73, 38, 73, 98, 74, - /* 1530 */ 73, 98, 86, 258, 73, 73, 98, 38, 98, 234, - /* 1540 */ 265, 73, 107, 38, 258, 22, 51, 50, 56, 71, - /* 1550 */ 275, 265, 70, 38, 279, 38, 38, 38, 38, 22, - /* 1560 */ 38, 275, 38, 258, 56, 279, 38, 38, 38, 234, - /* 1570 */ 265, 296, 0, 38, 299, 300, 301, 302, 303, 304, - /* 1580 */ 275, 306, 296, 36, 279, 299, 300, 301, 302, 303, - /* 1590 */ 304, 38, 306, 258, 38, 38, 38, 43, 0, 38, - /* 1600 */ 265, 296, 36, 43, 299, 300, 301, 302, 303, 304, - /* 1610 */ 275, 306, 0, 38, 279, 36, 43, 0, 38, 36, - /* 1620 */ 43, 0, 234, 38, 37, 0, 0, 22, 21, 20, - /* 1630 */ 22, 296, 22, 234, 299, 300, 301, 302, 303, 304, - /* 1640 */ 21, 306, 347, 347, 347, 347, 258, 347, 347, 347, - /* 1650 */ 347, 347, 347, 265, 347, 347, 347, 258, 347, 347, - /* 1660 */ 347, 347, 347, 275, 265, 347, 347, 279, 347, 347, - /* 1670 */ 347, 347, 347, 347, 275, 347, 347, 347, 279, 347, - /* 1680 */ 347, 347, 347, 347, 296, 347, 347, 299, 300, 301, - /* 1690 */ 302, 303, 304, 234, 306, 296, 347, 347, 299, 300, - /* 1700 */ 301, 302, 303, 304, 347, 306, 347, 347, 234, 347, - /* 1710 */ 347, 347, 347, 347, 347, 347, 347, 258, 347, 347, - /* 1720 */ 347, 347, 347, 347, 265, 347, 347, 347, 347, 347, - /* 1730 */ 347, 347, 258, 347, 275, 347, 347, 347, 279, 265, - /* 1740 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 275, - /* 1750 */ 347, 347, 347, 279, 347, 296, 347, 347, 299, 300, - /* 1760 */ 301, 302, 303, 304, 347, 306, 347, 347, 234, 347, - /* 1770 */ 296, 347, 347, 299, 300, 301, 302, 303, 304, 234, - /* 1780 */ 306, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 1790 */ 347, 347, 258, 347, 347, 347, 347, 347, 234, 265, - /* 1800 */ 347, 347, 347, 258, 347, 347, 347, 347, 347, 275, - /* 1810 */ 265, 347, 347, 279, 347, 347, 347, 347, 347, 347, - /* 1820 */ 275, 347, 258, 347, 279, 347, 347, 347, 234, 265, - /* 1830 */ 296, 347, 347, 299, 300, 301, 302, 303, 304, 275, - /* 1840 */ 306, 296, 347, 279, 299, 300, 301, 302, 303, 304, - /* 1850 */ 347, 306, 258, 347, 347, 347, 347, 347, 347, 265, - /* 1860 */ 296, 347, 347, 299, 300, 301, 302, 303, 304, 275, - /* 1870 */ 306, 33, 347, 279, 36, 347, 12, 13, 347, 347, - /* 1880 */ 42, 234, 44, 45, 46, 47, 22, 347, 347, 347, - /* 1890 */ 296, 347, 347, 299, 300, 301, 302, 303, 304, 347, - /* 1900 */ 306, 347, 38, 22, 347, 258, 347, 347, 347, 347, - /* 1910 */ 72, 347, 265, 75, 347, 347, 347, 347, 347, 38, - /* 1920 */ 56, 347, 275, 347, 347, 347, 279, 347, 347, 347, - /* 1930 */ 347, 347, 347, 347, 347, 347, 347, 56, 347, 347, - /* 1940 */ 347, 347, 347, 296, 347, 347, 299, 300, 301, 302, - /* 1950 */ 303, 304, 347, 306, 347, 347, 347, 347, 347, 347, - /* 1960 */ 96, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 1970 */ 347, 107, 134, 347, 136, 347, 138, 96, 347, 347, - /* 1980 */ 347, 347, 347, 347, 347, 347, 347, 347, 107, 347, - /* 1990 */ 347, 347, 347, 347, 347, 347, 158, 347, 347, 347, - /* 2000 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 2010 */ 347, 347, 347, 347, 150, 347, 347, 347, 347, 347, - /* 2020 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 2030 */ 347, 150, 347, 347, 347, 171, 347, 347, 347, 347, - /* 2040 */ 347, 347, 347, 347, 347, 347, 182, 183, 184, 347, - /* 2050 */ 347, 347, 171, 172, 347, 347, 347, 347, 347, 347, - /* 2060 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 2070 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 2080 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 2090 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 2100 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 2110 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 2120 */ 347, 347, 347, 347, 347, 347, 347, 347, 347, 347, - /* 2130 */ 347, 347, 347, 347, 347, + /* 0 */ 244, 251, 246, 247, 244, 248, 246, 247, 290, 321, + /* 10 */ 322, 270, 12, 13, 264, 270, 296, 260, 241, 336, + /* 20 */ 20, 271, 22, 305, 306, 307, 12, 13, 14, 15, + /* 30 */ 16, 308, 349, 276, 21, 317, 353, 24, 25, 26, + /* 40 */ 27, 28, 29, 30, 31, 32, 269, 47, 269, 273, + /* 50 */ 14, 15, 16, 276, 275, 332, 336, 248, 58, 280, + /* 60 */ 12, 13, 14, 286, 64, 20, 290, 290, 20, 349, + /* 70 */ 22, 241, 58, 353, 20, 12, 13, 14, 15, 16, + /* 80 */ 80, 305, 306, 307, 307, 276, 2, 310, 311, 312, + /* 90 */ 313, 314, 315, 317, 317, 47, 12, 13, 14, 15, + /* 100 */ 16, 253, 102, 89, 269, 296, 58, 248, 12, 13, + /* 110 */ 241, 276, 64, 113, 266, 20, 20, 336, 22, 260, + /* 120 */ 290, 58, 274, 314, 248, 80, 267, 240, 80, 242, + /* 130 */ 349, 354, 355, 254, 353, 276, 248, 258, 329, 330, + /* 140 */ 331, 0, 333, 47, 81, 336, 245, 312, 260, 248, + /* 150 */ 102, 20, 89, 139, 58, 267, 156, 281, 349, 290, + /* 160 */ 64, 113, 353, 41, 276, 24, 25, 26, 27, 28, + /* 170 */ 29, 30, 31, 32, 160, 80, 80, 92, 178, 179, + /* 180 */ 143, 181, 182, 183, 184, 185, 186, 187, 188, 189, + /* 190 */ 190, 191, 192, 193, 194, 195, 111, 112, 102, 114, + /* 200 */ 115, 116, 139, 81, 156, 155, 178, 157, 208, 113, + /* 210 */ 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, + /* 220 */ 249, 250, 286, 160, 241, 289, 178, 179, 292, 181, + /* 230 */ 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, + /* 240 */ 192, 193, 194, 195, 0, 217, 218, 219, 220, 221, + /* 250 */ 213, 214, 156, 12, 13, 14, 15, 16, 208, 196, + /* 260 */ 197, 198, 199, 200, 201, 202, 203, 204, 205, 1, + /* 270 */ 2, 248, 0, 290, 178, 179, 238, 181, 182, 183, + /* 280 */ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, + /* 290 */ 194, 195, 12, 13, 12, 13, 14, 15, 16, 276, + /* 300 */ 20, 0, 22, 208, 60, 61, 62, 63, 4, 65, + /* 310 */ 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, + /* 320 */ 76, 77, 81, 241, 269, 278, 20, 47, 22, 57, + /* 330 */ 275, 241, 285, 286, 296, 280, 276, 314, 208, 208, + /* 340 */ 12, 13, 14, 283, 64, 4, 42, 43, 20, 81, + /* 350 */ 22, 328, 329, 330, 331, 49, 333, 2, 57, 269, + /* 360 */ 80, 12, 13, 14, 15, 16, 276, 12, 13, 14, + /* 370 */ 15, 16, 290, 269, 336, 47, 286, 0, 261, 275, + /* 380 */ 290, 3, 102, 293, 280, 20, 269, 349, 12, 13, + /* 390 */ 151, 353, 64, 113, 277, 241, 20, 307, 22, 20, + /* 400 */ 310, 311, 312, 313, 314, 315, 245, 317, 80, 248, + /* 410 */ 171, 172, 93, 94, 95, 96, 97, 98, 99, 100, + /* 420 */ 101, 102, 103, 47, 105, 106, 107, 108, 109, 110, + /* 430 */ 102, 12, 13, 14, 15, 16, 156, 60, 61, 261, + /* 440 */ 64, 113, 65, 20, 290, 68, 69, 269, 248, 72, + /* 450 */ 73, 74, 57, 165, 166, 277, 80, 169, 178, 179, + /* 460 */ 260, 181, 182, 183, 184, 185, 186, 187, 188, 189, + /* 470 */ 190, 191, 192, 193, 194, 195, 276, 79, 102, 255, + /* 480 */ 256, 139, 60, 61, 156, 87, 241, 65, 208, 113, + /* 490 */ 68, 69, 75, 296, 72, 73, 74, 148, 14, 0, + /* 500 */ 81, 22, 160, 57, 20, 248, 178, 179, 273, 181, + /* 510 */ 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, + /* 520 */ 192, 193, 194, 195, 55, 290, 47, 12, 13, 14, + /* 530 */ 15, 16, 156, 336, 21, 290, 119, 120, 196, 241, + /* 540 */ 305, 306, 307, 64, 45, 147, 349, 34, 79, 208, + /* 550 */ 353, 82, 317, 296, 178, 179, 241, 181, 182, 183, + /* 560 */ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, + /* 570 */ 194, 195, 12, 13, 18, 80, 20, 47, 229, 261, + /* 580 */ 20, 102, 22, 27, 269, 90, 30, 269, 290, 268, + /* 590 */ 20, 276, 113, 336, 64, 277, 33, 241, 241, 241, + /* 600 */ 279, 286, 224, 241, 48, 290, 349, 47, 45, 248, + /* 610 */ 353, 296, 241, 253, 51, 52, 53, 54, 55, 35, + /* 620 */ 308, 260, 307, 4, 64, 310, 311, 312, 313, 314, + /* 630 */ 315, 248, 317, 269, 274, 156, 251, 276, 248, 308, + /* 640 */ 80, 277, 79, 260, 332, 82, 290, 290, 290, 255, + /* 650 */ 256, 336, 290, 241, 285, 286, 271, 178, 179, 276, + /* 660 */ 145, 290, 102, 332, 349, 241, 276, 83, 353, 85, + /* 670 */ 86, 22, 88, 113, 118, 241, 92, 121, 122, 123, + /* 680 */ 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, + /* 690 */ 134, 135, 136, 137, 138, 286, 47, 248, 248, 115, + /* 700 */ 248, 292, 290, 140, 314, 142, 20, 144, 248, 260, + /* 710 */ 260, 269, 260, 241, 290, 145, 156, 241, 241, 329, + /* 720 */ 330, 331, 280, 333, 290, 276, 276, 164, 276, 241, + /* 730 */ 241, 241, 262, 42, 43, 265, 276, 0, 178, 179, + /* 740 */ 92, 181, 182, 183, 184, 185, 186, 187, 188, 189, + /* 750 */ 190, 191, 192, 193, 194, 195, 248, 37, 269, 248, + /* 760 */ 248, 20, 290, 115, 248, 276, 290, 290, 260, 167, + /* 770 */ 168, 260, 260, 41, 314, 286, 260, 41, 290, 290, + /* 780 */ 290, 257, 64, 259, 276, 296, 0, 276, 276, 329, + /* 790 */ 330, 331, 276, 333, 206, 207, 307, 145, 146, 310, + /* 800 */ 311, 312, 313, 314, 315, 241, 317, 41, 22, 320, + /* 810 */ 14, 14, 84, 324, 325, 87, 20, 20, 18, 84, + /* 820 */ 1, 2, 87, 23, 0, 336, 58, 84, 209, 92, + /* 830 */ 87, 145, 41, 269, 0, 35, 36, 47, 349, 39, + /* 840 */ 276, 84, 353, 41, 87, 0, 22, 81, 111, 112, + /* 850 */ 286, 114, 115, 116, 290, 21, 56, 44, 24, 25, + /* 860 */ 26, 27, 28, 29, 30, 31, 32, 22, 91, 241, + /* 870 */ 47, 307, 81, 41, 310, 311, 312, 313, 314, 315, + /* 880 */ 41, 317, 47, 81, 320, 193, 194, 270, 324, 325, + /* 890 */ 326, 270, 270, 80, 41, 270, 19, 269, 299, 64, + /* 900 */ 270, 242, 338, 113, 276, 258, 356, 41, 344, 345, + /* 910 */ 33, 303, 41, 81, 286, 41, 241, 117, 290, 347, + /* 920 */ 81, 341, 45, 41, 247, 249, 41, 207, 51, 52, + /* 930 */ 53, 54, 55, 279, 81, 307, 113, 334, 310, 311, + /* 940 */ 312, 313, 314, 315, 269, 317, 178, 81, 148, 149, + /* 950 */ 150, 276, 81, 153, 41, 81, 79, 41, 158, 82, + /* 960 */ 228, 286, 226, 81, 41, 290, 81, 309, 269, 337, + /* 970 */ 170, 41, 41, 173, 350, 175, 176, 177, 20, 248, + /* 980 */ 45, 241, 307, 355, 304, 310, 311, 312, 313, 314, + /* 990 */ 315, 47, 317, 116, 81, 320, 154, 81, 297, 324, + /* 1000 */ 325, 326, 255, 248, 81, 40, 248, 284, 208, 269, + /* 1010 */ 248, 81, 81, 20, 139, 282, 276, 243, 141, 243, + /* 1020 */ 345, 144, 20, 301, 282, 253, 286, 20, 253, 276, + /* 1030 */ 290, 286, 294, 253, 20, 287, 253, 253, 253, 162, + /* 1040 */ 248, 164, 241, 0, 4, 64, 243, 307, 269, 243, + /* 1050 */ 310, 311, 312, 313, 314, 315, 269, 317, 269, 19, + /* 1060 */ 320, 290, 269, 269, 324, 325, 326, 269, 269, 248, + /* 1070 */ 269, 301, 294, 33, 269, 335, 269, 276, 269, 269, + /* 1080 */ 251, 163, 300, 20, 251, 45, 216, 286, 251, 251, + /* 1090 */ 50, 290, 276, 215, 286, 55, 241, 309, 287, 223, + /* 1100 */ 346, 222, 346, 291, 290, 342, 291, 290, 307, 211, + /* 1110 */ 290, 310, 311, 312, 313, 314, 315, 210, 317, 79, + /* 1120 */ 339, 320, 82, 276, 269, 324, 325, 326, 207, 20, + /* 1130 */ 308, 276, 40, 230, 80, 92, 335, 227, 343, 225, + /* 1140 */ 291, 286, 290, 142, 340, 290, 290, 287, 291, 290, + /* 1150 */ 241, 323, 327, 288, 111, 112, 276, 114, 115, 116, + /* 1160 */ 265, 80, 307, 251, 276, 310, 311, 312, 313, 314, + /* 1170 */ 315, 251, 317, 272, 259, 320, 248, 251, 269, 324, + /* 1180 */ 325, 326, 241, 357, 298, 276, 243, 295, 352, 302, + /* 1190 */ 335, 351, 263, 239, 252, 286, 263, 263, 0, 290, + /* 1200 */ 241, 0, 72, 0, 47, 174, 47, 47, 47, 174, + /* 1210 */ 269, 0, 47, 47, 0, 174, 307, 276, 47, 310, + /* 1220 */ 311, 312, 313, 314, 315, 0, 317, 286, 269, 320, + /* 1230 */ 47, 290, 241, 324, 325, 276, 0, 47, 0, 160, + /* 1240 */ 113, 159, 80, 156, 0, 286, 0, 152, 307, 290, + /* 1250 */ 241, 310, 311, 312, 313, 314, 315, 151, 317, 0, + /* 1260 */ 269, 0, 44, 0, 0, 0, 307, 276, 0, 310, + /* 1270 */ 311, 312, 313, 314, 315, 0, 317, 286, 269, 320, + /* 1280 */ 0, 290, 0, 324, 325, 276, 0, 0, 0, 0, + /* 1290 */ 0, 0, 0, 0, 0, 286, 0, 241, 307, 290, + /* 1300 */ 0, 310, 311, 312, 313, 314, 315, 316, 317, 318, + /* 1310 */ 319, 40, 241, 0, 0, 0, 307, 0, 0, 310, + /* 1320 */ 311, 312, 313, 314, 315, 269, 317, 0, 22, 320, + /* 1330 */ 0, 0, 276, 0, 325, 0, 0, 0, 40, 37, + /* 1340 */ 269, 44, 286, 14, 41, 44, 290, 276, 14, 0, + /* 1350 */ 38, 0, 0, 37, 0, 0, 37, 286, 0, 0, + /* 1360 */ 0, 290, 0, 307, 293, 37, 310, 311, 312, 313, + /* 1370 */ 314, 315, 47, 317, 0, 37, 37, 45, 307, 59, + /* 1380 */ 0, 310, 311, 312, 313, 314, 315, 241, 317, 47, + /* 1390 */ 45, 47, 45, 47, 37, 45, 0, 0, 0, 0, + /* 1400 */ 89, 22, 0, 47, 348, 0, 22, 0, 87, 41, + /* 1410 */ 47, 47, 47, 47, 41, 269, 47, 241, 48, 47, + /* 1420 */ 0, 0, 276, 47, 47, 22, 22, 0, 22, 20, + /* 1430 */ 22, 0, 286, 47, 0, 161, 290, 22, 0, 0, + /* 1440 */ 145, 0, 41, 212, 145, 269, 142, 80, 37, 212, + /* 1450 */ 140, 41, 276, 307, 41, 80, 310, 311, 312, 313, + /* 1460 */ 314, 315, 286, 317, 241, 319, 290, 41, 81, 293, + /* 1470 */ 81, 80, 80, 241, 81, 80, 44, 41, 206, 44, + /* 1480 */ 2, 81, 212, 307, 41, 41, 310, 311, 312, 313, + /* 1490 */ 314, 315, 269, 317, 44, 81, 47, 81, 47, 276, + /* 1500 */ 47, 269, 47, 47, 47, 41, 81, 44, 276, 286, + /* 1510 */ 80, 44, 22, 290, 0, 22, 293, 80, 286, 37, + /* 1520 */ 241, 178, 290, 81, 143, 80, 80, 80, 180, 81, + /* 1530 */ 307, 44, 80, 310, 311, 312, 313, 314, 315, 307, + /* 1540 */ 317, 81, 310, 311, 312, 313, 314, 315, 269, 317, + /* 1550 */ 241, 80, 140, 80, 44, 276, 90, 80, 47, 91, + /* 1560 */ 81, 80, 47, 80, 80, 286, 81, 81, 47, 290, + /* 1570 */ 81, 80, 47, 81, 80, 47, 80, 47, 269, 81, + /* 1580 */ 80, 22, 241, 80, 104, 276, 307, 92, 80, 310, + /* 1590 */ 311, 312, 313, 314, 315, 286, 317, 47, 80, 290, + /* 1600 */ 47, 104, 22, 104, 59, 104, 58, 64, 41, 78, + /* 1610 */ 269, 47, 241, 47, 22, 113, 307, 276, 47, 310, + /* 1620 */ 311, 312, 313, 314, 315, 47, 317, 286, 47, 47, + /* 1630 */ 47, 290, 64, 47, 47, 47, 47, 47, 47, 0, + /* 1640 */ 269, 37, 47, 47, 45, 0, 45, 276, 307, 47, + /* 1650 */ 37, 310, 311, 312, 313, 314, 315, 286, 317, 241, + /* 1660 */ 0, 290, 47, 45, 37, 0, 47, 45, 37, 0, + /* 1670 */ 47, 46, 0, 0, 241, 22, 21, 21, 307, 22, + /* 1680 */ 22, 310, 311, 312, 313, 314, 315, 269, 317, 358, + /* 1690 */ 20, 358, 358, 358, 276, 358, 358, 358, 358, 358, + /* 1700 */ 358, 358, 269, 358, 286, 358, 241, 358, 290, 276, + /* 1710 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 286, + /* 1720 */ 358, 358, 358, 290, 358, 307, 358, 358, 310, 311, + /* 1730 */ 312, 313, 314, 315, 269, 317, 358, 358, 358, 358, + /* 1740 */ 307, 276, 358, 310, 311, 312, 313, 314, 315, 358, + /* 1750 */ 317, 286, 358, 358, 358, 290, 358, 358, 241, 358, + /* 1760 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 1770 */ 358, 358, 307, 358, 358, 310, 311, 312, 313, 314, + /* 1780 */ 315, 358, 317, 358, 358, 358, 269, 358, 241, 358, + /* 1790 */ 358, 358, 358, 276, 358, 358, 358, 358, 358, 358, + /* 1800 */ 358, 358, 358, 286, 358, 358, 358, 290, 358, 358, + /* 1810 */ 358, 358, 358, 358, 358, 358, 269, 358, 358, 358, + /* 1820 */ 241, 358, 358, 276, 307, 358, 358, 310, 311, 312, + /* 1830 */ 313, 314, 315, 286, 317, 241, 358, 290, 358, 358, + /* 1840 */ 358, 358, 358, 358, 358, 358, 358, 358, 269, 358, + /* 1850 */ 358, 358, 358, 358, 307, 276, 358, 310, 311, 312, + /* 1860 */ 313, 314, 315, 269, 317, 286, 358, 358, 358, 290, + /* 1870 */ 276, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 1880 */ 286, 358, 241, 358, 290, 358, 307, 358, 358, 310, + /* 1890 */ 311, 312, 313, 314, 315, 241, 317, 358, 358, 358, + /* 1900 */ 358, 307, 358, 358, 310, 311, 312, 313, 314, 315, + /* 1910 */ 269, 317, 358, 358, 358, 358, 358, 276, 358, 358, + /* 1920 */ 358, 358, 358, 269, 12, 13, 358, 286, 358, 358, + /* 1930 */ 276, 290, 358, 358, 22, 358, 358, 358, 358, 358, + /* 1940 */ 286, 358, 358, 358, 290, 358, 241, 358, 307, 358, + /* 1950 */ 358, 310, 311, 312, 313, 314, 315, 358, 317, 47, + /* 1960 */ 358, 307, 358, 358, 310, 311, 312, 313, 314, 315, + /* 1970 */ 358, 317, 358, 358, 269, 358, 64, 358, 358, 358, + /* 1980 */ 358, 276, 358, 358, 358, 358, 358, 358, 358, 358, + /* 1990 */ 358, 286, 358, 358, 358, 290, 358, 358, 358, 358, + /* 2000 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2010 */ 358, 358, 307, 358, 102, 310, 311, 312, 313, 314, + /* 2020 */ 315, 358, 317, 358, 358, 113, 358, 358, 358, 358, + /* 2030 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2040 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2050 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2060 */ 358, 358, 358, 358, 358, 358, 358, 358, 156, 358, + /* 2070 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2080 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2090 */ 178, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2100 */ 358, 189, 190, 191, 358, 358, 358, 358, 358, 358, + /* 2110 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2120 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2130 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2140 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2150 */ 358, 358, 358, 358, 358, 358, 358, 358, 358, 358, + /* 2160 */ 358, 358, 358, }; -#define YY_SHIFT_COUNT (568) +#define YY_SHIFT_COUNT (590) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1881) +#define YY_SHIFT_MAX (1912) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 734, 0, 39, 216, 216, 216, 216, 255, 216, 216, - /* 10 */ 312, 351, 528, 351, 351, 351, 351, 351, 351, 351, - /* 20 */ 351, 351, 351, 351, 351, 351, 351, 351, 351, 351, - /* 30 */ 351, 351, 351, 351, 351, 351, 40, 188, 188, 188, - /* 40 */ 1864, 1864, 1864, 29, 136, 12, 12, 96, 93, 12, - /* 50 */ 12, 12, 12, 12, 12, 14, 12, 63, 86, 96, - /* 60 */ 90, 63, 12, 12, 63, 12, 63, 63, 90, 63, - /* 70 */ 12, 81, 524, 646, 717, 717, 218, 1881, 400, 1881, - /* 80 */ 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, - /* 90 */ 1881, 1881, 1881, 1881, 1881, 1881, 1881, 1881, 177, 71, - /* 100 */ 360, 521, 70, 70, 70, 561, 521, 125, 90, 63, - /* 110 */ 63, 90, 273, 365, 103, 103, 103, 103, 103, 103, - /* 120 */ 103, 435, 128, 831, 127, 69, 10, 123, 756, 224, - /* 130 */ 667, 480, 551, 480, 678, 506, 517, 727, 917, 934, - /* 140 */ 929, 829, 917, 917, 868, 846, 846, 917, 973, 14, - /* 150 */ 90, 977, 14, 125, 981, 14, 14, 917, 14, 996, - /* 160 */ 63, 63, 63, 63, 63, 63, 63, 63, 63, 63, - /* 170 */ 63, 917, 996, 975, 973, 81, 899, 90, 81, 977, - /* 180 */ 81, 125, 981, 81, 1048, 861, 864, 975, 861, 864, - /* 190 */ 975, 975, 858, 871, 884, 886, 891, 125, 1081, 985, - /* 200 */ 885, 887, 892, 1038, 63, 864, 975, 975, 864, 975, - /* 210 */ 986, 125, 981, 81, 273, 81, 125, 1052, 365, 917, - /* 220 */ 81, 996, 2054, 2054, 2054, 2054, 2054, 2054, 2054, 2054, - /* 230 */ 982, 1838, 644, 1290, 58, 234, 303, 21, 102, 499, - /* 240 */ 398, 497, 490, 490, 490, 490, 490, 490, 490, 490, - /* 250 */ 401, 7, 477, 443, 119, 276, 276, 276, 276, 685, - /* 260 */ 577, 674, 707, 732, 737, 738, 825, 826, 860, 795, - /* 270 */ 391, 682, 758, 792, 793, 851, 686, 713, 684, 805, - /* 280 */ 640, 848, 280, 849, 856, 857, 859, 869, 739, 842, - /* 290 */ 872, 874, 877, 880, 882, 883, 893, 931, 1161, 1164, - /* 300 */ 1101, 1166, 1130, 1000, 1133, 1134, 1136, 1008, 1176, 1139, - /* 310 */ 1141, 1011, 1181, 1144, 1183, 1147, 1186, 1114, 1034, 1036, - /* 320 */ 1084, 1042, 1202, 1203, 1064, 1067, 1213, 1218, 1131, 1220, - /* 330 */ 1221, 1222, 1224, 1225, 1226, 1227, 1228, 1229, 1231, 1232, - /* 340 */ 1233, 1234, 1235, 1236, 1239, 1242, 1095, 1243, 1245, 1246, - /* 350 */ 1249, 1251, 1252, 1237, 1253, 1254, 1255, 1256, 1257, 1260, - /* 360 */ 1263, 1270, 1272, 1230, 1288, 1241, 1293, 1296, 1238, 1261, - /* 370 */ 1247, 1277, 1240, 1264, 1258, 1299, 1265, 1266, 1262, 1306, - /* 380 */ 1269, 1278, 1281, 1308, 1313, 1328, 1329, 1193, 1250, 1294, - /* 390 */ 1311, 1338, 1297, 1298, 1301, 1302, 1273, 1274, 1315, 1318, - /* 400 */ 1319, 1359, 1339, 1360, 1342, 1327, 1367, 1346, 1331, 1370, - /* 410 */ 1349, 1373, 1361, 1364, 1381, 1267, 1347, 1386, 1244, 1366, - /* 420 */ 1268, 1259, 1389, 1390, 1391, 1320, 1353, 1276, 1322, 1330, - /* 430 */ 1192, 1340, 1332, 1343, 1336, 1345, 1348, 1350, 1333, 1316, - /* 440 */ 1354, 1352, 1207, 1363, 1371, 1341, 1214, 1368, 1362, 1374, - /* 450 */ 1380, 1211, 1382, 1385, 1413, 1414, 1415, 1416, 1453, 1285, - /* 460 */ 1387, 1392, 1394, 1395, 1375, 1397, 1398, 1376, 1437, 1289, - /* 470 */ 1401, 1402, 1403, 1405, 1408, 1326, 1409, 1464, 1425, 1351, - /* 480 */ 1410, 1404, 1406, 1407, 1411, 1412, 1420, 1450, 1422, 1421, - /* 490 */ 1423, 1451, 1460, 1434, 1436, 1470, 1439, 1448, 1475, 1452, - /* 500 */ 1449, 1486, 1454, 1455, 1488, 1457, 1430, 1433, 1438, 1440, - /* 510 */ 1466, 1446, 1461, 1462, 1499, 1468, 1435, 1505, 1523, 1495, - /* 520 */ 1497, 1492, 1478, 1482, 1515, 1517, 1518, 1519, 1520, 1537, - /* 530 */ 1522, 1524, 1508, 1273, 1528, 1274, 1529, 1530, 1535, 1553, - /* 540 */ 1556, 1557, 1572, 1558, 1547, 1554, 1598, 1561, 1566, 1560, - /* 550 */ 1612, 1575, 1579, 1573, 1617, 1580, 1583, 1577, 1621, 1585, - /* 560 */ 1587, 1625, 1626, 1605, 1607, 1608, 1610, 1619, 1609, + /* 0 */ 800, 0, 48, 96, 96, 96, 96, 280, 96, 96, + /* 10 */ 328, 376, 560, 376, 376, 376, 376, 376, 376, 376, + /* 20 */ 376, 376, 376, 376, 376, 376, 376, 376, 376, 376, + /* 30 */ 376, 376, 376, 376, 376, 376, 95, 45, 45, 45, + /* 40 */ 1912, 1912, 1912, 131, 50, 54, 54, 130, 304, 304, + /* 50 */ 341, 54, 54, 54, 54, 54, 54, 395, 54, 365, + /* 60 */ 379, 130, 423, 365, 54, 54, 365, 54, 365, 365, + /* 70 */ 423, 365, 54, 446, 556, 63, 14, 14, 13, 479, + /* 80 */ 422, 479, 479, 479, 479, 479, 479, 479, 479, 479, + /* 90 */ 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, + /* 100 */ 584, 306, 484, 484, 272, 530, 570, 570, 570, 301, + /* 110 */ 530, 741, 423, 365, 365, 423, 777, 718, 319, 319, + /* 120 */ 319, 319, 319, 319, 319, 877, 834, 377, 349, 28, + /* 130 */ 288, 37, 691, 649, 648, 686, 588, 720, 588, 796, + /* 140 */ 378, 619, 797, 958, 935, 944, 842, 958, 958, 965, + /* 150 */ 875, 875, 958, 993, 993, 1002, 395, 423, 395, 1007, + /* 160 */ 395, 741, 1014, 395, 395, 958, 395, 993, 365, 365, + /* 170 */ 365, 365, 365, 365, 365, 365, 365, 365, 365, 958, + /* 180 */ 993, 981, 1002, 446, 918, 423, 446, 1007, 446, 741, + /* 190 */ 1014, 446, 1063, 870, 878, 981, 870, 878, 981, 981, + /* 200 */ 876, 879, 898, 907, 921, 741, 1109, 1092, 903, 910, + /* 210 */ 914, 1054, 365, 878, 981, 981, 878, 981, 1001, 741, + /* 220 */ 1014, 446, 777, 446, 741, 1081, 718, 958, 446, 993, + /* 230 */ 2104, 2104, 2104, 2104, 2104, 2104, 2104, 2104, 244, 563, + /* 240 */ 141, 1040, 737, 1043, 241, 84, 355, 515, 419, 85, + /* 250 */ 282, 282, 282, 282, 282, 282, 282, 282, 239, 469, + /* 260 */ 417, 398, 268, 342, 36, 36, 36, 36, 499, 122, + /* 270 */ 728, 735, 743, 757, 786, 824, 845, 513, 602, 652, + /* 280 */ 766, 791, 802, 819, 692, 736, 732, 832, 768, 839, + /* 290 */ 813, 853, 866, 874, 882, 885, 790, 823, 871, 913, + /* 300 */ 916, 923, 930, 931, 495, 835, 1198, 1201, 1130, 1203, + /* 310 */ 1157, 1031, 1159, 1160, 1161, 1035, 1211, 1165, 1166, 1041, + /* 320 */ 1214, 1171, 1225, 1183, 1236, 1190, 1238, 1162, 1079, 1082, + /* 330 */ 1127, 1087, 1244, 1246, 1095, 1106, 1259, 1261, 1218, 1263, + /* 340 */ 1264, 1265, 1268, 1275, 1280, 1282, 1286, 1287, 1288, 1289, + /* 350 */ 1290, 1291, 1292, 1293, 1294, 1296, 1300, 1271, 1313, 1314, + /* 360 */ 1315, 1317, 1318, 1327, 1306, 1330, 1331, 1333, 1335, 1336, + /* 370 */ 1337, 1298, 1302, 1303, 1329, 1297, 1334, 1301, 1349, 1312, + /* 380 */ 1316, 1351, 1352, 1354, 1355, 1319, 1358, 1320, 1359, 1360, + /* 390 */ 1325, 1332, 1328, 1362, 1342, 1345, 1338, 1374, 1344, 1347, + /* 400 */ 1339, 1380, 1346, 1350, 1357, 1396, 1397, 1398, 1399, 1311, + /* 410 */ 1321, 1356, 1379, 1402, 1363, 1364, 1365, 1366, 1368, 1373, + /* 420 */ 1369, 1372, 1376, 1405, 1384, 1407, 1403, 1370, 1420, 1404, + /* 430 */ 1377, 1421, 1406, 1427, 1408, 1409, 1431, 1295, 1386, 1434, + /* 440 */ 1274, 1415, 1299, 1304, 1438, 1439, 1441, 1367, 1411, 1310, + /* 450 */ 1401, 1410, 1231, 1387, 1413, 1389, 1375, 1391, 1392, 1393, + /* 460 */ 1426, 1432, 1395, 1436, 1237, 1400, 1414, 1435, 1272, 1443, + /* 470 */ 1450, 1416, 1444, 1270, 1449, 1451, 1453, 1455, 1456, 1457, + /* 480 */ 1478, 1343, 1464, 1425, 1430, 1442, 1463, 1437, 1445, 1467, + /* 490 */ 1490, 1348, 1446, 1448, 1460, 1447, 1452, 1381, 1471, 1514, + /* 500 */ 1482, 1412, 1473, 1466, 1487, 1510, 1477, 1479, 1481, 1493, + /* 510 */ 1483, 1468, 1485, 1511, 1515, 1484, 1486, 1521, 1491, 1489, + /* 520 */ 1525, 1494, 1492, 1528, 1496, 1498, 1530, 1500, 1480, 1497, + /* 530 */ 1499, 1501, 1559, 1495, 1503, 1508, 1550, 1518, 1502, 1553, + /* 540 */ 1580, 1545, 1548, 1543, 1531, 1567, 1564, 1566, 1571, 1578, + /* 550 */ 1581, 1592, 1582, 1583, 1568, 1368, 1586, 1373, 1587, 1588, + /* 560 */ 1589, 1590, 1591, 1595, 1639, 1596, 1599, 1604, 1645, 1602, + /* 570 */ 1601, 1613, 1660, 1615, 1618, 1627, 1665, 1619, 1622, 1631, + /* 580 */ 1669, 1623, 1625, 1672, 1673, 1653, 1655, 1657, 1658, 1656, + /* 590 */ 1670, }; -#define YY_REDUCE_COUNT (229) -#define YY_REDUCE_MIN (-323) -#define YY_REDUCE_MAX (1647) +#define YY_REDUCE_COUNT (237) +#define YY_REDUCE_MIN (-317) +#define YY_REDUCE_MAX (1705) static const short yy_reduce_ofst[] = { - /* 0 */ -191, -177, 459, 555, 313, 659, 706, 794, -234, 841, - /* 10 */ -1, 894, 905, 965, 80, 983, 1016, 1046, 1076, 1129, - /* 20 */ 1140, 1200, 1215, 1275, 1286, 1305, 1335, 1388, 1399, 1459, - /* 30 */ 1474, 1534, 1545, 1564, 1594, 1647, 485, 278, -219, 364, - /* 40 */ -252, 502, -278, 36, -54, -201, 320, 283, -323, -235, - /* 50 */ 82, 315, 325, 478, 526, 204, 536, -182, -254, -233, - /* 60 */ -272, 258, 584, 625, 1, 676, 431, 77, -189, 487, - /* 70 */ 87, 319, -8, -303, -303, -303, -102, -208, -218, 17, - /* 80 */ 75, 79, 141, 172, 184, 191, 240, 241, 341, 352, - /* 90 */ 353, 355, 457, 460, 461, 467, 492, 501, 99, 132, - /* 100 */ 186, 171, -159, 51, 302, 307, 178, 213, 281, 399, - /* 110 */ 408, 389, 379, -11, 196, 210, 323, 429, 531, 543, - /* 120 */ 560, 162, 376, 509, 404, 549, 503, 557, 657, 631, - /* 130 */ 603, 597, 597, 597, 663, 589, 610, 663, 705, 687, - /* 140 */ 731, 692, 744, 746, 716, 719, 720, 752, 704, 753, - /* 150 */ 721, 715, 757, 735, 728, 761, 769, 773, 772, 781, - /* 160 */ 760, 764, 765, 766, 767, 768, 771, 774, 775, 780, - /* 170 */ 796, 787, 817, 776, 770, 818, 777, 783, 822, 779, - /* 180 */ 824, 799, 789, 828, 778, 736, 797, 801, 743, 802, - /* 190 */ 804, 806, 749, 782, 755, 759, 597, 827, 807, 786, - /* 200 */ 763, 762, 784, 800, 663, 834, 836, 838, 843, 839, - /* 210 */ 844, 862, 850, 890, 876, 895, 866, 888, 898, 908, - /* 220 */ 896, 897, 870, 847, 867, 901, 904, 906, 919, 930, + /* 0 */ 38, 489, 564, 675, 740, 801, 855, 315, 909, 959, + /* 10 */ 991, -223, 1009, 90, 1056, 628, 1071, 1146, 1176, 1223, + /* 20 */ 941, 1232, 1279, 1309, 1341, 1371, 1418, 1433, 1465, 1517, + /* 30 */ 1547, 1579, 1594, 1641, 1654, 1705, -191, 23, 390, 460, + /* 40 */ -224, 235, -282, 257, -280, -141, -112, 197, -244, -240, + /* 50 */ -317, -243, 200, 361, 383, 449, 450, -152, 452, -221, + /* 60 */ -165, -219, -64, 117, 508, 511, 55, 512, 178, 104, + /* 70 */ 47, 318, 516, -250, -124, -312, -312, -312, -113, -170, + /* 80 */ -121, -131, -17, 82, 154, 245, 298, 356, 357, 358, + /* 90 */ 362, 371, 412, 424, 434, 472, 476, 477, 488, 490, + /* 100 */ 321, -29, -99, 161, 360, 224, -277, 312, 331, 385, + /* 110 */ 394, 60, 409, 364, 442, 369, 470, 524, -259, -255, + /* 120 */ 617, 621, 622, 625, 630, 599, 659, 647, 550, 572, + /* 130 */ 608, 580, 677, 676, 654, 658, 603, 603, 603, 699, + /* 140 */ 624, 632, 699, 731, 680, 747, 701, 755, 758, 723, + /* 150 */ 733, 742, 762, 774, 776, 722, 772, 745, 775, 738, + /* 160 */ 780, 753, 748, 783, 784, 792, 785, 803, 779, 787, + /* 170 */ 789, 793, 794, 798, 799, 805, 807, 809, 810, 821, + /* 180 */ 806, 771, 770, 829, 782, 808, 833, 778, 837, 816, + /* 190 */ 811, 838, 788, 754, 812, 814, 756, 815, 817, 820, + /* 200 */ 795, 763, 804, 781, 603, 847, 822, 825, 826, 836, + /* 210 */ 840, 828, 699, 849, 852, 856, 857, 859, 865, 880, + /* 220 */ 860, 912, 895, 920, 888, 901, 915, 928, 926, 943, + /* 230 */ 886, 887, 892, 929, 933, 934, 942, 954, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 10 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 20 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 30 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 40 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 50 */ 1286, 1286, 1286, 1286, 1286, 1345, 1286, 1286, 1286, 1286, - /* 60 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 70 */ 1286, 1343, 1482, 1286, 1645, 1286, 1286, 1286, 1286, 1286, - /* 80 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 90 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 100 */ 1345, 1286, 1656, 1656, 1656, 1343, 1286, 1286, 1286, 1286, - /* 110 */ 1286, 1286, 1438, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 120 */ 1286, 1520, 1286, 1286, 1721, 1286, 1526, 1680, 1286, 1391, - /* 130 */ 1672, 1648, 1662, 1649, 1286, 1706, 1665, 1286, 1286, 1286, - /* 140 */ 1286, 1512, 1286, 1286, 1487, 1484, 1484, 1286, 1286, 1345, - /* 150 */ 1286, 1286, 1345, 1286, 1286, 1345, 1345, 1286, 1345, 1286, - /* 160 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 170 */ 1286, 1286, 1286, 1286, 1286, 1343, 1522, 1286, 1343, 1286, - /* 180 */ 1343, 1286, 1286, 1343, 1286, 1687, 1685, 1286, 1687, 1685, - /* 190 */ 1286, 1286, 1699, 1695, 1678, 1676, 1662, 1286, 1286, 1286, - /* 200 */ 1724, 1712, 1708, 1286, 1286, 1685, 1286, 1286, 1685, 1286, - /* 210 */ 1495, 1286, 1286, 1343, 1286, 1343, 1286, 1407, 1286, 1286, - /* 220 */ 1343, 1286, 1514, 1528, 1504, 1441, 1441, 1441, 1346, 1291, - /* 230 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 240 */ 1286, 1403, 1590, 1698, 1697, 1621, 1620, 1619, 1617, 1589, - /* 250 */ 1286, 1286, 1286, 1286, 1286, 1583, 1584, 1582, 1581, 1286, - /* 260 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 270 */ 1286, 1286, 1286, 1286, 1286, 1646, 1286, 1709, 1713, 1286, - /* 280 */ 1286, 1286, 1567, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 290 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 300 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 310 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 320 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 330 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 340 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 350 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 360 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 370 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 380 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 390 */ 1286, 1286, 1286, 1286, 1286, 1286, 1372, 1371, 1286, 1286, - /* 400 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 410 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 420 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1669, 1679, - /* 430 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1567, - /* 440 */ 1286, 1696, 1286, 1655, 1651, 1286, 1286, 1647, 1286, 1286, - /* 450 */ 1707, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1641, 1286, - /* 460 */ 1614, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1577, - /* 470 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 480 */ 1286, 1286, 1566, 1286, 1605, 1286, 1286, 1286, 1286, 1286, - /* 490 */ 1286, 1286, 1286, 1435, 1286, 1286, 1286, 1286, 1286, 1286, - /* 500 */ 1286, 1286, 1286, 1286, 1286, 1286, 1420, 1418, 1417, 1416, - /* 510 */ 1286, 1413, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 520 */ 1286, 1286, 1286, 1365, 1286, 1286, 1286, 1286, 1286, 1286, - /* 530 */ 1286, 1286, 1286, 1356, 1286, 1355, 1286, 1286, 1286, 1286, - /* 540 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 550 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, - /* 560 */ 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, 1286, + /* 0 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 10 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 20 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 30 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 40 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 50 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1396, 1327, 1327, + /* 60 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 70 */ 1327, 1327, 1327, 1394, 1534, 1327, 1698, 1327, 1327, 1327, + /* 80 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 90 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 100 */ 1327, 1327, 1327, 1327, 1396, 1327, 1709, 1709, 1709, 1394, + /* 110 */ 1327, 1327, 1327, 1327, 1327, 1327, 1489, 1327, 1327, 1327, + /* 120 */ 1327, 1327, 1327, 1327, 1327, 1572, 1327, 1327, 1774, 1327, + /* 130 */ 1578, 1733, 1327, 1327, 1442, 1725, 1701, 1715, 1702, 1327, + /* 140 */ 1759, 1718, 1327, 1327, 1327, 1327, 1564, 1327, 1327, 1539, + /* 150 */ 1536, 1536, 1327, 1327, 1327, 1327, 1396, 1327, 1396, 1327, + /* 160 */ 1396, 1327, 1327, 1396, 1396, 1327, 1396, 1327, 1327, 1327, + /* 170 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 180 */ 1327, 1327, 1327, 1394, 1574, 1327, 1394, 1327, 1394, 1327, + /* 190 */ 1327, 1394, 1327, 1740, 1738, 1327, 1740, 1738, 1327, 1327, + /* 200 */ 1752, 1748, 1731, 1729, 1715, 1327, 1327, 1327, 1777, 1765, + /* 210 */ 1761, 1327, 1327, 1738, 1327, 1327, 1738, 1327, 1547, 1327, + /* 220 */ 1327, 1394, 1327, 1394, 1327, 1458, 1327, 1327, 1394, 1327, + /* 230 */ 1566, 1580, 1556, 1492, 1492, 1492, 1397, 1332, 1327, 1327, + /* 240 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1454, + /* 250 */ 1643, 1751, 1750, 1674, 1673, 1672, 1670, 1642, 1327, 1327, + /* 260 */ 1327, 1327, 1327, 1327, 1636, 1637, 1635, 1634, 1327, 1327, + /* 270 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 280 */ 1327, 1327, 1327, 1699, 1327, 1762, 1766, 1327, 1327, 1327, + /* 290 */ 1620, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 300 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 310 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 320 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 330 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 340 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 350 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 360 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 370 */ 1327, 1327, 1327, 1361, 1327, 1327, 1327, 1327, 1327, 1327, + /* 380 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 390 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 400 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 410 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1423, 1422, + /* 420 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 430 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 440 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 450 */ 1722, 1732, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 460 */ 1327, 1620, 1327, 1749, 1327, 1708, 1704, 1327, 1327, 1700, + /* 470 */ 1327, 1327, 1760, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 480 */ 1694, 1327, 1667, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 490 */ 1327, 1630, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 500 */ 1327, 1327, 1327, 1327, 1619, 1327, 1658, 1327, 1327, 1327, + /* 510 */ 1327, 1327, 1327, 1327, 1327, 1486, 1327, 1327, 1327, 1327, + /* 520 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1471, 1469, + /* 530 */ 1468, 1467, 1327, 1464, 1327, 1327, 1327, 1327, 1327, 1327, + /* 540 */ 1327, 1327, 1327, 1327, 1327, 1416, 1327, 1327, 1327, 1327, + /* 550 */ 1327, 1327, 1327, 1327, 1327, 1407, 1327, 1406, 1327, 1327, + /* 560 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 570 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 580 */ 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, 1327, + /* 590 */ 1327, }; /********** End of lemon-generated parsing tables *****************************/ @@ -838,6 +854,15 @@ static const YYCODETYPE yyFallback[] = { 0, /* USER => nothing */ 0, /* PRIVILEGE => nothing */ 0, /* DROP => nothing */ + 0, /* GRANT => nothing */ + 0, /* ON => nothing */ + 0, /* TO => nothing */ + 0, /* REVOKE => nothing */ + 0, /* FROM => nothing */ + 0, /* NK_COMMA => nothing */ + 0, /* READ => nothing */ + 0, /* WRITE => nothing */ + 0, /* NK_DOT => nothing */ 0, /* DNODE => nothing */ 0, /* PORT => nothing */ 0, /* NK_INTEGER => nothing */ @@ -845,7 +870,6 @@ static const YYCODETYPE yyFallback[] = { 0, /* NK_IPTOKEN => nothing */ 0, /* LOCAL => nothing */ 0, /* QNODE => nothing */ - 0, /* ON => nothing */ 0, /* BNODE => nothing */ 0, /* SNODE => nothing */ 0, /* MNODE => nothing */ @@ -872,7 +896,6 @@ static const YYCODETYPE yyFallback[] = { 0, /* VGROUPS => nothing */ 0, /* SINGLE_STABLE => nothing */ 0, /* RETENTIONS => nothing */ - 0, /* NK_COMMA => nothing */ 0, /* NK_COLON => nothing */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ @@ -887,7 +910,6 @@ static const YYCODETYPE yyFallback[] = { 0, /* NK_EQ => nothing */ 0, /* USING => nothing */ 0, /* TAGS => nothing */ - 0, /* NK_DOT => nothing */ 0, /* COMMENT => nothing */ 0, /* BOOL => nothing */ 0, /* TINYINT => nothing */ @@ -922,7 +944,6 @@ static const YYCODETYPE yyFallback[] = { 0, /* QNODES => nothing */ 0, /* FUNCTIONS => nothing */ 0, /* INDEXES => nothing */ - 0, /* FROM => nothing */ 0, /* ACCOUNTS => nothing */ 0, /* APPS => nothing */ 0, /* CONNECTIONS => nothing */ @@ -935,6 +956,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* BNODES => nothing */ 0, /* SNODES => nothing */ 0, /* CLUSTER => nothing */ + 0, /* TRANSACTIONS => nothing */ 0, /* LIKE => nothing */ 0, /* INDEX => nothing */ 0, /* FULLTEXT => nothing */ @@ -968,6 +990,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* WATERMARK => nothing */ 0, /* KILL => nothing */ 0, /* CONNECTION => nothing */ + 0, /* TRANSACTION => nothing */ 0, /* MERGE => nothing */ 0, /* VGROUP => nothing */ 0, /* REDISTRIBUTE => nothing */ @@ -1027,12 +1050,12 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ID => nothing */ - 224, /* NK_BITNOT => ID */ - 224, /* INSERT => ID */ - 224, /* VALUES => ID */ - 224, /* IMPORT => ID */ - 224, /* NK_SEMI => ID */ - 224, /* FILE => ID */ + 231, /* NK_BITNOT => ID */ + 231, /* INSERT => ID */ + 231, /* VALUES => ID */ + 231, /* IMPORT => ID */ + 231, /* NK_SEMI => ID */ + 231, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -1156,317 +1179,328 @@ static const char *const yyTokenName[] = { /* 33 */ "USER", /* 34 */ "PRIVILEGE", /* 35 */ "DROP", - /* 36 */ "DNODE", - /* 37 */ "PORT", - /* 38 */ "NK_INTEGER", - /* 39 */ "DNODES", - /* 40 */ "NK_IPTOKEN", - /* 41 */ "LOCAL", - /* 42 */ "QNODE", - /* 43 */ "ON", - /* 44 */ "BNODE", - /* 45 */ "SNODE", - /* 46 */ "MNODE", - /* 47 */ "DATABASE", - /* 48 */ "USE", - /* 49 */ "IF", - /* 50 */ "NOT", - /* 51 */ "EXISTS", - /* 52 */ "BUFFER", - /* 53 */ "CACHELAST", - /* 54 */ "COMP", - /* 55 */ "DAYS", - /* 56 */ "NK_VARIABLE", - /* 57 */ "FSYNC", - /* 58 */ "MAXROWS", - /* 59 */ "MINROWS", - /* 60 */ "KEEP", - /* 61 */ "PAGES", - /* 62 */ "PAGESIZE", - /* 63 */ "PRECISION", - /* 64 */ "REPLICA", - /* 65 */ "STRICT", - /* 66 */ "WAL", - /* 67 */ "VGROUPS", - /* 68 */ "SINGLE_STABLE", - /* 69 */ "RETENTIONS", - /* 70 */ "NK_COMMA", - /* 71 */ "NK_COLON", - /* 72 */ "TABLE", - /* 73 */ "NK_LP", - /* 74 */ "NK_RP", - /* 75 */ "STABLE", - /* 76 */ "ADD", - /* 77 */ "COLUMN", - /* 78 */ "MODIFY", - /* 79 */ "RENAME", - /* 80 */ "TAG", - /* 81 */ "SET", - /* 82 */ "NK_EQ", - /* 83 */ "USING", - /* 84 */ "TAGS", - /* 85 */ "NK_DOT", - /* 86 */ "COMMENT", - /* 87 */ "BOOL", - /* 88 */ "TINYINT", - /* 89 */ "SMALLINT", - /* 90 */ "INT", - /* 91 */ "INTEGER", - /* 92 */ "BIGINT", - /* 93 */ "FLOAT", - /* 94 */ "DOUBLE", - /* 95 */ "BINARY", - /* 96 */ "TIMESTAMP", - /* 97 */ "NCHAR", - /* 98 */ "UNSIGNED", - /* 99 */ "JSON", - /* 100 */ "VARCHAR", - /* 101 */ "MEDIUMBLOB", - /* 102 */ "BLOB", - /* 103 */ "VARBINARY", - /* 104 */ "DECIMAL", - /* 105 */ "DELAY", - /* 106 */ "FILE_FACTOR", - /* 107 */ "NK_FLOAT", - /* 108 */ "ROLLUP", - /* 109 */ "TTL", - /* 110 */ "SMA", - /* 111 */ "SHOW", - /* 112 */ "DATABASES", - /* 113 */ "TABLES", - /* 114 */ "STABLES", - /* 115 */ "MNODES", - /* 116 */ "MODULES", - /* 117 */ "QNODES", - /* 118 */ "FUNCTIONS", - /* 119 */ "INDEXES", - /* 120 */ "FROM", - /* 121 */ "ACCOUNTS", - /* 122 */ "APPS", - /* 123 */ "CONNECTIONS", - /* 124 */ "LICENCE", - /* 125 */ "GRANTS", - /* 126 */ "QUERIES", - /* 127 */ "SCORES", - /* 128 */ "TOPICS", - /* 129 */ "VARIABLES", - /* 130 */ "BNODES", - /* 131 */ "SNODES", - /* 132 */ "CLUSTER", - /* 133 */ "LIKE", - /* 134 */ "INDEX", - /* 135 */ "FULLTEXT", - /* 136 */ "FUNCTION", - /* 137 */ "INTERVAL", - /* 138 */ "TOPIC", - /* 139 */ "AS", - /* 140 */ "WITH", - /* 141 */ "SCHEMA", - /* 142 */ "DESC", - /* 143 */ "DESCRIBE", - /* 144 */ "RESET", - /* 145 */ "QUERY", - /* 146 */ "CACHE", - /* 147 */ "EXPLAIN", - /* 148 */ "ANALYZE", - /* 149 */ "VERBOSE", - /* 150 */ "NK_BOOL", - /* 151 */ "RATIO", - /* 152 */ "COMPACT", - /* 153 */ "VNODES", - /* 154 */ "IN", - /* 155 */ "OUTPUTTYPE", - /* 156 */ "AGGREGATE", - /* 157 */ "BUFSIZE", - /* 158 */ "STREAM", - /* 159 */ "INTO", - /* 160 */ "TRIGGER", - /* 161 */ "AT_ONCE", - /* 162 */ "WINDOW_CLOSE", - /* 163 */ "WATERMARK", - /* 164 */ "KILL", - /* 165 */ "CONNECTION", - /* 166 */ "MERGE", - /* 167 */ "VGROUP", - /* 168 */ "REDISTRIBUTE", - /* 169 */ "SPLIT", - /* 170 */ "SYNCDB", - /* 171 */ "NULL", - /* 172 */ "NK_QUESTION", - /* 173 */ "NK_ARROW", - /* 174 */ "ROWTS", - /* 175 */ "TBNAME", - /* 176 */ "QSTARTTS", - /* 177 */ "QENDTS", - /* 178 */ "WSTARTTS", - /* 179 */ "WENDTS", - /* 180 */ "WDURATION", - /* 181 */ "CAST", - /* 182 */ "NOW", - /* 183 */ "TODAY", - /* 184 */ "TIMEZONE", - /* 185 */ "COUNT", - /* 186 */ "FIRST", - /* 187 */ "LAST", - /* 188 */ "LAST_ROW", - /* 189 */ "BETWEEN", - /* 190 */ "IS", - /* 191 */ "NK_LT", - /* 192 */ "NK_GT", - /* 193 */ "NK_LE", - /* 194 */ "NK_GE", - /* 195 */ "NK_NE", - /* 196 */ "MATCH", - /* 197 */ "NMATCH", - /* 198 */ "CONTAINS", - /* 199 */ "JOIN", - /* 200 */ "INNER", - /* 201 */ "SELECT", - /* 202 */ "DISTINCT", - /* 203 */ "WHERE", - /* 204 */ "PARTITION", - /* 205 */ "BY", - /* 206 */ "SESSION", - /* 207 */ "STATE_WINDOW", - /* 208 */ "SLIDING", - /* 209 */ "FILL", - /* 210 */ "VALUE", - /* 211 */ "NONE", - /* 212 */ "PREV", - /* 213 */ "LINEAR", - /* 214 */ "NEXT", - /* 215 */ "GROUP", - /* 216 */ "HAVING", - /* 217 */ "ORDER", - /* 218 */ "SLIMIT", - /* 219 */ "SOFFSET", - /* 220 */ "LIMIT", - /* 221 */ "OFFSET", - /* 222 */ "ASC", - /* 223 */ "NULLS", - /* 224 */ "ID", - /* 225 */ "NK_BITNOT", - /* 226 */ "INSERT", - /* 227 */ "VALUES", - /* 228 */ "IMPORT", - /* 229 */ "NK_SEMI", - /* 230 */ "FILE", - /* 231 */ "cmd", - /* 232 */ "account_options", - /* 233 */ "alter_account_options", - /* 234 */ "literal", - /* 235 */ "alter_account_option", - /* 236 */ "user_name", - /* 237 */ "dnode_endpoint", - /* 238 */ "dnode_host_name", - /* 239 */ "not_exists_opt", - /* 240 */ "db_name", - /* 241 */ "db_options", - /* 242 */ "exists_opt", - /* 243 */ "alter_db_options", - /* 244 */ "integer_list", - /* 245 */ "variable_list", - /* 246 */ "retention_list", - /* 247 */ "alter_db_option", - /* 248 */ "retention", - /* 249 */ "full_table_name", - /* 250 */ "column_def_list", - /* 251 */ "tags_def_opt", - /* 252 */ "table_options", - /* 253 */ "multi_create_clause", - /* 254 */ "tags_def", - /* 255 */ "multi_drop_clause", - /* 256 */ "alter_table_clause", - /* 257 */ "alter_table_options", - /* 258 */ "column_name", - /* 259 */ "type_name", - /* 260 */ "create_subtable_clause", - /* 261 */ "specific_tags_opt", - /* 262 */ "literal_list", - /* 263 */ "drop_table_clause", - /* 264 */ "col_name_list", - /* 265 */ "table_name", - /* 266 */ "column_def", - /* 267 */ "func_name_list", - /* 268 */ "alter_table_option", - /* 269 */ "col_name", - /* 270 */ "db_name_cond_opt", - /* 271 */ "like_pattern_opt", - /* 272 */ "table_name_cond", - /* 273 */ "from_db_opt", - /* 274 */ "func_name", - /* 275 */ "function_name", - /* 276 */ "index_name", - /* 277 */ "index_options", - /* 278 */ "func_list", - /* 279 */ "duration_literal", - /* 280 */ "sliding_opt", - /* 281 */ "func", - /* 282 */ "expression_list", - /* 283 */ "topic_name", - /* 284 */ "topic_options", - /* 285 */ "query_expression", - /* 286 */ "analyze_opt", - /* 287 */ "explain_options", - /* 288 */ "agg_func_opt", - /* 289 */ "bufsize_opt", - /* 290 */ "stream_name", - /* 291 */ "stream_options", - /* 292 */ "into_opt", - /* 293 */ "dnode_list", - /* 294 */ "signed", - /* 295 */ "signed_literal", - /* 296 */ "literal_func", - /* 297 */ "table_alias", - /* 298 */ "column_alias", - /* 299 */ "expression", - /* 300 */ "pseudo_column", - /* 301 */ "column_reference", - /* 302 */ "function_expression", - /* 303 */ "subquery", - /* 304 */ "star_func", - /* 305 */ "star_func_para_list", - /* 306 */ "noarg_func", - /* 307 */ "other_para_list", - /* 308 */ "star_func_para", - /* 309 */ "predicate", - /* 310 */ "compare_op", - /* 311 */ "in_op", - /* 312 */ "in_predicate_value", - /* 313 */ "boolean_value_expression", - /* 314 */ "boolean_primary", - /* 315 */ "common_expression", - /* 316 */ "from_clause", - /* 317 */ "table_reference_list", - /* 318 */ "table_reference", - /* 319 */ "table_primary", - /* 320 */ "joined_table", - /* 321 */ "alias_opt", - /* 322 */ "parenthesized_joined_table", - /* 323 */ "join_type", - /* 324 */ "search_condition", - /* 325 */ "query_specification", - /* 326 */ "set_quantifier_opt", - /* 327 */ "select_list", - /* 328 */ "where_clause_opt", - /* 329 */ "partition_by_clause_opt", - /* 330 */ "twindow_clause_opt", - /* 331 */ "group_by_clause_opt", - /* 332 */ "having_clause_opt", - /* 333 */ "select_sublist", - /* 334 */ "select_item", - /* 335 */ "fill_opt", - /* 336 */ "fill_mode", - /* 337 */ "group_by_list", - /* 338 */ "query_expression_body", - /* 339 */ "order_by_clause_opt", - /* 340 */ "slimit_clause_opt", - /* 341 */ "limit_clause_opt", - /* 342 */ "query_primary", - /* 343 */ "sort_specification_list", - /* 344 */ "sort_specification", - /* 345 */ "ordering_specification_opt", - /* 346 */ "null_ordering_opt", + /* 36 */ "GRANT", + /* 37 */ "ON", + /* 38 */ "TO", + /* 39 */ "REVOKE", + /* 40 */ "FROM", + /* 41 */ "NK_COMMA", + /* 42 */ "READ", + /* 43 */ "WRITE", + /* 44 */ "NK_DOT", + /* 45 */ "DNODE", + /* 46 */ "PORT", + /* 47 */ "NK_INTEGER", + /* 48 */ "DNODES", + /* 49 */ "NK_IPTOKEN", + /* 50 */ "LOCAL", + /* 51 */ "QNODE", + /* 52 */ "BNODE", + /* 53 */ "SNODE", + /* 54 */ "MNODE", + /* 55 */ "DATABASE", + /* 56 */ "USE", + /* 57 */ "IF", + /* 58 */ "NOT", + /* 59 */ "EXISTS", + /* 60 */ "BUFFER", + /* 61 */ "CACHELAST", + /* 62 */ "COMP", + /* 63 */ "DAYS", + /* 64 */ "NK_VARIABLE", + /* 65 */ "FSYNC", + /* 66 */ "MAXROWS", + /* 67 */ "MINROWS", + /* 68 */ "KEEP", + /* 69 */ "PAGES", + /* 70 */ "PAGESIZE", + /* 71 */ "PRECISION", + /* 72 */ "REPLICA", + /* 73 */ "STRICT", + /* 74 */ "WAL", + /* 75 */ "VGROUPS", + /* 76 */ "SINGLE_STABLE", + /* 77 */ "RETENTIONS", + /* 78 */ "NK_COLON", + /* 79 */ "TABLE", + /* 80 */ "NK_LP", + /* 81 */ "NK_RP", + /* 82 */ "STABLE", + /* 83 */ "ADD", + /* 84 */ "COLUMN", + /* 85 */ "MODIFY", + /* 86 */ "RENAME", + /* 87 */ "TAG", + /* 88 */ "SET", + /* 89 */ "NK_EQ", + /* 90 */ "USING", + /* 91 */ "TAGS", + /* 92 */ "COMMENT", + /* 93 */ "BOOL", + /* 94 */ "TINYINT", + /* 95 */ "SMALLINT", + /* 96 */ "INT", + /* 97 */ "INTEGER", + /* 98 */ "BIGINT", + /* 99 */ "FLOAT", + /* 100 */ "DOUBLE", + /* 101 */ "BINARY", + /* 102 */ "TIMESTAMP", + /* 103 */ "NCHAR", + /* 104 */ "UNSIGNED", + /* 105 */ "JSON", + /* 106 */ "VARCHAR", + /* 107 */ "MEDIUMBLOB", + /* 108 */ "BLOB", + /* 109 */ "VARBINARY", + /* 110 */ "DECIMAL", + /* 111 */ "DELAY", + /* 112 */ "FILE_FACTOR", + /* 113 */ "NK_FLOAT", + /* 114 */ "ROLLUP", + /* 115 */ "TTL", + /* 116 */ "SMA", + /* 117 */ "SHOW", + /* 118 */ "DATABASES", + /* 119 */ "TABLES", + /* 120 */ "STABLES", + /* 121 */ "MNODES", + /* 122 */ "MODULES", + /* 123 */ "QNODES", + /* 124 */ "FUNCTIONS", + /* 125 */ "INDEXES", + /* 126 */ "ACCOUNTS", + /* 127 */ "APPS", + /* 128 */ "CONNECTIONS", + /* 129 */ "LICENCE", + /* 130 */ "GRANTS", + /* 131 */ "QUERIES", + /* 132 */ "SCORES", + /* 133 */ "TOPICS", + /* 134 */ "VARIABLES", + /* 135 */ "BNODES", + /* 136 */ "SNODES", + /* 137 */ "CLUSTER", + /* 138 */ "TRANSACTIONS", + /* 139 */ "LIKE", + /* 140 */ "INDEX", + /* 141 */ "FULLTEXT", + /* 142 */ "FUNCTION", + /* 143 */ "INTERVAL", + /* 144 */ "TOPIC", + /* 145 */ "AS", + /* 146 */ "WITH", + /* 147 */ "SCHEMA", + /* 148 */ "DESC", + /* 149 */ "DESCRIBE", + /* 150 */ "RESET", + /* 151 */ "QUERY", + /* 152 */ "CACHE", + /* 153 */ "EXPLAIN", + /* 154 */ "ANALYZE", + /* 155 */ "VERBOSE", + /* 156 */ "NK_BOOL", + /* 157 */ "RATIO", + /* 158 */ "COMPACT", + /* 159 */ "VNODES", + /* 160 */ "IN", + /* 161 */ "OUTPUTTYPE", + /* 162 */ "AGGREGATE", + /* 163 */ "BUFSIZE", + /* 164 */ "STREAM", + /* 165 */ "INTO", + /* 166 */ "TRIGGER", + /* 167 */ "AT_ONCE", + /* 168 */ "WINDOW_CLOSE", + /* 169 */ "WATERMARK", + /* 170 */ "KILL", + /* 171 */ "CONNECTION", + /* 172 */ "TRANSACTION", + /* 173 */ "MERGE", + /* 174 */ "VGROUP", + /* 175 */ "REDISTRIBUTE", + /* 176 */ "SPLIT", + /* 177 */ "SYNCDB", + /* 178 */ "NULL", + /* 179 */ "NK_QUESTION", + /* 180 */ "NK_ARROW", + /* 181 */ "ROWTS", + /* 182 */ "TBNAME", + /* 183 */ "QSTARTTS", + /* 184 */ "QENDTS", + /* 185 */ "WSTARTTS", + /* 186 */ "WENDTS", + /* 187 */ "WDURATION", + /* 188 */ "CAST", + /* 189 */ "NOW", + /* 190 */ "TODAY", + /* 191 */ "TIMEZONE", + /* 192 */ "COUNT", + /* 193 */ "FIRST", + /* 194 */ "LAST", + /* 195 */ "LAST_ROW", + /* 196 */ "BETWEEN", + /* 197 */ "IS", + /* 198 */ "NK_LT", + /* 199 */ "NK_GT", + /* 200 */ "NK_LE", + /* 201 */ "NK_GE", + /* 202 */ "NK_NE", + /* 203 */ "MATCH", + /* 204 */ "NMATCH", + /* 205 */ "CONTAINS", + /* 206 */ "JOIN", + /* 207 */ "INNER", + /* 208 */ "SELECT", + /* 209 */ "DISTINCT", + /* 210 */ "WHERE", + /* 211 */ "PARTITION", + /* 212 */ "BY", + /* 213 */ "SESSION", + /* 214 */ "STATE_WINDOW", + /* 215 */ "SLIDING", + /* 216 */ "FILL", + /* 217 */ "VALUE", + /* 218 */ "NONE", + /* 219 */ "PREV", + /* 220 */ "LINEAR", + /* 221 */ "NEXT", + /* 222 */ "GROUP", + /* 223 */ "HAVING", + /* 224 */ "ORDER", + /* 225 */ "SLIMIT", + /* 226 */ "SOFFSET", + /* 227 */ "LIMIT", + /* 228 */ "OFFSET", + /* 229 */ "ASC", + /* 230 */ "NULLS", + /* 231 */ "ID", + /* 232 */ "NK_BITNOT", + /* 233 */ "INSERT", + /* 234 */ "VALUES", + /* 235 */ "IMPORT", + /* 236 */ "NK_SEMI", + /* 237 */ "FILE", + /* 238 */ "cmd", + /* 239 */ "account_options", + /* 240 */ "alter_account_options", + /* 241 */ "literal", + /* 242 */ "alter_account_option", + /* 243 */ "user_name", + /* 244 */ "privileges", + /* 245 */ "priv_level", + /* 246 */ "priv_type_list", + /* 247 */ "priv_type", + /* 248 */ "db_name", + /* 249 */ "dnode_endpoint", + /* 250 */ "dnode_host_name", + /* 251 */ "not_exists_opt", + /* 252 */ "db_options", + /* 253 */ "exists_opt", + /* 254 */ "alter_db_options", + /* 255 */ "integer_list", + /* 256 */ "variable_list", + /* 257 */ "retention_list", + /* 258 */ "alter_db_option", + /* 259 */ "retention", + /* 260 */ "full_table_name", + /* 261 */ "column_def_list", + /* 262 */ "tags_def_opt", + /* 263 */ "table_options", + /* 264 */ "multi_create_clause", + /* 265 */ "tags_def", + /* 266 */ "multi_drop_clause", + /* 267 */ "alter_table_clause", + /* 268 */ "alter_table_options", + /* 269 */ "column_name", + /* 270 */ "type_name", + /* 271 */ "create_subtable_clause", + /* 272 */ "specific_tags_opt", + /* 273 */ "literal_list", + /* 274 */ "drop_table_clause", + /* 275 */ "col_name_list", + /* 276 */ "table_name", + /* 277 */ "column_def", + /* 278 */ "func_name_list", + /* 279 */ "alter_table_option", + /* 280 */ "col_name", + /* 281 */ "db_name_cond_opt", + /* 282 */ "like_pattern_opt", + /* 283 */ "table_name_cond", + /* 284 */ "from_db_opt", + /* 285 */ "func_name", + /* 286 */ "function_name", + /* 287 */ "index_name", + /* 288 */ "index_options", + /* 289 */ "func_list", + /* 290 */ "duration_literal", + /* 291 */ "sliding_opt", + /* 292 */ "func", + /* 293 */ "expression_list", + /* 294 */ "topic_name", + /* 295 */ "topic_options", + /* 296 */ "query_expression", + /* 297 */ "analyze_opt", + /* 298 */ "explain_options", + /* 299 */ "agg_func_opt", + /* 300 */ "bufsize_opt", + /* 301 */ "stream_name", + /* 302 */ "stream_options", + /* 303 */ "into_opt", + /* 304 */ "dnode_list", + /* 305 */ "signed", + /* 306 */ "signed_literal", + /* 307 */ "literal_func", + /* 308 */ "table_alias", + /* 309 */ "column_alias", + /* 310 */ "expression", + /* 311 */ "pseudo_column", + /* 312 */ "column_reference", + /* 313 */ "function_expression", + /* 314 */ "subquery", + /* 315 */ "star_func", + /* 316 */ "star_func_para_list", + /* 317 */ "noarg_func", + /* 318 */ "other_para_list", + /* 319 */ "star_func_para", + /* 320 */ "predicate", + /* 321 */ "compare_op", + /* 322 */ "in_op", + /* 323 */ "in_predicate_value", + /* 324 */ "boolean_value_expression", + /* 325 */ "boolean_primary", + /* 326 */ "common_expression", + /* 327 */ "from_clause", + /* 328 */ "table_reference_list", + /* 329 */ "table_reference", + /* 330 */ "table_primary", + /* 331 */ "joined_table", + /* 332 */ "alias_opt", + /* 333 */ "parenthesized_joined_table", + /* 334 */ "join_type", + /* 335 */ "search_condition", + /* 336 */ "query_specification", + /* 337 */ "set_quantifier_opt", + /* 338 */ "select_list", + /* 339 */ "where_clause_opt", + /* 340 */ "partition_by_clause_opt", + /* 341 */ "twindow_clause_opt", + /* 342 */ "group_by_clause_opt", + /* 343 */ "having_clause_opt", + /* 344 */ "select_sublist", + /* 345 */ "select_item", + /* 346 */ "fill_opt", + /* 347 */ "fill_mode", + /* 348 */ "group_by_list", + /* 349 */ "query_expression_body", + /* 350 */ "order_by_clause_opt", + /* 351 */ "slimit_clause_opt", + /* 352 */ "limit_clause_opt", + /* 353 */ "query_primary", + /* 354 */ "sort_specification_list", + /* 355 */ "sort_specification", + /* 356 */ "ordering_specification_opt", + /* 357 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1502,416 +1536,428 @@ static const char *const yyRuleName[] = { /* 25 */ "cmd ::= ALTER USER user_name PASS NK_STRING", /* 26 */ "cmd ::= ALTER USER user_name PRIVILEGE NK_STRING", /* 27 */ "cmd ::= DROP USER user_name", - /* 28 */ "cmd ::= CREATE DNODE dnode_endpoint", - /* 29 */ "cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER", - /* 30 */ "cmd ::= DROP DNODE NK_INTEGER", - /* 31 */ "cmd ::= DROP DNODE dnode_endpoint", - /* 32 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", - /* 33 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", - /* 34 */ "cmd ::= ALTER ALL DNODES NK_STRING", - /* 35 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", - /* 36 */ "dnode_endpoint ::= NK_STRING", - /* 37 */ "dnode_host_name ::= NK_ID", - /* 38 */ "dnode_host_name ::= NK_IPTOKEN", - /* 39 */ "cmd ::= ALTER LOCAL NK_STRING", - /* 40 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", - /* 41 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", - /* 42 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", - /* 43 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", - /* 44 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", - /* 45 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", - /* 46 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", - /* 47 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", - /* 48 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", - /* 49 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", - /* 50 */ "cmd ::= DROP DATABASE exists_opt db_name", - /* 51 */ "cmd ::= USE db_name", - /* 52 */ "cmd ::= ALTER DATABASE db_name alter_db_options", - /* 53 */ "not_exists_opt ::= IF NOT EXISTS", - /* 54 */ "not_exists_opt ::=", - /* 55 */ "exists_opt ::= IF EXISTS", - /* 56 */ "exists_opt ::=", - /* 57 */ "db_options ::=", - /* 58 */ "db_options ::= db_options BUFFER NK_INTEGER", - /* 59 */ "db_options ::= db_options CACHELAST NK_INTEGER", - /* 60 */ "db_options ::= db_options COMP NK_INTEGER", - /* 61 */ "db_options ::= db_options DAYS NK_INTEGER", - /* 62 */ "db_options ::= db_options DAYS NK_VARIABLE", - /* 63 */ "db_options ::= db_options FSYNC NK_INTEGER", - /* 64 */ "db_options ::= db_options MAXROWS NK_INTEGER", - /* 65 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 66 */ "db_options ::= db_options KEEP integer_list", - /* 67 */ "db_options ::= db_options KEEP variable_list", - /* 68 */ "db_options ::= db_options PAGES NK_INTEGER", - /* 69 */ "db_options ::= db_options PAGESIZE NK_INTEGER", - /* 70 */ "db_options ::= db_options PRECISION NK_STRING", - /* 71 */ "db_options ::= db_options REPLICA NK_INTEGER", - /* 72 */ "db_options ::= db_options STRICT NK_INTEGER", - /* 73 */ "db_options ::= db_options WAL NK_INTEGER", - /* 74 */ "db_options ::= db_options VGROUPS NK_INTEGER", - /* 75 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", - /* 76 */ "db_options ::= db_options RETENTIONS retention_list", - /* 77 */ "alter_db_options ::= alter_db_option", - /* 78 */ "alter_db_options ::= alter_db_options alter_db_option", - /* 79 */ "alter_db_option ::= BUFFER NK_INTEGER", - /* 80 */ "alter_db_option ::= CACHELAST NK_INTEGER", - /* 81 */ "alter_db_option ::= FSYNC NK_INTEGER", - /* 82 */ "alter_db_option ::= KEEP integer_list", - /* 83 */ "alter_db_option ::= KEEP variable_list", - /* 84 */ "alter_db_option ::= PAGES NK_INTEGER", - /* 85 */ "alter_db_option ::= REPLICA NK_INTEGER", - /* 86 */ "alter_db_option ::= STRICT NK_INTEGER", - /* 87 */ "alter_db_option ::= WAL NK_INTEGER", - /* 88 */ "integer_list ::= NK_INTEGER", - /* 89 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", - /* 90 */ "variable_list ::= NK_VARIABLE", - /* 91 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", - /* 92 */ "retention_list ::= retention", - /* 93 */ "retention_list ::= retention_list NK_COMMA retention", - /* 94 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 95 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 96 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 97 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 98 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 99 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 100 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 101 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 102 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 103 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 104 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 105 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 106 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 107 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 108 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 109 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 110 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 111 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", - /* 112 */ "multi_create_clause ::= create_subtable_clause", - /* 113 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 114 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options", - /* 115 */ "multi_drop_clause ::= drop_table_clause", - /* 116 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 117 */ "drop_table_clause ::= exists_opt full_table_name", - /* 118 */ "specific_tags_opt ::=", - /* 119 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", - /* 120 */ "full_table_name ::= table_name", - /* 121 */ "full_table_name ::= db_name NK_DOT table_name", - /* 122 */ "column_def_list ::= column_def", - /* 123 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 124 */ "column_def ::= column_name type_name", - /* 125 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 126 */ "type_name ::= BOOL", - /* 127 */ "type_name ::= TINYINT", - /* 128 */ "type_name ::= SMALLINT", - /* 129 */ "type_name ::= INT", - /* 130 */ "type_name ::= INTEGER", - /* 131 */ "type_name ::= BIGINT", - /* 132 */ "type_name ::= FLOAT", - /* 133 */ "type_name ::= DOUBLE", - /* 134 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 135 */ "type_name ::= TIMESTAMP", - /* 136 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 137 */ "type_name ::= TINYINT UNSIGNED", - /* 138 */ "type_name ::= SMALLINT UNSIGNED", - /* 139 */ "type_name ::= INT UNSIGNED", - /* 140 */ "type_name ::= BIGINT UNSIGNED", - /* 141 */ "type_name ::= JSON", - /* 142 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 143 */ "type_name ::= MEDIUMBLOB", - /* 144 */ "type_name ::= BLOB", - /* 145 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 146 */ "type_name ::= DECIMAL", - /* 147 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 148 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 149 */ "tags_def_opt ::=", - /* 150 */ "tags_def_opt ::= tags_def", - /* 151 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 152 */ "table_options ::=", - /* 153 */ "table_options ::= table_options COMMENT NK_STRING", - /* 154 */ "table_options ::= table_options DELAY NK_INTEGER", - /* 155 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT", - /* 156 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", - /* 157 */ "table_options ::= table_options TTL NK_INTEGER", - /* 158 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 159 */ "alter_table_options ::= alter_table_option", - /* 160 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 161 */ "alter_table_option ::= COMMENT NK_STRING", - /* 162 */ "alter_table_option ::= TTL NK_INTEGER", - /* 163 */ "col_name_list ::= col_name", - /* 164 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 165 */ "col_name ::= column_name", - /* 166 */ "cmd ::= SHOW DNODES", - /* 167 */ "cmd ::= SHOW USERS", - /* 168 */ "cmd ::= SHOW DATABASES", - /* 169 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 170 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 171 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 172 */ "cmd ::= SHOW MNODES", - /* 173 */ "cmd ::= SHOW MODULES", - /* 174 */ "cmd ::= SHOW QNODES", - /* 175 */ "cmd ::= SHOW FUNCTIONS", - /* 176 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 177 */ "cmd ::= SHOW STREAMS", - /* 178 */ "cmd ::= SHOW ACCOUNTS", - /* 179 */ "cmd ::= SHOW APPS", - /* 180 */ "cmd ::= SHOW CONNECTIONS", - /* 181 */ "cmd ::= SHOW LICENCE", - /* 182 */ "cmd ::= SHOW GRANTS", - /* 183 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 184 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 185 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 186 */ "cmd ::= SHOW QUERIES", - /* 187 */ "cmd ::= SHOW SCORES", - /* 188 */ "cmd ::= SHOW TOPICS", - /* 189 */ "cmd ::= SHOW VARIABLES", - /* 190 */ "cmd ::= SHOW BNODES", - /* 191 */ "cmd ::= SHOW SNODES", - /* 192 */ "cmd ::= SHOW CLUSTER", - /* 193 */ "db_name_cond_opt ::=", - /* 194 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 195 */ "like_pattern_opt ::=", - /* 196 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 197 */ "table_name_cond ::= table_name", - /* 198 */ "from_db_opt ::=", - /* 199 */ "from_db_opt ::= FROM db_name", - /* 200 */ "func_name_list ::= func_name", - /* 201 */ "func_name_list ::= func_name_list NK_COMMA func_name", - /* 202 */ "func_name ::= function_name", - /* 203 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 204 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", - /* 205 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", - /* 206 */ "index_options ::=", - /* 207 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 208 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 209 */ "func_list ::= func", - /* 210 */ "func_list ::= func_list NK_COMMA func", - /* 211 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 212 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression", - /* 213 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name", - /* 214 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 215 */ "topic_options ::=", - /* 216 */ "topic_options ::= topic_options WITH TABLE", - /* 217 */ "topic_options ::= topic_options WITH SCHEMA", - /* 218 */ "topic_options ::= topic_options WITH TAG", - /* 219 */ "cmd ::= DESC full_table_name", - /* 220 */ "cmd ::= DESCRIBE full_table_name", - /* 221 */ "cmd ::= RESET QUERY CACHE", - /* 222 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 223 */ "analyze_opt ::=", - /* 224 */ "analyze_opt ::= ANALYZE", - /* 225 */ "explain_options ::=", - /* 226 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 227 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 228 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", - /* 229 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 230 */ "cmd ::= DROP FUNCTION function_name", - /* 231 */ "agg_func_opt ::=", - /* 232 */ "agg_func_opt ::= AGGREGATE", - /* 233 */ "bufsize_opt ::=", - /* 234 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 235 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", - /* 236 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 237 */ "into_opt ::=", - /* 238 */ "into_opt ::= INTO full_table_name", - /* 239 */ "stream_options ::=", - /* 240 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 241 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 242 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 243 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 244 */ "cmd ::= KILL QUERY NK_INTEGER", - /* 245 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 246 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 247 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 248 */ "dnode_list ::= DNODE NK_INTEGER", - /* 249 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 250 */ "cmd ::= SYNCDB db_name REPLICA", - /* 251 */ "cmd ::= query_expression", - /* 252 */ "literal ::= NK_INTEGER", - /* 253 */ "literal ::= NK_FLOAT", - /* 254 */ "literal ::= NK_STRING", - /* 255 */ "literal ::= NK_BOOL", - /* 256 */ "literal ::= TIMESTAMP NK_STRING", - /* 257 */ "literal ::= duration_literal", - /* 258 */ "literal ::= NULL", - /* 259 */ "literal ::= NK_QUESTION", - /* 260 */ "duration_literal ::= NK_VARIABLE", - /* 261 */ "signed ::= NK_INTEGER", - /* 262 */ "signed ::= NK_PLUS NK_INTEGER", - /* 263 */ "signed ::= NK_MINUS NK_INTEGER", - /* 264 */ "signed ::= NK_FLOAT", - /* 265 */ "signed ::= NK_PLUS NK_FLOAT", - /* 266 */ "signed ::= NK_MINUS NK_FLOAT", - /* 267 */ "signed_literal ::= signed", - /* 268 */ "signed_literal ::= NK_STRING", - /* 269 */ "signed_literal ::= NK_BOOL", - /* 270 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 271 */ "signed_literal ::= duration_literal", - /* 272 */ "signed_literal ::= NULL", - /* 273 */ "signed_literal ::= literal_func", - /* 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 ::= literal_func", - /* 315 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 316 */ "literal_func ::= NOW", - /* 317 */ "noarg_func ::= NOW", - /* 318 */ "noarg_func ::= TODAY", - /* 319 */ "noarg_func ::= TIMEZONE", - /* 320 */ "star_func ::= COUNT", - /* 321 */ "star_func ::= FIRST", - /* 322 */ "star_func ::= LAST", - /* 323 */ "star_func ::= LAST_ROW", - /* 324 */ "star_func_para_list ::= NK_STAR", - /* 325 */ "star_func_para_list ::= other_para_list", - /* 326 */ "other_para_list ::= star_func_para", - /* 327 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 328 */ "star_func_para ::= expression", - /* 329 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 330 */ "predicate ::= expression compare_op expression", - /* 331 */ "predicate ::= expression BETWEEN expression AND expression", - /* 332 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 333 */ "predicate ::= expression IS NULL", - /* 334 */ "predicate ::= expression IS NOT NULL", - /* 335 */ "predicate ::= expression in_op in_predicate_value", - /* 336 */ "compare_op ::= NK_LT", - /* 337 */ "compare_op ::= NK_GT", - /* 338 */ "compare_op ::= NK_LE", - /* 339 */ "compare_op ::= NK_GE", - /* 340 */ "compare_op ::= NK_NE", - /* 341 */ "compare_op ::= NK_EQ", - /* 342 */ "compare_op ::= LIKE", - /* 343 */ "compare_op ::= NOT LIKE", - /* 344 */ "compare_op ::= MATCH", - /* 345 */ "compare_op ::= NMATCH", - /* 346 */ "compare_op ::= CONTAINS", - /* 347 */ "in_op ::= IN", - /* 348 */ "in_op ::= NOT IN", - /* 349 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 350 */ "boolean_value_expression ::= boolean_primary", - /* 351 */ "boolean_value_expression ::= NOT boolean_primary", - /* 352 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 353 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 354 */ "boolean_primary ::= predicate", - /* 355 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 356 */ "common_expression ::= expression", - /* 357 */ "common_expression ::= boolean_value_expression", - /* 358 */ "from_clause ::= FROM table_reference_list", - /* 359 */ "table_reference_list ::= table_reference", - /* 360 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 361 */ "table_reference ::= table_primary", - /* 362 */ "table_reference ::= joined_table", - /* 363 */ "table_primary ::= table_name alias_opt", - /* 364 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 365 */ "table_primary ::= subquery alias_opt", - /* 366 */ "table_primary ::= parenthesized_joined_table", - /* 367 */ "alias_opt ::=", - /* 368 */ "alias_opt ::= table_alias", - /* 369 */ "alias_opt ::= AS table_alias", - /* 370 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 371 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 372 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 373 */ "join_type ::=", - /* 374 */ "join_type ::= INNER", - /* 375 */ "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", - /* 376 */ "set_quantifier_opt ::=", - /* 377 */ "set_quantifier_opt ::= DISTINCT", - /* 378 */ "set_quantifier_opt ::= ALL", - /* 379 */ "select_list ::= NK_STAR", - /* 380 */ "select_list ::= select_sublist", - /* 381 */ "select_sublist ::= select_item", - /* 382 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 383 */ "select_item ::= common_expression", - /* 384 */ "select_item ::= common_expression column_alias", - /* 385 */ "select_item ::= common_expression AS column_alias", - /* 386 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 387 */ "where_clause_opt ::=", - /* 388 */ "where_clause_opt ::= WHERE search_condition", - /* 389 */ "partition_by_clause_opt ::=", - /* 390 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 391 */ "twindow_clause_opt ::=", - /* 392 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 393 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 394 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 395 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 396 */ "sliding_opt ::=", - /* 397 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 398 */ "fill_opt ::=", - /* 399 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 400 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 401 */ "fill_mode ::= NONE", - /* 402 */ "fill_mode ::= PREV", - /* 403 */ "fill_mode ::= NULL", - /* 404 */ "fill_mode ::= LINEAR", - /* 405 */ "fill_mode ::= NEXT", - /* 406 */ "group_by_clause_opt ::=", - /* 407 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 408 */ "group_by_list ::= expression", - /* 409 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 410 */ "having_clause_opt ::=", - /* 411 */ "having_clause_opt ::= HAVING search_condition", - /* 412 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 413 */ "query_expression_body ::= query_primary", - /* 414 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 415 */ "query_expression_body ::= query_expression_body UNION query_expression_body", - /* 416 */ "query_primary ::= query_specification", - /* 417 */ "order_by_clause_opt ::=", - /* 418 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 419 */ "slimit_clause_opt ::=", - /* 420 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 421 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 422 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 423 */ "limit_clause_opt ::=", - /* 424 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 425 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 426 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 427 */ "subquery ::= NK_LP query_expression NK_RP", - /* 428 */ "search_condition ::= common_expression", - /* 429 */ "sort_specification_list ::= sort_specification", - /* 430 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 431 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 432 */ "ordering_specification_opt ::=", - /* 433 */ "ordering_specification_opt ::= ASC", - /* 434 */ "ordering_specification_opt ::= DESC", - /* 435 */ "null_ordering_opt ::=", - /* 436 */ "null_ordering_opt ::= NULLS FIRST", - /* 437 */ "null_ordering_opt ::= NULLS LAST", + /* 28 */ "cmd ::= GRANT privileges ON priv_level TO user_name", + /* 29 */ "cmd ::= REVOKE privileges ON priv_level FROM user_name", + /* 30 */ "privileges ::= ALL", + /* 31 */ "privileges ::= priv_type_list", + /* 32 */ "priv_type_list ::= priv_type", + /* 33 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", + /* 34 */ "priv_type ::= READ", + /* 35 */ "priv_type ::= WRITE", + /* 36 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", + /* 37 */ "priv_level ::= db_name NK_DOT NK_STAR", + /* 38 */ "cmd ::= CREATE DNODE dnode_endpoint", + /* 39 */ "cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER", + /* 40 */ "cmd ::= DROP DNODE NK_INTEGER", + /* 41 */ "cmd ::= DROP DNODE dnode_endpoint", + /* 42 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", + /* 43 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", + /* 44 */ "cmd ::= ALTER ALL DNODES NK_STRING", + /* 45 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", + /* 46 */ "dnode_endpoint ::= NK_STRING", + /* 47 */ "dnode_host_name ::= NK_ID", + /* 48 */ "dnode_host_name ::= NK_IPTOKEN", + /* 49 */ "cmd ::= ALTER LOCAL NK_STRING", + /* 50 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", + /* 51 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", + /* 52 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", + /* 53 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", + /* 54 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", + /* 55 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", + /* 56 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", + /* 57 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", + /* 58 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", + /* 59 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", + /* 60 */ "cmd ::= DROP DATABASE exists_opt db_name", + /* 61 */ "cmd ::= USE db_name", + /* 62 */ "cmd ::= ALTER DATABASE db_name alter_db_options", + /* 63 */ "not_exists_opt ::= IF NOT EXISTS", + /* 64 */ "not_exists_opt ::=", + /* 65 */ "exists_opt ::= IF EXISTS", + /* 66 */ "exists_opt ::=", + /* 67 */ "db_options ::=", + /* 68 */ "db_options ::= db_options BUFFER NK_INTEGER", + /* 69 */ "db_options ::= db_options CACHELAST NK_INTEGER", + /* 70 */ "db_options ::= db_options COMP NK_INTEGER", + /* 71 */ "db_options ::= db_options DAYS NK_INTEGER", + /* 72 */ "db_options ::= db_options DAYS NK_VARIABLE", + /* 73 */ "db_options ::= db_options FSYNC NK_INTEGER", + /* 74 */ "db_options ::= db_options MAXROWS NK_INTEGER", + /* 75 */ "db_options ::= db_options MINROWS NK_INTEGER", + /* 76 */ "db_options ::= db_options KEEP integer_list", + /* 77 */ "db_options ::= db_options KEEP variable_list", + /* 78 */ "db_options ::= db_options PAGES NK_INTEGER", + /* 79 */ "db_options ::= db_options PAGESIZE NK_INTEGER", + /* 80 */ "db_options ::= db_options PRECISION NK_STRING", + /* 81 */ "db_options ::= db_options REPLICA NK_INTEGER", + /* 82 */ "db_options ::= db_options STRICT NK_INTEGER", + /* 83 */ "db_options ::= db_options WAL NK_INTEGER", + /* 84 */ "db_options ::= db_options VGROUPS NK_INTEGER", + /* 85 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", + /* 86 */ "db_options ::= db_options RETENTIONS retention_list", + /* 87 */ "alter_db_options ::= alter_db_option", + /* 88 */ "alter_db_options ::= alter_db_options alter_db_option", + /* 89 */ "alter_db_option ::= BUFFER NK_INTEGER", + /* 90 */ "alter_db_option ::= CACHELAST NK_INTEGER", + /* 91 */ "alter_db_option ::= FSYNC NK_INTEGER", + /* 92 */ "alter_db_option ::= KEEP integer_list", + /* 93 */ "alter_db_option ::= KEEP variable_list", + /* 94 */ "alter_db_option ::= PAGES NK_INTEGER", + /* 95 */ "alter_db_option ::= REPLICA NK_INTEGER", + /* 96 */ "alter_db_option ::= STRICT NK_INTEGER", + /* 97 */ "alter_db_option ::= WAL NK_INTEGER", + /* 98 */ "integer_list ::= NK_INTEGER", + /* 99 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", + /* 100 */ "variable_list ::= NK_VARIABLE", + /* 101 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", + /* 102 */ "retention_list ::= retention", + /* 103 */ "retention_list ::= retention_list NK_COMMA retention", + /* 104 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", + /* 105 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 106 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 107 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 108 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 109 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 110 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 111 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 112 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 113 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 114 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 115 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 116 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 117 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 118 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 119 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 120 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 121 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", + /* 122 */ "multi_create_clause ::= create_subtable_clause", + /* 123 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 124 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options", + /* 125 */ "multi_drop_clause ::= drop_table_clause", + /* 126 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 127 */ "drop_table_clause ::= exists_opt full_table_name", + /* 128 */ "specific_tags_opt ::=", + /* 129 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 130 */ "full_table_name ::= table_name", + /* 131 */ "full_table_name ::= db_name NK_DOT table_name", + /* 132 */ "column_def_list ::= column_def", + /* 133 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 134 */ "column_def ::= column_name type_name", + /* 135 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 136 */ "type_name ::= BOOL", + /* 137 */ "type_name ::= TINYINT", + /* 138 */ "type_name ::= SMALLINT", + /* 139 */ "type_name ::= INT", + /* 140 */ "type_name ::= INTEGER", + /* 141 */ "type_name ::= BIGINT", + /* 142 */ "type_name ::= FLOAT", + /* 143 */ "type_name ::= DOUBLE", + /* 144 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 145 */ "type_name ::= TIMESTAMP", + /* 146 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 147 */ "type_name ::= TINYINT UNSIGNED", + /* 148 */ "type_name ::= SMALLINT UNSIGNED", + /* 149 */ "type_name ::= INT UNSIGNED", + /* 150 */ "type_name ::= BIGINT UNSIGNED", + /* 151 */ "type_name ::= JSON", + /* 152 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 153 */ "type_name ::= MEDIUMBLOB", + /* 154 */ "type_name ::= BLOB", + /* 155 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 156 */ "type_name ::= DECIMAL", + /* 157 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 158 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 159 */ "tags_def_opt ::=", + /* 160 */ "tags_def_opt ::= tags_def", + /* 161 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 162 */ "table_options ::=", + /* 163 */ "table_options ::= table_options COMMENT NK_STRING", + /* 164 */ "table_options ::= table_options DELAY NK_INTEGER", + /* 165 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT", + /* 166 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", + /* 167 */ "table_options ::= table_options TTL NK_INTEGER", + /* 168 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 169 */ "alter_table_options ::= alter_table_option", + /* 170 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 171 */ "alter_table_option ::= COMMENT NK_STRING", + /* 172 */ "alter_table_option ::= TTL NK_INTEGER", + /* 173 */ "col_name_list ::= col_name", + /* 174 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 175 */ "col_name ::= column_name", + /* 176 */ "cmd ::= SHOW DNODES", + /* 177 */ "cmd ::= SHOW USERS", + /* 178 */ "cmd ::= SHOW DATABASES", + /* 179 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 180 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 181 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 182 */ "cmd ::= SHOW MNODES", + /* 183 */ "cmd ::= SHOW MODULES", + /* 184 */ "cmd ::= SHOW QNODES", + /* 185 */ "cmd ::= SHOW FUNCTIONS", + /* 186 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 187 */ "cmd ::= SHOW STREAMS", + /* 188 */ "cmd ::= SHOW ACCOUNTS", + /* 189 */ "cmd ::= SHOW APPS", + /* 190 */ "cmd ::= SHOW CONNECTIONS", + /* 191 */ "cmd ::= SHOW LICENCE", + /* 192 */ "cmd ::= SHOW GRANTS", + /* 193 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 194 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 195 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 196 */ "cmd ::= SHOW QUERIES", + /* 197 */ "cmd ::= SHOW SCORES", + /* 198 */ "cmd ::= SHOW TOPICS", + /* 199 */ "cmd ::= SHOW VARIABLES", + /* 200 */ "cmd ::= SHOW BNODES", + /* 201 */ "cmd ::= SHOW SNODES", + /* 202 */ "cmd ::= SHOW CLUSTER", + /* 203 */ "cmd ::= SHOW TRANSACTIONS", + /* 204 */ "db_name_cond_opt ::=", + /* 205 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 206 */ "like_pattern_opt ::=", + /* 207 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 208 */ "table_name_cond ::= table_name", + /* 209 */ "from_db_opt ::=", + /* 210 */ "from_db_opt ::= FROM db_name", + /* 211 */ "func_name_list ::= func_name", + /* 212 */ "func_name_list ::= func_name_list NK_COMMA func_name", + /* 213 */ "func_name ::= function_name", + /* 214 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 215 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", + /* 216 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", + /* 217 */ "index_options ::=", + /* 218 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 219 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 220 */ "func_list ::= func", + /* 221 */ "func_list ::= func_list NK_COMMA func", + /* 222 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 223 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression", + /* 224 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name", + /* 225 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 226 */ "topic_options ::=", + /* 227 */ "topic_options ::= topic_options WITH TABLE", + /* 228 */ "topic_options ::= topic_options WITH SCHEMA", + /* 229 */ "topic_options ::= topic_options WITH TAG", + /* 230 */ "cmd ::= DESC full_table_name", + /* 231 */ "cmd ::= DESCRIBE full_table_name", + /* 232 */ "cmd ::= RESET QUERY CACHE", + /* 233 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 234 */ "analyze_opt ::=", + /* 235 */ "analyze_opt ::= ANALYZE", + /* 236 */ "explain_options ::=", + /* 237 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 238 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 239 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", + /* 240 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 241 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 242 */ "agg_func_opt ::=", + /* 243 */ "agg_func_opt ::= AGGREGATE", + /* 244 */ "bufsize_opt ::=", + /* 245 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 246 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", + /* 247 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 248 */ "into_opt ::=", + /* 249 */ "into_opt ::= INTO full_table_name", + /* 250 */ "stream_options ::=", + /* 251 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 252 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 253 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 254 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 255 */ "cmd ::= KILL QUERY NK_INTEGER", + /* 256 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 257 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 258 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 259 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 260 */ "dnode_list ::= DNODE NK_INTEGER", + /* 261 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 262 */ "cmd ::= SYNCDB db_name REPLICA", + /* 263 */ "cmd ::= query_expression", + /* 264 */ "literal ::= NK_INTEGER", + /* 265 */ "literal ::= NK_FLOAT", + /* 266 */ "literal ::= NK_STRING", + /* 267 */ "literal ::= NK_BOOL", + /* 268 */ "literal ::= TIMESTAMP NK_STRING", + /* 269 */ "literal ::= duration_literal", + /* 270 */ "literal ::= NULL", + /* 271 */ "literal ::= NK_QUESTION", + /* 272 */ "duration_literal ::= NK_VARIABLE", + /* 273 */ "signed ::= NK_INTEGER", + /* 274 */ "signed ::= NK_PLUS NK_INTEGER", + /* 275 */ "signed ::= NK_MINUS NK_INTEGER", + /* 276 */ "signed ::= NK_FLOAT", + /* 277 */ "signed ::= NK_PLUS NK_FLOAT", + /* 278 */ "signed ::= NK_MINUS NK_FLOAT", + /* 279 */ "signed_literal ::= signed", + /* 280 */ "signed_literal ::= NK_STRING", + /* 281 */ "signed_literal ::= NK_BOOL", + /* 282 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 283 */ "signed_literal ::= duration_literal", + /* 284 */ "signed_literal ::= NULL", + /* 285 */ "signed_literal ::= literal_func", + /* 286 */ "literal_list ::= signed_literal", + /* 287 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 288 */ "db_name ::= NK_ID", + /* 289 */ "table_name ::= NK_ID", + /* 290 */ "column_name ::= NK_ID", + /* 291 */ "function_name ::= NK_ID", + /* 292 */ "table_alias ::= NK_ID", + /* 293 */ "column_alias ::= NK_ID", + /* 294 */ "user_name ::= NK_ID", + /* 295 */ "index_name ::= NK_ID", + /* 296 */ "topic_name ::= NK_ID", + /* 297 */ "stream_name ::= NK_ID", + /* 298 */ "expression ::= literal", + /* 299 */ "expression ::= pseudo_column", + /* 300 */ "expression ::= column_reference", + /* 301 */ "expression ::= function_expression", + /* 302 */ "expression ::= subquery", + /* 303 */ "expression ::= NK_LP expression NK_RP", + /* 304 */ "expression ::= NK_PLUS expression", + /* 305 */ "expression ::= NK_MINUS expression", + /* 306 */ "expression ::= expression NK_PLUS expression", + /* 307 */ "expression ::= expression NK_MINUS expression", + /* 308 */ "expression ::= expression NK_STAR expression", + /* 309 */ "expression ::= expression NK_SLASH expression", + /* 310 */ "expression ::= expression NK_REM expression", + /* 311 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 312 */ "expression_list ::= expression", + /* 313 */ "expression_list ::= expression_list NK_COMMA expression", + /* 314 */ "column_reference ::= column_name", + /* 315 */ "column_reference ::= table_name NK_DOT column_name", + /* 316 */ "pseudo_column ::= ROWTS", + /* 317 */ "pseudo_column ::= TBNAME", + /* 318 */ "pseudo_column ::= QSTARTTS", + /* 319 */ "pseudo_column ::= QENDTS", + /* 320 */ "pseudo_column ::= WSTARTTS", + /* 321 */ "pseudo_column ::= WENDTS", + /* 322 */ "pseudo_column ::= WDURATION", + /* 323 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 324 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 325 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 326 */ "function_expression ::= literal_func", + /* 327 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 328 */ "literal_func ::= NOW", + /* 329 */ "noarg_func ::= NOW", + /* 330 */ "noarg_func ::= TODAY", + /* 331 */ "noarg_func ::= TIMEZONE", + /* 332 */ "star_func ::= COUNT", + /* 333 */ "star_func ::= FIRST", + /* 334 */ "star_func ::= LAST", + /* 335 */ "star_func ::= LAST_ROW", + /* 336 */ "star_func_para_list ::= NK_STAR", + /* 337 */ "star_func_para_list ::= other_para_list", + /* 338 */ "other_para_list ::= star_func_para", + /* 339 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 340 */ "star_func_para ::= expression", + /* 341 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 342 */ "predicate ::= expression compare_op expression", + /* 343 */ "predicate ::= expression BETWEEN expression AND expression", + /* 344 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 345 */ "predicate ::= expression IS NULL", + /* 346 */ "predicate ::= expression IS NOT NULL", + /* 347 */ "predicate ::= expression in_op in_predicate_value", + /* 348 */ "compare_op ::= NK_LT", + /* 349 */ "compare_op ::= NK_GT", + /* 350 */ "compare_op ::= NK_LE", + /* 351 */ "compare_op ::= NK_GE", + /* 352 */ "compare_op ::= NK_NE", + /* 353 */ "compare_op ::= NK_EQ", + /* 354 */ "compare_op ::= LIKE", + /* 355 */ "compare_op ::= NOT LIKE", + /* 356 */ "compare_op ::= MATCH", + /* 357 */ "compare_op ::= NMATCH", + /* 358 */ "compare_op ::= CONTAINS", + /* 359 */ "in_op ::= IN", + /* 360 */ "in_op ::= NOT IN", + /* 361 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 362 */ "boolean_value_expression ::= boolean_primary", + /* 363 */ "boolean_value_expression ::= NOT boolean_primary", + /* 364 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 365 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 366 */ "boolean_primary ::= predicate", + /* 367 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 368 */ "common_expression ::= expression", + /* 369 */ "common_expression ::= boolean_value_expression", + /* 370 */ "from_clause ::= FROM table_reference_list", + /* 371 */ "table_reference_list ::= table_reference", + /* 372 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 373 */ "table_reference ::= table_primary", + /* 374 */ "table_reference ::= joined_table", + /* 375 */ "table_primary ::= table_name alias_opt", + /* 376 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 377 */ "table_primary ::= subquery alias_opt", + /* 378 */ "table_primary ::= parenthesized_joined_table", + /* 379 */ "alias_opt ::=", + /* 380 */ "alias_opt ::= table_alias", + /* 381 */ "alias_opt ::= AS table_alias", + /* 382 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 383 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 384 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 385 */ "join_type ::=", + /* 386 */ "join_type ::= INNER", + /* 387 */ "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", + /* 388 */ "set_quantifier_opt ::=", + /* 389 */ "set_quantifier_opt ::= DISTINCT", + /* 390 */ "set_quantifier_opt ::= ALL", + /* 391 */ "select_list ::= NK_STAR", + /* 392 */ "select_list ::= select_sublist", + /* 393 */ "select_sublist ::= select_item", + /* 394 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 395 */ "select_item ::= common_expression", + /* 396 */ "select_item ::= common_expression column_alias", + /* 397 */ "select_item ::= common_expression AS column_alias", + /* 398 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 399 */ "where_clause_opt ::=", + /* 400 */ "where_clause_opt ::= WHERE search_condition", + /* 401 */ "partition_by_clause_opt ::=", + /* 402 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 403 */ "twindow_clause_opt ::=", + /* 404 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 405 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 406 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 407 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 408 */ "sliding_opt ::=", + /* 409 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 410 */ "fill_opt ::=", + /* 411 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 412 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 413 */ "fill_mode ::= NONE", + /* 414 */ "fill_mode ::= PREV", + /* 415 */ "fill_mode ::= NULL", + /* 416 */ "fill_mode ::= LINEAR", + /* 417 */ "fill_mode ::= NEXT", + /* 418 */ "group_by_clause_opt ::=", + /* 419 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 420 */ "group_by_list ::= expression", + /* 421 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 422 */ "having_clause_opt ::=", + /* 423 */ "having_clause_opt ::= HAVING search_condition", + /* 424 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 425 */ "query_expression_body ::= query_primary", + /* 426 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 427 */ "query_expression_body ::= query_expression_body UNION query_expression_body", + /* 428 */ "query_primary ::= query_specification", + /* 429 */ "order_by_clause_opt ::=", + /* 430 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 431 */ "slimit_clause_opt ::=", + /* 432 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 433 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 434 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 435 */ "limit_clause_opt ::=", + /* 436 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 437 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 438 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 439 */ "subquery ::= NK_LP query_expression NK_RP", + /* 440 */ "search_condition ::= common_expression", + /* 441 */ "sort_specification_list ::= sort_specification", + /* 442 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 443 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 444 */ "ordering_specification_opt ::=", + /* 445 */ "ordering_specification_opt ::= ASC", + /* 446 */ "ordering_specification_opt ::= DESC", + /* 447 */ "null_ordering_opt ::=", + /* 448 */ "null_ordering_opt ::= NULLS FIRST", + /* 449 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2038,166 +2084,174 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 231: /* cmd */ - case 234: /* literal */ - case 241: /* db_options */ - case 243: /* alter_db_options */ - case 248: /* retention */ - case 249: /* full_table_name */ - case 252: /* table_options */ - case 256: /* alter_table_clause */ - case 257: /* alter_table_options */ - case 260: /* create_subtable_clause */ - case 263: /* drop_table_clause */ - case 266: /* column_def */ - case 269: /* col_name */ - case 270: /* db_name_cond_opt */ - case 271: /* like_pattern_opt */ - case 272: /* table_name_cond */ - case 273: /* from_db_opt */ - case 274: /* func_name */ - case 277: /* index_options */ - case 279: /* duration_literal */ - case 280: /* sliding_opt */ - case 281: /* func */ - case 284: /* topic_options */ - case 285: /* query_expression */ - case 287: /* explain_options */ - case 291: /* stream_options */ - case 292: /* into_opt */ - case 294: /* signed */ - case 295: /* signed_literal */ - case 296: /* literal_func */ - case 299: /* expression */ - case 300: /* pseudo_column */ - case 301: /* column_reference */ - case 302: /* function_expression */ - case 303: /* subquery */ - case 308: /* star_func_para */ - case 309: /* predicate */ - case 312: /* in_predicate_value */ - case 313: /* boolean_value_expression */ - case 314: /* boolean_primary */ - case 315: /* common_expression */ - case 316: /* from_clause */ - case 317: /* table_reference_list */ - case 318: /* table_reference */ - case 319: /* table_primary */ - case 320: /* joined_table */ - case 322: /* parenthesized_joined_table */ - case 324: /* search_condition */ - case 325: /* query_specification */ - case 328: /* where_clause_opt */ - case 330: /* twindow_clause_opt */ - case 332: /* having_clause_opt */ - case 334: /* select_item */ - case 335: /* fill_opt */ - case 338: /* query_expression_body */ - case 340: /* slimit_clause_opt */ - case 341: /* limit_clause_opt */ - case 342: /* query_primary */ - case 344: /* sort_specification */ + case 238: /* cmd */ + case 241: /* literal */ + case 252: /* db_options */ + case 254: /* alter_db_options */ + case 259: /* retention */ + case 260: /* full_table_name */ + case 263: /* table_options */ + case 267: /* alter_table_clause */ + case 268: /* alter_table_options */ + case 271: /* create_subtable_clause */ + case 274: /* drop_table_clause */ + case 277: /* column_def */ + case 280: /* col_name */ + case 281: /* db_name_cond_opt */ + case 282: /* like_pattern_opt */ + case 283: /* table_name_cond */ + case 284: /* from_db_opt */ + case 285: /* func_name */ + case 288: /* index_options */ + case 290: /* duration_literal */ + case 291: /* sliding_opt */ + case 292: /* func */ + case 295: /* topic_options */ + case 296: /* query_expression */ + case 298: /* explain_options */ + case 302: /* stream_options */ + case 303: /* into_opt */ + case 305: /* signed */ + case 306: /* signed_literal */ + case 307: /* literal_func */ + case 310: /* expression */ + case 311: /* pseudo_column */ + case 312: /* column_reference */ + case 313: /* function_expression */ + case 314: /* subquery */ + case 319: /* star_func_para */ + case 320: /* predicate */ + case 323: /* in_predicate_value */ + case 324: /* boolean_value_expression */ + case 325: /* boolean_primary */ + case 326: /* common_expression */ + case 327: /* from_clause */ + case 328: /* table_reference_list */ + case 329: /* table_reference */ + case 330: /* table_primary */ + case 331: /* joined_table */ + case 333: /* parenthesized_joined_table */ + case 335: /* search_condition */ + case 336: /* query_specification */ + case 339: /* where_clause_opt */ + case 341: /* twindow_clause_opt */ + case 343: /* having_clause_opt */ + case 345: /* select_item */ + case 346: /* fill_opt */ + case 349: /* query_expression_body */ + case 351: /* slimit_clause_opt */ + case 352: /* limit_clause_opt */ + case 353: /* query_primary */ + case 355: /* sort_specification */ { - nodesDestroyNode((yypminor->yy662)); + nodesDestroyNode((yypminor->yy172)); } break; - case 232: /* account_options */ - case 233: /* alter_account_options */ - case 235: /* alter_account_option */ - case 289: /* bufsize_opt */ + case 239: /* account_options */ + case 240: /* alter_account_options */ + case 242: /* alter_account_option */ + case 300: /* bufsize_opt */ { } break; - case 236: /* user_name */ - case 237: /* dnode_endpoint */ - case 238: /* dnode_host_name */ - case 240: /* db_name */ - case 258: /* column_name */ - case 265: /* table_name */ - case 275: /* function_name */ - case 276: /* index_name */ - case 283: /* topic_name */ - case 290: /* stream_name */ - case 297: /* table_alias */ - case 298: /* column_alias */ - case 304: /* star_func */ - case 306: /* noarg_func */ - case 321: /* alias_opt */ + case 243: /* user_name */ + case 245: /* priv_level */ + case 248: /* db_name */ + case 249: /* dnode_endpoint */ + case 250: /* dnode_host_name */ + case 269: /* column_name */ + case 276: /* table_name */ + case 286: /* function_name */ + case 287: /* index_name */ + case 294: /* topic_name */ + case 301: /* stream_name */ + case 308: /* table_alias */ + case 309: /* column_alias */ + case 315: /* star_func */ + case 317: /* noarg_func */ + case 332: /* alias_opt */ { } break; - case 239: /* not_exists_opt */ - case 242: /* exists_opt */ - case 286: /* analyze_opt */ - case 288: /* agg_func_opt */ - case 326: /* set_quantifier_opt */ + case 244: /* privileges */ + case 246: /* priv_type_list */ + case 247: /* priv_type */ { } break; - case 244: /* integer_list */ - case 245: /* variable_list */ - case 246: /* retention_list */ - case 250: /* column_def_list */ - case 251: /* tags_def_opt */ - case 253: /* multi_create_clause */ - case 254: /* tags_def */ - case 255: /* multi_drop_clause */ - case 261: /* specific_tags_opt */ - case 262: /* literal_list */ - case 264: /* col_name_list */ - case 267: /* func_name_list */ - case 278: /* func_list */ - case 282: /* expression_list */ - case 293: /* dnode_list */ - case 305: /* star_func_para_list */ - case 307: /* other_para_list */ - case 327: /* select_list */ - case 329: /* partition_by_clause_opt */ - case 331: /* group_by_clause_opt */ - case 333: /* select_sublist */ - case 337: /* group_by_list */ - case 339: /* order_by_clause_opt */ - case 343: /* sort_specification_list */ -{ - nodesDestroyList((yypminor->yy568)); -} - break; - case 247: /* alter_db_option */ - case 268: /* alter_table_option */ + case 251: /* not_exists_opt */ + case 253: /* exists_opt */ + case 297: /* analyze_opt */ + case 299: /* agg_func_opt */ + case 337: /* set_quantifier_opt */ { } break; - case 259: /* type_name */ + case 255: /* integer_list */ + case 256: /* variable_list */ + case 257: /* retention_list */ + case 261: /* column_def_list */ + case 262: /* tags_def_opt */ + case 264: /* multi_create_clause */ + case 265: /* tags_def */ + case 266: /* multi_drop_clause */ + case 272: /* specific_tags_opt */ + case 273: /* literal_list */ + case 275: /* col_name_list */ + case 278: /* func_name_list */ + case 289: /* func_list */ + case 293: /* expression_list */ + case 304: /* dnode_list */ + case 316: /* star_func_para_list */ + case 318: /* other_para_list */ + case 338: /* select_list */ + case 340: /* partition_by_clause_opt */ + case 342: /* group_by_clause_opt */ + case 344: /* select_sublist */ + case 348: /* group_by_list */ + case 350: /* order_by_clause_opt */ + case 354: /* sort_specification_list */ +{ + nodesDestroyList((yypminor->yy60)); +} + break; + case 258: /* alter_db_option */ + case 279: /* alter_table_option */ { } break; - case 310: /* compare_op */ - case 311: /* in_op */ + case 270: /* type_name */ { } break; - case 323: /* join_type */ + case 321: /* compare_op */ + case 322: /* in_op */ { } break; - case 336: /* fill_mode */ + case 334: /* join_type */ { } break; - case 345: /* ordering_specification_opt */ + case 347: /* fill_mode */ { } break; - case 346: /* null_ordering_opt */ + case 356: /* ordering_specification_opt */ +{ + +} + break; + case 357: /* null_ordering_opt */ { } @@ -2496,444 +2550,456 @@ 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[] = { - { 231, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 231, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 232, 0 }, /* (2) account_options ::= */ - { 232, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 232, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 232, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 232, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 232, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 232, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 232, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 232, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 232, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 233, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 233, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 235, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 235, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 235, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 235, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 235, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 235, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 235, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 235, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 235, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 235, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 231, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 231, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 231, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 231, -3 }, /* (27) cmd ::= DROP USER user_name */ - { 231, -3 }, /* (28) cmd ::= CREATE DNODE dnode_endpoint */ - { 231, -5 }, /* (29) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ - { 231, -3 }, /* (30) cmd ::= DROP DNODE NK_INTEGER */ - { 231, -3 }, /* (31) cmd ::= DROP DNODE dnode_endpoint */ - { 231, -4 }, /* (32) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 231, -5 }, /* (33) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 231, -4 }, /* (34) cmd ::= ALTER ALL DNODES NK_STRING */ - { 231, -5 }, /* (35) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 237, -1 }, /* (36) dnode_endpoint ::= NK_STRING */ - { 238, -1 }, /* (37) dnode_host_name ::= NK_ID */ - { 238, -1 }, /* (38) dnode_host_name ::= NK_IPTOKEN */ - { 231, -3 }, /* (39) cmd ::= ALTER LOCAL NK_STRING */ - { 231, -4 }, /* (40) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 231, -5 }, /* (41) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 231, -5 }, /* (42) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 231, -5 }, /* (43) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 231, -5 }, /* (44) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 231, -5 }, /* (45) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 231, -5 }, /* (46) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 231, -5 }, /* (47) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 231, -5 }, /* (48) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 231, -5 }, /* (49) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 231, -4 }, /* (50) cmd ::= DROP DATABASE exists_opt db_name */ - { 231, -2 }, /* (51) cmd ::= USE db_name */ - { 231, -4 }, /* (52) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 239, -3 }, /* (53) not_exists_opt ::= IF NOT EXISTS */ - { 239, 0 }, /* (54) not_exists_opt ::= */ - { 242, -2 }, /* (55) exists_opt ::= IF EXISTS */ - { 242, 0 }, /* (56) exists_opt ::= */ - { 241, 0 }, /* (57) db_options ::= */ - { 241, -3 }, /* (58) db_options ::= db_options BUFFER NK_INTEGER */ - { 241, -3 }, /* (59) db_options ::= db_options CACHELAST NK_INTEGER */ - { 241, -3 }, /* (60) db_options ::= db_options COMP NK_INTEGER */ - { 241, -3 }, /* (61) db_options ::= db_options DAYS NK_INTEGER */ - { 241, -3 }, /* (62) db_options ::= db_options DAYS NK_VARIABLE */ - { 241, -3 }, /* (63) db_options ::= db_options FSYNC NK_INTEGER */ - { 241, -3 }, /* (64) db_options ::= db_options MAXROWS NK_INTEGER */ - { 241, -3 }, /* (65) db_options ::= db_options MINROWS NK_INTEGER */ - { 241, -3 }, /* (66) db_options ::= db_options KEEP integer_list */ - { 241, -3 }, /* (67) db_options ::= db_options KEEP variable_list */ - { 241, -3 }, /* (68) db_options ::= db_options PAGES NK_INTEGER */ - { 241, -3 }, /* (69) db_options ::= db_options PAGESIZE NK_INTEGER */ - { 241, -3 }, /* (70) db_options ::= db_options PRECISION NK_STRING */ - { 241, -3 }, /* (71) db_options ::= db_options REPLICA NK_INTEGER */ - { 241, -3 }, /* (72) db_options ::= db_options STRICT NK_INTEGER */ - { 241, -3 }, /* (73) db_options ::= db_options WAL NK_INTEGER */ - { 241, -3 }, /* (74) db_options ::= db_options VGROUPS NK_INTEGER */ - { 241, -3 }, /* (75) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 241, -3 }, /* (76) db_options ::= db_options RETENTIONS retention_list */ - { 243, -1 }, /* (77) alter_db_options ::= alter_db_option */ - { 243, -2 }, /* (78) alter_db_options ::= alter_db_options alter_db_option */ - { 247, -2 }, /* (79) alter_db_option ::= BUFFER NK_INTEGER */ - { 247, -2 }, /* (80) alter_db_option ::= CACHELAST NK_INTEGER */ - { 247, -2 }, /* (81) alter_db_option ::= FSYNC NK_INTEGER */ - { 247, -2 }, /* (82) alter_db_option ::= KEEP integer_list */ - { 247, -2 }, /* (83) alter_db_option ::= KEEP variable_list */ - { 247, -2 }, /* (84) alter_db_option ::= PAGES NK_INTEGER */ - { 247, -2 }, /* (85) alter_db_option ::= REPLICA NK_INTEGER */ - { 247, -2 }, /* (86) alter_db_option ::= STRICT NK_INTEGER */ - { 247, -2 }, /* (87) alter_db_option ::= WAL NK_INTEGER */ - { 244, -1 }, /* (88) integer_list ::= NK_INTEGER */ - { 244, -3 }, /* (89) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 245, -1 }, /* (90) variable_list ::= NK_VARIABLE */ - { 245, -3 }, /* (91) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 246, -1 }, /* (92) retention_list ::= retention */ - { 246, -3 }, /* (93) retention_list ::= retention_list NK_COMMA retention */ - { 248, -3 }, /* (94) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 231, -9 }, /* (95) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 231, -3 }, /* (96) cmd ::= CREATE TABLE multi_create_clause */ - { 231, -9 }, /* (97) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 231, -3 }, /* (98) cmd ::= DROP TABLE multi_drop_clause */ - { 231, -4 }, /* (99) cmd ::= DROP STABLE exists_opt full_table_name */ - { 231, -3 }, /* (100) cmd ::= ALTER TABLE alter_table_clause */ - { 231, -3 }, /* (101) cmd ::= ALTER STABLE alter_table_clause */ - { 256, -2 }, /* (102) alter_table_clause ::= full_table_name alter_table_options */ - { 256, -5 }, /* (103) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 256, -4 }, /* (104) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 256, -5 }, /* (105) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 256, -5 }, /* (106) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 256, -5 }, /* (107) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 256, -4 }, /* (108) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 256, -5 }, /* (109) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 256, -5 }, /* (110) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 256, -6 }, /* (111) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ - { 253, -1 }, /* (112) multi_create_clause ::= create_subtable_clause */ - { 253, -2 }, /* (113) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 260, -10 }, /* (114) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ - { 255, -1 }, /* (115) multi_drop_clause ::= drop_table_clause */ - { 255, -2 }, /* (116) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 263, -2 }, /* (117) drop_table_clause ::= exists_opt full_table_name */ - { 261, 0 }, /* (118) specific_tags_opt ::= */ - { 261, -3 }, /* (119) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 249, -1 }, /* (120) full_table_name ::= table_name */ - { 249, -3 }, /* (121) full_table_name ::= db_name NK_DOT table_name */ - { 250, -1 }, /* (122) column_def_list ::= column_def */ - { 250, -3 }, /* (123) column_def_list ::= column_def_list NK_COMMA column_def */ - { 266, -2 }, /* (124) column_def ::= column_name type_name */ - { 266, -4 }, /* (125) column_def ::= column_name type_name COMMENT NK_STRING */ - { 259, -1 }, /* (126) type_name ::= BOOL */ - { 259, -1 }, /* (127) type_name ::= TINYINT */ - { 259, -1 }, /* (128) type_name ::= SMALLINT */ - { 259, -1 }, /* (129) type_name ::= INT */ - { 259, -1 }, /* (130) type_name ::= INTEGER */ - { 259, -1 }, /* (131) type_name ::= BIGINT */ - { 259, -1 }, /* (132) type_name ::= FLOAT */ - { 259, -1 }, /* (133) type_name ::= DOUBLE */ - { 259, -4 }, /* (134) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 259, -1 }, /* (135) type_name ::= TIMESTAMP */ - { 259, -4 }, /* (136) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 259, -2 }, /* (137) type_name ::= TINYINT UNSIGNED */ - { 259, -2 }, /* (138) type_name ::= SMALLINT UNSIGNED */ - { 259, -2 }, /* (139) type_name ::= INT UNSIGNED */ - { 259, -2 }, /* (140) type_name ::= BIGINT UNSIGNED */ - { 259, -1 }, /* (141) type_name ::= JSON */ - { 259, -4 }, /* (142) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 259, -1 }, /* (143) type_name ::= MEDIUMBLOB */ - { 259, -1 }, /* (144) type_name ::= BLOB */ - { 259, -4 }, /* (145) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 259, -1 }, /* (146) type_name ::= DECIMAL */ - { 259, -4 }, /* (147) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 259, -6 }, /* (148) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 251, 0 }, /* (149) tags_def_opt ::= */ - { 251, -1 }, /* (150) tags_def_opt ::= tags_def */ - { 254, -4 }, /* (151) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 252, 0 }, /* (152) table_options ::= */ - { 252, -3 }, /* (153) table_options ::= table_options COMMENT NK_STRING */ - { 252, -3 }, /* (154) table_options ::= table_options DELAY NK_INTEGER */ - { 252, -3 }, /* (155) table_options ::= table_options FILE_FACTOR NK_FLOAT */ - { 252, -5 }, /* (156) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ - { 252, -3 }, /* (157) table_options ::= table_options TTL NK_INTEGER */ - { 252, -5 }, /* (158) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 257, -1 }, /* (159) alter_table_options ::= alter_table_option */ - { 257, -2 }, /* (160) alter_table_options ::= alter_table_options alter_table_option */ - { 268, -2 }, /* (161) alter_table_option ::= COMMENT NK_STRING */ - { 268, -2 }, /* (162) alter_table_option ::= TTL NK_INTEGER */ - { 264, -1 }, /* (163) col_name_list ::= col_name */ - { 264, -3 }, /* (164) col_name_list ::= col_name_list NK_COMMA col_name */ - { 269, -1 }, /* (165) col_name ::= column_name */ - { 231, -2 }, /* (166) cmd ::= SHOW DNODES */ - { 231, -2 }, /* (167) cmd ::= SHOW USERS */ - { 231, -2 }, /* (168) cmd ::= SHOW DATABASES */ - { 231, -4 }, /* (169) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 231, -4 }, /* (170) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 231, -3 }, /* (171) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 231, -2 }, /* (172) cmd ::= SHOW MNODES */ - { 231, -2 }, /* (173) cmd ::= SHOW MODULES */ - { 231, -2 }, /* (174) cmd ::= SHOW QNODES */ - { 231, -2 }, /* (175) cmd ::= SHOW FUNCTIONS */ - { 231, -5 }, /* (176) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 231, -2 }, /* (177) cmd ::= SHOW STREAMS */ - { 231, -2 }, /* (178) cmd ::= SHOW ACCOUNTS */ - { 231, -2 }, /* (179) cmd ::= SHOW APPS */ - { 231, -2 }, /* (180) cmd ::= SHOW CONNECTIONS */ - { 231, -2 }, /* (181) cmd ::= SHOW LICENCE */ - { 231, -2 }, /* (182) cmd ::= SHOW GRANTS */ - { 231, -4 }, /* (183) cmd ::= SHOW CREATE DATABASE db_name */ - { 231, -4 }, /* (184) cmd ::= SHOW CREATE TABLE full_table_name */ - { 231, -4 }, /* (185) cmd ::= SHOW CREATE STABLE full_table_name */ - { 231, -2 }, /* (186) cmd ::= SHOW QUERIES */ - { 231, -2 }, /* (187) cmd ::= SHOW SCORES */ - { 231, -2 }, /* (188) cmd ::= SHOW TOPICS */ - { 231, -2 }, /* (189) cmd ::= SHOW VARIABLES */ - { 231, -2 }, /* (190) cmd ::= SHOW BNODES */ - { 231, -2 }, /* (191) cmd ::= SHOW SNODES */ - { 231, -2 }, /* (192) cmd ::= SHOW CLUSTER */ - { 270, 0 }, /* (193) db_name_cond_opt ::= */ - { 270, -2 }, /* (194) db_name_cond_opt ::= db_name NK_DOT */ - { 271, 0 }, /* (195) like_pattern_opt ::= */ - { 271, -2 }, /* (196) like_pattern_opt ::= LIKE NK_STRING */ - { 272, -1 }, /* (197) table_name_cond ::= table_name */ - { 273, 0 }, /* (198) from_db_opt ::= */ - { 273, -2 }, /* (199) from_db_opt ::= FROM db_name */ - { 267, -1 }, /* (200) func_name_list ::= func_name */ - { 267, -3 }, /* (201) func_name_list ::= func_name_list NK_COMMA func_name */ - { 274, -1 }, /* (202) func_name ::= function_name */ - { 231, -8 }, /* (203) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 231, -10 }, /* (204) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 231, -6 }, /* (205) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 277, 0 }, /* (206) index_options ::= */ - { 277, -9 }, /* (207) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 277, -11 }, /* (208) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 278, -1 }, /* (209) func_list ::= func */ - { 278, -3 }, /* (210) func_list ::= func_list NK_COMMA func */ - { 281, -4 }, /* (211) func ::= function_name NK_LP expression_list NK_RP */ - { 231, -7 }, /* (212) cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression */ - { 231, -7 }, /* (213) cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name */ - { 231, -4 }, /* (214) cmd ::= DROP TOPIC exists_opt topic_name */ - { 284, 0 }, /* (215) topic_options ::= */ - { 284, -3 }, /* (216) topic_options ::= topic_options WITH TABLE */ - { 284, -3 }, /* (217) topic_options ::= topic_options WITH SCHEMA */ - { 284, -3 }, /* (218) topic_options ::= topic_options WITH TAG */ - { 231, -2 }, /* (219) cmd ::= DESC full_table_name */ - { 231, -2 }, /* (220) cmd ::= DESCRIBE full_table_name */ - { 231, -3 }, /* (221) cmd ::= RESET QUERY CACHE */ - { 231, -4 }, /* (222) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 286, 0 }, /* (223) analyze_opt ::= */ - { 286, -1 }, /* (224) analyze_opt ::= ANALYZE */ - { 287, 0 }, /* (225) explain_options ::= */ - { 287, -3 }, /* (226) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 287, -3 }, /* (227) explain_options ::= explain_options RATIO NK_FLOAT */ - { 231, -6 }, /* (228) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 231, -10 }, /* (229) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 231, -3 }, /* (230) cmd ::= DROP FUNCTION function_name */ - { 288, 0 }, /* (231) agg_func_opt ::= */ - { 288, -1 }, /* (232) agg_func_opt ::= AGGREGATE */ - { 289, 0 }, /* (233) bufsize_opt ::= */ - { 289, -2 }, /* (234) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 231, -8 }, /* (235) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ - { 231, -4 }, /* (236) cmd ::= DROP STREAM exists_opt stream_name */ - { 292, 0 }, /* (237) into_opt ::= */ - { 292, -2 }, /* (238) into_opt ::= INTO full_table_name */ - { 291, 0 }, /* (239) stream_options ::= */ - { 291, -3 }, /* (240) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 291, -3 }, /* (241) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 291, -3 }, /* (242) stream_options ::= stream_options WATERMARK duration_literal */ - { 231, -3 }, /* (243) cmd ::= KILL CONNECTION NK_INTEGER */ - { 231, -3 }, /* (244) cmd ::= KILL QUERY NK_INTEGER */ - { 231, -4 }, /* (245) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 231, -4 }, /* (246) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 231, -3 }, /* (247) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 293, -2 }, /* (248) dnode_list ::= DNODE NK_INTEGER */ - { 293, -3 }, /* (249) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 231, -3 }, /* (250) cmd ::= SYNCDB db_name REPLICA */ - { 231, -1 }, /* (251) cmd ::= query_expression */ - { 234, -1 }, /* (252) literal ::= NK_INTEGER */ - { 234, -1 }, /* (253) literal ::= NK_FLOAT */ - { 234, -1 }, /* (254) literal ::= NK_STRING */ - { 234, -1 }, /* (255) literal ::= NK_BOOL */ - { 234, -2 }, /* (256) literal ::= TIMESTAMP NK_STRING */ - { 234, -1 }, /* (257) literal ::= duration_literal */ - { 234, -1 }, /* (258) literal ::= NULL */ - { 234, -1 }, /* (259) literal ::= NK_QUESTION */ - { 279, -1 }, /* (260) duration_literal ::= NK_VARIABLE */ - { 294, -1 }, /* (261) signed ::= NK_INTEGER */ - { 294, -2 }, /* (262) signed ::= NK_PLUS NK_INTEGER */ - { 294, -2 }, /* (263) signed ::= NK_MINUS NK_INTEGER */ - { 294, -1 }, /* (264) signed ::= NK_FLOAT */ - { 294, -2 }, /* (265) signed ::= NK_PLUS NK_FLOAT */ - { 294, -2 }, /* (266) signed ::= NK_MINUS NK_FLOAT */ - { 295, -1 }, /* (267) signed_literal ::= signed */ - { 295, -1 }, /* (268) signed_literal ::= NK_STRING */ - { 295, -1 }, /* (269) signed_literal ::= NK_BOOL */ - { 295, -2 }, /* (270) signed_literal ::= TIMESTAMP NK_STRING */ - { 295, -1 }, /* (271) signed_literal ::= duration_literal */ - { 295, -1 }, /* (272) signed_literal ::= NULL */ - { 295, -1 }, /* (273) signed_literal ::= literal_func */ - { 262, -1 }, /* (274) literal_list ::= signed_literal */ - { 262, -3 }, /* (275) literal_list ::= literal_list NK_COMMA signed_literal */ - { 240, -1 }, /* (276) db_name ::= NK_ID */ - { 265, -1 }, /* (277) table_name ::= NK_ID */ - { 258, -1 }, /* (278) column_name ::= NK_ID */ - { 275, -1 }, /* (279) function_name ::= NK_ID */ - { 297, -1 }, /* (280) table_alias ::= NK_ID */ - { 298, -1 }, /* (281) column_alias ::= NK_ID */ - { 236, -1 }, /* (282) user_name ::= NK_ID */ - { 276, -1 }, /* (283) index_name ::= NK_ID */ - { 283, -1 }, /* (284) topic_name ::= NK_ID */ - { 290, -1 }, /* (285) stream_name ::= NK_ID */ - { 299, -1 }, /* (286) expression ::= literal */ - { 299, -1 }, /* (287) expression ::= pseudo_column */ - { 299, -1 }, /* (288) expression ::= column_reference */ - { 299, -1 }, /* (289) expression ::= function_expression */ - { 299, -1 }, /* (290) expression ::= subquery */ - { 299, -3 }, /* (291) expression ::= NK_LP expression NK_RP */ - { 299, -2 }, /* (292) expression ::= NK_PLUS expression */ - { 299, -2 }, /* (293) expression ::= NK_MINUS expression */ - { 299, -3 }, /* (294) expression ::= expression NK_PLUS expression */ - { 299, -3 }, /* (295) expression ::= expression NK_MINUS expression */ - { 299, -3 }, /* (296) expression ::= expression NK_STAR expression */ - { 299, -3 }, /* (297) expression ::= expression NK_SLASH expression */ - { 299, -3 }, /* (298) expression ::= expression NK_REM expression */ - { 299, -3 }, /* (299) expression ::= column_reference NK_ARROW NK_STRING */ - { 282, -1 }, /* (300) expression_list ::= expression */ - { 282, -3 }, /* (301) expression_list ::= expression_list NK_COMMA expression */ - { 301, -1 }, /* (302) column_reference ::= column_name */ - { 301, -3 }, /* (303) column_reference ::= table_name NK_DOT column_name */ - { 300, -1 }, /* (304) pseudo_column ::= ROWTS */ - { 300, -1 }, /* (305) pseudo_column ::= TBNAME */ - { 300, -1 }, /* (306) pseudo_column ::= QSTARTTS */ - { 300, -1 }, /* (307) pseudo_column ::= QENDTS */ - { 300, -1 }, /* (308) pseudo_column ::= WSTARTTS */ - { 300, -1 }, /* (309) pseudo_column ::= WENDTS */ - { 300, -1 }, /* (310) pseudo_column ::= WDURATION */ - { 302, -4 }, /* (311) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 302, -4 }, /* (312) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 302, -6 }, /* (313) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 302, -1 }, /* (314) function_expression ::= literal_func */ - { 296, -3 }, /* (315) literal_func ::= noarg_func NK_LP NK_RP */ - { 296, -1 }, /* (316) literal_func ::= NOW */ - { 306, -1 }, /* (317) noarg_func ::= NOW */ - { 306, -1 }, /* (318) noarg_func ::= TODAY */ - { 306, -1 }, /* (319) noarg_func ::= TIMEZONE */ - { 304, -1 }, /* (320) star_func ::= COUNT */ - { 304, -1 }, /* (321) star_func ::= FIRST */ - { 304, -1 }, /* (322) star_func ::= LAST */ - { 304, -1 }, /* (323) star_func ::= LAST_ROW */ - { 305, -1 }, /* (324) star_func_para_list ::= NK_STAR */ - { 305, -1 }, /* (325) star_func_para_list ::= other_para_list */ - { 307, -1 }, /* (326) other_para_list ::= star_func_para */ - { 307, -3 }, /* (327) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 308, -1 }, /* (328) star_func_para ::= expression */ - { 308, -3 }, /* (329) star_func_para ::= table_name NK_DOT NK_STAR */ - { 309, -3 }, /* (330) predicate ::= expression compare_op expression */ - { 309, -5 }, /* (331) predicate ::= expression BETWEEN expression AND expression */ - { 309, -6 }, /* (332) predicate ::= expression NOT BETWEEN expression AND expression */ - { 309, -3 }, /* (333) predicate ::= expression IS NULL */ - { 309, -4 }, /* (334) predicate ::= expression IS NOT NULL */ - { 309, -3 }, /* (335) predicate ::= expression in_op in_predicate_value */ - { 310, -1 }, /* (336) compare_op ::= NK_LT */ - { 310, -1 }, /* (337) compare_op ::= NK_GT */ - { 310, -1 }, /* (338) compare_op ::= NK_LE */ - { 310, -1 }, /* (339) compare_op ::= NK_GE */ - { 310, -1 }, /* (340) compare_op ::= NK_NE */ - { 310, -1 }, /* (341) compare_op ::= NK_EQ */ - { 310, -1 }, /* (342) compare_op ::= LIKE */ - { 310, -2 }, /* (343) compare_op ::= NOT LIKE */ - { 310, -1 }, /* (344) compare_op ::= MATCH */ - { 310, -1 }, /* (345) compare_op ::= NMATCH */ - { 310, -1 }, /* (346) compare_op ::= CONTAINS */ - { 311, -1 }, /* (347) in_op ::= IN */ - { 311, -2 }, /* (348) in_op ::= NOT IN */ - { 312, -3 }, /* (349) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 313, -1 }, /* (350) boolean_value_expression ::= boolean_primary */ - { 313, -2 }, /* (351) boolean_value_expression ::= NOT boolean_primary */ - { 313, -3 }, /* (352) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 313, -3 }, /* (353) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 314, -1 }, /* (354) boolean_primary ::= predicate */ - { 314, -3 }, /* (355) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 315, -1 }, /* (356) common_expression ::= expression */ - { 315, -1 }, /* (357) common_expression ::= boolean_value_expression */ - { 316, -2 }, /* (358) from_clause ::= FROM table_reference_list */ - { 317, -1 }, /* (359) table_reference_list ::= table_reference */ - { 317, -3 }, /* (360) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 318, -1 }, /* (361) table_reference ::= table_primary */ - { 318, -1 }, /* (362) table_reference ::= joined_table */ - { 319, -2 }, /* (363) table_primary ::= table_name alias_opt */ - { 319, -4 }, /* (364) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 319, -2 }, /* (365) table_primary ::= subquery alias_opt */ - { 319, -1 }, /* (366) table_primary ::= parenthesized_joined_table */ - { 321, 0 }, /* (367) alias_opt ::= */ - { 321, -1 }, /* (368) alias_opt ::= table_alias */ - { 321, -2 }, /* (369) alias_opt ::= AS table_alias */ - { 322, -3 }, /* (370) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 322, -3 }, /* (371) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 320, -6 }, /* (372) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 323, 0 }, /* (373) join_type ::= */ - { 323, -1 }, /* (374) join_type ::= INNER */ - { 325, -9 }, /* (375) 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 */ - { 326, 0 }, /* (376) set_quantifier_opt ::= */ - { 326, -1 }, /* (377) set_quantifier_opt ::= DISTINCT */ - { 326, -1 }, /* (378) set_quantifier_opt ::= ALL */ - { 327, -1 }, /* (379) select_list ::= NK_STAR */ - { 327, -1 }, /* (380) select_list ::= select_sublist */ - { 333, -1 }, /* (381) select_sublist ::= select_item */ - { 333, -3 }, /* (382) select_sublist ::= select_sublist NK_COMMA select_item */ - { 334, -1 }, /* (383) select_item ::= common_expression */ - { 334, -2 }, /* (384) select_item ::= common_expression column_alias */ - { 334, -3 }, /* (385) select_item ::= common_expression AS column_alias */ - { 334, -3 }, /* (386) select_item ::= table_name NK_DOT NK_STAR */ - { 328, 0 }, /* (387) where_clause_opt ::= */ - { 328, -2 }, /* (388) where_clause_opt ::= WHERE search_condition */ - { 329, 0 }, /* (389) partition_by_clause_opt ::= */ - { 329, -3 }, /* (390) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 330, 0 }, /* (391) twindow_clause_opt ::= */ - { 330, -6 }, /* (392) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 330, -4 }, /* (393) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 330, -6 }, /* (394) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 330, -8 }, /* (395) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 280, 0 }, /* (396) sliding_opt ::= */ - { 280, -4 }, /* (397) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 335, 0 }, /* (398) fill_opt ::= */ - { 335, -4 }, /* (399) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 335, -6 }, /* (400) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 336, -1 }, /* (401) fill_mode ::= NONE */ - { 336, -1 }, /* (402) fill_mode ::= PREV */ - { 336, -1 }, /* (403) fill_mode ::= NULL */ - { 336, -1 }, /* (404) fill_mode ::= LINEAR */ - { 336, -1 }, /* (405) fill_mode ::= NEXT */ - { 331, 0 }, /* (406) group_by_clause_opt ::= */ - { 331, -3 }, /* (407) group_by_clause_opt ::= GROUP BY group_by_list */ - { 337, -1 }, /* (408) group_by_list ::= expression */ - { 337, -3 }, /* (409) group_by_list ::= group_by_list NK_COMMA expression */ - { 332, 0 }, /* (410) having_clause_opt ::= */ - { 332, -2 }, /* (411) having_clause_opt ::= HAVING search_condition */ - { 285, -4 }, /* (412) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 338, -1 }, /* (413) query_expression_body ::= query_primary */ - { 338, -4 }, /* (414) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 338, -3 }, /* (415) query_expression_body ::= query_expression_body UNION query_expression_body */ - { 342, -1 }, /* (416) query_primary ::= query_specification */ - { 339, 0 }, /* (417) order_by_clause_opt ::= */ - { 339, -3 }, /* (418) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 340, 0 }, /* (419) slimit_clause_opt ::= */ - { 340, -2 }, /* (420) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 340, -4 }, /* (421) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 340, -4 }, /* (422) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 341, 0 }, /* (423) limit_clause_opt ::= */ - { 341, -2 }, /* (424) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 341, -4 }, /* (425) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 341, -4 }, /* (426) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 303, -3 }, /* (427) subquery ::= NK_LP query_expression NK_RP */ - { 324, -1 }, /* (428) search_condition ::= common_expression */ - { 343, -1 }, /* (429) sort_specification_list ::= sort_specification */ - { 343, -3 }, /* (430) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 344, -3 }, /* (431) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 345, 0 }, /* (432) ordering_specification_opt ::= */ - { 345, -1 }, /* (433) ordering_specification_opt ::= ASC */ - { 345, -1 }, /* (434) ordering_specification_opt ::= DESC */ - { 346, 0 }, /* (435) null_ordering_opt ::= */ - { 346, -2 }, /* (436) null_ordering_opt ::= NULLS FIRST */ - { 346, -2 }, /* (437) null_ordering_opt ::= NULLS LAST */ + { 238, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 238, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 239, 0 }, /* (2) account_options ::= */ + { 239, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 239, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 239, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 239, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 239, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 239, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 239, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 239, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 239, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 240, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 240, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 242, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 242, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 242, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 242, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 242, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 242, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 242, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 242, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 242, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 242, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 238, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ + { 238, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 238, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + { 238, -3 }, /* (27) cmd ::= DROP USER user_name */ + { 238, -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */ + { 238, -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */ + { 244, -1 }, /* (30) privileges ::= ALL */ + { 244, -1 }, /* (31) privileges ::= priv_type_list */ + { 246, -1 }, /* (32) priv_type_list ::= priv_type */ + { 246, -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + { 247, -1 }, /* (34) priv_type ::= READ */ + { 247, -1 }, /* (35) priv_type ::= WRITE */ + { 245, -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */ + { 245, -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */ + { 238, -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */ + { 238, -5 }, /* (39) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ + { 238, -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */ + { 238, -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */ + { 238, -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 238, -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 238, -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */ + { 238, -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 249, -1 }, /* (46) dnode_endpoint ::= NK_STRING */ + { 250, -1 }, /* (47) dnode_host_name ::= NK_ID */ + { 250, -1 }, /* (48) dnode_host_name ::= NK_IPTOKEN */ + { 238, -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */ + { 238, -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 238, -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 238, -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */ + { 238, -2 }, /* (61) cmd ::= USE db_name */ + { 238, -4 }, /* (62) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 251, -3 }, /* (63) not_exists_opt ::= IF NOT EXISTS */ + { 251, 0 }, /* (64) not_exists_opt ::= */ + { 253, -2 }, /* (65) exists_opt ::= IF EXISTS */ + { 253, 0 }, /* (66) exists_opt ::= */ + { 252, 0 }, /* (67) db_options ::= */ + { 252, -3 }, /* (68) db_options ::= db_options BUFFER NK_INTEGER */ + { 252, -3 }, /* (69) db_options ::= db_options CACHELAST NK_INTEGER */ + { 252, -3 }, /* (70) db_options ::= db_options COMP NK_INTEGER */ + { 252, -3 }, /* (71) db_options ::= db_options DAYS NK_INTEGER */ + { 252, -3 }, /* (72) db_options ::= db_options DAYS NK_VARIABLE */ + { 252, -3 }, /* (73) db_options ::= db_options FSYNC NK_INTEGER */ + { 252, -3 }, /* (74) db_options ::= db_options MAXROWS NK_INTEGER */ + { 252, -3 }, /* (75) db_options ::= db_options MINROWS NK_INTEGER */ + { 252, -3 }, /* (76) db_options ::= db_options KEEP integer_list */ + { 252, -3 }, /* (77) db_options ::= db_options KEEP variable_list */ + { 252, -3 }, /* (78) db_options ::= db_options PAGES NK_INTEGER */ + { 252, -3 }, /* (79) db_options ::= db_options PAGESIZE NK_INTEGER */ + { 252, -3 }, /* (80) db_options ::= db_options PRECISION NK_STRING */ + { 252, -3 }, /* (81) db_options ::= db_options REPLICA NK_INTEGER */ + { 252, -3 }, /* (82) db_options ::= db_options STRICT NK_INTEGER */ + { 252, -3 }, /* (83) db_options ::= db_options WAL NK_INTEGER */ + { 252, -3 }, /* (84) db_options ::= db_options VGROUPS NK_INTEGER */ + { 252, -3 }, /* (85) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 252, -3 }, /* (86) db_options ::= db_options RETENTIONS retention_list */ + { 254, -1 }, /* (87) alter_db_options ::= alter_db_option */ + { 254, -2 }, /* (88) alter_db_options ::= alter_db_options alter_db_option */ + { 258, -2 }, /* (89) alter_db_option ::= BUFFER NK_INTEGER */ + { 258, -2 }, /* (90) alter_db_option ::= CACHELAST NK_INTEGER */ + { 258, -2 }, /* (91) alter_db_option ::= FSYNC NK_INTEGER */ + { 258, -2 }, /* (92) alter_db_option ::= KEEP integer_list */ + { 258, -2 }, /* (93) alter_db_option ::= KEEP variable_list */ + { 258, -2 }, /* (94) alter_db_option ::= PAGES NK_INTEGER */ + { 258, -2 }, /* (95) alter_db_option ::= REPLICA NK_INTEGER */ + { 258, -2 }, /* (96) alter_db_option ::= STRICT NK_INTEGER */ + { 258, -2 }, /* (97) alter_db_option ::= WAL NK_INTEGER */ + { 255, -1 }, /* (98) integer_list ::= NK_INTEGER */ + { 255, -3 }, /* (99) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 256, -1 }, /* (100) variable_list ::= NK_VARIABLE */ + { 256, -3 }, /* (101) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 257, -1 }, /* (102) retention_list ::= retention */ + { 257, -3 }, /* (103) retention_list ::= retention_list NK_COMMA retention */ + { 259, -3 }, /* (104) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 238, -9 }, /* (105) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 238, -3 }, /* (106) cmd ::= CREATE TABLE multi_create_clause */ + { 238, -9 }, /* (107) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 238, -3 }, /* (108) cmd ::= DROP TABLE multi_drop_clause */ + { 238, -4 }, /* (109) cmd ::= DROP STABLE exists_opt full_table_name */ + { 238, -3 }, /* (110) cmd ::= ALTER TABLE alter_table_clause */ + { 238, -3 }, /* (111) cmd ::= ALTER STABLE alter_table_clause */ + { 267, -2 }, /* (112) alter_table_clause ::= full_table_name alter_table_options */ + { 267, -5 }, /* (113) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 267, -4 }, /* (114) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 267, -5 }, /* (115) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 267, -5 }, /* (116) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 267, -5 }, /* (117) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 267, -4 }, /* (118) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 267, -5 }, /* (119) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 267, -5 }, /* (120) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 267, -6 }, /* (121) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ + { 264, -1 }, /* (122) multi_create_clause ::= create_subtable_clause */ + { 264, -2 }, /* (123) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 271, -10 }, /* (124) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ + { 266, -1 }, /* (125) multi_drop_clause ::= drop_table_clause */ + { 266, -2 }, /* (126) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 274, -2 }, /* (127) drop_table_clause ::= exists_opt full_table_name */ + { 272, 0 }, /* (128) specific_tags_opt ::= */ + { 272, -3 }, /* (129) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 260, -1 }, /* (130) full_table_name ::= table_name */ + { 260, -3 }, /* (131) full_table_name ::= db_name NK_DOT table_name */ + { 261, -1 }, /* (132) column_def_list ::= column_def */ + { 261, -3 }, /* (133) column_def_list ::= column_def_list NK_COMMA column_def */ + { 277, -2 }, /* (134) column_def ::= column_name type_name */ + { 277, -4 }, /* (135) column_def ::= column_name type_name COMMENT NK_STRING */ + { 270, -1 }, /* (136) type_name ::= BOOL */ + { 270, -1 }, /* (137) type_name ::= TINYINT */ + { 270, -1 }, /* (138) type_name ::= SMALLINT */ + { 270, -1 }, /* (139) type_name ::= INT */ + { 270, -1 }, /* (140) type_name ::= INTEGER */ + { 270, -1 }, /* (141) type_name ::= BIGINT */ + { 270, -1 }, /* (142) type_name ::= FLOAT */ + { 270, -1 }, /* (143) type_name ::= DOUBLE */ + { 270, -4 }, /* (144) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 270, -1 }, /* (145) type_name ::= TIMESTAMP */ + { 270, -4 }, /* (146) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 270, -2 }, /* (147) type_name ::= TINYINT UNSIGNED */ + { 270, -2 }, /* (148) type_name ::= SMALLINT UNSIGNED */ + { 270, -2 }, /* (149) type_name ::= INT UNSIGNED */ + { 270, -2 }, /* (150) type_name ::= BIGINT UNSIGNED */ + { 270, -1 }, /* (151) type_name ::= JSON */ + { 270, -4 }, /* (152) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 270, -1 }, /* (153) type_name ::= MEDIUMBLOB */ + { 270, -1 }, /* (154) type_name ::= BLOB */ + { 270, -4 }, /* (155) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 270, -1 }, /* (156) type_name ::= DECIMAL */ + { 270, -4 }, /* (157) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 270, -6 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 262, 0 }, /* (159) tags_def_opt ::= */ + { 262, -1 }, /* (160) tags_def_opt ::= tags_def */ + { 265, -4 }, /* (161) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 263, 0 }, /* (162) table_options ::= */ + { 263, -3 }, /* (163) table_options ::= table_options COMMENT NK_STRING */ + { 263, -3 }, /* (164) table_options ::= table_options DELAY NK_INTEGER */ + { 263, -3 }, /* (165) table_options ::= table_options FILE_FACTOR NK_FLOAT */ + { 263, -5 }, /* (166) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + { 263, -3 }, /* (167) table_options ::= table_options TTL NK_INTEGER */ + { 263, -5 }, /* (168) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 268, -1 }, /* (169) alter_table_options ::= alter_table_option */ + { 268, -2 }, /* (170) alter_table_options ::= alter_table_options alter_table_option */ + { 279, -2 }, /* (171) alter_table_option ::= COMMENT NK_STRING */ + { 279, -2 }, /* (172) alter_table_option ::= TTL NK_INTEGER */ + { 275, -1 }, /* (173) col_name_list ::= col_name */ + { 275, -3 }, /* (174) col_name_list ::= col_name_list NK_COMMA col_name */ + { 280, -1 }, /* (175) col_name ::= column_name */ + { 238, -2 }, /* (176) cmd ::= SHOW DNODES */ + { 238, -2 }, /* (177) cmd ::= SHOW USERS */ + { 238, -2 }, /* (178) cmd ::= SHOW DATABASES */ + { 238, -4 }, /* (179) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 238, -4 }, /* (180) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 238, -3 }, /* (181) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 238, -2 }, /* (182) cmd ::= SHOW MNODES */ + { 238, -2 }, /* (183) cmd ::= SHOW MODULES */ + { 238, -2 }, /* (184) cmd ::= SHOW QNODES */ + { 238, -2 }, /* (185) cmd ::= SHOW FUNCTIONS */ + { 238, -5 }, /* (186) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 238, -2 }, /* (187) cmd ::= SHOW STREAMS */ + { 238, -2 }, /* (188) cmd ::= SHOW ACCOUNTS */ + { 238, -2 }, /* (189) cmd ::= SHOW APPS */ + { 238, -2 }, /* (190) cmd ::= SHOW CONNECTIONS */ + { 238, -2 }, /* (191) cmd ::= SHOW LICENCE */ + { 238, -2 }, /* (192) cmd ::= SHOW GRANTS */ + { 238, -4 }, /* (193) cmd ::= SHOW CREATE DATABASE db_name */ + { 238, -4 }, /* (194) cmd ::= SHOW CREATE TABLE full_table_name */ + { 238, -4 }, /* (195) cmd ::= SHOW CREATE STABLE full_table_name */ + { 238, -2 }, /* (196) cmd ::= SHOW QUERIES */ + { 238, -2 }, /* (197) cmd ::= SHOW SCORES */ + { 238, -2 }, /* (198) cmd ::= SHOW TOPICS */ + { 238, -2 }, /* (199) cmd ::= SHOW VARIABLES */ + { 238, -2 }, /* (200) cmd ::= SHOW BNODES */ + { 238, -2 }, /* (201) cmd ::= SHOW SNODES */ + { 238, -2 }, /* (202) cmd ::= SHOW CLUSTER */ + { 238, -2 }, /* (203) cmd ::= SHOW TRANSACTIONS */ + { 281, 0 }, /* (204) db_name_cond_opt ::= */ + { 281, -2 }, /* (205) db_name_cond_opt ::= db_name NK_DOT */ + { 282, 0 }, /* (206) like_pattern_opt ::= */ + { 282, -2 }, /* (207) like_pattern_opt ::= LIKE NK_STRING */ + { 283, -1 }, /* (208) table_name_cond ::= table_name */ + { 284, 0 }, /* (209) from_db_opt ::= */ + { 284, -2 }, /* (210) from_db_opt ::= FROM db_name */ + { 278, -1 }, /* (211) func_name_list ::= func_name */ + { 278, -3 }, /* (212) func_name_list ::= func_name_list NK_COMMA func_name */ + { 285, -1 }, /* (213) func_name ::= function_name */ + { 238, -8 }, /* (214) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 238, -10 }, /* (215) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 238, -6 }, /* (216) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 288, 0 }, /* (217) index_options ::= */ + { 288, -9 }, /* (218) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 288, -11 }, /* (219) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 289, -1 }, /* (220) func_list ::= func */ + { 289, -3 }, /* (221) func_list ::= func_list NK_COMMA func */ + { 292, -4 }, /* (222) func ::= function_name NK_LP expression_list NK_RP */ + { 238, -7 }, /* (223) cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression */ + { 238, -7 }, /* (224) cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name */ + { 238, -4 }, /* (225) cmd ::= DROP TOPIC exists_opt topic_name */ + { 295, 0 }, /* (226) topic_options ::= */ + { 295, -3 }, /* (227) topic_options ::= topic_options WITH TABLE */ + { 295, -3 }, /* (228) topic_options ::= topic_options WITH SCHEMA */ + { 295, -3 }, /* (229) topic_options ::= topic_options WITH TAG */ + { 238, -2 }, /* (230) cmd ::= DESC full_table_name */ + { 238, -2 }, /* (231) cmd ::= DESCRIBE full_table_name */ + { 238, -3 }, /* (232) cmd ::= RESET QUERY CACHE */ + { 238, -4 }, /* (233) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 297, 0 }, /* (234) analyze_opt ::= */ + { 297, -1 }, /* (235) analyze_opt ::= ANALYZE */ + { 298, 0 }, /* (236) explain_options ::= */ + { 298, -3 }, /* (237) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 298, -3 }, /* (238) explain_options ::= explain_options RATIO NK_FLOAT */ + { 238, -6 }, /* (239) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 238, -10 }, /* (240) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 238, -4 }, /* (241) cmd ::= DROP FUNCTION exists_opt function_name */ + { 299, 0 }, /* (242) agg_func_opt ::= */ + { 299, -1 }, /* (243) agg_func_opt ::= AGGREGATE */ + { 300, 0 }, /* (244) bufsize_opt ::= */ + { 300, -2 }, /* (245) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 238, -8 }, /* (246) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + { 238, -4 }, /* (247) cmd ::= DROP STREAM exists_opt stream_name */ + { 303, 0 }, /* (248) into_opt ::= */ + { 303, -2 }, /* (249) into_opt ::= INTO full_table_name */ + { 302, 0 }, /* (250) stream_options ::= */ + { 302, -3 }, /* (251) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 302, -3 }, /* (252) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 302, -3 }, /* (253) stream_options ::= stream_options WATERMARK duration_literal */ + { 238, -3 }, /* (254) cmd ::= KILL CONNECTION NK_INTEGER */ + { 238, -3 }, /* (255) cmd ::= KILL QUERY NK_INTEGER */ + { 238, -3 }, /* (256) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 238, -4 }, /* (257) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 238, -4 }, /* (258) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 238, -3 }, /* (259) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 304, -2 }, /* (260) dnode_list ::= DNODE NK_INTEGER */ + { 304, -3 }, /* (261) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 238, -3 }, /* (262) cmd ::= SYNCDB db_name REPLICA */ + { 238, -1 }, /* (263) cmd ::= query_expression */ + { 241, -1 }, /* (264) literal ::= NK_INTEGER */ + { 241, -1 }, /* (265) literal ::= NK_FLOAT */ + { 241, -1 }, /* (266) literal ::= NK_STRING */ + { 241, -1 }, /* (267) literal ::= NK_BOOL */ + { 241, -2 }, /* (268) literal ::= TIMESTAMP NK_STRING */ + { 241, -1 }, /* (269) literal ::= duration_literal */ + { 241, -1 }, /* (270) literal ::= NULL */ + { 241, -1 }, /* (271) literal ::= NK_QUESTION */ + { 290, -1 }, /* (272) duration_literal ::= NK_VARIABLE */ + { 305, -1 }, /* (273) signed ::= NK_INTEGER */ + { 305, -2 }, /* (274) signed ::= NK_PLUS NK_INTEGER */ + { 305, -2 }, /* (275) signed ::= NK_MINUS NK_INTEGER */ + { 305, -1 }, /* (276) signed ::= NK_FLOAT */ + { 305, -2 }, /* (277) signed ::= NK_PLUS NK_FLOAT */ + { 305, -2 }, /* (278) signed ::= NK_MINUS NK_FLOAT */ + { 306, -1 }, /* (279) signed_literal ::= signed */ + { 306, -1 }, /* (280) signed_literal ::= NK_STRING */ + { 306, -1 }, /* (281) signed_literal ::= NK_BOOL */ + { 306, -2 }, /* (282) signed_literal ::= TIMESTAMP NK_STRING */ + { 306, -1 }, /* (283) signed_literal ::= duration_literal */ + { 306, -1 }, /* (284) signed_literal ::= NULL */ + { 306, -1 }, /* (285) signed_literal ::= literal_func */ + { 273, -1 }, /* (286) literal_list ::= signed_literal */ + { 273, -3 }, /* (287) literal_list ::= literal_list NK_COMMA signed_literal */ + { 248, -1 }, /* (288) db_name ::= NK_ID */ + { 276, -1 }, /* (289) table_name ::= NK_ID */ + { 269, -1 }, /* (290) column_name ::= NK_ID */ + { 286, -1 }, /* (291) function_name ::= NK_ID */ + { 308, -1 }, /* (292) table_alias ::= NK_ID */ + { 309, -1 }, /* (293) column_alias ::= NK_ID */ + { 243, -1 }, /* (294) user_name ::= NK_ID */ + { 287, -1 }, /* (295) index_name ::= NK_ID */ + { 294, -1 }, /* (296) topic_name ::= NK_ID */ + { 301, -1 }, /* (297) stream_name ::= NK_ID */ + { 310, -1 }, /* (298) expression ::= literal */ + { 310, -1 }, /* (299) expression ::= pseudo_column */ + { 310, -1 }, /* (300) expression ::= column_reference */ + { 310, -1 }, /* (301) expression ::= function_expression */ + { 310, -1 }, /* (302) expression ::= subquery */ + { 310, -3 }, /* (303) expression ::= NK_LP expression NK_RP */ + { 310, -2 }, /* (304) expression ::= NK_PLUS expression */ + { 310, -2 }, /* (305) expression ::= NK_MINUS expression */ + { 310, -3 }, /* (306) expression ::= expression NK_PLUS expression */ + { 310, -3 }, /* (307) expression ::= expression NK_MINUS expression */ + { 310, -3 }, /* (308) expression ::= expression NK_STAR expression */ + { 310, -3 }, /* (309) expression ::= expression NK_SLASH expression */ + { 310, -3 }, /* (310) expression ::= expression NK_REM expression */ + { 310, -3 }, /* (311) expression ::= column_reference NK_ARROW NK_STRING */ + { 293, -1 }, /* (312) expression_list ::= expression */ + { 293, -3 }, /* (313) expression_list ::= expression_list NK_COMMA expression */ + { 312, -1 }, /* (314) column_reference ::= column_name */ + { 312, -3 }, /* (315) column_reference ::= table_name NK_DOT column_name */ + { 311, -1 }, /* (316) pseudo_column ::= ROWTS */ + { 311, -1 }, /* (317) pseudo_column ::= TBNAME */ + { 311, -1 }, /* (318) pseudo_column ::= QSTARTTS */ + { 311, -1 }, /* (319) pseudo_column ::= QENDTS */ + { 311, -1 }, /* (320) pseudo_column ::= WSTARTTS */ + { 311, -1 }, /* (321) pseudo_column ::= WENDTS */ + { 311, -1 }, /* (322) pseudo_column ::= WDURATION */ + { 313, -4 }, /* (323) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 313, -4 }, /* (324) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 313, -6 }, /* (325) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 313, -1 }, /* (326) function_expression ::= literal_func */ + { 307, -3 }, /* (327) literal_func ::= noarg_func NK_LP NK_RP */ + { 307, -1 }, /* (328) literal_func ::= NOW */ + { 317, -1 }, /* (329) noarg_func ::= NOW */ + { 317, -1 }, /* (330) noarg_func ::= TODAY */ + { 317, -1 }, /* (331) noarg_func ::= TIMEZONE */ + { 315, -1 }, /* (332) star_func ::= COUNT */ + { 315, -1 }, /* (333) star_func ::= FIRST */ + { 315, -1 }, /* (334) star_func ::= LAST */ + { 315, -1 }, /* (335) star_func ::= LAST_ROW */ + { 316, -1 }, /* (336) star_func_para_list ::= NK_STAR */ + { 316, -1 }, /* (337) star_func_para_list ::= other_para_list */ + { 318, -1 }, /* (338) other_para_list ::= star_func_para */ + { 318, -3 }, /* (339) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 319, -1 }, /* (340) star_func_para ::= expression */ + { 319, -3 }, /* (341) star_func_para ::= table_name NK_DOT NK_STAR */ + { 320, -3 }, /* (342) predicate ::= expression compare_op expression */ + { 320, -5 }, /* (343) predicate ::= expression BETWEEN expression AND expression */ + { 320, -6 }, /* (344) predicate ::= expression NOT BETWEEN expression AND expression */ + { 320, -3 }, /* (345) predicate ::= expression IS NULL */ + { 320, -4 }, /* (346) predicate ::= expression IS NOT NULL */ + { 320, -3 }, /* (347) predicate ::= expression in_op in_predicate_value */ + { 321, -1 }, /* (348) compare_op ::= NK_LT */ + { 321, -1 }, /* (349) compare_op ::= NK_GT */ + { 321, -1 }, /* (350) compare_op ::= NK_LE */ + { 321, -1 }, /* (351) compare_op ::= NK_GE */ + { 321, -1 }, /* (352) compare_op ::= NK_NE */ + { 321, -1 }, /* (353) compare_op ::= NK_EQ */ + { 321, -1 }, /* (354) compare_op ::= LIKE */ + { 321, -2 }, /* (355) compare_op ::= NOT LIKE */ + { 321, -1 }, /* (356) compare_op ::= MATCH */ + { 321, -1 }, /* (357) compare_op ::= NMATCH */ + { 321, -1 }, /* (358) compare_op ::= CONTAINS */ + { 322, -1 }, /* (359) in_op ::= IN */ + { 322, -2 }, /* (360) in_op ::= NOT IN */ + { 323, -3 }, /* (361) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 324, -1 }, /* (362) boolean_value_expression ::= boolean_primary */ + { 324, -2 }, /* (363) boolean_value_expression ::= NOT boolean_primary */ + { 324, -3 }, /* (364) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 324, -3 }, /* (365) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 325, -1 }, /* (366) boolean_primary ::= predicate */ + { 325, -3 }, /* (367) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 326, -1 }, /* (368) common_expression ::= expression */ + { 326, -1 }, /* (369) common_expression ::= boolean_value_expression */ + { 327, -2 }, /* (370) from_clause ::= FROM table_reference_list */ + { 328, -1 }, /* (371) table_reference_list ::= table_reference */ + { 328, -3 }, /* (372) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 329, -1 }, /* (373) table_reference ::= table_primary */ + { 329, -1 }, /* (374) table_reference ::= joined_table */ + { 330, -2 }, /* (375) table_primary ::= table_name alias_opt */ + { 330, -4 }, /* (376) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 330, -2 }, /* (377) table_primary ::= subquery alias_opt */ + { 330, -1 }, /* (378) table_primary ::= parenthesized_joined_table */ + { 332, 0 }, /* (379) alias_opt ::= */ + { 332, -1 }, /* (380) alias_opt ::= table_alias */ + { 332, -2 }, /* (381) alias_opt ::= AS table_alias */ + { 333, -3 }, /* (382) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 333, -3 }, /* (383) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 331, -6 }, /* (384) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 334, 0 }, /* (385) join_type ::= */ + { 334, -1 }, /* (386) join_type ::= INNER */ + { 336, -9 }, /* (387) 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 */ + { 337, 0 }, /* (388) set_quantifier_opt ::= */ + { 337, -1 }, /* (389) set_quantifier_opt ::= DISTINCT */ + { 337, -1 }, /* (390) set_quantifier_opt ::= ALL */ + { 338, -1 }, /* (391) select_list ::= NK_STAR */ + { 338, -1 }, /* (392) select_list ::= select_sublist */ + { 344, -1 }, /* (393) select_sublist ::= select_item */ + { 344, -3 }, /* (394) select_sublist ::= select_sublist NK_COMMA select_item */ + { 345, -1 }, /* (395) select_item ::= common_expression */ + { 345, -2 }, /* (396) select_item ::= common_expression column_alias */ + { 345, -3 }, /* (397) select_item ::= common_expression AS column_alias */ + { 345, -3 }, /* (398) select_item ::= table_name NK_DOT NK_STAR */ + { 339, 0 }, /* (399) where_clause_opt ::= */ + { 339, -2 }, /* (400) where_clause_opt ::= WHERE search_condition */ + { 340, 0 }, /* (401) partition_by_clause_opt ::= */ + { 340, -3 }, /* (402) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 341, 0 }, /* (403) twindow_clause_opt ::= */ + { 341, -6 }, /* (404) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 341, -4 }, /* (405) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 341, -6 }, /* (406) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 341, -8 }, /* (407) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 291, 0 }, /* (408) sliding_opt ::= */ + { 291, -4 }, /* (409) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 346, 0 }, /* (410) fill_opt ::= */ + { 346, -4 }, /* (411) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 346, -6 }, /* (412) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 347, -1 }, /* (413) fill_mode ::= NONE */ + { 347, -1 }, /* (414) fill_mode ::= PREV */ + { 347, -1 }, /* (415) fill_mode ::= NULL */ + { 347, -1 }, /* (416) fill_mode ::= LINEAR */ + { 347, -1 }, /* (417) fill_mode ::= NEXT */ + { 342, 0 }, /* (418) group_by_clause_opt ::= */ + { 342, -3 }, /* (419) group_by_clause_opt ::= GROUP BY group_by_list */ + { 348, -1 }, /* (420) group_by_list ::= expression */ + { 348, -3 }, /* (421) group_by_list ::= group_by_list NK_COMMA expression */ + { 343, 0 }, /* (422) having_clause_opt ::= */ + { 343, -2 }, /* (423) having_clause_opt ::= HAVING search_condition */ + { 296, -4 }, /* (424) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 349, -1 }, /* (425) query_expression_body ::= query_primary */ + { 349, -4 }, /* (426) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 349, -3 }, /* (427) query_expression_body ::= query_expression_body UNION query_expression_body */ + { 353, -1 }, /* (428) query_primary ::= query_specification */ + { 350, 0 }, /* (429) order_by_clause_opt ::= */ + { 350, -3 }, /* (430) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 351, 0 }, /* (431) slimit_clause_opt ::= */ + { 351, -2 }, /* (432) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 351, -4 }, /* (433) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 351, -4 }, /* (434) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 352, 0 }, /* (435) limit_clause_opt ::= */ + { 352, -2 }, /* (436) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 352, -4 }, /* (437) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 352, -4 }, /* (438) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 314, -3 }, /* (439) subquery ::= NK_LP query_expression NK_RP */ + { 335, -1 }, /* (440) search_condition ::= common_expression */ + { 354, -1 }, /* (441) sort_specification_list ::= sort_specification */ + { 354, -3 }, /* (442) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 355, -3 }, /* (443) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 356, 0 }, /* (444) ordering_specification_opt ::= */ + { 356, -1 }, /* (445) ordering_specification_opt ::= ASC */ + { 356, -1 }, /* (446) ordering_specification_opt ::= DESC */ + { 357, 0 }, /* (447) null_ordering_opt ::= */ + { 357, -2 }, /* (448) null_ordering_opt ::= NULLS FIRST */ + { 357, -2 }, /* (449) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3022,11 +3088,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,232,&yymsp[0].minor); + yy_destructor(yypParser,239,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,233,&yymsp[0].minor); + yy_destructor(yypParser,240,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3040,20 +3106,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,232,&yymsp[-2].minor); +{ yy_destructor(yypParser,239,&yymsp[-2].minor); { } - yy_destructor(yypParser,234,&yymsp[0].minor); + yy_destructor(yypParser,241,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,235,&yymsp[0].minor); +{ yy_destructor(yypParser,242,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,233,&yymsp[-1].minor); +{ yy_destructor(yypParser,240,&yymsp[-1].minor); { } - yy_destructor(yypParser,235,&yymsp[0].minor); + yy_destructor(yypParser,242,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3067,1230 +3133,1268 @@ 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,234,&yymsp[0].minor); + yy_destructor(yypParser,241,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy555, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy0); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy555, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy105, 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.yy555, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy105, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy555); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy105); } break; - case 28: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy555, NULL); } + case 28: /* cmd ::= GRANT privileges ON priv_level TO user_name */ +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy593, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105); } break; - case 29: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy555, &yymsp[0].minor.yy0); } + case 29: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */ +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy593, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105); } break; - case 30: /* cmd ::= DROP DNODE NK_INTEGER */ + case 30: /* privileges ::= ALL */ +{ yymsp[0].minor.yy593 = PRIVILEGE_TYPE_ALL; } + break; + case 31: /* privileges ::= priv_type_list */ + case 32: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==32); +{ yylhsminor.yy593 = yymsp[0].minor.yy593; } + yymsp[0].minor.yy593 = yylhsminor.yy593; + break; + case 33: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ +{ yylhsminor.yy593 = yymsp[-2].minor.yy593 | yymsp[0].minor.yy593; } + yymsp[-2].minor.yy593 = yylhsminor.yy593; + break; + case 34: /* priv_type ::= READ */ +{ yymsp[0].minor.yy593 = PRIVILEGE_TYPE_READ; } + break; + case 35: /* priv_type ::= WRITE */ +{ yymsp[0].minor.yy593 = PRIVILEGE_TYPE_WRITE; } + break; + case 36: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ +{ yylhsminor.yy105 = yymsp[-2].minor.yy0; } + yymsp[-2].minor.yy105 = yylhsminor.yy105; + break; + case 37: /* priv_level ::= db_name NK_DOT NK_STAR */ +{ yylhsminor.yy105 = yymsp[-2].minor.yy105; } + yymsp[-2].minor.yy105 = yylhsminor.yy105; + break; + case 38: /* cmd ::= CREATE DNODE dnode_endpoint */ +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy105, NULL); } + break; + case 39: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy0); } + break; + case 40: /* 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.yy555); } + case 41: /* cmd ::= DROP DNODE dnode_endpoint */ +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy105); } break; - case 32: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + case 42: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } break; - case 33: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + case 43: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 34: /* cmd ::= ALTER ALL DNODES NK_STRING */ + case 44: /* cmd ::= ALTER ALL DNODES NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } break; - case 35: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + case 45: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - 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 317: /* noarg_func ::= NOW */ yytestcase(yyruleno==317); - case 318: /* noarg_func ::= TODAY */ yytestcase(yyruleno==318); - case 319: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==319); - case 320: /* star_func ::= COUNT */ yytestcase(yyruleno==320); - case 321: /* star_func ::= FIRST */ yytestcase(yyruleno==321); - case 322: /* star_func ::= LAST */ yytestcase(yyruleno==322); - case 323: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==323); -{ yylhsminor.yy555 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy555 = yylhsminor.yy555; + case 46: /* dnode_endpoint ::= NK_STRING */ + case 47: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==47); + case 48: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==48); + case 288: /* db_name ::= NK_ID */ yytestcase(yyruleno==288); + case 289: /* table_name ::= NK_ID */ yytestcase(yyruleno==289); + case 290: /* column_name ::= NK_ID */ yytestcase(yyruleno==290); + case 291: /* function_name ::= NK_ID */ yytestcase(yyruleno==291); + case 292: /* table_alias ::= NK_ID */ yytestcase(yyruleno==292); + case 293: /* column_alias ::= NK_ID */ yytestcase(yyruleno==293); + case 294: /* user_name ::= NK_ID */ yytestcase(yyruleno==294); + case 295: /* index_name ::= NK_ID */ yytestcase(yyruleno==295); + case 296: /* topic_name ::= NK_ID */ yytestcase(yyruleno==296); + case 297: /* stream_name ::= NK_ID */ yytestcase(yyruleno==297); + case 329: /* noarg_func ::= NOW */ yytestcase(yyruleno==329); + case 330: /* noarg_func ::= TODAY */ yytestcase(yyruleno==330); + case 331: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==331); + case 332: /* star_func ::= COUNT */ yytestcase(yyruleno==332); + case 333: /* star_func ::= FIRST */ yytestcase(yyruleno==333); + case 334: /* star_func ::= LAST */ yytestcase(yyruleno==334); + case 335: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==335); +{ yylhsminor.yy105 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy105 = yylhsminor.yy105; break; - case 39: /* cmd ::= ALTER LOCAL NK_STRING */ + case 49: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 40: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + case 50: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 41: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + case 51: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; - case 42: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + case 52: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; - case 43: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + case 53: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; - case 44: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + case 54: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; - case 45: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + case 55: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; - case 46: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + case 56: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; - case 47: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + case 57: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; - case 48: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + case 58: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { 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.yy617, &yymsp[-1].minor.yy555, yymsp[0].minor.yy662); } + case 59: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy617, &yymsp[-1].minor.yy105, yymsp[0].minor.yy172); } break; - case 50: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy555); } + case 60: /* cmd ::= DROP DATABASE exists_opt db_name */ +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy105); } break; - case 51: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy555); } + case 61: /* cmd ::= USE db_name */ +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy105); } break; - case 52: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy555, yymsp[0].minor.yy662); } + case 62: /* cmd ::= ALTER DATABASE db_name alter_db_options */ +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy105, yymsp[0].minor.yy172); } break; - case 53: /* not_exists_opt ::= IF NOT EXISTS */ + case 63: /* not_exists_opt ::= IF NOT EXISTS */ { yymsp[-2].minor.yy617 = true; } break; - case 54: /* not_exists_opt ::= */ - case 56: /* exists_opt ::= */ yytestcase(yyruleno==56); - case 223: /* analyze_opt ::= */ yytestcase(yyruleno==223); - case 231: /* agg_func_opt ::= */ yytestcase(yyruleno==231); - case 376: /* set_quantifier_opt ::= */ yytestcase(yyruleno==376); + case 64: /* not_exists_opt ::= */ + case 66: /* exists_opt ::= */ yytestcase(yyruleno==66); + case 234: /* analyze_opt ::= */ yytestcase(yyruleno==234); + case 242: /* agg_func_opt ::= */ yytestcase(yyruleno==242); + case 388: /* set_quantifier_opt ::= */ yytestcase(yyruleno==388); { yymsp[1].minor.yy617 = false; } break; - case 55: /* exists_opt ::= IF EXISTS */ + case 65: /* exists_opt ::= IF EXISTS */ { yymsp[-1].minor.yy617 = true; } break; - case 57: /* db_options ::= */ -{ yymsp[1].minor.yy662 = createDefaultDatabaseOptions(pCxt); } + case 67: /* db_options ::= */ +{ yymsp[1].minor.yy172 = createDefaultDatabaseOptions(pCxt); } break; - case 58: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 68: /* db_options ::= db_options BUFFER NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 59: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 69: /* db_options ::= db_options CACHELAST NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 60: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 70: /* db_options ::= db_options COMP NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 61: /* db_options ::= db_options DAYS NK_INTEGER */ - case 62: /* db_options ::= db_options DAYS NK_VARIABLE */ yytestcase(yyruleno==62); -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 71: /* db_options ::= db_options DAYS NK_INTEGER */ + case 72: /* db_options ::= db_options DAYS NK_VARIABLE */ yytestcase(yyruleno==72); +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 63: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 73: /* db_options ::= db_options FSYNC NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 64: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 74: /* db_options ::= db_options MAXROWS NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 65: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 66: /* db_options ::= db_options KEEP integer_list */ - case 67: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==67); -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_KEEP, yymsp[0].minor.yy568); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 68: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 69: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 70: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 71: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 72: /* db_options ::= db_options STRICT NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 73: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 74: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 75: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 76: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy662 = setDatabaseOption(pCxt, yymsp[-2].minor.yy662, DB_OPTION_RETENTIONS, yymsp[0].minor.yy568); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 77: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy662 = createAlterDatabaseOptions(pCxt); yylhsminor.yy662 = setAlterDatabaseOption(pCxt, yylhsminor.yy662, &yymsp[0].minor.yy475); } - yymsp[0].minor.yy662 = yylhsminor.yy662; - break; - case 78: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy662 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy662, &yymsp[0].minor.yy475); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; - break; - case 79: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy475.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy475.val = yymsp[0].minor.yy0; } - break; - case 80: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy475.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy475.val = yymsp[0].minor.yy0; } - break; - case 81: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy475.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy475.val = yymsp[0].minor.yy0; } - break; - case 82: /* alter_db_option ::= KEEP integer_list */ - case 83: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==83); -{ yymsp[-1].minor.yy475.type = DB_OPTION_KEEP; yymsp[-1].minor.yy475.pList = yymsp[0].minor.yy568; } - break; - case 84: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy475.type = DB_OPTION_PAGES; yymsp[-1].minor.yy475.val = yymsp[0].minor.yy0; } - break; - case 85: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy475.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy475.val = yymsp[0].minor.yy0; } - break; - case 86: /* alter_db_option ::= STRICT NK_INTEGER */ -{ yymsp[-1].minor.yy475.type = DB_OPTION_STRICT; yymsp[-1].minor.yy475.val = yymsp[0].minor.yy0; } - break; - case 87: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy475.type = DB_OPTION_WAL; yymsp[-1].minor.yy475.val = yymsp[0].minor.yy0; } - break; - case 88: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy568 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy568 = yylhsminor.yy568; - break; - case 89: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 249: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==249); -{ yylhsminor.yy568 = addNodeToList(pCxt, yymsp[-2].minor.yy568, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy568 = yylhsminor.yy568; - break; - case 90: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy568 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy568 = yylhsminor.yy568; - break; - case 91: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy568 = addNodeToList(pCxt, yymsp[-2].minor.yy568, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy568 = yylhsminor.yy568; - break; - case 92: /* retention_list ::= retention */ - case 112: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==112); - case 115: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==115); - case 122: /* column_def_list ::= column_def */ yytestcase(yyruleno==122); - case 163: /* col_name_list ::= col_name */ yytestcase(yyruleno==163); - case 200: /* func_name_list ::= func_name */ yytestcase(yyruleno==200); - case 209: /* func_list ::= func */ yytestcase(yyruleno==209); - case 274: /* literal_list ::= signed_literal */ yytestcase(yyruleno==274); - case 326: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==326); - case 381: /* select_sublist ::= select_item */ yytestcase(yyruleno==381); - case 429: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==429); -{ yylhsminor.yy568 = createNodeList(pCxt, yymsp[0].minor.yy662); } - yymsp[0].minor.yy568 = yylhsminor.yy568; - break; - case 93: /* retention_list ::= retention_list NK_COMMA retention */ - case 123: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==123); - case 164: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==164); - case 201: /* func_name_list ::= func_name_list NK_COMMA func_name */ yytestcase(yyruleno==201); - case 210: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==210); - case 275: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==275); - case 327: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==327); - case 382: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==382); - case 430: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==430); -{ yylhsminor.yy568 = addNodeToList(pCxt, yymsp[-2].minor.yy568, yymsp[0].minor.yy662); } - yymsp[-2].minor.yy568 = yylhsminor.yy568; - break; - case 94: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy662 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; - break; - case 95: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 97: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==97); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy617, yymsp[-5].minor.yy662, yymsp[-3].minor.yy568, yymsp[-1].minor.yy568, yymsp[0].minor.yy662); } - break; - case 96: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy568); } - break; - case 98: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy568); } - break; - case 99: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy617, yymsp[0].minor.yy662); } - break; - case 100: /* cmd ::= ALTER TABLE alter_table_clause */ - case 101: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==101); - case 251: /* cmd ::= query_expression */ yytestcase(yyruleno==251); -{ pCxt->pRootNode = yymsp[0].minor.yy662; } - break; - case 102: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy662 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy662, yymsp[0].minor.yy662); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; - break; - case 103: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy662 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy662, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy555, yymsp[0].minor.yy156); } - yymsp[-4].minor.yy662 = yylhsminor.yy662; - break; - case 104: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy662 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy662, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy555); } - yymsp[-3].minor.yy662 = yylhsminor.yy662; - break; - case 105: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy662 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy662, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy555, yymsp[0].minor.yy156); } - yymsp[-4].minor.yy662 = yylhsminor.yy662; + case 75: /* db_options ::= db_options MINROWS NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 76: /* db_options ::= db_options KEEP integer_list */ + case 77: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==77); +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_KEEP, yymsp[0].minor.yy60); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 78: /* db_options ::= db_options PAGES NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 79: /* db_options ::= db_options PAGESIZE NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 80: /* db_options ::= db_options PRECISION NK_STRING */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 81: /* db_options ::= db_options REPLICA NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 82: /* db_options ::= db_options STRICT NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 83: /* db_options ::= db_options WAL NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 84: /* db_options ::= db_options VGROUPS NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 85: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 86: /* db_options ::= db_options RETENTIONS retention_list */ +{ yylhsminor.yy172 = setDatabaseOption(pCxt, yymsp[-2].minor.yy172, DB_OPTION_RETENTIONS, yymsp[0].minor.yy60); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 87: /* alter_db_options ::= alter_db_option */ +{ yylhsminor.yy172 = createAlterDatabaseOptions(pCxt); yylhsminor.yy172 = setAlterDatabaseOption(pCxt, yylhsminor.yy172, &yymsp[0].minor.yy609); } + yymsp[0].minor.yy172 = yylhsminor.yy172; + break; + case 88: /* alter_db_options ::= alter_db_options alter_db_option */ +{ yylhsminor.yy172 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy172, &yymsp[0].minor.yy609); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; + break; + case 89: /* alter_db_option ::= BUFFER NK_INTEGER */ +{ yymsp[-1].minor.yy609.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; } + break; + case 90: /* alter_db_option ::= CACHELAST NK_INTEGER */ +{ yymsp[-1].minor.yy609.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; } + break; + case 91: /* alter_db_option ::= FSYNC NK_INTEGER */ +{ yymsp[-1].minor.yy609.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; } + break; + case 92: /* alter_db_option ::= KEEP integer_list */ + case 93: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==93); +{ yymsp[-1].minor.yy609.type = DB_OPTION_KEEP; yymsp[-1].minor.yy609.pList = yymsp[0].minor.yy60; } + break; + case 94: /* alter_db_option ::= PAGES NK_INTEGER */ +{ yymsp[-1].minor.yy609.type = DB_OPTION_PAGES; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; } + break; + case 95: /* alter_db_option ::= REPLICA NK_INTEGER */ +{ yymsp[-1].minor.yy609.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; } + break; + case 96: /* alter_db_option ::= STRICT NK_INTEGER */ +{ yymsp[-1].minor.yy609.type = DB_OPTION_STRICT; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; } + break; + case 97: /* alter_db_option ::= WAL NK_INTEGER */ +{ yymsp[-1].minor.yy609.type = DB_OPTION_WAL; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; } + break; + case 98: /* integer_list ::= NK_INTEGER */ +{ yylhsminor.yy60 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy60 = yylhsminor.yy60; + break; + case 99: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ + case 261: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==261); +{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy60 = yylhsminor.yy60; + break; + case 100: /* variable_list ::= NK_VARIABLE */ +{ yylhsminor.yy60 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy60 = yylhsminor.yy60; + break; + case 101: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ +{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy60 = yylhsminor.yy60; + break; + case 102: /* retention_list ::= retention */ + case 122: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==122); + case 125: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==125); + case 132: /* column_def_list ::= column_def */ yytestcase(yyruleno==132); + case 173: /* col_name_list ::= col_name */ yytestcase(yyruleno==173); + case 211: /* func_name_list ::= func_name */ yytestcase(yyruleno==211); + case 220: /* func_list ::= func */ yytestcase(yyruleno==220); + case 286: /* literal_list ::= signed_literal */ yytestcase(yyruleno==286); + case 338: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==338); + case 393: /* select_sublist ::= select_item */ yytestcase(yyruleno==393); + case 441: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==441); +{ yylhsminor.yy60 = createNodeList(pCxt, yymsp[0].minor.yy172); } + yymsp[0].minor.yy60 = yylhsminor.yy60; + break; + case 103: /* retention_list ::= retention_list NK_COMMA retention */ + case 133: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==133); + case 174: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==174); + case 212: /* func_name_list ::= func_name_list NK_COMMA func_name */ yytestcase(yyruleno==212); + case 221: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==221); + case 287: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==287); + case 339: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==339); + case 394: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==394); + case 442: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==442); +{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, yymsp[0].minor.yy172); } + yymsp[-2].minor.yy60 = yylhsminor.yy60; + break; + case 104: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ +{ yylhsminor.yy172 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; + break; + case 105: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 107: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==107); +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy617, yymsp[-5].minor.yy172, yymsp[-3].minor.yy60, yymsp[-1].minor.yy60, yymsp[0].minor.yy172); } + break; + case 106: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy60); } + break; + case 108: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy60); } + break; + case 109: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy617, yymsp[0].minor.yy172); } + break; + case 110: /* cmd ::= ALTER TABLE alter_table_clause */ + case 111: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==111); + case 263: /* cmd ::= query_expression */ yytestcase(yyruleno==263); +{ pCxt->pRootNode = yymsp[0].minor.yy172; } + break; + case 112: /* alter_table_clause ::= full_table_name alter_table_options */ +{ yylhsminor.yy172 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy172, yymsp[0].minor.yy172); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; + break; + case 113: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ +{ yylhsminor.yy172 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248); } + yymsp[-4].minor.yy172 = yylhsminor.yy172; + break; + case 114: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ +{ yylhsminor.yy172 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy172, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy105); } + yymsp[-3].minor.yy172 = yylhsminor.yy172; + break; + case 115: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ +{ yylhsminor.yy172 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248); } + yymsp[-4].minor.yy172 = yylhsminor.yy172; break; - case 106: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy662 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy662, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy555, &yymsp[0].minor.yy555); } - yymsp[-4].minor.yy662 = yylhsminor.yy662; - break; - case 107: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy662 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy662, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy555, yymsp[0].minor.yy156); } - yymsp[-4].minor.yy662 = yylhsminor.yy662; - break; - case 108: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy662 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy662, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy555); } - yymsp[-3].minor.yy662 = yylhsminor.yy662; + case 116: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ +{ yylhsminor.yy172 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy105, &yymsp[0].minor.yy105); } + yymsp[-4].minor.yy172 = yylhsminor.yy172; + break; + case 117: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ +{ yylhsminor.yy172 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248); } + yymsp[-4].minor.yy172 = yylhsminor.yy172; + break; + case 118: /* alter_table_clause ::= full_table_name DROP TAG column_name */ +{ yylhsminor.yy172 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy172, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy105); } + yymsp[-3].minor.yy172 = yylhsminor.yy172; break; - case 109: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy662 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy662, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy555, yymsp[0].minor.yy156); } - yymsp[-4].minor.yy662 = yylhsminor.yy662; + case 119: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ +{ yylhsminor.yy172 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248); } + yymsp[-4].minor.yy172 = yylhsminor.yy172; break; - case 110: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy662 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy662, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy555, &yymsp[0].minor.yy555); } - yymsp[-4].minor.yy662 = yylhsminor.yy662; - break; - case 111: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ -{ yylhsminor.yy662 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy662, &yymsp[-2].minor.yy555, yymsp[0].minor.yy662); } - yymsp[-5].minor.yy662 = yylhsminor.yy662; + case 120: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ +{ yylhsminor.yy172 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy172, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy105, &yymsp[0].minor.yy105); } + yymsp[-4].minor.yy172 = yylhsminor.yy172; + break; + case 121: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ +{ yylhsminor.yy172 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy172, &yymsp[-2].minor.yy105, yymsp[0].minor.yy172); } + yymsp[-5].minor.yy172 = yylhsminor.yy172; break; - case 113: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 116: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==116); -{ yylhsminor.yy568 = addNodeToList(pCxt, yymsp[-1].minor.yy568, yymsp[0].minor.yy662); } - yymsp[-1].minor.yy568 = yylhsminor.yy568; + case 123: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 126: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==126); +{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-1].minor.yy60, yymsp[0].minor.yy172); } + yymsp[-1].minor.yy60 = yylhsminor.yy60; break; - case 114: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ -{ yylhsminor.yy662 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy617, yymsp[-8].minor.yy662, yymsp[-6].minor.yy662, yymsp[-5].minor.yy568, yymsp[-2].minor.yy568, yymsp[0].minor.yy662); } - yymsp[-9].minor.yy662 = yylhsminor.yy662; + case 124: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ +{ yylhsminor.yy172 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy617, yymsp[-8].minor.yy172, yymsp[-6].minor.yy172, yymsp[-5].minor.yy60, yymsp[-2].minor.yy60, yymsp[0].minor.yy172); } + yymsp[-9].minor.yy172 = yylhsminor.yy172; break; - case 117: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy662 = createDropTableClause(pCxt, yymsp[-1].minor.yy617, yymsp[0].minor.yy662); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + case 127: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy172 = createDropTableClause(pCxt, yymsp[-1].minor.yy617, yymsp[0].minor.yy172); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 118: /* specific_tags_opt ::= */ - case 149: /* tags_def_opt ::= */ yytestcase(yyruleno==149); - case 389: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==389); - case 406: /* group_by_clause_opt ::= */ yytestcase(yyruleno==406); - case 417: /* order_by_clause_opt ::= */ yytestcase(yyruleno==417); -{ yymsp[1].minor.yy568 = NULL; } + case 128: /* specific_tags_opt ::= */ + case 159: /* tags_def_opt ::= */ yytestcase(yyruleno==159); + case 401: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==401); + case 418: /* group_by_clause_opt ::= */ yytestcase(yyruleno==418); + case 429: /* order_by_clause_opt ::= */ yytestcase(yyruleno==429); +{ yymsp[1].minor.yy60 = NULL; } break; - case 119: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy568 = yymsp[-1].minor.yy568; } + case 129: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy60 = yymsp[-1].minor.yy60; } break; - case 120: /* full_table_name ::= table_name */ -{ yylhsminor.yy662 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy555, NULL); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 130: /* full_table_name ::= table_name */ +{ yylhsminor.yy172 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy105, NULL); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 121: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy662 = createRealTableNode(pCxt, &yymsp[-2].minor.yy555, &yymsp[0].minor.yy555, NULL); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 131: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy172 = createRealTableNode(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105, NULL); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 124: /* column_def ::= column_name type_name */ -{ yylhsminor.yy662 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy555, yymsp[0].minor.yy156, NULL); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + case 134: /* column_def ::= column_name type_name */ +{ yylhsminor.yy172 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy105, yymsp[0].minor.yy248, NULL); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 125: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy662 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy555, yymsp[-2].minor.yy156, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy662 = yylhsminor.yy662; + case 135: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy172 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy105, yymsp[-2].minor.yy248, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy172 = yylhsminor.yy172; break; - case 126: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 136: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 127: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 137: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 128: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 138: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 129: /* type_name ::= INT */ - case 130: /* type_name ::= INTEGER */ yytestcase(yyruleno==130); -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_INT); } + case 139: /* type_name ::= INT */ + case 140: /* type_name ::= INTEGER */ yytestcase(yyruleno==140); +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 131: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 141: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 132: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 142: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 133: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 143: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 134: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy156 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 144: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy248 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 135: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 145: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 136: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy156 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 146: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy248 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 137: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy156 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 147: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy248 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 138: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy156 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 148: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy248 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 139: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy156 = createDataType(TSDB_DATA_TYPE_UINT); } + case 149: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy248 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 140: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy156 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 150: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy248 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 141: /* type_name ::= JSON */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_JSON); } + case 151: /* type_name ::= JSON */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 142: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy156 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 152: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy248 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 143: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 153: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 144: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 154: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 145: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy156 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 155: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy248 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 146: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy156 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 156: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy248 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 147: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy156 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 157: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy248 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 148: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy156 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 158: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy248 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 150: /* tags_def_opt ::= tags_def */ - case 325: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==325); - case 380: /* select_list ::= select_sublist */ yytestcase(yyruleno==380); -{ yylhsminor.yy568 = yymsp[0].minor.yy568; } - yymsp[0].minor.yy568 = yylhsminor.yy568; + case 160: /* tags_def_opt ::= tags_def */ + case 337: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==337); + case 392: /* select_list ::= select_sublist */ yytestcase(yyruleno==392); +{ yylhsminor.yy60 = yymsp[0].minor.yy60; } + yymsp[0].minor.yy60 = yylhsminor.yy60; break; - case 151: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy568 = yymsp[-1].minor.yy568; } + case 161: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy60 = yymsp[-1].minor.yy60; } break; - case 152: /* table_options ::= */ -{ yymsp[1].minor.yy662 = createDefaultTableOptions(pCxt); } + case 162: /* table_options ::= */ +{ yymsp[1].minor.yy172 = createDefaultTableOptions(pCxt); } break; - case 153: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy662 = setTableOption(pCxt, yymsp[-2].minor.yy662, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 163: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-2].minor.yy172, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 154: /* table_options ::= table_options DELAY NK_INTEGER */ -{ yylhsminor.yy662 = setTableOption(pCxt, yymsp[-2].minor.yy662, TABLE_OPTION_DELAY, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 164: /* table_options ::= table_options DELAY NK_INTEGER */ +{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-2].minor.yy172, TABLE_OPTION_DELAY, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 155: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ -{ yylhsminor.yy662 = setTableOption(pCxt, yymsp[-2].minor.yy662, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 165: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ +{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-2].minor.yy172, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 156: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ -{ yylhsminor.yy662 = setTableOption(pCxt, yymsp[-4].minor.yy662, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy568); } - yymsp[-4].minor.yy662 = yylhsminor.yy662; + case 166: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ +{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-4].minor.yy172, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy60); } + yymsp[-4].minor.yy172 = yylhsminor.yy172; break; - case 157: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy662 = setTableOption(pCxt, yymsp[-2].minor.yy662, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 167: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-2].minor.yy172, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 158: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy662 = setTableOption(pCxt, yymsp[-4].minor.yy662, TABLE_OPTION_SMA, yymsp[-1].minor.yy568); } - yymsp[-4].minor.yy662 = yylhsminor.yy662; + case 168: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-4].minor.yy172, TABLE_OPTION_SMA, yymsp[-1].minor.yy60); } + yymsp[-4].minor.yy172 = yylhsminor.yy172; break; - case 159: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy662 = createAlterTableOptions(pCxt); yylhsminor.yy662 = setTableOption(pCxt, yylhsminor.yy662, yymsp[0].minor.yy475.type, &yymsp[0].minor.yy475.val); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 169: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy172 = createAlterTableOptions(pCxt); yylhsminor.yy172 = setTableOption(pCxt, yylhsminor.yy172, yymsp[0].minor.yy609.type, &yymsp[0].minor.yy609.val); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 160: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy662 = setTableOption(pCxt, yymsp[-1].minor.yy662, yymsp[0].minor.yy475.type, &yymsp[0].minor.yy475.val); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + case 170: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy172 = setTableOption(pCxt, yymsp[-1].minor.yy172, yymsp[0].minor.yy609.type, &yymsp[0].minor.yy609.val); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 161: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy475.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy475.val = yymsp[0].minor.yy0; } + case 171: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy609.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; } break; - case 162: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy475.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy475.val = yymsp[0].minor.yy0; } + case 172: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy609.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy609.val = yymsp[0].minor.yy0; } break; - case 165: /* col_name ::= column_name */ -{ yylhsminor.yy662 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy555); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 175: /* col_name ::= column_name */ +{ yylhsminor.yy172 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy105); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 166: /* cmd ::= SHOW DNODES */ + case 176: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } break; - case 167: /* cmd ::= SHOW USERS */ + case 177: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); } break; - case 168: /* cmd ::= SHOW DATABASES */ + case 178: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } break; - case 169: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy662, yymsp[0].minor.yy662); } + case 179: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy172, yymsp[0].minor.yy172); } break; - case 170: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy662, yymsp[0].minor.yy662); } + case 180: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy172, yymsp[0].minor.yy172); } break; - case 171: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy662, NULL); } + case 181: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy172, NULL); } break; - case 172: /* cmd ::= SHOW MNODES */ + case 182: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } break; - case 173: /* cmd ::= SHOW MODULES */ + case 183: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); } break; - case 174: /* cmd ::= SHOW QNODES */ + case 184: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); } break; - case 175: /* cmd ::= SHOW FUNCTIONS */ + case 185: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } break; - case 176: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy662, yymsp[0].minor.yy662); } + case 186: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy172, yymsp[0].minor.yy172); } break; - case 177: /* cmd ::= SHOW STREAMS */ + case 187: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } break; - case 178: /* cmd ::= SHOW ACCOUNTS */ + case 188: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 179: /* cmd ::= SHOW APPS */ + case 189: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT, NULL, NULL); } break; - case 180: /* cmd ::= SHOW CONNECTIONS */ + case 190: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT, NULL, NULL); } break; - case 181: /* cmd ::= SHOW LICENCE */ - case 182: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==182); + case 191: /* cmd ::= SHOW LICENCE */ + case 192: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==192); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT, NULL, NULL); } break; - case 183: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy555); } + case 193: /* cmd ::= SHOW CREATE DATABASE db_name */ +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy105); } break; - case 184: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy662); } + case 194: /* cmd ::= SHOW CREATE TABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy172); } break; - case 185: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy662); } + case 195: /* cmd ::= SHOW CREATE STABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy172); } break; - case 186: /* cmd ::= SHOW QUERIES */ + case 196: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); } break; - case 187: /* cmd ::= SHOW SCORES */ + case 197: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT, NULL, NULL); } break; - case 188: /* cmd ::= SHOW TOPICS */ + case 198: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT, NULL, NULL); } break; - case 189: /* cmd ::= SHOW VARIABLES */ + case 199: /* cmd ::= SHOW VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); } break; - case 190: /* cmd ::= SHOW BNODES */ + case 200: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); } break; - case 191: /* cmd ::= SHOW SNODES */ + case 201: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); } break; - case 192: /* cmd ::= SHOW CLUSTER */ + case 202: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT, NULL, NULL); } break; - case 193: /* db_name_cond_opt ::= */ - case 198: /* from_db_opt ::= */ yytestcase(yyruleno==198); -{ yymsp[1].minor.yy662 = createDefaultDatabaseCondValue(pCxt); } + case 203: /* cmd ::= SHOW TRANSACTIONS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT, NULL, NULL); } break; - case 194: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy555); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + case 204: /* db_name_cond_opt ::= */ + case 209: /* from_db_opt ::= */ yytestcase(yyruleno==209); +{ yymsp[1].minor.yy172 = createDefaultDatabaseCondValue(pCxt); } break; - case 195: /* like_pattern_opt ::= */ - case 206: /* index_options ::= */ yytestcase(yyruleno==206); - case 237: /* into_opt ::= */ yytestcase(yyruleno==237); - case 387: /* where_clause_opt ::= */ yytestcase(yyruleno==387); - case 391: /* twindow_clause_opt ::= */ yytestcase(yyruleno==391); - case 396: /* sliding_opt ::= */ yytestcase(yyruleno==396); - case 398: /* fill_opt ::= */ yytestcase(yyruleno==398); - case 410: /* having_clause_opt ::= */ yytestcase(yyruleno==410); - case 419: /* slimit_clause_opt ::= */ yytestcase(yyruleno==419); - case 423: /* limit_clause_opt ::= */ yytestcase(yyruleno==423); -{ yymsp[1].minor.yy662 = NULL; } + case 205: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy105); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 196: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 206: /* like_pattern_opt ::= */ + case 217: /* index_options ::= */ yytestcase(yyruleno==217); + case 248: /* into_opt ::= */ yytestcase(yyruleno==248); + case 399: /* where_clause_opt ::= */ yytestcase(yyruleno==399); + case 403: /* twindow_clause_opt ::= */ yytestcase(yyruleno==403); + case 408: /* sliding_opt ::= */ yytestcase(yyruleno==408); + case 410: /* fill_opt ::= */ yytestcase(yyruleno==410); + case 422: /* having_clause_opt ::= */ yytestcase(yyruleno==422); + case 431: /* slimit_clause_opt ::= */ yytestcase(yyruleno==431); + case 435: /* limit_clause_opt ::= */ yytestcase(yyruleno==435); +{ yymsp[1].minor.yy172 = NULL; } break; - case 197: /* table_name_cond ::= table_name */ -{ yylhsminor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy555); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 207: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 199: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy555); } + case 208: /* table_name_cond ::= table_name */ +{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy105); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 202: /* func_name ::= function_name */ -{ yylhsminor.yy662 = createFunctionNode(pCxt, &yymsp[0].minor.yy555, NULL); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 210: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy105); } break; - case 203: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy617, &yymsp[-3].minor.yy555, &yymsp[-1].minor.yy555, NULL, yymsp[0].minor.yy662); } + case 213: /* func_name ::= function_name */ +{ yylhsminor.yy172 = createFunctionNode(pCxt, &yymsp[0].minor.yy105, NULL); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 204: /* 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.yy617, &yymsp[-5].minor.yy555, &yymsp[-3].minor.yy555, yymsp[-1].minor.yy568, NULL); } + case 214: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy617, &yymsp[-3].minor.yy105, &yymsp[-1].minor.yy105, NULL, yymsp[0].minor.yy172); } break; - case 205: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy617, &yymsp[-2].minor.yy555, &yymsp[0].minor.yy555); } + case 215: /* 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.yy617, &yymsp[-5].minor.yy105, &yymsp[-3].minor.yy105, yymsp[-1].minor.yy60, NULL); } break; - case 207: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy662 = createIndexOption(pCxt, yymsp[-6].minor.yy568, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), NULL, yymsp[0].minor.yy662); } + case 216: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy617, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105); } break; - case 208: /* 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.yy662 = createIndexOption(pCxt, yymsp[-8].minor.yy568, releaseRawExprNode(pCxt, yymsp[-4].minor.yy662), releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), yymsp[0].minor.yy662); } + case 218: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ +{ yymsp[-8].minor.yy172 = createIndexOption(pCxt, yymsp[-6].minor.yy60, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), NULL, yymsp[0].minor.yy172); } break; - case 211: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy662 = createFunctionNode(pCxt, &yymsp[-3].minor.yy555, yymsp[-1].minor.yy568); } - yymsp[-3].minor.yy662 = yylhsminor.yy662; + case 219: /* 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.yy172 = createIndexOption(pCxt, yymsp[-8].minor.yy60, releaseRawExprNode(pCxt, yymsp[-4].minor.yy172), releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), yymsp[0].minor.yy172); } break; - case 212: /* cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy617, &yymsp[-3].minor.yy555, yymsp[0].minor.yy662, NULL, yymsp[-2].minor.yy662); } + case 222: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy172 = createFunctionNode(pCxt, &yymsp[-3].minor.yy105, yymsp[-1].minor.yy60); } + yymsp[-3].minor.yy172 = yylhsminor.yy172; break; - case 213: /* cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy617, &yymsp[-3].minor.yy555, NULL, &yymsp[0].minor.yy555, yymsp[-2].minor.yy662); } + case 223: /* cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS query_expression */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy617, &yymsp[-3].minor.yy105, yymsp[0].minor.yy172, NULL, yymsp[-2].minor.yy172); } break; - case 214: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy555); } + case 224: /* cmd ::= CREATE TOPIC not_exists_opt topic_name topic_options AS db_name */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy617, &yymsp[-3].minor.yy105, NULL, &yymsp[0].minor.yy105, yymsp[-2].minor.yy172); } break; - case 215: /* topic_options ::= */ -{ yymsp[1].minor.yy662 = createTopicOptions(pCxt); } + case 225: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy105); } break; - case 216: /* topic_options ::= topic_options WITH TABLE */ -{ ((STopicOptions*)yymsp[-2].minor.yy662)->withTable = true; yylhsminor.yy662 = yymsp[-2].minor.yy662; } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 226: /* topic_options ::= */ +{ yymsp[1].minor.yy172 = createTopicOptions(pCxt); } break; - case 217: /* topic_options ::= topic_options WITH SCHEMA */ -{ ((STopicOptions*)yymsp[-2].minor.yy662)->withSchema = true; yylhsminor.yy662 = yymsp[-2].minor.yy662; } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 227: /* topic_options ::= topic_options WITH TABLE */ +{ ((STopicOptions*)yymsp[-2].minor.yy172)->withTable = true; yylhsminor.yy172 = yymsp[-2].minor.yy172; } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 218: /* topic_options ::= topic_options WITH TAG */ -{ ((STopicOptions*)yymsp[-2].minor.yy662)->withTag = true; yylhsminor.yy662 = yymsp[-2].minor.yy662; } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 228: /* topic_options ::= topic_options WITH SCHEMA */ +{ ((STopicOptions*)yymsp[-2].minor.yy172)->withSchema = true; yylhsminor.yy172 = yymsp[-2].minor.yy172; } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 219: /* cmd ::= DESC full_table_name */ - case 220: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==220); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy662); } + case 229: /* topic_options ::= topic_options WITH TAG */ +{ ((STopicOptions*)yymsp[-2].minor.yy172)->withTag = true; yylhsminor.yy172 = yymsp[-2].minor.yy172; } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 221: /* cmd ::= RESET QUERY CACHE */ + case 230: /* cmd ::= DESC full_table_name */ + case 231: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==231); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy172); } + break; + case 232: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 222: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy617, yymsp[-1].minor.yy662, yymsp[0].minor.yy662); } + case 233: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy617, yymsp[-1].minor.yy172, yymsp[0].minor.yy172); } break; - case 224: /* analyze_opt ::= ANALYZE */ - case 232: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==232); - case 377: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==377); + case 235: /* analyze_opt ::= ANALYZE */ + case 243: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==243); + case 389: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==389); { yymsp[0].minor.yy617 = true; } break; - case 225: /* explain_options ::= */ -{ yymsp[1].minor.yy662 = createDefaultExplainOptions(pCxt); } + case 236: /* explain_options ::= */ +{ yymsp[1].minor.yy172 = createDefaultExplainOptions(pCxt); } break; - case 226: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy662 = setExplainVerbose(pCxt, yymsp[-2].minor.yy662, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 237: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy172 = setExplainVerbose(pCxt, yymsp[-2].minor.yy172, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 227: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy662 = setExplainRatio(pCxt, yymsp[-2].minor.yy662, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 238: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy172 = setExplainRatio(pCxt, yymsp[-2].minor.yy172, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 228: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ -{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy568); } + case 239: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ +{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy60); } break; - case 229: /* 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.yy617, yymsp[-8].minor.yy617, &yymsp[-5].minor.yy555, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy156, yymsp[0].minor.yy610); } + case 240: /* 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.yy617, yymsp[-8].minor.yy617, &yymsp[-5].minor.yy105, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy248, yymsp[0].minor.yy140); } break; - case 230: /* cmd ::= DROP FUNCTION function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, &yymsp[0].minor.yy555); } + case 241: /* cmd ::= DROP FUNCTION exists_opt function_name */ +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy105); } break; - case 233: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy610 = 0; } + case 244: /* bufsize_opt ::= */ +{ yymsp[1].minor.yy140 = 0; } break; - case 234: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy610 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + case 245: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ +{ yymsp[-1].minor.yy140 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 235: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy617, &yymsp[-4].minor.yy555, yymsp[-2].minor.yy662, yymsp[-3].minor.yy662, yymsp[0].minor.yy662); } + case 246: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy617, &yymsp[-4].minor.yy105, yymsp[-2].minor.yy172, yymsp[-3].minor.yy172, yymsp[0].minor.yy172); } break; - case 236: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy555); } + case 247: /* cmd ::= DROP STREAM exists_opt stream_name */ +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy617, &yymsp[0].minor.yy105); } break; - case 238: /* into_opt ::= INTO full_table_name */ - case 358: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==358); - case 388: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==388); - case 411: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==411); -{ yymsp[-1].minor.yy662 = yymsp[0].minor.yy662; } + case 249: /* into_opt ::= INTO full_table_name */ + case 370: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==370); + case 400: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==400); + case 423: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==423); +{ yymsp[-1].minor.yy172 = yymsp[0].minor.yy172; } break; - case 239: /* stream_options ::= */ -{ yymsp[1].minor.yy662 = createStreamOptions(pCxt); } + case 250: /* stream_options ::= */ +{ yymsp[1].minor.yy172 = createStreamOptions(pCxt); } break; - case 240: /* stream_options ::= stream_options TRIGGER AT_ONCE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy662)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy662 = yymsp[-2].minor.yy662; } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 251: /* stream_options ::= stream_options TRIGGER AT_ONCE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy172)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy172 = yymsp[-2].minor.yy172; } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 241: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy662)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy662 = yymsp[-2].minor.yy662; } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 252: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy172)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy172 = yymsp[-2].minor.yy172; } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 242: /* stream_options ::= stream_options WATERMARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy662)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy662); yylhsminor.yy662 = yymsp[-2].minor.yy662; } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 253: /* stream_options ::= stream_options WATERMARK duration_literal */ +{ ((SStreamOptions*)yymsp[-2].minor.yy172)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy172); yylhsminor.yy172 = yymsp[-2].minor.yy172; } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 243: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 254: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 244: /* cmd ::= KILL QUERY NK_INTEGER */ + case 255: /* cmd ::= KILL QUERY NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_QUERY_STMT, &yymsp[0].minor.yy0); } break; - case 245: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 256: /* cmd ::= KILL TRANSACTION NK_INTEGER */ +{ pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } + break; + case 257: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 246: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy568); } + case 258: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy60); } break; - case 247: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 259: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 248: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy568 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + case 260: /* dnode_list ::= DNODE NK_INTEGER */ +{ yymsp[-1].minor.yy60 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; - case 250: /* cmd ::= SYNCDB db_name REPLICA */ -{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy555); } + case 262: /* cmd ::= SYNCDB db_name REPLICA */ +{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy105); } break; - case 252: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy662 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 264: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 253: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy662 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 265: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 254: /* literal ::= NK_STRING */ -{ yylhsminor.yy662 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 266: /* literal ::= NK_STRING */ +{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 255: /* literal ::= NK_BOOL */ -{ yylhsminor.yy662 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 267: /* literal ::= NK_BOOL */ +{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 256: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + case 268: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 257: /* literal ::= duration_literal */ - case 267: /* signed_literal ::= signed */ yytestcase(yyruleno==267); - 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 314: /* function_expression ::= literal_func */ yytestcase(yyruleno==314); - case 350: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==350); - case 354: /* boolean_primary ::= predicate */ yytestcase(yyruleno==354); - case 356: /* common_expression ::= expression */ yytestcase(yyruleno==356); - case 357: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==357); - case 359: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==359); - case 361: /* table_reference ::= table_primary */ yytestcase(yyruleno==361); - case 362: /* table_reference ::= joined_table */ yytestcase(yyruleno==362); - case 366: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==366); - case 413: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==413); - case 416: /* query_primary ::= query_specification */ yytestcase(yyruleno==416); -{ yylhsminor.yy662 = yymsp[0].minor.yy662; } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 269: /* literal ::= duration_literal */ + case 279: /* signed_literal ::= signed */ yytestcase(yyruleno==279); + case 298: /* expression ::= literal */ yytestcase(yyruleno==298); + case 299: /* expression ::= pseudo_column */ yytestcase(yyruleno==299); + case 300: /* expression ::= column_reference */ yytestcase(yyruleno==300); + case 301: /* expression ::= function_expression */ yytestcase(yyruleno==301); + case 302: /* expression ::= subquery */ yytestcase(yyruleno==302); + case 326: /* function_expression ::= literal_func */ yytestcase(yyruleno==326); + case 362: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==362); + case 366: /* boolean_primary ::= predicate */ yytestcase(yyruleno==366); + case 368: /* common_expression ::= expression */ yytestcase(yyruleno==368); + case 369: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==369); + case 371: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==371); + case 373: /* table_reference ::= table_primary */ yytestcase(yyruleno==373); + case 374: /* table_reference ::= joined_table */ yytestcase(yyruleno==374); + case 378: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==378); + case 425: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==425); + case 428: /* query_primary ::= query_specification */ yytestcase(yyruleno==428); +{ yylhsminor.yy172 = yymsp[0].minor.yy172; } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 258: /* literal ::= NULL */ -{ yylhsminor.yy662 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 270: /* literal ::= NULL */ +{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 259: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy662 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 271: /* literal ::= NK_QUESTION */ +{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 260: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy662 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 272: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 261: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 273: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 262: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + case 274: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; - case 263: /* signed ::= NK_MINUS NK_INTEGER */ + case 275: /* 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.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 264: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 276: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 265: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 277: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 266: /* signed ::= NK_MINUS NK_FLOAT */ + case 278: /* 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.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 268: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 280: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 269: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 281: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 270: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 282: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 271: /* signed_literal ::= duration_literal */ - case 273: /* signed_literal ::= literal_func */ yytestcase(yyruleno==273); - case 328: /* star_func_para ::= expression */ yytestcase(yyruleno==328); - case 383: /* select_item ::= common_expression */ yytestcase(yyruleno==383); - case 428: /* search_condition ::= common_expression */ yytestcase(yyruleno==428); -{ yylhsminor.yy662 = releaseRawExprNode(pCxt, yymsp[0].minor.yy662); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 283: /* signed_literal ::= duration_literal */ + case 285: /* signed_literal ::= literal_func */ yytestcase(yyruleno==285); + case 340: /* star_func_para ::= expression */ yytestcase(yyruleno==340); + case 395: /* select_item ::= common_expression */ yytestcase(yyruleno==395); + case 440: /* search_condition ::= common_expression */ yytestcase(yyruleno==440); +{ yylhsminor.yy172 = releaseRawExprNode(pCxt, yymsp[0].minor.yy172); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 272: /* signed_literal ::= NULL */ -{ yylhsminor.yy662 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 284: /* signed_literal ::= NULL */ +{ yylhsminor.yy172 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 291: /* expression ::= NK_LP expression NK_RP */ - case 355: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==355); -{ yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy662)); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 303: /* expression ::= NK_LP expression NK_RP */ + case 367: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==367); +{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy172)); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 292: /* expression ::= NK_PLUS expression */ + case 304: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy662)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy172)); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 293: /* expression ::= NK_MINUS expression */ + case 305: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy662), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy172), NULL)); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 294: /* expression ::= expression NK_PLUS expression */ + case 306: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 295: /* expression ::= expression NK_MINUS expression */ + case 307: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 296: /* expression ::= expression NK_STAR expression */ + case 308: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 297: /* expression ::= expression NK_SLASH expression */ + case 309: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 298: /* expression ::= expression NK_REM expression */ + case 310: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 299: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 311: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 300: /* expression_list ::= expression */ -{ yylhsminor.yy568 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy662)); } - yymsp[0].minor.yy568 = yylhsminor.yy568; + case 312: /* expression_list ::= expression */ +{ yylhsminor.yy60 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy172)); } + yymsp[0].minor.yy60 = yylhsminor.yy60; break; - case 301: /* expression_list ::= expression_list NK_COMMA expression */ -{ yylhsminor.yy568 = addNodeToList(pCxt, yymsp[-2].minor.yy568, releaseRawExprNode(pCxt, yymsp[0].minor.yy662)); } - yymsp[-2].minor.yy568 = yylhsminor.yy568; + case 313: /* expression_list ::= expression_list NK_COMMA expression */ +{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, releaseRawExprNode(pCxt, yymsp[0].minor.yy172)); } + yymsp[-2].minor.yy60 = yylhsminor.yy60; break; - case 302: /* column_reference ::= column_name */ -{ yylhsminor.yy662 = createRawExprNode(pCxt, &yymsp[0].minor.yy555, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy555)); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 314: /* column_reference ::= column_name */ +{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy105, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy105)); } + yymsp[0].minor.yy172 = yylhsminor.yy172; break; - case 303: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy555, &yymsp[0].minor.yy555, createColumnNode(pCxt, &yymsp[-2].minor.yy555, &yymsp[0].minor.yy555)); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 315: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105, createColumnNode(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy105)); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; 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); - case 316: /* literal_func ::= NOW */ yytestcase(yyruleno==316); -{ yylhsminor.yy662 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy662 = yylhsminor.yy662; + case 316: /* pseudo_column ::= ROWTS */ + case 317: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==317); + case 318: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==318); + case 319: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==319); + case 320: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==320); + case 321: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==321); + case 322: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==322); + case 328: /* literal_func ::= NOW */ yytestcase(yyruleno==328); +{ yylhsminor.yy172 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy172 = yylhsminor.yy172; 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.yy662 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy555, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy555, yymsp[-1].minor.yy568)); } - yymsp[-3].minor.yy662 = yylhsminor.yy662; + case 323: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 324: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==324); +{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy105, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy105, yymsp[-1].minor.yy60)); } + yymsp[-3].minor.yy172 = yylhsminor.yy172; break; - case 313: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ -{ yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy662), yymsp[-1].minor.yy156)); } - yymsp[-5].minor.yy662 = yylhsminor.yy662; + case 325: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ +{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), yymsp[-1].minor.yy248)); } + yymsp[-5].minor.yy172 = yylhsminor.yy172; break; - case 315: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy555, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy555, NULL)); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 327: /* literal_func ::= noarg_func NK_LP NK_RP */ +{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy105, NULL)); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 324: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy568 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy568 = yylhsminor.yy568; + case 336: /* star_func_para_list ::= NK_STAR */ +{ yylhsminor.yy60 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy60 = yylhsminor.yy60; break; - case 329: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 386: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==386); -{ yylhsminor.yy662 = createColumnNode(pCxt, &yymsp[-2].minor.yy555, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 341: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 398: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==398); +{ yylhsminor.yy172 = createColumnNode(pCxt, &yymsp[-2].minor.yy105, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 330: /* predicate ::= expression compare_op expression */ - case 335: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==335); + case 342: /* predicate ::= expression compare_op expression */ + case 347: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==347); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy304, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy572, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 331: /* predicate ::= expression BETWEEN expression AND expression */ + case 343: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy662), releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy172), releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-4].minor.yy662 = yylhsminor.yy662; + yymsp[-4].minor.yy172 = yylhsminor.yy172; break; - case 332: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 344: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy662), releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy172), releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-5].minor.yy662 = yylhsminor.yy662; + yymsp[-5].minor.yy172 = yylhsminor.yy172; break; - case 333: /* predicate ::= expression IS NULL */ + case 345: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), NULL)); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 334: /* predicate ::= expression IS NOT NULL */ + case 346: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy662), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), NULL)); } - yymsp[-3].minor.yy662 = yylhsminor.yy662; + yymsp[-3].minor.yy172 = yylhsminor.yy172; break; - case 336: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy304 = OP_TYPE_LOWER_THAN; } + case 348: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy572 = OP_TYPE_LOWER_THAN; } break; - case 337: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy304 = OP_TYPE_GREATER_THAN; } + case 349: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy572 = OP_TYPE_GREATER_THAN; } break; - case 338: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy304 = OP_TYPE_LOWER_EQUAL; } + case 350: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy572 = OP_TYPE_LOWER_EQUAL; } break; - case 339: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy304 = OP_TYPE_GREATER_EQUAL; } + case 351: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy572 = OP_TYPE_GREATER_EQUAL; } break; - case 340: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy304 = OP_TYPE_NOT_EQUAL; } + case 352: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy572 = OP_TYPE_NOT_EQUAL; } break; - case 341: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy304 = OP_TYPE_EQUAL; } + case 353: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy572 = OP_TYPE_EQUAL; } break; - case 342: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy304 = OP_TYPE_LIKE; } + case 354: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy572 = OP_TYPE_LIKE; } break; - case 343: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy304 = OP_TYPE_NOT_LIKE; } + case 355: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy572 = OP_TYPE_NOT_LIKE; } break; - case 344: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy304 = OP_TYPE_MATCH; } + case 356: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy572 = OP_TYPE_MATCH; } break; - case 345: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy304 = OP_TYPE_NMATCH; } + case 357: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy572 = OP_TYPE_NMATCH; } break; - case 346: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy304 = OP_TYPE_JSON_CONTAINS; } + case 358: /* compare_op ::= CONTAINS */ +{ yymsp[0].minor.yy572 = OP_TYPE_JSON_CONTAINS; } break; - case 347: /* in_op ::= IN */ -{ yymsp[0].minor.yy304 = OP_TYPE_IN; } + case 359: /* in_op ::= IN */ +{ yymsp[0].minor.yy572 = OP_TYPE_IN; } break; - case 348: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy304 = OP_TYPE_NOT_IN; } + case 360: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy572 = OP_TYPE_NOT_IN; } break; - case 349: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy568)); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 361: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy60)); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 351: /* boolean_value_expression ::= NOT boolean_primary */ + case 363: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy662), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy172), NULL)); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 352: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 364: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 353: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 365: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy662); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy662); - yylhsminor.yy662 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy172); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy172); + yylhsminor.yy172 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 360: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy662 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy662, yymsp[0].minor.yy662, NULL); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 372: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy172 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy172, yymsp[0].minor.yy172, NULL); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 363: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy662 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy555, &yymsp[0].minor.yy555); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + case 375: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy172 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy105, &yymsp[0].minor.yy105); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 364: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy662 = createRealTableNode(pCxt, &yymsp[-3].minor.yy555, &yymsp[-1].minor.yy555, &yymsp[0].minor.yy555); } - yymsp[-3].minor.yy662 = yylhsminor.yy662; + case 376: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy172 = createRealTableNode(pCxt, &yymsp[-3].minor.yy105, &yymsp[-1].minor.yy105, &yymsp[0].minor.yy105); } + yymsp[-3].minor.yy172 = yylhsminor.yy172; break; - case 365: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy662 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy662), &yymsp[0].minor.yy555); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + case 377: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy172 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy172), &yymsp[0].minor.yy105); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 367: /* alias_opt ::= */ -{ yymsp[1].minor.yy555 = nil_token; } + case 379: /* alias_opt ::= */ +{ yymsp[1].minor.yy105 = nil_token; } break; - case 368: /* alias_opt ::= table_alias */ -{ yylhsminor.yy555 = yymsp[0].minor.yy555; } - yymsp[0].minor.yy555 = yylhsminor.yy555; + case 380: /* alias_opt ::= table_alias */ +{ yylhsminor.yy105 = yymsp[0].minor.yy105; } + yymsp[0].minor.yy105 = yylhsminor.yy105; break; - case 369: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy555 = yymsp[0].minor.yy555; } + case 381: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy105 = yymsp[0].minor.yy105; } break; - case 370: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 371: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==371); -{ yymsp[-2].minor.yy662 = yymsp[-1].minor.yy662; } + case 382: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 383: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==383); +{ yymsp[-2].minor.yy172 = yymsp[-1].minor.yy172; } break; - case 372: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy662 = createJoinTableNode(pCxt, yymsp[-4].minor.yy84, yymsp[-5].minor.yy662, yymsp[-2].minor.yy662, yymsp[0].minor.yy662); } - yymsp[-5].minor.yy662 = yylhsminor.yy662; + case 384: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy172 = createJoinTableNode(pCxt, yymsp[-4].minor.yy636, yymsp[-5].minor.yy172, yymsp[-2].minor.yy172, yymsp[0].minor.yy172); } + yymsp[-5].minor.yy172 = yylhsminor.yy172; break; - case 373: /* join_type ::= */ -{ yymsp[1].minor.yy84 = JOIN_TYPE_INNER; } + case 385: /* join_type ::= */ +{ yymsp[1].minor.yy636 = JOIN_TYPE_INNER; } break; - case 374: /* join_type ::= INNER */ -{ yymsp[0].minor.yy84 = JOIN_TYPE_INNER; } + case 386: /* join_type ::= INNER */ +{ yymsp[0].minor.yy636 = JOIN_TYPE_INNER; } break; - case 375: /* 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 387: /* 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.yy662 = createSelectStmt(pCxt, yymsp[-7].minor.yy617, yymsp[-6].minor.yy568, yymsp[-5].minor.yy662); - yymsp[-8].minor.yy662 = addWhereClause(pCxt, yymsp[-8].minor.yy662, yymsp[-4].minor.yy662); - yymsp[-8].minor.yy662 = addPartitionByClause(pCxt, yymsp[-8].minor.yy662, yymsp[-3].minor.yy568); - yymsp[-8].minor.yy662 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy662, yymsp[-2].minor.yy662); - yymsp[-8].minor.yy662 = addGroupByClause(pCxt, yymsp[-8].minor.yy662, yymsp[-1].minor.yy568); - yymsp[-8].minor.yy662 = addHavingClause(pCxt, yymsp[-8].minor.yy662, yymsp[0].minor.yy662); + yymsp[-8].minor.yy172 = createSelectStmt(pCxt, yymsp[-7].minor.yy617, yymsp[-6].minor.yy60, yymsp[-5].minor.yy172); + yymsp[-8].minor.yy172 = addWhereClause(pCxt, yymsp[-8].minor.yy172, yymsp[-4].minor.yy172); + yymsp[-8].minor.yy172 = addPartitionByClause(pCxt, yymsp[-8].minor.yy172, yymsp[-3].minor.yy60); + yymsp[-8].minor.yy172 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy172, yymsp[-2].minor.yy172); + yymsp[-8].minor.yy172 = addGroupByClause(pCxt, yymsp[-8].minor.yy172, yymsp[-1].minor.yy60); + yymsp[-8].minor.yy172 = addHavingClause(pCxt, yymsp[-8].minor.yy172, yymsp[0].minor.yy172); } break; - case 378: /* set_quantifier_opt ::= ALL */ + case 390: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy617 = false; } break; - case 379: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy568 = NULL; } + case 391: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy60 = NULL; } break; - case 384: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy662 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy662), &yymsp[0].minor.yy555); } - yymsp[-1].minor.yy662 = yylhsminor.yy662; + case 396: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy172 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy172), &yymsp[0].minor.yy105); } + yymsp[-1].minor.yy172 = yylhsminor.yy172; break; - case 385: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy662 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), &yymsp[0].minor.yy555); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 397: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy172 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), &yymsp[0].minor.yy105); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 390: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 407: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==407); - case 418: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==418); -{ yymsp[-2].minor.yy568 = yymsp[0].minor.yy568; } + case 402: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 419: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==419); + case 430: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==430); +{ yymsp[-2].minor.yy60 = yymsp[0].minor.yy60; } break; - case 392: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy662 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy662), releaseRawExprNode(pCxt, yymsp[-1].minor.yy662)); } + case 404: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy172 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), releaseRawExprNode(pCxt, yymsp[-1].minor.yy172)); } break; - case 393: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ -{ yymsp[-3].minor.yy662 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy662)); } + case 405: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ +{ yymsp[-3].minor.yy172 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy172)); } break; - case 394: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy662 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy662), NULL, yymsp[-1].minor.yy662, yymsp[0].minor.yy662); } + case 406: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy172 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), NULL, yymsp[-1].minor.yy172, yymsp[0].minor.yy172); } break; - case 395: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy662 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy662), releaseRawExprNode(pCxt, yymsp[-3].minor.yy662), yymsp[-1].minor.yy662, yymsp[0].minor.yy662); } + case 407: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy172 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy172), releaseRawExprNode(pCxt, yymsp[-3].minor.yy172), yymsp[-1].minor.yy172, yymsp[0].minor.yy172); } break; - case 397: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy662 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy662); } + case 409: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ +{ yymsp[-3].minor.yy172 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy172); } break; - case 399: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy662 = createFillNode(pCxt, yymsp[-1].minor.yy284, NULL); } + case 411: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy172 = createFillNode(pCxt, yymsp[-1].minor.yy202, NULL); } break; - case 400: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy662 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy568)); } + case 412: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy172 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy60)); } break; - case 401: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy284 = FILL_MODE_NONE; } + case 413: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy202 = FILL_MODE_NONE; } break; - case 402: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy284 = FILL_MODE_PREV; } + case 414: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy202 = FILL_MODE_PREV; } break; - case 403: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy284 = FILL_MODE_NULL; } + case 415: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy202 = FILL_MODE_NULL; } break; - case 404: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy284 = FILL_MODE_LINEAR; } + case 416: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy202 = FILL_MODE_LINEAR; } break; - case 405: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy284 = FILL_MODE_NEXT; } + case 417: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy202 = FILL_MODE_NEXT; } break; - case 408: /* group_by_list ::= expression */ -{ yylhsminor.yy568 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); } - yymsp[0].minor.yy568 = yylhsminor.yy568; + case 420: /* group_by_list ::= expression */ +{ yylhsminor.yy60 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } + yymsp[0].minor.yy60 = yylhsminor.yy60; break; - case 409: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy568 = addNodeToList(pCxt, yymsp[-2].minor.yy568, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy662))); } - yymsp[-2].minor.yy568 = yylhsminor.yy568; + case 421: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy60 = addNodeToList(pCxt, yymsp[-2].minor.yy60, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy172))); } + yymsp[-2].minor.yy60 = yylhsminor.yy60; break; - case 412: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 424: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy662 = addOrderByClause(pCxt, yymsp[-3].minor.yy662, yymsp[-2].minor.yy568); - yylhsminor.yy662 = addSlimitClause(pCxt, yylhsminor.yy662, yymsp[-1].minor.yy662); - yylhsminor.yy662 = addLimitClause(pCxt, yylhsminor.yy662, yymsp[0].minor.yy662); + yylhsminor.yy172 = addOrderByClause(pCxt, yymsp[-3].minor.yy172, yymsp[-2].minor.yy60); + yylhsminor.yy172 = addSlimitClause(pCxt, yylhsminor.yy172, yymsp[-1].minor.yy172); + yylhsminor.yy172 = addLimitClause(pCxt, yylhsminor.yy172, yymsp[0].minor.yy172); } - yymsp[-3].minor.yy662 = yylhsminor.yy662; + yymsp[-3].minor.yy172 = yylhsminor.yy172; break; - case 414: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy662 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy662, yymsp[0].minor.yy662); } - yymsp[-3].minor.yy662 = yylhsminor.yy662; + case 426: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy172 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy172, yymsp[0].minor.yy172); } + yymsp[-3].minor.yy172 = yylhsminor.yy172; break; - case 415: /* query_expression_body ::= query_expression_body UNION query_expression_body */ -{ yylhsminor.yy662 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy662, yymsp[0].minor.yy662); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 427: /* query_expression_body ::= query_expression_body UNION query_expression_body */ +{ yylhsminor.yy172 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy172, yymsp[0].minor.yy172); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 420: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 424: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==424); -{ yymsp[-1].minor.yy662 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 432: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 436: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==436); +{ yymsp[-1].minor.yy172 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 421: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 425: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==425); -{ yymsp[-3].minor.yy662 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 433: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 437: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==437); +{ yymsp[-3].minor.yy172 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 422: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 426: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==426); -{ yymsp[-3].minor.yy662 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 434: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 438: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==438); +{ yymsp[-3].minor.yy172 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 427: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy662 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy662); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 439: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy172 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy172); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 431: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy662 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy662), yymsp[-1].minor.yy272, yymsp[0].minor.yy181); } - yymsp[-2].minor.yy662 = yylhsminor.yy662; + case 443: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy172 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy172), yymsp[-1].minor.yy14, yymsp[0].minor.yy17); } + yymsp[-2].minor.yy172 = yylhsminor.yy172; break; - case 432: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy272 = ORDER_ASC; } + case 444: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy14 = ORDER_ASC; } break; - case 433: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy272 = ORDER_ASC; } + case 445: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy14 = ORDER_ASC; } break; - case 434: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy272 = ORDER_DESC; } + case 446: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy14 = ORDER_DESC; } break; - case 435: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy181 = NULL_ORDER_DEFAULT; } + case 447: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy17 = NULL_ORDER_DEFAULT; } break; - case 436: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy181 = NULL_ORDER_FIRST; } + case 448: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy17 = NULL_ORDER_FIRST; } break; - case 437: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy181 = NULL_ORDER_LAST; } + case 449: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy17 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/parser/test/mockCatalog.cpp b/source/libs/parser/test/mockCatalog.cpp index 2d9a907d9b..a82fbfce26 100644 --- a/source/libs/parser/test/mockCatalog.cpp +++ b/source/libs/parser/test/mockCatalog.cpp @@ -181,6 +181,12 @@ int32_t __catalogGetDBCfg(SCatalog* pCtg, void* pRpc, const SEpSet* pMgmtEps, co return 0; } +int32_t __catalogChkAuth(SCatalog* pCtg, void* pRpc, const SEpSet* pMgmtEps, const char* user, const char* dbFName, + AUTH_TYPE type, bool* pass) { + *pass = true; + return 0; +} + void initMetaDataEnv() { mockCatalogService.reset(new MockCatalogService()); @@ -193,6 +199,7 @@ void initMetaDataEnv() { stub.set(catalogGetDBVgVersion, __catalogGetDBVgVersion); stub.set(catalogGetDBVgInfo, __catalogGetDBVgInfo); stub.set(catalogGetDBCfg, __catalogGetDBCfg); + stub.set(catalogChkAuth, __catalogChkAuth); // { // AddrAny any("libcatalog.so"); // std::map result; diff --git a/source/libs/parser/test/parExplainToSyncdbTest.cpp b/source/libs/parser/test/parExplainToSyncdbTest.cpp index c12912ef33..a040721031 100644 --- a/source/libs/parser/test/parExplainToSyncdbTest.cpp +++ b/source/libs/parser/test/parExplainToSyncdbTest.cpp @@ -24,11 +24,20 @@ class ParserExplainToSyncdbTest : public ParserTestBase {}; TEST_F(ParserExplainToSyncdbTest, explain) { useDb("root", "test"); - run("explain SELECT * FROM t1"); + run("EXPLAIN SELECT * FROM t1"); - run("explain analyze SELECT * FROM t1"); + run("EXPLAIN ANALYZE SELECT * FROM t1"); - run("explain analyze verbose true ratio 0.01 SELECT * FROM t1"); + run("EXPLAIN ANALYZE VERBOSE true RATIO 0.01 SELECT * FROM t1"); +} + +TEST_F(ParserExplainToSyncdbTest, grant) { + useDb("root", "test"); + + run("GRANT ALL ON test.* TO wxy"); + run("GRANT READ ON test.* TO wxy"); + run("GRANT WRITE ON test.* TO wxy"); + run("GRANT READ, WRITE ON test.* TO wxy"); } // todo kill connection @@ -37,6 +46,16 @@ TEST_F(ParserExplainToSyncdbTest, explain) { // todo merge vgroup // todo redistribute vgroup // todo reset query cache + +TEST_F(ParserExplainToSyncdbTest, revoke) { + useDb("root", "test"); + + run("REVOKE ALL ON test.* FROM wxy"); + run("REVOKE READ ON test.* FROM wxy"); + run("REVOKE WRITE ON test.* FROM wxy"); + run("REVOKE READ, WRITE ON test.* FROM wxy"); +} + // todo syncdb } // namespace ParserTest diff --git a/source/libs/parser/test/parInitialATest.cpp b/source/libs/parser/test/parInitialATest.cpp index e58f50f52a..5bd9eb5c43 100644 --- a/source/libs/parser/test/parInitialATest.cpp +++ b/source/libs/parser/test/parInitialATest.cpp @@ -24,39 +24,84 @@ class ParserInitialATest : public ParserTestBase {}; TEST_F(ParserInitialATest, alterAccount) { useDb("root", "test"); - run("alter account ac_wxy pass '123456'", TSDB_CODE_PAR_EXPRIE_STATEMENT); + run("ALTER ACCOUNT ac_wxy PASS '123456'", TSDB_CODE_PAR_EXPRIE_STATEMENT); } TEST_F(ParserInitialATest, alterDnode) { useDb("root", "test"); - run("alter dnode 1 'resetLog'"); + run("ALTER DNODE 1 'resetLog'"); - run("alter dnode 1 'debugFlag' '134'"); + run("ALTER DNODE 1 'debugFlag' '134'"); } TEST_F(ParserInitialATest, alterDatabase) { useDb("root", "test"); - run("alter database wxy_db cachelast 1 fsync 200 wal 1"); + run("ALTER DATABASE wxy_db CACHELAST 1 FSYNC 200 WAL 1"); } -// todo alter local -// todo alter stable -// todo alter table +// todo ALTER local +// todo ALTER stable + +/* + * ALTER TABLE [db_name.]tb_name alter_table_clause + * + * alter_table_clause: { + * alter_table_options + * | ADD COLUMN col_name column_type + * | DROP COLUMN col_name + * | MODIFY COLUMN col_name column_type + * | RENAME COLUMN old_col_name new_col_name + * | ADD TAG tag_name tag_type + * | DROP TAG tag_name + * | MODIFY TAG tag_name tag_type + * | RENAME TAG old_tag_name new_tag_name + * | SET TAG tag_name = new_tag_value + * | ADD {FULLTEXT | SMA} INDEX index_name (col_name [, col_name] ...) [index_option] + * } + * + * alter_table_options: + * alter_table_option ... + * + * alter_table_option: { + * TTL value + * | COMMENT 'string_value' + * } + */ +TEST_F(ParserInitialATest, alterTable) { + useDb("root", "test"); + + // run("ALTER TABLE t1 TTL 10"); + // run("ALTER TABLE t1 COMMENT 'test'"); + run("ALTER TABLE t1 ADD COLUMN cc1 BIGINT"); + run("ALTER TABLE t1 DROP COLUMN c1"); + run("ALTER TABLE t1 MODIFY COLUMN c1 VARCHAR(20)"); + run("ALTER TABLE t1 RENAME COLUMN c1 cc1"); + + run("ALTER TABLE st1 ADD TAG tag11 BIGINT"); + run("ALTER TABLE st1 DROP TAG tag1"); + run("ALTER TABLE st1 MODIFY TAG tag1 VARCHAR(20)"); + run("ALTER TABLE st1 RENAME TAG tag1 tag11"); + + // run("ALTER TABLE st1s1 SET TAG tag1=10"); + + // todo + // ADD {FULLTEXT | SMA} INDEX index_name (col_name [, col_name] ...) [index_option] +} TEST_F(ParserInitialATest, alterUser) { useDb("root", "test"); - run("alter user wxy pass '123456'"); + run("ALTER user wxy PASS '123456'"); - run("alter user wxy privilege 'write'"); + run("ALTER user wxy privilege 'write'"); } TEST_F(ParserInitialATest, bug001) { useDb("root", "test"); - run("alter database db wal 0 # td-14436", TSDB_CODE_PAR_SYNTAX_ERROR); + run("ALTER DATABASE db WAL 0 # td-14436", TSDB_CODE_PAR_SYNTAX_ERROR); } } // namespace ParserTest \ No newline at end of file diff --git a/source/libs/parser/test/parShowToUse.cpp b/source/libs/parser/test/parShowToUse.cpp index 37d5d87a88..98cb9da01b 100644 --- a/source/libs/parser/test/parShowToUse.cpp +++ b/source/libs/parser/test/parShowToUse.cpp @@ -21,111 +21,117 @@ namespace ParserTest { class ParserShowToUseTest : public ParserTestBase {}; -// todo show accounts -// todo show apps -// todo show connections -// todo show create database -// todo show create stable -// todo show create table +// todo SHOW accounts +// todo SHOW apps +// todo SHOW connections +// todo SHOW create database +// todo SHOW create stable +// todo SHOW create table TEST_F(ParserShowToUseTest, showDatabases) { useDb("root", "test"); - run("show databases"); + run("SHOW databases"); } TEST_F(ParserShowToUseTest, showDnodes) { useDb("root", "test"); - run("show dnodes"); + run("SHOW dnodes"); } TEST_F(ParserShowToUseTest, showFunctions) { useDb("root", "test"); - run("show functions"); + run("SHOW functions"); } -// todo show licence +// todo SHOW licence TEST_F(ParserShowToUseTest, showIndexes) { useDb("root", "test"); - run("show indexes from t1"); + run("SHOW indexes from t1"); - run("show indexes from t1 from test"); + run("SHOW indexes from t1 from test"); } TEST_F(ParserShowToUseTest, showMnodes) { useDb("root", "test"); - run("show mnodes"); + run("SHOW mnodes"); } TEST_F(ParserShowToUseTest, showModules) { useDb("root", "test"); - run("show modules"); + run("SHOW modules"); } TEST_F(ParserShowToUseTest, showQnodes) { useDb("root", "test"); - run("show qnodes"); + run("SHOW qnodes"); } -// todo show queries -// todo show scores +// todo SHOW queries +// todo SHOW scores TEST_F(ParserShowToUseTest, showStables) { useDb("root", "test"); - run("show stables"); + run("SHOW stables"); - run("show test.stables"); + run("SHOW test.stables"); - run("show stables like 'c%'"); + run("SHOW stables like 'c%'"); - run("show test.stables like 'c%'"); + run("SHOW test.stables like 'c%'"); } TEST_F(ParserShowToUseTest, showStreams) { useDb("root", "test"); - run("show streams"); + run("SHOW streams"); +} + +TEST_F(ParserShowToUseTest, showTransactions) { + useDb("root", "test"); + + run("SHOW TRANSACTIONS"); } TEST_F(ParserShowToUseTest, showTables) { useDb("root", "test"); - run("show tables"); + run("SHOW tables"); - run("show test.tables"); + run("SHOW test.tables"); - run("show tables like 'c%'"); + run("SHOW tables like 'c%'"); - run("show test.tables like 'c%'"); + run("SHOW test.tables like 'c%'"); } -// todo show topics +// todo SHOW topics TEST_F(ParserShowToUseTest, showUsers) { useDb("root", "test"); - run("show users"); + run("SHOW users"); } -// todo show variables +// todo SHOW variables TEST_F(ParserShowToUseTest, showVgroups) { useDb("root", "test"); - run("show vgroups"); + run("SHOW vgroups"); - run("show test.vgroups"); + run("SHOW test.vgroups"); } -// todo show vnodes +// todo SHOW vnodes // todo split vgroup diff --git a/source/libs/planner/src/planPhysiCreater.c b/source/libs/planner/src/planPhysiCreater.c index 05b48d2d6a..18fa5b93dd 100644 --- a/source/libs/planner/src/planPhysiCreater.c +++ b/source/libs/planner/src/planPhysiCreater.c @@ -1333,13 +1333,11 @@ int32_t createPhysiPlan(SPlanContext* pCxt, SQueryLogicPlan* pLogicPlan, SQueryP return TSDB_CODE_OUT_OF_MEMORY; } - int32_t code = TSDB_CODE_SUCCESS; - if (tsQueryPolicy > QUERY_POLICY_VNODE) { - code = catalogGetQnodeList(pCxt->pCatalog, pCxt->pTransporter, &pCxt->mgmtEpSet, pExecNodeList); - } - if (TSDB_CODE_SUCCESS == code) { - code = doCreatePhysiPlan(&cxt, pLogicPlan, pPlan); + if (QUERY_POLICY_VNODE == tsQueryPolicy) { + taosArrayClear(pExecNodeList); } + + int32_t code = doCreatePhysiPlan(&cxt, pLogicPlan, pPlan); if (TSDB_CODE_SUCCESS == code) { setExplainInfo(pCxt, *pPlan); } diff --git a/source/libs/planner/test/planSTableTest.cpp b/source/libs/planner/test/planSTableTest.cpp index 6e349f8f9c..ed75b75e51 100644 --- a/source/libs/planner/test/planSTableTest.cpp +++ b/source/libs/planner/test/planSTableTest.cpp @@ -19,10 +19,16 @@ using namespace std; class PlanSuperTableTest : public PlannerTestBase {}; -TEST_F(PlanSuperTableTest, tbname) { +TEST_F(PlanSuperTableTest, pseudoCol) { useDb("root", "test"); - run("select tbname from st1"); + run("SELECT TBNAME FROM st1"); - run("select tbname, tag1, tag2 from st1"); + run("SELECT TBNAME, tag1, tag2 FROM st1"); +} + +TEST_F(PlanSuperTableTest, orderBy) { + useDb("root", "test"); + + run("SELECT -1*c1, c1 FROM st1 ORDER BY -1*c1"); } diff --git a/source/util/src/terror.c b/source/util/src/terror.c index 4b3c99d321..81d31dbbde 100644 --- a/source/util/src/terror.c +++ b/source/util/src/terror.c @@ -448,6 +448,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_QW_MSG_ERROR, "Invalid msg order") // parser TAOS_DEFINE_ERROR(TSDB_CODE_PAR_TABLE_NOT_EXIST, "Table does not exist") +TAOS_DEFINE_ERROR(TSDB_CODE_PAR_PERMISSION_DENIED, "Permission denied") //planner TAOS_DEFINE_ERROR(TSDB_CODE_PLAN_INTERNAL_ERROR, "planner internal error") diff --git a/tests/script/tsim/user/pass_alter.sim b/tests/script/tsim/user/pass_alter.sim index db0667971c..33fc9e51bd 100644 --- a/tests/script/tsim/user/pass_alter.sim +++ b/tests/script/tsim/user/pass_alter.sim @@ -4,11 +4,11 @@ system sh/exec.sh -n dnode1 -s start sql connect print ============= step1 -sql create user read pass 'taosdata1' -sql create user write pass 'taosdata1' +sql create user u_read pass 'taosdata1' +sql create user u_write pass 'taosdata1' -sql alter user read pass 'taosdata' -sql alter user write pass 'taosdata' +sql alter user u_read pass 'taosdata' +sql alter user u_write pass 'taosdata' sql show users if $rows != 3 then @@ -18,10 +18,10 @@ endi print ============= step2 sql close sleep 2500 -print user read login -sql connect read -sql alter user read pass 'taosdata' -sql alter user write pass 'taosdata1' -x step2 +print user u_read login +sql connect u_read +sql alter user u_read pass 'taosdata' +sql alter user u_write pass 'taosdata1' -x step2 return -1 step2: @@ -36,13 +36,13 @@ endi print ============= step3 sql close sleep 2500 -print user write login -sql connect write +print user u_write login +sql connect u_write sql_error create user read2 pass 'taosdata1' sql_error create user write2 pass 'taosdata1' -sql alter user write pass 'taosdata' -sql alter user read pass 'taosdata' -x step3 +sql alter user u_write pass 'taosdata' +sql alter user u_read pass 'taosdata' -x step3 return -1 step3: