From 97ac79f557139464f50a40a023a9ebad78c57b72 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Thu, 16 Jun 2022 11:13:59 +0800 Subject: [PATCH 1/5] feat: rollup grammar adjust --- include/libs/nodes/cmdnodes.h | 4 +-- include/util/tdef.h | 15 +++++---- source/libs/parser/inc/parAst.h | 4 +-- source/libs/parser/inc/sql.y | 4 +-- source/libs/parser/src/parAstCreater.c | 10 +++--- source/libs/parser/src/parTranslater.c | 43 +++++++++----------------- 6 files changed, 33 insertions(+), 47 deletions(-) diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index 1282836425..000fb7dd08 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -88,8 +88,8 @@ typedef struct SAlterDatabaseStmt { typedef struct STableOptions { ENodeType type; char comment[TSDB_TB_COMMENT_LEN]; - double filesFactor; - int32_t delay; + SNode* pMaxDelay; + SNode* pWatermark; SNodeList* pRollupFuncs; int32_t ttl; SNodeList* pSma; diff --git a/include/util/tdef.h b/include/util/tdef.h index 4798a9375c..82c28578b0 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -344,14 +344,13 @@ typedef enum ELogicConditionType { #define TSDB_DB_SCHEMALESS_OFF 0 #define TSDB_DEFAULT_DB_SCHEMALESS TSDB_DB_SCHEMALESS_OFF -// #define TSDB_MIN_ROLLUP_DELAY 1 -// #define TSDB_MAX_ROLLUP_DELAY 10 -// #define TSDB_DEFAULT_ROLLUP_DELAY 1 -#define TSDB_MIN_ROLLUP_FILE_FACTOR 0 -#define TSDB_MAX_ROLLUP_FILE_FACTOR 10 -#define TSDB_DEFAULT_ROLLUP_FILE_FACTOR 0.1 -#define TSDB_MIN_TABLE_TTL 0 -#define TSDB_DEFAULT_TABLE_TTL 0 +#define TSDB_MIN_ROLLUP_MAX_DELAY 1 // unit millisecond +#define TSDB_MAX_ROLLUP_MAX_DELAY (15 * 60 * 1000) +#define TSDB_MIN_ROLLUP_WATERMARK 0 // unit millisecond +#define TSDB_MAX_ROLLUP_WATERMARK (15 * 60 * 1000) +#define TSDB_DEFAULT_ROLLUP_WATERMARK 5000 +#define TSDB_MIN_TABLE_TTL 0 +#define TSDB_DEFAULT_TABLE_TTL 0 #define TSDB_MIN_EXPLAIN_RATIO 0 #define TSDB_MAX_EXPLAIN_RATIO 1 diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index b8c6ffc843..282bb2ed2d 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -59,8 +59,8 @@ typedef enum EDatabaseOptionType { typedef enum ETableOptionType { TABLE_OPTION_COMMENT = 1, - TABLE_OPTION_FILE_FACTOR, - TABLE_OPTION_DELAY, + TABLE_OPTION_MAXDELAY, + TABLE_OPTION_WATERMARK, TABLE_OPTION_ROLLUP, TABLE_OPTION_TTL, TABLE_OPTION_SMA diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 0d9e6e4a73..4ff54e5c6f 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -317,8 +317,8 @@ tags_def(A) ::= TAGS NK_LP column_def_list(B) NK_RP. table_options(A) ::= . { A = createDefaultTableOptions(pCxt); } table_options(A) ::= table_options(B) COMMENT NK_STRING(C). { A = setTableOption(pCxt, B, TABLE_OPTION_COMMENT, &C); } -//table_options(A) ::= table_options(B) DELAY NK_INTEGER(C). { A = setTableOption(pCxt, B, TABLE_OPTION_DELAY, &C); } -table_options(A) ::= table_options(B) FILE_FACTOR NK_FLOAT(C). { A = setTableOption(pCxt, B, TABLE_OPTION_FILE_FACTOR, &C); } +table_options(A) ::= table_options(B) MAXDELAY duration_literal(C). { A = setTableOption(pCxt, B, TABLE_OPTION_MAXDELAY, C); } +table_options(A) ::= table_options(B) WATERMARK duration_literal(C). { A = setTableOption(pCxt, B, TABLE_OPTION_WATERMARK, C); } table_options(A) ::= table_options(B) ROLLUP NK_LP rollup_func_list(C) NK_RP. { A = setTableOption(pCxt, B, TABLE_OPTION_ROLLUP, C); } table_options(A) ::= table_options(B) TTL NK_INTEGER(C). { A = setTableOption(pCxt, B, TABLE_OPTION_TTL, &C); } table_options(A) ::= table_options(B) SMA NK_LP col_name_list(C) NK_RP. { A = setTableOption(pCxt, B, TABLE_OPTION_SMA, C); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 8a7987e4ec..e63b88ddf0 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -867,8 +867,6 @@ SNode* createDefaultTableOptions(SAstCreateContext* pCxt) { CHECK_PARSER_STATUS(pCxt); STableOptions* pOptions = (STableOptions*)nodesMakeNode(QUERY_NODE_TABLE_OPTIONS); CHECK_OUT_OF_MEM(pOptions); - // pOptions->delay = TSDB_DEFAULT_ROLLUP_DELAY; - pOptions->filesFactor = TSDB_DEFAULT_ROLLUP_FILE_FACTOR; pOptions->ttl = TSDB_DEFAULT_TABLE_TTL; return (SNode*)pOptions; } @@ -877,7 +875,6 @@ SNode* createAlterTableOptions(SAstCreateContext* pCxt) { CHECK_PARSER_STATUS(pCxt); STableOptions* pOptions = (STableOptions*)nodesMakeNode(QUERY_NODE_TABLE_OPTIONS); CHECK_OUT_OF_MEM(pOptions); - pOptions->delay = -1; pOptions->ttl = -1; return (SNode*)pOptions; } @@ -891,8 +888,11 @@ SNode* setTableOption(SAstCreateContext* pCxt, SNode* pOptions, ETableOptionType sizeof(((STableOptions*)pOptions)->comment)); } break; - case TABLE_OPTION_DELAY: - ((STableOptions*)pOptions)->delay = taosStr2Int32(((SToken*)pVal)->z, NULL, 10); + case TABLE_OPTION_MAXDELAY: + ((STableOptions*)pOptions)->pMaxDelay = pVal; + break; + case TABLE_OPTION_WATERMARK: + ((STableOptions*)pOptions)->pWatermark = pVal; break; case TABLE_OPTION_ROLLUP: ((STableOptions*)pOptions)->pRollupFuncs = pVal; diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 5d26a98dc8..eba5ea351d 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2668,14 +2668,6 @@ static SColumnDefNode* findColDef(SNodeList* pCols, const SColumnNode* pCol) { return NULL; } -static int32_t checTableFactorOption(STranslateContext* pCxt, float val) { - if (val < TSDB_MIN_ROLLUP_FILE_FACTOR || val > TSDB_MAX_ROLLUP_FILE_FACTOR) { - return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_F_RANGE_OPTION, "file_factor", val, - TSDB_MIN_ROLLUP_FILE_FACTOR, TSDB_MAX_ROLLUP_FILE_FACTOR); - } - return TSDB_CODE_SUCCESS; -} - static int32_t checkTableSmaOption(STranslateContext* pCxt, SCreateTableStmt* pStmt) { if (NULL != pStmt->pOptions->pSma) { SNode* pNode = NULL; @@ -2825,24 +2817,22 @@ static int32_t checkTableSchema(STranslateContext* pCxt, SCreateTableStmt* pStmt return code; } -static int32_t checkSchemalessDb(STranslateContext* pCxt, const char* pDbName) { - // if (0 != pCxt->pParseCxt->schemalessType) { - // return TSDB_CODE_SUCCESS; - // } - // SDbCfgInfo info = {0}; - // int32_t code = getDBCfg(pCxt, pDbName, &info); - // if (TSDB_CODE_SUCCESS == code) { - // code = info.schemaless ? TSDB_CODE_SML_INVALID_DB_CONF : TSDB_CODE_SUCCESS; - // } - // return code; - return TSDB_CODE_SUCCESS; +static int32_t checkTableMaxDelayOption(STranslateContext* pCxt, STableOptions* pOptions) { + if (NULL != pOptions->pMaxDelay) { + if (DEAL_RES_ERROR == translateValue(pCxt, pOptions->pMaxDelay)) { + return pCxt->errCode; + } + if (TIME_UNIT_MINUTE != pOptions->pDaysPerFile->unit) { + return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_OPTION_UNIT, "daysPerFile", + pOptions->pDaysPerFile->unit); + } + pOptions->daysPerFile = getBigintFromValueNode(pOptions->pDaysPerFile); + } + return checkRangeOption(pCxt, "maxDelay", pOptions->pMaxDelay, TSDB_MIN_ROLLUP_MAX_DELAY, TSDB_MAX_ROLLUP_MAX_DELAY); } static int32_t checkCreateTable(STranslateContext* pCxt, SCreateTableStmt* pStmt) { - int32_t code = checkSchemalessDb(pCxt, pStmt->dbName); - if (TSDB_CODE_SUCCESS == code) { - code = checTableFactorOption(pCxt, pStmt->pOptions->filesFactor); - } + int32_t code = checkTableMaxDelayOption(pCxt, pStmt->pOptions->pMaxDelay); // if (TSDB_CODE_SUCCESS == code) { // code = checkRangeOption(pCxt, "delay", pStmt->pOptions->delay, TSDB_MIN_ROLLUP_DELAY, TSDB_MAX_ROLLUP_DELAY); // } @@ -3089,7 +3079,7 @@ static int32_t buildRollupAst(STranslateContext* pCxt, SCreateTableStmt* pStmt, static int32_t buildCreateStbReq(STranslateContext* pCxt, SCreateTableStmt* pStmt, SMCreateStbReq* pReq) { pReq->igExists = pStmt->ignoreExists; // pReq->delay = pStmt->pOptions->delay; - pReq->xFilesFactor = pStmt->pOptions->filesFactor; + // pReq->xFilesFactor = pStmt->pOptions->filesFactor; pReq->ttl = pStmt->pOptions->ttl; columnDefNodeToField(pStmt->pCols, &pReq->pColumns); columnDefNodeToField(pStmt->pTags, &pReq->pTags); @@ -4757,10 +4747,7 @@ static int32_t rewriteCreateMultiTable(STranslateContext* pCxt, SQuery* pQuery) SNode* pNode; FOREACH(pNode, pStmt->pSubTables) { SCreateSubTableClause* pClause = (SCreateSubTableClause*)pNode; - code = checkSchemalessDb(pCxt, pClause->dbName); - if (TSDB_CODE_SUCCESS == code) { - code = rewriteCreateSubTable(pCxt, pClause, pVgroupHashmap); - } + code = rewriteCreateSubTable(pCxt, pClause, pVgroupHashmap); if (TSDB_CODE_SUCCESS != code) { taosHashCleanup(pVgroupHashmap); return code; From aea4f9c69b11ae01cf0bd2658c2debd81ef93e9c Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Fri, 17 Jun 2022 17:27:42 +0800 Subject: [PATCH 2/5] feat: rollup options adjust --- include/common/tmsg.h | 6 +- include/common/ttokendef.h | 249 +- include/libs/nodes/cmdnodes.h | 8 +- include/util/taoserror.h | 1 + source/common/src/tmsg.c | 14 +- source/dnode/mnode/impl/src/mndStb.c | 4 +- source/libs/parser/inc/sql.y | 9 +- source/libs/parser/src/parAstCreater.c | 4 + source/libs/parser/src/parTokenizer.c | 2 +- source/libs/parser/src/parTranslater.c | 87 +- source/libs/parser/src/parUtil.c | 4 +- source/libs/parser/src/sql.c | 3948 +++++++++-------- source/libs/parser/test/parInitialCTest.cpp | 46 +- tests/script/tsim/insert/update0.sim | 2 +- .../script/tsim/sma/rsmaCreateInsertQuery.sim | 2 +- 15 files changed, 2248 insertions(+), 2138 deletions(-) diff --git a/include/common/tmsg.h b/include/common/tmsg.h index ab0203adf8..2f2b5c5bdd 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -428,8 +428,10 @@ STSchema* tdGetSTSChemaFromSSChema(SSchema** pSchema, int32_t nCols); typedef struct { char name[TSDB_TABLE_FNAME_LEN]; int8_t igExists; - float xFilesFactor; - int32_t delay; + int64_t delay1; + int64_t delay2; + int64_t watermark1; + int64_t watermark2; int32_t ttl; int32_t numOfColumns; int32_t numOfTags; diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 061c734484..1edfcbabad 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -127,134 +127,133 @@ #define TK_BLOB 109 #define TK_VARBINARY 110 #define TK_DECIMAL 111 -#define TK_FILE_FACTOR 112 -#define TK_NK_FLOAT 113 +#define TK_MAX_DELAY 112 +#define TK_WATERMARK 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_CONSUMER 146 -#define TK_GROUP 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_MAX_DELAY 169 -#define TK_WATERMARK 170 -#define TK_KILL 171 -#define TK_CONNECTION 172 -#define TK_TRANSACTION 173 -#define TK_BALANCE 174 -#define TK_VGROUP 175 -#define TK_MERGE 176 -#define TK_REDISTRIBUTE 177 -#define TK_SPLIT 178 -#define TK_SYNCDB 179 -#define TK_DELETE 180 -#define TK_NULL 181 -#define TK_NK_QUESTION 182 -#define TK_NK_ARROW 183 -#define TK_ROWTS 184 -#define TK_TBNAME 185 -#define TK_QSTARTTS 186 -#define TK_QENDTS 187 -#define TK_WSTARTTS 188 -#define TK_WENDTS 189 -#define TK_WDURATION 190 -#define TK_CAST 191 -#define TK_NOW 192 -#define TK_TODAY 193 -#define TK_TIMEZONE 194 -#define TK_COUNT 195 -#define TK_FIRST 196 -#define TK_LAST 197 -#define TK_LAST_ROW 198 -#define TK_BETWEEN 199 -#define TK_IS 200 -#define TK_NK_LT 201 -#define TK_NK_GT 202 -#define TK_NK_LE 203 -#define TK_NK_GE 204 -#define TK_NK_NE 205 -#define TK_MATCH 206 -#define TK_NMATCH 207 -#define TK_CONTAINS 208 -#define TK_JOIN 209 -#define TK_INNER 210 -#define TK_SELECT 211 -#define TK_DISTINCT 212 -#define TK_WHERE 213 -#define TK_PARTITION 214 -#define TK_BY 215 -#define TK_SESSION 216 -#define TK_STATE_WINDOW 217 -#define TK_SLIDING 218 -#define TK_FILL 219 -#define TK_VALUE 220 -#define TK_NONE 221 -#define TK_PREV 222 -#define TK_LINEAR 223 -#define TK_NEXT 224 -#define TK_HAVING 225 -#define TK_ORDER 226 -#define TK_SLIMIT 227 -#define TK_SOFFSET 228 -#define TK_LIMIT 229 -#define TK_OFFSET 230 -#define TK_ASC 231 -#define TK_NULLS 232 -#define TK_ID 233 -#define TK_NK_BITNOT 234 -#define TK_INSERT 235 -#define TK_VALUES 236 -#define TK_IMPORT 237 -#define TK_NK_SEMI 238 -#define TK_FILE 239 +#define TK_FIRST 117 +#define TK_LAST 118 +#define TK_SHOW 119 +#define TK_DATABASES 120 +#define TK_TABLES 121 +#define TK_STABLES 122 +#define TK_MNODES 123 +#define TK_MODULES 124 +#define TK_QNODES 125 +#define TK_FUNCTIONS 126 +#define TK_INDEXES 127 +#define TK_ACCOUNTS 128 +#define TK_APPS 129 +#define TK_CONNECTIONS 130 +#define TK_LICENCE 131 +#define TK_GRANTS 132 +#define TK_QUERIES 133 +#define TK_SCORES 134 +#define TK_TOPICS 135 +#define TK_VARIABLES 136 +#define TK_BNODES 137 +#define TK_SNODES 138 +#define TK_CLUSTER 139 +#define TK_TRANSACTIONS 140 +#define TK_LIKE 141 +#define TK_INDEX 142 +#define TK_FULLTEXT 143 +#define TK_FUNCTION 144 +#define TK_INTERVAL 145 +#define TK_TOPIC 146 +#define TK_AS 147 +#define TK_CONSUMER 148 +#define TK_GROUP 149 +#define TK_DESC 150 +#define TK_DESCRIBE 151 +#define TK_RESET 152 +#define TK_QUERY 153 +#define TK_CACHE 154 +#define TK_EXPLAIN 155 +#define TK_ANALYZE 156 +#define TK_VERBOSE 157 +#define TK_NK_BOOL 158 +#define TK_RATIO 159 +#define TK_NK_FLOAT 160 +#define TK_COMPACT 161 +#define TK_VNODES 162 +#define TK_IN 163 +#define TK_OUTPUTTYPE 164 +#define TK_AGGREGATE 165 +#define TK_BUFSIZE 166 +#define TK_STREAM 167 +#define TK_INTO 168 +#define TK_TRIGGER 169 +#define TK_AT_ONCE 170 +#define TK_WINDOW_CLOSE 171 +#define TK_KILL 172 +#define TK_CONNECTION 173 +#define TK_TRANSACTION 174 +#define TK_BALANCE 175 +#define TK_VGROUP 176 +#define TK_MERGE 177 +#define TK_REDISTRIBUTE 178 +#define TK_SPLIT 179 +#define TK_SYNCDB 180 +#define TK_DELETE 181 +#define TK_NULL 182 +#define TK_NK_QUESTION 183 +#define TK_NK_ARROW 184 +#define TK_ROWTS 185 +#define TK_TBNAME 186 +#define TK_QSTARTTS 187 +#define TK_QENDTS 188 +#define TK_WSTARTTS 189 +#define TK_WENDTS 190 +#define TK_WDURATION 191 +#define TK_CAST 192 +#define TK_NOW 193 +#define TK_TODAY 194 +#define TK_TIMEZONE 195 +#define TK_COUNT 196 +#define TK_LAST_ROW 197 +#define TK_BETWEEN 198 +#define TK_IS 199 +#define TK_NK_LT 200 +#define TK_NK_GT 201 +#define TK_NK_LE 202 +#define TK_NK_GE 203 +#define TK_NK_NE 204 +#define TK_MATCH 205 +#define TK_NMATCH 206 +#define TK_CONTAINS 207 +#define TK_JOIN 208 +#define TK_INNER 209 +#define TK_SELECT 210 +#define TK_DISTINCT 211 +#define TK_WHERE 212 +#define TK_PARTITION 213 +#define TK_BY 214 +#define TK_SESSION 215 +#define TK_STATE_WINDOW 216 +#define TK_SLIDING 217 +#define TK_FILL 218 +#define TK_VALUE 219 +#define TK_NONE 220 +#define TK_PREV 221 +#define TK_LINEAR 222 +#define TK_NEXT 223 +#define TK_HAVING 224 +#define TK_ORDER 225 +#define TK_SLIMIT 226 +#define TK_SOFFSET 227 +#define TK_LIMIT 228 +#define TK_OFFSET 229 +#define TK_ASC 230 +#define TK_NULLS 231 +#define TK_ID 232 +#define TK_NK_BITNOT 233 +#define TK_INSERT 234 +#define TK_VALUES 235 +#define TK_IMPORT 236 +#define TK_NK_SEMI 237 +#define TK_FILE 238 #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 000fb7dd08..7d275f5663 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -88,8 +88,12 @@ typedef struct SAlterDatabaseStmt { typedef struct STableOptions { ENodeType type; char comment[TSDB_TB_COMMENT_LEN]; - SNode* pMaxDelay; - SNode* pWatermark; + SNodeList* pMaxDelay; + int64_t maxDelay1; + int64_t maxDelay2; + SNodeList* pWatermark; + int64_t watermark1; + int64_t watermark2; SNodeList* pRollupFuncs; int32_t ttl; SNodeList* pSma; diff --git a/include/util/taoserror.h b/include/util/taoserror.h index 73366955e4..675784b565 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -661,6 +661,7 @@ int32_t* taosGetErrno(); #define TSDB_CODE_PAR_WINDOW_NOT_ALLOWED_FUNC TAOS_DEF_ERROR_CODE(0, 0x2659) #define TSDB_CODE_PAR_STREAM_NOT_ALLOWED_FUNC TAOS_DEF_ERROR_CODE(0, 0x265A) #define TSDB_CODE_PAR_GROUP_BY_NOT_ALLOWED_FUNC TAOS_DEF_ERROR_CODE(0, 0x265B) +#define TSDB_CODE_PAR_INVALID_TABLE_OPTION TAOS_DEF_ERROR_CODE(0, 0x265C) //planner #define TSDB_CODE_PLAN_INTERNAL_ERROR TAOS_DEF_ERROR_CODE(0, 0x2700) diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 4749c86e4a..c22b9e5f2e 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -266,7 +266,7 @@ static int32_t tDeserializeSClientHbReq(SDecoder *pDecoder, SClientHbReq *pReq) if (tDecodeI64(pDecoder, &desc.stime) < 0) return -1; if (tDecodeI64(pDecoder, &desc.reqRid) < 0) return -1; if (tDecodeI32(pDecoder, &desc.pid) < 0) return -1; - if (tDecodeI8(pDecoder, (int8_t*)&desc.stableQuery) < 0) return -1; + if (tDecodeI8(pDecoder, (int8_t *)&desc.stableQuery) < 0) return -1; if (tDecodeCStrTo(pDecoder, desc.fqdn) < 0) return -1; if (tDecodeI32(pDecoder, &desc.subPlanNum) < 0) return -1; @@ -474,8 +474,10 @@ int32_t tSerializeSMCreateStbReq(void *buf, int32_t bufLen, SMCreateStbReq *pReq if (tStartEncode(&encoder) < 0) return -1; if (tEncodeCStr(&encoder, pReq->name) < 0) return -1; if (tEncodeI8(&encoder, pReq->igExists) < 0) return -1; - if (tEncodeFloat(&encoder, pReq->xFilesFactor) < 0) return -1; - if (tEncodeI32(&encoder, pReq->delay) < 0) return -1; + if (tEncodeI64(&encoder, pReq->delay1) < 0) return -1; + if (tEncodeI64(&encoder, pReq->delay2) < 0) return -1; + if (tEncodeI64(&encoder, pReq->watermark1) < 0) return -1; + if (tEncodeI64(&encoder, pReq->watermark2) < 0) return -1; if (tEncodeI32(&encoder, pReq->ttl) < 0) return -1; if (tEncodeI32(&encoder, pReq->numOfColumns) < 0) return -1; if (tEncodeI32(&encoder, pReq->numOfTags) < 0) return -1; @@ -522,8 +524,10 @@ int32_t tDeserializeSMCreateStbReq(void *buf, int32_t bufLen, SMCreateStbReq *pR if (tStartDecode(&decoder) < 0) return -1; if (tDecodeCStrTo(&decoder, pReq->name) < 0) return -1; if (tDecodeI8(&decoder, &pReq->igExists) < 0) return -1; - if (tDecodeFloat(&decoder, &pReq->xFilesFactor) < 0) return -1; - if (tDecodeI32(&decoder, &pReq->delay) < 0) return -1; + if (tDecodeI64(&decoder, &pReq->delay1) < 0) return -1; + if (tDecodeI64(&decoder, &pReq->delay2) < 0) return -1; + if (tDecodeI64(&decoder, &pReq->watermark1) < 0) return -1; + if (tDecodeI64(&decoder, &pReq->watermark2) < 0) return -1; if (tDecodeI32(&decoder, &pReq->ttl) < 0) return -1; if (tDecodeI32(&decoder, &pReq->numOfColumns) < 0) return -1; if (tDecodeI32(&decoder, &pReq->numOfTags) < 0) return -1; diff --git a/source/dnode/mnode/impl/src/mndStb.c b/source/dnode/mnode/impl/src/mndStb.c index b8b22cee85..01b4569564 100644 --- a/source/dnode/mnode/impl/src/mndStb.c +++ b/source/dnode/mnode/impl/src/mndStb.c @@ -669,8 +669,8 @@ int32_t mndBuildStbFromReq(SMnode *pMnode, SStbObj *pDst, SMCreateStbReq *pCreat pDst->tagVer = 1; pDst->colVer = 1; pDst->nextColId = 1; - pDst->xFilesFactor = pCreate->xFilesFactor; - pDst->delay = pCreate->delay; + // pDst->xFilesFactor = pCreate->xFilesFactor; + // pDst->delay = pCreate->delay; pDst->ttl = pCreate->ttl; pDst->numOfColumns = pCreate->numOfColumns; pDst->numOfTags = pCreate->numOfTags; diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 4ff54e5c6f..4d8ed1edc7 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -317,8 +317,8 @@ tags_def(A) ::= TAGS NK_LP column_def_list(B) NK_RP. table_options(A) ::= . { A = createDefaultTableOptions(pCxt); } table_options(A) ::= table_options(B) COMMENT NK_STRING(C). { A = setTableOption(pCxt, B, TABLE_OPTION_COMMENT, &C); } -table_options(A) ::= table_options(B) MAXDELAY duration_literal(C). { A = setTableOption(pCxt, B, TABLE_OPTION_MAXDELAY, C); } -table_options(A) ::= table_options(B) WATERMARK duration_literal(C). { A = setTableOption(pCxt, B, TABLE_OPTION_WATERMARK, C); } +table_options(A) ::= table_options(B) MAX_DELAY duration_list(C). { A = setTableOption(pCxt, B, TABLE_OPTION_MAXDELAY, C); } +table_options(A) ::= table_options(B) WATERMARK duration_list(C). { A = setTableOption(pCxt, B, TABLE_OPTION_WATERMARK, C); } table_options(A) ::= table_options(B) ROLLUP NK_LP rollup_func_list(C) NK_RP. { A = setTableOption(pCxt, B, TABLE_OPTION_ROLLUP, C); } table_options(A) ::= table_options(B) TTL NK_INTEGER(C). { A = setTableOption(pCxt, B, TABLE_OPTION_TTL, &C); } table_options(A) ::= table_options(B) SMA NK_LP col_name_list(C) NK_RP. { A = setTableOption(pCxt, B, TABLE_OPTION_SMA, C); } @@ -331,6 +331,11 @@ alter_table_options(A) ::= alter_table_options(B) alter_table_option(C). alter_table_option(A) ::= COMMENT NK_STRING(B). { A.type = TABLE_OPTION_COMMENT; A.val = B; } alter_table_option(A) ::= TTL NK_INTEGER(B). { A.type = TABLE_OPTION_TTL; A.val = B; } +%type duration_list { SNodeList* } +%destructor duration_list { nodesDestroyList($$); } +duration_list(A) ::= duration_literal(B). { A = createNodeList(pCxt, releaseRawExprNode(pCxt, B)); } +duration_list(A) ::= duration_list(B) NK_COMMA duration_literal(C). { A = addNodeToList(pCxt, B, releaseRawExprNode(pCxt, C)); } + %type rollup_func_list { SNodeList* } %destructor rollup_func_list { nodesDestroyList($$); } rollup_func_list(A) ::= rollup_func_name(B). { A = createNodeList(pCxt, B); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index bad088c4f1..4a7cdd628f 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -869,6 +869,10 @@ SNode* createDefaultTableOptions(SAstCreateContext* pCxt) { CHECK_PARSER_STATUS(pCxt); STableOptions* pOptions = (STableOptions*)nodesMakeNode(QUERY_NODE_TABLE_OPTIONS); CHECK_OUT_OF_MEM(pOptions); + pOptions->maxDelay1 = -1; + pOptions->maxDelay2 = -1; + pOptions->watermark1 = TSDB_DEFAULT_ROLLUP_WATERMARK; + pOptions->watermark2 = TSDB_DEFAULT_ROLLUP_WATERMARK; pOptions->ttl = TSDB_DEFAULT_TABLE_TTL; return (SNode*)pOptions; } diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 55ea7171fa..41d32204da 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -81,7 +81,7 @@ static SKeyword keywordTable[] = { {"DURATION", TK_DURATION}, {"EXISTS", TK_EXISTS}, {"EXPLAIN", TK_EXPLAIN}, - {"FILE_FACTOR", TK_FILE_FACTOR}, + // {"FILE_FACTOR", TK_FILE_FACTOR}, {"FILL", TK_FILL}, {"FIRST", TK_FIRST}, {"FLOAT", TK_FLOAT}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 57b384f6d4..f4ffc34d8e 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2623,7 +2623,7 @@ static int32_t checkDbDaysOption(STranslateContext* pCxt, SDatabaseOptions* pOpt if (TIME_UNIT_MINUTE != pOptions->pDaysPerFile->unit && TIME_UNIT_HOUR != pOptions->pDaysPerFile->unit && TIME_UNIT_DAY != pOptions->pDaysPerFile->unit) { return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_OPTION_UNIT, "daysPerFile", - pOptions->pDaysPerFile->unit); + pOptions->pDaysPerFile->unit, TIME_UNIT_MINUTE, TIME_UNIT_HOUR, TIME_UNIT_DAY); } pOptions->daysPerFile = getBigintFromValueNode(pOptions->pDaysPerFile); } @@ -3074,25 +3074,74 @@ static int32_t checkTableSchema(STranslateContext* pCxt, SCreateTableStmt* pStmt return code; } -static int32_t checkTableMaxDelayOption(STranslateContext* pCxt, STableOptions* pOptions) { - if (NULL != pOptions->pMaxDelay) { - if (DEAL_RES_ERROR == translateValue(pCxt, pOptions->pMaxDelay)) { - return pCxt->errCode; - } - if (TIME_UNIT_MINUTE != pOptions->pDaysPerFile->unit) { - return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_OPTION_UNIT, "daysPerFile", - pOptions->pDaysPerFile->unit); - } - pOptions->daysPerFile = getBigintFromValueNode(pOptions->pDaysPerFile); +static int32_t getTableDelayOrWatermarkOption(STranslateContext* pCxt, const char* pName, int64_t minVal, + int64_t maxVal, SValueNode* pVal, int64_t* pMaxDelay) { + int32_t code = (DEAL_RES_ERROR == translateValue(pCxt, pVal) ? pCxt->errCode : TSDB_CODE_SUCCESS); + if (TSDB_CODE_SUCCESS == code && TIME_UNIT_MILLISECOND != pVal->unit && TIME_UNIT_SECOND != pVal->unit && + TIME_UNIT_MINUTE != pVal->unit) { + code = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_OPTION_UNIT, pName, pVal->unit, + TIME_UNIT_MILLISECOND, TIME_UNIT_SECOND, TIME_UNIT_MINUTE); } - return checkRangeOption(pCxt, "maxDelay", pOptions->pMaxDelay, TSDB_MIN_ROLLUP_MAX_DELAY, TSDB_MAX_ROLLUP_MAX_DELAY); + if (TSDB_CODE_SUCCESS == code) { + code = checkRangeOption(pCxt, pName, pVal->datum.i, minVal, maxVal); + } + if (TSDB_CODE_SUCCESS == code) { + *pMaxDelay = pVal->datum.i; + } + return code; +} + +static int32_t getTableMaxDelayOption(STranslateContext* pCxt, SValueNode* pVal, int64_t* pMaxDelay) { + return getTableDelayOrWatermarkOption(pCxt, "maxDelay", TSDB_MIN_ROLLUP_MAX_DELAY, TSDB_MAX_ROLLUP_MAX_DELAY, pVal, + pMaxDelay); +} + +static int32_t checkTableMaxDelayOption(STranslateContext* pCxt, STableOptions* pOptions) { + if (NULL == pOptions->pMaxDelay) { + return TSDB_CODE_SUCCESS; + } + + if (LIST_LENGTH(pOptions->pMaxDelay) > 2) { + return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_TABLE_OPTION, "maxdelay"); + } + + int32_t code = + getTableMaxDelayOption(pCxt, (SValueNode*)nodesListGetNode(pOptions->pMaxDelay, 0), &pOptions->maxDelay1); + if (TSDB_CODE_SUCCESS == code && 2 == LIST_LENGTH(pOptions->pMaxDelay)) { + code = getTableMaxDelayOption(pCxt, (SValueNode*)nodesListGetNode(pOptions->pMaxDelay, 1), &pOptions->maxDelay2); + } + + return code; +} + +static int32_t getTableWatermarkOption(STranslateContext* pCxt, SValueNode* pVal, int64_t* pMaxDelay) { + return getTableDelayOrWatermarkOption(pCxt, "watermark", TSDB_MIN_ROLLUP_WATERMARK, TSDB_MAX_ROLLUP_WATERMARK, pVal, + pMaxDelay); +} + +static int32_t checkTableWatermarkOption(STranslateContext* pCxt, STableOptions* pOptions) { + if (NULL == pOptions->pWatermark) { + return TSDB_CODE_SUCCESS; + } + + if (LIST_LENGTH(pOptions->pWatermark) > 2) { + return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_TABLE_OPTION, "watermark"); + } + + int32_t code = + getTableWatermarkOption(pCxt, (SValueNode*)nodesListGetNode(pOptions->pWatermark, 0), &pOptions->watermark1); + if (TSDB_CODE_SUCCESS == code && 2 == LIST_LENGTH(pOptions->pWatermark)) { + code = getTableWatermarkOption(pCxt, (SValueNode*)nodesListGetNode(pOptions->pWatermark, 1), &pOptions->watermark2); + } + + return code; } static int32_t checkCreateTable(STranslateContext* pCxt, SCreateTableStmt* pStmt) { - int32_t code = checkTableMaxDelayOption(pCxt, pStmt->pOptions->pMaxDelay); - // if (TSDB_CODE_SUCCESS == code) { - // code = checkRangeOption(pCxt, "delay", pStmt->pOptions->delay, TSDB_MIN_ROLLUP_DELAY, TSDB_MAX_ROLLUP_DELAY); - // } + int32_t code = checkTableMaxDelayOption(pCxt, pStmt->pOptions); + if (TSDB_CODE_SUCCESS == code) { + code = checkTableWatermarkOption(pCxt, pStmt->pOptions); + } if (TSDB_CODE_SUCCESS == code) { code = checkTableRollupOption(pCxt, pStmt->pOptions->pRollupFuncs); } @@ -3335,8 +3384,10 @@ static int32_t buildRollupAst(STranslateContext* pCxt, SCreateTableStmt* pStmt, static int32_t buildCreateStbReq(STranslateContext* pCxt, SCreateTableStmt* pStmt, SMCreateStbReq* pReq) { pReq->igExists = pStmt->ignoreExists; - // pReq->delay = pStmt->pOptions->delay; - // pReq->xFilesFactor = pStmt->pOptions->filesFactor; + pReq->delay1 = pStmt->pOptions->maxDelay1; + pReq->delay2 = pStmt->pOptions->maxDelay2; + pReq->watermark1 = pStmt->pOptions->watermark1; + pReq->watermark2 = pStmt->pOptions->watermark2; pReq->ttl = pStmt->pOptions->ttl; columnDefNodeToField(pStmt->pCols, &pReq->pColumns); columnDefNodeToField(pStmt->pTags, &pReq->pTags); diff --git a/source/libs/parser/src/parUtil.c b/source/libs/parser/src/parUtil.c index d561b8ac4b..95cdf58d5a 100644 --- a/source/libs/parser/src/parUtil.c +++ b/source/libs/parser/src/parUtil.c @@ -90,7 +90,7 @@ static char* getSyntaxErrFormat(int32_t errCode) { case TSDB_CODE_PAR_GROUPBY_WINDOW_COEXIST: return "GROUP BY and WINDOW-clause can't be used together"; case TSDB_CODE_PAR_INVALID_OPTION_UNIT: - return "Invalid option %s unit: %c, only m, h, d allowed"; + return "Invalid option %s unit: %c, only %c, %c, %c allowed"; case TSDB_CODE_PAR_INVALID_KEEP_UNIT: return "Invalid option keep unit: %c, only m, h, d allowed"; case TSDB_CODE_PAR_AGG_FUNC_NESTING: @@ -194,6 +194,8 @@ static char* getSyntaxErrFormat(int32_t errCode) { return "%s function does not supportted in stream query"; case TSDB_CODE_PAR_GROUP_BY_NOT_ALLOWED_FUNC: return "%s function does not supportted in group query"; + case TSDB_CODE_PAR_INVALID_TABLE_OPTION: + return "Invalid option %s"; case TSDB_CODE_OUT_OF_MEMORY: return "Out of memory"; default: diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index e81610c1b4..40b2b3a283 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -138,17 +138,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 619 -#define YYNRULE 454 -#define YYNTOKEN 240 -#define YY_MAX_SHIFT 618 -#define YY_MIN_SHIFTREDUCE 906 -#define YY_MAX_SHIFTREDUCE 1359 -#define YY_ERROR_ACTION 1360 -#define YY_ACCEPT_ACTION 1361 -#define YY_NO_ACTION 1362 -#define YY_MIN_REDUCE 1363 -#define YY_MAX_REDUCE 1816 +#define YYNSTATE 623 +#define YYNRULE 459 +#define YYNTOKEN 239 +#define YY_MAX_SHIFT 622 +#define YY_MIN_SHIFTREDUCE 913 +#define YY_MAX_SHIFTREDUCE 1371 +#define YY_ERROR_ACTION 1372 +#define YY_ACCEPT_ACTION 1373 +#define YY_NO_ACTION 1374 +#define YY_MIN_REDUCE 1375 +#define YY_MAX_REDUCE 1833 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -215,607 +215,612 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2152) +#define YY_ACTTAB_COUNT (2186) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 28, 231, 1663, 1650, 611, 610, 297, 1650, 358, 1485, - /* 10 */ 314, 1483, 35, 33, 352, 36, 34, 32, 31, 30, - /* 20 */ 306, 24, 1173, 1647, 533, 442, 441, 1647, 79, 1647, - /* 30 */ 1679, 36, 34, 32, 31, 30, 152, 493, 517, 1643, - /* 40 */ 1649, 115, 278, 1643, 1649, 1643, 1649, 1171, 516, 1486, - /* 50 */ 536, 533, 1633, 1494, 536, 1794, 536, 497, 14, 1746, - /* 60 */ 35, 33, 1300, 356, 1179, 1663, 114, 147, 306, 1692, - /* 70 */ 1173, 1791, 82, 1664, 519, 1666, 1667, 515, 532, 536, - /* 80 */ 1494, 1, 1732, 1743, 1794, 1314, 280, 1728, 36, 34, - /* 90 */ 32, 31, 30, 1679, 410, 1171, 1793, 1651, 1794, 520, - /* 100 */ 1791, 517, 309, 615, 112, 1583, 14, 1746, 35, 33, - /* 110 */ 149, 516, 1179, 1172, 1791, 1633, 306, 1647, 1173, 145, - /* 120 */ 1739, 1740, 532, 1744, 36, 34, 32, 31, 30, 2, - /* 130 */ 63, 1742, 1692, 1643, 1649, 84, 1664, 519, 1666, 1667, - /* 140 */ 515, 1364, 536, 1171, 536, 1732, 953, 1794, 952, 1731, - /* 150 */ 1728, 615, 1490, 72, 14, 392, 1174, 393, 1395, 148, - /* 160 */ 1179, 1172, 96, 1791, 532, 95, 94, 93, 92, 91, - /* 170 */ 90, 89, 88, 87, 1487, 954, 56, 2, 132, 201, - /* 180 */ 1375, 1177, 1178, 39, 1224, 1225, 1227, 1228, 1229, 1230, - /* 190 */ 1231, 512, 534, 1239, 1240, 1241, 1242, 1243, 1244, 615, - /* 200 */ 400, 952, 393, 1395, 1174, 55, 1197, 66, 133, 1172, - /* 210 */ 96, 150, 1451, 95, 94, 93, 92, 91, 90, 89, - /* 220 */ 88, 87, 65, 279, 1356, 38, 429, 194, 567, 1177, - /* 230 */ 1178, 1363, 1224, 1225, 1227, 1228, 1229, 1230, 1231, 512, - /* 240 */ 534, 1239, 1240, 1241, 1242, 1243, 1244, 566, 487, 565, - /* 250 */ 564, 563, 1174, 55, 63, 105, 104, 103, 102, 101, - /* 260 */ 100, 99, 98, 97, 936, 35, 33, 110, 36, 34, - /* 270 */ 32, 31, 30, 306, 1746, 1173, 1489, 1177, 1178, 1198, - /* 280 */ 1224, 1225, 1227, 1228, 1229, 1230, 1231, 512, 534, 1239, - /* 290 */ 1240, 1241, 1242, 1243, 1244, 55, 445, 444, 1741, 1538, - /* 300 */ 1171, 443, 940, 941, 111, 440, 296, 1355, 439, 438, - /* 310 */ 437, 1536, 569, 35, 33, 1245, 1679, 1179, 26, 310, - /* 320 */ 1386, 306, 391, 1173, 486, 395, 290, 130, 36, 34, - /* 330 */ 32, 31, 30, 1196, 8, 150, 1496, 1043, 559, 558, - /* 340 */ 557, 1047, 556, 1049, 1050, 555, 1052, 552, 1171, 1058, - /* 350 */ 549, 1060, 1061, 546, 543, 150, 615, 450, 482, 618, - /* 360 */ 485, 35, 33, 585, 583, 1179, 1172, 142, 397, 306, - /* 370 */ 1633, 1173, 458, 248, 1195, 291, 1324, 289, 288, 1532, - /* 380 */ 433, 318, 9, 150, 435, 107, 193, 399, 1574, 1576, - /* 390 */ 395, 607, 603, 599, 595, 247, 1171, 1472, 453, 157, - /* 400 */ 533, 129, 1361, 447, 615, 1425, 434, 572, 192, 1174, - /* 410 */ 1794, 1385, 357, 1179, 1172, 479, 1322, 1323, 1325, 1326, - /* 420 */ 80, 1571, 1792, 242, 61, 150, 1791, 60, 159, 1494, - /* 430 */ 9, 488, 483, 51, 1177, 1178, 50, 1224, 1225, 1227, - /* 440 */ 1228, 1229, 1230, 1231, 512, 534, 1239, 1240, 1241, 1242, - /* 450 */ 1243, 1244, 615, 55, 410, 316, 529, 1174, 54, 319, - /* 460 */ 322, 1633, 1172, 130, 150, 445, 444, 130, 1538, 562, - /* 470 */ 443, 382, 1496, 111, 440, 311, 1496, 439, 438, 437, - /* 480 */ 1536, 474, 1177, 1178, 203, 1224, 1225, 1227, 1228, 1229, - /* 490 */ 1230, 1231, 512, 534, 1239, 1240, 1241, 1242, 1243, 1244, - /* 500 */ 1384, 1794, 1147, 1199, 197, 1174, 1575, 1576, 36, 34, - /* 510 */ 32, 31, 30, 147, 1307, 161, 160, 1791, 35, 33, - /* 520 */ 1197, 1663, 1155, 1156, 195, 1470, 306, 351, 1173, 350, - /* 530 */ 1177, 1178, 493, 1224, 1225, 1227, 1228, 1229, 1230, 1231, - /* 540 */ 512, 534, 1239, 1240, 1241, 1242, 1243, 1244, 253, 1679, - /* 550 */ 1633, 1524, 533, 1171, 1383, 1621, 533, 517, 1382, 1250, - /* 560 */ 277, 114, 1195, 1005, 367, 1197, 1479, 516, 106, 375, - /* 570 */ 1179, 1633, 387, 466, 533, 431, 497, 1422, 1211, 469, - /* 580 */ 1007, 1494, 569, 150, 1381, 1494, 368, 2, 1692, 343, - /* 590 */ 388, 82, 1664, 519, 1666, 1667, 515, 1481, 536, 112, - /* 600 */ 331, 1732, 1477, 1494, 1633, 280, 1728, 198, 1633, 615, - /* 610 */ 345, 341, 533, 495, 144, 1739, 1740, 1794, 1744, 1172, - /* 620 */ 1794, 940, 941, 1538, 106, 1376, 11, 10, 222, 147, - /* 630 */ 317, 436, 147, 1791, 1633, 1536, 1791, 591, 590, 589, - /* 640 */ 321, 1494, 588, 587, 586, 116, 581, 580, 579, 578, - /* 650 */ 577, 576, 575, 574, 123, 570, 32, 31, 30, 1380, - /* 660 */ 386, 1299, 1174, 381, 380, 379, 378, 377, 374, 373, - /* 670 */ 372, 371, 370, 366, 365, 364, 363, 362, 361, 360, - /* 680 */ 359, 499, 1663, 520, 1379, 1226, 1197, 1177, 1178, 1584, - /* 690 */ 1224, 1225, 1227, 1228, 1229, 1230, 1231, 512, 534, 1239, - /* 700 */ 1240, 1241, 1242, 1243, 1244, 1264, 131, 1276, 1378, 1633, - /* 710 */ 1679, 259, 573, 533, 1466, 7, 511, 533, 496, 1471, - /* 720 */ 1200, 533, 459, 257, 53, 409, 1269, 52, 516, 1491, - /* 730 */ 1226, 533, 1633, 1610, 1633, 533, 36, 34, 32, 31, - /* 740 */ 30, 1377, 1494, 244, 162, 1374, 1494, 467, 1663, 1692, - /* 750 */ 1494, 501, 83, 1664, 519, 1666, 1667, 515, 1633, 536, - /* 760 */ 1494, 1373, 1732, 1794, 1494, 25, 299, 1728, 143, 55, - /* 770 */ 36, 34, 32, 31, 30, 147, 1679, 1469, 533, 1791, - /* 780 */ 223, 533, 281, 130, 517, 475, 1759, 435, 533, 1372, - /* 790 */ 530, 1633, 1497, 531, 516, 1633, 185, 1371, 1633, 183, - /* 800 */ 320, 476, 1370, 1369, 1663, 81, 1211, 1494, 1368, 434, - /* 810 */ 1494, 1633, 567, 504, 1262, 1692, 281, 1494, 274, 1664, - /* 820 */ 519, 1666, 1667, 515, 509, 536, 1751, 1295, 493, 561, - /* 830 */ 457, 566, 1679, 565, 564, 563, 59, 58, 355, 1633, - /* 840 */ 514, 156, 1452, 455, 1538, 207, 349, 1633, 1262, 584, - /* 850 */ 516, 1226, 1633, 1633, 1633, 1367, 1537, 114, 1633, 276, - /* 860 */ 1173, 226, 339, 1263, 337, 333, 329, 153, 324, 1298, - /* 870 */ 567, 1692, 1412, 1182, 273, 1664, 519, 1666, 1667, 515, - /* 880 */ 513, 536, 510, 1704, 1268, 1171, 1366, 1407, 1295, 566, - /* 890 */ 346, 565, 564, 563, 446, 112, 120, 1263, 187, 150, - /* 900 */ 189, 186, 1179, 188, 191, 1633, 1663, 190, 46, 448, - /* 910 */ 146, 1739, 1740, 1405, 1744, 11, 10, 1653, 1268, 1358, - /* 920 */ 1359, 480, 1181, 27, 304, 1257, 1258, 1259, 1260, 1261, - /* 930 */ 1265, 1266, 1267, 210, 1679, 451, 1633, 471, 502, 1185, - /* 940 */ 78, 615, 496, 37, 37, 460, 37, 1254, 233, 1321, - /* 950 */ 74, 1172, 516, 217, 1655, 1680, 1633, 27, 304, 1257, - /* 960 */ 1258, 1259, 1260, 1261, 1265, 1266, 1267, 118, 1663, 1396, - /* 970 */ 119, 1533, 120, 1692, 212, 46, 83, 1664, 519, 1666, - /* 980 */ 1667, 515, 977, 536, 1270, 1232, 1732, 1128, 1184, 235, - /* 990 */ 299, 1728, 143, 541, 1174, 428, 1679, 1762, 494, 978, - /* 1000 */ 1663, 225, 505, 119, 517, 228, 120, 230, 525, 3, - /* 1010 */ 1760, 241, 5, 1036, 516, 121, 252, 119, 1633, 1177, - /* 1020 */ 1178, 323, 1195, 326, 330, 286, 287, 1005, 1679, 249, - /* 1030 */ 1139, 369, 1573, 376, 1064, 1692, 517, 158, 83, 1664, - /* 1040 */ 519, 1666, 1667, 515, 1068, 536, 516, 1074, 1732, 384, - /* 1050 */ 1633, 389, 299, 1728, 1807, 383, 1072, 1201, 122, 385, - /* 1060 */ 1663, 390, 1204, 1766, 401, 398, 165, 1692, 402, 167, - /* 1070 */ 83, 1664, 519, 1666, 1667, 515, 1203, 536, 1205, 404, - /* 1080 */ 1732, 403, 170, 406, 299, 1728, 1807, 172, 1679, 407, - /* 1090 */ 1202, 175, 1663, 408, 62, 1789, 517, 411, 178, 430, - /* 1100 */ 432, 1484, 182, 86, 1480, 184, 516, 295, 124, 1179, - /* 1110 */ 1633, 125, 1482, 1478, 1615, 126, 127, 1614, 196, 461, - /* 1120 */ 1679, 199, 250, 202, 465, 462, 1200, 1692, 517, 468, - /* 1130 */ 83, 1664, 519, 1666, 1667, 515, 472, 536, 516, 205, - /* 1140 */ 1732, 481, 1633, 1663, 299, 1728, 1807, 497, 470, 478, - /* 1150 */ 473, 523, 1773, 1772, 298, 1750, 490, 208, 1763, 1692, - /* 1160 */ 211, 6, 264, 1664, 519, 1666, 1667, 515, 1753, 536, - /* 1170 */ 484, 1679, 216, 1663, 477, 113, 1295, 218, 1199, 517, - /* 1180 */ 40, 300, 1747, 506, 503, 18, 527, 1582, 1794, 516, - /* 1190 */ 137, 521, 522, 1633, 219, 1581, 526, 308, 497, 237, - /* 1200 */ 149, 1679, 528, 224, 1791, 251, 1663, 1495, 1713, 517, - /* 1210 */ 1692, 1810, 1790, 264, 1664, 519, 1666, 1667, 515, 516, - /* 1220 */ 536, 239, 71, 1633, 73, 539, 246, 254, 500, 614, - /* 1230 */ 136, 227, 1467, 229, 1679, 507, 1663, 265, 47, 1794, - /* 1240 */ 1692, 256, 517, 84, 1664, 519, 1666, 1667, 515, 258, - /* 1250 */ 536, 147, 516, 1732, 275, 1791, 1633, 508, 1728, 266, - /* 1260 */ 1627, 1626, 57, 1625, 1679, 325, 1622, 327, 328, 332, - /* 1270 */ 1166, 1167, 517, 1692, 154, 1620, 134, 1664, 519, 1666, - /* 1280 */ 1667, 515, 516, 536, 334, 335, 1633, 1663, 336, 1619, - /* 1290 */ 338, 1618, 340, 1617, 342, 1616, 1663, 344, 1600, 155, - /* 1300 */ 1142, 347, 1141, 1692, 348, 1594, 84, 1664, 519, 1666, - /* 1310 */ 1667, 515, 1593, 536, 353, 1679, 1732, 354, 1592, 498, - /* 1320 */ 1808, 1729, 1591, 517, 1679, 1111, 1566, 1565, 1564, 1563, - /* 1330 */ 1562, 1561, 517, 516, 1560, 1559, 1558, 1633, 1557, 1556, - /* 1340 */ 1555, 1554, 516, 1553, 1552, 1551, 1633, 1550, 1549, 117, - /* 1350 */ 1663, 1548, 1547, 1546, 1692, 1545, 1544, 269, 1664, 519, - /* 1360 */ 1666, 1667, 515, 1692, 536, 1543, 134, 1664, 519, 1666, - /* 1370 */ 1667, 515, 1113, 536, 1542, 1541, 1540, 1539, 1679, 1424, - /* 1380 */ 1392, 943, 163, 108, 942, 1391, 517, 1608, 1602, 1590, - /* 1390 */ 1663, 171, 1589, 394, 489, 140, 516, 164, 109, 169, - /* 1400 */ 1633, 396, 1579, 303, 45, 174, 1663, 1473, 1423, 1421, - /* 1410 */ 1809, 1419, 1417, 412, 413, 414, 417, 1692, 1679, 971, - /* 1420 */ 274, 1664, 519, 1666, 1667, 515, 514, 536, 416, 420, - /* 1430 */ 418, 421, 422, 1415, 1679, 426, 516, 424, 1404, 425, - /* 1440 */ 1633, 1403, 517, 1390, 1475, 1077, 181, 1078, 1474, 1413, - /* 1450 */ 1004, 582, 516, 1003, 1663, 584, 1633, 1692, 292, 305, - /* 1460 */ 273, 1664, 519, 1666, 1667, 515, 1408, 536, 1002, 1705, - /* 1470 */ 449, 1001, 998, 1692, 997, 996, 274, 1664, 519, 1666, - /* 1480 */ 1667, 515, 1679, 536, 293, 1406, 1663, 294, 1389, 452, - /* 1490 */ 517, 180, 1388, 454, 456, 85, 1607, 1149, 1601, 463, - /* 1500 */ 516, 1588, 1587, 141, 1633, 1586, 1578, 307, 49, 427, - /* 1510 */ 423, 419, 415, 179, 1679, 67, 1663, 204, 464, 4, - /* 1520 */ 37, 1692, 517, 206, 274, 1664, 519, 1666, 1667, 515, - /* 1530 */ 15, 536, 516, 128, 209, 43, 1633, 1320, 64, 200, - /* 1540 */ 135, 177, 213, 215, 1679, 22, 48, 1653, 214, 1313, - /* 1550 */ 68, 23, 517, 1692, 42, 1292, 260, 1664, 519, 1666, - /* 1560 */ 1667, 515, 516, 536, 221, 1291, 1633, 1663, 138, 1349, - /* 1570 */ 17, 1338, 1344, 1343, 301, 1348, 10, 1347, 302, 19, - /* 1580 */ 1255, 139, 1234, 1692, 151, 29, 268, 1664, 519, 1666, - /* 1590 */ 1667, 515, 12, 536, 1233, 1679, 20, 1219, 176, 16, - /* 1600 */ 168, 518, 173, 517, 405, 41, 13, 1663, 1577, 238, - /* 1610 */ 74, 524, 1652, 516, 232, 21, 234, 1633, 1318, 1189, - /* 1620 */ 236, 240, 166, 69, 70, 243, 1695, 540, 1236, 535, - /* 1630 */ 44, 1071, 1065, 538, 1692, 1679, 315, 270, 1664, 519, - /* 1640 */ 1666, 1667, 515, 517, 536, 542, 544, 1663, 1062, 1059, - /* 1650 */ 545, 547, 548, 516, 550, 1053, 553, 1633, 551, 1057, - /* 1660 */ 1051, 1056, 1663, 554, 1055, 1054, 75, 1042, 76, 560, - /* 1670 */ 1073, 77, 1070, 568, 1692, 1679, 969, 261, 1664, 519, - /* 1680 */ 1666, 1667, 515, 517, 536, 993, 1011, 245, 991, 571, - /* 1690 */ 1679, 986, 1008, 516, 990, 989, 988, 1633, 517, 987, - /* 1700 */ 985, 984, 1006, 981, 980, 979, 976, 975, 516, 974, - /* 1710 */ 1420, 592, 1633, 1663, 1692, 593, 594, 271, 1664, 519, - /* 1720 */ 1666, 1667, 515, 1418, 536, 1663, 597, 596, 598, 1692, - /* 1730 */ 1416, 600, 262, 1664, 519, 1666, 1667, 515, 601, 536, - /* 1740 */ 602, 1679, 604, 605, 606, 1402, 608, 609, 1401, 517, - /* 1750 */ 1414, 1387, 613, 1679, 612, 1175, 255, 616, 617, 516, - /* 1760 */ 1362, 517, 1362, 1633, 1362, 1663, 1362, 1362, 1362, 1362, - /* 1770 */ 1362, 516, 1362, 1362, 1362, 1633, 1663, 1362, 1362, 1362, - /* 1780 */ 1692, 1362, 1362, 272, 1664, 519, 1666, 1667, 515, 1362, - /* 1790 */ 536, 1362, 1692, 1679, 1362, 263, 1664, 519, 1666, 1667, - /* 1800 */ 515, 517, 536, 1362, 1679, 1362, 1362, 1362, 1362, 1362, - /* 1810 */ 1362, 516, 517, 1362, 1362, 1633, 1362, 1362, 1362, 1362, - /* 1820 */ 1362, 1362, 516, 1362, 1362, 1362, 1633, 1663, 1362, 1362, - /* 1830 */ 1362, 1362, 1692, 1362, 1362, 1675, 1664, 519, 1666, 1667, - /* 1840 */ 515, 1362, 536, 1692, 1362, 1362, 1674, 1664, 519, 1666, - /* 1850 */ 1667, 515, 1362, 536, 1362, 1679, 1362, 1663, 1362, 1362, - /* 1860 */ 1362, 1362, 1362, 517, 1362, 1362, 1362, 1362, 1362, 1362, - /* 1870 */ 1362, 1362, 1362, 516, 1362, 1362, 1362, 1633, 1362, 1362, - /* 1880 */ 1362, 1362, 1362, 1362, 1362, 1679, 1362, 1663, 1362, 1362, - /* 1890 */ 1362, 1362, 1362, 517, 1692, 1362, 1362, 1673, 1664, 519, - /* 1900 */ 1666, 1667, 515, 516, 536, 1362, 1362, 1633, 1362, 1362, - /* 1910 */ 1362, 1362, 1362, 1362, 1362, 1679, 1362, 1362, 1362, 1663, - /* 1920 */ 1362, 1362, 1362, 517, 1692, 1362, 1362, 284, 1664, 519, - /* 1930 */ 1666, 1667, 515, 516, 536, 1362, 1362, 1633, 1362, 1362, - /* 1940 */ 1362, 1362, 1362, 313, 312, 1362, 1362, 1679, 1362, 1362, - /* 1950 */ 1362, 1362, 1663, 1187, 1692, 517, 1362, 283, 1664, 519, - /* 1960 */ 1666, 1667, 515, 1362, 536, 516, 1362, 1362, 1362, 1633, - /* 1970 */ 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1362, 1180, 1362, - /* 1980 */ 1679, 1362, 1362, 1362, 1362, 1663, 1692, 1362, 517, 285, - /* 1990 */ 1664, 519, 1666, 1667, 515, 1179, 536, 1362, 516, 1362, - /* 2000 */ 1362, 1362, 1633, 1362, 1362, 1362, 1362, 1362, 1362, 1362, - /* 2010 */ 1362, 1362, 1362, 1679, 1362, 1362, 493, 1362, 1362, 1692, - /* 2020 */ 1362, 517, 282, 1664, 519, 1666, 1667, 515, 1362, 536, - /* 2030 */ 1362, 516, 1362, 1362, 537, 1633, 1362, 1362, 1362, 1362, - /* 2040 */ 1362, 1362, 1362, 1362, 1183, 114, 493, 1362, 1362, 1362, - /* 2050 */ 1362, 1362, 1692, 1362, 1362, 267, 1664, 519, 1666, 1667, - /* 2060 */ 515, 1362, 536, 1362, 497, 1362, 1362, 1362, 1362, 1362, - /* 2070 */ 1362, 1362, 1362, 1362, 1362, 114, 1362, 1362, 1362, 1362, - /* 2080 */ 1362, 1362, 1362, 112, 1362, 1362, 1362, 1188, 1362, 1362, - /* 2090 */ 1362, 1362, 1362, 1362, 497, 1362, 1362, 1362, 220, 1739, - /* 2100 */ 492, 1362, 491, 1362, 1362, 1794, 1362, 1362, 1362, 1362, - /* 2110 */ 1362, 1362, 1191, 112, 1362, 1362, 1362, 149, 1362, 1362, - /* 2120 */ 1362, 1791, 1362, 534, 1239, 1240, 1362, 1362, 220, 1739, - /* 2130 */ 492, 1362, 491, 1362, 1362, 1794, 1362, 1362, 1362, 1362, - /* 2140 */ 1362, 1362, 1362, 1362, 1362, 1362, 1362, 147, 1362, 1362, - /* 2150 */ 1362, 1791, + /* 0 */ 361, 1680, 355, 1667, 28, 233, 300, 395, 1373, 396, + /* 10 */ 1407, 943, 35, 33, 1664, 1667, 1495, 496, 317, 57, + /* 20 */ 309, 24, 1185, 1558, 73, 403, 1664, 396, 1407, 1696, + /* 30 */ 299, 36, 34, 32, 31, 30, 1491, 520, 281, 1556, + /* 40 */ 1660, 1666, 1650, 1811, 519, 1499, 115, 1183, 535, 947, + /* 50 */ 948, 539, 1660, 1666, 134, 149, 1387, 500, 14, 1808, + /* 60 */ 35, 33, 1312, 539, 1191, 1434, 500, 325, 309, 1709, + /* 70 */ 1185, 203, 82, 1681, 522, 1683, 1684, 518, 26, 539, + /* 80 */ 321, 1, 1749, 1551, 1553, 113, 283, 1745, 36, 34, + /* 90 */ 32, 31, 30, 496, 1211, 1183, 56, 56, 1811, 67, + /* 100 */ 222, 1756, 495, 619, 494, 523, 14, 1811, 1811, 39, + /* 110 */ 151, 1398, 1191, 312, 1808, 1600, 496, 1254, 1255, 151, + /* 120 */ 149, 1397, 115, 1808, 1808, 595, 594, 593, 324, 2, + /* 130 */ 592, 591, 590, 117, 585, 584, 583, 582, 581, 580, + /* 140 */ 579, 578, 125, 574, 1437, 115, 36, 34, 32, 31, + /* 150 */ 30, 619, 1650, 36, 34, 32, 31, 30, 1186, 135, + /* 160 */ 1184, 113, 1650, 1463, 96, 1254, 1255, 95, 94, 93, + /* 170 */ 92, 91, 90, 89, 88, 87, 147, 1756, 1757, 577, + /* 180 */ 1761, 1478, 1189, 1190, 113, 1236, 1237, 1239, 1240, 1241, + /* 190 */ 1242, 1243, 515, 537, 1251, 1252, 1253, 1256, 498, 146, + /* 200 */ 1756, 1757, 535, 1761, 448, 447, 1186, 1696, 1184, 446, + /* 210 */ 152, 144, 112, 443, 196, 489, 442, 441, 440, 35, + /* 220 */ 33, 224, 496, 1326, 1545, 152, 152, 309, 1638, 1185, + /* 230 */ 1189, 1190, 1376, 1236, 1237, 1239, 1240, 1241, 1242, 1243, + /* 240 */ 515, 537, 1251, 1252, 1253, 1256, 36, 34, 32, 31, + /* 250 */ 30, 115, 488, 96, 1183, 1680, 95, 94, 93, 92, + /* 260 */ 91, 90, 89, 88, 87, 14, 1209, 35, 33, 66, + /* 270 */ 282, 1191, 1680, 334, 535, 309, 313, 1185, 36, 34, + /* 280 */ 32, 31, 30, 1696, 132, 316, 315, 1811, 2, 536, + /* 290 */ 113, 520, 536, 1508, 1484, 1199, 1650, 197, 519, 1810, + /* 300 */ 1696, 533, 1183, 1808, 154, 148, 1756, 1757, 520, 1761, + /* 310 */ 619, 500, 960, 1650, 959, 519, 1223, 1276, 1506, 1191, + /* 320 */ 1192, 1506, 1336, 1709, 1254, 1255, 269, 1681, 522, 1683, + /* 330 */ 1684, 518, 1210, 539, 56, 38, 8, 1191, 413, 1281, + /* 340 */ 1709, 961, 536, 136, 1681, 522, 1683, 1684, 518, 319, + /* 350 */ 539, 413, 1811, 1375, 359, 1167, 1168, 132, 619, 482, + /* 360 */ 1334, 1335, 1337, 1338, 151, 1186, 1508, 1184, 1808, 1552, + /* 370 */ 1553, 1506, 1254, 1255, 25, 460, 540, 105, 104, 103, + /* 380 */ 102, 101, 100, 99, 98, 97, 501, 1825, 458, 1189, + /* 390 */ 1190, 346, 1236, 1237, 1239, 1240, 1241, 1242, 1243, 515, + /* 400 */ 537, 1251, 1252, 1253, 1256, 56, 615, 614, 1811, 448, + /* 410 */ 447, 348, 344, 1186, 446, 1184, 1368, 112, 443, 472, + /* 420 */ 150, 442, 441, 440, 1808, 490, 35, 33, 1257, 1092, + /* 430 */ 1093, 1200, 394, 1195, 309, 398, 1185, 1189, 1190, 293, + /* 440 */ 1236, 1237, 1239, 1240, 1241, 1242, 1243, 515, 537, 1251, + /* 450 */ 1252, 1253, 1256, 462, 322, 1203, 402, 1811, 536, 398, + /* 460 */ 1811, 1183, 132, 152, 152, 152, 537, 1251, 1252, 1809, + /* 470 */ 360, 1508, 149, 1808, 35, 33, 1808, 1680, 1191, 400, + /* 480 */ 182, 354, 309, 353, 1185, 1207, 569, 1506, 294, 1549, + /* 490 */ 292, 291, 143, 436, 1811, 9, 1367, 438, 430, 426, + /* 500 */ 422, 418, 181, 11, 10, 1696, 149, 1558, 1311, 1183, + /* 510 */ 1808, 64, 536, 499, 314, 573, 64, 619, 1650, 437, + /* 520 */ 519, 1210, 1012, 1556, 370, 536, 1191, 65, 536, 111, + /* 530 */ 179, 1254, 1255, 1502, 152, 1482, 1185, 106, 1501, 1014, + /* 540 */ 106, 1506, 54, 9, 434, 1709, 1396, 439, 83, 1681, + /* 550 */ 522, 1683, 1684, 518, 1506, 539, 485, 1506, 1749, 536, + /* 560 */ 959, 1183, 302, 1745, 145, 619, 36, 34, 32, 31, + /* 570 */ 30, 371, 1186, 1208, 1184, 1497, 225, 79, 1191, 1254, + /* 580 */ 1255, 478, 1776, 385, 1288, 432, 1664, 1650, 1506, 178, + /* 590 */ 116, 170, 573, 175, 1763, 408, 1189, 1190, 1498, 1236, + /* 600 */ 1237, 1239, 1240, 1241, 1242, 1243, 515, 537, 1251, 1252, + /* 610 */ 1253, 1256, 1660, 1666, 168, 445, 444, 619, 1760, 1191, + /* 620 */ 1186, 1558, 1184, 539, 589, 587, 491, 486, 320, 163, + /* 630 */ 162, 576, 570, 35, 33, 1549, 1395, 1556, 32, 31, + /* 640 */ 30, 309, 571, 1185, 1189, 1190, 496, 1236, 1237, 1239, + /* 650 */ 1240, 1241, 1242, 1243, 515, 537, 1251, 1252, 1253, 1256, + /* 660 */ 1319, 123, 122, 568, 567, 566, 1209, 1262, 1183, 536, + /* 670 */ 536, 1394, 1186, 1209, 1184, 115, 536, 1650, 280, 565, + /* 680 */ 1207, 412, 1503, 1763, 7, 1191, 1209, 378, 1627, 1668, + /* 690 */ 390, 536, 469, 1393, 536, 500, 1189, 1190, 1506, 1506, + /* 700 */ 1664, 131, 2, 470, 133, 1506, 534, 1759, 391, 262, + /* 710 */ 1392, 504, 1650, 1391, 113, 1310, 536, 1493, 159, 1390, + /* 720 */ 1506, 260, 53, 1506, 619, 52, 1660, 1666, 246, 222, + /* 730 */ 1756, 495, 536, 494, 1650, 1389, 1811, 539, 1254, 1255, + /* 740 */ 523, 1386, 164, 62, 323, 1506, 61, 1763, 149, 1489, + /* 750 */ 1601, 1650, 1808, 1212, 1650, 36, 34, 32, 31, 30, + /* 760 */ 1650, 1506, 1591, 256, 502, 132, 1536, 56, 947, 948, + /* 770 */ 1388, 1758, 187, 161, 1509, 185, 1650, 1768, 1307, 1186, + /* 780 */ 389, 1184, 1650, 384, 383, 382, 381, 380, 377, 376, + /* 790 */ 375, 374, 373, 369, 368, 367, 366, 365, 364, 363, + /* 800 */ 362, 284, 1385, 1189, 1190, 81, 1236, 1237, 1239, 1240, + /* 810 */ 1241, 1242, 1243, 515, 537, 1251, 1252, 1253, 1256, 1384, + /* 820 */ 189, 1383, 438, 188, 507, 1223, 463, 36, 34, 32, + /* 830 */ 31, 30, 1238, 1274, 1382, 1558, 60, 59, 358, 1238, + /* 840 */ 1381, 158, 1680, 1650, 437, 1380, 1379, 352, 1378, 588, + /* 850 */ 191, 1557, 1238, 190, 193, 1424, 1307, 192, 279, 121, + /* 860 */ 1650, 342, 1650, 340, 336, 332, 155, 327, 11, 10, + /* 870 */ 1696, 1419, 512, 284, 1670, 1650, 1194, 449, 520, 1417, + /* 880 */ 209, 1650, 1193, 1650, 1275, 519, 1650, 1650, 46, 1650, + /* 890 */ 349, 212, 37, 451, 1680, 37, 152, 505, 500, 37, + /* 900 */ 474, 454, 1370, 1371, 200, 1274, 1280, 984, 514, 564, + /* 910 */ 1709, 1672, 483, 82, 1681, 522, 1683, 1684, 518, 235, + /* 920 */ 539, 78, 1696, 1749, 985, 219, 1464, 283, 1745, 1333, + /* 930 */ 499, 75, 214, 1282, 228, 1650, 1244, 519, 1697, 1811, + /* 940 */ 1140, 27, 307, 1269, 1270, 1271, 1272, 1273, 1277, 1278, + /* 950 */ 1279, 149, 119, 120, 1408, 1808, 1275, 121, 431, 1546, + /* 960 */ 237, 46, 1709, 1483, 1680, 83, 1681, 522, 1683, 1684, + /* 970 */ 518, 1481, 539, 1779, 227, 1749, 497, 230, 1280, 302, + /* 980 */ 1745, 145, 544, 120, 232, 3, 121, 107, 120, 1197, + /* 990 */ 5, 326, 1696, 528, 243, 1196, 1266, 1207, 1043, 1777, + /* 1000 */ 520, 329, 255, 333, 289, 1650, 1012, 519, 1151, 290, + /* 1010 */ 252, 372, 508, 27, 307, 1269, 1270, 1271, 1272, 1273, + /* 1020 */ 1277, 1278, 1279, 1071, 1075, 1593, 1680, 1082, 1080, 124, + /* 1030 */ 160, 379, 1709, 387, 386, 83, 1681, 522, 1683, 1684, + /* 1040 */ 518, 392, 539, 388, 1213, 1749, 393, 401, 1216, 302, + /* 1050 */ 1745, 1824, 1680, 404, 1696, 167, 571, 405, 169, 1215, + /* 1060 */ 1783, 406, 520, 1217, 571, 407, 172, 1650, 409, 519, + /* 1070 */ 174, 410, 1214, 411, 177, 123, 122, 568, 567, 566, + /* 1080 */ 1696, 63, 414, 123, 122, 568, 567, 566, 520, 433, + /* 1090 */ 180, 435, 1496, 1650, 1709, 519, 184, 83, 1681, 522, + /* 1100 */ 1683, 1684, 518, 253, 539, 86, 1680, 1749, 1492, 186, + /* 1110 */ 298, 302, 1745, 1824, 126, 1632, 127, 1631, 1494, 1490, + /* 1120 */ 1709, 198, 1806, 83, 1681, 522, 1683, 1684, 518, 128, + /* 1130 */ 539, 129, 464, 1749, 1696, 201, 471, 302, 1745, 1824, + /* 1140 */ 465, 204, 520, 207, 476, 1212, 475, 1650, 1767, 519, + /* 1150 */ 468, 484, 526, 1780, 473, 1790, 210, 481, 301, 1789, + /* 1160 */ 487, 6, 500, 493, 213, 480, 139, 1211, 1770, 218, + /* 1170 */ 1307, 220, 114, 40, 1709, 506, 509, 269, 1681, 522, + /* 1180 */ 1683, 1684, 518, 1764, 539, 1680, 303, 1827, 18, 1599, + /* 1190 */ 524, 525, 1050, 562, 561, 560, 1054, 559, 1056, 1057, + /* 1200 */ 558, 1059, 555, 1811, 1065, 552, 1067, 1068, 549, 546, + /* 1210 */ 221, 1680, 1730, 1696, 311, 149, 1598, 529, 530, 1808, + /* 1220 */ 531, 520, 239, 254, 241, 72, 1650, 1807, 519, 226, + /* 1230 */ 74, 1507, 257, 1550, 542, 503, 510, 229, 231, 1696, + /* 1240 */ 1479, 249, 618, 138, 259, 263, 270, 520, 264, 261, + /* 1250 */ 1644, 1643, 1650, 1709, 519, 47, 84, 1681, 522, 1683, + /* 1260 */ 1684, 518, 1680, 539, 58, 1642, 1749, 328, 1639, 330, + /* 1270 */ 1748, 1745, 331, 1178, 1179, 156, 335, 1637, 1680, 1709, + /* 1280 */ 337, 338, 84, 1681, 522, 1683, 1684, 518, 339, 539, + /* 1290 */ 1696, 341, 1749, 1636, 1635, 343, 511, 1745, 517, 1634, + /* 1300 */ 345, 1633, 347, 1650, 1617, 519, 1696, 350, 351, 1153, + /* 1310 */ 1154, 157, 1611, 1610, 520, 356, 357, 1609, 1608, 1650, + /* 1320 */ 1126, 519, 1586, 1585, 1584, 1583, 1582, 1581, 1580, 1579, + /* 1330 */ 1709, 1578, 1577, 277, 1681, 522, 1683, 1684, 518, 516, + /* 1340 */ 539, 513, 1721, 1576, 1575, 1574, 1709, 1573, 1572, 84, + /* 1350 */ 1681, 522, 1683, 1684, 518, 622, 539, 453, 1571, 1749, + /* 1360 */ 1570, 1569, 1568, 1567, 1746, 1566, 1680, 1565, 1564, 251, + /* 1370 */ 118, 1563, 461, 1128, 1562, 1561, 1560, 1559, 1436, 1404, + /* 1380 */ 142, 108, 1680, 109, 950, 397, 195, 611, 607, 603, + /* 1390 */ 599, 250, 165, 399, 1696, 949, 1403, 166, 456, 1625, + /* 1400 */ 1619, 110, 520, 450, 1607, 173, 171, 1650, 194, 519, + /* 1410 */ 1696, 1606, 1596, 1485, 978, 1435, 80, 176, 520, 244, + /* 1420 */ 479, 1433, 417, 1650, 1431, 519, 421, 1429, 416, 415, + /* 1430 */ 425, 419, 420, 51, 1709, 423, 50, 278, 1681, 522, + /* 1440 */ 1683, 1684, 518, 424, 539, 1680, 1427, 428, 427, 1416, + /* 1450 */ 1709, 429, 532, 273, 1681, 522, 1683, 1684, 518, 1415, + /* 1460 */ 539, 1402, 1487, 45, 1086, 1085, 1486, 1011, 1425, 1010, + /* 1470 */ 1009, 1680, 1008, 1696, 183, 586, 588, 1005, 1004, 477, + /* 1480 */ 1003, 520, 205, 1420, 452, 295, 1650, 296, 519, 297, + /* 1490 */ 492, 1418, 455, 1401, 1400, 457, 459, 85, 1624, 1696, + /* 1500 */ 1161, 1159, 1618, 199, 466, 1605, 130, 520, 1604, 1603, + /* 1510 */ 202, 1595, 1650, 1709, 519, 206, 136, 1681, 522, 1683, + /* 1520 */ 1684, 518, 1680, 539, 15, 306, 4, 37, 68, 43, + /* 1530 */ 211, 216, 1332, 1680, 208, 137, 215, 49, 467, 1709, + /* 1540 */ 1325, 48, 278, 1681, 522, 1683, 1684, 518, 217, 539, + /* 1550 */ 1696, 22, 69, 23, 1670, 42, 10, 1304, 517, 223, + /* 1560 */ 1826, 1696, 1303, 1650, 16, 519, 140, 17, 13, 520, + /* 1570 */ 1356, 1355, 304, 29, 1650, 1360, 519, 1361, 1350, 1359, + /* 1580 */ 41, 305, 1680, 19, 141, 1267, 1231, 308, 1246, 1245, + /* 1590 */ 1709, 153, 521, 277, 1681, 522, 1683, 1684, 518, 1680, + /* 1600 */ 539, 1709, 1722, 234, 278, 1681, 522, 1683, 1684, 518, + /* 1610 */ 1696, 539, 12, 1594, 20, 240, 21, 236, 520, 1330, + /* 1620 */ 238, 527, 70, 1650, 71, 519, 242, 1696, 1669, 75, + /* 1630 */ 245, 1712, 1201, 1049, 1248, 520, 310, 538, 44, 543, + /* 1640 */ 1650, 541, 519, 1072, 318, 1069, 545, 547, 548, 550, + /* 1650 */ 1709, 1066, 1680, 278, 1681, 522, 1683, 1684, 518, 1060, + /* 1660 */ 539, 1680, 551, 553, 554, 556, 557, 1709, 563, 1058, + /* 1670 */ 265, 1681, 522, 1683, 1684, 518, 1064, 539, 1063, 1062, + /* 1680 */ 1696, 1061, 76, 1081, 77, 55, 247, 1077, 520, 1696, + /* 1690 */ 976, 572, 993, 1650, 1000, 519, 1018, 520, 575, 248, + /* 1700 */ 998, 997, 1650, 996, 519, 1015, 995, 994, 992, 991, + /* 1710 */ 1013, 988, 1432, 987, 1680, 986, 983, 598, 982, 981, + /* 1720 */ 1709, 596, 597, 272, 1681, 522, 1683, 1684, 518, 1709, + /* 1730 */ 539, 1680, 274, 1681, 522, 1683, 1684, 518, 1430, 539, + /* 1740 */ 600, 601, 1696, 602, 1428, 604, 605, 606, 1426, 608, + /* 1750 */ 520, 610, 609, 1414, 613, 1650, 612, 519, 1413, 1696, + /* 1760 */ 1399, 616, 617, 1374, 1187, 258, 620, 520, 1374, 621, + /* 1770 */ 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, 1374, 1374, + /* 1780 */ 1374, 1374, 1709, 1374, 1374, 266, 1681, 522, 1683, 1684, + /* 1790 */ 518, 1374, 539, 1680, 1374, 1374, 1374, 1374, 1374, 1709, + /* 1800 */ 1374, 1374, 275, 1681, 522, 1683, 1684, 518, 1374, 539, + /* 1810 */ 1374, 1374, 1680, 1374, 1374, 1374, 1374, 1374, 1374, 1374, + /* 1820 */ 1374, 1696, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 520, + /* 1830 */ 1374, 1374, 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, + /* 1840 */ 1696, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 520, 1374, + /* 1850 */ 1374, 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, 1374, + /* 1860 */ 1374, 1709, 1374, 1374, 267, 1681, 522, 1683, 1684, 518, + /* 1870 */ 1680, 539, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1680, + /* 1880 */ 1709, 1374, 1374, 276, 1681, 522, 1683, 1684, 518, 1374, + /* 1890 */ 539, 1374, 1374, 1680, 1374, 1374, 1374, 1374, 1696, 1374, + /* 1900 */ 1374, 1374, 1374, 1374, 1374, 1374, 520, 1696, 1374, 1374, + /* 1910 */ 1374, 1650, 1374, 519, 1374, 520, 1374, 1374, 1374, 1374, + /* 1920 */ 1650, 1696, 519, 1374, 1374, 1374, 1374, 1374, 1374, 520, + /* 1930 */ 1374, 1374, 1374, 1374, 1650, 1374, 519, 1374, 1709, 1374, + /* 1940 */ 1374, 268, 1681, 522, 1683, 1684, 518, 1709, 539, 1374, + /* 1950 */ 1692, 1681, 522, 1683, 1684, 518, 1374, 539, 1374, 1374, + /* 1960 */ 1374, 1709, 1374, 1680, 1691, 1681, 522, 1683, 1684, 518, + /* 1970 */ 1374, 539, 1680, 1374, 1374, 1374, 1374, 1374, 1374, 1374, + /* 1980 */ 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1374, + /* 1990 */ 1374, 1696, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 520, + /* 2000 */ 1696, 1374, 1374, 1374, 1650, 1374, 519, 1374, 520, 1374, + /* 2010 */ 1374, 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, 1374, + /* 2020 */ 1374, 1374, 1374, 1374, 1374, 1680, 1374, 1374, 1374, 1374, + /* 2030 */ 1374, 1709, 1374, 1374, 1690, 1681, 522, 1683, 1684, 518, + /* 2040 */ 1709, 539, 1680, 287, 1681, 522, 1683, 1684, 518, 1374, + /* 2050 */ 539, 1374, 1374, 1696, 1374, 1374, 1374, 1374, 1374, 1374, + /* 2060 */ 1374, 520, 1374, 1374, 1374, 1374, 1650, 1374, 519, 1374, + /* 2070 */ 1696, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 520, 1374, + /* 2080 */ 1374, 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, 1374, + /* 2090 */ 1374, 1680, 1374, 1709, 1374, 1374, 286, 1681, 522, 1683, + /* 2100 */ 1684, 518, 1374, 539, 1374, 1374, 1374, 1680, 1374, 1374, + /* 2110 */ 1709, 1374, 1374, 288, 1681, 522, 1683, 1684, 518, 1696, + /* 2120 */ 539, 1374, 1374, 1374, 1374, 1374, 1374, 520, 1374, 1374, + /* 2130 */ 1374, 1374, 1650, 1374, 519, 1696, 1374, 1374, 1374, 1374, + /* 2140 */ 1374, 1374, 1374, 520, 1374, 1374, 1374, 1374, 1650, 1374, + /* 2150 */ 519, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1709, + /* 2160 */ 1374, 1374, 285, 1681, 522, 1683, 1684, 518, 1374, 539, + /* 2170 */ 1374, 1374, 1374, 1374, 1374, 1709, 1374, 1374, 271, 1681, + /* 2180 */ 522, 1683, 1684, 518, 1374, 539, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 324, 325, 243, 273, 251, 252, 276, 273, 250, 273, - /* 10 */ 276, 272, 12, 13, 298, 12, 13, 14, 15, 16, - /* 20 */ 20, 2, 22, 293, 250, 257, 258, 293, 253, 293, - /* 30 */ 271, 12, 13, 14, 15, 16, 262, 250, 279, 309, - /* 40 */ 310, 266, 284, 309, 310, 309, 310, 47, 289, 274, - /* 50 */ 320, 250, 293, 279, 320, 339, 320, 298, 58, 311, - /* 60 */ 12, 13, 14, 262, 64, 243, 279, 351, 20, 310, - /* 70 */ 22, 355, 313, 314, 315, 316, 317, 318, 20, 320, - /* 80 */ 279, 81, 323, 335, 339, 82, 327, 328, 12, 13, - /* 90 */ 14, 15, 16, 271, 57, 47, 351, 273, 339, 289, - /* 100 */ 355, 279, 292, 103, 317, 295, 58, 311, 12, 13, - /* 110 */ 351, 289, 64, 113, 355, 293, 20, 293, 22, 332, - /* 120 */ 333, 334, 20, 336, 12, 13, 14, 15, 16, 81, - /* 130 */ 255, 335, 310, 309, 310, 313, 314, 315, 316, 317, - /* 140 */ 318, 0, 320, 47, 320, 323, 20, 339, 22, 327, - /* 150 */ 328, 103, 277, 253, 58, 246, 156, 248, 249, 351, - /* 160 */ 64, 113, 21, 355, 20, 24, 25, 26, 27, 28, - /* 170 */ 29, 30, 31, 32, 274, 49, 4, 81, 242, 55, - /* 180 */ 244, 181, 182, 81, 184, 185, 186, 187, 188, 189, - /* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 198, 103, - /* 200 */ 246, 22, 248, 249, 156, 81, 20, 83, 256, 113, - /* 210 */ 21, 211, 260, 24, 25, 26, 27, 28, 29, 30, - /* 220 */ 31, 32, 165, 166, 148, 81, 47, 170, 93, 181, - /* 230 */ 182, 0, 184, 185, 186, 187, 188, 189, 190, 191, - /* 240 */ 192, 193, 194, 195, 196, 197, 198, 112, 20, 114, - /* 250 */ 115, 116, 156, 81, 255, 24, 25, 26, 27, 28, - /* 260 */ 29, 30, 31, 32, 4, 12, 13, 268, 12, 13, - /* 270 */ 14, 15, 16, 20, 311, 22, 277, 181, 182, 20, - /* 280 */ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, - /* 290 */ 194, 195, 196, 197, 198, 81, 60, 61, 335, 271, - /* 300 */ 47, 65, 42, 43, 68, 69, 278, 231, 72, 73, - /* 310 */ 74, 283, 57, 12, 13, 14, 271, 64, 2, 263, - /* 320 */ 243, 20, 247, 22, 279, 250, 35, 271, 12, 13, - /* 330 */ 14, 15, 16, 20, 81, 211, 280, 94, 95, 96, - /* 340 */ 97, 98, 99, 100, 101, 102, 103, 104, 47, 106, - /* 350 */ 107, 108, 109, 110, 111, 211, 103, 4, 143, 19, - /* 360 */ 315, 12, 13, 257, 258, 64, 113, 270, 14, 20, - /* 370 */ 293, 22, 19, 33, 20, 84, 181, 86, 87, 282, - /* 380 */ 89, 281, 81, 211, 93, 45, 33, 247, 288, 289, - /* 390 */ 250, 51, 52, 53, 54, 55, 47, 0, 45, 55, - /* 400 */ 250, 145, 240, 50, 103, 0, 115, 64, 55, 156, - /* 410 */ 339, 243, 262, 64, 113, 220, 221, 222, 223, 224, - /* 420 */ 80, 279, 351, 83, 80, 211, 355, 83, 286, 279, - /* 430 */ 81, 216, 217, 80, 181, 182, 83, 184, 185, 186, - /* 440 */ 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, - /* 450 */ 197, 198, 103, 81, 57, 263, 116, 156, 3, 263, - /* 460 */ 298, 293, 113, 271, 211, 60, 61, 271, 271, 92, - /* 470 */ 65, 75, 280, 68, 69, 278, 280, 72, 73, 74, - /* 480 */ 283, 141, 181, 182, 144, 184, 185, 186, 187, 188, - /* 490 */ 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, - /* 500 */ 243, 339, 162, 20, 164, 156, 288, 289, 12, 13, - /* 510 */ 14, 15, 16, 351, 14, 119, 120, 355, 12, 13, - /* 520 */ 20, 243, 167, 168, 169, 0, 20, 155, 22, 157, - /* 530 */ 181, 182, 250, 184, 185, 186, 187, 188, 189, 190, - /* 540 */ 191, 192, 193, 194, 195, 196, 197, 198, 264, 271, - /* 550 */ 293, 267, 250, 47, 243, 0, 250, 279, 243, 14, - /* 560 */ 18, 279, 20, 47, 262, 20, 272, 289, 262, 27, - /* 570 */ 64, 293, 30, 302, 250, 269, 298, 0, 82, 298, - /* 580 */ 64, 279, 57, 211, 243, 279, 262, 81, 310, 151, - /* 590 */ 48, 313, 314, 315, 316, 317, 318, 272, 320, 317, - /* 600 */ 45, 323, 272, 279, 293, 327, 328, 272, 293, 103, - /* 610 */ 172, 173, 250, 331, 332, 333, 334, 339, 336, 113, - /* 620 */ 339, 42, 43, 271, 262, 244, 1, 2, 145, 351, - /* 630 */ 278, 269, 351, 355, 293, 283, 355, 60, 61, 62, - /* 640 */ 63, 279, 65, 66, 67, 68, 69, 70, 71, 72, - /* 650 */ 73, 74, 75, 76, 77, 78, 14, 15, 16, 243, - /* 660 */ 118, 4, 156, 121, 122, 123, 124, 125, 126, 127, - /* 670 */ 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, - /* 680 */ 138, 226, 243, 289, 243, 185, 20, 181, 182, 295, - /* 690 */ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, - /* 700 */ 194, 195, 196, 197, 198, 139, 18, 82, 243, 293, - /* 710 */ 271, 23, 259, 250, 261, 37, 272, 250, 279, 0, - /* 720 */ 20, 250, 298, 35, 36, 262, 160, 39, 289, 262, - /* 730 */ 185, 250, 293, 262, 293, 250, 12, 13, 14, 15, - /* 740 */ 16, 243, 279, 262, 56, 243, 279, 262, 243, 310, - /* 750 */ 279, 41, 313, 314, 315, 316, 317, 318, 293, 320, - /* 760 */ 279, 243, 323, 339, 279, 199, 327, 328, 329, 81, - /* 770 */ 12, 13, 14, 15, 16, 351, 271, 0, 250, 355, - /* 780 */ 341, 250, 58, 271, 279, 346, 347, 93, 250, 243, - /* 790 */ 262, 293, 280, 262, 289, 293, 85, 243, 293, 88, - /* 800 */ 262, 296, 243, 243, 243, 117, 82, 279, 243, 115, - /* 810 */ 279, 293, 93, 41, 90, 310, 58, 279, 313, 314, - /* 820 */ 315, 316, 317, 318, 58, 320, 209, 210, 250, 272, - /* 830 */ 21, 112, 271, 114, 115, 116, 148, 149, 150, 293, - /* 840 */ 279, 153, 260, 34, 271, 145, 158, 293, 90, 41, - /* 850 */ 289, 185, 293, 293, 293, 243, 283, 279, 293, 171, - /* 860 */ 22, 358, 174, 139, 176, 177, 178, 179, 180, 212, - /* 870 */ 93, 310, 0, 47, 313, 314, 315, 316, 317, 318, - /* 880 */ 319, 320, 321, 322, 160, 47, 243, 0, 210, 112, - /* 890 */ 82, 114, 115, 116, 22, 317, 41, 139, 85, 211, - /* 900 */ 85, 88, 64, 88, 85, 293, 243, 88, 41, 22, - /* 910 */ 332, 333, 334, 0, 336, 1, 2, 44, 160, 196, - /* 920 */ 197, 349, 47, 199, 200, 201, 202, 203, 204, 205, - /* 930 */ 206, 207, 208, 41, 271, 22, 293, 82, 228, 113, - /* 940 */ 81, 103, 279, 41, 41, 306, 41, 181, 41, 82, - /* 950 */ 91, 113, 289, 343, 81, 271, 293, 199, 200, 201, - /* 960 */ 202, 203, 204, 205, 206, 207, 208, 41, 243, 249, - /* 970 */ 41, 282, 41, 310, 82, 41, 313, 314, 315, 316, - /* 980 */ 317, 318, 47, 320, 82, 82, 323, 82, 113, 82, - /* 990 */ 327, 328, 329, 41, 156, 251, 271, 312, 337, 64, - /* 1000 */ 243, 352, 230, 41, 279, 352, 41, 352, 82, 340, - /* 1010 */ 347, 82, 213, 82, 289, 41, 82, 41, 293, 181, - /* 1020 */ 182, 308, 20, 250, 45, 307, 257, 47, 271, 300, - /* 1030 */ 154, 250, 250, 287, 82, 310, 279, 40, 313, 314, - /* 1040 */ 315, 316, 317, 318, 82, 320, 289, 82, 323, 139, - /* 1050 */ 293, 250, 327, 328, 329, 285, 82, 20, 82, 285, - /* 1060 */ 243, 245, 20, 338, 304, 245, 255, 310, 289, 255, - /* 1070 */ 313, 314, 315, 316, 317, 318, 20, 320, 20, 299, - /* 1080 */ 323, 297, 255, 297, 327, 328, 329, 255, 271, 279, - /* 1090 */ 20, 255, 243, 290, 255, 338, 279, 250, 255, 245, - /* 1100 */ 271, 271, 271, 250, 271, 271, 289, 245, 271, 64, - /* 1110 */ 293, 271, 271, 271, 293, 271, 271, 293, 253, 163, - /* 1120 */ 271, 253, 304, 253, 289, 303, 20, 310, 279, 250, - /* 1130 */ 313, 314, 315, 316, 317, 318, 279, 320, 289, 253, - /* 1140 */ 323, 219, 293, 243, 327, 328, 329, 298, 297, 293, - /* 1150 */ 290, 218, 348, 348, 293, 338, 147, 294, 312, 310, - /* 1160 */ 294, 225, 313, 314, 315, 316, 317, 318, 345, 320, - /* 1170 */ 293, 271, 344, 243, 214, 279, 210, 308, 20, 279, - /* 1180 */ 40, 232, 311, 229, 227, 81, 291, 294, 339, 289, - /* 1190 */ 342, 293, 293, 293, 330, 294, 142, 293, 298, 279, - /* 1200 */ 351, 271, 290, 353, 355, 267, 243, 279, 326, 279, - /* 1210 */ 310, 359, 354, 313, 314, 315, 316, 317, 318, 289, - /* 1220 */ 320, 253, 253, 293, 81, 275, 253, 250, 354, 245, - /* 1230 */ 305, 353, 261, 353, 271, 354, 243, 265, 301, 339, - /* 1240 */ 310, 254, 279, 313, 314, 315, 316, 317, 318, 241, - /* 1250 */ 320, 351, 289, 323, 265, 355, 293, 327, 328, 265, - /* 1260 */ 0, 0, 40, 0, 271, 72, 0, 47, 175, 175, - /* 1270 */ 47, 47, 279, 310, 47, 0, 313, 314, 315, 316, - /* 1280 */ 317, 318, 289, 320, 47, 47, 293, 243, 175, 0, - /* 1290 */ 175, 0, 47, 0, 22, 0, 243, 47, 0, 81, - /* 1300 */ 113, 160, 156, 310, 159, 0, 313, 314, 315, 316, - /* 1310 */ 317, 318, 0, 320, 152, 271, 323, 151, 0, 356, - /* 1320 */ 357, 328, 0, 279, 271, 44, 0, 0, 0, 0, - /* 1330 */ 0, 0, 279, 289, 0, 0, 0, 293, 0, 0, - /* 1340 */ 0, 0, 289, 0, 0, 0, 293, 0, 0, 40, - /* 1350 */ 243, 0, 0, 0, 310, 0, 0, 313, 314, 315, - /* 1360 */ 316, 317, 318, 310, 320, 0, 313, 314, 315, 316, - /* 1370 */ 317, 318, 22, 320, 0, 0, 0, 0, 271, 0, - /* 1380 */ 0, 14, 40, 37, 14, 0, 279, 0, 0, 0, - /* 1390 */ 243, 147, 0, 44, 350, 41, 289, 38, 37, 37, - /* 1400 */ 293, 44, 0, 296, 90, 37, 243, 0, 0, 0, - /* 1410 */ 357, 0, 0, 47, 45, 37, 45, 310, 271, 59, - /* 1420 */ 313, 314, 315, 316, 317, 318, 279, 320, 47, 47, - /* 1430 */ 37, 45, 37, 0, 271, 37, 289, 47, 0, 45, - /* 1440 */ 293, 0, 279, 0, 0, 22, 88, 47, 0, 0, - /* 1450 */ 47, 41, 289, 47, 243, 41, 293, 310, 22, 296, - /* 1460 */ 313, 314, 315, 316, 317, 318, 0, 320, 47, 322, - /* 1470 */ 48, 47, 47, 310, 47, 47, 313, 314, 315, 316, - /* 1480 */ 317, 318, 271, 320, 22, 0, 243, 22, 0, 47, - /* 1490 */ 279, 33, 0, 22, 22, 20, 0, 47, 0, 22, - /* 1500 */ 289, 0, 0, 45, 293, 0, 0, 296, 145, 51, - /* 1510 */ 52, 53, 54, 55, 271, 81, 243, 37, 145, 41, - /* 1520 */ 41, 310, 279, 140, 313, 314, 315, 316, 317, 318, - /* 1530 */ 215, 320, 289, 161, 82, 41, 293, 82, 80, 142, - /* 1540 */ 81, 83, 81, 44, 271, 81, 145, 44, 41, 82, - /* 1550 */ 81, 41, 279, 310, 41, 82, 313, 314, 315, 316, - /* 1560 */ 317, 318, 289, 320, 44, 82, 293, 243, 44, 82, - /* 1570 */ 41, 82, 47, 47, 47, 47, 2, 47, 47, 41, - /* 1580 */ 181, 44, 82, 310, 44, 81, 313, 314, 315, 316, - /* 1590 */ 317, 318, 81, 320, 82, 271, 81, 22, 140, 215, - /* 1600 */ 142, 183, 144, 279, 146, 209, 215, 243, 0, 37, - /* 1610 */ 91, 143, 44, 289, 82, 81, 81, 293, 82, 22, - /* 1620 */ 81, 140, 164, 81, 81, 44, 81, 47, 82, 81, - /* 1630 */ 81, 113, 82, 92, 310, 271, 47, 313, 314, 315, - /* 1640 */ 316, 317, 318, 279, 320, 81, 47, 243, 82, 82, - /* 1650 */ 81, 47, 81, 289, 47, 82, 47, 293, 81, 105, - /* 1660 */ 82, 105, 243, 81, 105, 105, 81, 22, 81, 93, - /* 1670 */ 47, 81, 22, 58, 310, 271, 59, 313, 314, 315, - /* 1680 */ 316, 317, 318, 279, 320, 47, 64, 41, 47, 79, - /* 1690 */ 271, 22, 64, 289, 47, 47, 47, 293, 279, 47, - /* 1700 */ 47, 47, 47, 47, 47, 47, 47, 47, 289, 47, - /* 1710 */ 0, 47, 293, 243, 310, 45, 37, 313, 314, 315, - /* 1720 */ 316, 317, 318, 0, 320, 243, 45, 47, 37, 310, - /* 1730 */ 0, 47, 313, 314, 315, 316, 317, 318, 45, 320, - /* 1740 */ 37, 271, 47, 45, 37, 0, 47, 46, 0, 279, - /* 1750 */ 0, 0, 21, 271, 22, 22, 22, 21, 20, 289, - /* 1760 */ 360, 279, 360, 293, 360, 243, 360, 360, 360, 360, - /* 1770 */ 360, 289, 360, 360, 360, 293, 243, 360, 360, 360, - /* 1780 */ 310, 360, 360, 313, 314, 315, 316, 317, 318, 360, - /* 1790 */ 320, 360, 310, 271, 360, 313, 314, 315, 316, 317, - /* 1800 */ 318, 279, 320, 360, 271, 360, 360, 360, 360, 360, - /* 1810 */ 360, 289, 279, 360, 360, 293, 360, 360, 360, 360, - /* 1820 */ 360, 360, 289, 360, 360, 360, 293, 243, 360, 360, - /* 1830 */ 360, 360, 310, 360, 360, 313, 314, 315, 316, 317, - /* 1840 */ 318, 360, 320, 310, 360, 360, 313, 314, 315, 316, - /* 1850 */ 317, 318, 360, 320, 360, 271, 360, 243, 360, 360, - /* 1860 */ 360, 360, 360, 279, 360, 360, 360, 360, 360, 360, - /* 1870 */ 360, 360, 360, 289, 360, 360, 360, 293, 360, 360, - /* 1880 */ 360, 360, 360, 360, 360, 271, 360, 243, 360, 360, - /* 1890 */ 360, 360, 360, 279, 310, 360, 360, 313, 314, 315, - /* 1900 */ 316, 317, 318, 289, 320, 360, 360, 293, 360, 360, - /* 1910 */ 360, 360, 360, 360, 360, 271, 360, 360, 360, 243, - /* 1920 */ 360, 360, 360, 279, 310, 360, 360, 313, 314, 315, - /* 1930 */ 316, 317, 318, 289, 320, 360, 360, 293, 360, 360, - /* 1940 */ 360, 360, 360, 12, 13, 360, 360, 271, 360, 360, - /* 1950 */ 360, 360, 243, 22, 310, 279, 360, 313, 314, 315, - /* 1960 */ 316, 317, 318, 360, 320, 289, 360, 360, 360, 293, - /* 1970 */ 360, 360, 360, 360, 360, 360, 360, 360, 47, 360, - /* 1980 */ 271, 360, 360, 360, 360, 243, 310, 360, 279, 313, - /* 1990 */ 314, 315, 316, 317, 318, 64, 320, 360, 289, 360, - /* 2000 */ 360, 360, 293, 360, 360, 360, 360, 360, 360, 360, - /* 2010 */ 360, 360, 360, 271, 360, 360, 250, 360, 360, 310, - /* 2020 */ 360, 279, 313, 314, 315, 316, 317, 318, 360, 320, - /* 2030 */ 360, 289, 360, 360, 103, 293, 360, 360, 360, 360, - /* 2040 */ 360, 360, 360, 360, 113, 279, 250, 360, 360, 360, - /* 2050 */ 360, 360, 310, 360, 360, 313, 314, 315, 316, 317, - /* 2060 */ 318, 360, 320, 360, 298, 360, 360, 360, 360, 360, - /* 2070 */ 360, 360, 360, 360, 360, 279, 360, 360, 360, 360, - /* 2080 */ 360, 360, 360, 317, 360, 360, 360, 156, 360, 360, - /* 2090 */ 360, 360, 360, 360, 298, 360, 360, 360, 332, 333, - /* 2100 */ 334, 360, 336, 360, 360, 339, 360, 360, 360, 360, - /* 2110 */ 360, 360, 181, 317, 360, 360, 360, 351, 360, 360, - /* 2120 */ 360, 355, 360, 192, 193, 194, 360, 360, 332, 333, - /* 2130 */ 334, 360, 336, 360, 360, 339, 360, 360, 360, 360, - /* 2140 */ 360, 360, 360, 360, 360, 360, 360, 351, 360, 360, - /* 2150 */ 360, 355, 360, 360, 360, 360, 360, 360, 360, 360, - /* 2160 */ 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - /* 2170 */ 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - /* 2180 */ 360, 360, 360, 360, + /* 0 */ 249, 242, 298, 272, 324, 325, 275, 245, 239, 247, + /* 10 */ 248, 4, 12, 13, 283, 272, 271, 249, 275, 4, + /* 20 */ 20, 2, 22, 270, 252, 245, 283, 247, 248, 270, + /* 30 */ 277, 12, 13, 14, 15, 16, 271, 278, 287, 286, + /* 40 */ 309, 310, 283, 339, 285, 273, 278, 47, 20, 42, + /* 50 */ 43, 320, 309, 310, 241, 351, 243, 298, 58, 355, + /* 60 */ 12, 13, 14, 320, 64, 0, 298, 298, 20, 310, + /* 70 */ 22, 55, 313, 314, 315, 316, 317, 318, 2, 320, + /* 80 */ 281, 81, 323, 284, 285, 317, 327, 328, 12, 13, + /* 90 */ 14, 15, 16, 249, 20, 47, 81, 81, 339, 83, + /* 100 */ 332, 333, 334, 103, 336, 285, 58, 339, 339, 81, + /* 110 */ 351, 242, 64, 293, 355, 295, 249, 117, 118, 351, + /* 120 */ 351, 242, 278, 355, 355, 60, 61, 62, 63, 81, + /* 130 */ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, + /* 140 */ 75, 76, 77, 78, 0, 278, 12, 13, 14, 15, + /* 150 */ 16, 103, 283, 12, 13, 14, 15, 16, 158, 255, + /* 160 */ 160, 317, 283, 259, 21, 117, 118, 24, 25, 26, + /* 170 */ 27, 28, 29, 30, 31, 32, 332, 333, 334, 258, + /* 180 */ 336, 260, 182, 183, 317, 185, 186, 187, 188, 189, + /* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 331, 332, + /* 200 */ 333, 334, 20, 336, 60, 61, 158, 270, 160, 65, + /* 210 */ 210, 269, 68, 69, 113, 278, 72, 73, 74, 12, + /* 220 */ 13, 147, 249, 82, 282, 210, 210, 20, 0, 22, + /* 230 */ 182, 183, 0, 185, 186, 187, 188, 189, 190, 191, + /* 240 */ 192, 193, 194, 195, 196, 197, 12, 13, 14, 15, + /* 250 */ 16, 278, 315, 21, 47, 242, 24, 25, 26, 27, + /* 260 */ 28, 29, 30, 31, 32, 58, 20, 12, 13, 168, + /* 270 */ 169, 64, 242, 45, 20, 20, 262, 22, 12, 13, + /* 280 */ 14, 15, 16, 270, 270, 12, 13, 339, 81, 249, + /* 290 */ 317, 278, 249, 279, 0, 22, 283, 112, 285, 351, + /* 300 */ 270, 261, 47, 355, 261, 332, 333, 334, 278, 336, + /* 310 */ 103, 298, 20, 283, 22, 285, 82, 141, 278, 64, + /* 320 */ 47, 278, 182, 310, 117, 118, 313, 314, 315, 316, + /* 330 */ 317, 318, 20, 320, 81, 81, 81, 64, 57, 163, + /* 340 */ 310, 49, 249, 313, 314, 315, 316, 317, 318, 262, + /* 350 */ 320, 57, 339, 0, 261, 170, 171, 270, 103, 219, + /* 360 */ 220, 221, 222, 223, 351, 158, 279, 160, 355, 284, + /* 370 */ 285, 278, 117, 118, 198, 21, 103, 24, 25, 26, + /* 380 */ 27, 28, 29, 30, 31, 32, 356, 357, 34, 182, + /* 390 */ 183, 153, 185, 186, 187, 188, 189, 190, 191, 192, + /* 400 */ 193, 194, 195, 196, 197, 81, 250, 251, 339, 60, + /* 410 */ 61, 173, 174, 158, 65, 160, 150, 68, 69, 298, + /* 420 */ 351, 72, 73, 74, 355, 20, 12, 13, 14, 117, + /* 430 */ 118, 158, 246, 160, 20, 249, 22, 182, 183, 35, + /* 440 */ 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, + /* 450 */ 195, 196, 197, 298, 262, 182, 246, 339, 249, 249, + /* 460 */ 339, 47, 270, 210, 210, 210, 193, 194, 195, 351, + /* 470 */ 261, 279, 351, 355, 12, 13, 355, 242, 64, 14, + /* 480 */ 33, 157, 20, 159, 22, 20, 280, 278, 84, 283, + /* 490 */ 86, 87, 45, 89, 339, 81, 230, 93, 51, 52, + /* 500 */ 53, 54, 55, 1, 2, 270, 351, 270, 4, 47, + /* 510 */ 355, 254, 249, 278, 277, 57, 254, 103, 283, 115, + /* 520 */ 285, 20, 47, 286, 261, 249, 64, 80, 249, 267, + /* 530 */ 83, 117, 118, 276, 210, 0, 22, 261, 276, 64, + /* 540 */ 261, 278, 3, 81, 268, 310, 242, 268, 313, 314, + /* 550 */ 315, 316, 317, 318, 278, 320, 145, 278, 323, 249, + /* 560 */ 22, 47, 327, 328, 329, 103, 12, 13, 14, 15, + /* 570 */ 16, 261, 158, 20, 160, 272, 341, 252, 64, 117, + /* 580 */ 118, 346, 347, 75, 82, 47, 283, 283, 278, 142, + /* 590 */ 265, 144, 57, 146, 311, 148, 182, 183, 273, 185, + /* 600 */ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, + /* 610 */ 196, 197, 309, 310, 167, 256, 257, 103, 335, 64, + /* 620 */ 158, 270, 160, 320, 256, 257, 215, 216, 277, 121, + /* 630 */ 122, 64, 280, 12, 13, 283, 242, 286, 14, 15, + /* 640 */ 16, 20, 93, 22, 182, 183, 249, 185, 186, 187, + /* 650 */ 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, + /* 660 */ 14, 112, 113, 114, 115, 116, 20, 14, 47, 249, + /* 670 */ 249, 242, 158, 20, 160, 278, 249, 283, 18, 92, + /* 680 */ 20, 261, 261, 311, 37, 64, 20, 27, 261, 272, + /* 690 */ 30, 249, 302, 242, 249, 298, 182, 183, 278, 278, + /* 700 */ 283, 147, 81, 261, 18, 278, 261, 335, 48, 23, + /* 710 */ 242, 41, 283, 242, 317, 211, 249, 271, 55, 242, + /* 720 */ 278, 35, 36, 278, 103, 39, 309, 310, 261, 332, + /* 730 */ 333, 334, 249, 336, 283, 242, 339, 320, 117, 118, + /* 740 */ 285, 242, 56, 80, 261, 278, 83, 311, 351, 271, + /* 750 */ 295, 283, 355, 20, 283, 12, 13, 14, 15, 16, + /* 760 */ 283, 278, 278, 263, 225, 270, 266, 81, 42, 43, + /* 770 */ 243, 335, 85, 289, 279, 88, 283, 208, 209, 158, + /* 780 */ 120, 160, 283, 123, 124, 125, 126, 127, 128, 129, + /* 790 */ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, + /* 800 */ 140, 58, 242, 182, 183, 119, 185, 186, 187, 188, + /* 810 */ 189, 190, 191, 192, 193, 194, 195, 196, 197, 242, + /* 820 */ 85, 242, 93, 88, 41, 82, 306, 12, 13, 14, + /* 830 */ 15, 16, 186, 90, 242, 270, 150, 151, 152, 186, + /* 840 */ 242, 155, 242, 283, 115, 242, 242, 161, 242, 41, + /* 850 */ 85, 286, 186, 88, 85, 0, 209, 88, 172, 41, + /* 860 */ 283, 175, 283, 177, 178, 179, 180, 181, 1, 2, + /* 870 */ 270, 0, 58, 58, 44, 283, 47, 22, 278, 0, + /* 880 */ 147, 283, 47, 283, 141, 285, 283, 283, 41, 283, + /* 890 */ 82, 41, 41, 22, 242, 41, 210, 227, 298, 41, + /* 900 */ 82, 22, 117, 118, 271, 90, 163, 47, 271, 271, + /* 910 */ 310, 81, 349, 313, 314, 315, 316, 317, 318, 41, + /* 920 */ 320, 81, 270, 323, 64, 343, 259, 327, 328, 82, + /* 930 */ 278, 91, 82, 82, 358, 283, 82, 285, 270, 339, + /* 940 */ 82, 198, 199, 200, 201, 202, 203, 204, 205, 206, + /* 950 */ 207, 351, 41, 41, 248, 355, 141, 41, 250, 282, + /* 960 */ 82, 41, 310, 0, 242, 313, 314, 315, 316, 317, + /* 970 */ 318, 0, 320, 312, 352, 323, 337, 352, 163, 327, + /* 980 */ 328, 329, 41, 41, 352, 340, 41, 41, 41, 160, + /* 990 */ 212, 308, 270, 82, 82, 160, 182, 20, 82, 347, + /* 1000 */ 278, 249, 82, 45, 307, 283, 47, 285, 156, 256, + /* 1010 */ 300, 249, 229, 198, 199, 200, 201, 202, 203, 204, + /* 1020 */ 205, 206, 207, 82, 82, 249, 242, 82, 82, 82, + /* 1030 */ 40, 290, 310, 141, 288, 313, 314, 315, 316, 317, + /* 1040 */ 318, 249, 320, 288, 20, 323, 244, 244, 20, 327, + /* 1050 */ 328, 329, 242, 304, 270, 254, 93, 285, 254, 20, + /* 1060 */ 338, 297, 278, 20, 93, 299, 254, 283, 297, 285, + /* 1070 */ 254, 278, 20, 291, 254, 112, 113, 114, 115, 116, + /* 1080 */ 270, 254, 249, 112, 113, 114, 115, 116, 278, 244, + /* 1090 */ 254, 270, 270, 283, 310, 285, 270, 313, 314, 315, + /* 1100 */ 316, 317, 318, 304, 320, 249, 242, 323, 270, 270, + /* 1110 */ 244, 327, 328, 329, 270, 283, 270, 283, 270, 270, + /* 1120 */ 310, 252, 338, 313, 314, 315, 316, 317, 318, 270, + /* 1130 */ 320, 270, 166, 323, 270, 252, 249, 327, 328, 329, + /* 1140 */ 303, 252, 278, 252, 291, 20, 278, 283, 338, 285, + /* 1150 */ 285, 218, 217, 312, 297, 348, 294, 283, 283, 348, + /* 1160 */ 283, 224, 298, 149, 294, 213, 342, 20, 345, 344, + /* 1170 */ 209, 308, 278, 40, 310, 226, 228, 313, 314, 315, + /* 1180 */ 316, 317, 318, 311, 320, 242, 231, 359, 81, 294, + /* 1190 */ 283, 283, 94, 95, 96, 97, 98, 99, 100, 101, + /* 1200 */ 102, 103, 104, 339, 106, 107, 108, 109, 110, 111, + /* 1210 */ 330, 242, 326, 270, 283, 351, 294, 144, 292, 355, + /* 1220 */ 291, 278, 278, 266, 252, 252, 283, 354, 285, 353, + /* 1230 */ 81, 278, 249, 283, 274, 354, 354, 353, 353, 270, + /* 1240 */ 260, 252, 244, 305, 253, 264, 264, 278, 264, 240, + /* 1250 */ 0, 0, 283, 310, 285, 301, 313, 314, 315, 316, + /* 1260 */ 317, 318, 242, 320, 40, 0, 323, 72, 0, 47, + /* 1270 */ 327, 328, 176, 47, 47, 47, 176, 0, 242, 310, + /* 1280 */ 47, 47, 313, 314, 315, 316, 317, 318, 176, 320, + /* 1290 */ 270, 176, 323, 0, 0, 47, 327, 328, 278, 0, + /* 1300 */ 22, 0, 47, 283, 0, 285, 270, 163, 162, 158, + /* 1310 */ 160, 81, 0, 0, 278, 154, 153, 0, 0, 283, + /* 1320 */ 44, 285, 0, 0, 0, 0, 0, 0, 0, 0, + /* 1330 */ 310, 0, 0, 313, 314, 315, 316, 317, 318, 319, + /* 1340 */ 320, 321, 322, 0, 0, 0, 310, 0, 0, 313, + /* 1350 */ 314, 315, 316, 317, 318, 19, 320, 4, 0, 323, + /* 1360 */ 0, 0, 0, 0, 328, 0, 242, 0, 0, 33, + /* 1370 */ 40, 0, 19, 22, 0, 0, 0, 0, 0, 0, + /* 1380 */ 41, 45, 242, 37, 14, 44, 33, 51, 52, 53, + /* 1390 */ 54, 55, 40, 44, 270, 14, 0, 38, 45, 0, + /* 1400 */ 0, 37, 278, 50, 0, 149, 37, 283, 55, 285, + /* 1410 */ 270, 0, 0, 0, 59, 0, 80, 37, 278, 83, + /* 1420 */ 296, 0, 37, 283, 0, 285, 37, 0, 45, 47, + /* 1430 */ 37, 47, 45, 80, 310, 47, 83, 313, 314, 315, + /* 1440 */ 316, 317, 318, 45, 320, 242, 0, 45, 47, 0, + /* 1450 */ 310, 37, 116, 313, 314, 315, 316, 317, 318, 0, + /* 1460 */ 320, 0, 0, 90, 47, 22, 0, 47, 0, 47, + /* 1470 */ 47, 242, 47, 270, 88, 41, 41, 47, 47, 143, + /* 1480 */ 47, 278, 146, 0, 48, 22, 283, 22, 285, 22, + /* 1490 */ 350, 0, 47, 0, 0, 22, 22, 20, 0, 270, + /* 1500 */ 47, 165, 0, 167, 22, 0, 164, 278, 0, 0, + /* 1510 */ 144, 0, 283, 310, 285, 37, 313, 314, 315, 316, + /* 1520 */ 317, 318, 242, 320, 214, 296, 41, 41, 81, 41, + /* 1530 */ 82, 41, 82, 242, 142, 81, 81, 147, 147, 310, + /* 1540 */ 82, 147, 313, 314, 315, 316, 317, 318, 44, 320, + /* 1550 */ 270, 81, 81, 41, 44, 41, 2, 82, 278, 44, + /* 1560 */ 357, 270, 82, 283, 214, 285, 44, 41, 214, 278, + /* 1570 */ 47, 47, 47, 81, 283, 47, 285, 82, 82, 47, + /* 1580 */ 208, 47, 242, 41, 44, 182, 22, 296, 82, 82, + /* 1590 */ 310, 44, 184, 313, 314, 315, 316, 317, 318, 242, + /* 1600 */ 320, 310, 322, 82, 313, 314, 315, 316, 317, 318, + /* 1610 */ 270, 320, 81, 0, 81, 37, 81, 81, 278, 82, + /* 1620 */ 81, 145, 81, 283, 81, 285, 142, 270, 44, 91, + /* 1630 */ 44, 81, 22, 22, 82, 278, 296, 81, 81, 47, + /* 1640 */ 283, 92, 285, 82, 47, 82, 81, 47, 81, 47, + /* 1650 */ 310, 82, 242, 313, 314, 315, 316, 317, 318, 82, + /* 1660 */ 320, 242, 81, 47, 81, 47, 81, 310, 93, 82, + /* 1670 */ 313, 314, 315, 316, 317, 318, 105, 320, 105, 105, + /* 1680 */ 270, 105, 81, 47, 81, 81, 41, 22, 278, 270, + /* 1690 */ 59, 58, 22, 283, 47, 285, 64, 278, 79, 41, + /* 1700 */ 47, 47, 283, 47, 285, 64, 47, 47, 47, 47, + /* 1710 */ 47, 47, 0, 47, 242, 47, 47, 37, 47, 47, + /* 1720 */ 310, 47, 45, 313, 314, 315, 316, 317, 318, 310, + /* 1730 */ 320, 242, 313, 314, 315, 316, 317, 318, 0, 320, + /* 1740 */ 47, 45, 270, 37, 0, 47, 45, 37, 0, 47, + /* 1750 */ 278, 37, 45, 0, 46, 283, 47, 285, 0, 270, + /* 1760 */ 0, 22, 21, 360, 22, 22, 21, 278, 360, 20, + /* 1770 */ 360, 360, 283, 360, 285, 360, 360, 360, 360, 360, + /* 1780 */ 360, 360, 310, 360, 360, 313, 314, 315, 316, 317, + /* 1790 */ 318, 360, 320, 242, 360, 360, 360, 360, 360, 310, + /* 1800 */ 360, 360, 313, 314, 315, 316, 317, 318, 360, 320, + /* 1810 */ 360, 360, 242, 360, 360, 360, 360, 360, 360, 360, + /* 1820 */ 360, 270, 360, 360, 360, 360, 360, 360, 360, 278, + /* 1830 */ 360, 360, 360, 360, 283, 360, 285, 360, 360, 360, + /* 1840 */ 270, 360, 360, 360, 360, 360, 360, 360, 278, 360, + /* 1850 */ 360, 360, 360, 283, 360, 285, 360, 360, 360, 360, + /* 1860 */ 360, 310, 360, 360, 313, 314, 315, 316, 317, 318, + /* 1870 */ 242, 320, 360, 360, 360, 360, 360, 360, 360, 242, + /* 1880 */ 310, 360, 360, 313, 314, 315, 316, 317, 318, 360, + /* 1890 */ 320, 360, 360, 242, 360, 360, 360, 360, 270, 360, + /* 1900 */ 360, 360, 360, 360, 360, 360, 278, 270, 360, 360, + /* 1910 */ 360, 283, 360, 285, 360, 278, 360, 360, 360, 360, + /* 1920 */ 283, 270, 285, 360, 360, 360, 360, 360, 360, 278, + /* 1930 */ 360, 360, 360, 360, 283, 360, 285, 360, 310, 360, + /* 1940 */ 360, 313, 314, 315, 316, 317, 318, 310, 320, 360, + /* 1950 */ 313, 314, 315, 316, 317, 318, 360, 320, 360, 360, + /* 1960 */ 360, 310, 360, 242, 313, 314, 315, 316, 317, 318, + /* 1970 */ 360, 320, 242, 360, 360, 360, 360, 360, 360, 360, + /* 1980 */ 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, + /* 1990 */ 360, 270, 360, 360, 360, 360, 360, 360, 360, 278, + /* 2000 */ 270, 360, 360, 360, 283, 360, 285, 360, 278, 360, + /* 2010 */ 360, 360, 360, 283, 360, 285, 360, 360, 360, 360, + /* 2020 */ 360, 360, 360, 360, 360, 242, 360, 360, 360, 360, + /* 2030 */ 360, 310, 360, 360, 313, 314, 315, 316, 317, 318, + /* 2040 */ 310, 320, 242, 313, 314, 315, 316, 317, 318, 360, + /* 2050 */ 320, 360, 360, 270, 360, 360, 360, 360, 360, 360, + /* 2060 */ 360, 278, 360, 360, 360, 360, 283, 360, 285, 360, + /* 2070 */ 270, 360, 360, 360, 360, 360, 360, 360, 278, 360, + /* 2080 */ 360, 360, 360, 283, 360, 285, 360, 360, 360, 360, + /* 2090 */ 360, 242, 360, 310, 360, 360, 313, 314, 315, 316, + /* 2100 */ 317, 318, 360, 320, 360, 360, 360, 242, 360, 360, + /* 2110 */ 310, 360, 360, 313, 314, 315, 316, 317, 318, 270, + /* 2120 */ 320, 360, 360, 360, 360, 360, 360, 278, 360, 360, + /* 2130 */ 360, 360, 283, 360, 285, 270, 360, 360, 360, 360, + /* 2140 */ 360, 360, 360, 278, 360, 360, 360, 360, 283, 360, + /* 2150 */ 285, 360, 360, 360, 360, 360, 360, 360, 360, 310, + /* 2160 */ 360, 360, 313, 314, 315, 316, 317, 318, 360, 320, + /* 2170 */ 360, 360, 360, 360, 360, 310, 360, 360, 313, 314, + /* 2180 */ 315, 316, 317, 318, 360, 320, }; -#define YY_SHIFT_COUNT (618) +#define YY_SHIFT_COUNT (622) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1931) +#define YY_SHIFT_MAX (1760) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 688, 0, 0, 48, 96, 96, 96, 96, 253, 253, - /* 10 */ 96, 96, 301, 349, 506, 349, 349, 349, 349, 349, - /* 20 */ 349, 349, 349, 349, 349, 349, 349, 349, 349, 349, - /* 30 */ 349, 349, 349, 349, 349, 349, 349, 349, 144, 144, - /* 40 */ 102, 102, 102, 1931, 1931, 1931, 1931, 372, 124, 214, - /* 50 */ 58, 58, 260, 260, 172, 214, 214, 58, 58, 58, - /* 60 */ 58, 58, 58, 58, 37, 58, 58, 186, 228, 259, - /* 70 */ 186, 58, 58, 186, 58, 186, 186, 259, 186, 58, - /* 80 */ 255, 542, 724, 758, 758, 189, 236, 838, 838, 838, - /* 90 */ 838, 838, 838, 838, 838, 838, 838, 838, 838, 838, - /* 100 */ 838, 838, 838, 838, 838, 838, 291, 126, 354, 354, - /* 110 */ 397, 516, 483, 483, 483, 525, 516, 313, 259, 186, - /* 120 */ 186, 259, 377, 343, 243, 243, 243, 243, 243, 243, - /* 130 */ 243, 340, 141, 405, 76, 195, 57, 215, 500, 545, - /* 140 */ 579, 179, 694, 700, 617, 678, 617, 455, 455, 455, - /* 150 */ 657, 666, 799, 1002, 979, 980, 876, 1002, 1002, 997, - /* 160 */ 910, 910, 1002, 1037, 1037, 1042, 37, 259, 37, 1056, - /* 170 */ 1058, 37, 1056, 37, 313, 1070, 37, 37, 1002, 37, - /* 180 */ 1037, 186, 186, 186, 186, 186, 186, 186, 186, 186, - /* 190 */ 186, 186, 1002, 1037, 1045, 1045, 1042, 255, 956, 259, - /* 200 */ 255, 1002, 1056, 255, 313, 1070, 255, 1106, 922, 933, - /* 210 */ 1045, 922, 933, 1045, 1045, 186, 936, 1009, 960, 799, - /* 220 */ 966, 313, 1158, 1140, 954, 957, 949, 954, 957, 954, - /* 230 */ 957, 1104, 933, 1045, 1045, 933, 1045, 1054, 313, 1070, - /* 240 */ 255, 377, 255, 313, 1143, 343, 1002, 255, 1037, 2152, - /* 250 */ 2152, 2152, 2152, 2152, 2152, 2152, 577, 1458, 231, 353, - /* 260 */ 3, 19, 316, 256, 496, 719, 777, 112, 112, 112, - /* 270 */ 112, 112, 112, 112, 112, 135, 438, 344, 396, 355, - /* 280 */ 625, 566, 642, 642, 642, 642, 555, 808, 711, 813, - /* 290 */ 815, 819, 872, 887, 913, 809, 855, 867, 892, 914, - /* 300 */ 723, 710, 772, 902, 766, 903, 873, 905, 907, 926, - /* 310 */ 929, 931, 826, 875, 934, 952, 962, 965, 974, 976, - /* 320 */ 859, 935, 1260, 1261, 1222, 1263, 1193, 1266, 1220, 1093, - /* 330 */ 1223, 1224, 1227, 1094, 1275, 1237, 1238, 1113, 1289, 1115, - /* 340 */ 1291, 1245, 1293, 1272, 1295, 1250, 1298, 1218, 1141, 1145, - /* 350 */ 1187, 1146, 1305, 1312, 1162, 1166, 1318, 1322, 1281, 1326, - /* 360 */ 1327, 1328, 1329, 1330, 1331, 1334, 1335, 1336, 1338, 1339, - /* 370 */ 1340, 1341, 1343, 1344, 1345, 1347, 1348, 1309, 1351, 1352, - /* 380 */ 1353, 1355, 1356, 1365, 1350, 1374, 1375, 1376, 1377, 1379, - /* 390 */ 1380, 1342, 1346, 1354, 1367, 1349, 1370, 1357, 1385, 1359, - /* 400 */ 1361, 1387, 1388, 1389, 1362, 1244, 1392, 1402, 1368, 1407, - /* 410 */ 1360, 1408, 1409, 1366, 1369, 1378, 1411, 1381, 1371, 1393, - /* 420 */ 1412, 1382, 1386, 1395, 1433, 1390, 1394, 1398, 1438, 1441, - /* 430 */ 1443, 1444, 1314, 1358, 1400, 1423, 1448, 1403, 1406, 1421, - /* 440 */ 1424, 1410, 1414, 1425, 1427, 1428, 1449, 1436, 1466, 1462, - /* 450 */ 1422, 1485, 1465, 1442, 1488, 1471, 1492, 1472, 1475, 1496, - /* 460 */ 1363, 1450, 1498, 1372, 1477, 1373, 1397, 1501, 1502, 1505, - /* 470 */ 1401, 1506, 1434, 1480, 1383, 1478, 1479, 1315, 1452, 1494, - /* 480 */ 1455, 1459, 1461, 1464, 1467, 1507, 1499, 1503, 1469, 1510, - /* 490 */ 1384, 1473, 1483, 1520, 1396, 1513, 1524, 1487, 1529, 1391, - /* 500 */ 1489, 1525, 1526, 1527, 1528, 1530, 1531, 1489, 1574, 1399, - /* 510 */ 1538, 1500, 1504, 1512, 1537, 1511, 1515, 1540, 1575, 1418, - /* 520 */ 1534, 1532, 1536, 1535, 1539, 1468, 1542, 1608, 1572, 1481, - /* 530 */ 1543, 1519, 1568, 1581, 1545, 1546, 1548, 1597, 1549, 1541, - /* 540 */ 1550, 1580, 1589, 1564, 1566, 1599, 1569, 1567, 1604, 1571, - /* 550 */ 1573, 1607, 1577, 1578, 1609, 1582, 1554, 1556, 1559, 1560, - /* 560 */ 1645, 1576, 1585, 1587, 1623, 1590, 1518, 1650, 1617, 1615, - /* 570 */ 1638, 1622, 1610, 1646, 1641, 1647, 1648, 1649, 1652, 1669, - /* 580 */ 1653, 1654, 1628, 1410, 1655, 1414, 1656, 1657, 1658, 1659, - /* 590 */ 1660, 1662, 1710, 1664, 1670, 1679, 1723, 1680, 1681, 1691, - /* 600 */ 1730, 1684, 1693, 1703, 1750, 1695, 1698, 1707, 1745, 1699, - /* 610 */ 1701, 1748, 1751, 1732, 1731, 1733, 1734, 1736, 1738, + /* 0 */ 686, 0, 0, 48, 207, 207, 207, 207, 255, 255, + /* 10 */ 207, 207, 414, 462, 621, 462, 462, 462, 462, 462, + /* 20 */ 462, 462, 462, 462, 462, 462, 462, 462, 462, 462, + /* 30 */ 462, 462, 462, 462, 462, 462, 462, 462, 254, 254, + /* 40 */ 28, 28, 28, 273, 273, 273, 273, 324, 16, 253, + /* 50 */ 182, 182, 7, 7, 15, 312, 253, 253, 182, 182, + /* 60 */ 182, 182, 182, 182, 182, 281, 182, 182, 246, 405, + /* 70 */ 501, 246, 182, 182, 246, 182, 246, 246, 246, 182, + /* 80 */ 458, 660, 743, 815, 815, 143, 349, 514, 514, 514, + /* 90 */ 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, + /* 100 */ 514, 514, 514, 514, 514, 514, 404, 312, 292, 465, + /* 110 */ 465, 294, 475, 74, 74, 74, 535, 475, 553, 501, + /* 120 */ 246, 246, 555, 555, 587, 567, 1098, 1098, 1098, 1098, + /* 130 */ 1098, 1098, 1098, 1336, 232, 144, 266, 140, 101, 411, + /* 140 */ 646, 653, 726, 538, 729, 733, 569, 647, 569, 539, + /* 150 */ 539, 539, 504, 666, 778, 977, 958, 959, 852, 977, + /* 160 */ 977, 990, 892, 892, 977, 1024, 1024, 1028, 281, 501, + /* 170 */ 281, 1039, 1043, 281, 1039, 281, 553, 1052, 281, 281, + /* 180 */ 977, 281, 1024, 246, 246, 246, 246, 246, 246, 246, + /* 190 */ 246, 246, 246, 246, 977, 1024, 555, 555, 1028, 458, + /* 200 */ 966, 501, 458, 977, 1039, 458, 553, 1052, 458, 1125, + /* 210 */ 933, 935, 555, 933, 935, 555, 555, 246, 937, 1014, + /* 220 */ 952, 778, 961, 553, 1147, 1133, 948, 949, 955, 948, + /* 230 */ 949, 948, 949, 1107, 935, 555, 555, 935, 555, 1073, + /* 240 */ 553, 1052, 458, 587, 458, 553, 1149, 555, 567, 977, + /* 250 */ 458, 1024, 2186, 2186, 2186, 2186, 2186, 2186, 2186, 65, + /* 260 */ 447, 353, 1353, 963, 971, 141, 19, 76, 554, 234, + /* 270 */ 549, 134, 134, 134, 134, 134, 134, 134, 134, 238, + /* 280 */ 663, 508, 185, 502, 176, 624, 624, 624, 624, 228, + /* 290 */ 808, 687, 735, 765, 769, 855, 871, 879, 354, 818, + /* 300 */ 847, 850, 867, 785, 670, 783, 851, 814, 854, 830, + /* 310 */ 858, 878, 911, 912, 916, 829, 835, 920, 941, 942, + /* 320 */ 945, 946, 947, 840, 860, 1250, 1251, 1224, 1265, 1195, + /* 330 */ 1268, 1222, 1096, 1226, 1227, 1228, 1100, 1277, 1233, 1234, + /* 340 */ 1112, 1293, 1115, 1294, 1248, 1299, 1278, 1301, 1255, 1304, + /* 350 */ 1230, 1144, 1146, 1150, 1151, 1312, 1313, 1161, 1163, 1317, + /* 360 */ 1318, 1276, 1322, 1323, 1324, 1325, 1326, 1327, 1328, 1329, + /* 370 */ 1331, 1332, 1343, 1344, 1345, 1347, 1348, 1358, 1360, 1361, + /* 380 */ 1330, 1362, 1363, 1365, 1367, 1368, 1371, 1351, 1374, 1375, + /* 390 */ 1376, 1377, 1378, 1379, 1352, 1346, 1339, 1370, 1341, 1381, + /* 400 */ 1349, 1396, 1359, 1364, 1399, 1400, 1404, 1369, 1256, 1411, + /* 410 */ 1412, 1380, 1413, 1355, 1415, 1421, 1382, 1383, 1385, 1424, + /* 420 */ 1384, 1387, 1389, 1427, 1388, 1398, 1393, 1446, 1401, 1402, + /* 430 */ 1414, 1449, 1459, 1461, 1462, 1373, 1386, 1417, 1443, 1466, + /* 440 */ 1420, 1422, 1423, 1425, 1434, 1435, 1430, 1431, 1433, 1468, + /* 450 */ 1463, 1483, 1465, 1436, 1491, 1467, 1445, 1493, 1473, 1494, + /* 460 */ 1474, 1477, 1498, 1390, 1453, 1502, 1342, 1482, 1391, 1366, + /* 470 */ 1505, 1508, 1509, 1394, 1511, 1447, 1478, 1392, 1485, 1486, + /* 480 */ 1310, 1448, 1488, 1450, 1454, 1455, 1470, 1458, 1490, 1504, + /* 490 */ 1510, 1471, 1512, 1350, 1475, 1480, 1515, 1372, 1514, 1522, + /* 500 */ 1495, 1526, 1354, 1496, 1523, 1524, 1525, 1528, 1532, 1534, + /* 510 */ 1496, 1554, 1403, 1542, 1506, 1492, 1507, 1540, 1531, 1533, + /* 520 */ 1547, 1564, 1408, 1535, 1521, 1537, 1536, 1539, 1476, 1541, + /* 530 */ 1613, 1578, 1484, 1543, 1538, 1584, 1586, 1550, 1552, 1556, + /* 540 */ 1610, 1557, 1549, 1561, 1592, 1597, 1565, 1563, 1600, 1567, + /* 550 */ 1569, 1602, 1581, 1577, 1616, 1583, 1587, 1618, 1585, 1571, + /* 560 */ 1573, 1574, 1576, 1611, 1575, 1601, 1603, 1636, 1604, 1645, + /* 570 */ 1645, 1665, 1631, 1633, 1647, 1632, 1619, 1658, 1653, 1654, + /* 580 */ 1656, 1659, 1660, 1670, 1661, 1662, 1641, 1434, 1663, 1435, + /* 590 */ 1664, 1666, 1668, 1669, 1671, 1672, 1712, 1674, 1677, 1680, + /* 600 */ 1738, 1693, 1696, 1706, 1744, 1698, 1701, 1710, 1748, 1702, + /* 610 */ 1707, 1714, 1753, 1709, 1708, 1758, 1760, 1739, 1741, 1742, + /* 620 */ 1743, 1745, 1749, }; -#define YY_REDUCE_COUNT (255) -#define YY_REDUCE_MIN (-324) -#define YY_REDUCE_MAX (1796) +#define YY_REDUCE_COUNT (258) +#define YY_REDUCE_MIN (-320) +#define YY_REDUCE_MAX (1865) static const short yy_reduce_ofst[] = { - /* 0 */ 162, -241, 278, 439, 663, 725, 757, 817, 849, 900, - /* 10 */ -178, 930, 561, 963, 993, 505, 1044, 1053, 1107, 1147, - /* 20 */ 1163, 1211, 1243, 1273, 1324, 1364, 1404, 1419, 1470, 1482, - /* 30 */ 1522, 1533, 1584, 1614, 1644, 1676, 1709, 1742, 1766, 1796, - /* 40 */ 282, -213, 578, -270, -266, -264, -176, -284, 281, 424, - /* 50 */ 306, 362, -91, -46, -255, -192, 71, -226, -199, 150, - /* 60 */ 302, 324, 463, 467, -1, 471, 485, 28, 45, -190, - /* 70 */ 56, 528, 531, 197, 481, 192, 352, 100, 196, 538, - /* 80 */ -225, -242, -324, -324, -324, -64, -48, 77, 168, 257, - /* 90 */ 311, 315, 341, 416, 441, 465, 498, 502, 518, 546, - /* 100 */ 554, 559, 560, 565, 612, 643, 97, -247, 75, 140, - /* 110 */ -125, -232, -252, -204, -37, -100, 106, 142, 394, 512, - /* 120 */ 573, 218, 284, 453, -261, 294, 325, 330, 335, 444, - /* 130 */ 557, 271, 381, 582, 503, 572, 639, 610, 684, 684, - /* 140 */ 720, 744, 689, 685, 661, 661, 661, 649, 653, 655, - /* 150 */ 669, 684, 713, 773, 718, 769, 729, 781, 782, 746, - /* 160 */ 770, 774, 801, 816, 820, 760, 811, 779, 814, 784, - /* 170 */ 780, 827, 786, 832, 810, 803, 836, 839, 847, 843, - /* 180 */ 854, 829, 830, 831, 833, 834, 837, 840, 841, 842, - /* 190 */ 844, 845, 853, 862, 821, 824, 818, 865, 822, 835, - /* 200 */ 868, 879, 851, 870, 857, 860, 886, 846, 804, 863, - /* 210 */ 856, 805, 866, 861, 877, 684, 823, 828, 848, 869, - /* 220 */ 661, 896, 871, 864, 858, 850, 852, 874, 878, 881, - /* 230 */ 880, 882, 893, 898, 899, 901, 904, 895, 920, 912, - /* 240 */ 968, 938, 969, 928, 950, 971, 977, 973, 984, 937, - /* 250 */ 925, 972, 989, 994, 987, 1008, + /* 0 */ -231, -241, 600, 235, 652, 722, 784, 810, 13, 864, + /* 10 */ 943, 969, 1020, 30, 1036, 1124, 1140, 1203, 1229, 1280, + /* 20 */ 1291, 1340, 1357, 1410, 1419, 1472, 1489, 1551, 1570, 1628, + /* 30 */ 1637, 1651, 1721, 1730, 1783, 1800, 1849, 1865, -232, 397, + /* 40 */ -133, -156, -27, -269, -257, 303, 417, -296, 121, 155, + /* 50 */ 276, 279, -238, -220, -52, -201, 69, 118, 43, 93, + /* 60 */ 209, 263, 310, 420, 421, 262, 427, 442, -247, -63, + /* 70 */ -180, 14, 40, 445, 237, 467, 87, 351, 192, 483, + /* 80 */ 325, -249, -320, -320, -320, -187, -96, -131, -121, 304, + /* 90 */ 394, 429, 451, 468, 471, 477, 493, 499, 560, 577, + /* 100 */ 579, 592, 598, 603, 604, 606, -58, 85, 156, 186, + /* 110 */ 210, 257, 359, 283, 372, 436, -228, 368, 484, 455, + /* 120 */ 495, 565, 206, 352, 500, -79, -255, -235, 446, 478, + /* 130 */ 633, 637, 638, 390, 527, 667, 576, 563, 520, 582, + /* 140 */ 668, 668, 706, 708, 677, 661, 639, 639, 639, 622, + /* 150 */ 625, 632, 645, 668, 683, 752, 697, 753, 710, 762, + /* 160 */ 776, 741, 746, 755, 792, 802, 803, 749, 801, 772, + /* 170 */ 804, 764, 766, 812, 771, 816, 793, 782, 820, 827, + /* 180 */ 833, 836, 845, 821, 822, 826, 838, 839, 844, 846, + /* 190 */ 848, 849, 859, 861, 856, 866, 832, 834, 799, 869, + /* 200 */ 837, 865, 883, 887, 857, 889, 868, 853, 891, 841, + /* 210 */ 807, 862, 874, 811, 870, 875, 877, 668, 823, 825, + /* 220 */ 824, 863, 639, 894, 872, 880, 873, 876, 828, 881, + /* 230 */ 884, 882, 885, 886, 895, 907, 908, 922, 931, 926, + /* 240 */ 944, 929, 972, 957, 973, 953, 960, 950, 980, 983, + /* 250 */ 989, 998, 954, 938, 981, 982, 984, 991, 1009, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 10 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 20 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 30 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 40 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 50 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 60 */ 1360, 1360, 1360, 1360, 1429, 1360, 1360, 1360, 1360, 1360, - /* 70 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 80 */ 1427, 1567, 1360, 1734, 1360, 1360, 1360, 1360, 1360, 1360, - /* 90 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 100 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 110 */ 1429, 1360, 1745, 1745, 1745, 1427, 1360, 1360, 1360, 1360, - /* 120 */ 1360, 1360, 1523, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 130 */ 1360, 1603, 1360, 1360, 1811, 1360, 1609, 1769, 1360, 1360, - /* 140 */ 1360, 1360, 1476, 1761, 1737, 1751, 1738, 1796, 1796, 1796, - /* 150 */ 1754, 1360, 1765, 1360, 1360, 1360, 1595, 1360, 1360, 1572, - /* 160 */ 1569, 1569, 1360, 1360, 1360, 1360, 1429, 1360, 1429, 1360, - /* 170 */ 1360, 1429, 1360, 1429, 1360, 1360, 1429, 1429, 1360, 1429, - /* 180 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 190 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1427, 1605, 1360, - /* 200 */ 1427, 1360, 1360, 1427, 1360, 1360, 1427, 1360, 1776, 1774, - /* 210 */ 1360, 1776, 1774, 1360, 1360, 1360, 1788, 1784, 1767, 1765, - /* 220 */ 1751, 1360, 1360, 1360, 1802, 1798, 1814, 1802, 1798, 1802, - /* 230 */ 1798, 1360, 1774, 1360, 1360, 1774, 1360, 1580, 1360, 1360, - /* 240 */ 1427, 1360, 1427, 1360, 1492, 1360, 1360, 1427, 1360, 1597, - /* 250 */ 1611, 1526, 1526, 1526, 1430, 1365, 1360, 1360, 1360, 1360, - /* 260 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1678, 1787, 1786, - /* 270 */ 1710, 1709, 1708, 1706, 1677, 1488, 1360, 1360, 1360, 1360, - /* 280 */ 1360, 1360, 1671, 1672, 1670, 1669, 1360, 1360, 1360, 1360, - /* 290 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1735, - /* 300 */ 1360, 1799, 1803, 1360, 1360, 1360, 1654, 1360, 1360, 1360, - /* 310 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 320 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 330 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 340 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 350 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 360 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 370 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 380 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 390 */ 1360, 1360, 1360, 1394, 1360, 1360, 1360, 1360, 1360, 1360, - /* 400 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 410 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 420 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 430 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 440 */ 1360, 1457, 1456, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 450 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 460 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 470 */ 1360, 1360, 1360, 1360, 1360, 1758, 1768, 1360, 1360, 1360, - /* 480 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1654, 1360, 1785, - /* 490 */ 1360, 1744, 1740, 1360, 1360, 1736, 1360, 1360, 1797, 1360, - /* 500 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1730, 1360, - /* 510 */ 1703, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1665, - /* 520 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 530 */ 1360, 1360, 1653, 1360, 1694, 1360, 1360, 1360, 1360, 1360, - /* 540 */ 1360, 1360, 1360, 1520, 1360, 1360, 1360, 1360, 1360, 1360, - /* 550 */ 1360, 1360, 1360, 1360, 1360, 1360, 1505, 1503, 1502, 1501, - /* 560 */ 1360, 1498, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 570 */ 1360, 1360, 1360, 1449, 1360, 1360, 1360, 1360, 1360, 1360, - /* 580 */ 1360, 1360, 1360, 1440, 1360, 1439, 1360, 1360, 1360, 1360, - /* 590 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 600 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, - /* 610 */ 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, 1360, + /* 0 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 10 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 20 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 30 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 40 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 50 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 60 */ 1372, 1372, 1372, 1372, 1372, 1441, 1372, 1372, 1372, 1372, + /* 70 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 80 */ 1439, 1587, 1372, 1751, 1372, 1372, 1372, 1372, 1372, 1372, + /* 90 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 100 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 110 */ 1372, 1441, 1372, 1762, 1762, 1762, 1439, 1372, 1372, 1372, + /* 120 */ 1372, 1372, 1372, 1372, 1535, 1372, 1372, 1372, 1372, 1372, + /* 130 */ 1372, 1372, 1372, 1620, 1372, 1372, 1828, 1372, 1626, 1786, + /* 140 */ 1372, 1372, 1372, 1372, 1488, 1778, 1754, 1768, 1755, 1813, + /* 150 */ 1813, 1813, 1771, 1372, 1782, 1372, 1372, 1372, 1612, 1372, + /* 160 */ 1372, 1592, 1589, 1589, 1372, 1372, 1372, 1372, 1441, 1372, + /* 170 */ 1441, 1372, 1372, 1441, 1372, 1441, 1372, 1372, 1441, 1441, + /* 180 */ 1372, 1441, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 190 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1439, + /* 200 */ 1622, 1372, 1439, 1372, 1372, 1439, 1372, 1372, 1439, 1372, + /* 210 */ 1793, 1791, 1372, 1793, 1791, 1372, 1372, 1372, 1805, 1801, + /* 220 */ 1784, 1782, 1768, 1372, 1372, 1372, 1819, 1815, 1831, 1819, + /* 230 */ 1815, 1819, 1815, 1372, 1791, 1372, 1372, 1791, 1372, 1597, + /* 240 */ 1372, 1372, 1439, 1372, 1439, 1372, 1504, 1372, 1372, 1372, + /* 250 */ 1439, 1372, 1614, 1628, 1538, 1538, 1538, 1442, 1377, 1372, + /* 260 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 270 */ 1500, 1695, 1804, 1803, 1727, 1726, 1725, 1723, 1694, 1372, + /* 280 */ 1372, 1372, 1372, 1372, 1372, 1688, 1689, 1687, 1686, 1372, + /* 290 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 300 */ 1372, 1372, 1752, 1372, 1816, 1820, 1372, 1372, 1372, 1671, + /* 310 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 320 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 330 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 340 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 350 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 360 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 370 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 380 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 390 */ 1372, 1372, 1372, 1372, 1372, 1372, 1406, 1372, 1372, 1372, + /* 400 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 410 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 420 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 430 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 440 */ 1372, 1372, 1372, 1372, 1469, 1468, 1372, 1372, 1372, 1372, + /* 450 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 460 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 470 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1775, 1785, + /* 480 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 490 */ 1671, 1372, 1802, 1372, 1761, 1757, 1372, 1372, 1753, 1372, + /* 500 */ 1372, 1814, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 510 */ 1372, 1747, 1372, 1720, 1372, 1372, 1372, 1372, 1372, 1372, + /* 520 */ 1372, 1372, 1682, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 530 */ 1372, 1372, 1372, 1372, 1372, 1670, 1372, 1711, 1372, 1372, + /* 540 */ 1372, 1372, 1372, 1372, 1372, 1372, 1532, 1372, 1372, 1372, + /* 550 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1517, + /* 560 */ 1515, 1514, 1513, 1372, 1510, 1372, 1372, 1372, 1372, 1541, + /* 570 */ 1540, 1372, 1372, 1372, 1372, 1372, 1372, 1461, 1372, 1372, + /* 580 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1452, 1372, 1451, + /* 590 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 600 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 610 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 620 */ 1372, 1372, 1372, }; /********** End of lemon-generated parsing tables *****************************/ @@ -947,11 +952,13 @@ static const YYCODETYPE yyFallback[] = { 0, /* BLOB => nothing */ 0, /* VARBINARY => nothing */ 0, /* DECIMAL => nothing */ - 0, /* FILE_FACTOR => nothing */ - 0, /* NK_FLOAT => nothing */ + 0, /* MAX_DELAY => nothing */ + 0, /* WATERMARK => nothing */ 0, /* ROLLUP => nothing */ 0, /* TTL => nothing */ 0, /* SMA => nothing */ + 0, /* FIRST => nothing */ + 0, /* LAST => nothing */ 0, /* SHOW => nothing */ 0, /* DATABASES => nothing */ 0, /* TABLES => nothing */ @@ -993,6 +1000,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* VERBOSE => nothing */ 0, /* NK_BOOL => nothing */ 0, /* RATIO => nothing */ + 0, /* NK_FLOAT => nothing */ 0, /* COMPACT => nothing */ 0, /* VNODES => nothing */ 0, /* IN => nothing */ @@ -1004,8 +1012,6 @@ static const YYCODETYPE yyFallback[] = { 0, /* TRIGGER => nothing */ 0, /* AT_ONCE => nothing */ 0, /* WINDOW_CLOSE => nothing */ - 0, /* MAX_DELAY => nothing */ - 0, /* WATERMARK => nothing */ 0, /* KILL => nothing */ 0, /* CONNECTION => nothing */ 0, /* TRANSACTION => nothing */ @@ -1031,8 +1037,6 @@ static const YYCODETYPE yyFallback[] = { 0, /* TODAY => nothing */ 0, /* TIMEZONE => nothing */ 0, /* COUNT => nothing */ - 0, /* FIRST => nothing */ - 0, /* LAST => nothing */ 0, /* LAST_ROW => nothing */ 0, /* BETWEEN => nothing */ 0, /* IS => nothing */ @@ -1069,12 +1073,12 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ID => nothing */ - 233, /* NK_BITNOT => ID */ - 233, /* INSERT => ID */ - 233, /* VALUES => ID */ - 233, /* IMPORT => ID */ - 233, /* NK_SEMI => ID */ - 233, /* FILE => ID */ + 232, /* NK_BITNOT => ID */ + 232, /* INSERT => ID */ + 232, /* VALUES => ID */ + 232, /* IMPORT => ID */ + 232, /* NK_SEMI => ID */ + 232, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -1274,188 +1278,188 @@ static const char *const yyTokenName[] = { /* 109 */ "BLOB", /* 110 */ "VARBINARY", /* 111 */ "DECIMAL", - /* 112 */ "FILE_FACTOR", - /* 113 */ "NK_FLOAT", + /* 112 */ "MAX_DELAY", + /* 113 */ "WATERMARK", /* 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 */ "CONSUMER", - /* 147 */ "GROUP", - /* 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 */ "MAX_DELAY", - /* 170 */ "WATERMARK", - /* 171 */ "KILL", - /* 172 */ "CONNECTION", - /* 173 */ "TRANSACTION", - /* 174 */ "BALANCE", - /* 175 */ "VGROUP", - /* 176 */ "MERGE", - /* 177 */ "REDISTRIBUTE", - /* 178 */ "SPLIT", - /* 179 */ "SYNCDB", - /* 180 */ "DELETE", - /* 181 */ "NULL", - /* 182 */ "NK_QUESTION", - /* 183 */ "NK_ARROW", - /* 184 */ "ROWTS", - /* 185 */ "TBNAME", - /* 186 */ "QSTARTTS", - /* 187 */ "QENDTS", - /* 188 */ "WSTARTTS", - /* 189 */ "WENDTS", - /* 190 */ "WDURATION", - /* 191 */ "CAST", - /* 192 */ "NOW", - /* 193 */ "TODAY", - /* 194 */ "TIMEZONE", - /* 195 */ "COUNT", - /* 196 */ "FIRST", - /* 197 */ "LAST", - /* 198 */ "LAST_ROW", - /* 199 */ "BETWEEN", - /* 200 */ "IS", - /* 201 */ "NK_LT", - /* 202 */ "NK_GT", - /* 203 */ "NK_LE", - /* 204 */ "NK_GE", - /* 205 */ "NK_NE", - /* 206 */ "MATCH", - /* 207 */ "NMATCH", - /* 208 */ "CONTAINS", - /* 209 */ "JOIN", - /* 210 */ "INNER", - /* 211 */ "SELECT", - /* 212 */ "DISTINCT", - /* 213 */ "WHERE", - /* 214 */ "PARTITION", - /* 215 */ "BY", - /* 216 */ "SESSION", - /* 217 */ "STATE_WINDOW", - /* 218 */ "SLIDING", - /* 219 */ "FILL", - /* 220 */ "VALUE", - /* 221 */ "NONE", - /* 222 */ "PREV", - /* 223 */ "LINEAR", - /* 224 */ "NEXT", - /* 225 */ "HAVING", - /* 226 */ "ORDER", - /* 227 */ "SLIMIT", - /* 228 */ "SOFFSET", - /* 229 */ "LIMIT", - /* 230 */ "OFFSET", - /* 231 */ "ASC", - /* 232 */ "NULLS", - /* 233 */ "ID", - /* 234 */ "NK_BITNOT", - /* 235 */ "INSERT", - /* 236 */ "VALUES", - /* 237 */ "IMPORT", - /* 238 */ "NK_SEMI", - /* 239 */ "FILE", - /* 240 */ "cmd", - /* 241 */ "account_options", - /* 242 */ "alter_account_options", - /* 243 */ "literal", - /* 244 */ "alter_account_option", - /* 245 */ "user_name", - /* 246 */ "privileges", - /* 247 */ "priv_level", - /* 248 */ "priv_type_list", - /* 249 */ "priv_type", - /* 250 */ "db_name", - /* 251 */ "dnode_endpoint", - /* 252 */ "dnode_host_name", - /* 253 */ "not_exists_opt", - /* 254 */ "db_options", - /* 255 */ "exists_opt", - /* 256 */ "alter_db_options", - /* 257 */ "integer_list", - /* 258 */ "variable_list", - /* 259 */ "retention_list", - /* 260 */ "alter_db_option", - /* 261 */ "retention", - /* 262 */ "full_table_name", - /* 263 */ "column_def_list", - /* 264 */ "tags_def_opt", - /* 265 */ "table_options", - /* 266 */ "multi_create_clause", - /* 267 */ "tags_def", - /* 268 */ "multi_drop_clause", - /* 269 */ "alter_table_clause", - /* 270 */ "alter_table_options", - /* 271 */ "column_name", - /* 272 */ "type_name", - /* 273 */ "signed_literal", - /* 274 */ "create_subtable_clause", - /* 275 */ "specific_tags_opt", - /* 276 */ "literal_list", - /* 277 */ "drop_table_clause", - /* 278 */ "col_name_list", - /* 279 */ "table_name", - /* 280 */ "column_def", - /* 281 */ "func_name_list", + /* 117 */ "FIRST", + /* 118 */ "LAST", + /* 119 */ "SHOW", + /* 120 */ "DATABASES", + /* 121 */ "TABLES", + /* 122 */ "STABLES", + /* 123 */ "MNODES", + /* 124 */ "MODULES", + /* 125 */ "QNODES", + /* 126 */ "FUNCTIONS", + /* 127 */ "INDEXES", + /* 128 */ "ACCOUNTS", + /* 129 */ "APPS", + /* 130 */ "CONNECTIONS", + /* 131 */ "LICENCE", + /* 132 */ "GRANTS", + /* 133 */ "QUERIES", + /* 134 */ "SCORES", + /* 135 */ "TOPICS", + /* 136 */ "VARIABLES", + /* 137 */ "BNODES", + /* 138 */ "SNODES", + /* 139 */ "CLUSTER", + /* 140 */ "TRANSACTIONS", + /* 141 */ "LIKE", + /* 142 */ "INDEX", + /* 143 */ "FULLTEXT", + /* 144 */ "FUNCTION", + /* 145 */ "INTERVAL", + /* 146 */ "TOPIC", + /* 147 */ "AS", + /* 148 */ "CONSUMER", + /* 149 */ "GROUP", + /* 150 */ "DESC", + /* 151 */ "DESCRIBE", + /* 152 */ "RESET", + /* 153 */ "QUERY", + /* 154 */ "CACHE", + /* 155 */ "EXPLAIN", + /* 156 */ "ANALYZE", + /* 157 */ "VERBOSE", + /* 158 */ "NK_BOOL", + /* 159 */ "RATIO", + /* 160 */ "NK_FLOAT", + /* 161 */ "COMPACT", + /* 162 */ "VNODES", + /* 163 */ "IN", + /* 164 */ "OUTPUTTYPE", + /* 165 */ "AGGREGATE", + /* 166 */ "BUFSIZE", + /* 167 */ "STREAM", + /* 168 */ "INTO", + /* 169 */ "TRIGGER", + /* 170 */ "AT_ONCE", + /* 171 */ "WINDOW_CLOSE", + /* 172 */ "KILL", + /* 173 */ "CONNECTION", + /* 174 */ "TRANSACTION", + /* 175 */ "BALANCE", + /* 176 */ "VGROUP", + /* 177 */ "MERGE", + /* 178 */ "REDISTRIBUTE", + /* 179 */ "SPLIT", + /* 180 */ "SYNCDB", + /* 181 */ "DELETE", + /* 182 */ "NULL", + /* 183 */ "NK_QUESTION", + /* 184 */ "NK_ARROW", + /* 185 */ "ROWTS", + /* 186 */ "TBNAME", + /* 187 */ "QSTARTTS", + /* 188 */ "QENDTS", + /* 189 */ "WSTARTTS", + /* 190 */ "WENDTS", + /* 191 */ "WDURATION", + /* 192 */ "CAST", + /* 193 */ "NOW", + /* 194 */ "TODAY", + /* 195 */ "TIMEZONE", + /* 196 */ "COUNT", + /* 197 */ "LAST_ROW", + /* 198 */ "BETWEEN", + /* 199 */ "IS", + /* 200 */ "NK_LT", + /* 201 */ "NK_GT", + /* 202 */ "NK_LE", + /* 203 */ "NK_GE", + /* 204 */ "NK_NE", + /* 205 */ "MATCH", + /* 206 */ "NMATCH", + /* 207 */ "CONTAINS", + /* 208 */ "JOIN", + /* 209 */ "INNER", + /* 210 */ "SELECT", + /* 211 */ "DISTINCT", + /* 212 */ "WHERE", + /* 213 */ "PARTITION", + /* 214 */ "BY", + /* 215 */ "SESSION", + /* 216 */ "STATE_WINDOW", + /* 217 */ "SLIDING", + /* 218 */ "FILL", + /* 219 */ "VALUE", + /* 220 */ "NONE", + /* 221 */ "PREV", + /* 222 */ "LINEAR", + /* 223 */ "NEXT", + /* 224 */ "HAVING", + /* 225 */ "ORDER", + /* 226 */ "SLIMIT", + /* 227 */ "SOFFSET", + /* 228 */ "LIMIT", + /* 229 */ "OFFSET", + /* 230 */ "ASC", + /* 231 */ "NULLS", + /* 232 */ "ID", + /* 233 */ "NK_BITNOT", + /* 234 */ "INSERT", + /* 235 */ "VALUES", + /* 236 */ "IMPORT", + /* 237 */ "NK_SEMI", + /* 238 */ "FILE", + /* 239 */ "cmd", + /* 240 */ "account_options", + /* 241 */ "alter_account_options", + /* 242 */ "literal", + /* 243 */ "alter_account_option", + /* 244 */ "user_name", + /* 245 */ "privileges", + /* 246 */ "priv_level", + /* 247 */ "priv_type_list", + /* 248 */ "priv_type", + /* 249 */ "db_name", + /* 250 */ "dnode_endpoint", + /* 251 */ "dnode_host_name", + /* 252 */ "not_exists_opt", + /* 253 */ "db_options", + /* 254 */ "exists_opt", + /* 255 */ "alter_db_options", + /* 256 */ "integer_list", + /* 257 */ "variable_list", + /* 258 */ "retention_list", + /* 259 */ "alter_db_option", + /* 260 */ "retention", + /* 261 */ "full_table_name", + /* 262 */ "column_def_list", + /* 263 */ "tags_def_opt", + /* 264 */ "table_options", + /* 265 */ "multi_create_clause", + /* 266 */ "tags_def", + /* 267 */ "multi_drop_clause", + /* 268 */ "alter_table_clause", + /* 269 */ "alter_table_options", + /* 270 */ "column_name", + /* 271 */ "type_name", + /* 272 */ "signed_literal", + /* 273 */ "create_subtable_clause", + /* 274 */ "specific_tags_opt", + /* 275 */ "literal_list", + /* 276 */ "drop_table_clause", + /* 277 */ "col_name_list", + /* 278 */ "table_name", + /* 279 */ "column_def", + /* 280 */ "duration_list", + /* 281 */ "rollup_func_list", /* 282 */ "alter_table_option", - /* 283 */ "col_name", - /* 284 */ "db_name_cond_opt", - /* 285 */ "like_pattern_opt", - /* 286 */ "table_name_cond", - /* 287 */ "from_db_opt", - /* 288 */ "func_name", - /* 289 */ "function_name", - /* 290 */ "index_name", - /* 291 */ "index_options", - /* 292 */ "func_list", - /* 293 */ "duration_literal", + /* 283 */ "duration_literal", + /* 284 */ "rollup_func_name", + /* 285 */ "function_name", + /* 286 */ "col_name", + /* 287 */ "db_name_cond_opt", + /* 288 */ "like_pattern_opt", + /* 289 */ "table_name_cond", + /* 290 */ "from_db_opt", + /* 291 */ "index_name", + /* 292 */ "index_options", + /* 293 */ "func_list", /* 294 */ "sliding_opt", /* 295 */ "func", /* 296 */ "expression_list", @@ -1694,295 +1698,300 @@ static const char *const yyRuleName[] = { /* 162 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", /* 163 */ "table_options ::=", /* 164 */ "table_options ::= table_options COMMENT NK_STRING", - /* 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 AS query_expression", - /* 224 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", - /* 225 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", - /* 226 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 227 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 228 */ "cmd ::= DESC full_table_name", - /* 229 */ "cmd ::= DESCRIBE full_table_name", - /* 230 */ "cmd ::= RESET QUERY CACHE", - /* 231 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 232 */ "analyze_opt ::=", - /* 233 */ "analyze_opt ::= ANALYZE", - /* 234 */ "explain_options ::=", - /* 235 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 236 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 237 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", - /* 238 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 239 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 240 */ "agg_func_opt ::=", - /* 241 */ "agg_func_opt ::= AGGREGATE", - /* 242 */ "bufsize_opt ::=", - /* 243 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 244 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", - /* 245 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 246 */ "into_opt ::=", - /* 247 */ "into_opt ::= INTO full_table_name", - /* 248 */ "stream_options ::=", - /* 249 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 250 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 251 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 252 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 253 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 254 */ "cmd ::= KILL QUERY NK_STRING", - /* 255 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 256 */ "cmd ::= BALANCE VGROUP", - /* 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 ::= DELETE FROM full_table_name where_clause_opt", - /* 264 */ "cmd ::= query_expression", - /* 265 */ "literal ::= NK_INTEGER", - /* 266 */ "literal ::= NK_FLOAT", - /* 267 */ "literal ::= NK_STRING", - /* 268 */ "literal ::= NK_BOOL", - /* 269 */ "literal ::= TIMESTAMP NK_STRING", - /* 270 */ "literal ::= duration_literal", - /* 271 */ "literal ::= NULL", - /* 272 */ "literal ::= NK_QUESTION", - /* 273 */ "duration_literal ::= NK_VARIABLE", - /* 274 */ "signed ::= NK_INTEGER", - /* 275 */ "signed ::= NK_PLUS NK_INTEGER", - /* 276 */ "signed ::= NK_MINUS NK_INTEGER", - /* 277 */ "signed ::= NK_FLOAT", - /* 278 */ "signed ::= NK_PLUS NK_FLOAT", - /* 279 */ "signed ::= NK_MINUS NK_FLOAT", - /* 280 */ "signed_literal ::= signed", - /* 281 */ "signed_literal ::= NK_STRING", - /* 282 */ "signed_literal ::= NK_BOOL", - /* 283 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 284 */ "signed_literal ::= duration_literal", - /* 285 */ "signed_literal ::= NULL", - /* 286 */ "signed_literal ::= literal_func", - /* 287 */ "literal_list ::= signed_literal", - /* 288 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 289 */ "db_name ::= NK_ID", - /* 290 */ "table_name ::= NK_ID", - /* 291 */ "column_name ::= NK_ID", - /* 292 */ "function_name ::= NK_ID", - /* 293 */ "table_alias ::= NK_ID", - /* 294 */ "column_alias ::= NK_ID", - /* 295 */ "user_name ::= NK_ID", - /* 296 */ "index_name ::= NK_ID", - /* 297 */ "topic_name ::= NK_ID", - /* 298 */ "stream_name ::= NK_ID", - /* 299 */ "cgroup_name ::= NK_ID", - /* 300 */ "expression ::= literal", - /* 301 */ "expression ::= pseudo_column", - /* 302 */ "expression ::= column_reference", - /* 303 */ "expression ::= function_expression", - /* 304 */ "expression ::= subquery", - /* 305 */ "expression ::= NK_LP expression NK_RP", - /* 306 */ "expression ::= NK_PLUS expression", - /* 307 */ "expression ::= NK_MINUS expression", - /* 308 */ "expression ::= expression NK_PLUS expression", - /* 309 */ "expression ::= expression NK_MINUS expression", - /* 310 */ "expression ::= expression NK_STAR expression", - /* 311 */ "expression ::= expression NK_SLASH expression", - /* 312 */ "expression ::= expression NK_REM expression", - /* 313 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 314 */ "expression_list ::= expression", - /* 315 */ "expression_list ::= expression_list NK_COMMA expression", - /* 316 */ "column_reference ::= column_name", - /* 317 */ "column_reference ::= table_name NK_DOT column_name", - /* 318 */ "pseudo_column ::= ROWTS", - /* 319 */ "pseudo_column ::= TBNAME", - /* 320 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 321 */ "pseudo_column ::= QSTARTTS", - /* 322 */ "pseudo_column ::= QENDTS", - /* 323 */ "pseudo_column ::= WSTARTTS", - /* 324 */ "pseudo_column ::= WENDTS", - /* 325 */ "pseudo_column ::= WDURATION", - /* 326 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 327 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 328 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", - /* 329 */ "function_expression ::= literal_func", - /* 330 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 331 */ "literal_func ::= NOW", - /* 332 */ "noarg_func ::= NOW", - /* 333 */ "noarg_func ::= TODAY", - /* 334 */ "noarg_func ::= TIMEZONE", - /* 335 */ "star_func ::= COUNT", - /* 336 */ "star_func ::= FIRST", - /* 337 */ "star_func ::= LAST", - /* 338 */ "star_func ::= LAST_ROW", - /* 339 */ "star_func_para_list ::= NK_STAR", - /* 340 */ "star_func_para_list ::= other_para_list", - /* 341 */ "other_para_list ::= star_func_para", - /* 342 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 343 */ "star_func_para ::= expression", - /* 344 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 345 */ "predicate ::= expression compare_op expression", - /* 346 */ "predicate ::= expression BETWEEN expression AND expression", - /* 347 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 348 */ "predicate ::= expression IS NULL", - /* 349 */ "predicate ::= expression IS NOT NULL", - /* 350 */ "predicate ::= expression in_op in_predicate_value", - /* 351 */ "compare_op ::= NK_LT", - /* 352 */ "compare_op ::= NK_GT", - /* 353 */ "compare_op ::= NK_LE", - /* 354 */ "compare_op ::= NK_GE", - /* 355 */ "compare_op ::= NK_NE", - /* 356 */ "compare_op ::= NK_EQ", - /* 357 */ "compare_op ::= LIKE", - /* 358 */ "compare_op ::= NOT LIKE", - /* 359 */ "compare_op ::= MATCH", - /* 360 */ "compare_op ::= NMATCH", - /* 361 */ "compare_op ::= CONTAINS", - /* 362 */ "in_op ::= IN", - /* 363 */ "in_op ::= NOT IN", - /* 364 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 365 */ "boolean_value_expression ::= boolean_primary", - /* 366 */ "boolean_value_expression ::= NOT boolean_primary", - /* 367 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 368 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 369 */ "boolean_primary ::= predicate", - /* 370 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 371 */ "common_expression ::= expression", - /* 372 */ "common_expression ::= boolean_value_expression", - /* 373 */ "from_clause ::= FROM table_reference_list", - /* 374 */ "table_reference_list ::= table_reference", - /* 375 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 376 */ "table_reference ::= table_primary", - /* 377 */ "table_reference ::= joined_table", - /* 378 */ "table_primary ::= table_name alias_opt", - /* 379 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 380 */ "table_primary ::= subquery alias_opt", - /* 381 */ "table_primary ::= parenthesized_joined_table", - /* 382 */ "alias_opt ::=", - /* 383 */ "alias_opt ::= table_alias", - /* 384 */ "alias_opt ::= AS table_alias", - /* 385 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 386 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 387 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 388 */ "join_type ::=", - /* 389 */ "join_type ::= INNER", - /* 390 */ "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", - /* 391 */ "set_quantifier_opt ::=", - /* 392 */ "set_quantifier_opt ::= DISTINCT", - /* 393 */ "set_quantifier_opt ::= ALL", - /* 394 */ "select_list ::= NK_STAR", - /* 395 */ "select_list ::= select_sublist", - /* 396 */ "select_sublist ::= select_item", - /* 397 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 398 */ "select_item ::= common_expression", - /* 399 */ "select_item ::= common_expression column_alias", - /* 400 */ "select_item ::= common_expression AS column_alias", - /* 401 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 402 */ "where_clause_opt ::=", - /* 403 */ "where_clause_opt ::= WHERE search_condition", - /* 404 */ "partition_by_clause_opt ::=", - /* 405 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 406 */ "twindow_clause_opt ::=", - /* 407 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 408 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 409 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 410 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 411 */ "sliding_opt ::=", - /* 412 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 413 */ "fill_opt ::=", - /* 414 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 415 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 416 */ "fill_mode ::= NONE", - /* 417 */ "fill_mode ::= PREV", - /* 418 */ "fill_mode ::= NULL", - /* 419 */ "fill_mode ::= LINEAR", - /* 420 */ "fill_mode ::= NEXT", - /* 421 */ "group_by_clause_opt ::=", - /* 422 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 423 */ "group_by_list ::= expression", - /* 424 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 425 */ "having_clause_opt ::=", - /* 426 */ "having_clause_opt ::= HAVING search_condition", - /* 427 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 428 */ "query_expression_body ::= query_primary", - /* 429 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 430 */ "query_expression_body ::= query_expression_body UNION query_expression_body", - /* 431 */ "query_primary ::= query_specification", - /* 432 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", - /* 433 */ "order_by_clause_opt ::=", - /* 434 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 435 */ "slimit_clause_opt ::=", - /* 436 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 437 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 438 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 439 */ "limit_clause_opt ::=", - /* 440 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 441 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 442 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 443 */ "subquery ::= NK_LP query_expression NK_RP", - /* 444 */ "search_condition ::= common_expression", - /* 445 */ "sort_specification_list ::= sort_specification", - /* 446 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 447 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 448 */ "ordering_specification_opt ::=", - /* 449 */ "ordering_specification_opt ::= ASC", - /* 450 */ "ordering_specification_opt ::= DESC", - /* 451 */ "null_ordering_opt ::=", - /* 452 */ "null_ordering_opt ::= NULLS FIRST", - /* 453 */ "null_ordering_opt ::= NULLS LAST", + /* 165 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 166 */ "table_options ::= table_options WATERMARK duration_list", + /* 167 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 168 */ "table_options ::= table_options TTL NK_INTEGER", + /* 169 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 170 */ "alter_table_options ::= alter_table_option", + /* 171 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 172 */ "alter_table_option ::= COMMENT NK_STRING", + /* 173 */ "alter_table_option ::= TTL NK_INTEGER", + /* 174 */ "duration_list ::= duration_literal", + /* 175 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 176 */ "rollup_func_list ::= rollup_func_name", + /* 177 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 178 */ "rollup_func_name ::= function_name", + /* 179 */ "rollup_func_name ::= FIRST", + /* 180 */ "rollup_func_name ::= LAST", + /* 181 */ "col_name_list ::= col_name", + /* 182 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 183 */ "col_name ::= column_name", + /* 184 */ "cmd ::= SHOW DNODES", + /* 185 */ "cmd ::= SHOW USERS", + /* 186 */ "cmd ::= SHOW DATABASES", + /* 187 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 188 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 189 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 190 */ "cmd ::= SHOW MNODES", + /* 191 */ "cmd ::= SHOW MODULES", + /* 192 */ "cmd ::= SHOW QNODES", + /* 193 */ "cmd ::= SHOW FUNCTIONS", + /* 194 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 195 */ "cmd ::= SHOW STREAMS", + /* 196 */ "cmd ::= SHOW ACCOUNTS", + /* 197 */ "cmd ::= SHOW APPS", + /* 198 */ "cmd ::= SHOW CONNECTIONS", + /* 199 */ "cmd ::= SHOW LICENCE", + /* 200 */ "cmd ::= SHOW GRANTS", + /* 201 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 202 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 203 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 204 */ "cmd ::= SHOW QUERIES", + /* 205 */ "cmd ::= SHOW SCORES", + /* 206 */ "cmd ::= SHOW TOPICS", + /* 207 */ "cmd ::= SHOW VARIABLES", + /* 208 */ "cmd ::= SHOW BNODES", + /* 209 */ "cmd ::= SHOW SNODES", + /* 210 */ "cmd ::= SHOW CLUSTER", + /* 211 */ "cmd ::= SHOW TRANSACTIONS", + /* 212 */ "db_name_cond_opt ::=", + /* 213 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 214 */ "like_pattern_opt ::=", + /* 215 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 216 */ "table_name_cond ::= table_name", + /* 217 */ "from_db_opt ::=", + /* 218 */ "from_db_opt ::= FROM db_name", + /* 219 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 220 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", + /* 221 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", + /* 222 */ "index_options ::=", + /* 223 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 224 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 225 */ "func_list ::= func", + /* 226 */ "func_list ::= func_list NK_COMMA func", + /* 227 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 228 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 229 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", + /* 230 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", + /* 231 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 232 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 233 */ "cmd ::= DESC full_table_name", + /* 234 */ "cmd ::= DESCRIBE full_table_name", + /* 235 */ "cmd ::= RESET QUERY CACHE", + /* 236 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 237 */ "analyze_opt ::=", + /* 238 */ "analyze_opt ::= ANALYZE", + /* 239 */ "explain_options ::=", + /* 240 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 241 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 242 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", + /* 243 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 244 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 245 */ "agg_func_opt ::=", + /* 246 */ "agg_func_opt ::= AGGREGATE", + /* 247 */ "bufsize_opt ::=", + /* 248 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 249 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", + /* 250 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 251 */ "into_opt ::=", + /* 252 */ "into_opt ::= INTO full_table_name", + /* 253 */ "stream_options ::=", + /* 254 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 255 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 256 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 257 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 258 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 259 */ "cmd ::= KILL QUERY NK_STRING", + /* 260 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 261 */ "cmd ::= BALANCE VGROUP", + /* 262 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 263 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 264 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 265 */ "dnode_list ::= DNODE NK_INTEGER", + /* 266 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 267 */ "cmd ::= SYNCDB db_name REPLICA", + /* 268 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 269 */ "cmd ::= query_expression", + /* 270 */ "literal ::= NK_INTEGER", + /* 271 */ "literal ::= NK_FLOAT", + /* 272 */ "literal ::= NK_STRING", + /* 273 */ "literal ::= NK_BOOL", + /* 274 */ "literal ::= TIMESTAMP NK_STRING", + /* 275 */ "literal ::= duration_literal", + /* 276 */ "literal ::= NULL", + /* 277 */ "literal ::= NK_QUESTION", + /* 278 */ "duration_literal ::= NK_VARIABLE", + /* 279 */ "signed ::= NK_INTEGER", + /* 280 */ "signed ::= NK_PLUS NK_INTEGER", + /* 281 */ "signed ::= NK_MINUS NK_INTEGER", + /* 282 */ "signed ::= NK_FLOAT", + /* 283 */ "signed ::= NK_PLUS NK_FLOAT", + /* 284 */ "signed ::= NK_MINUS NK_FLOAT", + /* 285 */ "signed_literal ::= signed", + /* 286 */ "signed_literal ::= NK_STRING", + /* 287 */ "signed_literal ::= NK_BOOL", + /* 288 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 289 */ "signed_literal ::= duration_literal", + /* 290 */ "signed_literal ::= NULL", + /* 291 */ "signed_literal ::= literal_func", + /* 292 */ "literal_list ::= signed_literal", + /* 293 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 294 */ "db_name ::= NK_ID", + /* 295 */ "table_name ::= NK_ID", + /* 296 */ "column_name ::= NK_ID", + /* 297 */ "function_name ::= NK_ID", + /* 298 */ "table_alias ::= NK_ID", + /* 299 */ "column_alias ::= NK_ID", + /* 300 */ "user_name ::= NK_ID", + /* 301 */ "index_name ::= NK_ID", + /* 302 */ "topic_name ::= NK_ID", + /* 303 */ "stream_name ::= NK_ID", + /* 304 */ "cgroup_name ::= NK_ID", + /* 305 */ "expression ::= literal", + /* 306 */ "expression ::= pseudo_column", + /* 307 */ "expression ::= column_reference", + /* 308 */ "expression ::= function_expression", + /* 309 */ "expression ::= subquery", + /* 310 */ "expression ::= NK_LP expression NK_RP", + /* 311 */ "expression ::= NK_PLUS expression", + /* 312 */ "expression ::= NK_MINUS expression", + /* 313 */ "expression ::= expression NK_PLUS expression", + /* 314 */ "expression ::= expression NK_MINUS expression", + /* 315 */ "expression ::= expression NK_STAR expression", + /* 316 */ "expression ::= expression NK_SLASH expression", + /* 317 */ "expression ::= expression NK_REM expression", + /* 318 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 319 */ "expression_list ::= expression", + /* 320 */ "expression_list ::= expression_list NK_COMMA expression", + /* 321 */ "column_reference ::= column_name", + /* 322 */ "column_reference ::= table_name NK_DOT column_name", + /* 323 */ "pseudo_column ::= ROWTS", + /* 324 */ "pseudo_column ::= TBNAME", + /* 325 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 326 */ "pseudo_column ::= QSTARTTS", + /* 327 */ "pseudo_column ::= QENDTS", + /* 328 */ "pseudo_column ::= WSTARTTS", + /* 329 */ "pseudo_column ::= WENDTS", + /* 330 */ "pseudo_column ::= WDURATION", + /* 331 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 332 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 333 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 334 */ "function_expression ::= literal_func", + /* 335 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 336 */ "literal_func ::= NOW", + /* 337 */ "noarg_func ::= NOW", + /* 338 */ "noarg_func ::= TODAY", + /* 339 */ "noarg_func ::= TIMEZONE", + /* 340 */ "star_func ::= COUNT", + /* 341 */ "star_func ::= FIRST", + /* 342 */ "star_func ::= LAST", + /* 343 */ "star_func ::= LAST_ROW", + /* 344 */ "star_func_para_list ::= NK_STAR", + /* 345 */ "star_func_para_list ::= other_para_list", + /* 346 */ "other_para_list ::= star_func_para", + /* 347 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 348 */ "star_func_para ::= expression", + /* 349 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 350 */ "predicate ::= expression compare_op expression", + /* 351 */ "predicate ::= expression BETWEEN expression AND expression", + /* 352 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 353 */ "predicate ::= expression IS NULL", + /* 354 */ "predicate ::= expression IS NOT NULL", + /* 355 */ "predicate ::= expression in_op in_predicate_value", + /* 356 */ "compare_op ::= NK_LT", + /* 357 */ "compare_op ::= NK_GT", + /* 358 */ "compare_op ::= NK_LE", + /* 359 */ "compare_op ::= NK_GE", + /* 360 */ "compare_op ::= NK_NE", + /* 361 */ "compare_op ::= NK_EQ", + /* 362 */ "compare_op ::= LIKE", + /* 363 */ "compare_op ::= NOT LIKE", + /* 364 */ "compare_op ::= MATCH", + /* 365 */ "compare_op ::= NMATCH", + /* 366 */ "compare_op ::= CONTAINS", + /* 367 */ "in_op ::= IN", + /* 368 */ "in_op ::= NOT IN", + /* 369 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 370 */ "boolean_value_expression ::= boolean_primary", + /* 371 */ "boolean_value_expression ::= NOT boolean_primary", + /* 372 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 373 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 374 */ "boolean_primary ::= predicate", + /* 375 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 376 */ "common_expression ::= expression", + /* 377 */ "common_expression ::= boolean_value_expression", + /* 378 */ "from_clause ::= FROM table_reference_list", + /* 379 */ "table_reference_list ::= table_reference", + /* 380 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 381 */ "table_reference ::= table_primary", + /* 382 */ "table_reference ::= joined_table", + /* 383 */ "table_primary ::= table_name alias_opt", + /* 384 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 385 */ "table_primary ::= subquery alias_opt", + /* 386 */ "table_primary ::= parenthesized_joined_table", + /* 387 */ "alias_opt ::=", + /* 388 */ "alias_opt ::= table_alias", + /* 389 */ "alias_opt ::= AS table_alias", + /* 390 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 391 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 392 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 393 */ "join_type ::=", + /* 394 */ "join_type ::= INNER", + /* 395 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 396 */ "set_quantifier_opt ::=", + /* 397 */ "set_quantifier_opt ::= DISTINCT", + /* 398 */ "set_quantifier_opt ::= ALL", + /* 399 */ "select_list ::= NK_STAR", + /* 400 */ "select_list ::= select_sublist", + /* 401 */ "select_sublist ::= select_item", + /* 402 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 403 */ "select_item ::= common_expression", + /* 404 */ "select_item ::= common_expression column_alias", + /* 405 */ "select_item ::= common_expression AS column_alias", + /* 406 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 407 */ "where_clause_opt ::=", + /* 408 */ "where_clause_opt ::= WHERE search_condition", + /* 409 */ "partition_by_clause_opt ::=", + /* 410 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 411 */ "twindow_clause_opt ::=", + /* 412 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 413 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 414 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 415 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 416 */ "sliding_opt ::=", + /* 417 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 418 */ "fill_opt ::=", + /* 419 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 420 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 421 */ "fill_mode ::= NONE", + /* 422 */ "fill_mode ::= PREV", + /* 423 */ "fill_mode ::= NULL", + /* 424 */ "fill_mode ::= LINEAR", + /* 425 */ "fill_mode ::= NEXT", + /* 426 */ "group_by_clause_opt ::=", + /* 427 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 428 */ "group_by_list ::= expression", + /* 429 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 430 */ "having_clause_opt ::=", + /* 431 */ "having_clause_opt ::= HAVING search_condition", + /* 432 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 433 */ "query_expression_body ::= query_primary", + /* 434 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 435 */ "query_expression_body ::= query_expression_body UNION query_expression_body", + /* 436 */ "query_primary ::= query_specification", + /* 437 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", + /* 438 */ "order_by_clause_opt ::=", + /* 439 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 440 */ "slimit_clause_opt ::=", + /* 441 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 442 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 443 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 444 */ "limit_clause_opt ::=", + /* 445 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 446 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 447 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 448 */ "subquery ::= NK_LP query_expression NK_RP", + /* 449 */ "search_condition ::= common_expression", + /* 450 */ "sort_specification_list ::= sort_specification", + /* 451 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 452 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 453 */ "ordering_specification_opt ::=", + /* 454 */ "ordering_specification_opt ::= ASC", + /* 455 */ "ordering_specification_opt ::= DESC", + /* 456 */ "null_ordering_opt ::=", + /* 457 */ "null_ordering_opt ::= NULLS FIRST", + /* 458 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2109,27 +2118,27 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 240: /* cmd */ - case 243: /* literal */ - case 254: /* db_options */ - case 256: /* alter_db_options */ - case 261: /* retention */ - case 262: /* full_table_name */ - case 265: /* table_options */ - case 269: /* alter_table_clause */ - case 270: /* alter_table_options */ - case 273: /* signed_literal */ - case 274: /* create_subtable_clause */ - case 277: /* drop_table_clause */ - case 280: /* column_def */ - case 283: /* col_name */ - case 284: /* db_name_cond_opt */ - case 285: /* like_pattern_opt */ - case 286: /* table_name_cond */ - case 287: /* from_db_opt */ - case 288: /* func_name */ - case 291: /* index_options */ - case 293: /* duration_literal */ + case 239: /* cmd */ + case 242: /* literal */ + case 253: /* db_options */ + case 255: /* alter_db_options */ + case 260: /* retention */ + case 261: /* full_table_name */ + case 264: /* table_options */ + case 268: /* alter_table_clause */ + case 269: /* alter_table_options */ + case 272: /* signed_literal */ + case 273: /* create_subtable_clause */ + case 276: /* drop_table_clause */ + case 279: /* column_def */ + case 283: /* duration_literal */ + case 284: /* rollup_func_name */ + case 286: /* col_name */ + case 287: /* db_name_cond_opt */ + case 288: /* like_pattern_opt */ + case 289: /* table_name_cond */ + case 290: /* from_db_opt */ + case 292: /* index_options */ case 294: /* sliding_opt */ case 295: /* func */ case 298: /* query_expression */ @@ -2171,23 +2180,23 @@ static void yy_destructor( nodesDestroyNode((yypminor->yy632)); } break; - case 241: /* account_options */ - case 242: /* alter_account_options */ - case 244: /* alter_account_option */ + case 240: /* account_options */ + case 241: /* alter_account_options */ + case 243: /* alter_account_option */ case 303: /* bufsize_opt */ { } break; - case 245: /* user_name */ - case 247: /* priv_level */ - case 250: /* db_name */ - case 251: /* dnode_endpoint */ - case 252: /* dnode_host_name */ - case 271: /* column_name */ - case 279: /* table_name */ - case 289: /* function_name */ - case 290: /* index_name */ + case 244: /* user_name */ + case 246: /* priv_level */ + case 249: /* db_name */ + case 250: /* dnode_endpoint */ + case 251: /* dnode_host_name */ + case 270: /* column_name */ + case 278: /* table_name */ + case 285: /* function_name */ + case 291: /* index_name */ case 297: /* topic_name */ case 299: /* cgroup_name */ case 304: /* stream_name */ @@ -2200,15 +2209,15 @@ static void yy_destructor( } break; - case 246: /* privileges */ - case 248: /* priv_type_list */ - case 249: /* priv_type */ + case 245: /* privileges */ + case 247: /* priv_type_list */ + case 248: /* priv_type */ { } break; - case 253: /* not_exists_opt */ - case 255: /* exists_opt */ + case 252: /* not_exists_opt */ + case 254: /* exists_opt */ case 300: /* analyze_opt */ case 302: /* agg_func_opt */ case 340: /* set_quantifier_opt */ @@ -2216,19 +2225,20 @@ static void yy_destructor( } break; - case 257: /* integer_list */ - case 258: /* variable_list */ - case 259: /* retention_list */ - case 263: /* column_def_list */ - case 264: /* tags_def_opt */ - case 266: /* multi_create_clause */ - case 267: /* tags_def */ - case 268: /* multi_drop_clause */ - case 275: /* specific_tags_opt */ - case 276: /* literal_list */ - case 278: /* col_name_list */ - case 281: /* func_name_list */ - case 292: /* func_list */ + case 256: /* integer_list */ + case 257: /* variable_list */ + case 258: /* retention_list */ + case 262: /* column_def_list */ + case 263: /* tags_def_opt */ + case 265: /* multi_create_clause */ + case 266: /* tags_def */ + case 267: /* multi_drop_clause */ + case 274: /* specific_tags_opt */ + case 275: /* literal_list */ + case 277: /* col_name_list */ + case 280: /* duration_list */ + case 281: /* rollup_func_list */ + case 293: /* func_list */ case 296: /* expression_list */ case 307: /* dnode_list */ case 319: /* star_func_para_list */ @@ -2244,13 +2254,13 @@ static void yy_destructor( nodesDestroyList((yypminor->yy424)); } break; - case 260: /* alter_db_option */ + case 259: /* alter_db_option */ case 282: /* alter_table_option */ { } break; - case 272: /* type_name */ + case 271: /* type_name */ { } @@ -2575,460 +2585,465 @@ static const struct { YYCODETYPE lhs; /* Symbol on the left-hand side of the rule */ signed char nrhs; /* Negative of the number of RHS symbols in the rule */ } yyRuleInfo[] = { - { 240, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 240, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 241, 0 }, /* (2) account_options ::= */ - { 241, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 241, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 241, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 241, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 241, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 241, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 241, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 241, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 241, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 242, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 242, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 244, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 244, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 244, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 244, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 244, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 244, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 244, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 244, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 244, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 244, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 240, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 240, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 240, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 240, -3 }, /* (27) cmd ::= DROP USER user_name */ - { 240, -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */ - { 240, -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */ - { 246, -1 }, /* (30) privileges ::= ALL */ - { 246, -1 }, /* (31) privileges ::= priv_type_list */ - { 248, -1 }, /* (32) priv_type_list ::= priv_type */ - { 248, -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - { 249, -1 }, /* (34) priv_type ::= READ */ - { 249, -1 }, /* (35) priv_type ::= WRITE */ - { 247, -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */ - { 247, -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */ - { 240, -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */ - { 240, -5 }, /* (39) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ - { 240, -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */ - { 240, -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */ - { 240, -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 240, -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 240, -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */ - { 240, -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 251, -1 }, /* (46) dnode_endpoint ::= NK_STRING */ - { 252, -1 }, /* (47) dnode_host_name ::= NK_ID */ - { 252, -1 }, /* (48) dnode_host_name ::= NK_IPTOKEN */ - { 240, -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */ - { 240, -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 240, -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 240, -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 240, -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */ - { 240, -2 }, /* (61) cmd ::= USE db_name */ - { 240, -4 }, /* (62) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 253, -3 }, /* (63) not_exists_opt ::= IF NOT EXISTS */ - { 253, 0 }, /* (64) not_exists_opt ::= */ - { 255, -2 }, /* (65) exists_opt ::= IF EXISTS */ - { 255, 0 }, /* (66) exists_opt ::= */ - { 254, 0 }, /* (67) db_options ::= */ - { 254, -3 }, /* (68) db_options ::= db_options BUFFER NK_INTEGER */ - { 254, -3 }, /* (69) db_options ::= db_options CACHELAST NK_INTEGER */ - { 254, -3 }, /* (70) db_options ::= db_options COMP NK_INTEGER */ - { 254, -3 }, /* (71) db_options ::= db_options DURATION NK_INTEGER */ - { 254, -3 }, /* (72) db_options ::= db_options DURATION NK_VARIABLE */ - { 254, -3 }, /* (73) db_options ::= db_options FSYNC NK_INTEGER */ - { 254, -3 }, /* (74) db_options ::= db_options MAXROWS NK_INTEGER */ - { 254, -3 }, /* (75) db_options ::= db_options MINROWS NK_INTEGER */ - { 254, -3 }, /* (76) db_options ::= db_options KEEP integer_list */ - { 254, -3 }, /* (77) db_options ::= db_options KEEP variable_list */ - { 254, -3 }, /* (78) db_options ::= db_options PAGES NK_INTEGER */ - { 254, -3 }, /* (79) db_options ::= db_options PAGESIZE NK_INTEGER */ - { 254, -3 }, /* (80) db_options ::= db_options PRECISION NK_STRING */ - { 254, -3 }, /* (81) db_options ::= db_options REPLICA NK_INTEGER */ - { 254, -3 }, /* (82) db_options ::= db_options STRICT NK_INTEGER */ - { 254, -3 }, /* (83) db_options ::= db_options WAL NK_INTEGER */ - { 254, -3 }, /* (84) db_options ::= db_options VGROUPS NK_INTEGER */ - { 254, -3 }, /* (85) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 254, -3 }, /* (86) db_options ::= db_options RETENTIONS retention_list */ - { 254, -3 }, /* (87) db_options ::= db_options SCHEMALESS NK_INTEGER */ - { 256, -1 }, /* (88) alter_db_options ::= alter_db_option */ - { 256, -2 }, /* (89) alter_db_options ::= alter_db_options alter_db_option */ - { 260, -2 }, /* (90) alter_db_option ::= BUFFER NK_INTEGER */ - { 260, -2 }, /* (91) alter_db_option ::= CACHELAST NK_INTEGER */ - { 260, -2 }, /* (92) alter_db_option ::= FSYNC NK_INTEGER */ - { 260, -2 }, /* (93) alter_db_option ::= KEEP integer_list */ - { 260, -2 }, /* (94) alter_db_option ::= KEEP variable_list */ - { 260, -2 }, /* (95) alter_db_option ::= PAGES NK_INTEGER */ - { 260, -2 }, /* (96) alter_db_option ::= REPLICA NK_INTEGER */ - { 260, -2 }, /* (97) alter_db_option ::= STRICT NK_INTEGER */ - { 260, -2 }, /* (98) alter_db_option ::= WAL NK_INTEGER */ - { 257, -1 }, /* (99) integer_list ::= NK_INTEGER */ - { 257, -3 }, /* (100) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 258, -1 }, /* (101) variable_list ::= NK_VARIABLE */ - { 258, -3 }, /* (102) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 259, -1 }, /* (103) retention_list ::= retention */ - { 259, -3 }, /* (104) retention_list ::= retention_list NK_COMMA retention */ - { 261, -3 }, /* (105) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 240, -9 }, /* (106) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 240, -3 }, /* (107) cmd ::= CREATE TABLE multi_create_clause */ - { 240, -9 }, /* (108) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 240, -3 }, /* (109) cmd ::= DROP TABLE multi_drop_clause */ - { 240, -4 }, /* (110) cmd ::= DROP STABLE exists_opt full_table_name */ - { 240, -3 }, /* (111) cmd ::= ALTER TABLE alter_table_clause */ - { 240, -3 }, /* (112) cmd ::= ALTER STABLE alter_table_clause */ - { 269, -2 }, /* (113) alter_table_clause ::= full_table_name alter_table_options */ - { 269, -5 }, /* (114) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 269, -4 }, /* (115) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 269, -5 }, /* (116) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 269, -5 }, /* (117) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 269, -5 }, /* (118) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 269, -4 }, /* (119) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 269, -5 }, /* (120) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 269, -5 }, /* (121) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 269, -6 }, /* (122) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - { 266, -1 }, /* (123) multi_create_clause ::= create_subtable_clause */ - { 266, -2 }, /* (124) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 274, -10 }, /* (125) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ - { 268, -1 }, /* (126) multi_drop_clause ::= drop_table_clause */ - { 268, -2 }, /* (127) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 277, -2 }, /* (128) drop_table_clause ::= exists_opt full_table_name */ - { 275, 0 }, /* (129) specific_tags_opt ::= */ - { 275, -3 }, /* (130) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 262, -1 }, /* (131) full_table_name ::= table_name */ - { 262, -3 }, /* (132) full_table_name ::= db_name NK_DOT table_name */ - { 263, -1 }, /* (133) column_def_list ::= column_def */ - { 263, -3 }, /* (134) column_def_list ::= column_def_list NK_COMMA column_def */ - { 280, -2 }, /* (135) column_def ::= column_name type_name */ - { 280, -4 }, /* (136) column_def ::= column_name type_name COMMENT NK_STRING */ - { 272, -1 }, /* (137) type_name ::= BOOL */ - { 272, -1 }, /* (138) type_name ::= TINYINT */ - { 272, -1 }, /* (139) type_name ::= SMALLINT */ - { 272, -1 }, /* (140) type_name ::= INT */ - { 272, -1 }, /* (141) type_name ::= INTEGER */ - { 272, -1 }, /* (142) type_name ::= BIGINT */ - { 272, -1 }, /* (143) type_name ::= FLOAT */ - { 272, -1 }, /* (144) type_name ::= DOUBLE */ - { 272, -4 }, /* (145) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 272, -1 }, /* (146) type_name ::= TIMESTAMP */ - { 272, -4 }, /* (147) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 272, -2 }, /* (148) type_name ::= TINYINT UNSIGNED */ - { 272, -2 }, /* (149) type_name ::= SMALLINT UNSIGNED */ - { 272, -2 }, /* (150) type_name ::= INT UNSIGNED */ - { 272, -2 }, /* (151) type_name ::= BIGINT UNSIGNED */ - { 272, -1 }, /* (152) type_name ::= JSON */ - { 272, -4 }, /* (153) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 272, -1 }, /* (154) type_name ::= MEDIUMBLOB */ - { 272, -1 }, /* (155) type_name ::= BLOB */ - { 272, -4 }, /* (156) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 272, -1 }, /* (157) type_name ::= DECIMAL */ - { 272, -4 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 272, -6 }, /* (159) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 264, 0 }, /* (160) tags_def_opt ::= */ - { 264, -1 }, /* (161) tags_def_opt ::= tags_def */ - { 267, -4 }, /* (162) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 265, 0 }, /* (163) table_options ::= */ - { 265, -3 }, /* (164) table_options ::= table_options COMMENT NK_STRING */ - { 265, -3 }, /* (165) table_options ::= table_options FILE_FACTOR NK_FLOAT */ - { 265, -5 }, /* (166) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ - { 265, -3 }, /* (167) table_options ::= table_options TTL NK_INTEGER */ - { 265, -5 }, /* (168) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 270, -1 }, /* (169) alter_table_options ::= alter_table_option */ - { 270, -2 }, /* (170) alter_table_options ::= alter_table_options alter_table_option */ - { 282, -2 }, /* (171) alter_table_option ::= COMMENT NK_STRING */ - { 282, -2 }, /* (172) alter_table_option ::= TTL NK_INTEGER */ - { 278, -1 }, /* (173) col_name_list ::= col_name */ - { 278, -3 }, /* (174) col_name_list ::= col_name_list NK_COMMA col_name */ - { 283, -1 }, /* (175) col_name ::= column_name */ - { 240, -2 }, /* (176) cmd ::= SHOW DNODES */ - { 240, -2 }, /* (177) cmd ::= SHOW USERS */ - { 240, -2 }, /* (178) cmd ::= SHOW DATABASES */ - { 240, -4 }, /* (179) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 240, -4 }, /* (180) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 240, -3 }, /* (181) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 240, -2 }, /* (182) cmd ::= SHOW MNODES */ - { 240, -2 }, /* (183) cmd ::= SHOW MODULES */ - { 240, -2 }, /* (184) cmd ::= SHOW QNODES */ - { 240, -2 }, /* (185) cmd ::= SHOW FUNCTIONS */ - { 240, -5 }, /* (186) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 240, -2 }, /* (187) cmd ::= SHOW STREAMS */ - { 240, -2 }, /* (188) cmd ::= SHOW ACCOUNTS */ - { 240, -2 }, /* (189) cmd ::= SHOW APPS */ - { 240, -2 }, /* (190) cmd ::= SHOW CONNECTIONS */ - { 240, -2 }, /* (191) cmd ::= SHOW LICENCE */ - { 240, -2 }, /* (192) cmd ::= SHOW GRANTS */ - { 240, -4 }, /* (193) cmd ::= SHOW CREATE DATABASE db_name */ - { 240, -4 }, /* (194) cmd ::= SHOW CREATE TABLE full_table_name */ - { 240, -4 }, /* (195) cmd ::= SHOW CREATE STABLE full_table_name */ - { 240, -2 }, /* (196) cmd ::= SHOW QUERIES */ - { 240, -2 }, /* (197) cmd ::= SHOW SCORES */ - { 240, -2 }, /* (198) cmd ::= SHOW TOPICS */ - { 240, -2 }, /* (199) cmd ::= SHOW VARIABLES */ - { 240, -2 }, /* (200) cmd ::= SHOW BNODES */ - { 240, -2 }, /* (201) cmd ::= SHOW SNODES */ - { 240, -2 }, /* (202) cmd ::= SHOW CLUSTER */ - { 240, -2 }, /* (203) cmd ::= SHOW TRANSACTIONS */ - { 284, 0 }, /* (204) db_name_cond_opt ::= */ - { 284, -2 }, /* (205) db_name_cond_opt ::= db_name NK_DOT */ - { 285, 0 }, /* (206) like_pattern_opt ::= */ - { 285, -2 }, /* (207) like_pattern_opt ::= LIKE NK_STRING */ - { 286, -1 }, /* (208) table_name_cond ::= table_name */ - { 287, 0 }, /* (209) from_db_opt ::= */ - { 287, -2 }, /* (210) from_db_opt ::= FROM db_name */ - { 281, -1 }, /* (211) func_name_list ::= func_name */ - { 281, -3 }, /* (212) func_name_list ::= func_name_list NK_COMMA func_name */ - { 288, -1 }, /* (213) func_name ::= function_name */ - { 240, -8 }, /* (214) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 240, -10 }, /* (215) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 240, -6 }, /* (216) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 291, 0 }, /* (217) index_options ::= */ - { 291, -9 }, /* (218) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 291, -11 }, /* (219) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 292, -1 }, /* (220) func_list ::= func */ - { 292, -3 }, /* (221) func_list ::= func_list NK_COMMA func */ - { 295, -4 }, /* (222) func ::= function_name NK_LP expression_list NK_RP */ - { 240, -6 }, /* (223) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 240, -7 }, /* (224) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ - { 240, -7 }, /* (225) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ - { 240, -4 }, /* (226) cmd ::= DROP TOPIC exists_opt topic_name */ - { 240, -7 }, /* (227) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - { 240, -2 }, /* (228) cmd ::= DESC full_table_name */ - { 240, -2 }, /* (229) cmd ::= DESCRIBE full_table_name */ - { 240, -3 }, /* (230) cmd ::= RESET QUERY CACHE */ - { 240, -4 }, /* (231) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 300, 0 }, /* (232) analyze_opt ::= */ - { 300, -1 }, /* (233) analyze_opt ::= ANALYZE */ - { 301, 0 }, /* (234) explain_options ::= */ - { 301, -3 }, /* (235) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 301, -3 }, /* (236) explain_options ::= explain_options RATIO NK_FLOAT */ - { 240, -6 }, /* (237) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 240, -10 }, /* (238) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 240, -4 }, /* (239) cmd ::= DROP FUNCTION exists_opt function_name */ - { 302, 0 }, /* (240) agg_func_opt ::= */ - { 302, -1 }, /* (241) agg_func_opt ::= AGGREGATE */ - { 303, 0 }, /* (242) bufsize_opt ::= */ - { 303, -2 }, /* (243) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 240, -8 }, /* (244) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ - { 240, -4 }, /* (245) cmd ::= DROP STREAM exists_opt stream_name */ - { 306, 0 }, /* (246) into_opt ::= */ - { 306, -2 }, /* (247) into_opt ::= INTO full_table_name */ - { 305, 0 }, /* (248) stream_options ::= */ - { 305, -3 }, /* (249) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 305, -3 }, /* (250) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 305, -4 }, /* (251) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - { 305, -3 }, /* (252) stream_options ::= stream_options WATERMARK duration_literal */ - { 240, -3 }, /* (253) cmd ::= KILL CONNECTION NK_INTEGER */ - { 240, -3 }, /* (254) cmd ::= KILL QUERY NK_STRING */ - { 240, -3 }, /* (255) cmd ::= KILL TRANSACTION NK_INTEGER */ - { 240, -2 }, /* (256) cmd ::= BALANCE VGROUP */ - { 240, -4 }, /* (257) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 240, -4 }, /* (258) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 240, -3 }, /* (259) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 307, -2 }, /* (260) dnode_list ::= DNODE NK_INTEGER */ - { 307, -3 }, /* (261) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 240, -3 }, /* (262) cmd ::= SYNCDB db_name REPLICA */ - { 240, -4 }, /* (263) cmd ::= DELETE FROM full_table_name where_clause_opt */ - { 240, -1 }, /* (264) cmd ::= query_expression */ - { 243, -1 }, /* (265) literal ::= NK_INTEGER */ - { 243, -1 }, /* (266) literal ::= NK_FLOAT */ - { 243, -1 }, /* (267) literal ::= NK_STRING */ - { 243, -1 }, /* (268) literal ::= NK_BOOL */ - { 243, -2 }, /* (269) literal ::= TIMESTAMP NK_STRING */ - { 243, -1 }, /* (270) literal ::= duration_literal */ - { 243, -1 }, /* (271) literal ::= NULL */ - { 243, -1 }, /* (272) literal ::= NK_QUESTION */ - { 293, -1 }, /* (273) duration_literal ::= NK_VARIABLE */ - { 309, -1 }, /* (274) signed ::= NK_INTEGER */ - { 309, -2 }, /* (275) signed ::= NK_PLUS NK_INTEGER */ - { 309, -2 }, /* (276) signed ::= NK_MINUS NK_INTEGER */ - { 309, -1 }, /* (277) signed ::= NK_FLOAT */ - { 309, -2 }, /* (278) signed ::= NK_PLUS NK_FLOAT */ - { 309, -2 }, /* (279) signed ::= NK_MINUS NK_FLOAT */ - { 273, -1 }, /* (280) signed_literal ::= signed */ - { 273, -1 }, /* (281) signed_literal ::= NK_STRING */ - { 273, -1 }, /* (282) signed_literal ::= NK_BOOL */ - { 273, -2 }, /* (283) signed_literal ::= TIMESTAMP NK_STRING */ - { 273, -1 }, /* (284) signed_literal ::= duration_literal */ - { 273, -1 }, /* (285) signed_literal ::= NULL */ - { 273, -1 }, /* (286) signed_literal ::= literal_func */ - { 276, -1 }, /* (287) literal_list ::= signed_literal */ - { 276, -3 }, /* (288) literal_list ::= literal_list NK_COMMA signed_literal */ - { 250, -1 }, /* (289) db_name ::= NK_ID */ - { 279, -1 }, /* (290) table_name ::= NK_ID */ - { 271, -1 }, /* (291) column_name ::= NK_ID */ - { 289, -1 }, /* (292) function_name ::= NK_ID */ - { 311, -1 }, /* (293) table_alias ::= NK_ID */ - { 312, -1 }, /* (294) column_alias ::= NK_ID */ - { 245, -1 }, /* (295) user_name ::= NK_ID */ - { 290, -1 }, /* (296) index_name ::= NK_ID */ - { 297, -1 }, /* (297) topic_name ::= NK_ID */ - { 304, -1 }, /* (298) stream_name ::= NK_ID */ - { 299, -1 }, /* (299) cgroup_name ::= NK_ID */ - { 313, -1 }, /* (300) expression ::= literal */ - { 313, -1 }, /* (301) expression ::= pseudo_column */ - { 313, -1 }, /* (302) expression ::= column_reference */ - { 313, -1 }, /* (303) expression ::= function_expression */ - { 313, -1 }, /* (304) expression ::= subquery */ - { 313, -3 }, /* (305) expression ::= NK_LP expression NK_RP */ - { 313, -2 }, /* (306) expression ::= NK_PLUS expression */ - { 313, -2 }, /* (307) expression ::= NK_MINUS expression */ - { 313, -3 }, /* (308) expression ::= expression NK_PLUS expression */ - { 313, -3 }, /* (309) expression ::= expression NK_MINUS expression */ - { 313, -3 }, /* (310) expression ::= expression NK_STAR expression */ - { 313, -3 }, /* (311) expression ::= expression NK_SLASH expression */ - { 313, -3 }, /* (312) expression ::= expression NK_REM expression */ - { 313, -3 }, /* (313) expression ::= column_reference NK_ARROW NK_STRING */ - { 296, -1 }, /* (314) expression_list ::= expression */ - { 296, -3 }, /* (315) expression_list ::= expression_list NK_COMMA expression */ - { 315, -1 }, /* (316) column_reference ::= column_name */ - { 315, -3 }, /* (317) column_reference ::= table_name NK_DOT column_name */ - { 314, -1 }, /* (318) pseudo_column ::= ROWTS */ - { 314, -1 }, /* (319) pseudo_column ::= TBNAME */ - { 314, -3 }, /* (320) pseudo_column ::= table_name NK_DOT TBNAME */ - { 314, -1 }, /* (321) pseudo_column ::= QSTARTTS */ - { 314, -1 }, /* (322) pseudo_column ::= QENDTS */ - { 314, -1 }, /* (323) pseudo_column ::= WSTARTTS */ - { 314, -1 }, /* (324) pseudo_column ::= WENDTS */ - { 314, -1 }, /* (325) pseudo_column ::= WDURATION */ - { 316, -4 }, /* (326) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 316, -4 }, /* (327) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 316, -6 }, /* (328) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 316, -1 }, /* (329) function_expression ::= literal_func */ - { 310, -3 }, /* (330) literal_func ::= noarg_func NK_LP NK_RP */ - { 310, -1 }, /* (331) literal_func ::= NOW */ - { 320, -1 }, /* (332) noarg_func ::= NOW */ - { 320, -1 }, /* (333) noarg_func ::= TODAY */ - { 320, -1 }, /* (334) noarg_func ::= TIMEZONE */ - { 318, -1 }, /* (335) star_func ::= COUNT */ - { 318, -1 }, /* (336) star_func ::= FIRST */ - { 318, -1 }, /* (337) star_func ::= LAST */ - { 318, -1 }, /* (338) star_func ::= LAST_ROW */ - { 319, -1 }, /* (339) star_func_para_list ::= NK_STAR */ - { 319, -1 }, /* (340) star_func_para_list ::= other_para_list */ - { 321, -1 }, /* (341) other_para_list ::= star_func_para */ - { 321, -3 }, /* (342) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 322, -1 }, /* (343) star_func_para ::= expression */ - { 322, -3 }, /* (344) star_func_para ::= table_name NK_DOT NK_STAR */ - { 323, -3 }, /* (345) predicate ::= expression compare_op expression */ - { 323, -5 }, /* (346) predicate ::= expression BETWEEN expression AND expression */ - { 323, -6 }, /* (347) predicate ::= expression NOT BETWEEN expression AND expression */ - { 323, -3 }, /* (348) predicate ::= expression IS NULL */ - { 323, -4 }, /* (349) predicate ::= expression IS NOT NULL */ - { 323, -3 }, /* (350) predicate ::= expression in_op in_predicate_value */ - { 324, -1 }, /* (351) compare_op ::= NK_LT */ - { 324, -1 }, /* (352) compare_op ::= NK_GT */ - { 324, -1 }, /* (353) compare_op ::= NK_LE */ - { 324, -1 }, /* (354) compare_op ::= NK_GE */ - { 324, -1 }, /* (355) compare_op ::= NK_NE */ - { 324, -1 }, /* (356) compare_op ::= NK_EQ */ - { 324, -1 }, /* (357) compare_op ::= LIKE */ - { 324, -2 }, /* (358) compare_op ::= NOT LIKE */ - { 324, -1 }, /* (359) compare_op ::= MATCH */ - { 324, -1 }, /* (360) compare_op ::= NMATCH */ - { 324, -1 }, /* (361) compare_op ::= CONTAINS */ - { 325, -1 }, /* (362) in_op ::= IN */ - { 325, -2 }, /* (363) in_op ::= NOT IN */ - { 326, -3 }, /* (364) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 327, -1 }, /* (365) boolean_value_expression ::= boolean_primary */ - { 327, -2 }, /* (366) boolean_value_expression ::= NOT boolean_primary */ - { 327, -3 }, /* (367) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 327, -3 }, /* (368) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 328, -1 }, /* (369) boolean_primary ::= predicate */ - { 328, -3 }, /* (370) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 329, -1 }, /* (371) common_expression ::= expression */ - { 329, -1 }, /* (372) common_expression ::= boolean_value_expression */ - { 330, -2 }, /* (373) from_clause ::= FROM table_reference_list */ - { 331, -1 }, /* (374) table_reference_list ::= table_reference */ - { 331, -3 }, /* (375) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 332, -1 }, /* (376) table_reference ::= table_primary */ - { 332, -1 }, /* (377) table_reference ::= joined_table */ - { 333, -2 }, /* (378) table_primary ::= table_name alias_opt */ - { 333, -4 }, /* (379) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 333, -2 }, /* (380) table_primary ::= subquery alias_opt */ - { 333, -1 }, /* (381) table_primary ::= parenthesized_joined_table */ - { 335, 0 }, /* (382) alias_opt ::= */ - { 335, -1 }, /* (383) alias_opt ::= table_alias */ - { 335, -2 }, /* (384) alias_opt ::= AS table_alias */ - { 336, -3 }, /* (385) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 336, -3 }, /* (386) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 334, -6 }, /* (387) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 337, 0 }, /* (388) join_type ::= */ - { 337, -1 }, /* (389) join_type ::= INNER */ - { 339, -9 }, /* (390) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 340, 0 }, /* (391) set_quantifier_opt ::= */ - { 340, -1 }, /* (392) set_quantifier_opt ::= DISTINCT */ - { 340, -1 }, /* (393) set_quantifier_opt ::= ALL */ - { 341, -1 }, /* (394) select_list ::= NK_STAR */ - { 341, -1 }, /* (395) select_list ::= select_sublist */ - { 346, -1 }, /* (396) select_sublist ::= select_item */ - { 346, -3 }, /* (397) select_sublist ::= select_sublist NK_COMMA select_item */ - { 347, -1 }, /* (398) select_item ::= common_expression */ - { 347, -2 }, /* (399) select_item ::= common_expression column_alias */ - { 347, -3 }, /* (400) select_item ::= common_expression AS column_alias */ - { 347, -3 }, /* (401) select_item ::= table_name NK_DOT NK_STAR */ - { 308, 0 }, /* (402) where_clause_opt ::= */ - { 308, -2 }, /* (403) where_clause_opt ::= WHERE search_condition */ - { 342, 0 }, /* (404) partition_by_clause_opt ::= */ - { 342, -3 }, /* (405) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 343, 0 }, /* (406) twindow_clause_opt ::= */ - { 343, -6 }, /* (407) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 343, -4 }, /* (408) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 343, -6 }, /* (409) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 343, -8 }, /* (410) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 294, 0 }, /* (411) sliding_opt ::= */ - { 294, -4 }, /* (412) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 348, 0 }, /* (413) fill_opt ::= */ - { 348, -4 }, /* (414) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 348, -6 }, /* (415) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 349, -1 }, /* (416) fill_mode ::= NONE */ - { 349, -1 }, /* (417) fill_mode ::= PREV */ - { 349, -1 }, /* (418) fill_mode ::= NULL */ - { 349, -1 }, /* (419) fill_mode ::= LINEAR */ - { 349, -1 }, /* (420) fill_mode ::= NEXT */ - { 344, 0 }, /* (421) group_by_clause_opt ::= */ - { 344, -3 }, /* (422) group_by_clause_opt ::= GROUP BY group_by_list */ - { 350, -1 }, /* (423) group_by_list ::= expression */ - { 350, -3 }, /* (424) group_by_list ::= group_by_list NK_COMMA expression */ - { 345, 0 }, /* (425) having_clause_opt ::= */ - { 345, -2 }, /* (426) having_clause_opt ::= HAVING search_condition */ - { 298, -4 }, /* (427) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 351, -1 }, /* (428) query_expression_body ::= query_primary */ - { 351, -4 }, /* (429) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 351, -3 }, /* (430) query_expression_body ::= query_expression_body UNION query_expression_body */ - { 355, -1 }, /* (431) query_primary ::= query_specification */ - { 355, -6 }, /* (432) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ - { 352, 0 }, /* (433) order_by_clause_opt ::= */ - { 352, -3 }, /* (434) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 353, 0 }, /* (435) slimit_clause_opt ::= */ - { 353, -2 }, /* (436) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 353, -4 }, /* (437) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 353, -4 }, /* (438) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 354, 0 }, /* (439) limit_clause_opt ::= */ - { 354, -2 }, /* (440) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 354, -4 }, /* (441) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 354, -4 }, /* (442) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 317, -3 }, /* (443) subquery ::= NK_LP query_expression NK_RP */ - { 338, -1 }, /* (444) search_condition ::= common_expression */ - { 356, -1 }, /* (445) sort_specification_list ::= sort_specification */ - { 356, -3 }, /* (446) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 357, -3 }, /* (447) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 358, 0 }, /* (448) ordering_specification_opt ::= */ - { 358, -1 }, /* (449) ordering_specification_opt ::= ASC */ - { 358, -1 }, /* (450) ordering_specification_opt ::= DESC */ - { 359, 0 }, /* (451) null_ordering_opt ::= */ - { 359, -2 }, /* (452) null_ordering_opt ::= NULLS FIRST */ - { 359, -2 }, /* (453) null_ordering_opt ::= NULLS LAST */ + { 239, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 239, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 240, 0 }, /* (2) account_options ::= */ + { 240, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 240, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 240, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 240, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 240, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 240, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 240, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 240, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 240, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 241, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 241, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 243, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 243, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 243, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 243, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 243, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 243, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 243, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 243, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 243, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 243, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 239, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ + { 239, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 239, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + { 239, -3 }, /* (27) cmd ::= DROP USER user_name */ + { 239, -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */ + { 239, -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */ + { 245, -1 }, /* (30) privileges ::= ALL */ + { 245, -1 }, /* (31) privileges ::= priv_type_list */ + { 247, -1 }, /* (32) priv_type_list ::= priv_type */ + { 247, -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + { 248, -1 }, /* (34) priv_type ::= READ */ + { 248, -1 }, /* (35) priv_type ::= WRITE */ + { 246, -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */ + { 246, -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */ + { 239, -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */ + { 239, -5 }, /* (39) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ + { 239, -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */ + { 239, -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */ + { 239, -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 239, -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 239, -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */ + { 239, -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 250, -1 }, /* (46) dnode_endpoint ::= NK_STRING */ + { 251, -1 }, /* (47) dnode_host_name ::= NK_ID */ + { 251, -1 }, /* (48) dnode_host_name ::= NK_IPTOKEN */ + { 239, -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */ + { 239, -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 239, -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 239, -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */ + { 239, -2 }, /* (61) cmd ::= USE db_name */ + { 239, -4 }, /* (62) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 252, -3 }, /* (63) not_exists_opt ::= IF NOT EXISTS */ + { 252, 0 }, /* (64) not_exists_opt ::= */ + { 254, -2 }, /* (65) exists_opt ::= IF EXISTS */ + { 254, 0 }, /* (66) exists_opt ::= */ + { 253, 0 }, /* (67) db_options ::= */ + { 253, -3 }, /* (68) db_options ::= db_options BUFFER NK_INTEGER */ + { 253, -3 }, /* (69) db_options ::= db_options CACHELAST NK_INTEGER */ + { 253, -3 }, /* (70) db_options ::= db_options COMP NK_INTEGER */ + { 253, -3 }, /* (71) db_options ::= db_options DURATION NK_INTEGER */ + { 253, -3 }, /* (72) db_options ::= db_options DURATION NK_VARIABLE */ + { 253, -3 }, /* (73) db_options ::= db_options FSYNC NK_INTEGER */ + { 253, -3 }, /* (74) db_options ::= db_options MAXROWS NK_INTEGER */ + { 253, -3 }, /* (75) db_options ::= db_options MINROWS NK_INTEGER */ + { 253, -3 }, /* (76) db_options ::= db_options KEEP integer_list */ + { 253, -3 }, /* (77) db_options ::= db_options KEEP variable_list */ + { 253, -3 }, /* (78) db_options ::= db_options PAGES NK_INTEGER */ + { 253, -3 }, /* (79) db_options ::= db_options PAGESIZE NK_INTEGER */ + { 253, -3 }, /* (80) db_options ::= db_options PRECISION NK_STRING */ + { 253, -3 }, /* (81) db_options ::= db_options REPLICA NK_INTEGER */ + { 253, -3 }, /* (82) db_options ::= db_options STRICT NK_INTEGER */ + { 253, -3 }, /* (83) db_options ::= db_options WAL NK_INTEGER */ + { 253, -3 }, /* (84) db_options ::= db_options VGROUPS NK_INTEGER */ + { 253, -3 }, /* (85) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 253, -3 }, /* (86) db_options ::= db_options RETENTIONS retention_list */ + { 253, -3 }, /* (87) db_options ::= db_options SCHEMALESS NK_INTEGER */ + { 255, -1 }, /* (88) alter_db_options ::= alter_db_option */ + { 255, -2 }, /* (89) alter_db_options ::= alter_db_options alter_db_option */ + { 259, -2 }, /* (90) alter_db_option ::= BUFFER NK_INTEGER */ + { 259, -2 }, /* (91) alter_db_option ::= CACHELAST NK_INTEGER */ + { 259, -2 }, /* (92) alter_db_option ::= FSYNC NK_INTEGER */ + { 259, -2 }, /* (93) alter_db_option ::= KEEP integer_list */ + { 259, -2 }, /* (94) alter_db_option ::= KEEP variable_list */ + { 259, -2 }, /* (95) alter_db_option ::= PAGES NK_INTEGER */ + { 259, -2 }, /* (96) alter_db_option ::= REPLICA NK_INTEGER */ + { 259, -2 }, /* (97) alter_db_option ::= STRICT NK_INTEGER */ + { 259, -2 }, /* (98) alter_db_option ::= WAL NK_INTEGER */ + { 256, -1 }, /* (99) integer_list ::= NK_INTEGER */ + { 256, -3 }, /* (100) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 257, -1 }, /* (101) variable_list ::= NK_VARIABLE */ + { 257, -3 }, /* (102) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 258, -1 }, /* (103) retention_list ::= retention */ + { 258, -3 }, /* (104) retention_list ::= retention_list NK_COMMA retention */ + { 260, -3 }, /* (105) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 239, -9 }, /* (106) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 239, -3 }, /* (107) cmd ::= CREATE TABLE multi_create_clause */ + { 239, -9 }, /* (108) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 239, -3 }, /* (109) cmd ::= DROP TABLE multi_drop_clause */ + { 239, -4 }, /* (110) cmd ::= DROP STABLE exists_opt full_table_name */ + { 239, -3 }, /* (111) cmd ::= ALTER TABLE alter_table_clause */ + { 239, -3 }, /* (112) cmd ::= ALTER STABLE alter_table_clause */ + { 268, -2 }, /* (113) alter_table_clause ::= full_table_name alter_table_options */ + { 268, -5 }, /* (114) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 268, -4 }, /* (115) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 268, -5 }, /* (116) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 268, -5 }, /* (117) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 268, -5 }, /* (118) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 268, -4 }, /* (119) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 268, -5 }, /* (120) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 268, -5 }, /* (121) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 268, -6 }, /* (122) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + { 265, -1 }, /* (123) multi_create_clause ::= create_subtable_clause */ + { 265, -2 }, /* (124) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 273, -10 }, /* (125) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ + { 267, -1 }, /* (126) multi_drop_clause ::= drop_table_clause */ + { 267, -2 }, /* (127) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 276, -2 }, /* (128) drop_table_clause ::= exists_opt full_table_name */ + { 274, 0 }, /* (129) specific_tags_opt ::= */ + { 274, -3 }, /* (130) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 261, -1 }, /* (131) full_table_name ::= table_name */ + { 261, -3 }, /* (132) full_table_name ::= db_name NK_DOT table_name */ + { 262, -1 }, /* (133) column_def_list ::= column_def */ + { 262, -3 }, /* (134) column_def_list ::= column_def_list NK_COMMA column_def */ + { 279, -2 }, /* (135) column_def ::= column_name type_name */ + { 279, -4 }, /* (136) column_def ::= column_name type_name COMMENT NK_STRING */ + { 271, -1 }, /* (137) type_name ::= BOOL */ + { 271, -1 }, /* (138) type_name ::= TINYINT */ + { 271, -1 }, /* (139) type_name ::= SMALLINT */ + { 271, -1 }, /* (140) type_name ::= INT */ + { 271, -1 }, /* (141) type_name ::= INTEGER */ + { 271, -1 }, /* (142) type_name ::= BIGINT */ + { 271, -1 }, /* (143) type_name ::= FLOAT */ + { 271, -1 }, /* (144) type_name ::= DOUBLE */ + { 271, -4 }, /* (145) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 271, -1 }, /* (146) type_name ::= TIMESTAMP */ + { 271, -4 }, /* (147) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 271, -2 }, /* (148) type_name ::= TINYINT UNSIGNED */ + { 271, -2 }, /* (149) type_name ::= SMALLINT UNSIGNED */ + { 271, -2 }, /* (150) type_name ::= INT UNSIGNED */ + { 271, -2 }, /* (151) type_name ::= BIGINT UNSIGNED */ + { 271, -1 }, /* (152) type_name ::= JSON */ + { 271, -4 }, /* (153) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 271, -1 }, /* (154) type_name ::= MEDIUMBLOB */ + { 271, -1 }, /* (155) type_name ::= BLOB */ + { 271, -4 }, /* (156) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 271, -1 }, /* (157) type_name ::= DECIMAL */ + { 271, -4 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 271, -6 }, /* (159) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 263, 0 }, /* (160) tags_def_opt ::= */ + { 263, -1 }, /* (161) tags_def_opt ::= tags_def */ + { 266, -4 }, /* (162) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 264, 0 }, /* (163) table_options ::= */ + { 264, -3 }, /* (164) table_options ::= table_options COMMENT NK_STRING */ + { 264, -3 }, /* (165) table_options ::= table_options MAX_DELAY duration_list */ + { 264, -3 }, /* (166) table_options ::= table_options WATERMARK duration_list */ + { 264, -5 }, /* (167) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + { 264, -3 }, /* (168) table_options ::= table_options TTL NK_INTEGER */ + { 264, -5 }, /* (169) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 269, -1 }, /* (170) alter_table_options ::= alter_table_option */ + { 269, -2 }, /* (171) alter_table_options ::= alter_table_options alter_table_option */ + { 282, -2 }, /* (172) alter_table_option ::= COMMENT NK_STRING */ + { 282, -2 }, /* (173) alter_table_option ::= TTL NK_INTEGER */ + { 280, -1 }, /* (174) duration_list ::= duration_literal */ + { 280, -3 }, /* (175) duration_list ::= duration_list NK_COMMA duration_literal */ + { 281, -1 }, /* (176) rollup_func_list ::= rollup_func_name */ + { 281, -3 }, /* (177) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + { 284, -1 }, /* (178) rollup_func_name ::= function_name */ + { 284, -1 }, /* (179) rollup_func_name ::= FIRST */ + { 284, -1 }, /* (180) rollup_func_name ::= LAST */ + { 277, -1 }, /* (181) col_name_list ::= col_name */ + { 277, -3 }, /* (182) col_name_list ::= col_name_list NK_COMMA col_name */ + { 286, -1 }, /* (183) col_name ::= column_name */ + { 239, -2 }, /* (184) cmd ::= SHOW DNODES */ + { 239, -2 }, /* (185) cmd ::= SHOW USERS */ + { 239, -2 }, /* (186) cmd ::= SHOW DATABASES */ + { 239, -4 }, /* (187) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 239, -4 }, /* (188) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 239, -3 }, /* (189) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 239, -2 }, /* (190) cmd ::= SHOW MNODES */ + { 239, -2 }, /* (191) cmd ::= SHOW MODULES */ + { 239, -2 }, /* (192) cmd ::= SHOW QNODES */ + { 239, -2 }, /* (193) cmd ::= SHOW FUNCTIONS */ + { 239, -5 }, /* (194) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 239, -2 }, /* (195) cmd ::= SHOW STREAMS */ + { 239, -2 }, /* (196) cmd ::= SHOW ACCOUNTS */ + { 239, -2 }, /* (197) cmd ::= SHOW APPS */ + { 239, -2 }, /* (198) cmd ::= SHOW CONNECTIONS */ + { 239, -2 }, /* (199) cmd ::= SHOW LICENCE */ + { 239, -2 }, /* (200) cmd ::= SHOW GRANTS */ + { 239, -4 }, /* (201) cmd ::= SHOW CREATE DATABASE db_name */ + { 239, -4 }, /* (202) cmd ::= SHOW CREATE TABLE full_table_name */ + { 239, -4 }, /* (203) cmd ::= SHOW CREATE STABLE full_table_name */ + { 239, -2 }, /* (204) cmd ::= SHOW QUERIES */ + { 239, -2 }, /* (205) cmd ::= SHOW SCORES */ + { 239, -2 }, /* (206) cmd ::= SHOW TOPICS */ + { 239, -2 }, /* (207) cmd ::= SHOW VARIABLES */ + { 239, -2 }, /* (208) cmd ::= SHOW BNODES */ + { 239, -2 }, /* (209) cmd ::= SHOW SNODES */ + { 239, -2 }, /* (210) cmd ::= SHOW CLUSTER */ + { 239, -2 }, /* (211) cmd ::= SHOW TRANSACTIONS */ + { 287, 0 }, /* (212) db_name_cond_opt ::= */ + { 287, -2 }, /* (213) db_name_cond_opt ::= db_name NK_DOT */ + { 288, 0 }, /* (214) like_pattern_opt ::= */ + { 288, -2 }, /* (215) like_pattern_opt ::= LIKE NK_STRING */ + { 289, -1 }, /* (216) table_name_cond ::= table_name */ + { 290, 0 }, /* (217) from_db_opt ::= */ + { 290, -2 }, /* (218) from_db_opt ::= FROM db_name */ + { 239, -8 }, /* (219) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 239, -10 }, /* (220) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 239, -6 }, /* (221) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 292, 0 }, /* (222) index_options ::= */ + { 292, -9 }, /* (223) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 292, -11 }, /* (224) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 293, -1 }, /* (225) func_list ::= func */ + { 293, -3 }, /* (226) func_list ::= func_list NK_COMMA func */ + { 295, -4 }, /* (227) func ::= function_name NK_LP expression_list NK_RP */ + { 239, -6 }, /* (228) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 239, -7 }, /* (229) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + { 239, -7 }, /* (230) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + { 239, -4 }, /* (231) cmd ::= DROP TOPIC exists_opt topic_name */ + { 239, -7 }, /* (232) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + { 239, -2 }, /* (233) cmd ::= DESC full_table_name */ + { 239, -2 }, /* (234) cmd ::= DESCRIBE full_table_name */ + { 239, -3 }, /* (235) cmd ::= RESET QUERY CACHE */ + { 239, -4 }, /* (236) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 300, 0 }, /* (237) analyze_opt ::= */ + { 300, -1 }, /* (238) analyze_opt ::= ANALYZE */ + { 301, 0 }, /* (239) explain_options ::= */ + { 301, -3 }, /* (240) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 301, -3 }, /* (241) explain_options ::= explain_options RATIO NK_FLOAT */ + { 239, -6 }, /* (242) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 239, -10 }, /* (243) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 239, -4 }, /* (244) cmd ::= DROP FUNCTION exists_opt function_name */ + { 302, 0 }, /* (245) agg_func_opt ::= */ + { 302, -1 }, /* (246) agg_func_opt ::= AGGREGATE */ + { 303, 0 }, /* (247) bufsize_opt ::= */ + { 303, -2 }, /* (248) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 239, -8 }, /* (249) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + { 239, -4 }, /* (250) cmd ::= DROP STREAM exists_opt stream_name */ + { 306, 0 }, /* (251) into_opt ::= */ + { 306, -2 }, /* (252) into_opt ::= INTO full_table_name */ + { 305, 0 }, /* (253) stream_options ::= */ + { 305, -3 }, /* (254) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 305, -3 }, /* (255) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 305, -4 }, /* (256) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + { 305, -3 }, /* (257) stream_options ::= stream_options WATERMARK duration_literal */ + { 239, -3 }, /* (258) cmd ::= KILL CONNECTION NK_INTEGER */ + { 239, -3 }, /* (259) cmd ::= KILL QUERY NK_STRING */ + { 239, -3 }, /* (260) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 239, -2 }, /* (261) cmd ::= BALANCE VGROUP */ + { 239, -4 }, /* (262) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 239, -4 }, /* (263) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 239, -3 }, /* (264) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 307, -2 }, /* (265) dnode_list ::= DNODE NK_INTEGER */ + { 307, -3 }, /* (266) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 239, -3 }, /* (267) cmd ::= SYNCDB db_name REPLICA */ + { 239, -4 }, /* (268) cmd ::= DELETE FROM full_table_name where_clause_opt */ + { 239, -1 }, /* (269) cmd ::= query_expression */ + { 242, -1 }, /* (270) literal ::= NK_INTEGER */ + { 242, -1 }, /* (271) literal ::= NK_FLOAT */ + { 242, -1 }, /* (272) literal ::= NK_STRING */ + { 242, -1 }, /* (273) literal ::= NK_BOOL */ + { 242, -2 }, /* (274) literal ::= TIMESTAMP NK_STRING */ + { 242, -1 }, /* (275) literal ::= duration_literal */ + { 242, -1 }, /* (276) literal ::= NULL */ + { 242, -1 }, /* (277) literal ::= NK_QUESTION */ + { 283, -1 }, /* (278) duration_literal ::= NK_VARIABLE */ + { 309, -1 }, /* (279) signed ::= NK_INTEGER */ + { 309, -2 }, /* (280) signed ::= NK_PLUS NK_INTEGER */ + { 309, -2 }, /* (281) signed ::= NK_MINUS NK_INTEGER */ + { 309, -1 }, /* (282) signed ::= NK_FLOAT */ + { 309, -2 }, /* (283) signed ::= NK_PLUS NK_FLOAT */ + { 309, -2 }, /* (284) signed ::= NK_MINUS NK_FLOAT */ + { 272, -1 }, /* (285) signed_literal ::= signed */ + { 272, -1 }, /* (286) signed_literal ::= NK_STRING */ + { 272, -1 }, /* (287) signed_literal ::= NK_BOOL */ + { 272, -2 }, /* (288) signed_literal ::= TIMESTAMP NK_STRING */ + { 272, -1 }, /* (289) signed_literal ::= duration_literal */ + { 272, -1 }, /* (290) signed_literal ::= NULL */ + { 272, -1 }, /* (291) signed_literal ::= literal_func */ + { 275, -1 }, /* (292) literal_list ::= signed_literal */ + { 275, -3 }, /* (293) literal_list ::= literal_list NK_COMMA signed_literal */ + { 249, -1 }, /* (294) db_name ::= NK_ID */ + { 278, -1 }, /* (295) table_name ::= NK_ID */ + { 270, -1 }, /* (296) column_name ::= NK_ID */ + { 285, -1 }, /* (297) function_name ::= NK_ID */ + { 311, -1 }, /* (298) table_alias ::= NK_ID */ + { 312, -1 }, /* (299) column_alias ::= NK_ID */ + { 244, -1 }, /* (300) user_name ::= NK_ID */ + { 291, -1 }, /* (301) index_name ::= NK_ID */ + { 297, -1 }, /* (302) topic_name ::= NK_ID */ + { 304, -1 }, /* (303) stream_name ::= NK_ID */ + { 299, -1 }, /* (304) cgroup_name ::= NK_ID */ + { 313, -1 }, /* (305) expression ::= literal */ + { 313, -1 }, /* (306) expression ::= pseudo_column */ + { 313, -1 }, /* (307) expression ::= column_reference */ + { 313, -1 }, /* (308) expression ::= function_expression */ + { 313, -1 }, /* (309) expression ::= subquery */ + { 313, -3 }, /* (310) expression ::= NK_LP expression NK_RP */ + { 313, -2 }, /* (311) expression ::= NK_PLUS expression */ + { 313, -2 }, /* (312) expression ::= NK_MINUS expression */ + { 313, -3 }, /* (313) expression ::= expression NK_PLUS expression */ + { 313, -3 }, /* (314) expression ::= expression NK_MINUS expression */ + { 313, -3 }, /* (315) expression ::= expression NK_STAR expression */ + { 313, -3 }, /* (316) expression ::= expression NK_SLASH expression */ + { 313, -3 }, /* (317) expression ::= expression NK_REM expression */ + { 313, -3 }, /* (318) expression ::= column_reference NK_ARROW NK_STRING */ + { 296, -1 }, /* (319) expression_list ::= expression */ + { 296, -3 }, /* (320) expression_list ::= expression_list NK_COMMA expression */ + { 315, -1 }, /* (321) column_reference ::= column_name */ + { 315, -3 }, /* (322) column_reference ::= table_name NK_DOT column_name */ + { 314, -1 }, /* (323) pseudo_column ::= ROWTS */ + { 314, -1 }, /* (324) pseudo_column ::= TBNAME */ + { 314, -3 }, /* (325) pseudo_column ::= table_name NK_DOT TBNAME */ + { 314, -1 }, /* (326) pseudo_column ::= QSTARTTS */ + { 314, -1 }, /* (327) pseudo_column ::= QENDTS */ + { 314, -1 }, /* (328) pseudo_column ::= WSTARTTS */ + { 314, -1 }, /* (329) pseudo_column ::= WENDTS */ + { 314, -1 }, /* (330) pseudo_column ::= WDURATION */ + { 316, -4 }, /* (331) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 316, -4 }, /* (332) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 316, -6 }, /* (333) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 316, -1 }, /* (334) function_expression ::= literal_func */ + { 310, -3 }, /* (335) literal_func ::= noarg_func NK_LP NK_RP */ + { 310, -1 }, /* (336) literal_func ::= NOW */ + { 320, -1 }, /* (337) noarg_func ::= NOW */ + { 320, -1 }, /* (338) noarg_func ::= TODAY */ + { 320, -1 }, /* (339) noarg_func ::= TIMEZONE */ + { 318, -1 }, /* (340) star_func ::= COUNT */ + { 318, -1 }, /* (341) star_func ::= FIRST */ + { 318, -1 }, /* (342) star_func ::= LAST */ + { 318, -1 }, /* (343) star_func ::= LAST_ROW */ + { 319, -1 }, /* (344) star_func_para_list ::= NK_STAR */ + { 319, -1 }, /* (345) star_func_para_list ::= other_para_list */ + { 321, -1 }, /* (346) other_para_list ::= star_func_para */ + { 321, -3 }, /* (347) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 322, -1 }, /* (348) star_func_para ::= expression */ + { 322, -3 }, /* (349) star_func_para ::= table_name NK_DOT NK_STAR */ + { 323, -3 }, /* (350) predicate ::= expression compare_op expression */ + { 323, -5 }, /* (351) predicate ::= expression BETWEEN expression AND expression */ + { 323, -6 }, /* (352) predicate ::= expression NOT BETWEEN expression AND expression */ + { 323, -3 }, /* (353) predicate ::= expression IS NULL */ + { 323, -4 }, /* (354) predicate ::= expression IS NOT NULL */ + { 323, -3 }, /* (355) predicate ::= expression in_op in_predicate_value */ + { 324, -1 }, /* (356) compare_op ::= NK_LT */ + { 324, -1 }, /* (357) compare_op ::= NK_GT */ + { 324, -1 }, /* (358) compare_op ::= NK_LE */ + { 324, -1 }, /* (359) compare_op ::= NK_GE */ + { 324, -1 }, /* (360) compare_op ::= NK_NE */ + { 324, -1 }, /* (361) compare_op ::= NK_EQ */ + { 324, -1 }, /* (362) compare_op ::= LIKE */ + { 324, -2 }, /* (363) compare_op ::= NOT LIKE */ + { 324, -1 }, /* (364) compare_op ::= MATCH */ + { 324, -1 }, /* (365) compare_op ::= NMATCH */ + { 324, -1 }, /* (366) compare_op ::= CONTAINS */ + { 325, -1 }, /* (367) in_op ::= IN */ + { 325, -2 }, /* (368) in_op ::= NOT IN */ + { 326, -3 }, /* (369) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 327, -1 }, /* (370) boolean_value_expression ::= boolean_primary */ + { 327, -2 }, /* (371) boolean_value_expression ::= NOT boolean_primary */ + { 327, -3 }, /* (372) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 327, -3 }, /* (373) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 328, -1 }, /* (374) boolean_primary ::= predicate */ + { 328, -3 }, /* (375) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 329, -1 }, /* (376) common_expression ::= expression */ + { 329, -1 }, /* (377) common_expression ::= boolean_value_expression */ + { 330, -2 }, /* (378) from_clause ::= FROM table_reference_list */ + { 331, -1 }, /* (379) table_reference_list ::= table_reference */ + { 331, -3 }, /* (380) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 332, -1 }, /* (381) table_reference ::= table_primary */ + { 332, -1 }, /* (382) table_reference ::= joined_table */ + { 333, -2 }, /* (383) table_primary ::= table_name alias_opt */ + { 333, -4 }, /* (384) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 333, -2 }, /* (385) table_primary ::= subquery alias_opt */ + { 333, -1 }, /* (386) table_primary ::= parenthesized_joined_table */ + { 335, 0 }, /* (387) alias_opt ::= */ + { 335, -1 }, /* (388) alias_opt ::= table_alias */ + { 335, -2 }, /* (389) alias_opt ::= AS table_alias */ + { 336, -3 }, /* (390) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 336, -3 }, /* (391) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 334, -6 }, /* (392) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 337, 0 }, /* (393) join_type ::= */ + { 337, -1 }, /* (394) join_type ::= INNER */ + { 339, -9 }, /* (395) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 340, 0 }, /* (396) set_quantifier_opt ::= */ + { 340, -1 }, /* (397) set_quantifier_opt ::= DISTINCT */ + { 340, -1 }, /* (398) set_quantifier_opt ::= ALL */ + { 341, -1 }, /* (399) select_list ::= NK_STAR */ + { 341, -1 }, /* (400) select_list ::= select_sublist */ + { 346, -1 }, /* (401) select_sublist ::= select_item */ + { 346, -3 }, /* (402) select_sublist ::= select_sublist NK_COMMA select_item */ + { 347, -1 }, /* (403) select_item ::= common_expression */ + { 347, -2 }, /* (404) select_item ::= common_expression column_alias */ + { 347, -3 }, /* (405) select_item ::= common_expression AS column_alias */ + { 347, -3 }, /* (406) select_item ::= table_name NK_DOT NK_STAR */ + { 308, 0 }, /* (407) where_clause_opt ::= */ + { 308, -2 }, /* (408) where_clause_opt ::= WHERE search_condition */ + { 342, 0 }, /* (409) partition_by_clause_opt ::= */ + { 342, -3 }, /* (410) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 343, 0 }, /* (411) twindow_clause_opt ::= */ + { 343, -6 }, /* (412) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 343, -4 }, /* (413) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 343, -6 }, /* (414) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 343, -8 }, /* (415) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 294, 0 }, /* (416) sliding_opt ::= */ + { 294, -4 }, /* (417) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 348, 0 }, /* (418) fill_opt ::= */ + { 348, -4 }, /* (419) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 348, -6 }, /* (420) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 349, -1 }, /* (421) fill_mode ::= NONE */ + { 349, -1 }, /* (422) fill_mode ::= PREV */ + { 349, -1 }, /* (423) fill_mode ::= NULL */ + { 349, -1 }, /* (424) fill_mode ::= LINEAR */ + { 349, -1 }, /* (425) fill_mode ::= NEXT */ + { 344, 0 }, /* (426) group_by_clause_opt ::= */ + { 344, -3 }, /* (427) group_by_clause_opt ::= GROUP BY group_by_list */ + { 350, -1 }, /* (428) group_by_list ::= expression */ + { 350, -3 }, /* (429) group_by_list ::= group_by_list NK_COMMA expression */ + { 345, 0 }, /* (430) having_clause_opt ::= */ + { 345, -2 }, /* (431) having_clause_opt ::= HAVING search_condition */ + { 298, -4 }, /* (432) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 351, -1 }, /* (433) query_expression_body ::= query_primary */ + { 351, -4 }, /* (434) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 351, -3 }, /* (435) query_expression_body ::= query_expression_body UNION query_expression_body */ + { 355, -1 }, /* (436) query_primary ::= query_specification */ + { 355, -6 }, /* (437) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + { 352, 0 }, /* (438) order_by_clause_opt ::= */ + { 352, -3 }, /* (439) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 353, 0 }, /* (440) slimit_clause_opt ::= */ + { 353, -2 }, /* (441) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 353, -4 }, /* (442) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 353, -4 }, /* (443) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 354, 0 }, /* (444) limit_clause_opt ::= */ + { 354, -2 }, /* (445) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 354, -4 }, /* (446) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 354, -4 }, /* (447) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 317, -3 }, /* (448) subquery ::= NK_LP query_expression NK_RP */ + { 338, -1 }, /* (449) search_condition ::= common_expression */ + { 356, -1 }, /* (450) sort_specification_list ::= sort_specification */ + { 356, -3 }, /* (451) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 357, -3 }, /* (452) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 358, 0 }, /* (453) ordering_specification_opt ::= */ + { 358, -1 }, /* (454) ordering_specification_opt ::= ASC */ + { 358, -1 }, /* (455) ordering_specification_opt ::= DESC */ + { 359, 0 }, /* (456) null_ordering_opt ::= */ + { 359, -2 }, /* (457) null_ordering_opt ::= NULLS FIRST */ + { 359, -2 }, /* (458) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3117,11 +3132,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,241,&yymsp[0].minor); + yy_destructor(yypParser,240,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,242,&yymsp[0].minor); + yy_destructor(yypParser,241,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3135,20 +3150,20 @@ static YYACTIONTYPE yy_reduce( case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); -{ yy_destructor(yypParser,241,&yymsp[-2].minor); +{ yy_destructor(yypParser,240,&yymsp[-2].minor); { } - yy_destructor(yypParser,243,&yymsp[0].minor); + yy_destructor(yypParser,242,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,244,&yymsp[0].minor); +{ yy_destructor(yypParser,243,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,242,&yymsp[-1].minor); +{ yy_destructor(yypParser,241,&yymsp[-1].minor); { } - yy_destructor(yypParser,244,&yymsp[0].minor); + yy_destructor(yypParser,243,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3162,7 +3177,7 @@ static YYACTIONTYPE yy_reduce( case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } - yy_destructor(yypParser,243,&yymsp[0].minor); + yy_destructor(yypParser,242,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0); } @@ -3235,24 +3250,24 @@ static YYACTIONTYPE yy_reduce( 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 289: /* db_name ::= NK_ID */ yytestcase(yyruleno==289); - case 290: /* table_name ::= NK_ID */ yytestcase(yyruleno==290); - case 291: /* column_name ::= NK_ID */ yytestcase(yyruleno==291); - case 292: /* function_name ::= NK_ID */ yytestcase(yyruleno==292); - case 293: /* table_alias ::= NK_ID */ yytestcase(yyruleno==293); - case 294: /* column_alias ::= NK_ID */ yytestcase(yyruleno==294); - case 295: /* user_name ::= NK_ID */ yytestcase(yyruleno==295); - case 296: /* index_name ::= NK_ID */ yytestcase(yyruleno==296); - case 297: /* topic_name ::= NK_ID */ yytestcase(yyruleno==297); - case 298: /* stream_name ::= NK_ID */ yytestcase(yyruleno==298); - case 299: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==299); - case 332: /* noarg_func ::= NOW */ yytestcase(yyruleno==332); - case 333: /* noarg_func ::= TODAY */ yytestcase(yyruleno==333); - case 334: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==334); - case 335: /* star_func ::= COUNT */ yytestcase(yyruleno==335); - case 336: /* star_func ::= FIRST */ yytestcase(yyruleno==336); - case 337: /* star_func ::= LAST */ yytestcase(yyruleno==337); - case 338: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==338); + case 294: /* db_name ::= NK_ID */ yytestcase(yyruleno==294); + case 295: /* table_name ::= NK_ID */ yytestcase(yyruleno==295); + case 296: /* column_name ::= NK_ID */ yytestcase(yyruleno==296); + case 297: /* function_name ::= NK_ID */ yytestcase(yyruleno==297); + case 298: /* table_alias ::= NK_ID */ yytestcase(yyruleno==298); + case 299: /* column_alias ::= NK_ID */ yytestcase(yyruleno==299); + case 300: /* user_name ::= NK_ID */ yytestcase(yyruleno==300); + case 301: /* index_name ::= NK_ID */ yytestcase(yyruleno==301); + case 302: /* topic_name ::= NK_ID */ yytestcase(yyruleno==302); + case 303: /* stream_name ::= NK_ID */ yytestcase(yyruleno==303); + case 304: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==304); + case 337: /* noarg_func ::= NOW */ yytestcase(yyruleno==337); + case 338: /* noarg_func ::= TODAY */ yytestcase(yyruleno==338); + case 339: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==339); + case 340: /* star_func ::= COUNT */ yytestcase(yyruleno==340); + case 341: /* star_func ::= FIRST */ yytestcase(yyruleno==341); + case 342: /* star_func ::= LAST */ yytestcase(yyruleno==342); + case 343: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==343); { yylhsminor.yy209 = yymsp[0].minor.yy0; } yymsp[0].minor.yy209 = yylhsminor.yy209; break; @@ -3303,9 +3318,9 @@ static YYACTIONTYPE yy_reduce( break; case 64: /* not_exists_opt ::= */ case 66: /* exists_opt ::= */ yytestcase(yyruleno==66); - case 232: /* analyze_opt ::= */ yytestcase(yyruleno==232); - case 240: /* agg_func_opt ::= */ yytestcase(yyruleno==240); - case 391: /* set_quantifier_opt ::= */ yytestcase(yyruleno==391); + case 237: /* analyze_opt ::= */ yytestcase(yyruleno==237); + case 245: /* agg_func_opt ::= */ yytestcase(yyruleno==245); + case 396: /* set_quantifier_opt ::= */ yytestcase(yyruleno==396); { yymsp[1].minor.yy137 = false; } break; case 65: /* exists_opt ::= IF EXISTS */ @@ -3426,7 +3441,7 @@ static YYACTIONTYPE yy_reduce( yymsp[0].minor.yy424 = yylhsminor.yy424; break; case 100: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 261: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==261); + case 266: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==266); { yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy424 = yylhsminor.yy424; break; @@ -3442,25 +3457,25 @@ static YYACTIONTYPE yy_reduce( case 123: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==123); case 126: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==126); case 133: /* column_def_list ::= column_def */ yytestcase(yyruleno==133); - 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 287: /* literal_list ::= signed_literal */ yytestcase(yyruleno==287); - case 341: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==341); - case 396: /* select_sublist ::= select_item */ yytestcase(yyruleno==396); - case 445: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==445); + case 176: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==176); + case 181: /* col_name_list ::= col_name */ yytestcase(yyruleno==181); + case 225: /* func_list ::= func */ yytestcase(yyruleno==225); + case 292: /* literal_list ::= signed_literal */ yytestcase(yyruleno==292); + case 346: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==346); + case 401: /* select_sublist ::= select_item */ yytestcase(yyruleno==401); + case 450: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==450); { yylhsminor.yy424 = createNodeList(pCxt, yymsp[0].minor.yy632); } yymsp[0].minor.yy424 = yylhsminor.yy424; break; case 104: /* retention_list ::= retention_list NK_COMMA retention */ case 134: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==134); - 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 288: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==288); - case 342: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==342); - case 397: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==397); - case 446: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==446); + case 177: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==177); + case 182: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==182); + case 226: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==226); + case 293: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==293); + case 347: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==347); + case 402: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==402); + case 451: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==451); { yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, yymsp[0].minor.yy632); } yymsp[-2].minor.yy424 = yylhsminor.yy424; break; @@ -3483,7 +3498,7 @@ static YYACTIONTYPE yy_reduce( break; case 111: /* cmd ::= ALTER TABLE alter_table_clause */ case 112: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==112); - case 264: /* cmd ::= query_expression */ yytestcase(yyruleno==264); + case 269: /* cmd ::= query_expression */ yytestcase(yyruleno==269); { pCxt->pRootNode = yymsp[0].minor.yy632; } break; case 113: /* alter_table_clause ::= full_table_name alter_table_options */ @@ -3541,9 +3556,9 @@ static YYACTIONTYPE yy_reduce( break; case 129: /* specific_tags_opt ::= */ case 160: /* tags_def_opt ::= */ yytestcase(yyruleno==160); - case 404: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==404); - case 421: /* group_by_clause_opt ::= */ yytestcase(yyruleno==421); - case 433: /* order_by_clause_opt ::= */ yytestcase(yyruleno==433); + case 409: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==409); + case 426: /* group_by_clause_opt ::= */ yytestcase(yyruleno==426); + case 438: /* order_by_clause_opt ::= */ yytestcase(yyruleno==438); { yymsp[1].minor.yy424 = NULL; } break; case 130: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ @@ -3633,8 +3648,8 @@ static YYACTIONTYPE yy_reduce( { yymsp[-5].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 161: /* tags_def_opt ::= tags_def */ - case 340: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==340); - case 395: /* select_list ::= select_sublist */ yytestcase(yyruleno==395); + case 345: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==345); + case 400: /* select_list ::= select_sublist */ yytestcase(yyruleno==400); { yylhsminor.yy424 = yymsp[0].minor.yy424; } yymsp[0].minor.yy424 = yylhsminor.yy424; break; @@ -3648,353 +3663,372 @@ static YYACTIONTYPE yy_reduce( { yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 165: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } + case 165: /* table_options ::= table_options MAX_DELAY duration_list */ +{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy424); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 166: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + case 166: /* table_options ::= table_options WATERMARK duration_list */ +{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy424); } + yymsp[-2].minor.yy632 = yylhsminor.yy632; + break; + case 167: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy632 = setTableOption(pCxt, yymsp[-4].minor.yy632, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy424); } yymsp[-4].minor.yy632 = yylhsminor.yy632; break; - case 167: /* table_options ::= table_options TTL NK_INTEGER */ + case 168: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 168: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + case 169: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy632 = setTableOption(pCxt, yymsp[-4].minor.yy632, TABLE_OPTION_SMA, yymsp[-1].minor.yy424); } yymsp[-4].minor.yy632 = yylhsminor.yy632; break; - case 169: /* alter_table_options ::= alter_table_option */ + case 170: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy632 = createAlterTableOptions(pCxt); yylhsminor.yy632 = setTableOption(pCxt, yylhsminor.yy632, yymsp[0].minor.yy605.type, &yymsp[0].minor.yy605.val); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 170: /* alter_table_options ::= alter_table_options alter_table_option */ + case 171: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy632 = setTableOption(pCxt, yymsp[-1].minor.yy632, yymsp[0].minor.yy605.type, &yymsp[0].minor.yy605.val); } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 171: /* alter_table_option ::= COMMENT NK_STRING */ + case 172: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy605.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } break; - case 172: /* alter_table_option ::= TTL NK_INTEGER */ + case 173: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy605.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } break; - case 175: /* col_name ::= column_name */ -{ yylhsminor.yy632 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy209); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 174: /* duration_list ::= duration_literal */ + case 319: /* expression_list ::= expression */ yytestcase(yyruleno==319); +{ yylhsminor.yy424 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); } + yymsp[0].minor.yy424 = yylhsminor.yy424; break; - case 176: /* cmd ::= SHOW DNODES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } + case 175: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 320: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==320); +{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); } + yymsp[-2].minor.yy424 = yylhsminor.yy424; break; - case 177: /* cmd ::= SHOW USERS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); } - break; - case 178: /* cmd ::= SHOW DATABASES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } - break; - case 179: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } - break; - case 180: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } - break; - case 181: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy632, NULL); } - break; - case 182: /* cmd ::= SHOW MNODES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } - break; - case 183: /* cmd ::= SHOW MODULES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); } - break; - case 184: /* cmd ::= SHOW QNODES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); } - break; - case 185: /* cmd ::= SHOW FUNCTIONS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } - break; - case 186: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } - break; - case 187: /* cmd ::= SHOW STREAMS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } - break; - case 188: /* cmd ::= SHOW ACCOUNTS */ -{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - break; - case 189: /* cmd ::= SHOW APPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT, NULL, NULL); } - break; - case 190: /* cmd ::= SHOW CONNECTIONS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT, NULL, NULL); } - break; - 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 193: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy209); } - break; - case 194: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy632); } - break; - case 195: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy632); } - break; - case 196: /* cmd ::= SHOW QUERIES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); } - break; - case 197: /* cmd ::= SHOW SCORES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT, NULL, NULL); } - break; - case 198: /* cmd ::= SHOW TOPICS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT, NULL, NULL); } - break; - case 199: /* cmd ::= SHOW VARIABLES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); } - break; - case 200: /* cmd ::= SHOW BNODES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); } - break; - case 201: /* cmd ::= SHOW SNODES */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); } - break; - case 202: /* cmd ::= SHOW CLUSTER */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT, NULL, NULL); } - break; - case 203: /* cmd ::= SHOW TRANSACTIONS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT, NULL, NULL); } - break; - case 204: /* db_name_cond_opt ::= */ - case 209: /* from_db_opt ::= */ yytestcase(yyruleno==209); -{ yymsp[1].minor.yy632 = createDefaultDatabaseCondValue(pCxt); } - break; - case 205: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy209); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; - break; - case 206: /* like_pattern_opt ::= */ - case 217: /* index_options ::= */ yytestcase(yyruleno==217); - case 246: /* into_opt ::= */ yytestcase(yyruleno==246); - case 402: /* where_clause_opt ::= */ yytestcase(yyruleno==402); - case 406: /* twindow_clause_opt ::= */ yytestcase(yyruleno==406); - case 411: /* sliding_opt ::= */ yytestcase(yyruleno==411); - case 413: /* fill_opt ::= */ yytestcase(yyruleno==413); - case 425: /* having_clause_opt ::= */ yytestcase(yyruleno==425); - case 435: /* slimit_clause_opt ::= */ yytestcase(yyruleno==435); - case 439: /* limit_clause_opt ::= */ yytestcase(yyruleno==439); -{ yymsp[1].minor.yy632 = NULL; } - break; - case 207: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - break; - case 208: /* table_name_cond ::= table_name */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy209); } - yymsp[0].minor.yy632 = yylhsminor.yy632; - break; - case 210: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy209); } - break; - case 213: /* func_name ::= function_name */ + case 178: /* rollup_func_name ::= function_name */ { yylhsminor.yy632 = createFunctionNode(pCxt, &yymsp[0].minor.yy209, NULL); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 214: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + case 179: /* rollup_func_name ::= FIRST */ + case 180: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==180); +{ yylhsminor.yy632 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy632 = yylhsminor.yy632; + break; + case 183: /* col_name ::= column_name */ +{ yylhsminor.yy632 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy209); } + yymsp[0].minor.yy632 = yylhsminor.yy632; + break; + case 184: /* cmd ::= SHOW DNODES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } + break; + case 185: /* cmd ::= SHOW USERS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); } + break; + case 186: /* cmd ::= SHOW DATABASES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } + break; + case 187: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } + break; + case 188: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } + break; + case 189: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy632, NULL); } + break; + case 190: /* cmd ::= SHOW MNODES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } + break; + case 191: /* cmd ::= SHOW MODULES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); } + break; + case 192: /* cmd ::= SHOW QNODES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); } + break; + case 193: /* cmd ::= SHOW FUNCTIONS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } + break; + case 194: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } + break; + case 195: /* cmd ::= SHOW STREAMS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } + break; + case 196: /* cmd ::= SHOW ACCOUNTS */ +{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } + break; + case 197: /* cmd ::= SHOW APPS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT, NULL, NULL); } + break; + case 198: /* cmd ::= SHOW CONNECTIONS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT, NULL, NULL); } + break; + case 199: /* cmd ::= SHOW LICENCE */ + case 200: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==200); +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT, NULL, NULL); } + break; + case 201: /* cmd ::= SHOW CREATE DATABASE db_name */ +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy209); } + break; + case 202: /* cmd ::= SHOW CREATE TABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy632); } + break; + case 203: /* cmd ::= SHOW CREATE STABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy632); } + break; + case 204: /* cmd ::= SHOW QUERIES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); } + break; + case 205: /* cmd ::= SHOW SCORES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT, NULL, NULL); } + break; + case 206: /* cmd ::= SHOW TOPICS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT, NULL, NULL); } + break; + case 207: /* cmd ::= SHOW VARIABLES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); } + break; + case 208: /* cmd ::= SHOW BNODES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); } + break; + case 209: /* cmd ::= SHOW SNODES */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); } + break; + case 210: /* cmd ::= SHOW CLUSTER */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT, NULL, NULL); } + break; + case 211: /* cmd ::= SHOW TRANSACTIONS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT, NULL, NULL); } + break; + case 212: /* db_name_cond_opt ::= */ + case 217: /* from_db_opt ::= */ yytestcase(yyruleno==217); +{ yymsp[1].minor.yy632 = createDefaultDatabaseCondValue(pCxt); } + break; + case 213: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy209); } + yymsp[-1].minor.yy632 = yylhsminor.yy632; + break; + case 214: /* like_pattern_opt ::= */ + case 222: /* index_options ::= */ yytestcase(yyruleno==222); + case 251: /* into_opt ::= */ yytestcase(yyruleno==251); + case 407: /* where_clause_opt ::= */ yytestcase(yyruleno==407); + case 411: /* twindow_clause_opt ::= */ yytestcase(yyruleno==411); + case 416: /* sliding_opt ::= */ yytestcase(yyruleno==416); + case 418: /* fill_opt ::= */ yytestcase(yyruleno==418); + case 430: /* having_clause_opt ::= */ yytestcase(yyruleno==430); + case 440: /* slimit_clause_opt ::= */ yytestcase(yyruleno==440); + case 444: /* limit_clause_opt ::= */ yytestcase(yyruleno==444); +{ yymsp[1].minor.yy632 = NULL; } + break; + case 215: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + break; + case 216: /* table_name_cond ::= table_name */ +{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy209); } + yymsp[0].minor.yy632 = yylhsminor.yy632; + break; + case 218: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy209); } + break; + case 219: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy137, &yymsp[-3].minor.yy209, &yymsp[-1].minor.yy209, NULL, yymsp[0].minor.yy632); } break; - case 215: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + case 220: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy137, &yymsp[-5].minor.yy209, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy424, NULL); } break; - case 216: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ + case 221: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy137, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } break; - case 218: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + case 223: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ { yymsp[-8].minor.yy632 = createIndexOption(pCxt, yymsp[-6].minor.yy424, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), NULL, yymsp[0].minor.yy632); } break; - case 219: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + case 224: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ { yymsp[-10].minor.yy632 = createIndexOption(pCxt, yymsp[-8].minor.yy424, releaseRawExprNode(pCxt, yymsp[-4].minor.yy632), releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), yymsp[0].minor.yy632); } break; - case 222: /* func ::= function_name NK_LP expression_list NK_RP */ + case 227: /* func ::= function_name NK_LP expression_list NK_RP */ { yylhsminor.yy632 = createFunctionNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy424); } yymsp[-3].minor.yy632 = yylhsminor.yy632; break; - case 223: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + case 228: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ { pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy137, &yymsp[-2].minor.yy209, yymsp[0].minor.yy632, NULL, NULL); } break; - case 224: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + case 229: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy137, &yymsp[-3].minor.yy209, NULL, &yymsp[0].minor.yy209, NULL); } break; - case 225: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + case 230: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ { pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy137, &yymsp[-3].minor.yy209, NULL, NULL, yymsp[0].minor.yy632); } break; - case 226: /* cmd ::= DROP TOPIC exists_opt topic_name */ + case 231: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } break; - case 227: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + case 232: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy137, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } break; - case 228: /* cmd ::= DESC full_table_name */ - case 229: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==229); + case 233: /* cmd ::= DESC full_table_name */ + case 234: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==234); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy632); } break; - case 230: /* cmd ::= RESET QUERY CACHE */ + case 235: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 231: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + case 236: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy137, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } break; - case 233: /* analyze_opt ::= ANALYZE */ - case 241: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==241); - case 392: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==392); + case 238: /* analyze_opt ::= ANALYZE */ + case 246: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==246); + case 397: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==397); { yymsp[0].minor.yy137 = true; } break; - case 234: /* explain_options ::= */ + case 239: /* explain_options ::= */ { yymsp[1].minor.yy632 = createDefaultExplainOptions(pCxt); } break; - case 235: /* explain_options ::= explain_options VERBOSE NK_BOOL */ + case 240: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy632 = setExplainVerbose(pCxt, yymsp[-2].minor.yy632, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 236: /* explain_options ::= explain_options RATIO NK_FLOAT */ + case 241: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy632 = setExplainRatio(pCxt, yymsp[-2].minor.yy632, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 237: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + case 242: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ { pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy424); } break; - case 238: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + case 243: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ { pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy137, yymsp[-8].minor.yy137, &yymsp[-5].minor.yy209, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy304, yymsp[0].minor.yy100); } break; - case 239: /* cmd ::= DROP FUNCTION exists_opt function_name */ + case 244: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } break; - case 242: /* bufsize_opt ::= */ + case 247: /* bufsize_opt ::= */ { yymsp[1].minor.yy100 = 0; } break; - case 243: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ + case 248: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ { yymsp[-1].minor.yy100 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 244: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + case 249: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ { pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy137, &yymsp[-4].minor.yy209, yymsp[-2].minor.yy632, yymsp[-3].minor.yy632, yymsp[0].minor.yy632); } break; - case 245: /* cmd ::= DROP STREAM exists_opt stream_name */ + case 250: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } break; - case 247: /* into_opt ::= INTO full_table_name */ - case 373: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==373); - case 403: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==403); - case 426: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==426); + case 252: /* into_opt ::= INTO full_table_name */ + case 378: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==378); + case 408: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==408); + case 431: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==431); { yymsp[-1].minor.yy632 = yymsp[0].minor.yy632; } break; - case 248: /* stream_options ::= */ + case 253: /* stream_options ::= */ { yymsp[1].minor.yy632 = createStreamOptions(pCxt); } break; - case 249: /* stream_options ::= stream_options TRIGGER AT_ONCE */ + case 254: /* stream_options ::= stream_options TRIGGER AT_ONCE */ { ((SStreamOptions*)yymsp[-2].minor.yy632)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy632 = yymsp[-2].minor.yy632; } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 250: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + case 255: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ { ((SStreamOptions*)yymsp[-2].minor.yy632)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy632 = yymsp[-2].minor.yy632; } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 251: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + case 256: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-3].minor.yy632)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy632)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy632); yylhsminor.yy632 = yymsp[-3].minor.yy632; } yymsp[-3].minor.yy632 = yylhsminor.yy632; break; - case 252: /* stream_options ::= stream_options WATERMARK duration_literal */ + case 257: /* stream_options ::= stream_options WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy632)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy632); yylhsminor.yy632 = yymsp[-2].minor.yy632; } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 253: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 258: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 254: /* cmd ::= KILL QUERY NK_STRING */ + case 259: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 255: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 260: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; - case 256: /* cmd ::= BALANCE VGROUP */ + case 261: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; - case 257: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 262: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 258: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + case 263: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy424); } break; - case 259: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 264: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 260: /* dnode_list ::= DNODE NK_INTEGER */ + case 265: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy424 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; - case 262: /* cmd ::= SYNCDB db_name REPLICA */ + case 267: /* cmd ::= SYNCDB db_name REPLICA */ { pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy209); } break; - case 263: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ + case 268: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } break; - case 265: /* literal ::= NK_INTEGER */ + case 270: /* literal ::= NK_INTEGER */ { yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 266: /* literal ::= NK_FLOAT */ + case 271: /* literal ::= NK_FLOAT */ { yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 267: /* literal ::= NK_STRING */ + case 272: /* literal ::= NK_STRING */ { yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 268: /* literal ::= NK_BOOL */ + case 273: /* literal ::= NK_BOOL */ { yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 269: /* literal ::= TIMESTAMP NK_STRING */ + case 274: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 270: /* literal ::= duration_literal */ - case 280: /* signed_literal ::= signed */ yytestcase(yyruleno==280); - case 300: /* expression ::= literal */ yytestcase(yyruleno==300); - case 301: /* expression ::= pseudo_column */ yytestcase(yyruleno==301); - case 302: /* expression ::= column_reference */ yytestcase(yyruleno==302); - case 303: /* expression ::= function_expression */ yytestcase(yyruleno==303); - case 304: /* expression ::= subquery */ yytestcase(yyruleno==304); - case 329: /* function_expression ::= literal_func */ yytestcase(yyruleno==329); - case 365: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==365); - case 369: /* boolean_primary ::= predicate */ yytestcase(yyruleno==369); - case 371: /* common_expression ::= expression */ yytestcase(yyruleno==371); - case 372: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==372); - case 374: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==374); - case 376: /* table_reference ::= table_primary */ yytestcase(yyruleno==376); - case 377: /* table_reference ::= joined_table */ yytestcase(yyruleno==377); - case 381: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==381); - case 428: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==428); - case 431: /* query_primary ::= query_specification */ yytestcase(yyruleno==431); + case 275: /* literal ::= duration_literal */ + case 285: /* signed_literal ::= signed */ yytestcase(yyruleno==285); + case 305: /* expression ::= literal */ yytestcase(yyruleno==305); + case 306: /* expression ::= pseudo_column */ yytestcase(yyruleno==306); + case 307: /* expression ::= column_reference */ yytestcase(yyruleno==307); + case 308: /* expression ::= function_expression */ yytestcase(yyruleno==308); + case 309: /* expression ::= subquery */ yytestcase(yyruleno==309); + case 334: /* function_expression ::= literal_func */ yytestcase(yyruleno==334); + case 370: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==370); + case 374: /* boolean_primary ::= predicate */ yytestcase(yyruleno==374); + case 376: /* common_expression ::= expression */ yytestcase(yyruleno==376); + case 377: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==377); + case 379: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==379); + case 381: /* table_reference ::= table_primary */ yytestcase(yyruleno==381); + case 382: /* table_reference ::= joined_table */ yytestcase(yyruleno==382); + case 386: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==386); + case 433: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==433); + case 436: /* query_primary ::= query_specification */ yytestcase(yyruleno==436); { yylhsminor.yy632 = yymsp[0].minor.yy632; } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 271: /* literal ::= NULL */ + case 276: /* literal ::= NULL */ { yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 272: /* literal ::= NK_QUESTION */ + case 277: /* literal ::= NK_QUESTION */ { yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 273: /* duration_literal ::= NK_VARIABLE */ + case 278: /* duration_literal ::= NK_VARIABLE */ { yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 274: /* signed ::= NK_INTEGER */ + case 279: /* signed ::= NK_INTEGER */ { yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 275: /* signed ::= NK_PLUS NK_INTEGER */ + case 280: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; - case 276: /* signed ::= NK_MINUS NK_INTEGER */ + case 281: /* 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; @@ -4002,14 +4036,14 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 277: /* signed ::= NK_FLOAT */ + case 282: /* signed ::= NK_FLOAT */ { yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 278: /* signed ::= NK_PLUS NK_FLOAT */ + case 283: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 279: /* signed ::= NK_MINUS NK_FLOAT */ + case 284: /* 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; @@ -4017,49 +4051,49 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 281: /* signed_literal ::= NK_STRING */ + case 286: /* signed_literal ::= NK_STRING */ { yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 282: /* signed_literal ::= NK_BOOL */ + case 287: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 283: /* signed_literal ::= TIMESTAMP NK_STRING */ + case 288: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 284: /* signed_literal ::= duration_literal */ - case 286: /* signed_literal ::= literal_func */ yytestcase(yyruleno==286); - case 343: /* star_func_para ::= expression */ yytestcase(yyruleno==343); - case 398: /* select_item ::= common_expression */ yytestcase(yyruleno==398); - case 444: /* search_condition ::= common_expression */ yytestcase(yyruleno==444); + case 289: /* signed_literal ::= duration_literal */ + case 291: /* signed_literal ::= literal_func */ yytestcase(yyruleno==291); + case 348: /* star_func_para ::= expression */ yytestcase(yyruleno==348); + case 403: /* select_item ::= common_expression */ yytestcase(yyruleno==403); + case 449: /* search_condition ::= common_expression */ yytestcase(yyruleno==449); { yylhsminor.yy632 = releaseRawExprNode(pCxt, yymsp[0].minor.yy632); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 285: /* signed_literal ::= NULL */ + case 290: /* signed_literal ::= NULL */ { yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 305: /* expression ::= NK_LP expression NK_RP */ - case 370: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==370); + case 310: /* expression ::= NK_LP expression NK_RP */ + case 375: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==375); { yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632)); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 306: /* expression ::= NK_PLUS expression */ + case 311: /* expression ::= NK_PLUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 307: /* expression ::= NK_MINUS expression */ + case 312: /* expression ::= NK_MINUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy632), NULL)); } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 308: /* expression ::= expression NK_PLUS expression */ + case 313: /* expression ::= expression NK_PLUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4067,7 +4101,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 309: /* expression ::= expression NK_MINUS expression */ + case 314: /* expression ::= expression NK_MINUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4075,7 +4109,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 310: /* expression ::= expression NK_STAR expression */ + case 315: /* expression ::= expression NK_STAR expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4083,7 +4117,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 311: /* expression ::= expression NK_SLASH expression */ + case 316: /* expression ::= expression NK_SLASH expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4091,7 +4125,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 312: /* expression ::= expression NK_REM expression */ + case 317: /* expression ::= expression NK_REM expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4099,68 +4133,60 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 313: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 318: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 314: /* expression_list ::= expression */ -{ yylhsminor.yy424 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); } - yymsp[0].minor.yy424 = yylhsminor.yy424; - break; - case 315: /* expression_list ::= expression_list NK_COMMA expression */ -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; - break; - case 316: /* column_reference ::= column_name */ + case 321: /* column_reference ::= column_name */ { yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy209, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy209)); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 317: /* column_reference ::= table_name NK_DOT column_name */ + case 322: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209, createColumnNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209)); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 318: /* pseudo_column ::= ROWTS */ - case 319: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==319); - case 321: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==321); - case 322: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==322); - case 323: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==323); - case 324: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==324); - case 325: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==325); - case 331: /* literal_func ::= NOW */ yytestcase(yyruleno==331); + case 323: /* pseudo_column ::= ROWTS */ + case 324: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==324); + case 326: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==326); + case 327: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==327); + case 328: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==328); + case 329: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==329); + case 330: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==330); + case 336: /* literal_func ::= NOW */ yytestcase(yyruleno==336); { yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy632 = yylhsminor.yy632; break; - case 320: /* pseudo_column ::= table_name NK_DOT TBNAME */ + case 325: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy209)))); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 326: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 327: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==327); + case 331: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 332: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==332); { yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy424)); } yymsp[-3].minor.yy632 = yylhsminor.yy632; break; - case 328: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + case 333: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ { yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), yymsp[-1].minor.yy304)); } yymsp[-5].minor.yy632 = yylhsminor.yy632; break; - case 330: /* literal_func ::= noarg_func NK_LP NK_RP */ + case 335: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy209, NULL)); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 339: /* star_func_para_list ::= NK_STAR */ + case 344: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy424 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy424 = yylhsminor.yy424; break; - case 344: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 401: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==401); + case 349: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 406: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==406); { yylhsminor.yy632 = createColumnNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 345: /* predicate ::= expression compare_op expression */ - case 350: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==350); + case 350: /* predicate ::= expression compare_op expression */ + case 355: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==355); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4168,7 +4194,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 346: /* predicate ::= expression BETWEEN expression AND expression */ + case 351: /* predicate ::= expression BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4176,7 +4202,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-4].minor.yy632 = yylhsminor.yy632; break; - case 347: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 352: /* predicate ::= expression NOT BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4184,71 +4210,71 @@ static YYACTIONTYPE yy_reduce( } yymsp[-5].minor.yy632 = yylhsminor.yy632; break; - case 348: /* predicate ::= expression IS NULL */ + case 353: /* predicate ::= expression IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), NULL)); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 349: /* predicate ::= expression IS NOT NULL */ + case 354: /* predicate ::= expression IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy632); yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), NULL)); } yymsp[-3].minor.yy632 = yylhsminor.yy632; break; - case 351: /* compare_op ::= NK_LT */ + case 356: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy380 = OP_TYPE_LOWER_THAN; } break; - case 352: /* compare_op ::= NK_GT */ + case 357: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy380 = OP_TYPE_GREATER_THAN; } break; - case 353: /* compare_op ::= NK_LE */ + case 358: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy380 = OP_TYPE_LOWER_EQUAL; } break; - case 354: /* compare_op ::= NK_GE */ + case 359: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy380 = OP_TYPE_GREATER_EQUAL; } break; - case 355: /* compare_op ::= NK_NE */ + case 360: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy380 = OP_TYPE_NOT_EQUAL; } break; - case 356: /* compare_op ::= NK_EQ */ + case 361: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy380 = OP_TYPE_EQUAL; } break; - case 357: /* compare_op ::= LIKE */ + case 362: /* compare_op ::= LIKE */ { yymsp[0].minor.yy380 = OP_TYPE_LIKE; } break; - case 358: /* compare_op ::= NOT LIKE */ + case 363: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy380 = OP_TYPE_NOT_LIKE; } break; - case 359: /* compare_op ::= MATCH */ + case 364: /* compare_op ::= MATCH */ { yymsp[0].minor.yy380 = OP_TYPE_MATCH; } break; - case 360: /* compare_op ::= NMATCH */ + case 365: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy380 = OP_TYPE_NMATCH; } break; - case 361: /* compare_op ::= CONTAINS */ + case 366: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy380 = OP_TYPE_JSON_CONTAINS; } break; - case 362: /* in_op ::= IN */ + case 367: /* in_op ::= IN */ { yymsp[0].minor.yy380 = OP_TYPE_IN; } break; - case 363: /* in_op ::= NOT IN */ + case 368: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy380 = OP_TYPE_NOT_IN; } break; - case 364: /* in_predicate_value ::= NK_LP expression_list NK_RP */ + case 369: /* in_predicate_value ::= NK_LP expression_list NK_RP */ { yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 366: /* boolean_value_expression ::= NOT boolean_primary */ + case 371: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy632), NULL)); } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 367: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 372: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4256,7 +4282,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 368: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 373: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); @@ -4264,47 +4290,47 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 375: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ + case 380: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy632 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy632, yymsp[0].minor.yy632, NULL); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 378: /* table_primary ::= table_name alias_opt */ + case 383: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy632 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 379: /* table_primary ::= db_name NK_DOT table_name alias_opt */ + case 384: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy632 = createRealTableNode(pCxt, &yymsp[-3].minor.yy209, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } yymsp[-3].minor.yy632 = yylhsminor.yy632; break; - case 380: /* table_primary ::= subquery alias_opt */ + case 385: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy632 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632), &yymsp[0].minor.yy209); } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 382: /* alias_opt ::= */ + case 387: /* alias_opt ::= */ { yymsp[1].minor.yy209 = nil_token; } break; - case 383: /* alias_opt ::= table_alias */ + case 388: /* alias_opt ::= table_alias */ { yylhsminor.yy209 = yymsp[0].minor.yy209; } yymsp[0].minor.yy209 = yylhsminor.yy209; break; - case 384: /* alias_opt ::= AS table_alias */ + case 389: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy209 = yymsp[0].minor.yy209; } break; - case 385: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 386: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==386); + case 390: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 391: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==391); { yymsp[-2].minor.yy632 = yymsp[-1].minor.yy632; } break; - case 387: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + case 392: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy632 = createJoinTableNode(pCxt, yymsp[-4].minor.yy612, yymsp[-5].minor.yy632, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } yymsp[-5].minor.yy632 = yylhsminor.yy632; break; - case 388: /* join_type ::= */ + case 393: /* join_type ::= */ { yymsp[1].minor.yy612 = JOIN_TYPE_INNER; } break; - case 389: /* join_type ::= INNER */ + case 394: /* join_type ::= INNER */ { yymsp[0].minor.yy612 = JOIN_TYPE_INNER; } break; - case 390: /* 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 395: /* 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.yy632 = createSelectStmt(pCxt, yymsp[-7].minor.yy137, yymsp[-6].minor.yy424, yymsp[-5].minor.yy632); yymsp[-8].minor.yy632 = addWhereClause(pCxt, yymsp[-8].minor.yy632, yymsp[-4].minor.yy632); @@ -4314,70 +4340,70 @@ static YYACTIONTYPE yy_reduce( yymsp[-8].minor.yy632 = addHavingClause(pCxt, yymsp[-8].minor.yy632, yymsp[0].minor.yy632); } break; - case 393: /* set_quantifier_opt ::= ALL */ + case 398: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy137 = false; } break; - case 394: /* select_list ::= NK_STAR */ + case 399: /* select_list ::= NK_STAR */ { yymsp[0].minor.yy424 = NULL; } break; - case 399: /* select_item ::= common_expression column_alias */ + case 404: /* select_item ::= common_expression column_alias */ { yylhsminor.yy632 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632), &yymsp[0].minor.yy209); } yymsp[-1].minor.yy632 = yylhsminor.yy632; break; - case 400: /* select_item ::= common_expression AS column_alias */ + case 405: /* select_item ::= common_expression AS column_alias */ { yylhsminor.yy632 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), &yymsp[0].minor.yy209); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 405: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 422: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==422); - case 434: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==434); + case 410: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 427: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==427); + case 439: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==439); { yymsp[-2].minor.yy424 = yymsp[0].minor.yy424; } break; - case 407: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + case 412: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy632 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), releaseRawExprNode(pCxt, yymsp[-1].minor.yy632)); } break; - case 408: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + case 413: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ { yymsp[-3].minor.yy632 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632)); } break; - case 409: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + case 414: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy632 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), NULL, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } break; - case 410: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + case 415: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy632 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy632), releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } break; - case 412: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + case 417: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ { yymsp[-3].minor.yy632 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy632); } break; - case 414: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ + case 419: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy632 = createFillNode(pCxt, yymsp[-1].minor.yy54, NULL); } break; - case 415: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + case 420: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ { yymsp[-5].minor.yy632 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); } break; - case 416: /* fill_mode ::= NONE */ + case 421: /* fill_mode ::= NONE */ { yymsp[0].minor.yy54 = FILL_MODE_NONE; } break; - case 417: /* fill_mode ::= PREV */ + case 422: /* fill_mode ::= PREV */ { yymsp[0].minor.yy54 = FILL_MODE_PREV; } break; - case 418: /* fill_mode ::= NULL */ + case 423: /* fill_mode ::= NULL */ { yymsp[0].minor.yy54 = FILL_MODE_NULL; } break; - case 419: /* fill_mode ::= LINEAR */ + case 424: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy54 = FILL_MODE_LINEAR; } break; - case 420: /* fill_mode ::= NEXT */ + case 425: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy54 = FILL_MODE_NEXT; } break; - case 423: /* group_by_list ::= expression */ + case 428: /* group_by_list ::= expression */ { yylhsminor.yy424 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); } yymsp[0].minor.yy424 = yylhsminor.yy424; break; - case 424: /* group_by_list ::= group_by_list NK_COMMA expression */ + case 429: /* group_by_list ::= group_by_list NK_COMMA expression */ { yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); } yymsp[-2].minor.yy424 = yylhsminor.yy424; break; - case 427: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 432: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy632 = addOrderByClause(pCxt, yymsp[-3].minor.yy632, yymsp[-2].minor.yy424); yylhsminor.yy632 = addSlimitClause(pCxt, yylhsminor.yy632, yymsp[-1].minor.yy632); @@ -4385,56 +4411,56 @@ static YYACTIONTYPE yy_reduce( } yymsp[-3].minor.yy632 = yylhsminor.yy632; break; - case 429: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + case 434: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ { yylhsminor.yy632 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy632, yymsp[0].minor.yy632); } yymsp[-3].minor.yy632 = yylhsminor.yy632; break; - case 430: /* query_expression_body ::= query_expression_body UNION query_expression_body */ + case 435: /* query_expression_body ::= query_expression_body UNION query_expression_body */ { yylhsminor.yy632 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 432: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + case 437: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ { yymsp[-5].minor.yy632 = yymsp[-4].minor.yy632; } yy_destructor(yypParser,352,&yymsp[-3].minor); yy_destructor(yypParser,353,&yymsp[-2].minor); yy_destructor(yypParser,354,&yymsp[-1].minor); break; - case 436: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 440: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==440); + case 441: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 445: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==445); { yymsp[-1].minor.yy632 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 437: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 441: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==441); + case 442: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 446: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==446); { yymsp[-3].minor.yy632 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 438: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 442: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==442); + case 443: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 447: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==447); { yymsp[-3].minor.yy632 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 443: /* subquery ::= NK_LP query_expression NK_RP */ + case 448: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy632); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 447: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + case 452: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ { yylhsminor.yy632 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), yymsp[-1].minor.yy578, yymsp[0].minor.yy217); } yymsp[-2].minor.yy632 = yylhsminor.yy632; break; - case 448: /* ordering_specification_opt ::= */ + case 453: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy578 = ORDER_ASC; } break; - case 449: /* ordering_specification_opt ::= ASC */ + case 454: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy578 = ORDER_ASC; } break; - case 450: /* ordering_specification_opt ::= DESC */ + case 455: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy578 = ORDER_DESC; } break; - case 451: /* null_ordering_opt ::= */ + case 456: /* null_ordering_opt ::= */ { yymsp[1].minor.yy217 = NULL_ORDER_DEFAULT; } break; - case 452: /* null_ordering_opt ::= NULLS FIRST */ + case 457: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy217 = NULL_ORDER_FIRST; } break; - case 453: /* null_ordering_opt ::= NULLS LAST */ + case 458: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy217 = NULL_ORDER_LAST; } break; default: diff --git a/source/libs/parser/test/parInitialCTest.cpp b/source/libs/parser/test/parInitialCTest.cpp index 0286dba363..cc47eabfd2 100644 --- a/source/libs/parser/test/parInitialCTest.cpp +++ b/source/libs/parser/test/parInitialCTest.cpp @@ -322,13 +322,17 @@ TEST_F(ParserInitialCTest, createStable) { memset(&expect, 0, sizeof(SMCreateStbReq)); }; - auto setCreateStbReqFunc = [&](const char* pTbname, int8_t igExists = 0, - float xFilesFactor = TSDB_DEFAULT_ROLLUP_FILE_FACTOR, + auto setCreateStbReqFunc = [&](const char* pTbname, int8_t igExists = 0, int64_t delay1 = -1, int64_t delay2 = -1, + int64_t watermark1 = TSDB_DEFAULT_ROLLUP_WATERMARK, + int64_t watermark2 = TSDB_DEFAULT_ROLLUP_WATERMARK, int32_t ttl = TSDB_DEFAULT_TABLE_TTL, const char* pComment = nullptr) { int32_t len = snprintf(expect.name, sizeof(expect.name), "0.test.%s", pTbname); expect.name[len] = '\0'; expect.igExists = igExists; - expect.xFilesFactor = xFilesFactor; + expect.delay1 = delay1; + expect.delay2 = delay2; + expect.watermark1 = watermark1; + expect.watermark2 = watermark2; expect.ttl = ttl; if (nullptr != pComment) { expect.comment = strdup(pComment); @@ -366,8 +370,10 @@ TEST_F(ParserInitialCTest, createStable) { ASSERT_EQ(std::string(req.name), std::string(expect.name)); ASSERT_EQ(req.igExists, expect.igExists); - ASSERT_EQ(req.xFilesFactor, expect.xFilesFactor); - ASSERT_EQ(req.delay, expect.delay); + ASSERT_EQ(req.delay1, expect.delay1); + ASSERT_EQ(req.delay2, expect.delay2); + ASSERT_EQ(req.watermark1, expect.watermark1); + ASSERT_EQ(req.watermark2, expect.watermark2); ASSERT_EQ(req.ttl, expect.ttl); ASSERT_EQ(req.numOfColumns, expect.numOfColumns); ASSERT_EQ(req.numOfTags, expect.numOfTags); @@ -418,7 +424,8 @@ TEST_F(ParserInitialCTest, createStable) { run("CREATE STABLE t1(ts TIMESTAMP, c1 INT) TAGS(id INT)"); clearCreateStbReq(); - setCreateStbReqFunc("t1", 1, 0.1, 100, "test create table"); + setCreateStbReqFunc("t1", 1, 100 * MILLISECOND_PER_SECOND, 10 * MILLISECOND_PER_MINUTE, 10, + 1 * MILLISECOND_PER_MINUTE, 100, "test create table"); addFieldToCreateStbReqFunc(true, "ts", TSDB_DATA_TYPE_TIMESTAMP, 0, 0); addFieldToCreateStbReqFunc(true, "c1", TSDB_DATA_TYPE_INT); addFieldToCreateStbReqFunc(true, "c2", TSDB_DATA_TYPE_UINT); @@ -456,15 +463,20 @@ TEST_F(ParserInitialCTest, createStable) { "TAGS (a1 TIMESTAMP, a2 INT, a3 INT UNSIGNED, a4 BIGINT, a5 BIGINT UNSIGNED, a6 FLOAT, a7 DOUBLE, " "a8 BINARY(20), a9 SMALLINT, a10 SMALLINT UNSIGNED COMMENT 'test column comment', a11 TINYINT, " "a12 TINYINT UNSIGNED, a13 BOOL, a14 NCHAR(30), a15 VARCHAR(50)) " - "TTL 100 COMMENT 'test create table' SMA(c1, c2, c3) ROLLUP (MIN) FILE_FACTOR 0.1"); + "TTL 100 COMMENT 'test create table' SMA(c1, c2, c3) ROLLUP (MIN) MAX_DELAY 100s,10m WATERMARK 10a,1m"); clearCreateStbReq(); } TEST_F(ParserInitialCTest, createStableSemanticCheck) { useDb("root", "test"); - run("CREATE STABLE stb2 (ts TIMESTAMP, c1 INT) TAGS (tag1 INT) ROLLUP(CEIL) FILE_FACTOR 0.1", - TSDB_CODE_PAR_INVALID_ROLLUP_OPTION, PARSER_STAGE_TRANSLATE); + run("CREATE STABLE stb2 (ts TIMESTAMP, c1 INT) TAGS (tag1 INT) ROLLUP(CEIL)", TSDB_CODE_PAR_INVALID_ROLLUP_OPTION); + + run("CREATE STABLE stb2 (ts TIMESTAMP, c1 INT) TAGS (tag1 INT) ROLLUP(MAX) MAX_DELAY 0s WATERMARK 1m", + TSDB_CODE_PAR_INVALID_RANGE_OPTION); + + run("CREATE STABLE stb2 (ts TIMESTAMP, c1 INT) TAGS (tag1 INT) ROLLUP(MAX) MAX_DELAY 10s WATERMARK 18m", + TSDB_CODE_PAR_INVALID_RANGE_OPTION); } TEST_F(ParserInitialCTest, createStream) { @@ -477,7 +489,7 @@ TEST_F(ParserInitialCTest, createStream) { memset(&expect, 0, sizeof(SCMCreateStreamReq)); }; - auto setCreateStbReqFunc = + auto setCreateStreamReqFunc = [&](const char* pStream, const char* pSrcDb, const char* pSql, const char* pDstStb = nullptr, int8_t igExists = 0, int8_t triggerType = STREAM_TRIGGER_AT_ONCE, int64_t maxDelay = 0, int64_t watermark = 0) { snprintf(expect.name, sizeof(expect.name), "0.%s", pStream); @@ -509,21 +521,21 @@ TEST_F(ParserInitialCTest, createStream) { tFreeSCMCreateStreamReq(&req); }); - setCreateStbReqFunc("s1", "test", "create stream s1 as select * from t1"); + setCreateStreamReqFunc("s1", "test", "create stream s1 as select * from t1"); run("CREATE STREAM s1 AS SELECT * FROM t1"); clearCreateStreamReq(); - setCreateStbReqFunc("s1", "test", "create stream if not exists s1 as select * from t1", nullptr, 1); + setCreateStreamReqFunc("s1", "test", "create stream if not exists s1 as select * from t1", nullptr, 1); run("CREATE STREAM IF NOT EXISTS s1 AS SELECT * FROM t1"); clearCreateStreamReq(); - setCreateStbReqFunc("s1", "test", "create stream s1 into st1 as select * from t1", "st1"); + setCreateStreamReqFunc("s1", "test", "create stream s1 into st1 as select * from t1", "st1"); run("CREATE STREAM s1 INTO st1 AS SELECT * FROM t1"); clearCreateStreamReq(); - setCreateStbReqFunc("s1", "test", - "create stream if not exists s1 trigger max_delay 20s watermark 10s into st1 as select * from t1", - "st1", 1, STREAM_TRIGGER_MAX_DELAY, 20 * MILLISECOND_PER_SECOND, 10 * MILLISECOND_PER_SECOND); + setCreateStreamReqFunc( + "s1", "test", "create stream if not exists s1 trigger max_delay 20s watermark 10s into st1 as select * from t1", + "st1", 1, STREAM_TRIGGER_MAX_DELAY, 20 * MILLISECOND_PER_SECOND, 10 * MILLISECOND_PER_SECOND); run("CREATE STREAM IF NOT EXISTS s1 TRIGGER MAX_DELAY 20s WATERMARK 10s INTO st1 AS SELECT * FROM t1"); clearCreateStreamReq(); } @@ -552,7 +564,7 @@ TEST_F(ParserInitialCTest, createTable) { "TAGS (a1 TIMESTAMP, a2 INT, a3 INT UNSIGNED, a4 BIGINT, a5 BIGINT UNSIGNED, a6 FLOAT, a7 DOUBLE, a8 BINARY(20), " "a9 SMALLINT, a10 SMALLINT UNSIGNED COMMENT 'test column comment', a11 TINYINT, a12 TINYINT UNSIGNED, a13 BOOL, " "a14 NCHAR(30), a15 VARCHAR(50)) " - "TTL 100 COMMENT 'test create table' SMA(c1, c2, c3) ROLLUP (MIN) FILE_FACTOR 0.1"); + "TTL 100 COMMENT 'test create table' SMA(c1, c2, c3) ROLLUP (MIN)"); run("CREATE TABLE IF NOT EXISTS t1 USING st1 TAGS(1, 'wxy', NOW)"); diff --git a/tests/script/tsim/insert/update0.sim b/tests/script/tsim/insert/update0.sim index 0ba3e98c91..ed74188bcb 100644 --- a/tests/script/tsim/insert/update0.sim +++ b/tests/script/tsim/insert/update0.sim @@ -9,7 +9,7 @@ sql create database d0 keep 365000d,365000d,365000d sql use d0 print =============== create super table and register rsma -sql create table if not exists stb (ts timestamp, c1 int) tags (city binary(20),district binary(20)) rollup(min) file_factor 0.1; +sql create table if not exists stb (ts timestamp, c1 int) tags (city binary(20),district binary(20)) rollup(min); sql show stables if $rows != 1 then diff --git a/tests/script/tsim/sma/rsmaCreateInsertQuery.sim b/tests/script/tsim/sma/rsmaCreateInsertQuery.sim index f929dda18c..645b28f771 100644 --- a/tests/script/tsim/sma/rsmaCreateInsertQuery.sim +++ b/tests/script/tsim/sma/rsmaCreateInsertQuery.sim @@ -9,7 +9,7 @@ sql create database d0 retentions 15s:7d,1m:21d,15m:365d; sql use d0 print =============== create super table and register rsma -sql create table if not exists stb (ts timestamp, c1 int) tags (city binary(20),district binary(20)) rollup(min) file_factor 0.1; +sql create table if not exists stb (ts timestamp, c1 int) tags (city binary(20),district binary(20)) rollup(min); sql show stables if $rows != 1 then From a06b329beecab1df2351721145458e2ea116cd9c Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Fri, 17 Jun 2022 21:16:13 +0800 Subject: [PATCH 3/5] feat: sql command 'show create database', 'show create table', 'show create stable' and 'alter local' --- include/common/ttokendef.h | 380 +- include/libs/nodes/cmdnodes.h | 13 +- source/libs/command/src/command.c | 29 +- source/libs/nodes/src/nodesUtilFuncs.c | 10 +- source/libs/parser/inc/parAst.h | 2 +- source/libs/parser/inc/sql.y | 3 +- source/libs/parser/src/parAstCreater.c | 122 +- source/libs/parser/src/parAstParser.c | 13 + source/libs/parser/src/parTranslater.c | 91 +- source/libs/parser/src/sql.c | 5671 ++++++++++--------- source/libs/parser/test/parInitialATest.cpp | 35 +- source/libs/parser/test/parInitialCTest.cpp | 4 +- source/libs/parser/test/parShowToUse.cpp | 42 +- source/libs/parser/test/parTestUtil.h | 1 + 14 files changed, 3286 insertions(+), 3130 deletions(-) diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 1edfcbabad..ab8b7889ad 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -64,196 +64,195 @@ #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_DURATION 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_SCHEMALESS 78 -#define TK_NK_COLON 79 -#define TK_TABLE 80 -#define TK_NK_LP 81 -#define TK_NK_RP 82 -#define TK_STABLE 83 -#define TK_ADD 84 -#define TK_COLUMN 85 -#define TK_MODIFY 86 -#define TK_RENAME 87 -#define TK_TAG 88 -#define TK_SET 89 -#define TK_NK_EQ 90 -#define TK_USING 91 -#define TK_TAGS 92 -#define TK_COMMENT 93 -#define TK_BOOL 94 -#define TK_TINYINT 95 -#define TK_SMALLINT 96 -#define TK_INT 97 -#define TK_INTEGER 98 -#define TK_BIGINT 99 -#define TK_FLOAT 100 -#define TK_DOUBLE 101 -#define TK_BINARY 102 -#define TK_TIMESTAMP 103 -#define TK_NCHAR 104 -#define TK_UNSIGNED 105 -#define TK_JSON 106 -#define TK_VARCHAR 107 -#define TK_MEDIUMBLOB 108 -#define TK_BLOB 109 -#define TK_VARBINARY 110 -#define TK_DECIMAL 111 -#define TK_MAX_DELAY 112 -#define TK_WATERMARK 113 -#define TK_ROLLUP 114 -#define TK_TTL 115 -#define TK_SMA 116 -#define TK_FIRST 117 -#define TK_LAST 118 -#define TK_SHOW 119 -#define TK_DATABASES 120 -#define TK_TABLES 121 -#define TK_STABLES 122 -#define TK_MNODES 123 -#define TK_MODULES 124 -#define TK_QNODES 125 -#define TK_FUNCTIONS 126 -#define TK_INDEXES 127 -#define TK_ACCOUNTS 128 -#define TK_APPS 129 -#define TK_CONNECTIONS 130 -#define TK_LICENCE 131 -#define TK_GRANTS 132 -#define TK_QUERIES 133 -#define TK_SCORES 134 -#define TK_TOPICS 135 -#define TK_VARIABLES 136 -#define TK_BNODES 137 -#define TK_SNODES 138 -#define TK_CLUSTER 139 -#define TK_TRANSACTIONS 140 -#define TK_LIKE 141 -#define TK_INDEX 142 -#define TK_FULLTEXT 143 -#define TK_FUNCTION 144 -#define TK_INTERVAL 145 -#define TK_TOPIC 146 -#define TK_AS 147 -#define TK_CONSUMER 148 -#define TK_GROUP 149 -#define TK_DESC 150 -#define TK_DESCRIBE 151 -#define TK_RESET 152 -#define TK_QUERY 153 -#define TK_CACHE 154 -#define TK_EXPLAIN 155 -#define TK_ANALYZE 156 -#define TK_VERBOSE 157 -#define TK_NK_BOOL 158 -#define TK_RATIO 159 -#define TK_NK_FLOAT 160 -#define TK_COMPACT 161 -#define TK_VNODES 162 -#define TK_IN 163 -#define TK_OUTPUTTYPE 164 -#define TK_AGGREGATE 165 -#define TK_BUFSIZE 166 -#define TK_STREAM 167 -#define TK_INTO 168 -#define TK_TRIGGER 169 -#define TK_AT_ONCE 170 -#define TK_WINDOW_CLOSE 171 -#define TK_KILL 172 -#define TK_CONNECTION 173 -#define TK_TRANSACTION 174 -#define TK_BALANCE 175 -#define TK_VGROUP 176 -#define TK_MERGE 177 -#define TK_REDISTRIBUTE 178 -#define TK_SPLIT 179 -#define TK_SYNCDB 180 -#define TK_DELETE 181 -#define TK_NULL 182 -#define TK_NK_QUESTION 183 -#define TK_NK_ARROW 184 -#define TK_ROWTS 185 -#define TK_TBNAME 186 -#define TK_QSTARTTS 187 -#define TK_QENDTS 188 -#define TK_WSTARTTS 189 -#define TK_WENDTS 190 -#define TK_WDURATION 191 -#define TK_CAST 192 -#define TK_NOW 193 -#define TK_TODAY 194 -#define TK_TIMEZONE 195 -#define TK_COUNT 196 -#define TK_LAST_ROW 197 -#define TK_BETWEEN 198 -#define TK_IS 199 -#define TK_NK_LT 200 -#define TK_NK_GT 201 -#define TK_NK_LE 202 -#define TK_NK_GE 203 -#define TK_NK_NE 204 -#define TK_MATCH 205 -#define TK_NMATCH 206 -#define TK_CONTAINS 207 -#define TK_JOIN 208 -#define TK_INNER 209 -#define TK_SELECT 210 -#define TK_DISTINCT 211 -#define TK_WHERE 212 -#define TK_PARTITION 213 -#define TK_BY 214 -#define TK_SESSION 215 -#define TK_STATE_WINDOW 216 -#define TK_SLIDING 217 -#define TK_FILL 218 -#define TK_VALUE 219 -#define TK_NONE 220 -#define TK_PREV 221 -#define TK_LINEAR 222 -#define TK_NEXT 223 -#define TK_HAVING 224 -#define TK_ORDER 225 -#define TK_SLIMIT 226 -#define TK_SOFFSET 227 -#define TK_LIMIT 228 -#define TK_OFFSET 229 -#define TK_ASC 230 -#define TK_NULLS 231 -#define TK_ID 232 -#define TK_NK_BITNOT 233 -#define TK_INSERT 234 -#define TK_VALUES 235 -#define TK_IMPORT 236 -#define TK_NK_SEMI 237 -#define TK_FILE 238 +#define TK_LOCAL 49 +#define TK_QNODE 50 +#define TK_BNODE 51 +#define TK_SNODE 52 +#define TK_MNODE 53 +#define TK_DATABASE 54 +#define TK_USE 55 +#define TK_IF 56 +#define TK_NOT 57 +#define TK_EXISTS 58 +#define TK_BUFFER 59 +#define TK_CACHELAST 60 +#define TK_COMP 61 +#define TK_DURATION 62 +#define TK_NK_VARIABLE 63 +#define TK_FSYNC 64 +#define TK_MAXROWS 65 +#define TK_MINROWS 66 +#define TK_KEEP 67 +#define TK_PAGES 68 +#define TK_PAGESIZE 69 +#define TK_PRECISION 70 +#define TK_REPLICA 71 +#define TK_STRICT 72 +#define TK_WAL 73 +#define TK_VGROUPS 74 +#define TK_SINGLE_STABLE 75 +#define TK_RETENTIONS 76 +#define TK_SCHEMALESS 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_MAX_DELAY 111 +#define TK_WATERMARK 112 +#define TK_ROLLUP 113 +#define TK_TTL 114 +#define TK_SMA 115 +#define TK_FIRST 116 +#define TK_LAST 117 +#define TK_SHOW 118 +#define TK_DATABASES 119 +#define TK_TABLES 120 +#define TK_STABLES 121 +#define TK_MNODES 122 +#define TK_MODULES 123 +#define TK_QNODES 124 +#define TK_FUNCTIONS 125 +#define TK_INDEXES 126 +#define TK_ACCOUNTS 127 +#define TK_APPS 128 +#define TK_CONNECTIONS 129 +#define TK_LICENCE 130 +#define TK_GRANTS 131 +#define TK_QUERIES 132 +#define TK_SCORES 133 +#define TK_TOPICS 134 +#define TK_VARIABLES 135 +#define TK_BNODES 136 +#define TK_SNODES 137 +#define TK_CLUSTER 138 +#define TK_TRANSACTIONS 139 +#define TK_LIKE 140 +#define TK_INDEX 141 +#define TK_FULLTEXT 142 +#define TK_FUNCTION 143 +#define TK_INTERVAL 144 +#define TK_TOPIC 145 +#define TK_AS 146 +#define TK_CONSUMER 147 +#define TK_GROUP 148 +#define TK_DESC 149 +#define TK_DESCRIBE 150 +#define TK_RESET 151 +#define TK_QUERY 152 +#define TK_CACHE 153 +#define TK_EXPLAIN 154 +#define TK_ANALYZE 155 +#define TK_VERBOSE 156 +#define TK_NK_BOOL 157 +#define TK_RATIO 158 +#define TK_NK_FLOAT 159 +#define TK_COMPACT 160 +#define TK_VNODES 161 +#define TK_IN 162 +#define TK_OUTPUTTYPE 163 +#define TK_AGGREGATE 164 +#define TK_BUFSIZE 165 +#define TK_STREAM 166 +#define TK_INTO 167 +#define TK_TRIGGER 168 +#define TK_AT_ONCE 169 +#define TK_WINDOW_CLOSE 170 +#define TK_KILL 171 +#define TK_CONNECTION 172 +#define TK_TRANSACTION 173 +#define TK_BALANCE 174 +#define TK_VGROUP 175 +#define TK_MERGE 176 +#define TK_REDISTRIBUTE 177 +#define TK_SPLIT 178 +#define TK_SYNCDB 179 +#define TK_DELETE 180 +#define TK_NULL 181 +#define TK_NK_QUESTION 182 +#define TK_NK_ARROW 183 +#define TK_ROWTS 184 +#define TK_TBNAME 185 +#define TK_QSTARTTS 186 +#define TK_QENDTS 187 +#define TK_WSTARTTS 188 +#define TK_WENDTS 189 +#define TK_WDURATION 190 +#define TK_CAST 191 +#define TK_NOW 192 +#define TK_TODAY 193 +#define TK_TIMEZONE 194 +#define TK_COUNT 195 +#define TK_LAST_ROW 196 +#define TK_BETWEEN 197 +#define TK_IS 198 +#define TK_NK_LT 199 +#define TK_NK_GT 200 +#define TK_NK_LE 201 +#define TK_NK_GE 202 +#define TK_NK_NE 203 +#define TK_MATCH 204 +#define TK_NMATCH 205 +#define TK_CONTAINS 206 +#define TK_JOIN 207 +#define TK_INNER 208 +#define TK_SELECT 209 +#define TK_DISTINCT 210 +#define TK_WHERE 211 +#define TK_PARTITION 212 +#define TK_BY 213 +#define TK_SESSION 214 +#define TK_STATE_WINDOW 215 +#define TK_SLIDING 216 +#define TK_FILL 217 +#define TK_VALUE 218 +#define TK_NONE 219 +#define TK_PREV 220 +#define TK_LINEAR 221 +#define TK_NEXT 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 @@ -261,6 +260,7 @@ #define TK_NK_HEX 303 // hex number 0x123 #define TK_NK_OCT 304 // oct number #define TK_NK_BIN 305 // bin format data 0b111 +#define TK_NK_IPTOKEN 306 #define TK_NK_NIL 65535 diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index 7d275f5663..087d252ed7 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -208,11 +208,18 @@ typedef struct SShowStmt { SNode* pTbNamePattern; // SValueNode } SShowStmt; -typedef struct SShowCreatStmt { +typedef struct SShowCreateDatabaseStmt { ENodeType type; char dbName[TSDB_DB_NAME_LEN]; - char tableName[TSDB_TABLE_NAME_LEN]; -} SShowCreatStmt; + void* pCfg; // SDbCfgInfo +} SShowCreateDatabaseStmt; + +typedef struct SShowCreateTableStmt { + ENodeType type; + char dbName[TSDB_DB_NAME_LEN]; + char tableName[TSDB_TABLE_NAME_LEN]; + STableMeta* pMeta; +} SShowCreateTableStmt; typedef enum EIndexType { INDEX_TYPE_SMA = 1, INDEX_TYPE_FULLTEXT } EIndexType; diff --git a/source/libs/command/src/command.c b/source/libs/command/src/command.c index f06664b60b..c6a0e52a42 100644 --- a/source/libs/command/src/command.c +++ b/source/libs/command/src/command.c @@ -47,7 +47,8 @@ static SSDataBlock* buildDescResultDataBlock() { taosArrayPush(pBlock->pDataBlock, &infoData); infoData.info.type = TSDB_DATA_TYPE_INT; - infoData.info.bytes = tDataTypes[TSDB_DATA_TYPE_INT].bytes;; + infoData.info.bytes = tDataTypes[TSDB_DATA_TYPE_INT].bytes; + taosArrayPush(pBlock->pDataBlock, &infoData); infoData.info.type = TSDB_DATA_TYPE_VARCHAR; @@ -63,7 +64,7 @@ static void setDescResultIntoDataBlock(SSDataBlock* pBlock, int32_t numOfRows, S // field SColumnInfoData* pCol1 = taosArrayGet(pBlock->pDataBlock, 0); - char buf[DESCRIBE_RESULT_FIELD_LEN] = {0}; + char buf[DESCRIBE_RESULT_FIELD_LEN] = {0}; for (int32_t i = 0; i < numOfRows; ++i) { STR_TO_VARSTR(buf, pMeta->schema[i].name); colDataAppend(pCol1, i, buf, false); @@ -92,8 +93,8 @@ static void setDescResultIntoDataBlock(SSDataBlock* pBlock, int32_t numOfRows, S } static int32_t execDescribe(SNode* pStmt, SRetrieveTableRsp** pRsp) { - SDescribeStmt* pDesc = (SDescribeStmt*) pStmt; - int32_t numOfRows = TABLE_TOTAL_COL_NUM(pDesc->pMeta); + SDescribeStmt* pDesc = (SDescribeStmt*)pStmt; + int32_t numOfRows = TABLE_TOTAL_COL_NUM(pDesc->pMeta); SSDataBlock* pBlock = buildDescResultDataBlock(); setDescResultIntoDataBlock(pBlock, numOfRows, pDesc->pMeta); @@ -120,9 +121,15 @@ static int32_t execDescribe(SNode* pStmt, SRetrieveTableRsp** pRsp) { return TSDB_CODE_SUCCESS; } -static int32_t execResetQueryCache() { - return catalogClearCache(); -} +static int32_t execResetQueryCache() { return catalogClearCache(); } + +static int32_t execShowCreateDatabase(SShowCreateDatabaseStmt* pStmt) { return TSDB_CODE_FAILED; } + +static int32_t execShowCreateTable(SShowCreateTableStmt* pStmt) { return TSDB_CODE_FAILED; } + +static int32_t execShowCreateSTable(SShowCreateTableStmt* pStmt) { return TSDB_CODE_FAILED; } + +static int32_t execAlterLocal(SAlterLocalStmt* pStmt) { return TSDB_CODE_FAILED; } int32_t qExecCommand(SNode* pStmt, SRetrieveTableRsp** pRsp) { switch (nodeType(pStmt)) { @@ -130,6 +137,14 @@ int32_t qExecCommand(SNode* pStmt, SRetrieveTableRsp** pRsp) { return execDescribe(pStmt, pRsp); case QUERY_NODE_RESET_QUERY_CACHE_STMT: return execResetQueryCache(); + case QUERY_NODE_SHOW_CREATE_DATABASE_STMT: + return execShowCreateDatabase((SShowCreateDatabaseStmt*)pStmt); + case QUERY_NODE_SHOW_CREATE_TABLE_STMT: + return execShowCreateTable((SShowCreateTableStmt*)pStmt); + case QUERY_NODE_SHOW_CREATE_STABLE_STMT: + return execShowCreateSTable((SShowCreateTableStmt*)pStmt); + case QUERY_NODE_ALTER_LOCAL_STMT: + return execAlterLocal((SAlterLocalStmt*)pStmt); default: break; } diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index f8b44793a6..6ebd0f2d39 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -150,6 +150,8 @@ SNode* nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SDropTopicStmt)); case QUERY_NODE_DROP_CGROUP_STMT: return makeNode(type, sizeof(SDropCGroupStmt)); + case QUERY_NODE_ALTER_LOCAL_STMT: + return makeNode(type, sizeof(SAlterLocalStmt)); case QUERY_NODE_EXPLAIN_STMT: return makeNode(type, sizeof(SExplainStmt)); case QUERY_NODE_DESCRIBE_STMT: @@ -206,11 +208,13 @@ SNode* nodesMakeNode(ENodeType type) { 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: return makeNode(type, sizeof(SShowStmt)); + case QUERY_NODE_SHOW_CREATE_DATABASE_STMT: + return makeNode(type, sizeof(SShowCreateDatabaseStmt)); + case QUERY_NODE_SHOW_CREATE_TABLE_STMT: + case QUERY_NODE_SHOW_CREATE_STABLE_STMT: + return makeNode(type, sizeof(SShowCreateTableStmt)); case QUERY_NODE_KILL_QUERY_STMT: return makeNode(type, sizeof(SKillQueryStmt)); case QUERY_NODE_KILL_TRANSACTION_STMT: diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 282bb2ed2d..b4f49b3e88 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -152,7 +152,7 @@ SNode* createAlterTableRenameCol(SAstCreateContext* pCxt, SNode* pRealTable, int SNode* createAlterTableSetTag(SAstCreateContext* pCxt, SNode* pRealTable, SToken* pTagName, SNode* pVal); SNode* createUseDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName); SNode* createShowStmt(SAstCreateContext* pCxt, ENodeType type, SNode* pDbName, SNode* pTbNamePattern); -SNode* createShowCreateDatabaseStmt(SAstCreateContext* pCxt, const SToken* pDbName); +SNode* createShowCreateDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName); SNode* createShowCreateTableStmt(SAstCreateContext* pCxt, ENodeType type, SNode* pRealTable); SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const SToken* pPassword); SNode* createAlterUserStmt(SAstCreateContext* pCxt, SToken* pUserName, int8_t alterType, const SToken* pVal); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 4d8ed1edc7..8b17fcce6c 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -125,8 +125,7 @@ dnode_endpoint(A) ::= NK_STRING(B). %type dnode_host_name { SToken } %destructor dnode_host_name { } -dnode_host_name(A) ::= NK_ID(B). { A = B; } -dnode_host_name(A) ::= NK_IPTOKEN(B). { A = B; } +dnode_host_name(A) ::= NK_STRING(B). { A = B; } /************************************************ alter local *********************************************************/ cmd ::= ALTER LOCAL NK_STRING(A). { pCxt->pRootNode = createAlterLocalStmt(pCxt, &A, NULL); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 4f696e6522..462f1baec6 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -36,6 +36,14 @@ } \ } while (0) +#define COPY_STRING_FORM_ID_TOKEN(buf, pToken) strncpy(buf, (pToken)->z, TMIN((pToken)->n, sizeof(buf) - 1)) +#define COPY_STRING_FORM_STR_TOKEN(buf, pToken) \ + do { \ + if ((pToken)->n > 2) { \ + strncpy(buf, (pToken)->z + 1, TMIN((pToken)->n - 2, sizeof(buf) - 1)); \ + } \ + } while (0) + SToken nil_token = {.type = TK_NK_NIL, .n = 0, .z = NULL}; void initAstCreateContext(SParseContext* pParseCxt, SAstCreateContext* pCxt) { @@ -50,12 +58,6 @@ void initAstCreateContext(SParseContext* pParseCxt, SAstCreateContext* pCxt) { pCxt->errCode = TSDB_CODE_SUCCESS; } -static void copyStringFormStringToken(SToken* pToken, char* pBuf, int32_t len) { - if (pToken->n > 2) { - strncpy(pBuf, pToken->z + 1, TMIN(pToken->n - 2, len - 1)); - } -} - static void trimEscape(SToken* pName) { // todo need to deal with `ioo``ii` -> ioo`ii if (NULL != pName && pName->n > 1 && '`' == pName->z[0]) { @@ -97,7 +99,7 @@ static bool checkPassword(SAstCreateContext* pCxt, const SToken* pPasswordToken, } else if (pPasswordToken->n >= (TSDB_USET_PASSWORD_LEN + 2)) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_NAME_OR_PASSWD_TOO_LONG); } else { - strncpy(pPassword, pPasswordToken->z, pPasswordToken->n); + COPY_STRING_FORM_ID_TOKEN(pPassword, pPasswordToken); strdequote(pPassword); if (strtrim(pPassword) <= 0) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_PASSWD_EMPTY); @@ -114,8 +116,8 @@ static bool checkAndSplitEndpoint(SAstCreateContext* pCxt, const SToken* pEp, ch } else if (pEp->n >= TSDB_FQDN_LEN + 2 + 6) { // format 'fqdn:port' pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_NAME_OR_PASSWD_TOO_LONG); } else { - char ep[TSDB_FQDN_LEN + 2 + 6]; - strncpy(ep, pEp->z, pEp->n); + char ep[TSDB_FQDN_LEN + 6]; + COPY_STRING_FORM_STR_TOKEN(ep, pEp); strdequote(ep); strtrim(ep); char* pColon = strchr(ep, ':'); @@ -274,9 +276,9 @@ SNode* createColumnNode(SAstCreateContext* pCxt, SToken* pTableAlias, SToken* pC SColumnNode* col = (SColumnNode*)nodesMakeNode(QUERY_NODE_COLUMN); CHECK_OUT_OF_MEM(col); if (NULL != pTableAlias) { - strncpy(col->tableAlias, pTableAlias->z, pTableAlias->n); + COPY_STRING_FORM_ID_TOKEN(col->tableAlias, pTableAlias); } - strncpy(col->colName, pColumnName->z, pColumnName->n); + COPY_STRING_FORM_ID_TOKEN(col->colName, pColumnName); return (SNode*)col; } @@ -417,7 +419,7 @@ SNode* createFunctionNode(SAstCreateContext* pCxt, const SToken* pFuncName, SNod } SFunctionNode* func = (SFunctionNode*)nodesMakeNode(QUERY_NODE_FUNCTION); CHECK_OUT_OF_MEM(func); - strncpy(func->functionName, pFuncName->z, pFuncName->n); + COPY_STRING_FORM_ID_TOKEN(func->functionName, pFuncName); func->pParameterList = pParameterList; return (SNode*)func; } @@ -464,16 +466,16 @@ SNode* createRealTableNode(SAstCreateContext* pCxt, SToken* pDbName, SToken* pTa SRealTableNode* realTable = (SRealTableNode*)nodesMakeNode(QUERY_NODE_REAL_TABLE); CHECK_OUT_OF_MEM(realTable); if (NULL != pDbName) { - strncpy(realTable->table.dbName, pDbName->z, pDbName->n); + COPY_STRING_FORM_ID_TOKEN(realTable->table.dbName, pDbName); } else { strcpy(realTable->table.dbName, pCxt->pQueryCxt->db); } if (NULL != pTableAlias && TK_NK_NIL != pTableAlias->type) { - strncpy(realTable->table.tableAlias, pTableAlias->z, pTableAlias->n); + COPY_STRING_FORM_ID_TOKEN(realTable->table.tableAlias, pTableAlias); } else { - strncpy(realTable->table.tableAlias, pTableName->z, pTableName->n); + COPY_STRING_FORM_ID_TOKEN(realTable->table.tableAlias, pTableName); } - strncpy(realTable->table.tableName, pTableName->z, pTableName->n); + COPY_STRING_FORM_ID_TOKEN(realTable->table.tableName, pTableName); return (SNode*)realTable; } @@ -483,7 +485,7 @@ SNode* createTempTableNode(SAstCreateContext* pCxt, SNode* pSubquery, const STok CHECK_OUT_OF_MEM(tempTable); tempTable->pSubquery = pSubquery; if (NULL != pTableAlias && TK_NK_NIL != pTableAlias->type) { - strncpy(tempTable->table.tableAlias, pTableAlias->z, pTableAlias->n); + COPY_STRING_FORM_ID_TOKEN(tempTable->table.tableAlias, pTableAlias); } else { sprintf(tempTable->table.tableAlias, "%p", tempTable); } @@ -785,8 +787,7 @@ SNode* setDatabaseOption(SAstCreateContext* pCxt, SNode* pOptions, EDatabaseOpti ((SDatabaseOptions*)pOptions)->pagesize = taosStr2Int32(((SToken*)pVal)->z, NULL, 10); break; case DB_OPTION_PRECISION: - copyStringFormStringToken((SToken*)pVal, ((SDatabaseOptions*)pOptions)->precisionStr, - sizeof(((SDatabaseOptions*)pOptions)->precisionStr)); + COPY_STRING_FORM_STR_TOKEN(((SDatabaseOptions*)pOptions)->precisionStr, (SToken*)pVal); break; case DB_OPTION_REPLICA: ((SDatabaseOptions*)pOptions)->replica = taosStr2Int8(((SToken*)pVal)->z, NULL, 10); @@ -835,7 +836,7 @@ SNode* createCreateDatabaseStmt(SAstCreateContext* pCxt, bool ignoreExists, STok } SCreateDatabaseStmt* pStmt = (SCreateDatabaseStmt*)nodesMakeNode(QUERY_NODE_CREATE_DATABASE_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->dbName, pDbName->z, pDbName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); pStmt->ignoreExists = ignoreExists; pStmt->pOptions = (SDatabaseOptions*)pOptions; return (SNode*)pStmt; @@ -848,7 +849,7 @@ SNode* createDropDatabaseStmt(SAstCreateContext* pCxt, bool ignoreNotExists, STo } SDropDatabaseStmt* pStmt = (SDropDatabaseStmt*)nodesMakeNode(QUERY_NODE_DROP_DATABASE_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->dbName, pDbName->z, pDbName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); pStmt->ignoreNotExists = ignoreNotExists; return (SNode*)pStmt; } @@ -860,7 +861,7 @@ SNode* createAlterDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName, SNode* } SAlterDatabaseStmt* pStmt = (SAlterDatabaseStmt*)nodesMakeNode(QUERY_NODE_ALTER_DATABASE_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->dbName, pDbName->z, pDbName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); pStmt->pOptions = (SDatabaseOptions*)pOptions; return (SNode*)pStmt; } @@ -890,8 +891,7 @@ SNode* setTableOption(SAstCreateContext* pCxt, SNode* pOptions, ETableOptionType switch (type) { case TABLE_OPTION_COMMENT: if (checkComment(pCxt, (SToken*)pVal, true)) { - copyStringFormStringToken((SToken*)pVal, ((STableOptions*)pOptions)->comment, - sizeof(((STableOptions*)pOptions)->comment)); + COPY_STRING_FORM_STR_TOKEN(((STableOptions*)pOptions)->comment, (SToken*)pVal); } break; case TABLE_OPTION_MAXDELAY: @@ -922,7 +922,7 @@ SNode* createColumnDefNode(SAstCreateContext* pCxt, SToken* pColName, SDataType } SColumnDefNode* pCol = (SColumnDefNode*)nodesMakeNode(QUERY_NODE_COLUMN_DEF); CHECK_OUT_OF_MEM(pCol); - strncpy(pCol->colName, pColName->z, pColName->n); + COPY_STRING_FORM_ID_TOKEN(pCol->colName, pColName); pCol->dataType = dataType; if (NULL != pComment) { trimString(pComment->z, pComment->n, pCol->comments, sizeof(pCol->comments)); @@ -1037,7 +1037,7 @@ SNode* createAlterTableAddModifyCol(SAstCreateContext* pCxt, SNode* pRealTable, SAlterTableStmt* pStmt = (SAlterTableStmt*)nodesMakeNode(QUERY_NODE_ALTER_TABLE_STMT); CHECK_OUT_OF_MEM(pStmt); pStmt->alterType = alterType; - strncpy(pStmt->colName, pColName->z, pColName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->colName, pColName); pStmt->dataType = dataType; return createAlterTableStmtFinalize(pRealTable, pStmt); } @@ -1050,7 +1050,7 @@ SNode* createAlterTableDropCol(SAstCreateContext* pCxt, SNode* pRealTable, int8_ SAlterTableStmt* pStmt = (SAlterTableStmt*)nodesMakeNode(QUERY_NODE_ALTER_TABLE_STMT); CHECK_OUT_OF_MEM(pStmt); pStmt->alterType = alterType; - strncpy(pStmt->colName, pColName->z, pColName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->colName, pColName); return createAlterTableStmtFinalize(pRealTable, pStmt); } @@ -1063,8 +1063,8 @@ SNode* createAlterTableRenameCol(SAstCreateContext* pCxt, SNode* pRealTable, int SAlterTableStmt* pStmt = (SAlterTableStmt*)nodesMakeNode(QUERY_NODE_ALTER_TABLE_STMT); CHECK_OUT_OF_MEM(pStmt); pStmt->alterType = alterType; - strncpy(pStmt->colName, pOldColName->z, pOldColName->n); - strncpy(pStmt->newColName, pNewColName->z, pNewColName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->colName, pOldColName); + COPY_STRING_FORM_ID_TOKEN(pStmt->newColName, pNewColName); return createAlterTableStmtFinalize(pRealTable, pStmt); } @@ -1076,7 +1076,7 @@ SNode* createAlterTableSetTag(SAstCreateContext* pCxt, SNode* pRealTable, SToken SAlterTableStmt* pStmt = (SAlterTableStmt*)nodesMakeNode(QUERY_NODE_ALTER_TABLE_STMT); CHECK_OUT_OF_MEM(pStmt); pStmt->alterType = TSDB_ALTER_TABLE_UPDATE_TAG_VAL; - strncpy(pStmt->colName, pTagName->z, pTagName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->colName, pTagName); pStmt->pVal = (SValueNode*)pVal; return createAlterTableStmtFinalize(pRealTable, pStmt); } @@ -1088,7 +1088,7 @@ SNode* createUseDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName) { } SUseDatabaseStmt* pStmt = (SUseDatabaseStmt*)nodesMakeNode(QUERY_NODE_USE_DATABASE_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->dbName, pDbName->z, pDbName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); return (SNode*)pStmt; } @@ -1111,18 +1111,24 @@ SNode* createShowStmt(SAstCreateContext* pCxt, ENodeType type, SNode* pDbName, S return (SNode*)pStmt; } -SNode* createShowCreateDatabaseStmt(SAstCreateContext* pCxt, const SToken* pDbName) { +SNode* createShowCreateDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName) { CHECK_PARSER_STATUS(pCxt); - SNode* pStmt = nodesMakeNode(QUERY_NODE_SHOW_CREATE_DATABASE_STMT); + if (!checkDbName(pCxt, pDbName, true)) { + return NULL; + } + SShowCreateDatabaseStmt* pStmt = (SShowCreateDatabaseStmt*)nodesMakeNode(QUERY_NODE_SHOW_CREATE_DATABASE_STMT); CHECK_OUT_OF_MEM(pStmt); - return pStmt; + COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); + return (SNode*)pStmt; } SNode* createShowCreateTableStmt(SAstCreateContext* pCxt, ENodeType type, SNode* pRealTable) { CHECK_PARSER_STATUS(pCxt); - SNode* pStmt = nodesMakeNode(type); + SShowCreateTableStmt* pStmt = (SShowCreateTableStmt*)nodesMakeNode(type); CHECK_OUT_OF_MEM(pStmt); - return pStmt; + strcpy(pStmt->dbName, ((SRealTableNode*)pRealTable)->table.dbName); + strcpy(pStmt->tableName, ((SRealTableNode*)pRealTable)->table.tableName); + return (SNode*)pStmt; } SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const SToken* pPassword) { @@ -1133,7 +1139,7 @@ SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const ST } SCreateUserStmt* pStmt = (SCreateUserStmt*)nodesMakeNode(QUERY_NODE_CREATE_USER_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->useName, pUserName->z, pUserName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->useName, pUserName); strcpy(pStmt->password, password); return (SNode*)pStmt; } @@ -1145,7 +1151,7 @@ SNode* createAlterUserStmt(SAstCreateContext* pCxt, SToken* pUserName, int8_t al } SAlterUserStmt* pStmt = (SAlterUserStmt*)nodesMakeNode(QUERY_NODE_ALTER_USER_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->useName, pUserName->z, pUserName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->useName, pUserName); if (TSDB_ALTER_USER_PASSWD == alterType) { char password[TSDB_USET_PASSWORD_LEN] = {0}; if (!checkPassword(pCxt, pVal, password)) { @@ -1165,7 +1171,7 @@ SNode* createDropUserStmt(SAstCreateContext* pCxt, SToken* pUserName) { } SDropUserStmt* pStmt = (SDropUserStmt*)nodesMakeNode(QUERY_NODE_DROP_USER_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->useName, pUserName->z, pUserName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->useName, pUserName); return (SNode*)pStmt; } @@ -1185,7 +1191,7 @@ SNode* createCreateDnodeStmt(SAstCreateContext* pCxt, const SToken* pFqdn, const if (NULL == pPort) { strcpy(pStmt->fqdn, fqdn); } else { - strncpy(pStmt->fqdn, pFqdn->z, pFqdn->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->fqdn, pFqdn); } pStmt->port = port; return (SNode*)pStmt; @@ -1229,8 +1235,8 @@ SNode* createCreateIndexStmt(SAstCreateContext* pCxt, EIndexType type, bool igno CHECK_OUT_OF_MEM(pStmt); pStmt->indexType = type; pStmt->ignoreExists = ignoreExists; - strncpy(pStmt->indexName, pIndexName->z, pIndexName->n); - strncpy(pStmt->tableName, pTableName->z, pTableName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->indexName, pIndexName); + COPY_STRING_FORM_ID_TOKEN(pStmt->tableName, pTableName); pStmt->pCols = pCols; pStmt->pOptions = (SIndexOptions*)pOptions; return (SNode*)pStmt; @@ -1256,8 +1262,8 @@ SNode* createDropIndexStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken SDropIndexStmt* pStmt = (SDropIndexStmt*)nodesMakeNode(QUERY_NODE_DROP_INDEX_STMT); CHECK_OUT_OF_MEM(pStmt); pStmt->ignoreNotExists = ignoreNotExists; - strncpy(pStmt->indexName, pIndexName->z, pIndexName->n); - strncpy(pStmt->tableName, pTableName->z, pTableName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->indexName, pIndexName); + COPY_STRING_FORM_ID_TOKEN(pStmt->tableName, pTableName); return (SNode*)pStmt; } @@ -1282,14 +1288,14 @@ SNode* createCreateTopicStmt(SAstCreateContext* pCxt, bool ignoreExists, const S CHECK_PARSER_STATUS(pCxt); SCreateTopicStmt* pStmt = (SCreateTopicStmt*)nodesMakeNode(QUERY_NODE_CREATE_TOPIC_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->topicName, pTopicName->z, pTopicName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->topicName, pTopicName); pStmt->ignoreExists = ignoreExists; if (NULL != pRealTable) { strcpy(pStmt->subDbName, ((SRealTableNode*)pRealTable)->table.dbName); strcpy(pStmt->subSTbName, ((SRealTableNode*)pRealTable)->table.tableName); nodesDestroyNode(pRealTable); } else if (NULL != pSubDbName) { - strncpy(pStmt->subDbName, pSubDbName->z, pSubDbName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->subDbName, pSubDbName); } else { pStmt->pQuery = pQuery; } @@ -1300,7 +1306,7 @@ SNode* createDropTopicStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const CHECK_PARSER_STATUS(pCxt); SDropTopicStmt* pStmt = (SDropTopicStmt*)nodesMakeNode(QUERY_NODE_DROP_TOPIC_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->topicName, pTopicName->z, pTopicName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->topicName, pTopicName); pStmt->ignoreNotExists = ignoreNotExists; return (SNode*)pStmt; } @@ -1311,8 +1317,8 @@ SNode* createDropCGroupStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const SDropCGroupStmt* pStmt = (SDropCGroupStmt*)nodesMakeNode(QUERY_NODE_DROP_CGROUP_STMT); CHECK_OUT_OF_MEM(pStmt); pStmt->ignoreNotExists = ignoreNotExists; - strncpy(pStmt->topicName, pTopicName->z, pTopicName->n); - strncpy(pStmt->cgroup, pCGroupId->z, pCGroupId->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->topicName, pTopicName); + COPY_STRING_FORM_ID_TOKEN(pStmt->cgroup, pCGroupId); return (SNode*)pStmt; } @@ -1392,9 +1398,9 @@ SNode* createCreateFunctionStmt(SAstCreateContext* pCxt, bool ignoreExists, bool SCreateFunctionStmt* pStmt = (SCreateFunctionStmt*)nodesMakeNode(QUERY_NODE_CREATE_FUNCTION_STMT); CHECK_OUT_OF_MEM(pStmt); pStmt->ignoreExists = ignoreExists; - strncpy(pStmt->funcName, pFuncName->z, pFuncName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->funcName, pFuncName); pStmt->isAgg = aggFunc; - strncpy(pStmt->libraryPath, pLibPath->z + 1, pLibPath->n - 2); + COPY_STRING_FORM_STR_TOKEN(pStmt->libraryPath, pLibPath); pStmt->outputDt = dataType; pStmt->bufSize = bufSize; return (SNode*)pStmt; @@ -1405,7 +1411,7 @@ SNode* createDropFunctionStmt(SAstCreateContext* pCxt, bool ignoreNotExists, con SDropFunctionStmt* pStmt = (SDropFunctionStmt*)nodesMakeNode(QUERY_NODE_DROP_FUNCTION_STMT); CHECK_OUT_OF_MEM(pStmt); pStmt->ignoreNotExists = ignoreNotExists; - strncpy(pStmt->funcName, pFuncName->z, pFuncName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->funcName, pFuncName); return (SNode*)pStmt; } @@ -1422,7 +1428,7 @@ SNode* createCreateStreamStmt(SAstCreateContext* pCxt, bool ignoreExists, const CHECK_PARSER_STATUS(pCxt); SCreateStreamStmt* pStmt = (SCreateStreamStmt*)nodesMakeNode(QUERY_NODE_CREATE_STREAM_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->streamName, pStreamName->z, pStreamName->n); + COPY_STRING_FORM_ID_TOKEN(pStmt->streamName, pStreamName); if (NULL != pRealTable) { strcpy(pStmt->targetDbName, ((SRealTableNode*)pRealTable)->table.dbName); strcpy(pStmt->targetTabName, ((SRealTableNode*)pRealTable)->table.tableName); @@ -1438,7 +1444,7 @@ SNode* createDropStreamStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const CHECK_PARSER_STATUS(pCxt); SDropStreamStmt* pStmt = (SDropStreamStmt*)nodesMakeNode(QUERY_NODE_DROP_STREAM_STMT); CHECK_OUT_OF_MEM(pStmt); - strncpy(pStmt->streamName, pStreamName->z, TMIN(pStreamName->n, sizeof(pStmt->streamName) - 1)); + COPY_STRING_FORM_ID_TOKEN(pStmt->streamName, pStreamName); pStmt->ignoreNotExists = ignoreNotExists; return (SNode*)pStmt; } @@ -1507,8 +1513,8 @@ SNode* createGrantStmt(SAstCreateContext* pCxt, int64_t privileges, SToken* pDbN SGrantStmt* pStmt = (SGrantStmt*)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); + COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); + COPY_STRING_FORM_ID_TOKEN(pStmt->userName, pUserName); return (SNode*)pStmt; } @@ -1520,8 +1526,8 @@ SNode* createRevokeStmt(SAstCreateContext* pCxt, int64_t privileges, SToken* pDb SRevokeStmt* pStmt = (SRevokeStmt*)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); + COPY_STRING_FORM_ID_TOKEN(pStmt->dbName, pDbName); + COPY_STRING_FORM_ID_TOKEN(pStmt->userName, pUserName); return (SNode*)pStmt; } diff --git a/source/libs/parser/src/parAstParser.c b/source/libs/parser/src/parAstParser.c index 1e968fe1fa..e3218f972b 100644 --- a/source/libs/parser/src/parAstParser.c +++ b/source/libs/parser/src/parAstParser.c @@ -397,6 +397,14 @@ static int32_t collectMetaKeyFromShowVariables(SCollectMetaKeyCxt* pCxt, SShowSt pCxt->pMetaCache); } +static int32_t collectMetaKeyFromShowCreateDatabase(SCollectMetaKeyCxt* pCxt, SShowCreateDatabaseStmt* pStmt) { + return reserveDbCfgInCache(pCxt->pParseCxt->acctId, pStmt->dbName, pCxt->pMetaCache); +} + +static int32_t collectMetaKeyFromShowCreateTable(SCollectMetaKeyCxt* pCxt, SShowCreateTableStmt* pStmt) { + return reserveTableMetaInCache(pCxt->pParseCxt->acctId, pStmt->dbName, pStmt->tableName, pCxt->pMetaCache); +} + static int32_t collectMetaKeyFromShowApps(SCollectMetaKeyCxt* pCxt, SShowStmt* pStmt) { return reserveTableMetaInCache(pCxt->pParseCxt->acctId, TSDB_PERFORMANCE_SCHEMA_DB, TSDB_PERFS_TABLE_APPS, pCxt->pMetaCache); @@ -478,6 +486,11 @@ static int32_t collectMetaKeyFromQuery(SCollectMetaKeyCxt* pCxt, SNode* pStmt) { return collectMetaKeyFromShowQueries(pCxt, (SShowStmt*)pStmt); case QUERY_NODE_SHOW_VARIABLE_STMT: return collectMetaKeyFromShowVariables(pCxt, (SShowStmt*)pStmt); + case QUERY_NODE_SHOW_CREATE_DATABASE_STMT: + return collectMetaKeyFromShowCreateDatabase(pCxt, (SShowCreateDatabaseStmt*)pStmt); + case QUERY_NODE_SHOW_CREATE_TABLE_STMT: + case QUERY_NODE_SHOW_CREATE_STABLE_STMT: + return collectMetaKeyFromShowCreateTable(pCxt, (SShowCreateTableStmt*)pStmt); case QUERY_NODE_SHOW_APPS_STMT: return collectMetaKeyFromShowApps(pCxt, (SShowStmt*)pStmt); case QUERY_NODE_SHOW_TRANSACTIONS_STMT: diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 6f6c6dd7e8..d029911bc9 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -3612,27 +3612,6 @@ static int32_t translateAlterDnode(STranslateContext* pCxt, SAlterDnodeStmt* pSt return buildCmdMsg(pCxt, TDMT_MND_CONFIG_DNODE, (FSerializeFunc)tSerializeSMCfgDnodeReq, &cfgReq); } -static int32_t nodeTypeToShowType(ENodeType nt) { - switch (nt) { - case QUERY_NODE_SHOW_CONNECTIONS_STMT: - return TSDB_MGMT_TABLE_CONNS; - case QUERY_NODE_SHOW_LICENCE_STMT: - return TSDB_MGMT_TABLE_GRANTS; - case QUERY_NODE_SHOW_QUERIES_STMT: - return TSDB_MGMT_TABLE_QUERIES; - case QUERY_NODE_SHOW_VARIABLE_STMT: - return TSDB_MGMT_TABLE_CONFIGS; - default: - break; - } - return 0; -} - -static int32_t translateShow(STranslateContext* pCxt, SShowStmt* pStmt) { - SShowReq showReq = {.type = nodeTypeToShowType(nodeType(pStmt))}; - return buildCmdMsg(pCxt, TDMT_MND_SHOW, (FSerializeFunc)tSerializeSShowReq, &showReq); -} - static int32_t getSmaIndexDstVgId(STranslateContext* pCxt, char* pTableName, int32_t* pVgId) { SVgroupInfo vg = {0}; int32_t code = getTableHashVgroup(pCxt, pCxt->pParseCxt->db, pTableName, &vg); @@ -4178,6 +4157,18 @@ static int32_t translateSplitVgroup(STranslateContext* pCxt, SSplitVgroupStmt* p return buildCmdMsg(pCxt, TDMT_MND_SPLIT_VGROUP, (FSerializeFunc)tSerializeSSplitVgroupReq, &req); } +static int32_t translateShowCreateDatabase(STranslateContext* pCxt, SShowCreateDatabaseStmt* pStmt) { + pStmt->pCfg = taosMemoryCalloc(1, sizeof(SDbCfgInfo)); + if (NULL == pStmt->pCfg) { + return TSDB_CODE_OUT_OF_MEMORY; + } + return getDBCfg(pCxt, pStmt->dbName, (SDbCfgInfo*)pStmt->pCfg); +} + +static int32_t translateShowCreateTable(STranslateContext* pCxt, SShowCreateTableStmt* pStmt) { + return getTableMeta(pCxt, pStmt->dbName, pStmt->tableName, &pStmt->pMeta); +} + static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { int32_t code = TSDB_CODE_SUCCESS; switch (nodeType(pNode)) { @@ -4232,12 +4223,6 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_ALTER_DNODE_STMT: code = translateAlterDnode(pCxt, (SAlterDnodeStmt*)pNode); break; - case QUERY_NODE_SHOW_CONNECTIONS_STMT: - case QUERY_NODE_SHOW_QUERIES_STMT: - case QUERY_NODE_SHOW_TOPICS_STMT: - case QUERY_NODE_SHOW_VARIABLE_STMT: - code = translateShow(pCxt, (SShowStmt*)pNode); - break; case QUERY_NODE_CREATE_INDEX_STMT: code = translateCreateIndex(pCxt, (SCreateIndexStmt*)pNode); break; @@ -4313,6 +4298,13 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_SPLIT_VGROUP_STMT: code = translateSplitVgroup(pCxt, (SSplitVgroupStmt*)pNode); break; + case QUERY_NODE_SHOW_CREATE_DATABASE_STMT: + code = translateShowCreateDatabase(pCxt, (SShowCreateDatabaseStmt*)pNode); + break; + case QUERY_NODE_SHOW_CREATE_TABLE_STMT: + case QUERY_NODE_SHOW_CREATE_STABLE_STMT: + code = translateShowCreateTable(pCxt, (SShowCreateTableStmt*)pNode); + break; default: break; } @@ -4395,6 +4387,42 @@ static int32_t extractDescribeResultSchema(int32_t* numOfCols, SSchema** pSchema return TSDB_CODE_SUCCESS; } +static int32_t extractShowCreateDatabaseResultSchema(int32_t* numOfCols, SSchema** pSchema) { + *numOfCols = 2; + *pSchema = taosMemoryCalloc((*numOfCols), sizeof(SSchema)); + if (NULL == (*pSchema)) { + return TSDB_CODE_OUT_OF_MEMORY; + } + + (*pSchema)[0].type = TSDB_DATA_TYPE_BINARY; + (*pSchema)[0].bytes = TSDB_DB_NAME_LEN; + strcpy((*pSchema)[0].name, "Database"); + + (*pSchema)[1].type = TSDB_DATA_TYPE_BINARY; + (*pSchema)[1].bytes = TSDB_MAX_BINARY_LEN; + strcpy((*pSchema)[1].name, "Create Database"); + + return TSDB_CODE_SUCCESS; +} + +static int32_t extractShowCreateTableResultSchema(int32_t* numOfCols, SSchema** pSchema) { + *numOfCols = 2; + *pSchema = taosMemoryCalloc((*numOfCols), sizeof(SSchema)); + if (NULL == (*pSchema)) { + return TSDB_CODE_OUT_OF_MEMORY; + } + + (*pSchema)[0].type = TSDB_DATA_TYPE_BINARY; + (*pSchema)[0].bytes = TSDB_TABLE_NAME_LEN; + strcpy((*pSchema)[0].name, "Table"); + + (*pSchema)[1].type = TSDB_DATA_TYPE_BINARY; + (*pSchema)[1].bytes = TSDB_MAX_BINARY_LEN; + strcpy((*pSchema)[1].name, "Create Table"); + + return TSDB_CODE_SUCCESS; +} + int32_t extractResultSchema(const SNode* pRoot, int32_t* numOfCols, SSchema** pSchema) { if (NULL == pRoot) { return TSDB_CODE_SUCCESS; @@ -4408,6 +4436,11 @@ int32_t extractResultSchema(const SNode* pRoot, int32_t* numOfCols, SSchema** pS return extractExplainResultSchema(numOfCols, pSchema); case QUERY_NODE_DESCRIBE_STMT: return extractDescribeResultSchema(numOfCols, pSchema); + case QUERY_NODE_SHOW_CREATE_DATABASE_STMT: + return extractShowCreateDatabaseResultSchema(numOfCols, pSchema); + case QUERY_NODE_SHOW_CREATE_TABLE_STMT: + case QUERY_NODE_SHOW_CREATE_STABLE_STMT: + return extractShowCreateTableResultSchema(numOfCols, pSchema); default: break; } @@ -5628,10 +5661,14 @@ static int32_t setQuery(STranslateContext* pCxt, SQuery* pQuery) { pQuery->msgType = toMsgType(((SVnodeModifOpStmt*)pQuery->pRoot)->sqlNodeType); break; case QUERY_NODE_DESCRIBE_STMT: + case QUERY_NODE_SHOW_CREATE_DATABASE_STMT: + case QUERY_NODE_SHOW_CREATE_TABLE_STMT: + case QUERY_NODE_SHOW_CREATE_STABLE_STMT: pQuery->execMode = QUERY_EXEC_MODE_LOCAL; pQuery->haveResultSet = true; break; case QUERY_NODE_RESET_QUERY_CACHE_STMT: + case QUERY_NODE_ALTER_LOCAL_STMT: pQuery->execMode = QUERY_EXEC_MODE_LOCAL; break; default: diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 40b2b3a283..22f1c17742 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -104,25 +104,25 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 360 +#define YYNOCODE 359 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - EFillMode yy54; - int32_t yy100; - bool yy137; - int64_t yy189; - SToken yy209; - ENullOrder yy217; - SDataType yy304; - EOperatorType yy380; - SNodeList* yy424; - EOrder yy578; - SAlterOption yy605; - EJoinType yy612; - SNode* yy632; + EOperatorType yy28; + int32_t yy42; + ENullOrder yy107; + EFillMode yy320; + SToken yy421; + SNodeList* yy530; + SAlterOption yy557; + EOrder yy610; + bool yy621; + EJoinType yy636; + int64_t yy669; + SNode* yy674; + SDataType yy690; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -138,17 +138,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 623 -#define YYNRULE 459 -#define YYNTOKEN 239 -#define YY_MAX_SHIFT 622 -#define YY_MIN_SHIFTREDUCE 913 -#define YY_MAX_SHIFTREDUCE 1371 -#define YY_ERROR_ACTION 1372 -#define YY_ACCEPT_ACTION 1373 -#define YY_NO_ACTION 1374 -#define YY_MIN_REDUCE 1375 -#define YY_MAX_REDUCE 1833 +#define YYNSTATE 624 +#define YYNRULE 458 +#define YYNTOKEN 238 +#define YY_MAX_SHIFT 623 +#define YY_MIN_SHIFTREDUCE 912 +#define YY_MAX_SHIFTREDUCE 1369 +#define YY_ERROR_ACTION 1370 +#define YY_ACCEPT_ACTION 1371 +#define YY_NO_ACTION 1372 +#define YY_MIN_REDUCE 1373 +#define YY_MAX_REDUCE 1830 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -215,612 +215,622 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2186) +#define YY_ACTTAB_COUNT (2207) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 361, 1680, 355, 1667, 28, 233, 300, 395, 1373, 396, - /* 10 */ 1407, 943, 35, 33, 1664, 1667, 1495, 496, 317, 57, - /* 20 */ 309, 24, 1185, 1558, 73, 403, 1664, 396, 1407, 1696, - /* 30 */ 299, 36, 34, 32, 31, 30, 1491, 520, 281, 1556, - /* 40 */ 1660, 1666, 1650, 1811, 519, 1499, 115, 1183, 535, 947, - /* 50 */ 948, 539, 1660, 1666, 134, 149, 1387, 500, 14, 1808, - /* 60 */ 35, 33, 1312, 539, 1191, 1434, 500, 325, 309, 1709, - /* 70 */ 1185, 203, 82, 1681, 522, 1683, 1684, 518, 26, 539, - /* 80 */ 321, 1, 1749, 1551, 1553, 113, 283, 1745, 36, 34, - /* 90 */ 32, 31, 30, 496, 1211, 1183, 56, 56, 1811, 67, - /* 100 */ 222, 1756, 495, 619, 494, 523, 14, 1811, 1811, 39, - /* 110 */ 151, 1398, 1191, 312, 1808, 1600, 496, 1254, 1255, 151, - /* 120 */ 149, 1397, 115, 1808, 1808, 595, 594, 593, 324, 2, - /* 130 */ 592, 591, 590, 117, 585, 584, 583, 582, 581, 580, - /* 140 */ 579, 578, 125, 574, 1437, 115, 36, 34, 32, 31, - /* 150 */ 30, 619, 1650, 36, 34, 32, 31, 30, 1186, 135, - /* 160 */ 1184, 113, 1650, 1463, 96, 1254, 1255, 95, 94, 93, - /* 170 */ 92, 91, 90, 89, 88, 87, 147, 1756, 1757, 577, - /* 180 */ 1761, 1478, 1189, 1190, 113, 1236, 1237, 1239, 1240, 1241, - /* 190 */ 1242, 1243, 515, 537, 1251, 1252, 1253, 1256, 498, 146, - /* 200 */ 1756, 1757, 535, 1761, 448, 447, 1186, 1696, 1184, 446, - /* 210 */ 152, 144, 112, 443, 196, 489, 442, 441, 440, 35, - /* 220 */ 33, 224, 496, 1326, 1545, 152, 152, 309, 1638, 1185, - /* 230 */ 1189, 1190, 1376, 1236, 1237, 1239, 1240, 1241, 1242, 1243, - /* 240 */ 515, 537, 1251, 1252, 1253, 1256, 36, 34, 32, 31, - /* 250 */ 30, 115, 488, 96, 1183, 1680, 95, 94, 93, 92, - /* 260 */ 91, 90, 89, 88, 87, 14, 1209, 35, 33, 66, - /* 270 */ 282, 1191, 1680, 334, 535, 309, 313, 1185, 36, 34, - /* 280 */ 32, 31, 30, 1696, 132, 316, 315, 1811, 2, 536, - /* 290 */ 113, 520, 536, 1508, 1484, 1199, 1650, 197, 519, 1810, - /* 300 */ 1696, 533, 1183, 1808, 154, 148, 1756, 1757, 520, 1761, - /* 310 */ 619, 500, 960, 1650, 959, 519, 1223, 1276, 1506, 1191, - /* 320 */ 1192, 1506, 1336, 1709, 1254, 1255, 269, 1681, 522, 1683, - /* 330 */ 1684, 518, 1210, 539, 56, 38, 8, 1191, 413, 1281, - /* 340 */ 1709, 961, 536, 136, 1681, 522, 1683, 1684, 518, 319, - /* 350 */ 539, 413, 1811, 1375, 359, 1167, 1168, 132, 619, 482, - /* 360 */ 1334, 1335, 1337, 1338, 151, 1186, 1508, 1184, 1808, 1552, - /* 370 */ 1553, 1506, 1254, 1255, 25, 460, 540, 105, 104, 103, - /* 380 */ 102, 101, 100, 99, 98, 97, 501, 1825, 458, 1189, - /* 390 */ 1190, 346, 1236, 1237, 1239, 1240, 1241, 1242, 1243, 515, - /* 400 */ 537, 1251, 1252, 1253, 1256, 56, 615, 614, 1811, 448, - /* 410 */ 447, 348, 344, 1186, 446, 1184, 1368, 112, 443, 472, - /* 420 */ 150, 442, 441, 440, 1808, 490, 35, 33, 1257, 1092, - /* 430 */ 1093, 1200, 394, 1195, 309, 398, 1185, 1189, 1190, 293, - /* 440 */ 1236, 1237, 1239, 1240, 1241, 1242, 1243, 515, 537, 1251, - /* 450 */ 1252, 1253, 1256, 462, 322, 1203, 402, 1811, 536, 398, - /* 460 */ 1811, 1183, 132, 152, 152, 152, 537, 1251, 1252, 1809, - /* 470 */ 360, 1508, 149, 1808, 35, 33, 1808, 1680, 1191, 400, - /* 480 */ 182, 354, 309, 353, 1185, 1207, 569, 1506, 294, 1549, - /* 490 */ 292, 291, 143, 436, 1811, 9, 1367, 438, 430, 426, - /* 500 */ 422, 418, 181, 11, 10, 1696, 149, 1558, 1311, 1183, - /* 510 */ 1808, 64, 536, 499, 314, 573, 64, 619, 1650, 437, - /* 520 */ 519, 1210, 1012, 1556, 370, 536, 1191, 65, 536, 111, - /* 530 */ 179, 1254, 1255, 1502, 152, 1482, 1185, 106, 1501, 1014, - /* 540 */ 106, 1506, 54, 9, 434, 1709, 1396, 439, 83, 1681, - /* 550 */ 522, 1683, 1684, 518, 1506, 539, 485, 1506, 1749, 536, - /* 560 */ 959, 1183, 302, 1745, 145, 619, 36, 34, 32, 31, - /* 570 */ 30, 371, 1186, 1208, 1184, 1497, 225, 79, 1191, 1254, - /* 580 */ 1255, 478, 1776, 385, 1288, 432, 1664, 1650, 1506, 178, - /* 590 */ 116, 170, 573, 175, 1763, 408, 1189, 1190, 1498, 1236, - /* 600 */ 1237, 1239, 1240, 1241, 1242, 1243, 515, 537, 1251, 1252, - /* 610 */ 1253, 1256, 1660, 1666, 168, 445, 444, 619, 1760, 1191, - /* 620 */ 1186, 1558, 1184, 539, 589, 587, 491, 486, 320, 163, - /* 630 */ 162, 576, 570, 35, 33, 1549, 1395, 1556, 32, 31, - /* 640 */ 30, 309, 571, 1185, 1189, 1190, 496, 1236, 1237, 1239, - /* 650 */ 1240, 1241, 1242, 1243, 515, 537, 1251, 1252, 1253, 1256, - /* 660 */ 1319, 123, 122, 568, 567, 566, 1209, 1262, 1183, 536, - /* 670 */ 536, 1394, 1186, 1209, 1184, 115, 536, 1650, 280, 565, - /* 680 */ 1207, 412, 1503, 1763, 7, 1191, 1209, 378, 1627, 1668, - /* 690 */ 390, 536, 469, 1393, 536, 500, 1189, 1190, 1506, 1506, - /* 700 */ 1664, 131, 2, 470, 133, 1506, 534, 1759, 391, 262, - /* 710 */ 1392, 504, 1650, 1391, 113, 1310, 536, 1493, 159, 1390, - /* 720 */ 1506, 260, 53, 1506, 619, 52, 1660, 1666, 246, 222, - /* 730 */ 1756, 495, 536, 494, 1650, 1389, 1811, 539, 1254, 1255, - /* 740 */ 523, 1386, 164, 62, 323, 1506, 61, 1763, 149, 1489, - /* 750 */ 1601, 1650, 1808, 1212, 1650, 36, 34, 32, 31, 30, - /* 760 */ 1650, 1506, 1591, 256, 502, 132, 1536, 56, 947, 948, - /* 770 */ 1388, 1758, 187, 161, 1509, 185, 1650, 1768, 1307, 1186, - /* 780 */ 389, 1184, 1650, 384, 383, 382, 381, 380, 377, 376, - /* 790 */ 375, 374, 373, 369, 368, 367, 366, 365, 364, 363, - /* 800 */ 362, 284, 1385, 1189, 1190, 81, 1236, 1237, 1239, 1240, - /* 810 */ 1241, 1242, 1243, 515, 537, 1251, 1252, 1253, 1256, 1384, - /* 820 */ 189, 1383, 438, 188, 507, 1223, 463, 36, 34, 32, - /* 830 */ 31, 30, 1238, 1274, 1382, 1558, 60, 59, 358, 1238, - /* 840 */ 1381, 158, 1680, 1650, 437, 1380, 1379, 352, 1378, 588, - /* 850 */ 191, 1557, 1238, 190, 193, 1424, 1307, 192, 279, 121, - /* 860 */ 1650, 342, 1650, 340, 336, 332, 155, 327, 11, 10, - /* 870 */ 1696, 1419, 512, 284, 1670, 1650, 1194, 449, 520, 1417, - /* 880 */ 209, 1650, 1193, 1650, 1275, 519, 1650, 1650, 46, 1650, - /* 890 */ 349, 212, 37, 451, 1680, 37, 152, 505, 500, 37, - /* 900 */ 474, 454, 1370, 1371, 200, 1274, 1280, 984, 514, 564, - /* 910 */ 1709, 1672, 483, 82, 1681, 522, 1683, 1684, 518, 235, - /* 920 */ 539, 78, 1696, 1749, 985, 219, 1464, 283, 1745, 1333, - /* 930 */ 499, 75, 214, 1282, 228, 1650, 1244, 519, 1697, 1811, - /* 940 */ 1140, 27, 307, 1269, 1270, 1271, 1272, 1273, 1277, 1278, - /* 950 */ 1279, 149, 119, 120, 1408, 1808, 1275, 121, 431, 1546, - /* 960 */ 237, 46, 1709, 1483, 1680, 83, 1681, 522, 1683, 1684, - /* 970 */ 518, 1481, 539, 1779, 227, 1749, 497, 230, 1280, 302, - /* 980 */ 1745, 145, 544, 120, 232, 3, 121, 107, 120, 1197, - /* 990 */ 5, 326, 1696, 528, 243, 1196, 1266, 1207, 1043, 1777, - /* 1000 */ 520, 329, 255, 333, 289, 1650, 1012, 519, 1151, 290, - /* 1010 */ 252, 372, 508, 27, 307, 1269, 1270, 1271, 1272, 1273, - /* 1020 */ 1277, 1278, 1279, 1071, 1075, 1593, 1680, 1082, 1080, 124, - /* 1030 */ 160, 379, 1709, 387, 386, 83, 1681, 522, 1683, 1684, - /* 1040 */ 518, 392, 539, 388, 1213, 1749, 393, 401, 1216, 302, - /* 1050 */ 1745, 1824, 1680, 404, 1696, 167, 571, 405, 169, 1215, - /* 1060 */ 1783, 406, 520, 1217, 571, 407, 172, 1650, 409, 519, - /* 1070 */ 174, 410, 1214, 411, 177, 123, 122, 568, 567, 566, - /* 1080 */ 1696, 63, 414, 123, 122, 568, 567, 566, 520, 433, - /* 1090 */ 180, 435, 1496, 1650, 1709, 519, 184, 83, 1681, 522, - /* 1100 */ 1683, 1684, 518, 253, 539, 86, 1680, 1749, 1492, 186, - /* 1110 */ 298, 302, 1745, 1824, 126, 1632, 127, 1631, 1494, 1490, - /* 1120 */ 1709, 198, 1806, 83, 1681, 522, 1683, 1684, 518, 128, - /* 1130 */ 539, 129, 464, 1749, 1696, 201, 471, 302, 1745, 1824, - /* 1140 */ 465, 204, 520, 207, 476, 1212, 475, 1650, 1767, 519, - /* 1150 */ 468, 484, 526, 1780, 473, 1790, 210, 481, 301, 1789, - /* 1160 */ 487, 6, 500, 493, 213, 480, 139, 1211, 1770, 218, - /* 1170 */ 1307, 220, 114, 40, 1709, 506, 509, 269, 1681, 522, - /* 1180 */ 1683, 1684, 518, 1764, 539, 1680, 303, 1827, 18, 1599, - /* 1190 */ 524, 525, 1050, 562, 561, 560, 1054, 559, 1056, 1057, - /* 1200 */ 558, 1059, 555, 1811, 1065, 552, 1067, 1068, 549, 546, - /* 1210 */ 221, 1680, 1730, 1696, 311, 149, 1598, 529, 530, 1808, - /* 1220 */ 531, 520, 239, 254, 241, 72, 1650, 1807, 519, 226, - /* 1230 */ 74, 1507, 257, 1550, 542, 503, 510, 229, 231, 1696, - /* 1240 */ 1479, 249, 618, 138, 259, 263, 270, 520, 264, 261, - /* 1250 */ 1644, 1643, 1650, 1709, 519, 47, 84, 1681, 522, 1683, - /* 1260 */ 1684, 518, 1680, 539, 58, 1642, 1749, 328, 1639, 330, - /* 1270 */ 1748, 1745, 331, 1178, 1179, 156, 335, 1637, 1680, 1709, - /* 1280 */ 337, 338, 84, 1681, 522, 1683, 1684, 518, 339, 539, - /* 1290 */ 1696, 341, 1749, 1636, 1635, 343, 511, 1745, 517, 1634, - /* 1300 */ 345, 1633, 347, 1650, 1617, 519, 1696, 350, 351, 1153, - /* 1310 */ 1154, 157, 1611, 1610, 520, 356, 357, 1609, 1608, 1650, - /* 1320 */ 1126, 519, 1586, 1585, 1584, 1583, 1582, 1581, 1580, 1579, - /* 1330 */ 1709, 1578, 1577, 277, 1681, 522, 1683, 1684, 518, 516, - /* 1340 */ 539, 513, 1721, 1576, 1575, 1574, 1709, 1573, 1572, 84, - /* 1350 */ 1681, 522, 1683, 1684, 518, 622, 539, 453, 1571, 1749, - /* 1360 */ 1570, 1569, 1568, 1567, 1746, 1566, 1680, 1565, 1564, 251, - /* 1370 */ 118, 1563, 461, 1128, 1562, 1561, 1560, 1559, 1436, 1404, - /* 1380 */ 142, 108, 1680, 109, 950, 397, 195, 611, 607, 603, - /* 1390 */ 599, 250, 165, 399, 1696, 949, 1403, 166, 456, 1625, - /* 1400 */ 1619, 110, 520, 450, 1607, 173, 171, 1650, 194, 519, - /* 1410 */ 1696, 1606, 1596, 1485, 978, 1435, 80, 176, 520, 244, - /* 1420 */ 479, 1433, 417, 1650, 1431, 519, 421, 1429, 416, 415, - /* 1430 */ 425, 419, 420, 51, 1709, 423, 50, 278, 1681, 522, - /* 1440 */ 1683, 1684, 518, 424, 539, 1680, 1427, 428, 427, 1416, - /* 1450 */ 1709, 429, 532, 273, 1681, 522, 1683, 1684, 518, 1415, - /* 1460 */ 539, 1402, 1487, 45, 1086, 1085, 1486, 1011, 1425, 1010, - /* 1470 */ 1009, 1680, 1008, 1696, 183, 586, 588, 1005, 1004, 477, - /* 1480 */ 1003, 520, 205, 1420, 452, 295, 1650, 296, 519, 297, - /* 1490 */ 492, 1418, 455, 1401, 1400, 457, 459, 85, 1624, 1696, - /* 1500 */ 1161, 1159, 1618, 199, 466, 1605, 130, 520, 1604, 1603, - /* 1510 */ 202, 1595, 1650, 1709, 519, 206, 136, 1681, 522, 1683, - /* 1520 */ 1684, 518, 1680, 539, 15, 306, 4, 37, 68, 43, - /* 1530 */ 211, 216, 1332, 1680, 208, 137, 215, 49, 467, 1709, - /* 1540 */ 1325, 48, 278, 1681, 522, 1683, 1684, 518, 217, 539, - /* 1550 */ 1696, 22, 69, 23, 1670, 42, 10, 1304, 517, 223, - /* 1560 */ 1826, 1696, 1303, 1650, 16, 519, 140, 17, 13, 520, - /* 1570 */ 1356, 1355, 304, 29, 1650, 1360, 519, 1361, 1350, 1359, - /* 1580 */ 41, 305, 1680, 19, 141, 1267, 1231, 308, 1246, 1245, - /* 1590 */ 1709, 153, 521, 277, 1681, 522, 1683, 1684, 518, 1680, - /* 1600 */ 539, 1709, 1722, 234, 278, 1681, 522, 1683, 1684, 518, - /* 1610 */ 1696, 539, 12, 1594, 20, 240, 21, 236, 520, 1330, - /* 1620 */ 238, 527, 70, 1650, 71, 519, 242, 1696, 1669, 75, - /* 1630 */ 245, 1712, 1201, 1049, 1248, 520, 310, 538, 44, 543, - /* 1640 */ 1650, 541, 519, 1072, 318, 1069, 545, 547, 548, 550, - /* 1650 */ 1709, 1066, 1680, 278, 1681, 522, 1683, 1684, 518, 1060, - /* 1660 */ 539, 1680, 551, 553, 554, 556, 557, 1709, 563, 1058, - /* 1670 */ 265, 1681, 522, 1683, 1684, 518, 1064, 539, 1063, 1062, - /* 1680 */ 1696, 1061, 76, 1081, 77, 55, 247, 1077, 520, 1696, - /* 1690 */ 976, 572, 993, 1650, 1000, 519, 1018, 520, 575, 248, - /* 1700 */ 998, 997, 1650, 996, 519, 1015, 995, 994, 992, 991, - /* 1710 */ 1013, 988, 1432, 987, 1680, 986, 983, 598, 982, 981, - /* 1720 */ 1709, 596, 597, 272, 1681, 522, 1683, 1684, 518, 1709, - /* 1730 */ 539, 1680, 274, 1681, 522, 1683, 1684, 518, 1430, 539, - /* 1740 */ 600, 601, 1696, 602, 1428, 604, 605, 606, 1426, 608, - /* 1750 */ 520, 610, 609, 1414, 613, 1650, 612, 519, 1413, 1696, - /* 1760 */ 1399, 616, 617, 1374, 1187, 258, 620, 520, 1374, 621, - /* 1770 */ 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, 1374, 1374, - /* 1780 */ 1374, 1374, 1709, 1374, 1374, 266, 1681, 522, 1683, 1684, - /* 1790 */ 518, 1374, 539, 1680, 1374, 1374, 1374, 1374, 1374, 1709, - /* 1800 */ 1374, 1374, 275, 1681, 522, 1683, 1684, 518, 1374, 539, - /* 1810 */ 1374, 1374, 1680, 1374, 1374, 1374, 1374, 1374, 1374, 1374, - /* 1820 */ 1374, 1696, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 520, - /* 1830 */ 1374, 1374, 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, - /* 1840 */ 1696, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 520, 1374, - /* 1850 */ 1374, 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, 1374, - /* 1860 */ 1374, 1709, 1374, 1374, 267, 1681, 522, 1683, 1684, 518, - /* 1870 */ 1680, 539, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1680, - /* 1880 */ 1709, 1374, 1374, 276, 1681, 522, 1683, 1684, 518, 1374, - /* 1890 */ 539, 1374, 1374, 1680, 1374, 1374, 1374, 1374, 1696, 1374, - /* 1900 */ 1374, 1374, 1374, 1374, 1374, 1374, 520, 1696, 1374, 1374, - /* 1910 */ 1374, 1650, 1374, 519, 1374, 520, 1374, 1374, 1374, 1374, - /* 1920 */ 1650, 1696, 519, 1374, 1374, 1374, 1374, 1374, 1374, 520, - /* 1930 */ 1374, 1374, 1374, 1374, 1650, 1374, 519, 1374, 1709, 1374, - /* 1940 */ 1374, 268, 1681, 522, 1683, 1684, 518, 1709, 539, 1374, - /* 1950 */ 1692, 1681, 522, 1683, 1684, 518, 1374, 539, 1374, 1374, - /* 1960 */ 1374, 1709, 1374, 1680, 1691, 1681, 522, 1683, 1684, 518, - /* 1970 */ 1374, 539, 1680, 1374, 1374, 1374, 1374, 1374, 1374, 1374, - /* 1980 */ 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1374, - /* 1990 */ 1374, 1696, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 520, - /* 2000 */ 1696, 1374, 1374, 1374, 1650, 1374, 519, 1374, 520, 1374, - /* 2010 */ 1374, 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, 1374, - /* 2020 */ 1374, 1374, 1374, 1374, 1374, 1680, 1374, 1374, 1374, 1374, - /* 2030 */ 1374, 1709, 1374, 1374, 1690, 1681, 522, 1683, 1684, 518, - /* 2040 */ 1709, 539, 1680, 287, 1681, 522, 1683, 1684, 518, 1374, - /* 2050 */ 539, 1374, 1374, 1696, 1374, 1374, 1374, 1374, 1374, 1374, - /* 2060 */ 1374, 520, 1374, 1374, 1374, 1374, 1650, 1374, 519, 1374, - /* 2070 */ 1696, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 520, 1374, - /* 2080 */ 1374, 1374, 1374, 1650, 1374, 519, 1374, 1374, 1374, 1374, - /* 2090 */ 1374, 1680, 1374, 1709, 1374, 1374, 286, 1681, 522, 1683, - /* 2100 */ 1684, 518, 1374, 539, 1374, 1374, 1374, 1680, 1374, 1374, - /* 2110 */ 1709, 1374, 1374, 288, 1681, 522, 1683, 1684, 518, 1696, - /* 2120 */ 539, 1374, 1374, 1374, 1374, 1374, 1374, 520, 1374, 1374, - /* 2130 */ 1374, 1374, 1650, 1374, 519, 1696, 1374, 1374, 1374, 1374, - /* 2140 */ 1374, 1374, 1374, 520, 1374, 1374, 1374, 1374, 1650, 1374, - /* 2150 */ 519, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1374, 1709, - /* 2160 */ 1374, 1374, 285, 1681, 522, 1683, 1684, 518, 1374, 539, - /* 2170 */ 1374, 1374, 1374, 1374, 1374, 1709, 1374, 1374, 271, 1681, - /* 2180 */ 522, 1683, 1684, 518, 1374, 539, + /* 0 */ 1494, 1492, 355, 1677, 1664, 536, 536, 300, 28, 233, + /* 10 */ 135, 1661, 35, 33, 1460, 1661, 1664, 106, 106, 317, + /* 20 */ 309, 535, 1183, 535, 434, 439, 394, 1661, 942, 398, + /* 30 */ 395, 1693, 396, 1405, 1503, 1503, 496, 1657, 1663, 499, + /* 40 */ 1209, 1657, 1663, 1808, 1647, 400, 519, 1181, 539, 535, + /* 50 */ 472, 1205, 539, 1657, 1663, 149, 1371, 14, 1677, 1805, + /* 60 */ 35, 33, 1310, 1189, 539, 114, 946, 947, 309, 144, + /* 70 */ 1183, 1706, 1207, 1208, 83, 1678, 522, 1680, 1681, 518, + /* 80 */ 1, 539, 1542, 38, 1746, 79, 1693, 1480, 302, 1742, + /* 90 */ 145, 1808, 1693, 496, 520, 1181, 56, 1396, 115, 1647, + /* 100 */ 489, 519, 620, 149, 112, 14, 1495, 1805, 1774, 39, + /* 110 */ 403, 1189, 396, 1405, 500, 325, 1252, 1253, 498, 146, + /* 120 */ 1753, 1754, 114, 1758, 11, 10, 1706, 413, 2, 82, + /* 130 */ 1678, 522, 1680, 1681, 518, 1808, 539, 488, 1647, 1746, + /* 140 */ 448, 447, 490, 283, 1742, 446, 1808, 1807, 111, 443, + /* 150 */ 620, 1805, 442, 441, 440, 1808, 1808, 1184, 150, 1182, + /* 160 */ 402, 112, 1805, 398, 1252, 1253, 224, 151, 149, 1090, + /* 170 */ 1091, 1805, 1805, 134, 56, 1385, 147, 1753, 1754, 571, + /* 180 */ 1758, 1187, 1188, 159, 1234, 1235, 1237, 1238, 1239, 1240, + /* 190 */ 1241, 515, 537, 1249, 1250, 1251, 1254, 132, 122, 121, + /* 200 */ 568, 567, 566, 24, 1286, 1184, 1506, 1182, 62, 152, + /* 210 */ 26, 61, 152, 36, 34, 32, 31, 30, 35, 33, + /* 220 */ 36, 34, 32, 31, 30, 152, 309, 346, 1183, 1187, + /* 230 */ 1188, 1395, 1234, 1235, 1237, 1238, 1239, 1240, 1241, 515, + /* 240 */ 537, 1249, 1250, 1251, 1254, 293, 496, 348, 344, 1010, + /* 250 */ 354, 96, 353, 1181, 95, 94, 93, 92, 91, 90, + /* 260 */ 89, 88, 87, 14, 1677, 1012, 35, 33, 453, 1189, + /* 270 */ 182, 196, 1647, 1208, 309, 114, 1183, 36, 34, 32, + /* 280 */ 31, 30, 143, 461, 57, 573, 2, 430, 426, 422, + /* 290 */ 418, 181, 1693, 294, 1478, 292, 291, 195, 436, 1808, + /* 300 */ 520, 1181, 438, 152, 1760, 1647, 1317, 519, 620, 456, + /* 310 */ 1665, 1806, 1207, 450, 112, 1805, 65, 1189, 194, 179, + /* 320 */ 500, 1661, 1252, 1253, 437, 1207, 66, 282, 1757, 148, + /* 330 */ 1753, 1754, 1706, 1758, 8, 82, 1678, 522, 1680, 1681, + /* 340 */ 518, 361, 539, 51, 1635, 1746, 50, 1657, 1663, 283, + /* 350 */ 1742, 36, 34, 32, 31, 30, 620, 203, 539, 1555, + /* 360 */ 56, 1808, 523, 1184, 321, 1182, 299, 1548, 1550, 385, + /* 370 */ 1252, 1253, 1598, 149, 1206, 1553, 1394, 1805, 178, 281, + /* 380 */ 170, 1334, 175, 56, 408, 67, 571, 1187, 1188, 334, + /* 390 */ 1234, 1235, 1237, 1238, 1239, 1240, 1241, 515, 537, 1249, + /* 400 */ 1250, 1251, 1254, 168, 565, 122, 121, 568, 567, 566, + /* 410 */ 1393, 1184, 1189, 1182, 1366, 163, 162, 1647, 482, 1332, + /* 420 */ 1333, 1335, 1336, 576, 35, 33, 1255, 36, 34, 32, + /* 430 */ 31, 30, 309, 571, 1183, 1187, 1188, 496, 1234, 1235, + /* 440 */ 1237, 1238, 1239, 1240, 1241, 515, 537, 1249, 1250, 1251, + /* 450 */ 1254, 1647, 122, 121, 568, 567, 566, 1549, 1550, 1181, + /* 460 */ 32, 31, 30, 152, 536, 1555, 114, 36, 34, 32, + /* 470 */ 31, 30, 35, 33, 1677, 1189, 154, 1236, 612, 536, + /* 480 */ 309, 1554, 1183, 445, 444, 131, 500, 536, 1555, 152, + /* 490 */ 1236, 359, 9, 1503, 1365, 314, 1324, 589, 587, 360, + /* 500 */ 462, 523, 1693, 1392, 1553, 112, 1373, 1181, 1503, 312, + /* 510 */ 499, 1597, 152, 1391, 620, 1647, 1503, 519, 485, 1260, + /* 520 */ 222, 1753, 495, 1189, 494, 1207, 1488, 1808, 1252, 1253, + /* 530 */ 105, 104, 103, 102, 101, 100, 99, 98, 97, 151, + /* 540 */ 9, 1808, 1706, 1805, 1647, 83, 1678, 522, 1680, 1681, + /* 550 */ 518, 73, 539, 149, 1647, 1746, 1434, 1805, 536, 302, + /* 560 */ 1742, 145, 620, 36, 34, 32, 31, 30, 64, 1184, + /* 570 */ 370, 1182, 1496, 225, 1588, 1555, 1252, 1253, 478, 1773, + /* 580 */ 536, 110, 320, 536, 1390, 161, 1490, 1503, 491, 486, + /* 590 */ 1498, 1553, 371, 1187, 1188, 412, 1234, 1235, 1237, 1238, + /* 600 */ 1239, 1240, 1241, 515, 537, 1249, 1250, 1251, 1254, 1503, + /* 610 */ 536, 64, 1503, 1274, 536, 448, 447, 1184, 256, 1182, + /* 620 */ 446, 1533, 1500, 111, 443, 1647, 1624, 442, 441, 440, + /* 630 */ 35, 33, 1221, 1499, 197, 1279, 54, 1760, 309, 1503, + /* 640 */ 1183, 1187, 1188, 1503, 1234, 1235, 1237, 1238, 1239, 1240, + /* 650 */ 1241, 515, 537, 1249, 1250, 1251, 1254, 536, 1389, 313, + /* 660 */ 1388, 1756, 536, 1387, 1486, 1181, 1481, 132, 536, 470, + /* 670 */ 25, 536, 1479, 536, 533, 280, 1505, 1205, 1431, 1309, + /* 680 */ 534, 1189, 1374, 246, 378, 323, 1503, 390, 1677, 1384, + /* 690 */ 1236, 1503, 1165, 1166, 1760, 946, 947, 1503, 2, 1647, + /* 700 */ 1503, 1647, 1503, 96, 1647, 391, 95, 94, 93, 92, + /* 710 */ 91, 90, 89, 88, 87, 319, 1693, 1383, 1755, 577, + /* 720 */ 620, 1475, 413, 132, 520, 1210, 1386, 1382, 573, 1647, + /* 730 */ 1647, 519, 1505, 187, 1252, 1253, 185, 595, 594, 593, + /* 740 */ 324, 7, 592, 591, 590, 116, 585, 584, 583, 582, + /* 750 */ 581, 580, 579, 578, 124, 574, 1706, 1381, 1647, 84, + /* 760 */ 1678, 522, 1680, 1681, 518, 507, 539, 569, 1647, 1746, + /* 770 */ 1546, 616, 615, 1745, 1742, 1184, 389, 1182, 1380, 384, + /* 780 */ 383, 382, 381, 380, 377, 376, 375, 374, 373, 369, + /* 790 */ 368, 367, 366, 365, 364, 363, 362, 200, 1647, 1187, + /* 800 */ 1188, 504, 1234, 1235, 1237, 1238, 1239, 1240, 1241, 515, + /* 810 */ 537, 1249, 1250, 1251, 1254, 133, 588, 1379, 958, 1647, + /* 820 */ 262, 1378, 36, 34, 32, 31, 30, 570, 1765, 1305, + /* 830 */ 1546, 1377, 260, 53, 1376, 1677, 52, 36, 34, 32, + /* 840 */ 31, 30, 322, 432, 438, 1183, 189, 1421, 120, 188, + /* 850 */ 132, 209, 164, 46, 212, 514, 349, 502, 1647, 1505, + /* 860 */ 512, 1677, 1647, 1693, 469, 191, 437, 284, 190, 449, + /* 870 */ 1181, 520, 1647, 1417, 1415, 1647, 1647, 56, 519, 460, + /* 880 */ 11, 10, 284, 37, 193, 1308, 1189, 192, 474, 1693, + /* 890 */ 37, 1221, 458, 1331, 214, 451, 454, 517, 564, 1272, + /* 900 */ 1368, 1369, 1647, 1706, 519, 1461, 83, 1678, 522, 1680, + /* 910 */ 1681, 518, 1305, 539, 1272, 81, 1746, 1677, 228, 1667, + /* 920 */ 302, 1742, 1821, 1280, 37, 620, 235, 118, 1192, 1706, + /* 930 */ 1242, 1780, 277, 1678, 522, 1680, 1681, 518, 516, 539, + /* 940 */ 513, 1718, 1191, 119, 483, 1693, 60, 59, 358, 463, + /* 950 */ 1273, 158, 508, 520, 120, 1669, 46, 352, 1647, 544, + /* 960 */ 519, 119, 1694, 1406, 1138, 1273, 237, 528, 279, 219, + /* 970 */ 431, 342, 1278, 340, 336, 332, 155, 327, 120, 107, + /* 980 */ 1184, 119, 1182, 243, 1264, 1706, 505, 1278, 84, 1678, + /* 990 */ 522, 1680, 1681, 518, 1041, 539, 255, 1776, 1746, 1069, + /* 1000 */ 1543, 1073, 511, 1742, 1187, 1188, 152, 27, 307, 1267, + /* 1010 */ 1268, 1269, 1270, 1271, 1275, 1276, 1277, 1677, 1080, 1078, + /* 1020 */ 982, 123, 27, 307, 1267, 1268, 1269, 1270, 1271, 1275, + /* 1030 */ 1276, 1277, 78, 497, 227, 230, 983, 3, 232, 5, + /* 1040 */ 1195, 326, 75, 1205, 333, 1693, 329, 289, 1010, 290, + /* 1050 */ 252, 1149, 372, 520, 1194, 160, 1590, 379, 1647, 387, + /* 1060 */ 519, 386, 392, 1211, 388, 393, 1214, 1048, 562, 561, + /* 1070 */ 560, 1052, 559, 1054, 1055, 558, 1057, 555, 1677, 1063, + /* 1080 */ 552, 1065, 1066, 549, 546, 1706, 401, 167, 83, 1678, + /* 1090 */ 522, 1680, 1681, 518, 404, 539, 1213, 169, 1746, 405, + /* 1100 */ 1215, 406, 302, 1742, 1821, 172, 1693, 407, 174, 410, + /* 1110 */ 1212, 411, 409, 1803, 520, 177, 63, 414, 180, 1647, + /* 1120 */ 433, 519, 435, 1493, 86, 184, 1489, 298, 186, 126, + /* 1130 */ 127, 198, 1629, 1491, 253, 1487, 128, 129, 465, 201, + /* 1140 */ 464, 1677, 471, 204, 473, 1210, 1706, 475, 207, 83, + /* 1150 */ 1678, 522, 1680, 1681, 518, 1677, 539, 496, 484, 1746, + /* 1160 */ 1628, 476, 1777, 302, 1742, 1821, 468, 1787, 6, 1693, + /* 1170 */ 526, 481, 301, 1786, 1764, 487, 493, 520, 480, 1767, + /* 1180 */ 210, 218, 1647, 1693, 519, 1305, 114, 139, 113, 1209, + /* 1190 */ 40, 520, 213, 1804, 509, 506, 1647, 500, 519, 303, + /* 1200 */ 18, 1761, 529, 1824, 524, 220, 500, 525, 311, 1706, + /* 1210 */ 1596, 500, 269, 1678, 522, 1680, 1681, 518, 531, 539, + /* 1220 */ 1595, 530, 241, 1706, 226, 112, 269, 1678, 522, 1680, + /* 1230 */ 1681, 518, 221, 539, 1677, 1727, 239, 254, 1808, 72, + /* 1240 */ 222, 1753, 495, 74, 494, 1677, 1547, 1808, 1476, 542, + /* 1250 */ 151, 257, 1808, 229, 1805, 1504, 249, 503, 510, 149, + /* 1260 */ 231, 619, 1693, 1805, 149, 623, 138, 1641, 1805, 263, + /* 1270 */ 520, 270, 264, 1693, 259, 1647, 261, 519, 1640, 251, + /* 1280 */ 47, 520, 58, 1639, 328, 1636, 1647, 330, 519, 331, + /* 1290 */ 1176, 125, 1177, 335, 156, 1634, 611, 607, 603, 599, + /* 1300 */ 250, 337, 1706, 338, 339, 136, 1678, 522, 1680, 1681, + /* 1310 */ 518, 1677, 539, 1706, 1633, 341, 84, 1678, 522, 1680, + /* 1320 */ 1681, 518, 1632, 539, 343, 80, 1746, 1677, 244, 1631, + /* 1330 */ 345, 1743, 157, 347, 1614, 350, 1152, 351, 1151, 1693, + /* 1340 */ 1630, 1608, 1607, 356, 357, 1606, 1605, 520, 501, 1822, + /* 1350 */ 1124, 1583, 1647, 1582, 519, 1693, 1581, 1580, 1579, 1578, + /* 1360 */ 1577, 532, 1576, 520, 1575, 479, 1574, 1573, 1647, 1572, + /* 1370 */ 519, 1571, 1570, 1569, 1568, 1567, 1566, 117, 1565, 1706, + /* 1380 */ 1564, 1563, 278, 1678, 522, 1680, 1681, 518, 477, 539, + /* 1390 */ 1126, 205, 1562, 1677, 1561, 1706, 1560, 1559, 273, 1678, + /* 1400 */ 522, 1680, 1681, 518, 1558, 539, 1557, 1556, 1433, 1402, + /* 1410 */ 1157, 142, 199, 1401, 949, 948, 1677, 165, 1622, 108, + /* 1420 */ 1616, 1693, 166, 397, 109, 1604, 171, 399, 173, 520, + /* 1430 */ 1603, 1593, 176, 1482, 1647, 492, 519, 1432, 1430, 1428, + /* 1440 */ 415, 1426, 417, 976, 1693, 419, 1424, 416, 420, 421, + /* 1450 */ 1414, 425, 520, 1413, 429, 424, 1400, 1647, 1484, 519, + /* 1460 */ 586, 1706, 423, 427, 136, 1678, 522, 1680, 1681, 518, + /* 1470 */ 306, 539, 428, 1677, 1083, 45, 1084, 1483, 183, 1009, + /* 1480 */ 1422, 1008, 1007, 1006, 1706, 588, 295, 278, 1678, 522, + /* 1490 */ 1680, 1681, 518, 1418, 539, 1003, 1677, 296, 1002, 1416, + /* 1500 */ 297, 1693, 1001, 1399, 457, 452, 455, 1398, 1823, 517, + /* 1510 */ 459, 85, 1621, 1159, 1647, 1615, 519, 130, 466, 1602, + /* 1520 */ 1601, 1600, 1592, 68, 1693, 4, 206, 37, 15, 217, + /* 1530 */ 211, 43, 520, 216, 49, 1330, 23, 1647, 1667, 519, + /* 1540 */ 16, 1706, 137, 215, 277, 1678, 522, 1680, 1681, 518, + /* 1550 */ 308, 539, 1677, 1719, 22, 223, 41, 1323, 42, 69, + /* 1560 */ 140, 1677, 208, 13, 1706, 202, 10, 278, 1678, 522, + /* 1570 */ 1680, 1681, 518, 1677, 539, 17, 1354, 1353, 1302, 1301, + /* 1580 */ 1693, 1359, 1348, 304, 1358, 1357, 467, 305, 520, 1693, + /* 1590 */ 19, 48, 141, 1647, 1244, 519, 153, 520, 29, 1229, + /* 1600 */ 1591, 1693, 1647, 12, 519, 1265, 310, 1243, 20, 520, + /* 1610 */ 240, 521, 21, 236, 1647, 238, 519, 527, 1666, 70, + /* 1620 */ 1706, 75, 234, 278, 1678, 522, 1680, 1681, 518, 1706, + /* 1630 */ 539, 1677, 265, 1678, 522, 1680, 1681, 518, 1328, 539, + /* 1640 */ 1677, 1706, 71, 242, 272, 1678, 522, 1680, 1681, 518, + /* 1650 */ 245, 539, 1677, 1246, 1199, 1709, 538, 541, 44, 1693, + /* 1660 */ 1070, 543, 318, 545, 547, 1067, 548, 520, 1693, 1064, + /* 1670 */ 550, 551, 1647, 1058, 519, 553, 520, 554, 556, 1056, + /* 1680 */ 1693, 1647, 1047, 519, 557, 1062, 1061, 563, 520, 1060, + /* 1690 */ 76, 1059, 77, 1647, 1079, 519, 55, 247, 1075, 1706, + /* 1700 */ 974, 1677, 274, 1678, 522, 1680, 1681, 518, 1706, 539, + /* 1710 */ 1677, 266, 1678, 522, 1680, 1681, 518, 998, 539, 572, + /* 1720 */ 1706, 1016, 575, 275, 1678, 522, 1680, 1681, 518, 1693, + /* 1730 */ 539, 248, 996, 995, 994, 993, 992, 520, 1693, 991, + /* 1740 */ 990, 989, 1647, 1013, 519, 1011, 520, 986, 985, 1429, + /* 1750 */ 984, 1647, 981, 519, 980, 979, 596, 597, 598, 1427, + /* 1760 */ 600, 601, 602, 1425, 605, 604, 1677, 606, 1423, 1706, + /* 1770 */ 608, 609, 267, 1678, 522, 1680, 1681, 518, 1706, 539, + /* 1780 */ 610, 276, 1678, 522, 1680, 1681, 518, 1677, 539, 1412, + /* 1790 */ 1420, 1411, 613, 614, 1693, 1397, 617, 618, 1372, 1185, + /* 1800 */ 258, 621, 520, 622, 1372, 1372, 1372, 1647, 1372, 519, + /* 1810 */ 1372, 1372, 1372, 1372, 1372, 1693, 1372, 1372, 1372, 1372, + /* 1820 */ 1372, 1372, 1372, 520, 1372, 1372, 1372, 1372, 1647, 1372, + /* 1830 */ 519, 1372, 1372, 1372, 1706, 1372, 1372, 268, 1678, 522, + /* 1840 */ 1680, 1681, 518, 1677, 539, 1372, 1372, 1372, 1372, 1372, + /* 1850 */ 1372, 1372, 1372, 1372, 1372, 1706, 1372, 1372, 1689, 1678, + /* 1860 */ 522, 1680, 1681, 518, 1372, 539, 1677, 1372, 1372, 1372, + /* 1870 */ 1372, 1693, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 520, + /* 1880 */ 1372, 1372, 1372, 1372, 1647, 1372, 519, 1372, 1372, 1372, + /* 1890 */ 1372, 1372, 1372, 1372, 1693, 1372, 1372, 1372, 1372, 1372, + /* 1900 */ 1372, 1372, 520, 1372, 1372, 1372, 1372, 1647, 1372, 519, + /* 1910 */ 1372, 1706, 1372, 1372, 1688, 1678, 522, 1680, 1681, 518, + /* 1920 */ 1372, 539, 1677, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 1930 */ 1372, 1372, 1372, 1372, 1706, 1372, 1372, 1687, 1678, 522, + /* 1940 */ 1680, 1681, 518, 1677, 539, 1372, 1372, 1372, 1372, 1372, + /* 1950 */ 1693, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 520, 1372, + /* 1960 */ 1372, 1372, 1372, 1647, 1372, 519, 1372, 1372, 1372, 1372, + /* 1970 */ 1372, 1693, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 520, + /* 1980 */ 1372, 1372, 1372, 1372, 1647, 1372, 519, 1372, 1372, 1372, + /* 1990 */ 1706, 1372, 1372, 287, 1678, 522, 1680, 1681, 518, 1372, + /* 2000 */ 539, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1677, 1372, + /* 2010 */ 1372, 1706, 1372, 1372, 286, 1678, 522, 1680, 1681, 518, + /* 2020 */ 1677, 539, 1372, 1372, 316, 315, 1372, 1372, 1372, 1677, + /* 2030 */ 1372, 1372, 1372, 1372, 1197, 1372, 1693, 1372, 1372, 1372, + /* 2040 */ 1372, 1372, 1372, 1372, 520, 1372, 1372, 1372, 1693, 1647, + /* 2050 */ 1372, 519, 1372, 1372, 1372, 1372, 520, 1693, 1372, 1190, + /* 2060 */ 1372, 1647, 1372, 519, 1372, 520, 1372, 1372, 1372, 1372, + /* 2070 */ 1647, 1372, 519, 1372, 1372, 1189, 1706, 1372, 1372, 288, + /* 2080 */ 1678, 522, 1680, 1681, 518, 1372, 539, 1372, 1706, 1372, + /* 2090 */ 1372, 285, 1678, 522, 1680, 1681, 518, 1706, 539, 1372, + /* 2100 */ 271, 1678, 522, 1680, 1681, 518, 1372, 539, 1372, 1372, + /* 2110 */ 1372, 1372, 1372, 1372, 540, 1372, 1372, 1372, 1372, 1372, + /* 2120 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 2130 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 2140 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 2150 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 2160 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1198, + /* 2170 */ 1372, 1193, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 2180 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, + /* 2190 */ 1372, 1372, 1372, 1201, 1372, 1372, 1372, 1372, 1372, 1372, + /* 2200 */ 1372, 1372, 1372, 1372, 537, 1249, 1250, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 249, 242, 298, 272, 324, 325, 275, 245, 239, 247, - /* 10 */ 248, 4, 12, 13, 283, 272, 271, 249, 275, 4, - /* 20 */ 20, 2, 22, 270, 252, 245, 283, 247, 248, 270, - /* 30 */ 277, 12, 13, 14, 15, 16, 271, 278, 287, 286, - /* 40 */ 309, 310, 283, 339, 285, 273, 278, 47, 20, 42, - /* 50 */ 43, 320, 309, 310, 241, 351, 243, 298, 58, 355, - /* 60 */ 12, 13, 14, 320, 64, 0, 298, 298, 20, 310, - /* 70 */ 22, 55, 313, 314, 315, 316, 317, 318, 2, 320, - /* 80 */ 281, 81, 323, 284, 285, 317, 327, 328, 12, 13, - /* 90 */ 14, 15, 16, 249, 20, 47, 81, 81, 339, 83, - /* 100 */ 332, 333, 334, 103, 336, 285, 58, 339, 339, 81, - /* 110 */ 351, 242, 64, 293, 355, 295, 249, 117, 118, 351, - /* 120 */ 351, 242, 278, 355, 355, 60, 61, 62, 63, 81, - /* 130 */ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, - /* 140 */ 75, 76, 77, 78, 0, 278, 12, 13, 14, 15, - /* 150 */ 16, 103, 283, 12, 13, 14, 15, 16, 158, 255, - /* 160 */ 160, 317, 283, 259, 21, 117, 118, 24, 25, 26, - /* 170 */ 27, 28, 29, 30, 31, 32, 332, 333, 334, 258, - /* 180 */ 336, 260, 182, 183, 317, 185, 186, 187, 188, 189, - /* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 331, 332, - /* 200 */ 333, 334, 20, 336, 60, 61, 158, 270, 160, 65, - /* 210 */ 210, 269, 68, 69, 113, 278, 72, 73, 74, 12, - /* 220 */ 13, 147, 249, 82, 282, 210, 210, 20, 0, 22, - /* 230 */ 182, 183, 0, 185, 186, 187, 188, 189, 190, 191, - /* 240 */ 192, 193, 194, 195, 196, 197, 12, 13, 14, 15, - /* 250 */ 16, 278, 315, 21, 47, 242, 24, 25, 26, 27, - /* 260 */ 28, 29, 30, 31, 32, 58, 20, 12, 13, 168, - /* 270 */ 169, 64, 242, 45, 20, 20, 262, 22, 12, 13, - /* 280 */ 14, 15, 16, 270, 270, 12, 13, 339, 81, 249, - /* 290 */ 317, 278, 249, 279, 0, 22, 283, 112, 285, 351, - /* 300 */ 270, 261, 47, 355, 261, 332, 333, 334, 278, 336, - /* 310 */ 103, 298, 20, 283, 22, 285, 82, 141, 278, 64, - /* 320 */ 47, 278, 182, 310, 117, 118, 313, 314, 315, 316, - /* 330 */ 317, 318, 20, 320, 81, 81, 81, 64, 57, 163, - /* 340 */ 310, 49, 249, 313, 314, 315, 316, 317, 318, 262, - /* 350 */ 320, 57, 339, 0, 261, 170, 171, 270, 103, 219, - /* 360 */ 220, 221, 222, 223, 351, 158, 279, 160, 355, 284, - /* 370 */ 285, 278, 117, 118, 198, 21, 103, 24, 25, 26, - /* 380 */ 27, 28, 29, 30, 31, 32, 356, 357, 34, 182, - /* 390 */ 183, 153, 185, 186, 187, 188, 189, 190, 191, 192, - /* 400 */ 193, 194, 195, 196, 197, 81, 250, 251, 339, 60, - /* 410 */ 61, 173, 174, 158, 65, 160, 150, 68, 69, 298, - /* 420 */ 351, 72, 73, 74, 355, 20, 12, 13, 14, 117, - /* 430 */ 118, 158, 246, 160, 20, 249, 22, 182, 183, 35, - /* 440 */ 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, - /* 450 */ 195, 196, 197, 298, 262, 182, 246, 339, 249, 249, - /* 460 */ 339, 47, 270, 210, 210, 210, 193, 194, 195, 351, - /* 470 */ 261, 279, 351, 355, 12, 13, 355, 242, 64, 14, - /* 480 */ 33, 157, 20, 159, 22, 20, 280, 278, 84, 283, - /* 490 */ 86, 87, 45, 89, 339, 81, 230, 93, 51, 52, - /* 500 */ 53, 54, 55, 1, 2, 270, 351, 270, 4, 47, - /* 510 */ 355, 254, 249, 278, 277, 57, 254, 103, 283, 115, - /* 520 */ 285, 20, 47, 286, 261, 249, 64, 80, 249, 267, - /* 530 */ 83, 117, 118, 276, 210, 0, 22, 261, 276, 64, - /* 540 */ 261, 278, 3, 81, 268, 310, 242, 268, 313, 314, - /* 550 */ 315, 316, 317, 318, 278, 320, 145, 278, 323, 249, - /* 560 */ 22, 47, 327, 328, 329, 103, 12, 13, 14, 15, - /* 570 */ 16, 261, 158, 20, 160, 272, 341, 252, 64, 117, - /* 580 */ 118, 346, 347, 75, 82, 47, 283, 283, 278, 142, - /* 590 */ 265, 144, 57, 146, 311, 148, 182, 183, 273, 185, - /* 600 */ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, - /* 610 */ 196, 197, 309, 310, 167, 256, 257, 103, 335, 64, - /* 620 */ 158, 270, 160, 320, 256, 257, 215, 216, 277, 121, - /* 630 */ 122, 64, 280, 12, 13, 283, 242, 286, 14, 15, - /* 640 */ 16, 20, 93, 22, 182, 183, 249, 185, 186, 187, - /* 650 */ 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, - /* 660 */ 14, 112, 113, 114, 115, 116, 20, 14, 47, 249, - /* 670 */ 249, 242, 158, 20, 160, 278, 249, 283, 18, 92, - /* 680 */ 20, 261, 261, 311, 37, 64, 20, 27, 261, 272, - /* 690 */ 30, 249, 302, 242, 249, 298, 182, 183, 278, 278, - /* 700 */ 283, 147, 81, 261, 18, 278, 261, 335, 48, 23, - /* 710 */ 242, 41, 283, 242, 317, 211, 249, 271, 55, 242, - /* 720 */ 278, 35, 36, 278, 103, 39, 309, 310, 261, 332, - /* 730 */ 333, 334, 249, 336, 283, 242, 339, 320, 117, 118, - /* 740 */ 285, 242, 56, 80, 261, 278, 83, 311, 351, 271, - /* 750 */ 295, 283, 355, 20, 283, 12, 13, 14, 15, 16, - /* 760 */ 283, 278, 278, 263, 225, 270, 266, 81, 42, 43, - /* 770 */ 243, 335, 85, 289, 279, 88, 283, 208, 209, 158, - /* 780 */ 120, 160, 283, 123, 124, 125, 126, 127, 128, 129, - /* 790 */ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, - /* 800 */ 140, 58, 242, 182, 183, 119, 185, 186, 187, 188, - /* 810 */ 189, 190, 191, 192, 193, 194, 195, 196, 197, 242, - /* 820 */ 85, 242, 93, 88, 41, 82, 306, 12, 13, 14, - /* 830 */ 15, 16, 186, 90, 242, 270, 150, 151, 152, 186, - /* 840 */ 242, 155, 242, 283, 115, 242, 242, 161, 242, 41, - /* 850 */ 85, 286, 186, 88, 85, 0, 209, 88, 172, 41, - /* 860 */ 283, 175, 283, 177, 178, 179, 180, 181, 1, 2, - /* 870 */ 270, 0, 58, 58, 44, 283, 47, 22, 278, 0, - /* 880 */ 147, 283, 47, 283, 141, 285, 283, 283, 41, 283, - /* 890 */ 82, 41, 41, 22, 242, 41, 210, 227, 298, 41, - /* 900 */ 82, 22, 117, 118, 271, 90, 163, 47, 271, 271, - /* 910 */ 310, 81, 349, 313, 314, 315, 316, 317, 318, 41, - /* 920 */ 320, 81, 270, 323, 64, 343, 259, 327, 328, 82, - /* 930 */ 278, 91, 82, 82, 358, 283, 82, 285, 270, 339, - /* 940 */ 82, 198, 199, 200, 201, 202, 203, 204, 205, 206, - /* 950 */ 207, 351, 41, 41, 248, 355, 141, 41, 250, 282, - /* 960 */ 82, 41, 310, 0, 242, 313, 314, 315, 316, 317, - /* 970 */ 318, 0, 320, 312, 352, 323, 337, 352, 163, 327, - /* 980 */ 328, 329, 41, 41, 352, 340, 41, 41, 41, 160, - /* 990 */ 212, 308, 270, 82, 82, 160, 182, 20, 82, 347, - /* 1000 */ 278, 249, 82, 45, 307, 283, 47, 285, 156, 256, - /* 1010 */ 300, 249, 229, 198, 199, 200, 201, 202, 203, 204, - /* 1020 */ 205, 206, 207, 82, 82, 249, 242, 82, 82, 82, - /* 1030 */ 40, 290, 310, 141, 288, 313, 314, 315, 316, 317, - /* 1040 */ 318, 249, 320, 288, 20, 323, 244, 244, 20, 327, - /* 1050 */ 328, 329, 242, 304, 270, 254, 93, 285, 254, 20, - /* 1060 */ 338, 297, 278, 20, 93, 299, 254, 283, 297, 285, - /* 1070 */ 254, 278, 20, 291, 254, 112, 113, 114, 115, 116, - /* 1080 */ 270, 254, 249, 112, 113, 114, 115, 116, 278, 244, - /* 1090 */ 254, 270, 270, 283, 310, 285, 270, 313, 314, 315, - /* 1100 */ 316, 317, 318, 304, 320, 249, 242, 323, 270, 270, - /* 1110 */ 244, 327, 328, 329, 270, 283, 270, 283, 270, 270, - /* 1120 */ 310, 252, 338, 313, 314, 315, 316, 317, 318, 270, - /* 1130 */ 320, 270, 166, 323, 270, 252, 249, 327, 328, 329, - /* 1140 */ 303, 252, 278, 252, 291, 20, 278, 283, 338, 285, - /* 1150 */ 285, 218, 217, 312, 297, 348, 294, 283, 283, 348, - /* 1160 */ 283, 224, 298, 149, 294, 213, 342, 20, 345, 344, - /* 1170 */ 209, 308, 278, 40, 310, 226, 228, 313, 314, 315, - /* 1180 */ 316, 317, 318, 311, 320, 242, 231, 359, 81, 294, - /* 1190 */ 283, 283, 94, 95, 96, 97, 98, 99, 100, 101, - /* 1200 */ 102, 103, 104, 339, 106, 107, 108, 109, 110, 111, - /* 1210 */ 330, 242, 326, 270, 283, 351, 294, 144, 292, 355, - /* 1220 */ 291, 278, 278, 266, 252, 252, 283, 354, 285, 353, - /* 1230 */ 81, 278, 249, 283, 274, 354, 354, 353, 353, 270, - /* 1240 */ 260, 252, 244, 305, 253, 264, 264, 278, 264, 240, - /* 1250 */ 0, 0, 283, 310, 285, 301, 313, 314, 315, 316, - /* 1260 */ 317, 318, 242, 320, 40, 0, 323, 72, 0, 47, - /* 1270 */ 327, 328, 176, 47, 47, 47, 176, 0, 242, 310, - /* 1280 */ 47, 47, 313, 314, 315, 316, 317, 318, 176, 320, - /* 1290 */ 270, 176, 323, 0, 0, 47, 327, 328, 278, 0, - /* 1300 */ 22, 0, 47, 283, 0, 285, 270, 163, 162, 158, - /* 1310 */ 160, 81, 0, 0, 278, 154, 153, 0, 0, 283, - /* 1320 */ 44, 285, 0, 0, 0, 0, 0, 0, 0, 0, - /* 1330 */ 310, 0, 0, 313, 314, 315, 316, 317, 318, 319, - /* 1340 */ 320, 321, 322, 0, 0, 0, 310, 0, 0, 313, - /* 1350 */ 314, 315, 316, 317, 318, 19, 320, 4, 0, 323, - /* 1360 */ 0, 0, 0, 0, 328, 0, 242, 0, 0, 33, - /* 1370 */ 40, 0, 19, 22, 0, 0, 0, 0, 0, 0, - /* 1380 */ 41, 45, 242, 37, 14, 44, 33, 51, 52, 53, - /* 1390 */ 54, 55, 40, 44, 270, 14, 0, 38, 45, 0, - /* 1400 */ 0, 37, 278, 50, 0, 149, 37, 283, 55, 285, - /* 1410 */ 270, 0, 0, 0, 59, 0, 80, 37, 278, 83, - /* 1420 */ 296, 0, 37, 283, 0, 285, 37, 0, 45, 47, - /* 1430 */ 37, 47, 45, 80, 310, 47, 83, 313, 314, 315, - /* 1440 */ 316, 317, 318, 45, 320, 242, 0, 45, 47, 0, - /* 1450 */ 310, 37, 116, 313, 314, 315, 316, 317, 318, 0, - /* 1460 */ 320, 0, 0, 90, 47, 22, 0, 47, 0, 47, - /* 1470 */ 47, 242, 47, 270, 88, 41, 41, 47, 47, 143, - /* 1480 */ 47, 278, 146, 0, 48, 22, 283, 22, 285, 22, - /* 1490 */ 350, 0, 47, 0, 0, 22, 22, 20, 0, 270, - /* 1500 */ 47, 165, 0, 167, 22, 0, 164, 278, 0, 0, - /* 1510 */ 144, 0, 283, 310, 285, 37, 313, 314, 315, 316, - /* 1520 */ 317, 318, 242, 320, 214, 296, 41, 41, 81, 41, - /* 1530 */ 82, 41, 82, 242, 142, 81, 81, 147, 147, 310, - /* 1540 */ 82, 147, 313, 314, 315, 316, 317, 318, 44, 320, - /* 1550 */ 270, 81, 81, 41, 44, 41, 2, 82, 278, 44, - /* 1560 */ 357, 270, 82, 283, 214, 285, 44, 41, 214, 278, - /* 1570 */ 47, 47, 47, 81, 283, 47, 285, 82, 82, 47, - /* 1580 */ 208, 47, 242, 41, 44, 182, 22, 296, 82, 82, - /* 1590 */ 310, 44, 184, 313, 314, 315, 316, 317, 318, 242, - /* 1600 */ 320, 310, 322, 82, 313, 314, 315, 316, 317, 318, - /* 1610 */ 270, 320, 81, 0, 81, 37, 81, 81, 278, 82, - /* 1620 */ 81, 145, 81, 283, 81, 285, 142, 270, 44, 91, - /* 1630 */ 44, 81, 22, 22, 82, 278, 296, 81, 81, 47, - /* 1640 */ 283, 92, 285, 82, 47, 82, 81, 47, 81, 47, - /* 1650 */ 310, 82, 242, 313, 314, 315, 316, 317, 318, 82, - /* 1660 */ 320, 242, 81, 47, 81, 47, 81, 310, 93, 82, - /* 1670 */ 313, 314, 315, 316, 317, 318, 105, 320, 105, 105, - /* 1680 */ 270, 105, 81, 47, 81, 81, 41, 22, 278, 270, - /* 1690 */ 59, 58, 22, 283, 47, 285, 64, 278, 79, 41, - /* 1700 */ 47, 47, 283, 47, 285, 64, 47, 47, 47, 47, - /* 1710 */ 47, 47, 0, 47, 242, 47, 47, 37, 47, 47, - /* 1720 */ 310, 47, 45, 313, 314, 315, 316, 317, 318, 310, - /* 1730 */ 320, 242, 313, 314, 315, 316, 317, 318, 0, 320, - /* 1740 */ 47, 45, 270, 37, 0, 47, 45, 37, 0, 47, - /* 1750 */ 278, 37, 45, 0, 46, 283, 47, 285, 0, 270, - /* 1760 */ 0, 22, 21, 360, 22, 22, 21, 278, 360, 20, - /* 1770 */ 360, 360, 283, 360, 285, 360, 360, 360, 360, 360, - /* 1780 */ 360, 360, 310, 360, 360, 313, 314, 315, 316, 317, - /* 1790 */ 318, 360, 320, 242, 360, 360, 360, 360, 360, 310, - /* 1800 */ 360, 360, 313, 314, 315, 316, 317, 318, 360, 320, - /* 1810 */ 360, 360, 242, 360, 360, 360, 360, 360, 360, 360, - /* 1820 */ 360, 270, 360, 360, 360, 360, 360, 360, 360, 278, - /* 1830 */ 360, 360, 360, 360, 283, 360, 285, 360, 360, 360, - /* 1840 */ 270, 360, 360, 360, 360, 360, 360, 360, 278, 360, - /* 1850 */ 360, 360, 360, 283, 360, 285, 360, 360, 360, 360, - /* 1860 */ 360, 310, 360, 360, 313, 314, 315, 316, 317, 318, - /* 1870 */ 242, 320, 360, 360, 360, 360, 360, 360, 360, 242, - /* 1880 */ 310, 360, 360, 313, 314, 315, 316, 317, 318, 360, - /* 1890 */ 320, 360, 360, 242, 360, 360, 360, 360, 270, 360, - /* 1900 */ 360, 360, 360, 360, 360, 360, 278, 270, 360, 360, - /* 1910 */ 360, 283, 360, 285, 360, 278, 360, 360, 360, 360, - /* 1920 */ 283, 270, 285, 360, 360, 360, 360, 360, 360, 278, - /* 1930 */ 360, 360, 360, 360, 283, 360, 285, 360, 310, 360, - /* 1940 */ 360, 313, 314, 315, 316, 317, 318, 310, 320, 360, - /* 1950 */ 313, 314, 315, 316, 317, 318, 360, 320, 360, 360, - /* 1960 */ 360, 310, 360, 242, 313, 314, 315, 316, 317, 318, - /* 1970 */ 360, 320, 242, 360, 360, 360, 360, 360, 360, 360, - /* 1980 */ 360, 360, 360, 360, 360, 360, 360, 360, 360, 360, - /* 1990 */ 360, 270, 360, 360, 360, 360, 360, 360, 360, 278, - /* 2000 */ 270, 360, 360, 360, 283, 360, 285, 360, 278, 360, - /* 2010 */ 360, 360, 360, 283, 360, 285, 360, 360, 360, 360, - /* 2020 */ 360, 360, 360, 360, 360, 242, 360, 360, 360, 360, - /* 2030 */ 360, 310, 360, 360, 313, 314, 315, 316, 317, 318, - /* 2040 */ 310, 320, 242, 313, 314, 315, 316, 317, 318, 360, - /* 2050 */ 320, 360, 360, 270, 360, 360, 360, 360, 360, 360, - /* 2060 */ 360, 278, 360, 360, 360, 360, 283, 360, 285, 360, - /* 2070 */ 270, 360, 360, 360, 360, 360, 360, 360, 278, 360, - /* 2080 */ 360, 360, 360, 283, 360, 285, 360, 360, 360, 360, - /* 2090 */ 360, 242, 360, 310, 360, 360, 313, 314, 315, 316, - /* 2100 */ 317, 318, 360, 320, 360, 360, 360, 242, 360, 360, - /* 2110 */ 310, 360, 360, 313, 314, 315, 316, 317, 318, 270, - /* 2120 */ 320, 360, 360, 360, 360, 360, 360, 278, 360, 360, - /* 2130 */ 360, 360, 283, 360, 285, 270, 360, 360, 360, 360, - /* 2140 */ 360, 360, 360, 278, 360, 360, 360, 360, 283, 360, - /* 2150 */ 285, 360, 360, 360, 360, 360, 360, 360, 360, 310, - /* 2160 */ 360, 360, 313, 314, 315, 316, 317, 318, 360, 320, - /* 2170 */ 360, 360, 360, 360, 360, 310, 360, 360, 313, 314, - /* 2180 */ 315, 316, 317, 318, 360, 320, + /* 0 */ 271, 270, 297, 241, 271, 248, 248, 274, 323, 324, + /* 10 */ 254, 282, 12, 13, 258, 282, 271, 260, 260, 274, + /* 20 */ 20, 20, 22, 20, 267, 267, 245, 282, 4, 248, + /* 30 */ 244, 269, 246, 247, 277, 277, 248, 308, 309, 277, + /* 40 */ 20, 308, 309, 338, 282, 14, 284, 47, 319, 20, + /* 50 */ 297, 20, 319, 308, 309, 350, 238, 57, 241, 354, + /* 60 */ 12, 13, 14, 63, 319, 277, 42, 43, 20, 268, + /* 70 */ 22, 309, 20, 20, 312, 313, 314, 315, 316, 317, + /* 80 */ 80, 319, 281, 80, 322, 251, 269, 0, 326, 327, + /* 90 */ 328, 338, 269, 248, 277, 47, 80, 241, 264, 282, + /* 100 */ 277, 284, 102, 350, 316, 57, 272, 354, 346, 80, + /* 110 */ 244, 63, 246, 247, 297, 297, 116, 117, 330, 331, + /* 120 */ 332, 333, 277, 335, 1, 2, 309, 56, 80, 312, + /* 130 */ 313, 314, 315, 316, 317, 338, 319, 314, 282, 322, + /* 140 */ 59, 60, 20, 326, 327, 64, 338, 350, 67, 68, + /* 150 */ 102, 354, 71, 72, 73, 338, 338, 157, 350, 159, + /* 160 */ 245, 316, 354, 248, 116, 117, 146, 350, 350, 116, + /* 170 */ 117, 354, 354, 240, 80, 242, 331, 332, 333, 92, + /* 180 */ 335, 181, 182, 54, 184, 185, 186, 187, 188, 189, + /* 190 */ 190, 191, 192, 193, 194, 195, 196, 269, 111, 112, + /* 200 */ 113, 114, 115, 2, 81, 157, 278, 159, 79, 209, + /* 210 */ 2, 82, 209, 12, 13, 14, 15, 16, 12, 13, + /* 220 */ 12, 13, 14, 15, 16, 209, 20, 152, 22, 181, + /* 230 */ 182, 241, 184, 185, 186, 187, 188, 189, 190, 191, + /* 240 */ 192, 193, 194, 195, 196, 35, 248, 172, 173, 47, + /* 250 */ 156, 21, 158, 47, 24, 25, 26, 27, 28, 29, + /* 260 */ 30, 31, 32, 57, 241, 63, 12, 13, 4, 63, + /* 270 */ 33, 112, 282, 20, 20, 277, 22, 12, 13, 14, + /* 280 */ 15, 16, 45, 19, 4, 56, 80, 50, 51, 52, + /* 290 */ 53, 54, 269, 83, 0, 85, 86, 33, 88, 338, + /* 300 */ 277, 47, 92, 209, 310, 282, 14, 284, 102, 45, + /* 310 */ 271, 350, 20, 49, 316, 354, 79, 63, 54, 82, + /* 320 */ 297, 282, 116, 117, 114, 20, 167, 168, 334, 331, + /* 330 */ 332, 333, 309, 335, 80, 312, 313, 314, 315, 316, + /* 340 */ 317, 248, 319, 79, 0, 322, 82, 308, 309, 326, + /* 350 */ 327, 12, 13, 14, 15, 16, 102, 54, 319, 269, + /* 360 */ 80, 338, 284, 157, 280, 159, 276, 283, 284, 74, + /* 370 */ 116, 117, 294, 350, 20, 285, 241, 354, 141, 286, + /* 380 */ 143, 181, 145, 80, 147, 82, 92, 181, 182, 45, + /* 390 */ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, + /* 400 */ 194, 195, 196, 166, 91, 111, 112, 113, 114, 115, + /* 410 */ 241, 157, 63, 159, 149, 120, 121, 282, 218, 219, + /* 420 */ 220, 221, 222, 63, 12, 13, 14, 12, 13, 14, + /* 430 */ 15, 16, 20, 92, 22, 181, 182, 248, 184, 185, + /* 440 */ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, + /* 450 */ 196, 282, 111, 112, 113, 114, 115, 283, 284, 47, + /* 460 */ 14, 15, 16, 209, 248, 269, 277, 12, 13, 14, + /* 470 */ 15, 16, 12, 13, 241, 63, 260, 185, 22, 248, + /* 480 */ 20, 285, 22, 255, 256, 146, 297, 248, 269, 209, + /* 490 */ 185, 260, 80, 277, 229, 276, 81, 255, 256, 260, + /* 500 */ 297, 284, 269, 241, 285, 316, 0, 47, 277, 292, + /* 510 */ 277, 294, 209, 241, 102, 282, 277, 284, 144, 14, + /* 520 */ 331, 332, 333, 63, 335, 20, 270, 338, 116, 117, + /* 530 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 350, + /* 540 */ 80, 338, 309, 354, 282, 312, 313, 314, 315, 316, + /* 550 */ 317, 251, 319, 350, 282, 322, 0, 354, 248, 326, + /* 560 */ 327, 328, 102, 12, 13, 14, 15, 16, 253, 157, + /* 570 */ 260, 159, 272, 340, 277, 269, 116, 117, 345, 346, + /* 580 */ 248, 266, 276, 248, 241, 288, 270, 277, 214, 215, + /* 590 */ 275, 285, 260, 181, 182, 260, 184, 185, 186, 187, + /* 600 */ 188, 189, 190, 191, 192, 193, 194, 195, 196, 277, + /* 610 */ 248, 253, 277, 140, 248, 59, 60, 157, 262, 159, + /* 620 */ 64, 265, 260, 67, 68, 282, 260, 71, 72, 73, + /* 630 */ 12, 13, 81, 275, 111, 162, 3, 310, 20, 277, + /* 640 */ 22, 181, 182, 277, 184, 185, 186, 187, 188, 189, + /* 650 */ 190, 191, 192, 193, 194, 195, 196, 248, 241, 261, + /* 660 */ 241, 334, 248, 241, 270, 47, 0, 269, 248, 260, + /* 670 */ 197, 248, 0, 248, 260, 18, 278, 20, 0, 4, + /* 680 */ 260, 63, 0, 260, 27, 260, 277, 30, 241, 241, + /* 690 */ 185, 277, 169, 170, 310, 42, 43, 277, 80, 282, + /* 700 */ 277, 282, 277, 21, 282, 48, 24, 25, 26, 27, + /* 710 */ 28, 29, 30, 31, 32, 261, 269, 241, 334, 257, + /* 720 */ 102, 259, 56, 269, 277, 20, 242, 241, 56, 282, + /* 730 */ 282, 284, 278, 84, 116, 117, 87, 59, 60, 61, + /* 740 */ 62, 37, 64, 65, 66, 67, 68, 69, 70, 71, + /* 750 */ 72, 73, 74, 75, 76, 77, 309, 241, 282, 312, + /* 760 */ 313, 314, 315, 316, 317, 41, 319, 279, 282, 322, + /* 770 */ 282, 249, 250, 326, 327, 157, 119, 159, 241, 122, + /* 780 */ 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, + /* 790 */ 133, 134, 135, 136, 137, 138, 139, 270, 282, 181, + /* 800 */ 182, 41, 184, 185, 186, 187, 188, 189, 190, 191, + /* 810 */ 192, 193, 194, 195, 196, 18, 41, 241, 22, 282, + /* 820 */ 23, 241, 12, 13, 14, 15, 16, 279, 207, 208, + /* 830 */ 282, 241, 35, 36, 241, 241, 39, 12, 13, 14, + /* 840 */ 15, 16, 261, 47, 92, 22, 84, 0, 41, 87, + /* 850 */ 269, 146, 55, 41, 41, 270, 81, 224, 282, 278, + /* 860 */ 57, 241, 282, 269, 301, 84, 114, 57, 87, 22, + /* 870 */ 47, 277, 282, 0, 0, 282, 282, 80, 284, 21, + /* 880 */ 1, 2, 57, 41, 84, 210, 63, 87, 81, 269, + /* 890 */ 41, 81, 34, 81, 81, 22, 22, 277, 270, 89, + /* 900 */ 116, 117, 282, 309, 284, 258, 312, 313, 314, 315, + /* 910 */ 316, 317, 208, 319, 89, 118, 322, 241, 357, 44, + /* 920 */ 326, 327, 328, 81, 41, 102, 41, 41, 47, 309, + /* 930 */ 81, 337, 312, 313, 314, 315, 316, 317, 318, 319, + /* 940 */ 320, 321, 47, 41, 348, 269, 149, 150, 151, 305, + /* 950 */ 140, 154, 228, 277, 41, 80, 41, 160, 282, 41, + /* 960 */ 284, 41, 269, 247, 81, 140, 81, 81, 171, 342, + /* 970 */ 249, 174, 162, 176, 177, 178, 179, 180, 41, 41, + /* 980 */ 157, 41, 159, 81, 181, 309, 226, 162, 312, 313, + /* 990 */ 314, 315, 316, 317, 81, 319, 81, 311, 322, 81, + /* 1000 */ 281, 81, 326, 327, 181, 182, 209, 197, 198, 199, + /* 1010 */ 200, 201, 202, 203, 204, 205, 206, 241, 81, 81, + /* 1020 */ 47, 81, 197, 198, 199, 200, 201, 202, 203, 204, + /* 1030 */ 205, 206, 80, 336, 351, 351, 63, 339, 351, 211, + /* 1040 */ 159, 307, 90, 20, 45, 269, 248, 306, 47, 255, + /* 1050 */ 299, 155, 248, 277, 159, 40, 248, 289, 282, 140, + /* 1060 */ 284, 287, 248, 20, 287, 243, 20, 93, 94, 95, + /* 1070 */ 96, 97, 98, 99, 100, 101, 102, 103, 241, 105, + /* 1080 */ 106, 107, 108, 109, 110, 309, 243, 253, 312, 313, + /* 1090 */ 314, 315, 316, 317, 303, 319, 20, 253, 322, 284, + /* 1100 */ 20, 296, 326, 327, 328, 253, 269, 298, 253, 277, + /* 1110 */ 20, 290, 296, 337, 277, 253, 253, 248, 253, 282, + /* 1120 */ 243, 284, 269, 269, 248, 269, 269, 243, 269, 269, + /* 1130 */ 269, 251, 282, 269, 303, 269, 269, 269, 302, 251, + /* 1140 */ 165, 241, 248, 251, 296, 20, 309, 277, 251, 312, + /* 1150 */ 313, 314, 315, 316, 317, 241, 319, 248, 217, 322, + /* 1160 */ 282, 290, 311, 326, 327, 328, 284, 347, 223, 269, + /* 1170 */ 216, 282, 282, 347, 337, 282, 148, 277, 212, 344, + /* 1180 */ 293, 343, 282, 269, 284, 208, 277, 341, 277, 20, + /* 1190 */ 40, 277, 293, 353, 227, 225, 282, 297, 284, 230, + /* 1200 */ 80, 310, 143, 358, 282, 307, 297, 282, 282, 309, + /* 1210 */ 293, 297, 312, 313, 314, 315, 316, 317, 290, 319, + /* 1220 */ 293, 291, 251, 309, 352, 316, 312, 313, 314, 315, + /* 1230 */ 316, 317, 329, 319, 241, 325, 277, 265, 338, 251, + /* 1240 */ 331, 332, 333, 80, 335, 241, 282, 338, 259, 273, + /* 1250 */ 350, 248, 338, 352, 354, 277, 251, 353, 353, 350, + /* 1260 */ 352, 243, 269, 354, 350, 19, 304, 0, 354, 263, + /* 1270 */ 277, 263, 263, 269, 252, 282, 239, 284, 0, 33, + /* 1280 */ 300, 277, 40, 0, 71, 0, 282, 47, 284, 175, + /* 1290 */ 47, 45, 47, 175, 47, 0, 50, 51, 52, 53, + /* 1300 */ 54, 47, 309, 47, 175, 312, 313, 314, 315, 316, + /* 1310 */ 317, 241, 319, 309, 0, 175, 312, 313, 314, 315, + /* 1320 */ 316, 317, 0, 319, 47, 79, 322, 241, 82, 0, + /* 1330 */ 22, 327, 80, 47, 0, 162, 159, 161, 157, 269, + /* 1340 */ 0, 0, 0, 153, 152, 0, 0, 277, 355, 356, + /* 1350 */ 44, 0, 282, 0, 284, 269, 0, 0, 0, 0, + /* 1360 */ 0, 115, 0, 277, 0, 295, 0, 0, 282, 0, + /* 1370 */ 284, 0, 0, 0, 0, 0, 0, 40, 0, 309, + /* 1380 */ 0, 0, 312, 313, 314, 315, 316, 317, 142, 319, + /* 1390 */ 22, 145, 0, 241, 0, 309, 0, 0, 312, 313, + /* 1400 */ 314, 315, 316, 317, 0, 319, 0, 0, 0, 0, + /* 1410 */ 164, 41, 166, 0, 14, 14, 241, 40, 0, 37, + /* 1420 */ 0, 269, 38, 44, 37, 0, 37, 44, 148, 277, + /* 1430 */ 0, 0, 37, 0, 282, 349, 284, 0, 0, 0, + /* 1440 */ 47, 0, 37, 58, 269, 47, 0, 45, 45, 37, + /* 1450 */ 0, 37, 277, 0, 37, 45, 0, 282, 0, 284, + /* 1460 */ 41, 309, 47, 47, 312, 313, 314, 315, 316, 317, + /* 1470 */ 295, 319, 45, 241, 22, 89, 47, 0, 87, 47, + /* 1480 */ 0, 47, 47, 47, 309, 41, 22, 312, 313, 314, + /* 1490 */ 315, 316, 317, 0, 319, 47, 241, 22, 47, 0, + /* 1500 */ 22, 269, 47, 0, 22, 48, 47, 0, 356, 277, + /* 1510 */ 22, 20, 0, 47, 282, 0, 284, 163, 22, 0, + /* 1520 */ 0, 0, 0, 80, 269, 41, 37, 41, 213, 44, + /* 1530 */ 81, 41, 277, 41, 146, 81, 41, 282, 44, 284, + /* 1540 */ 213, 309, 80, 80, 312, 313, 314, 315, 316, 317, + /* 1550 */ 295, 319, 241, 321, 80, 44, 207, 81, 41, 80, + /* 1560 */ 44, 241, 141, 213, 309, 143, 2, 312, 313, 314, + /* 1570 */ 315, 316, 317, 241, 319, 41, 47, 47, 81, 81, + /* 1580 */ 269, 81, 81, 47, 47, 47, 146, 47, 277, 269, + /* 1590 */ 41, 146, 44, 282, 81, 284, 44, 277, 80, 22, + /* 1600 */ 0, 269, 282, 80, 284, 181, 295, 81, 80, 277, + /* 1610 */ 37, 183, 80, 80, 282, 80, 284, 144, 44, 80, + /* 1620 */ 309, 90, 81, 312, 313, 314, 315, 316, 317, 309, + /* 1630 */ 319, 241, 312, 313, 314, 315, 316, 317, 81, 319, + /* 1640 */ 241, 309, 80, 141, 312, 313, 314, 315, 316, 317, + /* 1650 */ 44, 319, 241, 81, 22, 80, 80, 91, 80, 269, + /* 1660 */ 81, 47, 47, 80, 47, 81, 80, 277, 269, 81, + /* 1670 */ 47, 80, 282, 81, 284, 47, 277, 80, 47, 81, + /* 1680 */ 269, 282, 22, 284, 80, 104, 104, 92, 277, 104, + /* 1690 */ 80, 104, 80, 282, 47, 284, 80, 41, 22, 309, + /* 1700 */ 58, 241, 312, 313, 314, 315, 316, 317, 309, 319, + /* 1710 */ 241, 312, 313, 314, 315, 316, 317, 47, 319, 57, + /* 1720 */ 309, 63, 78, 312, 313, 314, 315, 316, 317, 269, + /* 1730 */ 319, 41, 47, 47, 47, 47, 47, 277, 269, 22, + /* 1740 */ 47, 47, 282, 63, 284, 47, 277, 47, 47, 0, + /* 1750 */ 47, 282, 47, 284, 47, 47, 47, 45, 37, 0, + /* 1760 */ 47, 45, 37, 0, 45, 47, 241, 37, 0, 309, + /* 1770 */ 47, 45, 312, 313, 314, 315, 316, 317, 309, 319, + /* 1780 */ 37, 312, 313, 314, 315, 316, 317, 241, 319, 0, + /* 1790 */ 46, 0, 47, 46, 269, 0, 22, 21, 359, 22, + /* 1800 */ 22, 21, 277, 20, 359, 359, 359, 282, 359, 284, + /* 1810 */ 359, 359, 359, 359, 359, 269, 359, 359, 359, 359, + /* 1820 */ 359, 359, 359, 277, 359, 359, 359, 359, 282, 359, + /* 1830 */ 284, 359, 359, 359, 309, 359, 359, 312, 313, 314, + /* 1840 */ 315, 316, 317, 241, 319, 359, 359, 359, 359, 359, + /* 1850 */ 359, 359, 359, 359, 359, 309, 359, 359, 312, 313, + /* 1860 */ 314, 315, 316, 317, 359, 319, 241, 359, 359, 359, + /* 1870 */ 359, 269, 359, 359, 359, 359, 359, 359, 359, 277, + /* 1880 */ 359, 359, 359, 359, 282, 359, 284, 359, 359, 359, + /* 1890 */ 359, 359, 359, 359, 269, 359, 359, 359, 359, 359, + /* 1900 */ 359, 359, 277, 359, 359, 359, 359, 282, 359, 284, + /* 1910 */ 359, 309, 359, 359, 312, 313, 314, 315, 316, 317, + /* 1920 */ 359, 319, 241, 359, 359, 359, 359, 359, 359, 359, + /* 1930 */ 359, 359, 359, 359, 309, 359, 359, 312, 313, 314, + /* 1940 */ 315, 316, 317, 241, 319, 359, 359, 359, 359, 359, + /* 1950 */ 269, 359, 359, 359, 359, 359, 359, 359, 277, 359, + /* 1960 */ 359, 359, 359, 282, 359, 284, 359, 359, 359, 359, + /* 1970 */ 359, 269, 359, 359, 359, 359, 359, 359, 359, 277, + /* 1980 */ 359, 359, 359, 359, 282, 359, 284, 359, 359, 359, + /* 1990 */ 309, 359, 359, 312, 313, 314, 315, 316, 317, 359, + /* 2000 */ 319, 359, 359, 359, 359, 359, 359, 359, 241, 359, + /* 2010 */ 359, 309, 359, 359, 312, 313, 314, 315, 316, 317, + /* 2020 */ 241, 319, 359, 359, 12, 13, 359, 359, 359, 241, + /* 2030 */ 359, 359, 359, 359, 22, 359, 269, 359, 359, 359, + /* 2040 */ 359, 359, 359, 359, 277, 359, 359, 359, 269, 282, + /* 2050 */ 359, 284, 359, 359, 359, 359, 277, 269, 359, 47, + /* 2060 */ 359, 282, 359, 284, 359, 277, 359, 359, 359, 359, + /* 2070 */ 282, 359, 284, 359, 359, 63, 309, 359, 359, 312, + /* 2080 */ 313, 314, 315, 316, 317, 359, 319, 359, 309, 359, + /* 2090 */ 359, 312, 313, 314, 315, 316, 317, 309, 319, 359, + /* 2100 */ 312, 313, 314, 315, 316, 317, 359, 319, 359, 359, + /* 2110 */ 359, 359, 359, 359, 102, 359, 359, 359, 359, 359, + /* 2120 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2130 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2140 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2150 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2160 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 157, + /* 2170 */ 359, 159, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2180 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2190 */ 359, 359, 359, 181, 359, 359, 359, 359, 359, 359, + /* 2200 */ 359, 359, 359, 359, 192, 193, 194, 359, 359, 359, + /* 2210 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2220 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2230 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2240 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2250 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2260 */ 359, 359, 359, }; -#define YY_SHIFT_COUNT (622) +#define YY_SHIFT_COUNT (623) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1760) +#define YY_SHIFT_MAX (2012) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 686, 0, 0, 48, 207, 207, 207, 207, 255, 255, - /* 10 */ 207, 207, 414, 462, 621, 462, 462, 462, 462, 462, - /* 20 */ 462, 462, 462, 462, 462, 462, 462, 462, 462, 462, - /* 30 */ 462, 462, 462, 462, 462, 462, 462, 462, 254, 254, - /* 40 */ 28, 28, 28, 273, 273, 273, 273, 324, 16, 253, - /* 50 */ 182, 182, 7, 7, 15, 312, 253, 253, 182, 182, - /* 60 */ 182, 182, 182, 182, 182, 281, 182, 182, 246, 405, - /* 70 */ 501, 246, 182, 182, 246, 182, 246, 246, 246, 182, - /* 80 */ 458, 660, 743, 815, 815, 143, 349, 514, 514, 514, - /* 90 */ 514, 514, 514, 514, 514, 514, 514, 514, 514, 514, - /* 100 */ 514, 514, 514, 514, 514, 514, 404, 312, 292, 465, - /* 110 */ 465, 294, 475, 74, 74, 74, 535, 475, 553, 501, - /* 120 */ 246, 246, 555, 555, 587, 567, 1098, 1098, 1098, 1098, - /* 130 */ 1098, 1098, 1098, 1336, 232, 144, 266, 140, 101, 411, - /* 140 */ 646, 653, 726, 538, 729, 733, 569, 647, 569, 539, - /* 150 */ 539, 539, 504, 666, 778, 977, 958, 959, 852, 977, - /* 160 */ 977, 990, 892, 892, 977, 1024, 1024, 1028, 281, 501, - /* 170 */ 281, 1039, 1043, 281, 1039, 281, 553, 1052, 281, 281, - /* 180 */ 977, 281, 1024, 246, 246, 246, 246, 246, 246, 246, - /* 190 */ 246, 246, 246, 246, 977, 1024, 555, 555, 1028, 458, - /* 200 */ 966, 501, 458, 977, 1039, 458, 553, 1052, 458, 1125, - /* 210 */ 933, 935, 555, 933, 935, 555, 555, 246, 937, 1014, - /* 220 */ 952, 778, 961, 553, 1147, 1133, 948, 949, 955, 948, - /* 230 */ 949, 948, 949, 1107, 935, 555, 555, 935, 555, 1073, - /* 240 */ 553, 1052, 458, 587, 458, 553, 1149, 555, 567, 977, - /* 250 */ 458, 1024, 2186, 2186, 2186, 2186, 2186, 2186, 2186, 65, - /* 260 */ 447, 353, 1353, 963, 971, 141, 19, 76, 554, 234, - /* 270 */ 549, 134, 134, 134, 134, 134, 134, 134, 134, 238, - /* 280 */ 663, 508, 185, 502, 176, 624, 624, 624, 624, 228, - /* 290 */ 808, 687, 735, 765, 769, 855, 871, 879, 354, 818, - /* 300 */ 847, 850, 867, 785, 670, 783, 851, 814, 854, 830, - /* 310 */ 858, 878, 911, 912, 916, 829, 835, 920, 941, 942, - /* 320 */ 945, 946, 947, 840, 860, 1250, 1251, 1224, 1265, 1195, - /* 330 */ 1268, 1222, 1096, 1226, 1227, 1228, 1100, 1277, 1233, 1234, - /* 340 */ 1112, 1293, 1115, 1294, 1248, 1299, 1278, 1301, 1255, 1304, - /* 350 */ 1230, 1144, 1146, 1150, 1151, 1312, 1313, 1161, 1163, 1317, - /* 360 */ 1318, 1276, 1322, 1323, 1324, 1325, 1326, 1327, 1328, 1329, - /* 370 */ 1331, 1332, 1343, 1344, 1345, 1347, 1348, 1358, 1360, 1361, - /* 380 */ 1330, 1362, 1363, 1365, 1367, 1368, 1371, 1351, 1374, 1375, - /* 390 */ 1376, 1377, 1378, 1379, 1352, 1346, 1339, 1370, 1341, 1381, - /* 400 */ 1349, 1396, 1359, 1364, 1399, 1400, 1404, 1369, 1256, 1411, - /* 410 */ 1412, 1380, 1413, 1355, 1415, 1421, 1382, 1383, 1385, 1424, - /* 420 */ 1384, 1387, 1389, 1427, 1388, 1398, 1393, 1446, 1401, 1402, - /* 430 */ 1414, 1449, 1459, 1461, 1462, 1373, 1386, 1417, 1443, 1466, - /* 440 */ 1420, 1422, 1423, 1425, 1434, 1435, 1430, 1431, 1433, 1468, - /* 450 */ 1463, 1483, 1465, 1436, 1491, 1467, 1445, 1493, 1473, 1494, - /* 460 */ 1474, 1477, 1498, 1390, 1453, 1502, 1342, 1482, 1391, 1366, - /* 470 */ 1505, 1508, 1509, 1394, 1511, 1447, 1478, 1392, 1485, 1486, - /* 480 */ 1310, 1448, 1488, 1450, 1454, 1455, 1470, 1458, 1490, 1504, - /* 490 */ 1510, 1471, 1512, 1350, 1475, 1480, 1515, 1372, 1514, 1522, - /* 500 */ 1495, 1526, 1354, 1496, 1523, 1524, 1525, 1528, 1532, 1534, - /* 510 */ 1496, 1554, 1403, 1542, 1506, 1492, 1507, 1540, 1531, 1533, - /* 520 */ 1547, 1564, 1408, 1535, 1521, 1537, 1536, 1539, 1476, 1541, - /* 530 */ 1613, 1578, 1484, 1543, 1538, 1584, 1586, 1550, 1552, 1556, - /* 540 */ 1610, 1557, 1549, 1561, 1592, 1597, 1565, 1563, 1600, 1567, - /* 550 */ 1569, 1602, 1581, 1577, 1616, 1583, 1587, 1618, 1585, 1571, - /* 560 */ 1573, 1574, 1576, 1611, 1575, 1601, 1603, 1636, 1604, 1645, - /* 570 */ 1645, 1665, 1631, 1633, 1647, 1632, 1619, 1658, 1653, 1654, - /* 580 */ 1656, 1659, 1660, 1670, 1661, 1662, 1641, 1434, 1663, 1435, - /* 590 */ 1664, 1666, 1668, 1669, 1671, 1672, 1712, 1674, 1677, 1680, - /* 600 */ 1738, 1693, 1696, 1706, 1744, 1698, 1701, 1710, 1748, 1702, - /* 610 */ 1707, 1714, 1753, 1709, 1708, 1758, 1760, 1739, 1741, 1742, - /* 620 */ 1743, 1745, 1749, + /* 0 */ 797, 0, 0, 48, 206, 206, 206, 206, 254, 254, + /* 10 */ 206, 206, 412, 460, 618, 460, 460, 460, 460, 460, + /* 20 */ 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, + /* 30 */ 460, 460, 460, 460, 460, 460, 460, 460, 3, 3, + /* 40 */ 29, 29, 29, 2012, 2012, 2012, 2012, 94, 303, 16, + /* 50 */ 1, 1, 24, 24, 280, 53, 16, 16, 1, 1, + /* 60 */ 1, 1, 1, 1, 1, 71, 1, 1, 52, 122, + /* 70 */ 253, 52, 1, 1, 52, 1, 52, 52, 52, 1, + /* 80 */ 229, 657, 810, 825, 825, 230, 81, 823, 823, 823, + /* 90 */ 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, + /* 100 */ 823, 823, 823, 823, 823, 823, 210, 53, 31, 31, + /* 110 */ 666, 202, 20, 20, 20, 672, 202, 354, 253, 52, + /* 120 */ 52, 349, 349, 313, 360, 456, 974, 974, 974, 974, + /* 130 */ 974, 974, 974, 1246, 682, 556, 265, 200, 159, 374, + /* 140 */ 292, 505, 653, 796, 752, 705, 621, 704, 621, 633, + /* 150 */ 633, 633, 675, 305, 828, 1023, 999, 1001, 896, 1023, + /* 160 */ 1023, 1015, 919, 919, 1023, 1043, 1043, 1046, 71, 253, + /* 170 */ 71, 1076, 1080, 71, 1076, 71, 354, 1090, 71, 71, + /* 180 */ 1023, 71, 1043, 52, 52, 52, 52, 52, 52, 52, + /* 190 */ 52, 52, 52, 52, 1023, 1043, 349, 349, 1046, 229, + /* 200 */ 975, 253, 229, 1023, 1076, 229, 354, 1090, 229, 1125, + /* 210 */ 941, 954, 349, 941, 954, 349, 349, 52, 945, 1028, + /* 220 */ 966, 828, 977, 354, 1169, 1150, 967, 970, 969, 967, + /* 230 */ 970, 967, 970, 1120, 954, 349, 349, 954, 349, 1059, + /* 240 */ 354, 1090, 229, 313, 229, 354, 1163, 349, 360, 1023, + /* 250 */ 229, 1043, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 678, + /* 260 */ 237, 506, 264, 87, 294, 415, 201, 208, 339, 551, + /* 270 */ 341, 455, 455, 455, 455, 455, 455, 455, 455, 75, + /* 280 */ 129, 295, 523, 123, 473, 446, 446, 446, 446, 344, + /* 290 */ 775, 649, 762, 781, 800, 847, 873, 874, 858, 807, + /* 300 */ 812, 813, 879, 784, 760, 724, 842, 803, 849, 875, + /* 310 */ 883, 885, 886, 902, 913, 881, 895, 915, 918, 920, + /* 320 */ 937, 938, 940, 952, 973, 1267, 1278, 1242, 1283, 1213, + /* 330 */ 1285, 1240, 1114, 1243, 1245, 1247, 1118, 1295, 1254, 1256, + /* 340 */ 1129, 1314, 1140, 1322, 1277, 1329, 1308, 1340, 1286, 1334, + /* 350 */ 1252, 1173, 1176, 1177, 1181, 1341, 1342, 1190, 1192, 1345, + /* 360 */ 1346, 1306, 1351, 1353, 1356, 1357, 1358, 1359, 1360, 1362, + /* 370 */ 1364, 1366, 1367, 1369, 1371, 1372, 1373, 1374, 1375, 1376, + /* 380 */ 1337, 1378, 1380, 1381, 1392, 1394, 1396, 1368, 1397, 1404, + /* 390 */ 1406, 1407, 1408, 1409, 1377, 1382, 1370, 1400, 1379, 1401, + /* 400 */ 1383, 1413, 1384, 1387, 1418, 1420, 1425, 1389, 1280, 1430, + /* 410 */ 1431, 1395, 1433, 1385, 1437, 1438, 1393, 1402, 1405, 1439, + /* 420 */ 1398, 1403, 1412, 1441, 1415, 1410, 1414, 1446, 1416, 1427, + /* 430 */ 1417, 1450, 1453, 1456, 1458, 1386, 1391, 1429, 1452, 1477, + /* 440 */ 1432, 1434, 1435, 1436, 1419, 1444, 1448, 1451, 1455, 1480, + /* 450 */ 1464, 1493, 1475, 1457, 1499, 1478, 1459, 1503, 1482, 1507, + /* 460 */ 1488, 1491, 1512, 1388, 1466, 1515, 1354, 1496, 1440, 1422, + /* 470 */ 1519, 1520, 1521, 1445, 1522, 1443, 1489, 1421, 1484, 1486, + /* 480 */ 1315, 1449, 1490, 1454, 1462, 1463, 1474, 1476, 1492, 1485, + /* 490 */ 1494, 1479, 1495, 1327, 1497, 1498, 1511, 1349, 1517, 1516, + /* 500 */ 1500, 1534, 1350, 1501, 1529, 1530, 1536, 1537, 1538, 1540, + /* 510 */ 1501, 1564, 1424, 1549, 1513, 1518, 1526, 1548, 1523, 1528, + /* 520 */ 1552, 1577, 1428, 1532, 1541, 1557, 1533, 1535, 1473, 1539, + /* 530 */ 1600, 1573, 1502, 1562, 1531, 1574, 1606, 1575, 1572, 1576, + /* 540 */ 1632, 1578, 1566, 1579, 1614, 1615, 1583, 1584, 1617, 1586, + /* 550 */ 1588, 1623, 1591, 1592, 1628, 1597, 1598, 1631, 1604, 1581, + /* 560 */ 1582, 1585, 1587, 1660, 1595, 1610, 1612, 1647, 1616, 1656, + /* 570 */ 1656, 1676, 1642, 1662, 1670, 1658, 1644, 1690, 1685, 1686, + /* 580 */ 1687, 1688, 1689, 1717, 1693, 1694, 1680, 1419, 1698, 1444, + /* 590 */ 1700, 1701, 1703, 1705, 1707, 1708, 1749, 1709, 1712, 1721, + /* 600 */ 1759, 1713, 1716, 1725, 1763, 1718, 1719, 1730, 1768, 1723, + /* 610 */ 1726, 1743, 1744, 1789, 1745, 1747, 1791, 1795, 1774, 1776, + /* 620 */ 1777, 1778, 1780, 1783, }; #define YY_REDUCE_COUNT (258) -#define YY_REDUCE_MIN (-320) -#define YY_REDUCE_MAX (1865) +#define YY_REDUCE_MIN (-315) +#define YY_REDUCE_MAX (1788) static const short yy_reduce_ofst[] = { - /* 0 */ -231, -241, 600, 235, 652, 722, 784, 810, 13, 864, - /* 10 */ 943, 969, 1020, 30, 1036, 1124, 1140, 1203, 1229, 1280, - /* 20 */ 1291, 1340, 1357, 1410, 1419, 1472, 1489, 1551, 1570, 1628, - /* 30 */ 1637, 1651, 1721, 1730, 1783, 1800, 1849, 1865, -232, 397, - /* 40 */ -133, -156, -27, -269, -257, 303, 417, -296, 121, 155, - /* 50 */ 276, 279, -238, -220, -52, -201, 69, 118, 43, 93, - /* 60 */ 209, 263, 310, 420, 421, 262, 427, 442, -247, -63, - /* 70 */ -180, 14, 40, 445, 237, 467, 87, 351, 192, 483, - /* 80 */ 325, -249, -320, -320, -320, -187, -96, -131, -121, 304, - /* 90 */ 394, 429, 451, 468, 471, 477, 493, 499, 560, 577, - /* 100 */ 579, 592, 598, 603, 604, 606, -58, 85, 156, 186, - /* 110 */ 210, 257, 359, 283, 372, 436, -228, 368, 484, 455, - /* 120 */ 495, 565, 206, 352, 500, -79, -255, -235, 446, 478, - /* 130 */ 633, 637, 638, 390, 527, 667, 576, 563, 520, 582, - /* 140 */ 668, 668, 706, 708, 677, 661, 639, 639, 639, 622, - /* 150 */ 625, 632, 645, 668, 683, 752, 697, 753, 710, 762, - /* 160 */ 776, 741, 746, 755, 792, 802, 803, 749, 801, 772, - /* 170 */ 804, 764, 766, 812, 771, 816, 793, 782, 820, 827, - /* 180 */ 833, 836, 845, 821, 822, 826, 838, 839, 844, 846, - /* 190 */ 848, 849, 859, 861, 856, 866, 832, 834, 799, 869, - /* 200 */ 837, 865, 883, 887, 857, 889, 868, 853, 891, 841, - /* 210 */ 807, 862, 874, 811, 870, 875, 877, 668, 823, 825, - /* 220 */ 824, 863, 639, 894, 872, 880, 873, 876, 828, 881, - /* 230 */ 884, 882, 885, 886, 895, 907, 908, 922, 931, 926, - /* 240 */ 944, 929, 972, 957, 973, 953, 960, 950, 980, 983, - /* 250 */ 989, 998, 954, 938, 981, 982, 984, 991, 1009, + /* 0 */ -182, -183, 23, 233, -238, 594, 776, 837, 900, 914, + /* 10 */ 447, 676, 620, 993, 1004, 1070, 1086, 1152, 1175, 1232, + /* 20 */ 1255, 1311, 1320, 1332, 1390, 1399, 1411, 1460, 1469, 1525, + /* 30 */ 1546, 1602, 1625, 1681, 1702, 1767, 1779, 1788, 189, 909, + /* 40 */ -212, -155, -2, -267, -255, -271, 39, -295, -247, 203, + /* 50 */ -243, -242, -214, -134, -203, 84, -192, -39, 216, 231, + /* 60 */ 239, 310, 332, 335, 362, 315, 366, 409, 90, -177, + /* 70 */ 217, 398, 414, 420, 219, 423, 454, 306, 581, 425, + /* 80 */ -166, 93, -315, -315, -315, -67, -244, -144, -10, 135, + /* 90 */ 169, 262, 272, 343, 417, 419, 422, 448, 476, 486, + /* 100 */ 516, 537, 576, 580, 590, 593, -199, 174, -219, -85, + /* 110 */ 358, 228, -6, 327, 384, 300, 242, 297, 78, -72, + /* 120 */ 196, 488, 548, 356, 462, 522, -269, 256, 316, 394, + /* 130 */ 527, 585, 628, 563, 484, 647, 561, 596, 644, 627, + /* 140 */ 693, 693, 716, 721, 719, 686, 697, 697, 697, 683, + /* 150 */ 684, 687, 698, 693, 734, 798, 741, 794, 751, 804, + /* 160 */ 808, 768, 774, 777, 814, 822, 843, 791, 834, 815, + /* 170 */ 844, 805, 809, 852, 816, 855, 832, 821, 862, 863, + /* 180 */ 869, 865, 877, 853, 854, 856, 857, 859, 860, 861, + /* 190 */ 864, 866, 867, 868, 876, 884, 850, 878, 831, 880, + /* 200 */ 836, 882, 888, 894, 848, 892, 870, 871, 897, 851, + /* 210 */ 820, 887, 889, 826, 899, 890, 893, 693, 835, 838, + /* 220 */ 846, 898, 697, 911, 891, 903, 840, 872, 845, 904, + /* 230 */ 901, 905, 908, 910, 917, 922, 925, 927, 926, 930, + /* 240 */ 959, 928, 971, 972, 988, 978, 976, 964, 989, 1003, + /* 250 */ 1005, 1018, 980, 962, 1006, 1008, 1009, 1022, 1037, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 10 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 20 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 30 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 40 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 50 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 60 */ 1372, 1372, 1372, 1372, 1372, 1441, 1372, 1372, 1372, 1372, - /* 70 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 80 */ 1439, 1587, 1372, 1751, 1372, 1372, 1372, 1372, 1372, 1372, - /* 90 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 100 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 110 */ 1372, 1441, 1372, 1762, 1762, 1762, 1439, 1372, 1372, 1372, - /* 120 */ 1372, 1372, 1372, 1372, 1535, 1372, 1372, 1372, 1372, 1372, - /* 130 */ 1372, 1372, 1372, 1620, 1372, 1372, 1828, 1372, 1626, 1786, - /* 140 */ 1372, 1372, 1372, 1372, 1488, 1778, 1754, 1768, 1755, 1813, - /* 150 */ 1813, 1813, 1771, 1372, 1782, 1372, 1372, 1372, 1612, 1372, - /* 160 */ 1372, 1592, 1589, 1589, 1372, 1372, 1372, 1372, 1441, 1372, - /* 170 */ 1441, 1372, 1372, 1441, 1372, 1441, 1372, 1372, 1441, 1441, - /* 180 */ 1372, 1441, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 190 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1439, - /* 200 */ 1622, 1372, 1439, 1372, 1372, 1439, 1372, 1372, 1439, 1372, - /* 210 */ 1793, 1791, 1372, 1793, 1791, 1372, 1372, 1372, 1805, 1801, - /* 220 */ 1784, 1782, 1768, 1372, 1372, 1372, 1819, 1815, 1831, 1819, - /* 230 */ 1815, 1819, 1815, 1372, 1791, 1372, 1372, 1791, 1372, 1597, - /* 240 */ 1372, 1372, 1439, 1372, 1439, 1372, 1504, 1372, 1372, 1372, - /* 250 */ 1439, 1372, 1614, 1628, 1538, 1538, 1538, 1442, 1377, 1372, - /* 260 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 270 */ 1500, 1695, 1804, 1803, 1727, 1726, 1725, 1723, 1694, 1372, - /* 280 */ 1372, 1372, 1372, 1372, 1372, 1688, 1689, 1687, 1686, 1372, - /* 290 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 300 */ 1372, 1372, 1752, 1372, 1816, 1820, 1372, 1372, 1372, 1671, - /* 310 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 320 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 330 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 340 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 350 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 360 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 370 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 380 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 390 */ 1372, 1372, 1372, 1372, 1372, 1372, 1406, 1372, 1372, 1372, - /* 400 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 410 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 420 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 430 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 440 */ 1372, 1372, 1372, 1372, 1469, 1468, 1372, 1372, 1372, 1372, - /* 450 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 460 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 470 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1775, 1785, - /* 480 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 490 */ 1671, 1372, 1802, 1372, 1761, 1757, 1372, 1372, 1753, 1372, - /* 500 */ 1372, 1814, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 510 */ 1372, 1747, 1372, 1720, 1372, 1372, 1372, 1372, 1372, 1372, - /* 520 */ 1372, 1372, 1682, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 530 */ 1372, 1372, 1372, 1372, 1372, 1670, 1372, 1711, 1372, 1372, - /* 540 */ 1372, 1372, 1372, 1372, 1372, 1372, 1532, 1372, 1372, 1372, - /* 550 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1517, - /* 560 */ 1515, 1514, 1513, 1372, 1510, 1372, 1372, 1372, 1372, 1541, - /* 570 */ 1540, 1372, 1372, 1372, 1372, 1372, 1372, 1461, 1372, 1372, - /* 580 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1452, 1372, 1451, - /* 590 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 600 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 610 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 620 */ 1372, 1372, 1372, + /* 0 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 10 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 20 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 30 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 40 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 50 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 60 */ 1370, 1370, 1370, 1370, 1370, 1438, 1370, 1370, 1370, 1370, + /* 70 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 80 */ 1436, 1584, 1370, 1748, 1370, 1370, 1370, 1370, 1370, 1370, + /* 90 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 100 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 110 */ 1438, 1370, 1759, 1759, 1759, 1436, 1370, 1370, 1370, 1370, + /* 120 */ 1370, 1370, 1370, 1532, 1370, 1370, 1370, 1370, 1370, 1370, + /* 130 */ 1370, 1370, 1370, 1617, 1370, 1370, 1825, 1370, 1623, 1783, + /* 140 */ 1370, 1370, 1370, 1370, 1485, 1775, 1751, 1765, 1752, 1810, + /* 150 */ 1810, 1810, 1768, 1370, 1779, 1370, 1370, 1370, 1609, 1370, + /* 160 */ 1370, 1589, 1586, 1586, 1370, 1370, 1370, 1370, 1438, 1370, + /* 170 */ 1438, 1370, 1370, 1438, 1370, 1438, 1370, 1370, 1438, 1438, + /* 180 */ 1370, 1438, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 190 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1436, + /* 200 */ 1619, 1370, 1436, 1370, 1370, 1436, 1370, 1370, 1436, 1370, + /* 210 */ 1790, 1788, 1370, 1790, 1788, 1370, 1370, 1370, 1802, 1798, + /* 220 */ 1781, 1779, 1765, 1370, 1370, 1370, 1816, 1812, 1828, 1816, + /* 230 */ 1812, 1816, 1812, 1370, 1788, 1370, 1370, 1788, 1370, 1594, + /* 240 */ 1370, 1370, 1436, 1370, 1436, 1370, 1501, 1370, 1370, 1370, + /* 250 */ 1436, 1370, 1611, 1625, 1535, 1535, 1535, 1439, 1375, 1370, + /* 260 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 270 */ 1497, 1692, 1801, 1800, 1724, 1723, 1722, 1720, 1691, 1370, + /* 280 */ 1370, 1370, 1370, 1370, 1370, 1685, 1686, 1684, 1683, 1370, + /* 290 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 300 */ 1370, 1370, 1749, 1370, 1813, 1817, 1370, 1370, 1370, 1668, + /* 310 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 320 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 330 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 340 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 350 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 360 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 370 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 380 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 390 */ 1370, 1370, 1370, 1370, 1370, 1370, 1404, 1370, 1370, 1370, + /* 400 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 410 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 420 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 430 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 440 */ 1370, 1370, 1370, 1370, 1466, 1465, 1370, 1370, 1370, 1370, + /* 450 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 460 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 470 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1772, 1782, + /* 480 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 490 */ 1668, 1370, 1799, 1370, 1758, 1754, 1370, 1370, 1750, 1370, + /* 500 */ 1370, 1811, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 510 */ 1370, 1744, 1370, 1717, 1370, 1370, 1370, 1370, 1370, 1370, + /* 520 */ 1370, 1370, 1679, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 530 */ 1370, 1370, 1370, 1370, 1370, 1667, 1370, 1708, 1370, 1370, + /* 540 */ 1370, 1370, 1370, 1370, 1370, 1370, 1529, 1370, 1370, 1370, + /* 550 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1514, + /* 560 */ 1512, 1511, 1510, 1370, 1507, 1370, 1370, 1370, 1370, 1538, + /* 570 */ 1537, 1370, 1370, 1370, 1370, 1370, 1370, 1458, 1370, 1370, + /* 580 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1449, 1370, 1448, + /* 590 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 600 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 610 */ 1370, 1370, 1419, 1370, 1370, 1370, 1370, 1370, 1370, 1370, + /* 620 */ 1370, 1370, 1370, 1370, }; /********** End of lemon-generated parsing tables *****************************/ @@ -889,7 +899,6 @@ static const YYCODETYPE yyFallback[] = { 0, /* PORT => nothing */ 0, /* NK_INTEGER => nothing */ 0, /* DNODES => nothing */ - 0, /* NK_IPTOKEN => nothing */ 0, /* LOCAL => nothing */ 0, /* QNODE => nothing */ 0, /* BNODE => nothing */ @@ -1073,12 +1082,12 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ID => nothing */ - 232, /* NK_BITNOT => ID */ - 232, /* INSERT => ID */ - 232, /* VALUES => ID */ - 232, /* IMPORT => ID */ - 232, /* NK_SEMI => ID */ - 232, /* FILE => ID */ + 231, /* NK_BITNOT => ID */ + 231, /* INSERT => ID */ + 231, /* VALUES => ID */ + 231, /* IMPORT => ID */ + 231, /* NK_SEMI => ID */ + 231, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -1215,317 +1224,316 @@ static const char *const yyTokenName[] = { /* 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 */ "DURATION", - /* 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 */ "SCHEMALESS", - /* 79 */ "NK_COLON", - /* 80 */ "TABLE", - /* 81 */ "NK_LP", - /* 82 */ "NK_RP", - /* 83 */ "STABLE", - /* 84 */ "ADD", - /* 85 */ "COLUMN", - /* 86 */ "MODIFY", - /* 87 */ "RENAME", - /* 88 */ "TAG", - /* 89 */ "SET", - /* 90 */ "NK_EQ", - /* 91 */ "USING", - /* 92 */ "TAGS", - /* 93 */ "COMMENT", - /* 94 */ "BOOL", - /* 95 */ "TINYINT", - /* 96 */ "SMALLINT", - /* 97 */ "INT", - /* 98 */ "INTEGER", - /* 99 */ "BIGINT", - /* 100 */ "FLOAT", - /* 101 */ "DOUBLE", - /* 102 */ "BINARY", - /* 103 */ "TIMESTAMP", - /* 104 */ "NCHAR", - /* 105 */ "UNSIGNED", - /* 106 */ "JSON", - /* 107 */ "VARCHAR", - /* 108 */ "MEDIUMBLOB", - /* 109 */ "BLOB", - /* 110 */ "VARBINARY", - /* 111 */ "DECIMAL", - /* 112 */ "MAX_DELAY", - /* 113 */ "WATERMARK", - /* 114 */ "ROLLUP", - /* 115 */ "TTL", - /* 116 */ "SMA", - /* 117 */ "FIRST", - /* 118 */ "LAST", - /* 119 */ "SHOW", - /* 120 */ "DATABASES", - /* 121 */ "TABLES", - /* 122 */ "STABLES", - /* 123 */ "MNODES", - /* 124 */ "MODULES", - /* 125 */ "QNODES", - /* 126 */ "FUNCTIONS", - /* 127 */ "INDEXES", - /* 128 */ "ACCOUNTS", - /* 129 */ "APPS", - /* 130 */ "CONNECTIONS", - /* 131 */ "LICENCE", - /* 132 */ "GRANTS", - /* 133 */ "QUERIES", - /* 134 */ "SCORES", - /* 135 */ "TOPICS", - /* 136 */ "VARIABLES", - /* 137 */ "BNODES", - /* 138 */ "SNODES", - /* 139 */ "CLUSTER", - /* 140 */ "TRANSACTIONS", - /* 141 */ "LIKE", - /* 142 */ "INDEX", - /* 143 */ "FULLTEXT", - /* 144 */ "FUNCTION", - /* 145 */ "INTERVAL", - /* 146 */ "TOPIC", - /* 147 */ "AS", - /* 148 */ "CONSUMER", - /* 149 */ "GROUP", - /* 150 */ "DESC", - /* 151 */ "DESCRIBE", - /* 152 */ "RESET", - /* 153 */ "QUERY", - /* 154 */ "CACHE", - /* 155 */ "EXPLAIN", - /* 156 */ "ANALYZE", - /* 157 */ "VERBOSE", - /* 158 */ "NK_BOOL", - /* 159 */ "RATIO", - /* 160 */ "NK_FLOAT", - /* 161 */ "COMPACT", - /* 162 */ "VNODES", - /* 163 */ "IN", - /* 164 */ "OUTPUTTYPE", - /* 165 */ "AGGREGATE", - /* 166 */ "BUFSIZE", - /* 167 */ "STREAM", - /* 168 */ "INTO", - /* 169 */ "TRIGGER", - /* 170 */ "AT_ONCE", - /* 171 */ "WINDOW_CLOSE", - /* 172 */ "KILL", - /* 173 */ "CONNECTION", - /* 174 */ "TRANSACTION", - /* 175 */ "BALANCE", - /* 176 */ "VGROUP", - /* 177 */ "MERGE", - /* 178 */ "REDISTRIBUTE", - /* 179 */ "SPLIT", - /* 180 */ "SYNCDB", - /* 181 */ "DELETE", - /* 182 */ "NULL", - /* 183 */ "NK_QUESTION", - /* 184 */ "NK_ARROW", - /* 185 */ "ROWTS", - /* 186 */ "TBNAME", - /* 187 */ "QSTARTTS", - /* 188 */ "QENDTS", - /* 189 */ "WSTARTTS", - /* 190 */ "WENDTS", - /* 191 */ "WDURATION", - /* 192 */ "CAST", - /* 193 */ "NOW", - /* 194 */ "TODAY", - /* 195 */ "TIMEZONE", - /* 196 */ "COUNT", - /* 197 */ "LAST_ROW", - /* 198 */ "BETWEEN", - /* 199 */ "IS", - /* 200 */ "NK_LT", - /* 201 */ "NK_GT", - /* 202 */ "NK_LE", - /* 203 */ "NK_GE", - /* 204 */ "NK_NE", - /* 205 */ "MATCH", - /* 206 */ "NMATCH", - /* 207 */ "CONTAINS", - /* 208 */ "JOIN", - /* 209 */ "INNER", - /* 210 */ "SELECT", - /* 211 */ "DISTINCT", - /* 212 */ "WHERE", - /* 213 */ "PARTITION", - /* 214 */ "BY", - /* 215 */ "SESSION", - /* 216 */ "STATE_WINDOW", - /* 217 */ "SLIDING", - /* 218 */ "FILL", - /* 219 */ "VALUE", - /* 220 */ "NONE", - /* 221 */ "PREV", - /* 222 */ "LINEAR", - /* 223 */ "NEXT", - /* 224 */ "HAVING", - /* 225 */ "ORDER", - /* 226 */ "SLIMIT", - /* 227 */ "SOFFSET", - /* 228 */ "LIMIT", - /* 229 */ "OFFSET", - /* 230 */ "ASC", - /* 231 */ "NULLS", - /* 232 */ "ID", - /* 233 */ "NK_BITNOT", - /* 234 */ "INSERT", - /* 235 */ "VALUES", - /* 236 */ "IMPORT", - /* 237 */ "NK_SEMI", - /* 238 */ "FILE", - /* 239 */ "cmd", - /* 240 */ "account_options", - /* 241 */ "alter_account_options", - /* 242 */ "literal", - /* 243 */ "alter_account_option", - /* 244 */ "user_name", - /* 245 */ "privileges", - /* 246 */ "priv_level", - /* 247 */ "priv_type_list", - /* 248 */ "priv_type", - /* 249 */ "db_name", - /* 250 */ "dnode_endpoint", - /* 251 */ "dnode_host_name", - /* 252 */ "not_exists_opt", - /* 253 */ "db_options", - /* 254 */ "exists_opt", - /* 255 */ "alter_db_options", - /* 256 */ "integer_list", - /* 257 */ "variable_list", - /* 258 */ "retention_list", - /* 259 */ "alter_db_option", - /* 260 */ "retention", - /* 261 */ "full_table_name", - /* 262 */ "column_def_list", - /* 263 */ "tags_def_opt", - /* 264 */ "table_options", - /* 265 */ "multi_create_clause", - /* 266 */ "tags_def", - /* 267 */ "multi_drop_clause", - /* 268 */ "alter_table_clause", - /* 269 */ "alter_table_options", - /* 270 */ "column_name", - /* 271 */ "type_name", - /* 272 */ "signed_literal", - /* 273 */ "create_subtable_clause", - /* 274 */ "specific_tags_opt", - /* 275 */ "literal_list", - /* 276 */ "drop_table_clause", - /* 277 */ "col_name_list", - /* 278 */ "table_name", - /* 279 */ "column_def", - /* 280 */ "duration_list", - /* 281 */ "rollup_func_list", - /* 282 */ "alter_table_option", - /* 283 */ "duration_literal", - /* 284 */ "rollup_func_name", - /* 285 */ "function_name", - /* 286 */ "col_name", - /* 287 */ "db_name_cond_opt", - /* 288 */ "like_pattern_opt", - /* 289 */ "table_name_cond", - /* 290 */ "from_db_opt", - /* 291 */ "index_name", - /* 292 */ "index_options", - /* 293 */ "func_list", - /* 294 */ "sliding_opt", - /* 295 */ "func", - /* 296 */ "expression_list", - /* 297 */ "topic_name", - /* 298 */ "query_expression", - /* 299 */ "cgroup_name", - /* 300 */ "analyze_opt", - /* 301 */ "explain_options", - /* 302 */ "agg_func_opt", - /* 303 */ "bufsize_opt", - /* 304 */ "stream_name", - /* 305 */ "stream_options", - /* 306 */ "into_opt", - /* 307 */ "dnode_list", - /* 308 */ "where_clause_opt", - /* 309 */ "signed", - /* 310 */ "literal_func", - /* 311 */ "table_alias", - /* 312 */ "column_alias", - /* 313 */ "expression", - /* 314 */ "pseudo_column", - /* 315 */ "column_reference", - /* 316 */ "function_expression", - /* 317 */ "subquery", - /* 318 */ "star_func", - /* 319 */ "star_func_para_list", - /* 320 */ "noarg_func", - /* 321 */ "other_para_list", - /* 322 */ "star_func_para", - /* 323 */ "predicate", - /* 324 */ "compare_op", - /* 325 */ "in_op", - /* 326 */ "in_predicate_value", - /* 327 */ "boolean_value_expression", - /* 328 */ "boolean_primary", - /* 329 */ "common_expression", - /* 330 */ "from_clause", - /* 331 */ "table_reference_list", - /* 332 */ "table_reference", - /* 333 */ "table_primary", - /* 334 */ "joined_table", - /* 335 */ "alias_opt", - /* 336 */ "parenthesized_joined_table", - /* 337 */ "join_type", - /* 338 */ "search_condition", - /* 339 */ "query_specification", - /* 340 */ "set_quantifier_opt", - /* 341 */ "select_list", - /* 342 */ "partition_by_clause_opt", - /* 343 */ "twindow_clause_opt", - /* 344 */ "group_by_clause_opt", - /* 345 */ "having_clause_opt", - /* 346 */ "select_sublist", - /* 347 */ "select_item", - /* 348 */ "fill_opt", - /* 349 */ "fill_mode", - /* 350 */ "group_by_list", - /* 351 */ "query_expression_body", - /* 352 */ "order_by_clause_opt", - /* 353 */ "slimit_clause_opt", - /* 354 */ "limit_clause_opt", - /* 355 */ "query_primary", - /* 356 */ "sort_specification_list", - /* 357 */ "sort_specification", - /* 358 */ "ordering_specification_opt", - /* 359 */ "null_ordering_opt", + /* 49 */ "LOCAL", + /* 50 */ "QNODE", + /* 51 */ "BNODE", + /* 52 */ "SNODE", + /* 53 */ "MNODE", + /* 54 */ "DATABASE", + /* 55 */ "USE", + /* 56 */ "IF", + /* 57 */ "NOT", + /* 58 */ "EXISTS", + /* 59 */ "BUFFER", + /* 60 */ "CACHELAST", + /* 61 */ "COMP", + /* 62 */ "DURATION", + /* 63 */ "NK_VARIABLE", + /* 64 */ "FSYNC", + /* 65 */ "MAXROWS", + /* 66 */ "MINROWS", + /* 67 */ "KEEP", + /* 68 */ "PAGES", + /* 69 */ "PAGESIZE", + /* 70 */ "PRECISION", + /* 71 */ "REPLICA", + /* 72 */ "STRICT", + /* 73 */ "WAL", + /* 74 */ "VGROUPS", + /* 75 */ "SINGLE_STABLE", + /* 76 */ "RETENTIONS", + /* 77 */ "SCHEMALESS", + /* 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 */ "MAX_DELAY", + /* 112 */ "WATERMARK", + /* 113 */ "ROLLUP", + /* 114 */ "TTL", + /* 115 */ "SMA", + /* 116 */ "FIRST", + /* 117 */ "LAST", + /* 118 */ "SHOW", + /* 119 */ "DATABASES", + /* 120 */ "TABLES", + /* 121 */ "STABLES", + /* 122 */ "MNODES", + /* 123 */ "MODULES", + /* 124 */ "QNODES", + /* 125 */ "FUNCTIONS", + /* 126 */ "INDEXES", + /* 127 */ "ACCOUNTS", + /* 128 */ "APPS", + /* 129 */ "CONNECTIONS", + /* 130 */ "LICENCE", + /* 131 */ "GRANTS", + /* 132 */ "QUERIES", + /* 133 */ "SCORES", + /* 134 */ "TOPICS", + /* 135 */ "VARIABLES", + /* 136 */ "BNODES", + /* 137 */ "SNODES", + /* 138 */ "CLUSTER", + /* 139 */ "TRANSACTIONS", + /* 140 */ "LIKE", + /* 141 */ "INDEX", + /* 142 */ "FULLTEXT", + /* 143 */ "FUNCTION", + /* 144 */ "INTERVAL", + /* 145 */ "TOPIC", + /* 146 */ "AS", + /* 147 */ "CONSUMER", + /* 148 */ "GROUP", + /* 149 */ "DESC", + /* 150 */ "DESCRIBE", + /* 151 */ "RESET", + /* 152 */ "QUERY", + /* 153 */ "CACHE", + /* 154 */ "EXPLAIN", + /* 155 */ "ANALYZE", + /* 156 */ "VERBOSE", + /* 157 */ "NK_BOOL", + /* 158 */ "RATIO", + /* 159 */ "NK_FLOAT", + /* 160 */ "COMPACT", + /* 161 */ "VNODES", + /* 162 */ "IN", + /* 163 */ "OUTPUTTYPE", + /* 164 */ "AGGREGATE", + /* 165 */ "BUFSIZE", + /* 166 */ "STREAM", + /* 167 */ "INTO", + /* 168 */ "TRIGGER", + /* 169 */ "AT_ONCE", + /* 170 */ "WINDOW_CLOSE", + /* 171 */ "KILL", + /* 172 */ "CONNECTION", + /* 173 */ "TRANSACTION", + /* 174 */ "BALANCE", + /* 175 */ "VGROUP", + /* 176 */ "MERGE", + /* 177 */ "REDISTRIBUTE", + /* 178 */ "SPLIT", + /* 179 */ "SYNCDB", + /* 180 */ "DELETE", + /* 181 */ "NULL", + /* 182 */ "NK_QUESTION", + /* 183 */ "NK_ARROW", + /* 184 */ "ROWTS", + /* 185 */ "TBNAME", + /* 186 */ "QSTARTTS", + /* 187 */ "QENDTS", + /* 188 */ "WSTARTTS", + /* 189 */ "WENDTS", + /* 190 */ "WDURATION", + /* 191 */ "CAST", + /* 192 */ "NOW", + /* 193 */ "TODAY", + /* 194 */ "TIMEZONE", + /* 195 */ "COUNT", + /* 196 */ "LAST_ROW", + /* 197 */ "BETWEEN", + /* 198 */ "IS", + /* 199 */ "NK_LT", + /* 200 */ "NK_GT", + /* 201 */ "NK_LE", + /* 202 */ "NK_GE", + /* 203 */ "NK_NE", + /* 204 */ "MATCH", + /* 205 */ "NMATCH", + /* 206 */ "CONTAINS", + /* 207 */ "JOIN", + /* 208 */ "INNER", + /* 209 */ "SELECT", + /* 210 */ "DISTINCT", + /* 211 */ "WHERE", + /* 212 */ "PARTITION", + /* 213 */ "BY", + /* 214 */ "SESSION", + /* 215 */ "STATE_WINDOW", + /* 216 */ "SLIDING", + /* 217 */ "FILL", + /* 218 */ "VALUE", + /* 219 */ "NONE", + /* 220 */ "PREV", + /* 221 */ "LINEAR", + /* 222 */ "NEXT", + /* 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 */ "signed_literal", + /* 272 */ "create_subtable_clause", + /* 273 */ "specific_tags_opt", + /* 274 */ "literal_list", + /* 275 */ "drop_table_clause", + /* 276 */ "col_name_list", + /* 277 */ "table_name", + /* 278 */ "column_def", + /* 279 */ "duration_list", + /* 280 */ "rollup_func_list", + /* 281 */ "alter_table_option", + /* 282 */ "duration_literal", + /* 283 */ "rollup_func_name", + /* 284 */ "function_name", + /* 285 */ "col_name", + /* 286 */ "db_name_cond_opt", + /* 287 */ "like_pattern_opt", + /* 288 */ "table_name_cond", + /* 289 */ "from_db_opt", + /* 290 */ "index_name", + /* 291 */ "index_options", + /* 292 */ "func_list", + /* 293 */ "sliding_opt", + /* 294 */ "func", + /* 295 */ "expression_list", + /* 296 */ "topic_name", + /* 297 */ "query_expression", + /* 298 */ "cgroup_name", + /* 299 */ "analyze_opt", + /* 300 */ "explain_options", + /* 301 */ "agg_func_opt", + /* 302 */ "bufsize_opt", + /* 303 */ "stream_name", + /* 304 */ "stream_options", + /* 305 */ "into_opt", + /* 306 */ "dnode_list", + /* 307 */ "where_clause_opt", + /* 308 */ "signed", + /* 309 */ "literal_func", + /* 310 */ "table_alias", + /* 311 */ "column_alias", + /* 312 */ "expression", + /* 313 */ "pseudo_column", + /* 314 */ "column_reference", + /* 315 */ "function_expression", + /* 316 */ "subquery", + /* 317 */ "star_func", + /* 318 */ "star_func_para_list", + /* 319 */ "noarg_func", + /* 320 */ "other_para_list", + /* 321 */ "star_func_para", + /* 322 */ "predicate", + /* 323 */ "compare_op", + /* 324 */ "in_op", + /* 325 */ "in_predicate_value", + /* 326 */ "boolean_value_expression", + /* 327 */ "boolean_primary", + /* 328 */ "common_expression", + /* 329 */ "from_clause", + /* 330 */ "table_reference_list", + /* 331 */ "table_reference", + /* 332 */ "table_primary", + /* 333 */ "joined_table", + /* 334 */ "alias_opt", + /* 335 */ "parenthesized_joined_table", + /* 336 */ "join_type", + /* 337 */ "search_condition", + /* 338 */ "query_specification", + /* 339 */ "set_quantifier_opt", + /* 340 */ "select_list", + /* 341 */ "partition_by_clause_opt", + /* 342 */ "twindow_clause_opt", + /* 343 */ "group_by_clause_opt", + /* 344 */ "having_clause_opt", + /* 345 */ "select_sublist", + /* 346 */ "select_item", + /* 347 */ "fill_opt", + /* 348 */ "fill_mode", + /* 349 */ "group_by_list", + /* 350 */ "query_expression_body", + /* 351 */ "order_by_clause_opt", + /* 352 */ "slimit_clause_opt", + /* 353 */ "limit_clause_opt", + /* 354 */ "query_primary", + /* 355 */ "sort_specification_list", + /* 356 */ "sort_specification", + /* 357 */ "ordering_specification_opt", + /* 358 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1580,418 +1588,417 @@ static const char *const yyRuleName[] = { /* 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 DURATION NK_INTEGER", - /* 72 */ "db_options ::= db_options DURATION 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 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", - /* 88 */ "alter_db_options ::= alter_db_option", - /* 89 */ "alter_db_options ::= alter_db_options alter_db_option", - /* 90 */ "alter_db_option ::= BUFFER NK_INTEGER", - /* 91 */ "alter_db_option ::= CACHELAST NK_INTEGER", - /* 92 */ "alter_db_option ::= FSYNC NK_INTEGER", - /* 93 */ "alter_db_option ::= KEEP integer_list", - /* 94 */ "alter_db_option ::= KEEP variable_list", - /* 95 */ "alter_db_option ::= PAGES NK_INTEGER", - /* 96 */ "alter_db_option ::= REPLICA NK_INTEGER", - /* 97 */ "alter_db_option ::= STRICT NK_INTEGER", - /* 98 */ "alter_db_option ::= WAL NK_INTEGER", - /* 99 */ "integer_list ::= NK_INTEGER", - /* 100 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", - /* 101 */ "variable_list ::= NK_VARIABLE", - /* 102 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", - /* 103 */ "retention_list ::= retention", - /* 104 */ "retention_list ::= retention_list NK_COMMA retention", - /* 105 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 106 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 107 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 108 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 109 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 110 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 111 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 112 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 113 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 114 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 115 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 116 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 117 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 118 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 119 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 120 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 121 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 122 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", - /* 123 */ "multi_create_clause ::= create_subtable_clause", - /* 124 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 125 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options", - /* 126 */ "multi_drop_clause ::= drop_table_clause", - /* 127 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 128 */ "drop_table_clause ::= exists_opt full_table_name", - /* 129 */ "specific_tags_opt ::=", - /* 130 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", - /* 131 */ "full_table_name ::= table_name", - /* 132 */ "full_table_name ::= db_name NK_DOT table_name", - /* 133 */ "column_def_list ::= column_def", - /* 134 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 135 */ "column_def ::= column_name type_name", - /* 136 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 137 */ "type_name ::= BOOL", - /* 138 */ "type_name ::= TINYINT", - /* 139 */ "type_name ::= SMALLINT", - /* 140 */ "type_name ::= INT", - /* 141 */ "type_name ::= INTEGER", - /* 142 */ "type_name ::= BIGINT", - /* 143 */ "type_name ::= FLOAT", - /* 144 */ "type_name ::= DOUBLE", - /* 145 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 146 */ "type_name ::= TIMESTAMP", - /* 147 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 148 */ "type_name ::= TINYINT UNSIGNED", - /* 149 */ "type_name ::= SMALLINT UNSIGNED", - /* 150 */ "type_name ::= INT UNSIGNED", - /* 151 */ "type_name ::= BIGINT UNSIGNED", - /* 152 */ "type_name ::= JSON", - /* 153 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 154 */ "type_name ::= MEDIUMBLOB", - /* 155 */ "type_name ::= BLOB", - /* 156 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 157 */ "type_name ::= DECIMAL", - /* 158 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 159 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 160 */ "tags_def_opt ::=", - /* 161 */ "tags_def_opt ::= tags_def", - /* 162 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 163 */ "table_options ::=", - /* 164 */ "table_options ::= table_options COMMENT NK_STRING", - /* 165 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 166 */ "table_options ::= table_options WATERMARK duration_list", - /* 167 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 168 */ "table_options ::= table_options TTL NK_INTEGER", - /* 169 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 170 */ "alter_table_options ::= alter_table_option", - /* 171 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 172 */ "alter_table_option ::= COMMENT NK_STRING", - /* 173 */ "alter_table_option ::= TTL NK_INTEGER", - /* 174 */ "duration_list ::= duration_literal", - /* 175 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 176 */ "rollup_func_list ::= rollup_func_name", - /* 177 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 178 */ "rollup_func_name ::= function_name", - /* 179 */ "rollup_func_name ::= FIRST", - /* 180 */ "rollup_func_name ::= LAST", - /* 181 */ "col_name_list ::= col_name", - /* 182 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 183 */ "col_name ::= column_name", - /* 184 */ "cmd ::= SHOW DNODES", - /* 185 */ "cmd ::= SHOW USERS", - /* 186 */ "cmd ::= SHOW DATABASES", - /* 187 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 188 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 189 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 190 */ "cmd ::= SHOW MNODES", - /* 191 */ "cmd ::= SHOW MODULES", - /* 192 */ "cmd ::= SHOW QNODES", - /* 193 */ "cmd ::= SHOW FUNCTIONS", - /* 194 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 195 */ "cmd ::= SHOW STREAMS", - /* 196 */ "cmd ::= SHOW ACCOUNTS", - /* 197 */ "cmd ::= SHOW APPS", - /* 198 */ "cmd ::= SHOW CONNECTIONS", - /* 199 */ "cmd ::= SHOW LICENCE", - /* 200 */ "cmd ::= SHOW GRANTS", - /* 201 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 202 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 203 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 204 */ "cmd ::= SHOW QUERIES", - /* 205 */ "cmd ::= SHOW SCORES", - /* 206 */ "cmd ::= SHOW TOPICS", - /* 207 */ "cmd ::= SHOW VARIABLES", - /* 208 */ "cmd ::= SHOW BNODES", - /* 209 */ "cmd ::= SHOW SNODES", - /* 210 */ "cmd ::= SHOW CLUSTER", - /* 211 */ "cmd ::= SHOW TRANSACTIONS", - /* 212 */ "db_name_cond_opt ::=", - /* 213 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 214 */ "like_pattern_opt ::=", - /* 215 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 216 */ "table_name_cond ::= table_name", - /* 217 */ "from_db_opt ::=", - /* 218 */ "from_db_opt ::= FROM db_name", - /* 219 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 220 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", - /* 221 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", - /* 222 */ "index_options ::=", - /* 223 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 224 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 225 */ "func_list ::= func", - /* 226 */ "func_list ::= func_list NK_COMMA func", - /* 227 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 228 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 229 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", - /* 230 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", - /* 231 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 232 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 233 */ "cmd ::= DESC full_table_name", - /* 234 */ "cmd ::= DESCRIBE full_table_name", - /* 235 */ "cmd ::= RESET QUERY CACHE", - /* 236 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 237 */ "analyze_opt ::=", - /* 238 */ "analyze_opt ::= ANALYZE", - /* 239 */ "explain_options ::=", - /* 240 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 241 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 242 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", - /* 243 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 244 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 245 */ "agg_func_opt ::=", - /* 246 */ "agg_func_opt ::= AGGREGATE", - /* 247 */ "bufsize_opt ::=", - /* 248 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 249 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", - /* 250 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 251 */ "into_opt ::=", - /* 252 */ "into_opt ::= INTO full_table_name", - /* 253 */ "stream_options ::=", - /* 254 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 255 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 256 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 257 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 258 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 259 */ "cmd ::= KILL QUERY NK_STRING", - /* 260 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 261 */ "cmd ::= BALANCE VGROUP", - /* 262 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 263 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 264 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 265 */ "dnode_list ::= DNODE NK_INTEGER", - /* 266 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 267 */ "cmd ::= SYNCDB db_name REPLICA", - /* 268 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 269 */ "cmd ::= query_expression", - /* 270 */ "literal ::= NK_INTEGER", - /* 271 */ "literal ::= NK_FLOAT", - /* 272 */ "literal ::= NK_STRING", - /* 273 */ "literal ::= NK_BOOL", - /* 274 */ "literal ::= TIMESTAMP NK_STRING", - /* 275 */ "literal ::= duration_literal", - /* 276 */ "literal ::= NULL", - /* 277 */ "literal ::= NK_QUESTION", - /* 278 */ "duration_literal ::= NK_VARIABLE", - /* 279 */ "signed ::= NK_INTEGER", - /* 280 */ "signed ::= NK_PLUS NK_INTEGER", - /* 281 */ "signed ::= NK_MINUS NK_INTEGER", - /* 282 */ "signed ::= NK_FLOAT", - /* 283 */ "signed ::= NK_PLUS NK_FLOAT", - /* 284 */ "signed ::= NK_MINUS NK_FLOAT", - /* 285 */ "signed_literal ::= signed", - /* 286 */ "signed_literal ::= NK_STRING", - /* 287 */ "signed_literal ::= NK_BOOL", - /* 288 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 289 */ "signed_literal ::= duration_literal", - /* 290 */ "signed_literal ::= NULL", - /* 291 */ "signed_literal ::= literal_func", - /* 292 */ "literal_list ::= signed_literal", - /* 293 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 294 */ "db_name ::= NK_ID", - /* 295 */ "table_name ::= NK_ID", - /* 296 */ "column_name ::= NK_ID", - /* 297 */ "function_name ::= NK_ID", - /* 298 */ "table_alias ::= NK_ID", - /* 299 */ "column_alias ::= NK_ID", - /* 300 */ "user_name ::= NK_ID", - /* 301 */ "index_name ::= NK_ID", - /* 302 */ "topic_name ::= NK_ID", - /* 303 */ "stream_name ::= NK_ID", - /* 304 */ "cgroup_name ::= NK_ID", - /* 305 */ "expression ::= literal", - /* 306 */ "expression ::= pseudo_column", - /* 307 */ "expression ::= column_reference", - /* 308 */ "expression ::= function_expression", - /* 309 */ "expression ::= subquery", - /* 310 */ "expression ::= NK_LP expression NK_RP", - /* 311 */ "expression ::= NK_PLUS expression", - /* 312 */ "expression ::= NK_MINUS expression", - /* 313 */ "expression ::= expression NK_PLUS expression", - /* 314 */ "expression ::= expression NK_MINUS expression", - /* 315 */ "expression ::= expression NK_STAR expression", - /* 316 */ "expression ::= expression NK_SLASH expression", - /* 317 */ "expression ::= expression NK_REM expression", - /* 318 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 319 */ "expression_list ::= expression", - /* 320 */ "expression_list ::= expression_list NK_COMMA expression", - /* 321 */ "column_reference ::= column_name", - /* 322 */ "column_reference ::= table_name NK_DOT column_name", - /* 323 */ "pseudo_column ::= ROWTS", - /* 324 */ "pseudo_column ::= TBNAME", - /* 325 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 326 */ "pseudo_column ::= QSTARTTS", - /* 327 */ "pseudo_column ::= QENDTS", - /* 328 */ "pseudo_column ::= WSTARTTS", - /* 329 */ "pseudo_column ::= WENDTS", - /* 330 */ "pseudo_column ::= WDURATION", - /* 331 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 332 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 333 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", - /* 334 */ "function_expression ::= literal_func", - /* 335 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 336 */ "literal_func ::= NOW", - /* 337 */ "noarg_func ::= NOW", - /* 338 */ "noarg_func ::= TODAY", - /* 339 */ "noarg_func ::= TIMEZONE", - /* 340 */ "star_func ::= COUNT", - /* 341 */ "star_func ::= FIRST", - /* 342 */ "star_func ::= LAST", - /* 343 */ "star_func ::= LAST_ROW", - /* 344 */ "star_func_para_list ::= NK_STAR", - /* 345 */ "star_func_para_list ::= other_para_list", - /* 346 */ "other_para_list ::= star_func_para", - /* 347 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 348 */ "star_func_para ::= expression", - /* 349 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 350 */ "predicate ::= expression compare_op expression", - /* 351 */ "predicate ::= expression BETWEEN expression AND expression", - /* 352 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 353 */ "predicate ::= expression IS NULL", - /* 354 */ "predicate ::= expression IS NOT NULL", - /* 355 */ "predicate ::= expression in_op in_predicate_value", - /* 356 */ "compare_op ::= NK_LT", - /* 357 */ "compare_op ::= NK_GT", - /* 358 */ "compare_op ::= NK_LE", - /* 359 */ "compare_op ::= NK_GE", - /* 360 */ "compare_op ::= NK_NE", - /* 361 */ "compare_op ::= NK_EQ", - /* 362 */ "compare_op ::= LIKE", - /* 363 */ "compare_op ::= NOT LIKE", - /* 364 */ "compare_op ::= MATCH", - /* 365 */ "compare_op ::= NMATCH", - /* 366 */ "compare_op ::= CONTAINS", - /* 367 */ "in_op ::= IN", - /* 368 */ "in_op ::= NOT IN", - /* 369 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 370 */ "boolean_value_expression ::= boolean_primary", - /* 371 */ "boolean_value_expression ::= NOT boolean_primary", - /* 372 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 373 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 374 */ "boolean_primary ::= predicate", - /* 375 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 376 */ "common_expression ::= expression", - /* 377 */ "common_expression ::= boolean_value_expression", - /* 378 */ "from_clause ::= FROM table_reference_list", - /* 379 */ "table_reference_list ::= table_reference", - /* 380 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 381 */ "table_reference ::= table_primary", - /* 382 */ "table_reference ::= joined_table", - /* 383 */ "table_primary ::= table_name alias_opt", - /* 384 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 385 */ "table_primary ::= subquery alias_opt", - /* 386 */ "table_primary ::= parenthesized_joined_table", - /* 387 */ "alias_opt ::=", - /* 388 */ "alias_opt ::= table_alias", - /* 389 */ "alias_opt ::= AS table_alias", - /* 390 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 391 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 392 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 393 */ "join_type ::=", - /* 394 */ "join_type ::= INNER", - /* 395 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 396 */ "set_quantifier_opt ::=", - /* 397 */ "set_quantifier_opt ::= DISTINCT", - /* 398 */ "set_quantifier_opt ::= ALL", - /* 399 */ "select_list ::= NK_STAR", - /* 400 */ "select_list ::= select_sublist", - /* 401 */ "select_sublist ::= select_item", - /* 402 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 403 */ "select_item ::= common_expression", - /* 404 */ "select_item ::= common_expression column_alias", - /* 405 */ "select_item ::= common_expression AS column_alias", - /* 406 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 407 */ "where_clause_opt ::=", - /* 408 */ "where_clause_opt ::= WHERE search_condition", - /* 409 */ "partition_by_clause_opt ::=", - /* 410 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 411 */ "twindow_clause_opt ::=", - /* 412 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 413 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 414 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 415 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 416 */ "sliding_opt ::=", - /* 417 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 418 */ "fill_opt ::=", - /* 419 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 420 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 421 */ "fill_mode ::= NONE", - /* 422 */ "fill_mode ::= PREV", - /* 423 */ "fill_mode ::= NULL", - /* 424 */ "fill_mode ::= LINEAR", - /* 425 */ "fill_mode ::= NEXT", - /* 426 */ "group_by_clause_opt ::=", - /* 427 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 428 */ "group_by_list ::= expression", - /* 429 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 430 */ "having_clause_opt ::=", - /* 431 */ "having_clause_opt ::= HAVING search_condition", - /* 432 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 433 */ "query_expression_body ::= query_primary", - /* 434 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 435 */ "query_expression_body ::= query_expression_body UNION query_expression_body", - /* 436 */ "query_primary ::= query_specification", - /* 437 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", - /* 438 */ "order_by_clause_opt ::=", - /* 439 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 440 */ "slimit_clause_opt ::=", - /* 441 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 442 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 443 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 444 */ "limit_clause_opt ::=", - /* 445 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 446 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 447 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 448 */ "subquery ::= NK_LP query_expression NK_RP", - /* 449 */ "search_condition ::= common_expression", - /* 450 */ "sort_specification_list ::= sort_specification", - /* 451 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 452 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 453 */ "ordering_specification_opt ::=", - /* 454 */ "ordering_specification_opt ::= ASC", - /* 455 */ "ordering_specification_opt ::= DESC", - /* 456 */ "null_ordering_opt ::=", - /* 457 */ "null_ordering_opt ::= NULLS FIRST", - /* 458 */ "null_ordering_opt ::= NULLS LAST", + /* 47 */ "dnode_host_name ::= NK_STRING", + /* 48 */ "cmd ::= ALTER LOCAL NK_STRING", + /* 49 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", + /* 50 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", + /* 51 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", + /* 52 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", + /* 53 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", + /* 54 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", + /* 55 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", + /* 56 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", + /* 57 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", + /* 58 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", + /* 59 */ "cmd ::= DROP DATABASE exists_opt db_name", + /* 60 */ "cmd ::= USE db_name", + /* 61 */ "cmd ::= ALTER DATABASE db_name alter_db_options", + /* 62 */ "not_exists_opt ::= IF NOT EXISTS", + /* 63 */ "not_exists_opt ::=", + /* 64 */ "exists_opt ::= IF EXISTS", + /* 65 */ "exists_opt ::=", + /* 66 */ "db_options ::=", + /* 67 */ "db_options ::= db_options BUFFER NK_INTEGER", + /* 68 */ "db_options ::= db_options CACHELAST NK_INTEGER", + /* 69 */ "db_options ::= db_options COMP NK_INTEGER", + /* 70 */ "db_options ::= db_options DURATION NK_INTEGER", + /* 71 */ "db_options ::= db_options DURATION NK_VARIABLE", + /* 72 */ "db_options ::= db_options FSYNC NK_INTEGER", + /* 73 */ "db_options ::= db_options MAXROWS NK_INTEGER", + /* 74 */ "db_options ::= db_options MINROWS NK_INTEGER", + /* 75 */ "db_options ::= db_options KEEP integer_list", + /* 76 */ "db_options ::= db_options KEEP variable_list", + /* 77 */ "db_options ::= db_options PAGES NK_INTEGER", + /* 78 */ "db_options ::= db_options PAGESIZE NK_INTEGER", + /* 79 */ "db_options ::= db_options PRECISION NK_STRING", + /* 80 */ "db_options ::= db_options REPLICA NK_INTEGER", + /* 81 */ "db_options ::= db_options STRICT NK_INTEGER", + /* 82 */ "db_options ::= db_options WAL NK_INTEGER", + /* 83 */ "db_options ::= db_options VGROUPS NK_INTEGER", + /* 84 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", + /* 85 */ "db_options ::= db_options RETENTIONS retention_list", + /* 86 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", + /* 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 signed_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 MAX_DELAY duration_list", + /* 165 */ "table_options ::= table_options WATERMARK duration_list", + /* 166 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_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 */ "duration_list ::= duration_literal", + /* 174 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 175 */ "rollup_func_list ::= rollup_func_name", + /* 176 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 177 */ "rollup_func_name ::= function_name", + /* 178 */ "rollup_func_name ::= FIRST", + /* 179 */ "rollup_func_name ::= LAST", + /* 180 */ "col_name_list ::= col_name", + /* 181 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 182 */ "col_name ::= column_name", + /* 183 */ "cmd ::= SHOW DNODES", + /* 184 */ "cmd ::= SHOW USERS", + /* 185 */ "cmd ::= SHOW DATABASES", + /* 186 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 187 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 188 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 189 */ "cmd ::= SHOW MNODES", + /* 190 */ "cmd ::= SHOW MODULES", + /* 191 */ "cmd ::= SHOW QNODES", + /* 192 */ "cmd ::= SHOW FUNCTIONS", + /* 193 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 194 */ "cmd ::= SHOW STREAMS", + /* 195 */ "cmd ::= SHOW ACCOUNTS", + /* 196 */ "cmd ::= SHOW APPS", + /* 197 */ "cmd ::= SHOW CONNECTIONS", + /* 198 */ "cmd ::= SHOW LICENCE", + /* 199 */ "cmd ::= SHOW GRANTS", + /* 200 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 201 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 202 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 203 */ "cmd ::= SHOW QUERIES", + /* 204 */ "cmd ::= SHOW SCORES", + /* 205 */ "cmd ::= SHOW TOPICS", + /* 206 */ "cmd ::= SHOW VARIABLES", + /* 207 */ "cmd ::= SHOW BNODES", + /* 208 */ "cmd ::= SHOW SNODES", + /* 209 */ "cmd ::= SHOW CLUSTER", + /* 210 */ "cmd ::= SHOW TRANSACTIONS", + /* 211 */ "db_name_cond_opt ::=", + /* 212 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 213 */ "like_pattern_opt ::=", + /* 214 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 215 */ "table_name_cond ::= table_name", + /* 216 */ "from_db_opt ::=", + /* 217 */ "from_db_opt ::= FROM db_name", + /* 218 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 219 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", + /* 220 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", + /* 221 */ "index_options ::=", + /* 222 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 223 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 224 */ "func_list ::= func", + /* 225 */ "func_list ::= func_list NK_COMMA func", + /* 226 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 227 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 228 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", + /* 229 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", + /* 230 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 231 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 232 */ "cmd ::= DESC full_table_name", + /* 233 */ "cmd ::= DESCRIBE full_table_name", + /* 234 */ "cmd ::= RESET QUERY CACHE", + /* 235 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 236 */ "analyze_opt ::=", + /* 237 */ "analyze_opt ::= ANALYZE", + /* 238 */ "explain_options ::=", + /* 239 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 240 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 241 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", + /* 242 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 243 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 244 */ "agg_func_opt ::=", + /* 245 */ "agg_func_opt ::= AGGREGATE", + /* 246 */ "bufsize_opt ::=", + /* 247 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 248 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", + /* 249 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 250 */ "into_opt ::=", + /* 251 */ "into_opt ::= INTO full_table_name", + /* 252 */ "stream_options ::=", + /* 253 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 254 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 255 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 256 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 257 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 258 */ "cmd ::= KILL QUERY NK_STRING", + /* 259 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 260 */ "cmd ::= BALANCE VGROUP", + /* 261 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 262 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 263 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 264 */ "dnode_list ::= DNODE NK_INTEGER", + /* 265 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 266 */ "cmd ::= SYNCDB db_name REPLICA", + /* 267 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 268 */ "cmd ::= query_expression", + /* 269 */ "literal ::= NK_INTEGER", + /* 270 */ "literal ::= NK_FLOAT", + /* 271 */ "literal ::= NK_STRING", + /* 272 */ "literal ::= NK_BOOL", + /* 273 */ "literal ::= TIMESTAMP NK_STRING", + /* 274 */ "literal ::= duration_literal", + /* 275 */ "literal ::= NULL", + /* 276 */ "literal ::= NK_QUESTION", + /* 277 */ "duration_literal ::= NK_VARIABLE", + /* 278 */ "signed ::= NK_INTEGER", + /* 279 */ "signed ::= NK_PLUS NK_INTEGER", + /* 280 */ "signed ::= NK_MINUS NK_INTEGER", + /* 281 */ "signed ::= NK_FLOAT", + /* 282 */ "signed ::= NK_PLUS NK_FLOAT", + /* 283 */ "signed ::= NK_MINUS NK_FLOAT", + /* 284 */ "signed_literal ::= signed", + /* 285 */ "signed_literal ::= NK_STRING", + /* 286 */ "signed_literal ::= NK_BOOL", + /* 287 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 288 */ "signed_literal ::= duration_literal", + /* 289 */ "signed_literal ::= NULL", + /* 290 */ "signed_literal ::= literal_func", + /* 291 */ "literal_list ::= signed_literal", + /* 292 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 293 */ "db_name ::= NK_ID", + /* 294 */ "table_name ::= NK_ID", + /* 295 */ "column_name ::= NK_ID", + /* 296 */ "function_name ::= NK_ID", + /* 297 */ "table_alias ::= NK_ID", + /* 298 */ "column_alias ::= NK_ID", + /* 299 */ "user_name ::= NK_ID", + /* 300 */ "index_name ::= NK_ID", + /* 301 */ "topic_name ::= NK_ID", + /* 302 */ "stream_name ::= NK_ID", + /* 303 */ "cgroup_name ::= NK_ID", + /* 304 */ "expression ::= literal", + /* 305 */ "expression ::= pseudo_column", + /* 306 */ "expression ::= column_reference", + /* 307 */ "expression ::= function_expression", + /* 308 */ "expression ::= subquery", + /* 309 */ "expression ::= NK_LP expression NK_RP", + /* 310 */ "expression ::= NK_PLUS expression", + /* 311 */ "expression ::= NK_MINUS expression", + /* 312 */ "expression ::= expression NK_PLUS expression", + /* 313 */ "expression ::= expression NK_MINUS expression", + /* 314 */ "expression ::= expression NK_STAR expression", + /* 315 */ "expression ::= expression NK_SLASH expression", + /* 316 */ "expression ::= expression NK_REM expression", + /* 317 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 318 */ "expression_list ::= expression", + /* 319 */ "expression_list ::= expression_list NK_COMMA expression", + /* 320 */ "column_reference ::= column_name", + /* 321 */ "column_reference ::= table_name NK_DOT column_name", + /* 322 */ "pseudo_column ::= ROWTS", + /* 323 */ "pseudo_column ::= TBNAME", + /* 324 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 325 */ "pseudo_column ::= QSTARTTS", + /* 326 */ "pseudo_column ::= QENDTS", + /* 327 */ "pseudo_column ::= WSTARTTS", + /* 328 */ "pseudo_column ::= WENDTS", + /* 329 */ "pseudo_column ::= WDURATION", + /* 330 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 331 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 332 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 333 */ "function_expression ::= literal_func", + /* 334 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 335 */ "literal_func ::= NOW", + /* 336 */ "noarg_func ::= NOW", + /* 337 */ "noarg_func ::= TODAY", + /* 338 */ "noarg_func ::= TIMEZONE", + /* 339 */ "star_func ::= COUNT", + /* 340 */ "star_func ::= FIRST", + /* 341 */ "star_func ::= LAST", + /* 342 */ "star_func ::= LAST_ROW", + /* 343 */ "star_func_para_list ::= NK_STAR", + /* 344 */ "star_func_para_list ::= other_para_list", + /* 345 */ "other_para_list ::= star_func_para", + /* 346 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 347 */ "star_func_para ::= expression", + /* 348 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 349 */ "predicate ::= expression compare_op expression", + /* 350 */ "predicate ::= expression BETWEEN expression AND expression", + /* 351 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 352 */ "predicate ::= expression IS NULL", + /* 353 */ "predicate ::= expression IS NOT NULL", + /* 354 */ "predicate ::= expression in_op in_predicate_value", + /* 355 */ "compare_op ::= NK_LT", + /* 356 */ "compare_op ::= NK_GT", + /* 357 */ "compare_op ::= NK_LE", + /* 358 */ "compare_op ::= NK_GE", + /* 359 */ "compare_op ::= NK_NE", + /* 360 */ "compare_op ::= NK_EQ", + /* 361 */ "compare_op ::= LIKE", + /* 362 */ "compare_op ::= NOT LIKE", + /* 363 */ "compare_op ::= MATCH", + /* 364 */ "compare_op ::= NMATCH", + /* 365 */ "compare_op ::= CONTAINS", + /* 366 */ "in_op ::= IN", + /* 367 */ "in_op ::= NOT IN", + /* 368 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 369 */ "boolean_value_expression ::= boolean_primary", + /* 370 */ "boolean_value_expression ::= NOT boolean_primary", + /* 371 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 372 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 373 */ "boolean_primary ::= predicate", + /* 374 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 375 */ "common_expression ::= expression", + /* 376 */ "common_expression ::= boolean_value_expression", + /* 377 */ "from_clause ::= FROM table_reference_list", + /* 378 */ "table_reference_list ::= table_reference", + /* 379 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 380 */ "table_reference ::= table_primary", + /* 381 */ "table_reference ::= joined_table", + /* 382 */ "table_primary ::= table_name alias_opt", + /* 383 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 384 */ "table_primary ::= subquery alias_opt", + /* 385 */ "table_primary ::= parenthesized_joined_table", + /* 386 */ "alias_opt ::=", + /* 387 */ "alias_opt ::= table_alias", + /* 388 */ "alias_opt ::= AS table_alias", + /* 389 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 390 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 391 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 392 */ "join_type ::=", + /* 393 */ "join_type ::= INNER", + /* 394 */ "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", + /* 395 */ "set_quantifier_opt ::=", + /* 396 */ "set_quantifier_opt ::= DISTINCT", + /* 397 */ "set_quantifier_opt ::= ALL", + /* 398 */ "select_list ::= NK_STAR", + /* 399 */ "select_list ::= select_sublist", + /* 400 */ "select_sublist ::= select_item", + /* 401 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 402 */ "select_item ::= common_expression", + /* 403 */ "select_item ::= common_expression column_alias", + /* 404 */ "select_item ::= common_expression AS column_alias", + /* 405 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 406 */ "where_clause_opt ::=", + /* 407 */ "where_clause_opt ::= WHERE search_condition", + /* 408 */ "partition_by_clause_opt ::=", + /* 409 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 410 */ "twindow_clause_opt ::=", + /* 411 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 412 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 413 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 414 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 415 */ "sliding_opt ::=", + /* 416 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 417 */ "fill_opt ::=", + /* 418 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 419 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 420 */ "fill_mode ::= NONE", + /* 421 */ "fill_mode ::= PREV", + /* 422 */ "fill_mode ::= NULL", + /* 423 */ "fill_mode ::= LINEAR", + /* 424 */ "fill_mode ::= NEXT", + /* 425 */ "group_by_clause_opt ::=", + /* 426 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 427 */ "group_by_list ::= expression", + /* 428 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 429 */ "having_clause_opt ::=", + /* 430 */ "having_clause_opt ::= HAVING search_condition", + /* 431 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 432 */ "query_expression_body ::= query_primary", + /* 433 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 434 */ "query_expression_body ::= query_expression_body UNION query_expression_body", + /* 435 */ "query_primary ::= query_specification", + /* 436 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", + /* 437 */ "order_by_clause_opt ::=", + /* 438 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 439 */ "slimit_clause_opt ::=", + /* 440 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 441 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 442 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 443 */ "limit_clause_opt ::=", + /* 444 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 445 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 446 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 447 */ "subquery ::= NK_LP query_expression NK_RP", + /* 448 */ "search_condition ::= common_expression", + /* 449 */ "sort_specification_list ::= sort_specification", + /* 450 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 451 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 452 */ "ordering_specification_opt ::=", + /* 453 */ "ordering_specification_opt ::= ASC", + /* 454 */ "ordering_specification_opt ::= DESC", + /* 455 */ "null_ordering_opt ::=", + /* 456 */ "null_ordering_opt ::= NULLS FIRST", + /* 457 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2118,175 +2125,175 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 239: /* cmd */ - case 242: /* literal */ - case 253: /* db_options */ - case 255: /* alter_db_options */ - case 260: /* retention */ - case 261: /* full_table_name */ - case 264: /* table_options */ - case 268: /* alter_table_clause */ - case 269: /* alter_table_options */ - case 272: /* signed_literal */ - case 273: /* create_subtable_clause */ - case 276: /* drop_table_clause */ - case 279: /* column_def */ - case 283: /* duration_literal */ - case 284: /* rollup_func_name */ - case 286: /* col_name */ - case 287: /* db_name_cond_opt */ - case 288: /* like_pattern_opt */ - case 289: /* table_name_cond */ - case 290: /* from_db_opt */ - case 292: /* index_options */ - case 294: /* sliding_opt */ - case 295: /* func */ - case 298: /* query_expression */ - case 301: /* explain_options */ - case 305: /* stream_options */ - case 306: /* into_opt */ - case 308: /* where_clause_opt */ - case 309: /* signed */ - case 310: /* literal_func */ - case 313: /* expression */ - case 314: /* pseudo_column */ - case 315: /* column_reference */ - case 316: /* function_expression */ - case 317: /* subquery */ - case 322: /* star_func_para */ - case 323: /* predicate */ - case 326: /* in_predicate_value */ - case 327: /* boolean_value_expression */ - case 328: /* boolean_primary */ - case 329: /* common_expression */ - case 330: /* from_clause */ - case 331: /* table_reference_list */ - case 332: /* table_reference */ - case 333: /* table_primary */ - case 334: /* joined_table */ - case 336: /* parenthesized_joined_table */ - case 338: /* search_condition */ - case 339: /* query_specification */ - case 343: /* twindow_clause_opt */ - case 345: /* having_clause_opt */ - case 347: /* select_item */ - case 348: /* fill_opt */ - case 351: /* query_expression_body */ - case 353: /* slimit_clause_opt */ - case 354: /* limit_clause_opt */ - case 355: /* query_primary */ - case 357: /* sort_specification */ + case 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: /* signed_literal */ + case 272: /* create_subtable_clause */ + case 275: /* drop_table_clause */ + case 278: /* column_def */ + case 282: /* duration_literal */ + case 283: /* rollup_func_name */ + case 285: /* col_name */ + case 286: /* db_name_cond_opt */ + case 287: /* like_pattern_opt */ + case 288: /* table_name_cond */ + case 289: /* from_db_opt */ + case 291: /* index_options */ + case 293: /* sliding_opt */ + case 294: /* func */ + case 297: /* query_expression */ + case 300: /* explain_options */ + case 304: /* stream_options */ + case 305: /* into_opt */ + case 307: /* where_clause_opt */ + case 308: /* signed */ + case 309: /* literal_func */ + case 312: /* expression */ + case 313: /* pseudo_column */ + case 314: /* column_reference */ + case 315: /* function_expression */ + case 316: /* subquery */ + case 321: /* star_func_para */ + case 322: /* predicate */ + case 325: /* in_predicate_value */ + case 326: /* boolean_value_expression */ + case 327: /* boolean_primary */ + case 328: /* common_expression */ + case 329: /* from_clause */ + case 330: /* table_reference_list */ + case 331: /* table_reference */ + case 332: /* table_primary */ + case 333: /* joined_table */ + case 335: /* parenthesized_joined_table */ + case 337: /* search_condition */ + case 338: /* query_specification */ + case 342: /* twindow_clause_opt */ + case 344: /* having_clause_opt */ + case 346: /* select_item */ + case 347: /* fill_opt */ + case 350: /* query_expression_body */ + case 352: /* slimit_clause_opt */ + case 353: /* limit_clause_opt */ + case 354: /* query_primary */ + case 356: /* sort_specification */ { - nodesDestroyNode((yypminor->yy632)); + nodesDestroyNode((yypminor->yy674)); } break; - case 240: /* account_options */ - case 241: /* alter_account_options */ - case 243: /* alter_account_option */ - case 303: /* bufsize_opt */ + case 239: /* account_options */ + case 240: /* alter_account_options */ + case 242: /* alter_account_option */ + case 302: /* bufsize_opt */ { } break; - case 244: /* user_name */ - case 246: /* priv_level */ - case 249: /* db_name */ - case 250: /* dnode_endpoint */ - case 251: /* dnode_host_name */ - case 270: /* column_name */ - case 278: /* table_name */ - case 285: /* function_name */ - case 291: /* index_name */ - case 297: /* topic_name */ - case 299: /* cgroup_name */ - case 304: /* stream_name */ - case 311: /* table_alias */ - case 312: /* column_alias */ - case 318: /* star_func */ - case 320: /* noarg_func */ - case 335: /* alias_opt */ + case 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 277: /* table_name */ + case 284: /* function_name */ + case 290: /* index_name */ + case 296: /* topic_name */ + case 298: /* cgroup_name */ + case 303: /* stream_name */ + case 310: /* table_alias */ + case 311: /* column_alias */ + case 317: /* star_func */ + case 319: /* noarg_func */ + case 334: /* alias_opt */ { } break; - case 245: /* privileges */ - case 247: /* priv_type_list */ - case 248: /* priv_type */ + case 244: /* privileges */ + case 246: /* priv_type_list */ + case 247: /* priv_type */ { } break; - case 252: /* not_exists_opt */ - case 254: /* exists_opt */ - case 300: /* analyze_opt */ - case 302: /* agg_func_opt */ - case 340: /* set_quantifier_opt */ + case 251: /* not_exists_opt */ + case 253: /* exists_opt */ + case 299: /* analyze_opt */ + case 301: /* agg_func_opt */ + case 339: /* set_quantifier_opt */ { } break; - case 256: /* integer_list */ - case 257: /* variable_list */ - case 258: /* retention_list */ - case 262: /* column_def_list */ - case 263: /* tags_def_opt */ - case 265: /* multi_create_clause */ - case 266: /* tags_def */ - case 267: /* multi_drop_clause */ - case 274: /* specific_tags_opt */ - case 275: /* literal_list */ - case 277: /* col_name_list */ - case 280: /* duration_list */ - case 281: /* rollup_func_list */ - case 293: /* func_list */ - case 296: /* expression_list */ - case 307: /* dnode_list */ - case 319: /* star_func_para_list */ - case 321: /* other_para_list */ - case 341: /* select_list */ - case 342: /* partition_by_clause_opt */ - case 344: /* group_by_clause_opt */ - case 346: /* select_sublist */ - case 350: /* group_by_list */ - case 352: /* order_by_clause_opt */ - case 356: /* sort_specification_list */ + case 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 273: /* specific_tags_opt */ + case 274: /* literal_list */ + case 276: /* col_name_list */ + case 279: /* duration_list */ + case 280: /* rollup_func_list */ + case 292: /* func_list */ + case 295: /* expression_list */ + case 306: /* dnode_list */ + case 318: /* star_func_para_list */ + case 320: /* other_para_list */ + case 340: /* select_list */ + case 341: /* partition_by_clause_opt */ + case 343: /* group_by_clause_opt */ + case 345: /* select_sublist */ + case 349: /* group_by_list */ + case 351: /* order_by_clause_opt */ + case 355: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy424)); + nodesDestroyList((yypminor->yy530)); } break; - case 259: /* alter_db_option */ - case 282: /* alter_table_option */ + case 258: /* alter_db_option */ + case 281: /* alter_table_option */ { } break; - case 271: /* type_name */ + case 270: /* type_name */ { } break; - case 324: /* compare_op */ - case 325: /* in_op */ + case 323: /* compare_op */ + case 324: /* in_op */ { } break; - case 337: /* join_type */ + case 336: /* join_type */ { } break; - case 349: /* fill_mode */ + case 348: /* fill_mode */ { } break; - case 358: /* ordering_specification_opt */ + case 357: /* ordering_specification_opt */ { } break; - case 359: /* null_ordering_opt */ + case 358: /* null_ordering_opt */ { } @@ -2585,465 +2592,464 @@ 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[] = { - { 239, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 239, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 240, 0 }, /* (2) account_options ::= */ - { 240, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 240, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 240, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 240, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 240, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 240, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 240, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 240, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 240, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 241, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 241, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 243, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 243, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 243, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 243, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 243, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 243, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 243, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 243, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 243, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 243, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 239, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 239, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 239, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 239, -3 }, /* (27) cmd ::= DROP USER user_name */ - { 239, -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */ - { 239, -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */ - { 245, -1 }, /* (30) privileges ::= ALL */ - { 245, -1 }, /* (31) privileges ::= priv_type_list */ - { 247, -1 }, /* (32) priv_type_list ::= priv_type */ - { 247, -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - { 248, -1 }, /* (34) priv_type ::= READ */ - { 248, -1 }, /* (35) priv_type ::= WRITE */ - { 246, -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */ - { 246, -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */ - { 239, -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */ - { 239, -5 }, /* (39) cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ - { 239, -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */ - { 239, -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */ - { 239, -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 239, -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 239, -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */ - { 239, -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 250, -1 }, /* (46) dnode_endpoint ::= NK_STRING */ - { 251, -1 }, /* (47) dnode_host_name ::= NK_ID */ - { 251, -1 }, /* (48) dnode_host_name ::= NK_IPTOKEN */ - { 239, -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */ - { 239, -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 239, -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 239, -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 239, -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 239, -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 239, -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 239, -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 239, -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 239, -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 239, -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 239, -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */ - { 239, -2 }, /* (61) cmd ::= USE db_name */ - { 239, -4 }, /* (62) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 252, -3 }, /* (63) not_exists_opt ::= IF NOT EXISTS */ - { 252, 0 }, /* (64) not_exists_opt ::= */ - { 254, -2 }, /* (65) exists_opt ::= IF EXISTS */ - { 254, 0 }, /* (66) exists_opt ::= */ - { 253, 0 }, /* (67) db_options ::= */ - { 253, -3 }, /* (68) db_options ::= db_options BUFFER NK_INTEGER */ - { 253, -3 }, /* (69) db_options ::= db_options CACHELAST NK_INTEGER */ - { 253, -3 }, /* (70) db_options ::= db_options COMP NK_INTEGER */ - { 253, -3 }, /* (71) db_options ::= db_options DURATION NK_INTEGER */ - { 253, -3 }, /* (72) db_options ::= db_options DURATION NK_VARIABLE */ - { 253, -3 }, /* (73) db_options ::= db_options FSYNC NK_INTEGER */ - { 253, -3 }, /* (74) db_options ::= db_options MAXROWS NK_INTEGER */ - { 253, -3 }, /* (75) db_options ::= db_options MINROWS NK_INTEGER */ - { 253, -3 }, /* (76) db_options ::= db_options KEEP integer_list */ - { 253, -3 }, /* (77) db_options ::= db_options KEEP variable_list */ - { 253, -3 }, /* (78) db_options ::= db_options PAGES NK_INTEGER */ - { 253, -3 }, /* (79) db_options ::= db_options PAGESIZE NK_INTEGER */ - { 253, -3 }, /* (80) db_options ::= db_options PRECISION NK_STRING */ - { 253, -3 }, /* (81) db_options ::= db_options REPLICA NK_INTEGER */ - { 253, -3 }, /* (82) db_options ::= db_options STRICT NK_INTEGER */ - { 253, -3 }, /* (83) db_options ::= db_options WAL NK_INTEGER */ - { 253, -3 }, /* (84) db_options ::= db_options VGROUPS NK_INTEGER */ - { 253, -3 }, /* (85) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 253, -3 }, /* (86) db_options ::= db_options RETENTIONS retention_list */ - { 253, -3 }, /* (87) db_options ::= db_options SCHEMALESS NK_INTEGER */ - { 255, -1 }, /* (88) alter_db_options ::= alter_db_option */ - { 255, -2 }, /* (89) alter_db_options ::= alter_db_options alter_db_option */ - { 259, -2 }, /* (90) alter_db_option ::= BUFFER NK_INTEGER */ - { 259, -2 }, /* (91) alter_db_option ::= CACHELAST NK_INTEGER */ - { 259, -2 }, /* (92) alter_db_option ::= FSYNC NK_INTEGER */ - { 259, -2 }, /* (93) alter_db_option ::= KEEP integer_list */ - { 259, -2 }, /* (94) alter_db_option ::= KEEP variable_list */ - { 259, -2 }, /* (95) alter_db_option ::= PAGES NK_INTEGER */ - { 259, -2 }, /* (96) alter_db_option ::= REPLICA NK_INTEGER */ - { 259, -2 }, /* (97) alter_db_option ::= STRICT NK_INTEGER */ - { 259, -2 }, /* (98) alter_db_option ::= WAL NK_INTEGER */ - { 256, -1 }, /* (99) integer_list ::= NK_INTEGER */ - { 256, -3 }, /* (100) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 257, -1 }, /* (101) variable_list ::= NK_VARIABLE */ - { 257, -3 }, /* (102) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 258, -1 }, /* (103) retention_list ::= retention */ - { 258, -3 }, /* (104) retention_list ::= retention_list NK_COMMA retention */ - { 260, -3 }, /* (105) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 239, -9 }, /* (106) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 239, -3 }, /* (107) cmd ::= CREATE TABLE multi_create_clause */ - { 239, -9 }, /* (108) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 239, -3 }, /* (109) cmd ::= DROP TABLE multi_drop_clause */ - { 239, -4 }, /* (110) cmd ::= DROP STABLE exists_opt full_table_name */ - { 239, -3 }, /* (111) cmd ::= ALTER TABLE alter_table_clause */ - { 239, -3 }, /* (112) cmd ::= ALTER STABLE alter_table_clause */ - { 268, -2 }, /* (113) alter_table_clause ::= full_table_name alter_table_options */ - { 268, -5 }, /* (114) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 268, -4 }, /* (115) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 268, -5 }, /* (116) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 268, -5 }, /* (117) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 268, -5 }, /* (118) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 268, -4 }, /* (119) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 268, -5 }, /* (120) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 268, -5 }, /* (121) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 268, -6 }, /* (122) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - { 265, -1 }, /* (123) multi_create_clause ::= create_subtable_clause */ - { 265, -2 }, /* (124) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 273, -10 }, /* (125) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ - { 267, -1 }, /* (126) multi_drop_clause ::= drop_table_clause */ - { 267, -2 }, /* (127) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 276, -2 }, /* (128) drop_table_clause ::= exists_opt full_table_name */ - { 274, 0 }, /* (129) specific_tags_opt ::= */ - { 274, -3 }, /* (130) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 261, -1 }, /* (131) full_table_name ::= table_name */ - { 261, -3 }, /* (132) full_table_name ::= db_name NK_DOT table_name */ - { 262, -1 }, /* (133) column_def_list ::= column_def */ - { 262, -3 }, /* (134) column_def_list ::= column_def_list NK_COMMA column_def */ - { 279, -2 }, /* (135) column_def ::= column_name type_name */ - { 279, -4 }, /* (136) column_def ::= column_name type_name COMMENT NK_STRING */ - { 271, -1 }, /* (137) type_name ::= BOOL */ - { 271, -1 }, /* (138) type_name ::= TINYINT */ - { 271, -1 }, /* (139) type_name ::= SMALLINT */ - { 271, -1 }, /* (140) type_name ::= INT */ - { 271, -1 }, /* (141) type_name ::= INTEGER */ - { 271, -1 }, /* (142) type_name ::= BIGINT */ - { 271, -1 }, /* (143) type_name ::= FLOAT */ - { 271, -1 }, /* (144) type_name ::= DOUBLE */ - { 271, -4 }, /* (145) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 271, -1 }, /* (146) type_name ::= TIMESTAMP */ - { 271, -4 }, /* (147) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 271, -2 }, /* (148) type_name ::= TINYINT UNSIGNED */ - { 271, -2 }, /* (149) type_name ::= SMALLINT UNSIGNED */ - { 271, -2 }, /* (150) type_name ::= INT UNSIGNED */ - { 271, -2 }, /* (151) type_name ::= BIGINT UNSIGNED */ - { 271, -1 }, /* (152) type_name ::= JSON */ - { 271, -4 }, /* (153) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 271, -1 }, /* (154) type_name ::= MEDIUMBLOB */ - { 271, -1 }, /* (155) type_name ::= BLOB */ - { 271, -4 }, /* (156) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 271, -1 }, /* (157) type_name ::= DECIMAL */ - { 271, -4 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 271, -6 }, /* (159) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 263, 0 }, /* (160) tags_def_opt ::= */ - { 263, -1 }, /* (161) tags_def_opt ::= tags_def */ - { 266, -4 }, /* (162) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 264, 0 }, /* (163) table_options ::= */ - { 264, -3 }, /* (164) table_options ::= table_options COMMENT NK_STRING */ - { 264, -3 }, /* (165) table_options ::= table_options MAX_DELAY duration_list */ - { 264, -3 }, /* (166) table_options ::= table_options WATERMARK duration_list */ - { 264, -5 }, /* (167) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - { 264, -3 }, /* (168) table_options ::= table_options TTL NK_INTEGER */ - { 264, -5 }, /* (169) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 269, -1 }, /* (170) alter_table_options ::= alter_table_option */ - { 269, -2 }, /* (171) alter_table_options ::= alter_table_options alter_table_option */ - { 282, -2 }, /* (172) alter_table_option ::= COMMENT NK_STRING */ - { 282, -2 }, /* (173) alter_table_option ::= TTL NK_INTEGER */ - { 280, -1 }, /* (174) duration_list ::= duration_literal */ - { 280, -3 }, /* (175) duration_list ::= duration_list NK_COMMA duration_literal */ - { 281, -1 }, /* (176) rollup_func_list ::= rollup_func_name */ - { 281, -3 }, /* (177) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - { 284, -1 }, /* (178) rollup_func_name ::= function_name */ - { 284, -1 }, /* (179) rollup_func_name ::= FIRST */ - { 284, -1 }, /* (180) rollup_func_name ::= LAST */ - { 277, -1 }, /* (181) col_name_list ::= col_name */ - { 277, -3 }, /* (182) col_name_list ::= col_name_list NK_COMMA col_name */ - { 286, -1 }, /* (183) col_name ::= column_name */ - { 239, -2 }, /* (184) cmd ::= SHOW DNODES */ - { 239, -2 }, /* (185) cmd ::= SHOW USERS */ - { 239, -2 }, /* (186) cmd ::= SHOW DATABASES */ - { 239, -4 }, /* (187) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 239, -4 }, /* (188) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 239, -3 }, /* (189) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 239, -2 }, /* (190) cmd ::= SHOW MNODES */ - { 239, -2 }, /* (191) cmd ::= SHOW MODULES */ - { 239, -2 }, /* (192) cmd ::= SHOW QNODES */ - { 239, -2 }, /* (193) cmd ::= SHOW FUNCTIONS */ - { 239, -5 }, /* (194) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 239, -2 }, /* (195) cmd ::= SHOW STREAMS */ - { 239, -2 }, /* (196) cmd ::= SHOW ACCOUNTS */ - { 239, -2 }, /* (197) cmd ::= SHOW APPS */ - { 239, -2 }, /* (198) cmd ::= SHOW CONNECTIONS */ - { 239, -2 }, /* (199) cmd ::= SHOW LICENCE */ - { 239, -2 }, /* (200) cmd ::= SHOW GRANTS */ - { 239, -4 }, /* (201) cmd ::= SHOW CREATE DATABASE db_name */ - { 239, -4 }, /* (202) cmd ::= SHOW CREATE TABLE full_table_name */ - { 239, -4 }, /* (203) cmd ::= SHOW CREATE STABLE full_table_name */ - { 239, -2 }, /* (204) cmd ::= SHOW QUERIES */ - { 239, -2 }, /* (205) cmd ::= SHOW SCORES */ - { 239, -2 }, /* (206) cmd ::= SHOW TOPICS */ - { 239, -2 }, /* (207) cmd ::= SHOW VARIABLES */ - { 239, -2 }, /* (208) cmd ::= SHOW BNODES */ - { 239, -2 }, /* (209) cmd ::= SHOW SNODES */ - { 239, -2 }, /* (210) cmd ::= SHOW CLUSTER */ - { 239, -2 }, /* (211) cmd ::= SHOW TRANSACTIONS */ - { 287, 0 }, /* (212) db_name_cond_opt ::= */ - { 287, -2 }, /* (213) db_name_cond_opt ::= db_name NK_DOT */ - { 288, 0 }, /* (214) like_pattern_opt ::= */ - { 288, -2 }, /* (215) like_pattern_opt ::= LIKE NK_STRING */ - { 289, -1 }, /* (216) table_name_cond ::= table_name */ - { 290, 0 }, /* (217) from_db_opt ::= */ - { 290, -2 }, /* (218) from_db_opt ::= FROM db_name */ - { 239, -8 }, /* (219) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 239, -10 }, /* (220) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 239, -6 }, /* (221) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 292, 0 }, /* (222) index_options ::= */ - { 292, -9 }, /* (223) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 292, -11 }, /* (224) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 293, -1 }, /* (225) func_list ::= func */ - { 293, -3 }, /* (226) func_list ::= func_list NK_COMMA func */ - { 295, -4 }, /* (227) func ::= function_name NK_LP expression_list NK_RP */ - { 239, -6 }, /* (228) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 239, -7 }, /* (229) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ - { 239, -7 }, /* (230) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ - { 239, -4 }, /* (231) cmd ::= DROP TOPIC exists_opt topic_name */ - { 239, -7 }, /* (232) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - { 239, -2 }, /* (233) cmd ::= DESC full_table_name */ - { 239, -2 }, /* (234) cmd ::= DESCRIBE full_table_name */ - { 239, -3 }, /* (235) cmd ::= RESET QUERY CACHE */ - { 239, -4 }, /* (236) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 300, 0 }, /* (237) analyze_opt ::= */ - { 300, -1 }, /* (238) analyze_opt ::= ANALYZE */ - { 301, 0 }, /* (239) explain_options ::= */ - { 301, -3 }, /* (240) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 301, -3 }, /* (241) explain_options ::= explain_options RATIO NK_FLOAT */ - { 239, -6 }, /* (242) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 239, -10 }, /* (243) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 239, -4 }, /* (244) cmd ::= DROP FUNCTION exists_opt function_name */ - { 302, 0 }, /* (245) agg_func_opt ::= */ - { 302, -1 }, /* (246) agg_func_opt ::= AGGREGATE */ - { 303, 0 }, /* (247) bufsize_opt ::= */ - { 303, -2 }, /* (248) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 239, -8 }, /* (249) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ - { 239, -4 }, /* (250) cmd ::= DROP STREAM exists_opt stream_name */ - { 306, 0 }, /* (251) into_opt ::= */ - { 306, -2 }, /* (252) into_opt ::= INTO full_table_name */ - { 305, 0 }, /* (253) stream_options ::= */ - { 305, -3 }, /* (254) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 305, -3 }, /* (255) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 305, -4 }, /* (256) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - { 305, -3 }, /* (257) stream_options ::= stream_options WATERMARK duration_literal */ - { 239, -3 }, /* (258) cmd ::= KILL CONNECTION NK_INTEGER */ - { 239, -3 }, /* (259) cmd ::= KILL QUERY NK_STRING */ - { 239, -3 }, /* (260) cmd ::= KILL TRANSACTION NK_INTEGER */ - { 239, -2 }, /* (261) cmd ::= BALANCE VGROUP */ - { 239, -4 }, /* (262) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 239, -4 }, /* (263) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 239, -3 }, /* (264) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 307, -2 }, /* (265) dnode_list ::= DNODE NK_INTEGER */ - { 307, -3 }, /* (266) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 239, -3 }, /* (267) cmd ::= SYNCDB db_name REPLICA */ - { 239, -4 }, /* (268) cmd ::= DELETE FROM full_table_name where_clause_opt */ - { 239, -1 }, /* (269) cmd ::= query_expression */ - { 242, -1 }, /* (270) literal ::= NK_INTEGER */ - { 242, -1 }, /* (271) literal ::= NK_FLOAT */ - { 242, -1 }, /* (272) literal ::= NK_STRING */ - { 242, -1 }, /* (273) literal ::= NK_BOOL */ - { 242, -2 }, /* (274) literal ::= TIMESTAMP NK_STRING */ - { 242, -1 }, /* (275) literal ::= duration_literal */ - { 242, -1 }, /* (276) literal ::= NULL */ - { 242, -1 }, /* (277) literal ::= NK_QUESTION */ - { 283, -1 }, /* (278) duration_literal ::= NK_VARIABLE */ - { 309, -1 }, /* (279) signed ::= NK_INTEGER */ - { 309, -2 }, /* (280) signed ::= NK_PLUS NK_INTEGER */ - { 309, -2 }, /* (281) signed ::= NK_MINUS NK_INTEGER */ - { 309, -1 }, /* (282) signed ::= NK_FLOAT */ - { 309, -2 }, /* (283) signed ::= NK_PLUS NK_FLOAT */ - { 309, -2 }, /* (284) signed ::= NK_MINUS NK_FLOAT */ - { 272, -1 }, /* (285) signed_literal ::= signed */ - { 272, -1 }, /* (286) signed_literal ::= NK_STRING */ - { 272, -1 }, /* (287) signed_literal ::= NK_BOOL */ - { 272, -2 }, /* (288) signed_literal ::= TIMESTAMP NK_STRING */ - { 272, -1 }, /* (289) signed_literal ::= duration_literal */ - { 272, -1 }, /* (290) signed_literal ::= NULL */ - { 272, -1 }, /* (291) signed_literal ::= literal_func */ - { 275, -1 }, /* (292) literal_list ::= signed_literal */ - { 275, -3 }, /* (293) literal_list ::= literal_list NK_COMMA signed_literal */ - { 249, -1 }, /* (294) db_name ::= NK_ID */ - { 278, -1 }, /* (295) table_name ::= NK_ID */ - { 270, -1 }, /* (296) column_name ::= NK_ID */ - { 285, -1 }, /* (297) function_name ::= NK_ID */ - { 311, -1 }, /* (298) table_alias ::= NK_ID */ - { 312, -1 }, /* (299) column_alias ::= NK_ID */ - { 244, -1 }, /* (300) user_name ::= NK_ID */ - { 291, -1 }, /* (301) index_name ::= NK_ID */ - { 297, -1 }, /* (302) topic_name ::= NK_ID */ - { 304, -1 }, /* (303) stream_name ::= NK_ID */ - { 299, -1 }, /* (304) cgroup_name ::= NK_ID */ - { 313, -1 }, /* (305) expression ::= literal */ - { 313, -1 }, /* (306) expression ::= pseudo_column */ - { 313, -1 }, /* (307) expression ::= column_reference */ - { 313, -1 }, /* (308) expression ::= function_expression */ - { 313, -1 }, /* (309) expression ::= subquery */ - { 313, -3 }, /* (310) expression ::= NK_LP expression NK_RP */ - { 313, -2 }, /* (311) expression ::= NK_PLUS expression */ - { 313, -2 }, /* (312) expression ::= NK_MINUS expression */ - { 313, -3 }, /* (313) expression ::= expression NK_PLUS expression */ - { 313, -3 }, /* (314) expression ::= expression NK_MINUS expression */ - { 313, -3 }, /* (315) expression ::= expression NK_STAR expression */ - { 313, -3 }, /* (316) expression ::= expression NK_SLASH expression */ - { 313, -3 }, /* (317) expression ::= expression NK_REM expression */ - { 313, -3 }, /* (318) expression ::= column_reference NK_ARROW NK_STRING */ - { 296, -1 }, /* (319) expression_list ::= expression */ - { 296, -3 }, /* (320) expression_list ::= expression_list NK_COMMA expression */ - { 315, -1 }, /* (321) column_reference ::= column_name */ - { 315, -3 }, /* (322) column_reference ::= table_name NK_DOT column_name */ - { 314, -1 }, /* (323) pseudo_column ::= ROWTS */ - { 314, -1 }, /* (324) pseudo_column ::= TBNAME */ - { 314, -3 }, /* (325) pseudo_column ::= table_name NK_DOT TBNAME */ - { 314, -1 }, /* (326) pseudo_column ::= QSTARTTS */ - { 314, -1 }, /* (327) pseudo_column ::= QENDTS */ - { 314, -1 }, /* (328) pseudo_column ::= WSTARTTS */ - { 314, -1 }, /* (329) pseudo_column ::= WENDTS */ - { 314, -1 }, /* (330) pseudo_column ::= WDURATION */ - { 316, -4 }, /* (331) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 316, -4 }, /* (332) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 316, -6 }, /* (333) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 316, -1 }, /* (334) function_expression ::= literal_func */ - { 310, -3 }, /* (335) literal_func ::= noarg_func NK_LP NK_RP */ - { 310, -1 }, /* (336) literal_func ::= NOW */ - { 320, -1 }, /* (337) noarg_func ::= NOW */ - { 320, -1 }, /* (338) noarg_func ::= TODAY */ - { 320, -1 }, /* (339) noarg_func ::= TIMEZONE */ - { 318, -1 }, /* (340) star_func ::= COUNT */ - { 318, -1 }, /* (341) star_func ::= FIRST */ - { 318, -1 }, /* (342) star_func ::= LAST */ - { 318, -1 }, /* (343) star_func ::= LAST_ROW */ - { 319, -1 }, /* (344) star_func_para_list ::= NK_STAR */ - { 319, -1 }, /* (345) star_func_para_list ::= other_para_list */ - { 321, -1 }, /* (346) other_para_list ::= star_func_para */ - { 321, -3 }, /* (347) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 322, -1 }, /* (348) star_func_para ::= expression */ - { 322, -3 }, /* (349) star_func_para ::= table_name NK_DOT NK_STAR */ - { 323, -3 }, /* (350) predicate ::= expression compare_op expression */ - { 323, -5 }, /* (351) predicate ::= expression BETWEEN expression AND expression */ - { 323, -6 }, /* (352) predicate ::= expression NOT BETWEEN expression AND expression */ - { 323, -3 }, /* (353) predicate ::= expression IS NULL */ - { 323, -4 }, /* (354) predicate ::= expression IS NOT NULL */ - { 323, -3 }, /* (355) predicate ::= expression in_op in_predicate_value */ - { 324, -1 }, /* (356) compare_op ::= NK_LT */ - { 324, -1 }, /* (357) compare_op ::= NK_GT */ - { 324, -1 }, /* (358) compare_op ::= NK_LE */ - { 324, -1 }, /* (359) compare_op ::= NK_GE */ - { 324, -1 }, /* (360) compare_op ::= NK_NE */ - { 324, -1 }, /* (361) compare_op ::= NK_EQ */ - { 324, -1 }, /* (362) compare_op ::= LIKE */ - { 324, -2 }, /* (363) compare_op ::= NOT LIKE */ - { 324, -1 }, /* (364) compare_op ::= MATCH */ - { 324, -1 }, /* (365) compare_op ::= NMATCH */ - { 324, -1 }, /* (366) compare_op ::= CONTAINS */ - { 325, -1 }, /* (367) in_op ::= IN */ - { 325, -2 }, /* (368) in_op ::= NOT IN */ - { 326, -3 }, /* (369) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 327, -1 }, /* (370) boolean_value_expression ::= boolean_primary */ - { 327, -2 }, /* (371) boolean_value_expression ::= NOT boolean_primary */ - { 327, -3 }, /* (372) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 327, -3 }, /* (373) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 328, -1 }, /* (374) boolean_primary ::= predicate */ - { 328, -3 }, /* (375) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 329, -1 }, /* (376) common_expression ::= expression */ - { 329, -1 }, /* (377) common_expression ::= boolean_value_expression */ - { 330, -2 }, /* (378) from_clause ::= FROM table_reference_list */ - { 331, -1 }, /* (379) table_reference_list ::= table_reference */ - { 331, -3 }, /* (380) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 332, -1 }, /* (381) table_reference ::= table_primary */ - { 332, -1 }, /* (382) table_reference ::= joined_table */ - { 333, -2 }, /* (383) table_primary ::= table_name alias_opt */ - { 333, -4 }, /* (384) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 333, -2 }, /* (385) table_primary ::= subquery alias_opt */ - { 333, -1 }, /* (386) table_primary ::= parenthesized_joined_table */ - { 335, 0 }, /* (387) alias_opt ::= */ - { 335, -1 }, /* (388) alias_opt ::= table_alias */ - { 335, -2 }, /* (389) alias_opt ::= AS table_alias */ - { 336, -3 }, /* (390) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 336, -3 }, /* (391) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 334, -6 }, /* (392) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 337, 0 }, /* (393) join_type ::= */ - { 337, -1 }, /* (394) join_type ::= INNER */ - { 339, -9 }, /* (395) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 340, 0 }, /* (396) set_quantifier_opt ::= */ - { 340, -1 }, /* (397) set_quantifier_opt ::= DISTINCT */ - { 340, -1 }, /* (398) set_quantifier_opt ::= ALL */ - { 341, -1 }, /* (399) select_list ::= NK_STAR */ - { 341, -1 }, /* (400) select_list ::= select_sublist */ - { 346, -1 }, /* (401) select_sublist ::= select_item */ - { 346, -3 }, /* (402) select_sublist ::= select_sublist NK_COMMA select_item */ - { 347, -1 }, /* (403) select_item ::= common_expression */ - { 347, -2 }, /* (404) select_item ::= common_expression column_alias */ - { 347, -3 }, /* (405) select_item ::= common_expression AS column_alias */ - { 347, -3 }, /* (406) select_item ::= table_name NK_DOT NK_STAR */ - { 308, 0 }, /* (407) where_clause_opt ::= */ - { 308, -2 }, /* (408) where_clause_opt ::= WHERE search_condition */ - { 342, 0 }, /* (409) partition_by_clause_opt ::= */ - { 342, -3 }, /* (410) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 343, 0 }, /* (411) twindow_clause_opt ::= */ - { 343, -6 }, /* (412) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 343, -4 }, /* (413) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 343, -6 }, /* (414) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 343, -8 }, /* (415) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 294, 0 }, /* (416) sliding_opt ::= */ - { 294, -4 }, /* (417) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 348, 0 }, /* (418) fill_opt ::= */ - { 348, -4 }, /* (419) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 348, -6 }, /* (420) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 349, -1 }, /* (421) fill_mode ::= NONE */ - { 349, -1 }, /* (422) fill_mode ::= PREV */ - { 349, -1 }, /* (423) fill_mode ::= NULL */ - { 349, -1 }, /* (424) fill_mode ::= LINEAR */ - { 349, -1 }, /* (425) fill_mode ::= NEXT */ - { 344, 0 }, /* (426) group_by_clause_opt ::= */ - { 344, -3 }, /* (427) group_by_clause_opt ::= GROUP BY group_by_list */ - { 350, -1 }, /* (428) group_by_list ::= expression */ - { 350, -3 }, /* (429) group_by_list ::= group_by_list NK_COMMA expression */ - { 345, 0 }, /* (430) having_clause_opt ::= */ - { 345, -2 }, /* (431) having_clause_opt ::= HAVING search_condition */ - { 298, -4 }, /* (432) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 351, -1 }, /* (433) query_expression_body ::= query_primary */ - { 351, -4 }, /* (434) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 351, -3 }, /* (435) query_expression_body ::= query_expression_body UNION query_expression_body */ - { 355, -1 }, /* (436) query_primary ::= query_specification */ - { 355, -6 }, /* (437) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ - { 352, 0 }, /* (438) order_by_clause_opt ::= */ - { 352, -3 }, /* (439) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 353, 0 }, /* (440) slimit_clause_opt ::= */ - { 353, -2 }, /* (441) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 353, -4 }, /* (442) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 353, -4 }, /* (443) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 354, 0 }, /* (444) limit_clause_opt ::= */ - { 354, -2 }, /* (445) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 354, -4 }, /* (446) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 354, -4 }, /* (447) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 317, -3 }, /* (448) subquery ::= NK_LP query_expression NK_RP */ - { 338, -1 }, /* (449) search_condition ::= common_expression */ - { 356, -1 }, /* (450) sort_specification_list ::= sort_specification */ - { 356, -3 }, /* (451) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 357, -3 }, /* (452) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 358, 0 }, /* (453) ordering_specification_opt ::= */ - { 358, -1 }, /* (454) ordering_specification_opt ::= ASC */ - { 358, -1 }, /* (455) ordering_specification_opt ::= DESC */ - { 359, 0 }, /* (456) null_ordering_opt ::= */ - { 359, -2 }, /* (457) null_ordering_opt ::= NULLS FIRST */ - { 359, -2 }, /* (458) 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_STRING */ + { 238, -3 }, /* (48) cmd ::= ALTER LOCAL NK_STRING */ + { 238, -4 }, /* (49) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 238, -5 }, /* (50) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (51) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (52) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (53) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (54) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (55) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (56) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (57) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 238, -5 }, /* (58) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 238, -4 }, /* (59) cmd ::= DROP DATABASE exists_opt db_name */ + { 238, -2 }, /* (60) cmd ::= USE db_name */ + { 238, -4 }, /* (61) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 251, -3 }, /* (62) not_exists_opt ::= IF NOT EXISTS */ + { 251, 0 }, /* (63) not_exists_opt ::= */ + { 253, -2 }, /* (64) exists_opt ::= IF EXISTS */ + { 253, 0 }, /* (65) exists_opt ::= */ + { 252, 0 }, /* (66) db_options ::= */ + { 252, -3 }, /* (67) db_options ::= db_options BUFFER NK_INTEGER */ + { 252, -3 }, /* (68) db_options ::= db_options CACHELAST NK_INTEGER */ + { 252, -3 }, /* (69) db_options ::= db_options COMP NK_INTEGER */ + { 252, -3 }, /* (70) db_options ::= db_options DURATION NK_INTEGER */ + { 252, -3 }, /* (71) db_options ::= db_options DURATION NK_VARIABLE */ + { 252, -3 }, /* (72) db_options ::= db_options FSYNC NK_INTEGER */ + { 252, -3 }, /* (73) db_options ::= db_options MAXROWS NK_INTEGER */ + { 252, -3 }, /* (74) db_options ::= db_options MINROWS NK_INTEGER */ + { 252, -3 }, /* (75) db_options ::= db_options KEEP integer_list */ + { 252, -3 }, /* (76) db_options ::= db_options KEEP variable_list */ + { 252, -3 }, /* (77) db_options ::= db_options PAGES NK_INTEGER */ + { 252, -3 }, /* (78) db_options ::= db_options PAGESIZE NK_INTEGER */ + { 252, -3 }, /* (79) db_options ::= db_options PRECISION NK_STRING */ + { 252, -3 }, /* (80) db_options ::= db_options REPLICA NK_INTEGER */ + { 252, -3 }, /* (81) db_options ::= db_options STRICT NK_INTEGER */ + { 252, -3 }, /* (82) db_options ::= db_options WAL NK_INTEGER */ + { 252, -3 }, /* (83) db_options ::= db_options VGROUPS NK_INTEGER */ + { 252, -3 }, /* (84) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 252, -3 }, /* (85) db_options ::= db_options RETENTIONS retention_list */ + { 252, -3 }, /* (86) db_options ::= db_options SCHEMALESS NK_INTEGER */ + { 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 signed_literal */ + { 264, -1 }, /* (122) multi_create_clause ::= create_subtable_clause */ + { 264, -2 }, /* (123) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 272, -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 */ + { 275, -2 }, /* (127) drop_table_clause ::= exists_opt full_table_name */ + { 273, 0 }, /* (128) specific_tags_opt ::= */ + { 273, -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 */ + { 278, -2 }, /* (134) column_def ::= column_name type_name */ + { 278, -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 MAX_DELAY duration_list */ + { 263, -3 }, /* (165) table_options ::= table_options WATERMARK duration_list */ + { 263, -5 }, /* (166) table_options ::= table_options ROLLUP NK_LP rollup_func_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 */ + { 281, -2 }, /* (171) alter_table_option ::= COMMENT NK_STRING */ + { 281, -2 }, /* (172) alter_table_option ::= TTL NK_INTEGER */ + { 279, -1 }, /* (173) duration_list ::= duration_literal */ + { 279, -3 }, /* (174) duration_list ::= duration_list NK_COMMA duration_literal */ + { 280, -1 }, /* (175) rollup_func_list ::= rollup_func_name */ + { 280, -3 }, /* (176) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + { 283, -1 }, /* (177) rollup_func_name ::= function_name */ + { 283, -1 }, /* (178) rollup_func_name ::= FIRST */ + { 283, -1 }, /* (179) rollup_func_name ::= LAST */ + { 276, -1 }, /* (180) col_name_list ::= col_name */ + { 276, -3 }, /* (181) col_name_list ::= col_name_list NK_COMMA col_name */ + { 285, -1 }, /* (182) col_name ::= column_name */ + { 238, -2 }, /* (183) cmd ::= SHOW DNODES */ + { 238, -2 }, /* (184) cmd ::= SHOW USERS */ + { 238, -2 }, /* (185) cmd ::= SHOW DATABASES */ + { 238, -4 }, /* (186) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 238, -4 }, /* (187) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 238, -3 }, /* (188) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 238, -2 }, /* (189) cmd ::= SHOW MNODES */ + { 238, -2 }, /* (190) cmd ::= SHOW MODULES */ + { 238, -2 }, /* (191) cmd ::= SHOW QNODES */ + { 238, -2 }, /* (192) cmd ::= SHOW FUNCTIONS */ + { 238, -5 }, /* (193) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 238, -2 }, /* (194) cmd ::= SHOW STREAMS */ + { 238, -2 }, /* (195) cmd ::= SHOW ACCOUNTS */ + { 238, -2 }, /* (196) cmd ::= SHOW APPS */ + { 238, -2 }, /* (197) cmd ::= SHOW CONNECTIONS */ + { 238, -2 }, /* (198) cmd ::= SHOW LICENCE */ + { 238, -2 }, /* (199) cmd ::= SHOW GRANTS */ + { 238, -4 }, /* (200) cmd ::= SHOW CREATE DATABASE db_name */ + { 238, -4 }, /* (201) cmd ::= SHOW CREATE TABLE full_table_name */ + { 238, -4 }, /* (202) cmd ::= SHOW CREATE STABLE full_table_name */ + { 238, -2 }, /* (203) cmd ::= SHOW QUERIES */ + { 238, -2 }, /* (204) cmd ::= SHOW SCORES */ + { 238, -2 }, /* (205) cmd ::= SHOW TOPICS */ + { 238, -2 }, /* (206) cmd ::= SHOW VARIABLES */ + { 238, -2 }, /* (207) cmd ::= SHOW BNODES */ + { 238, -2 }, /* (208) cmd ::= SHOW SNODES */ + { 238, -2 }, /* (209) cmd ::= SHOW CLUSTER */ + { 238, -2 }, /* (210) cmd ::= SHOW TRANSACTIONS */ + { 286, 0 }, /* (211) db_name_cond_opt ::= */ + { 286, -2 }, /* (212) db_name_cond_opt ::= db_name NK_DOT */ + { 287, 0 }, /* (213) like_pattern_opt ::= */ + { 287, -2 }, /* (214) like_pattern_opt ::= LIKE NK_STRING */ + { 288, -1 }, /* (215) table_name_cond ::= table_name */ + { 289, 0 }, /* (216) from_db_opt ::= */ + { 289, -2 }, /* (217) from_db_opt ::= FROM db_name */ + { 238, -8 }, /* (218) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 238, -10 }, /* (219) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 238, -6 }, /* (220) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 291, 0 }, /* (221) index_options ::= */ + { 291, -9 }, /* (222) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 291, -11 }, /* (223) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 292, -1 }, /* (224) func_list ::= func */ + { 292, -3 }, /* (225) func_list ::= func_list NK_COMMA func */ + { 294, -4 }, /* (226) func ::= function_name NK_LP expression_list NK_RP */ + { 238, -6 }, /* (227) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 238, -7 }, /* (228) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + { 238, -7 }, /* (229) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + { 238, -4 }, /* (230) cmd ::= DROP TOPIC exists_opt topic_name */ + { 238, -7 }, /* (231) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + { 238, -2 }, /* (232) cmd ::= DESC full_table_name */ + { 238, -2 }, /* (233) cmd ::= DESCRIBE full_table_name */ + { 238, -3 }, /* (234) cmd ::= RESET QUERY CACHE */ + { 238, -4 }, /* (235) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 299, 0 }, /* (236) analyze_opt ::= */ + { 299, -1 }, /* (237) analyze_opt ::= ANALYZE */ + { 300, 0 }, /* (238) explain_options ::= */ + { 300, -3 }, /* (239) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 300, -3 }, /* (240) explain_options ::= explain_options RATIO NK_FLOAT */ + { 238, -6 }, /* (241) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 238, -10 }, /* (242) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 238, -4 }, /* (243) cmd ::= DROP FUNCTION exists_opt function_name */ + { 301, 0 }, /* (244) agg_func_opt ::= */ + { 301, -1 }, /* (245) agg_func_opt ::= AGGREGATE */ + { 302, 0 }, /* (246) bufsize_opt ::= */ + { 302, -2 }, /* (247) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 238, -8 }, /* (248) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + { 238, -4 }, /* (249) cmd ::= DROP STREAM exists_opt stream_name */ + { 305, 0 }, /* (250) into_opt ::= */ + { 305, -2 }, /* (251) into_opt ::= INTO full_table_name */ + { 304, 0 }, /* (252) stream_options ::= */ + { 304, -3 }, /* (253) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 304, -3 }, /* (254) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 304, -4 }, /* (255) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + { 304, -3 }, /* (256) stream_options ::= stream_options WATERMARK duration_literal */ + { 238, -3 }, /* (257) cmd ::= KILL CONNECTION NK_INTEGER */ + { 238, -3 }, /* (258) cmd ::= KILL QUERY NK_STRING */ + { 238, -3 }, /* (259) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 238, -2 }, /* (260) cmd ::= BALANCE VGROUP */ + { 238, -4 }, /* (261) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 238, -4 }, /* (262) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 238, -3 }, /* (263) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 306, -2 }, /* (264) dnode_list ::= DNODE NK_INTEGER */ + { 306, -3 }, /* (265) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 238, -3 }, /* (266) cmd ::= SYNCDB db_name REPLICA */ + { 238, -4 }, /* (267) cmd ::= DELETE FROM full_table_name where_clause_opt */ + { 238, -1 }, /* (268) cmd ::= query_expression */ + { 241, -1 }, /* (269) literal ::= NK_INTEGER */ + { 241, -1 }, /* (270) literal ::= NK_FLOAT */ + { 241, -1 }, /* (271) literal ::= NK_STRING */ + { 241, -1 }, /* (272) literal ::= NK_BOOL */ + { 241, -2 }, /* (273) literal ::= TIMESTAMP NK_STRING */ + { 241, -1 }, /* (274) literal ::= duration_literal */ + { 241, -1 }, /* (275) literal ::= NULL */ + { 241, -1 }, /* (276) literal ::= NK_QUESTION */ + { 282, -1 }, /* (277) duration_literal ::= NK_VARIABLE */ + { 308, -1 }, /* (278) signed ::= NK_INTEGER */ + { 308, -2 }, /* (279) signed ::= NK_PLUS NK_INTEGER */ + { 308, -2 }, /* (280) signed ::= NK_MINUS NK_INTEGER */ + { 308, -1 }, /* (281) signed ::= NK_FLOAT */ + { 308, -2 }, /* (282) signed ::= NK_PLUS NK_FLOAT */ + { 308, -2 }, /* (283) signed ::= NK_MINUS NK_FLOAT */ + { 271, -1 }, /* (284) signed_literal ::= signed */ + { 271, -1 }, /* (285) signed_literal ::= NK_STRING */ + { 271, -1 }, /* (286) signed_literal ::= NK_BOOL */ + { 271, -2 }, /* (287) signed_literal ::= TIMESTAMP NK_STRING */ + { 271, -1 }, /* (288) signed_literal ::= duration_literal */ + { 271, -1 }, /* (289) signed_literal ::= NULL */ + { 271, -1 }, /* (290) signed_literal ::= literal_func */ + { 274, -1 }, /* (291) literal_list ::= signed_literal */ + { 274, -3 }, /* (292) literal_list ::= literal_list NK_COMMA signed_literal */ + { 248, -1 }, /* (293) db_name ::= NK_ID */ + { 277, -1 }, /* (294) table_name ::= NK_ID */ + { 269, -1 }, /* (295) column_name ::= NK_ID */ + { 284, -1 }, /* (296) function_name ::= NK_ID */ + { 310, -1 }, /* (297) table_alias ::= NK_ID */ + { 311, -1 }, /* (298) column_alias ::= NK_ID */ + { 243, -1 }, /* (299) user_name ::= NK_ID */ + { 290, -1 }, /* (300) index_name ::= NK_ID */ + { 296, -1 }, /* (301) topic_name ::= NK_ID */ + { 303, -1 }, /* (302) stream_name ::= NK_ID */ + { 298, -1 }, /* (303) cgroup_name ::= NK_ID */ + { 312, -1 }, /* (304) expression ::= literal */ + { 312, -1 }, /* (305) expression ::= pseudo_column */ + { 312, -1 }, /* (306) expression ::= column_reference */ + { 312, -1 }, /* (307) expression ::= function_expression */ + { 312, -1 }, /* (308) expression ::= subquery */ + { 312, -3 }, /* (309) expression ::= NK_LP expression NK_RP */ + { 312, -2 }, /* (310) expression ::= NK_PLUS expression */ + { 312, -2 }, /* (311) expression ::= NK_MINUS expression */ + { 312, -3 }, /* (312) expression ::= expression NK_PLUS expression */ + { 312, -3 }, /* (313) expression ::= expression NK_MINUS expression */ + { 312, -3 }, /* (314) expression ::= expression NK_STAR expression */ + { 312, -3 }, /* (315) expression ::= expression NK_SLASH expression */ + { 312, -3 }, /* (316) expression ::= expression NK_REM expression */ + { 312, -3 }, /* (317) expression ::= column_reference NK_ARROW NK_STRING */ + { 295, -1 }, /* (318) expression_list ::= expression */ + { 295, -3 }, /* (319) expression_list ::= expression_list NK_COMMA expression */ + { 314, -1 }, /* (320) column_reference ::= column_name */ + { 314, -3 }, /* (321) column_reference ::= table_name NK_DOT column_name */ + { 313, -1 }, /* (322) pseudo_column ::= ROWTS */ + { 313, -1 }, /* (323) pseudo_column ::= TBNAME */ + { 313, -3 }, /* (324) pseudo_column ::= table_name NK_DOT TBNAME */ + { 313, -1 }, /* (325) pseudo_column ::= QSTARTTS */ + { 313, -1 }, /* (326) pseudo_column ::= QENDTS */ + { 313, -1 }, /* (327) pseudo_column ::= WSTARTTS */ + { 313, -1 }, /* (328) pseudo_column ::= WENDTS */ + { 313, -1 }, /* (329) pseudo_column ::= WDURATION */ + { 315, -4 }, /* (330) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 315, -4 }, /* (331) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 315, -6 }, /* (332) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 315, -1 }, /* (333) function_expression ::= literal_func */ + { 309, -3 }, /* (334) literal_func ::= noarg_func NK_LP NK_RP */ + { 309, -1 }, /* (335) literal_func ::= NOW */ + { 319, -1 }, /* (336) noarg_func ::= NOW */ + { 319, -1 }, /* (337) noarg_func ::= TODAY */ + { 319, -1 }, /* (338) noarg_func ::= TIMEZONE */ + { 317, -1 }, /* (339) star_func ::= COUNT */ + { 317, -1 }, /* (340) star_func ::= FIRST */ + { 317, -1 }, /* (341) star_func ::= LAST */ + { 317, -1 }, /* (342) star_func ::= LAST_ROW */ + { 318, -1 }, /* (343) star_func_para_list ::= NK_STAR */ + { 318, -1 }, /* (344) star_func_para_list ::= other_para_list */ + { 320, -1 }, /* (345) other_para_list ::= star_func_para */ + { 320, -3 }, /* (346) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 321, -1 }, /* (347) star_func_para ::= expression */ + { 321, -3 }, /* (348) star_func_para ::= table_name NK_DOT NK_STAR */ + { 322, -3 }, /* (349) predicate ::= expression compare_op expression */ + { 322, -5 }, /* (350) predicate ::= expression BETWEEN expression AND expression */ + { 322, -6 }, /* (351) predicate ::= expression NOT BETWEEN expression AND expression */ + { 322, -3 }, /* (352) predicate ::= expression IS NULL */ + { 322, -4 }, /* (353) predicate ::= expression IS NOT NULL */ + { 322, -3 }, /* (354) predicate ::= expression in_op in_predicate_value */ + { 323, -1 }, /* (355) compare_op ::= NK_LT */ + { 323, -1 }, /* (356) compare_op ::= NK_GT */ + { 323, -1 }, /* (357) compare_op ::= NK_LE */ + { 323, -1 }, /* (358) compare_op ::= NK_GE */ + { 323, -1 }, /* (359) compare_op ::= NK_NE */ + { 323, -1 }, /* (360) compare_op ::= NK_EQ */ + { 323, -1 }, /* (361) compare_op ::= LIKE */ + { 323, -2 }, /* (362) compare_op ::= NOT LIKE */ + { 323, -1 }, /* (363) compare_op ::= MATCH */ + { 323, -1 }, /* (364) compare_op ::= NMATCH */ + { 323, -1 }, /* (365) compare_op ::= CONTAINS */ + { 324, -1 }, /* (366) in_op ::= IN */ + { 324, -2 }, /* (367) in_op ::= NOT IN */ + { 325, -3 }, /* (368) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 326, -1 }, /* (369) boolean_value_expression ::= boolean_primary */ + { 326, -2 }, /* (370) boolean_value_expression ::= NOT boolean_primary */ + { 326, -3 }, /* (371) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 326, -3 }, /* (372) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 327, -1 }, /* (373) boolean_primary ::= predicate */ + { 327, -3 }, /* (374) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 328, -1 }, /* (375) common_expression ::= expression */ + { 328, -1 }, /* (376) common_expression ::= boolean_value_expression */ + { 329, -2 }, /* (377) from_clause ::= FROM table_reference_list */ + { 330, -1 }, /* (378) table_reference_list ::= table_reference */ + { 330, -3 }, /* (379) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 331, -1 }, /* (380) table_reference ::= table_primary */ + { 331, -1 }, /* (381) table_reference ::= joined_table */ + { 332, -2 }, /* (382) table_primary ::= table_name alias_opt */ + { 332, -4 }, /* (383) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 332, -2 }, /* (384) table_primary ::= subquery alias_opt */ + { 332, -1 }, /* (385) table_primary ::= parenthesized_joined_table */ + { 334, 0 }, /* (386) alias_opt ::= */ + { 334, -1 }, /* (387) alias_opt ::= table_alias */ + { 334, -2 }, /* (388) alias_opt ::= AS table_alias */ + { 335, -3 }, /* (389) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 335, -3 }, /* (390) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 333, -6 }, /* (391) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 336, 0 }, /* (392) join_type ::= */ + { 336, -1 }, /* (393) join_type ::= INNER */ + { 338, -9 }, /* (394) 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 */ + { 339, 0 }, /* (395) set_quantifier_opt ::= */ + { 339, -1 }, /* (396) set_quantifier_opt ::= DISTINCT */ + { 339, -1 }, /* (397) set_quantifier_opt ::= ALL */ + { 340, -1 }, /* (398) select_list ::= NK_STAR */ + { 340, -1 }, /* (399) select_list ::= select_sublist */ + { 345, -1 }, /* (400) select_sublist ::= select_item */ + { 345, -3 }, /* (401) select_sublist ::= select_sublist NK_COMMA select_item */ + { 346, -1 }, /* (402) select_item ::= common_expression */ + { 346, -2 }, /* (403) select_item ::= common_expression column_alias */ + { 346, -3 }, /* (404) select_item ::= common_expression AS column_alias */ + { 346, -3 }, /* (405) select_item ::= table_name NK_DOT NK_STAR */ + { 307, 0 }, /* (406) where_clause_opt ::= */ + { 307, -2 }, /* (407) where_clause_opt ::= WHERE search_condition */ + { 341, 0 }, /* (408) partition_by_clause_opt ::= */ + { 341, -3 }, /* (409) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 342, 0 }, /* (410) twindow_clause_opt ::= */ + { 342, -6 }, /* (411) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 342, -4 }, /* (412) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 342, -6 }, /* (413) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 342, -8 }, /* (414) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 293, 0 }, /* (415) sliding_opt ::= */ + { 293, -4 }, /* (416) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 347, 0 }, /* (417) fill_opt ::= */ + { 347, -4 }, /* (418) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 347, -6 }, /* (419) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 348, -1 }, /* (420) fill_mode ::= NONE */ + { 348, -1 }, /* (421) fill_mode ::= PREV */ + { 348, -1 }, /* (422) fill_mode ::= NULL */ + { 348, -1 }, /* (423) fill_mode ::= LINEAR */ + { 348, -1 }, /* (424) fill_mode ::= NEXT */ + { 343, 0 }, /* (425) group_by_clause_opt ::= */ + { 343, -3 }, /* (426) group_by_clause_opt ::= GROUP BY group_by_list */ + { 349, -1 }, /* (427) group_by_list ::= expression */ + { 349, -3 }, /* (428) group_by_list ::= group_by_list NK_COMMA expression */ + { 344, 0 }, /* (429) having_clause_opt ::= */ + { 344, -2 }, /* (430) having_clause_opt ::= HAVING search_condition */ + { 297, -4 }, /* (431) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 350, -1 }, /* (432) query_expression_body ::= query_primary */ + { 350, -4 }, /* (433) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 350, -3 }, /* (434) query_expression_body ::= query_expression_body UNION query_expression_body */ + { 354, -1 }, /* (435) query_primary ::= query_specification */ + { 354, -6 }, /* (436) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + { 351, 0 }, /* (437) order_by_clause_opt ::= */ + { 351, -3 }, /* (438) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 352, 0 }, /* (439) slimit_clause_opt ::= */ + { 352, -2 }, /* (440) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 352, -4 }, /* (441) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 352, -4 }, /* (442) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 353, 0 }, /* (443) limit_clause_opt ::= */ + { 353, -2 }, /* (444) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 353, -4 }, /* (445) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 353, -4 }, /* (446) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 316, -3 }, /* (447) subquery ::= NK_LP query_expression NK_RP */ + { 337, -1 }, /* (448) search_condition ::= common_expression */ + { 355, -1 }, /* (449) sort_specification_list ::= sort_specification */ + { 355, -3 }, /* (450) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 356, -3 }, /* (451) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 357, 0 }, /* (452) ordering_specification_opt ::= */ + { 357, -1 }, /* (453) ordering_specification_opt ::= ASC */ + { 357, -1 }, /* (454) ordering_specification_opt ::= DESC */ + { 358, 0 }, /* (455) null_ordering_opt ::= */ + { 358, -2 }, /* (456) null_ordering_opt ::= NULLS FIRST */ + { 358, -2 }, /* (457) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3132,11 +3138,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,240,&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,241,&yymsp[0].minor); + yy_destructor(yypParser,240,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3150,20 +3156,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,240,&yymsp[-2].minor); +{ yy_destructor(yypParser,239,&yymsp[-2].minor); { } - yy_destructor(yypParser,242,&yymsp[0].minor); + yy_destructor(yypParser,241,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,243,&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,241,&yymsp[-1].minor); +{ yy_destructor(yypParser,240,&yymsp[-1].minor); { } - yy_destructor(yypParser,243,&yymsp[0].minor); + yy_destructor(yypParser,242,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3177,63 +3183,63 @@ static YYACTIONTYPE yy_reduce( case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } - yy_destructor(yypParser,242,&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.yy209, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy209, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy421, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 26: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy209, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy421, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy421); } break; case 28: /* cmd ::= GRANT privileges ON priv_level TO user_name */ -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy189, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy669, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421); } break; case 29: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy189, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy669, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421); } break; case 30: /* privileges ::= ALL */ -{ yymsp[0].minor.yy189 = PRIVILEGE_TYPE_ALL; } +{ yymsp[0].minor.yy669 = PRIVILEGE_TYPE_ALL; } break; case 31: /* privileges ::= priv_type_list */ case 32: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==32); -{ yylhsminor.yy189 = yymsp[0].minor.yy189; } - yymsp[0].minor.yy189 = yylhsminor.yy189; +{ yylhsminor.yy669 = yymsp[0].minor.yy669; } + yymsp[0].minor.yy669 = yylhsminor.yy669; break; case 33: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy189 = yymsp[-2].minor.yy189 | yymsp[0].minor.yy189; } - yymsp[-2].minor.yy189 = yylhsminor.yy189; +{ yylhsminor.yy669 = yymsp[-2].minor.yy669 | yymsp[0].minor.yy669; } + yymsp[-2].minor.yy669 = yylhsminor.yy669; break; case 34: /* priv_type ::= READ */ -{ yymsp[0].minor.yy189 = PRIVILEGE_TYPE_READ; } +{ yymsp[0].minor.yy669 = PRIVILEGE_TYPE_READ; } break; case 35: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy189 = PRIVILEGE_TYPE_WRITE; } +{ yymsp[0].minor.yy669 = PRIVILEGE_TYPE_WRITE; } break; case 36: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy209 = yymsp[-2].minor.yy0; } - yymsp[-2].minor.yy209 = yylhsminor.yy209; +{ yylhsminor.yy421 = yymsp[-2].minor.yy0; } + yymsp[-2].minor.yy421 = yylhsminor.yy421; break; case 37: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy209 = yymsp[-2].minor.yy209; } - yymsp[-2].minor.yy209 = yylhsminor.yy209; +{ yylhsminor.yy421 = yymsp[-2].minor.yy421; } + yymsp[-2].minor.yy421 = yylhsminor.yy421; break; case 38: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy209, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy421, NULL); } break; case 39: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0); } break; case 40: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 41: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy209); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy421); } break; case 42: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -3248,1220 +3254,1219 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; 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 294: /* db_name ::= NK_ID */ yytestcase(yyruleno==294); - case 295: /* table_name ::= NK_ID */ yytestcase(yyruleno==295); - case 296: /* column_name ::= NK_ID */ yytestcase(yyruleno==296); - case 297: /* function_name ::= NK_ID */ yytestcase(yyruleno==297); - case 298: /* table_alias ::= NK_ID */ yytestcase(yyruleno==298); - case 299: /* column_alias ::= NK_ID */ yytestcase(yyruleno==299); - case 300: /* user_name ::= NK_ID */ yytestcase(yyruleno==300); - case 301: /* index_name ::= NK_ID */ yytestcase(yyruleno==301); - case 302: /* topic_name ::= NK_ID */ yytestcase(yyruleno==302); - case 303: /* stream_name ::= NK_ID */ yytestcase(yyruleno==303); - case 304: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==304); - case 337: /* noarg_func ::= NOW */ yytestcase(yyruleno==337); - case 338: /* noarg_func ::= TODAY */ yytestcase(yyruleno==338); - case 339: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==339); - case 340: /* star_func ::= COUNT */ yytestcase(yyruleno==340); - case 341: /* star_func ::= FIRST */ yytestcase(yyruleno==341); - case 342: /* star_func ::= LAST */ yytestcase(yyruleno==342); - case 343: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==343); -{ yylhsminor.yy209 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy209 = yylhsminor.yy209; + case 47: /* dnode_host_name ::= NK_STRING */ yytestcase(yyruleno==47); + case 293: /* db_name ::= NK_ID */ yytestcase(yyruleno==293); + case 294: /* table_name ::= NK_ID */ yytestcase(yyruleno==294); + case 295: /* column_name ::= NK_ID */ yytestcase(yyruleno==295); + case 296: /* function_name ::= NK_ID */ yytestcase(yyruleno==296); + case 297: /* table_alias ::= NK_ID */ yytestcase(yyruleno==297); + case 298: /* column_alias ::= NK_ID */ yytestcase(yyruleno==298); + case 299: /* user_name ::= NK_ID */ yytestcase(yyruleno==299); + case 300: /* index_name ::= NK_ID */ yytestcase(yyruleno==300); + case 301: /* topic_name ::= NK_ID */ yytestcase(yyruleno==301); + case 302: /* stream_name ::= NK_ID */ yytestcase(yyruleno==302); + case 303: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==303); + case 336: /* noarg_func ::= NOW */ yytestcase(yyruleno==336); + case 337: /* noarg_func ::= TODAY */ yytestcase(yyruleno==337); + case 338: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==338); + case 339: /* star_func ::= COUNT */ yytestcase(yyruleno==339); + case 340: /* star_func ::= FIRST */ yytestcase(yyruleno==340); + case 341: /* star_func ::= LAST */ yytestcase(yyruleno==341); + case 342: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==342); +{ yylhsminor.yy421 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy421 = yylhsminor.yy421; break; - case 49: /* cmd ::= ALTER LOCAL NK_STRING */ + case 48: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 50: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + case 49: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 51: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + case 50: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; - case 52: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + case 51: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; - case 53: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + case 52: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; - case 54: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + case 53: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; - case 55: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + case 54: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; - case 56: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + case 55: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; - case 57: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + case 56: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; - case 58: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + case 57: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; - case 59: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy137, &yymsp[-1].minor.yy209, yymsp[0].minor.yy632); } + case 58: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy621, &yymsp[-1].minor.yy421, yymsp[0].minor.yy674); } break; - case 60: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } + case 59: /* cmd ::= DROP DATABASE exists_opt db_name */ +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy621, &yymsp[0].minor.yy421); } break; - case 61: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy209); } + case 60: /* cmd ::= USE db_name */ +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy421); } break; - case 62: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy209, yymsp[0].minor.yy632); } + case 61: /* cmd ::= ALTER DATABASE db_name alter_db_options */ +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy421, yymsp[0].minor.yy674); } break; - case 63: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy137 = true; } + case 62: /* not_exists_opt ::= IF NOT EXISTS */ +{ yymsp[-2].minor.yy621 = true; } break; - case 64: /* not_exists_opt ::= */ - case 66: /* exists_opt ::= */ yytestcase(yyruleno==66); - case 237: /* analyze_opt ::= */ yytestcase(yyruleno==237); - case 245: /* agg_func_opt ::= */ yytestcase(yyruleno==245); - case 396: /* set_quantifier_opt ::= */ yytestcase(yyruleno==396); -{ yymsp[1].minor.yy137 = false; } + case 63: /* not_exists_opt ::= */ + case 65: /* exists_opt ::= */ yytestcase(yyruleno==65); + case 236: /* analyze_opt ::= */ yytestcase(yyruleno==236); + case 244: /* agg_func_opt ::= */ yytestcase(yyruleno==244); + case 395: /* set_quantifier_opt ::= */ yytestcase(yyruleno==395); +{ yymsp[1].minor.yy621 = false; } break; - case 65: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy137 = true; } + case 64: /* exists_opt ::= IF EXISTS */ +{ yymsp[-1].minor.yy621 = true; } break; - case 67: /* db_options ::= */ -{ yymsp[1].minor.yy632 = createDefaultDatabaseOptions(pCxt); } + case 66: /* db_options ::= */ +{ yymsp[1].minor.yy674 = createDefaultDatabaseOptions(pCxt); } break; - case 68: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 67: /* db_options ::= db_options BUFFER NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 69: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 68: /* db_options ::= db_options CACHELAST NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 70: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 69: /* db_options ::= db_options COMP NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 71: /* db_options ::= db_options DURATION NK_INTEGER */ - case 72: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==72); -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 70: /* db_options ::= db_options DURATION NK_INTEGER */ + case 71: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==71); +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 73: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 72: /* db_options ::= db_options FSYNC NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 74: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 73: /* db_options ::= db_options MAXROWS NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 75: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 74: /* db_options ::= db_options MINROWS NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 76: /* db_options ::= db_options KEEP integer_list */ - case 77: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==77); -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_KEEP, yymsp[0].minor.yy424); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 75: /* db_options ::= db_options KEEP integer_list */ + case 76: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==76); +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_KEEP, yymsp[0].minor.yy530); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 78: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 77: /* db_options ::= db_options PAGES NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 79: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 80: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 81: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 82: /* db_options ::= db_options STRICT NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 83: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 84: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 85: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 86: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_RETENTIONS, yymsp[0].minor.yy424); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 87: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy632 = setDatabaseOption(pCxt, yymsp[-2].minor.yy632, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 88: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy632 = createAlterDatabaseOptions(pCxt); yylhsminor.yy632 = setAlterDatabaseOption(pCxt, yylhsminor.yy632, &yymsp[0].minor.yy605); } - yymsp[0].minor.yy632 = yylhsminor.yy632; - break; - case 89: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy632 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy632, &yymsp[0].minor.yy605); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; - break; - case 90: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } - break; - case 91: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } - break; - case 92: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } - break; - case 93: /* alter_db_option ::= KEEP integer_list */ - case 94: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==94); -{ yymsp[-1].minor.yy605.type = DB_OPTION_KEEP; yymsp[-1].minor.yy605.pList = yymsp[0].minor.yy424; } - break; - case 95: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_PAGES; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } - break; - case 96: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } - break; - case 97: /* alter_db_option ::= STRICT NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_STRICT; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } - break; - case 98: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = DB_OPTION_WAL; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } - break; - case 99: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy424 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy424 = yylhsminor.yy424; - break; - case 100: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 266: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==266); -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; - break; - case 101: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy424 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy424 = yylhsminor.yy424; - break; - case 102: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; - break; - case 103: /* retention_list ::= retention */ - case 123: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==123); - case 126: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==126); - case 133: /* column_def_list ::= column_def */ yytestcase(yyruleno==133); - case 176: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==176); - case 181: /* col_name_list ::= col_name */ yytestcase(yyruleno==181); - case 225: /* func_list ::= func */ yytestcase(yyruleno==225); - case 292: /* literal_list ::= signed_literal */ yytestcase(yyruleno==292); - case 346: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==346); - case 401: /* select_sublist ::= select_item */ yytestcase(yyruleno==401); - case 450: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==450); -{ yylhsminor.yy424 = createNodeList(pCxt, yymsp[0].minor.yy632); } - yymsp[0].minor.yy424 = yylhsminor.yy424; - break; - case 104: /* retention_list ::= retention_list NK_COMMA retention */ - case 134: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==134); - case 177: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==177); - case 182: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==182); - case 226: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==226); - case 293: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==293); - case 347: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==347); - case 402: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==402); - case 451: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==451); -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, yymsp[0].minor.yy632); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; - break; - case 105: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy632 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; - break; - case 106: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 108: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==108); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy137, yymsp[-5].minor.yy632, yymsp[-3].minor.yy424, yymsp[-1].minor.yy424, yymsp[0].minor.yy632); } - break; - case 107: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy424); } - break; - case 109: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy424); } - break; - case 110: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy137, yymsp[0].minor.yy632); } - break; - case 111: /* cmd ::= ALTER TABLE alter_table_clause */ - case 112: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==112); - case 269: /* cmd ::= query_expression */ yytestcase(yyruleno==269); -{ pCxt->pRootNode = yymsp[0].minor.yy632; } - break; - case 113: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy632 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; - break; - case 114: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy632 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; - break; - case 115: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy632 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy632, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy209); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; - break; - case 116: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy632 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; + case 78: /* db_options ::= db_options PAGESIZE NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + break; + case 79: /* db_options ::= db_options PRECISION NK_STRING */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + break; + case 80: /* db_options ::= db_options REPLICA NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + break; + case 81: /* db_options ::= db_options STRICT NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + break; + case 82: /* db_options ::= db_options WAL NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + break; + case 83: /* db_options ::= db_options VGROUPS NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + break; + case 84: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + break; + case 85: /* db_options ::= db_options RETENTIONS retention_list */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_RETENTIONS, yymsp[0].minor.yy530); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + break; + case 86: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ +{ yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + break; + case 87: /* alter_db_options ::= alter_db_option */ +{ yylhsminor.yy674 = createAlterDatabaseOptions(pCxt); yylhsminor.yy674 = setAlterDatabaseOption(pCxt, yylhsminor.yy674, &yymsp[0].minor.yy557); } + yymsp[0].minor.yy674 = yylhsminor.yy674; + break; + case 88: /* alter_db_options ::= alter_db_options alter_db_option */ +{ yylhsminor.yy674 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy674, &yymsp[0].minor.yy557); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; + break; + case 89: /* alter_db_option ::= BUFFER NK_INTEGER */ +{ yymsp[-1].minor.yy557.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } + break; + case 90: /* alter_db_option ::= CACHELAST NK_INTEGER */ +{ yymsp[-1].minor.yy557.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } + break; + case 91: /* alter_db_option ::= FSYNC NK_INTEGER */ +{ yymsp[-1].minor.yy557.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy557.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.yy557.type = DB_OPTION_KEEP; yymsp[-1].minor.yy557.pList = yymsp[0].minor.yy530; } + break; + case 94: /* alter_db_option ::= PAGES NK_INTEGER */ +{ yymsp[-1].minor.yy557.type = DB_OPTION_PAGES; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } + break; + case 95: /* alter_db_option ::= REPLICA NK_INTEGER */ +{ yymsp[-1].minor.yy557.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } + break; + case 96: /* alter_db_option ::= STRICT NK_INTEGER */ +{ yymsp[-1].minor.yy557.type = DB_OPTION_STRICT; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } + break; + case 97: /* alter_db_option ::= WAL NK_INTEGER */ +{ yymsp[-1].minor.yy557.type = DB_OPTION_WAL; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } + break; + case 98: /* integer_list ::= NK_INTEGER */ +{ yylhsminor.yy530 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy530 = yylhsminor.yy530; + break; + case 99: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ + case 265: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==265); +{ yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy530 = yylhsminor.yy530; + break; + case 100: /* variable_list ::= NK_VARIABLE */ +{ yylhsminor.yy530 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy530 = yylhsminor.yy530; + break; + case 101: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ +{ yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy530 = yylhsminor.yy530; + 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 175: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==175); + case 180: /* col_name_list ::= col_name */ yytestcase(yyruleno==180); + case 224: /* func_list ::= func */ yytestcase(yyruleno==224); + case 291: /* literal_list ::= signed_literal */ yytestcase(yyruleno==291); + case 345: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==345); + case 400: /* select_sublist ::= select_item */ yytestcase(yyruleno==400); + case 449: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==449); +{ yylhsminor.yy530 = createNodeList(pCxt, yymsp[0].minor.yy674); } + yymsp[0].minor.yy530 = yylhsminor.yy530; + 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 176: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==176); + case 181: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==181); + case 225: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==225); + case 292: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==292); + case 346: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==346); + case 401: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==401); + case 450: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==450); +{ yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, yymsp[0].minor.yy674); } + yymsp[-2].minor.yy530 = yylhsminor.yy530; + break; + case 104: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ +{ yylhsminor.yy674 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; + 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.yy621, yymsp[-5].minor.yy674, yymsp[-3].minor.yy530, yymsp[-1].minor.yy530, yymsp[0].minor.yy674); } + break; + case 106: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy530); } + break; + case 108: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy530); } + break; + case 109: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy621, yymsp[0].minor.yy674); } + break; + case 110: /* cmd ::= ALTER TABLE alter_table_clause */ + case 111: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==111); + case 268: /* cmd ::= query_expression */ yytestcase(yyruleno==268); +{ pCxt->pRootNode = yymsp[0].minor.yy674; } + break; + case 112: /* alter_table_clause ::= full_table_name alter_table_options */ +{ yylhsminor.yy674 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; + break; + case 113: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ +{ yylhsminor.yy674 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690); } + yymsp[-4].minor.yy674 = yylhsminor.yy674; + break; + case 114: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ +{ yylhsminor.yy674 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy674, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy421); } + yymsp[-3].minor.yy674 = yylhsminor.yy674; + break; + case 115: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ +{ yylhsminor.yy674 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690); } + yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 117: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy632 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; - break; - case 118: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy632 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; - break; - case 119: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy632 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy632, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy209); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + case 116: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ +{ yylhsminor.yy674 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy421, &yymsp[0].minor.yy421); } + yymsp[-4].minor.yy674 = yylhsminor.yy674; + break; + case 117: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ +{ yylhsminor.yy674 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690); } + yymsp[-4].minor.yy674 = yylhsminor.yy674; + break; + case 118: /* alter_table_clause ::= full_table_name DROP TAG column_name */ +{ yylhsminor.yy674 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy674, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy421); } + yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 120: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy632 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; + case 119: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ +{ yylhsminor.yy674 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690); } + yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 121: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy632 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy632, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; - break; - case 122: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -{ yylhsminor.yy632 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy632, &yymsp[-2].minor.yy209, yymsp[0].minor.yy632); } - yymsp[-5].minor.yy632 = yylhsminor.yy632; + case 120: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ +{ yylhsminor.yy674 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy421, &yymsp[0].minor.yy421); } + yymsp[-4].minor.yy674 = yylhsminor.yy674; + break; + case 121: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ +{ yylhsminor.yy674 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy674, &yymsp[-2].minor.yy421, yymsp[0].minor.yy674); } + yymsp[-5].minor.yy674 = yylhsminor.yy674; break; - case 124: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 127: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==127); -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-1].minor.yy424, yymsp[0].minor.yy632); } - yymsp[-1].minor.yy424 = yylhsminor.yy424; + 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.yy530 = addNodeToList(pCxt, yymsp[-1].minor.yy530, yymsp[0].minor.yy674); } + yymsp[-1].minor.yy530 = yylhsminor.yy530; break; - case 125: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ -{ yylhsminor.yy632 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy137, yymsp[-8].minor.yy632, yymsp[-6].minor.yy632, yymsp[-5].minor.yy424, yymsp[-2].minor.yy424, yymsp[0].minor.yy632); } - yymsp[-9].minor.yy632 = yylhsminor.yy632; + 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.yy674 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy621, yymsp[-8].minor.yy674, yymsp[-6].minor.yy674, yymsp[-5].minor.yy530, yymsp[-2].minor.yy530, yymsp[0].minor.yy674); } + yymsp[-9].minor.yy674 = yylhsminor.yy674; break; - case 128: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy632 = createDropTableClause(pCxt, yymsp[-1].minor.yy137, yymsp[0].minor.yy632); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + case 127: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy674 = createDropTableClause(pCxt, yymsp[-1].minor.yy621, yymsp[0].minor.yy674); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 129: /* specific_tags_opt ::= */ - case 160: /* tags_def_opt ::= */ yytestcase(yyruleno==160); - case 409: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==409); - case 426: /* group_by_clause_opt ::= */ yytestcase(yyruleno==426); - case 438: /* order_by_clause_opt ::= */ yytestcase(yyruleno==438); -{ yymsp[1].minor.yy424 = NULL; } + case 128: /* specific_tags_opt ::= */ + case 159: /* tags_def_opt ::= */ yytestcase(yyruleno==159); + case 408: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==408); + case 425: /* group_by_clause_opt ::= */ yytestcase(yyruleno==425); + case 437: /* order_by_clause_opt ::= */ yytestcase(yyruleno==437); +{ yymsp[1].minor.yy530 = NULL; } break; - case 130: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy424 = yymsp[-1].minor.yy424; } + case 129: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy530 = yymsp[-1].minor.yy530; } break; - case 131: /* full_table_name ::= table_name */ -{ yylhsminor.yy632 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy209, NULL); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 130: /* full_table_name ::= table_name */ +{ yylhsminor.yy674 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy421, NULL); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 132: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy632 = createRealTableNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209, NULL); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 131: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy674 = createRealTableNode(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421, NULL); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 135: /* column_def ::= column_name type_name */ -{ yylhsminor.yy632 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy209, yymsp[0].minor.yy304, NULL); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + case 134: /* column_def ::= column_name type_name */ +{ yylhsminor.yy674 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690, NULL); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 136: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy632 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-2].minor.yy304, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + case 135: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy674 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy421, yymsp[-2].minor.yy690, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 137: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 136: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 138: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 137: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 139: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 138: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 140: /* type_name ::= INT */ - case 141: /* type_name ::= INTEGER */ yytestcase(yyruleno==141); -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_INT); } + case 139: /* type_name ::= INT */ + case 140: /* type_name ::= INTEGER */ yytestcase(yyruleno==140); +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 142: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 141: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 143: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 142: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 144: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 143: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 145: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 144: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy690 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 146: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 145: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 147: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 146: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy690 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 148: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 147: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy690 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 149: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 148: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy690 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 150: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_UINT); } + case 149: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy690 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 151: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy304 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 150: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy690 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 152: /* type_name ::= JSON */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_JSON); } + case 151: /* type_name ::= JSON */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 153: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 152: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy690 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 154: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 153: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 155: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 154: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 156: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 155: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy690 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 157: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 156: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 158: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 157: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy690 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 159: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy304 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 158: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy690 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 161: /* tags_def_opt ::= tags_def */ - case 345: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==345); - case 400: /* select_list ::= select_sublist */ yytestcase(yyruleno==400); -{ yylhsminor.yy424 = yymsp[0].minor.yy424; } - yymsp[0].minor.yy424 = yylhsminor.yy424; + case 160: /* tags_def_opt ::= tags_def */ + case 344: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==344); + case 399: /* select_list ::= select_sublist */ yytestcase(yyruleno==399); +{ yylhsminor.yy530 = yymsp[0].minor.yy530; } + yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 162: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy424 = yymsp[-1].minor.yy424; } + case 161: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy530 = yymsp[-1].minor.yy530; } break; - case 163: /* table_options ::= */ -{ yymsp[1].minor.yy632 = createDefaultTableOptions(pCxt); } + case 162: /* table_options ::= */ +{ yymsp[1].minor.yy674 = createDefaultTableOptions(pCxt); } break; - case 164: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 163: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy674 = setTableOption(pCxt, yymsp[-2].minor.yy674, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 165: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy424); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 164: /* table_options ::= table_options MAX_DELAY duration_list */ +{ yylhsminor.yy674 = setTableOption(pCxt, yymsp[-2].minor.yy674, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy530); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 166: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy424); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 165: /* table_options ::= table_options WATERMARK duration_list */ +{ yylhsminor.yy674 = setTableOption(pCxt, yymsp[-2].minor.yy674, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy530); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 167: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-4].minor.yy632, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy424); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; + case 166: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ +{ yylhsminor.yy674 = setTableOption(pCxt, yymsp[-4].minor.yy674, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy530); } + yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 168: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-2].minor.yy632, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 167: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy674 = setTableOption(pCxt, yymsp[-2].minor.yy674, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 169: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-4].minor.yy632, TABLE_OPTION_SMA, yymsp[-1].minor.yy424); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; + case 168: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy674 = setTableOption(pCxt, yymsp[-4].minor.yy674, TABLE_OPTION_SMA, yymsp[-1].minor.yy530); } + yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 170: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy632 = createAlterTableOptions(pCxt); yylhsminor.yy632 = setTableOption(pCxt, yylhsminor.yy632, yymsp[0].minor.yy605.type, &yymsp[0].minor.yy605.val); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 169: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy674 = createAlterTableOptions(pCxt); yylhsminor.yy674 = setTableOption(pCxt, yylhsminor.yy674, yymsp[0].minor.yy557.type, &yymsp[0].minor.yy557.val); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 171: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy632 = setTableOption(pCxt, yymsp[-1].minor.yy632, yymsp[0].minor.yy605.type, &yymsp[0].minor.yy605.val); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + case 170: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy674 = setTableOption(pCxt, yymsp[-1].minor.yy674, yymsp[0].minor.yy557.type, &yymsp[0].minor.yy557.val); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 172: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy605.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } + case 171: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy557.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 173: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy605.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy605.val = yymsp[0].minor.yy0; } + case 172: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy557.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 174: /* duration_list ::= duration_literal */ - case 319: /* expression_list ::= expression */ yytestcase(yyruleno==319); -{ yylhsminor.yy424 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); } - yymsp[0].minor.yy424 = yylhsminor.yy424; + case 173: /* duration_list ::= duration_literal */ + case 318: /* expression_list ::= expression */ yytestcase(yyruleno==318); +{ yylhsminor.yy530 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy674)); } + yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 175: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 320: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==320); -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; + case 174: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 319: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==319); +{ yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, releaseRawExprNode(pCxt, yymsp[0].minor.yy674)); } + yymsp[-2].minor.yy530 = yylhsminor.yy530; break; - case 178: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy632 = createFunctionNode(pCxt, &yymsp[0].minor.yy209, NULL); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 177: /* rollup_func_name ::= function_name */ +{ yylhsminor.yy674 = createFunctionNode(pCxt, &yymsp[0].minor.yy421, NULL); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 179: /* rollup_func_name ::= FIRST */ - case 180: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==180); -{ yylhsminor.yy632 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 178: /* rollup_func_name ::= FIRST */ + case 179: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==179); +{ yylhsminor.yy674 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 183: /* col_name ::= column_name */ -{ yylhsminor.yy632 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy209); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 182: /* col_name ::= column_name */ +{ yylhsminor.yy674 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy421); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 184: /* cmd ::= SHOW DNODES */ + case 183: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } break; - case 185: /* cmd ::= SHOW USERS */ + case 184: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); } break; - case 186: /* cmd ::= SHOW DATABASES */ + case 185: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } break; - case 187: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } + case 186: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy674, yymsp[0].minor.yy674); } break; - case 188: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } + case 187: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy674, yymsp[0].minor.yy674); } break; - case 189: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy632, NULL); } + case 188: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy674, NULL); } break; - case 190: /* cmd ::= SHOW MNODES */ + case 189: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } break; - case 191: /* cmd ::= SHOW MODULES */ + case 190: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); } break; - case 192: /* cmd ::= SHOW QNODES */ + case 191: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); } break; - case 193: /* cmd ::= SHOW FUNCTIONS */ + case 192: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } break; - case 194: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } + case 193: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 195: /* cmd ::= SHOW STREAMS */ + case 194: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } break; - case 196: /* cmd ::= SHOW ACCOUNTS */ + case 195: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 197: /* cmd ::= SHOW APPS */ + case 196: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT, NULL, NULL); } break; - case 198: /* cmd ::= SHOW CONNECTIONS */ + case 197: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT, NULL, NULL); } break; - case 199: /* cmd ::= SHOW LICENCE */ - case 200: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==200); + case 198: /* cmd ::= SHOW LICENCE */ + case 199: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==199); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT, NULL, NULL); } break; - case 201: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy209); } + case 200: /* cmd ::= SHOW CREATE DATABASE db_name */ +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy421); } break; - case 202: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy632); } + case 201: /* cmd ::= SHOW CREATE TABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy674); } break; - case 203: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy632); } + case 202: /* cmd ::= SHOW CREATE STABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy674); } break; - case 204: /* cmd ::= SHOW QUERIES */ + case 203: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); } break; - case 205: /* cmd ::= SHOW SCORES */ + case 204: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT, NULL, NULL); } break; - case 206: /* cmd ::= SHOW TOPICS */ + case 205: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT, NULL, NULL); } break; - case 207: /* cmd ::= SHOW VARIABLES */ + case 206: /* cmd ::= SHOW VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); } break; - case 208: /* cmd ::= SHOW BNODES */ + case 207: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); } break; - case 209: /* cmd ::= SHOW SNODES */ + case 208: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); } break; - case 210: /* cmd ::= SHOW CLUSTER */ + case 209: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT, NULL, NULL); } break; - case 211: /* cmd ::= SHOW TRANSACTIONS */ + case 210: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT, NULL, NULL); } break; - case 212: /* db_name_cond_opt ::= */ - case 217: /* from_db_opt ::= */ yytestcase(yyruleno==217); -{ yymsp[1].minor.yy632 = createDefaultDatabaseCondValue(pCxt); } + case 211: /* db_name_cond_opt ::= */ + case 216: /* from_db_opt ::= */ yytestcase(yyruleno==216); +{ yymsp[1].minor.yy674 = createDefaultDatabaseCondValue(pCxt); } break; - case 213: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy209); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + case 212: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy421); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 214: /* like_pattern_opt ::= */ - case 222: /* index_options ::= */ yytestcase(yyruleno==222); - case 251: /* into_opt ::= */ yytestcase(yyruleno==251); - case 407: /* where_clause_opt ::= */ yytestcase(yyruleno==407); - case 411: /* twindow_clause_opt ::= */ yytestcase(yyruleno==411); - case 416: /* sliding_opt ::= */ yytestcase(yyruleno==416); - case 418: /* fill_opt ::= */ yytestcase(yyruleno==418); - case 430: /* having_clause_opt ::= */ yytestcase(yyruleno==430); - case 440: /* slimit_clause_opt ::= */ yytestcase(yyruleno==440); - case 444: /* limit_clause_opt ::= */ yytestcase(yyruleno==444); -{ yymsp[1].minor.yy632 = NULL; } + case 213: /* like_pattern_opt ::= */ + case 221: /* index_options ::= */ yytestcase(yyruleno==221); + case 250: /* into_opt ::= */ yytestcase(yyruleno==250); + case 406: /* where_clause_opt ::= */ yytestcase(yyruleno==406); + case 410: /* twindow_clause_opt ::= */ yytestcase(yyruleno==410); + case 415: /* sliding_opt ::= */ yytestcase(yyruleno==415); + case 417: /* fill_opt ::= */ yytestcase(yyruleno==417); + case 429: /* having_clause_opt ::= */ yytestcase(yyruleno==429); + case 439: /* slimit_clause_opt ::= */ yytestcase(yyruleno==439); + case 443: /* limit_clause_opt ::= */ yytestcase(yyruleno==443); +{ yymsp[1].minor.yy674 = NULL; } break; - case 215: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 214: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 216: /* table_name_cond ::= table_name */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy209); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 215: /* table_name_cond ::= table_name */ +{ yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy421); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 218: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy209); } + case 217: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy421); } break; - case 219: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy137, &yymsp[-3].minor.yy209, &yymsp[-1].minor.yy209, NULL, yymsp[0].minor.yy632); } + case 218: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy621, &yymsp[-3].minor.yy421, &yymsp[-1].minor.yy421, NULL, yymsp[0].minor.yy674); } break; - case 220: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy137, &yymsp[-5].minor.yy209, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy424, NULL); } + case 219: /* 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.yy621, &yymsp[-5].minor.yy421, &yymsp[-3].minor.yy421, yymsp[-1].minor.yy530, NULL); } break; - case 221: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy137, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } + case 220: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy621, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421); } break; - case 223: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy632 = createIndexOption(pCxt, yymsp[-6].minor.yy424, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), NULL, yymsp[0].minor.yy632); } + case 222: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ +{ yymsp[-8].minor.yy674 = createIndexOption(pCxt, yymsp[-6].minor.yy530, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), NULL, yymsp[0].minor.yy674); } break; - case 224: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ -{ yymsp[-10].minor.yy632 = createIndexOption(pCxt, yymsp[-8].minor.yy424, releaseRawExprNode(pCxt, yymsp[-4].minor.yy632), releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), yymsp[0].minor.yy632); } + case 223: /* 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.yy674 = createIndexOption(pCxt, yymsp[-8].minor.yy530, releaseRawExprNode(pCxt, yymsp[-4].minor.yy674), releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), yymsp[0].minor.yy674); } break; - case 227: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy632 = createFunctionNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy424); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + case 226: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy674 = createFunctionNode(pCxt, &yymsp[-3].minor.yy421, yymsp[-1].minor.yy530); } + yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 228: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy137, &yymsp[-2].minor.yy209, yymsp[0].minor.yy632, NULL, NULL); } + case 227: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy621, &yymsp[-2].minor.yy421, yymsp[0].minor.yy674, NULL, NULL); } break; - case 229: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy137, &yymsp[-3].minor.yy209, NULL, &yymsp[0].minor.yy209, NULL); } + case 228: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy621, &yymsp[-3].minor.yy421, NULL, &yymsp[0].minor.yy421, NULL); } break; - case 230: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy137, &yymsp[-3].minor.yy209, NULL, NULL, yymsp[0].minor.yy632); } + case 229: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy621, &yymsp[-3].minor.yy421, NULL, NULL, yymsp[0].minor.yy674); } break; - case 231: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } + case 230: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy621, &yymsp[0].minor.yy421); } break; - case 232: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy137, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209); } + case 231: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy621, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421); } break; - case 233: /* cmd ::= DESC full_table_name */ - case 234: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==234); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy632); } + case 232: /* cmd ::= DESC full_table_name */ + case 233: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==233); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy674); } break; - case 235: /* cmd ::= RESET QUERY CACHE */ + case 234: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 236: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy137, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } + case 235: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy621, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 238: /* analyze_opt ::= ANALYZE */ - case 246: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==246); - case 397: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==397); -{ yymsp[0].minor.yy137 = true; } + case 237: /* analyze_opt ::= ANALYZE */ + case 245: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==245); + case 396: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==396); +{ yymsp[0].minor.yy621 = true; } break; - case 239: /* explain_options ::= */ -{ yymsp[1].minor.yy632 = createDefaultExplainOptions(pCxt); } + case 238: /* explain_options ::= */ +{ yymsp[1].minor.yy674 = createDefaultExplainOptions(pCxt); } break; - case 240: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy632 = setExplainVerbose(pCxt, yymsp[-2].minor.yy632, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 239: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy674 = setExplainVerbose(pCxt, yymsp[-2].minor.yy674, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 241: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy632 = setExplainRatio(pCxt, yymsp[-2].minor.yy632, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 240: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy674 = setExplainRatio(pCxt, yymsp[-2].minor.yy674, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 242: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ -{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy424); } + case 241: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ +{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy530); } break; - case 243: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy137, yymsp[-8].minor.yy137, &yymsp[-5].minor.yy209, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy304, yymsp[0].minor.yy100); } + case 242: /* 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.yy621, yymsp[-8].minor.yy621, &yymsp[-5].minor.yy421, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy690, yymsp[0].minor.yy42); } break; - case 244: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } + case 243: /* cmd ::= DROP FUNCTION exists_opt function_name */ +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy621, &yymsp[0].minor.yy421); } break; - case 247: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy100 = 0; } + case 246: /* bufsize_opt ::= */ +{ yymsp[1].minor.yy42 = 0; } break; - case 248: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy100 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } + case 247: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ +{ yymsp[-1].minor.yy42 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 249: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy137, &yymsp[-4].minor.yy209, yymsp[-2].minor.yy632, yymsp[-3].minor.yy632, yymsp[0].minor.yy632); } + case 248: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy621, &yymsp[-4].minor.yy421, yymsp[-2].minor.yy674, yymsp[-3].minor.yy674, yymsp[0].minor.yy674); } break; - case 250: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy137, &yymsp[0].minor.yy209); } + case 249: /* cmd ::= DROP STREAM exists_opt stream_name */ +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy621, &yymsp[0].minor.yy421); } break; - case 252: /* into_opt ::= INTO full_table_name */ - case 378: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==378); - case 408: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==408); - case 431: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==431); -{ yymsp[-1].minor.yy632 = yymsp[0].minor.yy632; } + case 251: /* into_opt ::= INTO full_table_name */ + case 377: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==377); + case 407: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==407); + case 430: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==430); +{ yymsp[-1].minor.yy674 = yymsp[0].minor.yy674; } break; - case 253: /* stream_options ::= */ -{ yymsp[1].minor.yy632 = createStreamOptions(pCxt); } + case 252: /* stream_options ::= */ +{ yymsp[1].minor.yy674 = createStreamOptions(pCxt); } break; - case 254: /* stream_options ::= stream_options TRIGGER AT_ONCE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy632)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy632 = yymsp[-2].minor.yy632; } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 253: /* stream_options ::= stream_options TRIGGER AT_ONCE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy674)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy674 = yymsp[-2].minor.yy674; } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 255: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy632)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy632 = yymsp[-2].minor.yy632; } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 254: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy674)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy674 = yymsp[-2].minor.yy674; } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 256: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-3].minor.yy632)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy632)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy632); yylhsminor.yy632 = yymsp[-3].minor.yy632; } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + case 255: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ +{ ((SStreamOptions*)yymsp[-3].minor.yy674)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy674)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy674); yylhsminor.yy674 = yymsp[-3].minor.yy674; } + yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 257: /* stream_options ::= stream_options WATERMARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy632)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy632); yylhsminor.yy632 = yymsp[-2].minor.yy632; } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 256: /* stream_options ::= stream_options WATERMARK duration_literal */ +{ ((SStreamOptions*)yymsp[-2].minor.yy674)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy674); yylhsminor.yy674 = yymsp[-2].minor.yy674; } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 258: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 257: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 259: /* cmd ::= KILL QUERY NK_STRING */ + case 258: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 260: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 259: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; - case 261: /* cmd ::= BALANCE VGROUP */ + case 260: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; - case 262: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 261: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 263: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy424); } + case 262: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy530); } break; - case 264: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 263: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 265: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy424 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + case 264: /* dnode_list ::= DNODE NK_INTEGER */ +{ yymsp[-1].minor.yy530 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; - case 267: /* cmd ::= SYNCDB db_name REPLICA */ -{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy209); } + case 266: /* cmd ::= SYNCDB db_name REPLICA */ +{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy421); } break; - case 268: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } + case 267: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 270: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 269: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 271: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 270: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 272: /* literal ::= NK_STRING */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 271: /* literal ::= NK_STRING */ +{ yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 273: /* literal ::= NK_BOOL */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 272: /* literal ::= NK_BOOL */ +{ yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 274: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + case 273: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 275: /* literal ::= duration_literal */ - case 285: /* signed_literal ::= signed */ yytestcase(yyruleno==285); - case 305: /* expression ::= literal */ yytestcase(yyruleno==305); - case 306: /* expression ::= pseudo_column */ yytestcase(yyruleno==306); - case 307: /* expression ::= column_reference */ yytestcase(yyruleno==307); - case 308: /* expression ::= function_expression */ yytestcase(yyruleno==308); - case 309: /* expression ::= subquery */ yytestcase(yyruleno==309); - case 334: /* function_expression ::= literal_func */ yytestcase(yyruleno==334); - case 370: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==370); - case 374: /* boolean_primary ::= predicate */ yytestcase(yyruleno==374); - case 376: /* common_expression ::= expression */ yytestcase(yyruleno==376); - case 377: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==377); - case 379: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==379); - case 381: /* table_reference ::= table_primary */ yytestcase(yyruleno==381); - case 382: /* table_reference ::= joined_table */ yytestcase(yyruleno==382); - case 386: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==386); - case 433: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==433); - case 436: /* query_primary ::= query_specification */ yytestcase(yyruleno==436); -{ yylhsminor.yy632 = yymsp[0].minor.yy632; } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 274: /* literal ::= duration_literal */ + case 284: /* signed_literal ::= signed */ yytestcase(yyruleno==284); + case 304: /* expression ::= literal */ yytestcase(yyruleno==304); + case 305: /* expression ::= pseudo_column */ yytestcase(yyruleno==305); + case 306: /* expression ::= column_reference */ yytestcase(yyruleno==306); + case 307: /* expression ::= function_expression */ yytestcase(yyruleno==307); + case 308: /* expression ::= subquery */ yytestcase(yyruleno==308); + case 333: /* function_expression ::= literal_func */ yytestcase(yyruleno==333); + case 369: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==369); + case 373: /* boolean_primary ::= predicate */ yytestcase(yyruleno==373); + case 375: /* common_expression ::= expression */ yytestcase(yyruleno==375); + case 376: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==376); + case 378: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==378); + case 380: /* table_reference ::= table_primary */ yytestcase(yyruleno==380); + case 381: /* table_reference ::= joined_table */ yytestcase(yyruleno==381); + case 385: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==385); + case 432: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==432); + case 435: /* query_primary ::= query_specification */ yytestcase(yyruleno==435); +{ yylhsminor.yy674 = yymsp[0].minor.yy674; } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 276: /* literal ::= NULL */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 275: /* literal ::= NULL */ +{ yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 277: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 276: /* literal ::= NK_QUESTION */ +{ yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 278: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 277: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 279: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 278: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 280: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + case 279: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; - case 281: /* signed ::= NK_MINUS NK_INTEGER */ + case 280: /* signed ::= NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 282: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 281: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 283: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 282: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 284: /* signed ::= NK_MINUS NK_FLOAT */ + case 283: /* signed ::= NK_MINUS NK_FLOAT */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 286: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 285: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 287: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 286: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 288: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 287: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 289: /* signed_literal ::= duration_literal */ - case 291: /* signed_literal ::= literal_func */ yytestcase(yyruleno==291); - case 348: /* star_func_para ::= expression */ yytestcase(yyruleno==348); - case 403: /* select_item ::= common_expression */ yytestcase(yyruleno==403); - case 449: /* search_condition ::= common_expression */ yytestcase(yyruleno==449); -{ yylhsminor.yy632 = releaseRawExprNode(pCxt, yymsp[0].minor.yy632); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 288: /* signed_literal ::= duration_literal */ + case 290: /* signed_literal ::= literal_func */ yytestcase(yyruleno==290); + case 347: /* star_func_para ::= expression */ yytestcase(yyruleno==347); + case 402: /* select_item ::= common_expression */ yytestcase(yyruleno==402); + case 448: /* search_condition ::= common_expression */ yytestcase(yyruleno==448); +{ yylhsminor.yy674 = releaseRawExprNode(pCxt, yymsp[0].minor.yy674); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 290: /* signed_literal ::= NULL */ -{ yylhsminor.yy632 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 289: /* signed_literal ::= NULL */ +{ yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 310: /* expression ::= NK_LP expression NK_RP */ - case 375: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==375); -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 309: /* expression ::= NK_LP expression NK_RP */ + case 374: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==374); +{ yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy674)); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 311: /* expression ::= NK_PLUS expression */ + case 310: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy632)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy674)); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 312: /* expression ::= NK_MINUS expression */ + case 311: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy632), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy674), NULL)); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 313: /* expression ::= expression NK_PLUS expression */ + case 312: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 314: /* expression ::= expression NK_MINUS expression */ + case 313: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 315: /* expression ::= expression NK_STAR expression */ + case 314: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 316: /* expression ::= expression NK_SLASH expression */ + case 315: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 317: /* expression ::= expression NK_REM expression */ + case 316: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 318: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 317: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 321: /* column_reference ::= column_name */ -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy209, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy209)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 320: /* column_reference ::= column_name */ +{ yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy421, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy421)); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 322: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209, createColumnNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy209)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 321: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421, createColumnNode(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421)); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 323: /* pseudo_column ::= ROWTS */ - case 324: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==324); - case 326: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==326); - case 327: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==327); - case 328: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==328); - case 329: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==329); - case 330: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==330); - case 336: /* literal_func ::= NOW */ yytestcase(yyruleno==336); -{ yylhsminor.yy632 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy632 = yylhsminor.yy632; + case 322: /* pseudo_column ::= ROWTS */ + case 323: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==323); + case 325: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==325); + case 326: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==326); + case 327: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==327); + case 328: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==328); + case 329: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==329); + case 335: /* literal_func ::= NOW */ yytestcase(yyruleno==335); +{ yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 325: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy209)))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 324: /* pseudo_column ::= table_name NK_DOT TBNAME */ +{ yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy421)))); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 331: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 332: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==332); -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy209, yymsp[-1].minor.yy424)); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + case 330: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 331: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==331); +{ yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy421, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy421, yymsp[-1].minor.yy530)); } + yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 333: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), yymsp[-1].minor.yy304)); } - yymsp[-5].minor.yy632 = yylhsminor.yy632; + case 332: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ +{ yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), yymsp[-1].minor.yy690)); } + yymsp[-5].minor.yy674 = yylhsminor.yy674; break; - case 335: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy209, NULL)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 334: /* literal_func ::= noarg_func NK_LP NK_RP */ +{ yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy421, NULL)); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 344: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy424 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy424 = yylhsminor.yy424; + case 343: /* star_func_para_list ::= NK_STAR */ +{ yylhsminor.yy530 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 349: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 406: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==406); -{ yylhsminor.yy632 = createColumnNode(pCxt, &yymsp[-2].minor.yy209, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 348: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 405: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==405); +{ yylhsminor.yy674 = createColumnNode(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 350: /* predicate ::= expression compare_op expression */ - case 355: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==355); + case 349: /* predicate ::= expression compare_op expression */ + case 354: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==354); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy380, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy28, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 351: /* predicate ::= expression BETWEEN expression AND expression */ + case 350: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy632), releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy674), releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-4].minor.yy632 = yylhsminor.yy632; + yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 352: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 351: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy632), releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy674), releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-5].minor.yy632 = yylhsminor.yy632; + yymsp[-5].minor.yy674 = yylhsminor.yy674; break; - case 353: /* predicate ::= expression IS NULL */ + case 352: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), NULL)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 354: /* predicate ::= expression IS NOT NULL */ + case 353: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), NULL)); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 356: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy380 = OP_TYPE_LOWER_THAN; } + case 355: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy28 = OP_TYPE_LOWER_THAN; } break; - case 357: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy380 = OP_TYPE_GREATER_THAN; } + case 356: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy28 = OP_TYPE_GREATER_THAN; } break; - case 358: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy380 = OP_TYPE_LOWER_EQUAL; } + case 357: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy28 = OP_TYPE_LOWER_EQUAL; } break; - case 359: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy380 = OP_TYPE_GREATER_EQUAL; } + case 358: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy28 = OP_TYPE_GREATER_EQUAL; } break; - case 360: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy380 = OP_TYPE_NOT_EQUAL; } + case 359: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy28 = OP_TYPE_NOT_EQUAL; } break; - case 361: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy380 = OP_TYPE_EQUAL; } + case 360: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy28 = OP_TYPE_EQUAL; } break; - case 362: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy380 = OP_TYPE_LIKE; } + case 361: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy28 = OP_TYPE_LIKE; } break; - case 363: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy380 = OP_TYPE_NOT_LIKE; } + case 362: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy28 = OP_TYPE_NOT_LIKE; } break; - case 364: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy380 = OP_TYPE_MATCH; } + case 363: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy28 = OP_TYPE_MATCH; } break; - case 365: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy380 = OP_TYPE_NMATCH; } + case 364: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy28 = OP_TYPE_NMATCH; } break; - case 366: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy380 = OP_TYPE_JSON_CONTAINS; } + case 365: /* compare_op ::= CONTAINS */ +{ yymsp[0].minor.yy28 = OP_TYPE_JSON_CONTAINS; } break; - case 367: /* in_op ::= IN */ -{ yymsp[0].minor.yy380 = OP_TYPE_IN; } + case 366: /* in_op ::= IN */ +{ yymsp[0].minor.yy28 = OP_TYPE_IN; } break; - case 368: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy380 = OP_TYPE_NOT_IN; } + case 367: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy28 = OP_TYPE_NOT_IN; } break; - case 369: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 368: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy530)); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 371: /* boolean_value_expression ::= NOT boolean_primary */ + case 370: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy632), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy674), NULL)); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 372: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 371: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 373: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 372: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy632); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy632); - yylhsminor.yy632 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); + yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 380: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy632 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy632, yymsp[0].minor.yy632, NULL); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 379: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy674 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy674, yymsp[0].minor.yy674, NULL); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 383: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy632 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + case 382: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy674 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy421, &yymsp[0].minor.yy421); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 384: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy632 = createRealTableNode(pCxt, &yymsp[-3].minor.yy209, &yymsp[-1].minor.yy209, &yymsp[0].minor.yy209); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + case 383: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy674 = createRealTableNode(pCxt, &yymsp[-3].minor.yy421, &yymsp[-1].minor.yy421, &yymsp[0].minor.yy421); } + yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 385: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy632 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632), &yymsp[0].minor.yy209); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + case 384: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy674 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy674), &yymsp[0].minor.yy421); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 387: /* alias_opt ::= */ -{ yymsp[1].minor.yy209 = nil_token; } + case 386: /* alias_opt ::= */ +{ yymsp[1].minor.yy421 = nil_token; } break; - case 388: /* alias_opt ::= table_alias */ -{ yylhsminor.yy209 = yymsp[0].minor.yy209; } - yymsp[0].minor.yy209 = yylhsminor.yy209; + case 387: /* alias_opt ::= table_alias */ +{ yylhsminor.yy421 = yymsp[0].minor.yy421; } + yymsp[0].minor.yy421 = yylhsminor.yy421; break; - case 389: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy209 = yymsp[0].minor.yy209; } + case 388: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy421 = yymsp[0].minor.yy421; } break; - case 390: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 391: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==391); -{ yymsp[-2].minor.yy632 = yymsp[-1].minor.yy632; } + case 389: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 390: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==390); +{ yymsp[-2].minor.yy674 = yymsp[-1].minor.yy674; } break; - case 392: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy632 = createJoinTableNode(pCxt, yymsp[-4].minor.yy612, yymsp[-5].minor.yy632, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } - yymsp[-5].minor.yy632 = yylhsminor.yy632; + case 391: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy674 = createJoinTableNode(pCxt, yymsp[-4].minor.yy636, yymsp[-5].minor.yy674, yymsp[-2].minor.yy674, yymsp[0].minor.yy674); } + yymsp[-5].minor.yy674 = yylhsminor.yy674; break; - case 393: /* join_type ::= */ -{ yymsp[1].minor.yy612 = JOIN_TYPE_INNER; } + case 392: /* join_type ::= */ +{ yymsp[1].minor.yy636 = JOIN_TYPE_INNER; } break; - case 394: /* join_type ::= INNER */ -{ yymsp[0].minor.yy612 = JOIN_TYPE_INNER; } + case 393: /* join_type ::= INNER */ +{ yymsp[0].minor.yy636 = JOIN_TYPE_INNER; } break; - case 395: /* 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 394: /* 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.yy632 = createSelectStmt(pCxt, yymsp[-7].minor.yy137, yymsp[-6].minor.yy424, yymsp[-5].minor.yy632); - yymsp[-8].minor.yy632 = addWhereClause(pCxt, yymsp[-8].minor.yy632, yymsp[-4].minor.yy632); - yymsp[-8].minor.yy632 = addPartitionByClause(pCxt, yymsp[-8].minor.yy632, yymsp[-3].minor.yy424); - yymsp[-8].minor.yy632 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy632, yymsp[-2].minor.yy632); - yymsp[-8].minor.yy632 = addGroupByClause(pCxt, yymsp[-8].minor.yy632, yymsp[-1].minor.yy424); - yymsp[-8].minor.yy632 = addHavingClause(pCxt, yymsp[-8].minor.yy632, yymsp[0].minor.yy632); + yymsp[-8].minor.yy674 = createSelectStmt(pCxt, yymsp[-7].minor.yy621, yymsp[-6].minor.yy530, yymsp[-5].minor.yy674); + yymsp[-8].minor.yy674 = addWhereClause(pCxt, yymsp[-8].minor.yy674, yymsp[-4].minor.yy674); + yymsp[-8].minor.yy674 = addPartitionByClause(pCxt, yymsp[-8].minor.yy674, yymsp[-3].minor.yy530); + yymsp[-8].minor.yy674 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy674, yymsp[-2].minor.yy674); + yymsp[-8].minor.yy674 = addGroupByClause(pCxt, yymsp[-8].minor.yy674, yymsp[-1].minor.yy530); + yymsp[-8].minor.yy674 = addHavingClause(pCxt, yymsp[-8].minor.yy674, yymsp[0].minor.yy674); } break; - case 398: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy137 = false; } + case 397: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy621 = false; } break; - case 399: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy424 = NULL; } + case 398: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy530 = NULL; } break; - case 404: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy632 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632), &yymsp[0].minor.yy209); } - yymsp[-1].minor.yy632 = yylhsminor.yy632; + case 403: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy674 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy674), &yymsp[0].minor.yy421); } + yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 405: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy632 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), &yymsp[0].minor.yy209); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 404: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy674 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), &yymsp[0].minor.yy421); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 410: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 427: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==427); - case 439: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==439); -{ yymsp[-2].minor.yy424 = yymsp[0].minor.yy424; } + case 409: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 426: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==426); + case 438: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==438); +{ yymsp[-2].minor.yy530 = yymsp[0].minor.yy530; } break; - case 412: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy632 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), releaseRawExprNode(pCxt, yymsp[-1].minor.yy632)); } + case 411: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy674 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), releaseRawExprNode(pCxt, yymsp[-1].minor.yy674)); } break; - case 413: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ -{ yymsp[-3].minor.yy632 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy632)); } + case 412: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ +{ yymsp[-3].minor.yy674 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy674)); } break; - case 414: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy632 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), NULL, yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } + case 413: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy674 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), NULL, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 415: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy632 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy632), releaseRawExprNode(pCxt, yymsp[-3].minor.yy632), yymsp[-1].minor.yy632, yymsp[0].minor.yy632); } + case 414: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy674 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy674), releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 417: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy632 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy632); } + case 416: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ +{ yymsp[-3].minor.yy674 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy674); } break; - case 419: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy632 = createFillNode(pCxt, yymsp[-1].minor.yy54, NULL); } + case 418: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy674 = createFillNode(pCxt, yymsp[-1].minor.yy320, NULL); } break; - case 420: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy632 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); } + case 419: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy674 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy530)); } break; - case 421: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy54 = FILL_MODE_NONE; } + case 420: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy320 = FILL_MODE_NONE; } break; - case 422: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy54 = FILL_MODE_PREV; } + case 421: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy320 = FILL_MODE_PREV; } break; - case 423: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy54 = FILL_MODE_NULL; } + case 422: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy320 = FILL_MODE_NULL; } break; - case 424: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy54 = FILL_MODE_LINEAR; } + case 423: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy320 = FILL_MODE_LINEAR; } break; - case 425: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy54 = FILL_MODE_NEXT; } + case 424: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy320 = FILL_MODE_NEXT; } break; - case 428: /* group_by_list ::= expression */ -{ yylhsminor.yy424 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); } - yymsp[0].minor.yy424 = yylhsminor.yy424; + case 427: /* group_by_list ::= expression */ +{ yylhsminor.yy530 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } + yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 429: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy632))); } - yymsp[-2].minor.yy424 = yylhsminor.yy424; + case 428: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } + yymsp[-2].minor.yy530 = yylhsminor.yy530; break; - case 432: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 431: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy632 = addOrderByClause(pCxt, yymsp[-3].minor.yy632, yymsp[-2].minor.yy424); - yylhsminor.yy632 = addSlimitClause(pCxt, yylhsminor.yy632, yymsp[-1].minor.yy632); - yylhsminor.yy632 = addLimitClause(pCxt, yylhsminor.yy632, yymsp[0].minor.yy632); + yylhsminor.yy674 = addOrderByClause(pCxt, yymsp[-3].minor.yy674, yymsp[-2].minor.yy530); + yylhsminor.yy674 = addSlimitClause(pCxt, yylhsminor.yy674, yymsp[-1].minor.yy674); + yylhsminor.yy674 = addLimitClause(pCxt, yylhsminor.yy674, yymsp[0].minor.yy674); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 434: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy632 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy632, yymsp[0].minor.yy632); } - yymsp[-3].minor.yy632 = yylhsminor.yy632; + case 433: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy674 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy674, yymsp[0].minor.yy674); } + yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 435: /* query_expression_body ::= query_expression_body UNION query_expression_body */ -{ yylhsminor.yy632 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy632, yymsp[0].minor.yy632); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 434: /* query_expression_body ::= query_expression_body UNION query_expression_body */ +{ yylhsminor.yy674 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy674, yymsp[0].minor.yy674); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 437: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ -{ yymsp[-5].minor.yy632 = yymsp[-4].minor.yy632; } - yy_destructor(yypParser,352,&yymsp[-3].minor); - yy_destructor(yypParser,353,&yymsp[-2].minor); - yy_destructor(yypParser,354,&yymsp[-1].minor); + case 436: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ +{ yymsp[-5].minor.yy674 = yymsp[-4].minor.yy674; } + yy_destructor(yypParser,351,&yymsp[-3].minor); + yy_destructor(yypParser,352,&yymsp[-2].minor); + yy_destructor(yypParser,353,&yymsp[-1].minor); break; - case 441: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 445: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==445); -{ yymsp[-1].minor.yy632 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 440: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 444: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==444); +{ yymsp[-1].minor.yy674 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 442: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 446: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==446); -{ yymsp[-3].minor.yy632 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 441: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 445: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==445); +{ yymsp[-3].minor.yy674 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 443: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 447: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==447); -{ yymsp[-3].minor.yy632 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 442: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 446: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==446); +{ yymsp[-3].minor.yy674 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 448: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy632 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy632); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 447: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy674); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 452: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy632 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy632), yymsp[-1].minor.yy578, yymsp[0].minor.yy217); } - yymsp[-2].minor.yy632 = yylhsminor.yy632; + case 451: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy674 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), yymsp[-1].minor.yy610, yymsp[0].minor.yy107); } + yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 453: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy578 = ORDER_ASC; } + case 452: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy610 = ORDER_ASC; } break; - case 454: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy578 = ORDER_ASC; } + case 453: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy610 = ORDER_ASC; } break; - case 455: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy578 = ORDER_DESC; } + case 454: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy610 = ORDER_DESC; } break; - case 456: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy217 = NULL_ORDER_DEFAULT; } + case 455: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy107 = NULL_ORDER_DEFAULT; } break; - case 457: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_FIRST; } + case 456: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy107 = NULL_ORDER_FIRST; } break; - case 458: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_LAST; } + case 457: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy107 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/parser/test/parInitialATest.cpp b/source/libs/parser/test/parInitialATest.cpp index cc23fbbc60..3247ff352e 100644 --- a/source/libs/parser/test/parInitialATest.cpp +++ b/source/libs/parser/test/parInitialATest.cpp @@ -43,7 +43,40 @@ TEST_F(ParserInitialATest, alterDatabase) { run("ALTER DATABASE wxy_db KEEP 2400"); } -// todo ALTER local +TEST_F(ParserInitialATest, alterLocal) { + useDb("root", "test"); + + pair expect; + + auto clearAlterLocal = [&]() { + expect.first.clear(); + expect.second.clear(); + }; + + auto setAlterLocalFunc = [&](const char* pConfig, const char* pValue = nullptr) { + expect.first.assign(pConfig); + if (nullptr != pValue) { + expect.second.assign(pValue); + } + }; + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_ALTER_LOCAL_STMT); + ASSERT_EQ(pQuery->execMode, QUERY_EXEC_MODE_LOCAL); + SAlterLocalStmt* pStmt = (SAlterLocalStmt*)pQuery->pRoot; + ASSERT_EQ(string(pStmt->config), expect.first); + ASSERT_EQ(string(pStmt->value), expect.second); + }); + + setAlterLocalFunc("resetlog"); + run("ALTER LOCAL 'resetlog'"); + clearAlterLocal(); + + setAlterLocalFunc("querypolicy", "2"); + run("ALTER LOCAL 'querypolicy' '2'"); + clearAlterLocal(); +} + // todo ALTER stable /* diff --git a/source/libs/parser/test/parInitialCTest.cpp b/source/libs/parser/test/parInitialCTest.cpp index cc47eabfd2..f0e556ac8b 100644 --- a/source/libs/parser/test/parInitialCTest.cpp +++ b/source/libs/parser/test/parInitialCTest.cpp @@ -242,9 +242,9 @@ TEST_F(ParserInitialCTest, createDatabaseSemanticCheck) { TEST_F(ParserInitialCTest, createDnode) { useDb("root", "test"); - run("CREATE DNODE abc1 PORT 7000"); + run("CREATE DNODE 'abc1' PORT 7000"); - run("CREATE DNODE 1.1.1.1 PORT 9000"); + run("CREATE DNODE '1.1.1.1' PORT 9000"); } // CREATE [AGGREGATE] FUNCTION [IF NOT EXISTS] func_name AS library_path OUTPUTTYPE type_name [BUFSIZE value] diff --git a/source/libs/parser/test/parShowToUse.cpp b/source/libs/parser/test/parShowToUse.cpp index d468ff25e3..940b6ea8ac 100644 --- a/source/libs/parser/test/parShowToUse.cpp +++ b/source/libs/parser/test/parShowToUse.cpp @@ -24,9 +24,45 @@ class ParserShowToUseTest : public ParserDdlTest {}; // todo SHOW accounts // todo SHOW apps // todo SHOW connections -// todo SHOW create database -// todo SHOW create stable -// todo SHOW create table + +TEST_F(ParserShowToUseTest, showCreateDatabase) { + useDb("root", "test"); + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_SHOW_CREATE_DATABASE_STMT); + ASSERT_EQ(pQuery->execMode, QUERY_EXEC_MODE_LOCAL); + ASSERT_TRUE(pQuery->haveResultSet); + ASSERT_NE(((SShowCreateDatabaseStmt*)pQuery->pRoot)->pCfg, nullptr); + }); + + run("SHOW CREATE DATABASE test"); +} + +TEST_F(ParserShowToUseTest, showCreateSTable) { + useDb("root", "test"); + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_SHOW_CREATE_STABLE_STMT); + ASSERT_EQ(pQuery->execMode, QUERY_EXEC_MODE_LOCAL); + ASSERT_TRUE(pQuery->haveResultSet); + ASSERT_NE(((SShowCreateTableStmt*)pQuery->pRoot)->pMeta, nullptr); + }); + + run("SHOW CREATE STABLE st1"); +} + +TEST_F(ParserShowToUseTest, showCreateTable) { + useDb("root", "test"); + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_SHOW_CREATE_TABLE_STMT); + ASSERT_EQ(pQuery->execMode, QUERY_EXEC_MODE_LOCAL); + ASSERT_TRUE(pQuery->haveResultSet); + ASSERT_NE(((SShowCreateTableStmt*)pQuery->pRoot)->pMeta, nullptr); + }); + + run("SHOW CREATE TABLE t1"); +} TEST_F(ParserShowToUseTest, showDatabases) { useDb("root", "test"); diff --git a/source/libs/parser/test/parTestUtil.h b/source/libs/parser/test/parTestUtil.h index afdb763448..3839d16624 100644 --- a/source/libs/parser/test/parTestUtil.h +++ b/source/libs/parser/test/parTestUtil.h @@ -20,6 +20,7 @@ #define ALLOW_FORBID_FUNC +#include "cmdnodes.h" #include "querynodes.h" #include "taoserror.h" From 48f730fbcf36f778584ce36f095b0ca42d67d5a5 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Sat, 18 Jun 2022 14:49:36 +0800 Subject: [PATCH 4/5] feat: the sql command 'create dnode' is compatible with the 2.x version syntax --- include/common/ttokendef.h | 380 +- source/libs/parser/inc/sql.y | 8 +- source/libs/parser/src/parAstCreater.c | 98 +- source/libs/parser/src/sql.c | 4227 +++++++++---------- source/libs/parser/test/parInitialCTest.cpp | 43 +- source/libs/parser/test/parInitialDTest.cpp | 45 +- source/libs/parser/test/parTestUtil.h | 2 + 7 files changed, 2422 insertions(+), 2381 deletions(-) diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index ab8b7889ad..1edfcbabad 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -64,195 +64,196 @@ #define TK_PORT 46 #define TK_NK_INTEGER 47 #define TK_DNODES 48 -#define TK_LOCAL 49 -#define TK_QNODE 50 -#define TK_BNODE 51 -#define TK_SNODE 52 -#define TK_MNODE 53 -#define TK_DATABASE 54 -#define TK_USE 55 -#define TK_IF 56 -#define TK_NOT 57 -#define TK_EXISTS 58 -#define TK_BUFFER 59 -#define TK_CACHELAST 60 -#define TK_COMP 61 -#define TK_DURATION 62 -#define TK_NK_VARIABLE 63 -#define TK_FSYNC 64 -#define TK_MAXROWS 65 -#define TK_MINROWS 66 -#define TK_KEEP 67 -#define TK_PAGES 68 -#define TK_PAGESIZE 69 -#define TK_PRECISION 70 -#define TK_REPLICA 71 -#define TK_STRICT 72 -#define TK_WAL 73 -#define TK_VGROUPS 74 -#define TK_SINGLE_STABLE 75 -#define TK_RETENTIONS 76 -#define TK_SCHEMALESS 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_MAX_DELAY 111 -#define TK_WATERMARK 112 -#define TK_ROLLUP 113 -#define TK_TTL 114 -#define TK_SMA 115 -#define TK_FIRST 116 -#define TK_LAST 117 -#define TK_SHOW 118 -#define TK_DATABASES 119 -#define TK_TABLES 120 -#define TK_STABLES 121 -#define TK_MNODES 122 -#define TK_MODULES 123 -#define TK_QNODES 124 -#define TK_FUNCTIONS 125 -#define TK_INDEXES 126 -#define TK_ACCOUNTS 127 -#define TK_APPS 128 -#define TK_CONNECTIONS 129 -#define TK_LICENCE 130 -#define TK_GRANTS 131 -#define TK_QUERIES 132 -#define TK_SCORES 133 -#define TK_TOPICS 134 -#define TK_VARIABLES 135 -#define TK_BNODES 136 -#define TK_SNODES 137 -#define TK_CLUSTER 138 -#define TK_TRANSACTIONS 139 -#define TK_LIKE 140 -#define TK_INDEX 141 -#define TK_FULLTEXT 142 -#define TK_FUNCTION 143 -#define TK_INTERVAL 144 -#define TK_TOPIC 145 -#define TK_AS 146 -#define TK_CONSUMER 147 -#define TK_GROUP 148 -#define TK_DESC 149 -#define TK_DESCRIBE 150 -#define TK_RESET 151 -#define TK_QUERY 152 -#define TK_CACHE 153 -#define TK_EXPLAIN 154 -#define TK_ANALYZE 155 -#define TK_VERBOSE 156 -#define TK_NK_BOOL 157 -#define TK_RATIO 158 -#define TK_NK_FLOAT 159 -#define TK_COMPACT 160 -#define TK_VNODES 161 -#define TK_IN 162 -#define TK_OUTPUTTYPE 163 -#define TK_AGGREGATE 164 -#define TK_BUFSIZE 165 -#define TK_STREAM 166 -#define TK_INTO 167 -#define TK_TRIGGER 168 -#define TK_AT_ONCE 169 -#define TK_WINDOW_CLOSE 170 -#define TK_KILL 171 -#define TK_CONNECTION 172 -#define TK_TRANSACTION 173 -#define TK_BALANCE 174 -#define TK_VGROUP 175 -#define TK_MERGE 176 -#define TK_REDISTRIBUTE 177 -#define TK_SPLIT 178 -#define TK_SYNCDB 179 -#define TK_DELETE 180 -#define TK_NULL 181 -#define TK_NK_QUESTION 182 -#define TK_NK_ARROW 183 -#define TK_ROWTS 184 -#define TK_TBNAME 185 -#define TK_QSTARTTS 186 -#define TK_QENDTS 187 -#define TK_WSTARTTS 188 -#define TK_WENDTS 189 -#define TK_WDURATION 190 -#define TK_CAST 191 -#define TK_NOW 192 -#define TK_TODAY 193 -#define TK_TIMEZONE 194 -#define TK_COUNT 195 -#define TK_LAST_ROW 196 -#define TK_BETWEEN 197 -#define TK_IS 198 -#define TK_NK_LT 199 -#define TK_NK_GT 200 -#define TK_NK_LE 201 -#define TK_NK_GE 202 -#define TK_NK_NE 203 -#define TK_MATCH 204 -#define TK_NMATCH 205 -#define TK_CONTAINS 206 -#define TK_JOIN 207 -#define TK_INNER 208 -#define TK_SELECT 209 -#define TK_DISTINCT 210 -#define TK_WHERE 211 -#define TK_PARTITION 212 -#define TK_BY 213 -#define TK_SESSION 214 -#define TK_STATE_WINDOW 215 -#define TK_SLIDING 216 -#define TK_FILL 217 -#define TK_VALUE 218 -#define TK_NONE 219 -#define TK_PREV 220 -#define TK_LINEAR 221 -#define TK_NEXT 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_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_DURATION 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_SCHEMALESS 78 +#define TK_NK_COLON 79 +#define TK_TABLE 80 +#define TK_NK_LP 81 +#define TK_NK_RP 82 +#define TK_STABLE 83 +#define TK_ADD 84 +#define TK_COLUMN 85 +#define TK_MODIFY 86 +#define TK_RENAME 87 +#define TK_TAG 88 +#define TK_SET 89 +#define TK_NK_EQ 90 +#define TK_USING 91 +#define TK_TAGS 92 +#define TK_COMMENT 93 +#define TK_BOOL 94 +#define TK_TINYINT 95 +#define TK_SMALLINT 96 +#define TK_INT 97 +#define TK_INTEGER 98 +#define TK_BIGINT 99 +#define TK_FLOAT 100 +#define TK_DOUBLE 101 +#define TK_BINARY 102 +#define TK_TIMESTAMP 103 +#define TK_NCHAR 104 +#define TK_UNSIGNED 105 +#define TK_JSON 106 +#define TK_VARCHAR 107 +#define TK_MEDIUMBLOB 108 +#define TK_BLOB 109 +#define TK_VARBINARY 110 +#define TK_DECIMAL 111 +#define TK_MAX_DELAY 112 +#define TK_WATERMARK 113 +#define TK_ROLLUP 114 +#define TK_TTL 115 +#define TK_SMA 116 +#define TK_FIRST 117 +#define TK_LAST 118 +#define TK_SHOW 119 +#define TK_DATABASES 120 +#define TK_TABLES 121 +#define TK_STABLES 122 +#define TK_MNODES 123 +#define TK_MODULES 124 +#define TK_QNODES 125 +#define TK_FUNCTIONS 126 +#define TK_INDEXES 127 +#define TK_ACCOUNTS 128 +#define TK_APPS 129 +#define TK_CONNECTIONS 130 +#define TK_LICENCE 131 +#define TK_GRANTS 132 +#define TK_QUERIES 133 +#define TK_SCORES 134 +#define TK_TOPICS 135 +#define TK_VARIABLES 136 +#define TK_BNODES 137 +#define TK_SNODES 138 +#define TK_CLUSTER 139 +#define TK_TRANSACTIONS 140 +#define TK_LIKE 141 +#define TK_INDEX 142 +#define TK_FULLTEXT 143 +#define TK_FUNCTION 144 +#define TK_INTERVAL 145 +#define TK_TOPIC 146 +#define TK_AS 147 +#define TK_CONSUMER 148 +#define TK_GROUP 149 +#define TK_DESC 150 +#define TK_DESCRIBE 151 +#define TK_RESET 152 +#define TK_QUERY 153 +#define TK_CACHE 154 +#define TK_EXPLAIN 155 +#define TK_ANALYZE 156 +#define TK_VERBOSE 157 +#define TK_NK_BOOL 158 +#define TK_RATIO 159 +#define TK_NK_FLOAT 160 +#define TK_COMPACT 161 +#define TK_VNODES 162 +#define TK_IN 163 +#define TK_OUTPUTTYPE 164 +#define TK_AGGREGATE 165 +#define TK_BUFSIZE 166 +#define TK_STREAM 167 +#define TK_INTO 168 +#define TK_TRIGGER 169 +#define TK_AT_ONCE 170 +#define TK_WINDOW_CLOSE 171 +#define TK_KILL 172 +#define TK_CONNECTION 173 +#define TK_TRANSACTION 174 +#define TK_BALANCE 175 +#define TK_VGROUP 176 +#define TK_MERGE 177 +#define TK_REDISTRIBUTE 178 +#define TK_SPLIT 179 +#define TK_SYNCDB 180 +#define TK_DELETE 181 +#define TK_NULL 182 +#define TK_NK_QUESTION 183 +#define TK_NK_ARROW 184 +#define TK_ROWTS 185 +#define TK_TBNAME 186 +#define TK_QSTARTTS 187 +#define TK_QENDTS 188 +#define TK_WSTARTTS 189 +#define TK_WENDTS 190 +#define TK_WDURATION 191 +#define TK_CAST 192 +#define TK_NOW 193 +#define TK_TODAY 194 +#define TK_TIMEZONE 195 +#define TK_COUNT 196 +#define TK_LAST_ROW 197 +#define TK_BETWEEN 198 +#define TK_IS 199 +#define TK_NK_LT 200 +#define TK_NK_GT 201 +#define TK_NK_LE 202 +#define TK_NK_GE 203 +#define TK_NK_NE 204 +#define TK_MATCH 205 +#define TK_NMATCH 206 +#define TK_CONTAINS 207 +#define TK_JOIN 208 +#define TK_INNER 209 +#define TK_SELECT 210 +#define TK_DISTINCT 211 +#define TK_WHERE 212 +#define TK_PARTITION 213 +#define TK_BY 214 +#define TK_SESSION 215 +#define TK_STATE_WINDOW 216 +#define TK_SLIDING 217 +#define TK_FILL 218 +#define TK_VALUE 219 +#define TK_NONE 220 +#define TK_PREV 221 +#define TK_LINEAR 222 +#define TK_NEXT 223 +#define TK_HAVING 224 +#define TK_ORDER 225 +#define TK_SLIMIT 226 +#define TK_SOFFSET 227 +#define TK_LIMIT 228 +#define TK_OFFSET 229 +#define TK_ASC 230 +#define TK_NULLS 231 +#define TK_ID 232 +#define TK_NK_BITNOT 233 +#define TK_INSERT 234 +#define TK_VALUES 235 +#define TK_IMPORT 236 +#define TK_NK_SEMI 237 +#define TK_FILE 238 #define TK_NK_SPACE 300 #define TK_NK_COMMENT 301 @@ -260,7 +261,6 @@ #define TK_NK_HEX 303 // hex number 0x123 #define TK_NK_OCT 304 // oct number #define TK_NK_BIN 305 // bin format data 0b111 -#define TK_NK_IPTOKEN 306 #define TK_NK_NIL 65535 diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 8b17fcce6c..476485904c 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -111,7 +111,7 @@ priv_level(A) ::= db_name(B) NK_DOT NK_STAR. /************************************************ 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); } +cmd ::= CREATE DNODE dnode_endpoint(A) PORT NK_INTEGER(B). { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &A, &B); } cmd ::= DROP DNODE NK_INTEGER(A). { pCxt->pRootNode = createDropDnodeStmt(pCxt, &A); } cmd ::= DROP DNODE dnode_endpoint(A). { pCxt->pRootNode = createDropDnodeStmt(pCxt, &A); } cmd ::= ALTER DNODE NK_INTEGER(A) NK_STRING(B). { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &A, &B, NULL); } @@ -122,10 +122,8 @@ cmd ::= ALTER ALL DNODES NK_STRING(A) NK_STRING(B). %type dnode_endpoint { SToken } %destructor dnode_endpoint { } dnode_endpoint(A) ::= NK_STRING(B). { A = B; } - -%type dnode_host_name { SToken } -%destructor dnode_host_name { } -dnode_host_name(A) ::= NK_STRING(B). { A = B; } +dnode_endpoint(A) ::= NK_ID(B). { A = B; } +dnode_endpoint(A) ::= NK_IPTOKEN(B). { A = B; } /************************************************ alter local *********************************************************/ cmd ::= ALTER LOCAL NK_STRING(A). { pCxt->pRootNode = createAlterLocalStmt(pCxt, &A, NULL); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 462f1baec6..92105e50a2 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -18,6 +18,7 @@ #include "parAst.h" #include "parUtil.h" +#include "tglobal.h" #include "ttime.h" #define CHECK_OUT_OF_MEM(p) \ @@ -99,7 +100,7 @@ static bool checkPassword(SAstCreateContext* pCxt, const SToken* pPasswordToken, } else if (pPasswordToken->n >= (TSDB_USET_PASSWORD_LEN + 2)) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_NAME_OR_PASSWD_TOO_LONG); } else { - COPY_STRING_FORM_ID_TOKEN(pPassword, pPasswordToken); + strncpy(pPassword, pPasswordToken->z, pPasswordToken->n); strdequote(pPassword); if (strtrim(pPassword) <= 0) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_PASSWD_EMPTY); @@ -110,50 +111,52 @@ static bool checkPassword(SAstCreateContext* pCxt, const SToken* pPasswordToken, return TSDB_CODE_SUCCESS == pCxt->errCode; } -static bool checkAndSplitEndpoint(SAstCreateContext* pCxt, const SToken* pEp, char* pFqdn, int32_t* pPort) { +static int32_t parsePort(SAstCreateContext* pCxt, const char* p, int32_t* pPort) { + *pPort = taosStr2Int32(p, NULL, 10); + if (*pPort >= UINT16_MAX || *pPort <= 0) { + return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_PORT); + } + return TSDB_CODE_SUCCESS; +} + +static int32_t parseEndpoint(SAstCreateContext* pCxt, const SToken* pEp, char* pFqdn, int32_t* pPort) { + if (pEp->n >= (NULL == pPort ? (TSDB_FQDN_LEN + 1 + 5) : TSDB_FQDN_LEN)) { // format 'fqdn:port' or 'fqdn' + return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_NAME_OR_PASSWD_TOO_LONG); + } + + char ep[TSDB_FQDN_LEN + 1 + 5]; + COPY_STRING_FORM_ID_TOKEN(ep, pEp); + strdequote(ep); + strtrim(ep); + if (NULL == pPort) { + strcpy(pFqdn, ep); + return TSDB_CODE_SUCCESS; + } + char* pColon = strchr(ep, ':'); + if (NULL == pColon) { + *pPort = tsServerPort; + strcpy(pFqdn, ep); + return TSDB_CODE_SUCCESS; + } + strncpy(pFqdn, ep, pColon - ep); + return parsePort(pCxt, pColon + 1, pPort); +} + +static bool checkAndSplitEndpoint(SAstCreateContext* pCxt, const SToken* pEp, const SToken* pPortToken, char* pFqdn, + int32_t* pPort) { if (NULL == pEp) { pCxt->errCode = TSDB_CODE_PAR_SYNTAX_ERROR; - } else if (pEp->n >= TSDB_FQDN_LEN + 2 + 6) { // format 'fqdn:port' - pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_NAME_OR_PASSWD_TOO_LONG); - } else { - char ep[TSDB_FQDN_LEN + 6]; - COPY_STRING_FORM_STR_TOKEN(ep, pEp); - strdequote(ep); - strtrim(ep); - char* pColon = strchr(ep, ':'); - if (NULL == pColon) { - pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_ENDPOINT); - } else { - strncpy(pFqdn, ep, pColon - ep); - *pPort = taosStr2Int32(pColon + 1, NULL, 10); - if (*pPort >= UINT16_MAX || *pPort <= 0) { - pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_PORT); - } - } + return false; } - return TSDB_CODE_SUCCESS == pCxt->errCode; -} -static bool checkFqdn(SAstCreateContext* pCxt, const SToken* pFqdn) { - if (NULL == pFqdn) { - pCxt->errCode = TSDB_CODE_PAR_SYNTAX_ERROR; - } else { - if (pFqdn->n >= TSDB_FQDN_LEN) { - pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_NAME_OR_PASSWD_TOO_LONG); - } + if (NULL != pPortToken) { + pCxt->errCode = parsePort(pCxt, pPortToken->z, pPort); } - return TSDB_CODE_SUCCESS == pCxt->errCode; -} -static bool checkPort(SAstCreateContext* pCxt, const SToken* pPortToken, int32_t* pPort) { - if (NULL == pPortToken) { - pCxt->errCode = TSDB_CODE_PAR_SYNTAX_ERROR; - } else { - *pPort = taosStr2Int32(pPortToken->z, NULL, 10); - if (*pPort >= UINT16_MAX || *pPort <= 0) { - pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_PORT); - } + if (TSDB_CODE_SUCCESS == pCxt->errCode) { + pCxt->errCode = parseEndpoint(pCxt, pEp, pFqdn, (NULL != pPortToken ? NULL : pPort)); } + return TSDB_CODE_SUCCESS == pCxt->errCode; } @@ -1177,23 +1180,12 @@ SNode* createDropUserStmt(SAstCreateContext* pCxt, SToken* pUserName) { SNode* createCreateDnodeStmt(SAstCreateContext* pCxt, const SToken* pFqdn, const SToken* pPort) { CHECK_PARSER_STATUS(pCxt); - int32_t port = 0; - char fqdn[TSDB_FQDN_LEN] = {0}; - if (NULL == pPort) { - if (!checkAndSplitEndpoint(pCxt, pFqdn, fqdn, &port)) { - return NULL; - } - } else if (!checkFqdn(pCxt, pFqdn) || !checkPort(pCxt, pPort, &port)) { - return NULL; - } SCreateDnodeStmt* pStmt = (SCreateDnodeStmt*)nodesMakeNode(QUERY_NODE_CREATE_DNODE_STMT); CHECK_OUT_OF_MEM(pStmt); - if (NULL == pPort) { - strcpy(pStmt->fqdn, fqdn); - } else { - COPY_STRING_FORM_ID_TOKEN(pStmt->fqdn, pFqdn); + if (!checkAndSplitEndpoint(pCxt, pFqdn, pPort, pStmt->fqdn, &pStmt->port)) { + nodesDestroyNode((SNode*)pStmt); + return NULL; } - pStmt->port = port; return (SNode*)pStmt; } @@ -1204,7 +1196,7 @@ SNode* createDropDnodeStmt(SAstCreateContext* pCxt, const SToken* pDnode) { if (TK_NK_INTEGER == pDnode->type) { pStmt->dnodeId = taosStr2Int32(pDnode->z, NULL, 10); } else { - if (!checkAndSplitEndpoint(pCxt, pDnode, pStmt->fqdn, &pStmt->port)) { + if (!checkAndSplitEndpoint(pCxt, pDnode, NULL, pStmt->fqdn, &pStmt->port)) { nodesDestroyNode((SNode*)pStmt); return NULL; } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 22f1c17742..a950b4efb0 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -138,17 +138,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 624 -#define YYNRULE 458 -#define YYNTOKEN 238 -#define YY_MAX_SHIFT 623 +#define YYNSTATE 622 +#define YYNRULE 459 +#define YYNTOKEN 239 +#define YY_MAX_SHIFT 621 #define YY_MIN_SHIFTREDUCE 912 -#define YY_MAX_SHIFTREDUCE 1369 -#define YY_ERROR_ACTION 1370 -#define YY_ACCEPT_ACTION 1371 -#define YY_NO_ACTION 1372 -#define YY_MIN_REDUCE 1373 -#define YY_MAX_REDUCE 1830 +#define YY_MAX_SHIFTREDUCE 1370 +#define YY_ERROR_ACTION 1371 +#define YY_ACCEPT_ACTION 1372 +#define YY_NO_ACTION 1373 +#define YY_MIN_REDUCE 1374 +#define YY_MAX_REDUCE 1832 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -215,622 +215,594 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2207) +#define YY_ACTTAB_COUNT (2098) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 1494, 1492, 355, 1677, 1664, 536, 536, 300, 28, 233, - /* 10 */ 135, 1661, 35, 33, 1460, 1661, 1664, 106, 106, 317, - /* 20 */ 309, 535, 1183, 535, 434, 439, 394, 1661, 942, 398, - /* 30 */ 395, 1693, 396, 1405, 1503, 1503, 496, 1657, 1663, 499, - /* 40 */ 1209, 1657, 1663, 1808, 1647, 400, 519, 1181, 539, 535, - /* 50 */ 472, 1205, 539, 1657, 1663, 149, 1371, 14, 1677, 1805, - /* 60 */ 35, 33, 1310, 1189, 539, 114, 946, 947, 309, 144, - /* 70 */ 1183, 1706, 1207, 1208, 83, 1678, 522, 1680, 1681, 518, - /* 80 */ 1, 539, 1542, 38, 1746, 79, 1693, 1480, 302, 1742, - /* 90 */ 145, 1808, 1693, 496, 520, 1181, 56, 1396, 115, 1647, - /* 100 */ 489, 519, 620, 149, 112, 14, 1495, 1805, 1774, 39, - /* 110 */ 403, 1189, 396, 1405, 500, 325, 1252, 1253, 498, 146, - /* 120 */ 1753, 1754, 114, 1758, 11, 10, 1706, 413, 2, 82, - /* 130 */ 1678, 522, 1680, 1681, 518, 1808, 539, 488, 1647, 1746, - /* 140 */ 448, 447, 490, 283, 1742, 446, 1808, 1807, 111, 443, - /* 150 */ 620, 1805, 442, 441, 440, 1808, 1808, 1184, 150, 1182, - /* 160 */ 402, 112, 1805, 398, 1252, 1253, 224, 151, 149, 1090, - /* 170 */ 1091, 1805, 1805, 134, 56, 1385, 147, 1753, 1754, 571, - /* 180 */ 1758, 1187, 1188, 159, 1234, 1235, 1237, 1238, 1239, 1240, - /* 190 */ 1241, 515, 537, 1249, 1250, 1251, 1254, 132, 122, 121, - /* 200 */ 568, 567, 566, 24, 1286, 1184, 1506, 1182, 62, 152, - /* 210 */ 26, 61, 152, 36, 34, 32, 31, 30, 35, 33, - /* 220 */ 36, 34, 32, 31, 30, 152, 309, 346, 1183, 1187, - /* 230 */ 1188, 1395, 1234, 1235, 1237, 1238, 1239, 1240, 1241, 515, - /* 240 */ 537, 1249, 1250, 1251, 1254, 293, 496, 348, 344, 1010, - /* 250 */ 354, 96, 353, 1181, 95, 94, 93, 92, 91, 90, - /* 260 */ 89, 88, 87, 14, 1677, 1012, 35, 33, 453, 1189, - /* 270 */ 182, 196, 1647, 1208, 309, 114, 1183, 36, 34, 32, - /* 280 */ 31, 30, 143, 461, 57, 573, 2, 430, 426, 422, - /* 290 */ 418, 181, 1693, 294, 1478, 292, 291, 195, 436, 1808, - /* 300 */ 520, 1181, 438, 152, 1760, 1647, 1317, 519, 620, 456, - /* 310 */ 1665, 1806, 1207, 450, 112, 1805, 65, 1189, 194, 179, - /* 320 */ 500, 1661, 1252, 1253, 437, 1207, 66, 282, 1757, 148, - /* 330 */ 1753, 1754, 1706, 1758, 8, 82, 1678, 522, 1680, 1681, - /* 340 */ 518, 361, 539, 51, 1635, 1746, 50, 1657, 1663, 283, - /* 350 */ 1742, 36, 34, 32, 31, 30, 620, 203, 539, 1555, - /* 360 */ 56, 1808, 523, 1184, 321, 1182, 299, 1548, 1550, 385, - /* 370 */ 1252, 1253, 1598, 149, 1206, 1553, 1394, 1805, 178, 281, - /* 380 */ 170, 1334, 175, 56, 408, 67, 571, 1187, 1188, 334, - /* 390 */ 1234, 1235, 1237, 1238, 1239, 1240, 1241, 515, 537, 1249, - /* 400 */ 1250, 1251, 1254, 168, 565, 122, 121, 568, 567, 566, - /* 410 */ 1393, 1184, 1189, 1182, 1366, 163, 162, 1647, 482, 1332, - /* 420 */ 1333, 1335, 1336, 576, 35, 33, 1255, 36, 34, 32, - /* 430 */ 31, 30, 309, 571, 1183, 1187, 1188, 496, 1234, 1235, - /* 440 */ 1237, 1238, 1239, 1240, 1241, 515, 537, 1249, 1250, 1251, - /* 450 */ 1254, 1647, 122, 121, 568, 567, 566, 1549, 1550, 1181, - /* 460 */ 32, 31, 30, 152, 536, 1555, 114, 36, 34, 32, - /* 470 */ 31, 30, 35, 33, 1677, 1189, 154, 1236, 612, 536, - /* 480 */ 309, 1554, 1183, 445, 444, 131, 500, 536, 1555, 152, - /* 490 */ 1236, 359, 9, 1503, 1365, 314, 1324, 589, 587, 360, - /* 500 */ 462, 523, 1693, 1392, 1553, 112, 1373, 1181, 1503, 312, - /* 510 */ 499, 1597, 152, 1391, 620, 1647, 1503, 519, 485, 1260, - /* 520 */ 222, 1753, 495, 1189, 494, 1207, 1488, 1808, 1252, 1253, - /* 530 */ 105, 104, 103, 102, 101, 100, 99, 98, 97, 151, - /* 540 */ 9, 1808, 1706, 1805, 1647, 83, 1678, 522, 1680, 1681, - /* 550 */ 518, 73, 539, 149, 1647, 1746, 1434, 1805, 536, 302, - /* 560 */ 1742, 145, 620, 36, 34, 32, 31, 30, 64, 1184, - /* 570 */ 370, 1182, 1496, 225, 1588, 1555, 1252, 1253, 478, 1773, - /* 580 */ 536, 110, 320, 536, 1390, 161, 1490, 1503, 491, 486, - /* 590 */ 1498, 1553, 371, 1187, 1188, 412, 1234, 1235, 1237, 1238, - /* 600 */ 1239, 1240, 1241, 515, 537, 1249, 1250, 1251, 1254, 1503, - /* 610 */ 536, 64, 1503, 1274, 536, 448, 447, 1184, 256, 1182, - /* 620 */ 446, 1533, 1500, 111, 443, 1647, 1624, 442, 441, 440, - /* 630 */ 35, 33, 1221, 1499, 197, 1279, 54, 1760, 309, 1503, - /* 640 */ 1183, 1187, 1188, 1503, 1234, 1235, 1237, 1238, 1239, 1240, - /* 650 */ 1241, 515, 537, 1249, 1250, 1251, 1254, 536, 1389, 313, - /* 660 */ 1388, 1756, 536, 1387, 1486, 1181, 1481, 132, 536, 470, - /* 670 */ 25, 536, 1479, 536, 533, 280, 1505, 1205, 1431, 1309, - /* 680 */ 534, 1189, 1374, 246, 378, 323, 1503, 390, 1677, 1384, - /* 690 */ 1236, 1503, 1165, 1166, 1760, 946, 947, 1503, 2, 1647, - /* 700 */ 1503, 1647, 1503, 96, 1647, 391, 95, 94, 93, 92, - /* 710 */ 91, 90, 89, 88, 87, 319, 1693, 1383, 1755, 577, - /* 720 */ 620, 1475, 413, 132, 520, 1210, 1386, 1382, 573, 1647, - /* 730 */ 1647, 519, 1505, 187, 1252, 1253, 185, 595, 594, 593, - /* 740 */ 324, 7, 592, 591, 590, 116, 585, 584, 583, 582, - /* 750 */ 581, 580, 579, 578, 124, 574, 1706, 1381, 1647, 84, - /* 760 */ 1678, 522, 1680, 1681, 518, 507, 539, 569, 1647, 1746, - /* 770 */ 1546, 616, 615, 1745, 1742, 1184, 389, 1182, 1380, 384, - /* 780 */ 383, 382, 381, 380, 377, 376, 375, 374, 373, 369, - /* 790 */ 368, 367, 366, 365, 364, 363, 362, 200, 1647, 1187, - /* 800 */ 1188, 504, 1234, 1235, 1237, 1238, 1239, 1240, 1241, 515, - /* 810 */ 537, 1249, 1250, 1251, 1254, 133, 588, 1379, 958, 1647, - /* 820 */ 262, 1378, 36, 34, 32, 31, 30, 570, 1765, 1305, - /* 830 */ 1546, 1377, 260, 53, 1376, 1677, 52, 36, 34, 32, - /* 840 */ 31, 30, 322, 432, 438, 1183, 189, 1421, 120, 188, - /* 850 */ 132, 209, 164, 46, 212, 514, 349, 502, 1647, 1505, - /* 860 */ 512, 1677, 1647, 1693, 469, 191, 437, 284, 190, 449, - /* 870 */ 1181, 520, 1647, 1417, 1415, 1647, 1647, 56, 519, 460, - /* 880 */ 11, 10, 284, 37, 193, 1308, 1189, 192, 474, 1693, - /* 890 */ 37, 1221, 458, 1331, 214, 451, 454, 517, 564, 1272, - /* 900 */ 1368, 1369, 1647, 1706, 519, 1461, 83, 1678, 522, 1680, - /* 910 */ 1681, 518, 1305, 539, 1272, 81, 1746, 1677, 228, 1667, - /* 920 */ 302, 1742, 1821, 1280, 37, 620, 235, 118, 1192, 1706, - /* 930 */ 1242, 1780, 277, 1678, 522, 1680, 1681, 518, 516, 539, - /* 940 */ 513, 1718, 1191, 119, 483, 1693, 60, 59, 358, 463, - /* 950 */ 1273, 158, 508, 520, 120, 1669, 46, 352, 1647, 544, - /* 960 */ 519, 119, 1694, 1406, 1138, 1273, 237, 528, 279, 219, - /* 970 */ 431, 342, 1278, 340, 336, 332, 155, 327, 120, 107, - /* 980 */ 1184, 119, 1182, 243, 1264, 1706, 505, 1278, 84, 1678, - /* 990 */ 522, 1680, 1681, 518, 1041, 539, 255, 1776, 1746, 1069, - /* 1000 */ 1543, 1073, 511, 1742, 1187, 1188, 152, 27, 307, 1267, - /* 1010 */ 1268, 1269, 1270, 1271, 1275, 1276, 1277, 1677, 1080, 1078, - /* 1020 */ 982, 123, 27, 307, 1267, 1268, 1269, 1270, 1271, 1275, - /* 1030 */ 1276, 1277, 78, 497, 227, 230, 983, 3, 232, 5, - /* 1040 */ 1195, 326, 75, 1205, 333, 1693, 329, 289, 1010, 290, - /* 1050 */ 252, 1149, 372, 520, 1194, 160, 1590, 379, 1647, 387, - /* 1060 */ 519, 386, 392, 1211, 388, 393, 1214, 1048, 562, 561, - /* 1070 */ 560, 1052, 559, 1054, 1055, 558, 1057, 555, 1677, 1063, - /* 1080 */ 552, 1065, 1066, 549, 546, 1706, 401, 167, 83, 1678, - /* 1090 */ 522, 1680, 1681, 518, 404, 539, 1213, 169, 1746, 405, - /* 1100 */ 1215, 406, 302, 1742, 1821, 172, 1693, 407, 174, 410, - /* 1110 */ 1212, 411, 409, 1803, 520, 177, 63, 414, 180, 1647, - /* 1120 */ 433, 519, 435, 1493, 86, 184, 1489, 298, 186, 126, - /* 1130 */ 127, 198, 1629, 1491, 253, 1487, 128, 129, 465, 201, - /* 1140 */ 464, 1677, 471, 204, 473, 1210, 1706, 475, 207, 83, - /* 1150 */ 1678, 522, 1680, 1681, 518, 1677, 539, 496, 484, 1746, - /* 1160 */ 1628, 476, 1777, 302, 1742, 1821, 468, 1787, 6, 1693, - /* 1170 */ 526, 481, 301, 1786, 1764, 487, 493, 520, 480, 1767, - /* 1180 */ 210, 218, 1647, 1693, 519, 1305, 114, 139, 113, 1209, - /* 1190 */ 40, 520, 213, 1804, 509, 506, 1647, 500, 519, 303, - /* 1200 */ 18, 1761, 529, 1824, 524, 220, 500, 525, 311, 1706, - /* 1210 */ 1596, 500, 269, 1678, 522, 1680, 1681, 518, 531, 539, - /* 1220 */ 1595, 530, 241, 1706, 226, 112, 269, 1678, 522, 1680, - /* 1230 */ 1681, 518, 221, 539, 1677, 1727, 239, 254, 1808, 72, - /* 1240 */ 222, 1753, 495, 74, 494, 1677, 1547, 1808, 1476, 542, - /* 1250 */ 151, 257, 1808, 229, 1805, 1504, 249, 503, 510, 149, - /* 1260 */ 231, 619, 1693, 1805, 149, 623, 138, 1641, 1805, 263, - /* 1270 */ 520, 270, 264, 1693, 259, 1647, 261, 519, 1640, 251, - /* 1280 */ 47, 520, 58, 1639, 328, 1636, 1647, 330, 519, 331, - /* 1290 */ 1176, 125, 1177, 335, 156, 1634, 611, 607, 603, 599, - /* 1300 */ 250, 337, 1706, 338, 339, 136, 1678, 522, 1680, 1681, - /* 1310 */ 518, 1677, 539, 1706, 1633, 341, 84, 1678, 522, 1680, - /* 1320 */ 1681, 518, 1632, 539, 343, 80, 1746, 1677, 244, 1631, - /* 1330 */ 345, 1743, 157, 347, 1614, 350, 1152, 351, 1151, 1693, - /* 1340 */ 1630, 1608, 1607, 356, 357, 1606, 1605, 520, 501, 1822, - /* 1350 */ 1124, 1583, 1647, 1582, 519, 1693, 1581, 1580, 1579, 1578, - /* 1360 */ 1577, 532, 1576, 520, 1575, 479, 1574, 1573, 1647, 1572, - /* 1370 */ 519, 1571, 1570, 1569, 1568, 1567, 1566, 117, 1565, 1706, - /* 1380 */ 1564, 1563, 278, 1678, 522, 1680, 1681, 518, 477, 539, - /* 1390 */ 1126, 205, 1562, 1677, 1561, 1706, 1560, 1559, 273, 1678, - /* 1400 */ 522, 1680, 1681, 518, 1558, 539, 1557, 1556, 1433, 1402, - /* 1410 */ 1157, 142, 199, 1401, 949, 948, 1677, 165, 1622, 108, - /* 1420 */ 1616, 1693, 166, 397, 109, 1604, 171, 399, 173, 520, - /* 1430 */ 1603, 1593, 176, 1482, 1647, 492, 519, 1432, 1430, 1428, - /* 1440 */ 415, 1426, 417, 976, 1693, 419, 1424, 416, 420, 421, - /* 1450 */ 1414, 425, 520, 1413, 429, 424, 1400, 1647, 1484, 519, - /* 1460 */ 586, 1706, 423, 427, 136, 1678, 522, 1680, 1681, 518, - /* 1470 */ 306, 539, 428, 1677, 1083, 45, 1084, 1483, 183, 1009, - /* 1480 */ 1422, 1008, 1007, 1006, 1706, 588, 295, 278, 1678, 522, - /* 1490 */ 1680, 1681, 518, 1418, 539, 1003, 1677, 296, 1002, 1416, - /* 1500 */ 297, 1693, 1001, 1399, 457, 452, 455, 1398, 1823, 517, - /* 1510 */ 459, 85, 1621, 1159, 1647, 1615, 519, 130, 466, 1602, - /* 1520 */ 1601, 1600, 1592, 68, 1693, 4, 206, 37, 15, 217, - /* 1530 */ 211, 43, 520, 216, 49, 1330, 23, 1647, 1667, 519, - /* 1540 */ 16, 1706, 137, 215, 277, 1678, 522, 1680, 1681, 518, - /* 1550 */ 308, 539, 1677, 1719, 22, 223, 41, 1323, 42, 69, - /* 1560 */ 140, 1677, 208, 13, 1706, 202, 10, 278, 1678, 522, - /* 1570 */ 1680, 1681, 518, 1677, 539, 17, 1354, 1353, 1302, 1301, - /* 1580 */ 1693, 1359, 1348, 304, 1358, 1357, 467, 305, 520, 1693, - /* 1590 */ 19, 48, 141, 1647, 1244, 519, 153, 520, 29, 1229, - /* 1600 */ 1591, 1693, 1647, 12, 519, 1265, 310, 1243, 20, 520, - /* 1610 */ 240, 521, 21, 236, 1647, 238, 519, 527, 1666, 70, - /* 1620 */ 1706, 75, 234, 278, 1678, 522, 1680, 1681, 518, 1706, - /* 1630 */ 539, 1677, 265, 1678, 522, 1680, 1681, 518, 1328, 539, - /* 1640 */ 1677, 1706, 71, 242, 272, 1678, 522, 1680, 1681, 518, - /* 1650 */ 245, 539, 1677, 1246, 1199, 1709, 538, 541, 44, 1693, - /* 1660 */ 1070, 543, 318, 545, 547, 1067, 548, 520, 1693, 1064, - /* 1670 */ 550, 551, 1647, 1058, 519, 553, 520, 554, 556, 1056, - /* 1680 */ 1693, 1647, 1047, 519, 557, 1062, 1061, 563, 520, 1060, - /* 1690 */ 76, 1059, 77, 1647, 1079, 519, 55, 247, 1075, 1706, - /* 1700 */ 974, 1677, 274, 1678, 522, 1680, 1681, 518, 1706, 539, - /* 1710 */ 1677, 266, 1678, 522, 1680, 1681, 518, 998, 539, 572, - /* 1720 */ 1706, 1016, 575, 275, 1678, 522, 1680, 1681, 518, 1693, - /* 1730 */ 539, 248, 996, 995, 994, 993, 992, 520, 1693, 991, - /* 1740 */ 990, 989, 1647, 1013, 519, 1011, 520, 986, 985, 1429, - /* 1750 */ 984, 1647, 981, 519, 980, 979, 596, 597, 598, 1427, - /* 1760 */ 600, 601, 602, 1425, 605, 604, 1677, 606, 1423, 1706, - /* 1770 */ 608, 609, 267, 1678, 522, 1680, 1681, 518, 1706, 539, - /* 1780 */ 610, 276, 1678, 522, 1680, 1681, 518, 1677, 539, 1412, - /* 1790 */ 1420, 1411, 613, 614, 1693, 1397, 617, 618, 1372, 1185, - /* 1800 */ 258, 621, 520, 622, 1372, 1372, 1372, 1647, 1372, 519, - /* 1810 */ 1372, 1372, 1372, 1372, 1372, 1693, 1372, 1372, 1372, 1372, - /* 1820 */ 1372, 1372, 1372, 520, 1372, 1372, 1372, 1372, 1647, 1372, - /* 1830 */ 519, 1372, 1372, 1372, 1706, 1372, 1372, 268, 1678, 522, - /* 1840 */ 1680, 1681, 518, 1677, 539, 1372, 1372, 1372, 1372, 1372, - /* 1850 */ 1372, 1372, 1372, 1372, 1372, 1706, 1372, 1372, 1689, 1678, - /* 1860 */ 522, 1680, 1681, 518, 1372, 539, 1677, 1372, 1372, 1372, - /* 1870 */ 1372, 1693, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 520, - /* 1880 */ 1372, 1372, 1372, 1372, 1647, 1372, 519, 1372, 1372, 1372, - /* 1890 */ 1372, 1372, 1372, 1372, 1693, 1372, 1372, 1372, 1372, 1372, - /* 1900 */ 1372, 1372, 520, 1372, 1372, 1372, 1372, 1647, 1372, 519, - /* 1910 */ 1372, 1706, 1372, 1372, 1688, 1678, 522, 1680, 1681, 518, - /* 1920 */ 1372, 539, 1677, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 1930 */ 1372, 1372, 1372, 1372, 1706, 1372, 1372, 1687, 1678, 522, - /* 1940 */ 1680, 1681, 518, 1677, 539, 1372, 1372, 1372, 1372, 1372, - /* 1950 */ 1693, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 520, 1372, - /* 1960 */ 1372, 1372, 1372, 1647, 1372, 519, 1372, 1372, 1372, 1372, - /* 1970 */ 1372, 1693, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 520, - /* 1980 */ 1372, 1372, 1372, 1372, 1647, 1372, 519, 1372, 1372, 1372, - /* 1990 */ 1706, 1372, 1372, 287, 1678, 522, 1680, 1681, 518, 1372, - /* 2000 */ 539, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1677, 1372, - /* 2010 */ 1372, 1706, 1372, 1372, 286, 1678, 522, 1680, 1681, 518, - /* 2020 */ 1677, 539, 1372, 1372, 316, 315, 1372, 1372, 1372, 1677, - /* 2030 */ 1372, 1372, 1372, 1372, 1197, 1372, 1693, 1372, 1372, 1372, - /* 2040 */ 1372, 1372, 1372, 1372, 520, 1372, 1372, 1372, 1693, 1647, - /* 2050 */ 1372, 519, 1372, 1372, 1372, 1372, 520, 1693, 1372, 1190, - /* 2060 */ 1372, 1647, 1372, 519, 1372, 520, 1372, 1372, 1372, 1372, - /* 2070 */ 1647, 1372, 519, 1372, 1372, 1189, 1706, 1372, 1372, 288, - /* 2080 */ 1678, 522, 1680, 1681, 518, 1372, 539, 1372, 1706, 1372, - /* 2090 */ 1372, 285, 1678, 522, 1680, 1681, 518, 1706, 539, 1372, - /* 2100 */ 271, 1678, 522, 1680, 1681, 518, 1372, 539, 1372, 1372, - /* 2110 */ 1372, 1372, 1372, 1372, 540, 1372, 1372, 1372, 1372, 1372, - /* 2120 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 2130 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 2140 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 2150 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 2160 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1198, - /* 2170 */ 1372, 1193, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 2180 */ 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, 1372, - /* 2190 */ 1372, 1372, 1372, 1201, 1372, 1372, 1372, 1372, 1372, 1372, - /* 2200 */ 1372, 1372, 1372, 1372, 537, 1249, 1250, + /* 0 */ 1557, 321, 1679, 1666, 1550, 1552, 300, 396, 1666, 397, + /* 10 */ 1406, 317, 35, 33, 1663, 404, 1556, 397, 1406, 1663, + /* 20 */ 309, 1483, 1184, 1557, 36, 34, 32, 31, 30, 1695, + /* 30 */ 299, 536, 36, 34, 32, 31, 30, 521, 1810, 1555, + /* 40 */ 1659, 1665, 1649, 1810, 520, 1659, 1665, 1182, 28, 233, + /* 50 */ 1809, 540, 362, 1372, 1807, 150, 540, 501, 14, 1807, + /* 60 */ 35, 33, 1311, 395, 1190, 1679, 399, 536, 309, 1708, + /* 70 */ 1184, 159, 82, 1680, 523, 1682, 1683, 519, 414, 540, + /* 80 */ 57, 1, 1748, 536, 401, 1810, 283, 1744, 497, 281, + /* 90 */ 1206, 537, 1695, 537, 1325, 1182, 62, 1808, 1810, 61, + /* 100 */ 521, 1807, 106, 618, 154, 1649, 14, 520, 942, 435, + /* 110 */ 151, 326, 1190, 24, 1807, 414, 114, 1253, 1254, 1505, + /* 120 */ 501, 1505, 356, 36, 34, 32, 31, 30, 39, 2, + /* 130 */ 134, 497, 1708, 1695, 1462, 82, 1680, 523, 1682, 1683, + /* 140 */ 519, 490, 540, 524, 38, 1748, 946, 947, 1318, 283, + /* 150 */ 1744, 618, 1810, 1600, 1208, 112, 196, 56, 1185, 114, + /* 160 */ 1183, 1810, 1208, 1810, 149, 1253, 1254, 130, 1807, 499, + /* 170 */ 146, 1755, 1756, 149, 1760, 149, 574, 1807, 489, 1807, + /* 180 */ 508, 486, 1188, 1189, 347, 1235, 1236, 1238, 1239, 1240, + /* 190 */ 1241, 1242, 516, 538, 1250, 1251, 1252, 1255, 112, 36, + /* 200 */ 34, 32, 31, 30, 349, 345, 1185, 133, 1183, 1386, + /* 210 */ 152, 66, 282, 147, 1755, 1756, 1209, 1760, 524, 35, + /* 220 */ 33, 36, 34, 32, 31, 30, 312, 309, 1599, 1184, + /* 230 */ 1188, 1189, 1375, 1235, 1236, 1238, 1239, 1240, 1241, 1242, + /* 240 */ 516, 538, 1250, 1251, 1252, 1255, 36, 34, 32, 31, + /* 250 */ 30, 492, 487, 96, 1182, 73, 95, 94, 93, 92, + /* 260 */ 91, 90, 89, 88, 87, 14, 491, 35, 33, 1222, + /* 270 */ 26, 1190, 1433, 152, 1496, 309, 1498, 1184, 1193, 56, + /* 280 */ 36, 34, 32, 31, 30, 1663, 152, 403, 2, 1335, + /* 290 */ 399, 1049, 563, 562, 561, 1053, 560, 1055, 1056, 559, + /* 300 */ 1058, 556, 1182, 1064, 553, 1066, 1067, 550, 547, 1261, + /* 310 */ 618, 1659, 1665, 1091, 1092, 1208, 32, 31, 30, 1190, + /* 320 */ 1237, 589, 540, 1397, 1253, 1254, 483, 1333, 1334, 1336, + /* 330 */ 1337, 1209, 596, 595, 594, 324, 8, 593, 592, 591, + /* 340 */ 116, 586, 585, 584, 583, 582, 581, 580, 579, 124, + /* 350 */ 575, 1436, 578, 313, 1477, 355, 56, 354, 618, 1367, + /* 360 */ 1207, 131, 350, 1649, 572, 1185, 1396, 1183, 509, 1395, + /* 370 */ 1507, 96, 1253, 1254, 95, 94, 93, 92, 91, 90, + /* 380 */ 89, 88, 87, 122, 121, 569, 568, 567, 64, 1188, + /* 390 */ 1189, 1196, 1235, 1236, 1238, 1239, 1240, 1241, 1242, 516, + /* 400 */ 538, 1250, 1251, 1252, 1255, 497, 1649, 537, 152, 1649, + /* 410 */ 1501, 449, 448, 1185, 1557, 1183, 447, 1394, 360, 111, + /* 420 */ 444, 314, 1393, 443, 442, 441, 35, 33, 1256, 570, + /* 430 */ 1555, 1679, 1548, 114, 309, 1505, 1184, 1188, 1189, 1366, + /* 440 */ 1235, 1236, 1238, 1239, 1240, 1241, 1242, 516, 538, 1250, + /* 450 */ 1251, 1252, 1255, 1392, 1184, 449, 448, 1649, 1695, 1391, + /* 460 */ 447, 1182, 1649, 111, 444, 152, 521, 443, 442, 441, + /* 470 */ 197, 1649, 112, 520, 35, 33, 1551, 1552, 1190, 1182, + /* 480 */ 1190, 1237, 309, 1679, 1184, 152, 537, 148, 1755, 1756, + /* 490 */ 293, 1760, 959, 1649, 958, 9, 1190, 361, 1708, 1649, + /* 500 */ 64, 84, 1680, 523, 1682, 1683, 519, 1390, 540, 1182, + /* 510 */ 1695, 1748, 203, 110, 1505, 1747, 1744, 618, 500, 433, + /* 520 */ 473, 960, 1500, 1649, 571, 520, 1190, 1548, 1166, 1167, + /* 530 */ 187, 1253, 1254, 185, 537, 618, 316, 315, 56, 294, + /* 540 */ 67, 292, 291, 9, 437, 106, 1198, 1649, 439, 1482, + /* 550 */ 1708, 1310, 440, 83, 1680, 523, 1682, 1683, 519, 1011, + /* 560 */ 540, 1810, 1505, 1748, 959, 618, 958, 302, 1744, 145, + /* 570 */ 438, 1191, 1185, 149, 1183, 463, 1013, 1807, 1557, 1253, + /* 580 */ 1254, 225, 446, 445, 537, 320, 479, 1775, 1190, 386, + /* 590 */ 1185, 7, 1183, 960, 1555, 371, 1188, 1189, 1208, 1235, + /* 600 */ 1236, 1238, 1239, 1240, 1241, 1242, 516, 538, 1250, 1251, + /* 610 */ 1252, 1255, 1505, 319, 1188, 1189, 1810, 1275, 946, 947, + /* 620 */ 1185, 131, 1183, 322, 144, 79, 1389, 541, 149, 1388, + /* 630 */ 1507, 131, 1807, 35, 33, 163, 162, 1544, 115, 1280, + /* 640 */ 1507, 309, 572, 1184, 1188, 1189, 1497, 1235, 1236, 1238, + /* 650 */ 1239, 1240, 1241, 1242, 516, 538, 1250, 1251, 1252, 1255, + /* 660 */ 1385, 122, 121, 569, 568, 567, 1649, 152, 1182, 1649, + /* 670 */ 537, 1384, 11, 10, 25, 1667, 1383, 537, 280, 54, + /* 680 */ 1206, 372, 1199, 1762, 1194, 1190, 1663, 379, 413, 1382, + /* 690 */ 391, 36, 34, 32, 31, 30, 590, 588, 1505, 537, + /* 700 */ 1649, 1679, 2, 1210, 132, 1505, 1202, 1759, 392, 262, + /* 710 */ 1502, 1649, 1659, 1665, 1192, 1381, 1649, 538, 1250, 1251, + /* 720 */ 1374, 260, 53, 540, 618, 52, 1380, 1505, 1695, 1649, + /* 730 */ 1379, 256, 1762, 1762, 1535, 505, 521, 284, 1253, 1254, + /* 740 */ 1480, 1649, 164, 520, 105, 104, 103, 102, 101, 100, + /* 750 */ 99, 98, 97, 1287, 480, 1649, 1758, 1757, 1309, 1767, + /* 760 */ 1306, 1222, 1378, 1306, 1237, 566, 1649, 56, 1708, 1273, + /* 770 */ 1649, 278, 1680, 523, 1682, 1683, 519, 577, 540, 1185, + /* 780 */ 390, 1183, 1481, 385, 384, 383, 382, 381, 378, 377, + /* 790 */ 376, 375, 374, 370, 369, 368, 367, 366, 365, 364, + /* 800 */ 363, 1211, 1649, 1188, 1189, 81, 1235, 1236, 1238, 1239, + /* 810 */ 1240, 1241, 1242, 516, 538, 1250, 1251, 1252, 1255, 131, + /* 820 */ 1274, 537, 36, 34, 32, 31, 30, 1195, 1508, 537, + /* 830 */ 224, 1637, 1626, 572, 537, 1377, 60, 59, 359, 574, + /* 840 */ 471, 158, 1279, 189, 513, 534, 188, 353, 191, 1505, + /* 850 */ 439, 190, 122, 121, 569, 568, 567, 1505, 279, 537, + /* 860 */ 537, 343, 1505, 341, 337, 333, 155, 328, 284, 1494, + /* 870 */ 535, 246, 438, 1423, 1490, 1649, 335, 27, 307, 1268, + /* 880 */ 1269, 1270, 1271, 1272, 1276, 1277, 1278, 1505, 1505, 1418, + /* 890 */ 1679, 1590, 537, 1416, 193, 450, 152, 192, 1669, 461, + /* 900 */ 1273, 503, 161, 323, 120, 621, 46, 983, 212, 1369, + /* 910 */ 1370, 452, 459, 11, 10, 455, 78, 1695, 37, 251, + /* 920 */ 1505, 506, 1492, 1488, 984, 500, 75, 200, 209, 515, + /* 930 */ 1649, 142, 520, 565, 182, 1671, 37, 612, 608, 604, + /* 940 */ 600, 250, 470, 1387, 37, 475, 137, 1332, 235, 214, + /* 950 */ 118, 1274, 431, 427, 423, 419, 181, 1708, 228, 1281, + /* 960 */ 83, 1680, 523, 1682, 1683, 519, 80, 540, 1265, 244, + /* 970 */ 1748, 484, 1463, 1279, 302, 1744, 145, 1243, 119, 120, + /* 980 */ 46, 65, 545, 119, 179, 1139, 120, 107, 1412, 237, + /* 990 */ 464, 529, 119, 432, 1776, 1696, 219, 325, 1407, 1545, + /* 1000 */ 1778, 498, 533, 3, 1679, 5, 227, 230, 27, 307, + /* 1010 */ 1268, 1269, 1270, 1271, 1272, 1276, 1277, 1278, 327, 243, + /* 1020 */ 1042, 255, 1206, 1070, 1074, 232, 330, 1081, 1079, 478, + /* 1030 */ 1679, 1695, 205, 123, 614, 334, 289, 1150, 1011, 521, + /* 1040 */ 290, 252, 380, 178, 1649, 170, 520, 175, 373, 409, + /* 1050 */ 1592, 1158, 160, 199, 388, 387, 1679, 1695, 389, 1212, + /* 1060 */ 393, 394, 402, 1215, 405, 521, 167, 406, 168, 169, + /* 1070 */ 1649, 1708, 520, 1214, 83, 1680, 523, 1682, 1683, 519, + /* 1080 */ 407, 540, 1216, 1695, 1748, 408, 172, 410, 302, 1744, + /* 1090 */ 1823, 521, 174, 1213, 412, 177, 1649, 1708, 520, 1782, + /* 1100 */ 83, 1680, 523, 1682, 1683, 519, 411, 540, 1679, 63, + /* 1110 */ 1748, 415, 180, 434, 302, 1744, 1823, 436, 1495, 184, + /* 1120 */ 1491, 186, 1679, 1708, 125, 1805, 83, 1680, 523, 1682, + /* 1130 */ 1683, 519, 298, 540, 86, 1695, 1748, 126, 198, 1493, + /* 1140 */ 302, 1744, 1823, 521, 1489, 127, 1631, 253, 1649, 1695, + /* 1150 */ 520, 1766, 128, 1630, 472, 465, 469, 521, 1211, 466, + /* 1160 */ 527, 201, 1649, 501, 520, 204, 207, 476, 485, 477, + /* 1170 */ 474, 1789, 1779, 1679, 482, 1708, 301, 501, 269, 1680, + /* 1180 */ 523, 1682, 1683, 519, 210, 540, 488, 1788, 6, 1708, + /* 1190 */ 454, 213, 269, 1680, 523, 1682, 1683, 519, 494, 540, + /* 1200 */ 1695, 1306, 1769, 220, 1810, 462, 481, 113, 521, 1210, + /* 1210 */ 1763, 40, 510, 1649, 303, 520, 151, 18, 1810, 195, + /* 1220 */ 1807, 1598, 507, 530, 531, 218, 525, 1597, 221, 526, + /* 1230 */ 149, 457, 239, 241, 1807, 311, 451, 1679, 139, 532, + /* 1240 */ 1708, 194, 1826, 84, 1680, 523, 1682, 1683, 519, 1729, + /* 1250 */ 540, 1679, 254, 1748, 72, 1806, 1506, 512, 1744, 504, + /* 1260 */ 1679, 511, 74, 226, 1695, 1478, 51, 543, 229, 50, + /* 1270 */ 231, 257, 518, 617, 249, 47, 138, 1649, 1695, 520, + /* 1280 */ 1549, 261, 263, 270, 264, 259, 521, 1695, 1643, 1642, + /* 1290 */ 58, 1649, 1641, 520, 329, 521, 1638, 332, 331, 1177, + /* 1300 */ 1649, 1178, 520, 156, 1708, 336, 1636, 277, 1680, 523, + /* 1310 */ 1682, 1683, 519, 517, 540, 514, 1720, 1679, 1708, 338, + /* 1320 */ 339, 135, 1680, 523, 1682, 1683, 519, 1708, 540, 340, + /* 1330 */ 84, 1680, 523, 1682, 1683, 519, 1635, 540, 342, 1679, + /* 1340 */ 1748, 1634, 344, 1633, 1695, 1745, 346, 1632, 348, 1616, + /* 1350 */ 157, 351, 521, 352, 1153, 1152, 1610, 1649, 1609, 520, + /* 1360 */ 357, 358, 1608, 1607, 502, 1824, 1695, 1125, 1585, 1584, + /* 1370 */ 1583, 1582, 1581, 1580, 521, 1579, 1578, 1577, 1576, 1649, + /* 1380 */ 1575, 520, 1574, 1573, 1708, 1572, 1571, 273, 1680, 523, + /* 1390 */ 1682, 1683, 519, 1679, 540, 1570, 1569, 1568, 1567, 117, + /* 1400 */ 1566, 1565, 1564, 1563, 1562, 1679, 1708, 1561, 1560, 135, + /* 1410 */ 1680, 523, 1682, 1683, 519, 1127, 540, 1559, 1558, 1435, + /* 1420 */ 1695, 1403, 143, 949, 493, 108, 948, 165, 521, 1402, + /* 1430 */ 1624, 1618, 1695, 1649, 398, 520, 400, 166, 1606, 173, + /* 1440 */ 518, 1605, 109, 1595, 1484, 1649, 306, 520, 171, 1434, + /* 1450 */ 176, 1432, 418, 1825, 1430, 1428, 1679, 422, 1426, 426, + /* 1460 */ 1708, 416, 430, 278, 1680, 523, 1682, 1683, 519, 977, + /* 1470 */ 540, 417, 1708, 421, 420, 277, 1680, 523, 1682, 1683, + /* 1480 */ 519, 424, 540, 1695, 1721, 425, 428, 429, 1415, 1414, + /* 1490 */ 1401, 521, 1486, 1085, 1084, 1485, 1649, 1010, 520, 1009, + /* 1500 */ 1008, 587, 589, 1007, 1004, 1424, 45, 1679, 295, 308, + /* 1510 */ 1003, 183, 1002, 1419, 453, 296, 1417, 456, 297, 1400, + /* 1520 */ 458, 1679, 1399, 1708, 460, 1623, 278, 1680, 523, 1682, + /* 1530 */ 1683, 519, 85, 540, 1695, 1617, 49, 467, 1160, 1604, + /* 1540 */ 1603, 1602, 521, 129, 1594, 68, 206, 1649, 1695, 520, + /* 1550 */ 211, 4, 37, 15, 136, 43, 521, 1331, 215, 22, + /* 1560 */ 310, 1649, 1324, 520, 216, 217, 69, 23, 1669, 16, + /* 1570 */ 1679, 468, 223, 41, 1708, 208, 202, 278, 1680, 523, + /* 1580 */ 1682, 1683, 519, 48, 540, 1303, 1302, 1679, 1708, 42, + /* 1590 */ 140, 265, 1680, 523, 1682, 1683, 519, 1695, 540, 1360, + /* 1600 */ 17, 1355, 1349, 1354, 10, 521, 19, 304, 1359, 1358, + /* 1610 */ 1649, 305, 520, 1245, 1695, 29, 141, 153, 1244, 1266, + /* 1620 */ 234, 1230, 521, 12, 20, 1593, 21, 1649, 236, 520, + /* 1630 */ 240, 1329, 522, 238, 70, 1668, 1679, 1708, 245, 528, + /* 1640 */ 272, 1680, 523, 1682, 1683, 519, 75, 540, 1679, 13, + /* 1650 */ 71, 1711, 1200, 1247, 1708, 539, 44, 274, 1680, 523, + /* 1660 */ 1682, 1683, 519, 1695, 540, 1071, 544, 318, 542, 242, + /* 1670 */ 546, 521, 1068, 548, 1065, 1695, 1649, 549, 520, 551, + /* 1680 */ 554, 552, 555, 521, 557, 1059, 1057, 558, 1649, 1679, + /* 1690 */ 520, 1063, 1062, 1048, 76, 77, 1080, 55, 564, 247, + /* 1700 */ 1061, 1076, 1060, 1708, 975, 573, 266, 1680, 523, 1682, + /* 1710 */ 1683, 519, 999, 540, 1017, 1708, 1695, 576, 275, 1680, + /* 1720 */ 523, 1682, 1683, 519, 521, 540, 248, 997, 996, 1649, + /* 1730 */ 995, 520, 992, 994, 993, 991, 990, 1014, 1012, 987, + /* 1740 */ 986, 1679, 985, 982, 981, 980, 1431, 597, 598, 599, + /* 1750 */ 1679, 1429, 601, 602, 1427, 603, 1708, 1425, 605, 267, + /* 1760 */ 1680, 523, 1682, 1683, 519, 606, 540, 607, 1695, 609, + /* 1770 */ 610, 611, 1413, 613, 1398, 615, 521, 1695, 1186, 616, + /* 1780 */ 619, 1649, 258, 520, 620, 521, 1373, 1373, 1373, 1373, + /* 1790 */ 1649, 1373, 520, 1373, 1373, 1373, 1373, 1373, 1373, 1679, + /* 1800 */ 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1708, 1373, + /* 1810 */ 1373, 276, 1680, 523, 1682, 1683, 519, 1708, 540, 1373, + /* 1820 */ 268, 1680, 523, 1682, 1683, 519, 1695, 540, 1373, 1373, + /* 1830 */ 1373, 1373, 1373, 1373, 521, 1373, 1373, 497, 1373, 1649, + /* 1840 */ 1679, 520, 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1373, + /* 1850 */ 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1679, 1373, 1373, + /* 1860 */ 1373, 1373, 1373, 1373, 1373, 114, 1708, 1695, 1373, 1691, + /* 1870 */ 1680, 523, 1682, 1683, 519, 521, 540, 1373, 1373, 1373, + /* 1880 */ 1649, 1373, 520, 1373, 1695, 501, 1373, 1373, 1373, 1373, + /* 1890 */ 1373, 1373, 521, 1373, 1373, 1373, 1373, 1649, 1373, 520, + /* 1900 */ 1373, 1373, 1373, 1373, 112, 1373, 1679, 1708, 1373, 1373, + /* 1910 */ 1690, 1680, 523, 1682, 1683, 519, 1373, 540, 1679, 222, + /* 1920 */ 1755, 496, 1373, 495, 1708, 1373, 1810, 1689, 1680, 523, + /* 1930 */ 1682, 1683, 519, 1695, 540, 1373, 1373, 1373, 151, 497, + /* 1940 */ 1373, 521, 1807, 1373, 1373, 1695, 1649, 1373, 520, 1373, + /* 1950 */ 1373, 1373, 1373, 521, 1373, 1373, 1373, 1373, 1649, 1679, + /* 1960 */ 520, 1373, 1373, 1373, 1373, 1373, 1373, 114, 1373, 1373, + /* 1970 */ 1373, 1373, 1373, 1708, 1373, 1373, 287, 1680, 523, 1682, + /* 1980 */ 1683, 519, 1373, 540, 1373, 1708, 1695, 501, 286, 1680, + /* 1990 */ 523, 1682, 1683, 519, 521, 540, 1373, 1373, 1373, 1649, + /* 2000 */ 1373, 520, 1373, 1373, 1373, 1373, 112, 1373, 1373, 1373, + /* 2010 */ 1373, 1679, 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1373, + /* 2020 */ 1679, 222, 1755, 496, 1373, 495, 1708, 1373, 1810, 288, + /* 2030 */ 1680, 523, 1682, 1683, 519, 1373, 540, 1373, 1695, 1373, + /* 2040 */ 149, 1373, 1373, 1373, 1807, 1373, 521, 1695, 1373, 1373, + /* 2050 */ 1373, 1649, 1373, 520, 1373, 521, 1373, 1373, 1373, 1373, + /* 2060 */ 1649, 1373, 520, 1373, 1373, 1373, 1373, 1373, 1373, 1373, + /* 2070 */ 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1373, 1708, 1373, + /* 2080 */ 1373, 285, 1680, 523, 1682, 1683, 519, 1708, 540, 1373, + /* 2090 */ 271, 1680, 523, 1682, 1683, 519, 1373, 540, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 271, 270, 297, 241, 271, 248, 248, 274, 323, 324, - /* 10 */ 254, 282, 12, 13, 258, 282, 271, 260, 260, 274, - /* 20 */ 20, 20, 22, 20, 267, 267, 245, 282, 4, 248, - /* 30 */ 244, 269, 246, 247, 277, 277, 248, 308, 309, 277, - /* 40 */ 20, 308, 309, 338, 282, 14, 284, 47, 319, 20, - /* 50 */ 297, 20, 319, 308, 309, 350, 238, 57, 241, 354, - /* 60 */ 12, 13, 14, 63, 319, 277, 42, 43, 20, 268, - /* 70 */ 22, 309, 20, 20, 312, 313, 314, 315, 316, 317, - /* 80 */ 80, 319, 281, 80, 322, 251, 269, 0, 326, 327, - /* 90 */ 328, 338, 269, 248, 277, 47, 80, 241, 264, 282, - /* 100 */ 277, 284, 102, 350, 316, 57, 272, 354, 346, 80, - /* 110 */ 244, 63, 246, 247, 297, 297, 116, 117, 330, 331, - /* 120 */ 332, 333, 277, 335, 1, 2, 309, 56, 80, 312, - /* 130 */ 313, 314, 315, 316, 317, 338, 319, 314, 282, 322, - /* 140 */ 59, 60, 20, 326, 327, 64, 338, 350, 67, 68, - /* 150 */ 102, 354, 71, 72, 73, 338, 338, 157, 350, 159, - /* 160 */ 245, 316, 354, 248, 116, 117, 146, 350, 350, 116, - /* 170 */ 117, 354, 354, 240, 80, 242, 331, 332, 333, 92, - /* 180 */ 335, 181, 182, 54, 184, 185, 186, 187, 188, 189, - /* 190 */ 190, 191, 192, 193, 194, 195, 196, 269, 111, 112, - /* 200 */ 113, 114, 115, 2, 81, 157, 278, 159, 79, 209, - /* 210 */ 2, 82, 209, 12, 13, 14, 15, 16, 12, 13, - /* 220 */ 12, 13, 14, 15, 16, 209, 20, 152, 22, 181, - /* 230 */ 182, 241, 184, 185, 186, 187, 188, 189, 190, 191, - /* 240 */ 192, 193, 194, 195, 196, 35, 248, 172, 173, 47, - /* 250 */ 156, 21, 158, 47, 24, 25, 26, 27, 28, 29, - /* 260 */ 30, 31, 32, 57, 241, 63, 12, 13, 4, 63, - /* 270 */ 33, 112, 282, 20, 20, 277, 22, 12, 13, 14, - /* 280 */ 15, 16, 45, 19, 4, 56, 80, 50, 51, 52, - /* 290 */ 53, 54, 269, 83, 0, 85, 86, 33, 88, 338, - /* 300 */ 277, 47, 92, 209, 310, 282, 14, 284, 102, 45, - /* 310 */ 271, 350, 20, 49, 316, 354, 79, 63, 54, 82, - /* 320 */ 297, 282, 116, 117, 114, 20, 167, 168, 334, 331, - /* 330 */ 332, 333, 309, 335, 80, 312, 313, 314, 315, 316, - /* 340 */ 317, 248, 319, 79, 0, 322, 82, 308, 309, 326, - /* 350 */ 327, 12, 13, 14, 15, 16, 102, 54, 319, 269, - /* 360 */ 80, 338, 284, 157, 280, 159, 276, 283, 284, 74, - /* 370 */ 116, 117, 294, 350, 20, 285, 241, 354, 141, 286, - /* 380 */ 143, 181, 145, 80, 147, 82, 92, 181, 182, 45, - /* 390 */ 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, - /* 400 */ 194, 195, 196, 166, 91, 111, 112, 113, 114, 115, - /* 410 */ 241, 157, 63, 159, 149, 120, 121, 282, 218, 219, - /* 420 */ 220, 221, 222, 63, 12, 13, 14, 12, 13, 14, - /* 430 */ 15, 16, 20, 92, 22, 181, 182, 248, 184, 185, - /* 440 */ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, - /* 450 */ 196, 282, 111, 112, 113, 114, 115, 283, 284, 47, - /* 460 */ 14, 15, 16, 209, 248, 269, 277, 12, 13, 14, - /* 470 */ 15, 16, 12, 13, 241, 63, 260, 185, 22, 248, - /* 480 */ 20, 285, 22, 255, 256, 146, 297, 248, 269, 209, - /* 490 */ 185, 260, 80, 277, 229, 276, 81, 255, 256, 260, - /* 500 */ 297, 284, 269, 241, 285, 316, 0, 47, 277, 292, - /* 510 */ 277, 294, 209, 241, 102, 282, 277, 284, 144, 14, - /* 520 */ 331, 332, 333, 63, 335, 20, 270, 338, 116, 117, - /* 530 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 350, - /* 540 */ 80, 338, 309, 354, 282, 312, 313, 314, 315, 316, - /* 550 */ 317, 251, 319, 350, 282, 322, 0, 354, 248, 326, - /* 560 */ 327, 328, 102, 12, 13, 14, 15, 16, 253, 157, - /* 570 */ 260, 159, 272, 340, 277, 269, 116, 117, 345, 346, - /* 580 */ 248, 266, 276, 248, 241, 288, 270, 277, 214, 215, - /* 590 */ 275, 285, 260, 181, 182, 260, 184, 185, 186, 187, - /* 600 */ 188, 189, 190, 191, 192, 193, 194, 195, 196, 277, - /* 610 */ 248, 253, 277, 140, 248, 59, 60, 157, 262, 159, - /* 620 */ 64, 265, 260, 67, 68, 282, 260, 71, 72, 73, - /* 630 */ 12, 13, 81, 275, 111, 162, 3, 310, 20, 277, - /* 640 */ 22, 181, 182, 277, 184, 185, 186, 187, 188, 189, - /* 650 */ 190, 191, 192, 193, 194, 195, 196, 248, 241, 261, - /* 660 */ 241, 334, 248, 241, 270, 47, 0, 269, 248, 260, - /* 670 */ 197, 248, 0, 248, 260, 18, 278, 20, 0, 4, - /* 680 */ 260, 63, 0, 260, 27, 260, 277, 30, 241, 241, - /* 690 */ 185, 277, 169, 170, 310, 42, 43, 277, 80, 282, - /* 700 */ 277, 282, 277, 21, 282, 48, 24, 25, 26, 27, - /* 710 */ 28, 29, 30, 31, 32, 261, 269, 241, 334, 257, - /* 720 */ 102, 259, 56, 269, 277, 20, 242, 241, 56, 282, - /* 730 */ 282, 284, 278, 84, 116, 117, 87, 59, 60, 61, - /* 740 */ 62, 37, 64, 65, 66, 67, 68, 69, 70, 71, - /* 750 */ 72, 73, 74, 75, 76, 77, 309, 241, 282, 312, - /* 760 */ 313, 314, 315, 316, 317, 41, 319, 279, 282, 322, - /* 770 */ 282, 249, 250, 326, 327, 157, 119, 159, 241, 122, - /* 780 */ 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, - /* 790 */ 133, 134, 135, 136, 137, 138, 139, 270, 282, 181, - /* 800 */ 182, 41, 184, 185, 186, 187, 188, 189, 190, 191, - /* 810 */ 192, 193, 194, 195, 196, 18, 41, 241, 22, 282, - /* 820 */ 23, 241, 12, 13, 14, 15, 16, 279, 207, 208, - /* 830 */ 282, 241, 35, 36, 241, 241, 39, 12, 13, 14, - /* 840 */ 15, 16, 261, 47, 92, 22, 84, 0, 41, 87, - /* 850 */ 269, 146, 55, 41, 41, 270, 81, 224, 282, 278, - /* 860 */ 57, 241, 282, 269, 301, 84, 114, 57, 87, 22, - /* 870 */ 47, 277, 282, 0, 0, 282, 282, 80, 284, 21, - /* 880 */ 1, 2, 57, 41, 84, 210, 63, 87, 81, 269, - /* 890 */ 41, 81, 34, 81, 81, 22, 22, 277, 270, 89, - /* 900 */ 116, 117, 282, 309, 284, 258, 312, 313, 314, 315, - /* 910 */ 316, 317, 208, 319, 89, 118, 322, 241, 357, 44, - /* 920 */ 326, 327, 328, 81, 41, 102, 41, 41, 47, 309, - /* 930 */ 81, 337, 312, 313, 314, 315, 316, 317, 318, 319, - /* 940 */ 320, 321, 47, 41, 348, 269, 149, 150, 151, 305, - /* 950 */ 140, 154, 228, 277, 41, 80, 41, 160, 282, 41, - /* 960 */ 284, 41, 269, 247, 81, 140, 81, 81, 171, 342, - /* 970 */ 249, 174, 162, 176, 177, 178, 179, 180, 41, 41, - /* 980 */ 157, 41, 159, 81, 181, 309, 226, 162, 312, 313, - /* 990 */ 314, 315, 316, 317, 81, 319, 81, 311, 322, 81, - /* 1000 */ 281, 81, 326, 327, 181, 182, 209, 197, 198, 199, - /* 1010 */ 200, 201, 202, 203, 204, 205, 206, 241, 81, 81, - /* 1020 */ 47, 81, 197, 198, 199, 200, 201, 202, 203, 204, - /* 1030 */ 205, 206, 80, 336, 351, 351, 63, 339, 351, 211, - /* 1040 */ 159, 307, 90, 20, 45, 269, 248, 306, 47, 255, - /* 1050 */ 299, 155, 248, 277, 159, 40, 248, 289, 282, 140, - /* 1060 */ 284, 287, 248, 20, 287, 243, 20, 93, 94, 95, - /* 1070 */ 96, 97, 98, 99, 100, 101, 102, 103, 241, 105, - /* 1080 */ 106, 107, 108, 109, 110, 309, 243, 253, 312, 313, - /* 1090 */ 314, 315, 316, 317, 303, 319, 20, 253, 322, 284, - /* 1100 */ 20, 296, 326, 327, 328, 253, 269, 298, 253, 277, - /* 1110 */ 20, 290, 296, 337, 277, 253, 253, 248, 253, 282, - /* 1120 */ 243, 284, 269, 269, 248, 269, 269, 243, 269, 269, - /* 1130 */ 269, 251, 282, 269, 303, 269, 269, 269, 302, 251, - /* 1140 */ 165, 241, 248, 251, 296, 20, 309, 277, 251, 312, - /* 1150 */ 313, 314, 315, 316, 317, 241, 319, 248, 217, 322, - /* 1160 */ 282, 290, 311, 326, 327, 328, 284, 347, 223, 269, - /* 1170 */ 216, 282, 282, 347, 337, 282, 148, 277, 212, 344, - /* 1180 */ 293, 343, 282, 269, 284, 208, 277, 341, 277, 20, - /* 1190 */ 40, 277, 293, 353, 227, 225, 282, 297, 284, 230, - /* 1200 */ 80, 310, 143, 358, 282, 307, 297, 282, 282, 309, - /* 1210 */ 293, 297, 312, 313, 314, 315, 316, 317, 290, 319, - /* 1220 */ 293, 291, 251, 309, 352, 316, 312, 313, 314, 315, - /* 1230 */ 316, 317, 329, 319, 241, 325, 277, 265, 338, 251, - /* 1240 */ 331, 332, 333, 80, 335, 241, 282, 338, 259, 273, - /* 1250 */ 350, 248, 338, 352, 354, 277, 251, 353, 353, 350, - /* 1260 */ 352, 243, 269, 354, 350, 19, 304, 0, 354, 263, - /* 1270 */ 277, 263, 263, 269, 252, 282, 239, 284, 0, 33, - /* 1280 */ 300, 277, 40, 0, 71, 0, 282, 47, 284, 175, - /* 1290 */ 47, 45, 47, 175, 47, 0, 50, 51, 52, 53, - /* 1300 */ 54, 47, 309, 47, 175, 312, 313, 314, 315, 316, - /* 1310 */ 317, 241, 319, 309, 0, 175, 312, 313, 314, 315, - /* 1320 */ 316, 317, 0, 319, 47, 79, 322, 241, 82, 0, - /* 1330 */ 22, 327, 80, 47, 0, 162, 159, 161, 157, 269, - /* 1340 */ 0, 0, 0, 153, 152, 0, 0, 277, 355, 356, - /* 1350 */ 44, 0, 282, 0, 284, 269, 0, 0, 0, 0, - /* 1360 */ 0, 115, 0, 277, 0, 295, 0, 0, 282, 0, - /* 1370 */ 284, 0, 0, 0, 0, 0, 0, 40, 0, 309, - /* 1380 */ 0, 0, 312, 313, 314, 315, 316, 317, 142, 319, - /* 1390 */ 22, 145, 0, 241, 0, 309, 0, 0, 312, 313, - /* 1400 */ 314, 315, 316, 317, 0, 319, 0, 0, 0, 0, - /* 1410 */ 164, 41, 166, 0, 14, 14, 241, 40, 0, 37, - /* 1420 */ 0, 269, 38, 44, 37, 0, 37, 44, 148, 277, - /* 1430 */ 0, 0, 37, 0, 282, 349, 284, 0, 0, 0, - /* 1440 */ 47, 0, 37, 58, 269, 47, 0, 45, 45, 37, - /* 1450 */ 0, 37, 277, 0, 37, 45, 0, 282, 0, 284, - /* 1460 */ 41, 309, 47, 47, 312, 313, 314, 315, 316, 317, - /* 1470 */ 295, 319, 45, 241, 22, 89, 47, 0, 87, 47, - /* 1480 */ 0, 47, 47, 47, 309, 41, 22, 312, 313, 314, - /* 1490 */ 315, 316, 317, 0, 319, 47, 241, 22, 47, 0, - /* 1500 */ 22, 269, 47, 0, 22, 48, 47, 0, 356, 277, - /* 1510 */ 22, 20, 0, 47, 282, 0, 284, 163, 22, 0, - /* 1520 */ 0, 0, 0, 80, 269, 41, 37, 41, 213, 44, - /* 1530 */ 81, 41, 277, 41, 146, 81, 41, 282, 44, 284, - /* 1540 */ 213, 309, 80, 80, 312, 313, 314, 315, 316, 317, - /* 1550 */ 295, 319, 241, 321, 80, 44, 207, 81, 41, 80, - /* 1560 */ 44, 241, 141, 213, 309, 143, 2, 312, 313, 314, - /* 1570 */ 315, 316, 317, 241, 319, 41, 47, 47, 81, 81, - /* 1580 */ 269, 81, 81, 47, 47, 47, 146, 47, 277, 269, - /* 1590 */ 41, 146, 44, 282, 81, 284, 44, 277, 80, 22, - /* 1600 */ 0, 269, 282, 80, 284, 181, 295, 81, 80, 277, - /* 1610 */ 37, 183, 80, 80, 282, 80, 284, 144, 44, 80, - /* 1620 */ 309, 90, 81, 312, 313, 314, 315, 316, 317, 309, - /* 1630 */ 319, 241, 312, 313, 314, 315, 316, 317, 81, 319, - /* 1640 */ 241, 309, 80, 141, 312, 313, 314, 315, 316, 317, - /* 1650 */ 44, 319, 241, 81, 22, 80, 80, 91, 80, 269, - /* 1660 */ 81, 47, 47, 80, 47, 81, 80, 277, 269, 81, - /* 1670 */ 47, 80, 282, 81, 284, 47, 277, 80, 47, 81, - /* 1680 */ 269, 282, 22, 284, 80, 104, 104, 92, 277, 104, - /* 1690 */ 80, 104, 80, 282, 47, 284, 80, 41, 22, 309, - /* 1700 */ 58, 241, 312, 313, 314, 315, 316, 317, 309, 319, - /* 1710 */ 241, 312, 313, 314, 315, 316, 317, 47, 319, 57, - /* 1720 */ 309, 63, 78, 312, 313, 314, 315, 316, 317, 269, - /* 1730 */ 319, 41, 47, 47, 47, 47, 47, 277, 269, 22, - /* 1740 */ 47, 47, 282, 63, 284, 47, 277, 47, 47, 0, - /* 1750 */ 47, 282, 47, 284, 47, 47, 47, 45, 37, 0, - /* 1760 */ 47, 45, 37, 0, 45, 47, 241, 37, 0, 309, - /* 1770 */ 47, 45, 312, 313, 314, 315, 316, 317, 309, 319, - /* 1780 */ 37, 312, 313, 314, 315, 316, 317, 241, 319, 0, - /* 1790 */ 46, 0, 47, 46, 269, 0, 22, 21, 359, 22, - /* 1800 */ 22, 21, 277, 20, 359, 359, 359, 282, 359, 284, - /* 1810 */ 359, 359, 359, 359, 359, 269, 359, 359, 359, 359, - /* 1820 */ 359, 359, 359, 277, 359, 359, 359, 359, 282, 359, - /* 1830 */ 284, 359, 359, 359, 309, 359, 359, 312, 313, 314, - /* 1840 */ 315, 316, 317, 241, 319, 359, 359, 359, 359, 359, - /* 1850 */ 359, 359, 359, 359, 359, 309, 359, 359, 312, 313, - /* 1860 */ 314, 315, 316, 317, 359, 319, 241, 359, 359, 359, - /* 1870 */ 359, 269, 359, 359, 359, 359, 359, 359, 359, 277, - /* 1880 */ 359, 359, 359, 359, 282, 359, 284, 359, 359, 359, - /* 1890 */ 359, 359, 359, 359, 269, 359, 359, 359, 359, 359, - /* 1900 */ 359, 359, 277, 359, 359, 359, 359, 282, 359, 284, - /* 1910 */ 359, 309, 359, 359, 312, 313, 314, 315, 316, 317, - /* 1920 */ 359, 319, 241, 359, 359, 359, 359, 359, 359, 359, - /* 1930 */ 359, 359, 359, 359, 309, 359, 359, 312, 313, 314, - /* 1940 */ 315, 316, 317, 241, 319, 359, 359, 359, 359, 359, - /* 1950 */ 269, 359, 359, 359, 359, 359, 359, 359, 277, 359, - /* 1960 */ 359, 359, 359, 282, 359, 284, 359, 359, 359, 359, - /* 1970 */ 359, 269, 359, 359, 359, 359, 359, 359, 359, 277, - /* 1980 */ 359, 359, 359, 359, 282, 359, 284, 359, 359, 359, - /* 1990 */ 309, 359, 359, 312, 313, 314, 315, 316, 317, 359, - /* 2000 */ 319, 359, 359, 359, 359, 359, 359, 359, 241, 359, - /* 2010 */ 359, 309, 359, 359, 312, 313, 314, 315, 316, 317, - /* 2020 */ 241, 319, 359, 359, 12, 13, 359, 359, 359, 241, - /* 2030 */ 359, 359, 359, 359, 22, 359, 269, 359, 359, 359, - /* 2040 */ 359, 359, 359, 359, 277, 359, 359, 359, 269, 282, - /* 2050 */ 359, 284, 359, 359, 359, 359, 277, 269, 359, 47, - /* 2060 */ 359, 282, 359, 284, 359, 277, 359, 359, 359, 359, - /* 2070 */ 282, 359, 284, 359, 359, 63, 309, 359, 359, 312, - /* 2080 */ 313, 314, 315, 316, 317, 359, 319, 359, 309, 359, - /* 2090 */ 359, 312, 313, 314, 315, 316, 317, 309, 319, 359, - /* 2100 */ 312, 313, 314, 315, 316, 317, 359, 319, 359, 359, - /* 2110 */ 359, 359, 359, 359, 102, 359, 359, 359, 359, 359, - /* 2120 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2130 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2140 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2150 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2160 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 157, - /* 2170 */ 359, 159, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2180 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2190 */ 359, 359, 359, 181, 359, 359, 359, 359, 359, 359, - /* 2200 */ 359, 359, 359, 359, 192, 193, 194, 359, 359, 359, - /* 2210 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2220 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2230 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2240 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2250 */ 359, 359, 359, 359, 359, 359, 359, 359, 359, 359, - /* 2260 */ 359, 359, 359, + /* 0 */ 269, 280, 242, 271, 283, 284, 274, 245, 271, 247, + /* 10 */ 248, 274, 12, 13, 282, 245, 285, 247, 248, 282, + /* 20 */ 20, 0, 22, 269, 12, 13, 14, 15, 16, 269, + /* 30 */ 276, 20, 12, 13, 14, 15, 16, 277, 338, 285, + /* 40 */ 308, 309, 282, 338, 284, 308, 309, 47, 323, 324, + /* 50 */ 350, 319, 249, 239, 354, 350, 319, 297, 58, 354, + /* 60 */ 12, 13, 14, 246, 64, 242, 249, 20, 20, 309, + /* 70 */ 22, 55, 312, 313, 314, 315, 316, 317, 57, 319, + /* 80 */ 4, 81, 322, 20, 14, 338, 326, 327, 249, 286, + /* 90 */ 20, 249, 269, 249, 82, 47, 80, 350, 338, 83, + /* 100 */ 277, 354, 260, 103, 260, 282, 58, 284, 4, 267, + /* 110 */ 350, 297, 64, 2, 354, 57, 277, 117, 118, 277, + /* 120 */ 297, 277, 297, 12, 13, 14, 15, 16, 81, 81, + /* 130 */ 254, 249, 309, 269, 258, 312, 313, 314, 315, 316, + /* 140 */ 317, 277, 319, 284, 81, 322, 42, 43, 14, 326, + /* 150 */ 327, 103, 338, 294, 20, 316, 113, 81, 158, 277, + /* 160 */ 160, 338, 20, 338, 350, 117, 118, 147, 354, 330, + /* 170 */ 331, 332, 333, 350, 335, 350, 57, 354, 314, 354, + /* 180 */ 41, 145, 182, 183, 153, 185, 186, 187, 188, 189, + /* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 316, 12, + /* 200 */ 13, 14, 15, 16, 173, 174, 158, 241, 160, 243, + /* 210 */ 210, 168, 169, 331, 332, 333, 20, 335, 284, 12, + /* 220 */ 13, 12, 13, 14, 15, 16, 292, 20, 294, 22, + /* 230 */ 182, 183, 0, 185, 186, 187, 188, 189, 190, 191, + /* 240 */ 192, 193, 194, 195, 196, 197, 12, 13, 14, 15, + /* 250 */ 16, 215, 216, 21, 47, 251, 24, 25, 26, 27, + /* 260 */ 28, 29, 30, 31, 32, 58, 20, 12, 13, 82, + /* 270 */ 2, 64, 0, 210, 271, 20, 272, 22, 47, 81, + /* 280 */ 12, 13, 14, 15, 16, 282, 210, 246, 81, 182, + /* 290 */ 249, 94, 95, 96, 97, 98, 99, 100, 101, 102, + /* 300 */ 103, 104, 47, 106, 107, 108, 109, 110, 111, 14, + /* 310 */ 103, 308, 309, 117, 118, 20, 14, 15, 16, 64, + /* 320 */ 186, 41, 319, 242, 117, 118, 219, 220, 221, 222, + /* 330 */ 223, 20, 60, 61, 62, 63, 81, 65, 66, 67, + /* 340 */ 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, + /* 350 */ 78, 0, 257, 261, 259, 157, 81, 159, 103, 150, + /* 360 */ 20, 269, 82, 282, 93, 158, 242, 160, 229, 242, + /* 370 */ 278, 21, 117, 118, 24, 25, 26, 27, 28, 29, + /* 380 */ 30, 31, 32, 112, 113, 114, 115, 116, 253, 182, + /* 390 */ 183, 160, 185, 186, 187, 188, 189, 190, 191, 192, + /* 400 */ 193, 194, 195, 196, 197, 249, 282, 249, 210, 282, + /* 410 */ 275, 60, 61, 158, 269, 160, 65, 242, 260, 68, + /* 420 */ 69, 276, 242, 72, 73, 74, 12, 13, 14, 279, + /* 430 */ 285, 242, 282, 277, 20, 277, 22, 182, 183, 230, + /* 440 */ 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, + /* 450 */ 195, 196, 197, 242, 22, 60, 61, 282, 269, 242, + /* 460 */ 65, 47, 282, 68, 69, 210, 277, 72, 73, 74, + /* 470 */ 112, 282, 316, 284, 12, 13, 283, 284, 64, 47, + /* 480 */ 64, 186, 20, 242, 22, 210, 249, 331, 332, 333, + /* 490 */ 35, 335, 20, 282, 22, 81, 64, 260, 309, 282, + /* 500 */ 253, 312, 313, 314, 315, 316, 317, 242, 319, 47, + /* 510 */ 269, 322, 55, 266, 277, 326, 327, 103, 277, 47, + /* 520 */ 297, 49, 275, 282, 279, 284, 64, 282, 170, 171, + /* 530 */ 85, 117, 118, 88, 249, 103, 12, 13, 81, 84, + /* 540 */ 83, 86, 87, 81, 89, 260, 22, 282, 93, 0, + /* 550 */ 309, 4, 267, 312, 313, 314, 315, 316, 317, 47, + /* 560 */ 319, 338, 277, 322, 20, 103, 22, 326, 327, 328, + /* 570 */ 115, 47, 158, 350, 160, 297, 64, 354, 269, 117, + /* 580 */ 118, 340, 255, 256, 249, 276, 345, 346, 64, 75, + /* 590 */ 158, 37, 160, 49, 285, 260, 182, 183, 20, 185, + /* 600 */ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, + /* 610 */ 196, 197, 277, 261, 182, 183, 338, 141, 42, 43, + /* 620 */ 158, 269, 160, 261, 268, 251, 242, 103, 350, 242, + /* 630 */ 278, 269, 354, 12, 13, 121, 122, 281, 264, 163, + /* 640 */ 278, 20, 93, 22, 182, 183, 272, 185, 186, 187, + /* 650 */ 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, + /* 660 */ 242, 112, 113, 114, 115, 116, 282, 210, 47, 282, + /* 670 */ 249, 242, 1, 2, 198, 271, 242, 249, 18, 3, + /* 680 */ 20, 260, 158, 310, 160, 64, 282, 27, 260, 242, + /* 690 */ 30, 12, 13, 14, 15, 16, 255, 256, 277, 249, + /* 700 */ 282, 242, 81, 20, 18, 277, 182, 334, 48, 23, + /* 710 */ 260, 282, 308, 309, 47, 242, 282, 193, 194, 195, + /* 720 */ 0, 35, 36, 319, 103, 39, 242, 277, 269, 282, + /* 730 */ 242, 262, 310, 310, 265, 41, 277, 58, 117, 118, + /* 740 */ 0, 282, 56, 284, 24, 25, 26, 27, 28, 29, + /* 750 */ 30, 31, 32, 82, 295, 282, 334, 334, 211, 208, + /* 760 */ 209, 82, 242, 209, 186, 92, 282, 81, 309, 90, + /* 770 */ 282, 312, 313, 314, 315, 316, 317, 64, 319, 158, + /* 780 */ 120, 160, 0, 123, 124, 125, 126, 127, 128, 129, + /* 790 */ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, + /* 800 */ 140, 20, 282, 182, 183, 119, 185, 186, 187, 188, + /* 810 */ 189, 190, 191, 192, 193, 194, 195, 196, 197, 269, + /* 820 */ 141, 249, 12, 13, 14, 15, 16, 160, 278, 249, + /* 830 */ 147, 0, 260, 93, 249, 242, 150, 151, 152, 57, + /* 840 */ 260, 155, 163, 85, 58, 260, 88, 161, 85, 277, + /* 850 */ 93, 88, 112, 113, 114, 115, 116, 277, 172, 249, + /* 860 */ 249, 175, 277, 177, 178, 179, 180, 181, 58, 270, + /* 870 */ 260, 260, 115, 0, 270, 282, 45, 198, 199, 200, + /* 880 */ 201, 202, 203, 204, 205, 206, 207, 277, 277, 0, + /* 890 */ 242, 277, 249, 0, 85, 22, 210, 88, 44, 21, + /* 900 */ 90, 225, 288, 260, 41, 19, 41, 47, 41, 117, + /* 910 */ 118, 22, 34, 1, 2, 22, 81, 269, 41, 33, + /* 920 */ 277, 227, 270, 270, 64, 277, 91, 270, 147, 270, + /* 930 */ 282, 45, 284, 270, 33, 81, 41, 51, 52, 53, + /* 940 */ 54, 55, 301, 243, 41, 82, 45, 82, 41, 82, + /* 950 */ 41, 141, 51, 52, 53, 54, 55, 309, 357, 82, + /* 960 */ 312, 313, 314, 315, 316, 317, 80, 319, 182, 83, + /* 970 */ 322, 348, 258, 163, 326, 327, 328, 82, 41, 41, + /* 980 */ 41, 80, 41, 41, 83, 82, 41, 41, 0, 82, + /* 990 */ 305, 82, 41, 250, 346, 269, 342, 250, 248, 281, + /* 1000 */ 311, 336, 116, 339, 242, 212, 351, 351, 198, 199, + /* 1010 */ 200, 201, 202, 203, 204, 205, 206, 207, 307, 82, + /* 1020 */ 82, 82, 20, 82, 82, 351, 249, 82, 82, 143, + /* 1030 */ 242, 269, 146, 82, 46, 45, 306, 156, 47, 277, + /* 1040 */ 255, 299, 289, 142, 282, 144, 284, 146, 249, 148, + /* 1050 */ 249, 165, 40, 167, 141, 287, 242, 269, 287, 20, + /* 1060 */ 249, 244, 244, 20, 303, 277, 253, 284, 167, 253, + /* 1070 */ 282, 309, 284, 20, 312, 313, 314, 315, 316, 317, + /* 1080 */ 296, 319, 20, 269, 322, 298, 253, 296, 326, 327, + /* 1090 */ 328, 277, 253, 20, 290, 253, 282, 309, 284, 337, + /* 1100 */ 312, 313, 314, 315, 316, 317, 277, 319, 242, 253, + /* 1110 */ 322, 249, 253, 244, 326, 327, 328, 269, 269, 269, + /* 1120 */ 269, 269, 242, 309, 269, 337, 312, 313, 314, 315, + /* 1130 */ 316, 317, 244, 319, 249, 269, 322, 269, 251, 269, + /* 1140 */ 326, 327, 328, 277, 269, 269, 282, 303, 282, 269, + /* 1150 */ 284, 337, 269, 282, 249, 166, 284, 277, 20, 302, + /* 1160 */ 217, 251, 282, 297, 284, 251, 251, 277, 218, 290, + /* 1170 */ 296, 347, 311, 242, 282, 309, 282, 297, 312, 313, + /* 1180 */ 314, 315, 316, 317, 293, 319, 282, 347, 224, 309, + /* 1190 */ 4, 293, 312, 313, 314, 315, 316, 317, 149, 319, + /* 1200 */ 269, 209, 344, 307, 338, 19, 213, 277, 277, 20, + /* 1210 */ 310, 40, 228, 282, 231, 284, 350, 81, 338, 33, + /* 1220 */ 354, 293, 226, 144, 291, 343, 282, 293, 329, 282, + /* 1230 */ 350, 45, 277, 251, 354, 282, 50, 242, 341, 290, + /* 1240 */ 309, 55, 358, 312, 313, 314, 315, 316, 317, 325, + /* 1250 */ 319, 242, 265, 322, 251, 353, 277, 326, 327, 353, + /* 1260 */ 242, 353, 81, 352, 269, 259, 80, 273, 352, 83, + /* 1270 */ 352, 249, 277, 244, 251, 300, 304, 282, 269, 284, + /* 1280 */ 282, 240, 263, 263, 263, 252, 277, 269, 0, 0, + /* 1290 */ 40, 282, 0, 284, 72, 277, 0, 176, 47, 47, + /* 1300 */ 282, 47, 284, 47, 309, 176, 0, 312, 313, 314, + /* 1310 */ 315, 316, 317, 318, 319, 320, 321, 242, 309, 47, + /* 1320 */ 47, 312, 313, 314, 315, 316, 317, 309, 319, 176, + /* 1330 */ 312, 313, 314, 315, 316, 317, 0, 319, 176, 242, + /* 1340 */ 322, 0, 47, 0, 269, 327, 22, 0, 47, 0, + /* 1350 */ 81, 163, 277, 162, 160, 158, 0, 282, 0, 284, + /* 1360 */ 154, 153, 0, 0, 355, 356, 269, 44, 0, 0, + /* 1370 */ 0, 0, 0, 0, 277, 0, 0, 0, 0, 282, + /* 1380 */ 0, 284, 0, 0, 309, 0, 0, 312, 313, 314, + /* 1390 */ 315, 316, 317, 242, 319, 0, 0, 0, 0, 40, + /* 1400 */ 0, 0, 0, 0, 0, 242, 309, 0, 0, 312, + /* 1410 */ 313, 314, 315, 316, 317, 22, 319, 0, 0, 0, + /* 1420 */ 269, 0, 41, 14, 349, 37, 14, 40, 277, 0, + /* 1430 */ 0, 0, 269, 282, 44, 284, 44, 38, 0, 149, + /* 1440 */ 277, 0, 37, 0, 0, 282, 295, 284, 37, 0, + /* 1450 */ 37, 0, 37, 356, 0, 0, 242, 37, 0, 37, + /* 1460 */ 309, 47, 37, 312, 313, 314, 315, 316, 317, 59, + /* 1470 */ 319, 45, 309, 45, 47, 312, 313, 314, 315, 316, + /* 1480 */ 317, 47, 319, 269, 321, 45, 47, 45, 0, 0, + /* 1490 */ 0, 277, 0, 47, 22, 0, 282, 47, 284, 47, + /* 1500 */ 47, 41, 41, 47, 47, 0, 90, 242, 22, 295, + /* 1510 */ 47, 88, 47, 0, 48, 22, 0, 47, 22, 0, + /* 1520 */ 22, 242, 0, 309, 22, 0, 312, 313, 314, 315, + /* 1530 */ 316, 317, 20, 319, 269, 0, 147, 22, 47, 0, + /* 1540 */ 0, 0, 277, 164, 0, 81, 37, 282, 269, 284, + /* 1550 */ 82, 41, 41, 214, 81, 41, 277, 82, 81, 81, + /* 1560 */ 295, 282, 82, 284, 41, 44, 81, 41, 44, 214, + /* 1570 */ 242, 147, 44, 208, 309, 142, 144, 312, 313, 314, + /* 1580 */ 315, 316, 317, 147, 319, 82, 82, 242, 309, 41, + /* 1590 */ 44, 312, 313, 314, 315, 316, 317, 269, 319, 82, + /* 1600 */ 41, 47, 82, 47, 2, 277, 41, 47, 47, 47, + /* 1610 */ 282, 47, 284, 82, 269, 81, 44, 44, 82, 182, + /* 1620 */ 82, 22, 277, 81, 81, 0, 81, 282, 81, 284, + /* 1630 */ 37, 82, 184, 81, 81, 44, 242, 309, 44, 145, + /* 1640 */ 312, 313, 314, 315, 316, 317, 91, 319, 242, 214, + /* 1650 */ 81, 81, 22, 82, 309, 81, 81, 312, 313, 314, + /* 1660 */ 315, 316, 317, 269, 319, 82, 47, 47, 92, 142, + /* 1670 */ 81, 277, 82, 47, 82, 269, 282, 81, 284, 47, + /* 1680 */ 47, 81, 81, 277, 47, 82, 82, 81, 282, 242, + /* 1690 */ 284, 105, 105, 22, 81, 81, 47, 81, 93, 41, + /* 1700 */ 105, 22, 105, 309, 59, 58, 312, 313, 314, 315, + /* 1710 */ 316, 317, 47, 319, 64, 309, 269, 79, 312, 313, + /* 1720 */ 314, 315, 316, 317, 277, 319, 41, 47, 47, 282, + /* 1730 */ 47, 284, 22, 47, 47, 47, 47, 64, 47, 47, + /* 1740 */ 47, 242, 47, 47, 47, 47, 0, 47, 45, 37, + /* 1750 */ 242, 0, 47, 45, 0, 37, 309, 0, 47, 312, + /* 1760 */ 313, 314, 315, 316, 317, 45, 319, 37, 269, 47, + /* 1770 */ 45, 37, 0, 47, 0, 22, 277, 269, 22, 21, + /* 1780 */ 21, 282, 22, 284, 20, 277, 359, 359, 359, 359, + /* 1790 */ 282, 359, 284, 359, 359, 359, 359, 359, 359, 242, + /* 1800 */ 359, 359, 359, 359, 359, 359, 359, 359, 309, 359, + /* 1810 */ 359, 312, 313, 314, 315, 316, 317, 309, 319, 359, + /* 1820 */ 312, 313, 314, 315, 316, 317, 269, 319, 359, 359, + /* 1830 */ 359, 359, 359, 359, 277, 359, 359, 249, 359, 282, + /* 1840 */ 242, 284, 359, 359, 359, 359, 359, 359, 359, 359, + /* 1850 */ 359, 359, 359, 359, 359, 359, 359, 242, 359, 359, + /* 1860 */ 359, 359, 359, 359, 359, 277, 309, 269, 359, 312, + /* 1870 */ 313, 314, 315, 316, 317, 277, 319, 359, 359, 359, + /* 1880 */ 282, 359, 284, 359, 269, 297, 359, 359, 359, 359, + /* 1890 */ 359, 359, 277, 359, 359, 359, 359, 282, 359, 284, + /* 1900 */ 359, 359, 359, 359, 316, 359, 242, 309, 359, 359, + /* 1910 */ 312, 313, 314, 315, 316, 317, 359, 319, 242, 331, + /* 1920 */ 332, 333, 359, 335, 309, 359, 338, 312, 313, 314, + /* 1930 */ 315, 316, 317, 269, 319, 359, 359, 359, 350, 249, + /* 1940 */ 359, 277, 354, 359, 359, 269, 282, 359, 284, 359, + /* 1950 */ 359, 359, 359, 277, 359, 359, 359, 359, 282, 242, + /* 1960 */ 284, 359, 359, 359, 359, 359, 359, 277, 359, 359, + /* 1970 */ 359, 359, 359, 309, 359, 359, 312, 313, 314, 315, + /* 1980 */ 316, 317, 359, 319, 359, 309, 269, 297, 312, 313, + /* 1990 */ 314, 315, 316, 317, 277, 319, 359, 359, 359, 282, + /* 2000 */ 359, 284, 359, 359, 359, 359, 316, 359, 359, 359, + /* 2010 */ 359, 242, 359, 359, 359, 359, 359, 359, 359, 359, + /* 2020 */ 242, 331, 332, 333, 359, 335, 309, 359, 338, 312, + /* 2030 */ 313, 314, 315, 316, 317, 359, 319, 359, 269, 359, + /* 2040 */ 350, 359, 359, 359, 354, 359, 277, 269, 359, 359, + /* 2050 */ 359, 282, 359, 284, 359, 277, 359, 359, 359, 359, + /* 2060 */ 282, 359, 284, 359, 359, 359, 359, 359, 359, 359, + /* 2070 */ 359, 359, 359, 359, 359, 359, 359, 359, 309, 359, + /* 2080 */ 359, 312, 313, 314, 315, 316, 317, 309, 319, 359, + /* 2090 */ 312, 313, 314, 315, 316, 317, 359, 319, }; -#define YY_SHIFT_COUNT (623) +#define YY_SHIFT_COUNT (621) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2012) +#define YY_SHIFT_MAX (1774) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 797, 0, 0, 48, 206, 206, 206, 206, 254, 254, - /* 10 */ 206, 206, 412, 460, 618, 460, 460, 460, 460, 460, - /* 20 */ 460, 460, 460, 460, 460, 460, 460, 460, 460, 460, - /* 30 */ 460, 460, 460, 460, 460, 460, 460, 460, 3, 3, - /* 40 */ 29, 29, 29, 2012, 2012, 2012, 2012, 94, 303, 16, - /* 50 */ 1, 1, 24, 24, 280, 53, 16, 16, 1, 1, - /* 60 */ 1, 1, 1, 1, 1, 71, 1, 1, 52, 122, - /* 70 */ 253, 52, 1, 1, 52, 1, 52, 52, 52, 1, - /* 80 */ 229, 657, 810, 825, 825, 230, 81, 823, 823, 823, - /* 90 */ 823, 823, 823, 823, 823, 823, 823, 823, 823, 823, - /* 100 */ 823, 823, 823, 823, 823, 823, 210, 53, 31, 31, - /* 110 */ 666, 202, 20, 20, 20, 672, 202, 354, 253, 52, - /* 120 */ 52, 349, 349, 313, 360, 456, 974, 974, 974, 974, - /* 130 */ 974, 974, 974, 1246, 682, 556, 265, 200, 159, 374, - /* 140 */ 292, 505, 653, 796, 752, 705, 621, 704, 621, 633, - /* 150 */ 633, 633, 675, 305, 828, 1023, 999, 1001, 896, 1023, - /* 160 */ 1023, 1015, 919, 919, 1023, 1043, 1043, 1046, 71, 253, - /* 170 */ 71, 1076, 1080, 71, 1076, 71, 354, 1090, 71, 71, - /* 180 */ 1023, 71, 1043, 52, 52, 52, 52, 52, 52, 52, - /* 190 */ 52, 52, 52, 52, 1023, 1043, 349, 349, 1046, 229, - /* 200 */ 975, 253, 229, 1023, 1076, 229, 354, 1090, 229, 1125, - /* 210 */ 941, 954, 349, 941, 954, 349, 349, 52, 945, 1028, - /* 220 */ 966, 828, 977, 354, 1169, 1150, 967, 970, 969, 967, - /* 230 */ 970, 967, 970, 1120, 954, 349, 349, 954, 349, 1059, - /* 240 */ 354, 1090, 229, 313, 229, 354, 1163, 349, 360, 1023, - /* 250 */ 229, 1043, 2207, 2207, 2207, 2207, 2207, 2207, 2207, 678, - /* 260 */ 237, 506, 264, 87, 294, 415, 201, 208, 339, 551, - /* 270 */ 341, 455, 455, 455, 455, 455, 455, 455, 455, 75, - /* 280 */ 129, 295, 523, 123, 473, 446, 446, 446, 446, 344, - /* 290 */ 775, 649, 762, 781, 800, 847, 873, 874, 858, 807, - /* 300 */ 812, 813, 879, 784, 760, 724, 842, 803, 849, 875, - /* 310 */ 883, 885, 886, 902, 913, 881, 895, 915, 918, 920, - /* 320 */ 937, 938, 940, 952, 973, 1267, 1278, 1242, 1283, 1213, - /* 330 */ 1285, 1240, 1114, 1243, 1245, 1247, 1118, 1295, 1254, 1256, - /* 340 */ 1129, 1314, 1140, 1322, 1277, 1329, 1308, 1340, 1286, 1334, - /* 350 */ 1252, 1173, 1176, 1177, 1181, 1341, 1342, 1190, 1192, 1345, - /* 360 */ 1346, 1306, 1351, 1353, 1356, 1357, 1358, 1359, 1360, 1362, - /* 370 */ 1364, 1366, 1367, 1369, 1371, 1372, 1373, 1374, 1375, 1376, - /* 380 */ 1337, 1378, 1380, 1381, 1392, 1394, 1396, 1368, 1397, 1404, - /* 390 */ 1406, 1407, 1408, 1409, 1377, 1382, 1370, 1400, 1379, 1401, - /* 400 */ 1383, 1413, 1384, 1387, 1418, 1420, 1425, 1389, 1280, 1430, - /* 410 */ 1431, 1395, 1433, 1385, 1437, 1438, 1393, 1402, 1405, 1439, - /* 420 */ 1398, 1403, 1412, 1441, 1415, 1410, 1414, 1446, 1416, 1427, - /* 430 */ 1417, 1450, 1453, 1456, 1458, 1386, 1391, 1429, 1452, 1477, - /* 440 */ 1432, 1434, 1435, 1436, 1419, 1444, 1448, 1451, 1455, 1480, - /* 450 */ 1464, 1493, 1475, 1457, 1499, 1478, 1459, 1503, 1482, 1507, - /* 460 */ 1488, 1491, 1512, 1388, 1466, 1515, 1354, 1496, 1440, 1422, - /* 470 */ 1519, 1520, 1521, 1445, 1522, 1443, 1489, 1421, 1484, 1486, - /* 480 */ 1315, 1449, 1490, 1454, 1462, 1463, 1474, 1476, 1492, 1485, - /* 490 */ 1494, 1479, 1495, 1327, 1497, 1498, 1511, 1349, 1517, 1516, - /* 500 */ 1500, 1534, 1350, 1501, 1529, 1530, 1536, 1537, 1538, 1540, - /* 510 */ 1501, 1564, 1424, 1549, 1513, 1518, 1526, 1548, 1523, 1528, - /* 520 */ 1552, 1577, 1428, 1532, 1541, 1557, 1533, 1535, 1473, 1539, - /* 530 */ 1600, 1573, 1502, 1562, 1531, 1574, 1606, 1575, 1572, 1576, - /* 540 */ 1632, 1578, 1566, 1579, 1614, 1615, 1583, 1584, 1617, 1586, - /* 550 */ 1588, 1623, 1591, 1592, 1628, 1597, 1598, 1631, 1604, 1581, - /* 560 */ 1582, 1585, 1587, 1660, 1595, 1610, 1612, 1647, 1616, 1656, - /* 570 */ 1656, 1676, 1642, 1662, 1670, 1658, 1644, 1690, 1685, 1686, - /* 580 */ 1687, 1688, 1689, 1717, 1693, 1694, 1680, 1419, 1698, 1444, - /* 590 */ 1700, 1701, 1703, 1705, 1707, 1708, 1749, 1709, 1712, 1721, - /* 600 */ 1759, 1713, 1716, 1725, 1763, 1718, 1719, 1730, 1768, 1723, - /* 610 */ 1726, 1743, 1744, 1789, 1745, 1747, 1791, 1795, 1774, 1776, - /* 620 */ 1777, 1778, 1780, 1783, + /* 0 */ 686, 0, 0, 48, 207, 207, 207, 207, 255, 255, + /* 10 */ 207, 207, 414, 462, 621, 462, 462, 462, 462, 462, + /* 20 */ 462, 462, 462, 462, 462, 462, 462, 462, 462, 462, + /* 30 */ 462, 462, 462, 462, 462, 462, 462, 462, 63, 63, + /* 40 */ 47, 47, 47, 524, 524, 524, 524, 198, 457, 275, + /* 50 */ 11, 11, 104, 104, 76, 196, 275, 275, 11, 11, + /* 60 */ 11, 11, 11, 11, 11, 58, 11, 11, 142, 246, + /* 70 */ 311, 142, 11, 11, 142, 11, 142, 142, 142, 11, + /* 80 */ 119, 660, 679, 810, 810, 350, 395, 432, 432, 432, + /* 90 */ 432, 432, 432, 432, 432, 432, 432, 432, 432, 432, + /* 100 */ 432, 432, 432, 432, 432, 432, 455, 196, 70, 70, + /* 110 */ 21, 512, 683, 683, 683, 782, 512, 340, 311, 142, + /* 120 */ 142, 416, 416, 673, 713, 197, 197, 197, 197, 197, + /* 130 */ 197, 197, 886, 232, 351, 209, 107, 472, 43, 36, + /* 140 */ 134, 295, 544, 576, 757, 781, 551, 554, 551, 676, + /* 150 */ 676, 676, 547, 578, 793, 1002, 990, 991, 881, 1002, + /* 160 */ 1002, 1012, 913, 913, 1002, 1039, 1039, 1043, 58, 311, + /* 170 */ 58, 1053, 1062, 58, 1053, 58, 340, 1073, 58, 58, + /* 180 */ 1002, 58, 1039, 142, 142, 142, 142, 142, 142, 142, + /* 190 */ 142, 142, 142, 142, 1002, 1039, 416, 416, 1043, 119, + /* 200 */ 989, 311, 119, 1002, 1053, 119, 340, 1073, 119, 1138, + /* 210 */ 950, 943, 416, 950, 943, 416, 416, 142, 964, 1049, + /* 220 */ 993, 793, 992, 340, 1189, 1171, 984, 996, 983, 984, + /* 230 */ 996, 984, 996, 1136, 943, 416, 416, 943, 416, 1079, + /* 240 */ 340, 1073, 119, 673, 119, 340, 1181, 416, 713, 1002, + /* 250 */ 119, 1039, 2098, 2098, 2098, 2098, 2098, 2098, 2098, 272, + /* 260 */ 901, 720, 1186, 549, 740, 12, 111, 268, 20, 187, + /* 270 */ 271, 234, 234, 234, 234, 234, 234, 234, 234, 31, + /* 280 */ 16, 514, 358, 671, 476, 302, 302, 302, 302, 831, + /* 290 */ 280, 445, 758, 763, 809, 873, 889, 893, 878, 863, + /* 300 */ 865, 867, 912, 792, 694, 139, 877, 786, 895, 854, + /* 310 */ 903, 907, 909, 937, 938, 231, 667, 939, 941, 942, + /* 320 */ 945, 946, 951, 835, 860, 988, 1288, 1289, 1250, 1292, + /* 330 */ 1222, 1296, 1251, 1121, 1252, 1254, 1256, 1129, 1306, 1272, + /* 340 */ 1273, 1153, 1336, 1162, 1341, 1295, 1343, 1324, 1347, 1301, + /* 350 */ 1349, 1269, 1188, 1191, 1194, 1197, 1356, 1358, 1206, 1208, + /* 360 */ 1362, 1363, 1323, 1368, 1369, 1370, 1371, 1372, 1373, 1375, + /* 370 */ 1376, 1377, 1378, 1380, 1382, 1383, 1385, 1386, 1395, 1396, + /* 380 */ 1397, 1359, 1398, 1400, 1401, 1402, 1403, 1404, 1393, 1407, + /* 390 */ 1408, 1417, 1418, 1419, 1421, 1387, 1388, 1381, 1409, 1390, + /* 400 */ 1412, 1392, 1429, 1399, 1405, 1430, 1431, 1438, 1411, 1290, + /* 410 */ 1441, 1443, 1413, 1444, 1410, 1449, 1451, 1414, 1426, 1415, + /* 420 */ 1454, 1427, 1428, 1420, 1455, 1434, 1440, 1422, 1458, 1439, + /* 430 */ 1442, 1425, 1488, 1489, 1490, 1492, 1416, 1423, 1446, 1472, + /* 440 */ 1495, 1450, 1452, 1453, 1456, 1460, 1461, 1457, 1463, 1465, + /* 450 */ 1505, 1486, 1513, 1493, 1466, 1516, 1496, 1470, 1519, 1498, + /* 460 */ 1522, 1502, 1512, 1525, 1389, 1491, 1535, 1379, 1515, 1424, + /* 470 */ 1432, 1539, 1540, 1541, 1436, 1544, 1464, 1509, 1433, 1510, + /* 480 */ 1511, 1339, 1468, 1514, 1475, 1473, 1477, 1478, 1480, 1523, + /* 490 */ 1521, 1524, 1485, 1526, 1355, 1503, 1504, 1528, 1365, 1548, + /* 500 */ 1546, 1517, 1559, 1435, 1520, 1554, 1556, 1560, 1561, 1562, + /* 510 */ 1564, 1520, 1602, 1437, 1565, 1531, 1534, 1536, 1572, 1542, + /* 520 */ 1543, 1573, 1599, 1448, 1545, 1538, 1549, 1547, 1552, 1494, + /* 530 */ 1553, 1625, 1593, 1527, 1569, 1555, 1591, 1594, 1570, 1571, + /* 540 */ 1574, 1630, 1575, 1576, 1583, 1619, 1620, 1589, 1590, 1626, + /* 550 */ 1596, 1592, 1632, 1600, 1603, 1633, 1601, 1604, 1637, 1606, + /* 560 */ 1586, 1587, 1595, 1597, 1671, 1605, 1613, 1614, 1649, 1616, + /* 570 */ 1658, 1658, 1679, 1645, 1647, 1665, 1650, 1638, 1685, 1680, + /* 580 */ 1681, 1683, 1686, 1687, 1710, 1688, 1689, 1673, 1460, 1691, + /* 590 */ 1461, 1692, 1693, 1695, 1696, 1697, 1698, 1746, 1700, 1703, + /* 600 */ 1712, 1751, 1705, 1708, 1718, 1754, 1711, 1720, 1730, 1757, + /* 610 */ 1722, 1725, 1734, 1772, 1726, 1774, 1753, 1758, 1756, 1760, + /* 620 */ 1759, 1764, }; #define YY_REDUCE_COUNT (258) -#define YY_REDUCE_MIN (-315) -#define YY_REDUCE_MAX (1788) +#define YY_REDUCE_MIN (-300) +#define YY_REDUCE_MAX (1778) static const short yy_reduce_ofst[] = { - /* 0 */ -182, -183, 23, 233, -238, 594, 776, 837, 900, 914, - /* 10 */ 447, 676, 620, 993, 1004, 1070, 1086, 1152, 1175, 1232, - /* 20 */ 1255, 1311, 1320, 1332, 1390, 1399, 1411, 1460, 1469, 1525, - /* 30 */ 1546, 1602, 1625, 1681, 1702, 1767, 1779, 1788, 189, 909, - /* 40 */ -212, -155, -2, -267, -255, -271, 39, -295, -247, 203, - /* 50 */ -243, -242, -214, -134, -203, 84, -192, -39, 216, 231, - /* 60 */ 239, 310, 332, 335, 362, 315, 366, 409, 90, -177, - /* 70 */ 217, 398, 414, 420, 219, 423, 454, 306, 581, 425, - /* 80 */ -166, 93, -315, -315, -315, -67, -244, -144, -10, 135, - /* 90 */ 169, 262, 272, 343, 417, 419, 422, 448, 476, 486, - /* 100 */ 516, 537, 576, 580, 590, 593, -199, 174, -219, -85, - /* 110 */ 358, 228, -6, 327, 384, 300, 242, 297, 78, -72, - /* 120 */ 196, 488, 548, 356, 462, 522, -269, 256, 316, 394, - /* 130 */ 527, 585, 628, 563, 484, 647, 561, 596, 644, 627, - /* 140 */ 693, 693, 716, 721, 719, 686, 697, 697, 697, 683, - /* 150 */ 684, 687, 698, 693, 734, 798, 741, 794, 751, 804, - /* 160 */ 808, 768, 774, 777, 814, 822, 843, 791, 834, 815, - /* 170 */ 844, 805, 809, 852, 816, 855, 832, 821, 862, 863, - /* 180 */ 869, 865, 877, 853, 854, 856, 857, 859, 860, 861, - /* 190 */ 864, 866, 867, 868, 876, 884, 850, 878, 831, 880, - /* 200 */ 836, 882, 888, 894, 848, 892, 870, 871, 897, 851, - /* 210 */ 820, 887, 889, 826, 899, 890, 893, 693, 835, 838, - /* 220 */ 846, 898, 697, 911, 891, 903, 840, 872, 845, 904, - /* 230 */ 901, 905, 908, 910, 917, 922, 925, 927, 926, 930, - /* 240 */ 959, 928, 971, 972, 988, 978, 976, 964, 989, 1003, - /* 250 */ 1005, 1018, 980, 962, 1006, 1008, 1009, 1022, 1037, + /* 0 */ -186, -240, -177, 241, 648, 762, 788, 814, 866, 880, + /* 10 */ 189, 931, 995, 1009, 1018, 459, 1075, 1097, 1151, 1163, + /* 20 */ 1214, 1265, 1279, 1328, 1345, 1394, 1406, 1447, 1499, 1508, + /* 30 */ 1557, 1598, 1615, 1664, 1676, 1717, 1769, 1778, 1588, 1690, + /* 40 */ -161, -118, 156, -268, -263, 3, 404, -175, 223, 278, + /* 50 */ -158, 285, -238, -230, -300, -279, -295, -253, -156, 158, + /* 60 */ 237, 335, 421, 428, 450, 247, 572, 580, -246, -136, + /* 70 */ -66, 92, 585, 610, 145, 611, 352, 309, 362, 643, + /* 80 */ 374, -197, -275, -275, -275, -34, -124, 81, 124, 127, + /* 90 */ 175, 180, 211, 217, 265, 384, 387, 418, 429, 434, + /* 100 */ 447, 473, 484, 488, 520, 593, 356, 193, -183, 41, + /* 110 */ 135, 327, 373, 422, 423, 4, 441, 614, -141, 550, + /* 120 */ -269, 150, 245, 469, 95, 599, 604, 652, 653, 657, + /* 130 */ 659, 663, 641, 700, 714, 601, 623, 743, 685, 654, + /* 140 */ 726, 726, 747, 750, 718, 689, 665, 665, 665, 655, + /* 150 */ 656, 674, 664, 726, 711, 777, 730, 785, 742, 799, + /* 160 */ 801, 753, 768, 771, 811, 817, 818, 761, 813, 783, + /* 170 */ 816, 784, 787, 833, 791, 839, 829, 804, 842, 856, + /* 180 */ 862, 859, 869, 848, 849, 850, 851, 852, 855, 868, + /* 190 */ 870, 875, 876, 883, 885, 888, 864, 871, 844, 887, + /* 200 */ 857, 872, 910, 905, 874, 914, 890, 879, 915, 861, + /* 210 */ 824, 891, 892, 840, 898, 894, 904, 726, 858, 882, + /* 220 */ 897, 896, 665, 930, 900, 899, 902, 911, 884, 906, + /* 230 */ 916, 908, 918, 924, 928, 944, 947, 934, 953, 933, + /* 240 */ 955, 949, 982, 987, 1003, 979, 994, 998, 1006, 1022, + /* 250 */ 1023, 1029, 975, 972, 1019, 1020, 1021, 1033, 1041, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 10 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 20 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 30 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 40 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 50 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 60 */ 1370, 1370, 1370, 1370, 1370, 1438, 1370, 1370, 1370, 1370, - /* 70 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 80 */ 1436, 1584, 1370, 1748, 1370, 1370, 1370, 1370, 1370, 1370, - /* 90 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 100 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 110 */ 1438, 1370, 1759, 1759, 1759, 1436, 1370, 1370, 1370, 1370, - /* 120 */ 1370, 1370, 1370, 1532, 1370, 1370, 1370, 1370, 1370, 1370, - /* 130 */ 1370, 1370, 1370, 1617, 1370, 1370, 1825, 1370, 1623, 1783, - /* 140 */ 1370, 1370, 1370, 1370, 1485, 1775, 1751, 1765, 1752, 1810, - /* 150 */ 1810, 1810, 1768, 1370, 1779, 1370, 1370, 1370, 1609, 1370, - /* 160 */ 1370, 1589, 1586, 1586, 1370, 1370, 1370, 1370, 1438, 1370, - /* 170 */ 1438, 1370, 1370, 1438, 1370, 1438, 1370, 1370, 1438, 1438, - /* 180 */ 1370, 1438, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 190 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1436, - /* 200 */ 1619, 1370, 1436, 1370, 1370, 1436, 1370, 1370, 1436, 1370, - /* 210 */ 1790, 1788, 1370, 1790, 1788, 1370, 1370, 1370, 1802, 1798, - /* 220 */ 1781, 1779, 1765, 1370, 1370, 1370, 1816, 1812, 1828, 1816, - /* 230 */ 1812, 1816, 1812, 1370, 1788, 1370, 1370, 1788, 1370, 1594, - /* 240 */ 1370, 1370, 1436, 1370, 1436, 1370, 1501, 1370, 1370, 1370, - /* 250 */ 1436, 1370, 1611, 1625, 1535, 1535, 1535, 1439, 1375, 1370, - /* 260 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 270 */ 1497, 1692, 1801, 1800, 1724, 1723, 1722, 1720, 1691, 1370, - /* 280 */ 1370, 1370, 1370, 1370, 1370, 1685, 1686, 1684, 1683, 1370, - /* 290 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 300 */ 1370, 1370, 1749, 1370, 1813, 1817, 1370, 1370, 1370, 1668, - /* 310 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 320 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 330 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 340 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 350 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 360 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 370 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 380 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 390 */ 1370, 1370, 1370, 1370, 1370, 1370, 1404, 1370, 1370, 1370, - /* 400 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 410 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 420 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 430 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 440 */ 1370, 1370, 1370, 1370, 1466, 1465, 1370, 1370, 1370, 1370, - /* 450 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 460 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 470 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1772, 1782, - /* 480 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 490 */ 1668, 1370, 1799, 1370, 1758, 1754, 1370, 1370, 1750, 1370, - /* 500 */ 1370, 1811, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 510 */ 1370, 1744, 1370, 1717, 1370, 1370, 1370, 1370, 1370, 1370, - /* 520 */ 1370, 1370, 1679, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 530 */ 1370, 1370, 1370, 1370, 1370, 1667, 1370, 1708, 1370, 1370, - /* 540 */ 1370, 1370, 1370, 1370, 1370, 1370, 1529, 1370, 1370, 1370, - /* 550 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1514, - /* 560 */ 1512, 1511, 1510, 1370, 1507, 1370, 1370, 1370, 1370, 1538, - /* 570 */ 1537, 1370, 1370, 1370, 1370, 1370, 1370, 1458, 1370, 1370, - /* 580 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1449, 1370, 1448, - /* 590 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 600 */ 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 610 */ 1370, 1370, 1419, 1370, 1370, 1370, 1370, 1370, 1370, 1370, - /* 620 */ 1370, 1370, 1370, 1370, + /* 0 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 10 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 20 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 30 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 40 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 50 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 60 */ 1371, 1371, 1371, 1371, 1371, 1440, 1371, 1371, 1371, 1371, + /* 70 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 80 */ 1438, 1586, 1371, 1750, 1371, 1371, 1371, 1371, 1371, 1371, + /* 90 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 100 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 110 */ 1440, 1371, 1761, 1761, 1761, 1438, 1371, 1371, 1371, 1371, + /* 120 */ 1371, 1371, 1371, 1534, 1371, 1371, 1371, 1371, 1371, 1371, + /* 130 */ 1371, 1371, 1619, 1371, 1371, 1827, 1371, 1371, 1625, 1785, + /* 140 */ 1371, 1371, 1371, 1371, 1487, 1777, 1753, 1767, 1754, 1812, + /* 150 */ 1812, 1812, 1770, 1371, 1781, 1371, 1371, 1371, 1611, 1371, + /* 160 */ 1371, 1591, 1588, 1588, 1371, 1371, 1371, 1371, 1440, 1371, + /* 170 */ 1440, 1371, 1371, 1440, 1371, 1440, 1371, 1371, 1440, 1440, + /* 180 */ 1371, 1440, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 190 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1438, + /* 200 */ 1621, 1371, 1438, 1371, 1371, 1438, 1371, 1371, 1438, 1371, + /* 210 */ 1792, 1790, 1371, 1792, 1790, 1371, 1371, 1371, 1804, 1800, + /* 220 */ 1783, 1781, 1767, 1371, 1371, 1371, 1818, 1814, 1830, 1818, + /* 230 */ 1814, 1818, 1814, 1371, 1790, 1371, 1371, 1790, 1371, 1596, + /* 240 */ 1371, 1371, 1438, 1371, 1438, 1371, 1503, 1371, 1371, 1371, + /* 250 */ 1438, 1371, 1613, 1627, 1537, 1537, 1537, 1441, 1376, 1371, + /* 260 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 270 */ 1499, 1694, 1803, 1802, 1726, 1725, 1724, 1722, 1693, 1371, + /* 280 */ 1371, 1371, 1371, 1371, 1371, 1687, 1688, 1686, 1685, 1371, + /* 290 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 300 */ 1371, 1371, 1751, 1371, 1815, 1819, 1371, 1371, 1371, 1670, + /* 310 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 320 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 330 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 340 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 350 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 360 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 370 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 380 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 390 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1405, 1371, 1371, + /* 400 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 410 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 420 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 430 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 440 */ 1371, 1371, 1371, 1371, 1371, 1468, 1467, 1371, 1371, 1371, + /* 450 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 460 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 470 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1774, + /* 480 */ 1784, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 490 */ 1371, 1670, 1371, 1801, 1371, 1760, 1756, 1371, 1371, 1752, + /* 500 */ 1371, 1371, 1813, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 510 */ 1371, 1371, 1746, 1371, 1719, 1371, 1371, 1371, 1371, 1371, + /* 520 */ 1371, 1371, 1371, 1681, 1371, 1371, 1371, 1371, 1371, 1371, + /* 530 */ 1371, 1371, 1371, 1371, 1371, 1371, 1669, 1371, 1710, 1371, + /* 540 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1531, 1371, 1371, + /* 550 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 560 */ 1516, 1514, 1513, 1512, 1371, 1509, 1371, 1371, 1371, 1371, + /* 570 */ 1540, 1539, 1371, 1371, 1371, 1371, 1371, 1371, 1460, 1371, + /* 580 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1451, 1371, + /* 590 */ 1450, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 600 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 610 */ 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, 1371, + /* 620 */ 1371, 1371, }; /********** End of lemon-generated parsing tables *****************************/ @@ -899,6 +871,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* PORT => nothing */ 0, /* NK_INTEGER => nothing */ 0, /* DNODES => nothing */ + 0, /* NK_IPTOKEN => nothing */ 0, /* LOCAL => nothing */ 0, /* QNODE => nothing */ 0, /* BNODE => nothing */ @@ -1082,12 +1055,12 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ID => nothing */ - 231, /* NK_BITNOT => ID */ - 231, /* INSERT => ID */ - 231, /* VALUES => ID */ - 231, /* IMPORT => ID */ - 231, /* NK_SEMI => ID */ - 231, /* FILE => ID */ + 232, /* NK_BITNOT => ID */ + 232, /* INSERT => ID */ + 232, /* VALUES => ID */ + 232, /* IMPORT => ID */ + 232, /* NK_SEMI => ID */ + 232, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -1224,208 +1197,208 @@ static const char *const yyTokenName[] = { /* 46 */ "PORT", /* 47 */ "NK_INTEGER", /* 48 */ "DNODES", - /* 49 */ "LOCAL", - /* 50 */ "QNODE", - /* 51 */ "BNODE", - /* 52 */ "SNODE", - /* 53 */ "MNODE", - /* 54 */ "DATABASE", - /* 55 */ "USE", - /* 56 */ "IF", - /* 57 */ "NOT", - /* 58 */ "EXISTS", - /* 59 */ "BUFFER", - /* 60 */ "CACHELAST", - /* 61 */ "COMP", - /* 62 */ "DURATION", - /* 63 */ "NK_VARIABLE", - /* 64 */ "FSYNC", - /* 65 */ "MAXROWS", - /* 66 */ "MINROWS", - /* 67 */ "KEEP", - /* 68 */ "PAGES", - /* 69 */ "PAGESIZE", - /* 70 */ "PRECISION", - /* 71 */ "REPLICA", - /* 72 */ "STRICT", - /* 73 */ "WAL", - /* 74 */ "VGROUPS", - /* 75 */ "SINGLE_STABLE", - /* 76 */ "RETENTIONS", - /* 77 */ "SCHEMALESS", - /* 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 */ "MAX_DELAY", - /* 112 */ "WATERMARK", - /* 113 */ "ROLLUP", - /* 114 */ "TTL", - /* 115 */ "SMA", - /* 116 */ "FIRST", - /* 117 */ "LAST", - /* 118 */ "SHOW", - /* 119 */ "DATABASES", - /* 120 */ "TABLES", - /* 121 */ "STABLES", - /* 122 */ "MNODES", - /* 123 */ "MODULES", - /* 124 */ "QNODES", - /* 125 */ "FUNCTIONS", - /* 126 */ "INDEXES", - /* 127 */ "ACCOUNTS", - /* 128 */ "APPS", - /* 129 */ "CONNECTIONS", - /* 130 */ "LICENCE", - /* 131 */ "GRANTS", - /* 132 */ "QUERIES", - /* 133 */ "SCORES", - /* 134 */ "TOPICS", - /* 135 */ "VARIABLES", - /* 136 */ "BNODES", - /* 137 */ "SNODES", - /* 138 */ "CLUSTER", - /* 139 */ "TRANSACTIONS", - /* 140 */ "LIKE", - /* 141 */ "INDEX", - /* 142 */ "FULLTEXT", - /* 143 */ "FUNCTION", - /* 144 */ "INTERVAL", - /* 145 */ "TOPIC", - /* 146 */ "AS", - /* 147 */ "CONSUMER", - /* 148 */ "GROUP", - /* 149 */ "DESC", - /* 150 */ "DESCRIBE", - /* 151 */ "RESET", - /* 152 */ "QUERY", - /* 153 */ "CACHE", - /* 154 */ "EXPLAIN", - /* 155 */ "ANALYZE", - /* 156 */ "VERBOSE", - /* 157 */ "NK_BOOL", - /* 158 */ "RATIO", - /* 159 */ "NK_FLOAT", - /* 160 */ "COMPACT", - /* 161 */ "VNODES", - /* 162 */ "IN", - /* 163 */ "OUTPUTTYPE", - /* 164 */ "AGGREGATE", - /* 165 */ "BUFSIZE", - /* 166 */ "STREAM", - /* 167 */ "INTO", - /* 168 */ "TRIGGER", - /* 169 */ "AT_ONCE", - /* 170 */ "WINDOW_CLOSE", - /* 171 */ "KILL", - /* 172 */ "CONNECTION", - /* 173 */ "TRANSACTION", - /* 174 */ "BALANCE", - /* 175 */ "VGROUP", - /* 176 */ "MERGE", - /* 177 */ "REDISTRIBUTE", - /* 178 */ "SPLIT", - /* 179 */ "SYNCDB", - /* 180 */ "DELETE", - /* 181 */ "NULL", - /* 182 */ "NK_QUESTION", - /* 183 */ "NK_ARROW", - /* 184 */ "ROWTS", - /* 185 */ "TBNAME", - /* 186 */ "QSTARTTS", - /* 187 */ "QENDTS", - /* 188 */ "WSTARTTS", - /* 189 */ "WENDTS", - /* 190 */ "WDURATION", - /* 191 */ "CAST", - /* 192 */ "NOW", - /* 193 */ "TODAY", - /* 194 */ "TIMEZONE", - /* 195 */ "COUNT", - /* 196 */ "LAST_ROW", - /* 197 */ "BETWEEN", - /* 198 */ "IS", - /* 199 */ "NK_LT", - /* 200 */ "NK_GT", - /* 201 */ "NK_LE", - /* 202 */ "NK_GE", - /* 203 */ "NK_NE", - /* 204 */ "MATCH", - /* 205 */ "NMATCH", - /* 206 */ "CONTAINS", - /* 207 */ "JOIN", - /* 208 */ "INNER", - /* 209 */ "SELECT", - /* 210 */ "DISTINCT", - /* 211 */ "WHERE", - /* 212 */ "PARTITION", - /* 213 */ "BY", - /* 214 */ "SESSION", - /* 215 */ "STATE_WINDOW", - /* 216 */ "SLIDING", - /* 217 */ "FILL", - /* 218 */ "VALUE", - /* 219 */ "NONE", - /* 220 */ "PREV", - /* 221 */ "LINEAR", - /* 222 */ "NEXT", - /* 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", + /* 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 */ "DURATION", + /* 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 */ "SCHEMALESS", + /* 79 */ "NK_COLON", + /* 80 */ "TABLE", + /* 81 */ "NK_LP", + /* 82 */ "NK_RP", + /* 83 */ "STABLE", + /* 84 */ "ADD", + /* 85 */ "COLUMN", + /* 86 */ "MODIFY", + /* 87 */ "RENAME", + /* 88 */ "TAG", + /* 89 */ "SET", + /* 90 */ "NK_EQ", + /* 91 */ "USING", + /* 92 */ "TAGS", + /* 93 */ "COMMENT", + /* 94 */ "BOOL", + /* 95 */ "TINYINT", + /* 96 */ "SMALLINT", + /* 97 */ "INT", + /* 98 */ "INTEGER", + /* 99 */ "BIGINT", + /* 100 */ "FLOAT", + /* 101 */ "DOUBLE", + /* 102 */ "BINARY", + /* 103 */ "TIMESTAMP", + /* 104 */ "NCHAR", + /* 105 */ "UNSIGNED", + /* 106 */ "JSON", + /* 107 */ "VARCHAR", + /* 108 */ "MEDIUMBLOB", + /* 109 */ "BLOB", + /* 110 */ "VARBINARY", + /* 111 */ "DECIMAL", + /* 112 */ "MAX_DELAY", + /* 113 */ "WATERMARK", + /* 114 */ "ROLLUP", + /* 115 */ "TTL", + /* 116 */ "SMA", + /* 117 */ "FIRST", + /* 118 */ "LAST", + /* 119 */ "SHOW", + /* 120 */ "DATABASES", + /* 121 */ "TABLES", + /* 122 */ "STABLES", + /* 123 */ "MNODES", + /* 124 */ "MODULES", + /* 125 */ "QNODES", + /* 126 */ "FUNCTIONS", + /* 127 */ "INDEXES", + /* 128 */ "ACCOUNTS", + /* 129 */ "APPS", + /* 130 */ "CONNECTIONS", + /* 131 */ "LICENCE", + /* 132 */ "GRANTS", + /* 133 */ "QUERIES", + /* 134 */ "SCORES", + /* 135 */ "TOPICS", + /* 136 */ "VARIABLES", + /* 137 */ "BNODES", + /* 138 */ "SNODES", + /* 139 */ "CLUSTER", + /* 140 */ "TRANSACTIONS", + /* 141 */ "LIKE", + /* 142 */ "INDEX", + /* 143 */ "FULLTEXT", + /* 144 */ "FUNCTION", + /* 145 */ "INTERVAL", + /* 146 */ "TOPIC", + /* 147 */ "AS", + /* 148 */ "CONSUMER", + /* 149 */ "GROUP", + /* 150 */ "DESC", + /* 151 */ "DESCRIBE", + /* 152 */ "RESET", + /* 153 */ "QUERY", + /* 154 */ "CACHE", + /* 155 */ "EXPLAIN", + /* 156 */ "ANALYZE", + /* 157 */ "VERBOSE", + /* 158 */ "NK_BOOL", + /* 159 */ "RATIO", + /* 160 */ "NK_FLOAT", + /* 161 */ "COMPACT", + /* 162 */ "VNODES", + /* 163 */ "IN", + /* 164 */ "OUTPUTTYPE", + /* 165 */ "AGGREGATE", + /* 166 */ "BUFSIZE", + /* 167 */ "STREAM", + /* 168 */ "INTO", + /* 169 */ "TRIGGER", + /* 170 */ "AT_ONCE", + /* 171 */ "WINDOW_CLOSE", + /* 172 */ "KILL", + /* 173 */ "CONNECTION", + /* 174 */ "TRANSACTION", + /* 175 */ "BALANCE", + /* 176 */ "VGROUP", + /* 177 */ "MERGE", + /* 178 */ "REDISTRIBUTE", + /* 179 */ "SPLIT", + /* 180 */ "SYNCDB", + /* 181 */ "DELETE", + /* 182 */ "NULL", + /* 183 */ "NK_QUESTION", + /* 184 */ "NK_ARROW", + /* 185 */ "ROWTS", + /* 186 */ "TBNAME", + /* 187 */ "QSTARTTS", + /* 188 */ "QENDTS", + /* 189 */ "WSTARTTS", + /* 190 */ "WENDTS", + /* 191 */ "WDURATION", + /* 192 */ "CAST", + /* 193 */ "NOW", + /* 194 */ "TODAY", + /* 195 */ "TIMEZONE", + /* 196 */ "COUNT", + /* 197 */ "LAST_ROW", + /* 198 */ "BETWEEN", + /* 199 */ "IS", + /* 200 */ "NK_LT", + /* 201 */ "NK_GT", + /* 202 */ "NK_LE", + /* 203 */ "NK_GE", + /* 204 */ "NK_NE", + /* 205 */ "MATCH", + /* 206 */ "NMATCH", + /* 207 */ "CONTAINS", + /* 208 */ "JOIN", + /* 209 */ "INNER", + /* 210 */ "SELECT", + /* 211 */ "DISTINCT", + /* 212 */ "WHERE", + /* 213 */ "PARTITION", + /* 214 */ "BY", + /* 215 */ "SESSION", + /* 216 */ "STATE_WINDOW", + /* 217 */ "SLIDING", + /* 218 */ "FILL", + /* 219 */ "VALUE", + /* 220 */ "NONE", + /* 221 */ "PREV", + /* 222 */ "LINEAR", + /* 223 */ "NEXT", + /* 224 */ "HAVING", + /* 225 */ "ORDER", + /* 226 */ "SLIMIT", + /* 227 */ "SOFFSET", + /* 228 */ "LIMIT", + /* 229 */ "OFFSET", + /* 230 */ "ASC", + /* 231 */ "NULLS", + /* 232 */ "ID", + /* 233 */ "NK_BITNOT", + /* 234 */ "INSERT", + /* 235 */ "VALUES", + /* 236 */ "IMPORT", + /* 237 */ "NK_SEMI", + /* 238 */ "FILE", + /* 239 */ "cmd", + /* 240 */ "account_options", + /* 241 */ "alter_account_options", + /* 242 */ "literal", + /* 243 */ "alter_account_option", + /* 244 */ "user_name", + /* 245 */ "privileges", + /* 246 */ "priv_level", + /* 247 */ "priv_type_list", + /* 248 */ "priv_type", + /* 249 */ "db_name", + /* 250 */ "dnode_endpoint", /* 251 */ "not_exists_opt", /* 252 */ "db_options", /* 253 */ "exists_opt", @@ -1580,7 +1553,7 @@ static const char *const yyRuleName[] = { /* 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", + /* 39 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", /* 40 */ "cmd ::= DROP DNODE NK_INTEGER", /* 41 */ "cmd ::= DROP DNODE dnode_endpoint", /* 42 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", @@ -1588,417 +1561,418 @@ static const char *const yyRuleName[] = { /* 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_STRING", - /* 48 */ "cmd ::= ALTER LOCAL NK_STRING", - /* 49 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", - /* 50 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", - /* 51 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", - /* 52 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", - /* 53 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", - /* 54 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", - /* 55 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", - /* 56 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", - /* 57 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", - /* 58 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", - /* 59 */ "cmd ::= DROP DATABASE exists_opt db_name", - /* 60 */ "cmd ::= USE db_name", - /* 61 */ "cmd ::= ALTER DATABASE db_name alter_db_options", - /* 62 */ "not_exists_opt ::= IF NOT EXISTS", - /* 63 */ "not_exists_opt ::=", - /* 64 */ "exists_opt ::= IF EXISTS", - /* 65 */ "exists_opt ::=", - /* 66 */ "db_options ::=", - /* 67 */ "db_options ::= db_options BUFFER NK_INTEGER", - /* 68 */ "db_options ::= db_options CACHELAST NK_INTEGER", - /* 69 */ "db_options ::= db_options COMP NK_INTEGER", - /* 70 */ "db_options ::= db_options DURATION NK_INTEGER", - /* 71 */ "db_options ::= db_options DURATION NK_VARIABLE", - /* 72 */ "db_options ::= db_options FSYNC NK_INTEGER", - /* 73 */ "db_options ::= db_options MAXROWS NK_INTEGER", - /* 74 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 75 */ "db_options ::= db_options KEEP integer_list", - /* 76 */ "db_options ::= db_options KEEP variable_list", - /* 77 */ "db_options ::= db_options PAGES NK_INTEGER", - /* 78 */ "db_options ::= db_options PAGESIZE NK_INTEGER", - /* 79 */ "db_options ::= db_options PRECISION NK_STRING", - /* 80 */ "db_options ::= db_options REPLICA NK_INTEGER", - /* 81 */ "db_options ::= db_options STRICT NK_INTEGER", - /* 82 */ "db_options ::= db_options WAL NK_INTEGER", - /* 83 */ "db_options ::= db_options VGROUPS NK_INTEGER", - /* 84 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", - /* 85 */ "db_options ::= db_options RETENTIONS retention_list", - /* 86 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", - /* 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 signed_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 MAX_DELAY duration_list", - /* 165 */ "table_options ::= table_options WATERMARK duration_list", - /* 166 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_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 */ "duration_list ::= duration_literal", - /* 174 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 175 */ "rollup_func_list ::= rollup_func_name", - /* 176 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 177 */ "rollup_func_name ::= function_name", - /* 178 */ "rollup_func_name ::= FIRST", - /* 179 */ "rollup_func_name ::= LAST", - /* 180 */ "col_name_list ::= col_name", - /* 181 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 182 */ "col_name ::= column_name", - /* 183 */ "cmd ::= SHOW DNODES", - /* 184 */ "cmd ::= SHOW USERS", - /* 185 */ "cmd ::= SHOW DATABASES", - /* 186 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 187 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 188 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 189 */ "cmd ::= SHOW MNODES", - /* 190 */ "cmd ::= SHOW MODULES", - /* 191 */ "cmd ::= SHOW QNODES", - /* 192 */ "cmd ::= SHOW FUNCTIONS", - /* 193 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 194 */ "cmd ::= SHOW STREAMS", - /* 195 */ "cmd ::= SHOW ACCOUNTS", - /* 196 */ "cmd ::= SHOW APPS", - /* 197 */ "cmd ::= SHOW CONNECTIONS", - /* 198 */ "cmd ::= SHOW LICENCE", - /* 199 */ "cmd ::= SHOW GRANTS", - /* 200 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 201 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 202 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 203 */ "cmd ::= SHOW QUERIES", - /* 204 */ "cmd ::= SHOW SCORES", - /* 205 */ "cmd ::= SHOW TOPICS", - /* 206 */ "cmd ::= SHOW VARIABLES", - /* 207 */ "cmd ::= SHOW BNODES", - /* 208 */ "cmd ::= SHOW SNODES", - /* 209 */ "cmd ::= SHOW CLUSTER", - /* 210 */ "cmd ::= SHOW TRANSACTIONS", - /* 211 */ "db_name_cond_opt ::=", - /* 212 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 213 */ "like_pattern_opt ::=", - /* 214 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 215 */ "table_name_cond ::= table_name", - /* 216 */ "from_db_opt ::=", - /* 217 */ "from_db_opt ::= FROM db_name", - /* 218 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 219 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", - /* 220 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", - /* 221 */ "index_options ::=", - /* 222 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 223 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 224 */ "func_list ::= func", - /* 225 */ "func_list ::= func_list NK_COMMA func", - /* 226 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 227 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 228 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", - /* 229 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", - /* 230 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 231 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 232 */ "cmd ::= DESC full_table_name", - /* 233 */ "cmd ::= DESCRIBE full_table_name", - /* 234 */ "cmd ::= RESET QUERY CACHE", - /* 235 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 236 */ "analyze_opt ::=", - /* 237 */ "analyze_opt ::= ANALYZE", - /* 238 */ "explain_options ::=", - /* 239 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 240 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 241 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", - /* 242 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 243 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 244 */ "agg_func_opt ::=", - /* 245 */ "agg_func_opt ::= AGGREGATE", - /* 246 */ "bufsize_opt ::=", - /* 247 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 248 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", - /* 249 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 250 */ "into_opt ::=", - /* 251 */ "into_opt ::= INTO full_table_name", - /* 252 */ "stream_options ::=", - /* 253 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 254 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 255 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 256 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 257 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 258 */ "cmd ::= KILL QUERY NK_STRING", - /* 259 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 260 */ "cmd ::= BALANCE VGROUP", - /* 261 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 262 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 263 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 264 */ "dnode_list ::= DNODE NK_INTEGER", - /* 265 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 266 */ "cmd ::= SYNCDB db_name REPLICA", - /* 267 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 268 */ "cmd ::= query_expression", - /* 269 */ "literal ::= NK_INTEGER", - /* 270 */ "literal ::= NK_FLOAT", - /* 271 */ "literal ::= NK_STRING", - /* 272 */ "literal ::= NK_BOOL", - /* 273 */ "literal ::= TIMESTAMP NK_STRING", - /* 274 */ "literal ::= duration_literal", - /* 275 */ "literal ::= NULL", - /* 276 */ "literal ::= NK_QUESTION", - /* 277 */ "duration_literal ::= NK_VARIABLE", - /* 278 */ "signed ::= NK_INTEGER", - /* 279 */ "signed ::= NK_PLUS NK_INTEGER", - /* 280 */ "signed ::= NK_MINUS NK_INTEGER", - /* 281 */ "signed ::= NK_FLOAT", - /* 282 */ "signed ::= NK_PLUS NK_FLOAT", - /* 283 */ "signed ::= NK_MINUS NK_FLOAT", - /* 284 */ "signed_literal ::= signed", - /* 285 */ "signed_literal ::= NK_STRING", - /* 286 */ "signed_literal ::= NK_BOOL", - /* 287 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 288 */ "signed_literal ::= duration_literal", - /* 289 */ "signed_literal ::= NULL", - /* 290 */ "signed_literal ::= literal_func", - /* 291 */ "literal_list ::= signed_literal", - /* 292 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 293 */ "db_name ::= NK_ID", - /* 294 */ "table_name ::= NK_ID", - /* 295 */ "column_name ::= NK_ID", - /* 296 */ "function_name ::= NK_ID", - /* 297 */ "table_alias ::= NK_ID", - /* 298 */ "column_alias ::= NK_ID", - /* 299 */ "user_name ::= NK_ID", - /* 300 */ "index_name ::= NK_ID", - /* 301 */ "topic_name ::= NK_ID", - /* 302 */ "stream_name ::= NK_ID", - /* 303 */ "cgroup_name ::= NK_ID", - /* 304 */ "expression ::= literal", - /* 305 */ "expression ::= pseudo_column", - /* 306 */ "expression ::= column_reference", - /* 307 */ "expression ::= function_expression", - /* 308 */ "expression ::= subquery", - /* 309 */ "expression ::= NK_LP expression NK_RP", - /* 310 */ "expression ::= NK_PLUS expression", - /* 311 */ "expression ::= NK_MINUS expression", - /* 312 */ "expression ::= expression NK_PLUS expression", - /* 313 */ "expression ::= expression NK_MINUS expression", - /* 314 */ "expression ::= expression NK_STAR expression", - /* 315 */ "expression ::= expression NK_SLASH expression", - /* 316 */ "expression ::= expression NK_REM expression", - /* 317 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 318 */ "expression_list ::= expression", - /* 319 */ "expression_list ::= expression_list NK_COMMA expression", - /* 320 */ "column_reference ::= column_name", - /* 321 */ "column_reference ::= table_name NK_DOT column_name", - /* 322 */ "pseudo_column ::= ROWTS", - /* 323 */ "pseudo_column ::= TBNAME", - /* 324 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 325 */ "pseudo_column ::= QSTARTTS", - /* 326 */ "pseudo_column ::= QENDTS", - /* 327 */ "pseudo_column ::= WSTARTTS", - /* 328 */ "pseudo_column ::= WENDTS", - /* 329 */ "pseudo_column ::= WDURATION", - /* 330 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 331 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 332 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", - /* 333 */ "function_expression ::= literal_func", - /* 334 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 335 */ "literal_func ::= NOW", - /* 336 */ "noarg_func ::= NOW", - /* 337 */ "noarg_func ::= TODAY", - /* 338 */ "noarg_func ::= TIMEZONE", - /* 339 */ "star_func ::= COUNT", - /* 340 */ "star_func ::= FIRST", - /* 341 */ "star_func ::= LAST", - /* 342 */ "star_func ::= LAST_ROW", - /* 343 */ "star_func_para_list ::= NK_STAR", - /* 344 */ "star_func_para_list ::= other_para_list", - /* 345 */ "other_para_list ::= star_func_para", - /* 346 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 347 */ "star_func_para ::= expression", - /* 348 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 349 */ "predicate ::= expression compare_op expression", - /* 350 */ "predicate ::= expression BETWEEN expression AND expression", - /* 351 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 352 */ "predicate ::= expression IS NULL", - /* 353 */ "predicate ::= expression IS NOT NULL", - /* 354 */ "predicate ::= expression in_op in_predicate_value", - /* 355 */ "compare_op ::= NK_LT", - /* 356 */ "compare_op ::= NK_GT", - /* 357 */ "compare_op ::= NK_LE", - /* 358 */ "compare_op ::= NK_GE", - /* 359 */ "compare_op ::= NK_NE", - /* 360 */ "compare_op ::= NK_EQ", - /* 361 */ "compare_op ::= LIKE", - /* 362 */ "compare_op ::= NOT LIKE", - /* 363 */ "compare_op ::= MATCH", - /* 364 */ "compare_op ::= NMATCH", - /* 365 */ "compare_op ::= CONTAINS", - /* 366 */ "in_op ::= IN", - /* 367 */ "in_op ::= NOT IN", - /* 368 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 369 */ "boolean_value_expression ::= boolean_primary", - /* 370 */ "boolean_value_expression ::= NOT boolean_primary", - /* 371 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 372 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 373 */ "boolean_primary ::= predicate", - /* 374 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 375 */ "common_expression ::= expression", - /* 376 */ "common_expression ::= boolean_value_expression", - /* 377 */ "from_clause ::= FROM table_reference_list", - /* 378 */ "table_reference_list ::= table_reference", - /* 379 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 380 */ "table_reference ::= table_primary", - /* 381 */ "table_reference ::= joined_table", - /* 382 */ "table_primary ::= table_name alias_opt", - /* 383 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 384 */ "table_primary ::= subquery alias_opt", - /* 385 */ "table_primary ::= parenthesized_joined_table", - /* 386 */ "alias_opt ::=", - /* 387 */ "alias_opt ::= table_alias", - /* 388 */ "alias_opt ::= AS table_alias", - /* 389 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 390 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 391 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 392 */ "join_type ::=", - /* 393 */ "join_type ::= INNER", - /* 394 */ "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", - /* 395 */ "set_quantifier_opt ::=", - /* 396 */ "set_quantifier_opt ::= DISTINCT", - /* 397 */ "set_quantifier_opt ::= ALL", - /* 398 */ "select_list ::= NK_STAR", - /* 399 */ "select_list ::= select_sublist", - /* 400 */ "select_sublist ::= select_item", - /* 401 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 402 */ "select_item ::= common_expression", - /* 403 */ "select_item ::= common_expression column_alias", - /* 404 */ "select_item ::= common_expression AS column_alias", - /* 405 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 406 */ "where_clause_opt ::=", - /* 407 */ "where_clause_opt ::= WHERE search_condition", - /* 408 */ "partition_by_clause_opt ::=", - /* 409 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 410 */ "twindow_clause_opt ::=", - /* 411 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 412 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 413 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 414 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 415 */ "sliding_opt ::=", - /* 416 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 417 */ "fill_opt ::=", - /* 418 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 419 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 420 */ "fill_mode ::= NONE", - /* 421 */ "fill_mode ::= PREV", - /* 422 */ "fill_mode ::= NULL", - /* 423 */ "fill_mode ::= LINEAR", - /* 424 */ "fill_mode ::= NEXT", - /* 425 */ "group_by_clause_opt ::=", - /* 426 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 427 */ "group_by_list ::= expression", - /* 428 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 429 */ "having_clause_opt ::=", - /* 430 */ "having_clause_opt ::= HAVING search_condition", - /* 431 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 432 */ "query_expression_body ::= query_primary", - /* 433 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 434 */ "query_expression_body ::= query_expression_body UNION query_expression_body", - /* 435 */ "query_primary ::= query_specification", - /* 436 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", - /* 437 */ "order_by_clause_opt ::=", - /* 438 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 439 */ "slimit_clause_opt ::=", - /* 440 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 441 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 442 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 443 */ "limit_clause_opt ::=", - /* 444 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 445 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 446 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 447 */ "subquery ::= NK_LP query_expression NK_RP", - /* 448 */ "search_condition ::= common_expression", - /* 449 */ "sort_specification_list ::= sort_specification", - /* 450 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 451 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 452 */ "ordering_specification_opt ::=", - /* 453 */ "ordering_specification_opt ::= ASC", - /* 454 */ "ordering_specification_opt ::= DESC", - /* 455 */ "null_ordering_opt ::=", - /* 456 */ "null_ordering_opt ::= NULLS FIRST", - /* 457 */ "null_ordering_opt ::= NULLS LAST", + /* 47 */ "dnode_endpoint ::= NK_ID", + /* 48 */ "dnode_endpoint ::= 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 DURATION NK_INTEGER", + /* 72 */ "db_options ::= db_options DURATION 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 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", + /* 88 */ "alter_db_options ::= alter_db_option", + /* 89 */ "alter_db_options ::= alter_db_options alter_db_option", + /* 90 */ "alter_db_option ::= BUFFER NK_INTEGER", + /* 91 */ "alter_db_option ::= CACHELAST NK_INTEGER", + /* 92 */ "alter_db_option ::= FSYNC NK_INTEGER", + /* 93 */ "alter_db_option ::= KEEP integer_list", + /* 94 */ "alter_db_option ::= KEEP variable_list", + /* 95 */ "alter_db_option ::= PAGES NK_INTEGER", + /* 96 */ "alter_db_option ::= REPLICA NK_INTEGER", + /* 97 */ "alter_db_option ::= STRICT NK_INTEGER", + /* 98 */ "alter_db_option ::= WAL NK_INTEGER", + /* 99 */ "integer_list ::= NK_INTEGER", + /* 100 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", + /* 101 */ "variable_list ::= NK_VARIABLE", + /* 102 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", + /* 103 */ "retention_list ::= retention", + /* 104 */ "retention_list ::= retention_list NK_COMMA retention", + /* 105 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", + /* 106 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 107 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 108 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 109 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 110 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 111 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 112 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 113 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 114 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 115 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 116 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 117 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 118 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 119 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 120 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 121 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 122 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", + /* 123 */ "multi_create_clause ::= create_subtable_clause", + /* 124 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 125 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options", + /* 126 */ "multi_drop_clause ::= drop_table_clause", + /* 127 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 128 */ "drop_table_clause ::= exists_opt full_table_name", + /* 129 */ "specific_tags_opt ::=", + /* 130 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 131 */ "full_table_name ::= table_name", + /* 132 */ "full_table_name ::= db_name NK_DOT table_name", + /* 133 */ "column_def_list ::= column_def", + /* 134 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 135 */ "column_def ::= column_name type_name", + /* 136 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 137 */ "type_name ::= BOOL", + /* 138 */ "type_name ::= TINYINT", + /* 139 */ "type_name ::= SMALLINT", + /* 140 */ "type_name ::= INT", + /* 141 */ "type_name ::= INTEGER", + /* 142 */ "type_name ::= BIGINT", + /* 143 */ "type_name ::= FLOAT", + /* 144 */ "type_name ::= DOUBLE", + /* 145 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 146 */ "type_name ::= TIMESTAMP", + /* 147 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 148 */ "type_name ::= TINYINT UNSIGNED", + /* 149 */ "type_name ::= SMALLINT UNSIGNED", + /* 150 */ "type_name ::= INT UNSIGNED", + /* 151 */ "type_name ::= BIGINT UNSIGNED", + /* 152 */ "type_name ::= JSON", + /* 153 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 154 */ "type_name ::= MEDIUMBLOB", + /* 155 */ "type_name ::= BLOB", + /* 156 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 157 */ "type_name ::= DECIMAL", + /* 158 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 159 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 160 */ "tags_def_opt ::=", + /* 161 */ "tags_def_opt ::= tags_def", + /* 162 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 163 */ "table_options ::=", + /* 164 */ "table_options ::= table_options COMMENT NK_STRING", + /* 165 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 166 */ "table_options ::= table_options WATERMARK duration_list", + /* 167 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 168 */ "table_options ::= table_options TTL NK_INTEGER", + /* 169 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 170 */ "alter_table_options ::= alter_table_option", + /* 171 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 172 */ "alter_table_option ::= COMMENT NK_STRING", + /* 173 */ "alter_table_option ::= TTL NK_INTEGER", + /* 174 */ "duration_list ::= duration_literal", + /* 175 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 176 */ "rollup_func_list ::= rollup_func_name", + /* 177 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 178 */ "rollup_func_name ::= function_name", + /* 179 */ "rollup_func_name ::= FIRST", + /* 180 */ "rollup_func_name ::= LAST", + /* 181 */ "col_name_list ::= col_name", + /* 182 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 183 */ "col_name ::= column_name", + /* 184 */ "cmd ::= SHOW DNODES", + /* 185 */ "cmd ::= SHOW USERS", + /* 186 */ "cmd ::= SHOW DATABASES", + /* 187 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 188 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 189 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 190 */ "cmd ::= SHOW MNODES", + /* 191 */ "cmd ::= SHOW MODULES", + /* 192 */ "cmd ::= SHOW QNODES", + /* 193 */ "cmd ::= SHOW FUNCTIONS", + /* 194 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 195 */ "cmd ::= SHOW STREAMS", + /* 196 */ "cmd ::= SHOW ACCOUNTS", + /* 197 */ "cmd ::= SHOW APPS", + /* 198 */ "cmd ::= SHOW CONNECTIONS", + /* 199 */ "cmd ::= SHOW LICENCE", + /* 200 */ "cmd ::= SHOW GRANTS", + /* 201 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 202 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 203 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 204 */ "cmd ::= SHOW QUERIES", + /* 205 */ "cmd ::= SHOW SCORES", + /* 206 */ "cmd ::= SHOW TOPICS", + /* 207 */ "cmd ::= SHOW VARIABLES", + /* 208 */ "cmd ::= SHOW BNODES", + /* 209 */ "cmd ::= SHOW SNODES", + /* 210 */ "cmd ::= SHOW CLUSTER", + /* 211 */ "cmd ::= SHOW TRANSACTIONS", + /* 212 */ "db_name_cond_opt ::=", + /* 213 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 214 */ "like_pattern_opt ::=", + /* 215 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 216 */ "table_name_cond ::= table_name", + /* 217 */ "from_db_opt ::=", + /* 218 */ "from_db_opt ::= FROM db_name", + /* 219 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 220 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", + /* 221 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", + /* 222 */ "index_options ::=", + /* 223 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 224 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 225 */ "func_list ::= func", + /* 226 */ "func_list ::= func_list NK_COMMA func", + /* 227 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 228 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 229 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", + /* 230 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", + /* 231 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 232 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 233 */ "cmd ::= DESC full_table_name", + /* 234 */ "cmd ::= DESCRIBE full_table_name", + /* 235 */ "cmd ::= RESET QUERY CACHE", + /* 236 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 237 */ "analyze_opt ::=", + /* 238 */ "analyze_opt ::= ANALYZE", + /* 239 */ "explain_options ::=", + /* 240 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 241 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 242 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", + /* 243 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 244 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 245 */ "agg_func_opt ::=", + /* 246 */ "agg_func_opt ::= AGGREGATE", + /* 247 */ "bufsize_opt ::=", + /* 248 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 249 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", + /* 250 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 251 */ "into_opt ::=", + /* 252 */ "into_opt ::= INTO full_table_name", + /* 253 */ "stream_options ::=", + /* 254 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 255 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 256 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 257 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 258 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 259 */ "cmd ::= KILL QUERY NK_STRING", + /* 260 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 261 */ "cmd ::= BALANCE VGROUP", + /* 262 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 263 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 264 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 265 */ "dnode_list ::= DNODE NK_INTEGER", + /* 266 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 267 */ "cmd ::= SYNCDB db_name REPLICA", + /* 268 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 269 */ "cmd ::= query_expression", + /* 270 */ "literal ::= NK_INTEGER", + /* 271 */ "literal ::= NK_FLOAT", + /* 272 */ "literal ::= NK_STRING", + /* 273 */ "literal ::= NK_BOOL", + /* 274 */ "literal ::= TIMESTAMP NK_STRING", + /* 275 */ "literal ::= duration_literal", + /* 276 */ "literal ::= NULL", + /* 277 */ "literal ::= NK_QUESTION", + /* 278 */ "duration_literal ::= NK_VARIABLE", + /* 279 */ "signed ::= NK_INTEGER", + /* 280 */ "signed ::= NK_PLUS NK_INTEGER", + /* 281 */ "signed ::= NK_MINUS NK_INTEGER", + /* 282 */ "signed ::= NK_FLOAT", + /* 283 */ "signed ::= NK_PLUS NK_FLOAT", + /* 284 */ "signed ::= NK_MINUS NK_FLOAT", + /* 285 */ "signed_literal ::= signed", + /* 286 */ "signed_literal ::= NK_STRING", + /* 287 */ "signed_literal ::= NK_BOOL", + /* 288 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 289 */ "signed_literal ::= duration_literal", + /* 290 */ "signed_literal ::= NULL", + /* 291 */ "signed_literal ::= literal_func", + /* 292 */ "literal_list ::= signed_literal", + /* 293 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 294 */ "db_name ::= NK_ID", + /* 295 */ "table_name ::= NK_ID", + /* 296 */ "column_name ::= NK_ID", + /* 297 */ "function_name ::= NK_ID", + /* 298 */ "table_alias ::= NK_ID", + /* 299 */ "column_alias ::= NK_ID", + /* 300 */ "user_name ::= NK_ID", + /* 301 */ "index_name ::= NK_ID", + /* 302 */ "topic_name ::= NK_ID", + /* 303 */ "stream_name ::= NK_ID", + /* 304 */ "cgroup_name ::= NK_ID", + /* 305 */ "expression ::= literal", + /* 306 */ "expression ::= pseudo_column", + /* 307 */ "expression ::= column_reference", + /* 308 */ "expression ::= function_expression", + /* 309 */ "expression ::= subquery", + /* 310 */ "expression ::= NK_LP expression NK_RP", + /* 311 */ "expression ::= NK_PLUS expression", + /* 312 */ "expression ::= NK_MINUS expression", + /* 313 */ "expression ::= expression NK_PLUS expression", + /* 314 */ "expression ::= expression NK_MINUS expression", + /* 315 */ "expression ::= expression NK_STAR expression", + /* 316 */ "expression ::= expression NK_SLASH expression", + /* 317 */ "expression ::= expression NK_REM expression", + /* 318 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 319 */ "expression_list ::= expression", + /* 320 */ "expression_list ::= expression_list NK_COMMA expression", + /* 321 */ "column_reference ::= column_name", + /* 322 */ "column_reference ::= table_name NK_DOT column_name", + /* 323 */ "pseudo_column ::= ROWTS", + /* 324 */ "pseudo_column ::= TBNAME", + /* 325 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 326 */ "pseudo_column ::= QSTARTTS", + /* 327 */ "pseudo_column ::= QENDTS", + /* 328 */ "pseudo_column ::= WSTARTTS", + /* 329 */ "pseudo_column ::= WENDTS", + /* 330 */ "pseudo_column ::= WDURATION", + /* 331 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 332 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 333 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 334 */ "function_expression ::= literal_func", + /* 335 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 336 */ "literal_func ::= NOW", + /* 337 */ "noarg_func ::= NOW", + /* 338 */ "noarg_func ::= TODAY", + /* 339 */ "noarg_func ::= TIMEZONE", + /* 340 */ "star_func ::= COUNT", + /* 341 */ "star_func ::= FIRST", + /* 342 */ "star_func ::= LAST", + /* 343 */ "star_func ::= LAST_ROW", + /* 344 */ "star_func_para_list ::= NK_STAR", + /* 345 */ "star_func_para_list ::= other_para_list", + /* 346 */ "other_para_list ::= star_func_para", + /* 347 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 348 */ "star_func_para ::= expression", + /* 349 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 350 */ "predicate ::= expression compare_op expression", + /* 351 */ "predicate ::= expression BETWEEN expression AND expression", + /* 352 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 353 */ "predicate ::= expression IS NULL", + /* 354 */ "predicate ::= expression IS NOT NULL", + /* 355 */ "predicate ::= expression in_op in_predicate_value", + /* 356 */ "compare_op ::= NK_LT", + /* 357 */ "compare_op ::= NK_GT", + /* 358 */ "compare_op ::= NK_LE", + /* 359 */ "compare_op ::= NK_GE", + /* 360 */ "compare_op ::= NK_NE", + /* 361 */ "compare_op ::= NK_EQ", + /* 362 */ "compare_op ::= LIKE", + /* 363 */ "compare_op ::= NOT LIKE", + /* 364 */ "compare_op ::= MATCH", + /* 365 */ "compare_op ::= NMATCH", + /* 366 */ "compare_op ::= CONTAINS", + /* 367 */ "in_op ::= IN", + /* 368 */ "in_op ::= NOT IN", + /* 369 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 370 */ "boolean_value_expression ::= boolean_primary", + /* 371 */ "boolean_value_expression ::= NOT boolean_primary", + /* 372 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 373 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 374 */ "boolean_primary ::= predicate", + /* 375 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 376 */ "common_expression ::= expression", + /* 377 */ "common_expression ::= boolean_value_expression", + /* 378 */ "from_clause ::= FROM table_reference_list", + /* 379 */ "table_reference_list ::= table_reference", + /* 380 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 381 */ "table_reference ::= table_primary", + /* 382 */ "table_reference ::= joined_table", + /* 383 */ "table_primary ::= table_name alias_opt", + /* 384 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 385 */ "table_primary ::= subquery alias_opt", + /* 386 */ "table_primary ::= parenthesized_joined_table", + /* 387 */ "alias_opt ::=", + /* 388 */ "alias_opt ::= table_alias", + /* 389 */ "alias_opt ::= AS table_alias", + /* 390 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 391 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 392 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 393 */ "join_type ::=", + /* 394 */ "join_type ::= INNER", + /* 395 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 396 */ "set_quantifier_opt ::=", + /* 397 */ "set_quantifier_opt ::= DISTINCT", + /* 398 */ "set_quantifier_opt ::= ALL", + /* 399 */ "select_list ::= NK_STAR", + /* 400 */ "select_list ::= select_sublist", + /* 401 */ "select_sublist ::= select_item", + /* 402 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 403 */ "select_item ::= common_expression", + /* 404 */ "select_item ::= common_expression column_alias", + /* 405 */ "select_item ::= common_expression AS column_alias", + /* 406 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 407 */ "where_clause_opt ::=", + /* 408 */ "where_clause_opt ::= WHERE search_condition", + /* 409 */ "partition_by_clause_opt ::=", + /* 410 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 411 */ "twindow_clause_opt ::=", + /* 412 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 413 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 414 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 415 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 416 */ "sliding_opt ::=", + /* 417 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 418 */ "fill_opt ::=", + /* 419 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 420 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 421 */ "fill_mode ::= NONE", + /* 422 */ "fill_mode ::= PREV", + /* 423 */ "fill_mode ::= NULL", + /* 424 */ "fill_mode ::= LINEAR", + /* 425 */ "fill_mode ::= NEXT", + /* 426 */ "group_by_clause_opt ::=", + /* 427 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 428 */ "group_by_list ::= expression", + /* 429 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 430 */ "having_clause_opt ::=", + /* 431 */ "having_clause_opt ::= HAVING search_condition", + /* 432 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 433 */ "query_expression_body ::= query_primary", + /* 434 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 435 */ "query_expression_body ::= query_expression_body UNION query_expression_body", + /* 436 */ "query_primary ::= query_specification", + /* 437 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", + /* 438 */ "order_by_clause_opt ::=", + /* 439 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 440 */ "slimit_clause_opt ::=", + /* 441 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 442 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 443 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 444 */ "limit_clause_opt ::=", + /* 445 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 446 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 447 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 448 */ "subquery ::= NK_LP query_expression NK_RP", + /* 449 */ "search_condition ::= common_expression", + /* 450 */ "sort_specification_list ::= sort_specification", + /* 451 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 452 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 453 */ "ordering_specification_opt ::=", + /* 454 */ "ordering_specification_opt ::= ASC", + /* 455 */ "ordering_specification_opt ::= DESC", + /* 456 */ "null_ordering_opt ::=", + /* 457 */ "null_ordering_opt ::= NULLS FIRST", + /* 458 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2125,8 +2099,8 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 238: /* cmd */ - case 241: /* literal */ + case 239: /* cmd */ + case 242: /* literal */ case 252: /* db_options */ case 254: /* alter_db_options */ case 259: /* retention */ @@ -2187,19 +2161,18 @@ static void yy_destructor( nodesDestroyNode((yypminor->yy674)); } break; - case 239: /* account_options */ - case 240: /* alter_account_options */ - case 242: /* alter_account_option */ + case 240: /* account_options */ + case 241: /* alter_account_options */ + case 243: /* alter_account_option */ case 302: /* bufsize_opt */ { } break; - case 243: /* user_name */ - case 245: /* priv_level */ - case 248: /* db_name */ - case 249: /* dnode_endpoint */ - case 250: /* dnode_host_name */ + case 244: /* user_name */ + case 246: /* priv_level */ + case 249: /* db_name */ + case 250: /* dnode_endpoint */ case 269: /* column_name */ case 277: /* table_name */ case 284: /* function_name */ @@ -2216,9 +2189,9 @@ static void yy_destructor( } break; - case 244: /* privileges */ - case 246: /* priv_type_list */ - case 247: /* priv_type */ + case 245: /* privileges */ + case 247: /* priv_type_list */ + case 248: /* priv_type */ { } @@ -2592,464 +2565,465 @@ 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[] = { - { 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_STRING */ - { 238, -3 }, /* (48) cmd ::= ALTER LOCAL NK_STRING */ - { 238, -4 }, /* (49) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 238, -5 }, /* (50) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 238, -5 }, /* (51) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 238, -5 }, /* (52) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 238, -5 }, /* (53) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 238, -5 }, /* (54) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 238, -5 }, /* (55) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 238, -5 }, /* (56) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 238, -5 }, /* (57) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 238, -5 }, /* (58) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 238, -4 }, /* (59) cmd ::= DROP DATABASE exists_opt db_name */ - { 238, -2 }, /* (60) cmd ::= USE db_name */ - { 238, -4 }, /* (61) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 251, -3 }, /* (62) not_exists_opt ::= IF NOT EXISTS */ - { 251, 0 }, /* (63) not_exists_opt ::= */ - { 253, -2 }, /* (64) exists_opt ::= IF EXISTS */ - { 253, 0 }, /* (65) exists_opt ::= */ - { 252, 0 }, /* (66) db_options ::= */ - { 252, -3 }, /* (67) db_options ::= db_options BUFFER NK_INTEGER */ - { 252, -3 }, /* (68) db_options ::= db_options CACHELAST NK_INTEGER */ - { 252, -3 }, /* (69) db_options ::= db_options COMP NK_INTEGER */ - { 252, -3 }, /* (70) db_options ::= db_options DURATION NK_INTEGER */ - { 252, -3 }, /* (71) db_options ::= db_options DURATION NK_VARIABLE */ - { 252, -3 }, /* (72) db_options ::= db_options FSYNC NK_INTEGER */ - { 252, -3 }, /* (73) db_options ::= db_options MAXROWS NK_INTEGER */ - { 252, -3 }, /* (74) db_options ::= db_options MINROWS NK_INTEGER */ - { 252, -3 }, /* (75) db_options ::= db_options KEEP integer_list */ - { 252, -3 }, /* (76) db_options ::= db_options KEEP variable_list */ - { 252, -3 }, /* (77) db_options ::= db_options PAGES NK_INTEGER */ - { 252, -3 }, /* (78) db_options ::= db_options PAGESIZE NK_INTEGER */ - { 252, -3 }, /* (79) db_options ::= db_options PRECISION NK_STRING */ - { 252, -3 }, /* (80) db_options ::= db_options REPLICA NK_INTEGER */ - { 252, -3 }, /* (81) db_options ::= db_options STRICT NK_INTEGER */ - { 252, -3 }, /* (82) db_options ::= db_options WAL NK_INTEGER */ - { 252, -3 }, /* (83) db_options ::= db_options VGROUPS NK_INTEGER */ - { 252, -3 }, /* (84) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 252, -3 }, /* (85) db_options ::= db_options RETENTIONS retention_list */ - { 252, -3 }, /* (86) db_options ::= db_options SCHEMALESS NK_INTEGER */ - { 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 signed_literal */ - { 264, -1 }, /* (122) multi_create_clause ::= create_subtable_clause */ - { 264, -2 }, /* (123) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 272, -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 */ - { 275, -2 }, /* (127) drop_table_clause ::= exists_opt full_table_name */ - { 273, 0 }, /* (128) specific_tags_opt ::= */ - { 273, -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 */ - { 278, -2 }, /* (134) column_def ::= column_name type_name */ - { 278, -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 MAX_DELAY duration_list */ - { 263, -3 }, /* (165) table_options ::= table_options WATERMARK duration_list */ - { 263, -5 }, /* (166) table_options ::= table_options ROLLUP NK_LP rollup_func_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 */ - { 281, -2 }, /* (171) alter_table_option ::= COMMENT NK_STRING */ - { 281, -2 }, /* (172) alter_table_option ::= TTL NK_INTEGER */ - { 279, -1 }, /* (173) duration_list ::= duration_literal */ - { 279, -3 }, /* (174) duration_list ::= duration_list NK_COMMA duration_literal */ - { 280, -1 }, /* (175) rollup_func_list ::= rollup_func_name */ - { 280, -3 }, /* (176) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - { 283, -1 }, /* (177) rollup_func_name ::= function_name */ - { 283, -1 }, /* (178) rollup_func_name ::= FIRST */ - { 283, -1 }, /* (179) rollup_func_name ::= LAST */ - { 276, -1 }, /* (180) col_name_list ::= col_name */ - { 276, -3 }, /* (181) col_name_list ::= col_name_list NK_COMMA col_name */ - { 285, -1 }, /* (182) col_name ::= column_name */ - { 238, -2 }, /* (183) cmd ::= SHOW DNODES */ - { 238, -2 }, /* (184) cmd ::= SHOW USERS */ - { 238, -2 }, /* (185) cmd ::= SHOW DATABASES */ - { 238, -4 }, /* (186) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 238, -4 }, /* (187) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 238, -3 }, /* (188) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 238, -2 }, /* (189) cmd ::= SHOW MNODES */ - { 238, -2 }, /* (190) cmd ::= SHOW MODULES */ - { 238, -2 }, /* (191) cmd ::= SHOW QNODES */ - { 238, -2 }, /* (192) cmd ::= SHOW FUNCTIONS */ - { 238, -5 }, /* (193) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 238, -2 }, /* (194) cmd ::= SHOW STREAMS */ - { 238, -2 }, /* (195) cmd ::= SHOW ACCOUNTS */ - { 238, -2 }, /* (196) cmd ::= SHOW APPS */ - { 238, -2 }, /* (197) cmd ::= SHOW CONNECTIONS */ - { 238, -2 }, /* (198) cmd ::= SHOW LICENCE */ - { 238, -2 }, /* (199) cmd ::= SHOW GRANTS */ - { 238, -4 }, /* (200) cmd ::= SHOW CREATE DATABASE db_name */ - { 238, -4 }, /* (201) cmd ::= SHOW CREATE TABLE full_table_name */ - { 238, -4 }, /* (202) cmd ::= SHOW CREATE STABLE full_table_name */ - { 238, -2 }, /* (203) cmd ::= SHOW QUERIES */ - { 238, -2 }, /* (204) cmd ::= SHOW SCORES */ - { 238, -2 }, /* (205) cmd ::= SHOW TOPICS */ - { 238, -2 }, /* (206) cmd ::= SHOW VARIABLES */ - { 238, -2 }, /* (207) cmd ::= SHOW BNODES */ - { 238, -2 }, /* (208) cmd ::= SHOW SNODES */ - { 238, -2 }, /* (209) cmd ::= SHOW CLUSTER */ - { 238, -2 }, /* (210) cmd ::= SHOW TRANSACTIONS */ - { 286, 0 }, /* (211) db_name_cond_opt ::= */ - { 286, -2 }, /* (212) db_name_cond_opt ::= db_name NK_DOT */ - { 287, 0 }, /* (213) like_pattern_opt ::= */ - { 287, -2 }, /* (214) like_pattern_opt ::= LIKE NK_STRING */ - { 288, -1 }, /* (215) table_name_cond ::= table_name */ - { 289, 0 }, /* (216) from_db_opt ::= */ - { 289, -2 }, /* (217) from_db_opt ::= FROM db_name */ - { 238, -8 }, /* (218) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 238, -10 }, /* (219) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 238, -6 }, /* (220) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 291, 0 }, /* (221) index_options ::= */ - { 291, -9 }, /* (222) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 291, -11 }, /* (223) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 292, -1 }, /* (224) func_list ::= func */ - { 292, -3 }, /* (225) func_list ::= func_list NK_COMMA func */ - { 294, -4 }, /* (226) func ::= function_name NK_LP expression_list NK_RP */ - { 238, -6 }, /* (227) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 238, -7 }, /* (228) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ - { 238, -7 }, /* (229) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ - { 238, -4 }, /* (230) cmd ::= DROP TOPIC exists_opt topic_name */ - { 238, -7 }, /* (231) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - { 238, -2 }, /* (232) cmd ::= DESC full_table_name */ - { 238, -2 }, /* (233) cmd ::= DESCRIBE full_table_name */ - { 238, -3 }, /* (234) cmd ::= RESET QUERY CACHE */ - { 238, -4 }, /* (235) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 299, 0 }, /* (236) analyze_opt ::= */ - { 299, -1 }, /* (237) analyze_opt ::= ANALYZE */ - { 300, 0 }, /* (238) explain_options ::= */ - { 300, -3 }, /* (239) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 300, -3 }, /* (240) explain_options ::= explain_options RATIO NK_FLOAT */ - { 238, -6 }, /* (241) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 238, -10 }, /* (242) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 238, -4 }, /* (243) cmd ::= DROP FUNCTION exists_opt function_name */ - { 301, 0 }, /* (244) agg_func_opt ::= */ - { 301, -1 }, /* (245) agg_func_opt ::= AGGREGATE */ - { 302, 0 }, /* (246) bufsize_opt ::= */ - { 302, -2 }, /* (247) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 238, -8 }, /* (248) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ - { 238, -4 }, /* (249) cmd ::= DROP STREAM exists_opt stream_name */ - { 305, 0 }, /* (250) into_opt ::= */ - { 305, -2 }, /* (251) into_opt ::= INTO full_table_name */ - { 304, 0 }, /* (252) stream_options ::= */ - { 304, -3 }, /* (253) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 304, -3 }, /* (254) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 304, -4 }, /* (255) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - { 304, -3 }, /* (256) stream_options ::= stream_options WATERMARK duration_literal */ - { 238, -3 }, /* (257) cmd ::= KILL CONNECTION NK_INTEGER */ - { 238, -3 }, /* (258) cmd ::= KILL QUERY NK_STRING */ - { 238, -3 }, /* (259) cmd ::= KILL TRANSACTION NK_INTEGER */ - { 238, -2 }, /* (260) cmd ::= BALANCE VGROUP */ - { 238, -4 }, /* (261) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 238, -4 }, /* (262) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 238, -3 }, /* (263) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 306, -2 }, /* (264) dnode_list ::= DNODE NK_INTEGER */ - { 306, -3 }, /* (265) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 238, -3 }, /* (266) cmd ::= SYNCDB db_name REPLICA */ - { 238, -4 }, /* (267) cmd ::= DELETE FROM full_table_name where_clause_opt */ - { 238, -1 }, /* (268) cmd ::= query_expression */ - { 241, -1 }, /* (269) literal ::= NK_INTEGER */ - { 241, -1 }, /* (270) literal ::= NK_FLOAT */ - { 241, -1 }, /* (271) literal ::= NK_STRING */ - { 241, -1 }, /* (272) literal ::= NK_BOOL */ - { 241, -2 }, /* (273) literal ::= TIMESTAMP NK_STRING */ - { 241, -1 }, /* (274) literal ::= duration_literal */ - { 241, -1 }, /* (275) literal ::= NULL */ - { 241, -1 }, /* (276) literal ::= NK_QUESTION */ - { 282, -1 }, /* (277) duration_literal ::= NK_VARIABLE */ - { 308, -1 }, /* (278) signed ::= NK_INTEGER */ - { 308, -2 }, /* (279) signed ::= NK_PLUS NK_INTEGER */ - { 308, -2 }, /* (280) signed ::= NK_MINUS NK_INTEGER */ - { 308, -1 }, /* (281) signed ::= NK_FLOAT */ - { 308, -2 }, /* (282) signed ::= NK_PLUS NK_FLOAT */ - { 308, -2 }, /* (283) signed ::= NK_MINUS NK_FLOAT */ - { 271, -1 }, /* (284) signed_literal ::= signed */ - { 271, -1 }, /* (285) signed_literal ::= NK_STRING */ - { 271, -1 }, /* (286) signed_literal ::= NK_BOOL */ - { 271, -2 }, /* (287) signed_literal ::= TIMESTAMP NK_STRING */ - { 271, -1 }, /* (288) signed_literal ::= duration_literal */ - { 271, -1 }, /* (289) signed_literal ::= NULL */ - { 271, -1 }, /* (290) signed_literal ::= literal_func */ - { 274, -1 }, /* (291) literal_list ::= signed_literal */ - { 274, -3 }, /* (292) literal_list ::= literal_list NK_COMMA signed_literal */ - { 248, -1 }, /* (293) db_name ::= NK_ID */ - { 277, -1 }, /* (294) table_name ::= NK_ID */ - { 269, -1 }, /* (295) column_name ::= NK_ID */ - { 284, -1 }, /* (296) function_name ::= NK_ID */ - { 310, -1 }, /* (297) table_alias ::= NK_ID */ - { 311, -1 }, /* (298) column_alias ::= NK_ID */ - { 243, -1 }, /* (299) user_name ::= NK_ID */ - { 290, -1 }, /* (300) index_name ::= NK_ID */ - { 296, -1 }, /* (301) topic_name ::= NK_ID */ - { 303, -1 }, /* (302) stream_name ::= NK_ID */ - { 298, -1 }, /* (303) cgroup_name ::= NK_ID */ - { 312, -1 }, /* (304) expression ::= literal */ - { 312, -1 }, /* (305) expression ::= pseudo_column */ - { 312, -1 }, /* (306) expression ::= column_reference */ - { 312, -1 }, /* (307) expression ::= function_expression */ - { 312, -1 }, /* (308) expression ::= subquery */ - { 312, -3 }, /* (309) expression ::= NK_LP expression NK_RP */ - { 312, -2 }, /* (310) expression ::= NK_PLUS expression */ - { 312, -2 }, /* (311) expression ::= NK_MINUS expression */ - { 312, -3 }, /* (312) expression ::= expression NK_PLUS expression */ - { 312, -3 }, /* (313) expression ::= expression NK_MINUS expression */ - { 312, -3 }, /* (314) expression ::= expression NK_STAR expression */ - { 312, -3 }, /* (315) expression ::= expression NK_SLASH expression */ - { 312, -3 }, /* (316) expression ::= expression NK_REM expression */ - { 312, -3 }, /* (317) expression ::= column_reference NK_ARROW NK_STRING */ - { 295, -1 }, /* (318) expression_list ::= expression */ - { 295, -3 }, /* (319) expression_list ::= expression_list NK_COMMA expression */ - { 314, -1 }, /* (320) column_reference ::= column_name */ - { 314, -3 }, /* (321) column_reference ::= table_name NK_DOT column_name */ - { 313, -1 }, /* (322) pseudo_column ::= ROWTS */ - { 313, -1 }, /* (323) pseudo_column ::= TBNAME */ - { 313, -3 }, /* (324) pseudo_column ::= table_name NK_DOT TBNAME */ - { 313, -1 }, /* (325) pseudo_column ::= QSTARTTS */ - { 313, -1 }, /* (326) pseudo_column ::= QENDTS */ - { 313, -1 }, /* (327) pseudo_column ::= WSTARTTS */ - { 313, -1 }, /* (328) pseudo_column ::= WENDTS */ - { 313, -1 }, /* (329) pseudo_column ::= WDURATION */ - { 315, -4 }, /* (330) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 315, -4 }, /* (331) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 315, -6 }, /* (332) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 315, -1 }, /* (333) function_expression ::= literal_func */ - { 309, -3 }, /* (334) literal_func ::= noarg_func NK_LP NK_RP */ - { 309, -1 }, /* (335) literal_func ::= NOW */ - { 319, -1 }, /* (336) noarg_func ::= NOW */ - { 319, -1 }, /* (337) noarg_func ::= TODAY */ - { 319, -1 }, /* (338) noarg_func ::= TIMEZONE */ - { 317, -1 }, /* (339) star_func ::= COUNT */ - { 317, -1 }, /* (340) star_func ::= FIRST */ - { 317, -1 }, /* (341) star_func ::= LAST */ - { 317, -1 }, /* (342) star_func ::= LAST_ROW */ - { 318, -1 }, /* (343) star_func_para_list ::= NK_STAR */ - { 318, -1 }, /* (344) star_func_para_list ::= other_para_list */ - { 320, -1 }, /* (345) other_para_list ::= star_func_para */ - { 320, -3 }, /* (346) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 321, -1 }, /* (347) star_func_para ::= expression */ - { 321, -3 }, /* (348) star_func_para ::= table_name NK_DOT NK_STAR */ - { 322, -3 }, /* (349) predicate ::= expression compare_op expression */ - { 322, -5 }, /* (350) predicate ::= expression BETWEEN expression AND expression */ - { 322, -6 }, /* (351) predicate ::= expression NOT BETWEEN expression AND expression */ - { 322, -3 }, /* (352) predicate ::= expression IS NULL */ - { 322, -4 }, /* (353) predicate ::= expression IS NOT NULL */ - { 322, -3 }, /* (354) predicate ::= expression in_op in_predicate_value */ - { 323, -1 }, /* (355) compare_op ::= NK_LT */ - { 323, -1 }, /* (356) compare_op ::= NK_GT */ - { 323, -1 }, /* (357) compare_op ::= NK_LE */ - { 323, -1 }, /* (358) compare_op ::= NK_GE */ - { 323, -1 }, /* (359) compare_op ::= NK_NE */ - { 323, -1 }, /* (360) compare_op ::= NK_EQ */ - { 323, -1 }, /* (361) compare_op ::= LIKE */ - { 323, -2 }, /* (362) compare_op ::= NOT LIKE */ - { 323, -1 }, /* (363) compare_op ::= MATCH */ - { 323, -1 }, /* (364) compare_op ::= NMATCH */ - { 323, -1 }, /* (365) compare_op ::= CONTAINS */ - { 324, -1 }, /* (366) in_op ::= IN */ - { 324, -2 }, /* (367) in_op ::= NOT IN */ - { 325, -3 }, /* (368) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 326, -1 }, /* (369) boolean_value_expression ::= boolean_primary */ - { 326, -2 }, /* (370) boolean_value_expression ::= NOT boolean_primary */ - { 326, -3 }, /* (371) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 326, -3 }, /* (372) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 327, -1 }, /* (373) boolean_primary ::= predicate */ - { 327, -3 }, /* (374) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 328, -1 }, /* (375) common_expression ::= expression */ - { 328, -1 }, /* (376) common_expression ::= boolean_value_expression */ - { 329, -2 }, /* (377) from_clause ::= FROM table_reference_list */ - { 330, -1 }, /* (378) table_reference_list ::= table_reference */ - { 330, -3 }, /* (379) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 331, -1 }, /* (380) table_reference ::= table_primary */ - { 331, -1 }, /* (381) table_reference ::= joined_table */ - { 332, -2 }, /* (382) table_primary ::= table_name alias_opt */ - { 332, -4 }, /* (383) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 332, -2 }, /* (384) table_primary ::= subquery alias_opt */ - { 332, -1 }, /* (385) table_primary ::= parenthesized_joined_table */ - { 334, 0 }, /* (386) alias_opt ::= */ - { 334, -1 }, /* (387) alias_opt ::= table_alias */ - { 334, -2 }, /* (388) alias_opt ::= AS table_alias */ - { 335, -3 }, /* (389) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 335, -3 }, /* (390) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 333, -6 }, /* (391) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 336, 0 }, /* (392) join_type ::= */ - { 336, -1 }, /* (393) join_type ::= INNER */ - { 338, -9 }, /* (394) 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 */ - { 339, 0 }, /* (395) set_quantifier_opt ::= */ - { 339, -1 }, /* (396) set_quantifier_opt ::= DISTINCT */ - { 339, -1 }, /* (397) set_quantifier_opt ::= ALL */ - { 340, -1 }, /* (398) select_list ::= NK_STAR */ - { 340, -1 }, /* (399) select_list ::= select_sublist */ - { 345, -1 }, /* (400) select_sublist ::= select_item */ - { 345, -3 }, /* (401) select_sublist ::= select_sublist NK_COMMA select_item */ - { 346, -1 }, /* (402) select_item ::= common_expression */ - { 346, -2 }, /* (403) select_item ::= common_expression column_alias */ - { 346, -3 }, /* (404) select_item ::= common_expression AS column_alias */ - { 346, -3 }, /* (405) select_item ::= table_name NK_DOT NK_STAR */ - { 307, 0 }, /* (406) where_clause_opt ::= */ - { 307, -2 }, /* (407) where_clause_opt ::= WHERE search_condition */ - { 341, 0 }, /* (408) partition_by_clause_opt ::= */ - { 341, -3 }, /* (409) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 342, 0 }, /* (410) twindow_clause_opt ::= */ - { 342, -6 }, /* (411) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 342, -4 }, /* (412) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 342, -6 }, /* (413) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 342, -8 }, /* (414) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 293, 0 }, /* (415) sliding_opt ::= */ - { 293, -4 }, /* (416) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 347, 0 }, /* (417) fill_opt ::= */ - { 347, -4 }, /* (418) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 347, -6 }, /* (419) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 348, -1 }, /* (420) fill_mode ::= NONE */ - { 348, -1 }, /* (421) fill_mode ::= PREV */ - { 348, -1 }, /* (422) fill_mode ::= NULL */ - { 348, -1 }, /* (423) fill_mode ::= LINEAR */ - { 348, -1 }, /* (424) fill_mode ::= NEXT */ - { 343, 0 }, /* (425) group_by_clause_opt ::= */ - { 343, -3 }, /* (426) group_by_clause_opt ::= GROUP BY group_by_list */ - { 349, -1 }, /* (427) group_by_list ::= expression */ - { 349, -3 }, /* (428) group_by_list ::= group_by_list NK_COMMA expression */ - { 344, 0 }, /* (429) having_clause_opt ::= */ - { 344, -2 }, /* (430) having_clause_opt ::= HAVING search_condition */ - { 297, -4 }, /* (431) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 350, -1 }, /* (432) query_expression_body ::= query_primary */ - { 350, -4 }, /* (433) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 350, -3 }, /* (434) query_expression_body ::= query_expression_body UNION query_expression_body */ - { 354, -1 }, /* (435) query_primary ::= query_specification */ - { 354, -6 }, /* (436) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ - { 351, 0 }, /* (437) order_by_clause_opt ::= */ - { 351, -3 }, /* (438) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 352, 0 }, /* (439) slimit_clause_opt ::= */ - { 352, -2 }, /* (440) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 352, -4 }, /* (441) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 352, -4 }, /* (442) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 353, 0 }, /* (443) limit_clause_opt ::= */ - { 353, -2 }, /* (444) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 353, -4 }, /* (445) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 353, -4 }, /* (446) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 316, -3 }, /* (447) subquery ::= NK_LP query_expression NK_RP */ - { 337, -1 }, /* (448) search_condition ::= common_expression */ - { 355, -1 }, /* (449) sort_specification_list ::= sort_specification */ - { 355, -3 }, /* (450) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 356, -3 }, /* (451) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 357, 0 }, /* (452) ordering_specification_opt ::= */ - { 357, -1 }, /* (453) ordering_specification_opt ::= ASC */ - { 357, -1 }, /* (454) ordering_specification_opt ::= DESC */ - { 358, 0 }, /* (455) null_ordering_opt ::= */ - { 358, -2 }, /* (456) null_ordering_opt ::= NULLS FIRST */ - { 358, -2 }, /* (457) null_ordering_opt ::= NULLS LAST */ + { 239, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 239, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 240, 0 }, /* (2) account_options ::= */ + { 240, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 240, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 240, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 240, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 240, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 240, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 240, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 240, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 240, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 241, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 241, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 243, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 243, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 243, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 243, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 243, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 243, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 243, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 243, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 243, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 243, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 239, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ + { 239, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 239, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ + { 239, -3 }, /* (27) cmd ::= DROP USER user_name */ + { 239, -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */ + { 239, -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */ + { 245, -1 }, /* (30) privileges ::= ALL */ + { 245, -1 }, /* (31) privileges ::= priv_type_list */ + { 247, -1 }, /* (32) priv_type_list ::= priv_type */ + { 247, -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + { 248, -1 }, /* (34) priv_type ::= READ */ + { 248, -1 }, /* (35) priv_type ::= WRITE */ + { 246, -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */ + { 246, -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */ + { 239, -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */ + { 239, -5 }, /* (39) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + { 239, -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */ + { 239, -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */ + { 239, -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 239, -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 239, -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */ + { 239, -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 250, -1 }, /* (46) dnode_endpoint ::= NK_STRING */ + { 250, -1 }, /* (47) dnode_endpoint ::= NK_ID */ + { 250, -1 }, /* (48) dnode_endpoint ::= NK_IPTOKEN */ + { 239, -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */ + { 239, -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 239, -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 239, -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 239, -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */ + { 239, -2 }, /* (61) cmd ::= USE db_name */ + { 239, -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 DURATION NK_INTEGER */ + { 252, -3 }, /* (72) db_options ::= db_options DURATION 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 */ + { 252, -3 }, /* (87) db_options ::= db_options SCHEMALESS NK_INTEGER */ + { 254, -1 }, /* (88) alter_db_options ::= alter_db_option */ + { 254, -2 }, /* (89) alter_db_options ::= alter_db_options alter_db_option */ + { 258, -2 }, /* (90) alter_db_option ::= BUFFER NK_INTEGER */ + { 258, -2 }, /* (91) alter_db_option ::= CACHELAST NK_INTEGER */ + { 258, -2 }, /* (92) alter_db_option ::= FSYNC NK_INTEGER */ + { 258, -2 }, /* (93) alter_db_option ::= KEEP integer_list */ + { 258, -2 }, /* (94) alter_db_option ::= KEEP variable_list */ + { 258, -2 }, /* (95) alter_db_option ::= PAGES NK_INTEGER */ + { 258, -2 }, /* (96) alter_db_option ::= REPLICA NK_INTEGER */ + { 258, -2 }, /* (97) alter_db_option ::= STRICT NK_INTEGER */ + { 258, -2 }, /* (98) alter_db_option ::= WAL NK_INTEGER */ + { 255, -1 }, /* (99) integer_list ::= NK_INTEGER */ + { 255, -3 }, /* (100) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 256, -1 }, /* (101) variable_list ::= NK_VARIABLE */ + { 256, -3 }, /* (102) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 257, -1 }, /* (103) retention_list ::= retention */ + { 257, -3 }, /* (104) retention_list ::= retention_list NK_COMMA retention */ + { 259, -3 }, /* (105) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 239, -9 }, /* (106) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 239, -3 }, /* (107) cmd ::= CREATE TABLE multi_create_clause */ + { 239, -9 }, /* (108) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 239, -3 }, /* (109) cmd ::= DROP TABLE multi_drop_clause */ + { 239, -4 }, /* (110) cmd ::= DROP STABLE exists_opt full_table_name */ + { 239, -3 }, /* (111) cmd ::= ALTER TABLE alter_table_clause */ + { 239, -3 }, /* (112) cmd ::= ALTER STABLE alter_table_clause */ + { 267, -2 }, /* (113) alter_table_clause ::= full_table_name alter_table_options */ + { 267, -5 }, /* (114) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 267, -4 }, /* (115) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 267, -5 }, /* (116) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 267, -5 }, /* (117) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 267, -5 }, /* (118) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 267, -4 }, /* (119) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 267, -5 }, /* (120) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 267, -5 }, /* (121) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 267, -6 }, /* (122) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + { 264, -1 }, /* (123) multi_create_clause ::= create_subtable_clause */ + { 264, -2 }, /* (124) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 272, -10 }, /* (125) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ + { 266, -1 }, /* (126) multi_drop_clause ::= drop_table_clause */ + { 266, -2 }, /* (127) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 275, -2 }, /* (128) drop_table_clause ::= exists_opt full_table_name */ + { 273, 0 }, /* (129) specific_tags_opt ::= */ + { 273, -3 }, /* (130) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 260, -1 }, /* (131) full_table_name ::= table_name */ + { 260, -3 }, /* (132) full_table_name ::= db_name NK_DOT table_name */ + { 261, -1 }, /* (133) column_def_list ::= column_def */ + { 261, -3 }, /* (134) column_def_list ::= column_def_list NK_COMMA column_def */ + { 278, -2 }, /* (135) column_def ::= column_name type_name */ + { 278, -4 }, /* (136) column_def ::= column_name type_name COMMENT NK_STRING */ + { 270, -1 }, /* (137) type_name ::= BOOL */ + { 270, -1 }, /* (138) type_name ::= TINYINT */ + { 270, -1 }, /* (139) type_name ::= SMALLINT */ + { 270, -1 }, /* (140) type_name ::= INT */ + { 270, -1 }, /* (141) type_name ::= INTEGER */ + { 270, -1 }, /* (142) type_name ::= BIGINT */ + { 270, -1 }, /* (143) type_name ::= FLOAT */ + { 270, -1 }, /* (144) type_name ::= DOUBLE */ + { 270, -4 }, /* (145) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 270, -1 }, /* (146) type_name ::= TIMESTAMP */ + { 270, -4 }, /* (147) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 270, -2 }, /* (148) type_name ::= TINYINT UNSIGNED */ + { 270, -2 }, /* (149) type_name ::= SMALLINT UNSIGNED */ + { 270, -2 }, /* (150) type_name ::= INT UNSIGNED */ + { 270, -2 }, /* (151) type_name ::= BIGINT UNSIGNED */ + { 270, -1 }, /* (152) type_name ::= JSON */ + { 270, -4 }, /* (153) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 270, -1 }, /* (154) type_name ::= MEDIUMBLOB */ + { 270, -1 }, /* (155) type_name ::= BLOB */ + { 270, -4 }, /* (156) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 270, -1 }, /* (157) type_name ::= DECIMAL */ + { 270, -4 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 270, -6 }, /* (159) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 262, 0 }, /* (160) tags_def_opt ::= */ + { 262, -1 }, /* (161) tags_def_opt ::= tags_def */ + { 265, -4 }, /* (162) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 263, 0 }, /* (163) table_options ::= */ + { 263, -3 }, /* (164) table_options ::= table_options COMMENT NK_STRING */ + { 263, -3 }, /* (165) table_options ::= table_options MAX_DELAY duration_list */ + { 263, -3 }, /* (166) table_options ::= table_options WATERMARK duration_list */ + { 263, -5 }, /* (167) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + { 263, -3 }, /* (168) table_options ::= table_options TTL NK_INTEGER */ + { 263, -5 }, /* (169) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 268, -1 }, /* (170) alter_table_options ::= alter_table_option */ + { 268, -2 }, /* (171) alter_table_options ::= alter_table_options alter_table_option */ + { 281, -2 }, /* (172) alter_table_option ::= COMMENT NK_STRING */ + { 281, -2 }, /* (173) alter_table_option ::= TTL NK_INTEGER */ + { 279, -1 }, /* (174) duration_list ::= duration_literal */ + { 279, -3 }, /* (175) duration_list ::= duration_list NK_COMMA duration_literal */ + { 280, -1 }, /* (176) rollup_func_list ::= rollup_func_name */ + { 280, -3 }, /* (177) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + { 283, -1 }, /* (178) rollup_func_name ::= function_name */ + { 283, -1 }, /* (179) rollup_func_name ::= FIRST */ + { 283, -1 }, /* (180) rollup_func_name ::= LAST */ + { 276, -1 }, /* (181) col_name_list ::= col_name */ + { 276, -3 }, /* (182) col_name_list ::= col_name_list NK_COMMA col_name */ + { 285, -1 }, /* (183) col_name ::= column_name */ + { 239, -2 }, /* (184) cmd ::= SHOW DNODES */ + { 239, -2 }, /* (185) cmd ::= SHOW USERS */ + { 239, -2 }, /* (186) cmd ::= SHOW DATABASES */ + { 239, -4 }, /* (187) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 239, -4 }, /* (188) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 239, -3 }, /* (189) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 239, -2 }, /* (190) cmd ::= SHOW MNODES */ + { 239, -2 }, /* (191) cmd ::= SHOW MODULES */ + { 239, -2 }, /* (192) cmd ::= SHOW QNODES */ + { 239, -2 }, /* (193) cmd ::= SHOW FUNCTIONS */ + { 239, -5 }, /* (194) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 239, -2 }, /* (195) cmd ::= SHOW STREAMS */ + { 239, -2 }, /* (196) cmd ::= SHOW ACCOUNTS */ + { 239, -2 }, /* (197) cmd ::= SHOW APPS */ + { 239, -2 }, /* (198) cmd ::= SHOW CONNECTIONS */ + { 239, -2 }, /* (199) cmd ::= SHOW LICENCE */ + { 239, -2 }, /* (200) cmd ::= SHOW GRANTS */ + { 239, -4 }, /* (201) cmd ::= SHOW CREATE DATABASE db_name */ + { 239, -4 }, /* (202) cmd ::= SHOW CREATE TABLE full_table_name */ + { 239, -4 }, /* (203) cmd ::= SHOW CREATE STABLE full_table_name */ + { 239, -2 }, /* (204) cmd ::= SHOW QUERIES */ + { 239, -2 }, /* (205) cmd ::= SHOW SCORES */ + { 239, -2 }, /* (206) cmd ::= SHOW TOPICS */ + { 239, -2 }, /* (207) cmd ::= SHOW VARIABLES */ + { 239, -2 }, /* (208) cmd ::= SHOW BNODES */ + { 239, -2 }, /* (209) cmd ::= SHOW SNODES */ + { 239, -2 }, /* (210) cmd ::= SHOW CLUSTER */ + { 239, -2 }, /* (211) cmd ::= SHOW TRANSACTIONS */ + { 286, 0 }, /* (212) db_name_cond_opt ::= */ + { 286, -2 }, /* (213) db_name_cond_opt ::= db_name NK_DOT */ + { 287, 0 }, /* (214) like_pattern_opt ::= */ + { 287, -2 }, /* (215) like_pattern_opt ::= LIKE NK_STRING */ + { 288, -1 }, /* (216) table_name_cond ::= table_name */ + { 289, 0 }, /* (217) from_db_opt ::= */ + { 289, -2 }, /* (218) from_db_opt ::= FROM db_name */ + { 239, -8 }, /* (219) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 239, -10 }, /* (220) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 239, -6 }, /* (221) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 291, 0 }, /* (222) index_options ::= */ + { 291, -9 }, /* (223) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 291, -11 }, /* (224) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 292, -1 }, /* (225) func_list ::= func */ + { 292, -3 }, /* (226) func_list ::= func_list NK_COMMA func */ + { 294, -4 }, /* (227) func ::= function_name NK_LP expression_list NK_RP */ + { 239, -6 }, /* (228) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 239, -7 }, /* (229) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + { 239, -7 }, /* (230) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + { 239, -4 }, /* (231) cmd ::= DROP TOPIC exists_opt topic_name */ + { 239, -7 }, /* (232) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + { 239, -2 }, /* (233) cmd ::= DESC full_table_name */ + { 239, -2 }, /* (234) cmd ::= DESCRIBE full_table_name */ + { 239, -3 }, /* (235) cmd ::= RESET QUERY CACHE */ + { 239, -4 }, /* (236) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 299, 0 }, /* (237) analyze_opt ::= */ + { 299, -1 }, /* (238) analyze_opt ::= ANALYZE */ + { 300, 0 }, /* (239) explain_options ::= */ + { 300, -3 }, /* (240) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 300, -3 }, /* (241) explain_options ::= explain_options RATIO NK_FLOAT */ + { 239, -6 }, /* (242) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 239, -10 }, /* (243) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 239, -4 }, /* (244) cmd ::= DROP FUNCTION exists_opt function_name */ + { 301, 0 }, /* (245) agg_func_opt ::= */ + { 301, -1 }, /* (246) agg_func_opt ::= AGGREGATE */ + { 302, 0 }, /* (247) bufsize_opt ::= */ + { 302, -2 }, /* (248) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 239, -8 }, /* (249) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + { 239, -4 }, /* (250) cmd ::= DROP STREAM exists_opt stream_name */ + { 305, 0 }, /* (251) into_opt ::= */ + { 305, -2 }, /* (252) into_opt ::= INTO full_table_name */ + { 304, 0 }, /* (253) stream_options ::= */ + { 304, -3 }, /* (254) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 304, -3 }, /* (255) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 304, -4 }, /* (256) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + { 304, -3 }, /* (257) stream_options ::= stream_options WATERMARK duration_literal */ + { 239, -3 }, /* (258) cmd ::= KILL CONNECTION NK_INTEGER */ + { 239, -3 }, /* (259) cmd ::= KILL QUERY NK_STRING */ + { 239, -3 }, /* (260) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 239, -2 }, /* (261) cmd ::= BALANCE VGROUP */ + { 239, -4 }, /* (262) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 239, -4 }, /* (263) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 239, -3 }, /* (264) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 306, -2 }, /* (265) dnode_list ::= DNODE NK_INTEGER */ + { 306, -3 }, /* (266) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 239, -3 }, /* (267) cmd ::= SYNCDB db_name REPLICA */ + { 239, -4 }, /* (268) cmd ::= DELETE FROM full_table_name where_clause_opt */ + { 239, -1 }, /* (269) cmd ::= query_expression */ + { 242, -1 }, /* (270) literal ::= NK_INTEGER */ + { 242, -1 }, /* (271) literal ::= NK_FLOAT */ + { 242, -1 }, /* (272) literal ::= NK_STRING */ + { 242, -1 }, /* (273) literal ::= NK_BOOL */ + { 242, -2 }, /* (274) literal ::= TIMESTAMP NK_STRING */ + { 242, -1 }, /* (275) literal ::= duration_literal */ + { 242, -1 }, /* (276) literal ::= NULL */ + { 242, -1 }, /* (277) literal ::= NK_QUESTION */ + { 282, -1 }, /* (278) duration_literal ::= NK_VARIABLE */ + { 308, -1 }, /* (279) signed ::= NK_INTEGER */ + { 308, -2 }, /* (280) signed ::= NK_PLUS NK_INTEGER */ + { 308, -2 }, /* (281) signed ::= NK_MINUS NK_INTEGER */ + { 308, -1 }, /* (282) signed ::= NK_FLOAT */ + { 308, -2 }, /* (283) signed ::= NK_PLUS NK_FLOAT */ + { 308, -2 }, /* (284) signed ::= NK_MINUS NK_FLOAT */ + { 271, -1 }, /* (285) signed_literal ::= signed */ + { 271, -1 }, /* (286) signed_literal ::= NK_STRING */ + { 271, -1 }, /* (287) signed_literal ::= NK_BOOL */ + { 271, -2 }, /* (288) signed_literal ::= TIMESTAMP NK_STRING */ + { 271, -1 }, /* (289) signed_literal ::= duration_literal */ + { 271, -1 }, /* (290) signed_literal ::= NULL */ + { 271, -1 }, /* (291) signed_literal ::= literal_func */ + { 274, -1 }, /* (292) literal_list ::= signed_literal */ + { 274, -3 }, /* (293) literal_list ::= literal_list NK_COMMA signed_literal */ + { 249, -1 }, /* (294) db_name ::= NK_ID */ + { 277, -1 }, /* (295) table_name ::= NK_ID */ + { 269, -1 }, /* (296) column_name ::= NK_ID */ + { 284, -1 }, /* (297) function_name ::= NK_ID */ + { 310, -1 }, /* (298) table_alias ::= NK_ID */ + { 311, -1 }, /* (299) column_alias ::= NK_ID */ + { 244, -1 }, /* (300) user_name ::= NK_ID */ + { 290, -1 }, /* (301) index_name ::= NK_ID */ + { 296, -1 }, /* (302) topic_name ::= NK_ID */ + { 303, -1 }, /* (303) stream_name ::= NK_ID */ + { 298, -1 }, /* (304) cgroup_name ::= NK_ID */ + { 312, -1 }, /* (305) expression ::= literal */ + { 312, -1 }, /* (306) expression ::= pseudo_column */ + { 312, -1 }, /* (307) expression ::= column_reference */ + { 312, -1 }, /* (308) expression ::= function_expression */ + { 312, -1 }, /* (309) expression ::= subquery */ + { 312, -3 }, /* (310) expression ::= NK_LP expression NK_RP */ + { 312, -2 }, /* (311) expression ::= NK_PLUS expression */ + { 312, -2 }, /* (312) expression ::= NK_MINUS expression */ + { 312, -3 }, /* (313) expression ::= expression NK_PLUS expression */ + { 312, -3 }, /* (314) expression ::= expression NK_MINUS expression */ + { 312, -3 }, /* (315) expression ::= expression NK_STAR expression */ + { 312, -3 }, /* (316) expression ::= expression NK_SLASH expression */ + { 312, -3 }, /* (317) expression ::= expression NK_REM expression */ + { 312, -3 }, /* (318) expression ::= column_reference NK_ARROW NK_STRING */ + { 295, -1 }, /* (319) expression_list ::= expression */ + { 295, -3 }, /* (320) expression_list ::= expression_list NK_COMMA expression */ + { 314, -1 }, /* (321) column_reference ::= column_name */ + { 314, -3 }, /* (322) column_reference ::= table_name NK_DOT column_name */ + { 313, -1 }, /* (323) pseudo_column ::= ROWTS */ + { 313, -1 }, /* (324) pseudo_column ::= TBNAME */ + { 313, -3 }, /* (325) pseudo_column ::= table_name NK_DOT TBNAME */ + { 313, -1 }, /* (326) pseudo_column ::= QSTARTTS */ + { 313, -1 }, /* (327) pseudo_column ::= QENDTS */ + { 313, -1 }, /* (328) pseudo_column ::= WSTARTTS */ + { 313, -1 }, /* (329) pseudo_column ::= WENDTS */ + { 313, -1 }, /* (330) pseudo_column ::= WDURATION */ + { 315, -4 }, /* (331) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 315, -4 }, /* (332) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 315, -6 }, /* (333) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 315, -1 }, /* (334) function_expression ::= literal_func */ + { 309, -3 }, /* (335) literal_func ::= noarg_func NK_LP NK_RP */ + { 309, -1 }, /* (336) literal_func ::= NOW */ + { 319, -1 }, /* (337) noarg_func ::= NOW */ + { 319, -1 }, /* (338) noarg_func ::= TODAY */ + { 319, -1 }, /* (339) noarg_func ::= TIMEZONE */ + { 317, -1 }, /* (340) star_func ::= COUNT */ + { 317, -1 }, /* (341) star_func ::= FIRST */ + { 317, -1 }, /* (342) star_func ::= LAST */ + { 317, -1 }, /* (343) star_func ::= LAST_ROW */ + { 318, -1 }, /* (344) star_func_para_list ::= NK_STAR */ + { 318, -1 }, /* (345) star_func_para_list ::= other_para_list */ + { 320, -1 }, /* (346) other_para_list ::= star_func_para */ + { 320, -3 }, /* (347) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 321, -1 }, /* (348) star_func_para ::= expression */ + { 321, -3 }, /* (349) star_func_para ::= table_name NK_DOT NK_STAR */ + { 322, -3 }, /* (350) predicate ::= expression compare_op expression */ + { 322, -5 }, /* (351) predicate ::= expression BETWEEN expression AND expression */ + { 322, -6 }, /* (352) predicate ::= expression NOT BETWEEN expression AND expression */ + { 322, -3 }, /* (353) predicate ::= expression IS NULL */ + { 322, -4 }, /* (354) predicate ::= expression IS NOT NULL */ + { 322, -3 }, /* (355) predicate ::= expression in_op in_predicate_value */ + { 323, -1 }, /* (356) compare_op ::= NK_LT */ + { 323, -1 }, /* (357) compare_op ::= NK_GT */ + { 323, -1 }, /* (358) compare_op ::= NK_LE */ + { 323, -1 }, /* (359) compare_op ::= NK_GE */ + { 323, -1 }, /* (360) compare_op ::= NK_NE */ + { 323, -1 }, /* (361) compare_op ::= NK_EQ */ + { 323, -1 }, /* (362) compare_op ::= LIKE */ + { 323, -2 }, /* (363) compare_op ::= NOT LIKE */ + { 323, -1 }, /* (364) compare_op ::= MATCH */ + { 323, -1 }, /* (365) compare_op ::= NMATCH */ + { 323, -1 }, /* (366) compare_op ::= CONTAINS */ + { 324, -1 }, /* (367) in_op ::= IN */ + { 324, -2 }, /* (368) in_op ::= NOT IN */ + { 325, -3 }, /* (369) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 326, -1 }, /* (370) boolean_value_expression ::= boolean_primary */ + { 326, -2 }, /* (371) boolean_value_expression ::= NOT boolean_primary */ + { 326, -3 }, /* (372) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 326, -3 }, /* (373) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 327, -1 }, /* (374) boolean_primary ::= predicate */ + { 327, -3 }, /* (375) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 328, -1 }, /* (376) common_expression ::= expression */ + { 328, -1 }, /* (377) common_expression ::= boolean_value_expression */ + { 329, -2 }, /* (378) from_clause ::= FROM table_reference_list */ + { 330, -1 }, /* (379) table_reference_list ::= table_reference */ + { 330, -3 }, /* (380) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 331, -1 }, /* (381) table_reference ::= table_primary */ + { 331, -1 }, /* (382) table_reference ::= joined_table */ + { 332, -2 }, /* (383) table_primary ::= table_name alias_opt */ + { 332, -4 }, /* (384) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 332, -2 }, /* (385) table_primary ::= subquery alias_opt */ + { 332, -1 }, /* (386) table_primary ::= parenthesized_joined_table */ + { 334, 0 }, /* (387) alias_opt ::= */ + { 334, -1 }, /* (388) alias_opt ::= table_alias */ + { 334, -2 }, /* (389) alias_opt ::= AS table_alias */ + { 335, -3 }, /* (390) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 335, -3 }, /* (391) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 333, -6 }, /* (392) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 336, 0 }, /* (393) join_type ::= */ + { 336, -1 }, /* (394) join_type ::= INNER */ + { 338, -9 }, /* (395) 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 */ + { 339, 0 }, /* (396) set_quantifier_opt ::= */ + { 339, -1 }, /* (397) set_quantifier_opt ::= DISTINCT */ + { 339, -1 }, /* (398) set_quantifier_opt ::= ALL */ + { 340, -1 }, /* (399) select_list ::= NK_STAR */ + { 340, -1 }, /* (400) select_list ::= select_sublist */ + { 345, -1 }, /* (401) select_sublist ::= select_item */ + { 345, -3 }, /* (402) select_sublist ::= select_sublist NK_COMMA select_item */ + { 346, -1 }, /* (403) select_item ::= common_expression */ + { 346, -2 }, /* (404) select_item ::= common_expression column_alias */ + { 346, -3 }, /* (405) select_item ::= common_expression AS column_alias */ + { 346, -3 }, /* (406) select_item ::= table_name NK_DOT NK_STAR */ + { 307, 0 }, /* (407) where_clause_opt ::= */ + { 307, -2 }, /* (408) where_clause_opt ::= WHERE search_condition */ + { 341, 0 }, /* (409) partition_by_clause_opt ::= */ + { 341, -3 }, /* (410) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 342, 0 }, /* (411) twindow_clause_opt ::= */ + { 342, -6 }, /* (412) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 342, -4 }, /* (413) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 342, -6 }, /* (414) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 342, -8 }, /* (415) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 293, 0 }, /* (416) sliding_opt ::= */ + { 293, -4 }, /* (417) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 347, 0 }, /* (418) fill_opt ::= */ + { 347, -4 }, /* (419) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 347, -6 }, /* (420) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 348, -1 }, /* (421) fill_mode ::= NONE */ + { 348, -1 }, /* (422) fill_mode ::= PREV */ + { 348, -1 }, /* (423) fill_mode ::= NULL */ + { 348, -1 }, /* (424) fill_mode ::= LINEAR */ + { 348, -1 }, /* (425) fill_mode ::= NEXT */ + { 343, 0 }, /* (426) group_by_clause_opt ::= */ + { 343, -3 }, /* (427) group_by_clause_opt ::= GROUP BY group_by_list */ + { 349, -1 }, /* (428) group_by_list ::= expression */ + { 349, -3 }, /* (429) group_by_list ::= group_by_list NK_COMMA expression */ + { 344, 0 }, /* (430) having_clause_opt ::= */ + { 344, -2 }, /* (431) having_clause_opt ::= HAVING search_condition */ + { 297, -4 }, /* (432) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 350, -1 }, /* (433) query_expression_body ::= query_primary */ + { 350, -4 }, /* (434) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 350, -3 }, /* (435) query_expression_body ::= query_expression_body UNION query_expression_body */ + { 354, -1 }, /* (436) query_primary ::= query_specification */ + { 354, -6 }, /* (437) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + { 351, 0 }, /* (438) order_by_clause_opt ::= */ + { 351, -3 }, /* (439) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 352, 0 }, /* (440) slimit_clause_opt ::= */ + { 352, -2 }, /* (441) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 352, -4 }, /* (442) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 352, -4 }, /* (443) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 353, 0 }, /* (444) limit_clause_opt ::= */ + { 353, -2 }, /* (445) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 353, -4 }, /* (446) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 353, -4 }, /* (447) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 316, -3 }, /* (448) subquery ::= NK_LP query_expression NK_RP */ + { 337, -1 }, /* (449) search_condition ::= common_expression */ + { 355, -1 }, /* (450) sort_specification_list ::= sort_specification */ + { 355, -3 }, /* (451) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 356, -3 }, /* (452) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 357, 0 }, /* (453) ordering_specification_opt ::= */ + { 357, -1 }, /* (454) ordering_specification_opt ::= ASC */ + { 357, -1 }, /* (455) ordering_specification_opt ::= DESC */ + { 358, 0 }, /* (456) null_ordering_opt ::= */ + { 358, -2 }, /* (457) null_ordering_opt ::= NULLS FIRST */ + { 358, -2 }, /* (458) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3138,11 +3112,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,239,&yymsp[0].minor); + yy_destructor(yypParser,240,&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,240,&yymsp[0].minor); + yy_destructor(yypParser,241,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3156,20 +3130,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,239,&yymsp[-2].minor); +{ yy_destructor(yypParser,240,&yymsp[-2].minor); { } - yy_destructor(yypParser,241,&yymsp[0].minor); + yy_destructor(yypParser,242,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,242,&yymsp[0].minor); +{ yy_destructor(yypParser,243,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,240,&yymsp[-1].minor); +{ yy_destructor(yypParser,241,&yymsp[-1].minor); { } - yy_destructor(yypParser,242,&yymsp[0].minor); + yy_destructor(yypParser,243,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3183,7 +3157,7 @@ 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,241,&yymsp[0].minor); + yy_destructor(yypParser,242,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ { pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0); } @@ -3232,7 +3206,7 @@ static YYACTIONTYPE yy_reduce( case 38: /* cmd ::= CREATE DNODE dnode_endpoint */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy421, NULL); } break; - case 39: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ + case 39: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ { pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0); } break; case 40: /* cmd ::= DROP DNODE NK_INTEGER */ @@ -3254,786 +3228,787 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; case 46: /* dnode_endpoint ::= NK_STRING */ - case 47: /* dnode_host_name ::= NK_STRING */ yytestcase(yyruleno==47); - case 293: /* db_name ::= NK_ID */ yytestcase(yyruleno==293); - case 294: /* table_name ::= NK_ID */ yytestcase(yyruleno==294); - case 295: /* column_name ::= NK_ID */ yytestcase(yyruleno==295); - case 296: /* function_name ::= NK_ID */ yytestcase(yyruleno==296); - case 297: /* table_alias ::= NK_ID */ yytestcase(yyruleno==297); - case 298: /* column_alias ::= NK_ID */ yytestcase(yyruleno==298); - case 299: /* user_name ::= NK_ID */ yytestcase(yyruleno==299); - case 300: /* index_name ::= NK_ID */ yytestcase(yyruleno==300); - case 301: /* topic_name ::= NK_ID */ yytestcase(yyruleno==301); - case 302: /* stream_name ::= NK_ID */ yytestcase(yyruleno==302); - case 303: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==303); - case 336: /* noarg_func ::= NOW */ yytestcase(yyruleno==336); - case 337: /* noarg_func ::= TODAY */ yytestcase(yyruleno==337); - case 338: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==338); - case 339: /* star_func ::= COUNT */ yytestcase(yyruleno==339); - case 340: /* star_func ::= FIRST */ yytestcase(yyruleno==340); - case 341: /* star_func ::= LAST */ yytestcase(yyruleno==341); - case 342: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==342); + case 47: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==47); + case 48: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==48); + case 294: /* db_name ::= NK_ID */ yytestcase(yyruleno==294); + case 295: /* table_name ::= NK_ID */ yytestcase(yyruleno==295); + case 296: /* column_name ::= NK_ID */ yytestcase(yyruleno==296); + case 297: /* function_name ::= NK_ID */ yytestcase(yyruleno==297); + case 298: /* table_alias ::= NK_ID */ yytestcase(yyruleno==298); + case 299: /* column_alias ::= NK_ID */ yytestcase(yyruleno==299); + case 300: /* user_name ::= NK_ID */ yytestcase(yyruleno==300); + case 301: /* index_name ::= NK_ID */ yytestcase(yyruleno==301); + case 302: /* topic_name ::= NK_ID */ yytestcase(yyruleno==302); + case 303: /* stream_name ::= NK_ID */ yytestcase(yyruleno==303); + case 304: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==304); + case 337: /* noarg_func ::= NOW */ yytestcase(yyruleno==337); + case 338: /* noarg_func ::= TODAY */ yytestcase(yyruleno==338); + case 339: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==339); + case 340: /* star_func ::= COUNT */ yytestcase(yyruleno==340); + case 341: /* star_func ::= FIRST */ yytestcase(yyruleno==341); + case 342: /* star_func ::= LAST */ yytestcase(yyruleno==342); + case 343: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==343); { yylhsminor.yy421 = yymsp[0].minor.yy0; } yymsp[0].minor.yy421 = yylhsminor.yy421; break; - case 48: /* cmd ::= ALTER LOCAL NK_STRING */ + case 49: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 49: /* 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 50: /* 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 51: /* 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 52: /* 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 53: /* 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 54: /* 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 55: /* 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 56: /* 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 57: /* 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 58: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + case 59: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ { pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy621, &yymsp[-1].minor.yy421, yymsp[0].minor.yy674); } break; - case 59: /* cmd ::= DROP DATABASE exists_opt db_name */ + case 60: /* cmd ::= DROP DATABASE exists_opt db_name */ { pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy621, &yymsp[0].minor.yy421); } break; - case 60: /* cmd ::= USE db_name */ + case 61: /* cmd ::= USE db_name */ { pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy421); } break; - case 61: /* cmd ::= ALTER DATABASE db_name alter_db_options */ + case 62: /* cmd ::= ALTER DATABASE db_name alter_db_options */ { pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy421, yymsp[0].minor.yy674); } break; - case 62: /* not_exists_opt ::= IF NOT EXISTS */ + case 63: /* not_exists_opt ::= IF NOT EXISTS */ { yymsp[-2].minor.yy621 = true; } break; - case 63: /* not_exists_opt ::= */ - case 65: /* exists_opt ::= */ yytestcase(yyruleno==65); - case 236: /* analyze_opt ::= */ yytestcase(yyruleno==236); - case 244: /* agg_func_opt ::= */ yytestcase(yyruleno==244); - case 395: /* set_quantifier_opt ::= */ yytestcase(yyruleno==395); + case 64: /* not_exists_opt ::= */ + case 66: /* exists_opt ::= */ yytestcase(yyruleno==66); + case 237: /* analyze_opt ::= */ yytestcase(yyruleno==237); + case 245: /* agg_func_opt ::= */ yytestcase(yyruleno==245); + case 396: /* set_quantifier_opt ::= */ yytestcase(yyruleno==396); { yymsp[1].minor.yy621 = false; } break; - case 64: /* exists_opt ::= IF EXISTS */ + case 65: /* exists_opt ::= IF EXISTS */ { yymsp[-1].minor.yy621 = true; } break; - case 66: /* db_options ::= */ + case 67: /* db_options ::= */ { yymsp[1].minor.yy674 = createDefaultDatabaseOptions(pCxt); } break; - case 67: /* db_options ::= db_options BUFFER NK_INTEGER */ + case 68: /* db_options ::= db_options BUFFER NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 68: /* db_options ::= db_options CACHELAST NK_INTEGER */ + case 69: /* db_options ::= db_options CACHELAST NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 69: /* db_options ::= db_options COMP NK_INTEGER */ + case 70: /* db_options ::= db_options COMP NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_COMP, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 70: /* db_options ::= db_options DURATION NK_INTEGER */ - case 71: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==71); + case 71: /* db_options ::= db_options DURATION NK_INTEGER */ + case 72: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==72); { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 72: /* db_options ::= db_options FSYNC NK_INTEGER */ + case 73: /* db_options ::= db_options FSYNC NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 73: /* db_options ::= db_options MAXROWS NK_INTEGER */ + case 74: /* db_options ::= db_options MAXROWS NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 74: /* db_options ::= db_options MINROWS NK_INTEGER */ + case 75: /* db_options ::= db_options MINROWS NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 75: /* db_options ::= db_options KEEP integer_list */ - case 76: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==76); + case 76: /* db_options ::= db_options KEEP integer_list */ + case 77: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==77); { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_KEEP, yymsp[0].minor.yy530); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 77: /* db_options ::= db_options PAGES NK_INTEGER */ + case 78: /* db_options ::= db_options PAGES NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 78: /* db_options ::= db_options PAGESIZE NK_INTEGER */ + case 79: /* db_options ::= db_options PAGESIZE NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 79: /* db_options ::= db_options PRECISION NK_STRING */ + case 80: /* db_options ::= db_options PRECISION NK_STRING */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 80: /* db_options ::= db_options REPLICA NK_INTEGER */ + case 81: /* db_options ::= db_options REPLICA NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 81: /* db_options ::= db_options STRICT NK_INTEGER */ + case 82: /* db_options ::= db_options STRICT NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 82: /* db_options ::= db_options WAL NK_INTEGER */ + case 83: /* db_options ::= db_options WAL NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_WAL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 83: /* db_options ::= db_options VGROUPS NK_INTEGER */ + case 84: /* db_options ::= db_options VGROUPS NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 84: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + case 85: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 85: /* db_options ::= db_options RETENTIONS retention_list */ + case 86: /* db_options ::= db_options RETENTIONS retention_list */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_RETENTIONS, yymsp[0].minor.yy530); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 86: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ + case 87: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ { yylhsminor.yy674 = setDatabaseOption(pCxt, yymsp[-2].minor.yy674, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 87: /* alter_db_options ::= alter_db_option */ + case 88: /* alter_db_options ::= alter_db_option */ { yylhsminor.yy674 = createAlterDatabaseOptions(pCxt); yylhsminor.yy674 = setAlterDatabaseOption(pCxt, yylhsminor.yy674, &yymsp[0].minor.yy557); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 88: /* alter_db_options ::= alter_db_options alter_db_option */ + case 89: /* alter_db_options ::= alter_db_options alter_db_option */ { yylhsminor.yy674 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy674, &yymsp[0].minor.yy557); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 89: /* alter_db_option ::= BUFFER NK_INTEGER */ + case 90: /* alter_db_option ::= BUFFER NK_INTEGER */ { yymsp[-1].minor.yy557.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 90: /* alter_db_option ::= CACHELAST NK_INTEGER */ + case 91: /* alter_db_option ::= CACHELAST NK_INTEGER */ { yymsp[-1].minor.yy557.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 91: /* alter_db_option ::= FSYNC NK_INTEGER */ + case 92: /* alter_db_option ::= FSYNC NK_INTEGER */ { yymsp[-1].minor.yy557.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy557.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); + case 93: /* alter_db_option ::= KEEP integer_list */ + case 94: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==94); { yymsp[-1].minor.yy557.type = DB_OPTION_KEEP; yymsp[-1].minor.yy557.pList = yymsp[0].minor.yy530; } break; - case 94: /* alter_db_option ::= PAGES NK_INTEGER */ + case 95: /* alter_db_option ::= PAGES NK_INTEGER */ { yymsp[-1].minor.yy557.type = DB_OPTION_PAGES; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 95: /* alter_db_option ::= REPLICA NK_INTEGER */ + case 96: /* alter_db_option ::= REPLICA NK_INTEGER */ { yymsp[-1].minor.yy557.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 96: /* alter_db_option ::= STRICT NK_INTEGER */ + case 97: /* alter_db_option ::= STRICT NK_INTEGER */ { yymsp[-1].minor.yy557.type = DB_OPTION_STRICT; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 97: /* alter_db_option ::= WAL NK_INTEGER */ + case 98: /* alter_db_option ::= WAL NK_INTEGER */ { yymsp[-1].minor.yy557.type = DB_OPTION_WAL; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 98: /* integer_list ::= NK_INTEGER */ + case 99: /* integer_list ::= NK_INTEGER */ { yylhsminor.yy530 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 99: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 265: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==265); + case 100: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ + case 266: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==266); { yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy530 = yylhsminor.yy530; break; - case 100: /* variable_list ::= NK_VARIABLE */ + case 101: /* variable_list ::= NK_VARIABLE */ { yylhsminor.yy530 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 101: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + case 102: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy530 = yylhsminor.yy530; 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 175: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==175); - case 180: /* col_name_list ::= col_name */ yytestcase(yyruleno==180); - case 224: /* func_list ::= func */ yytestcase(yyruleno==224); - case 291: /* literal_list ::= signed_literal */ yytestcase(yyruleno==291); - case 345: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==345); - case 400: /* select_sublist ::= select_item */ yytestcase(yyruleno==400); - case 449: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==449); + case 103: /* retention_list ::= retention */ + case 123: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==123); + case 126: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==126); + case 133: /* column_def_list ::= column_def */ yytestcase(yyruleno==133); + case 176: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==176); + case 181: /* col_name_list ::= col_name */ yytestcase(yyruleno==181); + case 225: /* func_list ::= func */ yytestcase(yyruleno==225); + case 292: /* literal_list ::= signed_literal */ yytestcase(yyruleno==292); + case 346: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==346); + case 401: /* select_sublist ::= select_item */ yytestcase(yyruleno==401); + case 450: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==450); { yylhsminor.yy530 = createNodeList(pCxt, yymsp[0].minor.yy674); } yymsp[0].minor.yy530 = yylhsminor.yy530; 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 176: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==176); - case 181: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==181); - case 225: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==225); - case 292: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==292); - case 346: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==346); - case 401: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==401); - case 450: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==450); + case 104: /* retention_list ::= retention_list NK_COMMA retention */ + case 134: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==134); + case 177: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==177); + case 182: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==182); + case 226: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==226); + case 293: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==293); + case 347: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==347); + case 402: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==402); + case 451: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==451); { yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, yymsp[0].minor.yy674); } yymsp[-2].minor.yy530 = yylhsminor.yy530; break; - case 104: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + case 105: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ { yylhsminor.yy674 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy674 = yylhsminor.yy674; 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); + case 106: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 108: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==108); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy621, yymsp[-5].minor.yy674, yymsp[-3].minor.yy530, yymsp[-1].minor.yy530, yymsp[0].minor.yy674); } break; - case 106: /* cmd ::= CREATE TABLE multi_create_clause */ + case 107: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy530); } break; - case 108: /* cmd ::= DROP TABLE multi_drop_clause */ + case 109: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy530); } break; - case 109: /* cmd ::= DROP STABLE exists_opt full_table_name */ + case 110: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy621, yymsp[0].minor.yy674); } break; - case 110: /* cmd ::= ALTER TABLE alter_table_clause */ - case 111: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==111); - case 268: /* cmd ::= query_expression */ yytestcase(yyruleno==268); + case 111: /* cmd ::= ALTER TABLE alter_table_clause */ + case 112: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==112); + case 269: /* cmd ::= query_expression */ yytestcase(yyruleno==269); { pCxt->pRootNode = yymsp[0].minor.yy674; } break; - case 112: /* alter_table_clause ::= full_table_name alter_table_options */ + case 113: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy674 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 113: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + case 114: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy674 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690); } yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 114: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ + case 115: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy674 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy674, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy421); } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 115: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + case 116: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy674 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690); } yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 116: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + case 117: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy674 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy421, &yymsp[0].minor.yy421); } yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 117: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + case 118: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy674 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690); } yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 118: /* alter_table_clause ::= full_table_name DROP TAG column_name */ + case 119: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy674 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy674, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy421); } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 119: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + case 120: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy674 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690); } yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 120: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + case 121: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy674 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy674, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy421, &yymsp[0].minor.yy421); } yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 121: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + case 122: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { yylhsminor.yy674 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy674, &yymsp[-2].minor.yy421, yymsp[0].minor.yy674); } yymsp[-5].minor.yy674 = yylhsminor.yy674; break; - 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); + case 124: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 127: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==127); { yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-1].minor.yy530, yymsp[0].minor.yy674); } yymsp[-1].minor.yy530 = yylhsminor.yy530; break; - 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 */ + case 125: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ { yylhsminor.yy674 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy621, yymsp[-8].minor.yy674, yymsp[-6].minor.yy674, yymsp[-5].minor.yy530, yymsp[-2].minor.yy530, yymsp[0].minor.yy674); } yymsp[-9].minor.yy674 = yylhsminor.yy674; break; - case 127: /* drop_table_clause ::= exists_opt full_table_name */ + case 128: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy674 = createDropTableClause(pCxt, yymsp[-1].minor.yy621, yymsp[0].minor.yy674); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 128: /* specific_tags_opt ::= */ - case 159: /* tags_def_opt ::= */ yytestcase(yyruleno==159); - case 408: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==408); - case 425: /* group_by_clause_opt ::= */ yytestcase(yyruleno==425); - case 437: /* order_by_clause_opt ::= */ yytestcase(yyruleno==437); + case 129: /* specific_tags_opt ::= */ + case 160: /* tags_def_opt ::= */ yytestcase(yyruleno==160); + case 409: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==409); + case 426: /* group_by_clause_opt ::= */ yytestcase(yyruleno==426); + case 438: /* order_by_clause_opt ::= */ yytestcase(yyruleno==438); { yymsp[1].minor.yy530 = NULL; } break; - case 129: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ + case 130: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ { yymsp[-2].minor.yy530 = yymsp[-1].minor.yy530; } break; - case 130: /* full_table_name ::= table_name */ + case 131: /* full_table_name ::= table_name */ { yylhsminor.yy674 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy421, NULL); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 131: /* full_table_name ::= db_name NK_DOT table_name */ + case 132: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy674 = createRealTableNode(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421, NULL); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 134: /* column_def ::= column_name type_name */ + case 135: /* column_def ::= column_name type_name */ { yylhsminor.yy674 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy421, yymsp[0].minor.yy690, NULL); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 135: /* column_def ::= column_name type_name COMMENT NK_STRING */ + case 136: /* column_def ::= column_name type_name COMMENT NK_STRING */ { yylhsminor.yy674 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy421, yymsp[-2].minor.yy690, &yymsp[0].minor.yy0); } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 136: /* type_name ::= BOOL */ + case 137: /* type_name ::= BOOL */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 137: /* type_name ::= TINYINT */ + case 138: /* type_name ::= TINYINT */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 138: /* type_name ::= SMALLINT */ + case 139: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 139: /* type_name ::= INT */ - case 140: /* type_name ::= INTEGER */ yytestcase(yyruleno==140); + case 140: /* type_name ::= INT */ + case 141: /* type_name ::= INTEGER */ yytestcase(yyruleno==141); { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 141: /* type_name ::= BIGINT */ + case 142: /* type_name ::= BIGINT */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 142: /* type_name ::= FLOAT */ + case 143: /* type_name ::= FLOAT */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 143: /* type_name ::= DOUBLE */ + case 144: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 144: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + case 145: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy690 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 145: /* type_name ::= TIMESTAMP */ + case 146: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 146: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + case 147: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy690 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 147: /* type_name ::= TINYINT UNSIGNED */ + case 148: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy690 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 148: /* type_name ::= SMALLINT UNSIGNED */ + case 149: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy690 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 149: /* type_name ::= INT UNSIGNED */ + case 150: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy690 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 150: /* type_name ::= BIGINT UNSIGNED */ + case 151: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy690 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 151: /* type_name ::= JSON */ + case 152: /* type_name ::= JSON */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 152: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + case 153: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy690 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 153: /* type_name ::= MEDIUMBLOB */ + case 154: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 154: /* type_name ::= BLOB */ + case 155: /* type_name ::= BLOB */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 155: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + case 156: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy690 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 156: /* type_name ::= DECIMAL */ + case 157: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy690 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 157: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + case 158: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy690 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 158: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + case 159: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy690 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 160: /* tags_def_opt ::= tags_def */ - case 344: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==344); - case 399: /* select_list ::= select_sublist */ yytestcase(yyruleno==399); + case 161: /* tags_def_opt ::= tags_def */ + case 345: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==345); + case 400: /* select_list ::= select_sublist */ yytestcase(yyruleno==400); { yylhsminor.yy530 = yymsp[0].minor.yy530; } yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 161: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ + case 162: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ { yymsp[-3].minor.yy530 = yymsp[-1].minor.yy530; } break; - case 162: /* table_options ::= */ + case 163: /* table_options ::= */ { yymsp[1].minor.yy674 = createDefaultTableOptions(pCxt); } break; - case 163: /* table_options ::= table_options COMMENT NK_STRING */ + case 164: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy674 = setTableOption(pCxt, yymsp[-2].minor.yy674, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 164: /* table_options ::= table_options MAX_DELAY duration_list */ + case 165: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy674 = setTableOption(pCxt, yymsp[-2].minor.yy674, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy530); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 165: /* table_options ::= table_options WATERMARK duration_list */ + case 166: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy674 = setTableOption(pCxt, yymsp[-2].minor.yy674, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy530); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 166: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + case 167: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy674 = setTableOption(pCxt, yymsp[-4].minor.yy674, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy530); } yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 167: /* table_options ::= table_options TTL NK_INTEGER */ + case 168: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy674 = setTableOption(pCxt, yymsp[-2].minor.yy674, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 168: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + case 169: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy674 = setTableOption(pCxt, yymsp[-4].minor.yy674, TABLE_OPTION_SMA, yymsp[-1].minor.yy530); } yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 169: /* alter_table_options ::= alter_table_option */ + case 170: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy674 = createAlterTableOptions(pCxt); yylhsminor.yy674 = setTableOption(pCxt, yylhsminor.yy674, yymsp[0].minor.yy557.type, &yymsp[0].minor.yy557.val); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 170: /* alter_table_options ::= alter_table_options alter_table_option */ + case 171: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy674 = setTableOption(pCxt, yymsp[-1].minor.yy674, yymsp[0].minor.yy557.type, &yymsp[0].minor.yy557.val); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 171: /* alter_table_option ::= COMMENT NK_STRING */ + case 172: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy557.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 172: /* alter_table_option ::= TTL NK_INTEGER */ + case 173: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy557.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy557.val = yymsp[0].minor.yy0; } break; - case 173: /* duration_list ::= duration_literal */ - case 318: /* expression_list ::= expression */ yytestcase(yyruleno==318); + case 174: /* duration_list ::= duration_literal */ + case 319: /* expression_list ::= expression */ yytestcase(yyruleno==319); { yylhsminor.yy530 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy674)); } yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 174: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 319: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==319); + case 175: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 320: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==320); { yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, releaseRawExprNode(pCxt, yymsp[0].minor.yy674)); } yymsp[-2].minor.yy530 = yylhsminor.yy530; break; - case 177: /* rollup_func_name ::= function_name */ + case 178: /* rollup_func_name ::= function_name */ { yylhsminor.yy674 = createFunctionNode(pCxt, &yymsp[0].minor.yy421, NULL); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 178: /* rollup_func_name ::= FIRST */ - case 179: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==179); + case 179: /* rollup_func_name ::= FIRST */ + case 180: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==180); { yylhsminor.yy674 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 182: /* col_name ::= column_name */ + case 183: /* col_name ::= column_name */ { yylhsminor.yy674 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy421); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 183: /* cmd ::= SHOW DNODES */ + case 184: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } break; - case 184: /* cmd ::= SHOW USERS */ + case 185: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); } break; - case 185: /* cmd ::= SHOW DATABASES */ + case 186: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } break; - case 186: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + case 187: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy674, yymsp[0].minor.yy674); } break; - case 187: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + case 188: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy674, yymsp[0].minor.yy674); } break; - case 188: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ + case 189: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy674, NULL); } break; - case 189: /* cmd ::= SHOW MNODES */ + case 190: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } break; - case 190: /* cmd ::= SHOW MODULES */ + case 191: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); } break; - case 191: /* cmd ::= SHOW QNODES */ + case 192: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); } break; - case 192: /* cmd ::= SHOW FUNCTIONS */ + case 193: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } break; - case 193: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + case 194: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 194: /* cmd ::= SHOW STREAMS */ + case 195: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } break; - case 195: /* cmd ::= SHOW ACCOUNTS */ + case 196: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 196: /* cmd ::= SHOW APPS */ + case 197: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT, NULL, NULL); } break; - case 197: /* cmd ::= SHOW CONNECTIONS */ + case 198: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT, NULL, NULL); } break; - case 198: /* cmd ::= SHOW LICENCE */ - case 199: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==199); + case 199: /* cmd ::= SHOW LICENCE */ + case 200: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==200); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT, NULL, NULL); } break; - case 200: /* cmd ::= SHOW CREATE DATABASE db_name */ + case 201: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy421); } break; - case 201: /* cmd ::= SHOW CREATE TABLE full_table_name */ + case 202: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy674); } break; - case 202: /* cmd ::= SHOW CREATE STABLE full_table_name */ + case 203: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy674); } break; - case 203: /* cmd ::= SHOW QUERIES */ + case 204: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT, NULL, NULL); } break; - case 204: /* cmd ::= SHOW SCORES */ + case 205: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT, NULL, NULL); } break; - case 205: /* cmd ::= SHOW TOPICS */ + case 206: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT, NULL, NULL); } break; - case 206: /* cmd ::= SHOW VARIABLES */ + case 207: /* cmd ::= SHOW VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLE_STMT, NULL, NULL); } break; - case 207: /* cmd ::= SHOW BNODES */ + case 208: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT, NULL, NULL); } break; - case 208: /* cmd ::= SHOW SNODES */ + case 209: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT, NULL, NULL); } break; - case 209: /* cmd ::= SHOW CLUSTER */ + case 210: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT, NULL, NULL); } break; - case 210: /* cmd ::= SHOW TRANSACTIONS */ + case 211: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT, NULL, NULL); } break; - case 211: /* db_name_cond_opt ::= */ - case 216: /* from_db_opt ::= */ yytestcase(yyruleno==216); + case 212: /* db_name_cond_opt ::= */ + case 217: /* from_db_opt ::= */ yytestcase(yyruleno==217); { yymsp[1].minor.yy674 = createDefaultDatabaseCondValue(pCxt); } break; - case 212: /* db_name_cond_opt ::= db_name NK_DOT */ + case 213: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy421); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 213: /* like_pattern_opt ::= */ - case 221: /* index_options ::= */ yytestcase(yyruleno==221); - case 250: /* into_opt ::= */ yytestcase(yyruleno==250); - case 406: /* where_clause_opt ::= */ yytestcase(yyruleno==406); - case 410: /* twindow_clause_opt ::= */ yytestcase(yyruleno==410); - case 415: /* sliding_opt ::= */ yytestcase(yyruleno==415); - case 417: /* fill_opt ::= */ yytestcase(yyruleno==417); - case 429: /* having_clause_opt ::= */ yytestcase(yyruleno==429); - case 439: /* slimit_clause_opt ::= */ yytestcase(yyruleno==439); - case 443: /* limit_clause_opt ::= */ yytestcase(yyruleno==443); + case 214: /* like_pattern_opt ::= */ + case 222: /* index_options ::= */ yytestcase(yyruleno==222); + case 251: /* into_opt ::= */ yytestcase(yyruleno==251); + case 407: /* where_clause_opt ::= */ yytestcase(yyruleno==407); + case 411: /* twindow_clause_opt ::= */ yytestcase(yyruleno==411); + case 416: /* sliding_opt ::= */ yytestcase(yyruleno==416); + case 418: /* fill_opt ::= */ yytestcase(yyruleno==418); + case 430: /* having_clause_opt ::= */ yytestcase(yyruleno==430); + case 440: /* slimit_clause_opt ::= */ yytestcase(yyruleno==440); + case 444: /* limit_clause_opt ::= */ yytestcase(yyruleno==444); { yymsp[1].minor.yy674 = NULL; } break; - case 214: /* like_pattern_opt ::= LIKE NK_STRING */ + case 215: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 215: /* table_name_cond ::= table_name */ + case 216: /* table_name_cond ::= table_name */ { yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy421); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 217: /* from_db_opt ::= FROM db_name */ + case 218: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy421); } break; - case 218: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + case 219: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy621, &yymsp[-3].minor.yy421, &yymsp[-1].minor.yy421, NULL, yymsp[0].minor.yy674); } break; - case 219: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + case 220: /* 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.yy621, &yymsp[-5].minor.yy421, &yymsp[-3].minor.yy421, yymsp[-1].minor.yy530, NULL); } break; - case 220: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ + case 221: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy621, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421); } break; - case 222: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + case 223: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ { yymsp[-8].minor.yy674 = createIndexOption(pCxt, yymsp[-6].minor.yy530, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), NULL, yymsp[0].minor.yy674); } break; - case 223: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + case 224: /* 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.yy674 = createIndexOption(pCxt, yymsp[-8].minor.yy530, releaseRawExprNode(pCxt, yymsp[-4].minor.yy674), releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), yymsp[0].minor.yy674); } break; - case 226: /* func ::= function_name NK_LP expression_list NK_RP */ + case 227: /* func ::= function_name NK_LP expression_list NK_RP */ { yylhsminor.yy674 = createFunctionNode(pCxt, &yymsp[-3].minor.yy421, yymsp[-1].minor.yy530); } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 227: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + case 228: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ { pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy621, &yymsp[-2].minor.yy421, yymsp[0].minor.yy674, NULL, NULL); } break; - case 228: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + case 229: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy621, &yymsp[-3].minor.yy421, NULL, &yymsp[0].minor.yy421, NULL); } break; - case 229: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + case 230: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ { pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy621, &yymsp[-3].minor.yy421, NULL, NULL, yymsp[0].minor.yy674); } break; - case 230: /* cmd ::= DROP TOPIC exists_opt topic_name */ + case 231: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy621, &yymsp[0].minor.yy421); } break; - case 231: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + case 232: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy621, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421); } break; - case 232: /* cmd ::= DESC full_table_name */ - case 233: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==233); + case 233: /* cmd ::= DESC full_table_name */ + case 234: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==234); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy674); } break; - case 234: /* cmd ::= RESET QUERY CACHE */ + case 235: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 235: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + case 236: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy621, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 237: /* analyze_opt ::= ANALYZE */ - case 245: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==245); - case 396: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==396); + case 238: /* analyze_opt ::= ANALYZE */ + case 246: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==246); + case 397: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==397); { yymsp[0].minor.yy621 = true; } break; - case 238: /* explain_options ::= */ + case 239: /* explain_options ::= */ { yymsp[1].minor.yy674 = createDefaultExplainOptions(pCxt); } break; - case 239: /* explain_options ::= explain_options VERBOSE NK_BOOL */ + case 240: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy674 = setExplainVerbose(pCxt, yymsp[-2].minor.yy674, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 240: /* explain_options ::= explain_options RATIO NK_FLOAT */ + case 241: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy674 = setExplainRatio(pCxt, yymsp[-2].minor.yy674, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 241: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + case 242: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ { pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy530); } break; - case 242: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + case 243: /* 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.yy621, yymsp[-8].minor.yy621, &yymsp[-5].minor.yy421, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy690, yymsp[0].minor.yy42); } break; - case 243: /* cmd ::= DROP FUNCTION exists_opt function_name */ + case 244: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy621, &yymsp[0].minor.yy421); } break; - case 246: /* bufsize_opt ::= */ + case 247: /* bufsize_opt ::= */ { yymsp[1].minor.yy42 = 0; } break; - case 247: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ + case 248: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ { yymsp[-1].minor.yy42 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 248: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + case 249: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ { pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy621, &yymsp[-4].minor.yy421, yymsp[-2].minor.yy674, yymsp[-3].minor.yy674, yymsp[0].minor.yy674); } break; - case 249: /* cmd ::= DROP STREAM exists_opt stream_name */ + case 250: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy621, &yymsp[0].minor.yy421); } break; - case 251: /* into_opt ::= INTO full_table_name */ - case 377: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==377); - case 407: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==407); - case 430: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==430); + case 252: /* into_opt ::= INTO full_table_name */ + case 378: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==378); + case 408: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==408); + case 431: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==431); { yymsp[-1].minor.yy674 = yymsp[0].minor.yy674; } break; - case 252: /* stream_options ::= */ + case 253: /* stream_options ::= */ { yymsp[1].minor.yy674 = createStreamOptions(pCxt); } break; - case 253: /* stream_options ::= stream_options TRIGGER AT_ONCE */ + case 254: /* stream_options ::= stream_options TRIGGER AT_ONCE */ { ((SStreamOptions*)yymsp[-2].minor.yy674)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy674 = yymsp[-2].minor.yy674; } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 254: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + case 255: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ { ((SStreamOptions*)yymsp[-2].minor.yy674)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy674 = yymsp[-2].minor.yy674; } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 255: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + case 256: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-3].minor.yy674)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy674)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy674); yylhsminor.yy674 = yymsp[-3].minor.yy674; } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 256: /* stream_options ::= stream_options WATERMARK duration_literal */ + case 257: /* stream_options ::= stream_options WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy674)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy674); yylhsminor.yy674 = yymsp[-2].minor.yy674; } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 257: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 258: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 258: /* cmd ::= KILL QUERY NK_STRING */ + case 259: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 259: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 260: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; - case 260: /* cmd ::= BALANCE VGROUP */ + case 261: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; - case 261: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 262: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 262: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + case 263: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy530); } break; - case 263: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 264: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 264: /* dnode_list ::= DNODE NK_INTEGER */ + case 265: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy530 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; - case 266: /* cmd ::= SYNCDB db_name REPLICA */ + case 267: /* cmd ::= SYNCDB db_name REPLICA */ { pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy421); } break; - case 267: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ + case 268: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 269: /* literal ::= NK_INTEGER */ + case 270: /* literal ::= NK_INTEGER */ { yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 270: /* literal ::= NK_FLOAT */ + case 271: /* literal ::= NK_FLOAT */ { yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 271: /* literal ::= NK_STRING */ + case 272: /* literal ::= NK_STRING */ { yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 272: /* literal ::= NK_BOOL */ + case 273: /* literal ::= NK_BOOL */ { yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 273: /* literal ::= TIMESTAMP NK_STRING */ + case 274: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 274: /* literal ::= duration_literal */ - case 284: /* signed_literal ::= signed */ yytestcase(yyruleno==284); - case 304: /* expression ::= literal */ yytestcase(yyruleno==304); - case 305: /* expression ::= pseudo_column */ yytestcase(yyruleno==305); - case 306: /* expression ::= column_reference */ yytestcase(yyruleno==306); - case 307: /* expression ::= function_expression */ yytestcase(yyruleno==307); - case 308: /* expression ::= subquery */ yytestcase(yyruleno==308); - case 333: /* function_expression ::= literal_func */ yytestcase(yyruleno==333); - case 369: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==369); - case 373: /* boolean_primary ::= predicate */ yytestcase(yyruleno==373); - case 375: /* common_expression ::= expression */ yytestcase(yyruleno==375); - case 376: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==376); - case 378: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==378); - case 380: /* table_reference ::= table_primary */ yytestcase(yyruleno==380); - case 381: /* table_reference ::= joined_table */ yytestcase(yyruleno==381); - case 385: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==385); - case 432: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==432); - case 435: /* query_primary ::= query_specification */ yytestcase(yyruleno==435); + case 275: /* literal ::= duration_literal */ + case 285: /* signed_literal ::= signed */ yytestcase(yyruleno==285); + case 305: /* expression ::= literal */ yytestcase(yyruleno==305); + case 306: /* expression ::= pseudo_column */ yytestcase(yyruleno==306); + case 307: /* expression ::= column_reference */ yytestcase(yyruleno==307); + case 308: /* expression ::= function_expression */ yytestcase(yyruleno==308); + case 309: /* expression ::= subquery */ yytestcase(yyruleno==309); + case 334: /* function_expression ::= literal_func */ yytestcase(yyruleno==334); + case 370: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==370); + case 374: /* boolean_primary ::= predicate */ yytestcase(yyruleno==374); + case 376: /* common_expression ::= expression */ yytestcase(yyruleno==376); + case 377: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==377); + case 379: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==379); + case 381: /* table_reference ::= table_primary */ yytestcase(yyruleno==381); + case 382: /* table_reference ::= joined_table */ yytestcase(yyruleno==382); + case 386: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==386); + case 433: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==433); + case 436: /* query_primary ::= query_specification */ yytestcase(yyruleno==436); { yylhsminor.yy674 = yymsp[0].minor.yy674; } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 275: /* literal ::= NULL */ + case 276: /* literal ::= NULL */ { yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 276: /* literal ::= NK_QUESTION */ + case 277: /* literal ::= NK_QUESTION */ { yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 277: /* duration_literal ::= NK_VARIABLE */ + case 278: /* duration_literal ::= NK_VARIABLE */ { yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 278: /* signed ::= NK_INTEGER */ + case 279: /* signed ::= NK_INTEGER */ { yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 279: /* signed ::= NK_PLUS NK_INTEGER */ + case 280: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; - case 280: /* signed ::= NK_MINUS NK_INTEGER */ + case 281: /* 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; @@ -4041,14 +4016,14 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 281: /* signed ::= NK_FLOAT */ + case 282: /* signed ::= NK_FLOAT */ { yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 282: /* signed ::= NK_PLUS NK_FLOAT */ + case 283: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 283: /* signed ::= NK_MINUS NK_FLOAT */ + case 284: /* 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; @@ -4056,49 +4031,49 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 285: /* signed_literal ::= NK_STRING */ + case 286: /* signed_literal ::= NK_STRING */ { yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 286: /* signed_literal ::= NK_BOOL */ + case 287: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 287: /* signed_literal ::= TIMESTAMP NK_STRING */ + case 288: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 288: /* signed_literal ::= duration_literal */ - case 290: /* signed_literal ::= literal_func */ yytestcase(yyruleno==290); - case 347: /* star_func_para ::= expression */ yytestcase(yyruleno==347); - case 402: /* select_item ::= common_expression */ yytestcase(yyruleno==402); - case 448: /* search_condition ::= common_expression */ yytestcase(yyruleno==448); + case 289: /* signed_literal ::= duration_literal */ + case 291: /* signed_literal ::= literal_func */ yytestcase(yyruleno==291); + case 348: /* star_func_para ::= expression */ yytestcase(yyruleno==348); + case 403: /* select_item ::= common_expression */ yytestcase(yyruleno==403); + case 449: /* search_condition ::= common_expression */ yytestcase(yyruleno==449); { yylhsminor.yy674 = releaseRawExprNode(pCxt, yymsp[0].minor.yy674); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 289: /* signed_literal ::= NULL */ + case 290: /* signed_literal ::= NULL */ { yylhsminor.yy674 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 309: /* expression ::= NK_LP expression NK_RP */ - case 374: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==374); + case 310: /* expression ::= NK_LP expression NK_RP */ + case 375: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==375); { yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy674)); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 310: /* expression ::= NK_PLUS expression */ + case 311: /* expression ::= NK_PLUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy674)); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 311: /* expression ::= NK_MINUS expression */ + case 312: /* expression ::= NK_MINUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy674), NULL)); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 312: /* expression ::= expression NK_PLUS expression */ + case 313: /* expression ::= expression NK_PLUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4106,7 +4081,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 313: /* expression ::= expression NK_MINUS expression */ + case 314: /* expression ::= expression NK_MINUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4114,7 +4089,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 314: /* expression ::= expression NK_STAR expression */ + case 315: /* expression ::= expression NK_STAR expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4122,7 +4097,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 315: /* expression ::= expression NK_SLASH expression */ + case 316: /* expression ::= expression NK_SLASH expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4130,7 +4105,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 316: /* expression ::= expression NK_REM expression */ + case 317: /* expression ::= expression NK_REM expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4138,60 +4113,60 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 317: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 318: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 320: /* column_reference ::= column_name */ + case 321: /* column_reference ::= column_name */ { yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy421, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy421)); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 321: /* column_reference ::= table_name NK_DOT column_name */ + case 322: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421, createColumnNode(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy421)); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 322: /* pseudo_column ::= ROWTS */ - case 323: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==323); - case 325: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==325); - case 326: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==326); - case 327: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==327); - case 328: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==328); - case 329: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==329); - case 335: /* literal_func ::= NOW */ yytestcase(yyruleno==335); + case 323: /* pseudo_column ::= ROWTS */ + case 324: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==324); + case 326: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==326); + case 327: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==327); + case 328: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==328); + case 329: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==329); + case 330: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==330); + case 336: /* literal_func ::= NOW */ yytestcase(yyruleno==336); { yylhsminor.yy674 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy674 = yylhsminor.yy674; break; - case 324: /* pseudo_column ::= table_name NK_DOT TBNAME */ + case 325: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy421)))); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 330: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 331: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==331); + case 331: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 332: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==332); { yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy421, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy421, yymsp[-1].minor.yy530)); } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 332: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + case 333: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ { yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), yymsp[-1].minor.yy690)); } yymsp[-5].minor.yy674 = yylhsminor.yy674; break; - case 334: /* literal_func ::= noarg_func NK_LP NK_RP */ + case 335: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy421, NULL)); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 343: /* star_func_para_list ::= NK_STAR */ + case 344: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy530 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 348: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 405: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==405); + case 349: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 406: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==406); { yylhsminor.yy674 = createColumnNode(pCxt, &yymsp[-2].minor.yy421, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 349: /* predicate ::= expression compare_op expression */ - case 354: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==354); + case 350: /* predicate ::= expression compare_op expression */ + case 355: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==355); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4199,7 +4174,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 350: /* predicate ::= expression BETWEEN expression AND expression */ + case 351: /* predicate ::= expression BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4207,7 +4182,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-4].minor.yy674 = yylhsminor.yy674; break; - case 351: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 352: /* predicate ::= expression NOT BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4215,71 +4190,71 @@ static YYACTIONTYPE yy_reduce( } yymsp[-5].minor.yy674 = yylhsminor.yy674; break; - case 352: /* predicate ::= expression IS NULL */ + case 353: /* predicate ::= expression IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), NULL)); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 353: /* predicate ::= expression IS NOT NULL */ + case 354: /* predicate ::= expression IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy674); yylhsminor.yy674 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), NULL)); } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 355: /* compare_op ::= NK_LT */ + case 356: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy28 = OP_TYPE_LOWER_THAN; } break; - case 356: /* compare_op ::= NK_GT */ + case 357: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy28 = OP_TYPE_GREATER_THAN; } break; - case 357: /* compare_op ::= NK_LE */ + case 358: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy28 = OP_TYPE_LOWER_EQUAL; } break; - case 358: /* compare_op ::= NK_GE */ + case 359: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy28 = OP_TYPE_GREATER_EQUAL; } break; - case 359: /* compare_op ::= NK_NE */ + case 360: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy28 = OP_TYPE_NOT_EQUAL; } break; - case 360: /* compare_op ::= NK_EQ */ + case 361: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy28 = OP_TYPE_EQUAL; } break; - case 361: /* compare_op ::= LIKE */ + case 362: /* compare_op ::= LIKE */ { yymsp[0].minor.yy28 = OP_TYPE_LIKE; } break; - case 362: /* compare_op ::= NOT LIKE */ + case 363: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy28 = OP_TYPE_NOT_LIKE; } break; - case 363: /* compare_op ::= MATCH */ + case 364: /* compare_op ::= MATCH */ { yymsp[0].minor.yy28 = OP_TYPE_MATCH; } break; - case 364: /* compare_op ::= NMATCH */ + case 365: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy28 = OP_TYPE_NMATCH; } break; - case 365: /* compare_op ::= CONTAINS */ + case 366: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy28 = OP_TYPE_JSON_CONTAINS; } break; - case 366: /* in_op ::= IN */ + case 367: /* in_op ::= IN */ { yymsp[0].minor.yy28 = OP_TYPE_IN; } break; - case 367: /* in_op ::= NOT IN */ + case 368: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy28 = OP_TYPE_NOT_IN; } break; - case 368: /* in_predicate_value ::= NK_LP expression_list NK_RP */ + case 369: /* in_predicate_value ::= NK_LP expression_list NK_RP */ { yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy530)); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 370: /* boolean_value_expression ::= NOT boolean_primary */ + case 371: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy674), NULL)); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 371: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 372: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4287,7 +4262,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 372: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 373: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy674); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy674); @@ -4295,47 +4270,47 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 379: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ + case 380: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy674 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy674, yymsp[0].minor.yy674, NULL); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 382: /* table_primary ::= table_name alias_opt */ + case 383: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy674 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy421, &yymsp[0].minor.yy421); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 383: /* table_primary ::= db_name NK_DOT table_name alias_opt */ + case 384: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy674 = createRealTableNode(pCxt, &yymsp[-3].minor.yy421, &yymsp[-1].minor.yy421, &yymsp[0].minor.yy421); } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 384: /* table_primary ::= subquery alias_opt */ + case 385: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy674 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy674), &yymsp[0].minor.yy421); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 386: /* alias_opt ::= */ + case 387: /* alias_opt ::= */ { yymsp[1].minor.yy421 = nil_token; } break; - case 387: /* alias_opt ::= table_alias */ + case 388: /* alias_opt ::= table_alias */ { yylhsminor.yy421 = yymsp[0].minor.yy421; } yymsp[0].minor.yy421 = yylhsminor.yy421; break; - case 388: /* alias_opt ::= AS table_alias */ + case 389: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy421 = yymsp[0].minor.yy421; } break; - case 389: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 390: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==390); + case 390: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 391: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==391); { yymsp[-2].minor.yy674 = yymsp[-1].minor.yy674; } break; - case 391: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + case 392: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy674 = createJoinTableNode(pCxt, yymsp[-4].minor.yy636, yymsp[-5].minor.yy674, yymsp[-2].minor.yy674, yymsp[0].minor.yy674); } yymsp[-5].minor.yy674 = yylhsminor.yy674; break; - case 392: /* join_type ::= */ + case 393: /* join_type ::= */ { yymsp[1].minor.yy636 = JOIN_TYPE_INNER; } break; - case 393: /* join_type ::= INNER */ + case 394: /* join_type ::= INNER */ { yymsp[0].minor.yy636 = JOIN_TYPE_INNER; } break; - case 394: /* 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 395: /* 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.yy674 = createSelectStmt(pCxt, yymsp[-7].minor.yy621, yymsp[-6].minor.yy530, yymsp[-5].minor.yy674); yymsp[-8].minor.yy674 = addWhereClause(pCxt, yymsp[-8].minor.yy674, yymsp[-4].minor.yy674); @@ -4345,70 +4320,70 @@ static YYACTIONTYPE yy_reduce( yymsp[-8].minor.yy674 = addHavingClause(pCxt, yymsp[-8].minor.yy674, yymsp[0].minor.yy674); } break; - case 397: /* set_quantifier_opt ::= ALL */ + case 398: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy621 = false; } break; - case 398: /* select_list ::= NK_STAR */ + case 399: /* select_list ::= NK_STAR */ { yymsp[0].minor.yy530 = NULL; } break; - case 403: /* select_item ::= common_expression column_alias */ + case 404: /* select_item ::= common_expression column_alias */ { yylhsminor.yy674 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy674), &yymsp[0].minor.yy421); } yymsp[-1].minor.yy674 = yylhsminor.yy674; break; - case 404: /* select_item ::= common_expression AS column_alias */ + case 405: /* select_item ::= common_expression AS column_alias */ { yylhsminor.yy674 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), &yymsp[0].minor.yy421); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 409: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 426: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==426); - case 438: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==438); + case 410: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 427: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==427); + case 439: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==439); { yymsp[-2].minor.yy530 = yymsp[0].minor.yy530; } break; - case 411: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + case 412: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy674 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), releaseRawExprNode(pCxt, yymsp[-1].minor.yy674)); } break; - case 412: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + case 413: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ { yymsp[-3].minor.yy674 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy674)); } break; - case 413: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + case 414: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy674 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), NULL, yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 414: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + case 415: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy674 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy674), releaseRawExprNode(pCxt, yymsp[-3].minor.yy674), yymsp[-1].minor.yy674, yymsp[0].minor.yy674); } break; - case 416: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + case 417: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ { yymsp[-3].minor.yy674 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy674); } break; - case 418: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ + case 419: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy674 = createFillNode(pCxt, yymsp[-1].minor.yy320, NULL); } break; - case 419: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + case 420: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ { yymsp[-5].minor.yy674 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy530)); } break; - case 420: /* fill_mode ::= NONE */ + case 421: /* fill_mode ::= NONE */ { yymsp[0].minor.yy320 = FILL_MODE_NONE; } break; - case 421: /* fill_mode ::= PREV */ + case 422: /* fill_mode ::= PREV */ { yymsp[0].minor.yy320 = FILL_MODE_PREV; } break; - case 422: /* fill_mode ::= NULL */ + case 423: /* fill_mode ::= NULL */ { yymsp[0].minor.yy320 = FILL_MODE_NULL; } break; - case 423: /* fill_mode ::= LINEAR */ + case 424: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy320 = FILL_MODE_LINEAR; } break; - case 424: /* fill_mode ::= NEXT */ + case 425: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy320 = FILL_MODE_NEXT; } break; - case 427: /* group_by_list ::= expression */ + case 428: /* group_by_list ::= expression */ { yylhsminor.yy530 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } yymsp[0].minor.yy530 = yylhsminor.yy530; break; - case 428: /* group_by_list ::= group_by_list NK_COMMA expression */ + case 429: /* group_by_list ::= group_by_list NK_COMMA expression */ { yylhsminor.yy530 = addNodeToList(pCxt, yymsp[-2].minor.yy530, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy674))); } yymsp[-2].minor.yy530 = yylhsminor.yy530; break; - case 431: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 432: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy674 = addOrderByClause(pCxt, yymsp[-3].minor.yy674, yymsp[-2].minor.yy530); yylhsminor.yy674 = addSlimitClause(pCxt, yylhsminor.yy674, yymsp[-1].minor.yy674); @@ -4416,56 +4391,56 @@ static YYACTIONTYPE yy_reduce( } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 433: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + case 434: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ { yylhsminor.yy674 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy674, yymsp[0].minor.yy674); } yymsp[-3].minor.yy674 = yylhsminor.yy674; break; - case 434: /* query_expression_body ::= query_expression_body UNION query_expression_body */ + case 435: /* query_expression_body ::= query_expression_body UNION query_expression_body */ { yylhsminor.yy674 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy674, yymsp[0].minor.yy674); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 436: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + case 437: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ { yymsp[-5].minor.yy674 = yymsp[-4].minor.yy674; } yy_destructor(yypParser,351,&yymsp[-3].minor); yy_destructor(yypParser,352,&yymsp[-2].minor); yy_destructor(yypParser,353,&yymsp[-1].minor); break; - case 440: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 444: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==444); + case 441: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 445: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==445); { yymsp[-1].minor.yy674 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 441: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 445: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==445); + case 442: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 446: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==446); { yymsp[-3].minor.yy674 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 442: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 446: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==446); + case 443: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 447: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==447); { yymsp[-3].minor.yy674 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 447: /* subquery ::= NK_LP query_expression NK_RP */ + case 448: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy674 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy674); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 451: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + case 452: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ { yylhsminor.yy674 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy674), yymsp[-1].minor.yy610, yymsp[0].minor.yy107); } yymsp[-2].minor.yy674 = yylhsminor.yy674; break; - case 452: /* ordering_specification_opt ::= */ + case 453: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy610 = ORDER_ASC; } break; - case 453: /* ordering_specification_opt ::= ASC */ + case 454: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy610 = ORDER_ASC; } break; - case 454: /* ordering_specification_opt ::= DESC */ + case 455: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy610 = ORDER_DESC; } break; - case 455: /* null_ordering_opt ::= */ + case 456: /* null_ordering_opt ::= */ { yymsp[1].minor.yy107 = NULL_ORDER_DEFAULT; } break; - case 456: /* null_ordering_opt ::= NULLS FIRST */ + case 457: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy107 = NULL_ORDER_FIRST; } break; - case 457: /* null_ordering_opt ::= NULLS LAST */ + case 458: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy107 = NULL_ORDER_LAST; } break; default: diff --git a/source/libs/parser/test/parInitialCTest.cpp b/source/libs/parser/test/parInitialCTest.cpp index f0e556ac8b..1ab251fa48 100644 --- a/source/libs/parser/test/parInitialCTest.cpp +++ b/source/libs/parser/test/parInitialCTest.cpp @@ -14,7 +14,6 @@ */ #include "parTestUtil.h" -#include "ttime.h" using namespace std; @@ -242,9 +241,47 @@ TEST_F(ParserInitialCTest, createDatabaseSemanticCheck) { TEST_F(ParserInitialCTest, createDnode) { useDb("root", "test"); - run("CREATE DNODE 'abc1' PORT 7000"); + SCreateDnodeReq expect = {0}; - run("CREATE DNODE '1.1.1.1' PORT 9000"); + auto clearCreateDnodeReq = [&]() { memset(&expect, 0, sizeof(SCreateDnodeReq)); }; + + auto setCreateDnodeReqFunc = [&](const char* pFqdn, int32_t port = tsServerPort) { + strcpy(expect.fqdn, pFqdn); + expect.port = port; + }; + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_CREATE_DNODE_STMT); + SCreateDnodeReq req = {0}; + ASSERT_TRUE(TSDB_CODE_SUCCESS == tDeserializeSCreateDnodeReq(pQuery->pCmdMsg->pMsg, pQuery->pCmdMsg->msgLen, &req)); + + ASSERT_EQ(std::string(req.fqdn), std::string(expect.fqdn)); + ASSERT_EQ(req.port, expect.port); + }); + + setCreateDnodeReqFunc("abc1", 7030); + run("CREATE DNODE 'abc1' PORT 7030"); + clearCreateDnodeReq(); + + setCreateDnodeReqFunc("1.1.1.1", 8030); + run("CREATE DNODE 1.1.1.1 PORT 8030"); + clearCreateDnodeReq(); + + setCreateDnodeReqFunc("host1", 9030); + run("CREATE DNODE host1 PORT 9030"); + clearCreateDnodeReq(); + + setCreateDnodeReqFunc("abc2", 7040); + run("CREATE DNODE 'abc2:7040'"); + clearCreateDnodeReq(); + + setCreateDnodeReqFunc("1.1.1.2"); + run("CREATE DNODE 1.1.1.2"); + clearCreateDnodeReq(); + + setCreateDnodeReqFunc("host2"); + run("CREATE DNODE host2"); + clearCreateDnodeReq(); } // CREATE [AGGREGATE] FUNCTION [IF NOT EXISTS] func_name AS library_path OUTPUTTYPE type_name [BUFSIZE value] diff --git a/source/libs/parser/test/parInitialDTest.cpp b/source/libs/parser/test/parInitialDTest.cpp index 8562926789..4ecbb7b6d8 100644 --- a/source/libs/parser/test/parInitialDTest.cpp +++ b/source/libs/parser/test/parInitialDTest.cpp @@ -64,8 +64,9 @@ TEST_F(ParserInitialDTest, dropConsumerGroup) { SMDropCgroupReq expect = {0}; - auto setDropCgroupReqFunc = [&](const char* pTopicName, const char* pCGroupName, int8_t igNotExists = 0) { - memset(&expect, 0, sizeof(SMDropCgroupReq)); + auto clearDropCgroupReq = [&]() { memset(&expect, 0, sizeof(SMDropCgroupReq)); }; + + auto setDropCgroupReq = [&](const char* pTopicName, const char* pCGroupName, int8_t igNotExists = 0) { snprintf(expect.topic, sizeof(expect.topic), "0.%s", pTopicName); strcpy(expect.cgroup, pCGroupName); expect.igNotExists = igNotExists; @@ -81,15 +82,51 @@ TEST_F(ParserInitialDTest, dropConsumerGroup) { ASSERT_EQ(req.igNotExists, expect.igNotExists); }); - setDropCgroupReqFunc("tp1", "cg1"); + setDropCgroupReq("tp1", "cg1"); run("DROP CONSUMER GROUP cg1 ON tp1"); + clearDropCgroupReq(); - setDropCgroupReqFunc("tp1", "cg1", 1); + setDropCgroupReq("tp1", "cg1", 1); run("DROP CONSUMER GROUP IF EXISTS cg1 ON tp1"); + clearDropCgroupReq(); } // todo DROP database + // todo DROP dnode +TEST_F(ParserInitialDTest, dropDnode) { + useDb("root", "test"); + + SDropDnodeReq expect = {0}; + + auto clearDropDnodeReq = [&]() { memset(&expect, 0, sizeof(SDropDnodeReq)); }; + + auto setDropDnodeReqById = [&](int32_t dnodeId) { expect.dnodeId = dnodeId; }; + + auto setDropDnodeReqByEndpoint = [&](const char* pFqdn, int32_t port) { + strcpy(expect.fqdn, pFqdn); + expect.port = port; + }; + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_DROP_DNODE_STMT); + SDropDnodeReq req = {0}; + ASSERT_TRUE(TSDB_CODE_SUCCESS == tDeserializeSDropDnodeReq(pQuery->pCmdMsg->pMsg, pQuery->pCmdMsg->msgLen, &req)); + + ASSERT_EQ(req.dnodeId, expect.dnodeId); + ASSERT_EQ(std::string(req.fqdn), std::string(expect.fqdn)); + ASSERT_EQ(req.port, expect.port); + }); + + setDropDnodeReqById(1); + run("DROP DNODE 1"); + clearDropDnodeReq(); + + setDropDnodeReqByEndpoint("host1", 7030); + run("DROP DNODE 'host1:7030'"); + clearDropDnodeReq(); +} + // todo DROP function TEST_F(ParserInitialDTest, dropIndex) { diff --git a/source/libs/parser/test/parTestUtil.h b/source/libs/parser/test/parTestUtil.h index 3839d16624..16c3d05b38 100644 --- a/source/libs/parser/test/parTestUtil.h +++ b/source/libs/parser/test/parTestUtil.h @@ -23,6 +23,8 @@ #include "cmdnodes.h" #include "querynodes.h" #include "taoserror.h" +#include "tglobal.h" +#include "ttime.h" namespace ParserTest { From 88f9a4b144980aa9b79f25316e73a0338a4a9eed Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Sat, 18 Jun 2022 15:40:17 +0800 Subject: [PATCH 5/5] feat: the sql command 'create dnode' is compatible with the 2.x version syntax --- source/libs/parser/src/parAstCreater.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 92105e50a2..6ea1b090ad 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -124,7 +124,7 @@ static int32_t parseEndpoint(SAstCreateContext* pCxt, const SToken* pEp, char* p return generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_NAME_OR_PASSWD_TOO_LONG); } - char ep[TSDB_FQDN_LEN + 1 + 5]; + char ep[TSDB_FQDN_LEN + 1 + 5] = {0}; COPY_STRING_FORM_ID_TOKEN(ep, pEp); strdequote(ep); strtrim(ep);