From 01fa777cb36a955bfb447fecca9b63cb3cbfab7a Mon Sep 17 00:00:00 2001 From: Alex Duan <417921451@qq.com> Date: Tue, 29 Nov 2022 15:40:39 +0800 Subject: [PATCH] feat(mnode): support show cluster status and show db.status commands --- src/client/src/tscSQLParser.c | 3 +- src/inc/taosmsg.h | 2 + src/inc/ttokendef.h | 267 +- src/mnode/src/mnodeShow.c | 2 + src/mnode/src/mnodeVgroup.c | 173 ++ src/query/inc/sql.y | 13 + src/query/src/sql.c | 4330 +++++++++++++++------------------ 7 files changed, 2312 insertions(+), 2478 deletions(-) diff --git a/src/client/src/tscSQLParser.c b/src/client/src/tscSQLParser.c index da40a6c156..66db680b44 100644 --- a/src/client/src/tscSQLParser.c +++ b/src/client/src/tscSQLParser.c @@ -4098,7 +4098,8 @@ int32_t setShowInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) { */ SShowInfo* pShowInfo = &pInfo->pMiscInfo->showOpt; int16_t showType = pShowInfo->showType; - if (showType == TSDB_MGMT_TABLE_TABLE || showType == TSDB_MGMT_TABLE_METRIC || showType == TSDB_MGMT_TABLE_VGROUP) { + if (showType == TSDB_MGMT_TABLE_TABLE || showType == TSDB_MGMT_TABLE_METRIC || showType == TSDB_MGMT_TABLE_VGROUP || + showType == TSDB_MGMT_STATUS_DB) { // db prefix in tagCond, show table conds in payload SStrToken* pDbPrefixToken = &pShowInfo->prefix; if (pDbPrefixToken->type != 0) { diff --git a/src/inc/taosmsg.h b/src/inc/taosmsg.h index f2aed524de..0ba9b95234 100644 --- a/src/inc/taosmsg.h +++ b/src/inc/taosmsg.h @@ -163,6 +163,8 @@ enum _mgmt_table { TSDB_MGMT_TABLE_CLUSTER, TSDB_MGMT_TABLE_TP, TSDB_MGMT_TABLE_FUNCTION, + TSDB_MGMT_STATUS_DB, // show database status + TSDB_MGMT_STATUS_CLUSTER, // show cluster status TSDB_MGMT_TABLE_MAX, }; diff --git a/src/inc/ttokendef.h b/src/inc/ttokendef.h index cba93ba583..f7b54bf88a 100644 --- a/src/inc/ttokendef.h +++ b/src/inc/ttokendef.h @@ -88,139 +88,140 @@ #define TK_TABLES 70 #define TK_STABLES 71 #define TK_VGROUPS 72 -#define TK_DROP 73 -#define TK_TOPIC 74 -#define TK_FUNCTION 75 -#define TK_DNODE 76 -#define TK_USER 77 -#define TK_ACCOUNT 78 -#define TK_USE 79 -#define TK_DESCRIBE 80 -#define TK_DESC 81 -#define TK_ALTER 82 -#define TK_PASS 83 -#define TK_PRIVILEGE 84 -#define TK_TAGS 85 -#define TK_LOCAL 86 -#define TK_COMPACT 87 -#define TK_LP 88 -#define TK_RP 89 -#define TK_IF 90 -#define TK_EXISTS 91 -#define TK_AS 92 -#define TK_OUTPUTTYPE 93 -#define TK_AGGREGATE 94 -#define TK_BUFSIZE 95 -#define TK_PPS 96 -#define TK_TSERIES 97 -#define TK_DBS 98 -#define TK_STORAGE 99 -#define TK_QTIME 100 -#define TK_CONNS 101 -#define TK_STATE 102 -#define TK_COMMA 103 -#define TK_KEEP 104 -#define TK_CACHE 105 -#define TK_REPLICA 106 -#define TK_QUORUM 107 -#define TK_DAYS 108 -#define TK_MINROWS 109 -#define TK_MAXROWS 110 -#define TK_BLOCKS 111 -#define TK_CTIME 112 -#define TK_WAL 113 -#define TK_FSYNC 114 -#define TK_COMP 115 -#define TK_PRECISION 116 -#define TK_UPDATE 117 -#define TK_CACHELAST 118 -#define TK_PARTITIONS 119 -#define TK_UNSIGNED 120 -#define TK_USING 121 -#define TK_TO 122 -#define TK_SPLIT 123 -#define TK_NULL 124 -#define TK_NOW 125 -#define TK_VARIABLE 126 -#define TK_SELECT 127 -#define TK_UNION 128 -#define TK_ALL 129 -#define TK_DISTINCT 130 -#define TK_FROM 131 -#define TK_RANGE 132 -#define TK_INTERVAL 133 -#define TK_EVERY 134 -#define TK_SESSION 135 -#define TK_STATE_WINDOW 136 -#define TK_FILL 137 -#define TK_SLIDING 138 -#define TK_ORDER 139 -#define TK_BY 140 -#define TK_ASC 141 -#define TK_GROUP 142 -#define TK_HAVING 143 -#define TK_LIMIT 144 -#define TK_OFFSET 145 -#define TK_SLIMIT 146 -#define TK_SOFFSET 147 -#define TK_WHERE 148 -#define TK_TODAY 149 -#define TK_RESET 150 -#define TK_QUERY 151 -#define TK_SYNCDB 152 -#define TK_ADD 153 -#define TK_COLUMN 154 -#define TK_MODIFY 155 -#define TK_TAG 156 -#define TK_CHANGE 157 -#define TK_SET 158 -#define TK_KILL 159 -#define TK_CONNECTION 160 -#define TK_STREAM 161 -#define TK_COLON 162 -#define TK_DELETE 163 -#define TK_ABORT 164 -#define TK_AFTER 165 -#define TK_ATTACH 166 -#define TK_BEFORE 167 -#define TK_BEGIN 168 -#define TK_CASCADE 169 -#define TK_CLUSTER 170 -#define TK_CONFLICT 171 -#define TK_COPY 172 -#define TK_DEFERRED 173 -#define TK_DELIMITERS 174 -#define TK_DETACH 175 -#define TK_EACH 176 -#define TK_END 177 -#define TK_EXPLAIN 178 -#define TK_FAIL 179 -#define TK_FOR 180 -#define TK_IGNORE 181 -#define TK_IMMEDIATE 182 -#define TK_INITIALLY 183 -#define TK_INSTEAD 184 -#define TK_KEY 185 -#define TK_OF 186 -#define TK_RAISE 187 -#define TK_REPLACE 188 -#define TK_RESTRICT 189 -#define TK_ROW 190 -#define TK_STATEMENT 191 -#define TK_TRIGGER 192 -#define TK_VIEW 193 -#define TK_IPTOKEN 194 -#define TK_SEMI 195 -#define TK_NONE 196 -#define TK_PREV 197 -#define TK_LINEAR 198 -#define TK_IMPORT 199 -#define TK_TBNAME 200 -#define TK_JOIN 201 -#define TK_INSERT 202 -#define TK_INTO 203 -#define TK_VALUES 204 -#define TK_FILE 205 +#define TK_STATUS 73 +#define TK_CLUSTER 74 +#define TK_DROP 75 +#define TK_TOPIC 76 +#define TK_FUNCTION 77 +#define TK_DNODE 78 +#define TK_USER 79 +#define TK_ACCOUNT 80 +#define TK_USE 81 +#define TK_DESCRIBE 82 +#define TK_DESC 83 +#define TK_ALTER 84 +#define TK_PASS 85 +#define TK_PRIVILEGE 86 +#define TK_TAGS 87 +#define TK_LOCAL 88 +#define TK_COMPACT 89 +#define TK_LP 90 +#define TK_RP 91 +#define TK_IF 92 +#define TK_EXISTS 93 +#define TK_AS 94 +#define TK_OUTPUTTYPE 95 +#define TK_AGGREGATE 96 +#define TK_BUFSIZE 97 +#define TK_PPS 98 +#define TK_TSERIES 99 +#define TK_DBS 100 +#define TK_STORAGE 101 +#define TK_QTIME 102 +#define TK_CONNS 103 +#define TK_STATE 104 +#define TK_COMMA 105 +#define TK_KEEP 106 +#define TK_CACHE 107 +#define TK_REPLICA 108 +#define TK_QUORUM 109 +#define TK_DAYS 110 +#define TK_MINROWS 111 +#define TK_MAXROWS 112 +#define TK_BLOCKS 113 +#define TK_CTIME 114 +#define TK_WAL 115 +#define TK_FSYNC 116 +#define TK_COMP 117 +#define TK_PRECISION 118 +#define TK_UPDATE 119 +#define TK_CACHELAST 120 +#define TK_PARTITIONS 121 +#define TK_UNSIGNED 122 +#define TK_USING 123 +#define TK_TO 124 +#define TK_SPLIT 125 +#define TK_NULL 126 +#define TK_NOW 127 +#define TK_VARIABLE 128 +#define TK_SELECT 129 +#define TK_UNION 130 +#define TK_ALL 131 +#define TK_DISTINCT 132 +#define TK_FROM 133 +#define TK_RANGE 134 +#define TK_INTERVAL 135 +#define TK_EVERY 136 +#define TK_SESSION 137 +#define TK_STATE_WINDOW 138 +#define TK_FILL 139 +#define TK_SLIDING 140 +#define TK_ORDER 141 +#define TK_BY 142 +#define TK_ASC 143 +#define TK_GROUP 144 +#define TK_HAVING 145 +#define TK_LIMIT 146 +#define TK_OFFSET 147 +#define TK_SLIMIT 148 +#define TK_SOFFSET 149 +#define TK_WHERE 150 +#define TK_TODAY 151 +#define TK_RESET 152 +#define TK_QUERY 153 +#define TK_SYNCDB 154 +#define TK_ADD 155 +#define TK_COLUMN 156 +#define TK_MODIFY 157 +#define TK_TAG 158 +#define TK_CHANGE 159 +#define TK_SET 160 +#define TK_KILL 161 +#define TK_CONNECTION 162 +#define TK_STREAM 163 +#define TK_COLON 164 +#define TK_DELETE 165 +#define TK_ABORT 166 +#define TK_AFTER 167 +#define TK_ATTACH 168 +#define TK_BEFORE 169 +#define TK_BEGIN 170 +#define TK_CASCADE 171 +#define TK_CONFLICT 172 +#define TK_COPY 173 +#define TK_DEFERRED 174 +#define TK_DELIMITERS 175 +#define TK_DETACH 176 +#define TK_EACH 177 +#define TK_END 178 +#define TK_EXPLAIN 179 +#define TK_FAIL 180 +#define TK_FOR 181 +#define TK_IGNORE 182 +#define TK_IMMEDIATE 183 +#define TK_INITIALLY 184 +#define TK_INSTEAD 185 +#define TK_KEY 186 +#define TK_OF 187 +#define TK_RAISE 188 +#define TK_REPLACE 189 +#define TK_RESTRICT 190 +#define TK_ROW 191 +#define TK_STATEMENT 192 +#define TK_TRIGGER 193 +#define TK_VIEW 194 +#define TK_IPTOKEN 195 +#define TK_SEMI 196 +#define TK_NONE 197 +#define TK_PREV 198 +#define TK_LINEAR 199 +#define TK_IMPORT 200 +#define TK_TBNAME 201 +#define TK_JOIN 202 +#define TK_INSERT 203 +#define TK_INTO 204 +#define TK_VALUES 205 +#define TK_FILE 206 #define TK_SPACE 300 diff --git a/src/mnode/src/mnodeShow.c b/src/mnode/src/mnodeShow.c index b64f5dc5ea..05200f5596 100644 --- a/src/mnode/src/mnodeShow.c +++ b/src/mnode/src/mnodeShow.c @@ -110,6 +110,8 @@ static char *mnodeGetShowType(int32_t showType) { case TSDB_MGMT_TABLE_CLUSTER: return "show clusters"; case TSDB_MGMT_TABLE_STREAMTABLES : return "show streamtables"; case TSDB_MGMT_TABLE_TP: return "show topics"; + case TSDB_MGMT_STATUS_DB: return "show database status"; + case TSDB_MGMT_STATUS_CLUSTER: return "show cluster status"; default: return "undefined"; } } diff --git a/src/mnode/src/mnodeVgroup.c b/src/mnode/src/mnodeVgroup.c index 751a06ecb4..d574ffd4fd 100644 --- a/src/mnode/src/mnodeVgroup.c +++ b/src/mnode/src/mnodeVgroup.c @@ -235,6 +235,15 @@ int32_t mnodeInitVgroups() { mnodeAddShowMetaHandle(TSDB_MGMT_TABLE_VGROUP, mnodeGetVgroupMeta); mnodeAddShowRetrieveHandle(TSDB_MGMT_TABLE_VGROUP, mnodeRetrieveVgroups); mnodeAddShowFreeIterHandle(TSDB_MGMT_TABLE_VGROUP, mnodeCancelGetNextVgroup); + // cluster status + mnodeAddShowMetaHandle(TSDB_MGMT_STATUS_CLUSTER, mnodeGetStatusMeta); + mnodeAddShowRetrieveHandle(TSDB_MGMT_STATUS_CLUSTER, mnodeRetrieveStatus); + mnodeAddShowFreeIterHandle(TSDB_MGMT_STATUS_CLUSTER, mnodeCancelGetNextVgroup); + // db status + mnodeAddShowMetaHandle(TSDB_MGMT_STATUS_DB, mnodeGetStatusMeta); + mnodeAddShowRetrieveHandle(TSDB_MGMT_STATUS_DB, mnodeRetrieveStatus); + mnodeAddShowFreeIterHandle(TSDB_MGMT_STATUS_DB, mnodeCancelGetNextVgroup); + mnodeAddPeerRspHandle(TSDB_MSG_TYPE_MD_CREATE_VNODE_RSP, mnodeProcessCreateVnodeRsp); mnodeAddPeerRspHandle(TSDB_MSG_TYPE_MD_ALTER_VNODE_RSP, mnodeProcessAlterVnodeRsp); mnodeAddPeerRspHandle(TSDB_MSG_TYPE_MD_COMPACT_VNODE_RSP, mnodeProcessCompactVnodeRsp); @@ -779,6 +788,170 @@ static int32_t mnodeGetVgroupMeta(STableMetaMsg *pMeta, SShowObj *pShow, void *p return 0; } +static int32_t mnodeGetStatusMeta(STableMetaMsg *pMeta, SShowObj *pShow, void *pConn) { + SDbObj *pDb = mnodeGetDb(pShow->db); + if (pDb == NULL) { + return TSDB_CODE_MND_DB_NOT_SELECTED; + } + + if (pDb->status != TSDB_DB_STATUS_READY) { + mError("db:%s, status:%d, in dropping", pDb->name, pDb->status); + mnodeDecDbRef(pDb); + return TSDB_CODE_MND_DB_IN_DROPPING; + } + + int32_t cols = 0; + SSchema *pSchema = pMeta->schema; + + pShow->bytes[cols] = 4; + pSchema[cols].type = TSDB_DATA_TYPE_INT; + strcpy(pSchema[cols].name, "vgId"); + pSchema[cols].bytes = htons(pShow->bytes[cols]); + cols++; + + pShow->bytes[cols] = 4; + pSchema[cols].type = TSDB_DATA_TYPE_INT; + strcpy(pSchema[cols].name, "tables"); + pSchema[cols].bytes = htons(pShow->bytes[cols]); + cols++; + + pShow->bytes[cols] = 8 + VARSTR_HEADER_SIZE; + pSchema[cols].type = TSDB_DATA_TYPE_BINARY; + strcpy(pSchema[cols].name, "status"); + pSchema[cols].bytes = htons(pShow->bytes[cols]); + cols++; + + pShow->bytes[cols] = 4; + pSchema[cols].type = TSDB_DATA_TYPE_INT; + strcpy(pSchema[cols].name, "onlines"); + pSchema[cols].bytes = htons(pShow->bytes[cols]); + cols++; + + pShow->maxReplica = 1; + for (int32_t v = 0; v < pDb->numOfVgroups; ++v) { + SVgObj *pVgroup = pDb->vgList[v]; + if (pVgroup != NULL) { + pShow->maxReplica = pVgroup->numOfVnodes > pShow->maxReplica ? pVgroup->numOfVnodes : pShow->maxReplica; + } + } + + for (int32_t i = 0; i < pShow->maxReplica; ++i) { + pShow->bytes[cols] = 2; + pSchema[cols].type = TSDB_DATA_TYPE_SMALLINT; + snprintf(pSchema[cols].name, TSDB_COL_NAME_LEN, "v%d_dnode", i + 1); + pSchema[cols].bytes = htons(pShow->bytes[cols]); + cols++; + + pShow->bytes[cols] = 9 + VARSTR_HEADER_SIZE; + pSchema[cols].type = TSDB_DATA_TYPE_BINARY; + snprintf(pSchema[cols].name, TSDB_COL_NAME_LEN, "v%d_status", i + 1); + pSchema[cols].bytes = htons(pShow->bytes[cols]); + cols++; + } + + pShow->bytes[cols] = 4; + pSchema[cols].type = TSDB_DATA_TYPE_INT; + strcpy(pSchema[cols].name, "compacting"); + pSchema[cols].bytes = htons(pShow->bytes[cols]); + cols++; + + + pMeta->numOfColumns = htons(cols); + pShow->numOfColumns = cols; + + pShow->offset[0] = 0; + for (int32_t i = 1; i < cols; ++i) { + pShow->offset[i] = pShow->offset[i - 1] + pShow->bytes[i - 1]; + } + + pShow->numOfRows = pDb->numOfVgroups; + pShow->rowSize = pShow->offset[cols - 1] + pShow->bytes[cols - 1]; + + mnodeDecDbRef(pDb); + return 0; +} + +static int32_t mnodeRetrieveStatus(SShowObj *pShow, char *data, int32_t rows, void *pConn) { + int32_t numOfRows = 0; + SVgObj *pVgroup = NULL; + int32_t cols = 0; + char * pWrite; + + SDbObj *pDb = mnodeGetDb(pShow->db); + if (pDb == NULL) return 0; + + if (pDb->status != TSDB_DB_STATUS_READY) { + mError("db:%s, status:%d, in dropping", pDb->name, pDb->status); + mnodeDecDbRef(pDb); + return 0; + } + + while (numOfRows < rows) { + pShow->pIter = mnodeGetNextVgroup(pShow->pIter, &pVgroup); + if (pVgroup == NULL) break; + + if (pVgroup->pDb != pDb) { + mnodeDecVgroupRef(pVgroup); + continue; + } + + cols = 0; + + pWrite = data + pShow->offset[cols] * rows + pShow->bytes[cols] * numOfRows; + *(int32_t *) pWrite = pVgroup->vgId; + cols++; + + pWrite = data + pShow->offset[cols] * rows + pShow->bytes[cols] * numOfRows; + *(int32_t *) pWrite = pVgroup->numOfTables; + cols++; + + pWrite = data + pShow->offset[cols] * rows + pShow->bytes[cols] * numOfRows; + char* status = vgroupStatus[pVgroup->status]; + STR_TO_VARSTR(pWrite, status); + cols++; + + int32_t onlineVnodes = 0; + for (int32_t i = 0; i < pShow->maxReplica; ++i) { + if (pVgroup->vnodeGid[i].role == TAOS_SYNC_ROLE_SLAVE || pVgroup->vnodeGid[i].role == TAOS_SYNC_ROLE_MASTER) { + onlineVnodes++; + } + } + + pWrite = data + pShow->offset[cols] * rows + pShow->bytes[cols] * numOfRows; + *(int32_t *)pWrite = onlineVnodes; + cols++; + + for (int32_t i = 0; i < pShow->maxReplica; ++i) { + pWrite = data + pShow->offset[cols] * rows + pShow->bytes[cols] * numOfRows; + *(int16_t *) pWrite = pVgroup->vnodeGid[i].dnodeId; + cols++; + + SDnodeObj * pDnode = pVgroup->vnodeGid[i].pDnode; + const char *role = "NULL"; + if (pDnode != NULL) { + role = syncRole[pVgroup->vnodeGid[i].role]; + } + + pWrite = data + pShow->offset[cols] * rows + pShow->bytes[cols] * numOfRows; + STR_WITH_MAXSIZE_TO_VARSTR(pWrite, role, pShow->bytes[cols]); + cols++; + } + + pWrite = data + pShow->offset[cols] * rows + pShow->bytes[cols] * numOfRows; + *(int8_t *)pWrite = pVgroup->compact; + cols++; + mnodeDecVgroupRef(pVgroup); + numOfRows++; + } + + mnodeVacuumResult(data, pShow->numOfColumns, numOfRows, rows, pShow); + + pShow->numOfReads += numOfRows; + mnodeDecDbRef(pDb); + + return numOfRows; +} + static int32_t mnodeRetrieveVgroups(SShowObj *pShow, char *data, int32_t rows, void *pConn) { int32_t numOfRows = 0; SVgObj *pVgroup = NULL; diff --git a/src/query/inc/sql.y b/src/query/inc/sql.y index 46f94faf18..61a77ba51c 100644 --- a/src/query/inc/sql.y +++ b/src/query/inc/sql.y @@ -127,6 +127,19 @@ cmd ::= SHOW dbPrefix(X) VGROUPS. { setShowOptions(pInfo, TSDB_MGMT_TABLE_VGROUP, &token, 0); } +// show db.status +cmd ::= SHOW dbPrefix(X) STATUS. { + SStrToken token; + tSetDbName(&token, &X); + setShowOptions(pInfo, TSDB_MGMT_STATUS_DB, &token, 0); +} + +// show cluster status +cmd ::= SHOW CLUSTER STATUS. { + SStrToken token; + setShowOptions(pInfo, TSDB_MGMT_STATUS_CLUSTER, &token, 0); +} + //drop configure for tables cmd ::= DROP TABLE ifexists(Y) ids(X) cpxName(Z). { X.n += Z.n; diff --git a/src/query/src/sql.c b/src/query/src/sql.c index 3beae806b0..a27490413c 100644 --- a/src/query/src/sql.c +++ b/src/query/src/sql.c @@ -76,10 +76,8 @@ ** zero the stack is dynamically sized using realloc() ** ParseARG_SDECL A static variable declaration for the %extra_argument ** ParseARG_PDECL A parameter declaration for the %extra_argument -** ParseARG_PARAM Code to pass %extra_argument as a subroutine parameter ** ParseARG_STORE Code to store %extra_argument into yypParser ** ParseARG_FETCH Code to extract %extra_argument from yypParser -** ParseCTX_* As ParseARG_ except for %extra_context ** YYERRORSYMBOL is the code number of the error symbol. If not ** defined, then do no error processing. ** YYNSTATE the combined number of states. @@ -99,59 +97,51 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 292 +#define YYNOCODE 295 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SStrToken typedef union { int yyinit; ParseTOKENTYPE yy0; - tVariant yy42; - int32_t yy44; - SCreateTableSql* yy78; - SRangeVal yy132; - int yy133; - SSqlNode* yy144; - SLimitVal yy190; - tSqlExpr* yy194; - SIntervalVal yy200; - SSessionWindowVal yy235; - SWindowStateVal yy248; - TAOS_FIELD yy263; - int64_t yy277; - SCreateAcctInfo yy299; - SArray* yy333; - SCreateDbInfo yy342; - SCreatedTableInfo yy400; - SRelationInfo* yy516; + SRelationInfo* yy52; + int32_t yy88; + tVariant yy134; + int64_t yy165; + SCreatedTableInfo yy192; + SIntervalVal yy196; + SArray* yy249; + SSqlNode* yy320; + SLimitVal yy342; + tSqlExpr* yy370; + SRangeVal yy384; + SWindowStateVal yy385; + int yy424; + TAOS_FIELD yy475; + SCreateDbInfo yy478; + SCreateTableSql* yy494; + SCreateAcctInfo yy547; + SSessionWindowVal yy559; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 #endif #define ParseARG_SDECL SSqlInfo* pInfo; #define ParseARG_PDECL ,SSqlInfo* pInfo -#define ParseARG_PARAM ,pInfo -#define ParseARG_FETCH SSqlInfo* pInfo=yypParser->pInfo; -#define ParseARG_STORE yypParser->pInfo=pInfo; -#define ParseCTX_SDECL -#define ParseCTX_PDECL -#define ParseCTX_PARAM -#define ParseCTX_FETCH -#define ParseCTX_STORE +#define ParseARG_FETCH SSqlInfo* pInfo = yypParser->pInfo +#define ParseARG_STORE yypParser->pInfo = pInfo #define YYFALLBACK 1 -#define YYNSTATE 417 -#define YYNRULE 330 -#define YYNRULE_WITH_ACTION 330 -#define YYNTOKEN 206 -#define YY_MAX_SHIFT 416 -#define YY_MIN_SHIFTREDUCE 648 -#define YY_MAX_SHIFTREDUCE 977 -#define YY_ERROR_ACTION 978 -#define YY_ACCEPT_ACTION 979 -#define YY_NO_ACTION 980 -#define YY_MIN_REDUCE 981 -#define YY_MAX_REDUCE 1310 +#define YYNSTATE 418 +#define YYNRULE 332 +#define YYNTOKEN 207 +#define YY_MAX_SHIFT 417 +#define YY_MIN_SHIFTREDUCE 651 +#define YY_MAX_SHIFTREDUCE 982 +#define YY_ERROR_ACTION 983 +#define YY_ACCEPT_ACTION 984 +#define YY_NO_ACTION 985 +#define YY_MIN_REDUCE 986 +#define YY_MAX_REDUCE 1317 /************* End control #defines *******************************************/ -#define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) /* Define the yytestcase() macro to be a no-op if is not already defined ** otherwise. @@ -216,339 +206,340 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (942) +#define YY_ACTTAB_COUNT (944) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 230, 700, 1142, 175, 1219, 65, 1220, 332, 700, 701, - /* 10 */ 1283, 270, 1285, 1167, 43, 44, 701, 47, 48, 415, - /* 20 */ 261, 283, 32, 31, 30, 737, 65, 46, 365, 51, + /* 0 */ 230, 705, 293, 175, 1226, 65, 1227, 332, 705, 706, + /* 10 */ 1290, 270, 1292, 197, 43, 44, 706, 47, 48, 416, + /* 20 */ 255, 283, 32, 31, 30, 1140, 65, 46, 365, 51, /* 30 */ 49, 52, 50, 37, 36, 35, 34, 33, 42, 41, - /* 40 */ 268, 24, 40, 39, 38, 43, 44, 1143, 47, 48, - /* 50 */ 263, 1283, 283, 32, 31, 30, 314, 1140, 46, 365, + /* 40 */ 742, 24, 40, 39, 38, 43, 44, 1174, 47, 48, + /* 50 */ 263, 1290, 283, 32, 31, 30, 314, 1147, 46, 365, /* 60 */ 51, 49, 52, 50, 37, 36, 35, 34, 33, 42, - /* 70 */ 41, 273, 228, 40, 39, 38, 313, 312, 1140, 275, - /* 80 */ 43, 44, 1283, 47, 48, 1164, 1143, 283, 32, 31, - /* 90 */ 30, 361, 95, 46, 365, 51, 49, 52, 50, 37, - /* 100 */ 36, 35, 34, 33, 42, 41, 229, 1273, 40, 39, - /* 110 */ 38, 43, 44, 400, 47, 48, 1283, 1283, 283, 32, - /* 120 */ 31, 30, 1125, 64, 46, 365, 51, 49, 52, 50, - /* 130 */ 37, 36, 35, 34, 33, 42, 41, 1305, 234, 40, - /* 140 */ 39, 38, 277, 43, 45, 786, 47, 48, 1283, 1143, - /* 150 */ 283, 32, 31, 30, 65, 900, 46, 365, 51, 49, - /* 160 */ 52, 50, 37, 36, 35, 34, 33, 42, 41, 860, - /* 170 */ 861, 40, 39, 38, 44, 298, 47, 48, 390, 389, - /* 180 */ 283, 32, 31, 30, 302, 301, 46, 365, 51, 49, - /* 190 */ 52, 50, 37, 36, 35, 34, 33, 42, 41, 700, - /* 200 */ 141, 40, 39, 38, 47, 48, 1139, 701, 283, 32, - /* 210 */ 31, 30, 361, 400, 46, 365, 51, 49, 52, 50, - /* 220 */ 37, 36, 35, 34, 33, 42, 41, 115, 190, 40, - /* 230 */ 39, 38, 73, 359, 408, 407, 358, 406, 357, 405, - /* 240 */ 356, 355, 354, 404, 353, 403, 402, 322, 649, 650, - /* 250 */ 651, 652, 653, 654, 655, 656, 657, 658, 659, 660, - /* 260 */ 661, 662, 169, 1127, 262, 1100, 1088, 1089, 1090, 1091, - /* 270 */ 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1101, 1102, - /* 280 */ 25, 51, 49, 52, 50, 37, 36, 35, 34, 33, - /* 290 */ 42, 41, 235, 700, 40, 39, 38, 244, 236, 254, - /* 300 */ 916, 701, 1283, 904, 246, 907, 1297, 910, 1283, 92, - /* 310 */ 156, 155, 154, 245, 112, 979, 416, 247, 373, 101, - /* 320 */ 37, 36, 35, 34, 33, 42, 41, 1283, 315, 40, - /* 330 */ 39, 38, 336, 107, 101, 106, 258, 259, 254, 916, - /* 340 */ 367, 248, 904, 1124, 907, 29, 910, 1122, 1123, 61, - /* 350 */ 1126, 1283, 5, 68, 201, 1217, 280, 1218, 74, 200, - /* 360 */ 122, 127, 118, 126, 249, 814, 1133, 1158, 811, 1158, - /* 370 */ 812, 1230, 813, 74, 1283, 258, 259, 293, 848, 349, - /* 380 */ 57, 305, 851, 91, 29, 306, 53, 264, 197, 65, - /* 390 */ 255, 369, 286, 73, 295, 408, 407, 65, 406, 292, - /* 400 */ 405, 288, 289, 65, 404, 293, 403, 402, 139, 133, - /* 410 */ 144, 318, 319, 276, 368, 143, 198, 149, 153, 142, - /* 420 */ 226, 279, 917, 911, 913, 53, 1108, 146, 1106, 1107, - /* 430 */ 1283, 1113, 1286, 1109, 274, 284, 906, 1110, 909, 1111, - /* 440 */ 1112, 1140, 377, 221, 219, 217, 250, 912, 378, 1140, - /* 450 */ 216, 160, 159, 158, 157, 1140, 1283, 1229, 65, 13, - /* 460 */ 271, 917, 911, 913, 42, 41, 364, 65, 40, 39, - /* 470 */ 38, 65, 287, 65, 285, 65, 376, 375, 905, 294, - /* 480 */ 908, 291, 1226, 385, 384, 230, 912, 815, 290, 363, - /* 490 */ 65, 363, 114, 93, 251, 1283, 832, 1286, 266, 230, - /* 500 */ 414, 412, 676, 379, 1283, 109, 282, 108, 335, 1283, - /* 510 */ 1140, 1286, 380, 40, 39, 38, 386, 293, 387, 1140, - /* 520 */ 388, 1, 199, 1140, 1269, 1140, 1158, 1140, 366, 6, - /* 530 */ 1268, 152, 151, 150, 1283, 392, 168, 166, 165, 1267, - /* 540 */ 1283, 256, 1140, 880, 265, 257, 409, 1069, 232, 1283, - /* 550 */ 233, 1283, 237, 231, 238, 1283, 239, 914, 1283, 241, - /* 560 */ 1283, 98, 1283, 1283, 1283, 242, 1283, 243, 293, 1283, - /* 570 */ 240, 1030, 227, 829, 110, 1283, 1040, 1283, 211, 1141, - /* 580 */ 1283, 1031, 1283, 211, 836, 99, 3, 212, 211, 96, - /* 590 */ 307, 317, 316, 857, 867, 868, 82, 85, 796, 915, - /* 600 */ 309, 10, 340, 879, 66, 798, 342, 177, 77, 54, - /* 610 */ 343, 797, 66, 60, 281, 951, 66, 918, 370, 77, - /* 620 */ 113, 699, 382, 381, 309, 77, 89, 1225, 15, 9, - /* 630 */ 14, 9, 132, 272, 131, 9, 17, 193, 16, 86, - /* 640 */ 83, 821, 819, 822, 820, 19, 138, 18, 137, 21, - /* 650 */ 391, 20, 171, 303, 173, 903, 26, 174, 785, 1138, - /* 660 */ 1166, 1177, 1159, 1174, 1175, 310, 1179, 176, 181, 328, - /* 670 */ 1209, 1208, 1207, 192, 1206, 1134, 194, 1310, 410, 167, - /* 680 */ 321, 267, 323, 1132, 195, 196, 325, 1046, 345, 346, - /* 690 */ 847, 347, 348, 351, 352, 75, 224, 71, 362, 1156, - /* 700 */ 184, 182, 183, 87, 27, 1039, 374, 1304, 129, 337, - /* 710 */ 1303, 1300, 84, 185, 28, 202, 383, 333, 1296, 135, - /* 720 */ 1295, 329, 1292, 203, 331, 327, 921, 1066, 72, 67, - /* 730 */ 324, 76, 225, 186, 187, 1027, 320, 145, 1025, 147, - /* 740 */ 94, 148, 1023, 1022, 1021, 260, 350, 214, 215, 1018, - /* 750 */ 1017, 1016, 1015, 1014, 1013, 1012, 218, 220, 1004, 222, - /* 760 */ 1001, 401, 223, 997, 140, 393, 394, 170, 395, 90, - /* 770 */ 308, 1136, 97, 102, 396, 326, 397, 398, 399, 172, - /* 780 */ 976, 297, 975, 88, 278, 296, 188, 344, 300, 299, - /* 790 */ 974, 957, 252, 253, 956, 123, 1044, 124, 1043, 309, - /* 800 */ 304, 11, 339, 824, 100, 311, 58, 103, 856, 1020, - /* 810 */ 80, 1019, 854, 853, 161, 1067, 206, 204, 205, 208, - /* 820 */ 207, 209, 210, 162, 2, 1011, 338, 1104, 1010, 1068, - /* 830 */ 163, 164, 1003, 59, 189, 1002, 191, 850, 4, 849, - /* 840 */ 81, 180, 858, 178, 1115, 869, 179, 269, 863, 104, - /* 850 */ 69, 865, 105, 330, 368, 22, 334, 70, 111, 12, - /* 860 */ 23, 55, 56, 341, 114, 116, 120, 117, 715, 750, - /* 870 */ 748, 747, 62, 119, 746, 63, 744, 742, 121, 739, - /* 880 */ 704, 125, 948, 360, 946, 7, 949, 947, 920, 919, - /* 890 */ 8, 922, 371, 372, 818, 128, 78, 130, 66, 79, - /* 900 */ 134, 136, 788, 787, 784, 731, 729, 721, 727, 723, - /* 910 */ 725, 719, 717, 817, 753, 752, 751, 749, 745, 743, - /* 920 */ 741, 740, 213, 666, 702, 981, 675, 673, 980, 980, - /* 930 */ 411, 980, 980, 980, 980, 980, 980, 980, 980, 980, - /* 940 */ 980, 413, + /* 70 */ 41, 273, 276, 40, 39, 38, 313, 312, 1147, 40, + /* 80 */ 39, 38, 43, 44, 1149, 47, 48, 409, 1076, 283, + /* 90 */ 32, 31, 30, 361, 95, 46, 365, 51, 49, 52, + /* 100 */ 50, 37, 36, 35, 34, 33, 42, 41, 228, 400, + /* 110 */ 40, 39, 38, 43, 44, 1312, 47, 48, 1290, 1171, + /* 120 */ 283, 32, 31, 30, 1132, 64, 46, 365, 51, 49, + /* 130 */ 52, 50, 37, 36, 35, 34, 33, 42, 41, 190, + /* 140 */ 791, 40, 39, 38, 911, 268, 914, 43, 45, 853, + /* 150 */ 47, 48, 1150, 856, 283, 32, 31, 30, 322, 905, + /* 160 */ 46, 365, 51, 49, 52, 50, 37, 36, 35, 34, + /* 170 */ 33, 42, 41, 390, 389, 40, 39, 38, 44, 229, + /* 180 */ 47, 48, 318, 319, 283, 32, 31, 30, 82, 1290, + /* 190 */ 46, 365, 51, 49, 52, 50, 37, 36, 35, 34, + /* 200 */ 33, 42, 41, 705, 1304, 40, 39, 38, 47, 48, + /* 210 */ 275, 706, 283, 32, 31, 30, 361, 1150, 46, 365, + /* 220 */ 51, 49, 52, 50, 37, 36, 35, 34, 33, 42, + /* 230 */ 41, 101, 83, 40, 39, 38, 73, 359, 408, 407, + /* 240 */ 358, 406, 357, 405, 356, 355, 354, 404, 353, 403, + /* 250 */ 402, 315, 652, 653, 654, 655, 656, 657, 658, 659, + /* 260 */ 660, 661, 662, 663, 664, 665, 169, 919, 262, 286, + /* 270 */ 74, 266, 13, 984, 417, 25, 411, 1107, 1095, 1096, + /* 280 */ 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, + /* 290 */ 1108, 1109, 244, 1165, 254, 921, 705, 115, 909, 1237, + /* 300 */ 912, 246, 915, 298, 706, 114, 93, 156, 155, 154, + /* 310 */ 245, 264, 302, 301, 292, 373, 101, 37, 36, 35, + /* 320 */ 34, 33, 42, 41, 112, 1165, 40, 39, 38, 3, + /* 330 */ 212, 259, 260, 1134, 73, 367, 408, 407, 1165, 406, + /* 340 */ 29, 405, 1280, 306, 1224, 404, 1225, 403, 402, 287, + /* 350 */ 1236, 285, 1290, 376, 375, 74, 265, 1129, 1130, 61, + /* 360 */ 1133, 51, 49, 52, 50, 37, 36, 35, 34, 33, + /* 370 */ 42, 41, 865, 866, 40, 39, 38, 293, 305, 819, + /* 380 */ 91, 293, 816, 53, 817, 57, 818, 256, 198, 254, + /* 390 */ 921, 295, 366, 909, 294, 912, 291, 915, 385, 384, + /* 400 */ 5, 68, 201, 65, 234, 415, 413, 679, 680, 200, + /* 410 */ 122, 127, 118, 126, 1290, 288, 289, 364, 235, 922, + /* 420 */ 916, 918, 910, 280, 913, 141, 259, 260, 1290, 349, + /* 430 */ 92, 279, 284, 236, 1115, 29, 1113, 1114, 400, 1120, + /* 440 */ 363, 1116, 277, 1290, 917, 1117, 271, 1118, 1119, 1150, + /* 450 */ 139, 133, 144, 336, 107, 1146, 106, 282, 1233, 143, + /* 460 */ 247, 149, 153, 142, 1131, 65, 65, 65, 42, 41, + /* 470 */ 1290, 146, 40, 39, 38, 65, 65, 65, 53, 221, + /* 480 */ 219, 217, 6, 1232, 248, 65, 65, 226, 216, 160, + /* 490 */ 159, 158, 157, 272, 1290, 230, 230, 1290, 65, 1293, + /* 500 */ 168, 166, 165, 820, 290, 1290, 1290, 1293, 1293, 837, + /* 510 */ 274, 377, 378, 391, 922, 916, 918, 1147, 1147, 1147, + /* 520 */ 379, 380, 386, 152, 151, 150, 249, 1147, 1147, 1147, + /* 530 */ 387, 388, 250, 1037, 251, 293, 1290, 1147, 1147, 917, + /* 540 */ 211, 1276, 1290, 392, 1290, 920, 1148, 1, 199, 1275, + /* 550 */ 1147, 1290, 885, 1274, 257, 258, 98, 370, 232, 1290, + /* 560 */ 233, 237, 231, 1290, 1290, 1290, 238, 239, 1290, 834, + /* 570 */ 1290, 1290, 1290, 241, 99, 85, 1290, 1290, 242, 109, + /* 580 */ 243, 108, 240, 1290, 227, 110, 1047, 307, 1290, 1038, + /* 590 */ 1290, 862, 1290, 211, 1290, 309, 211, 10, 363, 841, + /* 600 */ 96, 66, 317, 316, 872, 177, 873, 801, 340, 803, + /* 610 */ 342, 802, 884, 309, 956, 335, 343, 86, 77, 60, + /* 620 */ 54, 66, 66, 77, 113, 77, 923, 369, 9, 281, + /* 630 */ 704, 15, 132, 14, 131, 17, 826, 16, 827, 824, + /* 640 */ 9, 825, 382, 381, 9, 19, 138, 18, 137, 89, + /* 650 */ 368, 21, 193, 20, 171, 303, 173, 174, 1145, 1173, + /* 660 */ 26, 1184, 1181, 1182, 1166, 310, 1186, 926, 176, 181, + /* 670 */ 908, 328, 1216, 192, 1215, 1214, 1213, 1317, 1141, 167, + /* 680 */ 170, 790, 194, 1139, 195, 410, 321, 196, 1053, 852, + /* 690 */ 345, 346, 347, 1163, 348, 351, 352, 75, 224, 267, + /* 700 */ 323, 71, 362, 1046, 374, 27, 325, 1311, 129, 1310, + /* 710 */ 84, 1307, 202, 383, 1303, 135, 1302, 1299, 203, 1073, + /* 720 */ 72, 67, 76, 87, 225, 337, 182, 28, 185, 183, + /* 730 */ 333, 1034, 145, 331, 1032, 147, 148, 1030, 1029, 329, + /* 740 */ 1028, 261, 214, 215, 1025, 184, 1024, 1023, 1022, 327, + /* 750 */ 1021, 324, 1020, 1019, 218, 220, 1009, 222, 1006, 223, + /* 760 */ 320, 1002, 94, 350, 401, 90, 308, 140, 1143, 97, + /* 770 */ 102, 393, 326, 394, 395, 396, 397, 398, 399, 172, + /* 780 */ 981, 88, 278, 296, 344, 297, 980, 299, 300, 979, + /* 790 */ 252, 962, 253, 961, 123, 1051, 1050, 124, 304, 309, + /* 800 */ 339, 11, 100, 829, 58, 311, 103, 80, 1027, 1026, + /* 810 */ 1018, 210, 1074, 204, 205, 206, 207, 208, 161, 209, + /* 820 */ 162, 163, 1017, 4, 1111, 186, 164, 338, 1075, 1008, + /* 830 */ 1007, 861, 859, 59, 187, 188, 189, 191, 1122, 2, + /* 840 */ 855, 854, 81, 858, 863, 178, 180, 874, 179, 269, + /* 850 */ 868, 104, 69, 870, 105, 330, 368, 334, 341, 70, + /* 860 */ 22, 23, 111, 12, 55, 114, 56, 62, 120, 116, + /* 870 */ 117, 119, 720, 63, 755, 753, 752, 751, 749, 747, + /* 880 */ 121, 744, 709, 125, 360, 7, 953, 951, 925, 954, + /* 890 */ 924, 952, 927, 8, 371, 372, 78, 128, 66, 793, + /* 900 */ 79, 130, 134, 136, 792, 789, 736, 823, 734, 726, + /* 910 */ 732, 728, 730, 724, 722, 822, 758, 757, 756, 754, + /* 920 */ 750, 748, 746, 745, 213, 707, 681, 669, 678, 676, + /* 930 */ 986, 985, 412, 985, 985, 985, 985, 985, 985, 985, + /* 940 */ 985, 985, 985, 414, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 279, 1, 261, 208, 287, 208, 289, 290, 1, 9, - /* 10 */ 289, 1, 291, 208, 14, 15, 9, 17, 18, 208, - /* 20 */ 209, 21, 22, 23, 24, 5, 208, 27, 28, 29, + /* 0 */ 281, 1, 210, 210, 289, 210, 291, 292, 1, 9, + /* 10 */ 291, 1, 293, 221, 14, 15, 9, 17, 18, 210, + /* 20 */ 211, 21, 22, 23, 24, 210, 210, 27, 28, 29, /* 30 */ 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - /* 40 */ 254, 279, 42, 43, 44, 14, 15, 261, 17, 18, - /* 50 */ 253, 289, 21, 22, 23, 24, 284, 260, 27, 28, + /* 40 */ 5, 281, 42, 43, 44, 14, 15, 210, 17, 18, + /* 50 */ 255, 291, 21, 22, 23, 24, 286, 262, 27, 28, /* 60 */ 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - /* 70 */ 39, 253, 279, 42, 43, 44, 281, 282, 260, 254, - /* 80 */ 14, 15, 289, 17, 18, 280, 261, 21, 22, 23, - /* 90 */ 24, 90, 92, 27, 28, 29, 30, 31, 32, 33, - /* 100 */ 34, 35, 36, 37, 38, 39, 279, 279, 42, 43, - /* 110 */ 44, 14, 15, 96, 17, 18, 289, 289, 21, 22, - /* 120 */ 23, 24, 0, 92, 27, 28, 29, 30, 31, 32, - /* 130 */ 33, 34, 35, 36, 37, 38, 39, 261, 279, 42, - /* 140 */ 43, 44, 254, 14, 15, 5, 17, 18, 289, 261, - /* 150 */ 21, 22, 23, 24, 208, 89, 27, 28, 29, 30, - /* 160 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 133, - /* 170 */ 134, 42, 43, 44, 15, 151, 17, 18, 38, 39, - /* 180 */ 21, 22, 23, 24, 160, 161, 27, 28, 29, 30, - /* 190 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 1, - /* 200 */ 83, 42, 43, 44, 17, 18, 260, 9, 21, 22, - /* 210 */ 23, 24, 90, 96, 27, 28, 29, 30, 31, 32, - /* 220 */ 33, 34, 35, 36, 37, 38, 39, 216, 266, 42, - /* 230 */ 43, 44, 104, 105, 106, 107, 108, 109, 110, 111, - /* 240 */ 112, 113, 114, 115, 116, 117, 118, 285, 50, 51, - /* 250 */ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - /* 260 */ 62, 63, 64, 252, 66, 232, 233, 234, 235, 236, - /* 270 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, - /* 280 */ 49, 29, 30, 31, 32, 33, 34, 35, 36, 37, - /* 290 */ 38, 39, 279, 1, 42, 43, 44, 66, 279, 1, - /* 300 */ 2, 9, 289, 5, 73, 7, 261, 9, 289, 216, - /* 310 */ 79, 80, 81, 82, 216, 206, 207, 279, 87, 88, - /* 320 */ 33, 34, 35, 36, 37, 38, 39, 289, 284, 42, - /* 330 */ 43, 44, 286, 287, 88, 289, 38, 39, 1, 2, - /* 340 */ 42, 279, 5, 250, 7, 47, 9, 249, 250, 251, - /* 350 */ 252, 289, 67, 68, 69, 287, 215, 289, 127, 74, - /* 360 */ 75, 76, 77, 78, 279, 2, 208, 258, 5, 258, - /* 370 */ 7, 248, 9, 127, 289, 38, 39, 208, 5, 94, - /* 380 */ 88, 150, 9, 152, 47, 276, 88, 276, 219, 208, - /* 390 */ 159, 25, 73, 104, 163, 106, 107, 208, 109, 73, - /* 400 */ 111, 38, 39, 208, 115, 208, 117, 118, 67, 68, - /* 410 */ 69, 38, 39, 255, 48, 74, 219, 76, 77, 78, - /* 420 */ 279, 215, 124, 125, 126, 88, 232, 86, 234, 235, - /* 430 */ 289, 237, 291, 239, 253, 215, 5, 243, 7, 245, - /* 440 */ 246, 260, 253, 67, 68, 69, 279, 149, 253, 260, - /* 450 */ 74, 75, 76, 77, 78, 260, 289, 248, 208, 88, - /* 460 */ 248, 124, 125, 126, 38, 39, 25, 208, 42, 43, - /* 470 */ 44, 208, 153, 208, 155, 208, 157, 158, 5, 153, - /* 480 */ 7, 155, 248, 157, 158, 279, 149, 124, 125, 48, - /* 490 */ 208, 48, 121, 122, 279, 289, 42, 291, 125, 279, - /* 500 */ 70, 71, 72, 253, 289, 287, 65, 289, 65, 289, - /* 510 */ 260, 291, 253, 42, 43, 44, 253, 208, 253, 260, - /* 520 */ 253, 217, 218, 260, 279, 260, 258, 260, 219, 88, - /* 530 */ 279, 83, 84, 85, 289, 253, 67, 68, 69, 279, - /* 540 */ 289, 279, 260, 81, 276, 279, 230, 231, 279, 289, - /* 550 */ 279, 289, 279, 279, 279, 289, 279, 126, 289, 279, - /* 560 */ 289, 89, 289, 289, 289, 279, 289, 279, 208, 289, - /* 570 */ 279, 214, 279, 103, 262, 289, 214, 289, 221, 219, - /* 580 */ 289, 214, 289, 221, 130, 89, 212, 213, 221, 277, - /* 590 */ 89, 38, 39, 89, 89, 89, 103, 103, 89, 126, - /* 600 */ 128, 131, 89, 141, 103, 89, 89, 103, 103, 103, - /* 610 */ 85, 89, 103, 88, 1, 89, 103, 89, 16, 103, - /* 620 */ 103, 89, 38, 39, 128, 103, 88, 248, 154, 103, - /* 630 */ 156, 103, 154, 248, 156, 103, 154, 256, 156, 145, - /* 640 */ 147, 5, 5, 7, 7, 154, 154, 156, 156, 154, - /* 650 */ 248, 156, 208, 208, 208, 42, 278, 208, 120, 208, - /* 660 */ 208, 208, 258, 208, 208, 258, 208, 208, 208, 208, - /* 670 */ 288, 288, 288, 263, 288, 258, 208, 264, 90, 65, - /* 680 */ 283, 283, 283, 208, 208, 208, 283, 208, 208, 208, - /* 690 */ 126, 208, 208, 208, 208, 208, 208, 208, 208, 275, - /* 700 */ 272, 274, 273, 144, 148, 208, 208, 208, 208, 139, - /* 710 */ 208, 208, 146, 271, 143, 208, 208, 142, 208, 208, - /* 720 */ 208, 136, 208, 208, 137, 135, 124, 208, 208, 208, - /* 730 */ 138, 208, 208, 270, 269, 208, 132, 208, 208, 208, - /* 740 */ 123, 208, 208, 208, 208, 208, 95, 208, 208, 208, - /* 750 */ 208, 208, 208, 208, 208, 208, 208, 208, 208, 208, - /* 760 */ 208, 119, 208, 208, 102, 101, 56, 210, 98, 211, - /* 770 */ 210, 210, 210, 210, 100, 210, 60, 99, 97, 131, - /* 780 */ 5, 5, 5, 210, 210, 162, 268, 210, 5, 162, - /* 790 */ 5, 106, 210, 210, 105, 216, 220, 216, 220, 128, - /* 800 */ 151, 88, 85, 89, 129, 103, 88, 103, 89, 210, - /* 810 */ 103, 210, 126, 126, 211, 229, 223, 228, 227, 224, - /* 820 */ 226, 225, 222, 211, 217, 210, 257, 247, 210, 231, - /* 830 */ 211, 211, 210, 265, 267, 210, 264, 5, 212, 5, - /* 840 */ 88, 103, 89, 88, 247, 89, 88, 1, 89, 88, - /* 850 */ 103, 89, 88, 88, 48, 140, 1, 103, 92, 88, - /* 860 */ 140, 88, 88, 85, 121, 85, 75, 83, 5, 9, - /* 870 */ 5, 5, 93, 92, 5, 93, 5, 5, 92, 5, - /* 880 */ 91, 83, 9, 16, 9, 88, 9, 9, 89, 89, - /* 890 */ 88, 124, 28, 64, 126, 156, 17, 156, 103, 17, - /* 900 */ 156, 156, 5, 5, 89, 5, 5, 5, 5, 5, - /* 910 */ 5, 5, 5, 126, 5, 5, 5, 5, 5, 5, - /* 920 */ 5, 5, 103, 65, 91, 0, 9, 9, 292, 292, - /* 930 */ 22, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 940 */ 292, 22, 292, 292, 292, 292, 292, 292, 292, 292, - /* 950 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 960 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 970 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 980 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 990 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1000 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1010 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1020 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1030 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1040 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1050 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1060 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1070 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1080 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1090 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1100 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1110 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1120 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1130 */ 292, 292, 292, 292, 292, 292, 292, 292, 292, 292, - /* 1140 */ 292, 292, 292, 292, 292, 292, 292, 292, + /* 70 */ 39, 255, 257, 42, 43, 44, 283, 284, 262, 42, + /* 80 */ 43, 44, 14, 15, 263, 17, 18, 232, 233, 21, + /* 90 */ 22, 23, 24, 92, 94, 27, 28, 29, 30, 31, + /* 100 */ 32, 33, 34, 35, 36, 37, 38, 39, 281, 98, + /* 110 */ 42, 43, 44, 14, 15, 263, 17, 18, 291, 282, + /* 120 */ 21, 22, 23, 24, 0, 94, 27, 28, 29, 30, + /* 130 */ 31, 32, 33, 34, 35, 36, 37, 38, 39, 268, + /* 140 */ 5, 42, 43, 44, 5, 256, 7, 14, 15, 5, + /* 150 */ 17, 18, 263, 9, 21, 22, 23, 24, 287, 91, + /* 160 */ 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + /* 170 */ 37, 38, 39, 38, 39, 42, 43, 44, 15, 281, + /* 180 */ 17, 18, 38, 39, 21, 22, 23, 24, 105, 291, + /* 190 */ 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + /* 200 */ 37, 38, 39, 1, 263, 42, 43, 44, 17, 18, + /* 210 */ 256, 9, 21, 22, 23, 24, 92, 263, 27, 28, + /* 220 */ 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + /* 230 */ 39, 90, 149, 42, 43, 44, 106, 107, 108, 109, + /* 240 */ 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, + /* 250 */ 120, 286, 50, 51, 52, 53, 54, 55, 56, 57, + /* 260 */ 58, 59, 60, 61, 62, 63, 64, 128, 66, 75, + /* 270 */ 129, 127, 90, 208, 209, 49, 74, 234, 235, 236, + /* 280 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, + /* 290 */ 247, 248, 66, 260, 1, 2, 1, 218, 5, 250, + /* 300 */ 7, 75, 9, 153, 9, 123, 124, 81, 82, 83, + /* 310 */ 84, 278, 162, 163, 75, 89, 90, 33, 34, 35, + /* 320 */ 36, 37, 38, 39, 218, 260, 42, 43, 44, 214, + /* 330 */ 215, 38, 39, 254, 106, 42, 108, 109, 260, 111, + /* 340 */ 47, 113, 281, 278, 289, 117, 291, 119, 120, 155, + /* 350 */ 250, 157, 291, 159, 160, 129, 278, 251, 252, 253, + /* 360 */ 254, 29, 30, 31, 32, 33, 34, 35, 36, 37, + /* 370 */ 38, 39, 135, 136, 42, 43, 44, 210, 152, 2, + /* 380 */ 154, 210, 5, 90, 7, 90, 9, 161, 221, 1, + /* 390 */ 2, 165, 221, 5, 155, 7, 157, 9, 159, 160, + /* 400 */ 67, 68, 69, 210, 281, 70, 71, 72, 73, 76, + /* 410 */ 77, 78, 79, 80, 291, 38, 39, 25, 281, 126, + /* 420 */ 127, 128, 5, 217, 7, 85, 38, 39, 291, 96, + /* 430 */ 218, 217, 217, 281, 234, 47, 236, 237, 98, 239, + /* 440 */ 48, 241, 256, 291, 151, 245, 250, 247, 248, 263, + /* 450 */ 67, 68, 69, 288, 289, 262, 291, 65, 250, 76, + /* 460 */ 281, 78, 79, 80, 252, 210, 210, 210, 38, 39, + /* 470 */ 291, 88, 42, 43, 44, 210, 210, 210, 90, 67, + /* 480 */ 68, 69, 90, 250, 281, 210, 210, 281, 76, 77, + /* 490 */ 78, 79, 80, 250, 291, 281, 281, 291, 210, 293, + /* 500 */ 67, 68, 69, 126, 127, 291, 291, 293, 293, 42, + /* 510 */ 255, 255, 255, 250, 126, 127, 128, 262, 262, 262, + /* 520 */ 255, 255, 255, 85, 86, 87, 281, 262, 262, 262, + /* 530 */ 255, 255, 281, 216, 281, 210, 291, 262, 262, 151, + /* 540 */ 223, 281, 291, 255, 291, 128, 221, 219, 220, 281, + /* 550 */ 262, 291, 83, 281, 281, 281, 91, 16, 281, 291, + /* 560 */ 281, 281, 281, 291, 291, 291, 281, 281, 291, 105, + /* 570 */ 291, 291, 291, 281, 91, 105, 291, 291, 281, 289, + /* 580 */ 281, 291, 281, 291, 281, 264, 216, 91, 291, 216, + /* 590 */ 291, 91, 291, 223, 291, 130, 223, 133, 48, 132, + /* 600 */ 279, 105, 38, 39, 91, 105, 91, 91, 91, 91, + /* 610 */ 91, 91, 143, 130, 91, 65, 87, 147, 105, 90, + /* 620 */ 105, 105, 105, 105, 105, 105, 91, 25, 105, 1, + /* 630 */ 91, 156, 156, 158, 158, 156, 5, 158, 7, 5, + /* 640 */ 105, 7, 38, 39, 105, 156, 156, 158, 158, 90, + /* 650 */ 48, 156, 258, 158, 210, 210, 210, 210, 210, 210, + /* 660 */ 280, 210, 210, 210, 260, 260, 210, 126, 210, 210, + /* 670 */ 42, 210, 290, 265, 290, 290, 290, 266, 260, 65, + /* 680 */ 212, 122, 210, 210, 210, 92, 285, 210, 210, 128, + /* 690 */ 210, 210, 210, 277, 210, 210, 210, 210, 210, 285, + /* 700 */ 285, 210, 210, 210, 210, 150, 285, 210, 210, 210, + /* 710 */ 148, 210, 210, 210, 210, 210, 210, 210, 210, 210, + /* 720 */ 210, 210, 210, 146, 210, 141, 276, 145, 273, 275, + /* 730 */ 144, 210, 210, 139, 210, 210, 210, 210, 210, 138, + /* 740 */ 210, 210, 210, 210, 210, 274, 210, 210, 210, 137, + /* 750 */ 210, 140, 210, 210, 210, 210, 210, 210, 210, 210, + /* 760 */ 134, 210, 125, 97, 121, 213, 212, 104, 212, 212, + /* 770 */ 212, 103, 212, 56, 100, 102, 60, 101, 99, 133, + /* 780 */ 5, 212, 212, 164, 212, 5, 5, 164, 5, 5, + /* 790 */ 212, 108, 212, 107, 218, 222, 222, 218, 153, 130, + /* 800 */ 87, 90, 131, 91, 90, 105, 105, 105, 212, 212, + /* 810 */ 212, 224, 231, 230, 229, 225, 228, 226, 213, 227, + /* 820 */ 213, 213, 212, 214, 249, 272, 213, 259, 233, 212, + /* 830 */ 212, 91, 128, 267, 271, 270, 269, 266, 249, 219, + /* 840 */ 5, 5, 90, 128, 91, 90, 105, 91, 90, 1, + /* 850 */ 91, 90, 105, 91, 90, 90, 48, 1, 87, 105, + /* 860 */ 142, 142, 94, 90, 90, 123, 90, 95, 77, 87, + /* 870 */ 85, 94, 5, 95, 9, 5, 5, 5, 5, 5, + /* 880 */ 94, 5, 93, 85, 16, 90, 9, 9, 91, 9, + /* 890 */ 91, 9, 126, 90, 28, 64, 17, 158, 105, 5, + /* 900 */ 17, 158, 158, 158, 5, 91, 5, 128, 5, 5, + /* 910 */ 5, 5, 5, 5, 5, 128, 5, 5, 5, 5, + /* 920 */ 5, 5, 5, 5, 105, 93, 73, 65, 9, 9, + /* 930 */ 0, 294, 22, 294, 294, 294, 294, 294, 294, 294, + /* 940 */ 294, 294, 294, 22, 294, 294, 294, 294, 294, 294, + /* 950 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 960 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 970 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 980 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 990 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1000 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1010 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1020 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1030 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1040 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1050 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1060 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1070 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1080 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1090 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1100 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1110 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1120 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1130 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1140 */ 294, 294, 294, 294, 294, 294, 294, 294, 294, 294, + /* 1150 */ 294, }; -#define YY_SHIFT_COUNT (416) +#define YY_SHIFT_COUNT (417) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (925) +#define YY_SHIFT_MAX (930) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 231, 128, 128, 289, 289, 1, 298, 337, 337, 337, - /* 10 */ 292, 7, 7, 7, 7, 7, 7, 7, 7, 7, - /* 20 */ 7, 7, 10, 10, 0, 198, 337, 337, 337, 337, - /* 30 */ 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, - /* 40 */ 337, 337, 337, 337, 337, 337, 337, 337, 337, 337, - /* 50 */ 337, 337, 337, 337, 363, 363, 363, 246, 246, 36, - /* 60 */ 7, 122, 7, 7, 7, 7, 7, 117, 1, 10, - /* 70 */ 10, 17, 17, 20, 942, 942, 942, 363, 363, 363, - /* 80 */ 373, 373, 140, 140, 140, 140, 140, 140, 371, 140, - /* 90 */ 7, 7, 7, 7, 7, 7, 454, 7, 7, 7, - /* 100 */ 246, 246, 7, 7, 7, 7, 462, 462, 462, 462, - /* 110 */ 470, 246, 7, 7, 7, 7, 7, 7, 7, 7, + /* 0 */ 226, 130, 130, 228, 228, 1, 293, 388, 388, 388, + /* 10 */ 295, 7, 7, 7, 7, 7, 7, 7, 7, 7, + /* 20 */ 7, 7, 10, 10, 0, 202, 388, 388, 388, 388, + /* 30 */ 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, + /* 40 */ 388, 388, 388, 388, 388, 388, 388, 388, 388, 388, + /* 50 */ 388, 388, 388, 388, 377, 377, 377, 141, 141, 237, + /* 60 */ 7, 124, 7, 7, 7, 7, 7, 340, 1, 10, + /* 70 */ 10, 11, 11, 35, 944, 944, 944, 377, 377, 377, + /* 80 */ 144, 144, 135, 135, 135, 135, 135, 135, 182, 135, + /* 90 */ 7, 7, 7, 7, 7, 7, 467, 7, 7, 7, + /* 100 */ 141, 141, 7, 7, 7, 7, 469, 469, 469, 469, + /* 110 */ 464, 141, 7, 7, 7, 7, 7, 7, 7, 7, /* 120 */ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, /* 130 */ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, /* 140 */ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, /* 150 */ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, /* 160 */ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, - /* 170 */ 556, 614, 588, 614, 614, 614, 614, 564, 564, 564, - /* 180 */ 564, 614, 559, 566, 570, 571, 575, 587, 585, 590, - /* 190 */ 592, 604, 556, 617, 614, 614, 614, 651, 651, 642, - /* 200 */ 1, 1, 614, 614, 662, 664, 710, 670, 674, 716, - /* 210 */ 678, 681, 642, 20, 614, 614, 588, 588, 614, 588, - /* 220 */ 614, 588, 614, 614, 942, 942, 31, 66, 97, 97, - /* 230 */ 97, 129, 159, 187, 252, 252, 252, 252, 252, 252, - /* 240 */ 287, 287, 287, 287, 285, 341, 376, 426, 426, 426, - /* 250 */ 426, 426, 319, 326, 441, 24, 471, 471, 431, 473, - /* 260 */ 448, 430, 469, 501, 472, 496, 553, 504, 505, 506, - /* 270 */ 443, 493, 494, 509, 513, 516, 517, 522, 525, 526, - /* 280 */ 528, 366, 613, 602, 532, 474, 478, 482, 636, 637, - /* 290 */ 584, 491, 492, 538, 495, 648, 775, 623, 776, 777, - /* 300 */ 627, 783, 785, 685, 689, 649, 671, 717, 713, 675, - /* 310 */ 714, 718, 702, 704, 719, 707, 686, 687, 832, 834, - /* 320 */ 752, 753, 755, 756, 758, 759, 738, 761, 762, 764, - /* 330 */ 846, 765, 747, 715, 806, 855, 754, 720, 766, 771, - /* 340 */ 717, 773, 778, 774, 743, 780, 784, 779, 781, 791, - /* 350 */ 863, 782, 786, 860, 865, 866, 869, 871, 872, 874, - /* 360 */ 789, 867, 798, 873, 875, 797, 799, 800, 877, 878, - /* 370 */ 767, 802, 864, 829, 879, 739, 741, 795, 795, 795, - /* 380 */ 795, 768, 787, 882, 744, 745, 795, 795, 795, 897, - /* 390 */ 898, 815, 795, 900, 901, 902, 903, 904, 905, 906, - /* 400 */ 907, 909, 910, 911, 912, 913, 914, 915, 916, 819, - /* 410 */ 833, 917, 908, 918, 919, 858, 925, + /* 170 */ 555, 614, 593, 614, 614, 614, 614, 561, 561, 561, + /* 180 */ 561, 614, 577, 562, 584, 582, 586, 594, 601, 612, + /* 190 */ 611, 626, 555, 637, 614, 614, 614, 666, 666, 643, + /* 200 */ 1, 1, 614, 614, 663, 668, 717, 674, 673, 716, + /* 210 */ 676, 679, 643, 35, 614, 614, 593, 593, 614, 593, + /* 220 */ 614, 593, 614, 614, 944, 944, 31, 68, 99, 99, + /* 230 */ 99, 133, 163, 191, 332, 332, 332, 332, 332, 332, + /* 240 */ 284, 284, 284, 284, 333, 383, 412, 430, 430, 430, + /* 250 */ 430, 430, 194, 239, 392, 335, 150, 37, 37, 139, + /* 260 */ 417, 438, 433, 496, 465, 483, 564, 500, 513, 515, + /* 270 */ 550, 83, 470, 516, 517, 518, 519, 520, 529, 523, + /* 280 */ 535, 602, 628, 541, 539, 475, 476, 479, 631, 634, + /* 290 */ 604, 489, 490, 559, 495, 646, 775, 619, 780, 781, + /* 300 */ 623, 783, 784, 683, 686, 645, 669, 713, 711, 671, + /* 310 */ 712, 714, 700, 701, 740, 702, 704, 715, 835, 836, + /* 320 */ 752, 753, 755, 756, 758, 759, 741, 761, 762, 764, + /* 330 */ 848, 765, 747, 718, 808, 856, 754, 719, 768, 773, + /* 340 */ 713, 774, 771, 776, 742, 782, 785, 772, 777, 791, + /* 350 */ 867, 778, 786, 865, 870, 871, 872, 873, 874, 876, + /* 360 */ 789, 868, 798, 877, 878, 795, 797, 799, 880, 882, + /* 370 */ 766, 803, 866, 831, 879, 739, 743, 793, 793, 793, + /* 380 */ 793, 779, 787, 883, 744, 745, 793, 793, 793, 894, + /* 390 */ 899, 814, 793, 901, 903, 904, 905, 906, 907, 908, + /* 400 */ 909, 911, 912, 913, 914, 915, 916, 917, 918, 819, + /* 410 */ 832, 853, 919, 910, 920, 921, 862, 930, }; #define YY_REDUCE_COUNT (225) -#define YY_REDUCE_MIN (-283) -#define YY_REDUCE_MAX (626) +#define YY_REDUCE_MIN (-285) +#define YY_REDUCE_MAX (620) static const short yy_reduce_ofst[] = { - /* 0 */ 109, 33, 33, 194, 194, 98, 141, 206, 220, -279, - /* 10 */ -205, -203, -182, 181, 189, 195, 250, 259, 263, 265, - /* 20 */ 267, 282, -283, 46, -195, -189, -238, -207, -173, -172, - /* 30 */ -141, 13, 19, 38, 62, 85, 167, 215, 245, 251, - /* 40 */ 260, 262, 266, 269, 271, 273, 274, 275, 277, 280, - /* 50 */ 286, 288, 291, 293, -214, -175, -112, 111, 268, -38, - /* 60 */ 158, 11, 169, 197, 309, 360, -54, 357, 93, 68, - /* 70 */ 218, 362, 367, 316, 312, 304, 374, -259, -124, 45, - /* 80 */ -228, 44, 123, 209, 212, 234, 379, 385, 381, 402, - /* 90 */ 444, 445, 446, 449, 451, 452, 378, 453, 455, 456, - /* 100 */ 404, 407, 458, 459, 460, 461, 382, 383, 384, 386, - /* 110 */ 410, 417, 468, 475, 476, 477, 479, 480, 481, 483, - /* 120 */ 484, 485, 486, 487, 488, 489, 490, 497, 498, 499, - /* 130 */ 500, 502, 503, 507, 508, 510, 511, 512, 514, 515, - /* 140 */ 519, 520, 521, 523, 524, 527, 529, 530, 531, 533, - /* 150 */ 534, 535, 536, 537, 539, 540, 541, 542, 543, 544, - /* 160 */ 545, 546, 547, 548, 549, 550, 551, 552, 554, 555, - /* 170 */ 413, 557, 558, 560, 561, 562, 563, 397, 398, 399, - /* 180 */ 403, 565, 424, 427, 429, 428, 442, 463, 465, 518, - /* 190 */ 567, 568, 572, 569, 573, 574, 577, 576, 578, 580, - /* 200 */ 579, 581, 582, 583, 586, 589, 591, 593, 594, 595, - /* 210 */ 596, 600, 597, 598, 599, 601, 603, 612, 615, 619, - /* 220 */ 618, 620, 622, 625, 607, 626, + /* 0 */ 65, 43, 43, 200, 200, 106, 206, 214, 215, -281, + /* 10 */ -207, -205, -184, 255, 256, 257, 265, 266, 267, 275, + /* 20 */ 276, 288, -285, 165, -163, -191, -240, -173, -102, 61, + /* 30 */ 123, 137, 152, 179, 203, 245, 251, 253, 260, 268, + /* 40 */ 272, 273, 274, 277, 279, 280, 281, 285, 286, 292, + /* 50 */ 297, 299, 301, 303, -111, -46, 186, 33, 78, -129, + /* 60 */ -185, 79, -208, 167, 171, 325, 193, 317, 212, 55, + /* 70 */ 290, 370, 373, -145, 321, 328, 115, -179, -148, -59, + /* 80 */ -230, -35, 49, 100, 196, 208, 233, 243, 394, 263, + /* 90 */ 444, 445, 446, 447, 448, 449, 380, 451, 452, 453, + /* 100 */ 404, 405, 456, 458, 459, 461, 382, 384, 385, 386, + /* 110 */ 408, 418, 472, 473, 474, 477, 478, 480, 481, 482, + /* 120 */ 484, 485, 486, 487, 488, 491, 492, 493, 494, 497, + /* 130 */ 498, 499, 501, 502, 503, 504, 505, 506, 507, 508, + /* 140 */ 509, 510, 511, 512, 514, 521, 522, 524, 525, 526, + /* 150 */ 527, 528, 530, 531, 532, 533, 534, 536, 537, 538, + /* 160 */ 540, 542, 543, 544, 545, 546, 547, 548, 549, 551, + /* 170 */ 411, 468, 552, 554, 556, 557, 558, 401, 414, 415, + /* 180 */ 421, 560, 416, 450, 454, 471, 455, 553, 563, 565, + /* 190 */ 567, 566, 571, 568, 569, 570, 572, 573, 574, 575, + /* 200 */ 576, 579, 578, 580, 581, 583, 585, 590, 588, 591, + /* 210 */ 592, 587, 589, 595, 596, 597, 605, 607, 598, 608, + /* 220 */ 610, 613, 617, 618, 620, 609, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 978, 1103, 1041, 1114, 1028, 1038, 1288, 1288, 1288, 1288, - /* 10 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 20 */ 978, 978, 978, 978, 1168, 998, 978, 978, 978, 978, - /* 30 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 40 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 50 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 1192, - /* 60 */ 978, 1038, 978, 978, 978, 978, 978, 1049, 1038, 978, - /* 70 */ 978, 1049, 1049, 978, 1163, 1087, 1105, 978, 978, 978, - /* 80 */ 978, 978, 978, 978, 978, 978, 978, 978, 1135, 978, - /* 90 */ 978, 978, 978, 978, 978, 978, 1170, 1176, 1173, 978, - /* 100 */ 978, 978, 1178, 978, 978, 978, 1214, 1214, 1214, 1214, - /* 110 */ 1161, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 120 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 130 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 140 */ 978, 978, 978, 978, 978, 1026, 978, 1024, 978, 978, - /* 150 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 160 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 996, - /* 170 */ 1231, 1000, 1036, 1000, 1000, 1000, 1000, 978, 978, 978, - /* 180 */ 978, 1000, 1223, 1227, 1204, 1221, 1215, 1199, 1197, 1195, - /* 190 */ 1203, 1188, 1231, 1137, 1000, 1000, 1000, 1047, 1047, 1042, - /* 200 */ 1038, 1038, 1000, 1000, 1065, 1063, 1061, 1053, 1059, 1055, - /* 210 */ 1057, 1051, 1029, 978, 1000, 1000, 1036, 1036, 1000, 1036, - /* 220 */ 1000, 1036, 1000, 1000, 1087, 1105, 1287, 978, 1232, 1222, - /* 230 */ 1287, 978, 1264, 1263, 1278, 1277, 1276, 1262, 1261, 1260, - /* 240 */ 1256, 1259, 1258, 1257, 978, 978, 978, 1275, 1274, 1272, - /* 250 */ 1271, 1270, 978, 978, 1234, 978, 1266, 1265, 978, 978, - /* 260 */ 978, 978, 978, 978, 978, 978, 1185, 978, 978, 978, - /* 270 */ 1210, 1228, 1224, 978, 978, 978, 978, 978, 978, 978, - /* 280 */ 978, 1235, 978, 978, 978, 978, 978, 978, 978, 978, - /* 290 */ 1149, 978, 978, 1116, 978, 978, 978, 978, 978, 978, - /* 300 */ 978, 978, 978, 978, 978, 978, 1160, 978, 978, 978, - /* 310 */ 978, 978, 1172, 1171, 978, 978, 978, 978, 978, 978, - /* 320 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 330 */ 978, 978, 1216, 978, 1211, 978, 1205, 978, 978, 978, - /* 340 */ 1128, 978, 978, 978, 978, 1045, 978, 978, 978, 978, - /* 350 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 360 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 978, - /* 370 */ 978, 978, 978, 978, 978, 978, 978, 1306, 1301, 1302, - /* 380 */ 1299, 978, 978, 978, 978, 978, 1298, 1293, 1294, 978, - /* 390 */ 978, 978, 1291, 978, 978, 978, 978, 978, 978, 978, - /* 400 */ 978, 978, 978, 978, 978, 978, 978, 978, 978, 1071, - /* 410 */ 978, 978, 1007, 978, 1005, 978, 978, + /* 0 */ 983, 1110, 1048, 1121, 1035, 1045, 1295, 1295, 1295, 1295, + /* 10 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 20 */ 983, 983, 983, 983, 1175, 1003, 983, 983, 983, 983, + /* 30 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 40 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 50 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 1199, + /* 60 */ 983, 1045, 983, 983, 983, 983, 983, 1056, 1045, 983, + /* 70 */ 983, 1056, 1056, 983, 1170, 1094, 1112, 983, 983, 983, + /* 80 */ 983, 983, 983, 983, 983, 983, 983, 983, 1142, 983, + /* 90 */ 983, 983, 983, 983, 983, 983, 1177, 1183, 1180, 983, + /* 100 */ 983, 983, 1185, 983, 983, 983, 1221, 1221, 1221, 1221, + /* 110 */ 1168, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 120 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 130 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 140 */ 983, 983, 983, 983, 983, 1033, 983, 1031, 983, 983, + /* 150 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 160 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 1001, + /* 170 */ 1238, 1005, 1043, 1005, 1005, 1005, 1005, 983, 983, 983, + /* 180 */ 983, 1005, 1230, 1234, 1211, 1228, 1222, 1206, 1204, 1202, + /* 190 */ 1210, 1195, 1238, 1144, 1005, 1005, 1005, 1054, 1054, 1049, + /* 200 */ 1045, 1045, 1005, 1005, 1072, 1070, 1068, 1060, 1066, 1062, + /* 210 */ 1064, 1058, 1036, 983, 1005, 1005, 1043, 1043, 1005, 1043, + /* 220 */ 1005, 1043, 1005, 1005, 1094, 1112, 1294, 983, 1239, 1229, + /* 230 */ 1294, 983, 1271, 1270, 1285, 1284, 1283, 1269, 1268, 1267, + /* 240 */ 1263, 1266, 1265, 1264, 983, 983, 983, 1282, 1281, 1279, + /* 250 */ 1278, 1277, 983, 983, 1241, 983, 983, 1273, 1272, 983, + /* 260 */ 983, 983, 983, 983, 983, 983, 1192, 983, 983, 983, + /* 270 */ 1217, 1235, 1231, 983, 983, 983, 983, 983, 983, 983, + /* 280 */ 983, 1242, 983, 983, 983, 983, 983, 983, 983, 983, + /* 290 */ 1156, 983, 983, 1123, 983, 983, 983, 983, 983, 983, + /* 300 */ 983, 983, 983, 983, 983, 983, 1167, 983, 983, 983, + /* 310 */ 983, 983, 1179, 1178, 983, 983, 983, 983, 983, 983, + /* 320 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 330 */ 983, 983, 1223, 983, 1218, 983, 1212, 983, 983, 983, + /* 340 */ 1135, 983, 983, 983, 983, 1052, 983, 983, 983, 983, + /* 350 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 360 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 983, + /* 370 */ 983, 983, 983, 983, 983, 983, 983, 1313, 1308, 1309, + /* 380 */ 1306, 983, 983, 983, 983, 983, 1305, 1300, 1301, 983, + /* 390 */ 983, 983, 1298, 983, 983, 983, 983, 983, 983, 983, + /* 400 */ 983, 983, 983, 983, 983, 983, 983, 983, 983, 1078, + /* 410 */ 983, 983, 983, 1012, 983, 1010, 983, 983, }; /********** End of lemon-generated parsing tables *****************************/ @@ -641,6 +632,8 @@ static const YYCODETYPE yyFallback[] = { 0, /* TABLES => nothing */ 0, /* STABLES => nothing */ 0, /* VGROUPS => nothing */ + 0, /* STATUS => nothing */ + 1, /* CLUSTER => ID */ 0, /* DROP => nothing */ 0, /* TOPIC => nothing */ 0, /* FUNCTION => nothing */ @@ -738,7 +731,6 @@ static const YYCODETYPE yyFallback[] = { 1, /* BEFORE => ID */ 1, /* BEGIN => ID */ 1, /* CASCADE => ID */ - 1, /* CLUSTER => ID */ 1, /* CONFLICT => ID */ 1, /* COPY => ID */ 1, /* DEFERRED => ID */ @@ -813,7 +805,6 @@ struct yyParser { int yyerrcnt; /* Shifts left before out of the error */ #endif ParseARG_SDECL /* A place to hold %extra_argument */ - ParseCTX_SDECL /* A place to hold %extra_context */ #if YYSTACKDEPTH<=0 int yystksz; /* Current side of the stack */ yyStackEntry *yystack; /* The parser's stack */ @@ -934,225 +925,227 @@ static const char *const yyTokenName[] = { /* 70 */ "TABLES", /* 71 */ "STABLES", /* 72 */ "VGROUPS", - /* 73 */ "DROP", - /* 74 */ "TOPIC", - /* 75 */ "FUNCTION", - /* 76 */ "DNODE", - /* 77 */ "USER", - /* 78 */ "ACCOUNT", - /* 79 */ "USE", - /* 80 */ "DESCRIBE", - /* 81 */ "DESC", - /* 82 */ "ALTER", - /* 83 */ "PASS", - /* 84 */ "PRIVILEGE", - /* 85 */ "TAGS", - /* 86 */ "LOCAL", - /* 87 */ "COMPACT", - /* 88 */ "LP", - /* 89 */ "RP", - /* 90 */ "IF", - /* 91 */ "EXISTS", - /* 92 */ "AS", - /* 93 */ "OUTPUTTYPE", - /* 94 */ "AGGREGATE", - /* 95 */ "BUFSIZE", - /* 96 */ "PPS", - /* 97 */ "TSERIES", - /* 98 */ "DBS", - /* 99 */ "STORAGE", - /* 100 */ "QTIME", - /* 101 */ "CONNS", - /* 102 */ "STATE", - /* 103 */ "COMMA", - /* 104 */ "KEEP", - /* 105 */ "CACHE", - /* 106 */ "REPLICA", - /* 107 */ "QUORUM", - /* 108 */ "DAYS", - /* 109 */ "MINROWS", - /* 110 */ "MAXROWS", - /* 111 */ "BLOCKS", - /* 112 */ "CTIME", - /* 113 */ "WAL", - /* 114 */ "FSYNC", - /* 115 */ "COMP", - /* 116 */ "PRECISION", - /* 117 */ "UPDATE", - /* 118 */ "CACHELAST", - /* 119 */ "PARTITIONS", - /* 120 */ "UNSIGNED", - /* 121 */ "USING", - /* 122 */ "TO", - /* 123 */ "SPLIT", - /* 124 */ "NULL", - /* 125 */ "NOW", - /* 126 */ "VARIABLE", - /* 127 */ "SELECT", - /* 128 */ "UNION", - /* 129 */ "ALL", - /* 130 */ "DISTINCT", - /* 131 */ "FROM", - /* 132 */ "RANGE", - /* 133 */ "INTERVAL", - /* 134 */ "EVERY", - /* 135 */ "SESSION", - /* 136 */ "STATE_WINDOW", - /* 137 */ "FILL", - /* 138 */ "SLIDING", - /* 139 */ "ORDER", - /* 140 */ "BY", - /* 141 */ "ASC", - /* 142 */ "GROUP", - /* 143 */ "HAVING", - /* 144 */ "LIMIT", - /* 145 */ "OFFSET", - /* 146 */ "SLIMIT", - /* 147 */ "SOFFSET", - /* 148 */ "WHERE", - /* 149 */ "TODAY", - /* 150 */ "RESET", - /* 151 */ "QUERY", - /* 152 */ "SYNCDB", - /* 153 */ "ADD", - /* 154 */ "COLUMN", - /* 155 */ "MODIFY", - /* 156 */ "TAG", - /* 157 */ "CHANGE", - /* 158 */ "SET", - /* 159 */ "KILL", - /* 160 */ "CONNECTION", - /* 161 */ "STREAM", - /* 162 */ "COLON", - /* 163 */ "DELETE", - /* 164 */ "ABORT", - /* 165 */ "AFTER", - /* 166 */ "ATTACH", - /* 167 */ "BEFORE", - /* 168 */ "BEGIN", - /* 169 */ "CASCADE", - /* 170 */ "CLUSTER", - /* 171 */ "CONFLICT", - /* 172 */ "COPY", - /* 173 */ "DEFERRED", - /* 174 */ "DELIMITERS", - /* 175 */ "DETACH", - /* 176 */ "EACH", - /* 177 */ "END", - /* 178 */ "EXPLAIN", - /* 179 */ "FAIL", - /* 180 */ "FOR", - /* 181 */ "IGNORE", - /* 182 */ "IMMEDIATE", - /* 183 */ "INITIALLY", - /* 184 */ "INSTEAD", - /* 185 */ "KEY", - /* 186 */ "OF", - /* 187 */ "RAISE", - /* 188 */ "REPLACE", - /* 189 */ "RESTRICT", - /* 190 */ "ROW", - /* 191 */ "STATEMENT", - /* 192 */ "TRIGGER", - /* 193 */ "VIEW", - /* 194 */ "IPTOKEN", - /* 195 */ "SEMI", - /* 196 */ "NONE", - /* 197 */ "PREV", - /* 198 */ "LINEAR", - /* 199 */ "IMPORT", - /* 200 */ "TBNAME", - /* 201 */ "JOIN", - /* 202 */ "INSERT", - /* 203 */ "INTO", - /* 204 */ "VALUES", - /* 205 */ "FILE", - /* 206 */ "program", - /* 207 */ "cmd", - /* 208 */ "ids", - /* 209 */ "dbPrefix", - /* 210 */ "cpxName", - /* 211 */ "ifexists", - /* 212 */ "alter_db_optr", - /* 213 */ "alter_topic_optr", - /* 214 */ "acct_optr", - /* 215 */ "exprlist", - /* 216 */ "ifnotexists", - /* 217 */ "db_optr", - /* 218 */ "topic_optr", - /* 219 */ "typename", - /* 220 */ "bufsize", - /* 221 */ "pps", - /* 222 */ "tseries", - /* 223 */ "dbs", - /* 224 */ "streams", - /* 225 */ "storage", - /* 226 */ "qtime", - /* 227 */ "users", - /* 228 */ "conns", - /* 229 */ "state", - /* 230 */ "intitemlist", - /* 231 */ "intitem", - /* 232 */ "keep", - /* 233 */ "cache", - /* 234 */ "replica", - /* 235 */ "quorum", - /* 236 */ "days", - /* 237 */ "minrows", - /* 238 */ "maxrows", - /* 239 */ "blocks", - /* 240 */ "ctime", - /* 241 */ "wal", - /* 242 */ "fsync", - /* 243 */ "comp", - /* 244 */ "prec", - /* 245 */ "update", - /* 246 */ "cachelast", - /* 247 */ "partitions", - /* 248 */ "signed", - /* 249 */ "create_table_args", - /* 250 */ "create_stable_args", - /* 251 */ "create_table_list", - /* 252 */ "create_from_stable", - /* 253 */ "columnlist", - /* 254 */ "tagitemlist", - /* 255 */ "tagNamelist", - /* 256 */ "to_opt", - /* 257 */ "split_opt", - /* 258 */ "select", - /* 259 */ "to_split", - /* 260 */ "column", - /* 261 */ "tagitem", - /* 262 */ "selcollist", - /* 263 */ "from", - /* 264 */ "where_opt", - /* 265 */ "range_option", - /* 266 */ "interval_option", - /* 267 */ "sliding_opt", - /* 268 */ "session_option", - /* 269 */ "windowstate_option", - /* 270 */ "fill_opt", - /* 271 */ "groupby_opt", - /* 272 */ "having_opt", - /* 273 */ "orderby_opt", - /* 274 */ "slimit_opt", - /* 275 */ "limit_opt", - /* 276 */ "union", - /* 277 */ "sclp", - /* 278 */ "distinct", - /* 279 */ "expr", - /* 280 */ "as", - /* 281 */ "tablelist", - /* 282 */ "sub", - /* 283 */ "tmvar", - /* 284 */ "timestamp", - /* 285 */ "intervalKey", - /* 286 */ "sortlist", - /* 287 */ "item", - /* 288 */ "sortorder", - /* 289 */ "arrow", - /* 290 */ "grouplist", - /* 291 */ "expritem", + /* 73 */ "STATUS", + /* 74 */ "CLUSTER", + /* 75 */ "DROP", + /* 76 */ "TOPIC", + /* 77 */ "FUNCTION", + /* 78 */ "DNODE", + /* 79 */ "USER", + /* 80 */ "ACCOUNT", + /* 81 */ "USE", + /* 82 */ "DESCRIBE", + /* 83 */ "DESC", + /* 84 */ "ALTER", + /* 85 */ "PASS", + /* 86 */ "PRIVILEGE", + /* 87 */ "TAGS", + /* 88 */ "LOCAL", + /* 89 */ "COMPACT", + /* 90 */ "LP", + /* 91 */ "RP", + /* 92 */ "IF", + /* 93 */ "EXISTS", + /* 94 */ "AS", + /* 95 */ "OUTPUTTYPE", + /* 96 */ "AGGREGATE", + /* 97 */ "BUFSIZE", + /* 98 */ "PPS", + /* 99 */ "TSERIES", + /* 100 */ "DBS", + /* 101 */ "STORAGE", + /* 102 */ "QTIME", + /* 103 */ "CONNS", + /* 104 */ "STATE", + /* 105 */ "COMMA", + /* 106 */ "KEEP", + /* 107 */ "CACHE", + /* 108 */ "REPLICA", + /* 109 */ "QUORUM", + /* 110 */ "DAYS", + /* 111 */ "MINROWS", + /* 112 */ "MAXROWS", + /* 113 */ "BLOCKS", + /* 114 */ "CTIME", + /* 115 */ "WAL", + /* 116 */ "FSYNC", + /* 117 */ "COMP", + /* 118 */ "PRECISION", + /* 119 */ "UPDATE", + /* 120 */ "CACHELAST", + /* 121 */ "PARTITIONS", + /* 122 */ "UNSIGNED", + /* 123 */ "USING", + /* 124 */ "TO", + /* 125 */ "SPLIT", + /* 126 */ "NULL", + /* 127 */ "NOW", + /* 128 */ "VARIABLE", + /* 129 */ "SELECT", + /* 130 */ "UNION", + /* 131 */ "ALL", + /* 132 */ "DISTINCT", + /* 133 */ "FROM", + /* 134 */ "RANGE", + /* 135 */ "INTERVAL", + /* 136 */ "EVERY", + /* 137 */ "SESSION", + /* 138 */ "STATE_WINDOW", + /* 139 */ "FILL", + /* 140 */ "SLIDING", + /* 141 */ "ORDER", + /* 142 */ "BY", + /* 143 */ "ASC", + /* 144 */ "GROUP", + /* 145 */ "HAVING", + /* 146 */ "LIMIT", + /* 147 */ "OFFSET", + /* 148 */ "SLIMIT", + /* 149 */ "SOFFSET", + /* 150 */ "WHERE", + /* 151 */ "TODAY", + /* 152 */ "RESET", + /* 153 */ "QUERY", + /* 154 */ "SYNCDB", + /* 155 */ "ADD", + /* 156 */ "COLUMN", + /* 157 */ "MODIFY", + /* 158 */ "TAG", + /* 159 */ "CHANGE", + /* 160 */ "SET", + /* 161 */ "KILL", + /* 162 */ "CONNECTION", + /* 163 */ "STREAM", + /* 164 */ "COLON", + /* 165 */ "DELETE", + /* 166 */ "ABORT", + /* 167 */ "AFTER", + /* 168 */ "ATTACH", + /* 169 */ "BEFORE", + /* 170 */ "BEGIN", + /* 171 */ "CASCADE", + /* 172 */ "CONFLICT", + /* 173 */ "COPY", + /* 174 */ "DEFERRED", + /* 175 */ "DELIMITERS", + /* 176 */ "DETACH", + /* 177 */ "EACH", + /* 178 */ "END", + /* 179 */ "EXPLAIN", + /* 180 */ "FAIL", + /* 181 */ "FOR", + /* 182 */ "IGNORE", + /* 183 */ "IMMEDIATE", + /* 184 */ "INITIALLY", + /* 185 */ "INSTEAD", + /* 186 */ "KEY", + /* 187 */ "OF", + /* 188 */ "RAISE", + /* 189 */ "REPLACE", + /* 190 */ "RESTRICT", + /* 191 */ "ROW", + /* 192 */ "STATEMENT", + /* 193 */ "TRIGGER", + /* 194 */ "VIEW", + /* 195 */ "IPTOKEN", + /* 196 */ "SEMI", + /* 197 */ "NONE", + /* 198 */ "PREV", + /* 199 */ "LINEAR", + /* 200 */ "IMPORT", + /* 201 */ "TBNAME", + /* 202 */ "JOIN", + /* 203 */ "INSERT", + /* 204 */ "INTO", + /* 205 */ "VALUES", + /* 206 */ "FILE", + /* 207 */ "error", + /* 208 */ "program", + /* 209 */ "cmd", + /* 210 */ "ids", + /* 211 */ "dbPrefix", + /* 212 */ "cpxName", + /* 213 */ "ifexists", + /* 214 */ "alter_db_optr", + /* 215 */ "alter_topic_optr", + /* 216 */ "acct_optr", + /* 217 */ "exprlist", + /* 218 */ "ifnotexists", + /* 219 */ "db_optr", + /* 220 */ "topic_optr", + /* 221 */ "typename", + /* 222 */ "bufsize", + /* 223 */ "pps", + /* 224 */ "tseries", + /* 225 */ "dbs", + /* 226 */ "streams", + /* 227 */ "storage", + /* 228 */ "qtime", + /* 229 */ "users", + /* 230 */ "conns", + /* 231 */ "state", + /* 232 */ "intitemlist", + /* 233 */ "intitem", + /* 234 */ "keep", + /* 235 */ "cache", + /* 236 */ "replica", + /* 237 */ "quorum", + /* 238 */ "days", + /* 239 */ "minrows", + /* 240 */ "maxrows", + /* 241 */ "blocks", + /* 242 */ "ctime", + /* 243 */ "wal", + /* 244 */ "fsync", + /* 245 */ "comp", + /* 246 */ "prec", + /* 247 */ "update", + /* 248 */ "cachelast", + /* 249 */ "partitions", + /* 250 */ "signed", + /* 251 */ "create_table_args", + /* 252 */ "create_stable_args", + /* 253 */ "create_table_list", + /* 254 */ "create_from_stable", + /* 255 */ "columnlist", + /* 256 */ "tagitemlist", + /* 257 */ "tagNamelist", + /* 258 */ "to_opt", + /* 259 */ "split_opt", + /* 260 */ "select", + /* 261 */ "to_split", + /* 262 */ "column", + /* 263 */ "tagitem", + /* 264 */ "selcollist", + /* 265 */ "from", + /* 266 */ "where_opt", + /* 267 */ "range_option", + /* 268 */ "interval_option", + /* 269 */ "sliding_opt", + /* 270 */ "session_option", + /* 271 */ "windowstate_option", + /* 272 */ "fill_opt", + /* 273 */ "groupby_opt", + /* 274 */ "having_opt", + /* 275 */ "orderby_opt", + /* 276 */ "slimit_opt", + /* 277 */ "limit_opt", + /* 278 */ "union", + /* 279 */ "sclp", + /* 280 */ "distinct", + /* 281 */ "expr", + /* 282 */ "as", + /* 283 */ "tablelist", + /* 284 */ "sub", + /* 285 */ "tmvar", + /* 286 */ "timestamp", + /* 287 */ "intervalKey", + /* 288 */ "sortlist", + /* 289 */ "item", + /* 290 */ "sortorder", + /* 291 */ "arrow", + /* 292 */ "grouplist", + /* 293 */ "expritem", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1189,307 +1182,309 @@ static const char *const yyRuleName[] = { /* 26 */ "cmd ::= SHOW dbPrefix STABLES", /* 27 */ "cmd ::= SHOW dbPrefix STABLES LIKE STRING", /* 28 */ "cmd ::= SHOW dbPrefix VGROUPS", - /* 29 */ "cmd ::= DROP TABLE ifexists ids cpxName", - /* 30 */ "cmd ::= DROP STABLE ifexists ids cpxName", - /* 31 */ "cmd ::= DROP DATABASE ifexists ids", - /* 32 */ "cmd ::= DROP TOPIC ifexists ids", - /* 33 */ "cmd ::= DROP FUNCTION ids", - /* 34 */ "cmd ::= DROP DNODE ids", - /* 35 */ "cmd ::= DROP USER ids", - /* 36 */ "cmd ::= DROP ACCOUNT ids", - /* 37 */ "cmd ::= USE ids", - /* 38 */ "cmd ::= DESCRIBE ids cpxName", - /* 39 */ "cmd ::= DESC ids cpxName", - /* 40 */ "cmd ::= ALTER USER ids PASS ids", - /* 41 */ "cmd ::= ALTER USER ids PRIVILEGE ids", - /* 42 */ "cmd ::= ALTER USER ids TAGS ids", - /* 43 */ "cmd ::= ALTER DNODE ids ids", - /* 44 */ "cmd ::= ALTER DNODE ids ids ids", - /* 45 */ "cmd ::= ALTER LOCAL ids", - /* 46 */ "cmd ::= ALTER LOCAL ids ids", - /* 47 */ "cmd ::= ALTER DATABASE ids alter_db_optr", - /* 48 */ "cmd ::= ALTER TOPIC ids alter_topic_optr", - /* 49 */ "cmd ::= ALTER ACCOUNT ids acct_optr", - /* 50 */ "cmd ::= ALTER ACCOUNT ids PASS ids acct_optr", - /* 51 */ "cmd ::= COMPACT VNODES IN LP exprlist RP", - /* 52 */ "ids ::= ID", - /* 53 */ "ids ::= STRING", - /* 54 */ "ifexists ::= IF EXISTS", - /* 55 */ "ifexists ::=", - /* 56 */ "ifnotexists ::= IF NOT EXISTS", - /* 57 */ "ifnotexists ::=", - /* 58 */ "cmd ::= CREATE DNODE ids", - /* 59 */ "cmd ::= CREATE ACCOUNT ids PASS ids acct_optr", - /* 60 */ "cmd ::= CREATE DATABASE ifnotexists ids db_optr", - /* 61 */ "cmd ::= CREATE TOPIC ifnotexists ids topic_optr", - /* 62 */ "cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize", - /* 63 */ "cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize", - /* 64 */ "cmd ::= CREATE USER ids PASS ids", - /* 65 */ "cmd ::= CREATE USER ids PASS ids TAGS ids", - /* 66 */ "bufsize ::=", - /* 67 */ "bufsize ::= BUFSIZE INTEGER", - /* 68 */ "pps ::=", - /* 69 */ "pps ::= PPS INTEGER", - /* 70 */ "tseries ::=", - /* 71 */ "tseries ::= TSERIES INTEGER", - /* 72 */ "dbs ::=", - /* 73 */ "dbs ::= DBS INTEGER", - /* 74 */ "streams ::=", - /* 75 */ "streams ::= STREAMS INTEGER", - /* 76 */ "storage ::=", - /* 77 */ "storage ::= STORAGE INTEGER", - /* 78 */ "qtime ::=", - /* 79 */ "qtime ::= QTIME INTEGER", - /* 80 */ "users ::=", - /* 81 */ "users ::= USERS INTEGER", - /* 82 */ "conns ::=", - /* 83 */ "conns ::= CONNS INTEGER", - /* 84 */ "state ::=", - /* 85 */ "state ::= STATE ids", - /* 86 */ "acct_optr ::= pps tseries storage streams qtime dbs users conns state", - /* 87 */ "intitemlist ::= intitemlist COMMA intitem", - /* 88 */ "intitemlist ::= intitem", - /* 89 */ "intitem ::= INTEGER", - /* 90 */ "keep ::= KEEP intitemlist", - /* 91 */ "cache ::= CACHE INTEGER", - /* 92 */ "replica ::= REPLICA INTEGER", - /* 93 */ "quorum ::= QUORUM INTEGER", - /* 94 */ "days ::= DAYS INTEGER", - /* 95 */ "minrows ::= MINROWS INTEGER", - /* 96 */ "maxrows ::= MAXROWS INTEGER", - /* 97 */ "blocks ::= BLOCKS INTEGER", - /* 98 */ "ctime ::= CTIME INTEGER", - /* 99 */ "wal ::= WAL INTEGER", - /* 100 */ "fsync ::= FSYNC INTEGER", - /* 101 */ "comp ::= COMP INTEGER", - /* 102 */ "prec ::= PRECISION STRING", - /* 103 */ "update ::= UPDATE INTEGER", - /* 104 */ "cachelast ::= CACHELAST INTEGER", - /* 105 */ "partitions ::= PARTITIONS INTEGER", - /* 106 */ "db_optr ::=", - /* 107 */ "db_optr ::= db_optr cache", - /* 108 */ "db_optr ::= db_optr replica", - /* 109 */ "db_optr ::= db_optr quorum", - /* 110 */ "db_optr ::= db_optr days", - /* 111 */ "db_optr ::= db_optr minrows", - /* 112 */ "db_optr ::= db_optr maxrows", - /* 113 */ "db_optr ::= db_optr blocks", - /* 114 */ "db_optr ::= db_optr ctime", - /* 115 */ "db_optr ::= db_optr wal", - /* 116 */ "db_optr ::= db_optr fsync", - /* 117 */ "db_optr ::= db_optr comp", - /* 118 */ "db_optr ::= db_optr prec", - /* 119 */ "db_optr ::= db_optr keep", - /* 120 */ "db_optr ::= db_optr update", - /* 121 */ "db_optr ::= db_optr cachelast", - /* 122 */ "topic_optr ::= db_optr", - /* 123 */ "topic_optr ::= topic_optr partitions", - /* 124 */ "alter_db_optr ::=", - /* 125 */ "alter_db_optr ::= alter_db_optr replica", - /* 126 */ "alter_db_optr ::= alter_db_optr quorum", - /* 127 */ "alter_db_optr ::= alter_db_optr keep", - /* 128 */ "alter_db_optr ::= alter_db_optr blocks", - /* 129 */ "alter_db_optr ::= alter_db_optr comp", - /* 130 */ "alter_db_optr ::= alter_db_optr update", - /* 131 */ "alter_db_optr ::= alter_db_optr cachelast", - /* 132 */ "alter_db_optr ::= alter_db_optr minrows", - /* 133 */ "alter_topic_optr ::= alter_db_optr", - /* 134 */ "alter_topic_optr ::= alter_topic_optr partitions", - /* 135 */ "typename ::= ids", - /* 136 */ "typename ::= ids LP signed RP", - /* 137 */ "typename ::= ids UNSIGNED", - /* 138 */ "signed ::= INTEGER", - /* 139 */ "signed ::= PLUS INTEGER", - /* 140 */ "signed ::= MINUS INTEGER", - /* 141 */ "cmd ::= CREATE TABLE create_table_args", - /* 142 */ "cmd ::= CREATE TABLE create_stable_args", - /* 143 */ "cmd ::= CREATE STABLE create_stable_args", - /* 144 */ "cmd ::= CREATE TABLE create_table_list", - /* 145 */ "create_table_list ::= create_from_stable", - /* 146 */ "create_table_list ::= create_table_list create_from_stable", - /* 147 */ "create_table_args ::= ifnotexists ids cpxName LP columnlist RP", - /* 148 */ "create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP", - /* 149 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP", - /* 150 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP", - /* 151 */ "tagNamelist ::= tagNamelist COMMA ids", - /* 152 */ "tagNamelist ::= ids", - /* 153 */ "create_table_args ::= ifnotexists ids cpxName to_opt split_opt AS select", - /* 154 */ "to_opt ::=", - /* 155 */ "to_opt ::= TO ids cpxName", - /* 156 */ "split_opt ::=", - /* 157 */ "split_opt ::= SPLIT ids", - /* 158 */ "columnlist ::= columnlist COMMA column", - /* 159 */ "columnlist ::= column", - /* 160 */ "column ::= ids typename", - /* 161 */ "tagitemlist ::= tagitemlist COMMA tagitem", - /* 162 */ "tagitemlist ::= tagitem", - /* 163 */ "tagitem ::= INTEGER", - /* 164 */ "tagitem ::= FLOAT", - /* 165 */ "tagitem ::= STRING", - /* 166 */ "tagitem ::= BOOL", - /* 167 */ "tagitem ::= NULL", - /* 168 */ "tagitem ::= NOW", - /* 169 */ "tagitem ::= NOW PLUS VARIABLE", - /* 170 */ "tagitem ::= NOW MINUS VARIABLE", - /* 171 */ "tagitem ::= MINUS INTEGER", - /* 172 */ "tagitem ::= MINUS FLOAT", - /* 173 */ "tagitem ::= PLUS INTEGER", - /* 174 */ "tagitem ::= PLUS FLOAT", - /* 175 */ "select ::= SELECT selcollist from where_opt range_option interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt", - /* 176 */ "select ::= LP select RP", - /* 177 */ "union ::= select", - /* 178 */ "union ::= union UNION ALL select", - /* 179 */ "cmd ::= union", - /* 180 */ "select ::= SELECT selcollist", - /* 181 */ "sclp ::= selcollist COMMA", - /* 182 */ "sclp ::=", - /* 183 */ "selcollist ::= sclp distinct expr as", - /* 184 */ "selcollist ::= sclp STAR", - /* 185 */ "as ::= AS ids", - /* 186 */ "as ::= ids", - /* 187 */ "as ::=", - /* 188 */ "distinct ::= DISTINCT", - /* 189 */ "distinct ::=", - /* 190 */ "from ::= FROM tablelist", - /* 191 */ "from ::= FROM sub", - /* 192 */ "sub ::= LP union RP", - /* 193 */ "sub ::= LP union RP ids", - /* 194 */ "sub ::= sub COMMA LP union RP ids", - /* 195 */ "tablelist ::= ids cpxName", - /* 196 */ "tablelist ::= ids cpxName ids", - /* 197 */ "tablelist ::= tablelist COMMA ids cpxName", - /* 198 */ "tablelist ::= tablelist COMMA ids cpxName ids", - /* 199 */ "tmvar ::= VARIABLE", - /* 200 */ "timestamp ::= INTEGER", - /* 201 */ "timestamp ::= MINUS INTEGER", - /* 202 */ "timestamp ::= PLUS INTEGER", - /* 203 */ "timestamp ::= STRING", - /* 204 */ "timestamp ::= NOW", - /* 205 */ "timestamp ::= NOW PLUS VARIABLE", - /* 206 */ "timestamp ::= NOW MINUS VARIABLE", - /* 207 */ "range_option ::=", - /* 208 */ "range_option ::= RANGE LP timestamp COMMA timestamp RP", - /* 209 */ "interval_option ::= intervalKey LP tmvar RP", - /* 210 */ "interval_option ::= intervalKey LP tmvar COMMA tmvar RP", - /* 211 */ "interval_option ::=", - /* 212 */ "intervalKey ::= INTERVAL", - /* 213 */ "intervalKey ::= EVERY", - /* 214 */ "session_option ::=", - /* 215 */ "session_option ::= SESSION LP ids cpxName COMMA tmvar RP", - /* 216 */ "windowstate_option ::=", - /* 217 */ "windowstate_option ::= STATE_WINDOW LP ids RP", - /* 218 */ "fill_opt ::=", - /* 219 */ "fill_opt ::= FILL LP ID COMMA tagitemlist RP", - /* 220 */ "fill_opt ::= FILL LP ID RP", - /* 221 */ "sliding_opt ::= SLIDING LP tmvar RP", - /* 222 */ "sliding_opt ::=", - /* 223 */ "orderby_opt ::=", - /* 224 */ "orderby_opt ::= ORDER BY sortlist", - /* 225 */ "sortlist ::= sortlist COMMA item sortorder", - /* 226 */ "sortlist ::= sortlist COMMA arrow sortorder", - /* 227 */ "sortlist ::= item sortorder", - /* 228 */ "sortlist ::= arrow sortorder", - /* 229 */ "item ::= ID", - /* 230 */ "item ::= ID DOT ID", - /* 231 */ "sortorder ::= ASC", - /* 232 */ "sortorder ::= DESC", - /* 233 */ "sortorder ::=", - /* 234 */ "groupby_opt ::=", - /* 235 */ "groupby_opt ::= GROUP BY grouplist", - /* 236 */ "grouplist ::= grouplist COMMA item", - /* 237 */ "grouplist ::= grouplist COMMA arrow", - /* 238 */ "grouplist ::= item", - /* 239 */ "grouplist ::= arrow", - /* 240 */ "having_opt ::=", - /* 241 */ "having_opt ::= HAVING expr", - /* 242 */ "limit_opt ::=", - /* 243 */ "limit_opt ::= LIMIT signed", - /* 244 */ "limit_opt ::= LIMIT signed OFFSET signed", - /* 245 */ "limit_opt ::= LIMIT signed COMMA signed", - /* 246 */ "slimit_opt ::=", - /* 247 */ "slimit_opt ::= SLIMIT signed", - /* 248 */ "slimit_opt ::= SLIMIT signed SOFFSET signed", - /* 249 */ "slimit_opt ::= SLIMIT signed COMMA signed", - /* 250 */ "where_opt ::=", - /* 251 */ "where_opt ::= WHERE expr", - /* 252 */ "expr ::= LP expr RP", - /* 253 */ "expr ::= ID", - /* 254 */ "expr ::= ID DOT ID", - /* 255 */ "expr ::= ID DOT STAR", - /* 256 */ "expr ::= INTEGER", - /* 257 */ "expr ::= MINUS INTEGER", - /* 258 */ "expr ::= PLUS INTEGER", - /* 259 */ "expr ::= FLOAT", - /* 260 */ "expr ::= MINUS FLOAT", - /* 261 */ "expr ::= PLUS FLOAT", - /* 262 */ "expr ::= STRING", - /* 263 */ "expr ::= NOW", - /* 264 */ "expr ::= TODAY", - /* 265 */ "expr ::= VARIABLE", - /* 266 */ "expr ::= PLUS VARIABLE", - /* 267 */ "expr ::= MINUS VARIABLE", - /* 268 */ "expr ::= BOOL", - /* 269 */ "expr ::= NULL", - /* 270 */ "expr ::= ID LP exprlist RP", - /* 271 */ "expr ::= ID LP STAR RP", - /* 272 */ "expr ::= ID LP expr AS typename RP", - /* 273 */ "expr ::= expr IS NULL", - /* 274 */ "expr ::= expr IS NOT NULL", - /* 275 */ "expr ::= expr LT expr", - /* 276 */ "expr ::= expr GT expr", - /* 277 */ "expr ::= expr LE expr", - /* 278 */ "expr ::= expr GE expr", - /* 279 */ "expr ::= expr NE expr", - /* 280 */ "expr ::= expr EQ expr", - /* 281 */ "expr ::= expr BETWEEN expr AND expr", - /* 282 */ "expr ::= expr AND expr", - /* 283 */ "expr ::= expr OR expr", - /* 284 */ "expr ::= expr PLUS expr", - /* 285 */ "expr ::= expr MINUS expr", - /* 286 */ "expr ::= expr STAR expr", - /* 287 */ "expr ::= expr SLASH expr", - /* 288 */ "expr ::= expr REM expr", - /* 289 */ "expr ::= expr BITAND expr", - /* 290 */ "expr ::= expr BITOR expr", - /* 291 */ "expr ::= expr BITXOR expr", - /* 292 */ "expr ::= BITNOT expr", - /* 293 */ "expr ::= expr LSHIFT expr", - /* 294 */ "expr ::= expr RSHIFT expr", - /* 295 */ "expr ::= expr LIKE expr", - /* 296 */ "expr ::= expr MATCH expr", - /* 297 */ "expr ::= expr NMATCH expr", - /* 298 */ "expr ::= ID CONTAINS STRING", - /* 299 */ "expr ::= ID DOT ID CONTAINS STRING", - /* 300 */ "arrow ::= ID ARROW STRING", - /* 301 */ "arrow ::= ID DOT ID ARROW STRING", - /* 302 */ "expr ::= arrow", - /* 303 */ "expr ::= expr IN LP exprlist RP", - /* 304 */ "exprlist ::= exprlist COMMA expritem", - /* 305 */ "exprlist ::= expritem", - /* 306 */ "expritem ::= expr", - /* 307 */ "expritem ::=", - /* 308 */ "cmd ::= RESET QUERY CACHE", - /* 309 */ "cmd ::= SYNCDB ids REPLICA", - /* 310 */ "cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist", - /* 311 */ "cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids", - /* 312 */ "cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist", - /* 313 */ "cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist", - /* 314 */ "cmd ::= ALTER TABLE ids cpxName DROP TAG ids", - /* 315 */ "cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids", - /* 316 */ "cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem", - /* 317 */ "cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist", - /* 318 */ "cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist", - /* 319 */ "cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids", - /* 320 */ "cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist", - /* 321 */ "cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist", - /* 322 */ "cmd ::= ALTER STABLE ids cpxName DROP TAG ids", - /* 323 */ "cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids", - /* 324 */ "cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem", - /* 325 */ "cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist", - /* 326 */ "cmd ::= KILL CONNECTION INTEGER", - /* 327 */ "cmd ::= KILL STREAM INTEGER COLON INTEGER", - /* 328 */ "cmd ::= KILL QUERY INTEGER COLON INTEGER", - /* 329 */ "cmd ::= DELETE FROM ifexists ids cpxName where_opt", + /* 29 */ "cmd ::= SHOW dbPrefix STATUS", + /* 30 */ "cmd ::= SHOW CLUSTER STATUS", + /* 31 */ "cmd ::= DROP TABLE ifexists ids cpxName", + /* 32 */ "cmd ::= DROP STABLE ifexists ids cpxName", + /* 33 */ "cmd ::= DROP DATABASE ifexists ids", + /* 34 */ "cmd ::= DROP TOPIC ifexists ids", + /* 35 */ "cmd ::= DROP FUNCTION ids", + /* 36 */ "cmd ::= DROP DNODE ids", + /* 37 */ "cmd ::= DROP USER ids", + /* 38 */ "cmd ::= DROP ACCOUNT ids", + /* 39 */ "cmd ::= USE ids", + /* 40 */ "cmd ::= DESCRIBE ids cpxName", + /* 41 */ "cmd ::= DESC ids cpxName", + /* 42 */ "cmd ::= ALTER USER ids PASS ids", + /* 43 */ "cmd ::= ALTER USER ids PRIVILEGE ids", + /* 44 */ "cmd ::= ALTER USER ids TAGS ids", + /* 45 */ "cmd ::= ALTER DNODE ids ids", + /* 46 */ "cmd ::= ALTER DNODE ids ids ids", + /* 47 */ "cmd ::= ALTER LOCAL ids", + /* 48 */ "cmd ::= ALTER LOCAL ids ids", + /* 49 */ "cmd ::= ALTER DATABASE ids alter_db_optr", + /* 50 */ "cmd ::= ALTER TOPIC ids alter_topic_optr", + /* 51 */ "cmd ::= ALTER ACCOUNT ids acct_optr", + /* 52 */ "cmd ::= ALTER ACCOUNT ids PASS ids acct_optr", + /* 53 */ "cmd ::= COMPACT VNODES IN LP exprlist RP", + /* 54 */ "ids ::= ID", + /* 55 */ "ids ::= STRING", + /* 56 */ "ifexists ::= IF EXISTS", + /* 57 */ "ifexists ::=", + /* 58 */ "ifnotexists ::= IF NOT EXISTS", + /* 59 */ "ifnotexists ::=", + /* 60 */ "cmd ::= CREATE DNODE ids", + /* 61 */ "cmd ::= CREATE ACCOUNT ids PASS ids acct_optr", + /* 62 */ "cmd ::= CREATE DATABASE ifnotexists ids db_optr", + /* 63 */ "cmd ::= CREATE TOPIC ifnotexists ids topic_optr", + /* 64 */ "cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize", + /* 65 */ "cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize", + /* 66 */ "cmd ::= CREATE USER ids PASS ids", + /* 67 */ "cmd ::= CREATE USER ids PASS ids TAGS ids", + /* 68 */ "bufsize ::=", + /* 69 */ "bufsize ::= BUFSIZE INTEGER", + /* 70 */ "pps ::=", + /* 71 */ "pps ::= PPS INTEGER", + /* 72 */ "tseries ::=", + /* 73 */ "tseries ::= TSERIES INTEGER", + /* 74 */ "dbs ::=", + /* 75 */ "dbs ::= DBS INTEGER", + /* 76 */ "streams ::=", + /* 77 */ "streams ::= STREAMS INTEGER", + /* 78 */ "storage ::=", + /* 79 */ "storage ::= STORAGE INTEGER", + /* 80 */ "qtime ::=", + /* 81 */ "qtime ::= QTIME INTEGER", + /* 82 */ "users ::=", + /* 83 */ "users ::= USERS INTEGER", + /* 84 */ "conns ::=", + /* 85 */ "conns ::= CONNS INTEGER", + /* 86 */ "state ::=", + /* 87 */ "state ::= STATE ids", + /* 88 */ "acct_optr ::= pps tseries storage streams qtime dbs users conns state", + /* 89 */ "intitemlist ::= intitemlist COMMA intitem", + /* 90 */ "intitemlist ::= intitem", + /* 91 */ "intitem ::= INTEGER", + /* 92 */ "keep ::= KEEP intitemlist", + /* 93 */ "cache ::= CACHE INTEGER", + /* 94 */ "replica ::= REPLICA INTEGER", + /* 95 */ "quorum ::= QUORUM INTEGER", + /* 96 */ "days ::= DAYS INTEGER", + /* 97 */ "minrows ::= MINROWS INTEGER", + /* 98 */ "maxrows ::= MAXROWS INTEGER", + /* 99 */ "blocks ::= BLOCKS INTEGER", + /* 100 */ "ctime ::= CTIME INTEGER", + /* 101 */ "wal ::= WAL INTEGER", + /* 102 */ "fsync ::= FSYNC INTEGER", + /* 103 */ "comp ::= COMP INTEGER", + /* 104 */ "prec ::= PRECISION STRING", + /* 105 */ "update ::= UPDATE INTEGER", + /* 106 */ "cachelast ::= CACHELAST INTEGER", + /* 107 */ "partitions ::= PARTITIONS INTEGER", + /* 108 */ "db_optr ::=", + /* 109 */ "db_optr ::= db_optr cache", + /* 110 */ "db_optr ::= db_optr replica", + /* 111 */ "db_optr ::= db_optr quorum", + /* 112 */ "db_optr ::= db_optr days", + /* 113 */ "db_optr ::= db_optr minrows", + /* 114 */ "db_optr ::= db_optr maxrows", + /* 115 */ "db_optr ::= db_optr blocks", + /* 116 */ "db_optr ::= db_optr ctime", + /* 117 */ "db_optr ::= db_optr wal", + /* 118 */ "db_optr ::= db_optr fsync", + /* 119 */ "db_optr ::= db_optr comp", + /* 120 */ "db_optr ::= db_optr prec", + /* 121 */ "db_optr ::= db_optr keep", + /* 122 */ "db_optr ::= db_optr update", + /* 123 */ "db_optr ::= db_optr cachelast", + /* 124 */ "topic_optr ::= db_optr", + /* 125 */ "topic_optr ::= topic_optr partitions", + /* 126 */ "alter_db_optr ::=", + /* 127 */ "alter_db_optr ::= alter_db_optr replica", + /* 128 */ "alter_db_optr ::= alter_db_optr quorum", + /* 129 */ "alter_db_optr ::= alter_db_optr keep", + /* 130 */ "alter_db_optr ::= alter_db_optr blocks", + /* 131 */ "alter_db_optr ::= alter_db_optr comp", + /* 132 */ "alter_db_optr ::= alter_db_optr update", + /* 133 */ "alter_db_optr ::= alter_db_optr cachelast", + /* 134 */ "alter_db_optr ::= alter_db_optr minrows", + /* 135 */ "alter_topic_optr ::= alter_db_optr", + /* 136 */ "alter_topic_optr ::= alter_topic_optr partitions", + /* 137 */ "typename ::= ids", + /* 138 */ "typename ::= ids LP signed RP", + /* 139 */ "typename ::= ids UNSIGNED", + /* 140 */ "signed ::= INTEGER", + /* 141 */ "signed ::= PLUS INTEGER", + /* 142 */ "signed ::= MINUS INTEGER", + /* 143 */ "cmd ::= CREATE TABLE create_table_args", + /* 144 */ "cmd ::= CREATE TABLE create_stable_args", + /* 145 */ "cmd ::= CREATE STABLE create_stable_args", + /* 146 */ "cmd ::= CREATE TABLE create_table_list", + /* 147 */ "create_table_list ::= create_from_stable", + /* 148 */ "create_table_list ::= create_table_list create_from_stable", + /* 149 */ "create_table_args ::= ifnotexists ids cpxName LP columnlist RP", + /* 150 */ "create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP", + /* 151 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP", + /* 152 */ "create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP", + /* 153 */ "tagNamelist ::= tagNamelist COMMA ids", + /* 154 */ "tagNamelist ::= ids", + /* 155 */ "create_table_args ::= ifnotexists ids cpxName to_opt split_opt AS select", + /* 156 */ "to_opt ::=", + /* 157 */ "to_opt ::= TO ids cpxName", + /* 158 */ "split_opt ::=", + /* 159 */ "split_opt ::= SPLIT ids", + /* 160 */ "columnlist ::= columnlist COMMA column", + /* 161 */ "columnlist ::= column", + /* 162 */ "column ::= ids typename", + /* 163 */ "tagitemlist ::= tagitemlist COMMA tagitem", + /* 164 */ "tagitemlist ::= tagitem", + /* 165 */ "tagitem ::= INTEGER", + /* 166 */ "tagitem ::= FLOAT", + /* 167 */ "tagitem ::= STRING", + /* 168 */ "tagitem ::= BOOL", + /* 169 */ "tagitem ::= NULL", + /* 170 */ "tagitem ::= NOW", + /* 171 */ "tagitem ::= NOW PLUS VARIABLE", + /* 172 */ "tagitem ::= NOW MINUS VARIABLE", + /* 173 */ "tagitem ::= MINUS INTEGER", + /* 174 */ "tagitem ::= MINUS FLOAT", + /* 175 */ "tagitem ::= PLUS INTEGER", + /* 176 */ "tagitem ::= PLUS FLOAT", + /* 177 */ "select ::= SELECT selcollist from where_opt range_option interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt", + /* 178 */ "select ::= LP select RP", + /* 179 */ "union ::= select", + /* 180 */ "union ::= union UNION ALL select", + /* 181 */ "cmd ::= union", + /* 182 */ "select ::= SELECT selcollist", + /* 183 */ "sclp ::= selcollist COMMA", + /* 184 */ "sclp ::=", + /* 185 */ "selcollist ::= sclp distinct expr as", + /* 186 */ "selcollist ::= sclp STAR", + /* 187 */ "as ::= AS ids", + /* 188 */ "as ::= ids", + /* 189 */ "as ::=", + /* 190 */ "distinct ::= DISTINCT", + /* 191 */ "distinct ::=", + /* 192 */ "from ::= FROM tablelist", + /* 193 */ "from ::= FROM sub", + /* 194 */ "sub ::= LP union RP", + /* 195 */ "sub ::= LP union RP ids", + /* 196 */ "sub ::= sub COMMA LP union RP ids", + /* 197 */ "tablelist ::= ids cpxName", + /* 198 */ "tablelist ::= ids cpxName ids", + /* 199 */ "tablelist ::= tablelist COMMA ids cpxName", + /* 200 */ "tablelist ::= tablelist COMMA ids cpxName ids", + /* 201 */ "tmvar ::= VARIABLE", + /* 202 */ "timestamp ::= INTEGER", + /* 203 */ "timestamp ::= MINUS INTEGER", + /* 204 */ "timestamp ::= PLUS INTEGER", + /* 205 */ "timestamp ::= STRING", + /* 206 */ "timestamp ::= NOW", + /* 207 */ "timestamp ::= NOW PLUS VARIABLE", + /* 208 */ "timestamp ::= NOW MINUS VARIABLE", + /* 209 */ "range_option ::=", + /* 210 */ "range_option ::= RANGE LP timestamp COMMA timestamp RP", + /* 211 */ "interval_option ::= intervalKey LP tmvar RP", + /* 212 */ "interval_option ::= intervalKey LP tmvar COMMA tmvar RP", + /* 213 */ "interval_option ::=", + /* 214 */ "intervalKey ::= INTERVAL", + /* 215 */ "intervalKey ::= EVERY", + /* 216 */ "session_option ::=", + /* 217 */ "session_option ::= SESSION LP ids cpxName COMMA tmvar RP", + /* 218 */ "windowstate_option ::=", + /* 219 */ "windowstate_option ::= STATE_WINDOW LP ids RP", + /* 220 */ "fill_opt ::=", + /* 221 */ "fill_opt ::= FILL LP ID COMMA tagitemlist RP", + /* 222 */ "fill_opt ::= FILL LP ID RP", + /* 223 */ "sliding_opt ::= SLIDING LP tmvar RP", + /* 224 */ "sliding_opt ::=", + /* 225 */ "orderby_opt ::=", + /* 226 */ "orderby_opt ::= ORDER BY sortlist", + /* 227 */ "sortlist ::= sortlist COMMA item sortorder", + /* 228 */ "sortlist ::= sortlist COMMA arrow sortorder", + /* 229 */ "sortlist ::= item sortorder", + /* 230 */ "sortlist ::= arrow sortorder", + /* 231 */ "item ::= ID", + /* 232 */ "item ::= ID DOT ID", + /* 233 */ "sortorder ::= ASC", + /* 234 */ "sortorder ::= DESC", + /* 235 */ "sortorder ::=", + /* 236 */ "groupby_opt ::=", + /* 237 */ "groupby_opt ::= GROUP BY grouplist", + /* 238 */ "grouplist ::= grouplist COMMA item", + /* 239 */ "grouplist ::= grouplist COMMA arrow", + /* 240 */ "grouplist ::= item", + /* 241 */ "grouplist ::= arrow", + /* 242 */ "having_opt ::=", + /* 243 */ "having_opt ::= HAVING expr", + /* 244 */ "limit_opt ::=", + /* 245 */ "limit_opt ::= LIMIT signed", + /* 246 */ "limit_opt ::= LIMIT signed OFFSET signed", + /* 247 */ "limit_opt ::= LIMIT signed COMMA signed", + /* 248 */ "slimit_opt ::=", + /* 249 */ "slimit_opt ::= SLIMIT signed", + /* 250 */ "slimit_opt ::= SLIMIT signed SOFFSET signed", + /* 251 */ "slimit_opt ::= SLIMIT signed COMMA signed", + /* 252 */ "where_opt ::=", + /* 253 */ "where_opt ::= WHERE expr", + /* 254 */ "expr ::= LP expr RP", + /* 255 */ "expr ::= ID", + /* 256 */ "expr ::= ID DOT ID", + /* 257 */ "expr ::= ID DOT STAR", + /* 258 */ "expr ::= INTEGER", + /* 259 */ "expr ::= MINUS INTEGER", + /* 260 */ "expr ::= PLUS INTEGER", + /* 261 */ "expr ::= FLOAT", + /* 262 */ "expr ::= MINUS FLOAT", + /* 263 */ "expr ::= PLUS FLOAT", + /* 264 */ "expr ::= STRING", + /* 265 */ "expr ::= NOW", + /* 266 */ "expr ::= TODAY", + /* 267 */ "expr ::= VARIABLE", + /* 268 */ "expr ::= PLUS VARIABLE", + /* 269 */ "expr ::= MINUS VARIABLE", + /* 270 */ "expr ::= BOOL", + /* 271 */ "expr ::= NULL", + /* 272 */ "expr ::= ID LP exprlist RP", + /* 273 */ "expr ::= ID LP STAR RP", + /* 274 */ "expr ::= ID LP expr AS typename RP", + /* 275 */ "expr ::= expr IS NULL", + /* 276 */ "expr ::= expr IS NOT NULL", + /* 277 */ "expr ::= expr LT expr", + /* 278 */ "expr ::= expr GT expr", + /* 279 */ "expr ::= expr LE expr", + /* 280 */ "expr ::= expr GE expr", + /* 281 */ "expr ::= expr NE expr", + /* 282 */ "expr ::= expr EQ expr", + /* 283 */ "expr ::= expr BETWEEN expr AND expr", + /* 284 */ "expr ::= expr AND expr", + /* 285 */ "expr ::= expr OR expr", + /* 286 */ "expr ::= expr PLUS expr", + /* 287 */ "expr ::= expr MINUS expr", + /* 288 */ "expr ::= expr STAR expr", + /* 289 */ "expr ::= expr SLASH expr", + /* 290 */ "expr ::= expr REM expr", + /* 291 */ "expr ::= expr BITAND expr", + /* 292 */ "expr ::= expr BITOR expr", + /* 293 */ "expr ::= expr BITXOR expr", + /* 294 */ "expr ::= BITNOT expr", + /* 295 */ "expr ::= expr LSHIFT expr", + /* 296 */ "expr ::= expr RSHIFT expr", + /* 297 */ "expr ::= expr LIKE expr", + /* 298 */ "expr ::= expr MATCH expr", + /* 299 */ "expr ::= expr NMATCH expr", + /* 300 */ "expr ::= ID CONTAINS STRING", + /* 301 */ "expr ::= ID DOT ID CONTAINS STRING", + /* 302 */ "arrow ::= ID ARROW STRING", + /* 303 */ "arrow ::= ID DOT ID ARROW STRING", + /* 304 */ "expr ::= arrow", + /* 305 */ "expr ::= expr IN LP exprlist RP", + /* 306 */ "exprlist ::= exprlist COMMA expritem", + /* 307 */ "exprlist ::= expritem", + /* 308 */ "expritem ::= expr", + /* 309 */ "expritem ::=", + /* 310 */ "cmd ::= RESET QUERY CACHE", + /* 311 */ "cmd ::= SYNCDB ids REPLICA", + /* 312 */ "cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist", + /* 313 */ "cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids", + /* 314 */ "cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist", + /* 315 */ "cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist", + /* 316 */ "cmd ::= ALTER TABLE ids cpxName DROP TAG ids", + /* 317 */ "cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids", + /* 318 */ "cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem", + /* 319 */ "cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist", + /* 320 */ "cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist", + /* 321 */ "cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids", + /* 322 */ "cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist", + /* 323 */ "cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist", + /* 324 */ "cmd ::= ALTER STABLE ids cpxName DROP TAG ids", + /* 325 */ "cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids", + /* 326 */ "cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem", + /* 327 */ "cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist", + /* 328 */ "cmd ::= KILL CONNECTION INTEGER", + /* 329 */ "cmd ::= KILL STREAM INTEGER COLON INTEGER", + /* 330 */ "cmd ::= KILL QUERY INTEGER COLON INTEGER", + /* 331 */ "cmd ::= DELETE FROM ifexists ids cpxName where_opt", }; #endif /* NDEBUG */ @@ -1538,29 +1533,28 @@ static int yyGrowStack(yyParser *p){ /* Initialize a new parser that has already been allocated. */ -void ParseInit(void *yypRawParser ParseCTX_PDECL){ - yyParser *yypParser = (yyParser*)yypRawParser; - ParseCTX_STORE +void ParseInit(void *yypParser){ + yyParser *pParser = (yyParser*)yypParser; #ifdef YYTRACKMAXSTACKDEPTH - yypParser->yyhwm = 0; + pParser->yyhwm = 0; #endif #if YYSTACKDEPTH<=0 - yypParser->yytos = NULL; - yypParser->yystack = NULL; - yypParser->yystksz = 0; - if( yyGrowStack(yypParser) ){ - yypParser->yystack = &yypParser->yystk0; - yypParser->yystksz = 1; + pParser->yytos = NULL; + pParser->yystack = NULL; + pParser->yystksz = 0; + if( yyGrowStack(pParser) ){ + pParser->yystack = &pParser->yystk0; + pParser->yystksz = 1; } #endif #ifndef YYNOERRORRECOVERY - yypParser->yyerrcnt = -1; + pParser->yyerrcnt = -1; #endif - yypParser->yytos = yypParser->yystack; - yypParser->yystack[0].stateno = 0; - yypParser->yystack[0].major = 0; + pParser->yytos = pParser->yystack; + pParser->yystack[0].stateno = 0; + pParser->yystack[0].major = 0; #if YYSTACKDEPTH>0 - yypParser->yystackEnd = &yypParser->yystack[YYSTACKDEPTH-1]; + pParser->yystackEnd = &pParser->yystack[YYSTACKDEPTH-1]; #endif } @@ -1577,14 +1571,11 @@ void ParseInit(void *yypRawParser ParseCTX_PDECL){ ** A pointer to a parser. This pointer is used in subsequent calls ** to Parse and ParseFree. */ -void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE) ParseCTX_PDECL){ - yyParser *yypParser; - yypParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) ); - if( yypParser ){ - ParseCTX_STORE - ParseInit(yypParser ParseCTX_PARAM); - } - return (void*)yypParser; +void *ParseAlloc(void *(*mallocProc)(YYMALLOCARGTYPE)){ + yyParser *pParser; + pParser = (yyParser*)(*mallocProc)( (YYMALLOCARGTYPE)sizeof(yyParser) ); + if( pParser ) ParseInit(pParser); + return pParser; } #endif /* Parse_ENGINEALWAYSONSTACK */ @@ -1601,8 +1592,7 @@ static void yy_destructor( YYCODETYPE yymajor, /* Type code for object to destroy */ YYMINORTYPE *yypminor /* The object to be destroyed */ ){ - ParseARG_FETCH - ParseCTX_FETCH + ParseARG_FETCH; switch( yymajor ){ /* Here is inserted the actions which take place when a ** terminal or non-terminal is destroyed. This can happen @@ -1615,57 +1605,57 @@ static void yy_destructor( ** inside the C code. */ /********* Begin destructor definitions ***************************************/ - case 215: /* exprlist */ - case 262: /* selcollist */ - case 277: /* sclp */ + case 217: /* exprlist */ + case 264: /* selcollist */ + case 279: /* sclp */ { -tSqlExprListDestroy((yypminor->yy333)); +tSqlExprListDestroy((yypminor->yy249)); } break; - case 230: /* intitemlist */ - case 232: /* keep */ - case 253: /* columnlist */ - case 254: /* tagitemlist */ - case 255: /* tagNamelist */ - case 270: /* fill_opt */ - case 271: /* groupby_opt */ - case 273: /* orderby_opt */ - case 286: /* sortlist */ - case 290: /* grouplist */ -{ -taosArrayDestroy(&(yypminor->yy333)); + case 232: /* intitemlist */ + case 234: /* keep */ + case 255: /* columnlist */ + case 256: /* tagitemlist */ + case 257: /* tagNamelist */ + case 272: /* fill_opt */ + case 273: /* groupby_opt */ + case 275: /* orderby_opt */ + case 288: /* sortlist */ + case 292: /* grouplist */ +{ +taosArrayDestroy(&(yypminor->yy249)); } break; - case 251: /* create_table_list */ + case 253: /* create_table_list */ { -destroyCreateTableSql((yypminor->yy78)); +destroyCreateTableSql((yypminor->yy494)); } break; - case 258: /* select */ + case 260: /* select */ { -destroySqlNode((yypminor->yy144)); +destroySqlNode((yypminor->yy320)); } break; - case 263: /* from */ - case 281: /* tablelist */ - case 282: /* sub */ + case 265: /* from */ + case 283: /* tablelist */ + case 284: /* sub */ { -destroyRelationInfo((yypminor->yy516)); +destroyRelationInfo((yypminor->yy52)); } break; - case 264: /* where_opt */ - case 272: /* having_opt */ - case 279: /* expr */ - case 284: /* timestamp */ - case 289: /* arrow */ - case 291: /* expritem */ + case 266: /* where_opt */ + case 274: /* having_opt */ + case 281: /* expr */ + case 286: /* timestamp */ + case 291: /* arrow */ + case 293: /* expritem */ { -tSqlExprDestroy((yypminor->yy194)); +tSqlExprDestroy((yypminor->yy370)); } break; - case 276: /* union */ + case 278: /* union */ { -destroyAllSqlNode((yypminor->yy333)); +destroyAllSqlNode((yypminor->yy249)); } break; /********* End destructor definitions *****************************************/ @@ -1777,12 +1767,13 @@ int ParseCoverage(FILE *out){ ** Find the appropriate action for a parser given the terminal ** look-ahead token iLookAhead. */ -static YYACTIONTYPE yy_find_shift_action( - YYCODETYPE iLookAhead, /* The look-ahead token */ - YYACTIONTYPE stateno /* Current state number */ +static unsigned int yy_find_shift_action( + yyParser *pParser, /* The parser */ + YYCODETYPE iLookAhead /* The look-ahead token */ ){ int i; - + int stateno = pParser->yytos->stateno; + if( stateno>YY_MAX_SHIFT ) return stateno; assert( stateno <= YY_SHIFT_COUNT ); #if defined(YYCOVERAGE) @@ -1790,19 +1781,15 @@ static YYACTIONTYPE yy_find_shift_action( #endif do{ i = yy_shift_ofst[stateno]; - assert( i>=0 ); - assert( i<=YY_ACTTAB_COUNT ); - assert( i+YYNTOKEN<=(int)YY_NLOOKAHEAD ); + assert( i>=0 && i+YYNTOKEN<=sizeof(yy_lookahead)/sizeof(yy_lookahead[0]) ); assert( iLookAhead!=YYNOCODE ); assert( iLookAhead < YYNTOKEN ); i += iLookAhead; - assert( i<(int)YY_NLOOKAHEAD ); if( yy_lookahead[i]!=iLookAhead ){ #ifdef YYFALLBACK YYCODETYPE iFallback; /* Fallback token */ - assert( iLookAhead %s\n", @@ -1817,8 +1804,15 @@ static YYACTIONTYPE yy_find_shift_action( #ifdef YYWILDCARD { int j = i - iLookAhead + YYWILDCARD; - assert( j<(int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0])) ); - if( yy_lookahead[j]==YYWILDCARD && iLookAhead>0 ){ + if( +#if YY_SHIFT_MIN+YYWILDCARD<0 + j>=0 && +#endif +#if YY_SHIFT_MAX+YYWILDCARD>=YY_ACTTAB_COUNT + j0 + ){ #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE, "%sWILDCARD %s => %s\n", @@ -1832,7 +1826,6 @@ static YYACTIONTYPE yy_find_shift_action( #endif /* YYWILDCARD */ return yy_default[stateno]; }else{ - assert( i>=0 && iyytos; - yytos->stateno = yyNewState; - yytos->major = yyMajor; + yytos->stateno = (YYACTIONTYPE)yyNewState; + yytos->major = (YYCODETYPE)yyMajor; yytos->minor.yy0 = yyMinor; yyTraceShift(yypParser, yyNewState, "Shift"); } -/* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side -** of that rule */ -static const YYCODETYPE yyRuleInfoLhs[] = { - 206, /* (0) program ::= cmd */ - 207, /* (1) cmd ::= SHOW DATABASES */ - 207, /* (2) cmd ::= SHOW TOPICS */ - 207, /* (3) cmd ::= SHOW FUNCTIONS */ - 207, /* (4) cmd ::= SHOW MNODES */ - 207, /* (5) cmd ::= SHOW DNODES */ - 207, /* (6) cmd ::= SHOW ACCOUNTS */ - 207, /* (7) cmd ::= SHOW USERS */ - 207, /* (8) cmd ::= SHOW MODULES */ - 207, /* (9) cmd ::= SHOW QUERIES */ - 207, /* (10) cmd ::= SHOW CONNECTIONS */ - 207, /* (11) cmd ::= SHOW STREAMS */ - 207, /* (12) cmd ::= SHOW VARIABLES */ - 207, /* (13) cmd ::= SHOW SCORES */ - 207, /* (14) cmd ::= SHOW GRANTS */ - 207, /* (15) cmd ::= SHOW VNODES */ - 207, /* (16) cmd ::= SHOW VNODES ids */ - 209, /* (17) dbPrefix ::= */ - 209, /* (18) dbPrefix ::= ids DOT */ - 210, /* (19) cpxName ::= */ - 210, /* (20) cpxName ::= DOT ids */ - 207, /* (21) cmd ::= SHOW CREATE TABLE ids cpxName */ - 207, /* (22) cmd ::= SHOW CREATE STABLE ids cpxName */ - 207, /* (23) cmd ::= SHOW CREATE DATABASE ids */ - 207, /* (24) cmd ::= SHOW dbPrefix TABLES */ - 207, /* (25) cmd ::= SHOW dbPrefix TABLES LIKE STRING */ - 207, /* (26) cmd ::= SHOW dbPrefix STABLES */ - 207, /* (27) cmd ::= SHOW dbPrefix STABLES LIKE STRING */ - 207, /* (28) cmd ::= SHOW dbPrefix VGROUPS */ - 207, /* (29) cmd ::= DROP TABLE ifexists ids cpxName */ - 207, /* (30) cmd ::= DROP STABLE ifexists ids cpxName */ - 207, /* (31) cmd ::= DROP DATABASE ifexists ids */ - 207, /* (32) cmd ::= DROP TOPIC ifexists ids */ - 207, /* (33) cmd ::= DROP FUNCTION ids */ - 207, /* (34) cmd ::= DROP DNODE ids */ - 207, /* (35) cmd ::= DROP USER ids */ - 207, /* (36) cmd ::= DROP ACCOUNT ids */ - 207, /* (37) cmd ::= USE ids */ - 207, /* (38) cmd ::= DESCRIBE ids cpxName */ - 207, /* (39) cmd ::= DESC ids cpxName */ - 207, /* (40) cmd ::= ALTER USER ids PASS ids */ - 207, /* (41) cmd ::= ALTER USER ids PRIVILEGE ids */ - 207, /* (42) cmd ::= ALTER USER ids TAGS ids */ - 207, /* (43) cmd ::= ALTER DNODE ids ids */ - 207, /* (44) cmd ::= ALTER DNODE ids ids ids */ - 207, /* (45) cmd ::= ALTER LOCAL ids */ - 207, /* (46) cmd ::= ALTER LOCAL ids ids */ - 207, /* (47) cmd ::= ALTER DATABASE ids alter_db_optr */ - 207, /* (48) cmd ::= ALTER TOPIC ids alter_topic_optr */ - 207, /* (49) cmd ::= ALTER ACCOUNT ids acct_optr */ - 207, /* (50) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */ - 207, /* (51) cmd ::= COMPACT VNODES IN LP exprlist RP */ - 208, /* (52) ids ::= ID */ - 208, /* (53) ids ::= STRING */ - 211, /* (54) ifexists ::= IF EXISTS */ - 211, /* (55) ifexists ::= */ - 216, /* (56) ifnotexists ::= IF NOT EXISTS */ - 216, /* (57) ifnotexists ::= */ - 207, /* (58) cmd ::= CREATE DNODE ids */ - 207, /* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */ - 207, /* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */ - 207, /* (61) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ - 207, /* (62) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ - 207, /* (63) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ - 207, /* (64) cmd ::= CREATE USER ids PASS ids */ - 207, /* (65) cmd ::= CREATE USER ids PASS ids TAGS ids */ - 220, /* (66) bufsize ::= */ - 220, /* (67) bufsize ::= BUFSIZE INTEGER */ - 221, /* (68) pps ::= */ - 221, /* (69) pps ::= PPS INTEGER */ - 222, /* (70) tseries ::= */ - 222, /* (71) tseries ::= TSERIES INTEGER */ - 223, /* (72) dbs ::= */ - 223, /* (73) dbs ::= DBS INTEGER */ - 224, /* (74) streams ::= */ - 224, /* (75) streams ::= STREAMS INTEGER */ - 225, /* (76) storage ::= */ - 225, /* (77) storage ::= STORAGE INTEGER */ - 226, /* (78) qtime ::= */ - 226, /* (79) qtime ::= QTIME INTEGER */ - 227, /* (80) users ::= */ - 227, /* (81) users ::= USERS INTEGER */ - 228, /* (82) conns ::= */ - 228, /* (83) conns ::= CONNS INTEGER */ - 229, /* (84) state ::= */ - 229, /* (85) state ::= STATE ids */ - 214, /* (86) acct_optr ::= pps tseries storage streams qtime dbs users conns state */ - 230, /* (87) intitemlist ::= intitemlist COMMA intitem */ - 230, /* (88) intitemlist ::= intitem */ - 231, /* (89) intitem ::= INTEGER */ - 232, /* (90) keep ::= KEEP intitemlist */ - 233, /* (91) cache ::= CACHE INTEGER */ - 234, /* (92) replica ::= REPLICA INTEGER */ - 235, /* (93) quorum ::= QUORUM INTEGER */ - 236, /* (94) days ::= DAYS INTEGER */ - 237, /* (95) minrows ::= MINROWS INTEGER */ - 238, /* (96) maxrows ::= MAXROWS INTEGER */ - 239, /* (97) blocks ::= BLOCKS INTEGER */ - 240, /* (98) ctime ::= CTIME INTEGER */ - 241, /* (99) wal ::= WAL INTEGER */ - 242, /* (100) fsync ::= FSYNC INTEGER */ - 243, /* (101) comp ::= COMP INTEGER */ - 244, /* (102) prec ::= PRECISION STRING */ - 245, /* (103) update ::= UPDATE INTEGER */ - 246, /* (104) cachelast ::= CACHELAST INTEGER */ - 247, /* (105) partitions ::= PARTITIONS INTEGER */ - 217, /* (106) db_optr ::= */ - 217, /* (107) db_optr ::= db_optr cache */ - 217, /* (108) db_optr ::= db_optr replica */ - 217, /* (109) db_optr ::= db_optr quorum */ - 217, /* (110) db_optr ::= db_optr days */ - 217, /* (111) db_optr ::= db_optr minrows */ - 217, /* (112) db_optr ::= db_optr maxrows */ - 217, /* (113) db_optr ::= db_optr blocks */ - 217, /* (114) db_optr ::= db_optr ctime */ - 217, /* (115) db_optr ::= db_optr wal */ - 217, /* (116) db_optr ::= db_optr fsync */ - 217, /* (117) db_optr ::= db_optr comp */ - 217, /* (118) db_optr ::= db_optr prec */ - 217, /* (119) db_optr ::= db_optr keep */ - 217, /* (120) db_optr ::= db_optr update */ - 217, /* (121) db_optr ::= db_optr cachelast */ - 218, /* (122) topic_optr ::= db_optr */ - 218, /* (123) topic_optr ::= topic_optr partitions */ - 212, /* (124) alter_db_optr ::= */ - 212, /* (125) alter_db_optr ::= alter_db_optr replica */ - 212, /* (126) alter_db_optr ::= alter_db_optr quorum */ - 212, /* (127) alter_db_optr ::= alter_db_optr keep */ - 212, /* (128) alter_db_optr ::= alter_db_optr blocks */ - 212, /* (129) alter_db_optr ::= alter_db_optr comp */ - 212, /* (130) alter_db_optr ::= alter_db_optr update */ - 212, /* (131) alter_db_optr ::= alter_db_optr cachelast */ - 212, /* (132) alter_db_optr ::= alter_db_optr minrows */ - 213, /* (133) alter_topic_optr ::= alter_db_optr */ - 213, /* (134) alter_topic_optr ::= alter_topic_optr partitions */ - 219, /* (135) typename ::= ids */ - 219, /* (136) typename ::= ids LP signed RP */ - 219, /* (137) typename ::= ids UNSIGNED */ - 248, /* (138) signed ::= INTEGER */ - 248, /* (139) signed ::= PLUS INTEGER */ - 248, /* (140) signed ::= MINUS INTEGER */ - 207, /* (141) cmd ::= CREATE TABLE create_table_args */ - 207, /* (142) cmd ::= CREATE TABLE create_stable_args */ - 207, /* (143) cmd ::= CREATE STABLE create_stable_args */ - 207, /* (144) cmd ::= CREATE TABLE create_table_list */ - 251, /* (145) create_table_list ::= create_from_stable */ - 251, /* (146) create_table_list ::= create_table_list create_from_stable */ - 249, /* (147) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ - 250, /* (148) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ - 252, /* (149) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ - 252, /* (150) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ - 255, /* (151) tagNamelist ::= tagNamelist COMMA ids */ - 255, /* (152) tagNamelist ::= ids */ - 249, /* (153) create_table_args ::= ifnotexists ids cpxName to_opt split_opt AS select */ - 256, /* (154) to_opt ::= */ - 256, /* (155) to_opt ::= TO ids cpxName */ - 257, /* (156) split_opt ::= */ - 257, /* (157) split_opt ::= SPLIT ids */ - 253, /* (158) columnlist ::= columnlist COMMA column */ - 253, /* (159) columnlist ::= column */ - 260, /* (160) column ::= ids typename */ - 254, /* (161) tagitemlist ::= tagitemlist COMMA tagitem */ - 254, /* (162) tagitemlist ::= tagitem */ - 261, /* (163) tagitem ::= INTEGER */ - 261, /* (164) tagitem ::= FLOAT */ - 261, /* (165) tagitem ::= STRING */ - 261, /* (166) tagitem ::= BOOL */ - 261, /* (167) tagitem ::= NULL */ - 261, /* (168) tagitem ::= NOW */ - 261, /* (169) tagitem ::= NOW PLUS VARIABLE */ - 261, /* (170) tagitem ::= NOW MINUS VARIABLE */ - 261, /* (171) tagitem ::= MINUS INTEGER */ - 261, /* (172) tagitem ::= MINUS FLOAT */ - 261, /* (173) tagitem ::= PLUS INTEGER */ - 261, /* (174) tagitem ::= PLUS FLOAT */ - 258, /* (175) select ::= SELECT selcollist from where_opt range_option interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */ - 258, /* (176) select ::= LP select RP */ - 276, /* (177) union ::= select */ - 276, /* (178) union ::= union UNION ALL select */ - 207, /* (179) cmd ::= union */ - 258, /* (180) select ::= SELECT selcollist */ - 277, /* (181) sclp ::= selcollist COMMA */ - 277, /* (182) sclp ::= */ - 262, /* (183) selcollist ::= sclp distinct expr as */ - 262, /* (184) selcollist ::= sclp STAR */ - 280, /* (185) as ::= AS ids */ - 280, /* (186) as ::= ids */ - 280, /* (187) as ::= */ - 278, /* (188) distinct ::= DISTINCT */ - 278, /* (189) distinct ::= */ - 263, /* (190) from ::= FROM tablelist */ - 263, /* (191) from ::= FROM sub */ - 282, /* (192) sub ::= LP union RP */ - 282, /* (193) sub ::= LP union RP ids */ - 282, /* (194) sub ::= sub COMMA LP union RP ids */ - 281, /* (195) tablelist ::= ids cpxName */ - 281, /* (196) tablelist ::= ids cpxName ids */ - 281, /* (197) tablelist ::= tablelist COMMA ids cpxName */ - 281, /* (198) tablelist ::= tablelist COMMA ids cpxName ids */ - 283, /* (199) tmvar ::= VARIABLE */ - 284, /* (200) timestamp ::= INTEGER */ - 284, /* (201) timestamp ::= MINUS INTEGER */ - 284, /* (202) timestamp ::= PLUS INTEGER */ - 284, /* (203) timestamp ::= STRING */ - 284, /* (204) timestamp ::= NOW */ - 284, /* (205) timestamp ::= NOW PLUS VARIABLE */ - 284, /* (206) timestamp ::= NOW MINUS VARIABLE */ - 265, /* (207) range_option ::= */ - 265, /* (208) range_option ::= RANGE LP timestamp COMMA timestamp RP */ - 266, /* (209) interval_option ::= intervalKey LP tmvar RP */ - 266, /* (210) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */ - 266, /* (211) interval_option ::= */ - 285, /* (212) intervalKey ::= INTERVAL */ - 285, /* (213) intervalKey ::= EVERY */ - 268, /* (214) session_option ::= */ - 268, /* (215) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ - 269, /* (216) windowstate_option ::= */ - 269, /* (217) windowstate_option ::= STATE_WINDOW LP ids RP */ - 270, /* (218) fill_opt ::= */ - 270, /* (219) fill_opt ::= FILL LP ID COMMA tagitemlist RP */ - 270, /* (220) fill_opt ::= FILL LP ID RP */ - 267, /* (221) sliding_opt ::= SLIDING LP tmvar RP */ - 267, /* (222) sliding_opt ::= */ - 273, /* (223) orderby_opt ::= */ - 273, /* (224) orderby_opt ::= ORDER BY sortlist */ - 286, /* (225) sortlist ::= sortlist COMMA item sortorder */ - 286, /* (226) sortlist ::= sortlist COMMA arrow sortorder */ - 286, /* (227) sortlist ::= item sortorder */ - 286, /* (228) sortlist ::= arrow sortorder */ - 287, /* (229) item ::= ID */ - 287, /* (230) item ::= ID DOT ID */ - 288, /* (231) sortorder ::= ASC */ - 288, /* (232) sortorder ::= DESC */ - 288, /* (233) sortorder ::= */ - 271, /* (234) groupby_opt ::= */ - 271, /* (235) groupby_opt ::= GROUP BY grouplist */ - 290, /* (236) grouplist ::= grouplist COMMA item */ - 290, /* (237) grouplist ::= grouplist COMMA arrow */ - 290, /* (238) grouplist ::= item */ - 290, /* (239) grouplist ::= arrow */ - 272, /* (240) having_opt ::= */ - 272, /* (241) having_opt ::= HAVING expr */ - 275, /* (242) limit_opt ::= */ - 275, /* (243) limit_opt ::= LIMIT signed */ - 275, /* (244) limit_opt ::= LIMIT signed OFFSET signed */ - 275, /* (245) limit_opt ::= LIMIT signed COMMA signed */ - 274, /* (246) slimit_opt ::= */ - 274, /* (247) slimit_opt ::= SLIMIT signed */ - 274, /* (248) slimit_opt ::= SLIMIT signed SOFFSET signed */ - 274, /* (249) slimit_opt ::= SLIMIT signed COMMA signed */ - 264, /* (250) where_opt ::= */ - 264, /* (251) where_opt ::= WHERE expr */ - 279, /* (252) expr ::= LP expr RP */ - 279, /* (253) expr ::= ID */ - 279, /* (254) expr ::= ID DOT ID */ - 279, /* (255) expr ::= ID DOT STAR */ - 279, /* (256) expr ::= INTEGER */ - 279, /* (257) expr ::= MINUS INTEGER */ - 279, /* (258) expr ::= PLUS INTEGER */ - 279, /* (259) expr ::= FLOAT */ - 279, /* (260) expr ::= MINUS FLOAT */ - 279, /* (261) expr ::= PLUS FLOAT */ - 279, /* (262) expr ::= STRING */ - 279, /* (263) expr ::= NOW */ - 279, /* (264) expr ::= TODAY */ - 279, /* (265) expr ::= VARIABLE */ - 279, /* (266) expr ::= PLUS VARIABLE */ - 279, /* (267) expr ::= MINUS VARIABLE */ - 279, /* (268) expr ::= BOOL */ - 279, /* (269) expr ::= NULL */ - 279, /* (270) expr ::= ID LP exprlist RP */ - 279, /* (271) expr ::= ID LP STAR RP */ - 279, /* (272) expr ::= ID LP expr AS typename RP */ - 279, /* (273) expr ::= expr IS NULL */ - 279, /* (274) expr ::= expr IS NOT NULL */ - 279, /* (275) expr ::= expr LT expr */ - 279, /* (276) expr ::= expr GT expr */ - 279, /* (277) expr ::= expr LE expr */ - 279, /* (278) expr ::= expr GE expr */ - 279, /* (279) expr ::= expr NE expr */ - 279, /* (280) expr ::= expr EQ expr */ - 279, /* (281) expr ::= expr BETWEEN expr AND expr */ - 279, /* (282) expr ::= expr AND expr */ - 279, /* (283) expr ::= expr OR expr */ - 279, /* (284) expr ::= expr PLUS expr */ - 279, /* (285) expr ::= expr MINUS expr */ - 279, /* (286) expr ::= expr STAR expr */ - 279, /* (287) expr ::= expr SLASH expr */ - 279, /* (288) expr ::= expr REM expr */ - 279, /* (289) expr ::= expr BITAND expr */ - 279, /* (290) expr ::= expr BITOR expr */ - 279, /* (291) expr ::= expr BITXOR expr */ - 279, /* (292) expr ::= BITNOT expr */ - 279, /* (293) expr ::= expr LSHIFT expr */ - 279, /* (294) expr ::= expr RSHIFT expr */ - 279, /* (295) expr ::= expr LIKE expr */ - 279, /* (296) expr ::= expr MATCH expr */ - 279, /* (297) expr ::= expr NMATCH expr */ - 279, /* (298) expr ::= ID CONTAINS STRING */ - 279, /* (299) expr ::= ID DOT ID CONTAINS STRING */ - 289, /* (300) arrow ::= ID ARROW STRING */ - 289, /* (301) arrow ::= ID DOT ID ARROW STRING */ - 279, /* (302) expr ::= arrow */ - 279, /* (303) expr ::= expr IN LP exprlist RP */ - 215, /* (304) exprlist ::= exprlist COMMA expritem */ - 215, /* (305) exprlist ::= expritem */ - 291, /* (306) expritem ::= expr */ - 291, /* (307) expritem ::= */ - 207, /* (308) cmd ::= RESET QUERY CACHE */ - 207, /* (309) cmd ::= SYNCDB ids REPLICA */ - 207, /* (310) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ - 207, /* (311) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */ - 207, /* (312) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ - 207, /* (313) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ - 207, /* (314) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */ - 207, /* (315) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */ - 207, /* (316) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */ - 207, /* (317) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ - 207, /* (318) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ - 207, /* (319) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */ - 207, /* (320) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ - 207, /* (321) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ - 207, /* (322) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */ - 207, /* (323) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */ - 207, /* (324) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */ - 207, /* (325) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ - 207, /* (326) cmd ::= KILL CONNECTION INTEGER */ - 207, /* (327) cmd ::= KILL STREAM INTEGER COLON INTEGER */ - 207, /* (328) cmd ::= KILL QUERY INTEGER COLON INTEGER */ - 207, /* (329) cmd ::= DELETE FROM ifexists ids cpxName where_opt */ -}; - -/* For rule J, yyRuleInfoNRhs[J] contains the negative of the number -** of symbols on the right-hand side of that rule. */ -static const signed char yyRuleInfoNRhs[] = { - -1, /* (0) program ::= cmd */ - -2, /* (1) cmd ::= SHOW DATABASES */ - -2, /* (2) cmd ::= SHOW TOPICS */ - -2, /* (3) cmd ::= SHOW FUNCTIONS */ - -2, /* (4) cmd ::= SHOW MNODES */ - -2, /* (5) cmd ::= SHOW DNODES */ - -2, /* (6) cmd ::= SHOW ACCOUNTS */ - -2, /* (7) cmd ::= SHOW USERS */ - -2, /* (8) cmd ::= SHOW MODULES */ - -2, /* (9) cmd ::= SHOW QUERIES */ - -2, /* (10) cmd ::= SHOW CONNECTIONS */ - -2, /* (11) cmd ::= SHOW STREAMS */ - -2, /* (12) cmd ::= SHOW VARIABLES */ - -2, /* (13) cmd ::= SHOW SCORES */ - -2, /* (14) cmd ::= SHOW GRANTS */ - -2, /* (15) cmd ::= SHOW VNODES */ - -3, /* (16) cmd ::= SHOW VNODES ids */ - 0, /* (17) dbPrefix ::= */ - -2, /* (18) dbPrefix ::= ids DOT */ - 0, /* (19) cpxName ::= */ - -2, /* (20) cpxName ::= DOT ids */ - -5, /* (21) cmd ::= SHOW CREATE TABLE ids cpxName */ - -5, /* (22) cmd ::= SHOW CREATE STABLE ids cpxName */ - -4, /* (23) cmd ::= SHOW CREATE DATABASE ids */ - -3, /* (24) cmd ::= SHOW dbPrefix TABLES */ - -5, /* (25) cmd ::= SHOW dbPrefix TABLES LIKE STRING */ - -3, /* (26) cmd ::= SHOW dbPrefix STABLES */ - -5, /* (27) cmd ::= SHOW dbPrefix STABLES LIKE STRING */ - -3, /* (28) cmd ::= SHOW dbPrefix VGROUPS */ - -5, /* (29) cmd ::= DROP TABLE ifexists ids cpxName */ - -5, /* (30) cmd ::= DROP STABLE ifexists ids cpxName */ - -4, /* (31) cmd ::= DROP DATABASE ifexists ids */ - -4, /* (32) cmd ::= DROP TOPIC ifexists ids */ - -3, /* (33) cmd ::= DROP FUNCTION ids */ - -3, /* (34) cmd ::= DROP DNODE ids */ - -3, /* (35) cmd ::= DROP USER ids */ - -3, /* (36) cmd ::= DROP ACCOUNT ids */ - -2, /* (37) cmd ::= USE ids */ - -3, /* (38) cmd ::= DESCRIBE ids cpxName */ - -3, /* (39) cmd ::= DESC ids cpxName */ - -5, /* (40) cmd ::= ALTER USER ids PASS ids */ - -5, /* (41) cmd ::= ALTER USER ids PRIVILEGE ids */ - -5, /* (42) cmd ::= ALTER USER ids TAGS ids */ - -4, /* (43) cmd ::= ALTER DNODE ids ids */ - -5, /* (44) cmd ::= ALTER DNODE ids ids ids */ - -3, /* (45) cmd ::= ALTER LOCAL ids */ - -4, /* (46) cmd ::= ALTER LOCAL ids ids */ - -4, /* (47) cmd ::= ALTER DATABASE ids alter_db_optr */ - -4, /* (48) cmd ::= ALTER TOPIC ids alter_topic_optr */ - -4, /* (49) cmd ::= ALTER ACCOUNT ids acct_optr */ - -6, /* (50) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */ - -6, /* (51) cmd ::= COMPACT VNODES IN LP exprlist RP */ - -1, /* (52) ids ::= ID */ - -1, /* (53) ids ::= STRING */ - -2, /* (54) ifexists ::= IF EXISTS */ - 0, /* (55) ifexists ::= */ - -3, /* (56) ifnotexists ::= IF NOT EXISTS */ - 0, /* (57) ifnotexists ::= */ - -3, /* (58) cmd ::= CREATE DNODE ids */ - -6, /* (59) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */ - -5, /* (60) cmd ::= CREATE DATABASE ifnotexists ids db_optr */ - -5, /* (61) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ - -8, /* (62) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ - -9, /* (63) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ - -5, /* (64) cmd ::= CREATE USER ids PASS ids */ - -7, /* (65) cmd ::= CREATE USER ids PASS ids TAGS ids */ - 0, /* (66) bufsize ::= */ - -2, /* (67) bufsize ::= BUFSIZE INTEGER */ - 0, /* (68) pps ::= */ - -2, /* (69) pps ::= PPS INTEGER */ - 0, /* (70) tseries ::= */ - -2, /* (71) tseries ::= TSERIES INTEGER */ - 0, /* (72) dbs ::= */ - -2, /* (73) dbs ::= DBS INTEGER */ - 0, /* (74) streams ::= */ - -2, /* (75) streams ::= STREAMS INTEGER */ - 0, /* (76) storage ::= */ - -2, /* (77) storage ::= STORAGE INTEGER */ - 0, /* (78) qtime ::= */ - -2, /* (79) qtime ::= QTIME INTEGER */ - 0, /* (80) users ::= */ - -2, /* (81) users ::= USERS INTEGER */ - 0, /* (82) conns ::= */ - -2, /* (83) conns ::= CONNS INTEGER */ - 0, /* (84) state ::= */ - -2, /* (85) state ::= STATE ids */ - -9, /* (86) acct_optr ::= pps tseries storage streams qtime dbs users conns state */ - -3, /* (87) intitemlist ::= intitemlist COMMA intitem */ - -1, /* (88) intitemlist ::= intitem */ - -1, /* (89) intitem ::= INTEGER */ - -2, /* (90) keep ::= KEEP intitemlist */ - -2, /* (91) cache ::= CACHE INTEGER */ - -2, /* (92) replica ::= REPLICA INTEGER */ - -2, /* (93) quorum ::= QUORUM INTEGER */ - -2, /* (94) days ::= DAYS INTEGER */ - -2, /* (95) minrows ::= MINROWS INTEGER */ - -2, /* (96) maxrows ::= MAXROWS INTEGER */ - -2, /* (97) blocks ::= BLOCKS INTEGER */ - -2, /* (98) ctime ::= CTIME INTEGER */ - -2, /* (99) wal ::= WAL INTEGER */ - -2, /* (100) fsync ::= FSYNC INTEGER */ - -2, /* (101) comp ::= COMP INTEGER */ - -2, /* (102) prec ::= PRECISION STRING */ - -2, /* (103) update ::= UPDATE INTEGER */ - -2, /* (104) cachelast ::= CACHELAST INTEGER */ - -2, /* (105) partitions ::= PARTITIONS INTEGER */ - 0, /* (106) db_optr ::= */ - -2, /* (107) db_optr ::= db_optr cache */ - -2, /* (108) db_optr ::= db_optr replica */ - -2, /* (109) db_optr ::= db_optr quorum */ - -2, /* (110) db_optr ::= db_optr days */ - -2, /* (111) db_optr ::= db_optr minrows */ - -2, /* (112) db_optr ::= db_optr maxrows */ - -2, /* (113) db_optr ::= db_optr blocks */ - -2, /* (114) db_optr ::= db_optr ctime */ - -2, /* (115) db_optr ::= db_optr wal */ - -2, /* (116) db_optr ::= db_optr fsync */ - -2, /* (117) db_optr ::= db_optr comp */ - -2, /* (118) db_optr ::= db_optr prec */ - -2, /* (119) db_optr ::= db_optr keep */ - -2, /* (120) db_optr ::= db_optr update */ - -2, /* (121) db_optr ::= db_optr cachelast */ - -1, /* (122) topic_optr ::= db_optr */ - -2, /* (123) topic_optr ::= topic_optr partitions */ - 0, /* (124) alter_db_optr ::= */ - -2, /* (125) alter_db_optr ::= alter_db_optr replica */ - -2, /* (126) alter_db_optr ::= alter_db_optr quorum */ - -2, /* (127) alter_db_optr ::= alter_db_optr keep */ - -2, /* (128) alter_db_optr ::= alter_db_optr blocks */ - -2, /* (129) alter_db_optr ::= alter_db_optr comp */ - -2, /* (130) alter_db_optr ::= alter_db_optr update */ - -2, /* (131) alter_db_optr ::= alter_db_optr cachelast */ - -2, /* (132) alter_db_optr ::= alter_db_optr minrows */ - -1, /* (133) alter_topic_optr ::= alter_db_optr */ - -2, /* (134) alter_topic_optr ::= alter_topic_optr partitions */ - -1, /* (135) typename ::= ids */ - -4, /* (136) typename ::= ids LP signed RP */ - -2, /* (137) typename ::= ids UNSIGNED */ - -1, /* (138) signed ::= INTEGER */ - -2, /* (139) signed ::= PLUS INTEGER */ - -2, /* (140) signed ::= MINUS INTEGER */ - -3, /* (141) cmd ::= CREATE TABLE create_table_args */ - -3, /* (142) cmd ::= CREATE TABLE create_stable_args */ - -3, /* (143) cmd ::= CREATE STABLE create_stable_args */ - -3, /* (144) cmd ::= CREATE TABLE create_table_list */ - -1, /* (145) create_table_list ::= create_from_stable */ - -2, /* (146) create_table_list ::= create_table_list create_from_stable */ - -6, /* (147) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ - -10, /* (148) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ - -10, /* (149) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ - -13, /* (150) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ - -3, /* (151) tagNamelist ::= tagNamelist COMMA ids */ - -1, /* (152) tagNamelist ::= ids */ - -7, /* (153) create_table_args ::= ifnotexists ids cpxName to_opt split_opt AS select */ - 0, /* (154) to_opt ::= */ - -3, /* (155) to_opt ::= TO ids cpxName */ - 0, /* (156) split_opt ::= */ - -2, /* (157) split_opt ::= SPLIT ids */ - -3, /* (158) columnlist ::= columnlist COMMA column */ - -1, /* (159) columnlist ::= column */ - -2, /* (160) column ::= ids typename */ - -3, /* (161) tagitemlist ::= tagitemlist COMMA tagitem */ - -1, /* (162) tagitemlist ::= tagitem */ - -1, /* (163) tagitem ::= INTEGER */ - -1, /* (164) tagitem ::= FLOAT */ - -1, /* (165) tagitem ::= STRING */ - -1, /* (166) tagitem ::= BOOL */ - -1, /* (167) tagitem ::= NULL */ - -1, /* (168) tagitem ::= NOW */ - -3, /* (169) tagitem ::= NOW PLUS VARIABLE */ - -3, /* (170) tagitem ::= NOW MINUS VARIABLE */ - -2, /* (171) tagitem ::= MINUS INTEGER */ - -2, /* (172) tagitem ::= MINUS FLOAT */ - -2, /* (173) tagitem ::= PLUS INTEGER */ - -2, /* (174) tagitem ::= PLUS FLOAT */ - -15, /* (175) select ::= SELECT selcollist from where_opt range_option interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */ - -3, /* (176) select ::= LP select RP */ - -1, /* (177) union ::= select */ - -4, /* (178) union ::= union UNION ALL select */ - -1, /* (179) cmd ::= union */ - -2, /* (180) select ::= SELECT selcollist */ - -2, /* (181) sclp ::= selcollist COMMA */ - 0, /* (182) sclp ::= */ - -4, /* (183) selcollist ::= sclp distinct expr as */ - -2, /* (184) selcollist ::= sclp STAR */ - -2, /* (185) as ::= AS ids */ - -1, /* (186) as ::= ids */ - 0, /* (187) as ::= */ - -1, /* (188) distinct ::= DISTINCT */ - 0, /* (189) distinct ::= */ - -2, /* (190) from ::= FROM tablelist */ - -2, /* (191) from ::= FROM sub */ - -3, /* (192) sub ::= LP union RP */ - -4, /* (193) sub ::= LP union RP ids */ - -6, /* (194) sub ::= sub COMMA LP union RP ids */ - -2, /* (195) tablelist ::= ids cpxName */ - -3, /* (196) tablelist ::= ids cpxName ids */ - -4, /* (197) tablelist ::= tablelist COMMA ids cpxName */ - -5, /* (198) tablelist ::= tablelist COMMA ids cpxName ids */ - -1, /* (199) tmvar ::= VARIABLE */ - -1, /* (200) timestamp ::= INTEGER */ - -2, /* (201) timestamp ::= MINUS INTEGER */ - -2, /* (202) timestamp ::= PLUS INTEGER */ - -1, /* (203) timestamp ::= STRING */ - -1, /* (204) timestamp ::= NOW */ - -3, /* (205) timestamp ::= NOW PLUS VARIABLE */ - -3, /* (206) timestamp ::= NOW MINUS VARIABLE */ - 0, /* (207) range_option ::= */ - -6, /* (208) range_option ::= RANGE LP timestamp COMMA timestamp RP */ - -4, /* (209) interval_option ::= intervalKey LP tmvar RP */ - -6, /* (210) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */ - 0, /* (211) interval_option ::= */ - -1, /* (212) intervalKey ::= INTERVAL */ - -1, /* (213) intervalKey ::= EVERY */ - 0, /* (214) session_option ::= */ - -7, /* (215) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ - 0, /* (216) windowstate_option ::= */ - -4, /* (217) windowstate_option ::= STATE_WINDOW LP ids RP */ - 0, /* (218) fill_opt ::= */ - -6, /* (219) fill_opt ::= FILL LP ID COMMA tagitemlist RP */ - -4, /* (220) fill_opt ::= FILL LP ID RP */ - -4, /* (221) sliding_opt ::= SLIDING LP tmvar RP */ - 0, /* (222) sliding_opt ::= */ - 0, /* (223) orderby_opt ::= */ - -3, /* (224) orderby_opt ::= ORDER BY sortlist */ - -4, /* (225) sortlist ::= sortlist COMMA item sortorder */ - -4, /* (226) sortlist ::= sortlist COMMA arrow sortorder */ - -2, /* (227) sortlist ::= item sortorder */ - -2, /* (228) sortlist ::= arrow sortorder */ - -1, /* (229) item ::= ID */ - -3, /* (230) item ::= ID DOT ID */ - -1, /* (231) sortorder ::= ASC */ - -1, /* (232) sortorder ::= DESC */ - 0, /* (233) sortorder ::= */ - 0, /* (234) groupby_opt ::= */ - -3, /* (235) groupby_opt ::= GROUP BY grouplist */ - -3, /* (236) grouplist ::= grouplist COMMA item */ - -3, /* (237) grouplist ::= grouplist COMMA arrow */ - -1, /* (238) grouplist ::= item */ - -1, /* (239) grouplist ::= arrow */ - 0, /* (240) having_opt ::= */ - -2, /* (241) having_opt ::= HAVING expr */ - 0, /* (242) limit_opt ::= */ - -2, /* (243) limit_opt ::= LIMIT signed */ - -4, /* (244) limit_opt ::= LIMIT signed OFFSET signed */ - -4, /* (245) limit_opt ::= LIMIT signed COMMA signed */ - 0, /* (246) slimit_opt ::= */ - -2, /* (247) slimit_opt ::= SLIMIT signed */ - -4, /* (248) slimit_opt ::= SLIMIT signed SOFFSET signed */ - -4, /* (249) slimit_opt ::= SLIMIT signed COMMA signed */ - 0, /* (250) where_opt ::= */ - -2, /* (251) where_opt ::= WHERE expr */ - -3, /* (252) expr ::= LP expr RP */ - -1, /* (253) expr ::= ID */ - -3, /* (254) expr ::= ID DOT ID */ - -3, /* (255) expr ::= ID DOT STAR */ - -1, /* (256) expr ::= INTEGER */ - -2, /* (257) expr ::= MINUS INTEGER */ - -2, /* (258) expr ::= PLUS INTEGER */ - -1, /* (259) expr ::= FLOAT */ - -2, /* (260) expr ::= MINUS FLOAT */ - -2, /* (261) expr ::= PLUS FLOAT */ - -1, /* (262) expr ::= STRING */ - -1, /* (263) expr ::= NOW */ - -1, /* (264) expr ::= TODAY */ - -1, /* (265) expr ::= VARIABLE */ - -2, /* (266) expr ::= PLUS VARIABLE */ - -2, /* (267) expr ::= MINUS VARIABLE */ - -1, /* (268) expr ::= BOOL */ - -1, /* (269) expr ::= NULL */ - -4, /* (270) expr ::= ID LP exprlist RP */ - -4, /* (271) expr ::= ID LP STAR RP */ - -6, /* (272) expr ::= ID LP expr AS typename RP */ - -3, /* (273) expr ::= expr IS NULL */ - -4, /* (274) expr ::= expr IS NOT NULL */ - -3, /* (275) expr ::= expr LT expr */ - -3, /* (276) expr ::= expr GT expr */ - -3, /* (277) expr ::= expr LE expr */ - -3, /* (278) expr ::= expr GE expr */ - -3, /* (279) expr ::= expr NE expr */ - -3, /* (280) expr ::= expr EQ expr */ - -5, /* (281) expr ::= expr BETWEEN expr AND expr */ - -3, /* (282) expr ::= expr AND expr */ - -3, /* (283) expr ::= expr OR expr */ - -3, /* (284) expr ::= expr PLUS expr */ - -3, /* (285) expr ::= expr MINUS expr */ - -3, /* (286) expr ::= expr STAR expr */ - -3, /* (287) expr ::= expr SLASH expr */ - -3, /* (288) expr ::= expr REM expr */ - -3, /* (289) expr ::= expr BITAND expr */ - -3, /* (290) expr ::= expr BITOR expr */ - -3, /* (291) expr ::= expr BITXOR expr */ - -2, /* (292) expr ::= BITNOT expr */ - -3, /* (293) expr ::= expr LSHIFT expr */ - -3, /* (294) expr ::= expr RSHIFT expr */ - -3, /* (295) expr ::= expr LIKE expr */ - -3, /* (296) expr ::= expr MATCH expr */ - -3, /* (297) expr ::= expr NMATCH expr */ - -3, /* (298) expr ::= ID CONTAINS STRING */ - -5, /* (299) expr ::= ID DOT ID CONTAINS STRING */ - -3, /* (300) arrow ::= ID ARROW STRING */ - -5, /* (301) arrow ::= ID DOT ID ARROW STRING */ - -1, /* (302) expr ::= arrow */ - -5, /* (303) expr ::= expr IN LP exprlist RP */ - -3, /* (304) exprlist ::= exprlist COMMA expritem */ - -1, /* (305) exprlist ::= expritem */ - -1, /* (306) expritem ::= expr */ - 0, /* (307) expritem ::= */ - -3, /* (308) cmd ::= RESET QUERY CACHE */ - -3, /* (309) cmd ::= SYNCDB ids REPLICA */ - -7, /* (310) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ - -7, /* (311) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */ - -7, /* (312) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ - -7, /* (313) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ - -7, /* (314) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */ - -8, /* (315) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */ - -9, /* (316) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */ - -7, /* (317) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ - -7, /* (318) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ - -7, /* (319) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */ - -7, /* (320) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ - -7, /* (321) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ - -7, /* (322) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */ - -8, /* (323) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */ - -9, /* (324) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */ - -7, /* (325) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ - -3, /* (326) cmd ::= KILL CONNECTION INTEGER */ - -5, /* (327) cmd ::= KILL STREAM INTEGER COLON INTEGER */ - -5, /* (328) cmd ::= KILL QUERY INTEGER COLON INTEGER */ - -6, /* (329) cmd ::= DELETE FROM ifexists ids cpxName where_opt */ +/* The following table contains information about every rule that +** is used during the reduce. +*/ +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[] = { + { 208, -1 }, /* (0) program ::= cmd */ + { 209, -2 }, /* (1) cmd ::= SHOW DATABASES */ + { 209, -2 }, /* (2) cmd ::= SHOW TOPICS */ + { 209, -2 }, /* (3) cmd ::= SHOW FUNCTIONS */ + { 209, -2 }, /* (4) cmd ::= SHOW MNODES */ + { 209, -2 }, /* (5) cmd ::= SHOW DNODES */ + { 209, -2 }, /* (6) cmd ::= SHOW ACCOUNTS */ + { 209, -2 }, /* (7) cmd ::= SHOW USERS */ + { 209, -2 }, /* (8) cmd ::= SHOW MODULES */ + { 209, -2 }, /* (9) cmd ::= SHOW QUERIES */ + { 209, -2 }, /* (10) cmd ::= SHOW CONNECTIONS */ + { 209, -2 }, /* (11) cmd ::= SHOW STREAMS */ + { 209, -2 }, /* (12) cmd ::= SHOW VARIABLES */ + { 209, -2 }, /* (13) cmd ::= SHOW SCORES */ + { 209, -2 }, /* (14) cmd ::= SHOW GRANTS */ + { 209, -2 }, /* (15) cmd ::= SHOW VNODES */ + { 209, -3 }, /* (16) cmd ::= SHOW VNODES ids */ + { 211, 0 }, /* (17) dbPrefix ::= */ + { 211, -2 }, /* (18) dbPrefix ::= ids DOT */ + { 212, 0 }, /* (19) cpxName ::= */ + { 212, -2 }, /* (20) cpxName ::= DOT ids */ + { 209, -5 }, /* (21) cmd ::= SHOW CREATE TABLE ids cpxName */ + { 209, -5 }, /* (22) cmd ::= SHOW CREATE STABLE ids cpxName */ + { 209, -4 }, /* (23) cmd ::= SHOW CREATE DATABASE ids */ + { 209, -3 }, /* (24) cmd ::= SHOW dbPrefix TABLES */ + { 209, -5 }, /* (25) cmd ::= SHOW dbPrefix TABLES LIKE STRING */ + { 209, -3 }, /* (26) cmd ::= SHOW dbPrefix STABLES */ + { 209, -5 }, /* (27) cmd ::= SHOW dbPrefix STABLES LIKE STRING */ + { 209, -3 }, /* (28) cmd ::= SHOW dbPrefix VGROUPS */ + { 209, -3 }, /* (29) cmd ::= SHOW dbPrefix STATUS */ + { 209, -3 }, /* (30) cmd ::= SHOW CLUSTER STATUS */ + { 209, -5 }, /* (31) cmd ::= DROP TABLE ifexists ids cpxName */ + { 209, -5 }, /* (32) cmd ::= DROP STABLE ifexists ids cpxName */ + { 209, -4 }, /* (33) cmd ::= DROP DATABASE ifexists ids */ + { 209, -4 }, /* (34) cmd ::= DROP TOPIC ifexists ids */ + { 209, -3 }, /* (35) cmd ::= DROP FUNCTION ids */ + { 209, -3 }, /* (36) cmd ::= DROP DNODE ids */ + { 209, -3 }, /* (37) cmd ::= DROP USER ids */ + { 209, -3 }, /* (38) cmd ::= DROP ACCOUNT ids */ + { 209, -2 }, /* (39) cmd ::= USE ids */ + { 209, -3 }, /* (40) cmd ::= DESCRIBE ids cpxName */ + { 209, -3 }, /* (41) cmd ::= DESC ids cpxName */ + { 209, -5 }, /* (42) cmd ::= ALTER USER ids PASS ids */ + { 209, -5 }, /* (43) cmd ::= ALTER USER ids PRIVILEGE ids */ + { 209, -5 }, /* (44) cmd ::= ALTER USER ids TAGS ids */ + { 209, -4 }, /* (45) cmd ::= ALTER DNODE ids ids */ + { 209, -5 }, /* (46) cmd ::= ALTER DNODE ids ids ids */ + { 209, -3 }, /* (47) cmd ::= ALTER LOCAL ids */ + { 209, -4 }, /* (48) cmd ::= ALTER LOCAL ids ids */ + { 209, -4 }, /* (49) cmd ::= ALTER DATABASE ids alter_db_optr */ + { 209, -4 }, /* (50) cmd ::= ALTER TOPIC ids alter_topic_optr */ + { 209, -4 }, /* (51) cmd ::= ALTER ACCOUNT ids acct_optr */ + { 209, -6 }, /* (52) cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */ + { 209, -6 }, /* (53) cmd ::= COMPACT VNODES IN LP exprlist RP */ + { 210, -1 }, /* (54) ids ::= ID */ + { 210, -1 }, /* (55) ids ::= STRING */ + { 213, -2 }, /* (56) ifexists ::= IF EXISTS */ + { 213, 0 }, /* (57) ifexists ::= */ + { 218, -3 }, /* (58) ifnotexists ::= IF NOT EXISTS */ + { 218, 0 }, /* (59) ifnotexists ::= */ + { 209, -3 }, /* (60) cmd ::= CREATE DNODE ids */ + { 209, -6 }, /* (61) cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */ + { 209, -5 }, /* (62) cmd ::= CREATE DATABASE ifnotexists ids db_optr */ + { 209, -5 }, /* (63) cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ + { 209, -8 }, /* (64) cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ + { 209, -9 }, /* (65) cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ + { 209, -5 }, /* (66) cmd ::= CREATE USER ids PASS ids */ + { 209, -7 }, /* (67) cmd ::= CREATE USER ids PASS ids TAGS ids */ + { 222, 0 }, /* (68) bufsize ::= */ + { 222, -2 }, /* (69) bufsize ::= BUFSIZE INTEGER */ + { 223, 0 }, /* (70) pps ::= */ + { 223, -2 }, /* (71) pps ::= PPS INTEGER */ + { 224, 0 }, /* (72) tseries ::= */ + { 224, -2 }, /* (73) tseries ::= TSERIES INTEGER */ + { 225, 0 }, /* (74) dbs ::= */ + { 225, -2 }, /* (75) dbs ::= DBS INTEGER */ + { 226, 0 }, /* (76) streams ::= */ + { 226, -2 }, /* (77) streams ::= STREAMS INTEGER */ + { 227, 0 }, /* (78) storage ::= */ + { 227, -2 }, /* (79) storage ::= STORAGE INTEGER */ + { 228, 0 }, /* (80) qtime ::= */ + { 228, -2 }, /* (81) qtime ::= QTIME INTEGER */ + { 229, 0 }, /* (82) users ::= */ + { 229, -2 }, /* (83) users ::= USERS INTEGER */ + { 230, 0 }, /* (84) conns ::= */ + { 230, -2 }, /* (85) conns ::= CONNS INTEGER */ + { 231, 0 }, /* (86) state ::= */ + { 231, -2 }, /* (87) state ::= STATE ids */ + { 216, -9 }, /* (88) acct_optr ::= pps tseries storage streams qtime dbs users conns state */ + { 232, -3 }, /* (89) intitemlist ::= intitemlist COMMA intitem */ + { 232, -1 }, /* (90) intitemlist ::= intitem */ + { 233, -1 }, /* (91) intitem ::= INTEGER */ + { 234, -2 }, /* (92) keep ::= KEEP intitemlist */ + { 235, -2 }, /* (93) cache ::= CACHE INTEGER */ + { 236, -2 }, /* (94) replica ::= REPLICA INTEGER */ + { 237, -2 }, /* (95) quorum ::= QUORUM INTEGER */ + { 238, -2 }, /* (96) days ::= DAYS INTEGER */ + { 239, -2 }, /* (97) minrows ::= MINROWS INTEGER */ + { 240, -2 }, /* (98) maxrows ::= MAXROWS INTEGER */ + { 241, -2 }, /* (99) blocks ::= BLOCKS INTEGER */ + { 242, -2 }, /* (100) ctime ::= CTIME INTEGER */ + { 243, -2 }, /* (101) wal ::= WAL INTEGER */ + { 244, -2 }, /* (102) fsync ::= FSYNC INTEGER */ + { 245, -2 }, /* (103) comp ::= COMP INTEGER */ + { 246, -2 }, /* (104) prec ::= PRECISION STRING */ + { 247, -2 }, /* (105) update ::= UPDATE INTEGER */ + { 248, -2 }, /* (106) cachelast ::= CACHELAST INTEGER */ + { 249, -2 }, /* (107) partitions ::= PARTITIONS INTEGER */ + { 219, 0 }, /* (108) db_optr ::= */ + { 219, -2 }, /* (109) db_optr ::= db_optr cache */ + { 219, -2 }, /* (110) db_optr ::= db_optr replica */ + { 219, -2 }, /* (111) db_optr ::= db_optr quorum */ + { 219, -2 }, /* (112) db_optr ::= db_optr days */ + { 219, -2 }, /* (113) db_optr ::= db_optr minrows */ + { 219, -2 }, /* (114) db_optr ::= db_optr maxrows */ + { 219, -2 }, /* (115) db_optr ::= db_optr blocks */ + { 219, -2 }, /* (116) db_optr ::= db_optr ctime */ + { 219, -2 }, /* (117) db_optr ::= db_optr wal */ + { 219, -2 }, /* (118) db_optr ::= db_optr fsync */ + { 219, -2 }, /* (119) db_optr ::= db_optr comp */ + { 219, -2 }, /* (120) db_optr ::= db_optr prec */ + { 219, -2 }, /* (121) db_optr ::= db_optr keep */ + { 219, -2 }, /* (122) db_optr ::= db_optr update */ + { 219, -2 }, /* (123) db_optr ::= db_optr cachelast */ + { 220, -1 }, /* (124) topic_optr ::= db_optr */ + { 220, -2 }, /* (125) topic_optr ::= topic_optr partitions */ + { 214, 0 }, /* (126) alter_db_optr ::= */ + { 214, -2 }, /* (127) alter_db_optr ::= alter_db_optr replica */ + { 214, -2 }, /* (128) alter_db_optr ::= alter_db_optr quorum */ + { 214, -2 }, /* (129) alter_db_optr ::= alter_db_optr keep */ + { 214, -2 }, /* (130) alter_db_optr ::= alter_db_optr blocks */ + { 214, -2 }, /* (131) alter_db_optr ::= alter_db_optr comp */ + { 214, -2 }, /* (132) alter_db_optr ::= alter_db_optr update */ + { 214, -2 }, /* (133) alter_db_optr ::= alter_db_optr cachelast */ + { 214, -2 }, /* (134) alter_db_optr ::= alter_db_optr minrows */ + { 215, -1 }, /* (135) alter_topic_optr ::= alter_db_optr */ + { 215, -2 }, /* (136) alter_topic_optr ::= alter_topic_optr partitions */ + { 221, -1 }, /* (137) typename ::= ids */ + { 221, -4 }, /* (138) typename ::= ids LP signed RP */ + { 221, -2 }, /* (139) typename ::= ids UNSIGNED */ + { 250, -1 }, /* (140) signed ::= INTEGER */ + { 250, -2 }, /* (141) signed ::= PLUS INTEGER */ + { 250, -2 }, /* (142) signed ::= MINUS INTEGER */ + { 209, -3 }, /* (143) cmd ::= CREATE TABLE create_table_args */ + { 209, -3 }, /* (144) cmd ::= CREATE TABLE create_stable_args */ + { 209, -3 }, /* (145) cmd ::= CREATE STABLE create_stable_args */ + { 209, -3 }, /* (146) cmd ::= CREATE TABLE create_table_list */ + { 253, -1 }, /* (147) create_table_list ::= create_from_stable */ + { 253, -2 }, /* (148) create_table_list ::= create_table_list create_from_stable */ + { 251, -6 }, /* (149) create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ + { 252, -10 }, /* (150) create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ + { 254, -10 }, /* (151) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ + { 254, -13 }, /* (152) create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ + { 257, -3 }, /* (153) tagNamelist ::= tagNamelist COMMA ids */ + { 257, -1 }, /* (154) tagNamelist ::= ids */ + { 251, -7 }, /* (155) create_table_args ::= ifnotexists ids cpxName to_opt split_opt AS select */ + { 258, 0 }, /* (156) to_opt ::= */ + { 258, -3 }, /* (157) to_opt ::= TO ids cpxName */ + { 259, 0 }, /* (158) split_opt ::= */ + { 259, -2 }, /* (159) split_opt ::= SPLIT ids */ + { 255, -3 }, /* (160) columnlist ::= columnlist COMMA column */ + { 255, -1 }, /* (161) columnlist ::= column */ + { 262, -2 }, /* (162) column ::= ids typename */ + { 256, -3 }, /* (163) tagitemlist ::= tagitemlist COMMA tagitem */ + { 256, -1 }, /* (164) tagitemlist ::= tagitem */ + { 263, -1 }, /* (165) tagitem ::= INTEGER */ + { 263, -1 }, /* (166) tagitem ::= FLOAT */ + { 263, -1 }, /* (167) tagitem ::= STRING */ + { 263, -1 }, /* (168) tagitem ::= BOOL */ + { 263, -1 }, /* (169) tagitem ::= NULL */ + { 263, -1 }, /* (170) tagitem ::= NOW */ + { 263, -3 }, /* (171) tagitem ::= NOW PLUS VARIABLE */ + { 263, -3 }, /* (172) tagitem ::= NOW MINUS VARIABLE */ + { 263, -2 }, /* (173) tagitem ::= MINUS INTEGER */ + { 263, -2 }, /* (174) tagitem ::= MINUS FLOAT */ + { 263, -2 }, /* (175) tagitem ::= PLUS INTEGER */ + { 263, -2 }, /* (176) tagitem ::= PLUS FLOAT */ + { 260, -15 }, /* (177) select ::= SELECT selcollist from where_opt range_option interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */ + { 260, -3 }, /* (178) select ::= LP select RP */ + { 278, -1 }, /* (179) union ::= select */ + { 278, -4 }, /* (180) union ::= union UNION ALL select */ + { 209, -1 }, /* (181) cmd ::= union */ + { 260, -2 }, /* (182) select ::= SELECT selcollist */ + { 279, -2 }, /* (183) sclp ::= selcollist COMMA */ + { 279, 0 }, /* (184) sclp ::= */ + { 264, -4 }, /* (185) selcollist ::= sclp distinct expr as */ + { 264, -2 }, /* (186) selcollist ::= sclp STAR */ + { 282, -2 }, /* (187) as ::= AS ids */ + { 282, -1 }, /* (188) as ::= ids */ + { 282, 0 }, /* (189) as ::= */ + { 280, -1 }, /* (190) distinct ::= DISTINCT */ + { 280, 0 }, /* (191) distinct ::= */ + { 265, -2 }, /* (192) from ::= FROM tablelist */ + { 265, -2 }, /* (193) from ::= FROM sub */ + { 284, -3 }, /* (194) sub ::= LP union RP */ + { 284, -4 }, /* (195) sub ::= LP union RP ids */ + { 284, -6 }, /* (196) sub ::= sub COMMA LP union RP ids */ + { 283, -2 }, /* (197) tablelist ::= ids cpxName */ + { 283, -3 }, /* (198) tablelist ::= ids cpxName ids */ + { 283, -4 }, /* (199) tablelist ::= tablelist COMMA ids cpxName */ + { 283, -5 }, /* (200) tablelist ::= tablelist COMMA ids cpxName ids */ + { 285, -1 }, /* (201) tmvar ::= VARIABLE */ + { 286, -1 }, /* (202) timestamp ::= INTEGER */ + { 286, -2 }, /* (203) timestamp ::= MINUS INTEGER */ + { 286, -2 }, /* (204) timestamp ::= PLUS INTEGER */ + { 286, -1 }, /* (205) timestamp ::= STRING */ + { 286, -1 }, /* (206) timestamp ::= NOW */ + { 286, -3 }, /* (207) timestamp ::= NOW PLUS VARIABLE */ + { 286, -3 }, /* (208) timestamp ::= NOW MINUS VARIABLE */ + { 267, 0 }, /* (209) range_option ::= */ + { 267, -6 }, /* (210) range_option ::= RANGE LP timestamp COMMA timestamp RP */ + { 268, -4 }, /* (211) interval_option ::= intervalKey LP tmvar RP */ + { 268, -6 }, /* (212) interval_option ::= intervalKey LP tmvar COMMA tmvar RP */ + { 268, 0 }, /* (213) interval_option ::= */ + { 287, -1 }, /* (214) intervalKey ::= INTERVAL */ + { 287, -1 }, /* (215) intervalKey ::= EVERY */ + { 270, 0 }, /* (216) session_option ::= */ + { 270, -7 }, /* (217) session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ + { 271, 0 }, /* (218) windowstate_option ::= */ + { 271, -4 }, /* (219) windowstate_option ::= STATE_WINDOW LP ids RP */ + { 272, 0 }, /* (220) fill_opt ::= */ + { 272, -6 }, /* (221) fill_opt ::= FILL LP ID COMMA tagitemlist RP */ + { 272, -4 }, /* (222) fill_opt ::= FILL LP ID RP */ + { 269, -4 }, /* (223) sliding_opt ::= SLIDING LP tmvar RP */ + { 269, 0 }, /* (224) sliding_opt ::= */ + { 275, 0 }, /* (225) orderby_opt ::= */ + { 275, -3 }, /* (226) orderby_opt ::= ORDER BY sortlist */ + { 288, -4 }, /* (227) sortlist ::= sortlist COMMA item sortorder */ + { 288, -4 }, /* (228) sortlist ::= sortlist COMMA arrow sortorder */ + { 288, -2 }, /* (229) sortlist ::= item sortorder */ + { 288, -2 }, /* (230) sortlist ::= arrow sortorder */ + { 289, -1 }, /* (231) item ::= ID */ + { 289, -3 }, /* (232) item ::= ID DOT ID */ + { 290, -1 }, /* (233) sortorder ::= ASC */ + { 290, -1 }, /* (234) sortorder ::= DESC */ + { 290, 0 }, /* (235) sortorder ::= */ + { 273, 0 }, /* (236) groupby_opt ::= */ + { 273, -3 }, /* (237) groupby_opt ::= GROUP BY grouplist */ + { 292, -3 }, /* (238) grouplist ::= grouplist COMMA item */ + { 292, -3 }, /* (239) grouplist ::= grouplist COMMA arrow */ + { 292, -1 }, /* (240) grouplist ::= item */ + { 292, -1 }, /* (241) grouplist ::= arrow */ + { 274, 0 }, /* (242) having_opt ::= */ + { 274, -2 }, /* (243) having_opt ::= HAVING expr */ + { 277, 0 }, /* (244) limit_opt ::= */ + { 277, -2 }, /* (245) limit_opt ::= LIMIT signed */ + { 277, -4 }, /* (246) limit_opt ::= LIMIT signed OFFSET signed */ + { 277, -4 }, /* (247) limit_opt ::= LIMIT signed COMMA signed */ + { 276, 0 }, /* (248) slimit_opt ::= */ + { 276, -2 }, /* (249) slimit_opt ::= SLIMIT signed */ + { 276, -4 }, /* (250) slimit_opt ::= SLIMIT signed SOFFSET signed */ + { 276, -4 }, /* (251) slimit_opt ::= SLIMIT signed COMMA signed */ + { 266, 0 }, /* (252) where_opt ::= */ + { 266, -2 }, /* (253) where_opt ::= WHERE expr */ + { 281, -3 }, /* (254) expr ::= LP expr RP */ + { 281, -1 }, /* (255) expr ::= ID */ + { 281, -3 }, /* (256) expr ::= ID DOT ID */ + { 281, -3 }, /* (257) expr ::= ID DOT STAR */ + { 281, -1 }, /* (258) expr ::= INTEGER */ + { 281, -2 }, /* (259) expr ::= MINUS INTEGER */ + { 281, -2 }, /* (260) expr ::= PLUS INTEGER */ + { 281, -1 }, /* (261) expr ::= FLOAT */ + { 281, -2 }, /* (262) expr ::= MINUS FLOAT */ + { 281, -2 }, /* (263) expr ::= PLUS FLOAT */ + { 281, -1 }, /* (264) expr ::= STRING */ + { 281, -1 }, /* (265) expr ::= NOW */ + { 281, -1 }, /* (266) expr ::= TODAY */ + { 281, -1 }, /* (267) expr ::= VARIABLE */ + { 281, -2 }, /* (268) expr ::= PLUS VARIABLE */ + { 281, -2 }, /* (269) expr ::= MINUS VARIABLE */ + { 281, -1 }, /* (270) expr ::= BOOL */ + { 281, -1 }, /* (271) expr ::= NULL */ + { 281, -4 }, /* (272) expr ::= ID LP exprlist RP */ + { 281, -4 }, /* (273) expr ::= ID LP STAR RP */ + { 281, -6 }, /* (274) expr ::= ID LP expr AS typename RP */ + { 281, -3 }, /* (275) expr ::= expr IS NULL */ + { 281, -4 }, /* (276) expr ::= expr IS NOT NULL */ + { 281, -3 }, /* (277) expr ::= expr LT expr */ + { 281, -3 }, /* (278) expr ::= expr GT expr */ + { 281, -3 }, /* (279) expr ::= expr LE expr */ + { 281, -3 }, /* (280) expr ::= expr GE expr */ + { 281, -3 }, /* (281) expr ::= expr NE expr */ + { 281, -3 }, /* (282) expr ::= expr EQ expr */ + { 281, -5 }, /* (283) expr ::= expr BETWEEN expr AND expr */ + { 281, -3 }, /* (284) expr ::= expr AND expr */ + { 281, -3 }, /* (285) expr ::= expr OR expr */ + { 281, -3 }, /* (286) expr ::= expr PLUS expr */ + { 281, -3 }, /* (287) expr ::= expr MINUS expr */ + { 281, -3 }, /* (288) expr ::= expr STAR expr */ + { 281, -3 }, /* (289) expr ::= expr SLASH expr */ + { 281, -3 }, /* (290) expr ::= expr REM expr */ + { 281, -3 }, /* (291) expr ::= expr BITAND expr */ + { 281, -3 }, /* (292) expr ::= expr BITOR expr */ + { 281, -3 }, /* (293) expr ::= expr BITXOR expr */ + { 281, -2 }, /* (294) expr ::= BITNOT expr */ + { 281, -3 }, /* (295) expr ::= expr LSHIFT expr */ + { 281, -3 }, /* (296) expr ::= expr RSHIFT expr */ + { 281, -3 }, /* (297) expr ::= expr LIKE expr */ + { 281, -3 }, /* (298) expr ::= expr MATCH expr */ + { 281, -3 }, /* (299) expr ::= expr NMATCH expr */ + { 281, -3 }, /* (300) expr ::= ID CONTAINS STRING */ + { 281, -5 }, /* (301) expr ::= ID DOT ID CONTAINS STRING */ + { 291, -3 }, /* (302) arrow ::= ID ARROW STRING */ + { 291, -5 }, /* (303) arrow ::= ID DOT ID ARROW STRING */ + { 281, -1 }, /* (304) expr ::= arrow */ + { 281, -5 }, /* (305) expr ::= expr IN LP exprlist RP */ + { 217, -3 }, /* (306) exprlist ::= exprlist COMMA expritem */ + { 217, -1 }, /* (307) exprlist ::= expritem */ + { 293, -1 }, /* (308) expritem ::= expr */ + { 293, 0 }, /* (309) expritem ::= */ + { 209, -3 }, /* (310) cmd ::= RESET QUERY CACHE */ + { 209, -3 }, /* (311) cmd ::= SYNCDB ids REPLICA */ + { 209, -7 }, /* (312) cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ + { 209, -7 }, /* (313) cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */ + { 209, -7 }, /* (314) cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ + { 209, -7 }, /* (315) cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ + { 209, -7 }, /* (316) cmd ::= ALTER TABLE ids cpxName DROP TAG ids */ + { 209, -8 }, /* (317) cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */ + { 209, -9 }, /* (318) cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */ + { 209, -7 }, /* (319) cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ + { 209, -7 }, /* (320) cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ + { 209, -7 }, /* (321) cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */ + { 209, -7 }, /* (322) cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ + { 209, -7 }, /* (323) cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ + { 209, -7 }, /* (324) cmd ::= ALTER STABLE ids cpxName DROP TAG ids */ + { 209, -8 }, /* (325) cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */ + { 209, -9 }, /* (326) cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */ + { 209, -7 }, /* (327) cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ + { 209, -3 }, /* (328) cmd ::= KILL CONNECTION INTEGER */ + { 209, -5 }, /* (329) cmd ::= KILL STREAM INTEGER COLON INTEGER */ + { 209, -5 }, /* (330) cmd ::= KILL QUERY INTEGER COLON INTEGER */ + { 209, -6 }, /* (331) cmd ::= DELETE FROM ifexists ids cpxName where_opt */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -2633,34 +2295,30 @@ static void yy_accept(yyParser*); /* Forward Declaration */ ** only called from one place, optimizing compilers will in-line it, which ** means that the extra parameters have no performance impact. */ -static YYACTIONTYPE yy_reduce( +static void yy_reduce( yyParser *yypParser, /* The parser */ unsigned int yyruleno, /* Number of the rule by which to reduce */ int yyLookahead, /* Lookahead token, or YYNOCODE if none */ ParseTOKENTYPE yyLookaheadToken /* Value of the lookahead token */ - ParseCTX_PDECL /* %extra_context */ ){ int yygoto; /* The next state */ - YYACTIONTYPE yyact; /* The next action */ + int yyact; /* The next action */ yyStackEntry *yymsp; /* The top of the parser's stack */ int yysize; /* Amount to pop the stack */ - ParseARG_FETCH + ParseARG_FETCH; (void)yyLookahead; (void)yyLookaheadToken; yymsp = yypParser->yytos; #ifndef NDEBUG if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){ - yysize = yyRuleInfoNRhs[yyruleno]; + yysize = yyRuleInfo[yyruleno].nrhs; if( yysize ){ - fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", + fprintf(yyTraceFILE, "%sReduce %d [%s], go to state %d.\n", yyTracePrompt, - yyruleno, yyRuleName[yyruleno], - yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){ yypParser->yyhwm++; @@ -2678,19 +2336,13 @@ static YYACTIONTYPE yy_reduce( #if YYSTACKDEPTH>0 if( yypParser->yytos>=yypParser->yystackEnd ){ yyStackOverflow(yypParser); - /* The call to yyStackOverflow() above pops the stack until it is - ** empty, causing the main parser loop to exit. So the return value - ** is never used and does not matter. */ - return 0; + return; } #else if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){ if( yyGrowStack(yypParser) ){ yyStackOverflow(yypParser); - /* The call to yyStackOverflow() above pops the stack until it is - ** empty, causing the main parser loop to exit. So the return value - ** is never used and does not matter. */ - return 0; + return; } yymsp = yypParser->yytos; } @@ -2709,9 +2361,9 @@ static YYACTIONTYPE yy_reduce( /********** Begin reduce actions **********************************************/ YYMINORTYPE yylhsminor; case 0: /* program ::= cmd */ - case 141: /* cmd ::= CREATE TABLE create_table_args */ yytestcase(yyruleno==141); - case 142: /* cmd ::= CREATE TABLE create_stable_args */ yytestcase(yyruleno==142); - case 143: /* cmd ::= CREATE STABLE create_stable_args */ yytestcase(yyruleno==143); + case 143: /* cmd ::= CREATE TABLE create_table_args */ yytestcase(yyruleno==143); + case 144: /* cmd ::= CREATE TABLE create_stable_args */ yytestcase(yyruleno==144); + case 145: /* cmd ::= CREATE STABLE create_stable_args */ yytestcase(yyruleno==145); {} break; case 1: /* cmd ::= SHOW DATABASES */ @@ -2821,978 +2473,991 @@ static YYACTIONTYPE yy_reduce( setShowOptions(pInfo, TSDB_MGMT_TABLE_VGROUP, &token, 0); } break; - case 29: /* cmd ::= DROP TABLE ifexists ids cpxName */ + case 29: /* cmd ::= SHOW dbPrefix STATUS */ +{ + SStrToken token; + tSetDbName(&token, &yymsp[-1].minor.yy0); + setShowOptions(pInfo, TSDB_MGMT_STATUS_DB, &token, 0); +} + break; + case 30: /* cmd ::= SHOW CLUSTER STATUS */ +{ + SStrToken token; + setShowOptions(pInfo, TSDB_MGMT_STATUS_CLUSTER, &token, 0); +} + break; + case 31: /* cmd ::= DROP TABLE ifexists ids cpxName */ { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; setDropDbTableInfo(pInfo, TSDB_SQL_DROP_TABLE, &yymsp[-1].minor.yy0, &yymsp[-2].minor.yy0, -1, -1); } break; - case 30: /* cmd ::= DROP STABLE ifexists ids cpxName */ + case 32: /* cmd ::= DROP STABLE ifexists ids cpxName */ { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; setDropDbTableInfo(pInfo, TSDB_SQL_DROP_TABLE, &yymsp[-1].minor.yy0, &yymsp[-2].minor.yy0, -1, TSDB_SUPER_TABLE); } break; - case 31: /* cmd ::= DROP DATABASE ifexists ids */ + case 33: /* cmd ::= DROP DATABASE ifexists ids */ { setDropDbTableInfo(pInfo, TSDB_SQL_DROP_DB, &yymsp[0].minor.yy0, &yymsp[-1].minor.yy0, TSDB_DB_TYPE_DEFAULT, -1); } break; - case 32: /* cmd ::= DROP TOPIC ifexists ids */ + case 34: /* cmd ::= DROP TOPIC ifexists ids */ { setDropDbTableInfo(pInfo, TSDB_SQL_DROP_DB, &yymsp[0].minor.yy0, &yymsp[-1].minor.yy0, TSDB_DB_TYPE_TOPIC, -1); } break; - case 33: /* cmd ::= DROP FUNCTION ids */ + case 35: /* cmd ::= DROP FUNCTION ids */ { setDropFuncInfo(pInfo, TSDB_SQL_DROP_FUNCTION, &yymsp[0].minor.yy0); } break; - case 34: /* cmd ::= DROP DNODE ids */ + case 36: /* cmd ::= DROP DNODE ids */ { setDCLSqlElems(pInfo, TSDB_SQL_DROP_DNODE, 1, &yymsp[0].minor.yy0); } break; - case 35: /* cmd ::= DROP USER ids */ + case 37: /* cmd ::= DROP USER ids */ { setDCLSqlElems(pInfo, TSDB_SQL_DROP_USER, 1, &yymsp[0].minor.yy0); } break; - case 36: /* cmd ::= DROP ACCOUNT ids */ + case 38: /* cmd ::= DROP ACCOUNT ids */ { setDCLSqlElems(pInfo, TSDB_SQL_DROP_ACCT, 1, &yymsp[0].minor.yy0); } break; - case 37: /* cmd ::= USE ids */ + case 39: /* cmd ::= USE ids */ { setDCLSqlElems(pInfo, TSDB_SQL_USE_DB, 1, &yymsp[0].minor.yy0);} break; - case 38: /* cmd ::= DESCRIBE ids cpxName */ - case 39: /* cmd ::= DESC ids cpxName */ yytestcase(yyruleno==39); + case 40: /* cmd ::= DESCRIBE ids cpxName */ + case 41: /* cmd ::= DESC ids cpxName */ yytestcase(yyruleno==41); { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; setDCLSqlElems(pInfo, TSDB_SQL_DESCRIBE_TABLE, 1, &yymsp[-1].minor.yy0); } break; - case 40: /* cmd ::= ALTER USER ids PASS ids */ + case 42: /* cmd ::= ALTER USER ids PASS ids */ { setAlterUserSql(pInfo, TSDB_ALTER_USER_PASSWD, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, NULL, NULL);} break; - case 41: /* cmd ::= ALTER USER ids PRIVILEGE ids */ + case 43: /* cmd ::= ALTER USER ids PRIVILEGE ids */ { setAlterUserSql(pInfo, TSDB_ALTER_USER_PRIVILEGES, &yymsp[-2].minor.yy0, NULL, &yymsp[0].minor.yy0, NULL);} break; - case 42: /* cmd ::= ALTER USER ids TAGS ids */ + case 44: /* cmd ::= ALTER USER ids TAGS ids */ { setAlterUserSql(pInfo, TSDB_ALTER_USER_TAGS, &yymsp[-2].minor.yy0, NULL, NULL, &yymsp[0].minor.yy0);} break; - case 43: /* cmd ::= ALTER DNODE ids ids */ + case 45: /* cmd ::= ALTER DNODE ids ids */ { setDCLSqlElems(pInfo, TSDB_SQL_CFG_DNODE, 2, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 44: /* cmd ::= ALTER DNODE ids ids ids */ + case 46: /* cmd ::= ALTER DNODE ids ids ids */ { setDCLSqlElems(pInfo, TSDB_SQL_CFG_DNODE, 3, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 45: /* cmd ::= ALTER LOCAL ids */ + case 47: /* cmd ::= ALTER LOCAL ids */ { setDCLSqlElems(pInfo, TSDB_SQL_CFG_LOCAL, 1, &yymsp[0].minor.yy0); } break; - case 46: /* cmd ::= ALTER LOCAL ids ids */ + case 48: /* cmd ::= ALTER LOCAL ids ids */ { setDCLSqlElems(pInfo, TSDB_SQL_CFG_LOCAL, 2, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 47: /* cmd ::= ALTER DATABASE ids alter_db_optr */ - case 48: /* cmd ::= ALTER TOPIC ids alter_topic_optr */ yytestcase(yyruleno==48); -{ SStrToken t = {0}; setCreateDbInfo(pInfo, TSDB_SQL_ALTER_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy342, &t);} + case 49: /* cmd ::= ALTER DATABASE ids alter_db_optr */ + case 50: /* cmd ::= ALTER TOPIC ids alter_topic_optr */ yytestcase(yyruleno==50); +{ SStrToken t = {0}; setCreateDbInfo(pInfo, TSDB_SQL_ALTER_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy478, &t);} break; - case 49: /* cmd ::= ALTER ACCOUNT ids acct_optr */ -{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-1].minor.yy0, NULL, &yymsp[0].minor.yy299);} + case 51: /* cmd ::= ALTER ACCOUNT ids acct_optr */ +{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-1].minor.yy0, NULL, &yymsp[0].minor.yy547);} break; - case 50: /* cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */ -{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy299);} + case 52: /* cmd ::= ALTER ACCOUNT ids PASS ids acct_optr */ +{ setCreateAcctSql(pInfo, TSDB_SQL_ALTER_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy547);} break; - case 51: /* cmd ::= COMPACT VNODES IN LP exprlist RP */ -{ setCompactVnodeSql(pInfo, TSDB_SQL_COMPACT_VNODE, yymsp[-1].minor.yy333);} + case 53: /* cmd ::= COMPACT VNODES IN LP exprlist RP */ +{ setCompactVnodeSql(pInfo, TSDB_SQL_COMPACT_VNODE, yymsp[-1].minor.yy249);} break; - case 52: /* ids ::= ID */ - case 53: /* ids ::= STRING */ yytestcase(yyruleno==53); + case 54: /* ids ::= ID */ + case 55: /* ids ::= STRING */ yytestcase(yyruleno==55); {yylhsminor.yy0 = yymsp[0].minor.yy0; } yymsp[0].minor.yy0 = yylhsminor.yy0; break; - case 54: /* ifexists ::= IF EXISTS */ + case 56: /* ifexists ::= IF EXISTS */ { yymsp[-1].minor.yy0.n = 1;} break; - case 55: /* ifexists ::= */ - case 57: /* ifnotexists ::= */ yytestcase(yyruleno==57); - case 189: /* distinct ::= */ yytestcase(yyruleno==189); + case 57: /* ifexists ::= */ + case 59: /* ifnotexists ::= */ yytestcase(yyruleno==59); + case 191: /* distinct ::= */ yytestcase(yyruleno==191); { yymsp[1].minor.yy0.n = 0;} break; - case 56: /* ifnotexists ::= IF NOT EXISTS */ + case 58: /* ifnotexists ::= IF NOT EXISTS */ { yymsp[-2].minor.yy0.n = 1;} break; - case 58: /* cmd ::= CREATE DNODE ids */ + case 60: /* cmd ::= CREATE DNODE ids */ { setDCLSqlElems(pInfo, TSDB_SQL_CREATE_DNODE, 1, &yymsp[0].minor.yy0);} break; - case 59: /* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */ -{ setCreateAcctSql(pInfo, TSDB_SQL_CREATE_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy299);} + case 61: /* cmd ::= CREATE ACCOUNT ids PASS ids acct_optr */ +{ setCreateAcctSql(pInfo, TSDB_SQL_CREATE_ACCT, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy547);} break; - case 60: /* cmd ::= CREATE DATABASE ifnotexists ids db_optr */ - case 61: /* cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ yytestcase(yyruleno==61); -{ setCreateDbInfo(pInfo, TSDB_SQL_CREATE_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy342, &yymsp[-2].minor.yy0);} + case 62: /* cmd ::= CREATE DATABASE ifnotexists ids db_optr */ + case 63: /* cmd ::= CREATE TOPIC ifnotexists ids topic_optr */ yytestcase(yyruleno==63); +{ setCreateDbInfo(pInfo, TSDB_SQL_CREATE_DB, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy478, &yymsp[-2].minor.yy0);} break; - case 62: /* cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ -{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy263, &yymsp[0].minor.yy0, 1);} + case 64: /* cmd ::= CREATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ +{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy475, &yymsp[0].minor.yy0, 1);} break; - case 63: /* cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ -{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy263, &yymsp[0].minor.yy0, 2);} + case 65: /* cmd ::= CREATE AGGREGATE FUNCTION ids AS ids OUTPUTTYPE typename bufsize */ +{ setCreateFuncInfo(pInfo, TSDB_SQL_CREATE_FUNCTION, &yymsp[-5].minor.yy0, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy475, &yymsp[0].minor.yy0, 2);} break; - case 64: /* cmd ::= CREATE USER ids PASS ids */ + case 66: /* cmd ::= CREATE USER ids PASS ids */ { setCreateUserSql(pInfo, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, NULL);} break; - case 65: /* cmd ::= CREATE USER ids PASS ids TAGS ids */ + case 67: /* cmd ::= CREATE USER ids PASS ids TAGS ids */ { setCreateUserSql(pInfo, &yymsp[-4].minor.yy0, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0);} break; - case 66: /* bufsize ::= */ - case 68: /* pps ::= */ yytestcase(yyruleno==68); - case 70: /* tseries ::= */ yytestcase(yyruleno==70); - case 72: /* dbs ::= */ yytestcase(yyruleno==72); - case 74: /* streams ::= */ yytestcase(yyruleno==74); - case 76: /* storage ::= */ yytestcase(yyruleno==76); - case 78: /* qtime ::= */ yytestcase(yyruleno==78); - case 80: /* users ::= */ yytestcase(yyruleno==80); - case 82: /* conns ::= */ yytestcase(yyruleno==82); - case 84: /* state ::= */ yytestcase(yyruleno==84); + case 68: /* bufsize ::= */ + case 70: /* pps ::= */ yytestcase(yyruleno==70); + case 72: /* tseries ::= */ yytestcase(yyruleno==72); + case 74: /* dbs ::= */ yytestcase(yyruleno==74); + case 76: /* streams ::= */ yytestcase(yyruleno==76); + case 78: /* storage ::= */ yytestcase(yyruleno==78); + case 80: /* qtime ::= */ yytestcase(yyruleno==80); + case 82: /* users ::= */ yytestcase(yyruleno==82); + case 84: /* conns ::= */ yytestcase(yyruleno==84); + case 86: /* state ::= */ yytestcase(yyruleno==86); { yymsp[1].minor.yy0.n = 0; } break; - case 67: /* bufsize ::= BUFSIZE INTEGER */ - case 69: /* pps ::= PPS INTEGER */ yytestcase(yyruleno==69); - case 71: /* tseries ::= TSERIES INTEGER */ yytestcase(yyruleno==71); - case 73: /* dbs ::= DBS INTEGER */ yytestcase(yyruleno==73); - case 75: /* streams ::= STREAMS INTEGER */ yytestcase(yyruleno==75); - case 77: /* storage ::= STORAGE INTEGER */ yytestcase(yyruleno==77); - case 79: /* qtime ::= QTIME INTEGER */ yytestcase(yyruleno==79); - case 81: /* users ::= USERS INTEGER */ yytestcase(yyruleno==81); - case 83: /* conns ::= CONNS INTEGER */ yytestcase(yyruleno==83); - case 85: /* state ::= STATE ids */ yytestcase(yyruleno==85); + case 69: /* bufsize ::= BUFSIZE INTEGER */ + case 71: /* pps ::= PPS INTEGER */ yytestcase(yyruleno==71); + case 73: /* tseries ::= TSERIES INTEGER */ yytestcase(yyruleno==73); + case 75: /* dbs ::= DBS INTEGER */ yytestcase(yyruleno==75); + case 77: /* streams ::= STREAMS INTEGER */ yytestcase(yyruleno==77); + case 79: /* storage ::= STORAGE INTEGER */ yytestcase(yyruleno==79); + case 81: /* qtime ::= QTIME INTEGER */ yytestcase(yyruleno==81); + case 83: /* users ::= USERS INTEGER */ yytestcase(yyruleno==83); + case 85: /* conns ::= CONNS INTEGER */ yytestcase(yyruleno==85); + case 87: /* state ::= STATE ids */ yytestcase(yyruleno==87); { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; } break; - case 86: /* acct_optr ::= pps tseries storage streams qtime dbs users conns state */ -{ - yylhsminor.yy299.maxUsers = (yymsp[-2].minor.yy0.n>0)?atoi(yymsp[-2].minor.yy0.z):-1; - yylhsminor.yy299.maxDbs = (yymsp[-3].minor.yy0.n>0)?atoi(yymsp[-3].minor.yy0.z):-1; - yylhsminor.yy299.maxTimeSeries = (yymsp[-7].minor.yy0.n>0)?atoi(yymsp[-7].minor.yy0.z):-1; - yylhsminor.yy299.maxStreams = (yymsp[-5].minor.yy0.n>0)?atoi(yymsp[-5].minor.yy0.z):-1; - yylhsminor.yy299.maxPointsPerSecond = (yymsp[-8].minor.yy0.n>0)?atoi(yymsp[-8].minor.yy0.z):-1; - yylhsminor.yy299.maxStorage = (yymsp[-6].minor.yy0.n>0)?strtoll(yymsp[-6].minor.yy0.z, NULL, 10):-1; - yylhsminor.yy299.maxQueryTime = (yymsp[-4].minor.yy0.n>0)?strtoll(yymsp[-4].minor.yy0.z, NULL, 10):-1; - yylhsminor.yy299.maxConnections = (yymsp[-1].minor.yy0.n>0)?atoi(yymsp[-1].minor.yy0.z):-1; - yylhsminor.yy299.stat = yymsp[0].minor.yy0; -} - yymsp[-8].minor.yy299 = yylhsminor.yy299; - break; - case 87: /* intitemlist ::= intitemlist COMMA intitem */ - case 161: /* tagitemlist ::= tagitemlist COMMA tagitem */ yytestcase(yyruleno==161); -{ yylhsminor.yy333 = tVariantListAppend(yymsp[-2].minor.yy333, &yymsp[0].minor.yy42, -1); } - yymsp[-2].minor.yy333 = yylhsminor.yy333; - break; - case 88: /* intitemlist ::= intitem */ - case 162: /* tagitemlist ::= tagitem */ yytestcase(yyruleno==162); -{ yylhsminor.yy333 = tVariantListAppend(NULL, &yymsp[0].minor.yy42, -1); } - yymsp[0].minor.yy333 = yylhsminor.yy333; - break; - case 89: /* intitem ::= INTEGER */ - case 163: /* tagitem ::= INTEGER */ yytestcase(yyruleno==163); - case 164: /* tagitem ::= FLOAT */ yytestcase(yyruleno==164); - case 165: /* tagitem ::= STRING */ yytestcase(yyruleno==165); - case 166: /* tagitem ::= BOOL */ yytestcase(yyruleno==166); -{ toTSDBType(yymsp[0].minor.yy0.type); tVariantCreate(&yylhsminor.yy42, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy42 = yylhsminor.yy42; - break; - case 90: /* keep ::= KEEP intitemlist */ -{ yymsp[-1].minor.yy333 = yymsp[0].minor.yy333; } - break; - case 91: /* cache ::= CACHE INTEGER */ - case 92: /* replica ::= REPLICA INTEGER */ yytestcase(yyruleno==92); - case 93: /* quorum ::= QUORUM INTEGER */ yytestcase(yyruleno==93); - case 94: /* days ::= DAYS INTEGER */ yytestcase(yyruleno==94); - case 95: /* minrows ::= MINROWS INTEGER */ yytestcase(yyruleno==95); - case 96: /* maxrows ::= MAXROWS INTEGER */ yytestcase(yyruleno==96); - case 97: /* blocks ::= BLOCKS INTEGER */ yytestcase(yyruleno==97); - case 98: /* ctime ::= CTIME INTEGER */ yytestcase(yyruleno==98); - case 99: /* wal ::= WAL INTEGER */ yytestcase(yyruleno==99); - case 100: /* fsync ::= FSYNC INTEGER */ yytestcase(yyruleno==100); - case 101: /* comp ::= COMP INTEGER */ yytestcase(yyruleno==101); - case 102: /* prec ::= PRECISION STRING */ yytestcase(yyruleno==102); - case 103: /* update ::= UPDATE INTEGER */ yytestcase(yyruleno==103); - case 104: /* cachelast ::= CACHELAST INTEGER */ yytestcase(yyruleno==104); - case 105: /* partitions ::= PARTITIONS INTEGER */ yytestcase(yyruleno==105); + case 88: /* acct_optr ::= pps tseries storage streams qtime dbs users conns state */ +{ + yylhsminor.yy547.maxUsers = (yymsp[-2].minor.yy0.n>0)?atoi(yymsp[-2].minor.yy0.z):-1; + yylhsminor.yy547.maxDbs = (yymsp[-3].minor.yy0.n>0)?atoi(yymsp[-3].minor.yy0.z):-1; + yylhsminor.yy547.maxTimeSeries = (yymsp[-7].minor.yy0.n>0)?atoi(yymsp[-7].minor.yy0.z):-1; + yylhsminor.yy547.maxStreams = (yymsp[-5].minor.yy0.n>0)?atoi(yymsp[-5].minor.yy0.z):-1; + yylhsminor.yy547.maxPointsPerSecond = (yymsp[-8].minor.yy0.n>0)?atoi(yymsp[-8].minor.yy0.z):-1; + yylhsminor.yy547.maxStorage = (yymsp[-6].minor.yy0.n>0)?strtoll(yymsp[-6].minor.yy0.z, NULL, 10):-1; + yylhsminor.yy547.maxQueryTime = (yymsp[-4].minor.yy0.n>0)?strtoll(yymsp[-4].minor.yy0.z, NULL, 10):-1; + yylhsminor.yy547.maxConnections = (yymsp[-1].minor.yy0.n>0)?atoi(yymsp[-1].minor.yy0.z):-1; + yylhsminor.yy547.stat = yymsp[0].minor.yy0; +} + yymsp[-8].minor.yy547 = yylhsminor.yy547; + break; + case 89: /* intitemlist ::= intitemlist COMMA intitem */ + case 163: /* tagitemlist ::= tagitemlist COMMA tagitem */ yytestcase(yyruleno==163); +{ yylhsminor.yy249 = tVariantListAppend(yymsp[-2].minor.yy249, &yymsp[0].minor.yy134, -1); } + yymsp[-2].minor.yy249 = yylhsminor.yy249; + break; + case 90: /* intitemlist ::= intitem */ + case 164: /* tagitemlist ::= tagitem */ yytestcase(yyruleno==164); +{ yylhsminor.yy249 = tVariantListAppend(NULL, &yymsp[0].minor.yy134, -1); } + yymsp[0].minor.yy249 = yylhsminor.yy249; + break; + case 91: /* intitem ::= INTEGER */ + case 165: /* tagitem ::= INTEGER */ yytestcase(yyruleno==165); + case 166: /* tagitem ::= FLOAT */ yytestcase(yyruleno==166); + case 167: /* tagitem ::= STRING */ yytestcase(yyruleno==167); + case 168: /* tagitem ::= BOOL */ yytestcase(yyruleno==168); +{ toTSDBType(yymsp[0].minor.yy0.type); tVariantCreate(&yylhsminor.yy134, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy134 = yylhsminor.yy134; + break; + case 92: /* keep ::= KEEP intitemlist */ +{ yymsp[-1].minor.yy249 = yymsp[0].minor.yy249; } + break; + case 93: /* cache ::= CACHE INTEGER */ + case 94: /* replica ::= REPLICA INTEGER */ yytestcase(yyruleno==94); + case 95: /* quorum ::= QUORUM INTEGER */ yytestcase(yyruleno==95); + case 96: /* days ::= DAYS INTEGER */ yytestcase(yyruleno==96); + case 97: /* minrows ::= MINROWS INTEGER */ yytestcase(yyruleno==97); + case 98: /* maxrows ::= MAXROWS INTEGER */ yytestcase(yyruleno==98); + case 99: /* blocks ::= BLOCKS INTEGER */ yytestcase(yyruleno==99); + case 100: /* ctime ::= CTIME INTEGER */ yytestcase(yyruleno==100); + case 101: /* wal ::= WAL INTEGER */ yytestcase(yyruleno==101); + case 102: /* fsync ::= FSYNC INTEGER */ yytestcase(yyruleno==102); + case 103: /* comp ::= COMP INTEGER */ yytestcase(yyruleno==103); + case 104: /* prec ::= PRECISION STRING */ yytestcase(yyruleno==104); + case 105: /* update ::= UPDATE INTEGER */ yytestcase(yyruleno==105); + case 106: /* cachelast ::= CACHELAST INTEGER */ yytestcase(yyruleno==106); + case 107: /* partitions ::= PARTITIONS INTEGER */ yytestcase(yyruleno==107); { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; } break; - case 106: /* db_optr ::= */ -{setDefaultCreateDbOption(&yymsp[1].minor.yy342); yymsp[1].minor.yy342.dbType = TSDB_DB_TYPE_DEFAULT;} - break; - case 107: /* db_optr ::= db_optr cache */ -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.cacheBlockSize = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 108: /* db_optr ::= db_optr replica */ - case 125: /* alter_db_optr ::= alter_db_optr replica */ yytestcase(yyruleno==125); -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.replica = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 109: /* db_optr ::= db_optr quorum */ - case 126: /* alter_db_optr ::= alter_db_optr quorum */ yytestcase(yyruleno==126); -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.quorum = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 110: /* db_optr ::= db_optr days */ -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.daysPerFile = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 111: /* db_optr ::= db_optr minrows */ -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.minRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 112: /* db_optr ::= db_optr maxrows */ -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.maxRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 113: /* db_optr ::= db_optr blocks */ - case 128: /* alter_db_optr ::= alter_db_optr blocks */ yytestcase(yyruleno==128); -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.numOfBlocks = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 114: /* db_optr ::= db_optr ctime */ -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.commitTime = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 115: /* db_optr ::= db_optr wal */ -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.walLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 116: /* db_optr ::= db_optr fsync */ -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.fsyncPeriod = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 117: /* db_optr ::= db_optr comp */ - case 129: /* alter_db_optr ::= alter_db_optr comp */ yytestcase(yyruleno==129); -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.compressionLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 118: /* db_optr ::= db_optr prec */ -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.precision = yymsp[0].minor.yy0; } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 119: /* db_optr ::= db_optr keep */ - case 127: /* alter_db_optr ::= alter_db_optr keep */ yytestcase(yyruleno==127); -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.keep = yymsp[0].minor.yy333; } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 120: /* db_optr ::= db_optr update */ - case 130: /* alter_db_optr ::= alter_db_optr update */ yytestcase(yyruleno==130); -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.update = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 121: /* db_optr ::= db_optr cachelast */ - case 131: /* alter_db_optr ::= alter_db_optr cachelast */ yytestcase(yyruleno==131); -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.cachelast = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 122: /* topic_optr ::= db_optr */ - case 133: /* alter_topic_optr ::= alter_db_optr */ yytestcase(yyruleno==133); -{ yylhsminor.yy342 = yymsp[0].minor.yy342; yylhsminor.yy342.dbType = TSDB_DB_TYPE_TOPIC; } - yymsp[0].minor.yy342 = yylhsminor.yy342; - break; - case 123: /* topic_optr ::= topic_optr partitions */ - case 134: /* alter_topic_optr ::= alter_topic_optr partitions */ yytestcase(yyruleno==134); -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.partitions = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 124: /* alter_db_optr ::= */ -{ setDefaultCreateDbOption(&yymsp[1].minor.yy342); yymsp[1].minor.yy342.dbType = TSDB_DB_TYPE_DEFAULT;} - break; - case 132: /* alter_db_optr ::= alter_db_optr minrows */ -{ yylhsminor.yy342 = yymsp[-1].minor.yy342; yylhsminor.yy342.minRowsPerBlock = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[-1].minor.yy342 = yylhsminor.yy342; - break; - case 135: /* typename ::= ids */ + case 108: /* db_optr ::= */ +{setDefaultCreateDbOption(&yymsp[1].minor.yy478); yymsp[1].minor.yy478.dbType = TSDB_DB_TYPE_DEFAULT;} + break; + case 109: /* db_optr ::= db_optr cache */ +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.cacheBlockSize = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 110: /* db_optr ::= db_optr replica */ + case 127: /* alter_db_optr ::= alter_db_optr replica */ yytestcase(yyruleno==127); +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.replica = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 111: /* db_optr ::= db_optr quorum */ + case 128: /* alter_db_optr ::= alter_db_optr quorum */ yytestcase(yyruleno==128); +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.quorum = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 112: /* db_optr ::= db_optr days */ +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.daysPerFile = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 113: /* db_optr ::= db_optr minrows */ +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.minRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 114: /* db_optr ::= db_optr maxrows */ +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.maxRowsPerBlock = strtod(yymsp[0].minor.yy0.z, NULL); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 115: /* db_optr ::= db_optr blocks */ + case 130: /* alter_db_optr ::= alter_db_optr blocks */ yytestcase(yyruleno==130); +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.numOfBlocks = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 116: /* db_optr ::= db_optr ctime */ +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.commitTime = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 117: /* db_optr ::= db_optr wal */ +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.walLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 118: /* db_optr ::= db_optr fsync */ +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.fsyncPeriod = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 119: /* db_optr ::= db_optr comp */ + case 131: /* alter_db_optr ::= alter_db_optr comp */ yytestcase(yyruleno==131); +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.compressionLevel = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 120: /* db_optr ::= db_optr prec */ +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.precision = yymsp[0].minor.yy0; } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 121: /* db_optr ::= db_optr keep */ + case 129: /* alter_db_optr ::= alter_db_optr keep */ yytestcase(yyruleno==129); +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.keep = yymsp[0].minor.yy249; } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 122: /* db_optr ::= db_optr update */ + case 132: /* alter_db_optr ::= alter_db_optr update */ yytestcase(yyruleno==132); +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.update = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 123: /* db_optr ::= db_optr cachelast */ + case 133: /* alter_db_optr ::= alter_db_optr cachelast */ yytestcase(yyruleno==133); +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.cachelast = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 124: /* topic_optr ::= db_optr */ + case 135: /* alter_topic_optr ::= alter_db_optr */ yytestcase(yyruleno==135); +{ yylhsminor.yy478 = yymsp[0].minor.yy478; yylhsminor.yy478.dbType = TSDB_DB_TYPE_TOPIC; } + yymsp[0].minor.yy478 = yylhsminor.yy478; + break; + case 125: /* topic_optr ::= topic_optr partitions */ + case 136: /* alter_topic_optr ::= alter_topic_optr partitions */ yytestcase(yyruleno==136); +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.partitions = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 126: /* alter_db_optr ::= */ +{ setDefaultCreateDbOption(&yymsp[1].minor.yy478); yymsp[1].minor.yy478.dbType = TSDB_DB_TYPE_DEFAULT;} + break; + case 134: /* alter_db_optr ::= alter_db_optr minrows */ +{ yylhsminor.yy478 = yymsp[-1].minor.yy478; yylhsminor.yy478.minRowsPerBlock = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[-1].minor.yy478 = yylhsminor.yy478; + break; + case 137: /* typename ::= ids */ { yymsp[0].minor.yy0.type = 0; - tSetColumnType (&yylhsminor.yy263, &yymsp[0].minor.yy0); + tSetColumnType (&yylhsminor.yy475, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy263 = yylhsminor.yy263; + yymsp[0].minor.yy475 = yylhsminor.yy475; break; - case 136: /* typename ::= ids LP signed RP */ + case 138: /* typename ::= ids LP signed RP */ { - if (yymsp[-1].minor.yy277 <= 0) { + if (yymsp[-1].minor.yy165 <= 0) { yymsp[-3].minor.yy0.type = 0; - tSetColumnType(&yylhsminor.yy263, &yymsp[-3].minor.yy0); + tSetColumnType(&yylhsminor.yy475, &yymsp[-3].minor.yy0); } else { - yymsp[-3].minor.yy0.type = -yymsp[-1].minor.yy277; // negative value of name length - tSetColumnType(&yylhsminor.yy263, &yymsp[-3].minor.yy0); + yymsp[-3].minor.yy0.type = -yymsp[-1].minor.yy165; // negative value of name length + tSetColumnType(&yylhsminor.yy475, &yymsp[-3].minor.yy0); } } - yymsp[-3].minor.yy263 = yylhsminor.yy263; + yymsp[-3].minor.yy475 = yylhsminor.yy475; break; - case 137: /* typename ::= ids UNSIGNED */ + case 139: /* typename ::= ids UNSIGNED */ { yymsp[-1].minor.yy0.type = 0; yymsp[-1].minor.yy0.n = ((yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z); - tSetColumnType (&yylhsminor.yy263, &yymsp[-1].minor.yy0); + tSetColumnType (&yylhsminor.yy475, &yymsp[-1].minor.yy0); } - yymsp[-1].minor.yy263 = yylhsminor.yy263; + yymsp[-1].minor.yy475 = yylhsminor.yy475; break; - case 138: /* signed ::= INTEGER */ -{ yylhsminor.yy277 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } - yymsp[0].minor.yy277 = yylhsminor.yy277; + case 140: /* signed ::= INTEGER */ +{ yylhsminor.yy165 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + yymsp[0].minor.yy165 = yylhsminor.yy165; break; - case 139: /* signed ::= PLUS INTEGER */ -{ yymsp[-1].minor.yy277 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } + case 141: /* signed ::= PLUS INTEGER */ +{ yymsp[-1].minor.yy165 = strtol(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 140: /* signed ::= MINUS INTEGER */ -{ yymsp[-1].minor.yy277 = -strtol(yymsp[0].minor.yy0.z, NULL, 10);} + case 142: /* signed ::= MINUS INTEGER */ +{ yymsp[-1].minor.yy165 = -strtol(yymsp[0].minor.yy0.z, NULL, 10);} break; - case 144: /* cmd ::= CREATE TABLE create_table_list */ -{ pInfo->type = TSDB_SQL_CREATE_TABLE; pInfo->pCreateTableInfo = yymsp[0].minor.yy78;} + case 146: /* cmd ::= CREATE TABLE create_table_list */ +{ pInfo->type = TSDB_SQL_CREATE_TABLE; pInfo->pCreateTableInfo = yymsp[0].minor.yy494;} break; - case 145: /* create_table_list ::= create_from_stable */ + case 147: /* create_table_list ::= create_from_stable */ { SCreateTableSql* pCreateTable = calloc(1, sizeof(SCreateTableSql)); pCreateTable->childTableInfo = taosArrayInit(4, sizeof(SCreatedTableInfo)); - taosArrayPush(pCreateTable->childTableInfo, &yymsp[0].minor.yy400); + taosArrayPush(pCreateTable->childTableInfo, &yymsp[0].minor.yy192); pCreateTable->type = TSQL_CREATE_TABLE_FROM_STABLE; - yylhsminor.yy78 = pCreateTable; + yylhsminor.yy494 = pCreateTable; } - yymsp[0].minor.yy78 = yylhsminor.yy78; + yymsp[0].minor.yy494 = yylhsminor.yy494; break; - case 146: /* create_table_list ::= create_table_list create_from_stable */ + case 148: /* create_table_list ::= create_table_list create_from_stable */ { - taosArrayPush(yymsp[-1].minor.yy78->childTableInfo, &yymsp[0].minor.yy400); - yylhsminor.yy78 = yymsp[-1].minor.yy78; + taosArrayPush(yymsp[-1].minor.yy494->childTableInfo, &yymsp[0].minor.yy192); + yylhsminor.yy494 = yymsp[-1].minor.yy494; } - yymsp[-1].minor.yy78 = yylhsminor.yy78; + yymsp[-1].minor.yy494 = yylhsminor.yy494; break; - case 147: /* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ + case 149: /* create_table_args ::= ifnotexists ids cpxName LP columnlist RP */ { - yylhsminor.yy78 = tSetCreateTableInfo(yymsp[-1].minor.yy333, NULL, NULL, TSQL_CREATE_TABLE); - setSqlInfo(pInfo, yylhsminor.yy78, NULL, TSDB_SQL_CREATE_TABLE); + yylhsminor.yy494 = tSetCreateTableInfo(yymsp[-1].minor.yy249, NULL, NULL, TSQL_CREATE_TABLE); + setSqlInfo(pInfo, yylhsminor.yy494, NULL, TSDB_SQL_CREATE_TABLE); yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; setCreatedTableName(pInfo, &yymsp[-4].minor.yy0, &yymsp[-5].minor.yy0); } - yymsp[-5].minor.yy78 = yylhsminor.yy78; + yymsp[-5].minor.yy494 = yylhsminor.yy494; break; - case 148: /* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ + case 150: /* create_stable_args ::= ifnotexists ids cpxName LP columnlist RP TAGS LP columnlist RP */ { - yylhsminor.yy78 = tSetCreateTableInfo(yymsp[-5].minor.yy333, yymsp[-1].minor.yy333, NULL, TSQL_CREATE_STABLE); - setSqlInfo(pInfo, yylhsminor.yy78, NULL, TSDB_SQL_CREATE_TABLE); + yylhsminor.yy494 = tSetCreateTableInfo(yymsp[-5].minor.yy249, yymsp[-1].minor.yy249, NULL, TSQL_CREATE_STABLE); + setSqlInfo(pInfo, yylhsminor.yy494, NULL, TSDB_SQL_CREATE_TABLE); yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n; setCreatedTableName(pInfo, &yymsp[-8].minor.yy0, &yymsp[-9].minor.yy0); } - yymsp[-9].minor.yy78 = yylhsminor.yy78; + yymsp[-9].minor.yy494 = yylhsminor.yy494; break; - case 149: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ + case 151: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName TAGS LP tagitemlist RP */ { yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n; yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n; - yylhsminor.yy400 = createNewChildTableInfo(&yymsp[-5].minor.yy0, NULL, yymsp[-1].minor.yy333, &yymsp[-8].minor.yy0, &yymsp[-9].minor.yy0); + yylhsminor.yy192 = createNewChildTableInfo(&yymsp[-5].minor.yy0, NULL, yymsp[-1].minor.yy249, &yymsp[-8].minor.yy0, &yymsp[-9].minor.yy0); } - yymsp[-9].minor.yy400 = yylhsminor.yy400; + yymsp[-9].minor.yy192 = yylhsminor.yy192; break; - case 150: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ + case 152: /* create_from_stable ::= ifnotexists ids cpxName USING ids cpxName LP tagNamelist RP TAGS LP tagitemlist RP */ { yymsp[-8].minor.yy0.n += yymsp[-7].minor.yy0.n; yymsp[-11].minor.yy0.n += yymsp[-10].minor.yy0.n; - yylhsminor.yy400 = createNewChildTableInfo(&yymsp[-8].minor.yy0, yymsp[-5].minor.yy333, yymsp[-1].minor.yy333, &yymsp[-11].minor.yy0, &yymsp[-12].minor.yy0); + yylhsminor.yy192 = createNewChildTableInfo(&yymsp[-8].minor.yy0, yymsp[-5].minor.yy249, yymsp[-1].minor.yy249, &yymsp[-11].minor.yy0, &yymsp[-12].minor.yy0); } - yymsp[-12].minor.yy400 = yylhsminor.yy400; + yymsp[-12].minor.yy192 = yylhsminor.yy192; break; - case 151: /* tagNamelist ::= tagNamelist COMMA ids */ -{taosArrayPush(yymsp[-2].minor.yy333, &yymsp[0].minor.yy0); yylhsminor.yy333 = yymsp[-2].minor.yy333; } - yymsp[-2].minor.yy333 = yylhsminor.yy333; + case 153: /* tagNamelist ::= tagNamelist COMMA ids */ +{taosArrayPush(yymsp[-2].minor.yy249, &yymsp[0].minor.yy0); yylhsminor.yy249 = yymsp[-2].minor.yy249; } + yymsp[-2].minor.yy249 = yylhsminor.yy249; break; - case 152: /* tagNamelist ::= ids */ -{yylhsminor.yy333 = taosArrayInit(4, sizeof(SStrToken)); taosArrayPush(yylhsminor.yy333, &yymsp[0].minor.yy0);} - yymsp[0].minor.yy333 = yylhsminor.yy333; + case 154: /* tagNamelist ::= ids */ +{yylhsminor.yy249 = taosArrayInit(4, sizeof(SStrToken)); taosArrayPush(yylhsminor.yy249, &yymsp[0].minor.yy0);} + yymsp[0].minor.yy249 = yylhsminor.yy249; break; - case 153: /* create_table_args ::= ifnotexists ids cpxName to_opt split_opt AS select */ + case 155: /* create_table_args ::= ifnotexists ids cpxName to_opt split_opt AS select */ { - yylhsminor.yy78 = tSetCreateTableInfo(NULL, NULL, yymsp[0].minor.yy144, TSQL_CREATE_STREAM); - setSqlInfo(pInfo, yylhsminor.yy78, NULL, TSDB_SQL_CREATE_TABLE); + yylhsminor.yy494 = tSetCreateTableInfo(NULL, NULL, yymsp[0].minor.yy320, TSQL_CREATE_STREAM); + setSqlInfo(pInfo, yylhsminor.yy494, NULL, TSDB_SQL_CREATE_TABLE); setCreatedStreamOpt(pInfo, &yymsp[-3].minor.yy0, &yymsp[-2].minor.yy0); yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n; setCreatedTableName(pInfo, &yymsp[-5].minor.yy0, &yymsp[-6].minor.yy0); } - yymsp[-6].minor.yy78 = yylhsminor.yy78; + yymsp[-6].minor.yy494 = yylhsminor.yy494; break; - case 154: /* to_opt ::= */ - case 156: /* split_opt ::= */ yytestcase(yyruleno==156); + case 156: /* to_opt ::= */ + case 158: /* split_opt ::= */ yytestcase(yyruleno==158); {yymsp[1].minor.yy0.n = 0;} break; - case 155: /* to_opt ::= TO ids cpxName */ + case 157: /* to_opt ::= TO ids cpxName */ { yymsp[-2].minor.yy0 = yymsp[-1].minor.yy0; yymsp[-2].minor.yy0.n += yymsp[0].minor.yy0.n; } break; - case 157: /* split_opt ::= SPLIT ids */ + case 159: /* split_opt ::= SPLIT ids */ { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0;} break; - case 158: /* columnlist ::= columnlist COMMA column */ -{taosArrayPush(yymsp[-2].minor.yy333, &yymsp[0].minor.yy263); yylhsminor.yy333 = yymsp[-2].minor.yy333; } - yymsp[-2].minor.yy333 = yylhsminor.yy333; + case 160: /* columnlist ::= columnlist COMMA column */ +{taosArrayPush(yymsp[-2].minor.yy249, &yymsp[0].minor.yy475); yylhsminor.yy249 = yymsp[-2].minor.yy249; } + yymsp[-2].minor.yy249 = yylhsminor.yy249; break; - case 159: /* columnlist ::= column */ -{yylhsminor.yy333 = taosArrayInit(4, sizeof(TAOS_FIELD)); taosArrayPush(yylhsminor.yy333, &yymsp[0].minor.yy263);} - yymsp[0].minor.yy333 = yylhsminor.yy333; + case 161: /* columnlist ::= column */ +{yylhsminor.yy249 = taosArrayInit(4, sizeof(TAOS_FIELD)); taosArrayPush(yylhsminor.yy249, &yymsp[0].minor.yy475);} + yymsp[0].minor.yy249 = yylhsminor.yy249; break; - case 160: /* column ::= ids typename */ + case 162: /* column ::= ids typename */ { - tSetColumnInfo(&yylhsminor.yy263, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy263); + tSetColumnInfo(&yylhsminor.yy475, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy475); } - yymsp[-1].minor.yy263 = yylhsminor.yy263; + yymsp[-1].minor.yy475 = yylhsminor.yy475; break; - case 167: /* tagitem ::= NULL */ -{ yymsp[0].minor.yy0.type = 0; tVariantCreate(&yylhsminor.yy42, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy42 = yylhsminor.yy42; + case 169: /* tagitem ::= NULL */ +{ yymsp[0].minor.yy0.type = 0; tVariantCreate(&yylhsminor.yy134, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy134 = yylhsminor.yy134; break; - case 168: /* tagitem ::= NOW */ -{ yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; tVariantCreateExt(&yylhsminor.yy42, &yymsp[0].minor.yy0, TK_NOW, true);} - yymsp[0].minor.yy42 = yylhsminor.yy42; + case 170: /* tagitem ::= NOW */ +{ yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; tVariantCreateExt(&yylhsminor.yy134, &yymsp[0].minor.yy0, TK_NOW, true);} + yymsp[0].minor.yy134 = yylhsminor.yy134; break; - case 169: /* tagitem ::= NOW PLUS VARIABLE */ + case 171: /* tagitem ::= NOW PLUS VARIABLE */ { yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; - tVariantCreateExt(&yymsp[-2].minor.yy42, &yymsp[0].minor.yy0, TK_PLUS, true); + tVariantCreateExt(&yymsp[-2].minor.yy134, &yymsp[0].minor.yy0, TK_PLUS, true); } break; - case 170: /* tagitem ::= NOW MINUS VARIABLE */ + case 172: /* tagitem ::= NOW MINUS VARIABLE */ { yymsp[0].minor.yy0.type = TSDB_DATA_TYPE_TIMESTAMP; - tVariantCreateExt(&yymsp[-2].minor.yy42, &yymsp[0].minor.yy0, TK_MINUS, true); + tVariantCreateExt(&yymsp[-2].minor.yy134, &yymsp[0].minor.yy0, TK_MINUS, true); } break; - case 171: /* tagitem ::= MINUS INTEGER */ - case 172: /* tagitem ::= MINUS FLOAT */ yytestcase(yyruleno==172); - case 173: /* tagitem ::= PLUS INTEGER */ yytestcase(yyruleno==173); - case 174: /* tagitem ::= PLUS FLOAT */ yytestcase(yyruleno==174); + case 173: /* tagitem ::= MINUS INTEGER */ + case 174: /* tagitem ::= MINUS FLOAT */ yytestcase(yyruleno==174); + case 175: /* tagitem ::= PLUS INTEGER */ yytestcase(yyruleno==175); + case 176: /* tagitem ::= PLUS FLOAT */ yytestcase(yyruleno==176); { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = yymsp[0].minor.yy0.type; toTSDBType(yymsp[-1].minor.yy0.type); - tVariantCreate(&yylhsminor.yy42, &yymsp[-1].minor.yy0); + tVariantCreate(&yylhsminor.yy134, &yymsp[-1].minor.yy0); } - yymsp[-1].minor.yy42 = yylhsminor.yy42; + yymsp[-1].minor.yy134 = yylhsminor.yy134; break; - case 175: /* select ::= SELECT selcollist from where_opt range_option interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */ + case 177: /* select ::= SELECT selcollist from where_opt range_option interval_option sliding_opt session_option windowstate_option fill_opt groupby_opt having_opt orderby_opt slimit_opt limit_opt */ { - yylhsminor.yy144 = tSetQuerySqlNode(&yymsp[-14].minor.yy0, yymsp[-13].minor.yy333, yymsp[-12].minor.yy516, yymsp[-11].minor.yy194, yymsp[-4].minor.yy333, yymsp[-2].minor.yy333, &yymsp[-9].minor.yy200, &yymsp[-7].minor.yy235, &yymsp[-6].minor.yy248, &yymsp[-8].minor.yy0, yymsp[-5].minor.yy333, &yymsp[0].minor.yy190, &yymsp[-1].minor.yy190, yymsp[-3].minor.yy194, &yymsp[-10].minor.yy132); + yylhsminor.yy320 = tSetQuerySqlNode(&yymsp[-14].minor.yy0, yymsp[-13].minor.yy249, yymsp[-12].minor.yy52, yymsp[-11].minor.yy370, yymsp[-4].minor.yy249, yymsp[-2].minor.yy249, &yymsp[-9].minor.yy196, &yymsp[-7].minor.yy559, &yymsp[-6].minor.yy385, &yymsp[-8].minor.yy0, yymsp[-5].minor.yy249, &yymsp[0].minor.yy342, &yymsp[-1].minor.yy342, yymsp[-3].minor.yy370, &yymsp[-10].minor.yy384); } - yymsp[-14].minor.yy144 = yylhsminor.yy144; + yymsp[-14].minor.yy320 = yylhsminor.yy320; break; - case 176: /* select ::= LP select RP */ -{yymsp[-2].minor.yy144 = yymsp[-1].minor.yy144;} + case 178: /* select ::= LP select RP */ +{yymsp[-2].minor.yy320 = yymsp[-1].minor.yy320;} break; - case 177: /* union ::= select */ -{ yylhsminor.yy333 = setSubclause(NULL, yymsp[0].minor.yy144); } - yymsp[0].minor.yy333 = yylhsminor.yy333; + case 179: /* union ::= select */ +{ yylhsminor.yy249 = setSubclause(NULL, yymsp[0].minor.yy320); } + yymsp[0].minor.yy249 = yylhsminor.yy249; break; - case 178: /* union ::= union UNION ALL select */ -{ yylhsminor.yy333 = appendSelectClause(yymsp[-3].minor.yy333, yymsp[0].minor.yy144); } - yymsp[-3].minor.yy333 = yylhsminor.yy333; + case 180: /* union ::= union UNION ALL select */ +{ yylhsminor.yy249 = appendSelectClause(yymsp[-3].minor.yy249, yymsp[0].minor.yy320); } + yymsp[-3].minor.yy249 = yylhsminor.yy249; break; - case 179: /* cmd ::= union */ -{ setSqlInfo(pInfo, yymsp[0].minor.yy333, NULL, TSDB_SQL_SELECT); } + case 181: /* cmd ::= union */ +{ setSqlInfo(pInfo, yymsp[0].minor.yy249, NULL, TSDB_SQL_SELECT); } break; - case 180: /* select ::= SELECT selcollist */ + case 182: /* select ::= SELECT selcollist */ { - yylhsminor.yy144 = tSetQuerySqlNode(&yymsp[-1].minor.yy0, yymsp[0].minor.yy333, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + yylhsminor.yy320 = tSetQuerySqlNode(&yymsp[-1].minor.yy0, yymsp[0].minor.yy249, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); } - yymsp[-1].minor.yy144 = yylhsminor.yy144; + yymsp[-1].minor.yy320 = yylhsminor.yy320; break; - case 181: /* sclp ::= selcollist COMMA */ -{yylhsminor.yy333 = yymsp[-1].minor.yy333;} - yymsp[-1].minor.yy333 = yylhsminor.yy333; + case 183: /* sclp ::= selcollist COMMA */ +{yylhsminor.yy249 = yymsp[-1].minor.yy249;} + yymsp[-1].minor.yy249 = yylhsminor.yy249; break; - case 182: /* sclp ::= */ - case 223: /* orderby_opt ::= */ yytestcase(yyruleno==223); -{yymsp[1].minor.yy333 = 0;} + case 184: /* sclp ::= */ + case 225: /* orderby_opt ::= */ yytestcase(yyruleno==225); +{yymsp[1].minor.yy249 = 0;} break; - case 183: /* selcollist ::= sclp distinct expr as */ + case 185: /* selcollist ::= sclp distinct expr as */ { - yylhsminor.yy333 = tSqlExprListAppend(yymsp[-3].minor.yy333, yymsp[-1].minor.yy194, yymsp[-2].minor.yy0.n? &yymsp[-2].minor.yy0:0, yymsp[0].minor.yy0.n?&yymsp[0].minor.yy0:0); + yylhsminor.yy249 = tSqlExprListAppend(yymsp[-3].minor.yy249, yymsp[-1].minor.yy370, yymsp[-2].minor.yy0.n? &yymsp[-2].minor.yy0:0, yymsp[0].minor.yy0.n?&yymsp[0].minor.yy0:0); } - yymsp[-3].minor.yy333 = yylhsminor.yy333; + yymsp[-3].minor.yy249 = yylhsminor.yy249; break; - case 184: /* selcollist ::= sclp STAR */ + case 186: /* selcollist ::= sclp STAR */ { tSqlExpr *pNode = tSqlExprCreateIdValue(pInfo, NULL, TK_ALL); - yylhsminor.yy333 = tSqlExprListAppend(yymsp[-1].minor.yy333, pNode, 0, 0); + yylhsminor.yy249 = tSqlExprListAppend(yymsp[-1].minor.yy249, pNode, 0, 0); } - yymsp[-1].minor.yy333 = yylhsminor.yy333; + yymsp[-1].minor.yy249 = yylhsminor.yy249; break; - case 185: /* as ::= AS ids */ + case 187: /* as ::= AS ids */ { yymsp[-1].minor.yy0 = yymsp[0].minor.yy0; } break; - case 186: /* as ::= ids */ + case 188: /* as ::= ids */ { yylhsminor.yy0 = yymsp[0].minor.yy0; } yymsp[0].minor.yy0 = yylhsminor.yy0; break; - case 187: /* as ::= */ + case 189: /* as ::= */ { yymsp[1].minor.yy0.n = 0; } break; - case 188: /* distinct ::= DISTINCT */ + case 190: /* distinct ::= DISTINCT */ { yylhsminor.yy0 = yymsp[0].minor.yy0; } yymsp[0].minor.yy0 = yylhsminor.yy0; break; - case 190: /* from ::= FROM tablelist */ - case 191: /* from ::= FROM sub */ yytestcase(yyruleno==191); -{yymsp[-1].minor.yy516 = yymsp[0].minor.yy516;} + case 192: /* from ::= FROM tablelist */ + case 193: /* from ::= FROM sub */ yytestcase(yyruleno==193); +{yymsp[-1].minor.yy52 = yymsp[0].minor.yy52;} break; - case 192: /* sub ::= LP union RP */ -{yymsp[-2].minor.yy516 = addSubqueryElem(NULL, yymsp[-1].minor.yy333, NULL);} + case 194: /* sub ::= LP union RP */ +{yymsp[-2].minor.yy52 = addSubqueryElem(NULL, yymsp[-1].minor.yy249, NULL);} break; - case 193: /* sub ::= LP union RP ids */ -{yymsp[-3].minor.yy516 = addSubqueryElem(NULL, yymsp[-2].minor.yy333, &yymsp[0].minor.yy0);} + case 195: /* sub ::= LP union RP ids */ +{yymsp[-3].minor.yy52 = addSubqueryElem(NULL, yymsp[-2].minor.yy249, &yymsp[0].minor.yy0);} break; - case 194: /* sub ::= sub COMMA LP union RP ids */ -{yylhsminor.yy516 = addSubqueryElem(yymsp[-5].minor.yy516, yymsp[-2].minor.yy333, &yymsp[0].minor.yy0);} - yymsp[-5].minor.yy516 = yylhsminor.yy516; + case 196: /* sub ::= sub COMMA LP union RP ids */ +{yylhsminor.yy52 = addSubqueryElem(yymsp[-5].minor.yy52, yymsp[-2].minor.yy249, &yymsp[0].minor.yy0);} + yymsp[-5].minor.yy52 = yylhsminor.yy52; break; - case 195: /* tablelist ::= ids cpxName */ + case 197: /* tablelist ::= ids cpxName */ { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; - yylhsminor.yy516 = setTableNameList(NULL, &yymsp[-1].minor.yy0, NULL); + yylhsminor.yy52 = setTableNameList(NULL, &yymsp[-1].minor.yy0, NULL); } - yymsp[-1].minor.yy516 = yylhsminor.yy516; + yymsp[-1].minor.yy52 = yylhsminor.yy52; break; - case 196: /* tablelist ::= ids cpxName ids */ + case 198: /* tablelist ::= ids cpxName ids */ { yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n; - yylhsminor.yy516 = setTableNameList(NULL, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); + yylhsminor.yy52 = setTableNameList(NULL, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy516 = yylhsminor.yy516; + yymsp[-2].minor.yy52 = yylhsminor.yy52; break; - case 197: /* tablelist ::= tablelist COMMA ids cpxName */ + case 199: /* tablelist ::= tablelist COMMA ids cpxName */ { yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; - yylhsminor.yy516 = setTableNameList(yymsp[-3].minor.yy516, &yymsp[-1].minor.yy0, NULL); + yylhsminor.yy52 = setTableNameList(yymsp[-3].minor.yy52, &yymsp[-1].minor.yy0, NULL); } - yymsp[-3].minor.yy516 = yylhsminor.yy516; + yymsp[-3].minor.yy52 = yylhsminor.yy52; break; - case 198: /* tablelist ::= tablelist COMMA ids cpxName ids */ + case 200: /* tablelist ::= tablelist COMMA ids cpxName ids */ { yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n; - yylhsminor.yy516 = setTableNameList(yymsp[-4].minor.yy516, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); + yylhsminor.yy52 = setTableNameList(yymsp[-4].minor.yy52, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } - yymsp[-4].minor.yy516 = yylhsminor.yy516; + yymsp[-4].minor.yy52 = yylhsminor.yy52; break; - case 199: /* tmvar ::= VARIABLE */ + case 201: /* tmvar ::= VARIABLE */ {yylhsminor.yy0 = yymsp[0].minor.yy0;} yymsp[0].minor.yy0 = yylhsminor.yy0; break; - case 200: /* timestamp ::= INTEGER */ -{ yylhsminor.yy194 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_INTEGER);} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 202: /* timestamp ::= INTEGER */ +{ yylhsminor.yy370 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_INTEGER);} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 201: /* timestamp ::= MINUS INTEGER */ - case 202: /* timestamp ::= PLUS INTEGER */ yytestcase(yyruleno==202); -{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy194 = tSqlExprCreateTimestamp(&yymsp[-1].minor.yy0, TK_INTEGER);} - yymsp[-1].minor.yy194 = yylhsminor.yy194; + case 203: /* timestamp ::= MINUS INTEGER */ + case 204: /* timestamp ::= PLUS INTEGER */ yytestcase(yyruleno==204); +{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy370 = tSqlExprCreateTimestamp(&yymsp[-1].minor.yy0, TK_INTEGER);} + yymsp[-1].minor.yy370 = yylhsminor.yy370; break; - case 203: /* timestamp ::= STRING */ -{ yylhsminor.yy194 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_STRING);} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 205: /* timestamp ::= STRING */ +{ yylhsminor.yy370 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_STRING);} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 204: /* timestamp ::= NOW */ -{ yylhsminor.yy194 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_NOW); } - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 206: /* timestamp ::= NOW */ +{ yylhsminor.yy370 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_NOW); } + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 205: /* timestamp ::= NOW PLUS VARIABLE */ -{yymsp[-2].minor.yy194 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_PLUS); } + case 207: /* timestamp ::= NOW PLUS VARIABLE */ +{yymsp[-2].minor.yy370 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_PLUS); } break; - case 206: /* timestamp ::= NOW MINUS VARIABLE */ -{yymsp[-2].minor.yy194 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_MINUS); } + case 208: /* timestamp ::= NOW MINUS VARIABLE */ +{yymsp[-2].minor.yy370 = tSqlExprCreateTimestamp(&yymsp[0].minor.yy0, TK_MINUS); } break; - case 207: /* range_option ::= */ -{yymsp[1].minor.yy132.start = 0; yymsp[1].minor.yy132.end = 0;} + case 209: /* range_option ::= */ +{yymsp[1].minor.yy384.start = 0; yymsp[1].minor.yy384.end = 0;} break; - case 208: /* range_option ::= RANGE LP timestamp COMMA timestamp RP */ -{yymsp[-5].minor.yy132.start = yymsp[-3].minor.yy194; yymsp[-5].minor.yy132.end = yymsp[-1].minor.yy194;} + case 210: /* range_option ::= RANGE LP timestamp COMMA timestamp RP */ +{yymsp[-5].minor.yy384.start = yymsp[-3].minor.yy370; yymsp[-5].minor.yy384.end = yymsp[-1].minor.yy370;} break; - case 209: /* interval_option ::= intervalKey LP tmvar RP */ -{yylhsminor.yy200.interval = yymsp[-1].minor.yy0; yylhsminor.yy200.offset.n = 0; yylhsminor.yy200.token = yymsp[-3].minor.yy44;} - yymsp[-3].minor.yy200 = yylhsminor.yy200; + case 211: /* interval_option ::= intervalKey LP tmvar RP */ +{yylhsminor.yy196.interval = yymsp[-1].minor.yy0; yylhsminor.yy196.offset.n = 0; yylhsminor.yy196.token = yymsp[-3].minor.yy88;} + yymsp[-3].minor.yy196 = yylhsminor.yy196; break; - case 210: /* interval_option ::= intervalKey LP tmvar COMMA tmvar RP */ -{yylhsminor.yy200.interval = yymsp[-3].minor.yy0; yylhsminor.yy200.offset = yymsp[-1].minor.yy0; yylhsminor.yy200.token = yymsp[-5].minor.yy44;} - yymsp[-5].minor.yy200 = yylhsminor.yy200; + case 212: /* interval_option ::= intervalKey LP tmvar COMMA tmvar RP */ +{yylhsminor.yy196.interval = yymsp[-3].minor.yy0; yylhsminor.yy196.offset = yymsp[-1].minor.yy0; yylhsminor.yy196.token = yymsp[-5].minor.yy88;} + yymsp[-5].minor.yy196 = yylhsminor.yy196; break; - case 211: /* interval_option ::= */ -{memset(&yymsp[1].minor.yy200, 0, sizeof(yymsp[1].minor.yy200));} + case 213: /* interval_option ::= */ +{memset(&yymsp[1].minor.yy196, 0, sizeof(yymsp[1].minor.yy196));} break; - case 212: /* intervalKey ::= INTERVAL */ -{yymsp[0].minor.yy44 = TK_INTERVAL;} + case 214: /* intervalKey ::= INTERVAL */ +{yymsp[0].minor.yy88 = TK_INTERVAL;} break; - case 213: /* intervalKey ::= EVERY */ -{yymsp[0].minor.yy44 = TK_EVERY; } + case 215: /* intervalKey ::= EVERY */ +{yymsp[0].minor.yy88 = TK_EVERY; } break; - case 214: /* session_option ::= */ -{yymsp[1].minor.yy235.col.n = 0; yymsp[1].minor.yy235.gap.n = 0;} + case 216: /* session_option ::= */ +{yymsp[1].minor.yy559.col.n = 0; yymsp[1].minor.yy559.gap.n = 0;} break; - case 215: /* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ + case 217: /* session_option ::= SESSION LP ids cpxName COMMA tmvar RP */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - yymsp[-6].minor.yy235.col = yymsp[-4].minor.yy0; - yymsp[-6].minor.yy235.gap = yymsp[-1].minor.yy0; + yymsp[-6].minor.yy559.col = yymsp[-4].minor.yy0; + yymsp[-6].minor.yy559.gap = yymsp[-1].minor.yy0; } break; - case 216: /* windowstate_option ::= */ -{ yymsp[1].minor.yy248.col.n = 0; yymsp[1].minor.yy248.col.z = NULL;} + case 218: /* windowstate_option ::= */ +{ yymsp[1].minor.yy385.col.n = 0; yymsp[1].minor.yy385.col.z = NULL;} break; - case 217: /* windowstate_option ::= STATE_WINDOW LP ids RP */ -{ yymsp[-3].minor.yy248.col = yymsp[-1].minor.yy0; } + case 219: /* windowstate_option ::= STATE_WINDOW LP ids RP */ +{ yymsp[-3].minor.yy385.col = yymsp[-1].minor.yy0; } break; - case 218: /* fill_opt ::= */ -{ yymsp[1].minor.yy333 = 0; } + case 220: /* fill_opt ::= */ +{ yymsp[1].minor.yy249 = 0; } break; - case 219: /* fill_opt ::= FILL LP ID COMMA tagitemlist RP */ + case 221: /* fill_opt ::= FILL LP ID COMMA tagitemlist RP */ { tVariant A = {0}; toTSDBType(yymsp[-3].minor.yy0.type); tVariantCreate(&A, &yymsp[-3].minor.yy0); - tVariantListInsert(yymsp[-1].minor.yy333, &A, -1, 0); - yymsp[-5].minor.yy333 = yymsp[-1].minor.yy333; + tVariantListInsert(yymsp[-1].minor.yy249, &A, -1, 0); + yymsp[-5].minor.yy249 = yymsp[-1].minor.yy249; } break; - case 220: /* fill_opt ::= FILL LP ID RP */ + case 222: /* fill_opt ::= FILL LP ID RP */ { toTSDBType(yymsp[-1].minor.yy0.type); - yymsp[-3].minor.yy333 = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1, true); + yymsp[-3].minor.yy249 = tVariantListAppendToken(NULL, &yymsp[-1].minor.yy0, -1, true); } break; - case 221: /* sliding_opt ::= SLIDING LP tmvar RP */ + case 223: /* sliding_opt ::= SLIDING LP tmvar RP */ {yymsp[-3].minor.yy0 = yymsp[-1].minor.yy0; } break; - case 222: /* sliding_opt ::= */ + case 224: /* sliding_opt ::= */ {yymsp[1].minor.yy0.n = 0; yymsp[1].minor.yy0.z = NULL; yymsp[1].minor.yy0.type = 0; } break; - case 224: /* orderby_opt ::= ORDER BY sortlist */ -{yymsp[-2].minor.yy333 = yymsp[0].minor.yy333;} + case 226: /* orderby_opt ::= ORDER BY sortlist */ +{yymsp[-2].minor.yy249 = yymsp[0].minor.yy249;} break; - case 225: /* sortlist ::= sortlist COMMA item sortorder */ + case 227: /* sortlist ::= sortlist COMMA item sortorder */ { - yylhsminor.yy333 = commonItemAppend(yymsp[-3].minor.yy333, &yymsp[-1].minor.yy42, NULL, false, yymsp[0].minor.yy133); + yylhsminor.yy249 = commonItemAppend(yymsp[-3].minor.yy249, &yymsp[-1].minor.yy134, NULL, false, yymsp[0].minor.yy424); } - yymsp[-3].minor.yy333 = yylhsminor.yy333; + yymsp[-3].minor.yy249 = yylhsminor.yy249; break; - case 226: /* sortlist ::= sortlist COMMA arrow sortorder */ + case 228: /* sortlist ::= sortlist COMMA arrow sortorder */ { - yylhsminor.yy333 = commonItemAppend(yymsp[-3].minor.yy333, NULL, yymsp[-1].minor.yy194, true, yymsp[0].minor.yy133); + yylhsminor.yy249 = commonItemAppend(yymsp[-3].minor.yy249, NULL, yymsp[-1].minor.yy370, true, yymsp[0].minor.yy424); } - yymsp[-3].minor.yy333 = yylhsminor.yy333; + yymsp[-3].minor.yy249 = yylhsminor.yy249; break; - case 227: /* sortlist ::= item sortorder */ + case 229: /* sortlist ::= item sortorder */ { - yylhsminor.yy333 = commonItemAppend(NULL, &yymsp[-1].minor.yy42, NULL, false, yymsp[0].minor.yy133); + yylhsminor.yy249 = commonItemAppend(NULL, &yymsp[-1].minor.yy134, NULL, false, yymsp[0].minor.yy424); } - yymsp[-1].minor.yy333 = yylhsminor.yy333; + yymsp[-1].minor.yy249 = yylhsminor.yy249; break; - case 228: /* sortlist ::= arrow sortorder */ + case 230: /* sortlist ::= arrow sortorder */ { - yylhsminor.yy333 = commonItemAppend(NULL, NULL, yymsp[-1].minor.yy194, true, yymsp[0].minor.yy133); + yylhsminor.yy249 = commonItemAppend(NULL, NULL, yymsp[-1].minor.yy370, true, yymsp[0].minor.yy424); } - yymsp[-1].minor.yy333 = yylhsminor.yy333; + yymsp[-1].minor.yy249 = yylhsminor.yy249; break; - case 229: /* item ::= ID */ + case 231: /* item ::= ID */ { toTSDBType(yymsp[0].minor.yy0.type); - tVariantCreate(&yylhsminor.yy42, &yymsp[0].minor.yy0); + tVariantCreate(&yylhsminor.yy134, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy42 = yylhsminor.yy42; + yymsp[0].minor.yy134 = yylhsminor.yy134; break; - case 230: /* item ::= ID DOT ID */ + case 232: /* item ::= ID DOT ID */ { toTSDBType(yymsp[-2].minor.yy0.type); yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); - tVariantCreate(&yylhsminor.yy42, &yymsp[-2].minor.yy0); + tVariantCreate(&yylhsminor.yy134, &yymsp[-2].minor.yy0); } - yymsp[-2].minor.yy42 = yylhsminor.yy42; + yymsp[-2].minor.yy134 = yylhsminor.yy134; break; - case 231: /* sortorder ::= ASC */ -{ yymsp[0].minor.yy133 = TSDB_ORDER_ASC; } + case 233: /* sortorder ::= ASC */ +{ yymsp[0].minor.yy424 = TSDB_ORDER_ASC; } break; - case 232: /* sortorder ::= DESC */ -{ yymsp[0].minor.yy133 = TSDB_ORDER_DESC;} + case 234: /* sortorder ::= DESC */ +{ yymsp[0].minor.yy424 = TSDB_ORDER_DESC;} break; - case 233: /* sortorder ::= */ -{ yymsp[1].minor.yy133 = TSDB_ORDER_ASC; } + case 235: /* sortorder ::= */ +{ yymsp[1].minor.yy424 = TSDB_ORDER_ASC; } break; - case 234: /* groupby_opt ::= */ -{ yymsp[1].minor.yy333 = 0;} + case 236: /* groupby_opt ::= */ +{ yymsp[1].minor.yy249 = 0;} break; - case 235: /* groupby_opt ::= GROUP BY grouplist */ -{ yymsp[-2].minor.yy333 = yymsp[0].minor.yy333;} + case 237: /* groupby_opt ::= GROUP BY grouplist */ +{ yymsp[-2].minor.yy249 = yymsp[0].minor.yy249;} break; - case 236: /* grouplist ::= grouplist COMMA item */ + case 238: /* grouplist ::= grouplist COMMA item */ { - yylhsminor.yy333 = commonItemAppend(yymsp[-2].minor.yy333, &yymsp[0].minor.yy42, NULL, false, -1); + yylhsminor.yy249 = commonItemAppend(yymsp[-2].minor.yy249, &yymsp[0].minor.yy134, NULL, false, -1); } - yymsp[-2].minor.yy333 = yylhsminor.yy333; + yymsp[-2].minor.yy249 = yylhsminor.yy249; break; - case 237: /* grouplist ::= grouplist COMMA arrow */ + case 239: /* grouplist ::= grouplist COMMA arrow */ { - yylhsminor.yy333 = commonItemAppend(yymsp[-2].minor.yy333, NULL, yymsp[0].minor.yy194, true, -1); + yylhsminor.yy249 = commonItemAppend(yymsp[-2].minor.yy249, NULL, yymsp[0].minor.yy370, true, -1); } - yymsp[-2].minor.yy333 = yylhsminor.yy333; + yymsp[-2].minor.yy249 = yylhsminor.yy249; break; - case 238: /* grouplist ::= item */ + case 240: /* grouplist ::= item */ { - yylhsminor.yy333 = commonItemAppend(NULL, &yymsp[0].minor.yy42, NULL, false, -1); + yylhsminor.yy249 = commonItemAppend(NULL, &yymsp[0].minor.yy134, NULL, false, -1); } - yymsp[0].minor.yy333 = yylhsminor.yy333; + yymsp[0].minor.yy249 = yylhsminor.yy249; break; - case 239: /* grouplist ::= arrow */ + case 241: /* grouplist ::= arrow */ { - yylhsminor.yy333 = commonItemAppend(NULL, NULL, yymsp[0].minor.yy194, true, -1); + yylhsminor.yy249 = commonItemAppend(NULL, NULL, yymsp[0].minor.yy370, true, -1); } - yymsp[0].minor.yy333 = yylhsminor.yy333; + yymsp[0].minor.yy249 = yylhsminor.yy249; break; - case 240: /* having_opt ::= */ - case 250: /* where_opt ::= */ yytestcase(yyruleno==250); - case 307: /* expritem ::= */ yytestcase(yyruleno==307); -{yymsp[1].minor.yy194 = 0;} + case 242: /* having_opt ::= */ + case 252: /* where_opt ::= */ yytestcase(yyruleno==252); + case 309: /* expritem ::= */ yytestcase(yyruleno==309); +{yymsp[1].minor.yy370 = 0;} break; - case 241: /* having_opt ::= HAVING expr */ - case 251: /* where_opt ::= WHERE expr */ yytestcase(yyruleno==251); -{yymsp[-1].minor.yy194 = yymsp[0].minor.yy194;} + case 243: /* having_opt ::= HAVING expr */ + case 253: /* where_opt ::= WHERE expr */ yytestcase(yyruleno==253); +{yymsp[-1].minor.yy370 = yymsp[0].minor.yy370;} break; - case 242: /* limit_opt ::= */ - case 246: /* slimit_opt ::= */ yytestcase(yyruleno==246); -{yymsp[1].minor.yy190.limit = -1; yymsp[1].minor.yy190.offset = 0;} + case 244: /* limit_opt ::= */ + case 248: /* slimit_opt ::= */ yytestcase(yyruleno==248); +{yymsp[1].minor.yy342.limit = -1; yymsp[1].minor.yy342.offset = 0;} break; - case 243: /* limit_opt ::= LIMIT signed */ - case 247: /* slimit_opt ::= SLIMIT signed */ yytestcase(yyruleno==247); -{yymsp[-1].minor.yy190.limit = yymsp[0].minor.yy277; yymsp[-1].minor.yy190.offset = 0;} + case 245: /* limit_opt ::= LIMIT signed */ + case 249: /* slimit_opt ::= SLIMIT signed */ yytestcase(yyruleno==249); +{yymsp[-1].minor.yy342.limit = yymsp[0].minor.yy165; yymsp[-1].minor.yy342.offset = 0;} break; - case 244: /* limit_opt ::= LIMIT signed OFFSET signed */ -{ yymsp[-3].minor.yy190.limit = yymsp[-2].minor.yy277; yymsp[-3].minor.yy190.offset = yymsp[0].minor.yy277;} + case 246: /* limit_opt ::= LIMIT signed OFFSET signed */ +{ yymsp[-3].minor.yy342.limit = yymsp[-2].minor.yy165; yymsp[-3].minor.yy342.offset = yymsp[0].minor.yy165;} break; - case 245: /* limit_opt ::= LIMIT signed COMMA signed */ -{ yymsp[-3].minor.yy190.limit = yymsp[0].minor.yy277; yymsp[-3].minor.yy190.offset = yymsp[-2].minor.yy277;} + case 247: /* limit_opt ::= LIMIT signed COMMA signed */ +{ yymsp[-3].minor.yy342.limit = yymsp[0].minor.yy165; yymsp[-3].minor.yy342.offset = yymsp[-2].minor.yy165;} break; - case 248: /* slimit_opt ::= SLIMIT signed SOFFSET signed */ -{yymsp[-3].minor.yy190.limit = yymsp[-2].minor.yy277; yymsp[-3].minor.yy190.offset = yymsp[0].minor.yy277;} + case 250: /* slimit_opt ::= SLIMIT signed SOFFSET signed */ +{yymsp[-3].minor.yy342.limit = yymsp[-2].minor.yy165; yymsp[-3].minor.yy342.offset = yymsp[0].minor.yy165;} break; - case 249: /* slimit_opt ::= SLIMIT signed COMMA signed */ -{yymsp[-3].minor.yy190.limit = yymsp[0].minor.yy277; yymsp[-3].minor.yy190.offset = yymsp[-2].minor.yy277;} + case 251: /* slimit_opt ::= SLIMIT signed COMMA signed */ +{yymsp[-3].minor.yy342.limit = yymsp[0].minor.yy165; yymsp[-3].minor.yy342.offset = yymsp[-2].minor.yy165;} break; - case 252: /* expr ::= LP expr RP */ -{yylhsminor.yy194 = yymsp[-1].minor.yy194; yylhsminor.yy194->exprToken.z = yymsp[-2].minor.yy0.z; yylhsminor.yy194->exprToken.n = (yymsp[0].minor.yy0.z - yymsp[-2].minor.yy0.z + 1);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 254: /* expr ::= LP expr RP */ +{yylhsminor.yy370 = yymsp[-1].minor.yy370; yylhsminor.yy370->exprToken.z = yymsp[-2].minor.yy0.z; yylhsminor.yy370->exprToken.n = (yymsp[0].minor.yy0.z - yymsp[-2].minor.yy0.z + 1);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 253: /* expr ::= ID */ -{ yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_ID);} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 255: /* expr ::= ID */ +{ yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_ID);} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 254: /* expr ::= ID DOT ID */ -{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ID);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 256: /* expr ::= ID DOT ID */ +{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ID);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 255: /* expr ::= ID DOT STAR */ -{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ALL);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 257: /* expr ::= ID DOT STAR */ +{ yymsp[-2].minor.yy0.n += (1+yymsp[0].minor.yy0.n); yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ALL);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 256: /* expr ::= INTEGER */ -{ yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_INTEGER);} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 258: /* expr ::= INTEGER */ +{ yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_INTEGER);} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 257: /* expr ::= MINUS INTEGER */ - case 258: /* expr ::= PLUS INTEGER */ yytestcase(yyruleno==258); -{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_INTEGER);} - yymsp[-1].minor.yy194 = yylhsminor.yy194; + case 259: /* expr ::= MINUS INTEGER */ + case 260: /* expr ::= PLUS INTEGER */ yytestcase(yyruleno==260); +{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_INTEGER; yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_INTEGER);} + yymsp[-1].minor.yy370 = yylhsminor.yy370; break; - case 259: /* expr ::= FLOAT */ -{ yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_FLOAT);} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 261: /* expr ::= FLOAT */ +{ yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_FLOAT);} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 260: /* expr ::= MINUS FLOAT */ - case 261: /* expr ::= PLUS FLOAT */ yytestcase(yyruleno==261); -{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_FLOAT; yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_FLOAT);} - yymsp[-1].minor.yy194 = yylhsminor.yy194; + case 262: /* expr ::= MINUS FLOAT */ + case 263: /* expr ::= PLUS FLOAT */ yytestcase(yyruleno==263); +{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_FLOAT; yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_FLOAT);} + yymsp[-1].minor.yy370 = yylhsminor.yy370; break; - case 262: /* expr ::= STRING */ -{ yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING);} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 264: /* expr ::= STRING */ +{ yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING);} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 263: /* expr ::= NOW */ -{ yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_NOW); } - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 265: /* expr ::= NOW */ +{ yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_NOW); } + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 264: /* expr ::= TODAY */ -{ yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_TODAY); } - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 266: /* expr ::= TODAY */ +{ yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_TODAY); } + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 265: /* expr ::= VARIABLE */ -{ yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_VARIABLE);} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 267: /* expr ::= VARIABLE */ +{ yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_VARIABLE);} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 266: /* expr ::= PLUS VARIABLE */ - case 267: /* expr ::= MINUS VARIABLE */ yytestcase(yyruleno==267); -{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_VARIABLE; yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_VARIABLE);} - yymsp[-1].minor.yy194 = yylhsminor.yy194; + case 268: /* expr ::= PLUS VARIABLE */ + case 269: /* expr ::= MINUS VARIABLE */ yytestcase(yyruleno==269); +{ yymsp[-1].minor.yy0.n += yymsp[0].minor.yy0.n; yymsp[-1].minor.yy0.type = TK_VARIABLE; yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[-1].minor.yy0, TK_VARIABLE);} + yymsp[-1].minor.yy370 = yylhsminor.yy370; break; - case 268: /* expr ::= BOOL */ -{ yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_BOOL);} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 270: /* expr ::= BOOL */ +{ yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_BOOL);} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 269: /* expr ::= NULL */ -{ yylhsminor.yy194 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_NULL);} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 271: /* expr ::= NULL */ +{ yylhsminor.yy370 = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_NULL);} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 270: /* expr ::= ID LP exprlist RP */ -{ tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy194 = tSqlExprCreateFunction(yymsp[-1].minor.yy333, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); } - yymsp[-3].minor.yy194 = yylhsminor.yy194; + case 272: /* expr ::= ID LP exprlist RP */ +{ tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy370 = tSqlExprCreateFunction(yymsp[-1].minor.yy249, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); } + yymsp[-3].minor.yy370 = yylhsminor.yy370; break; - case 271: /* expr ::= ID LP STAR RP */ -{ tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy194 = tSqlExprCreateFunction(NULL, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); } - yymsp[-3].minor.yy194 = yylhsminor.yy194; + case 273: /* expr ::= ID LP STAR RP */ +{ tStrTokenAppend(pInfo->funcs, &yymsp[-3].minor.yy0); yylhsminor.yy370 = tSqlExprCreateFunction(NULL, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, yymsp[-3].minor.yy0.type); } + yymsp[-3].minor.yy370 = yylhsminor.yy370; break; - case 272: /* expr ::= ID LP expr AS typename RP */ -{ tStrTokenAppend(pInfo->funcs, &yymsp[-5].minor.yy0); yylhsminor.yy194 = tSqlExprCreateFuncWithParams(pInfo, yymsp[-3].minor.yy194, &yymsp[-1].minor.yy263, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, yymsp[-5].minor.yy0.type); } - yymsp[-5].minor.yy194 = yylhsminor.yy194; + case 274: /* expr ::= ID LP expr AS typename RP */ +{ tStrTokenAppend(pInfo->funcs, &yymsp[-5].minor.yy0); yylhsminor.yy370 = tSqlExprCreateFuncWithParams(pInfo, yymsp[-3].minor.yy370, &yymsp[-1].minor.yy475, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, yymsp[-5].minor.yy0.type); } + yymsp[-5].minor.yy370 = yylhsminor.yy370; break; - case 273: /* expr ::= expr IS NULL */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, NULL, TK_ISNULL);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 275: /* expr ::= expr IS NULL */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, NULL, TK_ISNULL);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 274: /* expr ::= expr IS NOT NULL */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-3].minor.yy194, NULL, TK_NOTNULL);} - yymsp[-3].minor.yy194 = yylhsminor.yy194; + case 276: /* expr ::= expr IS NOT NULL */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-3].minor.yy370, NULL, TK_NOTNULL);} + yymsp[-3].minor.yy370 = yylhsminor.yy370; break; - case 275: /* expr ::= expr LT expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_LT);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 277: /* expr ::= expr LT expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_LT);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 276: /* expr ::= expr GT expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_GT);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 278: /* expr ::= expr GT expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_GT);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 277: /* expr ::= expr LE expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_LE);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 279: /* expr ::= expr LE expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_LE);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 278: /* expr ::= expr GE expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_GE);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 280: /* expr ::= expr GE expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_GE);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 279: /* expr ::= expr NE expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_NE);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 281: /* expr ::= expr NE expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_NE);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 280: /* expr ::= expr EQ expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_EQ);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 282: /* expr ::= expr EQ expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_EQ);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 281: /* expr ::= expr BETWEEN expr AND expr */ -{ tSqlExpr* X2 = tSqlExprClone(yymsp[-4].minor.yy194); yylhsminor.yy194 = tSqlExprCreate(tSqlExprCreate(yymsp[-4].minor.yy194, yymsp[-2].minor.yy194, TK_GE), tSqlExprCreate(X2, yymsp[0].minor.yy194, TK_LE), TK_AND);} - yymsp[-4].minor.yy194 = yylhsminor.yy194; + case 283: /* expr ::= expr BETWEEN expr AND expr */ +{ tSqlExpr* X2 = tSqlExprClone(yymsp[-4].minor.yy370); yylhsminor.yy370 = tSqlExprCreate(tSqlExprCreate(yymsp[-4].minor.yy370, yymsp[-2].minor.yy370, TK_GE), tSqlExprCreate(X2, yymsp[0].minor.yy370, TK_LE), TK_AND);} + yymsp[-4].minor.yy370 = yylhsminor.yy370; break; - case 282: /* expr ::= expr AND expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_AND);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 284: /* expr ::= expr AND expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_AND);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 283: /* expr ::= expr OR expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_OR); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 285: /* expr ::= expr OR expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_OR); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 284: /* expr ::= expr PLUS expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_PLUS); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 286: /* expr ::= expr PLUS expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_PLUS); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 285: /* expr ::= expr MINUS expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_MINUS); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 287: /* expr ::= expr MINUS expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_MINUS); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 286: /* expr ::= expr STAR expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_STAR); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 288: /* expr ::= expr STAR expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_STAR); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 287: /* expr ::= expr SLASH expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_DIVIDE);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 289: /* expr ::= expr SLASH expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_DIVIDE);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 288: /* expr ::= expr REM expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_REM); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 290: /* expr ::= expr REM expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_REM); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 289: /* expr ::= expr BITAND expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_BITAND);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 291: /* expr ::= expr BITAND expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_BITAND);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 290: /* expr ::= expr BITOR expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_BITOR); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 292: /* expr ::= expr BITOR expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_BITOR); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 291: /* expr ::= expr BITXOR expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_BITXOR);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 293: /* expr ::= expr BITXOR expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_BITXOR);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 292: /* expr ::= BITNOT expr */ -{yymsp[-1].minor.yy194 = tSqlExprCreate(yymsp[0].minor.yy194, NULL, TK_BITNOT);} + case 294: /* expr ::= BITNOT expr */ +{yymsp[-1].minor.yy370 = tSqlExprCreate(yymsp[0].minor.yy370, NULL, TK_BITNOT);} break; - case 293: /* expr ::= expr LSHIFT expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_LSHIFT);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 295: /* expr ::= expr LSHIFT expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_LSHIFT);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 294: /* expr ::= expr RSHIFT expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_RSHIFT);} - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 296: /* expr ::= expr RSHIFT expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_RSHIFT);} + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 295: /* expr ::= expr LIKE expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_LIKE); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 297: /* expr ::= expr LIKE expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_LIKE); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 296: /* expr ::= expr MATCH expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_MATCH); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 298: /* expr ::= expr MATCH expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_MATCH); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 297: /* expr ::= expr NMATCH expr */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-2].minor.yy194, yymsp[0].minor.yy194, TK_NMATCH); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 299: /* expr ::= expr NMATCH expr */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-2].minor.yy370, yymsp[0].minor.yy370, TK_NMATCH); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 298: /* expr ::= ID CONTAINS STRING */ -{ tSqlExpr* S = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ID); tSqlExpr* M = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING); yylhsminor.yy194 = tSqlExprCreate(S, M, TK_CONTAINS); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 300: /* expr ::= ID CONTAINS STRING */ +{ tSqlExpr* S = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ID); tSqlExpr* M = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING); yylhsminor.yy370 = tSqlExprCreate(S, M, TK_CONTAINS); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 299: /* expr ::= ID DOT ID CONTAINS STRING */ -{ yymsp[-4].minor.yy0.n += (1+yymsp[-2].minor.yy0.n); tSqlExpr* S = tSqlExprCreateIdValue(pInfo, &yymsp[-4].minor.yy0, TK_ID); tSqlExpr* M = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING); yylhsminor.yy194 = tSqlExprCreate(S, M, TK_CONTAINS); } - yymsp[-4].minor.yy194 = yylhsminor.yy194; + case 301: /* expr ::= ID DOT ID CONTAINS STRING */ +{ yymsp[-4].minor.yy0.n += (1+yymsp[-2].minor.yy0.n); tSqlExpr* S = tSqlExprCreateIdValue(pInfo, &yymsp[-4].minor.yy0, TK_ID); tSqlExpr* M = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING); yylhsminor.yy370 = tSqlExprCreate(S, M, TK_CONTAINS); } + yymsp[-4].minor.yy370 = yylhsminor.yy370; break; - case 300: /* arrow ::= ID ARROW STRING */ -{tSqlExpr* S = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ID); tSqlExpr* M = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING); yylhsminor.yy194 = tSqlExprCreate(S, M, TK_ARROW); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 302: /* arrow ::= ID ARROW STRING */ +{tSqlExpr* S = tSqlExprCreateIdValue(pInfo, &yymsp[-2].minor.yy0, TK_ID); tSqlExpr* M = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING); yylhsminor.yy370 = tSqlExprCreate(S, M, TK_ARROW); } + yymsp[-2].minor.yy370 = yylhsminor.yy370; break; - case 301: /* arrow ::= ID DOT ID ARROW STRING */ -{yymsp[-4].minor.yy0.n += (1+yymsp[-2].minor.yy0.n); tSqlExpr* S = tSqlExprCreateIdValue(pInfo, &yymsp[-4].minor.yy0, TK_ID); tSqlExpr* M = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING); yylhsminor.yy194 = tSqlExprCreate(S, M, TK_ARROW); } - yymsp[-4].minor.yy194 = yylhsminor.yy194; + case 303: /* arrow ::= ID DOT ID ARROW STRING */ +{yymsp[-4].minor.yy0.n += (1+yymsp[-2].minor.yy0.n); tSqlExpr* S = tSqlExprCreateIdValue(pInfo, &yymsp[-4].minor.yy0, TK_ID); tSqlExpr* M = tSqlExprCreateIdValue(pInfo, &yymsp[0].minor.yy0, TK_STRING); yylhsminor.yy370 = tSqlExprCreate(S, M, TK_ARROW); } + yymsp[-4].minor.yy370 = yylhsminor.yy370; break; - case 302: /* expr ::= arrow */ - case 306: /* expritem ::= expr */ yytestcase(yyruleno==306); -{yylhsminor.yy194 = yymsp[0].minor.yy194;} - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 304: /* expr ::= arrow */ + case 308: /* expritem ::= expr */ yytestcase(yyruleno==308); +{yylhsminor.yy370 = yymsp[0].minor.yy370;} + yymsp[0].minor.yy370 = yylhsminor.yy370; break; - case 303: /* expr ::= expr IN LP exprlist RP */ -{yylhsminor.yy194 = tSqlExprCreate(yymsp[-4].minor.yy194, (tSqlExpr*)yymsp[-1].minor.yy333, TK_IN); } - yymsp[-4].minor.yy194 = yylhsminor.yy194; + case 305: /* expr ::= expr IN LP exprlist RP */ +{yylhsminor.yy370 = tSqlExprCreate(yymsp[-4].minor.yy370, (tSqlExpr*)yymsp[-1].minor.yy249, TK_IN); } + yymsp[-4].minor.yy370 = yylhsminor.yy370; break; - case 304: /* exprlist ::= exprlist COMMA expritem */ -{yylhsminor.yy333 = tSqlExprListAppend(yymsp[-2].minor.yy333,yymsp[0].minor.yy194,0, 0);} - yymsp[-2].minor.yy333 = yylhsminor.yy333; + case 306: /* exprlist ::= exprlist COMMA expritem */ +{yylhsminor.yy249 = tSqlExprListAppend(yymsp[-2].minor.yy249,yymsp[0].minor.yy370,0, 0);} + yymsp[-2].minor.yy249 = yylhsminor.yy249; break; - case 305: /* exprlist ::= expritem */ -{yylhsminor.yy333 = tSqlExprListAppend(0,yymsp[0].minor.yy194,0, 0);} - yymsp[0].minor.yy333 = yylhsminor.yy333; + case 307: /* exprlist ::= expritem */ +{yylhsminor.yy249 = tSqlExprListAppend(0,yymsp[0].minor.yy370,0, 0);} + yymsp[0].minor.yy249 = yylhsminor.yy249; break; - case 308: /* cmd ::= RESET QUERY CACHE */ + case 310: /* cmd ::= RESET QUERY CACHE */ { setDCLSqlElems(pInfo, TSDB_SQL_RESET_CACHE, 0);} break; - case 309: /* cmd ::= SYNCDB ids REPLICA */ + case 311: /* cmd ::= SYNCDB ids REPLICA */ { setDCLSqlElems(pInfo, TSDB_SQL_SYNC_DB_REPLICA, 1, &yymsp[-1].minor.yy0);} break; - case 310: /* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ + case 312: /* cmd ::= ALTER TABLE ids cpxName ADD COLUMN columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy333, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, -1); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy249, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, -1); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 311: /* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */ + case 313: /* cmd ::= ALTER TABLE ids cpxName DROP COLUMN ids */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; @@ -3803,21 +3468,21 @@ static YYACTIONTYPE yy_reduce( setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 312: /* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ + case 314: /* cmd ::= ALTER TABLE ids cpxName MODIFY COLUMN columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy333, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, -1); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy249, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, -1); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 313: /* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ + case 315: /* cmd ::= ALTER TABLE ids cpxName ADD TAG columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy333, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, -1); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy249, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, -1); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 314: /* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */ + case 316: /* cmd ::= ALTER TABLE ids cpxName DROP TAG ids */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; @@ -3828,7 +3493,7 @@ static YYACTIONTYPE yy_reduce( setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 315: /* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */ + case 317: /* cmd ::= ALTER TABLE ids cpxName CHANGE TAG ids ids */ { yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n; @@ -3842,33 +3507,33 @@ static YYACTIONTYPE yy_reduce( setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 316: /* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */ + case 318: /* cmd ::= ALTER TABLE ids cpxName SET TAG ids EQ tagitem */ { yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n; toTSDBType(yymsp[-2].minor.yy0.type); SArray* A = tVariantListAppendToken(NULL, &yymsp[-2].minor.yy0, -1, false); - A = tVariantListAppend(A, &yymsp[0].minor.yy42, -1); + A = tVariantListAppend(A, &yymsp[0].minor.yy134, -1); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-6].minor.yy0, NULL, A, TSDB_ALTER_TABLE_UPDATE_TAG_VAL, -1); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 317: /* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ + case 319: /* cmd ::= ALTER TABLE ids cpxName MODIFY TAG columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy333, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, -1); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy249, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, -1); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 318: /* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ + case 320: /* cmd ::= ALTER STABLE ids cpxName ADD COLUMN columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy333, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, TSDB_SUPER_TABLE); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy249, NULL, TSDB_ALTER_TABLE_ADD_COLUMN, TSDB_SUPER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 319: /* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */ + case 321: /* cmd ::= ALTER STABLE ids cpxName DROP COLUMN ids */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; @@ -3879,21 +3544,21 @@ static YYACTIONTYPE yy_reduce( setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 320: /* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ + case 322: /* cmd ::= ALTER STABLE ids cpxName MODIFY COLUMN columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy333, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, TSDB_SUPER_TABLE); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy249, NULL, TSDB_ALTER_TABLE_CHANGE_COLUMN, TSDB_SUPER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 321: /* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ + case 323: /* cmd ::= ALTER STABLE ids cpxName ADD TAG columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy333, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, TSDB_SUPER_TABLE); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy249, NULL, TSDB_ALTER_TABLE_ADD_TAG_COLUMN, TSDB_SUPER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 322: /* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */ + case 324: /* cmd ::= ALTER STABLE ids cpxName DROP TAG ids */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; @@ -3904,7 +3569,7 @@ static YYACTIONTYPE yy_reduce( setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 323: /* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */ + case 325: /* cmd ::= ALTER STABLE ids cpxName CHANGE TAG ids ids */ { yymsp[-5].minor.yy0.n += yymsp[-4].minor.yy0.n; @@ -3918,38 +3583,38 @@ static YYACTIONTYPE yy_reduce( setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 324: /* cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */ + case 326: /* cmd ::= ALTER STABLE ids cpxName SET TAG ids EQ tagitem */ { yymsp[-6].minor.yy0.n += yymsp[-5].minor.yy0.n; toTSDBType(yymsp[-2].minor.yy0.type); SArray* A = tVariantListAppendToken(NULL, &yymsp[-2].minor.yy0, -1, false); - A = tVariantListAppend(A, &yymsp[0].minor.yy42, -1); + A = tVariantListAppend(A, &yymsp[0].minor.yy134, -1); SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-6].minor.yy0, NULL, A, TSDB_ALTER_TABLE_UPDATE_TAG_VAL, TSDB_SUPER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 325: /* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ + case 327: /* cmd ::= ALTER STABLE ids cpxName MODIFY TAG columnlist */ { yymsp[-4].minor.yy0.n += yymsp[-3].minor.yy0.n; - SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy333, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, TSDB_SUPER_TABLE); + SAlterTableInfo* pAlterTable = tSetAlterTableInfo(&yymsp[-4].minor.yy0, yymsp[0].minor.yy249, NULL, TSDB_ALTER_TABLE_MODIFY_TAG_COLUMN, TSDB_SUPER_TABLE); setSqlInfo(pInfo, pAlterTable, NULL, TSDB_SQL_ALTER_TABLE); } break; - case 326: /* cmd ::= KILL CONNECTION INTEGER */ + case 328: /* cmd ::= KILL CONNECTION INTEGER */ {setKillSql(pInfo, TSDB_SQL_KILL_CONNECTION, &yymsp[0].minor.yy0);} break; - case 327: /* cmd ::= KILL STREAM INTEGER COLON INTEGER */ + case 329: /* cmd ::= KILL STREAM INTEGER COLON INTEGER */ {yymsp[-2].minor.yy0.n += (yymsp[-1].minor.yy0.n + yymsp[0].minor.yy0.n); setKillSql(pInfo, TSDB_SQL_KILL_STREAM, &yymsp[-2].minor.yy0);} break; - case 328: /* cmd ::= KILL QUERY INTEGER COLON INTEGER */ + case 330: /* cmd ::= KILL QUERY INTEGER COLON INTEGER */ {yymsp[-2].minor.yy0.n += (yymsp[-1].minor.yy0.n + yymsp[0].minor.yy0.n); setKillSql(pInfo, TSDB_SQL_KILL_QUERY, &yymsp[-2].minor.yy0);} break; - case 329: /* cmd ::= DELETE FROM ifexists ids cpxName where_opt */ + case 331: /* cmd ::= DELETE FROM ifexists ids cpxName where_opt */ { yymsp[-2].minor.yy0.n += yymsp[-1].minor.yy0.n; - SDelData * pDelData = tGetDelData(&yymsp[-2].minor.yy0, &yymsp[-3].minor.yy0, yymsp[0].minor.yy194); + SDelData * pDelData = tGetDelData(&yymsp[-2].minor.yy0, &yymsp[-3].minor.yy0, yymsp[0].minor.yy370); setSqlInfo(pInfo, pDelData, NULL, TSDB_SQL_DELETE_DATA); } break; @@ -3957,9 +3622,9 @@ static YYACTIONTYPE yy_reduce( break; /********** End reduce actions ************************************************/ }; - assert( yyrulenostateno = (YYACTIONTYPE)yyact; yymsp->major = (YYCODETYPE)yygoto; yyTraceShift(yypParser, yyact, "... then shift"); - return yyact; } /* @@ -3984,8 +3648,7 @@ static YYACTIONTYPE yy_reduce( static void yy_parse_failed( yyParser *yypParser /* The parser */ ){ - ParseARG_FETCH - ParseCTX_FETCH + ParseARG_FETCH; #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sFail!\n",yyTracePrompt); @@ -3996,8 +3659,7 @@ static void yy_parse_failed( ** parser fails */ /************ Begin %parse_failure code ***************************************/ /************ End %parse_failure code *****************************************/ - ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ - ParseCTX_STORE + ParseARG_STORE; /* Suppress warning about unused %extra_argument variable */ } #endif /* YYNOERRORRECOVERY */ @@ -4009,8 +3671,7 @@ static void yy_syntax_error( int yymajor, /* The major type of the error token */ ParseTOKENTYPE yyminor /* The minor type of the error token */ ){ - ParseARG_FETCH - ParseCTX_FETCH + ParseARG_FETCH; #define TOKEN yyminor /************ Begin %syntax_error code ****************************************/ @@ -4036,8 +3697,7 @@ static void yy_syntax_error( assert(len <= outputBufLen); /************ End %syntax_error code ******************************************/ - ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ - ParseCTX_STORE + ParseARG_STORE; /* Suppress warning about unused %extra_argument variable */ } /* @@ -4046,8 +3706,7 @@ static void yy_syntax_error( static void yy_accept( yyParser *yypParser /* The parser */ ){ - ParseARG_FETCH - ParseCTX_FETCH + ParseARG_FETCH; #ifndef NDEBUG if( yyTraceFILE ){ fprintf(yyTraceFILE,"%sAccept!\n",yyTracePrompt); @@ -4062,8 +3721,7 @@ static void yy_accept( /*********** Begin %parse_accept code *****************************************/ /*********** End %parse_accept code *******************************************/ - ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ - ParseCTX_STORE + ParseARG_STORE; /* Suppress warning about unused %extra_argument variable */ } /* The main parser program. @@ -4092,47 +3750,45 @@ void Parse( ParseARG_PDECL /* Optional %extra_argument parameter */ ){ YYMINORTYPE yyminorunion; - YYACTIONTYPE yyact; /* The parser action. */ + unsigned int yyact; /* The parser action. */ #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) int yyendofinput; /* True if we are at the end of input */ #endif #ifdef YYERRORSYMBOL int yyerrorhit = 0; /* True if yymajor has invoked an error */ #endif - yyParser *yypParser = (yyParser*)yyp; /* The parser */ - ParseCTX_FETCH - ParseARG_STORE + yyParser *yypParser; /* The parser */ + yypParser = (yyParser*)yyp; assert( yypParser->yytos!=0 ); #if !defined(YYERRORSYMBOL) && !defined(YYNOERRORRECOVERY) yyendofinput = (yymajor==0); #endif + ParseARG_STORE; - yyact = yypParser->yytos->stateno; #ifndef NDEBUG if( yyTraceFILE ){ - if( yyact < YY_MIN_REDUCE ){ + int stateno = yypParser->yytos->stateno; + if( stateno < YY_MIN_REDUCE ){ fprintf(yyTraceFILE,"%sInput '%s' in state %d\n", - yyTracePrompt,yyTokenName[yymajor],yyact); + yyTracePrompt,yyTokenName[yymajor],stateno); }else{ fprintf(yyTraceFILE,"%sInput '%s' with pending reduce %d\n", - yyTracePrompt,yyTokenName[yymajor],yyact-YY_MIN_REDUCE); + yyTracePrompt,yyTokenName[yymajor],stateno-YY_MIN_REDUCE); } } #endif do{ - assert( yyact==yypParser->yytos->stateno ); - yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact); + yyact = yy_find_shift_action(yypParser,(YYCODETYPE)yymajor); if( yyact >= YY_MIN_REDUCE ){ - yyact = yy_reduce(yypParser,yyact-YY_MIN_REDUCE,yymajor, - yyminor ParseCTX_PARAM); + yy_reduce(yypParser,yyact-YY_MIN_REDUCE,yymajor,yyminor); }else if( yyact <= YY_MAX_SHIFTREDUCE ){ - yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor); + yy_shift(yypParser,yyact,yymajor,yyminor); #ifndef YYNOERRORRECOVERY yypParser->yyerrcnt--; #endif - break; + yymajor = YYNOCODE; }else if( yyact==YY_ACCEPT_ACTION ){ yypParser->yytos--; yy_accept(yypParser); @@ -4183,9 +3839,10 @@ void Parse( yymajor = YYNOCODE; }else{ while( yypParser->yytos >= yypParser->yystack + && yymx != YYERRORSYMBOL && (yyact = yy_find_reduce_action( yypParser->yytos->stateno, - YYERRORSYMBOL)) > YY_MAX_SHIFTREDUCE + YYERRORSYMBOL)) >= YY_MIN_REDUCE ){ yy_pop_parser_stack(yypParser); } @@ -4202,8 +3859,6 @@ void Parse( } yypParser->yyerrcnt = 3; yyerrorhit = 1; - if( yymajor==YYNOCODE ) break; - yyact = yypParser->yytos->stateno; #elif defined(YYNOERRORRECOVERY) /* If the YYNOERRORRECOVERY macro is defined, then do not attempt to ** do any kind of error recovery. Instead, simply invoke the syntax @@ -4214,7 +3869,8 @@ void Parse( */ yy_syntax_error(yypParser,yymajor, yyminor); yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); - break; + yymajor = YYNOCODE; + #else /* YYERRORSYMBOL is not defined */ /* This is what we do if the grammar does not define ERROR: ** @@ -4236,10 +3892,10 @@ void Parse( yypParser->yyerrcnt = -1; #endif } - break; + yymajor = YYNOCODE; #endif } - }while( yypParser->yytos>yypParser->yystack ); + }while( yymajor!=YYNOCODE && yypParser->yytos>yypParser->yystack ); #ifndef NDEBUG if( yyTraceFILE ){ yyStackEntry *i; @@ -4254,17 +3910,3 @@ void Parse( #endif return; } - -/* -** Return the fallback token corresponding to canonical token iToken, or -** 0 if iToken has no fallback. -*/ -int ParseFallback(int iToken){ -#ifdef YYFALLBACK - assert( iToken<(int)(sizeof(yyFallback)/sizeof(yyFallback[0])) ); - return yyFallback[iToken]; -#else - (void)iToken; - return 0; -#endif -} -- GitLab