diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 340cb9893f6077413a944ce479eaf2a72cf1b4da..58dd692c05007f25bcf38850cf7895d7f06b04cb 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -1174,6 +1174,13 @@ typedef struct { char* data; } STagData; +typedef struct { + int32_t useless; // useless +} SShowVariablesReq; + +int32_t tSerializeSShowVariablesReq(void* buf, int32_t bufLen, SShowVariablesReq* pReq); +int32_t tDeserializeSShowVariablesReq(void* buf, int32_t bufLen, SShowVariablesReq* pReq); + /* * sql: show tables like '%a_%' * payload is the query condition, e.g., '%a_%' diff --git a/include/common/tmsgdef.h b/include/common/tmsgdef.h index 907798d19da4aadfd73bfa0c74390aaaec34f701..5944f7882473b57dd14633809be681d07487d8de 100644 --- a/include/common/tmsgdef.h +++ b/include/common/tmsgdef.h @@ -158,6 +158,7 @@ enum { TD_DEF_MSG_TYPE(TDMT_MND_MERGE_VGROUP, "merge-vgroup", NULL, NULL) TD_DEF_MSG_TYPE(TDMT_MND_REDISTRIBUTE_VGROUP, "redistribute-vgroup", NULL, NULL) TD_DEF_MSG_TYPE(TDMT_MND_SPLIT_VGROUP, "split-vgroup", NULL, NULL) + TD_DEF_MSG_TYPE(TDMT_MND_SHOW_VARIABLES, "show-variables", NULL, NULL) TD_NEW_MSG_SEG(TDMT_VND_MSG) TD_DEF_MSG_TYPE(TDMT_VND_SUBMIT, "submit", SSubmitReq, SSubmitRsp) diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 35b4a5ce7de5301941e9013e55138d65d964616f..8e00119876a31ce3f1314c4fb898a8d8f44c8649 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -49,214 +49,216 @@ #define TK_CONNS 31 #define TK_STATE 32 #define TK_USER 33 -#define TK_PRIVILEGE 34 -#define TK_DROP 35 -#define TK_GRANT 36 -#define TK_ON 37 -#define TK_TO 38 -#define TK_REVOKE 39 -#define TK_FROM 40 -#define TK_NK_COMMA 41 -#define TK_READ 42 -#define TK_WRITE 43 -#define TK_NK_DOT 44 -#define TK_DNODE 45 -#define TK_PORT 46 -#define TK_NK_INTEGER 47 -#define TK_DNODES 48 -#define TK_NK_IPTOKEN 49 -#define TK_LOCAL 50 -#define TK_QNODE 51 -#define TK_BNODE 52 -#define TK_SNODE 53 -#define TK_MNODE 54 -#define TK_DATABASE 55 -#define TK_USE 56 -#define TK_IF 57 -#define TK_NOT 58 -#define TK_EXISTS 59 -#define TK_BUFFER 60 -#define TK_CACHELAST 61 -#define TK_COMP 62 -#define TK_DURATION 63 -#define TK_NK_VARIABLE 64 -#define TK_FSYNC 65 -#define TK_MAXROWS 66 -#define TK_MINROWS 67 -#define TK_KEEP 68 -#define TK_PAGES 69 -#define TK_PAGESIZE 70 -#define TK_PRECISION 71 -#define TK_REPLICA 72 -#define TK_STRICT 73 -#define TK_WAL 74 -#define TK_VGROUPS 75 -#define TK_SINGLE_STABLE 76 -#define TK_RETENTIONS 77 -#define TK_SCHEMALESS 78 -#define TK_NK_COLON 79 -#define TK_TABLE 80 -#define TK_NK_LP 81 -#define TK_NK_RP 82 -#define TK_STABLE 83 -#define TK_ADD 84 -#define TK_COLUMN 85 -#define TK_MODIFY 86 -#define TK_RENAME 87 -#define TK_TAG 88 -#define TK_SET 89 -#define TK_NK_EQ 90 -#define TK_USING 91 -#define TK_TAGS 92 -#define TK_COMMENT 93 -#define TK_BOOL 94 -#define TK_TINYINT 95 -#define TK_SMALLINT 96 -#define TK_INT 97 -#define TK_INTEGER 98 -#define TK_BIGINT 99 -#define TK_FLOAT 100 -#define TK_DOUBLE 101 -#define TK_BINARY 102 -#define TK_TIMESTAMP 103 -#define TK_NCHAR 104 -#define TK_UNSIGNED 105 -#define TK_JSON 106 -#define TK_VARCHAR 107 -#define TK_MEDIUMBLOB 108 -#define TK_BLOB 109 -#define TK_VARBINARY 110 -#define TK_DECIMAL 111 -#define TK_MAX_DELAY 112 -#define TK_WATERMARK 113 -#define TK_ROLLUP 114 -#define TK_TTL 115 -#define TK_SMA 116 -#define TK_FIRST 117 -#define TK_LAST 118 -#define TK_SHOW 119 -#define TK_DATABASES 120 -#define TK_TABLES 121 -#define TK_STABLES 122 -#define TK_MNODES 123 -#define TK_MODULES 124 -#define TK_QNODES 125 -#define TK_FUNCTIONS 126 -#define TK_INDEXES 127 -#define TK_ACCOUNTS 128 -#define TK_APPS 129 -#define TK_CONNECTIONS 130 -#define TK_LICENCE 131 -#define TK_GRANTS 132 -#define TK_QUERIES 133 -#define TK_SCORES 134 -#define TK_TOPICS 135 -#define TK_VARIABLES 136 -#define TK_BNODES 137 -#define TK_SNODES 138 -#define TK_CLUSTER 139 -#define TK_TRANSACTIONS 140 -#define TK_DISTRIBUTED 141 -#define TK_LIKE 142 -#define TK_INDEX 143 -#define TK_FULLTEXT 144 +#define TK_ENABLE 34 +#define TK_NK_INTEGER 35 +#define TK_SYSINFO 36 +#define TK_DROP 37 +#define TK_GRANT 38 +#define TK_ON 39 +#define TK_TO 40 +#define TK_REVOKE 41 +#define TK_FROM 42 +#define TK_NK_COMMA 43 +#define TK_READ 44 +#define TK_WRITE 45 +#define TK_NK_DOT 46 +#define TK_DNODE 47 +#define TK_PORT 48 +#define TK_DNODES 49 +#define TK_NK_IPTOKEN 50 +#define TK_LOCAL 51 +#define TK_QNODE 52 +#define TK_BNODE 53 +#define TK_SNODE 54 +#define TK_MNODE 55 +#define TK_DATABASE 56 +#define TK_USE 57 +#define TK_IF 58 +#define TK_NOT 59 +#define TK_EXISTS 60 +#define TK_BUFFER 61 +#define TK_CACHELAST 62 +#define TK_COMP 63 +#define TK_DURATION 64 +#define TK_NK_VARIABLE 65 +#define TK_FSYNC 66 +#define TK_MAXROWS 67 +#define TK_MINROWS 68 +#define TK_KEEP 69 +#define TK_PAGES 70 +#define TK_PAGESIZE 71 +#define TK_PRECISION 72 +#define TK_REPLICA 73 +#define TK_STRICT 74 +#define TK_WAL 75 +#define TK_VGROUPS 76 +#define TK_SINGLE_STABLE 77 +#define TK_RETENTIONS 78 +#define TK_SCHEMALESS 79 +#define TK_NK_COLON 80 +#define TK_TABLE 81 +#define TK_NK_LP 82 +#define TK_NK_RP 83 +#define TK_STABLE 84 +#define TK_ADD 85 +#define TK_COLUMN 86 +#define TK_MODIFY 87 +#define TK_RENAME 88 +#define TK_TAG 89 +#define TK_SET 90 +#define TK_NK_EQ 91 +#define TK_USING 92 +#define TK_TAGS 93 +#define TK_COMMENT 94 +#define TK_BOOL 95 +#define TK_TINYINT 96 +#define TK_SMALLINT 97 +#define TK_INT 98 +#define TK_INTEGER 99 +#define TK_BIGINT 100 +#define TK_FLOAT 101 +#define TK_DOUBLE 102 +#define TK_BINARY 103 +#define TK_TIMESTAMP 104 +#define TK_NCHAR 105 +#define TK_UNSIGNED 106 +#define TK_JSON 107 +#define TK_VARCHAR 108 +#define TK_MEDIUMBLOB 109 +#define TK_BLOB 110 +#define TK_VARBINARY 111 +#define TK_DECIMAL 112 +#define TK_MAX_DELAY 113 +#define TK_WATERMARK 114 +#define TK_ROLLUP 115 +#define TK_TTL 116 +#define TK_SMA 117 +#define TK_FIRST 118 +#define TK_LAST 119 +#define TK_SHOW 120 +#define TK_DATABASES 121 +#define TK_TABLES 122 +#define TK_STABLES 123 +#define TK_MNODES 124 +#define TK_MODULES 125 +#define TK_QNODES 126 +#define TK_FUNCTIONS 127 +#define TK_INDEXES 128 +#define TK_ACCOUNTS 129 +#define TK_APPS 130 +#define TK_CONNECTIONS 131 +#define TK_LICENCE 132 +#define TK_GRANTS 133 +#define TK_QUERIES 134 +#define TK_SCORES 135 +#define TK_TOPICS 136 +#define TK_VARIABLES 137 +#define TK_BNODES 138 +#define TK_SNODES 139 +#define TK_CLUSTER 140 +#define TK_TRANSACTIONS 141 +#define TK_DISTRIBUTED 142 +#define TK_LIKE 143 +#define TK_INDEX 144 #define TK_FUNCTION 145 #define TK_INTERVAL 146 #define TK_TOPIC 147 #define TK_AS 148 -#define TK_CONSUMER 149 -#define TK_GROUP 150 -#define TK_DESC 151 -#define TK_DESCRIBE 152 -#define TK_RESET 153 -#define TK_QUERY 154 -#define TK_CACHE 155 -#define TK_EXPLAIN 156 -#define TK_ANALYZE 157 -#define TK_VERBOSE 158 -#define TK_NK_BOOL 159 -#define TK_RATIO 160 -#define TK_NK_FLOAT 161 -#define TK_COMPACT 162 -#define TK_VNODES 163 -#define TK_IN 164 -#define TK_OUTPUTTYPE 165 -#define TK_AGGREGATE 166 -#define TK_BUFSIZE 167 -#define TK_STREAM 168 -#define TK_INTO 169 -#define TK_TRIGGER 170 -#define TK_AT_ONCE 171 -#define TK_WINDOW_CLOSE 172 -#define TK_KILL 173 -#define TK_CONNECTION 174 -#define TK_TRANSACTION 175 -#define TK_BALANCE 176 -#define TK_VGROUP 177 -#define TK_MERGE 178 -#define TK_REDISTRIBUTE 179 -#define TK_SPLIT 180 -#define TK_SYNCDB 181 -#define TK_DELETE 182 -#define TK_NULL 183 -#define TK_NK_QUESTION 184 -#define TK_NK_ARROW 185 -#define TK_ROWTS 186 -#define TK_TBNAME 187 -#define TK_QSTARTTS 188 -#define TK_QENDTS 189 -#define TK_WSTARTTS 190 -#define TK_WENDTS 191 -#define TK_WDURATION 192 -#define TK_CAST 193 -#define TK_NOW 194 -#define TK_TODAY 195 -#define TK_TIMEZONE 196 -#define TK_COUNT 197 -#define TK_LAST_ROW 198 -#define TK_BETWEEN 199 -#define TK_IS 200 -#define TK_NK_LT 201 -#define TK_NK_GT 202 -#define TK_NK_LE 203 -#define TK_NK_GE 204 -#define TK_NK_NE 205 -#define TK_MATCH 206 -#define TK_NMATCH 207 -#define TK_CONTAINS 208 -#define TK_JOIN 209 -#define TK_INNER 210 -#define TK_SELECT 211 -#define TK_DISTINCT 212 -#define TK_WHERE 213 -#define TK_PARTITION 214 -#define TK_BY 215 -#define TK_SESSION 216 -#define TK_STATE_WINDOW 217 -#define TK_SLIDING 218 -#define TK_FILL 219 -#define TK_VALUE 220 -#define TK_NONE 221 -#define TK_PREV 222 -#define TK_LINEAR 223 -#define TK_NEXT 224 -#define TK_HAVING 225 -#define TK_RANGE 226 -#define TK_EVERY 227 -#define TK_ORDER 228 -#define TK_SLIMIT 229 -#define TK_SOFFSET 230 -#define TK_LIMIT 231 -#define TK_OFFSET 232 -#define TK_ASC 233 -#define TK_NULLS 234 -#define TK_ID 235 -#define TK_NK_BITNOT 236 -#define TK_INSERT 237 -#define TK_VALUES 238 -#define TK_IMPORT 239 -#define TK_NK_SEMI 240 -#define TK_FILE 241 +#define TK_WITH 149 +#define TK_META 150 +#define TK_CONSUMER 151 +#define TK_GROUP 152 +#define TK_DESC 153 +#define TK_DESCRIBE 154 +#define TK_RESET 155 +#define TK_QUERY 156 +#define TK_CACHE 157 +#define TK_EXPLAIN 158 +#define TK_ANALYZE 159 +#define TK_VERBOSE 160 +#define TK_NK_BOOL 161 +#define TK_RATIO 162 +#define TK_NK_FLOAT 163 +#define TK_COMPACT 164 +#define TK_VNODES 165 +#define TK_IN 166 +#define TK_OUTPUTTYPE 167 +#define TK_AGGREGATE 168 +#define TK_BUFSIZE 169 +#define TK_STREAM 170 +#define TK_INTO 171 +#define TK_TRIGGER 172 +#define TK_AT_ONCE 173 +#define TK_WINDOW_CLOSE 174 +#define TK_KILL 175 +#define TK_CONNECTION 176 +#define TK_TRANSACTION 177 +#define TK_BALANCE 178 +#define TK_VGROUP 179 +#define TK_MERGE 180 +#define TK_REDISTRIBUTE 181 +#define TK_SPLIT 182 +#define TK_SYNCDB 183 +#define TK_DELETE 184 +#define TK_NULL 185 +#define TK_NK_QUESTION 186 +#define TK_NK_ARROW 187 +#define TK_ROWTS 188 +#define TK_TBNAME 189 +#define TK_QSTARTTS 190 +#define TK_QENDTS 191 +#define TK_WSTARTTS 192 +#define TK_WENDTS 193 +#define TK_WDURATION 194 +#define TK_CAST 195 +#define TK_NOW 196 +#define TK_TODAY 197 +#define TK_TIMEZONE 198 +#define TK_COUNT 199 +#define TK_LAST_ROW 200 +#define TK_BETWEEN 201 +#define TK_IS 202 +#define TK_NK_LT 203 +#define TK_NK_GT 204 +#define TK_NK_LE 205 +#define TK_NK_GE 206 +#define TK_NK_NE 207 +#define TK_MATCH 208 +#define TK_NMATCH 209 +#define TK_CONTAINS 210 +#define TK_JOIN 211 +#define TK_INNER 212 +#define TK_SELECT 213 +#define TK_DISTINCT 214 +#define TK_WHERE 215 +#define TK_PARTITION 216 +#define TK_BY 217 +#define TK_SESSION 218 +#define TK_STATE_WINDOW 219 +#define TK_SLIDING 220 +#define TK_FILL 221 +#define TK_VALUE 222 +#define TK_NONE 223 +#define TK_PREV 224 +#define TK_LINEAR 225 +#define TK_NEXT 226 +#define TK_HAVING 227 +#define TK_RANGE 228 +#define TK_EVERY 229 +#define TK_ORDER 230 +#define TK_SLIMIT 231 +#define TK_SOFFSET 232 +#define TK_LIMIT 233 +#define TK_OFFSET 234 +#define TK_ASC 235 +#define TK_NULLS 236 +#define TK_ID 237 +#define TK_NK_BITNOT 238 +#define TK_INSERT 239 +#define TK_VALUES 240 +#define TK_IMPORT 241 +#define TK_NK_SEMI 242 +#define TK_FILE 243 #define TK_NK_SPACE 300 #define TK_NK_COMMENT 301 diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index 4578087164be768067df842c341d861241a1d78d..3270b6d58e2404b558dae067a0ade4ff4d293f39 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -170,13 +170,16 @@ typedef struct SCreateUserStmt { ENodeType type; char useName[TSDB_USER_LEN]; char password[TSDB_USET_PASSWORD_LEN]; + int8_t sysinfo; } SCreateUserStmt; typedef struct SAlterUserStmt { ENodeType type; char useName[TSDB_USER_LEN]; - char password[TSDB_USET_PASSWORD_LEN]; int8_t alterType; + char password[TSDB_USET_PASSWORD_LEN]; + int8_t enable; + int8_t sysinfo; } SAlterUserStmt; typedef struct SDropUserStmt { @@ -259,7 +262,6 @@ typedef struct SDropIndexStmt { ENodeType type; bool ignoreNotExists; char indexName[TSDB_INDEX_NAME_LEN]; - char tableName[TSDB_TABLE_NAME_LEN]; } SDropIndexStmt; typedef struct SCreateComponentNodeStmt { @@ -278,6 +280,7 @@ typedef struct SCreateTopicStmt { char subDbName[TSDB_DB_NAME_LEN]; char subSTbName[TSDB_TABLE_NAME_LEN]; bool ignoreExists; + bool withMeta; SNode* pQuery; } SCreateTopicStmt; diff --git a/include/libs/nodes/querynodes.h b/include/libs/nodes/querynodes.h index 7a63f87412ef5493d181b27684d70c01b23e78f3..a7156ae6a35149f55115d89739f8500bbab55cc7 100644 --- a/include/libs/nodes/querynodes.h +++ b/include/libs/nodes/querynodes.h @@ -384,6 +384,7 @@ bool nodesIsArithmeticOp(const SOperatorNode* pOp); bool nodesIsComparisonOp(const SOperatorNode* pOp); bool nodesIsJsonOp(const SOperatorNode* pOp); bool nodesIsRegularOp(const SOperatorNode* pOp); +bool nodesIsBitwiseOp(const SOperatorNode* pOp); bool nodesExprHasColumn(SNode* pNode); bool nodesExprsHasColumn(SNodeList* pList); diff --git a/include/util/tdef.h b/include/util/tdef.h index c5a8b95a08cc37e4d665e01f5de01eca97b16087..ef3c3a0fa657bb38e62b5b60b819c07f75415f46 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -134,7 +134,7 @@ typedef enum EOperatorType { OP_TYPE_MINUS, OP_TYPE_ASSIGN, - // bit operator + // bitwise operator OP_TYPE_BIT_AND, OP_TYPE_BIT_OR, diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 7e9ce34f9f000c8d52dccd3fe11d879ee1cd1650..ef59d850c54d31a0e70be7454f4a1b2a64be9e76 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -2552,6 +2552,31 @@ void tFreeSTableIndexInfo(void *info) { taosMemoryFree(pInfo->expr); } +int32_t tSerializeSShowVariablesReq(void *buf, int32_t bufLen, SShowVariablesReq *pReq) { + SEncoder encoder = {0}; + tEncoderInit(&encoder, buf, bufLen); + + if (tStartEncode(&encoder) < 0) return -1; + if (tEncodeI32(&encoder, pReq->useless) < 0) return -1; + tEndEncode(&encoder); + + int32_t tlen = encoder.pos; + tEncoderClear(&encoder); + return tlen; +} + +int32_t tDeserializeSShowVariablesReq(void *buf, int32_t bufLen, SShowVariablesReq *pReq) { + SDecoder decoder = {0}; + tDecoderInit(&decoder, buf, bufLen); + + if (tStartDecode(&decoder) < 0) return -1; + if (tDecodeI32(&decoder, &pReq->useless) < 0) return -1; + + tEndDecode(&decoder); + tDecoderClear(&decoder); + return 0; +} + int32_t tSerializeSShowReq(void *buf, int32_t bufLen, SShowReq *pReq) { SEncoder encoder = {0}; tEncoderInit(&encoder, buf, bufLen); diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index ebacf5574f11bb03a56313fb2c373063c7915b95..480a153357637df8c23346e9aeb1360994ed7d47 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -1354,6 +1354,17 @@ bool nodesIsRegularOp(const SOperatorNode* pOp) { return false; } +bool nodesIsBitwiseOp(const SOperatorNode* pOp) { + switch (pOp->opType) { + case OP_TYPE_BIT_AND: + case OP_TYPE_BIT_OR: + return true; + default: + break; + } + return false; +} + typedef struct SCollectColumnsCxt { int32_t errCode; const char* pTableAlias; diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 2d9bb497626ea36030e6bd603b9e5695980b51d5..213e21cdcf81fb4aaed4d9f4278df9d25cf1678b 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -162,7 +162,7 @@ SNode* createShowCreateDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName); SNode* createShowCreateTableStmt(SAstCreateContext* pCxt, ENodeType type, SNode* pRealTable); SNode* createShowTableDistributedStmt(SAstCreateContext* pCxt, SNode* pRealTable); SNode* createShowDnodeVariablesStmt(SAstCreateContext* pCxt, SNode* pDnodeId); -SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const SToken* pPassword); +SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const SToken* pPassword, int8_t sysinfo); SNode* createAlterUserStmt(SAstCreateContext* pCxt, SToken* pUserName, int8_t alterType, const SToken* pVal); SNode* createDropUserStmt(SAstCreateContext* pCxt, SToken* pUserName); SNode* createCreateDnodeStmt(SAstCreateContext* pCxt, const SToken* pFqdn, const SToken* pPort); @@ -171,12 +171,15 @@ SNode* createAlterDnodeStmt(SAstCreateContext* pCxt, const SToken* pDnode, const SNode* createCreateIndexStmt(SAstCreateContext* pCxt, EIndexType type, bool ignoreExists, SToken* pIndexName, SToken* pTableName, SNodeList* pCols, SNode* pOptions); SNode* createIndexOption(SAstCreateContext* pCxt, SNodeList* pFuncs, SNode* pInterval, SNode* pOffset, SNode* pSliding); -SNode* createDropIndexStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken* pIndexName, SToken* pTableName); +SNode* createDropIndexStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken* pIndexName); SNode* createCreateComponentNodeStmt(SAstCreateContext* pCxt, ENodeType type, const SToken* pDnodeId); SNode* createDropComponentNodeStmt(SAstCreateContext* pCxt, ENodeType type, const SToken* pDnodeId); -SNode* createTopicOptions(SAstCreateContext* pCxt); -SNode* createCreateTopicStmt(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, SNode* pQuery, - const SToken* pSubDbName, SNode* pRealTable); +SNode* createCreateTopicStmtUseQuery(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, + SNode* pQuery); +SNode* createCreateTopicStmtUseDb(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, + const SToken* pSubDbName, bool withMeta); +SNode* createCreateTopicStmtUseTable(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, + SNode* pRealTable, bool withMeta); SNode* createDropTopicStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const SToken* pTopicName); SNode* createDropCGroupStmt(SAstCreateContext* pCxt, bool ignoreNotExists, const SToken* pCGroupId, const SToken* pTopicName); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 54c46ecb5dcf06d1f9f3264820e0265580d36504..da0c07458b339cea60436e99d1849feccbbc6172 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -80,11 +80,18 @@ alter_account_option ::= CONNS literal. alter_account_option ::= STATE literal. { } /************************************************ create/alter/drop user **********************************************/ -cmd ::= CREATE USER user_name(A) PASS NK_STRING(B). { pCxt->pRootNode = createCreateUserStmt(pCxt, &A, &B); } +cmd ::= CREATE USER user_name(A) PASS NK_STRING(B) sysinfo_opt(C). { pCxt->pRootNode = createCreateUserStmt(pCxt, &A, &B, C); } cmd ::= ALTER USER user_name(A) PASS NK_STRING(B). { pCxt->pRootNode = createAlterUserStmt(pCxt, &A, TSDB_ALTER_USER_PASSWD, &B); } -cmd ::= ALTER USER user_name(A) PRIVILEGE NK_STRING(B). { pCxt->pRootNode = createAlterUserStmt(pCxt, &A, TSDB_ALTER_USER_PRIVILEGES, &B); } +//cmd ::= ALTER USER user_name(A) PRIVILEGE NK_STRING(B). { pCxt->pRootNode = createAlterUserStmt(pCxt, &A, TSDB_ALTER_USER_PRIVILEGES, &B); } +cmd ::= ALTER USER user_name(A) ENABLE NK_INTEGER(B). { pCxt->pRootNode = createAlterUserStmt(pCxt, &A, TSDB_ALTER_USER_ENABLE, &B); } +cmd ::= ALTER USER user_name(A) SYSINFO NK_INTEGER(B). { pCxt->pRootNode = createAlterUserStmt(pCxt, &A, TSDB_ALTER_USER_SYSINFO, &B); } cmd ::= DROP USER user_name(A). { pCxt->pRootNode = createDropUserStmt(pCxt, &A); } +%type sysinfo_opt { int8_t } +%destructor sysinfo_opt { } +sysinfo_opt(A) ::= . { A = 1; } +sysinfo_opt(A) ::= SYSINFO NK_INTEGER(B). { A = taosStr2Int8(B.z, NULL, 10); } + /************************************************ grant/revoke ********************************************************/ cmd ::= GRANT privileges(A) ON priv_level(B) TO user_name(C). { pCxt->pRootNode = createGrantStmt(pCxt, A, &B, &C); } cmd ::= REVOKE privileges(A) ON priv_level(B) FROM user_name(C). { pCxt->pRootNode = createRevokeStmt(pCxt, A, &B, &C); } @@ -396,9 +403,9 @@ from_db_opt(A) ::= FROM db_name(B). /************************************************ create index ********************************************************/ cmd ::= CREATE SMA INDEX not_exists_opt(D) index_name(A) ON table_name(B) index_options(C). { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, D, &A, &B, NULL, C); } -cmd ::= CREATE FULLTEXT INDEX not_exists_opt(D) - index_name(A) ON table_name(B) NK_LP col_name_list(C) NK_RP. { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, D, &A, &B, C, NULL); } -cmd ::= DROP INDEX exists_opt(C) index_name(A) ON table_name(B). { pCxt->pRootNode = createDropIndexStmt(pCxt, C, &A, &B); } +//cmd ::= CREATE FULLTEXT INDEX not_exists_opt(D) +// index_name(A) ON table_name(B) NK_LP col_name_list(C) NK_RP. { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, D, &A, &B, C, NULL); } +cmd ::= DROP INDEX exists_opt(B) index_name(A). { pCxt->pRootNode = createDropIndexStmt(pCxt, B, &A); } index_options(A) ::= . { A = NULL; } index_options(A) ::= FUNCTION NK_LP func_list(B) NK_RP INTERVAL @@ -414,10 +421,14 @@ func_list(A) ::= func_list(B) NK_COMMA func(C). func(A) ::= function_name(B) NK_LP expression_list(C) NK_RP. { A = createFunctionNode(pCxt, &B, C); } /************************************************ create/drop topic ***************************************************/ -cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) AS query_expression(C). { pCxt->pRootNode = createCreateTopicStmt(pCxt, A, &B, C, NULL, NULL); } -cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) AS DATABASE db_name(C). { pCxt->pRootNode = createCreateTopicStmt(pCxt, A, &B, NULL, &C, NULL); } -cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) - AS STABLE full_table_name(C). { pCxt->pRootNode = createCreateTopicStmt(pCxt, A, &B, NULL, NULL, C); } +cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) AS query_expression(C). { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, A, &B, C); } +cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) AS DATABASE db_name(C). { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, A, &B, &C, false); } +cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) + WITH META AS DATABASE db_name(C). { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, A, &B, &C, true); } +cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) + AS STABLE full_table_name(C). { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, A, &B, C, false); } +cmd ::= CREATE TOPIC not_exists_opt(A) topic_name(B) + WITH META AS STABLE full_table_name(C). { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, A, &B, C, true); } cmd ::= DROP TOPIC exists_opt(A) topic_name(B). { pCxt->pRootNode = createDropTopicStmt(pCxt, A, &B); } cmd ::= DROP CONSUMER GROUP exists_opt(A) cgroup_name(B) ON topic_name(C). { pCxt->pRootNode = createDropCGroupStmt(pCxt, A, &B, &C); } @@ -627,6 +638,16 @@ expression(A) ::= column_reference(B) NK_ARROW NK_STRING(C). SToken s = getTokenFromRawExprNode(pCxt, B); A = createRawExprNodeExt(pCxt, &s, &C, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, B), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &C))); } +expression(A) ::= expression(B) NK_BITAND expression(C). { + SToken s = getTokenFromRawExprNode(pCxt, B); + SToken e = getTokenFromRawExprNode(pCxt, C); + A = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, B), releaseRawExprNode(pCxt, C))); + } +expression(A) ::= expression(B) NK_BITOR expression(C). { + SToken s = getTokenFromRawExprNode(pCxt, B); + SToken e = getTokenFromRawExprNode(pCxt, C); + A = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, B), releaseRawExprNode(pCxt, C))); + } %type expression_list { SNodeList* } %destructor expression_list { nodesDestroyList($$); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 4fc5cf96e59a547737a0d758fac45fbc3b23bb45..ef7f17a4608db27859c4483088688c79b97db29d 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1205,7 +1205,7 @@ SNode* createShowDnodeVariablesStmt(SAstCreateContext* pCxt, SNode* pDnodeId) { return (SNode*)pStmt; } -SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const SToken* pPassword) { +SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const SToken* pPassword, int8_t sysinfo) { CHECK_PARSER_STATUS(pCxt); char password[TSDB_USET_PASSWORD_LEN] = {0}; if (!checkUserName(pCxt, pUserName) || !checkPassword(pCxt, pPassword, password)) { @@ -1215,6 +1215,7 @@ SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const ST CHECK_OUT_OF_MEM(pStmt); COPY_STRING_FORM_ID_TOKEN(pStmt->useName, pUserName); strcpy(pStmt->password, password); + pStmt->sysinfo = sysinfo; return (SNode*)pStmt; } @@ -1226,15 +1227,26 @@ SNode* createAlterUserStmt(SAstCreateContext* pCxt, SToken* pUserName, int8_t al SAlterUserStmt* pStmt = (SAlterUserStmt*)nodesMakeNode(QUERY_NODE_ALTER_USER_STMT); CHECK_OUT_OF_MEM(pStmt); COPY_STRING_FORM_ID_TOKEN(pStmt->useName, pUserName); - if (TSDB_ALTER_USER_PASSWD == alterType) { - char password[TSDB_USET_PASSWORD_LEN] = {0}; - if (!checkPassword(pCxt, pVal, password)) { - nodesDestroyNode((SNode*)pStmt); - return NULL; + pStmt->alterType = alterType; + switch (alterType) { + case TSDB_ALTER_USER_PASSWD: { + char password[TSDB_USET_PASSWORD_LEN] = {0}; + if (!checkPassword(pCxt, pVal, password)) { + nodesDestroyNode((SNode*)pStmt); + return NULL; + } + strcpy(pStmt->password, password); + break; } - strcpy(pStmt->password, password); + case TSDB_ALTER_USER_ENABLE: + pStmt->enable = taosStr2Int8(pVal->z, NULL, 10); + break; + case TSDB_ALTER_USER_SYSINFO: + pStmt->sysinfo = taosStr2Int8(pVal->z, NULL, 10); + break; + default: + break; } - pStmt->alterType = alterType; return (SNode*)pStmt; } @@ -1317,16 +1329,15 @@ SNode* createIndexOption(SAstCreateContext* pCxt, SNodeList* pFuncs, SNode* pInt return (SNode*)pOptions; } -SNode* createDropIndexStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken* pIndexName, SToken* pTableName) { +SNode* createDropIndexStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken* pIndexName) { CHECK_PARSER_STATUS(pCxt); - if (!checkIndexName(pCxt, pIndexName) || !checkTableName(pCxt, pTableName)) { + if (!checkDbName(pCxt, NULL, true) || !checkIndexName(pCxt, pIndexName)) { return NULL; } SDropIndexStmt* pStmt = (SDropIndexStmt*)nodesMakeNode(QUERY_NODE_DROP_INDEX_STMT); CHECK_OUT_OF_MEM(pStmt); pStmt->ignoreNotExists = ignoreNotExists; COPY_STRING_FORM_ID_TOKEN(pStmt->indexName, pIndexName); - COPY_STRING_FORM_ID_TOKEN(pStmt->tableName, pTableName); return (SNode*)pStmt; } @@ -1346,22 +1357,40 @@ SNode* createDropComponentNodeStmt(SAstCreateContext* pCxt, ENodeType type, cons return (SNode*)pStmt; } -SNode* createCreateTopicStmt(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, SNode* pQuery, - const SToken* pSubDbName, SNode* pRealTable) { +SNode* createCreateTopicStmtUseQuery(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, + SNode* pQuery) { CHECK_PARSER_STATUS(pCxt); SCreateTopicStmt* pStmt = (SCreateTopicStmt*)nodesMakeNode(QUERY_NODE_CREATE_TOPIC_STMT); CHECK_OUT_OF_MEM(pStmt); COPY_STRING_FORM_ID_TOKEN(pStmt->topicName, pTopicName); pStmt->ignoreExists = ignoreExists; - if (NULL != pRealTable) { - strcpy(pStmt->subDbName, ((SRealTableNode*)pRealTable)->table.dbName); - strcpy(pStmt->subSTbName, ((SRealTableNode*)pRealTable)->table.tableName); - nodesDestroyNode(pRealTable); - } else if (NULL != pSubDbName) { - COPY_STRING_FORM_ID_TOKEN(pStmt->subDbName, pSubDbName); - } else { - pStmt->pQuery = pQuery; - } + pStmt->pQuery = pQuery; + return (SNode*)pStmt; +} + +SNode* createCreateTopicStmtUseDb(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, + const SToken* pSubDbName, bool withMeta) { + CHECK_PARSER_STATUS(pCxt); + SCreateTopicStmt* pStmt = (SCreateTopicStmt*)nodesMakeNode(QUERY_NODE_CREATE_TOPIC_STMT); + CHECK_OUT_OF_MEM(pStmt); + COPY_STRING_FORM_ID_TOKEN(pStmt->topicName, pTopicName); + pStmt->ignoreExists = ignoreExists; + COPY_STRING_FORM_ID_TOKEN(pStmt->subDbName, pSubDbName); + pStmt->withMeta = withMeta; + return (SNode*)pStmt; +} + +SNode* createCreateTopicStmtUseTable(SAstCreateContext* pCxt, bool ignoreExists, const SToken* pTopicName, + SNode* pRealTable, bool withMeta) { + CHECK_PARSER_STATUS(pCxt); + SCreateTopicStmt* pStmt = (SCreateTopicStmt*)nodesMakeNode(QUERY_NODE_CREATE_TOPIC_STMT); + CHECK_OUT_OF_MEM(pStmt); + COPY_STRING_FORM_ID_TOKEN(pStmt->topicName, pTopicName); + pStmt->ignoreExists = ignoreExists; + pStmt->withMeta = withMeta; + strcpy(pStmt->subDbName, ((SRealTableNode*)pRealTable)->table.dbName); + strcpy(pStmt->subSTbName, ((SRealTableNode*)pRealTable)->table.tableName); + nodesDestroyNode(pRealTable); return (SNode*)pStmt; } diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index 21f227b7eac945d5e2ff6dafc5c90fa211df3200..12b717e56a0648223c5320d5943532124f31bef1 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -79,6 +79,7 @@ static SKeyword keywordTable[] = { {"DOUBLE", TK_DOUBLE}, {"DROP", TK_DROP}, {"DURATION", TK_DURATION}, + {"ENABLE", TK_ENABLE}, {"EXISTS", TK_EXISTS}, {"EXPLAIN", TK_EXPLAIN}, {"EVERY", TK_EVERY}, @@ -120,6 +121,7 @@ static SKeyword keywordTable[] = { {"MAXROWS", TK_MAXROWS}, {"MAX_DELAY", TK_MAX_DELAY}, {"MERGE", TK_MERGE}, + {"META", TK_META}, {"MINROWS", TK_MINROWS}, {"MINUS", TK_MINUS}, {"MNODE", TK_MNODE}, @@ -146,7 +148,7 @@ static SKeyword keywordTable[] = { {"PORT", TK_PORT}, {"PPS", TK_PPS}, {"PRECISION", TK_PRECISION}, - {"PRIVILEGE", TK_PRIVILEGE}, + // {"PRIVILEGE", TK_PRIVILEGE}, {"PREV", TK_PREV}, {"QNODE", TK_QNODE}, {"QNODES", TK_QNODES}, @@ -187,6 +189,7 @@ static SKeyword keywordTable[] = { {"STREAMS", TK_STREAMS}, {"STRICT", TK_STRICT}, {"SYNCDB", TK_SYNCDB}, + {"SYSINFO", TK_SYSINFO}, {"TABLE", TK_TABLE}, {"TABLES", TK_TABLES}, {"TAG", TK_TAG}, @@ -222,6 +225,7 @@ static SKeyword keywordTable[] = { {"WATERMARK", TK_WATERMARK}, {"WHERE", TK_WHERE}, {"WINDOW_CLOSE", TK_WINDOW_CLOSE}, + {"WITH", TK_WITH}, {"WRITE", TK_WRITE}, {"_C0", TK_ROWTS}, {"_QENDTS", TK_QENDTS}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index fa0a66820f17f7960c3e680626e0897831d25cb7..4cbb37ade20e3a5e67c95a879d30bf72378a4e6c 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -984,6 +984,17 @@ static EDealRes translateJsonOperator(STranslateContext* pCxt, SOperatorNode* pO return DEAL_RES_CONTINUE; } +static EDealRes translateBitwiseOperator(STranslateContext* pCxt, SOperatorNode* pOp) { + SDataType ldt = ((SExprNode*)(pOp->pLeft))->resType; + SDataType rdt = ((SExprNode*)(pOp->pRight))->resType; + if (TSDB_DATA_TYPE_BLOB == ldt.type || TSDB_DATA_TYPE_BLOB == rdt.type) { + return generateDealNodeErrMsg(pCxt, TSDB_CODE_PAR_WRONG_VALUE_TYPE, ((SExprNode*)(pOp->pRight))->aliasName); + } + pOp->node.resType.type = TSDB_DATA_TYPE_BIGINT; + pOp->node.resType.bytes = tDataTypes[TSDB_DATA_TYPE_BIGINT].bytes; + return DEAL_RES_CONTINUE; +} + static EDealRes translateOperator(STranslateContext* pCxt, SOperatorNode** pOpRef) { SOperatorNode* pOp = *pOpRef; @@ -1002,6 +1013,8 @@ static EDealRes translateOperator(STranslateContext* pCxt, SOperatorNode** pOpRe return translateComparisonOperator(pCxt, pOp); } else if (nodesIsJsonOp(pOp)) { return translateJsonOperator(pCxt, pOp); + } else if (nodesIsBitwiseOp(pOp)) { + return translateBitwiseOperator(pCxt, pOp); } return DEAL_RES_CONTINUE; } @@ -2352,6 +2365,8 @@ static SNode* createGroupingSet(SNode* pExpr) { return (SNode*)pGroupingSet; } +// from: select unique(expr), col1 + col2 from t where_clause partition_by_clause order_by_clause ... +// to: select expr, first(col1) + first(col2) from t where_clause partition_by_clause group by expr order_by_clause ... static int32_t rewriteUniqueStmt(STranslateContext* pCxt, SSelectStmt* pSelect) { if (!pSelect->hasUniqueFunc) { return TSDB_CODE_SUCCESS; @@ -2417,6 +2432,8 @@ static SNode* createOrderByExpr(STranslateContext* pCxt) { return (SNode*)pOrder; } +// from: select tail(expr, k, f) from t where_clause partition_by_clause order_by_clause ... +// to: select expr from t where_clause order by _rowts desc limit k offset f static int32_t rewriteTailStmt(STranslateContext* pCxt, SSelectStmt* pSelect) { if (!pSelect->hasTailFunc) { return TSDB_CODE_SUCCESS; @@ -3685,7 +3702,7 @@ static int32_t translateCreateUser(STranslateContext* pCxt, SCreateUserStmt* pSt strcpy(createReq.user, pStmt->useName); createReq.createType = 0; createReq.superUser = 0; - createReq.sysInfo = 1; + createReq.sysInfo = pStmt->sysinfo; createReq.enable = 1; strcpy(createReq.pass, pStmt->password); @@ -3697,6 +3714,8 @@ static int32_t translateAlterUser(STranslateContext* pCxt, SAlterUserStmt* pStmt strcpy(alterReq.user, pStmt->useName); alterReq.alterType = pStmt->alterType; alterReq.superUser = 0; + alterReq.enable = pStmt->enable; + alterReq.sysInfo = pStmt->sysinfo; strcpy(alterReq.pass, pStmt->password); if (NULL != pCxt->pParseCxt->db) { strcpy(alterReq.dbname, pCxt->pParseCxt->db); @@ -3851,36 +3870,11 @@ static int32_t translateCreateIndex(STranslateContext* pCxt, SCreateIndexStmt* p } static int32_t translateDropIndex(STranslateContext* pCxt, SDropIndexStmt* pStmt) { - SEncoder encoder = {0}; - int32_t contLen = 0; - SVDropTSmaReq dropSmaReq = {0}; - strcpy(dropSmaReq.indexName, pStmt->indexName); - - pCxt->pCmdMsg = taosMemoryMalloc(sizeof(SCmdMsgInfo)); - if (NULL == pCxt->pCmdMsg) { - return TSDB_CODE_OUT_OF_MEMORY; - } - - int32_t ret = 0; - tEncodeSize(tEncodeSVDropTSmaReq, &dropSmaReq, contLen, ret); - if (ret < 0) { - return TSDB_CODE_OUT_OF_MEMORY; - } - - pCxt->pCmdMsg->epSet = pCxt->pParseCxt->mgmtEpSet; - pCxt->pCmdMsg->msgType = TDMT_VND_DROP_SMA; - pCxt->pCmdMsg->msgLen = contLen; - pCxt->pCmdMsg->pMsg = taosMemoryMalloc(pCxt->pCmdMsg->msgLen); - if (NULL == pCxt->pCmdMsg->pMsg) { - return TSDB_CODE_OUT_OF_MEMORY; - } - void* pBuf = pCxt->pCmdMsg->pMsg; - if (tEncodeSVDropTSmaReq(&encoder, &dropSmaReq) < 0) { - tEncoderClear(&encoder); - return TSDB_CODE_OUT_OF_MEMORY; - } - tEncoderClear(&encoder); - return TSDB_CODE_SUCCESS; + SMDropSmaReq dropSmaReq = {0}; + SName name; + tNameExtractFullName(toName(pCxt->pParseCxt->acctId, pCxt->pParseCxt->db, pStmt->indexName, &name), dropSmaReq.name); + dropSmaReq.igNotExists = pStmt->ignoreNotExists; + return buildCmdMsg(pCxt, TDMT_MND_DROP_SMA, (FSerializeFunc)tSerializeSMDropSmaReq, &dropSmaReq); } static int16_t getCreateComponentNodeMsgType(ENodeType type) { @@ -3932,6 +3926,7 @@ static int32_t buildCreateTopicReq(STranslateContext* pCxt, SCreateTopicStmt* pS tNameSetDbName(&name, pCxt->pParseCxt->acctId, pStmt->topicName, strlen(pStmt->topicName)); tNameGetFullDbName(&name, pReq->name); pReq->igExists = pStmt->ignoreExists; + pReq->withMeta = pStmt->withMeta; pReq->sql = strdup(pCxt->pParseCxt->pSql); if (NULL == pReq->sql) { @@ -4287,6 +4282,11 @@ static int32_t translateSplitVgroup(STranslateContext* pCxt, SSplitVgroupStmt* p return buildCmdMsg(pCxt, TDMT_MND_SPLIT_VGROUP, (FSerializeFunc)tSerializeSSplitVgroupReq, &req); } +static int32_t translateShowVariables(STranslateContext* pCxt, SShowStmt* pStmt) { + SShowVariablesReq req = {0}; + return buildCmdMsg(pCxt, TDMT_MND_SHOW_VARIABLES, (FSerializeFunc)tSerializeSShowVariablesReq, &req); +} + static int32_t translateShowCreateDatabase(STranslateContext* pCxt, SShowCreateDatabaseStmt* pStmt) { pStmt->pCfg = taosMemoryCalloc(1, sizeof(SDbCfgInfo)); if (NULL == pStmt->pCfg) { @@ -4428,6 +4428,9 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_SPLIT_VGROUP_STMT: code = translateSplitVgroup(pCxt, (SSplitVgroupStmt*)pNode); break; + case QUERY_NODE_SHOW_VARIABLES_STMT: + code = translateShowVariables(pCxt, (SShowStmt*)pNode); + break; case QUERY_NODE_SHOW_CREATE_DATABASE_STMT: code = translateShowCreateDatabase(pCxt, (SShowCreateDatabaseStmt*)pNode); break; diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index c7651137b1d7f8d5dc219790797394978fada021..eb9b964cc8d48af8e41b194d7218c2cc8a9e133b 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -104,25 +104,26 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 364 +#define YYNOCODE 367 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - SToken yy57; - EOrder yy162; - EJoinType yy204; - SAlterOption yy221; - int32_t yy228; - EFillMode yy270; - EOperatorType yy324; - int64_t yy389; - SNode* yy392; - SDataType yy448; - bool yy481; - ENullOrder yy529; - SNodeList* yy600; + bool yy197; + EJoinType yy208; + SToken yy241; + SAlterOption yy301; + EOrder yy362; + SNodeList* yy368; + EFillMode yy388; + SDataType yy392; + EOperatorType yy412; + ENullOrder yy417; + SNode* yy442; + int32_t yy578; + int8_t yy629; + int64_t yy683; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -138,17 +139,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 641 -#define YYNRULE 466 -#define YYNTOKEN 242 -#define YY_MAX_SHIFT 640 -#define YY_MIN_SHIFTREDUCE 933 -#define YY_MAX_SHIFTREDUCE 1398 -#define YY_ERROR_ACTION 1399 -#define YY_ACCEPT_ACTION 1400 -#define YY_NO_ACTION 1401 -#define YY_MIN_REDUCE 1402 -#define YY_MAX_REDUCE 1867 +#define YYNSTATE 645 +#define YYNRULE 472 +#define YYNTOKEN 244 +#define YY_MAX_SHIFT 644 +#define YY_MIN_SHIFTREDUCE 938 +#define YY_MAX_SHIFTREDUCE 1409 +#define YY_ERROR_ACTION 1410 +#define YY_ACCEPT_ACTION 1411 +#define YY_NO_ACTION 1412 +#define YY_MIN_REDUCE 1413 +#define YY_MAX_REDUCE 1884 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -215,619 +216,631 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2192) +#define YY_ACTTAB_COUNT (2260) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 1697, 1845, 1522, 309, 412, 1697, 413, 1434, 326, 1400, - /* 10 */ 137, 1694, 37, 35, 1490, 1844, 1694, 1710, 417, 1842, - /* 20 */ 318, 556, 1208, 556, 1230, 38, 36, 34, 33, 32, - /* 30 */ 325, 324, 109, 420, 109, 413, 1434, 1690, 1696, 451, - /* 40 */ 1222, 456, 1690, 1696, 1726, 30, 240, 1206, 559, 1533, - /* 50 */ 1793, 1533, 540, 559, 22, 556, 555, 1680, 14, 539, - /* 60 */ 37, 35, 1335, 322, 1214, 1215, 157, 335, 318, 1710, - /* 70 */ 1208, 134, 520, 365, 1790, 38, 36, 34, 33, 32, - /* 80 */ 1535, 1, 1214, 1533, 1739, 67, 555, 85, 1711, 542, - /* 90 */ 1713, 1714, 538, 58, 559, 1206, 1726, 1779, 113, 76, - /* 100 */ 371, 292, 1775, 637, 519, 556, 14, 1528, 1845, 1680, - /* 110 */ 1425, 539, 1214, 1845, 1845, 543, 369, 1277, 1278, 963, - /* 120 */ 1526, 560, 152, 470, 555, 1631, 1842, 154, 152, 2, - /* 130 */ 430, 1842, 1842, 1533, 206, 82, 1739, 290, 478, 86, - /* 140 */ 1711, 542, 1713, 1714, 538, 1369, 559, 40, 118, 1779, - /* 150 */ 1680, 637, 198, 311, 1775, 148, 1525, 967, 968, 1209, - /* 160 */ 58, 1207, 70, 328, 473, 1277, 1278, 232, 56, 467, - /* 170 */ 364, 134, 363, 1233, 197, 495, 1806, 1223, 330, 1218, - /* 180 */ 1535, 1578, 1580, 1212, 1213, 41, 1259, 1260, 1262, 1263, - /* 190 */ 1264, 1265, 1266, 535, 557, 1274, 1275, 1276, 1279, 53, - /* 200 */ 1232, 1226, 52, 1579, 1580, 26, 59, 1209, 1845, 1207, - /* 210 */ 510, 155, 557, 1274, 1275, 38, 36, 34, 33, 32, - /* 220 */ 37, 35, 153, 155, 1424, 1710, 1842, 402, 318, 67, - /* 230 */ 1208, 1212, 1213, 302, 1259, 1260, 1262, 1263, 1264, 1265, - /* 240 */ 1266, 535, 557, 1274, 1275, 1276, 1279, 516, 1726, 465, - /* 250 */ 464, 1529, 1726, 489, 463, 1206, 509, 114, 460, 1668, - /* 260 */ 540, 459, 458, 457, 1680, 1680, 14, 539, 37, 35, - /* 270 */ 1112, 1113, 1214, 166, 165, 117, 318, 155, 1208, 1299, - /* 280 */ 520, 1511, 303, 58, 301, 300, 356, 453, 58, 2, - /* 290 */ 155, 455, 1739, 508, 1845, 85, 1711, 542, 1713, 1714, - /* 300 */ 538, 1304, 559, 1206, 344, 1779, 358, 354, 152, 292, - /* 310 */ 1775, 637, 1842, 454, 115, 38, 36, 34, 33, 32, - /* 320 */ 1214, 1845, 136, 1524, 1414, 1277, 1278, 1509, 518, 149, - /* 330 */ 1786, 1787, 1233, 1791, 1694, 152, 27, 8, 430, 1842, - /* 340 */ 1070, 582, 581, 580, 1074, 579, 1076, 1077, 578, 1079, - /* 350 */ 575, 1403, 1085, 572, 1087, 1088, 569, 566, 81, 637, - /* 360 */ 1690, 1696, 38, 36, 34, 33, 32, 1209, 78, 1207, - /* 370 */ 1359, 559, 99, 1277, 1278, 98, 97, 96, 95, 94, - /* 380 */ 93, 92, 91, 90, 593, 1349, 38, 36, 34, 33, - /* 390 */ 32, 1212, 1213, 522, 1259, 1260, 1262, 1263, 1264, 1265, - /* 400 */ 1266, 535, 557, 1274, 1275, 1276, 1279, 502, 1357, 1358, - /* 410 */ 1360, 1361, 980, 155, 979, 1209, 99, 1207, 155, 98, - /* 420 */ 97, 96, 95, 94, 93, 92, 91, 90, 37, 35, - /* 430 */ 1280, 11, 10, 1710, 462, 461, 318, 162, 1208, 1212, - /* 440 */ 1213, 981, 1259, 1260, 1262, 1263, 1264, 1265, 1266, 535, - /* 450 */ 557, 1274, 1275, 1276, 1279, 38, 36, 34, 33, 32, - /* 460 */ 1726, 479, 65, 1206, 1845, 64, 593, 155, 540, 980, - /* 470 */ 147, 979, 1585, 1680, 1231, 539, 37, 35, 1843, 308, - /* 480 */ 1214, 1461, 1842, 1572, 318, 1793, 1208, 1423, 1583, 1214, - /* 490 */ 38, 36, 34, 33, 32, 1422, 449, 9, 981, 1234, - /* 500 */ 1739, 1395, 1845, 87, 1711, 542, 1713, 1714, 538, 1789, - /* 510 */ 559, 1206, 1311, 1779, 199, 134, 152, 1778, 1775, 637, - /* 520 */ 1842, 543, 133, 1585, 1536, 1246, 1342, 1680, 1214, 321, - /* 530 */ 323, 1630, 1232, 1277, 1278, 1680, 293, 609, 607, 1583, - /* 540 */ 1421, 615, 614, 613, 333, 9, 612, 611, 610, 119, - /* 550 */ 605, 604, 603, 602, 601, 600, 599, 598, 127, 594, - /* 560 */ 1246, 1402, 38, 36, 34, 33, 32, 637, 1297, 505, - /* 570 */ 69, 291, 1285, 967, 968, 1209, 1420, 1207, 1232, 1419, - /* 580 */ 1680, 1277, 1278, 1394, 28, 108, 107, 106, 105, 104, - /* 590 */ 103, 102, 101, 100, 38, 36, 34, 33, 32, 1212, - /* 600 */ 1213, 1510, 1259, 1260, 1262, 1263, 1264, 1265, 1266, 535, - /* 610 */ 557, 1274, 1275, 1276, 1279, 556, 1680, 1585, 1585, 1680, - /* 620 */ 1298, 331, 585, 1209, 329, 1207, 370, 231, 1518, 134, - /* 630 */ 34, 33, 32, 1583, 1584, 1418, 37, 35, 1535, 511, - /* 640 */ 506, 200, 1303, 1533, 318, 591, 1208, 1212, 1213, 1417, - /* 650 */ 1259, 1260, 1262, 1263, 1264, 1265, 1266, 535, 557, 1274, - /* 660 */ 1275, 1276, 1279, 556, 125, 124, 588, 587, 586, 411, - /* 670 */ 419, 1206, 415, 415, 372, 1680, 556, 29, 316, 1292, - /* 680 */ 1293, 1294, 1295, 1296, 1300, 1301, 1302, 387, 1214, 1680, - /* 690 */ 185, 1533, 556, 263, 591, 597, 1563, 1505, 1416, 1261, - /* 700 */ 1190, 1191, 140, 388, 1533, 2, 1413, 556, 447, 443, - /* 710 */ 439, 435, 184, 125, 124, 588, 587, 586, 429, 1793, - /* 720 */ 1533, 1698, 1710, 1334, 289, 1232, 1230, 637, 1412, 1700, - /* 730 */ 1411, 455, 1694, 395, 7, 1533, 407, 68, 1680, 556, - /* 740 */ 182, 1277, 1278, 1788, 556, 1261, 1680, 1410, 1409, 1726, - /* 750 */ 1530, 380, 1235, 454, 408, 1657, 382, 540, 1690, 1696, - /* 760 */ 135, 524, 1680, 556, 539, 269, 1702, 1533, 1680, 559, - /* 770 */ 1680, 1621, 1533, 556, 487, 496, 589, 267, 55, 1576, - /* 780 */ 527, 54, 164, 1209, 553, 1207, 373, 1680, 1680, 1739, - /* 790 */ 596, 1533, 287, 1711, 542, 1713, 1714, 538, 167, 559, - /* 800 */ 181, 1533, 173, 1464, 178, 1520, 425, 1212, 1213, 1408, - /* 810 */ 1259, 1260, 1262, 1263, 1264, 1265, 1266, 535, 557, 1274, - /* 820 */ 1275, 1276, 1279, 58, 590, 171, 406, 1576, 1516, 401, - /* 830 */ 400, 399, 398, 397, 394, 393, 392, 391, 390, 386, - /* 840 */ 385, 384, 383, 377, 376, 375, 374, 203, 1032, 1680, - /* 850 */ 38, 36, 34, 33, 32, 556, 556, 1208, 556, 516, - /* 860 */ 1407, 84, 1406, 465, 464, 1034, 554, 253, 463, 332, - /* 870 */ 1405, 114, 460, 1798, 1330, 459, 458, 457, 608, 1451, - /* 880 */ 212, 534, 1206, 1533, 1533, 190, 1533, 117, 188, 486, - /* 890 */ 1710, 1508, 1261, 62, 61, 368, 293, 1217, 161, 1214, - /* 900 */ 1680, 466, 1680, 192, 362, 516, 191, 1330, 194, 196, - /* 910 */ 1680, 193, 195, 1446, 1444, 288, 584, 1726, 352, 359, - /* 920 */ 350, 346, 342, 158, 337, 519, 115, 477, 1297, 1415, - /* 930 */ 1680, 1333, 539, 117, 1216, 468, 471, 123, 637, 1004, - /* 940 */ 475, 150, 1786, 1787, 532, 1791, 235, 11, 10, 48, - /* 950 */ 525, 216, 1491, 155, 448, 503, 1005, 1739, 1710, 480, - /* 960 */ 86, 1711, 542, 1713, 1714, 538, 1440, 559, 1397, 1398, - /* 970 */ 1779, 528, 115, 39, 311, 1775, 148, 223, 491, 39, - /* 980 */ 1298, 1727, 1710, 334, 591, 1726, 39, 151, 1786, 1787, - /* 990 */ 1356, 1791, 218, 540, 1209, 242, 1207, 1807, 1680, 1435, - /* 1000 */ 539, 1573, 1303, 125, 124, 588, 587, 586, 1809, 1726, - /* 1010 */ 121, 1220, 633, 517, 1305, 234, 237, 540, 1212, 1213, - /* 1020 */ 1267, 239, 1680, 1710, 539, 1739, 3, 1163, 272, 1711, - /* 1030 */ 542, 1713, 1714, 538, 122, 559, 244, 29, 316, 1292, - /* 1040 */ 1293, 1294, 1295, 1296, 1300, 1301, 1302, 123, 1219, 1739, - /* 1050 */ 1726, 548, 86, 1711, 542, 1713, 1714, 538, 540, 559, - /* 1060 */ 48, 564, 1779, 1680, 1710, 539, 311, 1775, 1858, 1289, - /* 1070 */ 122, 123, 110, 122, 5, 250, 336, 1813, 1230, 339, - /* 1080 */ 343, 298, 1174, 1032, 299, 259, 389, 163, 1063, 396, - /* 1090 */ 1739, 1726, 1623, 86, 1711, 542, 1713, 1714, 538, 540, - /* 1100 */ 559, 262, 1091, 1779, 1680, 404, 539, 311, 1775, 1858, - /* 1110 */ 403, 1095, 1102, 1100, 126, 405, 409, 1236, 1836, 410, - /* 1120 */ 418, 1239, 421, 170, 172, 1238, 422, 423, 1240, 426, - /* 1130 */ 424, 1739, 175, 177, 86, 1711, 542, 1713, 1714, 538, - /* 1140 */ 1710, 559, 427, 1237, 1779, 428, 180, 450, 311, 1775, - /* 1150 */ 1858, 431, 452, 66, 183, 1523, 187, 1519, 481, 1797, - /* 1160 */ 189, 128, 307, 89, 260, 129, 1521, 1726, 482, 485, - /* 1170 */ 201, 204, 488, 1517, 130, 540, 131, 490, 207, 1235, - /* 1180 */ 1680, 210, 539, 1810, 504, 546, 6, 492, 1662, 1820, - /* 1190 */ 1661, 1819, 513, 1800, 222, 520, 142, 499, 500, 224, - /* 1200 */ 498, 225, 493, 1710, 501, 1330, 310, 1739, 497, 226, - /* 1210 */ 278, 1711, 542, 1713, 1714, 538, 507, 559, 214, 217, - /* 1220 */ 1710, 116, 1234, 42, 1841, 18, 526, 529, 227, 523, - /* 1230 */ 1726, 233, 312, 1861, 544, 545, 1845, 320, 540, 1794, - /* 1240 */ 1629, 549, 246, 1680, 1628, 539, 551, 1726, 261, 550, - /* 1250 */ 154, 77, 1534, 248, 1842, 540, 75, 562, 520, 264, - /* 1260 */ 1680, 228, 539, 1760, 1577, 1506, 256, 49, 636, 266, - /* 1270 */ 1739, 270, 1674, 278, 1711, 542, 1713, 1714, 538, 279, - /* 1280 */ 559, 271, 268, 1710, 141, 236, 1673, 1739, 530, 60, - /* 1290 */ 87, 1711, 542, 1713, 1714, 538, 238, 559, 1672, 1845, - /* 1300 */ 1779, 1710, 338, 1669, 531, 1775, 340, 341, 1201, 1202, - /* 1310 */ 1726, 159, 345, 152, 1667, 347, 348, 1842, 537, 349, - /* 1320 */ 1666, 1665, 351, 1680, 353, 539, 1664, 355, 1726, 1663, - /* 1330 */ 357, 1647, 160, 360, 361, 1177, 540, 1176, 1641, 1640, - /* 1340 */ 366, 1680, 367, 539, 1639, 1638, 1149, 1616, 63, 1615, - /* 1350 */ 1739, 378, 1710, 286, 1711, 542, 1713, 1714, 538, 536, - /* 1360 */ 559, 533, 1751, 1614, 1613, 1612, 1611, 1610, 1739, 379, - /* 1370 */ 640, 138, 1711, 542, 1713, 1714, 538, 381, 559, 1726, - /* 1380 */ 1609, 1608, 1607, 1606, 258, 1605, 1604, 540, 1603, 1602, - /* 1390 */ 1601, 1600, 1680, 516, 539, 1599, 145, 1598, 1597, 1596, - /* 1400 */ 120, 1595, 631, 627, 623, 619, 257, 1594, 1593, 1592, - /* 1410 */ 1591, 1590, 1589, 1710, 1151, 1588, 521, 1859, 1587, 1739, - /* 1420 */ 1586, 117, 87, 1711, 542, 1713, 1714, 538, 1463, 559, - /* 1430 */ 1431, 83, 1779, 168, 251, 146, 970, 1776, 969, 111, - /* 1440 */ 1726, 520, 1430, 169, 414, 1655, 1649, 416, 540, 1637, - /* 1450 */ 112, 174, 1636, 1680, 176, 539, 1626, 1512, 179, 1462, - /* 1460 */ 115, 1460, 434, 998, 433, 1458, 1710, 552, 438, 1456, - /* 1470 */ 432, 1454, 437, 436, 441, 229, 1786, 515, 442, 514, - /* 1480 */ 1739, 440, 1845, 282, 1711, 542, 1713, 1714, 538, 1710, - /* 1490 */ 559, 444, 445, 1726, 1443, 494, 154, 446, 208, 1442, - /* 1500 */ 1842, 540, 1429, 1514, 186, 1106, 1680, 516, 539, 1105, - /* 1510 */ 1513, 1031, 1452, 1030, 1029, 1028, 1726, 1182, 606, 202, - /* 1520 */ 608, 1025, 512, 47, 540, 1024, 304, 1023, 1447, 1680, - /* 1530 */ 305, 539, 469, 1739, 1445, 117, 138, 1711, 542, 1713, - /* 1540 */ 1714, 538, 315, 559, 306, 1710, 1428, 472, 474, 1427, - /* 1550 */ 88, 476, 1654, 1184, 51, 520, 1739, 1648, 483, 287, - /* 1560 */ 1711, 542, 1713, 1714, 538, 1635, 559, 1634, 1633, 1625, - /* 1570 */ 71, 15, 1726, 4, 115, 209, 39, 1371, 23, 213, - /* 1580 */ 537, 205, 1860, 484, 45, 1680, 211, 539, 50, 229, - /* 1590 */ 1786, 515, 139, 514, 220, 215, 1845, 132, 1710, 1355, - /* 1600 */ 219, 24, 221, 1348, 1700, 72, 230, 1710, 143, 1327, - /* 1610 */ 152, 25, 1739, 1326, 1842, 286, 1711, 542, 1713, 1714, - /* 1620 */ 538, 1710, 559, 44, 1752, 1726, 1388, 17, 1383, 1377, - /* 1630 */ 10, 1382, 313, 540, 1726, 1387, 1386, 314, 1680, 19, - /* 1640 */ 539, 1269, 540, 1268, 31, 1290, 144, 1680, 1726, 539, - /* 1650 */ 156, 317, 16, 12, 13, 20, 540, 43, 1254, 21, - /* 1660 */ 319, 1680, 1710, 539, 1624, 1739, 541, 247, 287, 1711, - /* 1670 */ 542, 1713, 1714, 538, 1739, 559, 241, 287, 1711, 542, - /* 1680 */ 1713, 1714, 538, 1710, 559, 1353, 243, 547, 1739, 1726, - /* 1690 */ 245, 273, 1711, 542, 1713, 1714, 538, 540, 559, 73, - /* 1700 */ 74, 78, 1680, 1699, 539, 252, 1742, 1224, 1271, 249, - /* 1710 */ 1726, 1092, 558, 46, 561, 563, 327, 1089, 540, 565, - /* 1720 */ 567, 568, 570, 1680, 1086, 539, 571, 573, 1080, 1739, - /* 1730 */ 574, 576, 274, 1711, 542, 1713, 1714, 538, 1078, 559, - /* 1740 */ 1069, 1710, 1084, 583, 577, 1101, 1083, 79, 1082, 1081, - /* 1750 */ 1739, 80, 1710, 281, 1711, 542, 1713, 1714, 538, 57, - /* 1760 */ 559, 254, 1097, 1710, 996, 592, 1020, 595, 1726, 255, - /* 1770 */ 1038, 1013, 1018, 1017, 1016, 1035, 540, 1015, 1014, 1726, - /* 1780 */ 1012, 1680, 1011, 539, 1033, 1008, 1007, 540, 1006, 1003, - /* 1790 */ 1726, 1002, 1680, 1001, 539, 1459, 617, 616, 540, 618, - /* 1800 */ 1457, 620, 621, 1680, 622, 539, 1455, 624, 1739, 625, - /* 1810 */ 626, 283, 1711, 542, 1713, 1714, 538, 1453, 559, 1739, - /* 1820 */ 629, 628, 275, 1711, 542, 1713, 1714, 538, 1710, 559, - /* 1830 */ 1739, 630, 1441, 284, 1711, 542, 1713, 1714, 538, 632, - /* 1840 */ 559, 1426, 634, 635, 1710, 1210, 265, 638, 639, 1401, - /* 1850 */ 1401, 1401, 1401, 1401, 1401, 1726, 1401, 1401, 1401, 1401, - /* 1860 */ 1401, 1401, 1401, 540, 1401, 1401, 1401, 1401, 1680, 1401, - /* 1870 */ 539, 1726, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 540, - /* 1880 */ 1401, 1401, 1401, 1401, 1680, 1401, 539, 1401, 1401, 1401, - /* 1890 */ 1401, 1401, 1401, 1710, 1401, 1739, 1401, 1401, 276, 1711, - /* 1900 */ 542, 1713, 1714, 538, 1401, 559, 1401, 1710, 1401, 1401, - /* 1910 */ 1401, 1739, 1401, 1401, 285, 1711, 542, 1713, 1714, 538, - /* 1920 */ 1726, 559, 1401, 1401, 1401, 1401, 1401, 1401, 540, 1401, - /* 1930 */ 1401, 1401, 1401, 1680, 1726, 539, 1401, 1401, 1401, 1401, - /* 1940 */ 1401, 1401, 540, 1401, 1401, 1401, 1401, 1680, 1710, 539, - /* 1950 */ 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, - /* 1960 */ 1739, 1401, 1401, 277, 1711, 542, 1713, 1714, 538, 1710, - /* 1970 */ 559, 1401, 1401, 1401, 1739, 1726, 1401, 1722, 1711, 542, - /* 1980 */ 1713, 1714, 538, 540, 559, 1401, 1401, 1401, 1680, 1401, - /* 1990 */ 539, 1401, 1401, 1401, 1401, 1401, 1726, 1401, 1401, 1401, - /* 2000 */ 1401, 1401, 1401, 1401, 540, 1401, 1401, 1401, 1401, 1680, - /* 2010 */ 1401, 539, 1401, 1401, 1401, 1739, 1401, 1401, 1721, 1711, - /* 2020 */ 542, 1713, 1714, 538, 1401, 559, 1401, 1710, 1401, 1401, - /* 2030 */ 1401, 1401, 1401, 1401, 1401, 1401, 1739, 1401, 1710, 1720, - /* 2040 */ 1711, 542, 1713, 1714, 538, 1401, 559, 1401, 1401, 1710, - /* 2050 */ 1401, 1401, 1401, 1401, 1726, 1401, 1401, 1401, 1401, 1401, - /* 2060 */ 1401, 1401, 540, 1401, 1401, 1726, 1401, 1680, 1401, 539, - /* 2070 */ 1401, 1401, 1401, 540, 1401, 1401, 1726, 1401, 1680, 1401, - /* 2080 */ 539, 1401, 1401, 1401, 540, 1401, 1401, 1401, 1401, 1680, - /* 2090 */ 1710, 539, 1401, 1401, 1739, 1401, 1401, 296, 1711, 542, - /* 2100 */ 1713, 1714, 538, 1401, 559, 1739, 1401, 1401, 295, 1711, - /* 2110 */ 542, 1713, 1714, 538, 1710, 559, 1739, 1726, 1401, 297, - /* 2120 */ 1711, 542, 1713, 1714, 538, 540, 559, 1401, 1401, 1401, - /* 2130 */ 1680, 1401, 539, 1401, 1401, 1401, 1401, 1401, 1401, 1401, - /* 2140 */ 1401, 1726, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 540, - /* 2150 */ 1401, 1401, 1401, 1401, 1680, 1401, 539, 1739, 1401, 1401, - /* 2160 */ 294, 1711, 542, 1713, 1714, 538, 1401, 559, 1401, 1401, - /* 2170 */ 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, 1401, - /* 2180 */ 1401, 1739, 1401, 1401, 280, 1711, 542, 1713, 1714, 538, - /* 2190 */ 1401, 559, + /* 0 */ 78, 415, 1725, 416, 1448, 30, 239, 423, 61, 416, + /* 10 */ 1448, 1862, 39, 37, 1862, 40, 38, 36, 35, 34, + /* 20 */ 321, 1540, 1217, 333, 69, 1861, 1592, 1594, 155, 1859, + /* 30 */ 1743, 1712, 1859, 1599, 312, 1215, 558, 115, 522, 519, + /* 40 */ 326, 26, 1709, 1695, 971, 542, 1542, 33, 32, 1597, + /* 50 */ 28, 40, 38, 36, 35, 34, 33, 32, 1743, 14, + /* 60 */ 40, 38, 36, 35, 34, 1223, 512, 119, 1705, 1711, + /* 70 */ 1756, 368, 1725, 88, 1726, 545, 1728, 1729, 541, 562, + /* 80 */ 562, 84, 1, 1796, 975, 976, 60, 314, 1792, 150, + /* 90 */ 1683, 33, 32, 1862, 120, 40, 38, 36, 35, 34, + /* 100 */ 1743, 231, 1539, 511, 641, 432, 117, 1860, 543, 498, + /* 110 */ 1823, 1859, 1862, 1695, 558, 542, 149, 60, 1288, 1289, + /* 120 */ 521, 151, 1803, 1804, 559, 1808, 154, 559, 523, 1586, + /* 130 */ 1859, 39, 37, 1346, 1725, 159, 1217, 347, 372, 321, + /* 140 */ 1756, 1217, 296, 87, 1726, 545, 1728, 1729, 541, 1215, + /* 150 */ 562, 513, 1547, 1796, 1215, 1547, 508, 295, 1792, 467, + /* 160 */ 466, 1218, 1743, 1216, 465, 1242, 1255, 116, 462, 1862, + /* 170 */ 522, 461, 460, 459, 1308, 1695, 43, 542, 14, 1223, + /* 180 */ 1241, 11, 10, 156, 1223, 1221, 1222, 1859, 1270, 1271, + /* 190 */ 1273, 1274, 1275, 1276, 1277, 538, 560, 1285, 1286, 1287, + /* 200 */ 1290, 2, 1756, 1240, 305, 88, 1726, 545, 1728, 1729, + /* 210 */ 541, 186, 562, 157, 546, 1796, 374, 157, 641, 314, + /* 220 */ 1792, 150, 324, 641, 1643, 142, 1309, 1370, 514, 509, + /* 230 */ 449, 445, 441, 437, 185, 1353, 1223, 1288, 1289, 33, + /* 240 */ 32, 1241, 1824, 40, 38, 36, 35, 34, 157, 1314, + /* 250 */ 39, 37, 306, 292, 304, 303, 596, 455, 321, 70, + /* 260 */ 1217, 457, 183, 1322, 505, 1368, 1369, 1371, 1372, 1593, + /* 270 */ 1594, 39, 37, 1215, 22, 1218, 599, 1216, 519, 321, + /* 280 */ 1218, 1217, 1216, 456, 29, 319, 1303, 1304, 1305, 1306, + /* 290 */ 1307, 1311, 1312, 1313, 1215, 1242, 1296, 14, 414, 1221, + /* 300 */ 1222, 418, 1241, 1223, 1221, 1222, 119, 1270, 1271, 1273, + /* 310 */ 1274, 1275, 1276, 1277, 538, 560, 1285, 1286, 1287, 1290, + /* 320 */ 2, 519, 182, 175, 1223, 180, 523, 101, 1538, 428, + /* 330 */ 100, 99, 98, 97, 96, 95, 94, 93, 92, 1709, + /* 340 */ 139, 8, 641, 1725, 1504, 117, 33, 32, 173, 119, + /* 350 */ 40, 38, 36, 35, 34, 481, 1288, 1289, 1713, 588, + /* 360 */ 228, 1803, 518, 641, 517, 1705, 1711, 1862, 479, 1709, + /* 370 */ 477, 1743, 988, 138, 987, 1425, 562, 1288, 1289, 543, + /* 380 */ 600, 156, 1519, 420, 1695, 1859, 542, 451, 117, 1239, + /* 390 */ 39, 37, 1291, 1120, 1121, 1705, 1711, 499, 321, 1218, + /* 400 */ 1217, 1216, 989, 152, 1803, 1804, 562, 1808, 1525, 422, + /* 410 */ 1272, 1756, 418, 1215, 284, 1726, 545, 1728, 1729, 541, + /* 420 */ 1218, 562, 1216, 1221, 1222, 1536, 1270, 1271, 1273, 1274, + /* 430 */ 1275, 1276, 1277, 538, 560, 1285, 1286, 1287, 1290, 519, + /* 440 */ 1436, 558, 594, 1223, 1221, 1222, 69, 1270, 1271, 1273, + /* 450 */ 1274, 1275, 1276, 1277, 538, 560, 1285, 1286, 1287, 1290, + /* 460 */ 9, 127, 126, 591, 590, 589, 432, 119, 1543, 33, + /* 470 */ 32, 1272, 157, 40, 38, 36, 35, 34, 988, 200, + /* 480 */ 987, 1695, 641, 1435, 33, 32, 135, 523, 40, 38, + /* 490 */ 36, 35, 34, 359, 33, 32, 1288, 1289, 40, 38, + /* 500 */ 36, 35, 34, 42, 60, 1810, 117, 559, 989, 39, + /* 510 */ 37, 464, 463, 361, 357, 559, 559, 321, 373, 1217, + /* 520 */ 296, 228, 1803, 518, 1695, 517, 111, 111, 1862, 1807, + /* 530 */ 39, 37, 1215, 453, 458, 1547, 71, 294, 321, 1218, + /* 540 */ 1217, 1216, 154, 1547, 1547, 1243, 1859, 36, 35, 34, + /* 550 */ 33, 32, 1308, 1215, 40, 38, 36, 35, 34, 1380, + /* 560 */ 612, 610, 1223, 1221, 1222, 1414, 1270, 1271, 1273, 1274, + /* 570 */ 1275, 1276, 1277, 538, 560, 1285, 1286, 1287, 1290, 9, + /* 580 */ 1523, 490, 367, 1223, 366, 405, 101, 1532, 1635, 100, + /* 590 */ 99, 98, 97, 96, 95, 94, 93, 92, 1599, 166, + /* 600 */ 2, 641, 33, 32, 1309, 332, 40, 38, 36, 35, + /* 610 */ 34, 325, 559, 331, 1597, 1288, 1289, 1413, 1434, 136, + /* 620 */ 1426, 136, 641, 375, 1454, 1360, 164, 1314, 1549, 208, + /* 630 */ 1549, 168, 167, 1433, 157, 157, 1288, 1289, 596, 201, + /* 640 */ 1547, 110, 109, 108, 107, 106, 105, 104, 103, 102, + /* 650 */ 559, 67, 1810, 7, 66, 60, 519, 73, 1218, 1695, + /* 660 */ 1216, 390, 29, 319, 1303, 1304, 1305, 1306, 1307, 1311, + /* 670 */ 1312, 1313, 636, 230, 1695, 1310, 1806, 1255, 1547, 1218, + /* 680 */ 1432, 1216, 1221, 1222, 119, 1270, 1271, 1273, 1274, 1275, + /* 690 */ 1276, 1277, 538, 560, 1285, 1286, 1287, 1290, 1315, 1199, + /* 700 */ 1200, 1534, 497, 1221, 1222, 1475, 1270, 1271, 1273, 1274, + /* 710 */ 1275, 1276, 1277, 538, 560, 1285, 1286, 1287, 1290, 334, + /* 720 */ 136, 1695, 291, 117, 1239, 137, 1040, 136, 1810, 1550, + /* 730 */ 269, 398, 592, 27, 410, 1590, 1549, 58, 153, 1803, + /* 740 */ 1804, 457, 1808, 1862, 267, 57, 1599, 1431, 56, 1478, + /* 750 */ 546, 383, 1805, 411, 1411, 385, 1042, 154, 1241, 559, + /* 760 */ 1644, 1859, 1598, 456, 169, 527, 618, 617, 616, 336, + /* 770 */ 391, 615, 614, 613, 121, 608, 607, 606, 605, 604, + /* 780 */ 603, 602, 601, 129, 597, 376, 157, 1547, 1695, 60, + /* 790 */ 1078, 585, 584, 583, 1082, 582, 1084, 1085, 581, 1087, + /* 800 */ 578, 1524, 1093, 575, 1095, 1096, 572, 569, 1522, 593, + /* 810 */ 467, 466, 1590, 338, 483, 465, 1530, 263, 116, 462, + /* 820 */ 1577, 204, 461, 460, 459, 409, 1341, 86, 404, 403, + /* 830 */ 402, 401, 400, 397, 396, 395, 394, 393, 389, 388, + /* 840 */ 387, 386, 380, 379, 378, 377, 975, 976, 559, 1244, + /* 850 */ 537, 1430, 1429, 559, 1862, 1862, 1428, 328, 327, 431, + /* 860 */ 64, 63, 371, 1427, 1544, 163, 559, 1231, 154, 154, + /* 870 */ 1725, 365, 1859, 1859, 1345, 559, 1547, 1672, 1424, 1465, + /* 880 */ 1224, 1547, 290, 1815, 1341, 355, 556, 353, 349, 345, + /* 890 */ 160, 340, 1695, 1695, 1547, 594, 1423, 1695, 1743, 1422, + /* 900 */ 530, 468, 594, 1547, 1695, 191, 543, 1505, 189, 1421, + /* 910 */ 1223, 1695, 1420, 542, 127, 126, 591, 590, 589, 1695, + /* 920 */ 157, 127, 126, 591, 590, 589, 523, 1272, 1419, 1725, + /* 930 */ 1418, 207, 1417, 1416, 52, 494, 193, 1695, 1756, 192, + /* 940 */ 1695, 87, 1726, 545, 1728, 1729, 541, 472, 562, 563, + /* 950 */ 1695, 1796, 559, 1695, 528, 295, 1792, 1743, 195, 72, + /* 960 */ 535, 194, 482, 491, 525, 543, 1460, 1862, 559, 1695, + /* 970 */ 1695, 1695, 542, 1695, 1695, 1712, 199, 211, 329, 495, + /* 980 */ 1547, 154, 11, 10, 197, 1859, 1709, 196, 470, 1226, + /* 990 */ 475, 611, 1725, 587, 469, 1458, 1547, 1756, 559, 198, + /* 1000 */ 88, 1726, 545, 1728, 1729, 541, 1232, 562, 1227, 557, + /* 1010 */ 1796, 559, 1705, 1711, 314, 1792, 1875, 473, 50, 215, + /* 1020 */ 1743, 41, 252, 562, 55, 1830, 1547, 54, 543, 559, + /* 1030 */ 1235, 362, 41, 1695, 83, 542, 1408, 1409, 1715, 1547, + /* 1040 */ 335, 560, 1285, 1286, 80, 41, 1225, 241, 506, 234, + /* 1050 */ 123, 450, 124, 1725, 222, 125, 1744, 1547, 1367, 217, + /* 1060 */ 1756, 1316, 50, 88, 1726, 545, 1728, 1729, 541, 1012, + /* 1070 */ 562, 484, 1278, 1796, 1717, 1725, 337, 314, 1792, 1875, + /* 1080 */ 567, 1743, 124, 125, 1344, 1170, 1300, 243, 1853, 543, + /* 1090 */ 551, 531, 249, 1449, 1695, 1071, 542, 112, 1587, 1013, + /* 1100 */ 1826, 124, 262, 1743, 520, 233, 236, 238, 3, 5, + /* 1110 */ 339, 543, 1239, 342, 346, 301, 1695, 1229, 542, 1040, + /* 1120 */ 1099, 1756, 1103, 1110, 89, 1726, 545, 1728, 1729, 541, + /* 1130 */ 302, 562, 1183, 392, 1796, 259, 1725, 1108, 1795, 1792, + /* 1140 */ 1637, 128, 165, 1756, 399, 406, 88, 1726, 545, 1728, + /* 1150 */ 1729, 541, 408, 562, 412, 1245, 1796, 407, 413, 421, + /* 1160 */ 314, 1792, 1875, 1248, 1743, 424, 172, 425, 1247, 426, + /* 1170 */ 174, 1814, 543, 1249, 1228, 427, 177, 1695, 429, 542, + /* 1180 */ 179, 1246, 430, 181, 68, 433, 184, 452, 454, 1725, + /* 1190 */ 1537, 188, 523, 1677, 1533, 190, 293, 130, 131, 91, + /* 1200 */ 1676, 1535, 260, 1725, 1756, 485, 1531, 276, 1726, 545, + /* 1210 */ 1728, 1729, 541, 492, 562, 132, 133, 1743, 202, 489, + /* 1220 */ 205, 209, 486, 496, 502, 543, 1244, 507, 6, 516, + /* 1230 */ 1695, 1743, 542, 1862, 311, 549, 213, 1837, 504, 543, + /* 1240 */ 1836, 313, 144, 510, 1695, 523, 542, 156, 216, 1817, + /* 1250 */ 1827, 1859, 221, 503, 224, 1725, 501, 1756, 500, 226, + /* 1260 */ 276, 1726, 545, 1728, 1729, 541, 118, 562, 1341, 1243, + /* 1270 */ 44, 1756, 529, 1725, 89, 1726, 545, 1728, 1729, 541, + /* 1280 */ 532, 562, 225, 1743, 1796, 1811, 1862, 315, 534, 1792, + /* 1290 */ 18, 540, 227, 1642, 223, 1858, 1695, 1641, 542, 232, + /* 1300 */ 154, 1743, 1777, 552, 1859, 547, 548, 553, 323, 543, + /* 1310 */ 245, 79, 554, 1548, 1695, 261, 542, 1878, 247, 77, + /* 1320 */ 526, 533, 235, 1756, 565, 1725, 283, 1726, 545, 1728, + /* 1330 */ 1729, 541, 539, 562, 536, 1768, 1591, 237, 1520, 255, + /* 1340 */ 264, 1756, 1725, 637, 140, 1726, 545, 1728, 1729, 541, + /* 1350 */ 640, 562, 638, 1743, 266, 51, 143, 285, 287, 286, + /* 1360 */ 268, 543, 1689, 1688, 62, 1687, 1695, 341, 542, 1684, + /* 1370 */ 1743, 343, 344, 1210, 1211, 161, 348, 1682, 543, 350, + /* 1380 */ 351, 352, 1681, 1695, 354, 542, 1680, 356, 1679, 524, + /* 1390 */ 1876, 1725, 358, 1756, 1678, 360, 89, 1726, 545, 1728, + /* 1400 */ 1729, 541, 1662, 562, 363, 162, 1796, 364, 1186, 1185, + /* 1410 */ 1756, 1793, 1656, 279, 1726, 545, 1728, 1729, 541, 1743, + /* 1420 */ 562, 1655, 369, 370, 1654, 1653, 1157, 543, 1630, 65, + /* 1430 */ 1629, 1628, 1695, 1627, 542, 1626, 1625, 381, 382, 1624, + /* 1440 */ 384, 1623, 1622, 1621, 1620, 1619, 1618, 1617, 1616, 1615, + /* 1450 */ 1614, 1725, 515, 1613, 1612, 1611, 1610, 122, 1609, 1756, + /* 1460 */ 1725, 170, 140, 1726, 545, 1728, 1729, 541, 113, 562, + /* 1470 */ 1608, 1607, 1606, 1605, 1604, 1603, 33, 32, 1602, 1743, + /* 1480 */ 40, 38, 36, 35, 34, 1159, 1601, 543, 1743, 1600, + /* 1490 */ 1477, 1445, 1695, 978, 542, 977, 540, 417, 1444, 171, + /* 1500 */ 148, 1695, 1670, 542, 114, 318, 419, 1664, 1877, 1725, + /* 1510 */ 178, 1651, 1639, 1526, 1476, 176, 1474, 1472, 434, 1756, + /* 1520 */ 1652, 1725, 284, 1726, 545, 1728, 1729, 541, 1756, 562, + /* 1530 */ 438, 283, 1726, 545, 1728, 1729, 541, 1743, 562, 435, + /* 1540 */ 1769, 439, 1006, 436, 440, 543, 1470, 443, 444, 1743, + /* 1550 */ 1695, 1468, 542, 442, 446, 447, 1457, 543, 1456, 1441, + /* 1560 */ 448, 1528, 1695, 320, 542, 1114, 1113, 1527, 49, 187, + /* 1570 */ 1039, 1038, 644, 1037, 1725, 322, 1036, 1756, 1033, 1466, + /* 1580 */ 284, 1726, 545, 1728, 1729, 541, 258, 562, 609, 1756, + /* 1590 */ 1725, 611, 284, 1726, 545, 1728, 1729, 541, 1032, 562, + /* 1600 */ 147, 1031, 1743, 307, 1461, 634, 630, 626, 622, 256, + /* 1610 */ 543, 308, 1459, 471, 309, 1695, 1440, 542, 1743, 474, + /* 1620 */ 476, 1406, 1439, 478, 1438, 480, 543, 90, 1669, 1193, + /* 1630 */ 1663, 1695, 53, 542, 85, 487, 134, 250, 493, 1725, + /* 1640 */ 1650, 488, 1756, 1648, 206, 270, 1726, 545, 1728, 1729, + /* 1650 */ 541, 310, 562, 1649, 1647, 1646, 23, 4, 1756, 1382, + /* 1660 */ 41, 271, 1726, 545, 1728, 1729, 541, 1743, 562, 214, + /* 1670 */ 555, 220, 212, 141, 47, 543, 1366, 218, 24, 15, + /* 1680 */ 1695, 1359, 542, 1715, 219, 25, 10, 74, 46, 1338, + /* 1690 */ 229, 1337, 145, 1399, 17, 1394, 1393, 316, 45, 1725, + /* 1700 */ 210, 1388, 16, 1405, 1398, 1397, 317, 1756, 1725, 1301, + /* 1710 */ 272, 1726, 545, 1728, 1729, 541, 19, 562, 13, 1280, + /* 1720 */ 146, 1191, 1279, 203, 158, 1263, 544, 1743, 550, 31, + /* 1730 */ 12, 20, 1638, 246, 21, 543, 1743, 1714, 251, 240, + /* 1740 */ 1695, 1364, 542, 248, 543, 242, 1233, 244, 75, 1695, + /* 1750 */ 76, 542, 564, 566, 1759, 330, 570, 1725, 1282, 80, + /* 1760 */ 1100, 561, 48, 568, 573, 1097, 1094, 1756, 571, 1725, + /* 1770 */ 278, 1726, 545, 1728, 1729, 541, 1756, 562, 574, 280, + /* 1780 */ 1726, 545, 1728, 1729, 541, 1743, 562, 1088, 576, 577, + /* 1790 */ 579, 1086, 580, 543, 1092, 1091, 1090, 1743, 1695, 1089, + /* 1800 */ 542, 1077, 1109, 586, 81, 543, 253, 82, 59, 1105, + /* 1810 */ 1695, 1004, 542, 595, 1046, 1028, 598, 254, 1026, 1025, + /* 1820 */ 1725, 1024, 1021, 1023, 1022, 1756, 1020, 1019, 273, 1726, + /* 1830 */ 545, 1728, 1729, 541, 1725, 562, 1043, 1756, 1041, 1016, + /* 1840 */ 281, 1726, 545, 1728, 1729, 541, 1015, 562, 1743, 1014, + /* 1850 */ 1011, 1010, 1009, 1473, 619, 620, 543, 621, 1471, 623, + /* 1860 */ 624, 1695, 1743, 542, 625, 1469, 627, 628, 629, 1467, + /* 1870 */ 543, 631, 633, 632, 1455, 1695, 635, 542, 968, 1437, + /* 1880 */ 643, 257, 639, 1412, 1219, 1725, 265, 642, 1756, 1412, + /* 1890 */ 1412, 274, 1726, 545, 1728, 1729, 541, 1725, 562, 1412, + /* 1900 */ 1412, 1412, 1756, 1412, 1412, 282, 1726, 545, 1728, 1729, + /* 1910 */ 541, 1725, 562, 1743, 1412, 1412, 1412, 1412, 1412, 1412, + /* 1920 */ 1412, 543, 1412, 1412, 1412, 1743, 1695, 1412, 542, 1412, + /* 1930 */ 1412, 1412, 1412, 543, 1412, 1412, 1412, 1412, 1695, 1743, + /* 1940 */ 542, 1412, 1412, 1412, 1412, 1412, 1412, 543, 1412, 1412, + /* 1950 */ 1412, 1412, 1695, 1756, 542, 1412, 275, 1726, 545, 1728, + /* 1960 */ 1729, 541, 1725, 562, 1412, 1756, 1412, 1412, 288, 1726, + /* 1970 */ 545, 1728, 1729, 541, 1412, 562, 1412, 1412, 1412, 1756, + /* 1980 */ 1412, 1412, 289, 1726, 545, 1728, 1729, 541, 1725, 562, + /* 1990 */ 1743, 1412, 1412, 1412, 1412, 1412, 1412, 1412, 543, 1412, + /* 2000 */ 1412, 1412, 1412, 1695, 1412, 542, 1412, 1412, 1412, 1412, + /* 2010 */ 1412, 1412, 1412, 1412, 1412, 1412, 1743, 1412, 1412, 1412, + /* 2020 */ 1412, 1412, 1412, 1412, 543, 1412, 1412, 1412, 1412, 1695, + /* 2030 */ 1756, 542, 1412, 1737, 1726, 545, 1728, 1729, 541, 1412, + /* 2040 */ 562, 1725, 1412, 1412, 1412, 1412, 1412, 1412, 1412, 1412, + /* 2050 */ 1412, 1412, 1412, 1725, 1412, 1412, 1756, 1412, 1412, 1736, + /* 2060 */ 1726, 545, 1728, 1729, 541, 1412, 562, 1412, 1412, 1743, + /* 2070 */ 1412, 1412, 1412, 1412, 1412, 1412, 1412, 543, 1412, 1412, + /* 2080 */ 1412, 1743, 1695, 1412, 542, 1412, 1412, 1412, 1412, 543, + /* 2090 */ 1412, 1412, 1412, 1412, 1695, 1412, 542, 1412, 1412, 1412, + /* 2100 */ 1412, 1412, 1412, 1412, 1725, 1412, 1412, 1412, 1412, 1756, + /* 2110 */ 1412, 1412, 1735, 1726, 545, 1728, 1729, 541, 1725, 562, + /* 2120 */ 1412, 1756, 1412, 1412, 299, 1726, 545, 1728, 1729, 541, + /* 2130 */ 1412, 562, 1743, 1412, 1412, 1412, 1412, 1412, 1412, 1412, + /* 2140 */ 543, 1412, 1412, 1412, 1412, 1695, 1743, 542, 1412, 1412, + /* 2150 */ 1412, 1412, 1412, 1412, 543, 1412, 1412, 1412, 1412, 1695, + /* 2160 */ 1412, 542, 1412, 1412, 1412, 1412, 1412, 1412, 1412, 1725, + /* 2170 */ 1412, 1412, 1756, 1412, 1412, 298, 1726, 545, 1728, 1729, + /* 2180 */ 541, 1725, 562, 1412, 1412, 1412, 1756, 1412, 1412, 300, + /* 2190 */ 1726, 545, 1728, 1729, 541, 1412, 562, 1743, 1412, 1412, + /* 2200 */ 1412, 1412, 1412, 1412, 1412, 543, 1412, 1412, 1412, 1743, + /* 2210 */ 1695, 1412, 542, 1412, 1412, 1412, 1412, 543, 1412, 1412, + /* 2220 */ 1412, 1412, 1695, 1412, 542, 1412, 1412, 1412, 1412, 1412, + /* 2230 */ 1412, 1412, 1412, 1412, 1412, 1412, 1412, 1756, 1412, 1412, + /* 2240 */ 297, 1726, 545, 1728, 1729, 541, 1412, 562, 1412, 1756, + /* 2250 */ 1412, 1412, 277, 1726, 545, 1728, 1729, 541, 1412, 562, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 274, 341, 273, 277, 248, 274, 250, 251, 277, 242, - /* 10 */ 257, 285, 12, 13, 261, 355, 285, 245, 14, 359, - /* 20 */ 20, 252, 22, 252, 20, 12, 13, 14, 15, 16, - /* 30 */ 12, 13, 263, 248, 263, 250, 251, 311, 312, 270, - /* 40 */ 22, 270, 311, 312, 272, 326, 327, 47, 322, 280, - /* 50 */ 313, 280, 280, 322, 41, 252, 20, 285, 58, 287, - /* 60 */ 12, 13, 14, 264, 64, 47, 263, 300, 20, 245, - /* 70 */ 22, 272, 300, 300, 337, 12, 13, 14, 15, 16, - /* 80 */ 281, 81, 64, 280, 312, 256, 20, 315, 316, 317, - /* 90 */ 318, 319, 320, 81, 322, 47, 272, 325, 269, 254, - /* 100 */ 252, 329, 330, 103, 280, 252, 58, 278, 341, 285, - /* 110 */ 245, 287, 64, 341, 341, 287, 263, 117, 118, 4, - /* 120 */ 275, 103, 355, 4, 20, 297, 359, 355, 355, 81, - /* 130 */ 57, 359, 359, 280, 55, 254, 312, 289, 19, 315, - /* 140 */ 316, 317, 318, 319, 320, 82, 322, 81, 267, 325, - /* 150 */ 285, 103, 33, 329, 330, 331, 275, 42, 43, 159, - /* 160 */ 81, 161, 83, 264, 45, 117, 118, 343, 3, 50, - /* 170 */ 158, 272, 160, 20, 55, 351, 352, 159, 283, 161, - /* 180 */ 281, 286, 287, 183, 184, 81, 186, 187, 188, 189, - /* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 198, 80, - /* 200 */ 20, 183, 83, 286, 287, 2, 4, 159, 341, 161, - /* 210 */ 20, 211, 194, 195, 196, 12, 13, 14, 15, 16, - /* 220 */ 12, 13, 355, 211, 245, 245, 359, 75, 20, 256, - /* 230 */ 22, 183, 184, 35, 186, 187, 188, 189, 190, 191, - /* 240 */ 192, 193, 194, 195, 196, 197, 198, 252, 272, 60, - /* 250 */ 61, 278, 272, 300, 65, 47, 280, 68, 69, 0, - /* 260 */ 280, 72, 73, 74, 285, 285, 58, 287, 12, 13, - /* 270 */ 117, 118, 64, 121, 122, 280, 20, 211, 22, 142, - /* 280 */ 300, 0, 84, 81, 86, 87, 154, 89, 81, 81, - /* 290 */ 211, 93, 312, 317, 341, 315, 316, 317, 318, 319, - /* 300 */ 320, 164, 322, 47, 45, 325, 174, 175, 355, 329, - /* 310 */ 330, 103, 359, 115, 319, 12, 13, 14, 15, 16, - /* 320 */ 64, 341, 244, 274, 246, 117, 118, 0, 333, 334, - /* 330 */ 335, 336, 20, 338, 285, 355, 199, 81, 57, 359, - /* 340 */ 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, - /* 350 */ 104, 0, 106, 107, 108, 109, 110, 111, 81, 103, - /* 360 */ 311, 312, 12, 13, 14, 15, 16, 159, 91, 161, - /* 370 */ 183, 322, 21, 117, 118, 24, 25, 26, 27, 28, - /* 380 */ 29, 30, 31, 32, 57, 82, 12, 13, 14, 15, - /* 390 */ 16, 183, 184, 228, 186, 187, 188, 189, 190, 191, - /* 400 */ 192, 193, 194, 195, 196, 197, 198, 220, 221, 222, - /* 410 */ 223, 224, 20, 211, 22, 159, 21, 161, 211, 24, - /* 420 */ 25, 26, 27, 28, 29, 30, 31, 32, 12, 13, - /* 430 */ 14, 1, 2, 245, 258, 259, 20, 55, 22, 183, - /* 440 */ 184, 49, 186, 187, 188, 189, 190, 191, 192, 193, - /* 450 */ 194, 195, 196, 197, 198, 12, 13, 14, 15, 16, - /* 460 */ 272, 300, 80, 47, 341, 83, 57, 211, 280, 20, - /* 470 */ 271, 22, 272, 285, 20, 287, 12, 13, 355, 279, - /* 480 */ 64, 0, 359, 284, 20, 313, 22, 245, 288, 64, - /* 490 */ 12, 13, 14, 15, 16, 245, 47, 81, 49, 20, - /* 500 */ 312, 151, 341, 315, 316, 317, 318, 319, 320, 337, - /* 510 */ 322, 47, 82, 325, 113, 272, 355, 329, 330, 103, - /* 520 */ 359, 287, 148, 272, 281, 82, 14, 285, 64, 295, - /* 530 */ 279, 297, 20, 117, 118, 285, 58, 258, 259, 288, - /* 540 */ 245, 60, 61, 62, 63, 81, 65, 66, 67, 68, - /* 550 */ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, - /* 560 */ 82, 0, 12, 13, 14, 15, 16, 103, 90, 146, - /* 570 */ 169, 170, 14, 42, 43, 159, 245, 161, 20, 245, - /* 580 */ 285, 117, 118, 233, 2, 24, 25, 26, 27, 28, - /* 590 */ 29, 30, 31, 32, 12, 13, 14, 15, 16, 183, - /* 600 */ 184, 0, 186, 187, 188, 189, 190, 191, 192, 193, - /* 610 */ 194, 195, 196, 197, 198, 252, 285, 272, 272, 285, - /* 620 */ 142, 264, 92, 159, 279, 161, 263, 148, 273, 272, - /* 630 */ 14, 15, 16, 288, 288, 245, 12, 13, 281, 216, - /* 640 */ 217, 112, 164, 280, 20, 93, 22, 183, 184, 245, - /* 650 */ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, - /* 660 */ 196, 197, 198, 252, 112, 113, 114, 115, 116, 249, - /* 670 */ 249, 47, 252, 252, 263, 285, 252, 199, 200, 201, - /* 680 */ 202, 203, 204, 205, 206, 207, 208, 263, 64, 285, - /* 690 */ 33, 280, 252, 265, 93, 260, 268, 262, 245, 187, - /* 700 */ 171, 172, 45, 263, 280, 81, 245, 252, 51, 52, - /* 710 */ 53, 54, 55, 112, 113, 114, 115, 116, 263, 313, - /* 720 */ 280, 274, 245, 4, 18, 20, 20, 103, 245, 44, - /* 730 */ 245, 93, 285, 27, 37, 280, 30, 80, 285, 252, - /* 740 */ 83, 117, 118, 337, 252, 187, 285, 245, 245, 272, - /* 750 */ 263, 45, 20, 115, 48, 263, 50, 280, 311, 312, - /* 760 */ 18, 41, 285, 252, 287, 23, 81, 280, 285, 322, - /* 770 */ 285, 280, 280, 252, 263, 298, 282, 35, 36, 285, - /* 780 */ 41, 39, 291, 159, 263, 161, 80, 285, 285, 312, - /* 790 */ 64, 280, 315, 316, 317, 318, 319, 320, 56, 322, - /* 800 */ 143, 280, 145, 0, 147, 273, 149, 183, 184, 245, - /* 810 */ 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, - /* 820 */ 196, 197, 198, 81, 282, 168, 120, 285, 273, 123, - /* 830 */ 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, - /* 840 */ 134, 135, 136, 137, 138, 139, 140, 273, 47, 285, - /* 850 */ 12, 13, 14, 15, 16, 252, 252, 22, 252, 252, - /* 860 */ 245, 119, 245, 60, 61, 64, 263, 263, 65, 263, - /* 870 */ 245, 68, 69, 209, 210, 72, 73, 74, 41, 0, - /* 880 */ 148, 273, 47, 280, 280, 85, 280, 280, 88, 304, - /* 890 */ 245, 0, 187, 151, 152, 153, 58, 47, 156, 64, - /* 900 */ 285, 22, 285, 85, 162, 252, 88, 210, 85, 85, - /* 910 */ 285, 88, 88, 0, 0, 173, 273, 272, 176, 82, - /* 920 */ 178, 179, 180, 181, 182, 280, 319, 21, 90, 246, - /* 930 */ 285, 212, 287, 280, 47, 22, 22, 41, 103, 47, - /* 940 */ 34, 334, 335, 336, 58, 338, 362, 1, 2, 41, - /* 950 */ 230, 41, 261, 211, 253, 353, 64, 312, 245, 308, - /* 960 */ 315, 316, 317, 318, 319, 320, 0, 322, 117, 118, - /* 970 */ 325, 232, 319, 41, 329, 330, 331, 348, 82, 41, - /* 980 */ 142, 272, 245, 253, 93, 272, 41, 334, 335, 336, - /* 990 */ 82, 338, 82, 280, 159, 41, 161, 352, 285, 251, - /* 1000 */ 287, 284, 164, 112, 113, 114, 115, 116, 314, 272, - /* 1010 */ 41, 161, 46, 339, 82, 356, 356, 280, 183, 184, - /* 1020 */ 82, 356, 285, 245, 287, 312, 342, 82, 315, 316, - /* 1030 */ 317, 318, 319, 320, 41, 322, 82, 199, 200, 201, - /* 1040 */ 202, 203, 204, 205, 206, 207, 208, 41, 161, 312, - /* 1050 */ 272, 82, 315, 316, 317, 318, 319, 320, 280, 322, - /* 1060 */ 41, 41, 325, 285, 245, 287, 329, 330, 331, 183, - /* 1070 */ 41, 41, 41, 41, 213, 82, 310, 340, 20, 252, - /* 1080 */ 45, 309, 157, 47, 258, 302, 252, 40, 82, 292, - /* 1090 */ 312, 272, 252, 315, 316, 317, 318, 319, 320, 280, - /* 1100 */ 322, 82, 82, 325, 285, 142, 287, 329, 330, 331, - /* 1110 */ 290, 82, 82, 82, 82, 290, 252, 20, 340, 247, - /* 1120 */ 247, 20, 306, 256, 256, 20, 287, 299, 20, 299, - /* 1130 */ 301, 312, 256, 256, 315, 316, 317, 318, 319, 320, - /* 1140 */ 245, 322, 280, 20, 325, 293, 256, 247, 329, 330, - /* 1150 */ 331, 252, 272, 256, 256, 272, 272, 272, 167, 340, - /* 1160 */ 272, 272, 247, 252, 306, 272, 272, 272, 305, 287, - /* 1170 */ 254, 254, 252, 272, 272, 280, 272, 299, 254, 20, - /* 1180 */ 285, 254, 287, 314, 219, 218, 225, 280, 285, 347, - /* 1190 */ 285, 347, 150, 350, 349, 300, 347, 285, 227, 346, - /* 1200 */ 226, 345, 293, 245, 285, 210, 285, 312, 214, 344, - /* 1210 */ 315, 316, 317, 318, 319, 320, 285, 322, 296, 296, - /* 1220 */ 245, 280, 20, 40, 358, 81, 229, 231, 310, 358, - /* 1230 */ 272, 357, 234, 363, 285, 285, 341, 285, 280, 313, - /* 1240 */ 296, 145, 280, 285, 296, 287, 293, 272, 268, 294, - /* 1250 */ 355, 81, 280, 254, 359, 280, 254, 276, 300, 252, - /* 1260 */ 285, 332, 287, 328, 285, 262, 254, 303, 247, 255, - /* 1270 */ 312, 266, 0, 315, 316, 317, 318, 319, 320, 266, - /* 1280 */ 322, 266, 243, 245, 307, 357, 0, 312, 358, 40, - /* 1290 */ 315, 316, 317, 318, 319, 320, 357, 322, 0, 341, - /* 1300 */ 325, 245, 72, 0, 329, 330, 47, 177, 47, 47, - /* 1310 */ 272, 47, 177, 355, 0, 47, 47, 359, 280, 177, - /* 1320 */ 0, 0, 177, 285, 47, 287, 0, 22, 272, 0, - /* 1330 */ 47, 0, 81, 164, 163, 161, 280, 159, 0, 0, - /* 1340 */ 155, 285, 154, 287, 0, 0, 44, 0, 141, 0, - /* 1350 */ 312, 136, 245, 315, 316, 317, 318, 319, 320, 321, - /* 1360 */ 322, 323, 324, 0, 0, 0, 0, 0, 312, 47, - /* 1370 */ 19, 315, 316, 317, 318, 319, 320, 136, 322, 272, - /* 1380 */ 0, 0, 0, 0, 33, 0, 0, 280, 0, 0, - /* 1390 */ 0, 0, 285, 252, 287, 0, 45, 0, 0, 0, - /* 1400 */ 40, 0, 51, 52, 53, 54, 55, 0, 0, 0, - /* 1410 */ 0, 0, 0, 245, 22, 0, 360, 361, 0, 312, - /* 1420 */ 0, 280, 315, 316, 317, 318, 319, 320, 0, 322, - /* 1430 */ 0, 80, 325, 40, 83, 41, 14, 330, 14, 37, - /* 1440 */ 272, 300, 0, 38, 44, 0, 0, 44, 280, 0, - /* 1450 */ 37, 37, 0, 285, 150, 287, 0, 0, 37, 0, - /* 1460 */ 319, 0, 37, 59, 45, 0, 245, 116, 37, 0, - /* 1470 */ 47, 0, 45, 47, 45, 334, 335, 336, 37, 338, - /* 1480 */ 312, 47, 341, 315, 316, 317, 318, 319, 320, 245, - /* 1490 */ 322, 47, 45, 272, 0, 144, 355, 37, 147, 0, - /* 1500 */ 359, 280, 0, 0, 88, 47, 285, 252, 287, 22, - /* 1510 */ 0, 47, 0, 47, 47, 47, 272, 166, 41, 168, - /* 1520 */ 41, 47, 354, 90, 280, 47, 22, 47, 0, 285, - /* 1530 */ 22, 287, 48, 312, 0, 280, 315, 316, 317, 318, - /* 1540 */ 319, 320, 298, 322, 22, 245, 0, 47, 22, 0, - /* 1550 */ 20, 22, 0, 47, 148, 300, 312, 0, 22, 315, - /* 1560 */ 316, 317, 318, 319, 320, 0, 322, 0, 0, 0, - /* 1570 */ 81, 215, 272, 41, 319, 37, 41, 82, 81, 81, - /* 1580 */ 280, 145, 361, 148, 41, 285, 143, 287, 148, 334, - /* 1590 */ 335, 336, 81, 338, 41, 82, 341, 165, 245, 82, - /* 1600 */ 81, 81, 44, 82, 44, 81, 44, 245, 44, 82, - /* 1610 */ 355, 41, 312, 82, 359, 315, 316, 317, 318, 319, - /* 1620 */ 320, 245, 322, 41, 324, 272, 82, 41, 47, 82, - /* 1630 */ 2, 47, 47, 280, 272, 47, 47, 47, 285, 41, - /* 1640 */ 287, 82, 280, 82, 81, 183, 44, 285, 272, 287, - /* 1650 */ 44, 298, 215, 81, 215, 81, 280, 209, 22, 81, - /* 1660 */ 298, 285, 245, 287, 0, 312, 185, 37, 315, 316, - /* 1670 */ 317, 318, 319, 320, 312, 322, 82, 315, 316, 317, - /* 1680 */ 318, 319, 320, 245, 322, 82, 81, 146, 312, 272, - /* 1690 */ 81, 315, 316, 317, 318, 319, 320, 280, 322, 81, - /* 1700 */ 81, 91, 285, 44, 287, 44, 81, 22, 82, 143, - /* 1710 */ 272, 82, 81, 81, 92, 47, 47, 82, 280, 81, - /* 1720 */ 47, 81, 47, 285, 82, 287, 81, 47, 82, 312, - /* 1730 */ 81, 47, 315, 316, 317, 318, 319, 320, 82, 322, - /* 1740 */ 22, 245, 105, 93, 81, 47, 105, 81, 105, 105, - /* 1750 */ 312, 81, 245, 315, 316, 317, 318, 319, 320, 81, - /* 1760 */ 322, 41, 22, 245, 59, 58, 47, 79, 272, 41, - /* 1770 */ 64, 22, 47, 47, 47, 64, 280, 47, 47, 272, - /* 1780 */ 47, 285, 47, 287, 47, 47, 47, 280, 47, 47, - /* 1790 */ 272, 47, 285, 47, 287, 0, 45, 47, 280, 37, - /* 1800 */ 0, 47, 45, 285, 37, 287, 0, 47, 312, 45, - /* 1810 */ 37, 315, 316, 317, 318, 319, 320, 0, 322, 312, - /* 1820 */ 45, 47, 315, 316, 317, 318, 319, 320, 245, 322, - /* 1830 */ 312, 37, 0, 315, 316, 317, 318, 319, 320, 47, - /* 1840 */ 322, 0, 22, 21, 245, 22, 22, 21, 20, 364, - /* 1850 */ 364, 364, 364, 364, 364, 272, 364, 364, 364, 364, - /* 1860 */ 364, 364, 364, 280, 364, 364, 364, 364, 285, 364, - /* 1870 */ 287, 272, 364, 364, 364, 364, 364, 364, 364, 280, - /* 1880 */ 364, 364, 364, 364, 285, 364, 287, 364, 364, 364, - /* 1890 */ 364, 364, 364, 245, 364, 312, 364, 364, 315, 316, - /* 1900 */ 317, 318, 319, 320, 364, 322, 364, 245, 364, 364, - /* 1910 */ 364, 312, 364, 364, 315, 316, 317, 318, 319, 320, - /* 1920 */ 272, 322, 364, 364, 364, 364, 364, 364, 280, 364, - /* 1930 */ 364, 364, 364, 285, 272, 287, 364, 364, 364, 364, - /* 1940 */ 364, 364, 280, 364, 364, 364, 364, 285, 245, 287, - /* 1950 */ 364, 364, 364, 364, 364, 364, 364, 364, 364, 364, - /* 1960 */ 312, 364, 364, 315, 316, 317, 318, 319, 320, 245, - /* 1970 */ 322, 364, 364, 364, 312, 272, 364, 315, 316, 317, - /* 1980 */ 318, 319, 320, 280, 322, 364, 364, 364, 285, 364, - /* 1990 */ 287, 364, 364, 364, 364, 364, 272, 364, 364, 364, - /* 2000 */ 364, 364, 364, 364, 280, 364, 364, 364, 364, 285, - /* 2010 */ 364, 287, 364, 364, 364, 312, 364, 364, 315, 316, - /* 2020 */ 317, 318, 319, 320, 364, 322, 364, 245, 364, 364, - /* 2030 */ 364, 364, 364, 364, 364, 364, 312, 364, 245, 315, - /* 2040 */ 316, 317, 318, 319, 320, 364, 322, 364, 364, 245, - /* 2050 */ 364, 364, 364, 364, 272, 364, 364, 364, 364, 364, - /* 2060 */ 364, 364, 280, 364, 364, 272, 364, 285, 364, 287, - /* 2070 */ 364, 364, 364, 280, 364, 364, 272, 364, 285, 364, - /* 2080 */ 287, 364, 364, 364, 280, 364, 364, 364, 364, 285, - /* 2090 */ 245, 287, 364, 364, 312, 364, 364, 315, 316, 317, - /* 2100 */ 318, 319, 320, 364, 322, 312, 364, 364, 315, 316, - /* 2110 */ 317, 318, 319, 320, 245, 322, 312, 272, 364, 315, - /* 2120 */ 316, 317, 318, 319, 320, 280, 322, 364, 364, 364, - /* 2130 */ 285, 364, 287, 364, 364, 364, 364, 364, 364, 364, - /* 2140 */ 364, 272, 364, 364, 364, 364, 364, 364, 364, 280, - /* 2150 */ 364, 364, 364, 364, 285, 364, 287, 312, 364, 364, - /* 2160 */ 315, 316, 317, 318, 319, 320, 364, 322, 364, 364, - /* 2170 */ 364, 364, 364, 364, 364, 364, 364, 364, 364, 364, - /* 2180 */ 364, 312, 364, 364, 315, 316, 317, 318, 319, 320, - /* 2190 */ 364, 322, + /* 0 */ 257, 251, 247, 253, 254, 329, 330, 251, 4, 253, + /* 10 */ 254, 344, 12, 13, 344, 12, 13, 14, 15, 16, + /* 20 */ 20, 278, 22, 286, 259, 358, 289, 290, 358, 362, + /* 30 */ 275, 277, 362, 275, 280, 35, 20, 272, 283, 255, + /* 40 */ 282, 2, 288, 288, 4, 290, 281, 8, 9, 291, + /* 50 */ 2, 12, 13, 14, 15, 16, 8, 9, 275, 59, + /* 60 */ 12, 13, 14, 15, 16, 65, 283, 283, 314, 315, + /* 70 */ 315, 303, 247, 318, 319, 320, 321, 322, 323, 325, + /* 80 */ 325, 257, 82, 328, 44, 45, 82, 332, 333, 334, + /* 90 */ 0, 8, 9, 344, 270, 12, 13, 14, 15, 16, + /* 100 */ 275, 346, 278, 320, 104, 58, 322, 358, 283, 354, + /* 110 */ 355, 362, 344, 288, 20, 290, 274, 82, 118, 119, + /* 120 */ 336, 337, 338, 339, 255, 341, 358, 255, 303, 287, + /* 130 */ 362, 12, 13, 14, 247, 266, 22, 47, 266, 20, + /* 140 */ 315, 22, 59, 318, 319, 320, 321, 322, 323, 35, + /* 150 */ 325, 20, 283, 328, 35, 283, 146, 332, 333, 61, + /* 160 */ 62, 161, 275, 163, 66, 20, 83, 69, 70, 344, + /* 170 */ 283, 73, 74, 75, 91, 288, 82, 290, 59, 65, + /* 180 */ 20, 1, 2, 358, 65, 185, 186, 362, 188, 189, + /* 190 */ 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, + /* 200 */ 200, 82, 315, 20, 37, 318, 319, 320, 321, 322, + /* 210 */ 323, 33, 325, 213, 290, 328, 255, 213, 104, 332, + /* 220 */ 333, 334, 298, 104, 300, 47, 143, 185, 218, 219, + /* 230 */ 52, 53, 54, 55, 56, 14, 65, 118, 119, 8, + /* 240 */ 9, 20, 355, 12, 13, 14, 15, 16, 213, 166, + /* 250 */ 12, 13, 85, 292, 87, 88, 58, 90, 20, 81, + /* 260 */ 22, 94, 84, 83, 222, 223, 224, 225, 226, 289, + /* 270 */ 290, 12, 13, 35, 43, 161, 65, 163, 255, 20, + /* 280 */ 161, 22, 163, 116, 201, 202, 203, 204, 205, 206, + /* 290 */ 207, 208, 209, 210, 35, 20, 14, 59, 252, 185, + /* 300 */ 186, 255, 20, 65, 185, 186, 283, 188, 189, 190, + /* 310 */ 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, + /* 320 */ 82, 255, 144, 145, 65, 147, 303, 21, 277, 151, + /* 330 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 288, + /* 340 */ 260, 82, 104, 247, 264, 322, 8, 9, 170, 283, + /* 350 */ 12, 13, 14, 15, 16, 21, 118, 119, 277, 93, + /* 360 */ 337, 338, 339, 104, 341, 314, 315, 344, 34, 288, + /* 370 */ 36, 275, 20, 246, 22, 248, 325, 118, 119, 283, + /* 380 */ 263, 358, 265, 14, 288, 362, 290, 35, 322, 20, + /* 390 */ 12, 13, 14, 118, 119, 314, 315, 301, 20, 161, + /* 400 */ 22, 163, 50, 337, 338, 339, 325, 341, 0, 252, + /* 410 */ 189, 315, 255, 35, 318, 319, 320, 321, 322, 323, + /* 420 */ 161, 325, 163, 185, 186, 276, 188, 189, 190, 191, + /* 430 */ 192, 193, 194, 195, 196, 197, 198, 199, 200, 255, + /* 440 */ 247, 20, 94, 65, 185, 186, 259, 188, 189, 190, + /* 450 */ 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, + /* 460 */ 82, 113, 114, 115, 116, 117, 58, 283, 281, 8, + /* 470 */ 9, 189, 213, 12, 13, 14, 15, 16, 20, 114, + /* 480 */ 22, 288, 104, 247, 8, 9, 148, 303, 12, 13, + /* 490 */ 14, 15, 16, 156, 8, 9, 118, 119, 12, 13, + /* 500 */ 14, 15, 16, 82, 82, 316, 322, 255, 50, 12, + /* 510 */ 13, 261, 262, 176, 177, 255, 255, 20, 266, 22, + /* 520 */ 59, 337, 338, 339, 288, 341, 266, 266, 344, 340, + /* 530 */ 12, 13, 35, 273, 273, 283, 171, 172, 20, 161, + /* 540 */ 22, 163, 358, 283, 283, 20, 362, 14, 15, 16, + /* 550 */ 8, 9, 91, 35, 12, 13, 14, 15, 16, 83, + /* 560 */ 261, 262, 65, 185, 186, 0, 188, 189, 190, 191, + /* 570 */ 192, 193, 194, 195, 196, 197, 198, 199, 200, 82, + /* 580 */ 0, 307, 160, 65, 162, 76, 21, 276, 283, 24, + /* 590 */ 25, 26, 27, 28, 29, 30, 31, 32, 275, 294, + /* 600 */ 82, 104, 8, 9, 143, 282, 12, 13, 14, 15, + /* 610 */ 16, 267, 255, 267, 291, 118, 119, 0, 247, 275, + /* 620 */ 248, 275, 104, 266, 0, 83, 56, 166, 284, 56, + /* 630 */ 284, 122, 123, 247, 213, 213, 118, 119, 58, 113, + /* 640 */ 283, 24, 25, 26, 27, 28, 29, 30, 31, 32, + /* 650 */ 255, 81, 316, 39, 84, 82, 255, 84, 161, 288, + /* 660 */ 163, 266, 201, 202, 203, 204, 205, 206, 207, 208, + /* 670 */ 209, 210, 48, 148, 288, 143, 340, 83, 283, 161, + /* 680 */ 247, 163, 185, 186, 283, 188, 189, 190, 191, 192, + /* 690 */ 193, 194, 195, 196, 197, 198, 199, 200, 166, 173, + /* 700 */ 174, 276, 303, 185, 186, 0, 188, 189, 190, 191, + /* 710 */ 192, 193, 194, 195, 196, 197, 198, 199, 200, 267, + /* 720 */ 275, 288, 18, 322, 20, 18, 35, 275, 316, 284, + /* 730 */ 23, 27, 285, 201, 30, 288, 284, 3, 337, 338, + /* 740 */ 339, 94, 341, 344, 37, 38, 275, 247, 41, 0, + /* 750 */ 290, 47, 340, 49, 244, 51, 65, 358, 20, 255, + /* 760 */ 300, 362, 291, 116, 57, 43, 61, 62, 63, 64, + /* 770 */ 266, 66, 67, 68, 69, 70, 71, 72, 73, 74, + /* 780 */ 75, 76, 77, 78, 79, 81, 213, 283, 288, 82, + /* 790 */ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, + /* 800 */ 105, 0, 107, 108, 109, 110, 111, 112, 0, 285, + /* 810 */ 61, 62, 288, 303, 303, 66, 276, 268, 69, 70, + /* 820 */ 271, 276, 73, 74, 75, 121, 212, 120, 124, 125, + /* 830 */ 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, + /* 840 */ 136, 137, 138, 139, 140, 141, 44, 45, 255, 20, + /* 850 */ 276, 247, 247, 255, 344, 344, 247, 12, 13, 266, + /* 860 */ 153, 154, 155, 247, 266, 158, 255, 22, 358, 358, + /* 870 */ 247, 164, 362, 362, 4, 255, 283, 266, 247, 0, + /* 880 */ 35, 283, 175, 211, 212, 178, 266, 180, 181, 182, + /* 890 */ 183, 184, 288, 288, 283, 94, 247, 288, 275, 247, + /* 900 */ 43, 22, 94, 283, 288, 86, 283, 264, 89, 247, + /* 910 */ 65, 288, 247, 290, 113, 114, 115, 116, 117, 288, + /* 920 */ 213, 113, 114, 115, 116, 117, 303, 189, 247, 247, + /* 930 */ 247, 56, 247, 247, 148, 149, 86, 288, 315, 89, + /* 940 */ 288, 318, 319, 320, 321, 322, 323, 4, 325, 104, + /* 950 */ 288, 328, 255, 288, 232, 332, 333, 275, 86, 84, + /* 960 */ 59, 89, 19, 266, 230, 283, 0, 344, 255, 288, + /* 970 */ 288, 288, 290, 288, 288, 277, 33, 148, 280, 266, + /* 980 */ 283, 358, 1, 2, 86, 362, 288, 89, 22, 35, + /* 990 */ 47, 43, 247, 276, 51, 0, 283, 315, 255, 56, + /* 1000 */ 318, 319, 320, 321, 322, 323, 161, 325, 163, 266, + /* 1010 */ 328, 255, 314, 315, 332, 333, 334, 22, 43, 43, + /* 1020 */ 275, 43, 266, 325, 81, 343, 283, 84, 283, 255, + /* 1030 */ 185, 83, 43, 288, 82, 290, 118, 119, 46, 283, + /* 1040 */ 266, 196, 197, 198, 92, 43, 35, 43, 356, 365, + /* 1050 */ 43, 256, 43, 247, 351, 43, 275, 283, 83, 83, + /* 1060 */ 315, 83, 43, 318, 319, 320, 321, 322, 323, 35, + /* 1070 */ 325, 311, 83, 328, 82, 247, 256, 332, 333, 334, + /* 1080 */ 43, 275, 43, 43, 214, 83, 185, 83, 343, 283, + /* 1090 */ 83, 234, 83, 254, 288, 83, 290, 43, 287, 65, + /* 1100 */ 317, 43, 83, 275, 342, 359, 359, 359, 345, 215, + /* 1110 */ 313, 283, 20, 255, 47, 312, 288, 163, 290, 35, + /* 1120 */ 83, 315, 83, 83, 318, 319, 320, 321, 322, 323, + /* 1130 */ 261, 325, 159, 255, 328, 305, 247, 83, 332, 333, + /* 1140 */ 255, 83, 42, 315, 295, 293, 318, 319, 320, 321, + /* 1150 */ 322, 323, 293, 325, 255, 20, 328, 143, 249, 249, + /* 1160 */ 332, 333, 334, 20, 275, 309, 259, 290, 20, 302, + /* 1170 */ 259, 343, 283, 20, 163, 304, 259, 288, 302, 290, + /* 1180 */ 259, 20, 296, 259, 259, 255, 259, 249, 275, 247, + /* 1190 */ 275, 275, 303, 288, 275, 275, 249, 275, 275, 255, + /* 1200 */ 288, 275, 309, 247, 315, 169, 275, 318, 319, 320, + /* 1210 */ 321, 322, 323, 255, 325, 275, 275, 275, 257, 290, + /* 1220 */ 257, 257, 308, 255, 288, 283, 20, 221, 227, 152, + /* 1230 */ 288, 275, 290, 344, 302, 220, 299, 350, 288, 283, + /* 1240 */ 350, 288, 350, 288, 288, 303, 290, 358, 299, 353, + /* 1250 */ 317, 362, 352, 229, 348, 247, 228, 315, 216, 313, + /* 1260 */ 318, 319, 320, 321, 322, 323, 283, 325, 212, 20, + /* 1270 */ 42, 315, 231, 247, 318, 319, 320, 321, 322, 323, + /* 1280 */ 233, 325, 347, 275, 328, 316, 344, 236, 332, 333, + /* 1290 */ 82, 283, 335, 299, 349, 361, 288, 299, 290, 360, + /* 1300 */ 358, 275, 331, 145, 362, 288, 288, 297, 288, 283, + /* 1310 */ 283, 82, 296, 283, 288, 271, 290, 366, 257, 257, + /* 1320 */ 361, 361, 360, 315, 279, 247, 318, 319, 320, 321, + /* 1330 */ 322, 323, 324, 325, 326, 327, 288, 360, 265, 257, + /* 1340 */ 255, 315, 247, 36, 318, 319, 320, 321, 322, 323, + /* 1350 */ 249, 325, 250, 275, 258, 306, 310, 269, 269, 269, + /* 1360 */ 245, 283, 0, 0, 42, 0, 288, 73, 290, 0, + /* 1370 */ 275, 35, 179, 35, 35, 35, 179, 0, 283, 35, + /* 1380 */ 35, 179, 0, 288, 179, 290, 0, 35, 0, 363, + /* 1390 */ 364, 247, 22, 315, 0, 35, 318, 319, 320, 321, + /* 1400 */ 322, 323, 0, 325, 166, 82, 328, 165, 163, 161, + /* 1410 */ 315, 333, 0, 318, 319, 320, 321, 322, 323, 275, + /* 1420 */ 325, 0, 157, 156, 0, 0, 46, 283, 0, 142, + /* 1430 */ 0, 0, 288, 0, 290, 0, 0, 137, 35, 0, + /* 1440 */ 137, 0, 0, 0, 0, 0, 0, 0, 0, 0, + /* 1450 */ 0, 247, 357, 0, 0, 0, 0, 42, 0, 315, + /* 1460 */ 247, 42, 318, 319, 320, 321, 322, 323, 39, 325, + /* 1470 */ 0, 0, 0, 0, 0, 0, 8, 9, 0, 275, + /* 1480 */ 12, 13, 14, 15, 16, 22, 0, 283, 275, 0, + /* 1490 */ 0, 0, 288, 14, 290, 14, 283, 46, 0, 40, + /* 1500 */ 43, 288, 0, 290, 39, 301, 46, 0, 364, 247, + /* 1510 */ 152, 0, 0, 0, 0, 39, 0, 0, 35, 315, + /* 1520 */ 0, 247, 318, 319, 320, 321, 322, 323, 315, 325, + /* 1530 */ 35, 318, 319, 320, 321, 322, 323, 275, 325, 47, + /* 1540 */ 327, 47, 60, 39, 39, 283, 0, 47, 39, 275, + /* 1550 */ 288, 0, 290, 35, 35, 47, 0, 283, 0, 0, + /* 1560 */ 39, 0, 288, 301, 290, 35, 22, 0, 91, 89, + /* 1570 */ 35, 35, 19, 35, 247, 301, 35, 315, 35, 0, + /* 1580 */ 318, 319, 320, 321, 322, 323, 33, 325, 43, 315, + /* 1590 */ 247, 43, 318, 319, 320, 321, 322, 323, 35, 325, + /* 1600 */ 47, 35, 275, 22, 0, 52, 53, 54, 55, 56, + /* 1610 */ 283, 22, 0, 49, 22, 288, 0, 290, 275, 35, + /* 1620 */ 35, 153, 0, 35, 0, 22, 283, 20, 0, 35, + /* 1630 */ 0, 288, 148, 290, 81, 22, 167, 84, 150, 247, + /* 1640 */ 0, 148, 315, 0, 145, 318, 319, 320, 321, 322, + /* 1650 */ 323, 148, 325, 0, 0, 0, 82, 43, 315, 83, + /* 1660 */ 43, 318, 319, 320, 321, 322, 323, 275, 325, 83, + /* 1670 */ 117, 46, 82, 82, 43, 283, 83, 82, 82, 217, + /* 1680 */ 288, 83, 290, 46, 43, 43, 2, 82, 43, 83, + /* 1690 */ 46, 83, 46, 83, 43, 35, 35, 35, 211, 247, + /* 1700 */ 147, 83, 217, 235, 35, 35, 35, 315, 247, 185, + /* 1710 */ 318, 319, 320, 321, 322, 323, 43, 325, 217, 83, + /* 1720 */ 46, 168, 83, 170, 46, 22, 187, 275, 146, 82, + /* 1730 */ 82, 82, 0, 39, 82, 283, 275, 46, 46, 83, + /* 1740 */ 288, 83, 290, 144, 283, 82, 22, 82, 82, 288, + /* 1750 */ 82, 290, 93, 35, 82, 35, 35, 247, 83, 92, + /* 1760 */ 83, 82, 82, 82, 35, 83, 83, 315, 82, 247, + /* 1770 */ 318, 319, 320, 321, 322, 323, 315, 325, 82, 318, + /* 1780 */ 319, 320, 321, 322, 323, 275, 325, 83, 35, 82, + /* 1790 */ 35, 83, 82, 283, 106, 106, 106, 275, 288, 106, + /* 1800 */ 290, 22, 35, 94, 82, 283, 43, 82, 82, 22, + /* 1810 */ 288, 60, 290, 59, 65, 35, 80, 43, 35, 35, + /* 1820 */ 247, 35, 22, 35, 35, 315, 35, 35, 318, 319, + /* 1830 */ 320, 321, 322, 323, 247, 325, 65, 315, 35, 35, + /* 1840 */ 318, 319, 320, 321, 322, 323, 35, 325, 275, 35, + /* 1850 */ 35, 35, 35, 0, 35, 47, 283, 39, 0, 35, + /* 1860 */ 47, 288, 275, 290, 39, 0, 35, 47, 39, 0, + /* 1870 */ 283, 35, 39, 47, 0, 288, 35, 290, 35, 0, + /* 1880 */ 20, 22, 21, 367, 22, 247, 22, 21, 315, 367, + /* 1890 */ 367, 318, 319, 320, 321, 322, 323, 247, 325, 367, + /* 1900 */ 367, 367, 315, 367, 367, 318, 319, 320, 321, 322, + /* 1910 */ 323, 247, 325, 275, 367, 367, 367, 367, 367, 367, + /* 1920 */ 367, 283, 367, 367, 367, 275, 288, 367, 290, 367, + /* 1930 */ 367, 367, 367, 283, 367, 367, 367, 367, 288, 275, + /* 1940 */ 290, 367, 367, 367, 367, 367, 367, 283, 367, 367, + /* 1950 */ 367, 367, 288, 315, 290, 367, 318, 319, 320, 321, + /* 1960 */ 322, 323, 247, 325, 367, 315, 367, 367, 318, 319, + /* 1970 */ 320, 321, 322, 323, 367, 325, 367, 367, 367, 315, + /* 1980 */ 367, 367, 318, 319, 320, 321, 322, 323, 247, 325, + /* 1990 */ 275, 367, 367, 367, 367, 367, 367, 367, 283, 367, + /* 2000 */ 367, 367, 367, 288, 367, 290, 367, 367, 367, 367, + /* 2010 */ 367, 367, 367, 367, 367, 367, 275, 367, 367, 367, + /* 2020 */ 367, 367, 367, 367, 283, 367, 367, 367, 367, 288, + /* 2030 */ 315, 290, 367, 318, 319, 320, 321, 322, 323, 367, + /* 2040 */ 325, 247, 367, 367, 367, 367, 367, 367, 367, 367, + /* 2050 */ 367, 367, 367, 247, 367, 367, 315, 367, 367, 318, + /* 2060 */ 319, 320, 321, 322, 323, 367, 325, 367, 367, 275, + /* 2070 */ 367, 367, 367, 367, 367, 367, 367, 283, 367, 367, + /* 2080 */ 367, 275, 288, 367, 290, 367, 367, 367, 367, 283, + /* 2090 */ 367, 367, 367, 367, 288, 367, 290, 367, 367, 367, + /* 2100 */ 367, 367, 367, 367, 247, 367, 367, 367, 367, 315, + /* 2110 */ 367, 367, 318, 319, 320, 321, 322, 323, 247, 325, + /* 2120 */ 367, 315, 367, 367, 318, 319, 320, 321, 322, 323, + /* 2130 */ 367, 325, 275, 367, 367, 367, 367, 367, 367, 367, + /* 2140 */ 283, 367, 367, 367, 367, 288, 275, 290, 367, 367, + /* 2150 */ 367, 367, 367, 367, 283, 367, 367, 367, 367, 288, + /* 2160 */ 367, 290, 367, 367, 367, 367, 367, 367, 367, 247, + /* 2170 */ 367, 367, 315, 367, 367, 318, 319, 320, 321, 322, + /* 2180 */ 323, 247, 325, 367, 367, 367, 315, 367, 367, 318, + /* 2190 */ 319, 320, 321, 322, 323, 367, 325, 275, 367, 367, + /* 2200 */ 367, 367, 367, 367, 367, 283, 367, 367, 367, 275, + /* 2210 */ 288, 367, 290, 367, 367, 367, 367, 283, 367, 367, + /* 2220 */ 367, 367, 288, 367, 290, 367, 367, 367, 367, 367, + /* 2230 */ 367, 367, 367, 367, 367, 367, 367, 315, 367, 367, + /* 2240 */ 318, 319, 320, 321, 322, 323, 367, 325, 367, 315, + /* 2250 */ 367, 367, 318, 319, 320, 321, 322, 323, 367, 325, }; -#define YY_SHIFT_COUNT (640) +#define YY_SHIFT_COUNT (644) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1841) +#define YY_SHIFT_MAX (1879) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 742, 0, 0, 48, 208, 208, 208, 208, 256, 256, - /* 10 */ 208, 208, 416, 464, 624, 464, 464, 464, 464, 464, - /* 20 */ 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, - /* 30 */ 464, 464, 464, 464, 464, 464, 464, 464, 464, 464, - /* 40 */ 66, 66, 104, 104, 104, 18, 18, 18, 18, 12, - /* 50 */ 79, 207, 36, 36, 115, 115, 202, 153, 207, 207, - /* 60 */ 36, 36, 36, 36, 36, 36, 36, 36, 73, 36, - /* 70 */ 36, 180, 190, 312, 180, 36, 36, 180, 36, 180, - /* 80 */ 180, 180, 36, 409, 706, 478, 838, 838, 395, 189, - /* 90 */ 835, 835, 835, 835, 835, 835, 835, 835, 835, 835, - /* 100 */ 835, 835, 835, 835, 835, 835, 835, 835, 835, 198, - /* 110 */ 153, 4, 4, 281, 801, 479, 479, 479, 327, 801, - /* 120 */ 454, 312, 180, 180, 425, 425, 530, 726, 246, 246, - /* 130 */ 246, 246, 246, 246, 246, 1351, 351, 803, 350, 187, - /* 140 */ 449, 401, 423, 512, 558, 392, 531, 638, 732, 664, - /* 150 */ 697, 664, 165, 165, 165, 719, 705, 861, 1058, 1035, - /* 160 */ 1036, 925, 1058, 1058, 1047, 963, 963, 1058, 1097, 1097, - /* 170 */ 1101, 73, 312, 73, 1105, 1108, 73, 1105, 73, 454, - /* 180 */ 1123, 73, 73, 1058, 73, 1097, 180, 180, 180, 180, - /* 190 */ 180, 180, 180, 180, 180, 180, 180, 1058, 1097, 425, - /* 200 */ 425, 1101, 409, 991, 312, 409, 1058, 1105, 409, 454, - /* 210 */ 1123, 409, 1159, 425, 965, 967, 425, 965, 967, 425, - /* 220 */ 425, 180, 961, 1042, 965, 971, 974, 994, 861, 995, - /* 230 */ 454, 1202, 1183, 996, 997, 998, 996, 997, 996, 997, - /* 240 */ 1144, 967, 425, 425, 967, 425, 1096, 454, 1123, 409, - /* 250 */ 530, 409, 454, 1170, 425, 726, 1058, 409, 1097, 2192, - /* 260 */ 2192, 2192, 2192, 2192, 2192, 2192, 481, 657, 561, 119, - /* 270 */ 601, 891, 63, 13, 303, 203, 582, 374, 443, 552, - /* 280 */ 550, 550, 550, 550, 550, 550, 550, 550, 132, 382, - /* 290 */ 152, 529, 430, 137, 616, 616, 616, 616, 259, 837, - /* 300 */ 800, 818, 823, 824, 879, 913, 914, 906, 896, 908, - /* 310 */ 910, 946, 851, 720, 739, 932, 886, 938, 685, 945, - /* 320 */ 954, 969, 993, 1006, 850, 887, 1019, 1020, 1029, 1030, - /* 330 */ 1031, 1032, 277, 892, 966, 1272, 1286, 1249, 1298, 1230, - /* 340 */ 1303, 1259, 1130, 1261, 1262, 1264, 1135, 1314, 1268, 1269, - /* 350 */ 1142, 1320, 1145, 1321, 1277, 1326, 1305, 1329, 1283, 1331, - /* 360 */ 1251, 1169, 1171, 1174, 1178, 1338, 1339, 1185, 1188, 1344, - /* 370 */ 1345, 1302, 1347, 1207, 1349, 1363, 1364, 1365, 1366, 1215, - /* 380 */ 1322, 1367, 1241, 1380, 1381, 1382, 1383, 1385, 1386, 1388, - /* 390 */ 1389, 1390, 1391, 1395, 1397, 1398, 1399, 1360, 1401, 1407, - /* 400 */ 1408, 1409, 1410, 1411, 1392, 1412, 1415, 1418, 1420, 1428, - /* 410 */ 1430, 1393, 1402, 1394, 1422, 1400, 1424, 1403, 1442, 1405, - /* 420 */ 1413, 1445, 1446, 1449, 1414, 1304, 1452, 1456, 1421, 1457, - /* 430 */ 1404, 1459, 1461, 1423, 1419, 1425, 1465, 1426, 1427, 1431, - /* 440 */ 1469, 1434, 1429, 1441, 1471, 1444, 1447, 1460, 1494, 1499, - /* 450 */ 1502, 1503, 1433, 1416, 1458, 1487, 1510, 1464, 1466, 1467, - /* 460 */ 1468, 1477, 1479, 1474, 1478, 1480, 1512, 1504, 1528, 1508, - /* 470 */ 1484, 1534, 1522, 1500, 1546, 1526, 1549, 1529, 1530, 1552, - /* 480 */ 1406, 1506, 1557, 1432, 1536, 1435, 1436, 1565, 1567, 1568, - /* 490 */ 1440, 1569, 1489, 1538, 1443, 1532, 1535, 1356, 1497, 1495, - /* 500 */ 1498, 1513, 1543, 1517, 1511, 1519, 1520, 1521, 1553, 1558, - /* 510 */ 1560, 1524, 1570, 1437, 1527, 1531, 1562, 1448, 1582, 1564, - /* 520 */ 1544, 1586, 1439, 1547, 1581, 1584, 1585, 1588, 1589, 1590, - /* 530 */ 1547, 1628, 1462, 1598, 1559, 1563, 1561, 1602, 1572, 1574, - /* 540 */ 1606, 1636, 1481, 1578, 1594, 1603, 1605, 1609, 1541, 1618, - /* 550 */ 1664, 1630, 1566, 1619, 1610, 1659, 1661, 1625, 1626, 1631, - /* 560 */ 1685, 1632, 1622, 1629, 1668, 1669, 1638, 1635, 1673, 1640, - /* 570 */ 1642, 1675, 1645, 1646, 1680, 1649, 1656, 1684, 1663, 1637, - /* 580 */ 1641, 1643, 1644, 1718, 1650, 1666, 1670, 1698, 1678, 1720, - /* 590 */ 1720, 1740, 1705, 1707, 1719, 1706, 1688, 1728, 1725, 1726, - /* 600 */ 1727, 1730, 1731, 1749, 1733, 1735, 1711, 1477, 1737, 1479, - /* 610 */ 1738, 1739, 1741, 1742, 1744, 1746, 1795, 1750, 1751, 1762, - /* 620 */ 1800, 1754, 1757, 1767, 1806, 1760, 1764, 1773, 1817, 1774, - /* 630 */ 1775, 1794, 1832, 1792, 1841, 1820, 1822, 1823, 1824, 1826, - /* 640 */ 1828, + /* 0 */ 707, 0, 0, 119, 238, 238, 238, 238, 259, 259, + /* 10 */ 238, 238, 378, 497, 518, 497, 497, 497, 497, 497, + /* 20 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + /* 30 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + /* 40 */ 497, 497, 421, 421, 94, 94, 94, 845, 845, 845, + /* 50 */ 845, 422, 573, 35, 16, 16, 40, 40, 4, 275, + /* 60 */ 35, 35, 16, 16, 16, 16, 16, 16, 16, 16, + /* 70 */ 47, 16, 16, 16, 131, 145, 160, 16, 16, 160, + /* 80 */ 16, 160, 160, 160, 16, 198, 704, 83, 461, 461, + /* 90 */ 306, 98, 114, 114, 114, 114, 114, 114, 114, 114, + /* 100 */ 114, 114, 114, 114, 114, 114, 114, 114, 114, 114, + /* 110 */ 114, 167, 275, 369, 369, 408, 691, 525, 525, 525, + /* 120 */ 580, 691, 183, 145, 160, 160, 171, 171, 266, 211, + /* 130 */ 695, 695, 695, 695, 695, 695, 695, 1553, 565, 749, + /* 140 */ 1468, 42, 352, 365, 10, 221, 282, 458, 802, 647, + /* 150 */ 829, 672, 614, 672, 734, 734, 734, 870, 738, 894, + /* 160 */ 1092, 1067, 1084, 973, 1092, 1092, 1100, 1014, 1014, 1092, + /* 170 */ 1135, 1135, 1143, 47, 145, 47, 1148, 1153, 47, 1148, + /* 180 */ 47, 1161, 47, 47, 1092, 47, 1135, 160, 160, 160, + /* 190 */ 160, 160, 160, 160, 160, 160, 160, 160, 1092, 1135, + /* 200 */ 171, 171, 1143, 198, 1036, 145, 198, 1092, 1092, 1148, + /* 210 */ 198, 1206, 171, 1006, 1015, 171, 1006, 1015, 171, 171, + /* 220 */ 160, 1001, 1077, 1006, 1024, 1028, 1042, 894, 1056, 183, + /* 230 */ 1249, 1228, 1047, 1041, 1051, 1047, 1041, 1047, 1041, 1208, + /* 240 */ 1015, 171, 171, 1015, 171, 1158, 183, 1161, 198, 266, + /* 250 */ 198, 183, 1229, 171, 211, 1092, 198, 1307, 1135, 2260, + /* 260 */ 2260, 2260, 2260, 2260, 2260, 2260, 705, 178, 617, 943, + /* 270 */ 476, 231, 542, 39, 48, 338, 594, 486, 486, 486, + /* 280 */ 486, 486, 486, 486, 486, 801, 808, 348, 3, 3, + /* 290 */ 337, 570, 509, 334, 526, 180, 532, 533, 533, 533, + /* 300 */ 533, 90, 948, 819, 850, 872, 898, 879, 966, 995, + /* 310 */ 875, 786, 975, 976, 981, 918, 722, 857, 978, 901, + /* 320 */ 989, 992, 1002, 1004, 1007, 1009, 1012, 954, 1011, 1019, + /* 330 */ 1037, 1039, 1040, 1054, 1058, 952, 1034, 624, 1362, 1363, + /* 340 */ 1322, 1365, 1294, 1369, 1336, 1193, 1338, 1339, 1340, 1197, + /* 350 */ 1377, 1344, 1345, 1202, 1382, 1205, 1386, 1352, 1388, 1370, + /* 360 */ 1394, 1360, 1402, 1323, 1238, 1242, 1245, 1248, 1412, 1421, + /* 370 */ 1265, 1267, 1424, 1425, 1380, 1428, 1287, 1430, 1431, 1433, + /* 380 */ 1435, 1436, 1300, 1403, 1439, 1303, 1441, 1442, 1443, 1444, + /* 390 */ 1445, 1446, 1447, 1448, 1449, 1450, 1453, 1454, 1455, 1456, + /* 400 */ 1415, 1458, 1470, 1471, 1472, 1473, 1474, 1463, 1475, 1478, + /* 410 */ 1486, 1489, 1490, 1491, 1419, 1429, 1457, 1479, 1451, 1481, + /* 420 */ 1460, 1498, 1459, 1465, 1502, 1507, 1520, 1476, 1358, 1511, + /* 430 */ 1512, 1513, 1482, 1514, 1516, 1483, 1492, 1504, 1517, 1495, + /* 440 */ 1494, 1505, 1546, 1518, 1500, 1509, 1551, 1519, 1508, 1521, + /* 450 */ 1556, 1558, 1559, 1561, 1477, 1480, 1530, 1544, 1567, 1535, + /* 460 */ 1536, 1538, 1541, 1545, 1548, 1543, 1563, 1566, 1579, 1581, + /* 470 */ 1604, 1589, 1564, 1612, 1592, 1584, 1616, 1585, 1622, 1588, + /* 480 */ 1624, 1603, 1607, 1628, 1484, 1594, 1630, 1469, 1613, 1493, + /* 490 */ 1499, 1640, 1643, 1503, 1488, 1653, 1654, 1655, 1614, 1617, + /* 500 */ 1462, 1574, 1576, 1590, 1586, 1631, 1593, 1591, 1595, 1596, + /* 510 */ 1598, 1641, 1625, 1637, 1605, 1642, 1485, 1606, 1608, 1644, + /* 520 */ 1487, 1645, 1646, 1610, 1651, 1501, 1618, 1660, 1661, 1662, + /* 530 */ 1669, 1670, 1671, 1618, 1684, 1524, 1673, 1636, 1647, 1639, + /* 540 */ 1674, 1648, 1649, 1678, 1703, 1539, 1652, 1656, 1658, 1663, + /* 550 */ 1665, 1582, 1666, 1732, 1694, 1599, 1668, 1667, 1691, 1692, + /* 560 */ 1672, 1675, 1679, 1724, 1680, 1659, 1677, 1718, 1720, 1681, + /* 570 */ 1682, 1721, 1686, 1683, 1729, 1696, 1704, 1753, 1707, 1708, + /* 580 */ 1755, 1710, 1688, 1689, 1690, 1693, 1779, 1709, 1722, 1725, + /* 590 */ 1767, 1726, 1763, 1763, 1787, 1751, 1754, 1780, 1749, 1736, + /* 600 */ 1774, 1783, 1784, 1786, 1788, 1789, 1800, 1791, 1792, 1771, + /* 610 */ 1545, 1803, 1548, 1804, 1811, 1814, 1815, 1816, 1817, 1853, + /* 620 */ 1819, 1808, 1818, 1858, 1824, 1813, 1825, 1865, 1831, 1820, + /* 630 */ 1829, 1869, 1836, 1826, 1833, 1874, 1841, 1843, 1879, 1859, + /* 640 */ 1861, 1862, 1864, 1866, 1860, }; #define YY_REDUCE_COUNT (265) -#define YY_REDUCE_MIN (-340) -#define YY_REDUCE_MAX (1869) +#define YY_REDUCE_MIN (-333) +#define YY_REDUCE_MAX (1934) static const short yy_reduce_ofst[] = { - /* 0 */ -233, -228, -20, -176, 645, 737, 778, 819, 895, 958, - /* 10 */ 188, 975, 1038, 1056, 1107, 477, 1168, 1221, 1244, 1300, - /* 20 */ 1353, 1362, 713, 1376, 1417, 1438, 1496, 1507, 1518, 1583, - /* 30 */ 1599, 1648, 1662, 1703, 1724, 1782, 1793, 1804, 1845, 1869, - /* 40 */ 1141, 1255, -5, 607, 653, -274, -269, 49, 447, -227, - /* 50 */ -47, 161, -231, -229, -244, -215, -340, -105, -133, 123, - /* 60 */ -197, -147, 363, 411, 424, 440, 455, 487, -171, 492, - /* 70 */ 511, 200, -24, 234, -201, 521, 603, 251, 604, -101, - /* 80 */ 345, 357, 606, -119, -152, -281, -281, -281, 78, -247, - /* 90 */ -135, -21, 242, 250, 295, 331, 334, 390, 404, 453, - /* 100 */ 461, 483, 485, 502, 503, 564, 615, 617, 625, 199, - /* 110 */ -83, 420, 421, -27, 176, -263, 172, 406, -155, 279, - /* 120 */ 491, -172, 243, 346, 494, 542, 428, 435, -271, 355, - /* 130 */ 532, 555, 574, 608, 643, 585, 683, 691, 584, 602, - /* 140 */ 701, 651, 629, 709, 709, 730, 748, 717, 694, 674, - /* 150 */ 674, 674, 659, 660, 665, 684, 709, 766, 827, 772, - /* 160 */ 826, 783, 834, 840, 797, 820, 825, 864, 872, 873, - /* 170 */ 816, 867, 839, 868, 828, 829, 876, 830, 877, 862, - /* 180 */ 852, 890, 897, 899, 898, 900, 880, 883, 884, 885, - /* 190 */ 888, 889, 893, 894, 901, 902, 904, 911, 915, 903, - /* 200 */ 905, 858, 916, 863, 882, 917, 920, 878, 924, 907, - /* 210 */ 909, 927, 869, 912, 842, 922, 919, 844, 923, 921, - /* 220 */ 931, 709, 843, 845, 849, 853, 856, 865, 918, 674, - /* 230 */ 941, 926, 929, 866, 874, 870, 871, 928, 930, 939, - /* 240 */ 935, 944, 949, 950, 948, 952, 955, 962, 953, 999, - /* 250 */ 980, 1002, 972, 981, 979, 1003, 1007, 1012, 1021, 964, - /* 260 */ 977, 1005, 1013, 1015, 1014, 1039, + /* 0 */ 510, -175, 623, -245, -113, 682, 745, 828, 889, 942, + /* 10 */ 806, 956, 1008, 1026, 1078, 96, 1095, 1144, 1204, 1213, + /* 20 */ 1262, 1274, 1327, 1343, 1392, 1452, 1461, 1510, 1522, 1573, + /* 30 */ 1587, 1638, 1650, 1664, 1715, 1741, 1794, 1806, 1857, 1871, + /* 40 */ 1922, 1934, 23, 184, -216, 66, 401, -246, 698, 51, + /* 50 */ 81, -232, 399, 511, 260, 261, -250, -244, -333, -263, + /* 60 */ -330, -251, -131, -128, 252, 357, 395, 504, 593, 598, + /* 70 */ -235, 611, 697, 713, -217, -76, 344, 620, 743, -242, + /* 80 */ 756, 346, 323, 452, 774, -176, -39, -324, -324, -324, + /* 90 */ 127, 80, 193, 236, 371, 386, 433, 500, 604, 605, + /* 100 */ 609, 616, 631, 649, 652, 662, 665, 681, 683, 685, + /* 110 */ 686, -158, -20, 46, 157, 187, 250, 189, 336, 412, + /* 120 */ -257, 299, 305, 460, 445, 471, 447, 524, 549, 117, + /* 130 */ 149, 311, 425, 540, 545, 574, 717, 274, 372, 643, + /* 140 */ 684, 692, 795, 760, 703, 781, 781, 820, 839, 811, + /* 150 */ 783, 762, 762, 762, 746, 747, 748, 763, 781, 797, + /* 160 */ 858, 803, 869, 830, 878, 885, 849, 852, 859, 899, + /* 170 */ 909, 910, 856, 907, 877, 911, 867, 871, 917, 876, + /* 180 */ 921, 886, 924, 925, 930, 927, 938, 913, 915, 916, + /* 190 */ 919, 920, 922, 923, 926, 931, 940, 941, 944, 947, + /* 200 */ 905, 912, 893, 961, 914, 929, 963, 958, 968, 932, + /* 210 */ 964, 933, 936, 887, 937, 950, 890, 949, 953, 955, + /* 220 */ 781, 896, 900, 892, 945, 906, 935, 946, 762, 983, + /* 230 */ 969, 957, 934, 939, 951, 959, 962, 960, 977, 971, + /* 240 */ 994, 1017, 1018, 998, 1020, 1010, 1027, 1016, 1061, 1044, + /* 250 */ 1062, 1030, 1045, 1048, 1073, 1085, 1082, 1102, 1101, 1049, + /* 260 */ 1046, 1088, 1089, 1090, 1096, 1115, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 10 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 20 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 30 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 40 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 50 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 60 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1468, 1399, - /* 70 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 80 */ 1399, 1399, 1399, 1466, 1617, 1399, 1781, 1399, 1399, 1399, - /* 90 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 100 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 110 */ 1399, 1399, 1399, 1468, 1399, 1792, 1792, 1792, 1466, 1399, - /* 120 */ 1399, 1399, 1399, 1399, 1399, 1399, 1562, 1399, 1399, 1399, - /* 130 */ 1399, 1399, 1399, 1399, 1399, 1650, 1399, 1399, 1862, 1399, - /* 140 */ 1399, 1656, 1816, 1399, 1399, 1399, 1399, 1515, 1808, 1784, - /* 150 */ 1798, 1785, 1847, 1847, 1847, 1801, 1399, 1812, 1399, 1399, - /* 160 */ 1399, 1642, 1399, 1399, 1622, 1619, 1619, 1399, 1399, 1399, - /* 170 */ 1399, 1468, 1399, 1468, 1399, 1399, 1468, 1399, 1468, 1399, - /* 180 */ 1399, 1468, 1468, 1399, 1468, 1399, 1399, 1399, 1399, 1399, - /* 190 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 200 */ 1399, 1399, 1466, 1652, 1399, 1466, 1399, 1399, 1466, 1399, - /* 210 */ 1399, 1466, 1399, 1399, 1823, 1821, 1399, 1823, 1821, 1399, - /* 220 */ 1399, 1399, 1835, 1831, 1823, 1839, 1837, 1814, 1812, 1798, - /* 230 */ 1399, 1399, 1399, 1853, 1849, 1865, 1853, 1849, 1853, 1849, - /* 240 */ 1399, 1821, 1399, 1399, 1821, 1399, 1627, 1399, 1399, 1466, - /* 250 */ 1399, 1466, 1399, 1531, 1399, 1399, 1399, 1466, 1399, 1644, - /* 260 */ 1658, 1565, 1565, 1565, 1469, 1404, 1399, 1399, 1399, 1399, - /* 270 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1527, - /* 280 */ 1725, 1834, 1833, 1757, 1756, 1755, 1753, 1724, 1399, 1399, - /* 290 */ 1399, 1399, 1399, 1399, 1718, 1719, 1717, 1716, 1399, 1399, - /* 300 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 310 */ 1399, 1782, 1399, 1850, 1854, 1399, 1399, 1399, 1701, 1399, - /* 320 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 330 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 340 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 350 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 360 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 370 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 380 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 390 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 400 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 410 */ 1399, 1399, 1399, 1433, 1399, 1399, 1399, 1399, 1399, 1399, - /* 420 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 430 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 440 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 450 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 460 */ 1399, 1496, 1495, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 470 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 480 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 490 */ 1399, 1399, 1399, 1399, 1399, 1805, 1815, 1399, 1399, 1399, - /* 500 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 510 */ 1701, 1399, 1832, 1399, 1791, 1787, 1399, 1399, 1783, 1399, - /* 520 */ 1399, 1848, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 530 */ 1399, 1777, 1399, 1750, 1399, 1399, 1399, 1399, 1399, 1399, - /* 540 */ 1399, 1399, 1712, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 550 */ 1399, 1399, 1399, 1399, 1399, 1700, 1399, 1741, 1399, 1399, - /* 560 */ 1399, 1399, 1399, 1399, 1399, 1399, 1559, 1399, 1399, 1399, - /* 570 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1544, - /* 580 */ 1542, 1541, 1540, 1399, 1537, 1399, 1399, 1399, 1399, 1568, - /* 590 */ 1567, 1399, 1399, 1399, 1399, 1399, 1399, 1488, 1399, 1399, - /* 600 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1479, 1399, 1478, - /* 610 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 620 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 630 */ 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, 1399, - /* 640 */ 1399, + /* 0 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 10 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 20 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 30 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 40 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 50 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 60 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 70 */ 1482, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 80 */ 1410, 1410, 1410, 1410, 1410, 1480, 1631, 1410, 1798, 1410, + /* 90 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 100 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 110 */ 1410, 1410, 1410, 1410, 1410, 1482, 1410, 1809, 1809, 1809, + /* 120 */ 1480, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1576, 1410, + /* 130 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1665, 1410, 1410, + /* 140 */ 1879, 1410, 1410, 1671, 1833, 1410, 1410, 1410, 1410, 1529, + /* 150 */ 1825, 1801, 1815, 1802, 1864, 1864, 1864, 1818, 1410, 1829, + /* 160 */ 1410, 1410, 1410, 1657, 1410, 1410, 1636, 1633, 1633, 1410, + /* 170 */ 1410, 1410, 1410, 1482, 1410, 1482, 1410, 1410, 1482, 1410, + /* 180 */ 1482, 1410, 1482, 1482, 1410, 1482, 1410, 1410, 1410, 1410, + /* 190 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 200 */ 1410, 1410, 1410, 1480, 1667, 1410, 1480, 1410, 1410, 1410, + /* 210 */ 1480, 1410, 1410, 1840, 1838, 1410, 1840, 1838, 1410, 1410, + /* 220 */ 1410, 1852, 1848, 1840, 1856, 1854, 1831, 1829, 1815, 1410, + /* 230 */ 1410, 1410, 1870, 1866, 1882, 1870, 1866, 1870, 1866, 1410, + /* 240 */ 1838, 1410, 1410, 1838, 1410, 1640, 1410, 1410, 1480, 1410, + /* 250 */ 1480, 1410, 1545, 1410, 1410, 1410, 1480, 1442, 1410, 1659, + /* 260 */ 1673, 1579, 1579, 1579, 1483, 1415, 1410, 1410, 1410, 1410, + /* 270 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1742, 1851, 1850, + /* 280 */ 1774, 1773, 1772, 1770, 1741, 1410, 1410, 1541, 1740, 1739, + /* 290 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1733, 1734, 1732, + /* 300 */ 1731, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 310 */ 1410, 1410, 1410, 1410, 1799, 1410, 1867, 1871, 1410, 1410, + /* 320 */ 1410, 1716, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 330 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 340 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 350 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 360 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 370 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 380 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 390 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 400 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 410 */ 1410, 1410, 1410, 1410, 1410, 1410, 1447, 1410, 1410, 1410, + /* 420 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 430 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 440 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 450 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 460 */ 1410, 1410, 1410, 1510, 1509, 1410, 1410, 1410, 1410, 1410, + /* 470 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 480 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 490 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1822, 1832, + /* 500 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 510 */ 1410, 1410, 1410, 1716, 1410, 1849, 1410, 1808, 1804, 1410, + /* 520 */ 1410, 1800, 1410, 1410, 1865, 1410, 1410, 1410, 1410, 1410, + /* 530 */ 1410, 1410, 1410, 1410, 1794, 1410, 1767, 1410, 1410, 1410, + /* 540 */ 1410, 1410, 1410, 1410, 1410, 1727, 1410, 1410, 1410, 1410, + /* 550 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1715, 1410, + /* 560 */ 1758, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1573, + /* 570 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 580 */ 1410, 1410, 1558, 1556, 1555, 1554, 1410, 1551, 1410, 1410, + /* 590 */ 1410, 1410, 1582, 1581, 1410, 1410, 1410, 1410, 1410, 1410, + /* 600 */ 1502, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 610 */ 1493, 1410, 1492, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 620 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 630 */ 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, 1410, + /* 640 */ 1410, 1410, 1410, 1410, 1410, }; /********** End of lemon-generated parsing tables *****************************/ @@ -881,7 +894,9 @@ static const YYCODETYPE yyFallback[] = { 0, /* CONNS => nothing */ 0, /* STATE => nothing */ 0, /* USER => nothing */ - 0, /* PRIVILEGE => nothing */ + 0, /* ENABLE => nothing */ + 0, /* NK_INTEGER => nothing */ + 0, /* SYSINFO => nothing */ 0, /* DROP => nothing */ 0, /* GRANT => nothing */ 0, /* ON => nothing */ @@ -894,7 +909,6 @@ static const YYCODETYPE yyFallback[] = { 0, /* NK_DOT => nothing */ 0, /* DNODE => nothing */ 0, /* PORT => nothing */ - 0, /* NK_INTEGER => nothing */ 0, /* DNODES => nothing */ 0, /* NK_IPTOKEN => nothing */ 0, /* LOCAL => nothing */ @@ -991,11 +1005,12 @@ static const YYCODETYPE yyFallback[] = { 0, /* DISTRIBUTED => nothing */ 0, /* LIKE => nothing */ 0, /* INDEX => nothing */ - 0, /* FULLTEXT => nothing */ 0, /* FUNCTION => nothing */ 0, /* INTERVAL => nothing */ 0, /* TOPIC => nothing */ 0, /* AS => nothing */ + 0, /* WITH => nothing */ + 0, /* META => nothing */ 0, /* CONSUMER => nothing */ 0, /* GROUP => nothing */ 0, /* DESC => nothing */ @@ -1083,12 +1098,12 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ID => nothing */ - 235, /* NK_BITNOT => ID */ - 235, /* INSERT => ID */ - 235, /* VALUES => ID */ - 235, /* IMPORT => ID */ - 235, /* NK_SEMI => ID */ - 235, /* FILE => ID */ + 237, /* NK_BITNOT => ID */ + 237, /* INSERT => ID */ + 237, /* VALUES => ID */ + 237, /* IMPORT => ID */ + 237, /* NK_SEMI => ID */ + 237, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -1210,336 +1225,339 @@ static const char *const yyTokenName[] = { /* 31 */ "CONNS", /* 32 */ "STATE", /* 33 */ "USER", - /* 34 */ "PRIVILEGE", - /* 35 */ "DROP", - /* 36 */ "GRANT", - /* 37 */ "ON", - /* 38 */ "TO", - /* 39 */ "REVOKE", - /* 40 */ "FROM", - /* 41 */ "NK_COMMA", - /* 42 */ "READ", - /* 43 */ "WRITE", - /* 44 */ "NK_DOT", - /* 45 */ "DNODE", - /* 46 */ "PORT", - /* 47 */ "NK_INTEGER", - /* 48 */ "DNODES", - /* 49 */ "NK_IPTOKEN", - /* 50 */ "LOCAL", - /* 51 */ "QNODE", - /* 52 */ "BNODE", - /* 53 */ "SNODE", - /* 54 */ "MNODE", - /* 55 */ "DATABASE", - /* 56 */ "USE", - /* 57 */ "IF", - /* 58 */ "NOT", - /* 59 */ "EXISTS", - /* 60 */ "BUFFER", - /* 61 */ "CACHELAST", - /* 62 */ "COMP", - /* 63 */ "DURATION", - /* 64 */ "NK_VARIABLE", - /* 65 */ "FSYNC", - /* 66 */ "MAXROWS", - /* 67 */ "MINROWS", - /* 68 */ "KEEP", - /* 69 */ "PAGES", - /* 70 */ "PAGESIZE", - /* 71 */ "PRECISION", - /* 72 */ "REPLICA", - /* 73 */ "STRICT", - /* 74 */ "WAL", - /* 75 */ "VGROUPS", - /* 76 */ "SINGLE_STABLE", - /* 77 */ "RETENTIONS", - /* 78 */ "SCHEMALESS", - /* 79 */ "NK_COLON", - /* 80 */ "TABLE", - /* 81 */ "NK_LP", - /* 82 */ "NK_RP", - /* 83 */ "STABLE", - /* 84 */ "ADD", - /* 85 */ "COLUMN", - /* 86 */ "MODIFY", - /* 87 */ "RENAME", - /* 88 */ "TAG", - /* 89 */ "SET", - /* 90 */ "NK_EQ", - /* 91 */ "USING", - /* 92 */ "TAGS", - /* 93 */ "COMMENT", - /* 94 */ "BOOL", - /* 95 */ "TINYINT", - /* 96 */ "SMALLINT", - /* 97 */ "INT", - /* 98 */ "INTEGER", - /* 99 */ "BIGINT", - /* 100 */ "FLOAT", - /* 101 */ "DOUBLE", - /* 102 */ "BINARY", - /* 103 */ "TIMESTAMP", - /* 104 */ "NCHAR", - /* 105 */ "UNSIGNED", - /* 106 */ "JSON", - /* 107 */ "VARCHAR", - /* 108 */ "MEDIUMBLOB", - /* 109 */ "BLOB", - /* 110 */ "VARBINARY", - /* 111 */ "DECIMAL", - /* 112 */ "MAX_DELAY", - /* 113 */ "WATERMARK", - /* 114 */ "ROLLUP", - /* 115 */ "TTL", - /* 116 */ "SMA", - /* 117 */ "FIRST", - /* 118 */ "LAST", - /* 119 */ "SHOW", - /* 120 */ "DATABASES", - /* 121 */ "TABLES", - /* 122 */ "STABLES", - /* 123 */ "MNODES", - /* 124 */ "MODULES", - /* 125 */ "QNODES", - /* 126 */ "FUNCTIONS", - /* 127 */ "INDEXES", - /* 128 */ "ACCOUNTS", - /* 129 */ "APPS", - /* 130 */ "CONNECTIONS", - /* 131 */ "LICENCE", - /* 132 */ "GRANTS", - /* 133 */ "QUERIES", - /* 134 */ "SCORES", - /* 135 */ "TOPICS", - /* 136 */ "VARIABLES", - /* 137 */ "BNODES", - /* 138 */ "SNODES", - /* 139 */ "CLUSTER", - /* 140 */ "TRANSACTIONS", - /* 141 */ "DISTRIBUTED", - /* 142 */ "LIKE", - /* 143 */ "INDEX", - /* 144 */ "FULLTEXT", + /* 34 */ "ENABLE", + /* 35 */ "NK_INTEGER", + /* 36 */ "SYSINFO", + /* 37 */ "DROP", + /* 38 */ "GRANT", + /* 39 */ "ON", + /* 40 */ "TO", + /* 41 */ "REVOKE", + /* 42 */ "FROM", + /* 43 */ "NK_COMMA", + /* 44 */ "READ", + /* 45 */ "WRITE", + /* 46 */ "NK_DOT", + /* 47 */ "DNODE", + /* 48 */ "PORT", + /* 49 */ "DNODES", + /* 50 */ "NK_IPTOKEN", + /* 51 */ "LOCAL", + /* 52 */ "QNODE", + /* 53 */ "BNODE", + /* 54 */ "SNODE", + /* 55 */ "MNODE", + /* 56 */ "DATABASE", + /* 57 */ "USE", + /* 58 */ "IF", + /* 59 */ "NOT", + /* 60 */ "EXISTS", + /* 61 */ "BUFFER", + /* 62 */ "CACHELAST", + /* 63 */ "COMP", + /* 64 */ "DURATION", + /* 65 */ "NK_VARIABLE", + /* 66 */ "FSYNC", + /* 67 */ "MAXROWS", + /* 68 */ "MINROWS", + /* 69 */ "KEEP", + /* 70 */ "PAGES", + /* 71 */ "PAGESIZE", + /* 72 */ "PRECISION", + /* 73 */ "REPLICA", + /* 74 */ "STRICT", + /* 75 */ "WAL", + /* 76 */ "VGROUPS", + /* 77 */ "SINGLE_STABLE", + /* 78 */ "RETENTIONS", + /* 79 */ "SCHEMALESS", + /* 80 */ "NK_COLON", + /* 81 */ "TABLE", + /* 82 */ "NK_LP", + /* 83 */ "NK_RP", + /* 84 */ "STABLE", + /* 85 */ "ADD", + /* 86 */ "COLUMN", + /* 87 */ "MODIFY", + /* 88 */ "RENAME", + /* 89 */ "TAG", + /* 90 */ "SET", + /* 91 */ "NK_EQ", + /* 92 */ "USING", + /* 93 */ "TAGS", + /* 94 */ "COMMENT", + /* 95 */ "BOOL", + /* 96 */ "TINYINT", + /* 97 */ "SMALLINT", + /* 98 */ "INT", + /* 99 */ "INTEGER", + /* 100 */ "BIGINT", + /* 101 */ "FLOAT", + /* 102 */ "DOUBLE", + /* 103 */ "BINARY", + /* 104 */ "TIMESTAMP", + /* 105 */ "NCHAR", + /* 106 */ "UNSIGNED", + /* 107 */ "JSON", + /* 108 */ "VARCHAR", + /* 109 */ "MEDIUMBLOB", + /* 110 */ "BLOB", + /* 111 */ "VARBINARY", + /* 112 */ "DECIMAL", + /* 113 */ "MAX_DELAY", + /* 114 */ "WATERMARK", + /* 115 */ "ROLLUP", + /* 116 */ "TTL", + /* 117 */ "SMA", + /* 118 */ "FIRST", + /* 119 */ "LAST", + /* 120 */ "SHOW", + /* 121 */ "DATABASES", + /* 122 */ "TABLES", + /* 123 */ "STABLES", + /* 124 */ "MNODES", + /* 125 */ "MODULES", + /* 126 */ "QNODES", + /* 127 */ "FUNCTIONS", + /* 128 */ "INDEXES", + /* 129 */ "ACCOUNTS", + /* 130 */ "APPS", + /* 131 */ "CONNECTIONS", + /* 132 */ "LICENCE", + /* 133 */ "GRANTS", + /* 134 */ "QUERIES", + /* 135 */ "SCORES", + /* 136 */ "TOPICS", + /* 137 */ "VARIABLES", + /* 138 */ "BNODES", + /* 139 */ "SNODES", + /* 140 */ "CLUSTER", + /* 141 */ "TRANSACTIONS", + /* 142 */ "DISTRIBUTED", + /* 143 */ "LIKE", + /* 144 */ "INDEX", /* 145 */ "FUNCTION", /* 146 */ "INTERVAL", /* 147 */ "TOPIC", /* 148 */ "AS", - /* 149 */ "CONSUMER", - /* 150 */ "GROUP", - /* 151 */ "DESC", - /* 152 */ "DESCRIBE", - /* 153 */ "RESET", - /* 154 */ "QUERY", - /* 155 */ "CACHE", - /* 156 */ "EXPLAIN", - /* 157 */ "ANALYZE", - /* 158 */ "VERBOSE", - /* 159 */ "NK_BOOL", - /* 160 */ "RATIO", - /* 161 */ "NK_FLOAT", - /* 162 */ "COMPACT", - /* 163 */ "VNODES", - /* 164 */ "IN", - /* 165 */ "OUTPUTTYPE", - /* 166 */ "AGGREGATE", - /* 167 */ "BUFSIZE", - /* 168 */ "STREAM", - /* 169 */ "INTO", - /* 170 */ "TRIGGER", - /* 171 */ "AT_ONCE", - /* 172 */ "WINDOW_CLOSE", - /* 173 */ "KILL", - /* 174 */ "CONNECTION", - /* 175 */ "TRANSACTION", - /* 176 */ "BALANCE", - /* 177 */ "VGROUP", - /* 178 */ "MERGE", - /* 179 */ "REDISTRIBUTE", - /* 180 */ "SPLIT", - /* 181 */ "SYNCDB", - /* 182 */ "DELETE", - /* 183 */ "NULL", - /* 184 */ "NK_QUESTION", - /* 185 */ "NK_ARROW", - /* 186 */ "ROWTS", - /* 187 */ "TBNAME", - /* 188 */ "QSTARTTS", - /* 189 */ "QENDTS", - /* 190 */ "WSTARTTS", - /* 191 */ "WENDTS", - /* 192 */ "WDURATION", - /* 193 */ "CAST", - /* 194 */ "NOW", - /* 195 */ "TODAY", - /* 196 */ "TIMEZONE", - /* 197 */ "COUNT", - /* 198 */ "LAST_ROW", - /* 199 */ "BETWEEN", - /* 200 */ "IS", - /* 201 */ "NK_LT", - /* 202 */ "NK_GT", - /* 203 */ "NK_LE", - /* 204 */ "NK_GE", - /* 205 */ "NK_NE", - /* 206 */ "MATCH", - /* 207 */ "NMATCH", - /* 208 */ "CONTAINS", - /* 209 */ "JOIN", - /* 210 */ "INNER", - /* 211 */ "SELECT", - /* 212 */ "DISTINCT", - /* 213 */ "WHERE", - /* 214 */ "PARTITION", - /* 215 */ "BY", - /* 216 */ "SESSION", - /* 217 */ "STATE_WINDOW", - /* 218 */ "SLIDING", - /* 219 */ "FILL", - /* 220 */ "VALUE", - /* 221 */ "NONE", - /* 222 */ "PREV", - /* 223 */ "LINEAR", - /* 224 */ "NEXT", - /* 225 */ "HAVING", - /* 226 */ "RANGE", - /* 227 */ "EVERY", - /* 228 */ "ORDER", - /* 229 */ "SLIMIT", - /* 230 */ "SOFFSET", - /* 231 */ "LIMIT", - /* 232 */ "OFFSET", - /* 233 */ "ASC", - /* 234 */ "NULLS", - /* 235 */ "ID", - /* 236 */ "NK_BITNOT", - /* 237 */ "INSERT", - /* 238 */ "VALUES", - /* 239 */ "IMPORT", - /* 240 */ "NK_SEMI", - /* 241 */ "FILE", - /* 242 */ "cmd", - /* 243 */ "account_options", - /* 244 */ "alter_account_options", - /* 245 */ "literal", - /* 246 */ "alter_account_option", - /* 247 */ "user_name", - /* 248 */ "privileges", - /* 249 */ "priv_level", - /* 250 */ "priv_type_list", - /* 251 */ "priv_type", - /* 252 */ "db_name", - /* 253 */ "dnode_endpoint", - /* 254 */ "not_exists_opt", - /* 255 */ "db_options", - /* 256 */ "exists_opt", - /* 257 */ "alter_db_options", - /* 258 */ "integer_list", - /* 259 */ "variable_list", - /* 260 */ "retention_list", - /* 261 */ "alter_db_option", - /* 262 */ "retention", - /* 263 */ "full_table_name", - /* 264 */ "column_def_list", - /* 265 */ "tags_def_opt", - /* 266 */ "table_options", - /* 267 */ "multi_create_clause", - /* 268 */ "tags_def", - /* 269 */ "multi_drop_clause", - /* 270 */ "alter_table_clause", - /* 271 */ "alter_table_options", - /* 272 */ "column_name", - /* 273 */ "type_name", - /* 274 */ "signed_literal", - /* 275 */ "create_subtable_clause", - /* 276 */ "specific_tags_opt", - /* 277 */ "literal_list", - /* 278 */ "drop_table_clause", - /* 279 */ "col_name_list", - /* 280 */ "table_name", - /* 281 */ "column_def", - /* 282 */ "duration_list", - /* 283 */ "rollup_func_list", - /* 284 */ "alter_table_option", - /* 285 */ "duration_literal", - /* 286 */ "rollup_func_name", - /* 287 */ "function_name", - /* 288 */ "col_name", - /* 289 */ "db_name_cond_opt", - /* 290 */ "like_pattern_opt", - /* 291 */ "table_name_cond", - /* 292 */ "from_db_opt", - /* 293 */ "index_name", - /* 294 */ "index_options", - /* 295 */ "func_list", - /* 296 */ "sliding_opt", - /* 297 */ "func", - /* 298 */ "expression_list", - /* 299 */ "topic_name", - /* 300 */ "query_expression", - /* 301 */ "cgroup_name", - /* 302 */ "analyze_opt", - /* 303 */ "explain_options", - /* 304 */ "agg_func_opt", - /* 305 */ "bufsize_opt", - /* 306 */ "stream_name", - /* 307 */ "stream_options", - /* 308 */ "into_opt", - /* 309 */ "dnode_list", - /* 310 */ "where_clause_opt", - /* 311 */ "signed", - /* 312 */ "literal_func", - /* 313 */ "table_alias", - /* 314 */ "column_alias", - /* 315 */ "expression", - /* 316 */ "pseudo_column", - /* 317 */ "column_reference", - /* 318 */ "function_expression", - /* 319 */ "subquery", - /* 320 */ "star_func", - /* 321 */ "star_func_para_list", - /* 322 */ "noarg_func", - /* 323 */ "other_para_list", - /* 324 */ "star_func_para", - /* 325 */ "predicate", - /* 326 */ "compare_op", - /* 327 */ "in_op", - /* 328 */ "in_predicate_value", - /* 329 */ "boolean_value_expression", - /* 330 */ "boolean_primary", - /* 331 */ "common_expression", - /* 332 */ "from_clause", - /* 333 */ "table_reference_list", - /* 334 */ "table_reference", - /* 335 */ "table_primary", - /* 336 */ "joined_table", - /* 337 */ "alias_opt", - /* 338 */ "parenthesized_joined_table", - /* 339 */ "join_type", - /* 340 */ "search_condition", - /* 341 */ "query_specification", - /* 342 */ "set_quantifier_opt", - /* 343 */ "select_list", - /* 344 */ "partition_by_clause_opt", - /* 345 */ "range_opt", - /* 346 */ "every_opt", - /* 347 */ "fill_opt", - /* 348 */ "twindow_clause_opt", - /* 349 */ "group_by_clause_opt", - /* 350 */ "having_clause_opt", - /* 351 */ "select_sublist", - /* 352 */ "select_item", - /* 353 */ "fill_mode", - /* 354 */ "group_by_list", - /* 355 */ "query_expression_body", - /* 356 */ "order_by_clause_opt", - /* 357 */ "slimit_clause_opt", - /* 358 */ "limit_clause_opt", - /* 359 */ "query_primary", - /* 360 */ "sort_specification_list", - /* 361 */ "sort_specification", - /* 362 */ "ordering_specification_opt", - /* 363 */ "null_ordering_opt", + /* 149 */ "WITH", + /* 150 */ "META", + /* 151 */ "CONSUMER", + /* 152 */ "GROUP", + /* 153 */ "DESC", + /* 154 */ "DESCRIBE", + /* 155 */ "RESET", + /* 156 */ "QUERY", + /* 157 */ "CACHE", + /* 158 */ "EXPLAIN", + /* 159 */ "ANALYZE", + /* 160 */ "VERBOSE", + /* 161 */ "NK_BOOL", + /* 162 */ "RATIO", + /* 163 */ "NK_FLOAT", + /* 164 */ "COMPACT", + /* 165 */ "VNODES", + /* 166 */ "IN", + /* 167 */ "OUTPUTTYPE", + /* 168 */ "AGGREGATE", + /* 169 */ "BUFSIZE", + /* 170 */ "STREAM", + /* 171 */ "INTO", + /* 172 */ "TRIGGER", + /* 173 */ "AT_ONCE", + /* 174 */ "WINDOW_CLOSE", + /* 175 */ "KILL", + /* 176 */ "CONNECTION", + /* 177 */ "TRANSACTION", + /* 178 */ "BALANCE", + /* 179 */ "VGROUP", + /* 180 */ "MERGE", + /* 181 */ "REDISTRIBUTE", + /* 182 */ "SPLIT", + /* 183 */ "SYNCDB", + /* 184 */ "DELETE", + /* 185 */ "NULL", + /* 186 */ "NK_QUESTION", + /* 187 */ "NK_ARROW", + /* 188 */ "ROWTS", + /* 189 */ "TBNAME", + /* 190 */ "QSTARTTS", + /* 191 */ "QENDTS", + /* 192 */ "WSTARTTS", + /* 193 */ "WENDTS", + /* 194 */ "WDURATION", + /* 195 */ "CAST", + /* 196 */ "NOW", + /* 197 */ "TODAY", + /* 198 */ "TIMEZONE", + /* 199 */ "COUNT", + /* 200 */ "LAST_ROW", + /* 201 */ "BETWEEN", + /* 202 */ "IS", + /* 203 */ "NK_LT", + /* 204 */ "NK_GT", + /* 205 */ "NK_LE", + /* 206 */ "NK_GE", + /* 207 */ "NK_NE", + /* 208 */ "MATCH", + /* 209 */ "NMATCH", + /* 210 */ "CONTAINS", + /* 211 */ "JOIN", + /* 212 */ "INNER", + /* 213 */ "SELECT", + /* 214 */ "DISTINCT", + /* 215 */ "WHERE", + /* 216 */ "PARTITION", + /* 217 */ "BY", + /* 218 */ "SESSION", + /* 219 */ "STATE_WINDOW", + /* 220 */ "SLIDING", + /* 221 */ "FILL", + /* 222 */ "VALUE", + /* 223 */ "NONE", + /* 224 */ "PREV", + /* 225 */ "LINEAR", + /* 226 */ "NEXT", + /* 227 */ "HAVING", + /* 228 */ "RANGE", + /* 229 */ "EVERY", + /* 230 */ "ORDER", + /* 231 */ "SLIMIT", + /* 232 */ "SOFFSET", + /* 233 */ "LIMIT", + /* 234 */ "OFFSET", + /* 235 */ "ASC", + /* 236 */ "NULLS", + /* 237 */ "ID", + /* 238 */ "NK_BITNOT", + /* 239 */ "INSERT", + /* 240 */ "VALUES", + /* 241 */ "IMPORT", + /* 242 */ "NK_SEMI", + /* 243 */ "FILE", + /* 244 */ "cmd", + /* 245 */ "account_options", + /* 246 */ "alter_account_options", + /* 247 */ "literal", + /* 248 */ "alter_account_option", + /* 249 */ "user_name", + /* 250 */ "sysinfo_opt", + /* 251 */ "privileges", + /* 252 */ "priv_level", + /* 253 */ "priv_type_list", + /* 254 */ "priv_type", + /* 255 */ "db_name", + /* 256 */ "dnode_endpoint", + /* 257 */ "not_exists_opt", + /* 258 */ "db_options", + /* 259 */ "exists_opt", + /* 260 */ "alter_db_options", + /* 261 */ "integer_list", + /* 262 */ "variable_list", + /* 263 */ "retention_list", + /* 264 */ "alter_db_option", + /* 265 */ "retention", + /* 266 */ "full_table_name", + /* 267 */ "column_def_list", + /* 268 */ "tags_def_opt", + /* 269 */ "table_options", + /* 270 */ "multi_create_clause", + /* 271 */ "tags_def", + /* 272 */ "multi_drop_clause", + /* 273 */ "alter_table_clause", + /* 274 */ "alter_table_options", + /* 275 */ "column_name", + /* 276 */ "type_name", + /* 277 */ "signed_literal", + /* 278 */ "create_subtable_clause", + /* 279 */ "specific_tags_opt", + /* 280 */ "literal_list", + /* 281 */ "drop_table_clause", + /* 282 */ "col_name_list", + /* 283 */ "table_name", + /* 284 */ "column_def", + /* 285 */ "duration_list", + /* 286 */ "rollup_func_list", + /* 287 */ "alter_table_option", + /* 288 */ "duration_literal", + /* 289 */ "rollup_func_name", + /* 290 */ "function_name", + /* 291 */ "col_name", + /* 292 */ "db_name_cond_opt", + /* 293 */ "like_pattern_opt", + /* 294 */ "table_name_cond", + /* 295 */ "from_db_opt", + /* 296 */ "index_name", + /* 297 */ "index_options", + /* 298 */ "func_list", + /* 299 */ "sliding_opt", + /* 300 */ "func", + /* 301 */ "expression_list", + /* 302 */ "topic_name", + /* 303 */ "query_expression", + /* 304 */ "cgroup_name", + /* 305 */ "analyze_opt", + /* 306 */ "explain_options", + /* 307 */ "agg_func_opt", + /* 308 */ "bufsize_opt", + /* 309 */ "stream_name", + /* 310 */ "stream_options", + /* 311 */ "into_opt", + /* 312 */ "dnode_list", + /* 313 */ "where_clause_opt", + /* 314 */ "signed", + /* 315 */ "literal_func", + /* 316 */ "table_alias", + /* 317 */ "column_alias", + /* 318 */ "expression", + /* 319 */ "pseudo_column", + /* 320 */ "column_reference", + /* 321 */ "function_expression", + /* 322 */ "subquery", + /* 323 */ "star_func", + /* 324 */ "star_func_para_list", + /* 325 */ "noarg_func", + /* 326 */ "other_para_list", + /* 327 */ "star_func_para", + /* 328 */ "predicate", + /* 329 */ "compare_op", + /* 330 */ "in_op", + /* 331 */ "in_predicate_value", + /* 332 */ "boolean_value_expression", + /* 333 */ "boolean_primary", + /* 334 */ "common_expression", + /* 335 */ "from_clause", + /* 336 */ "table_reference_list", + /* 337 */ "table_reference", + /* 338 */ "table_primary", + /* 339 */ "joined_table", + /* 340 */ "alias_opt", + /* 341 */ "parenthesized_joined_table", + /* 342 */ "join_type", + /* 343 */ "search_condition", + /* 344 */ "query_specification", + /* 345 */ "set_quantifier_opt", + /* 346 */ "select_list", + /* 347 */ "partition_by_clause_opt", + /* 348 */ "range_opt", + /* 349 */ "every_opt", + /* 350 */ "fill_opt", + /* 351 */ "twindow_clause_opt", + /* 352 */ "group_by_clause_opt", + /* 353 */ "having_clause_opt", + /* 354 */ "select_sublist", + /* 355 */ "select_item", + /* 356 */ "fill_mode", + /* 357 */ "group_by_list", + /* 358 */ "query_expression_body", + /* 359 */ "order_by_clause_opt", + /* 360 */ "slimit_clause_opt", + /* 361 */ "limit_clause_opt", + /* 362 */ "query_primary", + /* 363 */ "sort_specification_list", + /* 364 */ "sort_specification", + /* 365 */ "ordering_specification_opt", + /* 366 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1571,448 +1589,454 @@ static const char *const yyRuleName[] = { /* 21 */ "alter_account_option ::= USERS literal", /* 22 */ "alter_account_option ::= CONNS literal", /* 23 */ "alter_account_option ::= STATE literal", - /* 24 */ "cmd ::= CREATE USER user_name PASS NK_STRING", + /* 24 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt", /* 25 */ "cmd ::= ALTER USER user_name PASS NK_STRING", - /* 26 */ "cmd ::= ALTER USER user_name PRIVILEGE NK_STRING", - /* 27 */ "cmd ::= DROP USER user_name", - /* 28 */ "cmd ::= GRANT privileges ON priv_level TO user_name", - /* 29 */ "cmd ::= REVOKE privileges ON priv_level FROM user_name", - /* 30 */ "privileges ::= ALL", - /* 31 */ "privileges ::= priv_type_list", - /* 32 */ "priv_type_list ::= priv_type", - /* 33 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", - /* 34 */ "priv_type ::= READ", - /* 35 */ "priv_type ::= WRITE", - /* 36 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", - /* 37 */ "priv_level ::= db_name NK_DOT NK_STAR", - /* 38 */ "cmd ::= CREATE DNODE dnode_endpoint", - /* 39 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", - /* 40 */ "cmd ::= DROP DNODE NK_INTEGER", - /* 41 */ "cmd ::= DROP DNODE dnode_endpoint", - /* 42 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", - /* 43 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", - /* 44 */ "cmd ::= ALTER ALL DNODES NK_STRING", - /* 45 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", - /* 46 */ "dnode_endpoint ::= NK_STRING", - /* 47 */ "dnode_endpoint ::= NK_ID", - /* 48 */ "dnode_endpoint ::= NK_IPTOKEN", - /* 49 */ "cmd ::= ALTER LOCAL NK_STRING", - /* 50 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", - /* 51 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", - /* 52 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", - /* 53 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", - /* 54 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", - /* 55 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", - /* 56 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", - /* 57 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", - /* 58 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", - /* 59 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", - /* 60 */ "cmd ::= DROP DATABASE exists_opt db_name", - /* 61 */ "cmd ::= USE db_name", - /* 62 */ "cmd ::= ALTER DATABASE db_name alter_db_options", - /* 63 */ "not_exists_opt ::= IF NOT EXISTS", - /* 64 */ "not_exists_opt ::=", - /* 65 */ "exists_opt ::= IF EXISTS", - /* 66 */ "exists_opt ::=", - /* 67 */ "db_options ::=", - /* 68 */ "db_options ::= db_options BUFFER NK_INTEGER", - /* 69 */ "db_options ::= db_options CACHELAST NK_INTEGER", - /* 70 */ "db_options ::= db_options COMP NK_INTEGER", - /* 71 */ "db_options ::= db_options DURATION NK_INTEGER", - /* 72 */ "db_options ::= db_options DURATION NK_VARIABLE", - /* 73 */ "db_options ::= db_options FSYNC NK_INTEGER", - /* 74 */ "db_options ::= db_options MAXROWS NK_INTEGER", - /* 75 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 76 */ "db_options ::= db_options KEEP integer_list", - /* 77 */ "db_options ::= db_options KEEP variable_list", - /* 78 */ "db_options ::= db_options PAGES NK_INTEGER", - /* 79 */ "db_options ::= db_options PAGESIZE NK_INTEGER", - /* 80 */ "db_options ::= db_options PRECISION NK_STRING", - /* 81 */ "db_options ::= db_options REPLICA NK_INTEGER", - /* 82 */ "db_options ::= db_options STRICT NK_INTEGER", - /* 83 */ "db_options ::= db_options WAL NK_INTEGER", - /* 84 */ "db_options ::= db_options VGROUPS NK_INTEGER", - /* 85 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", - /* 86 */ "db_options ::= db_options RETENTIONS retention_list", - /* 87 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", - /* 88 */ "alter_db_options ::= alter_db_option", - /* 89 */ "alter_db_options ::= alter_db_options alter_db_option", - /* 90 */ "alter_db_option ::= BUFFER NK_INTEGER", - /* 91 */ "alter_db_option ::= CACHELAST NK_INTEGER", - /* 92 */ "alter_db_option ::= FSYNC NK_INTEGER", - /* 93 */ "alter_db_option ::= KEEP integer_list", - /* 94 */ "alter_db_option ::= KEEP variable_list", - /* 95 */ "alter_db_option ::= PAGES NK_INTEGER", - /* 96 */ "alter_db_option ::= REPLICA NK_INTEGER", - /* 97 */ "alter_db_option ::= STRICT NK_INTEGER", - /* 98 */ "alter_db_option ::= WAL NK_INTEGER", - /* 99 */ "integer_list ::= NK_INTEGER", - /* 100 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", - /* 101 */ "variable_list ::= NK_VARIABLE", - /* 102 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", - /* 103 */ "retention_list ::= retention", - /* 104 */ "retention_list ::= retention_list NK_COMMA retention", - /* 105 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 106 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 107 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 108 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 109 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 110 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 111 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 112 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 113 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 114 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 115 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 116 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 117 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 118 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 119 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 120 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 121 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 122 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", - /* 123 */ "multi_create_clause ::= create_subtable_clause", - /* 124 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 125 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options", - /* 126 */ "multi_drop_clause ::= drop_table_clause", - /* 127 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 128 */ "drop_table_clause ::= exists_opt full_table_name", - /* 129 */ "specific_tags_opt ::=", - /* 130 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", - /* 131 */ "full_table_name ::= table_name", - /* 132 */ "full_table_name ::= db_name NK_DOT table_name", - /* 133 */ "column_def_list ::= column_def", - /* 134 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 135 */ "column_def ::= column_name type_name", - /* 136 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 137 */ "type_name ::= BOOL", - /* 138 */ "type_name ::= TINYINT", - /* 139 */ "type_name ::= SMALLINT", - /* 140 */ "type_name ::= INT", - /* 141 */ "type_name ::= INTEGER", - /* 142 */ "type_name ::= BIGINT", - /* 143 */ "type_name ::= FLOAT", - /* 144 */ "type_name ::= DOUBLE", - /* 145 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 146 */ "type_name ::= TIMESTAMP", - /* 147 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 148 */ "type_name ::= TINYINT UNSIGNED", - /* 149 */ "type_name ::= SMALLINT UNSIGNED", - /* 150 */ "type_name ::= INT UNSIGNED", - /* 151 */ "type_name ::= BIGINT UNSIGNED", - /* 152 */ "type_name ::= JSON", - /* 153 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 154 */ "type_name ::= MEDIUMBLOB", - /* 155 */ "type_name ::= BLOB", - /* 156 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 157 */ "type_name ::= DECIMAL", - /* 158 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 159 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 160 */ "tags_def_opt ::=", - /* 161 */ "tags_def_opt ::= tags_def", - /* 162 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 163 */ "table_options ::=", - /* 164 */ "table_options ::= table_options COMMENT NK_STRING", - /* 165 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 166 */ "table_options ::= table_options WATERMARK duration_list", - /* 167 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 168 */ "table_options ::= table_options TTL NK_INTEGER", - /* 169 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 170 */ "alter_table_options ::= alter_table_option", - /* 171 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 172 */ "alter_table_option ::= COMMENT NK_STRING", - /* 173 */ "alter_table_option ::= TTL NK_INTEGER", - /* 174 */ "duration_list ::= duration_literal", - /* 175 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 176 */ "rollup_func_list ::= rollup_func_name", - /* 177 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 178 */ "rollup_func_name ::= function_name", - /* 179 */ "rollup_func_name ::= FIRST", - /* 180 */ "rollup_func_name ::= LAST", - /* 181 */ "col_name_list ::= col_name", - /* 182 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 183 */ "col_name ::= column_name", - /* 184 */ "cmd ::= SHOW DNODES", - /* 185 */ "cmd ::= SHOW USERS", - /* 186 */ "cmd ::= SHOW DATABASES", - /* 187 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 188 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 189 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 190 */ "cmd ::= SHOW MNODES", - /* 191 */ "cmd ::= SHOW MODULES", - /* 192 */ "cmd ::= SHOW QNODES", - /* 193 */ "cmd ::= SHOW FUNCTIONS", - /* 194 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 195 */ "cmd ::= SHOW STREAMS", - /* 196 */ "cmd ::= SHOW ACCOUNTS", - /* 197 */ "cmd ::= SHOW APPS", - /* 198 */ "cmd ::= SHOW CONNECTIONS", - /* 199 */ "cmd ::= SHOW LICENCE", - /* 200 */ "cmd ::= SHOW GRANTS", - /* 201 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 202 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 203 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 204 */ "cmd ::= SHOW QUERIES", - /* 205 */ "cmd ::= SHOW SCORES", - /* 206 */ "cmd ::= SHOW TOPICS", - /* 207 */ "cmd ::= SHOW VARIABLES", - /* 208 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 209 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES", - /* 210 */ "cmd ::= SHOW BNODES", - /* 211 */ "cmd ::= SHOW SNODES", - /* 212 */ "cmd ::= SHOW CLUSTER", - /* 213 */ "cmd ::= SHOW TRANSACTIONS", - /* 214 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 215 */ "db_name_cond_opt ::=", - /* 216 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 217 */ "like_pattern_opt ::=", - /* 218 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 219 */ "table_name_cond ::= table_name", - /* 220 */ "from_db_opt ::=", - /* 221 */ "from_db_opt ::= FROM db_name", - /* 222 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 223 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", - /* 224 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", - /* 225 */ "index_options ::=", - /* 226 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 227 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 228 */ "func_list ::= func", - /* 229 */ "func_list ::= func_list NK_COMMA func", - /* 230 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 231 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 232 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", - /* 233 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", - /* 234 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 235 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 236 */ "cmd ::= DESC full_table_name", - /* 237 */ "cmd ::= DESCRIBE full_table_name", - /* 238 */ "cmd ::= RESET QUERY CACHE", - /* 239 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 240 */ "analyze_opt ::=", - /* 241 */ "analyze_opt ::= ANALYZE", - /* 242 */ "explain_options ::=", - /* 243 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 244 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 245 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", - /* 246 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", - /* 247 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 248 */ "agg_func_opt ::=", - /* 249 */ "agg_func_opt ::= AGGREGATE", - /* 250 */ "bufsize_opt ::=", - /* 251 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 252 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", - /* 253 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 254 */ "into_opt ::=", - /* 255 */ "into_opt ::= INTO full_table_name", - /* 256 */ "stream_options ::=", - /* 257 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 258 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 259 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 260 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 261 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 262 */ "cmd ::= KILL QUERY NK_STRING", - /* 263 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 264 */ "cmd ::= BALANCE VGROUP", - /* 265 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 266 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 267 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 268 */ "dnode_list ::= DNODE NK_INTEGER", - /* 269 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 270 */ "cmd ::= SYNCDB db_name REPLICA", - /* 271 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 272 */ "cmd ::= query_expression", - /* 273 */ "literal ::= NK_INTEGER", - /* 274 */ "literal ::= NK_FLOAT", - /* 275 */ "literal ::= NK_STRING", - /* 276 */ "literal ::= NK_BOOL", - /* 277 */ "literal ::= TIMESTAMP NK_STRING", - /* 278 */ "literal ::= duration_literal", - /* 279 */ "literal ::= NULL", - /* 280 */ "literal ::= NK_QUESTION", - /* 281 */ "duration_literal ::= NK_VARIABLE", - /* 282 */ "signed ::= NK_INTEGER", - /* 283 */ "signed ::= NK_PLUS NK_INTEGER", - /* 284 */ "signed ::= NK_MINUS NK_INTEGER", - /* 285 */ "signed ::= NK_FLOAT", - /* 286 */ "signed ::= NK_PLUS NK_FLOAT", - /* 287 */ "signed ::= NK_MINUS NK_FLOAT", - /* 288 */ "signed_literal ::= signed", - /* 289 */ "signed_literal ::= NK_STRING", - /* 290 */ "signed_literal ::= NK_BOOL", - /* 291 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 292 */ "signed_literal ::= duration_literal", - /* 293 */ "signed_literal ::= NULL", - /* 294 */ "signed_literal ::= literal_func", - /* 295 */ "literal_list ::= signed_literal", - /* 296 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 297 */ "db_name ::= NK_ID", - /* 298 */ "table_name ::= NK_ID", - /* 299 */ "column_name ::= NK_ID", - /* 300 */ "function_name ::= NK_ID", - /* 301 */ "table_alias ::= NK_ID", - /* 302 */ "column_alias ::= NK_ID", - /* 303 */ "user_name ::= NK_ID", - /* 304 */ "index_name ::= NK_ID", - /* 305 */ "topic_name ::= NK_ID", - /* 306 */ "stream_name ::= NK_ID", - /* 307 */ "cgroup_name ::= NK_ID", - /* 308 */ "expression ::= literal", - /* 309 */ "expression ::= pseudo_column", - /* 310 */ "expression ::= column_reference", - /* 311 */ "expression ::= function_expression", - /* 312 */ "expression ::= subquery", - /* 313 */ "expression ::= NK_LP expression NK_RP", - /* 314 */ "expression ::= NK_PLUS expression", - /* 315 */ "expression ::= NK_MINUS expression", - /* 316 */ "expression ::= expression NK_PLUS expression", - /* 317 */ "expression ::= expression NK_MINUS expression", - /* 318 */ "expression ::= expression NK_STAR expression", - /* 319 */ "expression ::= expression NK_SLASH expression", - /* 320 */ "expression ::= expression NK_REM expression", - /* 321 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 322 */ "expression_list ::= expression", - /* 323 */ "expression_list ::= expression_list NK_COMMA expression", - /* 324 */ "column_reference ::= column_name", - /* 325 */ "column_reference ::= table_name NK_DOT column_name", - /* 326 */ "pseudo_column ::= ROWTS", - /* 327 */ "pseudo_column ::= TBNAME", - /* 328 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 329 */ "pseudo_column ::= QSTARTTS", - /* 330 */ "pseudo_column ::= QENDTS", - /* 331 */ "pseudo_column ::= WSTARTTS", - /* 332 */ "pseudo_column ::= WENDTS", - /* 333 */ "pseudo_column ::= WDURATION", - /* 334 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 335 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 336 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", - /* 337 */ "function_expression ::= literal_func", - /* 338 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 339 */ "literal_func ::= NOW", - /* 340 */ "noarg_func ::= NOW", - /* 341 */ "noarg_func ::= TODAY", - /* 342 */ "noarg_func ::= TIMEZONE", - /* 343 */ "star_func ::= COUNT", - /* 344 */ "star_func ::= FIRST", - /* 345 */ "star_func ::= LAST", - /* 346 */ "star_func ::= LAST_ROW", - /* 347 */ "star_func_para_list ::= NK_STAR", - /* 348 */ "star_func_para_list ::= other_para_list", - /* 349 */ "other_para_list ::= star_func_para", - /* 350 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 351 */ "star_func_para ::= expression", - /* 352 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 353 */ "predicate ::= expression compare_op expression", - /* 354 */ "predicate ::= expression BETWEEN expression AND expression", - /* 355 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 356 */ "predicate ::= expression IS NULL", - /* 357 */ "predicate ::= expression IS NOT NULL", - /* 358 */ "predicate ::= expression in_op in_predicate_value", - /* 359 */ "compare_op ::= NK_LT", - /* 360 */ "compare_op ::= NK_GT", - /* 361 */ "compare_op ::= NK_LE", - /* 362 */ "compare_op ::= NK_GE", - /* 363 */ "compare_op ::= NK_NE", - /* 364 */ "compare_op ::= NK_EQ", - /* 365 */ "compare_op ::= LIKE", - /* 366 */ "compare_op ::= NOT LIKE", - /* 367 */ "compare_op ::= MATCH", - /* 368 */ "compare_op ::= NMATCH", - /* 369 */ "compare_op ::= CONTAINS", - /* 370 */ "in_op ::= IN", - /* 371 */ "in_op ::= NOT IN", - /* 372 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 373 */ "boolean_value_expression ::= boolean_primary", - /* 374 */ "boolean_value_expression ::= NOT boolean_primary", - /* 375 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 376 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 377 */ "boolean_primary ::= predicate", - /* 378 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 379 */ "common_expression ::= expression", - /* 380 */ "common_expression ::= boolean_value_expression", - /* 381 */ "from_clause ::= FROM table_reference_list", - /* 382 */ "table_reference_list ::= table_reference", - /* 383 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 384 */ "table_reference ::= table_primary", - /* 385 */ "table_reference ::= joined_table", - /* 386 */ "table_primary ::= table_name alias_opt", - /* 387 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 388 */ "table_primary ::= subquery alias_opt", - /* 389 */ "table_primary ::= parenthesized_joined_table", - /* 390 */ "alias_opt ::=", - /* 391 */ "alias_opt ::= table_alias", - /* 392 */ "alias_opt ::= AS table_alias", - /* 393 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 394 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 395 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 396 */ "join_type ::=", - /* 397 */ "join_type ::= INNER", - /* 398 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 399 */ "set_quantifier_opt ::=", - /* 400 */ "set_quantifier_opt ::= DISTINCT", - /* 401 */ "set_quantifier_opt ::= ALL", - /* 402 */ "select_list ::= NK_STAR", - /* 403 */ "select_list ::= select_sublist", - /* 404 */ "select_sublist ::= select_item", - /* 405 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 406 */ "select_item ::= common_expression", - /* 407 */ "select_item ::= common_expression column_alias", - /* 408 */ "select_item ::= common_expression AS column_alias", - /* 409 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 410 */ "where_clause_opt ::=", - /* 411 */ "where_clause_opt ::= WHERE search_condition", - /* 412 */ "partition_by_clause_opt ::=", - /* 413 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 414 */ "twindow_clause_opt ::=", - /* 415 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 416 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 417 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 418 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 419 */ "sliding_opt ::=", - /* 420 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 421 */ "fill_opt ::=", - /* 422 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 423 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 424 */ "fill_mode ::= NONE", - /* 425 */ "fill_mode ::= PREV", - /* 426 */ "fill_mode ::= NULL", - /* 427 */ "fill_mode ::= LINEAR", - /* 428 */ "fill_mode ::= NEXT", - /* 429 */ "group_by_clause_opt ::=", - /* 430 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 431 */ "group_by_list ::= expression", - /* 432 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 433 */ "having_clause_opt ::=", - /* 434 */ "having_clause_opt ::= HAVING search_condition", - /* 435 */ "range_opt ::=", - /* 436 */ "range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP", - /* 437 */ "every_opt ::=", - /* 438 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 439 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 440 */ "query_expression_body ::= query_primary", - /* 441 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 442 */ "query_expression_body ::= query_expression_body UNION query_expression_body", - /* 443 */ "query_primary ::= query_specification", - /* 444 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", - /* 445 */ "order_by_clause_opt ::=", - /* 446 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 447 */ "slimit_clause_opt ::=", - /* 448 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 449 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 450 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 451 */ "limit_clause_opt ::=", - /* 452 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 453 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 454 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 455 */ "subquery ::= NK_LP query_expression NK_RP", - /* 456 */ "search_condition ::= common_expression", - /* 457 */ "sort_specification_list ::= sort_specification", - /* 458 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 459 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 460 */ "ordering_specification_opt ::=", - /* 461 */ "ordering_specification_opt ::= ASC", - /* 462 */ "ordering_specification_opt ::= DESC", - /* 463 */ "null_ordering_opt ::=", - /* 464 */ "null_ordering_opt ::= NULLS FIRST", - /* 465 */ "null_ordering_opt ::= NULLS LAST", + /* 26 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER", + /* 27 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER", + /* 28 */ "cmd ::= DROP USER user_name", + /* 29 */ "sysinfo_opt ::=", + /* 30 */ "sysinfo_opt ::= SYSINFO NK_INTEGER", + /* 31 */ "cmd ::= GRANT privileges ON priv_level TO user_name", + /* 32 */ "cmd ::= REVOKE privileges ON priv_level FROM user_name", + /* 33 */ "privileges ::= ALL", + /* 34 */ "privileges ::= priv_type_list", + /* 35 */ "priv_type_list ::= priv_type", + /* 36 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", + /* 37 */ "priv_type ::= READ", + /* 38 */ "priv_type ::= WRITE", + /* 39 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", + /* 40 */ "priv_level ::= db_name NK_DOT NK_STAR", + /* 41 */ "cmd ::= CREATE DNODE dnode_endpoint", + /* 42 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", + /* 43 */ "cmd ::= DROP DNODE NK_INTEGER", + /* 44 */ "cmd ::= DROP DNODE dnode_endpoint", + /* 45 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", + /* 46 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", + /* 47 */ "cmd ::= ALTER ALL DNODES NK_STRING", + /* 48 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", + /* 49 */ "dnode_endpoint ::= NK_STRING", + /* 50 */ "dnode_endpoint ::= NK_ID", + /* 51 */ "dnode_endpoint ::= NK_IPTOKEN", + /* 52 */ "cmd ::= ALTER LOCAL NK_STRING", + /* 53 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", + /* 54 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", + /* 55 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", + /* 56 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", + /* 57 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", + /* 58 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", + /* 59 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", + /* 60 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", + /* 61 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", + /* 62 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", + /* 63 */ "cmd ::= DROP DATABASE exists_opt db_name", + /* 64 */ "cmd ::= USE db_name", + /* 65 */ "cmd ::= ALTER DATABASE db_name alter_db_options", + /* 66 */ "not_exists_opt ::= IF NOT EXISTS", + /* 67 */ "not_exists_opt ::=", + /* 68 */ "exists_opt ::= IF EXISTS", + /* 69 */ "exists_opt ::=", + /* 70 */ "db_options ::=", + /* 71 */ "db_options ::= db_options BUFFER NK_INTEGER", + /* 72 */ "db_options ::= db_options CACHELAST NK_INTEGER", + /* 73 */ "db_options ::= db_options COMP NK_INTEGER", + /* 74 */ "db_options ::= db_options DURATION NK_INTEGER", + /* 75 */ "db_options ::= db_options DURATION NK_VARIABLE", + /* 76 */ "db_options ::= db_options FSYNC NK_INTEGER", + /* 77 */ "db_options ::= db_options MAXROWS NK_INTEGER", + /* 78 */ "db_options ::= db_options MINROWS NK_INTEGER", + /* 79 */ "db_options ::= db_options KEEP integer_list", + /* 80 */ "db_options ::= db_options KEEP variable_list", + /* 81 */ "db_options ::= db_options PAGES NK_INTEGER", + /* 82 */ "db_options ::= db_options PAGESIZE NK_INTEGER", + /* 83 */ "db_options ::= db_options PRECISION NK_STRING", + /* 84 */ "db_options ::= db_options REPLICA NK_INTEGER", + /* 85 */ "db_options ::= db_options STRICT NK_INTEGER", + /* 86 */ "db_options ::= db_options WAL NK_INTEGER", + /* 87 */ "db_options ::= db_options VGROUPS NK_INTEGER", + /* 88 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", + /* 89 */ "db_options ::= db_options RETENTIONS retention_list", + /* 90 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", + /* 91 */ "alter_db_options ::= alter_db_option", + /* 92 */ "alter_db_options ::= alter_db_options alter_db_option", + /* 93 */ "alter_db_option ::= BUFFER NK_INTEGER", + /* 94 */ "alter_db_option ::= CACHELAST NK_INTEGER", + /* 95 */ "alter_db_option ::= FSYNC NK_INTEGER", + /* 96 */ "alter_db_option ::= KEEP integer_list", + /* 97 */ "alter_db_option ::= KEEP variable_list", + /* 98 */ "alter_db_option ::= PAGES NK_INTEGER", + /* 99 */ "alter_db_option ::= REPLICA NK_INTEGER", + /* 100 */ "alter_db_option ::= STRICT NK_INTEGER", + /* 101 */ "alter_db_option ::= WAL NK_INTEGER", + /* 102 */ "integer_list ::= NK_INTEGER", + /* 103 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", + /* 104 */ "variable_list ::= NK_VARIABLE", + /* 105 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", + /* 106 */ "retention_list ::= retention", + /* 107 */ "retention_list ::= retention_list NK_COMMA retention", + /* 108 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", + /* 109 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 110 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 111 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 112 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 113 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 114 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 115 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 116 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 117 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 118 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 119 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 120 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 121 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 122 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 123 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 124 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 125 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", + /* 126 */ "multi_create_clause ::= create_subtable_clause", + /* 127 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 128 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options", + /* 129 */ "multi_drop_clause ::= drop_table_clause", + /* 130 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 131 */ "drop_table_clause ::= exists_opt full_table_name", + /* 132 */ "specific_tags_opt ::=", + /* 133 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 134 */ "full_table_name ::= table_name", + /* 135 */ "full_table_name ::= db_name NK_DOT table_name", + /* 136 */ "column_def_list ::= column_def", + /* 137 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 138 */ "column_def ::= column_name type_name", + /* 139 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 140 */ "type_name ::= BOOL", + /* 141 */ "type_name ::= TINYINT", + /* 142 */ "type_name ::= SMALLINT", + /* 143 */ "type_name ::= INT", + /* 144 */ "type_name ::= INTEGER", + /* 145 */ "type_name ::= BIGINT", + /* 146 */ "type_name ::= FLOAT", + /* 147 */ "type_name ::= DOUBLE", + /* 148 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 149 */ "type_name ::= TIMESTAMP", + /* 150 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 151 */ "type_name ::= TINYINT UNSIGNED", + /* 152 */ "type_name ::= SMALLINT UNSIGNED", + /* 153 */ "type_name ::= INT UNSIGNED", + /* 154 */ "type_name ::= BIGINT UNSIGNED", + /* 155 */ "type_name ::= JSON", + /* 156 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 157 */ "type_name ::= MEDIUMBLOB", + /* 158 */ "type_name ::= BLOB", + /* 159 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 160 */ "type_name ::= DECIMAL", + /* 161 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 162 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 163 */ "tags_def_opt ::=", + /* 164 */ "tags_def_opt ::= tags_def", + /* 165 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 166 */ "table_options ::=", + /* 167 */ "table_options ::= table_options COMMENT NK_STRING", + /* 168 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 169 */ "table_options ::= table_options WATERMARK duration_list", + /* 170 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 171 */ "table_options ::= table_options TTL NK_INTEGER", + /* 172 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 173 */ "alter_table_options ::= alter_table_option", + /* 174 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 175 */ "alter_table_option ::= COMMENT NK_STRING", + /* 176 */ "alter_table_option ::= TTL NK_INTEGER", + /* 177 */ "duration_list ::= duration_literal", + /* 178 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 179 */ "rollup_func_list ::= rollup_func_name", + /* 180 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 181 */ "rollup_func_name ::= function_name", + /* 182 */ "rollup_func_name ::= FIRST", + /* 183 */ "rollup_func_name ::= LAST", + /* 184 */ "col_name_list ::= col_name", + /* 185 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 186 */ "col_name ::= column_name", + /* 187 */ "cmd ::= SHOW DNODES", + /* 188 */ "cmd ::= SHOW USERS", + /* 189 */ "cmd ::= SHOW DATABASES", + /* 190 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 191 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 192 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 193 */ "cmd ::= SHOW MNODES", + /* 194 */ "cmd ::= SHOW MODULES", + /* 195 */ "cmd ::= SHOW QNODES", + /* 196 */ "cmd ::= SHOW FUNCTIONS", + /* 197 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 198 */ "cmd ::= SHOW STREAMS", + /* 199 */ "cmd ::= SHOW ACCOUNTS", + /* 200 */ "cmd ::= SHOW APPS", + /* 201 */ "cmd ::= SHOW CONNECTIONS", + /* 202 */ "cmd ::= SHOW LICENCE", + /* 203 */ "cmd ::= SHOW GRANTS", + /* 204 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 205 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 206 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 207 */ "cmd ::= SHOW QUERIES", + /* 208 */ "cmd ::= SHOW SCORES", + /* 209 */ "cmd ::= SHOW TOPICS", + /* 210 */ "cmd ::= SHOW VARIABLES", + /* 211 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 212 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES", + /* 213 */ "cmd ::= SHOW BNODES", + /* 214 */ "cmd ::= SHOW SNODES", + /* 215 */ "cmd ::= SHOW CLUSTER", + /* 216 */ "cmd ::= SHOW TRANSACTIONS", + /* 217 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 218 */ "db_name_cond_opt ::=", + /* 219 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 220 */ "like_pattern_opt ::=", + /* 221 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 222 */ "table_name_cond ::= table_name", + /* 223 */ "from_db_opt ::=", + /* 224 */ "from_db_opt ::= FROM db_name", + /* 225 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 226 */ "cmd ::= DROP INDEX exists_opt index_name", + /* 227 */ "index_options ::=", + /* 228 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 229 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 230 */ "func_list ::= func", + /* 231 */ "func_list ::= func_list NK_COMMA func", + /* 232 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 233 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 234 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", + /* 235 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", + /* 236 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", + /* 237 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", + /* 238 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 239 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 240 */ "cmd ::= DESC full_table_name", + /* 241 */ "cmd ::= DESCRIBE full_table_name", + /* 242 */ "cmd ::= RESET QUERY CACHE", + /* 243 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 244 */ "analyze_opt ::=", + /* 245 */ "analyze_opt ::= ANALYZE", + /* 246 */ "explain_options ::=", + /* 247 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 248 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 249 */ "cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP", + /* 250 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt", + /* 251 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 252 */ "agg_func_opt ::=", + /* 253 */ "agg_func_opt ::= AGGREGATE", + /* 254 */ "bufsize_opt ::=", + /* 255 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 256 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression", + /* 257 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 258 */ "into_opt ::=", + /* 259 */ "into_opt ::= INTO full_table_name", + /* 260 */ "stream_options ::=", + /* 261 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 262 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 263 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 264 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 265 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 266 */ "cmd ::= KILL QUERY NK_STRING", + /* 267 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 268 */ "cmd ::= BALANCE VGROUP", + /* 269 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 270 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 271 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 272 */ "dnode_list ::= DNODE NK_INTEGER", + /* 273 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 274 */ "cmd ::= SYNCDB db_name REPLICA", + /* 275 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 276 */ "cmd ::= query_expression", + /* 277 */ "literal ::= NK_INTEGER", + /* 278 */ "literal ::= NK_FLOAT", + /* 279 */ "literal ::= NK_STRING", + /* 280 */ "literal ::= NK_BOOL", + /* 281 */ "literal ::= TIMESTAMP NK_STRING", + /* 282 */ "literal ::= duration_literal", + /* 283 */ "literal ::= NULL", + /* 284 */ "literal ::= NK_QUESTION", + /* 285 */ "duration_literal ::= NK_VARIABLE", + /* 286 */ "signed ::= NK_INTEGER", + /* 287 */ "signed ::= NK_PLUS NK_INTEGER", + /* 288 */ "signed ::= NK_MINUS NK_INTEGER", + /* 289 */ "signed ::= NK_FLOAT", + /* 290 */ "signed ::= NK_PLUS NK_FLOAT", + /* 291 */ "signed ::= NK_MINUS NK_FLOAT", + /* 292 */ "signed_literal ::= signed", + /* 293 */ "signed_literal ::= NK_STRING", + /* 294 */ "signed_literal ::= NK_BOOL", + /* 295 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 296 */ "signed_literal ::= duration_literal", + /* 297 */ "signed_literal ::= NULL", + /* 298 */ "signed_literal ::= literal_func", + /* 299 */ "literal_list ::= signed_literal", + /* 300 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 301 */ "db_name ::= NK_ID", + /* 302 */ "table_name ::= NK_ID", + /* 303 */ "column_name ::= NK_ID", + /* 304 */ "function_name ::= NK_ID", + /* 305 */ "table_alias ::= NK_ID", + /* 306 */ "column_alias ::= NK_ID", + /* 307 */ "user_name ::= NK_ID", + /* 308 */ "index_name ::= NK_ID", + /* 309 */ "topic_name ::= NK_ID", + /* 310 */ "stream_name ::= NK_ID", + /* 311 */ "cgroup_name ::= NK_ID", + /* 312 */ "expression ::= literal", + /* 313 */ "expression ::= pseudo_column", + /* 314 */ "expression ::= column_reference", + /* 315 */ "expression ::= function_expression", + /* 316 */ "expression ::= subquery", + /* 317 */ "expression ::= NK_LP expression NK_RP", + /* 318 */ "expression ::= NK_PLUS expression", + /* 319 */ "expression ::= NK_MINUS expression", + /* 320 */ "expression ::= expression NK_PLUS expression", + /* 321 */ "expression ::= expression NK_MINUS expression", + /* 322 */ "expression ::= expression NK_STAR expression", + /* 323 */ "expression ::= expression NK_SLASH expression", + /* 324 */ "expression ::= expression NK_REM expression", + /* 325 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 326 */ "expression ::= expression NK_BITAND expression", + /* 327 */ "expression ::= expression NK_BITOR expression", + /* 328 */ "expression_list ::= expression", + /* 329 */ "expression_list ::= expression_list NK_COMMA expression", + /* 330 */ "column_reference ::= column_name", + /* 331 */ "column_reference ::= table_name NK_DOT column_name", + /* 332 */ "pseudo_column ::= ROWTS", + /* 333 */ "pseudo_column ::= TBNAME", + /* 334 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 335 */ "pseudo_column ::= QSTARTTS", + /* 336 */ "pseudo_column ::= QENDTS", + /* 337 */ "pseudo_column ::= WSTARTTS", + /* 338 */ "pseudo_column ::= WENDTS", + /* 339 */ "pseudo_column ::= WDURATION", + /* 340 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 341 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 342 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 343 */ "function_expression ::= literal_func", + /* 344 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 345 */ "literal_func ::= NOW", + /* 346 */ "noarg_func ::= NOW", + /* 347 */ "noarg_func ::= TODAY", + /* 348 */ "noarg_func ::= TIMEZONE", + /* 349 */ "star_func ::= COUNT", + /* 350 */ "star_func ::= FIRST", + /* 351 */ "star_func ::= LAST", + /* 352 */ "star_func ::= LAST_ROW", + /* 353 */ "star_func_para_list ::= NK_STAR", + /* 354 */ "star_func_para_list ::= other_para_list", + /* 355 */ "other_para_list ::= star_func_para", + /* 356 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 357 */ "star_func_para ::= expression", + /* 358 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 359 */ "predicate ::= expression compare_op expression", + /* 360 */ "predicate ::= expression BETWEEN expression AND expression", + /* 361 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 362 */ "predicate ::= expression IS NULL", + /* 363 */ "predicate ::= expression IS NOT NULL", + /* 364 */ "predicate ::= expression in_op in_predicate_value", + /* 365 */ "compare_op ::= NK_LT", + /* 366 */ "compare_op ::= NK_GT", + /* 367 */ "compare_op ::= NK_LE", + /* 368 */ "compare_op ::= NK_GE", + /* 369 */ "compare_op ::= NK_NE", + /* 370 */ "compare_op ::= NK_EQ", + /* 371 */ "compare_op ::= LIKE", + /* 372 */ "compare_op ::= NOT LIKE", + /* 373 */ "compare_op ::= MATCH", + /* 374 */ "compare_op ::= NMATCH", + /* 375 */ "compare_op ::= CONTAINS", + /* 376 */ "in_op ::= IN", + /* 377 */ "in_op ::= NOT IN", + /* 378 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 379 */ "boolean_value_expression ::= boolean_primary", + /* 380 */ "boolean_value_expression ::= NOT boolean_primary", + /* 381 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 382 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 383 */ "boolean_primary ::= predicate", + /* 384 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 385 */ "common_expression ::= expression", + /* 386 */ "common_expression ::= boolean_value_expression", + /* 387 */ "from_clause ::= FROM table_reference_list", + /* 388 */ "table_reference_list ::= table_reference", + /* 389 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 390 */ "table_reference ::= table_primary", + /* 391 */ "table_reference ::= joined_table", + /* 392 */ "table_primary ::= table_name alias_opt", + /* 393 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 394 */ "table_primary ::= subquery alias_opt", + /* 395 */ "table_primary ::= parenthesized_joined_table", + /* 396 */ "alias_opt ::=", + /* 397 */ "alias_opt ::= table_alias", + /* 398 */ "alias_opt ::= AS table_alias", + /* 399 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 400 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 401 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 402 */ "join_type ::=", + /* 403 */ "join_type ::= INNER", + /* 404 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 405 */ "set_quantifier_opt ::=", + /* 406 */ "set_quantifier_opt ::= DISTINCT", + /* 407 */ "set_quantifier_opt ::= ALL", + /* 408 */ "select_list ::= NK_STAR", + /* 409 */ "select_list ::= select_sublist", + /* 410 */ "select_sublist ::= select_item", + /* 411 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 412 */ "select_item ::= common_expression", + /* 413 */ "select_item ::= common_expression column_alias", + /* 414 */ "select_item ::= common_expression AS column_alias", + /* 415 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 416 */ "where_clause_opt ::=", + /* 417 */ "where_clause_opt ::= WHERE search_condition", + /* 418 */ "partition_by_clause_opt ::=", + /* 419 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 420 */ "twindow_clause_opt ::=", + /* 421 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 422 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 423 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 424 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 425 */ "sliding_opt ::=", + /* 426 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 427 */ "fill_opt ::=", + /* 428 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 429 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 430 */ "fill_mode ::= NONE", + /* 431 */ "fill_mode ::= PREV", + /* 432 */ "fill_mode ::= NULL", + /* 433 */ "fill_mode ::= LINEAR", + /* 434 */ "fill_mode ::= NEXT", + /* 435 */ "group_by_clause_opt ::=", + /* 436 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 437 */ "group_by_list ::= expression", + /* 438 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 439 */ "having_clause_opt ::=", + /* 440 */ "having_clause_opt ::= HAVING search_condition", + /* 441 */ "range_opt ::=", + /* 442 */ "range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP", + /* 443 */ "every_opt ::=", + /* 444 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 445 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 446 */ "query_expression_body ::= query_primary", + /* 447 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 448 */ "query_expression_body ::= query_expression_body UNION query_expression_body", + /* 449 */ "query_primary ::= query_specification", + /* 450 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", + /* 451 */ "order_by_clause_opt ::=", + /* 452 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 453 */ "slimit_clause_opt ::=", + /* 454 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 455 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 456 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 457 */ "limit_clause_opt ::=", + /* 458 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 459 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 460 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 461 */ "subquery ::= NK_LP query_expression NK_RP", + /* 462 */ "search_condition ::= common_expression", + /* 463 */ "sort_specification_list ::= sort_specification", + /* 464 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 465 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 466 */ "ordering_specification_opt ::=", + /* 467 */ "ordering_specification_opt ::= ASC", + /* 468 */ "ordering_specification_opt ::= DESC", + /* 469 */ "null_ordering_opt ::=", + /* 470 */ "null_ordering_opt ::= NULLS FIRST", + /* 471 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2139,176 +2163,181 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 242: /* cmd */ - case 245: /* literal */ - case 255: /* db_options */ - case 257: /* alter_db_options */ - case 262: /* retention */ - case 263: /* full_table_name */ - case 266: /* table_options */ - case 270: /* alter_table_clause */ - case 271: /* alter_table_options */ - case 274: /* signed_literal */ - case 275: /* create_subtable_clause */ - case 278: /* drop_table_clause */ - case 281: /* column_def */ - case 285: /* duration_literal */ - case 286: /* rollup_func_name */ - case 288: /* col_name */ - case 289: /* db_name_cond_opt */ - case 290: /* like_pattern_opt */ - case 291: /* table_name_cond */ - case 292: /* from_db_opt */ - case 294: /* index_options */ - case 296: /* sliding_opt */ - case 297: /* func */ - case 300: /* query_expression */ - case 303: /* explain_options */ - case 307: /* stream_options */ - case 308: /* into_opt */ - case 310: /* where_clause_opt */ - case 311: /* signed */ - case 312: /* literal_func */ - case 315: /* expression */ - case 316: /* pseudo_column */ - case 317: /* column_reference */ - case 318: /* function_expression */ - case 319: /* subquery */ - case 324: /* star_func_para */ - case 325: /* predicate */ - case 328: /* in_predicate_value */ - case 329: /* boolean_value_expression */ - case 330: /* boolean_primary */ - case 331: /* common_expression */ - case 332: /* from_clause */ - case 333: /* table_reference_list */ - case 334: /* table_reference */ - case 335: /* table_primary */ - case 336: /* joined_table */ - case 338: /* parenthesized_joined_table */ - case 340: /* search_condition */ - case 341: /* query_specification */ - case 345: /* range_opt */ - case 346: /* every_opt */ - case 347: /* fill_opt */ - case 348: /* twindow_clause_opt */ - case 350: /* having_clause_opt */ - case 352: /* select_item */ - case 355: /* query_expression_body */ - case 357: /* slimit_clause_opt */ - case 358: /* limit_clause_opt */ - case 359: /* query_primary */ - case 361: /* sort_specification */ + case 244: /* cmd */ + case 247: /* literal */ + case 258: /* db_options */ + case 260: /* alter_db_options */ + case 265: /* retention */ + case 266: /* full_table_name */ + case 269: /* table_options */ + case 273: /* alter_table_clause */ + case 274: /* alter_table_options */ + case 277: /* signed_literal */ + case 278: /* create_subtable_clause */ + case 281: /* drop_table_clause */ + case 284: /* column_def */ + case 288: /* duration_literal */ + case 289: /* rollup_func_name */ + case 291: /* col_name */ + case 292: /* db_name_cond_opt */ + case 293: /* like_pattern_opt */ + case 294: /* table_name_cond */ + case 295: /* from_db_opt */ + case 297: /* index_options */ + case 299: /* sliding_opt */ + case 300: /* func */ + case 303: /* query_expression */ + case 306: /* explain_options */ + case 310: /* stream_options */ + case 311: /* into_opt */ + case 313: /* where_clause_opt */ + case 314: /* signed */ + case 315: /* literal_func */ + case 318: /* expression */ + case 319: /* pseudo_column */ + case 320: /* column_reference */ + case 321: /* function_expression */ + case 322: /* subquery */ + case 327: /* star_func_para */ + case 328: /* predicate */ + case 331: /* in_predicate_value */ + case 332: /* boolean_value_expression */ + case 333: /* boolean_primary */ + case 334: /* common_expression */ + case 335: /* from_clause */ + case 336: /* table_reference_list */ + case 337: /* table_reference */ + case 338: /* table_primary */ + case 339: /* joined_table */ + case 341: /* parenthesized_joined_table */ + case 343: /* search_condition */ + case 344: /* query_specification */ + case 348: /* range_opt */ + case 349: /* every_opt */ + case 350: /* fill_opt */ + case 351: /* twindow_clause_opt */ + case 353: /* having_clause_opt */ + case 355: /* select_item */ + case 358: /* query_expression_body */ + case 360: /* slimit_clause_opt */ + case 361: /* limit_clause_opt */ + case 362: /* query_primary */ + case 364: /* sort_specification */ +{ + nodesDestroyNode((yypminor->yy442)); +} + break; + case 245: /* account_options */ + case 246: /* alter_account_options */ + case 248: /* alter_account_option */ + case 308: /* bufsize_opt */ { - nodesDestroyNode((yypminor->yy392)); + } break; - case 243: /* account_options */ - case 244: /* alter_account_options */ - case 246: /* alter_account_option */ - case 305: /* bufsize_opt */ + case 249: /* user_name */ + case 252: /* priv_level */ + case 255: /* db_name */ + case 256: /* dnode_endpoint */ + case 275: /* column_name */ + case 283: /* table_name */ + case 290: /* function_name */ + case 296: /* index_name */ + case 302: /* topic_name */ + case 304: /* cgroup_name */ + case 309: /* stream_name */ + case 316: /* table_alias */ + case 317: /* column_alias */ + case 323: /* star_func */ + case 325: /* noarg_func */ + case 340: /* alias_opt */ { } break; - case 247: /* user_name */ - case 249: /* priv_level */ - case 252: /* db_name */ - case 253: /* dnode_endpoint */ - case 272: /* column_name */ - case 280: /* table_name */ - case 287: /* function_name */ - case 293: /* index_name */ - case 299: /* topic_name */ - case 301: /* cgroup_name */ - case 306: /* stream_name */ - case 313: /* table_alias */ - case 314: /* column_alias */ - case 320: /* star_func */ - case 322: /* noarg_func */ - case 337: /* alias_opt */ + case 250: /* sysinfo_opt */ { } break; - case 248: /* privileges */ - case 250: /* priv_type_list */ - case 251: /* priv_type */ + case 251: /* privileges */ + case 253: /* priv_type_list */ + case 254: /* priv_type */ { } break; - case 254: /* not_exists_opt */ - case 256: /* exists_opt */ - case 302: /* analyze_opt */ - case 304: /* agg_func_opt */ - case 342: /* set_quantifier_opt */ + case 257: /* not_exists_opt */ + case 259: /* exists_opt */ + case 305: /* analyze_opt */ + case 307: /* agg_func_opt */ + case 345: /* set_quantifier_opt */ { } break; - case 258: /* integer_list */ - case 259: /* variable_list */ - case 260: /* retention_list */ - case 264: /* column_def_list */ - case 265: /* tags_def_opt */ - case 267: /* multi_create_clause */ - case 268: /* tags_def */ - case 269: /* multi_drop_clause */ - case 276: /* specific_tags_opt */ - case 277: /* literal_list */ - case 279: /* col_name_list */ - case 282: /* duration_list */ - case 283: /* rollup_func_list */ - case 295: /* func_list */ - case 298: /* expression_list */ - case 309: /* dnode_list */ - case 321: /* star_func_para_list */ - case 323: /* other_para_list */ - case 343: /* select_list */ - case 344: /* partition_by_clause_opt */ - case 349: /* group_by_clause_opt */ - case 351: /* select_sublist */ - case 354: /* group_by_list */ - case 356: /* order_by_clause_opt */ - case 360: /* sort_specification_list */ + case 261: /* integer_list */ + case 262: /* variable_list */ + case 263: /* retention_list */ + case 267: /* column_def_list */ + case 268: /* tags_def_opt */ + case 270: /* multi_create_clause */ + case 271: /* tags_def */ + case 272: /* multi_drop_clause */ + case 279: /* specific_tags_opt */ + case 280: /* literal_list */ + case 282: /* col_name_list */ + case 285: /* duration_list */ + case 286: /* rollup_func_list */ + case 298: /* func_list */ + case 301: /* expression_list */ + case 312: /* dnode_list */ + case 324: /* star_func_para_list */ + case 326: /* other_para_list */ + case 346: /* select_list */ + case 347: /* partition_by_clause_opt */ + case 352: /* group_by_clause_opt */ + case 354: /* select_sublist */ + case 357: /* group_by_list */ + case 359: /* order_by_clause_opt */ + case 363: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy600)); + nodesDestroyList((yypminor->yy368)); } break; - case 261: /* alter_db_option */ - case 284: /* alter_table_option */ + case 264: /* alter_db_option */ + case 287: /* alter_table_option */ { } break; - case 273: /* type_name */ + case 276: /* type_name */ { } break; - case 326: /* compare_op */ - case 327: /* in_op */ + case 329: /* compare_op */ + case 330: /* in_op */ { } break; - case 339: /* join_type */ + case 342: /* join_type */ { } break; - case 353: /* fill_mode */ + case 356: /* fill_mode */ { } break; - case 362: /* ordering_specification_opt */ + case 365: /* ordering_specification_opt */ { } break; - case 363: /* null_ordering_opt */ + case 366: /* null_ordering_opt */ { } @@ -2607,472 +2636,478 @@ 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[] = { - { 242, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - { 242, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - { 243, 0 }, /* (2) account_options ::= */ - { 243, -3 }, /* (3) account_options ::= account_options PPS literal */ - { 243, -3 }, /* (4) account_options ::= account_options TSERIES literal */ - { 243, -3 }, /* (5) account_options ::= account_options STORAGE literal */ - { 243, -3 }, /* (6) account_options ::= account_options STREAMS literal */ - { 243, -3 }, /* (7) account_options ::= account_options QTIME literal */ - { 243, -3 }, /* (8) account_options ::= account_options DBS literal */ - { 243, -3 }, /* (9) account_options ::= account_options USERS literal */ - { 243, -3 }, /* (10) account_options ::= account_options CONNS literal */ - { 243, -3 }, /* (11) account_options ::= account_options STATE literal */ - { 244, -1 }, /* (12) alter_account_options ::= alter_account_option */ - { 244, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - { 246, -2 }, /* (14) alter_account_option ::= PASS literal */ - { 246, -2 }, /* (15) alter_account_option ::= PPS literal */ - { 246, -2 }, /* (16) alter_account_option ::= TSERIES literal */ - { 246, -2 }, /* (17) alter_account_option ::= STORAGE literal */ - { 246, -2 }, /* (18) alter_account_option ::= STREAMS literal */ - { 246, -2 }, /* (19) alter_account_option ::= QTIME literal */ - { 246, -2 }, /* (20) alter_account_option ::= DBS literal */ - { 246, -2 }, /* (21) alter_account_option ::= USERS literal */ - { 246, -2 }, /* (22) alter_account_option ::= CONNS literal */ - { 246, -2 }, /* (23) alter_account_option ::= STATE literal */ - { 242, -5 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING */ - { 242, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - { 242, -5 }, /* (26) cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ - { 242, -3 }, /* (27) cmd ::= DROP USER user_name */ - { 242, -6 }, /* (28) cmd ::= GRANT privileges ON priv_level TO user_name */ - { 242, -6 }, /* (29) cmd ::= REVOKE privileges ON priv_level FROM user_name */ - { 248, -1 }, /* (30) privileges ::= ALL */ - { 248, -1 }, /* (31) privileges ::= priv_type_list */ - { 250, -1 }, /* (32) priv_type_list ::= priv_type */ - { 250, -3 }, /* (33) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - { 251, -1 }, /* (34) priv_type ::= READ */ - { 251, -1 }, /* (35) priv_type ::= WRITE */ - { 249, -3 }, /* (36) priv_level ::= NK_STAR NK_DOT NK_STAR */ - { 249, -3 }, /* (37) priv_level ::= db_name NK_DOT NK_STAR */ - { 242, -3 }, /* (38) cmd ::= CREATE DNODE dnode_endpoint */ - { 242, -5 }, /* (39) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ - { 242, -3 }, /* (40) cmd ::= DROP DNODE NK_INTEGER */ - { 242, -3 }, /* (41) cmd ::= DROP DNODE dnode_endpoint */ - { 242, -4 }, /* (42) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - { 242, -5 }, /* (43) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - { 242, -4 }, /* (44) cmd ::= ALTER ALL DNODES NK_STRING */ - { 242, -5 }, /* (45) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - { 253, -1 }, /* (46) dnode_endpoint ::= NK_STRING */ - { 253, -1 }, /* (47) dnode_endpoint ::= NK_ID */ - { 253, -1 }, /* (48) dnode_endpoint ::= NK_IPTOKEN */ - { 242, -3 }, /* (49) cmd ::= ALTER LOCAL NK_STRING */ - { 242, -4 }, /* (50) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - { 242, -5 }, /* (51) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - { 242, -5 }, /* (52) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - { 242, -5 }, /* (53) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - { 242, -5 }, /* (54) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - { 242, -5 }, /* (55) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - { 242, -5 }, /* (56) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - { 242, -5 }, /* (57) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - { 242, -5 }, /* (58) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - { 242, -5 }, /* (59) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - { 242, -4 }, /* (60) cmd ::= DROP DATABASE exists_opt db_name */ - { 242, -2 }, /* (61) cmd ::= USE db_name */ - { 242, -4 }, /* (62) cmd ::= ALTER DATABASE db_name alter_db_options */ - { 254, -3 }, /* (63) not_exists_opt ::= IF NOT EXISTS */ - { 254, 0 }, /* (64) not_exists_opt ::= */ - { 256, -2 }, /* (65) exists_opt ::= IF EXISTS */ - { 256, 0 }, /* (66) exists_opt ::= */ - { 255, 0 }, /* (67) db_options ::= */ - { 255, -3 }, /* (68) db_options ::= db_options BUFFER NK_INTEGER */ - { 255, -3 }, /* (69) db_options ::= db_options CACHELAST NK_INTEGER */ - { 255, -3 }, /* (70) db_options ::= db_options COMP NK_INTEGER */ - { 255, -3 }, /* (71) db_options ::= db_options DURATION NK_INTEGER */ - { 255, -3 }, /* (72) db_options ::= db_options DURATION NK_VARIABLE */ - { 255, -3 }, /* (73) db_options ::= db_options FSYNC NK_INTEGER */ - { 255, -3 }, /* (74) db_options ::= db_options MAXROWS NK_INTEGER */ - { 255, -3 }, /* (75) db_options ::= db_options MINROWS NK_INTEGER */ - { 255, -3 }, /* (76) db_options ::= db_options KEEP integer_list */ - { 255, -3 }, /* (77) db_options ::= db_options KEEP variable_list */ - { 255, -3 }, /* (78) db_options ::= db_options PAGES NK_INTEGER */ - { 255, -3 }, /* (79) db_options ::= db_options PAGESIZE NK_INTEGER */ - { 255, -3 }, /* (80) db_options ::= db_options PRECISION NK_STRING */ - { 255, -3 }, /* (81) db_options ::= db_options REPLICA NK_INTEGER */ - { 255, -3 }, /* (82) db_options ::= db_options STRICT NK_INTEGER */ - { 255, -3 }, /* (83) db_options ::= db_options WAL NK_INTEGER */ - { 255, -3 }, /* (84) db_options ::= db_options VGROUPS NK_INTEGER */ - { 255, -3 }, /* (85) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - { 255, -3 }, /* (86) db_options ::= db_options RETENTIONS retention_list */ - { 255, -3 }, /* (87) db_options ::= db_options SCHEMALESS NK_INTEGER */ - { 257, -1 }, /* (88) alter_db_options ::= alter_db_option */ - { 257, -2 }, /* (89) alter_db_options ::= alter_db_options alter_db_option */ - { 261, -2 }, /* (90) alter_db_option ::= BUFFER NK_INTEGER */ - { 261, -2 }, /* (91) alter_db_option ::= CACHELAST NK_INTEGER */ - { 261, -2 }, /* (92) alter_db_option ::= FSYNC NK_INTEGER */ - { 261, -2 }, /* (93) alter_db_option ::= KEEP integer_list */ - { 261, -2 }, /* (94) alter_db_option ::= KEEP variable_list */ - { 261, -2 }, /* (95) alter_db_option ::= PAGES NK_INTEGER */ - { 261, -2 }, /* (96) alter_db_option ::= REPLICA NK_INTEGER */ - { 261, -2 }, /* (97) alter_db_option ::= STRICT NK_INTEGER */ - { 261, -2 }, /* (98) alter_db_option ::= WAL NK_INTEGER */ - { 258, -1 }, /* (99) integer_list ::= NK_INTEGER */ - { 258, -3 }, /* (100) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 259, -1 }, /* (101) variable_list ::= NK_VARIABLE */ - { 259, -3 }, /* (102) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 260, -1 }, /* (103) retention_list ::= retention */ - { 260, -3 }, /* (104) retention_list ::= retention_list NK_COMMA retention */ - { 262, -3 }, /* (105) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 242, -9 }, /* (106) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 242, -3 }, /* (107) cmd ::= CREATE TABLE multi_create_clause */ - { 242, -9 }, /* (108) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 242, -3 }, /* (109) cmd ::= DROP TABLE multi_drop_clause */ - { 242, -4 }, /* (110) cmd ::= DROP STABLE exists_opt full_table_name */ - { 242, -3 }, /* (111) cmd ::= ALTER TABLE alter_table_clause */ - { 242, -3 }, /* (112) cmd ::= ALTER STABLE alter_table_clause */ - { 270, -2 }, /* (113) alter_table_clause ::= full_table_name alter_table_options */ - { 270, -5 }, /* (114) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 270, -4 }, /* (115) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 270, -5 }, /* (116) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 270, -5 }, /* (117) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 270, -5 }, /* (118) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 270, -4 }, /* (119) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 270, -5 }, /* (120) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 270, -5 }, /* (121) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 270, -6 }, /* (122) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - { 267, -1 }, /* (123) multi_create_clause ::= create_subtable_clause */ - { 267, -2 }, /* (124) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 275, -10 }, /* (125) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ - { 269, -1 }, /* (126) multi_drop_clause ::= drop_table_clause */ - { 269, -2 }, /* (127) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 278, -2 }, /* (128) drop_table_clause ::= exists_opt full_table_name */ - { 276, 0 }, /* (129) specific_tags_opt ::= */ - { 276, -3 }, /* (130) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 263, -1 }, /* (131) full_table_name ::= table_name */ - { 263, -3 }, /* (132) full_table_name ::= db_name NK_DOT table_name */ - { 264, -1 }, /* (133) column_def_list ::= column_def */ - { 264, -3 }, /* (134) column_def_list ::= column_def_list NK_COMMA column_def */ - { 281, -2 }, /* (135) column_def ::= column_name type_name */ - { 281, -4 }, /* (136) column_def ::= column_name type_name COMMENT NK_STRING */ - { 273, -1 }, /* (137) type_name ::= BOOL */ - { 273, -1 }, /* (138) type_name ::= TINYINT */ - { 273, -1 }, /* (139) type_name ::= SMALLINT */ - { 273, -1 }, /* (140) type_name ::= INT */ - { 273, -1 }, /* (141) type_name ::= INTEGER */ - { 273, -1 }, /* (142) type_name ::= BIGINT */ - { 273, -1 }, /* (143) type_name ::= FLOAT */ - { 273, -1 }, /* (144) type_name ::= DOUBLE */ - { 273, -4 }, /* (145) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 273, -1 }, /* (146) type_name ::= TIMESTAMP */ - { 273, -4 }, /* (147) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 273, -2 }, /* (148) type_name ::= TINYINT UNSIGNED */ - { 273, -2 }, /* (149) type_name ::= SMALLINT UNSIGNED */ - { 273, -2 }, /* (150) type_name ::= INT UNSIGNED */ - { 273, -2 }, /* (151) type_name ::= BIGINT UNSIGNED */ - { 273, -1 }, /* (152) type_name ::= JSON */ - { 273, -4 }, /* (153) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 273, -1 }, /* (154) type_name ::= MEDIUMBLOB */ - { 273, -1 }, /* (155) type_name ::= BLOB */ - { 273, -4 }, /* (156) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 273, -1 }, /* (157) type_name ::= DECIMAL */ - { 273, -4 }, /* (158) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 273, -6 }, /* (159) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 265, 0 }, /* (160) tags_def_opt ::= */ - { 265, -1 }, /* (161) tags_def_opt ::= tags_def */ - { 268, -4 }, /* (162) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 266, 0 }, /* (163) table_options ::= */ - { 266, -3 }, /* (164) table_options ::= table_options COMMENT NK_STRING */ - { 266, -3 }, /* (165) table_options ::= table_options MAX_DELAY duration_list */ - { 266, -3 }, /* (166) table_options ::= table_options WATERMARK duration_list */ - { 266, -5 }, /* (167) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - { 266, -3 }, /* (168) table_options ::= table_options TTL NK_INTEGER */ - { 266, -5 }, /* (169) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 271, -1 }, /* (170) alter_table_options ::= alter_table_option */ - { 271, -2 }, /* (171) alter_table_options ::= alter_table_options alter_table_option */ - { 284, -2 }, /* (172) alter_table_option ::= COMMENT NK_STRING */ - { 284, -2 }, /* (173) alter_table_option ::= TTL NK_INTEGER */ - { 282, -1 }, /* (174) duration_list ::= duration_literal */ - { 282, -3 }, /* (175) duration_list ::= duration_list NK_COMMA duration_literal */ - { 283, -1 }, /* (176) rollup_func_list ::= rollup_func_name */ - { 283, -3 }, /* (177) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - { 286, -1 }, /* (178) rollup_func_name ::= function_name */ - { 286, -1 }, /* (179) rollup_func_name ::= FIRST */ - { 286, -1 }, /* (180) rollup_func_name ::= LAST */ - { 279, -1 }, /* (181) col_name_list ::= col_name */ - { 279, -3 }, /* (182) col_name_list ::= col_name_list NK_COMMA col_name */ - { 288, -1 }, /* (183) col_name ::= column_name */ - { 242, -2 }, /* (184) cmd ::= SHOW DNODES */ - { 242, -2 }, /* (185) cmd ::= SHOW USERS */ - { 242, -2 }, /* (186) cmd ::= SHOW DATABASES */ - { 242, -4 }, /* (187) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 242, -4 }, /* (188) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 242, -3 }, /* (189) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 242, -2 }, /* (190) cmd ::= SHOW MNODES */ - { 242, -2 }, /* (191) cmd ::= SHOW MODULES */ - { 242, -2 }, /* (192) cmd ::= SHOW QNODES */ - { 242, -2 }, /* (193) cmd ::= SHOW FUNCTIONS */ - { 242, -5 }, /* (194) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 242, -2 }, /* (195) cmd ::= SHOW STREAMS */ - { 242, -2 }, /* (196) cmd ::= SHOW ACCOUNTS */ - { 242, -2 }, /* (197) cmd ::= SHOW APPS */ - { 242, -2 }, /* (198) cmd ::= SHOW CONNECTIONS */ - { 242, -2 }, /* (199) cmd ::= SHOW LICENCE */ - { 242, -2 }, /* (200) cmd ::= SHOW GRANTS */ - { 242, -4 }, /* (201) cmd ::= SHOW CREATE DATABASE db_name */ - { 242, -4 }, /* (202) cmd ::= SHOW CREATE TABLE full_table_name */ - { 242, -4 }, /* (203) cmd ::= SHOW CREATE STABLE full_table_name */ - { 242, -2 }, /* (204) cmd ::= SHOW QUERIES */ - { 242, -2 }, /* (205) cmd ::= SHOW SCORES */ - { 242, -2 }, /* (206) cmd ::= SHOW TOPICS */ - { 242, -2 }, /* (207) cmd ::= SHOW VARIABLES */ - { 242, -3 }, /* (208) cmd ::= SHOW LOCAL VARIABLES */ - { 242, -4 }, /* (209) cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ - { 242, -2 }, /* (210) cmd ::= SHOW BNODES */ - { 242, -2 }, /* (211) cmd ::= SHOW SNODES */ - { 242, -2 }, /* (212) cmd ::= SHOW CLUSTER */ - { 242, -2 }, /* (213) cmd ::= SHOW TRANSACTIONS */ - { 242, -4 }, /* (214) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - { 289, 0 }, /* (215) db_name_cond_opt ::= */ - { 289, -2 }, /* (216) db_name_cond_opt ::= db_name NK_DOT */ - { 290, 0 }, /* (217) like_pattern_opt ::= */ - { 290, -2 }, /* (218) like_pattern_opt ::= LIKE NK_STRING */ - { 291, -1 }, /* (219) table_name_cond ::= table_name */ - { 292, 0 }, /* (220) from_db_opt ::= */ - { 292, -2 }, /* (221) from_db_opt ::= FROM db_name */ - { 242, -8 }, /* (222) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 242, -10 }, /* (223) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 242, -6 }, /* (224) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 294, 0 }, /* (225) index_options ::= */ - { 294, -9 }, /* (226) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 294, -11 }, /* (227) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 295, -1 }, /* (228) func_list ::= func */ - { 295, -3 }, /* (229) func_list ::= func_list NK_COMMA func */ - { 297, -4 }, /* (230) func ::= function_name NK_LP expression_list NK_RP */ - { 242, -6 }, /* (231) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 242, -7 }, /* (232) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ - { 242, -7 }, /* (233) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ - { 242, -4 }, /* (234) cmd ::= DROP TOPIC exists_opt topic_name */ - { 242, -7 }, /* (235) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - { 242, -2 }, /* (236) cmd ::= DESC full_table_name */ - { 242, -2 }, /* (237) cmd ::= DESCRIBE full_table_name */ - { 242, -3 }, /* (238) cmd ::= RESET QUERY CACHE */ - { 242, -4 }, /* (239) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 302, 0 }, /* (240) analyze_opt ::= */ - { 302, -1 }, /* (241) analyze_opt ::= ANALYZE */ - { 303, 0 }, /* (242) explain_options ::= */ - { 303, -3 }, /* (243) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 303, -3 }, /* (244) explain_options ::= explain_options RATIO NK_FLOAT */ - { 242, -6 }, /* (245) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ - { 242, -10 }, /* (246) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ - { 242, -4 }, /* (247) cmd ::= DROP FUNCTION exists_opt function_name */ - { 304, 0 }, /* (248) agg_func_opt ::= */ - { 304, -1 }, /* (249) agg_func_opt ::= AGGREGATE */ - { 305, 0 }, /* (250) bufsize_opt ::= */ - { 305, -2 }, /* (251) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 242, -8 }, /* (252) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ - { 242, -4 }, /* (253) cmd ::= DROP STREAM exists_opt stream_name */ - { 308, 0 }, /* (254) into_opt ::= */ - { 308, -2 }, /* (255) into_opt ::= INTO full_table_name */ - { 307, 0 }, /* (256) stream_options ::= */ - { 307, -3 }, /* (257) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 307, -3 }, /* (258) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 307, -4 }, /* (259) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - { 307, -3 }, /* (260) stream_options ::= stream_options WATERMARK duration_literal */ - { 242, -3 }, /* (261) cmd ::= KILL CONNECTION NK_INTEGER */ - { 242, -3 }, /* (262) cmd ::= KILL QUERY NK_STRING */ - { 242, -3 }, /* (263) cmd ::= KILL TRANSACTION NK_INTEGER */ - { 242, -2 }, /* (264) cmd ::= BALANCE VGROUP */ - { 242, -4 }, /* (265) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 242, -4 }, /* (266) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 242, -3 }, /* (267) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 309, -2 }, /* (268) dnode_list ::= DNODE NK_INTEGER */ - { 309, -3 }, /* (269) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 242, -3 }, /* (270) cmd ::= SYNCDB db_name REPLICA */ - { 242, -4 }, /* (271) cmd ::= DELETE FROM full_table_name where_clause_opt */ - { 242, -1 }, /* (272) cmd ::= query_expression */ - { 245, -1 }, /* (273) literal ::= NK_INTEGER */ - { 245, -1 }, /* (274) literal ::= NK_FLOAT */ - { 245, -1 }, /* (275) literal ::= NK_STRING */ - { 245, -1 }, /* (276) literal ::= NK_BOOL */ - { 245, -2 }, /* (277) literal ::= TIMESTAMP NK_STRING */ - { 245, -1 }, /* (278) literal ::= duration_literal */ - { 245, -1 }, /* (279) literal ::= NULL */ - { 245, -1 }, /* (280) literal ::= NK_QUESTION */ - { 285, -1 }, /* (281) duration_literal ::= NK_VARIABLE */ - { 311, -1 }, /* (282) signed ::= NK_INTEGER */ - { 311, -2 }, /* (283) signed ::= NK_PLUS NK_INTEGER */ - { 311, -2 }, /* (284) signed ::= NK_MINUS NK_INTEGER */ - { 311, -1 }, /* (285) signed ::= NK_FLOAT */ - { 311, -2 }, /* (286) signed ::= NK_PLUS NK_FLOAT */ - { 311, -2 }, /* (287) signed ::= NK_MINUS NK_FLOAT */ - { 274, -1 }, /* (288) signed_literal ::= signed */ - { 274, -1 }, /* (289) signed_literal ::= NK_STRING */ - { 274, -1 }, /* (290) signed_literal ::= NK_BOOL */ - { 274, -2 }, /* (291) signed_literal ::= TIMESTAMP NK_STRING */ - { 274, -1 }, /* (292) signed_literal ::= duration_literal */ - { 274, -1 }, /* (293) signed_literal ::= NULL */ - { 274, -1 }, /* (294) signed_literal ::= literal_func */ - { 277, -1 }, /* (295) literal_list ::= signed_literal */ - { 277, -3 }, /* (296) literal_list ::= literal_list NK_COMMA signed_literal */ - { 252, -1 }, /* (297) db_name ::= NK_ID */ - { 280, -1 }, /* (298) table_name ::= NK_ID */ - { 272, -1 }, /* (299) column_name ::= NK_ID */ - { 287, -1 }, /* (300) function_name ::= NK_ID */ - { 313, -1 }, /* (301) table_alias ::= NK_ID */ - { 314, -1 }, /* (302) column_alias ::= NK_ID */ - { 247, -1 }, /* (303) user_name ::= NK_ID */ - { 293, -1 }, /* (304) index_name ::= NK_ID */ - { 299, -1 }, /* (305) topic_name ::= NK_ID */ - { 306, -1 }, /* (306) stream_name ::= NK_ID */ - { 301, -1 }, /* (307) cgroup_name ::= NK_ID */ - { 315, -1 }, /* (308) expression ::= literal */ - { 315, -1 }, /* (309) expression ::= pseudo_column */ - { 315, -1 }, /* (310) expression ::= column_reference */ - { 315, -1 }, /* (311) expression ::= function_expression */ - { 315, -1 }, /* (312) expression ::= subquery */ - { 315, -3 }, /* (313) expression ::= NK_LP expression NK_RP */ - { 315, -2 }, /* (314) expression ::= NK_PLUS expression */ - { 315, -2 }, /* (315) expression ::= NK_MINUS expression */ - { 315, -3 }, /* (316) expression ::= expression NK_PLUS expression */ - { 315, -3 }, /* (317) expression ::= expression NK_MINUS expression */ - { 315, -3 }, /* (318) expression ::= expression NK_STAR expression */ - { 315, -3 }, /* (319) expression ::= expression NK_SLASH expression */ - { 315, -3 }, /* (320) expression ::= expression NK_REM expression */ - { 315, -3 }, /* (321) expression ::= column_reference NK_ARROW NK_STRING */ - { 298, -1 }, /* (322) expression_list ::= expression */ - { 298, -3 }, /* (323) expression_list ::= expression_list NK_COMMA expression */ - { 317, -1 }, /* (324) column_reference ::= column_name */ - { 317, -3 }, /* (325) column_reference ::= table_name NK_DOT column_name */ - { 316, -1 }, /* (326) pseudo_column ::= ROWTS */ - { 316, -1 }, /* (327) pseudo_column ::= TBNAME */ - { 316, -3 }, /* (328) pseudo_column ::= table_name NK_DOT TBNAME */ - { 316, -1 }, /* (329) pseudo_column ::= QSTARTTS */ - { 316, -1 }, /* (330) pseudo_column ::= QENDTS */ - { 316, -1 }, /* (331) pseudo_column ::= WSTARTTS */ - { 316, -1 }, /* (332) pseudo_column ::= WENDTS */ - { 316, -1 }, /* (333) pseudo_column ::= WDURATION */ - { 318, -4 }, /* (334) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 318, -4 }, /* (335) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 318, -6 }, /* (336) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 318, -1 }, /* (337) function_expression ::= literal_func */ - { 312, -3 }, /* (338) literal_func ::= noarg_func NK_LP NK_RP */ - { 312, -1 }, /* (339) literal_func ::= NOW */ - { 322, -1 }, /* (340) noarg_func ::= NOW */ - { 322, -1 }, /* (341) noarg_func ::= TODAY */ - { 322, -1 }, /* (342) noarg_func ::= TIMEZONE */ - { 320, -1 }, /* (343) star_func ::= COUNT */ - { 320, -1 }, /* (344) star_func ::= FIRST */ - { 320, -1 }, /* (345) star_func ::= LAST */ - { 320, -1 }, /* (346) star_func ::= LAST_ROW */ - { 321, -1 }, /* (347) star_func_para_list ::= NK_STAR */ - { 321, -1 }, /* (348) star_func_para_list ::= other_para_list */ - { 323, -1 }, /* (349) other_para_list ::= star_func_para */ - { 323, -3 }, /* (350) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 324, -1 }, /* (351) star_func_para ::= expression */ - { 324, -3 }, /* (352) star_func_para ::= table_name NK_DOT NK_STAR */ - { 325, -3 }, /* (353) predicate ::= expression compare_op expression */ - { 325, -5 }, /* (354) predicate ::= expression BETWEEN expression AND expression */ - { 325, -6 }, /* (355) predicate ::= expression NOT BETWEEN expression AND expression */ - { 325, -3 }, /* (356) predicate ::= expression IS NULL */ - { 325, -4 }, /* (357) predicate ::= expression IS NOT NULL */ - { 325, -3 }, /* (358) predicate ::= expression in_op in_predicate_value */ - { 326, -1 }, /* (359) compare_op ::= NK_LT */ - { 326, -1 }, /* (360) compare_op ::= NK_GT */ - { 326, -1 }, /* (361) compare_op ::= NK_LE */ - { 326, -1 }, /* (362) compare_op ::= NK_GE */ - { 326, -1 }, /* (363) compare_op ::= NK_NE */ - { 326, -1 }, /* (364) compare_op ::= NK_EQ */ - { 326, -1 }, /* (365) compare_op ::= LIKE */ - { 326, -2 }, /* (366) compare_op ::= NOT LIKE */ - { 326, -1 }, /* (367) compare_op ::= MATCH */ - { 326, -1 }, /* (368) compare_op ::= NMATCH */ - { 326, -1 }, /* (369) compare_op ::= CONTAINS */ - { 327, -1 }, /* (370) in_op ::= IN */ - { 327, -2 }, /* (371) in_op ::= NOT IN */ - { 328, -3 }, /* (372) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 329, -1 }, /* (373) boolean_value_expression ::= boolean_primary */ - { 329, -2 }, /* (374) boolean_value_expression ::= NOT boolean_primary */ - { 329, -3 }, /* (375) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 329, -3 }, /* (376) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 330, -1 }, /* (377) boolean_primary ::= predicate */ - { 330, -3 }, /* (378) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 331, -1 }, /* (379) common_expression ::= expression */ - { 331, -1 }, /* (380) common_expression ::= boolean_value_expression */ - { 332, -2 }, /* (381) from_clause ::= FROM table_reference_list */ - { 333, -1 }, /* (382) table_reference_list ::= table_reference */ - { 333, -3 }, /* (383) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 334, -1 }, /* (384) table_reference ::= table_primary */ - { 334, -1 }, /* (385) table_reference ::= joined_table */ - { 335, -2 }, /* (386) table_primary ::= table_name alias_opt */ - { 335, -4 }, /* (387) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 335, -2 }, /* (388) table_primary ::= subquery alias_opt */ - { 335, -1 }, /* (389) table_primary ::= parenthesized_joined_table */ - { 337, 0 }, /* (390) alias_opt ::= */ - { 337, -1 }, /* (391) alias_opt ::= table_alias */ - { 337, -2 }, /* (392) alias_opt ::= AS table_alias */ - { 338, -3 }, /* (393) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 338, -3 }, /* (394) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 336, -6 }, /* (395) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 339, 0 }, /* (396) join_type ::= */ - { 339, -1 }, /* (397) join_type ::= INNER */ - { 341, -12 }, /* (398) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 342, 0 }, /* (399) set_quantifier_opt ::= */ - { 342, -1 }, /* (400) set_quantifier_opt ::= DISTINCT */ - { 342, -1 }, /* (401) set_quantifier_opt ::= ALL */ - { 343, -1 }, /* (402) select_list ::= NK_STAR */ - { 343, -1 }, /* (403) select_list ::= select_sublist */ - { 351, -1 }, /* (404) select_sublist ::= select_item */ - { 351, -3 }, /* (405) select_sublist ::= select_sublist NK_COMMA select_item */ - { 352, -1 }, /* (406) select_item ::= common_expression */ - { 352, -2 }, /* (407) select_item ::= common_expression column_alias */ - { 352, -3 }, /* (408) select_item ::= common_expression AS column_alias */ - { 352, -3 }, /* (409) select_item ::= table_name NK_DOT NK_STAR */ - { 310, 0 }, /* (410) where_clause_opt ::= */ - { 310, -2 }, /* (411) where_clause_opt ::= WHERE search_condition */ - { 344, 0 }, /* (412) partition_by_clause_opt ::= */ - { 344, -3 }, /* (413) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 348, 0 }, /* (414) twindow_clause_opt ::= */ - { 348, -6 }, /* (415) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 348, -4 }, /* (416) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 348, -6 }, /* (417) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 348, -8 }, /* (418) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 296, 0 }, /* (419) sliding_opt ::= */ - { 296, -4 }, /* (420) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 347, 0 }, /* (421) fill_opt ::= */ - { 347, -4 }, /* (422) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 347, -6 }, /* (423) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 353, -1 }, /* (424) fill_mode ::= NONE */ - { 353, -1 }, /* (425) fill_mode ::= PREV */ - { 353, -1 }, /* (426) fill_mode ::= NULL */ - { 353, -1 }, /* (427) fill_mode ::= LINEAR */ - { 353, -1 }, /* (428) fill_mode ::= NEXT */ - { 349, 0 }, /* (429) group_by_clause_opt ::= */ - { 349, -3 }, /* (430) group_by_clause_opt ::= GROUP BY group_by_list */ - { 354, -1 }, /* (431) group_by_list ::= expression */ - { 354, -3 }, /* (432) group_by_list ::= group_by_list NK_COMMA expression */ - { 350, 0 }, /* (433) having_clause_opt ::= */ - { 350, -2 }, /* (434) having_clause_opt ::= HAVING search_condition */ - { 345, 0 }, /* (435) range_opt ::= */ - { 345, -6 }, /* (436) range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ - { 346, 0 }, /* (437) every_opt ::= */ - { 346, -4 }, /* (438) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - { 300, -4 }, /* (439) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 355, -1 }, /* (440) query_expression_body ::= query_primary */ - { 355, -4 }, /* (441) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 355, -3 }, /* (442) query_expression_body ::= query_expression_body UNION query_expression_body */ - { 359, -1 }, /* (443) query_primary ::= query_specification */ - { 359, -6 }, /* (444) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ - { 356, 0 }, /* (445) order_by_clause_opt ::= */ - { 356, -3 }, /* (446) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 357, 0 }, /* (447) slimit_clause_opt ::= */ - { 357, -2 }, /* (448) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 357, -4 }, /* (449) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 357, -4 }, /* (450) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 358, 0 }, /* (451) limit_clause_opt ::= */ - { 358, -2 }, /* (452) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 358, -4 }, /* (453) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 358, -4 }, /* (454) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 319, -3 }, /* (455) subquery ::= NK_LP query_expression NK_RP */ - { 340, -1 }, /* (456) search_condition ::= common_expression */ - { 360, -1 }, /* (457) sort_specification_list ::= sort_specification */ - { 360, -3 }, /* (458) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 361, -3 }, /* (459) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 362, 0 }, /* (460) ordering_specification_opt ::= */ - { 362, -1 }, /* (461) ordering_specification_opt ::= ASC */ - { 362, -1 }, /* (462) ordering_specification_opt ::= DESC */ - { 363, 0 }, /* (463) null_ordering_opt ::= */ - { 363, -2 }, /* (464) null_ordering_opt ::= NULLS FIRST */ - { 363, -2 }, /* (465) null_ordering_opt ::= NULLS LAST */ + { 244, -6 }, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + { 244, -4 }, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + { 245, 0 }, /* (2) account_options ::= */ + { 245, -3 }, /* (3) account_options ::= account_options PPS literal */ + { 245, -3 }, /* (4) account_options ::= account_options TSERIES literal */ + { 245, -3 }, /* (5) account_options ::= account_options STORAGE literal */ + { 245, -3 }, /* (6) account_options ::= account_options STREAMS literal */ + { 245, -3 }, /* (7) account_options ::= account_options QTIME literal */ + { 245, -3 }, /* (8) account_options ::= account_options DBS literal */ + { 245, -3 }, /* (9) account_options ::= account_options USERS literal */ + { 245, -3 }, /* (10) account_options ::= account_options CONNS literal */ + { 245, -3 }, /* (11) account_options ::= account_options STATE literal */ + { 246, -1 }, /* (12) alter_account_options ::= alter_account_option */ + { 246, -2 }, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + { 248, -2 }, /* (14) alter_account_option ::= PASS literal */ + { 248, -2 }, /* (15) alter_account_option ::= PPS literal */ + { 248, -2 }, /* (16) alter_account_option ::= TSERIES literal */ + { 248, -2 }, /* (17) alter_account_option ::= STORAGE literal */ + { 248, -2 }, /* (18) alter_account_option ::= STREAMS literal */ + { 248, -2 }, /* (19) alter_account_option ::= QTIME literal */ + { 248, -2 }, /* (20) alter_account_option ::= DBS literal */ + { 248, -2 }, /* (21) alter_account_option ::= USERS literal */ + { 248, -2 }, /* (22) alter_account_option ::= CONNS literal */ + { 248, -2 }, /* (23) alter_account_option ::= STATE literal */ + { 244, -6 }, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ + { 244, -5 }, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ + { 244, -5 }, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ + { 244, -5 }, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ + { 244, -3 }, /* (28) cmd ::= DROP USER user_name */ + { 250, 0 }, /* (29) sysinfo_opt ::= */ + { 250, -2 }, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ + { 244, -6 }, /* (31) cmd ::= GRANT privileges ON priv_level TO user_name */ + { 244, -6 }, /* (32) cmd ::= REVOKE privileges ON priv_level FROM user_name */ + { 251, -1 }, /* (33) privileges ::= ALL */ + { 251, -1 }, /* (34) privileges ::= priv_type_list */ + { 253, -1 }, /* (35) priv_type_list ::= priv_type */ + { 253, -3 }, /* (36) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + { 254, -1 }, /* (37) priv_type ::= READ */ + { 254, -1 }, /* (38) priv_type ::= WRITE */ + { 252, -3 }, /* (39) priv_level ::= NK_STAR NK_DOT NK_STAR */ + { 252, -3 }, /* (40) priv_level ::= db_name NK_DOT NK_STAR */ + { 244, -3 }, /* (41) cmd ::= CREATE DNODE dnode_endpoint */ + { 244, -5 }, /* (42) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + { 244, -3 }, /* (43) cmd ::= DROP DNODE NK_INTEGER */ + { 244, -3 }, /* (44) cmd ::= DROP DNODE dnode_endpoint */ + { 244, -4 }, /* (45) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + { 244, -5 }, /* (46) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + { 244, -4 }, /* (47) cmd ::= ALTER ALL DNODES NK_STRING */ + { 244, -5 }, /* (48) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + { 256, -1 }, /* (49) dnode_endpoint ::= NK_STRING */ + { 256, -1 }, /* (50) dnode_endpoint ::= NK_ID */ + { 256, -1 }, /* (51) dnode_endpoint ::= NK_IPTOKEN */ + { 244, -3 }, /* (52) cmd ::= ALTER LOCAL NK_STRING */ + { 244, -4 }, /* (53) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + { 244, -5 }, /* (54) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + { 244, -5 }, /* (55) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + { 244, -5 }, /* (56) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + { 244, -5 }, /* (57) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + { 244, -5 }, /* (58) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + { 244, -5 }, /* (59) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + { 244, -5 }, /* (60) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + { 244, -5 }, /* (61) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + { 244, -5 }, /* (62) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + { 244, -4 }, /* (63) cmd ::= DROP DATABASE exists_opt db_name */ + { 244, -2 }, /* (64) cmd ::= USE db_name */ + { 244, -4 }, /* (65) cmd ::= ALTER DATABASE db_name alter_db_options */ + { 257, -3 }, /* (66) not_exists_opt ::= IF NOT EXISTS */ + { 257, 0 }, /* (67) not_exists_opt ::= */ + { 259, -2 }, /* (68) exists_opt ::= IF EXISTS */ + { 259, 0 }, /* (69) exists_opt ::= */ + { 258, 0 }, /* (70) db_options ::= */ + { 258, -3 }, /* (71) db_options ::= db_options BUFFER NK_INTEGER */ + { 258, -3 }, /* (72) db_options ::= db_options CACHELAST NK_INTEGER */ + { 258, -3 }, /* (73) db_options ::= db_options COMP NK_INTEGER */ + { 258, -3 }, /* (74) db_options ::= db_options DURATION NK_INTEGER */ + { 258, -3 }, /* (75) db_options ::= db_options DURATION NK_VARIABLE */ + { 258, -3 }, /* (76) db_options ::= db_options FSYNC NK_INTEGER */ + { 258, -3 }, /* (77) db_options ::= db_options MAXROWS NK_INTEGER */ + { 258, -3 }, /* (78) db_options ::= db_options MINROWS NK_INTEGER */ + { 258, -3 }, /* (79) db_options ::= db_options KEEP integer_list */ + { 258, -3 }, /* (80) db_options ::= db_options KEEP variable_list */ + { 258, -3 }, /* (81) db_options ::= db_options PAGES NK_INTEGER */ + { 258, -3 }, /* (82) db_options ::= db_options PAGESIZE NK_INTEGER */ + { 258, -3 }, /* (83) db_options ::= db_options PRECISION NK_STRING */ + { 258, -3 }, /* (84) db_options ::= db_options REPLICA NK_INTEGER */ + { 258, -3 }, /* (85) db_options ::= db_options STRICT NK_INTEGER */ + { 258, -3 }, /* (86) db_options ::= db_options WAL NK_INTEGER */ + { 258, -3 }, /* (87) db_options ::= db_options VGROUPS NK_INTEGER */ + { 258, -3 }, /* (88) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + { 258, -3 }, /* (89) db_options ::= db_options RETENTIONS retention_list */ + { 258, -3 }, /* (90) db_options ::= db_options SCHEMALESS NK_INTEGER */ + { 260, -1 }, /* (91) alter_db_options ::= alter_db_option */ + { 260, -2 }, /* (92) alter_db_options ::= alter_db_options alter_db_option */ + { 264, -2 }, /* (93) alter_db_option ::= BUFFER NK_INTEGER */ + { 264, -2 }, /* (94) alter_db_option ::= CACHELAST NK_INTEGER */ + { 264, -2 }, /* (95) alter_db_option ::= FSYNC NK_INTEGER */ + { 264, -2 }, /* (96) alter_db_option ::= KEEP integer_list */ + { 264, -2 }, /* (97) alter_db_option ::= KEEP variable_list */ + { 264, -2 }, /* (98) alter_db_option ::= PAGES NK_INTEGER */ + { 264, -2 }, /* (99) alter_db_option ::= REPLICA NK_INTEGER */ + { 264, -2 }, /* (100) alter_db_option ::= STRICT NK_INTEGER */ + { 264, -2 }, /* (101) alter_db_option ::= WAL NK_INTEGER */ + { 261, -1 }, /* (102) integer_list ::= NK_INTEGER */ + { 261, -3 }, /* (103) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 262, -1 }, /* (104) variable_list ::= NK_VARIABLE */ + { 262, -3 }, /* (105) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 263, -1 }, /* (106) retention_list ::= retention */ + { 263, -3 }, /* (107) retention_list ::= retention_list NK_COMMA retention */ + { 265, -3 }, /* (108) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 244, -9 }, /* (109) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 244, -3 }, /* (110) cmd ::= CREATE TABLE multi_create_clause */ + { 244, -9 }, /* (111) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 244, -3 }, /* (112) cmd ::= DROP TABLE multi_drop_clause */ + { 244, -4 }, /* (113) cmd ::= DROP STABLE exists_opt full_table_name */ + { 244, -3 }, /* (114) cmd ::= ALTER TABLE alter_table_clause */ + { 244, -3 }, /* (115) cmd ::= ALTER STABLE alter_table_clause */ + { 273, -2 }, /* (116) alter_table_clause ::= full_table_name alter_table_options */ + { 273, -5 }, /* (117) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 273, -4 }, /* (118) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 273, -5 }, /* (119) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 273, -5 }, /* (120) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 273, -5 }, /* (121) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 273, -4 }, /* (122) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 273, -5 }, /* (123) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 273, -5 }, /* (124) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 273, -6 }, /* (125) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + { 270, -1 }, /* (126) multi_create_clause ::= create_subtable_clause */ + { 270, -2 }, /* (127) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 278, -10 }, /* (128) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ + { 272, -1 }, /* (129) multi_drop_clause ::= drop_table_clause */ + { 272, -2 }, /* (130) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 281, -2 }, /* (131) drop_table_clause ::= exists_opt full_table_name */ + { 279, 0 }, /* (132) specific_tags_opt ::= */ + { 279, -3 }, /* (133) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 266, -1 }, /* (134) full_table_name ::= table_name */ + { 266, -3 }, /* (135) full_table_name ::= db_name NK_DOT table_name */ + { 267, -1 }, /* (136) column_def_list ::= column_def */ + { 267, -3 }, /* (137) column_def_list ::= column_def_list NK_COMMA column_def */ + { 284, -2 }, /* (138) column_def ::= column_name type_name */ + { 284, -4 }, /* (139) column_def ::= column_name type_name COMMENT NK_STRING */ + { 276, -1 }, /* (140) type_name ::= BOOL */ + { 276, -1 }, /* (141) type_name ::= TINYINT */ + { 276, -1 }, /* (142) type_name ::= SMALLINT */ + { 276, -1 }, /* (143) type_name ::= INT */ + { 276, -1 }, /* (144) type_name ::= INTEGER */ + { 276, -1 }, /* (145) type_name ::= BIGINT */ + { 276, -1 }, /* (146) type_name ::= FLOAT */ + { 276, -1 }, /* (147) type_name ::= DOUBLE */ + { 276, -4 }, /* (148) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 276, -1 }, /* (149) type_name ::= TIMESTAMP */ + { 276, -4 }, /* (150) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 276, -2 }, /* (151) type_name ::= TINYINT UNSIGNED */ + { 276, -2 }, /* (152) type_name ::= SMALLINT UNSIGNED */ + { 276, -2 }, /* (153) type_name ::= INT UNSIGNED */ + { 276, -2 }, /* (154) type_name ::= BIGINT UNSIGNED */ + { 276, -1 }, /* (155) type_name ::= JSON */ + { 276, -4 }, /* (156) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 276, -1 }, /* (157) type_name ::= MEDIUMBLOB */ + { 276, -1 }, /* (158) type_name ::= BLOB */ + { 276, -4 }, /* (159) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 276, -1 }, /* (160) type_name ::= DECIMAL */ + { 276, -4 }, /* (161) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 276, -6 }, /* (162) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 268, 0 }, /* (163) tags_def_opt ::= */ + { 268, -1 }, /* (164) tags_def_opt ::= tags_def */ + { 271, -4 }, /* (165) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 269, 0 }, /* (166) table_options ::= */ + { 269, -3 }, /* (167) table_options ::= table_options COMMENT NK_STRING */ + { 269, -3 }, /* (168) table_options ::= table_options MAX_DELAY duration_list */ + { 269, -3 }, /* (169) table_options ::= table_options WATERMARK duration_list */ + { 269, -5 }, /* (170) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + { 269, -3 }, /* (171) table_options ::= table_options TTL NK_INTEGER */ + { 269, -5 }, /* (172) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 274, -1 }, /* (173) alter_table_options ::= alter_table_option */ + { 274, -2 }, /* (174) alter_table_options ::= alter_table_options alter_table_option */ + { 287, -2 }, /* (175) alter_table_option ::= COMMENT NK_STRING */ + { 287, -2 }, /* (176) alter_table_option ::= TTL NK_INTEGER */ + { 285, -1 }, /* (177) duration_list ::= duration_literal */ + { 285, -3 }, /* (178) duration_list ::= duration_list NK_COMMA duration_literal */ + { 286, -1 }, /* (179) rollup_func_list ::= rollup_func_name */ + { 286, -3 }, /* (180) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + { 289, -1 }, /* (181) rollup_func_name ::= function_name */ + { 289, -1 }, /* (182) rollup_func_name ::= FIRST */ + { 289, -1 }, /* (183) rollup_func_name ::= LAST */ + { 282, -1 }, /* (184) col_name_list ::= col_name */ + { 282, -3 }, /* (185) col_name_list ::= col_name_list NK_COMMA col_name */ + { 291, -1 }, /* (186) col_name ::= column_name */ + { 244, -2 }, /* (187) cmd ::= SHOW DNODES */ + { 244, -2 }, /* (188) cmd ::= SHOW USERS */ + { 244, -2 }, /* (189) cmd ::= SHOW DATABASES */ + { 244, -4 }, /* (190) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 244, -4 }, /* (191) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 244, -3 }, /* (192) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 244, -2 }, /* (193) cmd ::= SHOW MNODES */ + { 244, -2 }, /* (194) cmd ::= SHOW MODULES */ + { 244, -2 }, /* (195) cmd ::= SHOW QNODES */ + { 244, -2 }, /* (196) cmd ::= SHOW FUNCTIONS */ + { 244, -5 }, /* (197) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 244, -2 }, /* (198) cmd ::= SHOW STREAMS */ + { 244, -2 }, /* (199) cmd ::= SHOW ACCOUNTS */ + { 244, -2 }, /* (200) cmd ::= SHOW APPS */ + { 244, -2 }, /* (201) cmd ::= SHOW CONNECTIONS */ + { 244, -2 }, /* (202) cmd ::= SHOW LICENCE */ + { 244, -2 }, /* (203) cmd ::= SHOW GRANTS */ + { 244, -4 }, /* (204) cmd ::= SHOW CREATE DATABASE db_name */ + { 244, -4 }, /* (205) cmd ::= SHOW CREATE TABLE full_table_name */ + { 244, -4 }, /* (206) cmd ::= SHOW CREATE STABLE full_table_name */ + { 244, -2 }, /* (207) cmd ::= SHOW QUERIES */ + { 244, -2 }, /* (208) cmd ::= SHOW SCORES */ + { 244, -2 }, /* (209) cmd ::= SHOW TOPICS */ + { 244, -2 }, /* (210) cmd ::= SHOW VARIABLES */ + { 244, -3 }, /* (211) cmd ::= SHOW LOCAL VARIABLES */ + { 244, -4 }, /* (212) cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ + { 244, -2 }, /* (213) cmd ::= SHOW BNODES */ + { 244, -2 }, /* (214) cmd ::= SHOW SNODES */ + { 244, -2 }, /* (215) cmd ::= SHOW CLUSTER */ + { 244, -2 }, /* (216) cmd ::= SHOW TRANSACTIONS */ + { 244, -4 }, /* (217) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + { 292, 0 }, /* (218) db_name_cond_opt ::= */ + { 292, -2 }, /* (219) db_name_cond_opt ::= db_name NK_DOT */ + { 293, 0 }, /* (220) like_pattern_opt ::= */ + { 293, -2 }, /* (221) like_pattern_opt ::= LIKE NK_STRING */ + { 294, -1 }, /* (222) table_name_cond ::= table_name */ + { 295, 0 }, /* (223) from_db_opt ::= */ + { 295, -2 }, /* (224) from_db_opt ::= FROM db_name */ + { 244, -8 }, /* (225) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 244, -4 }, /* (226) cmd ::= DROP INDEX exists_opt index_name */ + { 297, 0 }, /* (227) index_options ::= */ + { 297, -9 }, /* (228) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 297, -11 }, /* (229) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 298, -1 }, /* (230) func_list ::= func */ + { 298, -3 }, /* (231) func_list ::= func_list NK_COMMA func */ + { 300, -4 }, /* (232) func ::= function_name NK_LP expression_list NK_RP */ + { 244, -6 }, /* (233) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 244, -7 }, /* (234) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + { 244, -9 }, /* (235) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ + { 244, -7 }, /* (236) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + { 244, -9 }, /* (237) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ + { 244, -4 }, /* (238) cmd ::= DROP TOPIC exists_opt topic_name */ + { 244, -7 }, /* (239) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + { 244, -2 }, /* (240) cmd ::= DESC full_table_name */ + { 244, -2 }, /* (241) cmd ::= DESCRIBE full_table_name */ + { 244, -3 }, /* (242) cmd ::= RESET QUERY CACHE */ + { 244, -4 }, /* (243) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 305, 0 }, /* (244) analyze_opt ::= */ + { 305, -1 }, /* (245) analyze_opt ::= ANALYZE */ + { 306, 0 }, /* (246) explain_options ::= */ + { 306, -3 }, /* (247) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 306, -3 }, /* (248) explain_options ::= explain_options RATIO NK_FLOAT */ + { 244, -6 }, /* (249) cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ + { 244, -10 }, /* (250) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ + { 244, -4 }, /* (251) cmd ::= DROP FUNCTION exists_opt function_name */ + { 307, 0 }, /* (252) agg_func_opt ::= */ + { 307, -1 }, /* (253) agg_func_opt ::= AGGREGATE */ + { 308, 0 }, /* (254) bufsize_opt ::= */ + { 308, -2 }, /* (255) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 244, -8 }, /* (256) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ + { 244, -4 }, /* (257) cmd ::= DROP STREAM exists_opt stream_name */ + { 311, 0 }, /* (258) into_opt ::= */ + { 311, -2 }, /* (259) into_opt ::= INTO full_table_name */ + { 310, 0 }, /* (260) stream_options ::= */ + { 310, -3 }, /* (261) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 310, -3 }, /* (262) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 310, -4 }, /* (263) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + { 310, -3 }, /* (264) stream_options ::= stream_options WATERMARK duration_literal */ + { 244, -3 }, /* (265) cmd ::= KILL CONNECTION NK_INTEGER */ + { 244, -3 }, /* (266) cmd ::= KILL QUERY NK_STRING */ + { 244, -3 }, /* (267) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 244, -2 }, /* (268) cmd ::= BALANCE VGROUP */ + { 244, -4 }, /* (269) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 244, -4 }, /* (270) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 244, -3 }, /* (271) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 312, -2 }, /* (272) dnode_list ::= DNODE NK_INTEGER */ + { 312, -3 }, /* (273) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 244, -3 }, /* (274) cmd ::= SYNCDB db_name REPLICA */ + { 244, -4 }, /* (275) cmd ::= DELETE FROM full_table_name where_clause_opt */ + { 244, -1 }, /* (276) cmd ::= query_expression */ + { 247, -1 }, /* (277) literal ::= NK_INTEGER */ + { 247, -1 }, /* (278) literal ::= NK_FLOAT */ + { 247, -1 }, /* (279) literal ::= NK_STRING */ + { 247, -1 }, /* (280) literal ::= NK_BOOL */ + { 247, -2 }, /* (281) literal ::= TIMESTAMP NK_STRING */ + { 247, -1 }, /* (282) literal ::= duration_literal */ + { 247, -1 }, /* (283) literal ::= NULL */ + { 247, -1 }, /* (284) literal ::= NK_QUESTION */ + { 288, -1 }, /* (285) duration_literal ::= NK_VARIABLE */ + { 314, -1 }, /* (286) signed ::= NK_INTEGER */ + { 314, -2 }, /* (287) signed ::= NK_PLUS NK_INTEGER */ + { 314, -2 }, /* (288) signed ::= NK_MINUS NK_INTEGER */ + { 314, -1 }, /* (289) signed ::= NK_FLOAT */ + { 314, -2 }, /* (290) signed ::= NK_PLUS NK_FLOAT */ + { 314, -2 }, /* (291) signed ::= NK_MINUS NK_FLOAT */ + { 277, -1 }, /* (292) signed_literal ::= signed */ + { 277, -1 }, /* (293) signed_literal ::= NK_STRING */ + { 277, -1 }, /* (294) signed_literal ::= NK_BOOL */ + { 277, -2 }, /* (295) signed_literal ::= TIMESTAMP NK_STRING */ + { 277, -1 }, /* (296) signed_literal ::= duration_literal */ + { 277, -1 }, /* (297) signed_literal ::= NULL */ + { 277, -1 }, /* (298) signed_literal ::= literal_func */ + { 280, -1 }, /* (299) literal_list ::= signed_literal */ + { 280, -3 }, /* (300) literal_list ::= literal_list NK_COMMA signed_literal */ + { 255, -1 }, /* (301) db_name ::= NK_ID */ + { 283, -1 }, /* (302) table_name ::= NK_ID */ + { 275, -1 }, /* (303) column_name ::= NK_ID */ + { 290, -1 }, /* (304) function_name ::= NK_ID */ + { 316, -1 }, /* (305) table_alias ::= NK_ID */ + { 317, -1 }, /* (306) column_alias ::= NK_ID */ + { 249, -1 }, /* (307) user_name ::= NK_ID */ + { 296, -1 }, /* (308) index_name ::= NK_ID */ + { 302, -1 }, /* (309) topic_name ::= NK_ID */ + { 309, -1 }, /* (310) stream_name ::= NK_ID */ + { 304, -1 }, /* (311) cgroup_name ::= NK_ID */ + { 318, -1 }, /* (312) expression ::= literal */ + { 318, -1 }, /* (313) expression ::= pseudo_column */ + { 318, -1 }, /* (314) expression ::= column_reference */ + { 318, -1 }, /* (315) expression ::= function_expression */ + { 318, -1 }, /* (316) expression ::= subquery */ + { 318, -3 }, /* (317) expression ::= NK_LP expression NK_RP */ + { 318, -2 }, /* (318) expression ::= NK_PLUS expression */ + { 318, -2 }, /* (319) expression ::= NK_MINUS expression */ + { 318, -3 }, /* (320) expression ::= expression NK_PLUS expression */ + { 318, -3 }, /* (321) expression ::= expression NK_MINUS expression */ + { 318, -3 }, /* (322) expression ::= expression NK_STAR expression */ + { 318, -3 }, /* (323) expression ::= expression NK_SLASH expression */ + { 318, -3 }, /* (324) expression ::= expression NK_REM expression */ + { 318, -3 }, /* (325) expression ::= column_reference NK_ARROW NK_STRING */ + { 318, -3 }, /* (326) expression ::= expression NK_BITAND expression */ + { 318, -3 }, /* (327) expression ::= expression NK_BITOR expression */ + { 301, -1 }, /* (328) expression_list ::= expression */ + { 301, -3 }, /* (329) expression_list ::= expression_list NK_COMMA expression */ + { 320, -1 }, /* (330) column_reference ::= column_name */ + { 320, -3 }, /* (331) column_reference ::= table_name NK_DOT column_name */ + { 319, -1 }, /* (332) pseudo_column ::= ROWTS */ + { 319, -1 }, /* (333) pseudo_column ::= TBNAME */ + { 319, -3 }, /* (334) pseudo_column ::= table_name NK_DOT TBNAME */ + { 319, -1 }, /* (335) pseudo_column ::= QSTARTTS */ + { 319, -1 }, /* (336) pseudo_column ::= QENDTS */ + { 319, -1 }, /* (337) pseudo_column ::= WSTARTTS */ + { 319, -1 }, /* (338) pseudo_column ::= WENDTS */ + { 319, -1 }, /* (339) pseudo_column ::= WDURATION */ + { 321, -4 }, /* (340) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 321, -4 }, /* (341) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 321, -6 }, /* (342) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 321, -1 }, /* (343) function_expression ::= literal_func */ + { 315, -3 }, /* (344) literal_func ::= noarg_func NK_LP NK_RP */ + { 315, -1 }, /* (345) literal_func ::= NOW */ + { 325, -1 }, /* (346) noarg_func ::= NOW */ + { 325, -1 }, /* (347) noarg_func ::= TODAY */ + { 325, -1 }, /* (348) noarg_func ::= TIMEZONE */ + { 323, -1 }, /* (349) star_func ::= COUNT */ + { 323, -1 }, /* (350) star_func ::= FIRST */ + { 323, -1 }, /* (351) star_func ::= LAST */ + { 323, -1 }, /* (352) star_func ::= LAST_ROW */ + { 324, -1 }, /* (353) star_func_para_list ::= NK_STAR */ + { 324, -1 }, /* (354) star_func_para_list ::= other_para_list */ + { 326, -1 }, /* (355) other_para_list ::= star_func_para */ + { 326, -3 }, /* (356) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 327, -1 }, /* (357) star_func_para ::= expression */ + { 327, -3 }, /* (358) star_func_para ::= table_name NK_DOT NK_STAR */ + { 328, -3 }, /* (359) predicate ::= expression compare_op expression */ + { 328, -5 }, /* (360) predicate ::= expression BETWEEN expression AND expression */ + { 328, -6 }, /* (361) predicate ::= expression NOT BETWEEN expression AND expression */ + { 328, -3 }, /* (362) predicate ::= expression IS NULL */ + { 328, -4 }, /* (363) predicate ::= expression IS NOT NULL */ + { 328, -3 }, /* (364) predicate ::= expression in_op in_predicate_value */ + { 329, -1 }, /* (365) compare_op ::= NK_LT */ + { 329, -1 }, /* (366) compare_op ::= NK_GT */ + { 329, -1 }, /* (367) compare_op ::= NK_LE */ + { 329, -1 }, /* (368) compare_op ::= NK_GE */ + { 329, -1 }, /* (369) compare_op ::= NK_NE */ + { 329, -1 }, /* (370) compare_op ::= NK_EQ */ + { 329, -1 }, /* (371) compare_op ::= LIKE */ + { 329, -2 }, /* (372) compare_op ::= NOT LIKE */ + { 329, -1 }, /* (373) compare_op ::= MATCH */ + { 329, -1 }, /* (374) compare_op ::= NMATCH */ + { 329, -1 }, /* (375) compare_op ::= CONTAINS */ + { 330, -1 }, /* (376) in_op ::= IN */ + { 330, -2 }, /* (377) in_op ::= NOT IN */ + { 331, -3 }, /* (378) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 332, -1 }, /* (379) boolean_value_expression ::= boolean_primary */ + { 332, -2 }, /* (380) boolean_value_expression ::= NOT boolean_primary */ + { 332, -3 }, /* (381) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 332, -3 }, /* (382) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 333, -1 }, /* (383) boolean_primary ::= predicate */ + { 333, -3 }, /* (384) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 334, -1 }, /* (385) common_expression ::= expression */ + { 334, -1 }, /* (386) common_expression ::= boolean_value_expression */ + { 335, -2 }, /* (387) from_clause ::= FROM table_reference_list */ + { 336, -1 }, /* (388) table_reference_list ::= table_reference */ + { 336, -3 }, /* (389) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 337, -1 }, /* (390) table_reference ::= table_primary */ + { 337, -1 }, /* (391) table_reference ::= joined_table */ + { 338, -2 }, /* (392) table_primary ::= table_name alias_opt */ + { 338, -4 }, /* (393) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 338, -2 }, /* (394) table_primary ::= subquery alias_opt */ + { 338, -1 }, /* (395) table_primary ::= parenthesized_joined_table */ + { 340, 0 }, /* (396) alias_opt ::= */ + { 340, -1 }, /* (397) alias_opt ::= table_alias */ + { 340, -2 }, /* (398) alias_opt ::= AS table_alias */ + { 341, -3 }, /* (399) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 341, -3 }, /* (400) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 339, -6 }, /* (401) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 342, 0 }, /* (402) join_type ::= */ + { 342, -1 }, /* (403) join_type ::= INNER */ + { 344, -12 }, /* (404) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 345, 0 }, /* (405) set_quantifier_opt ::= */ + { 345, -1 }, /* (406) set_quantifier_opt ::= DISTINCT */ + { 345, -1 }, /* (407) set_quantifier_opt ::= ALL */ + { 346, -1 }, /* (408) select_list ::= NK_STAR */ + { 346, -1 }, /* (409) select_list ::= select_sublist */ + { 354, -1 }, /* (410) select_sublist ::= select_item */ + { 354, -3 }, /* (411) select_sublist ::= select_sublist NK_COMMA select_item */ + { 355, -1 }, /* (412) select_item ::= common_expression */ + { 355, -2 }, /* (413) select_item ::= common_expression column_alias */ + { 355, -3 }, /* (414) select_item ::= common_expression AS column_alias */ + { 355, -3 }, /* (415) select_item ::= table_name NK_DOT NK_STAR */ + { 313, 0 }, /* (416) where_clause_opt ::= */ + { 313, -2 }, /* (417) where_clause_opt ::= WHERE search_condition */ + { 347, 0 }, /* (418) partition_by_clause_opt ::= */ + { 347, -3 }, /* (419) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 351, 0 }, /* (420) twindow_clause_opt ::= */ + { 351, -6 }, /* (421) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 351, -4 }, /* (422) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 351, -6 }, /* (423) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 351, -8 }, /* (424) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 299, 0 }, /* (425) sliding_opt ::= */ + { 299, -4 }, /* (426) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 350, 0 }, /* (427) fill_opt ::= */ + { 350, -4 }, /* (428) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 350, -6 }, /* (429) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 356, -1 }, /* (430) fill_mode ::= NONE */ + { 356, -1 }, /* (431) fill_mode ::= PREV */ + { 356, -1 }, /* (432) fill_mode ::= NULL */ + { 356, -1 }, /* (433) fill_mode ::= LINEAR */ + { 356, -1 }, /* (434) fill_mode ::= NEXT */ + { 352, 0 }, /* (435) group_by_clause_opt ::= */ + { 352, -3 }, /* (436) group_by_clause_opt ::= GROUP BY group_by_list */ + { 357, -1 }, /* (437) group_by_list ::= expression */ + { 357, -3 }, /* (438) group_by_list ::= group_by_list NK_COMMA expression */ + { 353, 0 }, /* (439) having_clause_opt ::= */ + { 353, -2 }, /* (440) having_clause_opt ::= HAVING search_condition */ + { 348, 0 }, /* (441) range_opt ::= */ + { 348, -6 }, /* (442) range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ + { 349, 0 }, /* (443) every_opt ::= */ + { 349, -4 }, /* (444) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + { 303, -4 }, /* (445) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 358, -1 }, /* (446) query_expression_body ::= query_primary */ + { 358, -4 }, /* (447) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 358, -3 }, /* (448) query_expression_body ::= query_expression_body UNION query_expression_body */ + { 362, -1 }, /* (449) query_primary ::= query_specification */ + { 362, -6 }, /* (450) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + { 359, 0 }, /* (451) order_by_clause_opt ::= */ + { 359, -3 }, /* (452) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 360, 0 }, /* (453) slimit_clause_opt ::= */ + { 360, -2 }, /* (454) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 360, -4 }, /* (455) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 360, -4 }, /* (456) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 361, 0 }, /* (457) limit_clause_opt ::= */ + { 361, -2 }, /* (458) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 361, -4 }, /* (459) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 361, -4 }, /* (460) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 322, -3 }, /* (461) subquery ::= NK_LP query_expression NK_RP */ + { 343, -1 }, /* (462) search_condition ::= common_expression */ + { 363, -1 }, /* (463) sort_specification_list ::= sort_specification */ + { 363, -3 }, /* (464) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 364, -3 }, /* (465) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 365, 0 }, /* (466) ordering_specification_opt ::= */ + { 365, -1 }, /* (467) ordering_specification_opt ::= ASC */ + { 365, -1 }, /* (468) ordering_specification_opt ::= DESC */ + { 366, 0 }, /* (469) null_ordering_opt ::= */ + { 366, -2 }, /* (470) null_ordering_opt ::= NULLS FIRST */ + { 366, -2 }, /* (471) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3161,11 +3196,11 @@ static YYACTIONTYPE yy_reduce( YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,243,&yymsp[0].minor); + yy_destructor(yypParser,245,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,244,&yymsp[0].minor); + yy_destructor(yypParser,246,&yymsp[0].minor); break; case 2: /* account_options ::= */ { } @@ -3179,20 +3214,20 @@ static YYACTIONTYPE yy_reduce( case 9: /* account_options ::= account_options USERS literal */ yytestcase(yyruleno==9); case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); -{ yy_destructor(yypParser,243,&yymsp[-2].minor); +{ yy_destructor(yypParser,245,&yymsp[-2].minor); { } - yy_destructor(yypParser,245,&yymsp[0].minor); + yy_destructor(yypParser,247,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,246,&yymsp[0].minor); +{ yy_destructor(yypParser,248,&yymsp[0].minor); { } } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,244,&yymsp[-1].minor); +{ yy_destructor(yypParser,246,&yymsp[-1].minor); { } - yy_destructor(yypParser,246,&yymsp[0].minor); + yy_destructor(yypParser,248,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -3206,1309 +3241,1337 @@ static YYACTIONTYPE yy_reduce( case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); { } - yy_destructor(yypParser,245,&yymsp[0].minor); + yy_destructor(yypParser,247,&yymsp[0].minor); break; - case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0); } + case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy241, &yymsp[-1].minor.yy0, yymsp[0].minor.yy629); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy57, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy241, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; - case 26: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy57, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } + case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy241, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } break; - case 27: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy57); } + case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy241, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; - case 28: /* cmd ::= GRANT privileges ON priv_level TO user_name */ -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy389, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57); } + case 28: /* cmd ::= DROP USER user_name */ +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy241); } break; - case 29: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy389, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57); } + case 29: /* sysinfo_opt ::= */ +{ yymsp[1].minor.yy629 = 1; } break; - case 30: /* privileges ::= ALL */ -{ yymsp[0].minor.yy389 = PRIVILEGE_TYPE_ALL; } + case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ +{ yymsp[-1].minor.yy629 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 31: /* privileges ::= priv_type_list */ - case 32: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==32); -{ yylhsminor.yy389 = yymsp[0].minor.yy389; } - yymsp[0].minor.yy389 = yylhsminor.yy389; + case 31: /* cmd ::= GRANT privileges ON priv_level TO user_name */ +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-4].minor.yy683, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241); } break; - case 33: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy389 = yymsp[-2].minor.yy389 | yymsp[0].minor.yy389; } - yymsp[-2].minor.yy389 = yylhsminor.yy389; + case 32: /* cmd ::= REVOKE privileges ON priv_level FROM user_name */ +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-4].minor.yy683, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241); } break; - case 34: /* priv_type ::= READ */ -{ yymsp[0].minor.yy389 = PRIVILEGE_TYPE_READ; } + case 33: /* privileges ::= ALL */ +{ yymsp[0].minor.yy683 = PRIVILEGE_TYPE_ALL; } break; - case 35: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy389 = PRIVILEGE_TYPE_WRITE; } + case 34: /* privileges ::= priv_type_list */ + case 35: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==35); +{ yylhsminor.yy683 = yymsp[0].minor.yy683; } + yymsp[0].minor.yy683 = yylhsminor.yy683; break; - case 36: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy57 = yymsp[-2].minor.yy0; } - yymsp[-2].minor.yy57 = yylhsminor.yy57; + case 36: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ +{ yylhsminor.yy683 = yymsp[-2].minor.yy683 | yymsp[0].minor.yy683; } + yymsp[-2].minor.yy683 = yylhsminor.yy683; break; - case 37: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy57 = yymsp[-2].minor.yy57; } - yymsp[-2].minor.yy57 = yylhsminor.yy57; + case 37: /* priv_type ::= READ */ +{ yymsp[0].minor.yy683 = PRIVILEGE_TYPE_READ; } break; - case 38: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy57, NULL); } + case 38: /* priv_type ::= WRITE */ +{ yymsp[0].minor.yy683 = PRIVILEGE_TYPE_WRITE; } break; - case 39: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0); } + case 39: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ +{ yylhsminor.yy241 = yymsp[-2].minor.yy0; } + yymsp[-2].minor.yy241 = yylhsminor.yy241; break; - case 40: /* cmd ::= DROP DNODE NK_INTEGER */ + case 40: /* priv_level ::= db_name NK_DOT NK_STAR */ +{ yylhsminor.yy241 = yymsp[-2].minor.yy241; } + yymsp[-2].minor.yy241 = yylhsminor.yy241; + break; + case 41: /* cmd ::= CREATE DNODE dnode_endpoint */ +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy241, NULL); } + break; + case 42: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy0); } + break; + case 43: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 41: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy57); } + case 44: /* cmd ::= DROP DNODE dnode_endpoint */ +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy241); } break; - case 42: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + case 45: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } break; - case 43: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + case 46: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 44: /* cmd ::= ALTER ALL DNODES NK_STRING */ + case 47: /* cmd ::= ALTER ALL DNODES NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } break; - case 45: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + case 48: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 46: /* dnode_endpoint ::= NK_STRING */ - case 47: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==47); - case 48: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==48); - case 297: /* db_name ::= NK_ID */ yytestcase(yyruleno==297); - case 298: /* table_name ::= NK_ID */ yytestcase(yyruleno==298); - case 299: /* column_name ::= NK_ID */ yytestcase(yyruleno==299); - case 300: /* function_name ::= NK_ID */ yytestcase(yyruleno==300); - case 301: /* table_alias ::= NK_ID */ yytestcase(yyruleno==301); - case 302: /* column_alias ::= NK_ID */ yytestcase(yyruleno==302); - case 303: /* user_name ::= NK_ID */ yytestcase(yyruleno==303); - case 304: /* index_name ::= NK_ID */ yytestcase(yyruleno==304); - case 305: /* topic_name ::= NK_ID */ yytestcase(yyruleno==305); - case 306: /* stream_name ::= NK_ID */ yytestcase(yyruleno==306); - case 307: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==307); - case 340: /* noarg_func ::= NOW */ yytestcase(yyruleno==340); - case 341: /* noarg_func ::= TODAY */ yytestcase(yyruleno==341); - case 342: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==342); - case 343: /* star_func ::= COUNT */ yytestcase(yyruleno==343); - case 344: /* star_func ::= FIRST */ yytestcase(yyruleno==344); - case 345: /* star_func ::= LAST */ yytestcase(yyruleno==345); - case 346: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==346); -{ yylhsminor.yy57 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy57 = yylhsminor.yy57; - break; - case 49: /* cmd ::= ALTER LOCAL NK_STRING */ + case 49: /* dnode_endpoint ::= NK_STRING */ + case 50: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==50); + case 51: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==51); + case 301: /* db_name ::= NK_ID */ yytestcase(yyruleno==301); + case 302: /* table_name ::= NK_ID */ yytestcase(yyruleno==302); + case 303: /* column_name ::= NK_ID */ yytestcase(yyruleno==303); + case 304: /* function_name ::= NK_ID */ yytestcase(yyruleno==304); + case 305: /* table_alias ::= NK_ID */ yytestcase(yyruleno==305); + case 306: /* column_alias ::= NK_ID */ yytestcase(yyruleno==306); + case 307: /* user_name ::= NK_ID */ yytestcase(yyruleno==307); + case 308: /* index_name ::= NK_ID */ yytestcase(yyruleno==308); + case 309: /* topic_name ::= NK_ID */ yytestcase(yyruleno==309); + case 310: /* stream_name ::= NK_ID */ yytestcase(yyruleno==310); + case 311: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==311); + case 346: /* noarg_func ::= NOW */ yytestcase(yyruleno==346); + case 347: /* noarg_func ::= TODAY */ yytestcase(yyruleno==347); + case 348: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==348); + case 349: /* star_func ::= COUNT */ yytestcase(yyruleno==349); + case 350: /* star_func ::= FIRST */ yytestcase(yyruleno==350); + case 351: /* star_func ::= LAST */ yytestcase(yyruleno==351); + case 352: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==352); +{ yylhsminor.yy241 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy241 = yylhsminor.yy241; + break; + case 52: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 50: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + case 53: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 51: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + case 54: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } break; - case 52: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + case 55: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } break; - case 53: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + case 56: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } break; - case 54: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + case 57: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } break; - case 55: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + case 58: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } break; - case 56: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + case 59: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } break; - case 57: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + case 60: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } break; - case 58: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + case 61: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } break; - case 59: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy481, &yymsp[-1].minor.yy57, yymsp[0].minor.yy392); } + case 62: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy197, &yymsp[-1].minor.yy241, yymsp[0].minor.yy442); } break; - case 60: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy481, &yymsp[0].minor.yy57); } + case 63: /* cmd ::= DROP DATABASE exists_opt db_name */ +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy197, &yymsp[0].minor.yy241); } break; - case 61: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy57); } + case 64: /* cmd ::= USE db_name */ +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy241); } break; - case 62: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy57, yymsp[0].minor.yy392); } + case 65: /* cmd ::= ALTER DATABASE db_name alter_db_options */ +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy241, yymsp[0].minor.yy442); } break; - case 63: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy481 = true; } + case 66: /* not_exists_opt ::= IF NOT EXISTS */ +{ yymsp[-2].minor.yy197 = true; } break; - case 64: /* not_exists_opt ::= */ - case 66: /* exists_opt ::= */ yytestcase(yyruleno==66); - case 240: /* analyze_opt ::= */ yytestcase(yyruleno==240); - case 248: /* agg_func_opt ::= */ yytestcase(yyruleno==248); - case 399: /* set_quantifier_opt ::= */ yytestcase(yyruleno==399); -{ yymsp[1].minor.yy481 = false; } + case 67: /* not_exists_opt ::= */ + case 69: /* exists_opt ::= */ yytestcase(yyruleno==69); + case 244: /* analyze_opt ::= */ yytestcase(yyruleno==244); + case 252: /* agg_func_opt ::= */ yytestcase(yyruleno==252); + case 405: /* set_quantifier_opt ::= */ yytestcase(yyruleno==405); +{ yymsp[1].minor.yy197 = false; } break; - case 65: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy481 = true; } + case 68: /* exists_opt ::= IF EXISTS */ +{ yymsp[-1].minor.yy197 = true; } break; - case 67: /* db_options ::= */ -{ yymsp[1].minor.yy392 = createDefaultDatabaseOptions(pCxt); } + case 70: /* db_options ::= */ +{ yymsp[1].minor.yy442 = createDefaultDatabaseOptions(pCxt); } break; - case 68: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 71: /* db_options ::= db_options BUFFER NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 69: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 72: /* db_options ::= db_options CACHELAST NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 70: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 73: /* db_options ::= db_options COMP NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 71: /* db_options ::= db_options DURATION NK_INTEGER */ - case 72: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==72); -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 74: /* db_options ::= db_options DURATION NK_INTEGER */ + case 75: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==75); +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 73: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 76: /* db_options ::= db_options FSYNC NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 74: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 77: /* db_options ::= db_options MAXROWS NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 75: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 78: /* db_options ::= db_options MINROWS NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 76: /* db_options ::= db_options KEEP integer_list */ - case 77: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==77); -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP, yymsp[0].minor.yy600); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 79: /* db_options ::= db_options KEEP integer_list */ + case 80: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==80); +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_KEEP, yymsp[0].minor.yy368); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 78: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 81: /* db_options ::= db_options PAGES NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 79: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 82: /* db_options ::= db_options PAGESIZE NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 80: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 81: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 82: /* db_options ::= db_options STRICT NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 83: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 84: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 85: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 86: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_RETENTIONS, yymsp[0].minor.yy600); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 87: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 88: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy392 = createAlterDatabaseOptions(pCxt); yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yylhsminor.yy392, &yymsp[0].minor.yy221); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 89: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy392, &yymsp[0].minor.yy221); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; - break; - case 90: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy221.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } - break; - case 91: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy221.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } - break; - case 92: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy221.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } - break; - case 93: /* alter_db_option ::= KEEP integer_list */ - case 94: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==94); -{ yymsp[-1].minor.yy221.type = DB_OPTION_KEEP; yymsp[-1].minor.yy221.pList = yymsp[0].minor.yy600; } - break; - case 95: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy221.type = DB_OPTION_PAGES; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } - break; - case 96: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy221.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } - break; - case 97: /* alter_db_option ::= STRICT NK_INTEGER */ -{ yymsp[-1].minor.yy221.type = DB_OPTION_STRICT; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } - break; - case 98: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy221.type = DB_OPTION_WAL; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } - break; - case 99: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy600 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 100: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 269: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==269); -{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 101: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy600 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 102: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 103: /* retention_list ::= retention */ - case 123: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==123); - case 126: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==126); - case 133: /* column_def_list ::= column_def */ yytestcase(yyruleno==133); - case 176: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==176); - case 181: /* col_name_list ::= col_name */ yytestcase(yyruleno==181); - case 228: /* func_list ::= func */ yytestcase(yyruleno==228); - case 295: /* literal_list ::= signed_literal */ yytestcase(yyruleno==295); - case 349: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==349); - case 404: /* select_sublist ::= select_item */ yytestcase(yyruleno==404); - case 457: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==457); -{ yylhsminor.yy600 = createNodeList(pCxt, yymsp[0].minor.yy392); } - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 104: /* retention_list ::= retention_list NK_COMMA retention */ - case 134: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==134); - case 177: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==177); - case 182: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==182); - case 229: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==229); - case 296: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==296); - case 350: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==350); - case 405: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==405); - case 458: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==458); -{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, yymsp[0].minor.yy392); } - yymsp[-2].minor.yy600 = yylhsminor.yy600; - break; - case 105: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy392 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 106: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 108: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==108); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy481, yymsp[-5].minor.yy392, yymsp[-3].minor.yy600, yymsp[-1].minor.yy600, yymsp[0].minor.yy392); } - break; - case 107: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy600); } - break; - case 109: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy600); } - break; - case 110: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy481, yymsp[0].minor.yy392); } - break; - case 111: /* cmd ::= ALTER TABLE alter_table_clause */ - case 112: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==112); - case 272: /* cmd ::= query_expression */ yytestcase(yyruleno==272); -{ pCxt->pRootNode = yymsp[0].minor.yy392; } - break; - case 113: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy392 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; - break; - case 114: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; - break; - case 115: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy57); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; - break; - case 116: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; + case 83: /* db_options ::= db_options PRECISION NK_STRING */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 84: /* db_options ::= db_options REPLICA NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 85: /* db_options ::= db_options STRICT NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_STRICT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 86: /* db_options ::= db_options WAL NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 87: /* db_options ::= db_options VGROUPS NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 88: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 89: /* db_options ::= db_options RETENTIONS retention_list */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_RETENTIONS, yymsp[0].minor.yy368); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 90: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ +{ yylhsminor.yy442 = setDatabaseOption(pCxt, yymsp[-2].minor.yy442, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 91: /* alter_db_options ::= alter_db_option */ +{ yylhsminor.yy442 = createAlterDatabaseOptions(pCxt); yylhsminor.yy442 = setAlterDatabaseOption(pCxt, yylhsminor.yy442, &yymsp[0].minor.yy301); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 92: /* alter_db_options ::= alter_db_options alter_db_option */ +{ yylhsminor.yy442 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy442, &yymsp[0].minor.yy301); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; + break; + case 93: /* alter_db_option ::= BUFFER NK_INTEGER */ +{ yymsp[-1].minor.yy301.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy301.val = yymsp[0].minor.yy0; } + break; + case 94: /* alter_db_option ::= CACHELAST NK_INTEGER */ +{ yymsp[-1].minor.yy301.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy301.val = yymsp[0].minor.yy0; } + break; + case 95: /* alter_db_option ::= FSYNC NK_INTEGER */ +{ yymsp[-1].minor.yy301.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy301.val = yymsp[0].minor.yy0; } + break; + case 96: /* alter_db_option ::= KEEP integer_list */ + case 97: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==97); +{ yymsp[-1].minor.yy301.type = DB_OPTION_KEEP; yymsp[-1].minor.yy301.pList = yymsp[0].minor.yy368; } + break; + case 98: /* alter_db_option ::= PAGES NK_INTEGER */ +{ yymsp[-1].minor.yy301.type = DB_OPTION_PAGES; yymsp[-1].minor.yy301.val = yymsp[0].minor.yy0; } + break; + case 99: /* alter_db_option ::= REPLICA NK_INTEGER */ +{ yymsp[-1].minor.yy301.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy301.val = yymsp[0].minor.yy0; } + break; + case 100: /* alter_db_option ::= STRICT NK_INTEGER */ +{ yymsp[-1].minor.yy301.type = DB_OPTION_STRICT; yymsp[-1].minor.yy301.val = yymsp[0].minor.yy0; } + break; + case 101: /* alter_db_option ::= WAL NK_INTEGER */ +{ yymsp[-1].minor.yy301.type = DB_OPTION_WAL; yymsp[-1].minor.yy301.val = yymsp[0].minor.yy0; } + break; + case 102: /* integer_list ::= NK_INTEGER */ +{ yylhsminor.yy368 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy368 = yylhsminor.yy368; + break; + case 103: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ + case 273: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==273); +{ yylhsminor.yy368 = addNodeToList(pCxt, yymsp[-2].minor.yy368, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy368 = yylhsminor.yy368; + break; + case 104: /* variable_list ::= NK_VARIABLE */ +{ yylhsminor.yy368 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy368 = yylhsminor.yy368; + break; + case 105: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ +{ yylhsminor.yy368 = addNodeToList(pCxt, yymsp[-2].minor.yy368, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy368 = yylhsminor.yy368; + break; + case 106: /* retention_list ::= retention */ + case 126: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==126); + case 129: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==129); + case 136: /* column_def_list ::= column_def */ yytestcase(yyruleno==136); + case 179: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==179); + case 184: /* col_name_list ::= col_name */ yytestcase(yyruleno==184); + case 230: /* func_list ::= func */ yytestcase(yyruleno==230); + case 299: /* literal_list ::= signed_literal */ yytestcase(yyruleno==299); + case 355: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==355); + case 410: /* select_sublist ::= select_item */ yytestcase(yyruleno==410); + case 463: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==463); +{ yylhsminor.yy368 = createNodeList(pCxt, yymsp[0].minor.yy442); } + yymsp[0].minor.yy368 = yylhsminor.yy368; + break; + case 107: /* retention_list ::= retention_list NK_COMMA retention */ + case 137: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==137); + case 180: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==180); + case 185: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==185); + case 231: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==231); + case 300: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==300); + case 356: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==356); + case 411: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==411); + case 464: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==464); +{ yylhsminor.yy368 = addNodeToList(pCxt, yymsp[-2].minor.yy368, yymsp[0].minor.yy442); } + yymsp[-2].minor.yy368 = yylhsminor.yy368; + break; + case 108: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ +{ yylhsminor.yy442 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 109: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 111: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==111); +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy197, yymsp[-5].minor.yy442, yymsp[-3].minor.yy368, yymsp[-1].minor.yy368, yymsp[0].minor.yy442); } + break; + case 110: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy368); } + break; + case 112: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy368); } + break; + case 113: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy197, yymsp[0].minor.yy442); } + break; + case 114: /* cmd ::= ALTER TABLE alter_table_clause */ + case 115: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==115); + case 276: /* cmd ::= query_expression */ yytestcase(yyruleno==276); +{ pCxt->pRootNode = yymsp[0].minor.yy442; } + break; + case 116: /* alter_table_clause ::= full_table_name alter_table_options */ +{ yylhsminor.yy442 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy442, yymsp[0].minor.yy442); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; + break; + case 117: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ +{ yylhsminor.yy442 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy442, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy241, yymsp[0].minor.yy392); } + yymsp[-4].minor.yy442 = yylhsminor.yy442; + break; + case 118: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ +{ yylhsminor.yy442 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy442, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy241); } + yymsp[-3].minor.yy442 = yylhsminor.yy442; + break; + case 119: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ +{ yylhsminor.yy442 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy442, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy241, yymsp[0].minor.yy392); } + yymsp[-4].minor.yy442 = yylhsminor.yy442; break; - case 117: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy57, &yymsp[0].minor.yy57); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; - break; - case 118: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; - break; - case 119: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy57); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 120: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ +{ yylhsminor.yy442 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy442, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy241, &yymsp[0].minor.yy241); } + yymsp[-4].minor.yy442 = yylhsminor.yy442; + break; + case 121: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ +{ yylhsminor.yy442 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy442, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy241, yymsp[0].minor.yy392); } + yymsp[-4].minor.yy442 = yylhsminor.yy442; + break; + case 122: /* alter_table_clause ::= full_table_name DROP TAG column_name */ +{ yylhsminor.yy442 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy442, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy241); } + yymsp[-3].minor.yy442 = yylhsminor.yy442; break; - case 120: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; + case 123: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ +{ yylhsminor.yy442 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy442, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy241, yymsp[0].minor.yy392); } + yymsp[-4].minor.yy442 = yylhsminor.yy442; break; - case 121: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy57, &yymsp[0].minor.yy57); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; - break; - case 122: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -{ yylhsminor.yy392 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy392, &yymsp[-2].minor.yy57, yymsp[0].minor.yy392); } - yymsp[-5].minor.yy392 = yylhsminor.yy392; + case 124: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ +{ yylhsminor.yy442 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy442, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy241, &yymsp[0].minor.yy241); } + yymsp[-4].minor.yy442 = yylhsminor.yy442; + break; + case 125: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ +{ yylhsminor.yy442 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy442, &yymsp[-2].minor.yy241, yymsp[0].minor.yy442); } + yymsp[-5].minor.yy442 = yylhsminor.yy442; break; - case 124: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 127: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==127); -{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-1].minor.yy600, yymsp[0].minor.yy392); } - yymsp[-1].minor.yy600 = yylhsminor.yy600; + case 127: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 130: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==130); +{ yylhsminor.yy368 = addNodeToList(pCxt, yymsp[-1].minor.yy368, yymsp[0].minor.yy442); } + yymsp[-1].minor.yy368 = yylhsminor.yy368; break; - case 125: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ -{ yylhsminor.yy392 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy481, yymsp[-8].minor.yy392, yymsp[-6].minor.yy392, yymsp[-5].minor.yy600, yymsp[-2].minor.yy600, yymsp[0].minor.yy392); } - yymsp[-9].minor.yy392 = yylhsminor.yy392; + case 128: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP table_options */ +{ yylhsminor.yy442 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy197, yymsp[-8].minor.yy442, yymsp[-6].minor.yy442, yymsp[-5].minor.yy368, yymsp[-2].minor.yy368, yymsp[0].minor.yy442); } + yymsp[-9].minor.yy442 = yylhsminor.yy442; break; - case 128: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy392 = createDropTableClause(pCxt, yymsp[-1].minor.yy481, yymsp[0].minor.yy392); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 131: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy442 = createDropTableClause(pCxt, yymsp[-1].minor.yy197, yymsp[0].minor.yy442); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 129: /* specific_tags_opt ::= */ - case 160: /* tags_def_opt ::= */ yytestcase(yyruleno==160); - case 412: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==412); - case 429: /* group_by_clause_opt ::= */ yytestcase(yyruleno==429); - case 445: /* order_by_clause_opt ::= */ yytestcase(yyruleno==445); -{ yymsp[1].minor.yy600 = NULL; } + case 132: /* specific_tags_opt ::= */ + case 163: /* tags_def_opt ::= */ yytestcase(yyruleno==163); + case 418: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==418); + case 435: /* group_by_clause_opt ::= */ yytestcase(yyruleno==435); + case 451: /* order_by_clause_opt ::= */ yytestcase(yyruleno==451); +{ yymsp[1].minor.yy368 = NULL; } break; - case 130: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy600 = yymsp[-1].minor.yy600; } + case 133: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy368 = yymsp[-1].minor.yy368; } break; - case 131: /* full_table_name ::= table_name */ -{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy57, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 134: /* full_table_name ::= table_name */ +{ yylhsminor.yy442 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy241, NULL); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 132: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57, NULL); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 135: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy442 = createRealTableNode(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241, NULL); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 135: /* column_def ::= column_name type_name */ -{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy57, yymsp[0].minor.yy448, NULL); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 138: /* column_def ::= column_name type_name */ +{ yylhsminor.yy442 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy241, yymsp[0].minor.yy392, NULL); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 136: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy57, yymsp[-2].minor.yy448, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 139: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy442 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy241, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy442 = yylhsminor.yy442; break; - case 137: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 140: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 138: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 141: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 139: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 142: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 140: /* type_name ::= INT */ - case 141: /* type_name ::= INTEGER */ yytestcase(yyruleno==141); -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_INT); } + case 143: /* type_name ::= INT */ + case 144: /* type_name ::= INTEGER */ yytestcase(yyruleno==144); +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 142: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 145: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 143: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 146: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 144: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 147: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 145: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 148: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy392 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 146: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 149: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 147: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 150: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy392 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 148: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 151: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy392 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 149: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 152: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy392 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 150: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UINT); } + case 153: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy392 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 151: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy448 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 154: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy392 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 152: /* type_name ::= JSON */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_JSON); } + case 155: /* type_name ::= JSON */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 153: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 156: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy392 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 154: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 157: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 155: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 158: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 156: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 159: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy392 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 157: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 160: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy392 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 158: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 161: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy392 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 159: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy448 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 162: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy392 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 161: /* tags_def_opt ::= tags_def */ - case 348: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==348); - case 403: /* select_list ::= select_sublist */ yytestcase(yyruleno==403); -{ yylhsminor.yy600 = yymsp[0].minor.yy600; } - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 164: /* tags_def_opt ::= tags_def */ + case 354: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==354); + case 409: /* select_list ::= select_sublist */ yytestcase(yyruleno==409); +{ yylhsminor.yy368 = yymsp[0].minor.yy368; } + yymsp[0].minor.yy368 = yylhsminor.yy368; break; - case 162: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy600 = yymsp[-1].minor.yy600; } + case 165: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy368 = yymsp[-1].minor.yy368; } break; - case 163: /* table_options ::= */ -{ yymsp[1].minor.yy392 = createDefaultTableOptions(pCxt); } + case 166: /* table_options ::= */ +{ yymsp[1].minor.yy442 = createDefaultTableOptions(pCxt); } break; - case 164: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 167: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy442 = setTableOption(pCxt, yymsp[-2].minor.yy442, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 165: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy600); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 168: /* table_options ::= table_options MAX_DELAY duration_list */ +{ yylhsminor.yy442 = setTableOption(pCxt, yymsp[-2].minor.yy442, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy368); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 166: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy600); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 169: /* table_options ::= table_options WATERMARK duration_list */ +{ yylhsminor.yy442 = setTableOption(pCxt, yymsp[-2].minor.yy442, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy368); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 167: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy600); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; + case 170: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ +{ yylhsminor.yy442 = setTableOption(pCxt, yymsp[-4].minor.yy442, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy368); } + yymsp[-4].minor.yy442 = yylhsminor.yy442; break; - case 168: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 171: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy442 = setTableOption(pCxt, yymsp[-2].minor.yy442, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 169: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_SMA, yymsp[-1].minor.yy600); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; + case 172: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy442 = setTableOption(pCxt, yymsp[-4].minor.yy442, TABLE_OPTION_SMA, yymsp[-1].minor.yy368); } + yymsp[-4].minor.yy442 = yylhsminor.yy442; break; - case 170: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy392 = createAlterTableOptions(pCxt); yylhsminor.yy392 = setTableOption(pCxt, yylhsminor.yy392, yymsp[0].minor.yy221.type, &yymsp[0].minor.yy221.val); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 173: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy442 = createAlterTableOptions(pCxt); yylhsminor.yy442 = setTableOption(pCxt, yylhsminor.yy442, yymsp[0].minor.yy301.type, &yymsp[0].minor.yy301.val); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 171: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy221.type, &yymsp[0].minor.yy221.val); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 174: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy442 = setTableOption(pCxt, yymsp[-1].minor.yy442, yymsp[0].minor.yy301.type, &yymsp[0].minor.yy301.val); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 172: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy221.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } + case 175: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy301.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy301.val = yymsp[0].minor.yy0; } break; - case 173: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy221.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy221.val = yymsp[0].minor.yy0; } + case 176: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy301.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy301.val = yymsp[0].minor.yy0; } break; - case 174: /* duration_list ::= duration_literal */ - case 322: /* expression_list ::= expression */ yytestcase(yyruleno==322); -{ yylhsminor.yy600 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 177: /* duration_list ::= duration_literal */ + case 328: /* expression_list ::= expression */ yytestcase(yyruleno==328); +{ yylhsminor.yy368 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy442)); } + yymsp[0].minor.yy368 = yylhsminor.yy368; break; - case 175: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 323: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==323); -{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 178: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 329: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==329); +{ yylhsminor.yy368 = addNodeToList(pCxt, yymsp[-2].minor.yy368, releaseRawExprNode(pCxt, yymsp[0].minor.yy442)); } + yymsp[-2].minor.yy368 = yylhsminor.yy368; break; - case 178: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy57, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 181: /* rollup_func_name ::= function_name */ +{ yylhsminor.yy442 = createFunctionNode(pCxt, &yymsp[0].minor.yy241, NULL); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 179: /* rollup_func_name ::= FIRST */ - case 180: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==180); -{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 182: /* rollup_func_name ::= FIRST */ + case 183: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==183); +{ yylhsminor.yy442 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 183: /* col_name ::= column_name */ -{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy57); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 186: /* col_name ::= column_name */ +{ yylhsminor.yy442 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy241); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 184: /* cmd ::= SHOW DNODES */ + case 187: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; - case 185: /* cmd ::= SHOW USERS */ + case 188: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; - case 186: /* cmd ::= SHOW DATABASES */ + case 189: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; - case 187: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } + case 190: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy442, yymsp[0].minor.yy442, OP_TYPE_LIKE); } break; - case 188: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } + case 191: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy442, yymsp[0].minor.yy442, OP_TYPE_LIKE); } break; - case 189: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy392, NULL, OP_TYPE_LIKE); } + case 192: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy442, NULL, OP_TYPE_LIKE); } break; - case 190: /* cmd ::= SHOW MNODES */ + case 193: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; - case 191: /* cmd ::= SHOW MODULES */ + case 194: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT); } break; - case 192: /* cmd ::= SHOW QNODES */ + case 195: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; - case 193: /* cmd ::= SHOW FUNCTIONS */ + case 196: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; - case 194: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); } + case 197: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy442, yymsp[-1].minor.yy442, OP_TYPE_EQUAL); } break; - case 195: /* cmd ::= SHOW STREAMS */ + case 198: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; - case 196: /* cmd ::= SHOW ACCOUNTS */ + case 199: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 197: /* cmd ::= SHOW APPS */ + case 200: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; - case 198: /* cmd ::= SHOW CONNECTIONS */ + case 201: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; - case 199: /* cmd ::= SHOW LICENCE */ - case 200: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==200); + case 202: /* cmd ::= SHOW LICENCE */ + case 203: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==203); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCE_STMT); } break; - case 201: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy57); } + case 204: /* cmd ::= SHOW CREATE DATABASE db_name */ +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy241); } break; - case 202: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy392); } + case 205: /* cmd ::= SHOW CREATE TABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy442); } break; - case 203: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy392); } + case 206: /* cmd ::= SHOW CREATE STABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy442); } break; - case 204: /* cmd ::= SHOW QUERIES */ + case 207: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; - case 205: /* cmd ::= SHOW SCORES */ + case 208: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; - case 206: /* cmd ::= SHOW TOPICS */ + case 209: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; - case 207: /* cmd ::= SHOW VARIABLES */ + case 210: /* cmd ::= SHOW VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; - case 208: /* cmd ::= SHOW LOCAL VARIABLES */ + case 211: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; - case 209: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ + case 212: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES */ { pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-1].minor.yy0)); } break; - case 210: /* cmd ::= SHOW BNODES */ + case 213: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; - case 211: /* cmd ::= SHOW SNODES */ + case 214: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; - case 212: /* cmd ::= SHOW CLUSTER */ + case 215: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; - case 213: /* cmd ::= SHOW TRANSACTIONS */ + case 216: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; - case 214: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy392); } + case 217: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy442); } break; - case 215: /* db_name_cond_opt ::= */ - case 220: /* from_db_opt ::= */ yytestcase(yyruleno==220); -{ yymsp[1].minor.yy392 = createDefaultDatabaseCondValue(pCxt); } + case 218: /* db_name_cond_opt ::= */ + case 223: /* from_db_opt ::= */ yytestcase(yyruleno==223); +{ yymsp[1].minor.yy442 = createDefaultDatabaseCondValue(pCxt); } break; - case 216: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy57); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 219: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy241); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 217: /* like_pattern_opt ::= */ - case 225: /* index_options ::= */ yytestcase(yyruleno==225); - case 254: /* into_opt ::= */ yytestcase(yyruleno==254); - case 410: /* where_clause_opt ::= */ yytestcase(yyruleno==410); - case 414: /* twindow_clause_opt ::= */ yytestcase(yyruleno==414); - case 419: /* sliding_opt ::= */ yytestcase(yyruleno==419); - case 421: /* fill_opt ::= */ yytestcase(yyruleno==421); - case 433: /* having_clause_opt ::= */ yytestcase(yyruleno==433); - case 435: /* range_opt ::= */ yytestcase(yyruleno==435); - case 437: /* every_opt ::= */ yytestcase(yyruleno==437); - case 447: /* slimit_clause_opt ::= */ yytestcase(yyruleno==447); - case 451: /* limit_clause_opt ::= */ yytestcase(yyruleno==451); -{ yymsp[1].minor.yy392 = NULL; } + case 220: /* like_pattern_opt ::= */ + case 227: /* index_options ::= */ yytestcase(yyruleno==227); + case 258: /* into_opt ::= */ yytestcase(yyruleno==258); + case 416: /* where_clause_opt ::= */ yytestcase(yyruleno==416); + case 420: /* twindow_clause_opt ::= */ yytestcase(yyruleno==420); + case 425: /* sliding_opt ::= */ yytestcase(yyruleno==425); + case 427: /* fill_opt ::= */ yytestcase(yyruleno==427); + case 439: /* having_clause_opt ::= */ yytestcase(yyruleno==439); + case 441: /* range_opt ::= */ yytestcase(yyruleno==441); + case 443: /* every_opt ::= */ yytestcase(yyruleno==443); + case 453: /* slimit_clause_opt ::= */ yytestcase(yyruleno==453); + case 457: /* limit_clause_opt ::= */ yytestcase(yyruleno==457); +{ yymsp[1].minor.yy442 = NULL; } break; - case 218: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 221: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 219: /* table_name_cond ::= table_name */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy57); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 222: /* table_name_cond ::= table_name */ +{ yylhsminor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy241); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 221: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy57); } + case 224: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy241); } break; - case 222: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy481, &yymsp[-3].minor.yy57, &yymsp[-1].minor.yy57, NULL, yymsp[0].minor.yy392); } + case 225: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy197, &yymsp[-3].minor.yy241, &yymsp[-1].minor.yy241, NULL, yymsp[0].minor.yy442); } break; - case 223: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy481, &yymsp[-5].minor.yy57, &yymsp[-3].minor.yy57, yymsp[-1].minor.yy600, NULL); } + case 226: /* cmd ::= DROP INDEX exists_opt index_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy197, &yymsp[0].minor.yy241); } break; - case 224: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy481, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57); } + case 228: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ +{ yymsp[-8].minor.yy442 = createIndexOption(pCxt, yymsp[-6].minor.yy368, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), NULL, yymsp[0].minor.yy442); } break; - case 226: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy392 = createIndexOption(pCxt, yymsp[-6].minor.yy600, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), NULL, yymsp[0].minor.yy392); } + case 229: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ +{ yymsp[-10].minor.yy442 = createIndexOption(pCxt, yymsp[-8].minor.yy368, releaseRawExprNode(pCxt, yymsp[-4].minor.yy442), releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), yymsp[0].minor.yy442); } break; - case 227: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ -{ yymsp[-10].minor.yy392 = createIndexOption(pCxt, yymsp[-8].minor.yy600, releaseRawExprNode(pCxt, yymsp[-4].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[0].minor.yy392); } + case 232: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy442 = createFunctionNode(pCxt, &yymsp[-3].minor.yy241, yymsp[-1].minor.yy368); } + yymsp[-3].minor.yy442 = yylhsminor.yy442; break; - case 230: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[-3].minor.yy57, yymsp[-1].minor.yy600); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 233: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy197, &yymsp[-2].minor.yy241, yymsp[0].minor.yy442); } break; - case 231: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy481, &yymsp[-2].minor.yy57, yymsp[0].minor.yy392, NULL, NULL); } + case 234: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy197, &yymsp[-3].minor.yy241, &yymsp[0].minor.yy241, false); } break; - case 232: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy481, &yymsp[-3].minor.yy57, NULL, &yymsp[0].minor.yy57, NULL); } + case 235: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy197, &yymsp[-5].minor.yy241, &yymsp[0].minor.yy241, true); } break; - case 233: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-4].minor.yy481, &yymsp[-3].minor.yy57, NULL, NULL, yymsp[0].minor.yy392); } + case 236: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy197, &yymsp[-3].minor.yy241, yymsp[0].minor.yy442, false); } break; - case 234: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy481, &yymsp[0].minor.yy57); } + case 237: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy197, &yymsp[-5].minor.yy241, yymsp[0].minor.yy442, true); } break; - case 235: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy481, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57); } + case 238: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy197, &yymsp[0].minor.yy241); } break; - case 236: /* cmd ::= DESC full_table_name */ - case 237: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==237); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy392); } + case 239: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy197, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241); } break; - case 238: /* cmd ::= RESET QUERY CACHE */ + case 240: /* cmd ::= DESC full_table_name */ + case 241: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==241); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy442); } + break; + case 242: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 239: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy481, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 243: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy197, yymsp[-1].minor.yy442, yymsp[0].minor.yy442); } break; - case 241: /* analyze_opt ::= ANALYZE */ - case 249: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==249); - case 400: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==400); -{ yymsp[0].minor.yy481 = true; } + case 245: /* analyze_opt ::= ANALYZE */ + case 253: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==253); + case 406: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==406); +{ yymsp[0].minor.yy197 = true; } break; - case 242: /* explain_options ::= */ -{ yymsp[1].minor.yy392 = createDefaultExplainOptions(pCxt); } + case 246: /* explain_options ::= */ +{ yymsp[1].minor.yy442 = createDefaultExplainOptions(pCxt); } break; - case 243: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy392 = setExplainVerbose(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 247: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy442 = setExplainVerbose(pCxt, yymsp[-2].minor.yy442, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 244: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy392 = setExplainRatio(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 248: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy442 = setExplainRatio(pCxt, yymsp[-2].minor.yy442, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 245: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ -{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy600); } + case 249: /* cmd ::= COMPACT VNODES IN NK_LP integer_list NK_RP */ +{ pCxt->pRootNode = createCompactStmt(pCxt, yymsp[-1].minor.yy368); } break; - case 246: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy481, yymsp[-8].minor.yy481, &yymsp[-5].minor.yy57, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy448, yymsp[0].minor.yy228); } + case 250: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt */ +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-6].minor.yy197, yymsp[-8].minor.yy197, &yymsp[-5].minor.yy241, &yymsp[-3].minor.yy0, yymsp[-1].minor.yy392, yymsp[0].minor.yy578); } break; - case 247: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy481, &yymsp[0].minor.yy57); } + case 251: /* cmd ::= DROP FUNCTION exists_opt function_name */ +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy197, &yymsp[0].minor.yy241); } break; - case 250: /* bufsize_opt ::= */ -{ yymsp[1].minor.yy228 = 0; } + case 254: /* bufsize_opt ::= */ +{ yymsp[1].minor.yy578 = 0; } break; - case 251: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ -{ yymsp[-1].minor.yy228 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } + case 255: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ +{ yymsp[-1].minor.yy578 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 252: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy481, &yymsp[-4].minor.yy57, yymsp[-2].minor.yy392, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } + case 256: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options into_opt AS query_expression */ +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-5].minor.yy197, &yymsp[-4].minor.yy241, yymsp[-2].minor.yy442, yymsp[-3].minor.yy442, yymsp[0].minor.yy442); } break; - case 253: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy481, &yymsp[0].minor.yy57); } + case 257: /* cmd ::= DROP STREAM exists_opt stream_name */ +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy197, &yymsp[0].minor.yy241); } break; - case 255: /* into_opt ::= INTO full_table_name */ - case 381: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==381); - case 411: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==411); - case 434: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==434); -{ yymsp[-1].minor.yy392 = yymsp[0].minor.yy392; } + case 259: /* into_opt ::= INTO full_table_name */ + case 387: /* from_clause ::= FROM table_reference_list */ yytestcase(yyruleno==387); + case 417: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==417); + case 440: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==440); +{ yymsp[-1].minor.yy442 = yymsp[0].minor.yy442; } break; - case 256: /* stream_options ::= */ -{ yymsp[1].minor.yy392 = createStreamOptions(pCxt); } + case 260: /* stream_options ::= */ +{ yymsp[1].minor.yy442 = createStreamOptions(pCxt); } break; - case 257: /* stream_options ::= stream_options TRIGGER AT_ONCE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy392)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy392 = yymsp[-2].minor.yy392; } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 261: /* stream_options ::= stream_options TRIGGER AT_ONCE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy442)->triggerType = STREAM_TRIGGER_AT_ONCE; yylhsminor.yy442 = yymsp[-2].minor.yy442; } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 258: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ -{ ((SStreamOptions*)yymsp[-2].minor.yy392)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy392 = yymsp[-2].minor.yy392; } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 262: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ +{ ((SStreamOptions*)yymsp[-2].minor.yy442)->triggerType = STREAM_TRIGGER_WINDOW_CLOSE; yylhsminor.yy442 = yymsp[-2].minor.yy442; } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 259: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-3].minor.yy392)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy392)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-3].minor.yy392; } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 263: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ +{ ((SStreamOptions*)yymsp[-3].minor.yy442)->triggerType = STREAM_TRIGGER_MAX_DELAY; ((SStreamOptions*)yymsp[-3].minor.yy442)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy442); yylhsminor.yy442 = yymsp[-3].minor.yy442; } + yymsp[-3].minor.yy442 = yylhsminor.yy442; break; - case 260: /* stream_options ::= stream_options WATERMARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 264: /* stream_options ::= stream_options WATERMARK duration_literal */ +{ ((SStreamOptions*)yymsp[-2].minor.yy442)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy442); yylhsminor.yy442 = yymsp[-2].minor.yy442; } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 261: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 265: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 262: /* cmd ::= KILL QUERY NK_STRING */ + case 266: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 263: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 267: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; - case 264: /* cmd ::= BALANCE VGROUP */ + case 268: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; - case 265: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 269: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 266: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy600); } + case 270: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy368); } break; - case 267: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 271: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 268: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy600 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - break; - case 270: /* cmd ::= SYNCDB db_name REPLICA */ -{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy57); } - break; - case 271: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } - break; - case 273: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 274: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 275: /* literal ::= NK_STRING */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 276: /* literal ::= NK_BOOL */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 277: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; - break; - case 278: /* literal ::= duration_literal */ - case 288: /* signed_literal ::= signed */ yytestcase(yyruleno==288); - case 308: /* expression ::= literal */ yytestcase(yyruleno==308); - case 309: /* expression ::= pseudo_column */ yytestcase(yyruleno==309); - case 310: /* expression ::= column_reference */ yytestcase(yyruleno==310); - case 311: /* expression ::= function_expression */ yytestcase(yyruleno==311); - case 312: /* expression ::= subquery */ yytestcase(yyruleno==312); - case 337: /* function_expression ::= literal_func */ yytestcase(yyruleno==337); - case 373: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==373); - case 377: /* boolean_primary ::= predicate */ yytestcase(yyruleno==377); - case 379: /* common_expression ::= expression */ yytestcase(yyruleno==379); - case 380: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==380); - case 382: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==382); - case 384: /* table_reference ::= table_primary */ yytestcase(yyruleno==384); - case 385: /* table_reference ::= joined_table */ yytestcase(yyruleno==385); - case 389: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==389); - case 440: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==440); - case 443: /* query_primary ::= query_specification */ yytestcase(yyruleno==443); -{ yylhsminor.yy392 = yymsp[0].minor.yy392; } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 279: /* literal ::= NULL */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 280: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 281: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 282: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 283: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 284: /* signed ::= NK_MINUS NK_INTEGER */ + case 272: /* dnode_list ::= DNODE NK_INTEGER */ +{ yymsp[-1].minor.yy368 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + break; + case 274: /* cmd ::= SYNCDB db_name REPLICA */ +{ pCxt->pRootNode = createSyncdbStmt(pCxt, &yymsp[-1].minor.yy241); } + break; + case 275: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy442, yymsp[0].minor.yy442); } + break; + case 277: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy442 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 278: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy442 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 279: /* literal ::= NK_STRING */ +{ yylhsminor.yy442 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 280: /* literal ::= NK_BOOL */ +{ yylhsminor.yy442 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 281: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; + break; + case 282: /* literal ::= duration_literal */ + case 292: /* signed_literal ::= signed */ yytestcase(yyruleno==292); + case 312: /* expression ::= literal */ yytestcase(yyruleno==312); + case 313: /* expression ::= pseudo_column */ yytestcase(yyruleno==313); + case 314: /* expression ::= column_reference */ yytestcase(yyruleno==314); + case 315: /* expression ::= function_expression */ yytestcase(yyruleno==315); + case 316: /* expression ::= subquery */ yytestcase(yyruleno==316); + case 343: /* function_expression ::= literal_func */ yytestcase(yyruleno==343); + case 379: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==379); + case 383: /* boolean_primary ::= predicate */ yytestcase(yyruleno==383); + case 385: /* common_expression ::= expression */ yytestcase(yyruleno==385); + case 386: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==386); + case 388: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==388); + case 390: /* table_reference ::= table_primary */ yytestcase(yyruleno==390); + case 391: /* table_reference ::= joined_table */ yytestcase(yyruleno==391); + case 395: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==395); + case 446: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==446); + case 449: /* query_primary ::= query_specification */ yytestcase(yyruleno==449); +{ yylhsminor.yy442 = yymsp[0].minor.yy442; } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 283: /* literal ::= NULL */ +{ yylhsminor.yy442 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 284: /* literal ::= NK_QUESTION */ +{ yylhsminor.yy442 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 285: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy442 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 286: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 287: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + break; + case 288: /* signed ::= NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 285: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 289: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 286: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 290: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 287: /* signed ::= NK_MINUS NK_FLOAT */ + case 291: /* signed ::= NK_MINUS NK_FLOAT */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy442 = yylhsminor.yy442; + break; + case 293: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 289: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 294: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 290: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 295: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 291: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 296: /* signed_literal ::= duration_literal */ + case 298: /* signed_literal ::= literal_func */ yytestcase(yyruleno==298); + case 357: /* star_func_para ::= expression */ yytestcase(yyruleno==357); + case 412: /* select_item ::= common_expression */ yytestcase(yyruleno==412); + case 462: /* search_condition ::= common_expression */ yytestcase(yyruleno==462); +{ yylhsminor.yy442 = releaseRawExprNode(pCxt, yymsp[0].minor.yy442); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 292: /* signed_literal ::= duration_literal */ - case 294: /* signed_literal ::= literal_func */ yytestcase(yyruleno==294); - case 351: /* star_func_para ::= expression */ yytestcase(yyruleno==351); - case 406: /* select_item ::= common_expression */ yytestcase(yyruleno==406); - case 456: /* search_condition ::= common_expression */ yytestcase(yyruleno==456); -{ yylhsminor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 297: /* signed_literal ::= NULL */ +{ yylhsminor.yy442 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy442 = yylhsminor.yy442; break; - case 293: /* signed_literal ::= NULL */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 317: /* expression ::= NK_LP expression NK_RP */ + case 384: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==384); +{ yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy442)); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 313: /* expression ::= NK_LP expression NK_RP */ - case 378: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==378); -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 318: /* expression ::= NK_PLUS expression */ +{ + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy442)); + } + yymsp[-1].minor.yy442 = yylhsminor.yy442; + break; + case 319: /* expression ::= NK_MINUS expression */ +{ + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy442), NULL)); + } + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 314: /* expression ::= NK_PLUS expression */ + case 320: /* expression ::= expression NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 315: /* expression ::= NK_MINUS expression */ + case 321: /* expression ::= expression NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 316: /* expression ::= expression NK_PLUS expression */ + case 322: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 317: /* expression ::= expression NK_MINUS expression */ + case 323: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 318: /* expression ::= expression NK_STAR expression */ + case 324: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 319: /* expression ::= expression NK_SLASH expression */ + case 325: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 320: /* expression ::= expression NK_REM expression */ + case 326: /* expression ::= expression NK_BITAND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 321: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 327: /* expression ::= expression NK_BITOR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 324: /* column_reference ::= column_name */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy57, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy57)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 325: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57, createColumnNode(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy57)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 326: /* pseudo_column ::= ROWTS */ - case 327: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==327); - case 329: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==329); - case 330: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==330); - case 331: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==331); - case 332: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==332); - case 333: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==333); - case 339: /* literal_func ::= NOW */ yytestcase(yyruleno==339); -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; - break; - case 328: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy57)))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 334: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 335: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==335); -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy57, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy57, yymsp[-1].minor.yy600)); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; - break; - case 336: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy448)); } - yymsp[-5].minor.yy392 = yylhsminor.yy392; - break; - case 338: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy57, NULL)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 347: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy600 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy600 = yylhsminor.yy600; - break; - case 352: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 409: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==409); -{ yylhsminor.yy392 = createColumnNode(pCxt, &yymsp[-2].minor.yy57, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; - break; - case 353: /* predicate ::= expression compare_op expression */ - case 358: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==358); + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 330: /* column_reference ::= column_name */ +{ yylhsminor.yy442 = createRawExprNode(pCxt, &yymsp[0].minor.yy241, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy241)); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 331: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241, createColumnNode(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy241)); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 332: /* pseudo_column ::= ROWTS */ + case 333: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==333); + case 335: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==335); + case 336: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==336); + case 337: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==337); + case 338: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==338); + case 339: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==339); + case 345: /* literal_func ::= NOW */ yytestcase(yyruleno==345); +{ yylhsminor.yy442 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy442 = yylhsminor.yy442; + break; + case 334: /* pseudo_column ::= table_name NK_DOT TBNAME */ +{ yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy241)))); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 340: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 341: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==341); +{ yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy241, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy241, yymsp[-1].minor.yy368)); } + yymsp[-3].minor.yy442 = yylhsminor.yy442; + break; + case 342: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ +{ yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy442), yymsp[-1].minor.yy392)); } + yymsp[-5].minor.yy442 = yylhsminor.yy442; + break; + case 344: /* literal_func ::= noarg_func NK_LP NK_RP */ +{ yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy241, NULL)); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 353: /* star_func_para_list ::= NK_STAR */ +{ yylhsminor.yy368 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy368 = yylhsminor.yy368; + break; + case 358: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 415: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==415); +{ yylhsminor.yy442 = createColumnNode(pCxt, &yymsp[-2].minor.yy241, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; + break; + case 359: /* predicate ::= expression compare_op expression */ + case 364: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==364); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy324, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy412, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 354: /* predicate ::= expression BETWEEN expression AND expression */ + case 360: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy442), releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; + yymsp[-4].minor.yy442 = yylhsminor.yy442; break; - case 355: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 361: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy442), releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-5].minor.yy392 = yylhsminor.yy392; + yymsp[-5].minor.yy442 = yylhsminor.yy442; break; - case 356: /* predicate ::= expression IS NULL */ + case 362: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), NULL)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 357: /* predicate ::= expression IS NOT NULL */ + case 363: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy442), NULL)); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + yymsp[-3].minor.yy442 = yylhsminor.yy442; break; - case 359: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy324 = OP_TYPE_LOWER_THAN; } + case 365: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy412 = OP_TYPE_LOWER_THAN; } break; - case 360: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy324 = OP_TYPE_GREATER_THAN; } + case 366: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy412 = OP_TYPE_GREATER_THAN; } break; - case 361: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy324 = OP_TYPE_LOWER_EQUAL; } + case 367: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy412 = OP_TYPE_LOWER_EQUAL; } break; - case 362: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy324 = OP_TYPE_GREATER_EQUAL; } + case 368: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy412 = OP_TYPE_GREATER_EQUAL; } break; - case 363: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy324 = OP_TYPE_NOT_EQUAL; } + case 369: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy412 = OP_TYPE_NOT_EQUAL; } break; - case 364: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy324 = OP_TYPE_EQUAL; } + case 370: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy412 = OP_TYPE_EQUAL; } break; - case 365: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy324 = OP_TYPE_LIKE; } + case 371: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy412 = OP_TYPE_LIKE; } break; - case 366: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy324 = OP_TYPE_NOT_LIKE; } + case 372: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy412 = OP_TYPE_NOT_LIKE; } break; - case 367: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy324 = OP_TYPE_MATCH; } + case 373: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy412 = OP_TYPE_MATCH; } break; - case 368: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy324 = OP_TYPE_NMATCH; } + case 374: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy412 = OP_TYPE_NMATCH; } break; - case 369: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy324 = OP_TYPE_JSON_CONTAINS; } + case 375: /* compare_op ::= CONTAINS */ +{ yymsp[0].minor.yy412 = OP_TYPE_JSON_CONTAINS; } break; - case 370: /* in_op ::= IN */ -{ yymsp[0].minor.yy324 = OP_TYPE_IN; } + case 376: /* in_op ::= IN */ +{ yymsp[0].minor.yy412 = OP_TYPE_IN; } break; - case 371: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy324 = OP_TYPE_NOT_IN; } + case 377: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy412 = OP_TYPE_NOT_IN; } break; - case 372: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy600)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 378: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy368)); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 374: /* boolean_value_expression ::= NOT boolean_primary */ + case 380: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy442), NULL)); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 375: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 381: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 376: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 382: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy442); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy442); + yylhsminor.yy442 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 383: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy392 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, NULL); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 389: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy442 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy442, yymsp[0].minor.yy442, NULL); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 386: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy57, &yymsp[0].minor.yy57); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 392: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy442 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy241, &yymsp[0].minor.yy241); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 387: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-3].minor.yy57, &yymsp[-1].minor.yy57, &yymsp[0].minor.yy57); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 393: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy442 = createRealTableNode(pCxt, &yymsp[-3].minor.yy241, &yymsp[-1].minor.yy241, &yymsp[0].minor.yy241); } + yymsp[-3].minor.yy442 = yylhsminor.yy442; break; - case 388: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy392 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy57); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 394: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy442 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy442), &yymsp[0].minor.yy241); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 390: /* alias_opt ::= */ -{ yymsp[1].minor.yy57 = nil_token; } + case 396: /* alias_opt ::= */ +{ yymsp[1].minor.yy241 = nil_token; } break; - case 391: /* alias_opt ::= table_alias */ -{ yylhsminor.yy57 = yymsp[0].minor.yy57; } - yymsp[0].minor.yy57 = yylhsminor.yy57; + case 397: /* alias_opt ::= table_alias */ +{ yylhsminor.yy241 = yymsp[0].minor.yy241; } + yymsp[0].minor.yy241 = yylhsminor.yy241; break; - case 392: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy57 = yymsp[0].minor.yy57; } + case 398: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy241 = yymsp[0].minor.yy241; } break; - case 393: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 394: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==394); -{ yymsp[-2].minor.yy392 = yymsp[-1].minor.yy392; } + case 399: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 400: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==400); +{ yymsp[-2].minor.yy442 = yymsp[-1].minor.yy442; } break; - case 395: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy392 = createJoinTableNode(pCxt, yymsp[-4].minor.yy204, yymsp[-5].minor.yy392, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } - yymsp[-5].minor.yy392 = yylhsminor.yy392; + case 401: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy442 = createJoinTableNode(pCxt, yymsp[-4].minor.yy208, yymsp[-5].minor.yy442, yymsp[-2].minor.yy442, yymsp[0].minor.yy442); } + yymsp[-5].minor.yy442 = yylhsminor.yy442; break; - case 396: /* join_type ::= */ -{ yymsp[1].minor.yy204 = JOIN_TYPE_INNER; } + case 402: /* join_type ::= */ +{ yymsp[1].minor.yy208 = JOIN_TYPE_INNER; } break; - case 397: /* join_type ::= INNER */ -{ yymsp[0].minor.yy204 = JOIN_TYPE_INNER; } + case 403: /* join_type ::= INNER */ +{ yymsp[0].minor.yy208 = JOIN_TYPE_INNER; } break; - case 398: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 404: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-11].minor.yy392 = createSelectStmt(pCxt, yymsp[-10].minor.yy481, yymsp[-9].minor.yy600, yymsp[-8].minor.yy392); - yymsp[-11].minor.yy392 = addWhereClause(pCxt, yymsp[-11].minor.yy392, yymsp[-7].minor.yy392); - yymsp[-11].minor.yy392 = addPartitionByClause(pCxt, yymsp[-11].minor.yy392, yymsp[-6].minor.yy600); - yymsp[-11].minor.yy392 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy392, yymsp[-2].minor.yy392); - yymsp[-11].minor.yy392 = addGroupByClause(pCxt, yymsp[-11].minor.yy392, yymsp[-1].minor.yy600); - yymsp[-11].minor.yy392 = addHavingClause(pCxt, yymsp[-11].minor.yy392, yymsp[0].minor.yy392); - yymsp[-11].minor.yy392 = addRangeClause(pCxt, yymsp[-11].minor.yy392, yymsp[-5].minor.yy392); - yymsp[-11].minor.yy392 = addEveryClause(pCxt, yymsp[-11].minor.yy392, yymsp[-4].minor.yy392); - yymsp[-11].minor.yy392 = addFillClause(pCxt, yymsp[-11].minor.yy392, yymsp[-3].minor.yy392); + yymsp[-11].minor.yy442 = createSelectStmt(pCxt, yymsp[-10].minor.yy197, yymsp[-9].minor.yy368, yymsp[-8].minor.yy442); + yymsp[-11].minor.yy442 = addWhereClause(pCxt, yymsp[-11].minor.yy442, yymsp[-7].minor.yy442); + yymsp[-11].minor.yy442 = addPartitionByClause(pCxt, yymsp[-11].minor.yy442, yymsp[-6].minor.yy368); + yymsp[-11].minor.yy442 = addWindowClauseClause(pCxt, yymsp[-11].minor.yy442, yymsp[-2].minor.yy442); + yymsp[-11].minor.yy442 = addGroupByClause(pCxt, yymsp[-11].minor.yy442, yymsp[-1].minor.yy368); + yymsp[-11].minor.yy442 = addHavingClause(pCxt, yymsp[-11].minor.yy442, yymsp[0].minor.yy442); + yymsp[-11].minor.yy442 = addRangeClause(pCxt, yymsp[-11].minor.yy442, yymsp[-5].minor.yy442); + yymsp[-11].minor.yy442 = addEveryClause(pCxt, yymsp[-11].minor.yy442, yymsp[-4].minor.yy442); + yymsp[-11].minor.yy442 = addFillClause(pCxt, yymsp[-11].minor.yy442, yymsp[-3].minor.yy442); } break; - case 401: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy481 = false; } + case 407: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy197 = false; } break; - case 402: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy600 = NULL; } + case 408: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy368 = NULL; } break; - case 407: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy57); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 413: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy442 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy442), &yymsp[0].minor.yy241); } + yymsp[-1].minor.yy442 = yylhsminor.yy442; break; - case 408: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), &yymsp[0].minor.yy57); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 414: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy442 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), &yymsp[0].minor.yy241); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 413: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 430: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==430); - case 446: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==446); -{ yymsp[-2].minor.yy600 = yymsp[0].minor.yy600; } + case 419: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 436: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==436); + case 452: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==452); +{ yymsp[-2].minor.yy368 = yymsp[0].minor.yy368; } break; - case 415: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy392 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + case 421: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy442 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy442), releaseRawExprNode(pCxt, yymsp[-1].minor.yy442)); } break; - case 416: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ -{ yymsp[-3].minor.yy392 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + case 422: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ +{ yymsp[-3].minor.yy442 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy442)); } break; - case 417: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 423: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy442 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy442), NULL, yymsp[-1].minor.yy442, yymsp[0].minor.yy442); } break; - case 418: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 424: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy442 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy442), releaseRawExprNode(pCxt, yymsp[-3].minor.yy442), yymsp[-1].minor.yy442, yymsp[0].minor.yy442); } break; - case 420: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - case 438: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==438); -{ yymsp[-3].minor.yy392 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy392); } + case 426: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + case 444: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==444); +{ yymsp[-3].minor.yy442 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy442); } break; - case 422: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy392 = createFillNode(pCxt, yymsp[-1].minor.yy270, NULL); } + case 428: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy442 = createFillNode(pCxt, yymsp[-1].minor.yy388, NULL); } break; - case 423: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy600)); } + case 429: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy442 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy368)); } break; - case 424: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy270 = FILL_MODE_NONE; } + case 430: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy388 = FILL_MODE_NONE; } break; - case 425: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy270 = FILL_MODE_PREV; } + case 431: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy388 = FILL_MODE_PREV; } break; - case 426: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy270 = FILL_MODE_NULL; } + case 432: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy388 = FILL_MODE_NULL; } break; - case 427: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy270 = FILL_MODE_LINEAR; } + case 433: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy388 = FILL_MODE_LINEAR; } break; - case 428: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy270 = FILL_MODE_NEXT; } + case 434: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy388 = FILL_MODE_NEXT; } break; - case 431: /* group_by_list ::= expression */ -{ yylhsminor.yy600 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[0].minor.yy600 = yylhsminor.yy600; + case 437: /* group_by_list ::= expression */ +{ yylhsminor.yy368 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } + yymsp[0].minor.yy368 = yylhsminor.yy368; break; - case 432: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy600 = addNodeToList(pCxt, yymsp[-2].minor.yy600, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy600 = yylhsminor.yy600; + case 438: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy368 = addNodeToList(pCxt, yymsp[-2].minor.yy368, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy442))); } + yymsp[-2].minor.yy368 = yylhsminor.yy368; break; - case 436: /* range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ -{ yymsp[-5].minor.yy392 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + case 442: /* range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ +{ yymsp[-5].minor.yy442 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy442), releaseRawExprNode(pCxt, yymsp[-1].minor.yy442)); } break; - case 439: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 445: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy392 = addOrderByClause(pCxt, yymsp[-3].minor.yy392, yymsp[-2].minor.yy600); - yylhsminor.yy392 = addSlimitClause(pCxt, yylhsminor.yy392, yymsp[-1].minor.yy392); - yylhsminor.yy392 = addLimitClause(pCxt, yylhsminor.yy392, yymsp[0].minor.yy392); + yylhsminor.yy442 = addOrderByClause(pCxt, yymsp[-3].minor.yy442, yymsp[-2].minor.yy368); + yylhsminor.yy442 = addSlimitClause(pCxt, yylhsminor.yy442, yymsp[-1].minor.yy442); + yylhsminor.yy442 = addLimitClause(pCxt, yylhsminor.yy442, yymsp[0].minor.yy442); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + yymsp[-3].minor.yy442 = yylhsminor.yy442; break; - case 441: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 447: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy442 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy442, yymsp[0].minor.yy442); } + yymsp[-3].minor.yy442 = yylhsminor.yy442; break; - case 442: /* query_expression_body ::= query_expression_body UNION query_expression_body */ -{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 448: /* query_expression_body ::= query_expression_body UNION query_expression_body */ +{ yylhsminor.yy442 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy442, yymsp[0].minor.yy442); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 444: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ -{ yymsp[-5].minor.yy392 = yymsp[-4].minor.yy392; } - yy_destructor(yypParser,356,&yymsp[-3].minor); - yy_destructor(yypParser,357,&yymsp[-2].minor); - yy_destructor(yypParser,358,&yymsp[-1].minor); + case 450: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ +{ yymsp[-5].minor.yy442 = yymsp[-4].minor.yy442; } + yy_destructor(yypParser,359,&yymsp[-3].minor); + yy_destructor(yypParser,360,&yymsp[-2].minor); + yy_destructor(yypParser,361,&yymsp[-1].minor); break; - case 448: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 452: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==452); -{ yymsp[-1].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 454: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 458: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==458); +{ yymsp[-1].minor.yy442 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 449: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 453: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==453); -{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 455: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 459: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==459); +{ yymsp[-3].minor.yy442 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 450: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 454: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==454); -{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 456: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 460: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==460); +{ yymsp[-3].minor.yy442 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 455: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy392); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 461: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy442 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy442); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 459: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy392 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[-1].minor.yy162, yymsp[0].minor.yy529); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 465: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy442 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy442), yymsp[-1].minor.yy362, yymsp[0].minor.yy417); } + yymsp[-2].minor.yy442 = yylhsminor.yy442; break; - case 460: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy162 = ORDER_ASC; } + case 466: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy362 = ORDER_ASC; } break; - case 461: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy162 = ORDER_ASC; } + case 467: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy362 = ORDER_ASC; } break; - case 462: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy162 = ORDER_DESC; } + case 468: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy362 = ORDER_DESC; } break; - case 463: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy529 = NULL_ORDER_DEFAULT; } + case 469: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy417 = NULL_ORDER_DEFAULT; } break; - case 464: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy529 = NULL_ORDER_FIRST; } + case 470: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy417 = NULL_ORDER_FIRST; } break; - case 465: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy529 = NULL_ORDER_LAST; } + case 471: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy417 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/parser/test/parInitialATest.cpp b/source/libs/parser/test/parInitialATest.cpp index 021348dcc7310c819a1745fa244bbe158385d3c0..ee9dae2a0114ac38ea464d5f9dd0f30651284b88 100644 --- a/source/libs/parser/test/parInitialATest.cpp +++ b/source/libs/parser/test/parInitialATest.cpp @@ -121,7 +121,7 @@ TEST_F(ParserInitialATest, alterSTable) { int32_t len = snprintf(expect.name, sizeof(expect.name), "0.test.%s", pTbname); expect.name[len] = '\0'; expect.alterType = alterType; -// expect.ttl = ttl; + // expect.ttl = ttl; if (nullptr != pComment) { expect.comment = strdup(pComment); expect.commentLen = strlen(pComment); @@ -180,9 +180,9 @@ TEST_F(ParserInitialATest, alterSTable) { tFreeSMAltertbReq(&req); }); -// setAlterStbReqFunc("st1", TSDB_ALTER_TABLE_UPDATE_OPTIONS, 0, nullptr, 0, 0, nullptr, nullptr, 10); -// run("ALTER TABLE st1 TTL 10"); -// clearAlterStbReq(); + // setAlterStbReqFunc("st1", TSDB_ALTER_TABLE_UPDATE_OPTIONS, 0, nullptr, 0, 0, nullptr, nullptr, 10); + // run("ALTER TABLE st1 TTL 10"); + // clearAlterStbReq(); setAlterStbReqFunc("st1", TSDB_ALTER_TABLE_UPDATE_OPTIONS, 0, nullptr, 0, 0, nullptr, "test"); run("ALTER TABLE st1 COMMENT 'test'"); @@ -381,9 +381,48 @@ TEST_F(ParserInitialATest, alterTableSemanticCheck) { TEST_F(ParserInitialATest, alterUser) { useDb("root", "test"); - run("ALTER user wxy PASS '123456'"); + SAlterUserReq expect = {0}; - run("ALTER user wxy privilege 'write'"); + auto clearAlterUserReq = [&]() { memset(&expect, 0, sizeof(SAlterUserReq)); }; + + auto setAlterUserReq = [&](const char* pUser, int8_t alterType, const char* pPass = nullptr, int8_t sysInfo = 0, + int8_t enable = 0) { + strcpy(expect.user, pUser); + expect.alterType = alterType; + expect.superUser = 0; + expect.sysInfo = sysInfo; + expect.enable = enable; + if (nullptr != pPass) { + strcpy(expect.pass, pPass); + } + strcpy(expect.dbname, "test"); + }; + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_ALTER_USER_STMT); + SAlterUserReq req = {0}; + ASSERT_TRUE(TSDB_CODE_SUCCESS == tDeserializeSAlterUserReq(pQuery->pCmdMsg->pMsg, pQuery->pCmdMsg->msgLen, &req)); + + ASSERT_EQ(req.alterType, expect.alterType); + ASSERT_EQ(req.superUser, expect.superUser); + ASSERT_EQ(req.sysInfo, expect.sysInfo); + ASSERT_EQ(req.enable, expect.enable); + ASSERT_EQ(std::string(req.user), std::string(expect.user)); + ASSERT_EQ(std::string(req.pass), std::string(expect.pass)); + ASSERT_EQ(std::string(req.dbname), std::string(expect.dbname)); + }); + + setAlterUserReq("wxy", TSDB_ALTER_USER_PASSWD, "123456"); + run("ALTER USER wxy PASS '123456'"); + clearAlterUserReq(); + + setAlterUserReq("wxy", TSDB_ALTER_USER_ENABLE, nullptr, 0, 1); + run("ALTER USER wxy ENABLE 1"); + clearAlterUserReq(); + + setAlterUserReq("wxy", TSDB_ALTER_USER_SYSINFO, nullptr, 1); + run("ALTER USER wxy SYSINFO 1"); + clearAlterUserReq(); } TEST_F(ParserInitialATest, balanceVgroup) { diff --git a/source/libs/parser/test/parInitialCTest.cpp b/source/libs/parser/test/parInitialCTest.cpp index d188744adf57385980279d6490f1d0e86db7ddac..7de92bba0c71671f52c70ed8dfe01e92eede41b0 100644 --- a/source/libs/parser/test/parInitialCTest.cpp +++ b/source/libs/parser/test/parInitialCTest.cpp @@ -370,7 +370,7 @@ TEST_F(ParserInitialCTest, createStable) { expect.delay2 = delay2; expect.watermark1 = watermark1; expect.watermark2 = watermark2; -// expect.ttl = ttl; + // expect.ttl = ttl; if (nullptr != pComment) { expect.comment = strdup(pComment); expect.commentLen = strlen(pComment); @@ -414,7 +414,7 @@ TEST_F(ParserInitialCTest, createStable) { ASSERT_EQ(req.ttl, expect.ttl); ASSERT_EQ(req.numOfColumns, expect.numOfColumns); ASSERT_EQ(req.numOfTags, expect.numOfTags); -// ASSERT_EQ(req.commentLen, expect.commentLen); + // ASSERT_EQ(req.commentLen, expect.commentLen); ASSERT_EQ(req.ast1Len, expect.ast1Len); ASSERT_EQ(req.ast2Len, expect.ast2Len); @@ -621,10 +621,11 @@ TEST_F(ParserInitialCTest, createTopic) { auto clearCreateTopicReq = [&]() { memset(&expect, 0, sizeof(SCMCreateTopicReq)); }; auto setCreateTopicReqFunc = [&](const char* pTopicName, int8_t igExists, const char* pSql, const char* pAst, - const char* pDbName = nullptr, const char* pTbname = nullptr) { + const char* pDbName = nullptr, const char* pTbname = nullptr, int8_t withMeta = 0) { snprintf(expect.name, sizeof(expect.name), "0.%s", pTopicName); expect.igExists = igExists; expect.sql = (char*)pSql; + expect.withMeta = withMeta; if (nullptr != pTbname) { expect.subType = TOPIC_SUB_TYPE__TABLE; snprintf(expect.subStbName, sizeof(expect.subStbName), "0.%s.%s", pDbName, pTbname); @@ -647,6 +648,7 @@ TEST_F(ParserInitialCTest, createTopic) { ASSERT_EQ(req.igExists, expect.igExists); ASSERT_EQ(req.subType, expect.subType); ASSERT_EQ(std::string(req.sql), std::string(expect.sql)); + ASSERT_EQ(req.withMeta, expect.withMeta); switch (expect.subType) { case TOPIC_SUB_TYPE__DB: ASSERT_EQ(std::string(req.subDbName), std::string(expect.subDbName)); @@ -675,15 +677,55 @@ TEST_F(ParserInitialCTest, createTopic) { run("CREATE TOPIC tp1 AS DATABASE test"); clearCreateTopicReq(); + setCreateTopicReqFunc("tp1", 0, "create topic tp1 with meta as database test", nullptr, "test", nullptr, 1); + run("CREATE TOPIC tp1 WITH META AS DATABASE test"); + clearCreateTopicReq(); + setCreateTopicReqFunc("tp1", 1, "create topic if not exists tp1 as stable st1", nullptr, "test", "st1"); run("CREATE TOPIC IF NOT EXISTS tp1 AS STABLE st1"); clearCreateTopicReq(); + + setCreateTopicReqFunc("tp1", 1, "create topic if not exists tp1 with meta as stable st1", nullptr, "test", "st1", 1); + run("CREATE TOPIC IF NOT EXISTS tp1 WITH META AS STABLE st1"); + clearCreateTopicReq(); } TEST_F(ParserInitialCTest, createUser) { useDb("root", "test"); + SCreateUserReq expect = {0}; + + auto clearCreateUserReq = [&]() { memset(&expect, 0, sizeof(SCreateUserReq)); }; + + auto setCreateUserReq = [&](const char* pUser, const char* pPass, int8_t sysInfo = 1) { + strcpy(expect.user, pUser); + strcpy(expect.pass, pPass); + expect.createType = 0; + expect.superUser = 0; + expect.sysInfo = sysInfo; + expect.enable = 1; + }; + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_CREATE_USER_STMT); + SCreateUserReq req = {0}; + ASSERT_TRUE(TSDB_CODE_SUCCESS == tDeserializeSCreateUserReq(pQuery->pCmdMsg->pMsg, pQuery->pCmdMsg->msgLen, &req)); + + ASSERT_EQ(req.createType, expect.createType); + ASSERT_EQ(req.superUser, expect.superUser); + ASSERT_EQ(req.sysInfo, expect.sysInfo); + ASSERT_EQ(req.enable, expect.enable); + ASSERT_EQ(std::string(req.user), std::string(expect.user)); + ASSERT_EQ(std::string(req.pass), std::string(expect.pass)); + }); + + setCreateUserReq("wxy", "123456"); run("CREATE USER wxy PASS '123456'"); + clearCreateUserReq(); + + setCreateUserReq("wxy1", "a123456", 1); + run("CREATE USER wxy1 PASS 'a123456' SYSINFO 1"); + clearCreateUserReq(); } } // namespace ParserTest diff --git a/source/libs/parser/test/parInitialDTest.cpp b/source/libs/parser/test/parInitialDTest.cpp index c2039718d0924b3cc59d01c21874e8ae862fc8a7..870afa694a21623f7bd1816c5eeb7a769ce9a6e8 100644 --- a/source/libs/parser/test/parInitialDTest.cpp +++ b/source/libs/parser/test/parInitialDTest.cpp @@ -132,7 +132,31 @@ TEST_F(ParserInitialDTest, dropDnode) { TEST_F(ParserInitialDTest, dropIndex) { useDb("root", "test"); - run("DROP index index1 on t1"); + SMDropSmaReq expect = {0}; + + auto clearDropSmaReq = [&]() { memset(&expect, 0, sizeof(SMDropSmaReq)); }; + + auto setDropSmaReq = [&](const char* pName, int8_t igNotExists = 0) { + sprintf(expect.name, "0.test.%s", pName); + expect.igNotExists = igNotExists; + }; + + setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { + ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_DROP_INDEX_STMT); + SMDropSmaReq req = {0}; + ASSERT_TRUE(TSDB_CODE_SUCCESS == tDeserializeSMDropSmaReq(pQuery->pCmdMsg->pMsg, pQuery->pCmdMsg->msgLen, &req)); + + ASSERT_EQ(std::string(req.name), std::string(expect.name)); + ASSERT_EQ(req.igNotExists, expect.igNotExists); + }); + + setDropSmaReq("index1"); + run("DROP INDEX index1"); + clearDropSmaReq(); + + setDropSmaReq("index2", 1); + run("DROP INDEX IF EXISTS index2"); + clearDropSmaReq(); } TEST_F(ParserInitialDTest, dropMnode) { diff --git a/source/libs/parser/test/parSelectTest.cpp b/source/libs/parser/test/parSelectTest.cpp index 11e09cd83d89f5ba02df18f5a439786ffe6d83c0..c8794f414d3c47c9385969216f21c2efec874899 100644 --- a/source/libs/parser/test/parSelectTest.cpp +++ b/source/libs/parser/test/parSelectTest.cpp @@ -58,6 +58,8 @@ TEST_F(ParserSelectTest, expression) { run("SELECT ts > 0, c1 < 20 and c2 = 'qaz' FROM t1"); run("SELECT ts > 0, c1 between 10 and 20 and c2 = 'qaz' FROM t1"); + + run("SELECT c1 | 10, c2 & 20, c4 | c5 FROM t1"); } TEST_F(ParserSelectTest, condition) {