diff --git a/include/common/tglobal.h b/include/common/tglobal.h index d7a3d84424..1c5510ba0d 100644 --- a/include/common/tglobal.h +++ b/include/common/tglobal.h @@ -88,6 +88,7 @@ extern int64_t tsMndLogRetention; extern int8_t tsGrant; extern int32_t tsMndGrantMode; extern bool tsMndSkipGrant; +extern bool tsEnableWhiteList; // dnode extern int64_t tsDndStart; diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 8deec53470..bb843ced91 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -184,6 +184,8 @@ typedef enum _mgmt_table { #define TSDB_ALTER_USER_REMOVE_WRITE_TABLE 0x10 #define TSDB_ALTER_USER_ADD_ALL_TABLE 0x11 #define TSDB_ALTER_USER_REMOVE_ALL_TABLE 0x12 +#define TSDB_ALTER_USER_ADD_WHITE_LIST 0x13 +#define TSDB_ALTER_USER_DROP_WHITE_LIST 0x14 #define TSDB_ALTER_USER_PRIVILEGES 0x2 @@ -418,10 +420,9 @@ typedef enum ENodeType { QUERY_NODE_PHYSICAL_PLAN_STREAM_EVENT, QUERY_NODE_PHYSICAL_PLAN_HASH_JOIN, QUERY_NODE_PHYSICAL_PLAN_GROUP_CACHE, - QUERY_NODE_PHYSICAL_PLAN_DYN_QUERY_CTRL + QUERY_NODE_PHYSICAL_PLAN_DYN_QUERY_CTRL } ENodeType; - typedef struct { int32_t vgId; char* dbFName; @@ -874,29 +875,39 @@ typedef struct { int32_t tSerializeSDropUserReq(void* buf, int32_t bufLen, SDropUserReq* pReq); int32_t tDeserializeSDropUserReq(void* buf, int32_t bufLen, SDropUserReq* pReq); +typedef struct SIpV4Range { + uint32_t ip; + uint32_t mask; +} SIpV4Range; + typedef struct { - int8_t createType; - int8_t superUser; // denote if it is a super user or not - int8_t sysInfo; - int8_t enable; - char user[TSDB_USER_LEN]; - char pass[TSDB_USET_PASSWORD_LEN]; + int8_t createType; + int8_t superUser; // denote if it is a super user or not + int8_t sysInfo; + int8_t enable; + char user[TSDB_USER_LEN]; + char pass[TSDB_USET_PASSWORD_LEN]; + int32_t numIpRanges; + SIpV4Range* pIpRanges; } SCreateUserReq; int32_t tSerializeSCreateUserReq(void* buf, int32_t bufLen, SCreateUserReq* pReq); int32_t tDeserializeSCreateUserReq(void* buf, int32_t bufLen, SCreateUserReq* pReq); +void tFreeSCreateUserReq(SCreateUserReq* pReq); typedef struct { - int8_t alterType; - int8_t superUser; - int8_t sysInfo; - int8_t enable; - char user[TSDB_USER_LEN]; - char pass[TSDB_USET_PASSWORD_LEN]; - char objname[TSDB_DB_FNAME_LEN]; // db or topic - char tabName[TSDB_TABLE_NAME_LEN]; - char* tagCond; - int32_t tagCondLen; + int8_t alterType; + int8_t superUser; + int8_t sysInfo; + int8_t enable; + char user[TSDB_USER_LEN]; + char pass[TSDB_USET_PASSWORD_LEN]; + char objname[TSDB_DB_FNAME_LEN]; // db or topic + char tabName[TSDB_TABLE_NAME_LEN]; + char* tagCond; + int32_t tagCondLen; + int32_t numIpRanges; + SIpV4Range* pIpRanges; } SAlterUserReq; int32_t tSerializeSAlterUserReq(void* buf, int32_t bufLen, SAlterUserReq* pReq); @@ -973,14 +984,12 @@ typedef struct { int64_t offset; } SInterval; - typedef struct STbVerInfo { char tbFName[TSDB_TABLE_FNAME_LEN]; int32_t sversion; int32_t tversion; } STbVerInfo; - typedef struct { int32_t code; int64_t affectedRows; @@ -1203,13 +1212,13 @@ typedef struct { int16_t sstTrigger; } SDbCfgRsp; -typedef SDbCfgRsp SDbCfgInfo; +typedef SDbCfgRsp SDbCfgInfo; -int32_t tSerializeSDbCfgRspImpl(SEncoder *encoder, const SDbCfgRsp *pRsp); +int32_t tSerializeSDbCfgRspImpl(SEncoder* encoder, const SDbCfgRsp* pRsp); int32_t tSerializeSDbCfgRsp(void* buf, int32_t bufLen, const SDbCfgRsp* pRsp); int32_t tDeserializeSDbCfgRsp(void* buf, int32_t bufLen, SDbCfgRsp* pRsp); -int32_t tDeserializeSDbCfgRspImpl(SDecoder* decoder, SDbCfgRsp *pRsp); -void tFreeSDbCfgRsp(SDbCfgRsp *pRsp); +int32_t tDeserializeSDbCfgRspImpl(SDecoder* decoder, SDbCfgRsp* pRsp); +void tFreeSDbCfgRsp(SDbCfgRsp* pRsp); typedef struct { int32_t rowNum; @@ -1266,8 +1275,8 @@ int32_t tDeserializeSDnodeListRsp(void* buf, int32_t bufLen, SDnodeListRsp* pRsp void tFreeSDnodeListRsp(SDnodeListRsp* pRsp); typedef struct { - SUseDbRsp *useDbRsp; - SDbCfgRsp *cfgRsp; + SUseDbRsp* useDbRsp; + SDbCfgRsp* cfgRsp; } SDbHbRsp; typedef struct { @@ -1368,6 +1377,7 @@ typedef struct { char locale[TD_LOCALE_LEN]; // tsLocale char charset[TD_LOCALE_LEN]; // tsCharset int8_t ttlChangeOnWrite; + int8_t enableWhiteList; } SClusterCfg; typedef struct { @@ -1402,7 +1412,7 @@ typedef struct { int64_t numOfBatchInsertReqs; int64_t numOfBatchInsertSuccessReqs; int32_t numOfCachedTables; - int32_t learnerProgress; // use one reservered + int32_t learnerProgress; // use one reservered } SVnodeLoad; typedef struct { @@ -2062,17 +2072,16 @@ typedef struct { int32_t tversion; } SResReadyRsp; - typedef struct SOperatorParam { - int32_t opType; - int32_t downstreamIdx; - void* value; - SArray* pChildren; //SArray + int32_t opType; + int32_t downstreamIdx; + void* value; + SArray* pChildren; // SArray } SOperatorParam; typedef struct STableScanOperatorParam { - bool tableSeq; - SArray* pUidList; + bool tableSeq; + SArray* pUidList; } STableScanOperatorParam; typedef struct { @@ -2161,7 +2170,6 @@ typedef struct { int32_t tSerializeSTaskDropReq(void* buf, int32_t bufLen, STaskDropReq* pReq); int32_t tDeserializeSTaskDropReq(void* buf, int32_t bufLen, STaskDropReq* pReq); - typedef enum { TASK_NOTIFY_FINISHED = 1, } ETaskNotifyType; @@ -2285,10 +2293,10 @@ typedef struct { char clientId[256]; SArray* topicNames; // SArray - int8_t withTbName; - int8_t autoCommit; - int32_t autoCommitInterval; - int8_t resetOffsetCfg; + int8_t withTbName; + int8_t autoCommit; + int32_t autoCommitInterval; + int8_t resetOffsetCfg; } SCMSubscribeReq; static FORCE_INLINE int32_t tSerializeSCMSubscribeReq(void** buf, const SCMSubscribeReq* pReq) { @@ -2665,7 +2673,7 @@ typedef struct { int32_t newTTL; int32_t newCommentLen; char* newComment; - int64_t ctimeMs; // fill by vnode + int64_t ctimeMs; // fill by vnode } SVAlterTbReq; int32_t tEncodeSVAlterTbReq(SEncoder* pEncoder, const SVAlterTbReq* pReq); @@ -3069,7 +3077,7 @@ typedef struct { int64_t suid; } SMqRebVgReq; -static FORCE_INLINE int tEncodeSMqRebVgReq(SEncoder *pCoder, const SMqRebVgReq* pReq) { +static FORCE_INLINE int tEncodeSMqRebVgReq(SEncoder* pCoder, const SMqRebVgReq* pReq) { if (tStartEncode(pCoder) < 0) return -1; if (tEncodeI64(pCoder, pReq->leftForVer) < 0) return -1; if (tEncodeI32(pCoder, pReq->vgId) < 0) return -1; @@ -3089,7 +3097,7 @@ static FORCE_INLINE int tEncodeSMqRebVgReq(SEncoder *pCoder, const SMqRebVgReq* return 0; } -static FORCE_INLINE int tDecodeSMqRebVgReq(SDecoder *pCoder, SMqRebVgReq* pReq) { +static FORCE_INLINE int tDecodeSMqRebVgReq(SDecoder* pCoder, SMqRebVgReq* pReq) { if (tStartDecode(pCoder) < 0) return -1; if (tDecodeI64(pCoder, &pReq->leftForVer) < 0) return -1; @@ -3105,7 +3113,7 @@ static FORCE_INLINE int tDecodeSMqRebVgReq(SDecoder *pCoder, SMqRebVgReq* pReq) if (tDecodeCStr(pCoder, &pReq->qmsg) < 0) return -1; } else if (pReq->subType == TOPIC_SUB_TYPE__TABLE) { if (tDecodeI64(pCoder, &pReq->suid) < 0) return -1; - if (!tDecodeIsEnd(pCoder)){ + if (!tDecodeIsEnd(pCoder)) { if (tDecodeCStr(pCoder, &pReq->qmsg) < 0) return -1; } } @@ -3629,12 +3637,12 @@ typedef struct { int32_t vgId; STqOffsetVal offset; int64_t rows; -}OffsetRows; +} OffsetRows; -typedef struct{ - char topicName[TSDB_TOPIC_FNAME_LEN]; - SArray* offsetRows; -}TopicOffsetRows; +typedef struct { + char topicName[TSDB_TOPIC_FNAME_LEN]; + SArray* offsetRows; +} TopicOffsetRows; typedef struct { int64_t consumerId; @@ -3647,9 +3655,9 @@ typedef struct { } SMqHbRsp; typedef struct { - SMsgHead head; - int64_t consumerId; - char subKey[TSDB_SUBSCRIBE_KEY_LEN]; + SMsgHead head; + int64_t consumerId; + char subKey[TSDB_SUBSCRIBE_KEY_LEN]; } SMqSeekReq; #define TD_AUTO_CREATE_TABLE 0x1 @@ -3703,7 +3711,7 @@ typedef struct SDeleteRes { int64_t affectedRows; char tableFName[TSDB_TABLE_NAME_LEN]; char tsColName[TSDB_COL_NAME_LEN]; - int64_t ctimeMs; // fill by vnode + int64_t ctimeMs; // fill by vnode } SDeleteRes; int32_t tEncodeDeleteRes(SEncoder* pCoder, const SDeleteRes* pRes); @@ -3781,8 +3789,8 @@ int32_t tSerializeSMqHbReq(void* buf, int32_t bufLen, SMqHbReq* pReq); int32_t tDeserializeSMqHbReq(void* buf, int32_t bufLen, SMqHbReq* pReq); int32_t tDeatroySMqHbReq(SMqHbReq* pReq); -int32_t tSerializeSMqSeekReq(void *buf, int32_t bufLen, SMqSeekReq *pReq); -int32_t tDeserializeSMqSeekReq(void *buf, int32_t bufLen, SMqSeekReq *pReq); +int32_t tSerializeSMqSeekReq(void* buf, int32_t bufLen, SMqSeekReq* pReq); +int32_t tDeserializeSMqSeekReq(void* buf, int32_t bufLen, SMqSeekReq* pReq); #define SUBMIT_REQ_AUTO_CREATE_TABLE 0x1 #define SUBMIT_REQ_COLUMN_DATA_FORMAT 0x2 @@ -3797,7 +3805,7 @@ typedef struct { SArray* aRowP; SArray* aCol; }; - int64_t ctimeMs; + int64_t ctimeMs; } SSubmitTbData; typedef struct { diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 748854c51b..944880511b 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -16,6 +16,7 @@ #ifndef _TD_COMMON_TOKEN_H_ #define _TD_COMMON_TOKEN_H_ + #define TK_OR 1 #define TK_AND 2 #define TK_UNION 3 @@ -48,313 +49,313 @@ #define TK_USERS 30 #define TK_CONNS 31 #define TK_STATE 32 -#define TK_USER 33 -#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_SUBSCRIBE 43 -#define TK_NK_COMMA 44 -#define TK_READ 45 -#define TK_WRITE 46 -#define TK_NK_DOT 47 -#define TK_WITH 48 -#define TK_DNODE 49 -#define TK_PORT 50 -#define TK_DNODES 51 -#define TK_RESTORE 52 -#define TK_NK_IPTOKEN 53 -#define TK_FORCE 54 -#define TK_UNSAFE 55 -#define TK_LOCAL 56 -#define TK_QNODE 57 -#define TK_BNODE 58 -#define TK_SNODE 59 -#define TK_MNODE 60 -#define TK_VNODE 61 -#define TK_DATABASE 62 -#define TK_USE 63 -#define TK_FLUSH 64 -#define TK_TRIM 65 -#define TK_COMPACT 66 -#define TK_IF 67 -#define TK_NOT 68 -#define TK_EXISTS 69 -#define TK_BUFFER 70 -#define TK_CACHEMODEL 71 -#define TK_CACHESIZE 72 -#define TK_COMP 73 -#define TK_DURATION 74 -#define TK_NK_VARIABLE 75 -#define TK_MAXROWS 76 -#define TK_MINROWS 77 -#define TK_KEEP 78 -#define TK_PAGES 79 -#define TK_PAGESIZE 80 -#define TK_TSDB_PAGESIZE 81 -#define TK_PRECISION 82 -#define TK_REPLICA 83 -#define TK_VGROUPS 84 -#define TK_SINGLE_STABLE 85 -#define TK_RETENTIONS 86 -#define TK_SCHEMALESS 87 -#define TK_WAL_LEVEL 88 -#define TK_WAL_FSYNC_PERIOD 89 -#define TK_WAL_RETENTION_PERIOD 90 -#define TK_WAL_RETENTION_SIZE 91 -#define TK_WAL_ROLL_PERIOD 92 -#define TK_WAL_SEGMENT_SIZE 93 -#define TK_STT_TRIGGER 94 -#define TK_TABLE_PREFIX 95 -#define TK_TABLE_SUFFIX 96 -#define TK_NK_COLON 97 -#define TK_BWLIMIT 98 -#define TK_START 99 -#define TK_TIMESTAMP 100 -#define TK_END 101 -#define TK_TABLE 102 -#define TK_NK_LP 103 -#define TK_NK_RP 104 -#define TK_STABLE 105 -#define TK_ADD 106 -#define TK_COLUMN 107 -#define TK_MODIFY 108 -#define TK_RENAME 109 -#define TK_TAG 110 -#define TK_SET 111 -#define TK_NK_EQ 112 -#define TK_USING 113 -#define TK_TAGS 114 -#define TK_BOOL 115 -#define TK_TINYINT 116 -#define TK_SMALLINT 117 -#define TK_INT 118 -#define TK_INTEGER 119 -#define TK_BIGINT 120 -#define TK_FLOAT 121 -#define TK_DOUBLE 122 -#define TK_BINARY 123 -#define TK_NCHAR 124 -#define TK_UNSIGNED 125 -#define TK_JSON 126 -#define TK_VARCHAR 127 -#define TK_MEDIUMBLOB 128 -#define TK_BLOB 129 -#define TK_VARBINARY 130 -#define TK_GEOMETRY 131 -#define TK_DECIMAL 132 -#define TK_COMMENT 133 -#define TK_MAX_DELAY 134 -#define TK_WATERMARK 135 -#define TK_ROLLUP 136 -#define TK_TTL 137 -#define TK_SMA 138 -#define TK_DELETE_MARK 139 -#define TK_FIRST 140 -#define TK_LAST 141 -#define TK_SHOW 142 -#define TK_PRIVILEGES 143 -#define TK_DATABASES 144 -#define TK_TABLES 145 -#define TK_STABLES 146 -#define TK_MNODES 147 -#define TK_QNODES 148 -#define TK_FUNCTIONS 149 -#define TK_INDEXES 150 -#define TK_ACCOUNTS 151 -#define TK_APPS 152 -#define TK_CONNECTIONS 153 -#define TK_LICENCES 154 -#define TK_GRANTS 155 -#define TK_QUERIES 156 -#define TK_SCORES 157 -#define TK_TOPICS 158 -#define TK_VARIABLES 159 -#define TK_CLUSTER 160 -#define TK_BNODES 161 -#define TK_SNODES 162 -#define TK_TRANSACTIONS 163 -#define TK_DISTRIBUTED 164 -#define TK_CONSUMERS 165 -#define TK_SUBSCRIPTIONS 166 -#define TK_VNODES 167 -#define TK_ALIVE 168 -#define TK_LIKE 169 -#define TK_TBNAME 170 -#define TK_QTAGS 171 -#define TK_AS 172 -#define TK_INDEX 173 -#define TK_FUNCTION 174 -#define TK_INTERVAL 175 -#define TK_COUNT 176 -#define TK_LAST_ROW 177 -#define TK_META 178 -#define TK_ONLY 179 -#define TK_TOPIC 180 -#define TK_CONSUMER 181 -#define TK_GROUP 182 -#define TK_DESC 183 -#define TK_DESCRIBE 184 -#define TK_RESET 185 -#define TK_QUERY 186 -#define TK_CACHE 187 -#define TK_EXPLAIN 188 -#define TK_ANALYZE 189 -#define TK_VERBOSE 190 -#define TK_NK_BOOL 191 -#define TK_RATIO 192 -#define TK_NK_FLOAT 193 -#define TK_OUTPUTTYPE 194 -#define TK_AGGREGATE 195 -#define TK_BUFSIZE 196 -#define TK_LANGUAGE 197 -#define TK_REPLACE 198 -#define TK_STREAM 199 -#define TK_INTO 200 -#define TK_PAUSE 201 -#define TK_RESUME 202 -#define TK_TRIGGER 203 -#define TK_AT_ONCE 204 -#define TK_WINDOW_CLOSE 205 -#define TK_IGNORE 206 -#define TK_EXPIRED 207 -#define TK_FILL_HISTORY 208 -#define TK_UPDATE 209 -#define TK_SUBTABLE 210 -#define TK_UNTREATED 211 -#define TK_KILL 212 -#define TK_CONNECTION 213 -#define TK_TRANSACTION 214 -#define TK_BALANCE 215 -#define TK_VGROUP 216 -#define TK_LEADER 217 -#define TK_MERGE 218 -#define TK_REDISTRIBUTE 219 -#define TK_SPLIT 220 -#define TK_DELETE 221 -#define TK_INSERT 222 -#define TK_NULL 223 -#define TK_NK_QUESTION 224 -#define TK_NK_ARROW 225 -#define TK_ROWTS 226 -#define TK_QSTART 227 -#define TK_QEND 228 -#define TK_QDURATION 229 -#define TK_WSTART 230 -#define TK_WEND 231 -#define TK_WDURATION 232 -#define TK_IROWTS 233 -#define TK_ISFILLED 234 -#define TK_CAST 235 -#define TK_NOW 236 -#define TK_TODAY 237 -#define TK_TIMEZONE 238 -#define TK_CLIENT_VERSION 239 -#define TK_SERVER_VERSION 240 -#define TK_SERVER_STATUS 241 -#define TK_CURRENT_USER 242 -#define TK_CASE 243 -#define TK_WHEN 244 -#define TK_THEN 245 -#define TK_ELSE 246 -#define TK_BETWEEN 247 -#define TK_IS 248 -#define TK_NK_LT 249 -#define TK_NK_GT 250 -#define TK_NK_LE 251 -#define TK_NK_GE 252 -#define TK_NK_NE 253 -#define TK_MATCH 254 -#define TK_NMATCH 255 -#define TK_CONTAINS 256 -#define TK_IN 257 -#define TK_JOIN 258 -#define TK_INNER 259 -#define TK_SELECT 260 -#define TK_NK_HINT 261 -#define TK_DISTINCT 262 -#define TK_WHERE 263 -#define TK_PARTITION 264 -#define TK_BY 265 -#define TK_SESSION 266 -#define TK_STATE_WINDOW 267 -#define TK_EVENT_WINDOW 268 -#define TK_SLIDING 269 -#define TK_FILL 270 -#define TK_VALUE 271 -#define TK_VALUE_F 272 -#define TK_NONE 273 -#define TK_PREV 274 -#define TK_NULL_F 275 -#define TK_LINEAR 276 -#define TK_NEXT 277 -#define TK_HAVING 278 -#define TK_RANGE 279 -#define TK_EVERY 280 -#define TK_ORDER 281 -#define TK_SLIMIT 282 -#define TK_SOFFSET 283 -#define TK_LIMIT 284 -#define TK_OFFSET 285 -#define TK_ASC 286 -#define TK_NULLS 287 -#define TK_ABORT 288 -#define TK_AFTER 289 -#define TK_ATTACH 290 -#define TK_BEFORE 291 -#define TK_BEGIN 292 -#define TK_BITAND 293 -#define TK_BITNOT 294 -#define TK_BITOR 295 -#define TK_BLOCKS 296 -#define TK_CHANGE 297 -#define TK_COMMA 298 -#define TK_CONCAT 299 -#define TK_CONFLICT 300 -#define TK_COPY 301 -#define TK_DEFERRED 302 -#define TK_DELIMITERS 303 -#define TK_DETACH 304 -#define TK_DIVIDE 305 -#define TK_DOT 306 -#define TK_EACH 307 -#define TK_FAIL 308 -#define TK_FILE 309 -#define TK_FOR 310 -#define TK_GLOB 311 -#define TK_ID 312 -#define TK_IMMEDIATE 313 -#define TK_IMPORT 314 -#define TK_INITIALLY 315 -#define TK_INSTEAD 316 -#define TK_ISNULL 317 -#define TK_KEY 318 -#define TK_MODULES 319 -#define TK_NK_BITNOT 320 -#define TK_NK_SEMI 321 -#define TK_NOTNULL 322 -#define TK_OF 323 -#define TK_PLUS 324 -#define TK_PRIVILEGE 325 -#define TK_RAISE 326 -#define TK_RESTRICT 327 -#define TK_ROW 328 -#define TK_SEMI 329 -#define TK_STAR 330 -#define TK_STATEMENT 331 -#define TK_STRICT 332 -#define TK_STRING 333 -#define TK_TIMES 334 -#define TK_VALUES 335 -#define TK_VARIABLE 336 -#define TK_VIEW 337 -#define TK_WAL 338 - +#define TK_NK_COMMA 33 +#define TK_HOST 34 +#define TK_USER 35 +#define TK_ENABLE 36 +#define TK_NK_INTEGER 37 +#define TK_SYSINFO 38 +#define TK_ADD 39 +#define TK_DROP 40 +#define TK_GRANT 41 +#define TK_ON 42 +#define TK_TO 43 +#define TK_REVOKE 44 +#define TK_FROM 45 +#define TK_SUBSCRIBE 46 +#define TK_READ 47 +#define TK_WRITE 48 +#define TK_NK_DOT 49 +#define TK_WITH 50 +#define TK_DNODE 51 +#define TK_PORT 52 +#define TK_DNODES 53 +#define TK_RESTORE 54 +#define TK_NK_IPTOKEN 55 +#define TK_FORCE 56 +#define TK_UNSAFE 57 +#define TK_LOCAL 58 +#define TK_QNODE 59 +#define TK_BNODE 60 +#define TK_SNODE 61 +#define TK_MNODE 62 +#define TK_VNODE 63 +#define TK_DATABASE 64 +#define TK_USE 65 +#define TK_FLUSH 66 +#define TK_TRIM 67 +#define TK_COMPACT 68 +#define TK_IF 69 +#define TK_NOT 70 +#define TK_EXISTS 71 +#define TK_BUFFER 72 +#define TK_CACHEMODEL 73 +#define TK_CACHESIZE 74 +#define TK_COMP 75 +#define TK_DURATION 76 +#define TK_NK_VARIABLE 77 +#define TK_MAXROWS 78 +#define TK_MINROWS 79 +#define TK_KEEP 80 +#define TK_PAGES 81 +#define TK_PAGESIZE 82 +#define TK_TSDB_PAGESIZE 83 +#define TK_PRECISION 84 +#define TK_REPLICA 85 +#define TK_VGROUPS 86 +#define TK_SINGLE_STABLE 87 +#define TK_RETENTIONS 88 +#define TK_SCHEMALESS 89 +#define TK_WAL_LEVEL 90 +#define TK_WAL_FSYNC_PERIOD 91 +#define TK_WAL_RETENTION_PERIOD 92 +#define TK_WAL_RETENTION_SIZE 93 +#define TK_WAL_ROLL_PERIOD 94 +#define TK_WAL_SEGMENT_SIZE 95 +#define TK_STT_TRIGGER 96 +#define TK_TABLE_PREFIX 97 +#define TK_TABLE_SUFFIX 98 +#define TK_NK_COLON 99 +#define TK_BWLIMIT 100 +#define TK_START 101 +#define TK_TIMESTAMP 102 +#define TK_END 103 +#define TK_TABLE 104 +#define TK_NK_LP 105 +#define TK_NK_RP 106 +#define TK_STABLE 107 +#define TK_COLUMN 108 +#define TK_MODIFY 109 +#define TK_RENAME 110 +#define TK_TAG 111 +#define TK_SET 112 +#define TK_NK_EQ 113 +#define TK_USING 114 +#define TK_TAGS 115 +#define TK_BOOL 116 +#define TK_TINYINT 117 +#define TK_SMALLINT 118 +#define TK_INT 119 +#define TK_INTEGER 120 +#define TK_BIGINT 121 +#define TK_FLOAT 122 +#define TK_DOUBLE 123 +#define TK_BINARY 124 +#define TK_NCHAR 125 +#define TK_UNSIGNED 126 +#define TK_JSON 127 +#define TK_VARCHAR 128 +#define TK_MEDIUMBLOB 129 +#define TK_BLOB 130 +#define TK_VARBINARY 131 +#define TK_GEOMETRY 132 +#define TK_DECIMAL 133 +#define TK_COMMENT 134 +#define TK_MAX_DELAY 135 +#define TK_WATERMARK 136 +#define TK_ROLLUP 137 +#define TK_TTL 138 +#define TK_SMA 139 +#define TK_DELETE_MARK 140 +#define TK_FIRST 141 +#define TK_LAST 142 +#define TK_SHOW 143 +#define TK_PRIVILEGES 144 +#define TK_DATABASES 145 +#define TK_TABLES 146 +#define TK_STABLES 147 +#define TK_MNODES 148 +#define TK_QNODES 149 +#define TK_FUNCTIONS 150 +#define TK_INDEXES 151 +#define TK_ACCOUNTS 152 +#define TK_APPS 153 +#define TK_CONNECTIONS 154 +#define TK_LICENCES 155 +#define TK_GRANTS 156 +#define TK_QUERIES 157 +#define TK_SCORES 158 +#define TK_TOPICS 159 +#define TK_VARIABLES 160 +#define TK_CLUSTER 161 +#define TK_BNODES 162 +#define TK_SNODES 163 +#define TK_TRANSACTIONS 164 +#define TK_DISTRIBUTED 165 +#define TK_CONSUMERS 166 +#define TK_SUBSCRIPTIONS 167 +#define TK_VNODES 168 +#define TK_ALIVE 169 +#define TK_LIKE 170 +#define TK_TBNAME 171 +#define TK_QTAGS 172 +#define TK_AS 173 +#define TK_INDEX 174 +#define TK_FUNCTION 175 +#define TK_INTERVAL 176 +#define TK_COUNT 177 +#define TK_LAST_ROW 178 +#define TK_META 179 +#define TK_ONLY 180 +#define TK_TOPIC 181 +#define TK_CONSUMER 182 +#define TK_GROUP 183 +#define TK_DESC 184 +#define TK_DESCRIBE 185 +#define TK_RESET 186 +#define TK_QUERY 187 +#define TK_CACHE 188 +#define TK_EXPLAIN 189 +#define TK_ANALYZE 190 +#define TK_VERBOSE 191 +#define TK_NK_BOOL 192 +#define TK_RATIO 193 +#define TK_NK_FLOAT 194 +#define TK_OUTPUTTYPE 195 +#define TK_AGGREGATE 196 +#define TK_BUFSIZE 197 +#define TK_LANGUAGE 198 +#define TK_REPLACE 199 +#define TK_STREAM 200 +#define TK_INTO 201 +#define TK_PAUSE 202 +#define TK_RESUME 203 +#define TK_TRIGGER 204 +#define TK_AT_ONCE 205 +#define TK_WINDOW_CLOSE 206 +#define TK_IGNORE 207 +#define TK_EXPIRED 208 +#define TK_FILL_HISTORY 209 +#define TK_UPDATE 210 +#define TK_SUBTABLE 211 +#define TK_UNTREATED 212 +#define TK_KILL 213 +#define TK_CONNECTION 214 +#define TK_TRANSACTION 215 +#define TK_BALANCE 216 +#define TK_VGROUP 217 +#define TK_LEADER 218 +#define TK_MERGE 219 +#define TK_REDISTRIBUTE 220 +#define TK_SPLIT 221 +#define TK_DELETE 222 +#define TK_INSERT 223 +#define TK_NULL 224 +#define TK_NK_QUESTION 225 +#define TK_NK_ARROW 226 +#define TK_ROWTS 227 +#define TK_QSTART 228 +#define TK_QEND 229 +#define TK_QDURATION 230 +#define TK_WSTART 231 +#define TK_WEND 232 +#define TK_WDURATION 233 +#define TK_IROWTS 234 +#define TK_ISFILLED 235 +#define TK_CAST 236 +#define TK_NOW 237 +#define TK_TODAY 238 +#define TK_TIMEZONE 239 +#define TK_CLIENT_VERSION 240 +#define TK_SERVER_VERSION 241 +#define TK_SERVER_STATUS 242 +#define TK_CURRENT_USER 243 +#define TK_CASE 244 +#define TK_WHEN 245 +#define TK_THEN 246 +#define TK_ELSE 247 +#define TK_BETWEEN 248 +#define TK_IS 249 +#define TK_NK_LT 250 +#define TK_NK_GT 251 +#define TK_NK_LE 252 +#define TK_NK_GE 253 +#define TK_NK_NE 254 +#define TK_MATCH 255 +#define TK_NMATCH 256 +#define TK_CONTAINS 257 +#define TK_IN 258 +#define TK_JOIN 259 +#define TK_INNER 260 +#define TK_SELECT 261 +#define TK_NK_HINT 262 +#define TK_DISTINCT 263 +#define TK_WHERE 264 +#define TK_PARTITION 265 +#define TK_BY 266 +#define TK_SESSION 267 +#define TK_STATE_WINDOW 268 +#define TK_EVENT_WINDOW 269 +#define TK_SLIDING 270 +#define TK_FILL 271 +#define TK_VALUE 272 +#define TK_VALUE_F 273 +#define TK_NONE 274 +#define TK_PREV 275 +#define TK_NULL_F 276 +#define TK_LINEAR 277 +#define TK_NEXT 278 +#define TK_HAVING 279 +#define TK_RANGE 280 +#define TK_EVERY 281 +#define TK_ORDER 282 +#define TK_SLIMIT 283 +#define TK_SOFFSET 284 +#define TK_LIMIT 285 +#define TK_OFFSET 286 +#define TK_ASC 287 +#define TK_NULLS 288 +#define TK_ABORT 289 +#define TK_AFTER 290 +#define TK_ATTACH 291 +#define TK_BEFORE 292 +#define TK_BEGIN 293 +#define TK_BITAND 294 +#define TK_BITNOT 295 +#define TK_BITOR 296 +#define TK_BLOCKS 297 +#define TK_CHANGE 298 +#define TK_COMMA 299 +#define TK_CONCAT 300 +#define TK_CONFLICT 301 +#define TK_COPY 302 +#define TK_DEFERRED 303 +#define TK_DELIMITERS 304 +#define TK_DETACH 305 +#define TK_DIVIDE 306 +#define TK_DOT 307 +#define TK_EACH 308 +#define TK_FAIL 309 +#define TK_FILE 310 +#define TK_FOR 311 +#define TK_GLOB 312 +#define TK_ID 313 +#define TK_IMMEDIATE 314 +#define TK_IMPORT 315 +#define TK_INITIALLY 316 +#define TK_INSTEAD 317 +#define TK_ISNULL 318 +#define TK_KEY 319 +#define TK_MODULES 320 +#define TK_NK_BITNOT 321 +#define TK_NK_SEMI 322 +#define TK_NOTNULL 323 +#define TK_OF 324 +#define TK_PLUS 325 +#define TK_PRIVILEGE 326 +#define TK_RAISE 327 +#define TK_RESTRICT 328 +#define TK_ROW 329 +#define TK_SEMI 330 +#define TK_STAR 331 +#define TK_STATEMENT 332 +#define TK_STRICT 333 +#define TK_STRING 334 +#define TK_TIMES 335 +#define TK_VALUES 336 +#define TK_VARIABLE 337 +#define TK_VIEW 338 +#define TK_WAL 339 #define TK_NK_SPACE 600 diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index f0a715e651..40b9d21503 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -222,6 +222,10 @@ typedef struct SCreateUserStmt { char userName[TSDB_USER_LEN]; char password[TSDB_USET_PASSWORD_LEN]; int8_t sysinfo; + int32_t numIpRanges; + SIpV4Range* pIpRanges; + + SNodeList* pNodeListIpRanges; } SCreateUserStmt; typedef struct SAlterUserStmt { @@ -231,6 +235,10 @@ typedef struct SAlterUserStmt { char password[TSDB_USET_PASSWORD_LEN]; int8_t enable; int8_t sysinfo; + int32_t numIpRanges; + SIpV4Range* pIpRanges; + + SNodeList* pNodeListIpRanges; } SAlterUserStmt; typedef struct SDropUserStmt { diff --git a/include/util/taoserror.h b/include/util/taoserror.h index 4a3f0d3a70..ccd5d63263 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -710,6 +710,7 @@ int32_t* taosGetErrno(); #define TSDB_CODE_PAR_SYSTABLE_NOT_ALLOWED_FUNC TAOS_DEF_ERROR_CODE(0, 0x2668) #define TSDB_CODE_PAR_SYSTABLE_NOT_ALLOWED TAOS_DEF_ERROR_CODE(0, 0x2669) #define TSDB_CODE_PAR_INVALID_VARBINARY TAOS_DEF_ERROR_CODE(0, 0x266A) +#define TSDB_CODE_PAR_INVALID_IP_RANGE TAOS_DEF_ERROR_CODE(0, 0x266B) #define TSDB_CODE_PAR_INTERNAL_ERROR TAOS_DEF_ERROR_CODE(0, 0x26FF) //planner diff --git a/source/common/src/tglobal.c b/source/common/src/tglobal.c index ff9e922ee1..8971c1312c 100644 --- a/source/common/src/tglobal.c +++ b/source/common/src/tglobal.c @@ -81,6 +81,7 @@ int64_t tsMndLogRetention = 2000; int8_t tsGrant = 1; int32_t tsMndGrantMode = 0; bool tsMndSkipGrant = false; +bool tsEnableWhiteList = false; // ip white list cfg // dnode int64_t tsDndStart = 0; @@ -659,6 +660,7 @@ static int32_t taosAddServerCfg(SConfig *pCfg) { if (cfgAddInt64(pCfg, "minDiskFreeSize", tsMinDiskFreeSize, TFS_MIN_DISK_FREE_SIZE, 1024 * 1024 * 1024, CFG_SCOPE_SERVER) != 0) return -1; + if (cfgAddBool(pCfg, "enableWhiteList", tsEnableWhiteList, CFG_SCOPE_SERVER) != 0) return -1; GRANT_CFG_ADD; return 0; @@ -1047,6 +1049,7 @@ static int32_t taosSetServerCfg(SConfig *pCfg) { tsMndLogRetention = cfgGetItem(pCfg, "mndLogRetention")->i64; tsMndSkipGrant = cfgGetItem(pCfg, "skipGrant")->bval; tsMndGrantMode = cfgGetItem(pCfg, "grantMode")->i32; + tsEnableWhiteList = cfgGetItem(pCfg, "enableWhiteList")->bval; tsStartUdfd = cfgGetItem(pCfg, "udf")->bval; tstrncpy(tsUdfdResFuncs, cfgGetItem(pCfg, "udfdResFuncs")->str, sizeof(tsUdfdResFuncs)); diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 9a21563abe..0553f73bb3 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -1060,6 +1060,7 @@ int32_t tSerializeSStatusReq(void *buf, int32_t bufLen, SStatusReq *pReq) { if (tEncodeCStr(&encoder, pReq->clusterCfg.timezone) < 0) return -1; if (tEncodeCStr(&encoder, pReq->clusterCfg.locale) < 0) return -1; if (tEncodeCStr(&encoder, pReq->clusterCfg.charset) < 0) return -1; + if (tEncodeI8(&encoder, pReq->clusterCfg.enableWhiteList) < 0) return -1; // vnode loads int32_t vlen = (int32_t)taosArrayGetSize(pReq->pVloads); @@ -1147,6 +1148,7 @@ int32_t tDeserializeSStatusReq(void *buf, int32_t bufLen, SStatusReq *pReq) { if (tDecodeCStrTo(&decoder, pReq->clusterCfg.timezone) < 0) return -1; if (tDecodeCStrTo(&decoder, pReq->clusterCfg.locale) < 0) return -1; if (tDecodeCStrTo(&decoder, pReq->clusterCfg.charset) < 0) return -1; + if (tDecodeI8(&decoder, &pReq->clusterCfg.enableWhiteList) < 0) return -1; // vnode loads int32_t vlen = 0; @@ -1380,6 +1382,11 @@ int32_t tSerializeSCreateUserReq(void *buf, int32_t bufLen, SCreateUserReq *pReq if (tEncodeI8(&encoder, pReq->enable) < 0) return -1; if (tEncodeCStr(&encoder, pReq->user) < 0) return -1; if (tEncodeCStr(&encoder, pReq->pass) < 0) return -1; + if (tEncodeI32(&encoder, pReq->numIpRanges) < 0) return -1; + for (int32_t i = 0; i < pReq->numIpRanges; ++i) { + if (tEncodeU32(&encoder, pReq->pIpRanges[i].ip) < 0) return -1; + if (tEncodeU32(&encoder, pReq->pIpRanges[i].mask) < 0) return -1; + } tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -1398,12 +1405,21 @@ int32_t tDeserializeSCreateUserReq(void *buf, int32_t bufLen, SCreateUserReq *pR if (tDecodeI8(&decoder, &pReq->enable) < 0) return -1; if (tDecodeCStrTo(&decoder, pReq->user) < 0) return -1; if (tDecodeCStrTo(&decoder, pReq->pass) < 0) return -1; + if (tDecodeI32(&decoder, &pReq->numIpRanges) < 0) return -1; + pReq->pIpRanges = taosMemoryMalloc(pReq->numIpRanges * sizeof(SIpV4Range)); + if (pReq->pIpRanges == NULL) return -1; + for (int32_t i = 0; i < pReq->numIpRanges; ++i) { + if (tDecodeU32(&decoder, &(pReq->pIpRanges[i].ip)) < 0) return -1; + if (tDecodeU32(&decoder, &(pReq->pIpRanges[i].mask)) < 0) return -1; + } tEndDecode(&decoder); tDecoderClear(&decoder); return 0; } +void tFreeSCreateUserReq(SCreateUserReq *pReq) { taosMemoryFree(pReq->pIpRanges); } + int32_t tSerializeSAlterUserReq(void *buf, int32_t bufLen, SAlterUserReq *pReq) { SEncoder encoder = {0}; tEncoderInit(&encoder, buf, bufLen); @@ -1422,6 +1438,11 @@ int32_t tSerializeSAlterUserReq(void *buf, int32_t bufLen, SAlterUserReq *pReq) if (tEncodeCStr(&encoder, pReq->tabName) < 0) return -1; } if (tEncodeBinary(&encoder, pReq->tagCond, pReq->tagCondLen) < 0) return -1; + if (tEncodeI32(&encoder, pReq->numIpRanges) < 0) return -1; + for (int32_t i = 0; i < pReq->numIpRanges; ++i) { + if (tEncodeU32(&encoder, pReq->pIpRanges[i].ip) < 0) return -1; + if (tEncodeU32(&encoder, pReq->pIpRanges[i].mask) < 0) return -1; + } tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -1451,13 +1472,23 @@ int32_t tDeserializeSAlterUserReq(void *buf, int32_t bufLen, SAlterUserReq *pReq if (tDecodeBinaryAlloc(&decoder, (void **)&pReq->tagCond, &tagCondLen) < 0) return -1; pReq->tagCondLen = tagCondLen; } + if (tDecodeI32(&decoder, &pReq->numIpRanges) < 0) return -1; + pReq->pIpRanges = taosMemoryMalloc(pReq->numIpRanges * sizeof(SIpV4Range)); + if (pReq->pIpRanges == NULL) return -1; + for (int32_t i = 0; i < pReq->numIpRanges; ++i) { + if (tDecodeU32(&decoder, &(pReq->pIpRanges[i].ip)) < 0) return -1; + if (tDecodeU32(&decoder, &(pReq->pIpRanges[i].mask)) < 0) return -1; + } tEndDecode(&decoder); tDecoderClear(&decoder); return 0; } -void tFreeSAlterUserReq(SAlterUserReq *pReq) { taosMemoryFreeClear(pReq->tagCond); } +void tFreeSAlterUserReq(SAlterUserReq *pReq) { + taosMemoryFreeClear(pReq->tagCond); + taosMemoryFree(pReq->pIpRanges); +} int32_t tSerializeSGetUserAuthReq(void *buf, int32_t bufLen, SGetUserAuthReq *pReq) { SEncoder encoder = {0}; @@ -4730,7 +4761,7 @@ int32_t tDeserializeSAlterVnodeReplicaReq(void *buf, int32_t bufLen, SAlterVnode if (tDecodeSReplica(&decoder, pReplica) < 0) return -1; } } - if (!tDecodeIsEnd(&decoder)){ + if (!tDecodeIsEnd(&decoder)) { if (tDecodeI32(&decoder, &pReq->changeVersion) < 0) return -1; } @@ -5601,17 +5632,17 @@ void tFreeSSubQueryMsg(SSubQueryMsg *pReq) { taosMemoryFreeClear(pReq->msg); } -int32_t tSerializeSOperatorParam(SEncoder* pEncoder, SOperatorParam* pOpParam) { +int32_t tSerializeSOperatorParam(SEncoder *pEncoder, SOperatorParam *pOpParam) { if (tEncodeI32(pEncoder, pOpParam->opType) < 0) return -1; if (tEncodeI32(pEncoder, pOpParam->downstreamIdx) < 0) return -1; switch (pOpParam->opType) { case QUERY_NODE_PHYSICAL_PLAN_TABLE_SCAN: { - STableScanOperatorParam* pScan = (STableScanOperatorParam*)pOpParam->value; + STableScanOperatorParam *pScan = (STableScanOperatorParam *)pOpParam->value; if (tEncodeI8(pEncoder, pScan->tableSeq) < 0) return -1; int32_t uidNum = taosArrayGetSize(pScan->pUidList); if (tEncodeI32(pEncoder, uidNum) < 0) return -1; for (int32_t m = 0; m < uidNum; ++m) { - int64_t* pUid = taosArrayGet(pScan->pUidList, m); + int64_t *pUid = taosArrayGet(pScan->pUidList, m); if (tEncodeI64(pEncoder, *pUid) < 0) return -1; } break; @@ -5619,25 +5650,25 @@ int32_t tSerializeSOperatorParam(SEncoder* pEncoder, SOperatorParam* pOpParam) { default: return TSDB_CODE_INVALID_PARA; } - + int32_t n = taosArrayGetSize(pOpParam->pChildren); if (tEncodeI32(pEncoder, n) < 0) return -1; for (int32_t i = 0; i < n; ++i) { - SOperatorParam* pChild = *(SOperatorParam**)taosArrayGet(pOpParam->pChildren, i); + SOperatorParam *pChild = *(SOperatorParam **)taosArrayGet(pOpParam->pChildren, i); if (tSerializeSOperatorParam(pEncoder, pChild) < 0) return -1; } return 0; } -int32_t tDeserializeSOperatorParam(SDecoder *pDecoder, SOperatorParam* pOpParam) { +int32_t tDeserializeSOperatorParam(SDecoder *pDecoder, SOperatorParam *pOpParam) { if (tDecodeI32(pDecoder, &pOpParam->opType) < 0) return -1; if (tDecodeI32(pDecoder, &pOpParam->downstreamIdx) < 0) return -1; switch (pOpParam->opType) { case QUERY_NODE_PHYSICAL_PLAN_TABLE_SCAN: { - STableScanOperatorParam* pScan = taosMemoryMalloc(sizeof(STableScanOperatorParam)); + STableScanOperatorParam *pScan = taosMemoryMalloc(sizeof(STableScanOperatorParam)); if (NULL == pScan) return -1; - if (tDecodeI8(pDecoder, (int8_t*)&pScan->tableSeq) < 0) return -1; + if (tDecodeI8(pDecoder, (int8_t *)&pScan->tableSeq) < 0) return -1; int32_t uidNum = 0; int64_t uid = 0; if (tDecodeI32(pDecoder, &uidNum) < 0) return -1; @@ -5664,7 +5695,7 @@ int32_t tDeserializeSOperatorParam(SDecoder *pDecoder, SOperatorParam* pOpParam) pOpParam->pChildren = taosArrayInit(childrenNum, POINTER_BYTES); if (NULL == pOpParam->pChildren) return -1; for (int32_t i = 0; i < childrenNum; ++i) { - SOperatorParam* pChild = taosMemoryCalloc(1, sizeof(SOperatorParam)); + SOperatorParam *pChild = taosMemoryCalloc(1, sizeof(SOperatorParam)); if (NULL == pChild) return -1; if (tDeserializeSOperatorParam(pDecoder, pChild) < 0) return -1; taosArrayPush(pOpParam->pChildren, &pChild); @@ -5676,7 +5707,6 @@ int32_t tDeserializeSOperatorParam(SDecoder *pDecoder, SOperatorParam* pOpParam) return 0; } - int32_t tSerializeSResFetchReq(void *buf, int32_t bufLen, SResFetchReq *pReq) { int32_t headLen = sizeof(SMsgHead); if (buf != NULL) { @@ -5737,7 +5767,7 @@ int32_t tDeserializeSResFetchReq(void *buf, int32_t bufLen, SResFetchReq *pReq) if (NULL == pReq->pOpParam) return -1; if (tDeserializeSOperatorParam(&decoder, pReq->pOpParam) < 0) return -1; } - + tEndDecode(&decoder); tDecoderClear(&decoder); @@ -5925,7 +5955,7 @@ int32_t tDeserializeSTaskNotifyReq(void *buf, int32_t bufLen, STaskNotifyReq *pR if (tDecodeU64(&decoder, &pReq->taskId) < 0) return -1; if (tDecodeI64(&decoder, &pReq->refId) < 0) return -1; if (tDecodeI32(&decoder, &pReq->execId) < 0) return -1; - if (tDecodeI32(&decoder, (int32_t*)&pReq->type) < 0) return -1; + if (tDecodeI32(&decoder, (int32_t *)&pReq->type) < 0) return -1; tEndDecode(&decoder); @@ -5933,7 +5963,6 @@ int32_t tDeserializeSTaskNotifyReq(void *buf, int32_t bufLen, STaskNotifyReq *pR return 0; } - int32_t tSerializeSQueryTableRsp(void *buf, int32_t bufLen, SQueryTableRsp *pRsp) { SEncoder encoder = {0}; tEncoderInit(&encoder, buf, bufLen); @@ -5951,7 +5980,7 @@ int32_t tSerializeSQueryTableRsp(void *buf, int32_t bufLen, SQueryTableRsp *pRsp if (tEncodeI32(&encoder, pVer->tversion) < 0) return -1; } } - + tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -5979,7 +6008,7 @@ int32_t tDeserializeSQueryTableRsp(void *buf, int32_t bufLen, SQueryTableRsp *pR if (tDecodeI32(&decoder, &tbVer.tversion) < 0) return -1; if (NULL == taosArrayPush(pRsp->tbVerInfo, &tbVer)) return -1; } - + tEndDecode(&decoder); tDecoderClear(&decoder); diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c index 1bce20ff44..e6b7c0cb68 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c @@ -91,6 +91,7 @@ void dmSendStatusReq(SDnodeMgmt *pMgmt) { req.clusterCfg.statusInterval = tsStatusInterval; req.clusterCfg.checkTime = 0; req.clusterCfg.ttlChangeOnWrite = tsTtlChangeOnWrite; + req.clusterCfg.enableWhiteList = tsEnableWhiteList ? 1 : 0; char timestr[32] = "1970-01-01 00:00:00.00"; (void)taosParseTime(timestr, &req.clusterCfg.checkTime, (int32_t)strlen(timestr), TSDB_TIME_PRECISION_MILLI, 0); memcpy(req.clusterCfg.timezone, tsTimezoneStr, TD_TIMEZONE_LEN); diff --git a/source/dnode/mnode/impl/inc/mndDef.h b/source/dnode/mnode/impl/inc/mndDef.h index 1bf13c8fb5..90d54e7f58 100644 --- a/source/dnode/mnode/impl/inc/mndDef.h +++ b/source/dnode/mnode/impl/inc/mndDef.h @@ -136,6 +136,7 @@ typedef enum { DND_REASON_LOCALE_NOT_MATCH, DND_REASON_CHARSET_NOT_MATCH, DND_REASON_TTL_CHANGE_ON_WRITE_NOT_MATCH, + DND_REASON_ENABLE_WHITELIST_NOT_MATCH, DND_REASON_OTHERS } EDndReason; diff --git a/source/dnode/mnode/impl/src/mndDnode.c b/source/dnode/mnode/impl/src/mndDnode.c index 115c33cff1..a11bd2556e 100644 --- a/source/dnode/mnode/impl/src/mndDnode.c +++ b/source/dnode/mnode/impl/src/mndDnode.c @@ -15,6 +15,8 @@ #define _DEFAULT_SOURCE #include "mndDnode.h" +#include "audit.h" +#include "mndCluster.h" #include "mndDb.h" #include "mndMnode.h" #include "mndPrivilege.h" @@ -25,8 +27,6 @@ #include "mndUser.h" #include "mndVgroup.h" #include "tmisce.h" -#include "mndCluster.h" -#include "audit.h" #define TSDB_DNODE_VER_NUMBER 2 #define TSDB_DNODE_RESERVE_SIZE 64 @@ -421,6 +421,11 @@ static int32_t mndCheckClusterCfgPara(SMnode *pMnode, SDnodeObj *pDnode, const S tsTtlChangeOnWrite); return DND_REASON_TTL_CHANGE_ON_WRITE_NOT_MATCH; } + int8_t enable = tsEnableWhiteList ? 1 : 0; + if (pCfg->enableWhiteList != enable) { + mError("dnode:%d, enable :%d inconsistent with cluster:%d", pDnode->id, pCfg->enableWhiteList, enable); + return DND_REASON_ENABLE_WHITELIST_NOT_MATCH; + } return 0; } @@ -926,14 +931,10 @@ _OVER: extern int32_t mndProcessRestoreDnodeReqImpl(SRpcMsg *pReq); -int32_t mndProcessRestoreDnodeReq(SRpcMsg *pReq){ - return mndProcessRestoreDnodeReqImpl(pReq); -} +int32_t mndProcessRestoreDnodeReq(SRpcMsg *pReq) { return mndProcessRestoreDnodeReqImpl(pReq); } #ifndef TD_ENTERPRISE -int32_t mndProcessRestoreDnodeReqImpl(SRpcMsg *pReq){ - return 0; -} +int32_t mndProcessRestoreDnodeReqImpl(SRpcMsg *pReq) { return 0; } #endif static int32_t mndDropDnode(SMnode *pMnode, SRpcMsg *pReq, SDnodeObj *pDnode, SMnodeObj *pMObj, SQnodeObj *pQObj, @@ -1004,15 +1005,14 @@ static int32_t mndProcessDropDnodeReq(SRpcMsg *pReq) { goto _OVER; } - mInfo("dnode:%d, start to drop, ep:%s:%d, force:%s, unsafe:%s", - dropReq.dnodeId, dropReq.fqdn, dropReq.port, dropReq.force?"true":"false", dropReq.unsafe?"true":"false"); + mInfo("dnode:%d, start to drop, ep:%s:%d, force:%s, unsafe:%s", dropReq.dnodeId, dropReq.fqdn, dropReq.port, + dropReq.force ? "true" : "false", dropReq.unsafe ? "true" : "false"); if (mndCheckOperPrivilege(pMnode, pReq->info.conn.user, MND_OPER_DROP_MNODE) != 0) { goto _OVER; } bool force = dropReq.force; - if(dropReq.unsafe) - { + if (dropReq.unsafe) { force = true; } @@ -1043,19 +1043,19 @@ static int32_t mndProcessDropDnodeReq(SRpcMsg *pReq) { } int32_t numOfVnodes = mndGetVnodesNum(pMnode, pDnode->id); - bool isonline = mndIsDnodeOnline(pDnode, taosGetTimestampMs()); + bool isonline = mndIsDnodeOnline(pDnode, taosGetTimestampMs()); if (isonline && force) { terrno = TSDB_CODE_DNODE_ONLY_USE_WHEN_OFFLINE; mError("dnode:%d, failed to drop since %s, vnodes:%d mnode:%d qnode:%d snode:%d", pDnode->id, terrstr(), - numOfVnodes, pMObj != NULL, pQObj != NULL, pSObj != NULL); + numOfVnodes, pMObj != NULL, pQObj != NULL, pSObj != NULL); goto _OVER; } if (!isonline && !force) { terrno = TSDB_CODE_DNODE_OFFLINE; mError("dnode:%d, failed to drop since %s, vnodes:%d mnode:%d qnode:%d snode:%d", pDnode->id, terrstr(), - numOfVnodes, pMObj != NULL, pQObj != NULL, pSObj != NULL); + numOfVnodes, pMObj != NULL, pQObj != NULL, pSObj != NULL); goto _OVER; } @@ -1065,8 +1065,8 @@ static int32_t mndProcessDropDnodeReq(SRpcMsg *pReq) { char obj1[30] = {0}; sprintf(obj1, "%d", dropReq.dnodeId); - //char obj2[150] = {0}; - //sprintf(obj2, "%s:%d", dropReq.fqdn, dropReq.port); + // char obj2[150] = {0}; + // sprintf(obj2, "%s:%d", dropReq.fqdn, dropReq.port); char detail[100] = {0}; sprintf(detail, "force:%d, unsafe:%d", dropReq.force, dropReq.unsafe); @@ -1164,8 +1164,8 @@ static int32_t mndProcessConfigDnodeReq(SRpcMsg *pReq) { if (code < 0) return code; if (flag < 0) { - mError("dnode:%d, failed to config ttlBatchDropNum since value:%d. Valid range: [0, %d]", cfgReq.dnodeId, - flag, INT32_MAX); + mError("dnode:%d, failed to config ttlBatchDropNum since value:%d. Valid range: [0, %d]", cfgReq.dnodeId, flag, + INT32_MAX); terrno = TSDB_CODE_INVALID_CFG; return -1; } diff --git a/source/dnode/mnode/impl/src/mndUser.c b/source/dnode/mnode/impl/src/mndUser.c index 95671e5900..aa916a130c 100644 --- a/source/dnode/mnode/impl/src/mndUser.c +++ b/source/dnode/mnode/impl/src/mndUser.c @@ -669,7 +669,7 @@ _OVER: mndReleaseUser(pMnode, pUser); mndReleaseUser(pMnode, pOperUser); - + tFreeSCreateUserReq(&createReq); return code; } diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 77637757b1..a5b9f6dd91 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -924,8 +924,17 @@ void nodesDestroyNode(SNode* pNode) { nodesDestroyNode((SNode*)pStmt->pVal); break; } - case QUERY_NODE_CREATE_USER_STMT: // no pointer field - case QUERY_NODE_ALTER_USER_STMT: // no pointer field + case QUERY_NODE_CREATE_USER_STMT: { + SCreateUserStmt* pStmt = (SCreateUserStmt*)pNode; + taosMemoryFree(pStmt->pIpRanges); + nodesDestroyList(pStmt->pNodeListIpRanges); + break; + } + case QUERY_NODE_ALTER_USER_STMT: { + SAlterUserStmt* pStmt = (SAlterUserStmt*)pNode; + taosMemoryFree(pStmt->pIpRanges); + nodesDestroyList(pStmt->pNodeListIpRanges); + } case QUERY_NODE_DROP_USER_STMT: // no pointer field case QUERY_NODE_USE_DATABASE_STMT: // no pointer field case QUERY_NODE_CREATE_DNODE_STMT: // no pointer field diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 4a6dee4fe3..719e7ba08c 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -192,7 +192,8 @@ SNode* createShowDnodeVariablesStmt(SAstCreateContext* pCxt, SNode* pDnodeId, SN SNode* createShowVnodesStmt(SAstCreateContext* pCxt, SNode* pDnodeId, SNode* pDnodeEndpoint); SNode* createShowTableTagsStmt(SAstCreateContext* pCxt, SNode* pTbName, SNode* pDbName, SNodeList* pTags); 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* addCreateUserStmtWhiteList(SAstCreateContext* pCxt, SNode* pStmt, SNodeList* pIpRangesNodeList); +SNode* createAlterUserStmt(SAstCreateContext* pCxt, SToken* pUserName, int8_t alterType, void* pAlterInfo); SNode* createDropUserStmt(SAstCreateContext* pCxt, SToken* pUserName); SNode* createCreateDnodeStmt(SAstCreateContext* pCxt, const SToken* pFqdn, const SToken* pPort); SNode* createDropDnodeStmt(SAstCreateContext* pCxt, const SToken* pDnode, bool force, bool unsafe); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index b43585a79f..6e2521e5b9 100755 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -81,11 +81,31 @@ alter_account_option ::= USERS literal. alter_account_option ::= CONNS literal. { } alter_account_option ::= STATE literal. { } +%type ip_range_list { SNodeList* } +%destructor ip_range_list { nodesDestroyList($$); } +ip_range_list(A) ::= NK_STRING(B). { A = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &B)); } +ip_range_list(A) ::= ip_range_list(B) NK_COMMA NK_STRING(C). { A = addNodeToList(pCxt, B, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &C)); } + +%type white_list { SNodeList* } +%destructor white_list { nodesDestroyList($$); } +white_list(A) ::= HOST ip_range_list(B). { A = B; } + +%type white_list_opt { SNodeList* } +%destructor white_list_opt { nodesDestroyList($$); } +white_list_opt(A) ::= . { A = NULL; } +white_list_opt(A) ::= white_list(B). { A = B; } + /************************************************ create/alter/drop user **********************************************/ -cmd ::= CREATE USER user_name(A) PASS NK_STRING(B) sysinfo_opt(C). { pCxt->pRootNode = createCreateUserStmt(pCxt, &A, &B, C); } +cmd ::= CREATE USER user_name(A) PASS NK_STRING(B) sysinfo_opt(C) + white_list_opt(D). { + pCxt->pRootNode = createCreateUserStmt(pCxt, &A, &B, C); + pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, D); + } 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) 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 ::= ALTER USER user_name(A) ADD white_list(B). { pCxt->pRootNode = createAlterUserStmt(pCxt, &A, TSDB_ALTER_USER_ADD_WHITE_LIST, B); } +cmd ::= ALTER USER user_name(A) DROP white_list(B). { pCxt->pRootNode = createAlterUserStmt(pCxt, &A, TSDB_ALTER_USER_DROP_WHITE_LIST, B); } cmd ::= DROP USER user_name(A). { pCxt->pRootNode = createDropUserStmt(pCxt, &A); } %type sysinfo_opt { int8_t } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 1de7c412b1..2a3235b4f5 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -13,7 +13,7 @@ * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ - +#include #include #include "parAst.h" @@ -1653,6 +1653,86 @@ SNode* createShowTableTagsStmt(SAstCreateContext* pCxt, SNode* pTbName, SNode* p return (SNode*)pStmt; } +static int32_t getIpV4RangeFromWhitelistItem(char* ipRange, SIpV4Range* pIpRange) { + int32_t code = TSDB_CODE_SUCCESS; + char* ipCopy = taosStrdup(ipRange); + char* slash = strchr(ipCopy, '/'); + if (slash) { + *slash = '\0'; + struct in_addr addr; + if (uv_inet_pton(AF_INET, ipCopy, &addr) == 0) { + int prefix = atoi(slash + 1); + if (prefix < 0 || prefix > 32) { + code = TSDB_CODE_PAR_INVALID_IP_RANGE; + } else { + pIpRange->ip = addr.s_addr; + uint32_t mask = (1 << (32 - prefix)) - 1; + mask = htonl(~mask); + pIpRange->mask = mask; + code = TSDB_CODE_SUCCESS; + } + } else { + code = TSDB_CODE_PAR_INVALID_IP_RANGE; + } + } else { + struct in_addr addr; + if (uv_inet_pton(AF_INET, ipCopy, &addr) == 0) { + pIpRange->ip = addr.s_addr; + pIpRange->mask = 0xFFFFFFFF; + code = TSDB_CODE_SUCCESS; + } else { + code = TSDB_CODE_PAR_INVALID_IP_RANGE; + } + } + + taosMemoryFreeClear(ipCopy); + return code; +} + +static int32_t fillIpRangesFromWhiteList(SAstCreateContext* pCxt, SNodeList* pIpRangesNodeList, SIpV4Range* pIpRanges) { + int32_t i = 0; + int32_t code = 0; + + SNode* pNode = NULL; + FOREACH(pNode, pIpRangesNodeList) { + if (QUERY_NODE_VALUE != nodeType(pNode)) { + pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_IP_RANGE); + return TSDB_CODE_PAR_INVALID_IP_RANGE; + } + SValueNode* pValNode = (SValueNode*)(pNode); + code = getIpV4RangeFromWhitelistItem(pValNode->literal, pIpRanges + i); + ++i; + if (code != TSDB_CODE_SUCCESS) { + pCxt->errCode = generateSyntaxErrMsgExt(&pCxt->msgBuf, code, "Invalid IP range %s", pValNode->literal); + return code; + } + } + return TSDB_CODE_SUCCESS; +} + +SNode* addCreateUserStmtWhiteList(SAstCreateContext* pCxt, SNode* pCreateUserStmt, SNodeList* pIpRangesNodeList) { + if (NULL == pCreateUserStmt || NULL == pIpRangesNodeList) { + return pCreateUserStmt; + } + + ((SCreateUserStmt*)pCreateUserStmt)->pNodeListIpRanges = pIpRangesNodeList; + SCreateUserStmt* pCreateUser = (SCreateUserStmt*)pCreateUserStmt; + pCreateUser->numIpRanges = LIST_LENGTH(pIpRangesNodeList); + pCreateUser->pIpRanges = taosMemoryMalloc(pCreateUser->numIpRanges * sizeof(SIpV4Range)); + if (NULL == pCreateUser->pIpRanges) { + pCxt->errCode = TSDB_CODE_OUT_OF_MEMORY; + nodesDestroyNode(pCreateUserStmt); + return NULL; + } + + int32_t code = fillIpRangesFromWhiteList(pCxt, pIpRangesNodeList, pCreateUser->pIpRanges); + if (TSDB_CODE_SUCCESS != code) { + nodesDestroyNode(pCreateUserStmt); + return NULL; + } + return pCreateUserStmt; +} + SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const SToken* pPassword, int8_t sysinfo) { CHECK_PARSER_STATUS(pCxt); char password[TSDB_USET_PASSWORD_LEN + 3] = {0}; @@ -1667,7 +1747,7 @@ SNode* createCreateUserStmt(SAstCreateContext* pCxt, SToken* pUserName, const ST return (SNode*)pStmt; } -SNode* createAlterUserStmt(SAstCreateContext* pCxt, SToken* pUserName, int8_t alterType, const SToken* pVal) { +SNode* createAlterUserStmt(SAstCreateContext* pCxt, SToken* pUserName, int8_t alterType, void* pAlterInfo) { CHECK_PARSER_STATUS(pCxt); if (!checkUserName(pCxt, pUserName)) { return NULL; @@ -1679,6 +1759,7 @@ SNode* createAlterUserStmt(SAstCreateContext* pCxt, SToken* pUserName, int8_t al switch (alterType) { case TSDB_ALTER_USER_PASSWD: { char password[TSDB_USET_PASSWORD_LEN] = {0}; + SToken* pVal = pAlterInfo; if (!checkPassword(pCxt, pVal, password)) { nodesDestroyNode((SNode*)pStmt); return NULL; @@ -1686,12 +1767,35 @@ SNode* createAlterUserStmt(SAstCreateContext* pCxt, SToken* pUserName, int8_t al strcpy(pStmt->password, password); break; } - case TSDB_ALTER_USER_ENABLE: + case TSDB_ALTER_USER_ENABLE: { + SToken* pVal = pAlterInfo; pStmt->enable = taosStr2Int8(pVal->z, NULL, 10); break; - case TSDB_ALTER_USER_SYSINFO: + } + case TSDB_ALTER_USER_SYSINFO: { + SToken* pVal = pAlterInfo; pStmt->sysinfo = taosStr2Int8(pVal->z, NULL, 10); break; + } + case TSDB_ALTER_USER_ADD_WHITE_LIST: + case TSDB_ALTER_USER_DROP_WHITE_LIST: { + SNodeList* pIpRangesNodeList = pAlterInfo; + pStmt->pNodeListIpRanges = pIpRangesNodeList; + pStmt->numIpRanges = LIST_LENGTH(pIpRangesNodeList); + pStmt->pIpRanges = taosMemoryMalloc(pStmt->numIpRanges * sizeof(SIpV4Range)); + if (NULL == pStmt->pIpRanges) { + pCxt->errCode = TSDB_CODE_OUT_OF_MEMORY; + nodesDestroyNode((SNode*)pStmt); + return NULL; + } + + int32_t code = fillIpRangesFromWhiteList(pCxt, pIpRangesNodeList, pStmt->pIpRanges); + if (TSDB_CODE_SUCCESS != code) { + nodesDestroyNode((SNode*)pStmt); + return NULL; + } + break; + } default: break; } diff --git a/source/libs/parser/src/parTokenizer.c b/source/libs/parser/src/parTokenizer.c index d74a77b134..5e230a9116 100644 --- a/source/libs/parser/src/parTokenizer.c +++ b/source/libs/parser/src/parTokenizer.c @@ -109,6 +109,7 @@ static SKeyword keywordTable[] = { {"GRANTS", TK_GRANTS}, {"GROUP", TK_GROUP}, {"HAVING", TK_HAVING}, + {"HOST", TK_HOST}, {"IF", TK_IF}, {"IGNORE", TK_IGNORE}, {"IMPORT", TK_IMPORT}, diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 9d5a300c23..978f2d14d5 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -5744,8 +5744,15 @@ static int32_t translateCreateUser(STranslateContext* pCxt, SCreateUserStmt* pSt createReq.sysInfo = pStmt->sysinfo; createReq.enable = 1; strcpy(createReq.pass, pStmt->password); - - return buildCmdMsg(pCxt, TDMT_MND_CREATE_USER, (FSerializeFunc)tSerializeSCreateUserReq, &createReq); + + createReq.numIpRanges = pStmt->numIpRanges; + if (pStmt->numIpRanges > 0) { + createReq.pIpRanges = taosMemoryMalloc(createReq.numIpRanges * sizeof(SIpV4Range)); + memcpy(createReq.pIpRanges, pStmt->pIpRanges, sizeof(SIpV4Range) * createReq.numIpRanges); + } + int32_t code = buildCmdMsg(pCxt, TDMT_MND_CREATE_USER, (FSerializeFunc)tSerializeSCreateUserReq, &createReq); + tFreeSCreateUserReq(&createReq); + return code; } static int32_t translateAlterUser(STranslateContext* pCxt, SAlterUserStmt* pStmt) { @@ -5760,7 +5767,14 @@ static int32_t translateAlterUser(STranslateContext* pCxt, SAlterUserStmt* pStmt snprintf(alterReq.objname, sizeof(alterReq.objname), "%s", pCxt->pParseCxt->db); } - return buildCmdMsg(pCxt, TDMT_MND_ALTER_USER, (FSerializeFunc)tSerializeSAlterUserReq, &alterReq); + alterReq.numIpRanges = pStmt->numIpRanges; + if (pStmt->numIpRanges > 0) { + alterReq.pIpRanges = taosMemoryMalloc(alterReq.numIpRanges * sizeof(SIpV4Range)); + memcpy(alterReq.pIpRanges, pStmt->pIpRanges, sizeof(SIpV4Range) * alterReq.numIpRanges); + } + int32_t code = buildCmdMsg(pCxt, TDMT_MND_ALTER_USER, (FSerializeFunc)tSerializeSAlterUserReq, &alterReq); + tFreeSAlterUserReq(&alterReq); + return code; } static int32_t translateDropUser(STranslateContext* pCxt, SDropUserStmt* pStmt) { diff --git a/source/libs/parser/src/parUtil.c b/source/libs/parser/src/parUtil.c index b216ec5491..792d00833d 100644 --- a/source/libs/parser/src/parUtil.c +++ b/source/libs/parser/src/parUtil.c @@ -182,6 +182,8 @@ static char* getSyntaxErrFormat(int32_t errCode) { return "No valid function in window query"; case TSDB_CODE_PAR_INVALID_OPTR_USAGE: return "Invalid usage of expr: %s"; + case TSDB_CODE_PAR_INVALID_IP_RANGE: + return "invalid ip range"; case TSDB_CODE_OUT_OF_MEMORY: return "Out of memory"; default: diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index cb4b1a1413..5d295e083f 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -1,3 +1,5 @@ +/* This file is automatically generated by Lemon from input grammar +** source file "sql.y". */ /* ** 2000-05-29 ** @@ -22,9 +24,8 @@ ** The following is the concatenation of all %include directives from the ** input grammar file: */ -#include -#include /************ Begin %include sections from the grammar ************************/ +#line 11 "sql.y" #include #include @@ -41,12 +42,352 @@ #include "parAst.h" #define YYSTACKDEPTH 0 +#line 46 "sql.c" /**************** End of %include directives **********************************/ -/* These constants specify the various numeric values for terminal symbols -** in a format understandable to "makeheaders". This section is blank unless -** "lemon" is run with the "-m" command-line option. -***************** Begin makeheaders token definitions *************************/ -/**************** End makeheaders token definitions ***************************/ +/* These constants specify the various numeric values for terminal symbols. +***************** Begin token definitions *************************************/ +#ifndef TK_OR +#define TK_OR 1 +#define TK_AND 2 +#define TK_UNION 3 +#define TK_ALL 4 +#define TK_MINUS 5 +#define TK_EXCEPT 6 +#define TK_INTERSECT 7 +#define TK_NK_BITAND 8 +#define TK_NK_BITOR 9 +#define TK_NK_LSHIFT 10 +#define TK_NK_RSHIFT 11 +#define TK_NK_PLUS 12 +#define TK_NK_MINUS 13 +#define TK_NK_STAR 14 +#define TK_NK_SLASH 15 +#define TK_NK_REM 16 +#define TK_NK_CONCAT 17 +#define TK_CREATE 18 +#define TK_ACCOUNT 19 +#define TK_NK_ID 20 +#define TK_PASS 21 +#define TK_NK_STRING 22 +#define TK_ALTER 23 +#define TK_PPS 24 +#define TK_TSERIES 25 +#define TK_STORAGE 26 +#define TK_STREAMS 27 +#define TK_QTIME 28 +#define TK_DBS 29 +#define TK_USERS 30 +#define TK_CONNS 31 +#define TK_STATE 32 +#define TK_NK_COMMA 33 +#define TK_HOST 34 +#define TK_USER 35 +#define TK_ENABLE 36 +#define TK_NK_INTEGER 37 +#define TK_SYSINFO 38 +#define TK_ADD 39 +#define TK_DROP 40 +#define TK_GRANT 41 +#define TK_ON 42 +#define TK_TO 43 +#define TK_REVOKE 44 +#define TK_FROM 45 +#define TK_SUBSCRIBE 46 +#define TK_READ 47 +#define TK_WRITE 48 +#define TK_NK_DOT 49 +#define TK_WITH 50 +#define TK_DNODE 51 +#define TK_PORT 52 +#define TK_DNODES 53 +#define TK_RESTORE 54 +#define TK_NK_IPTOKEN 55 +#define TK_FORCE 56 +#define TK_UNSAFE 57 +#define TK_LOCAL 58 +#define TK_QNODE 59 +#define TK_BNODE 60 +#define TK_SNODE 61 +#define TK_MNODE 62 +#define TK_VNODE 63 +#define TK_DATABASE 64 +#define TK_USE 65 +#define TK_FLUSH 66 +#define TK_TRIM 67 +#define TK_COMPACT 68 +#define TK_IF 69 +#define TK_NOT 70 +#define TK_EXISTS 71 +#define TK_BUFFER 72 +#define TK_CACHEMODEL 73 +#define TK_CACHESIZE 74 +#define TK_COMP 75 +#define TK_DURATION 76 +#define TK_NK_VARIABLE 77 +#define TK_MAXROWS 78 +#define TK_MINROWS 79 +#define TK_KEEP 80 +#define TK_PAGES 81 +#define TK_PAGESIZE 82 +#define TK_TSDB_PAGESIZE 83 +#define TK_PRECISION 84 +#define TK_REPLICA 85 +#define TK_VGROUPS 86 +#define TK_SINGLE_STABLE 87 +#define TK_RETENTIONS 88 +#define TK_SCHEMALESS 89 +#define TK_WAL_LEVEL 90 +#define TK_WAL_FSYNC_PERIOD 91 +#define TK_WAL_RETENTION_PERIOD 92 +#define TK_WAL_RETENTION_SIZE 93 +#define TK_WAL_ROLL_PERIOD 94 +#define TK_WAL_SEGMENT_SIZE 95 +#define TK_STT_TRIGGER 96 +#define TK_TABLE_PREFIX 97 +#define TK_TABLE_SUFFIX 98 +#define TK_NK_COLON 99 +#define TK_BWLIMIT 100 +#define TK_START 101 +#define TK_TIMESTAMP 102 +#define TK_END 103 +#define TK_TABLE 104 +#define TK_NK_LP 105 +#define TK_NK_RP 106 +#define TK_STABLE 107 +#define TK_COLUMN 108 +#define TK_MODIFY 109 +#define TK_RENAME 110 +#define TK_TAG 111 +#define TK_SET 112 +#define TK_NK_EQ 113 +#define TK_USING 114 +#define TK_TAGS 115 +#define TK_BOOL 116 +#define TK_TINYINT 117 +#define TK_SMALLINT 118 +#define TK_INT 119 +#define TK_INTEGER 120 +#define TK_BIGINT 121 +#define TK_FLOAT 122 +#define TK_DOUBLE 123 +#define TK_BINARY 124 +#define TK_NCHAR 125 +#define TK_UNSIGNED 126 +#define TK_JSON 127 +#define TK_VARCHAR 128 +#define TK_MEDIUMBLOB 129 +#define TK_BLOB 130 +#define TK_VARBINARY 131 +#define TK_GEOMETRY 132 +#define TK_DECIMAL 133 +#define TK_COMMENT 134 +#define TK_MAX_DELAY 135 +#define TK_WATERMARK 136 +#define TK_ROLLUP 137 +#define TK_TTL 138 +#define TK_SMA 139 +#define TK_DELETE_MARK 140 +#define TK_FIRST 141 +#define TK_LAST 142 +#define TK_SHOW 143 +#define TK_PRIVILEGES 144 +#define TK_DATABASES 145 +#define TK_TABLES 146 +#define TK_STABLES 147 +#define TK_MNODES 148 +#define TK_QNODES 149 +#define TK_FUNCTIONS 150 +#define TK_INDEXES 151 +#define TK_ACCOUNTS 152 +#define TK_APPS 153 +#define TK_CONNECTIONS 154 +#define TK_LICENCES 155 +#define TK_GRANTS 156 +#define TK_QUERIES 157 +#define TK_SCORES 158 +#define TK_TOPICS 159 +#define TK_VARIABLES 160 +#define TK_CLUSTER 161 +#define TK_BNODES 162 +#define TK_SNODES 163 +#define TK_TRANSACTIONS 164 +#define TK_DISTRIBUTED 165 +#define TK_CONSUMERS 166 +#define TK_SUBSCRIPTIONS 167 +#define TK_VNODES 168 +#define TK_ALIVE 169 +#define TK_LIKE 170 +#define TK_TBNAME 171 +#define TK_QTAGS 172 +#define TK_AS 173 +#define TK_INDEX 174 +#define TK_FUNCTION 175 +#define TK_INTERVAL 176 +#define TK_COUNT 177 +#define TK_LAST_ROW 178 +#define TK_META 179 +#define TK_ONLY 180 +#define TK_TOPIC 181 +#define TK_CONSUMER 182 +#define TK_GROUP 183 +#define TK_DESC 184 +#define TK_DESCRIBE 185 +#define TK_RESET 186 +#define TK_QUERY 187 +#define TK_CACHE 188 +#define TK_EXPLAIN 189 +#define TK_ANALYZE 190 +#define TK_VERBOSE 191 +#define TK_NK_BOOL 192 +#define TK_RATIO 193 +#define TK_NK_FLOAT 194 +#define TK_OUTPUTTYPE 195 +#define TK_AGGREGATE 196 +#define TK_BUFSIZE 197 +#define TK_LANGUAGE 198 +#define TK_REPLACE 199 +#define TK_STREAM 200 +#define TK_INTO 201 +#define TK_PAUSE 202 +#define TK_RESUME 203 +#define TK_TRIGGER 204 +#define TK_AT_ONCE 205 +#define TK_WINDOW_CLOSE 206 +#define TK_IGNORE 207 +#define TK_EXPIRED 208 +#define TK_FILL_HISTORY 209 +#define TK_UPDATE 210 +#define TK_SUBTABLE 211 +#define TK_UNTREATED 212 +#define TK_KILL 213 +#define TK_CONNECTION 214 +#define TK_TRANSACTION 215 +#define TK_BALANCE 216 +#define TK_VGROUP 217 +#define TK_LEADER 218 +#define TK_MERGE 219 +#define TK_REDISTRIBUTE 220 +#define TK_SPLIT 221 +#define TK_DELETE 222 +#define TK_INSERT 223 +#define TK_NULL 224 +#define TK_NK_QUESTION 225 +#define TK_NK_ARROW 226 +#define TK_ROWTS 227 +#define TK_QSTART 228 +#define TK_QEND 229 +#define TK_QDURATION 230 +#define TK_WSTART 231 +#define TK_WEND 232 +#define TK_WDURATION 233 +#define TK_IROWTS 234 +#define TK_ISFILLED 235 +#define TK_CAST 236 +#define TK_NOW 237 +#define TK_TODAY 238 +#define TK_TIMEZONE 239 +#define TK_CLIENT_VERSION 240 +#define TK_SERVER_VERSION 241 +#define TK_SERVER_STATUS 242 +#define TK_CURRENT_USER 243 +#define TK_CASE 244 +#define TK_WHEN 245 +#define TK_THEN 246 +#define TK_ELSE 247 +#define TK_BETWEEN 248 +#define TK_IS 249 +#define TK_NK_LT 250 +#define TK_NK_GT 251 +#define TK_NK_LE 252 +#define TK_NK_GE 253 +#define TK_NK_NE 254 +#define TK_MATCH 255 +#define TK_NMATCH 256 +#define TK_CONTAINS 257 +#define TK_IN 258 +#define TK_JOIN 259 +#define TK_INNER 260 +#define TK_SELECT 261 +#define TK_NK_HINT 262 +#define TK_DISTINCT 263 +#define TK_WHERE 264 +#define TK_PARTITION 265 +#define TK_BY 266 +#define TK_SESSION 267 +#define TK_STATE_WINDOW 268 +#define TK_EVENT_WINDOW 269 +#define TK_SLIDING 270 +#define TK_FILL 271 +#define TK_VALUE 272 +#define TK_VALUE_F 273 +#define TK_NONE 274 +#define TK_PREV 275 +#define TK_NULL_F 276 +#define TK_LINEAR 277 +#define TK_NEXT 278 +#define TK_HAVING 279 +#define TK_RANGE 280 +#define TK_EVERY 281 +#define TK_ORDER 282 +#define TK_SLIMIT 283 +#define TK_SOFFSET 284 +#define TK_LIMIT 285 +#define TK_OFFSET 286 +#define TK_ASC 287 +#define TK_NULLS 288 +#define TK_ABORT 289 +#define TK_AFTER 290 +#define TK_ATTACH 291 +#define TK_BEFORE 292 +#define TK_BEGIN 293 +#define TK_BITAND 294 +#define TK_BITNOT 295 +#define TK_BITOR 296 +#define TK_BLOCKS 297 +#define TK_CHANGE 298 +#define TK_COMMA 299 +#define TK_CONCAT 300 +#define TK_CONFLICT 301 +#define TK_COPY 302 +#define TK_DEFERRED 303 +#define TK_DELIMITERS 304 +#define TK_DETACH 305 +#define TK_DIVIDE 306 +#define TK_DOT 307 +#define TK_EACH 308 +#define TK_FAIL 309 +#define TK_FILE 310 +#define TK_FOR 311 +#define TK_GLOB 312 +#define TK_ID 313 +#define TK_IMMEDIATE 314 +#define TK_IMPORT 315 +#define TK_INITIALLY 316 +#define TK_INSTEAD 317 +#define TK_ISNULL 318 +#define TK_KEY 319 +#define TK_MODULES 320 +#define TK_NK_BITNOT 321 +#define TK_NK_SEMI 322 +#define TK_NOTNULL 323 +#define TK_OF 324 +#define TK_PLUS 325 +#define TK_PRIVILEGE 326 +#define TK_RAISE 327 +#define TK_RESTRICT 328 +#define TK_ROW 329 +#define TK_SEMI 330 +#define TK_STAR 331 +#define TK_STATEMENT 332 +#define TK_STRICT 333 +#define TK_STRING 334 +#define TK_TIMES 335 +#define TK_VALUES 336 +#define TK_VARIABLE 337 +#define TK_VIEW 338 +#define TK_WAL 339 +#endif +/**************** End token definitions ***************************************/ /* The next sections is a series of control #defines. ** various aspects of the generated parser. @@ -104,27 +445,27 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 490 +#define YYNOCODE 494 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - SAlterOption yy25; - SDataType yy84; - SToken yy169; - EFillMode yy214; - int8_t yy243; - int32_t yy480; - EOrder yy498; - EOperatorType yy520; - STokenPair yy637; - SNodeList* yy824; - EJoinType yy932; - int64_t yy949; - SNode* yy952; - bool yy957; - ENullOrder yy977; + SNode* yy28; + SDataType yy32; + EJoinType yy152; + SNodeList* yy236; + EFillMode yy322; + SAlterOption yy481; + int64_t yy701; + EOrder yy734; + bool yy793; + STokenPair yy833; + int8_t yy847; + SToken yy889; + EOperatorType yy896; + ENullOrder yy945; + int32_t yy956; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -140,18 +481,18 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 803 -#define YYNRULE 604 -#define YYNRULE_WITH_ACTION 604 -#define YYNTOKEN 339 -#define YY_MAX_SHIFT 802 -#define YY_MIN_SHIFTREDUCE 1185 -#define YY_MAX_SHIFTREDUCE 1788 -#define YY_ERROR_ACTION 1789 -#define YY_ACCEPT_ACTION 1790 -#define YY_NO_ACTION 1791 -#define YY_MIN_REDUCE 1792 -#define YY_MAX_REDUCE 2395 +#define YYNSTATE 811 +#define YYNRULE 611 +#define YYNRULE_WITH_ACTION 611 +#define YYNTOKEN 340 +#define YY_MAX_SHIFT 810 +#define YY_MIN_SHIFTREDUCE 1196 +#define YY_MAX_SHIFTREDUCE 1806 +#define YY_ERROR_ACTION 1807 +#define YY_ACCEPT_ACTION 1808 +#define YY_NO_ACTION 1809 +#define YY_MIN_REDUCE 1810 +#define YY_MAX_REDUCE 2420 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -218,811 +559,813 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2797) +#define YY_ACTTAB_COUNT (2798) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 455, 2202, 2180, 2091, 537, 693, 1969, 538, 1828, 14, - /* 10 */ 13, 675, 48, 46, 1715, 396, 2188, 1958, 2088, 680, - /* 20 */ 403, 1585, 1560, 41, 40, 133, 2184, 47, 45, 44, - /* 30 */ 43, 42, 579, 1641, 221, 1558, 693, 1969, 540, 2220, - /* 40 */ 1835, 2163, 41, 40, 692, 350, 47, 45, 44, 43, - /* 50 */ 42, 2170, 2371, 709, 1954, 542, 133, 2180, 2180, 672, - /* 60 */ 142, 539, 1636, 584, 2186, 400, 38, 308, 19, 1587, - /* 70 */ 2091, 1960, 2189, 107, 703, 1566, 545, 672, 142, 538, - /* 80 */ 1828, 2184, 2184, 363, 181, 2089, 680, 2201, 635, 2237, - /* 90 */ 143, 2366, 110, 2203, 713, 2205, 2206, 708, 1961, 703, - /* 100 */ 799, 181, 1320, 15, 185, 2075, 2290, 397, 2372, 188, - /* 110 */ 399, 2286, 1684, 2367, 661, 166, 48, 46, 552, 2186, - /* 120 */ 2186, 371, 2074, 1971, 403, 190, 1560, 1670, 1376, 703, - /* 130 */ 703, 408, 223, 2320, 2015, 2017, 540, 1641, 1835, 1558, - /* 140 */ 1643, 1644, 1322, 1367, 738, 737, 736, 1371, 735, 1373, - /* 150 */ 1374, 734, 731, 1778, 1382, 728, 1384, 1385, 725, 722, - /* 160 */ 719, 168, 674, 186, 2298, 2299, 1636, 140, 2303, 1910, - /* 170 */ 1616, 1626, 19, 1585, 693, 1969, 1642, 1645, 169, 1566, - /* 180 */ 1804, 287, 2298, 671, 1671, 134, 670, 1586, 2366, 693, - /* 190 */ 1969, 1561, 123, 1559, 193, 122, 121, 120, 119, 118, - /* 200 */ 117, 116, 115, 114, 799, 659, 188, 15, 2202, 56, - /* 210 */ 2367, 661, 47, 45, 44, 43, 42, 1785, 710, 2016, - /* 220 */ 2017, 289, 692, 1564, 1565, 1792, 1615, 1618, 1619, 1620, - /* 230 */ 1621, 1622, 1623, 1624, 1625, 705, 701, 1634, 1635, 1637, - /* 240 */ 1638, 1639, 1640, 2, 1643, 1644, 2220, 184, 101, 132, - /* 250 */ 131, 130, 129, 128, 127, 126, 125, 124, 2170, 2009, - /* 260 */ 709, 1793, 37, 401, 1665, 1666, 1667, 1668, 1669, 1673, - /* 270 */ 1674, 1675, 1676, 1962, 1616, 1626, 1672, 556, 693, 1969, - /* 280 */ 1642, 1645, 123, 1246, 1247, 122, 121, 120, 119, 118, - /* 290 */ 117, 116, 115, 114, 2201, 1561, 2237, 1559, 453, 110, - /* 300 */ 2203, 713, 2205, 2206, 708, 51, 703, 1411, 1412, 145, - /* 310 */ 1719, 151, 2261, 2290, 2022, 2202, 1585, 399, 2286, 1790, - /* 320 */ 1784, 384, 253, 1469, 1470, 675, 252, 1564, 1565, 2020, - /* 330 */ 1615, 1618, 1619, 1620, 1621, 1622, 1623, 1624, 1625, 705, - /* 340 */ 701, 1634, 1635, 1637, 1638, 1639, 1640, 2, 12, 48, - /* 350 */ 46, 412, 411, 2220, 35, 460, 2070, 403, 1243, 1560, - /* 360 */ 1242, 1712, 692, 406, 1677, 2170, 655, 709, 466, 2070, - /* 370 */ 1641, 163, 1558, 138, 1567, 1218, 41, 40, 385, 1971, - /* 380 */ 47, 45, 44, 43, 42, 583, 2020, 93, 1588, 582, - /* 390 */ 358, 1244, 418, 383, 2202, 613, 1585, 417, 1243, 1636, - /* 400 */ 1242, 2201, 202, 2237, 707, 19, 110, 2203, 713, 2205, - /* 410 */ 2206, 708, 1566, 703, 1220, 205, 1223, 1224, 185, 1743, - /* 420 */ 2290, 748, 41, 40, 399, 2286, 47, 45, 44, 43, - /* 430 */ 42, 1244, 2220, 1586, 493, 2070, 12, 799, 10, 635, - /* 440 */ 15, 2022, 2366, 500, 2170, 51, 709, 2321, 393, 66, - /* 450 */ 12, 1815, 449, 48, 46, 1646, 2020, 448, 30, 2372, - /* 460 */ 188, 403, 376, 1560, 2367, 661, 1617, 647, 646, 1741, - /* 470 */ 1742, 1744, 1745, 1746, 1641, 254, 1558, 1643, 1644, 62, - /* 480 */ 2201, 210, 2237, 575, 574, 344, 2203, 713, 2205, 2206, - /* 490 */ 708, 706, 703, 694, 2255, 90, 611, 693, 1969, 635, - /* 500 */ 2202, 2170, 2366, 1636, 212, 211, 634, 1616, 1626, 609, - /* 510 */ 710, 607, 373, 1642, 1645, 667, 1566, 454, 1755, 2372, - /* 520 */ 188, 1964, 2022, 650, 2367, 661, 620, 499, 1561, 369, - /* 530 */ 1559, 377, 1570, 375, 374, 406, 581, 2020, 2220, 106, - /* 540 */ 267, 799, 1331, 166, 49, 1531, 1532, 2202, 62, 103, - /* 550 */ 2170, 1971, 709, 1486, 1487, 1330, 2164, 710, 583, 1837, - /* 560 */ 1564, 1565, 582, 1615, 1618, 1619, 1620, 1621, 1622, 1623, - /* 570 */ 1624, 1625, 705, 701, 1634, 1635, 1637, 1638, 1639, 1640, - /* 580 */ 2, 1643, 1644, 62, 144, 2220, 2201, 2261, 2237, 1485, - /* 590 */ 1488, 111, 2203, 713, 2205, 2206, 708, 2170, 703, 709, - /* 600 */ 2135, 660, 291, 635, 2366, 2290, 2366, 577, 576, 2289, - /* 610 */ 2286, 1616, 1626, 1814, 656, 651, 644, 1642, 1645, 1711, - /* 620 */ 509, 659, 188, 2372, 188, 2305, 2367, 661, 2367, 661, - /* 630 */ 60, 585, 1561, 2201, 1559, 2237, 291, 632, 110, 2203, - /* 640 */ 713, 2205, 2206, 708, 1813, 703, 693, 1969, 34, 255, - /* 650 */ 2386, 2302, 2290, 1318, 41, 40, 399, 2286, 47, 45, - /* 660 */ 44, 43, 42, 2170, 1564, 1565, 468, 1615, 1618, 1619, - /* 670 */ 1620, 1621, 1622, 1623, 1624, 1625, 705, 701, 1634, 1635, - /* 680 */ 1637, 1638, 1639, 1640, 2, 48, 46, 693, 1969, 2202, - /* 690 */ 534, 1560, 1946, 403, 2170, 1560, 693, 1969, 532, 710, - /* 700 */ 2202, 528, 524, 1651, 1558, 291, 1641, 483, 1558, 1585, - /* 710 */ 710, 1587, 597, 596, 595, 739, 484, 693, 1969, 587, - /* 720 */ 139, 591, 1566, 693, 1969, 590, 2053, 2220, 593, 592, - /* 730 */ 589, 594, 379, 378, 1944, 1636, 588, 555, 2220, 2170, - /* 740 */ 291, 709, 740, 1966, 1566, 2013, 693, 1969, 1566, 263, - /* 750 */ 2170, 409, 709, 2022, 693, 1969, 668, 41, 40, 166, - /* 760 */ 398, 47, 45, 44, 43, 42, 256, 1971, 2020, 799, - /* 770 */ 672, 142, 654, 799, 264, 2201, 49, 2237, 672, 142, - /* 780 */ 170, 2203, 713, 2205, 2206, 708, 2201, 703, 2237, 48, - /* 790 */ 46, 170, 2203, 713, 2205, 2206, 708, 403, 703, 1560, - /* 800 */ 2220, 41, 40, 52, 553, 47, 45, 44, 43, 42, - /* 810 */ 1641, 1335, 1558, 1643, 1644, 746, 156, 155, 743, 742, - /* 820 */ 741, 153, 636, 2331, 1334, 746, 156, 155, 743, 742, - /* 830 */ 741, 153, 299, 300, 2332, 770, 768, 298, 1812, 1636, - /* 840 */ 1811, 693, 1969, 1616, 1626, 693, 1969, 758, 1810, 1642, - /* 850 */ 1645, 1871, 1566, 1754, 695, 653, 2262, 554, 2084, 1617, - /* 860 */ 1561, 678, 1559, 289, 1561, 303, 1559, 746, 156, 155, - /* 870 */ 743, 742, 741, 153, 187, 2298, 2299, 799, 140, 2303, - /* 880 */ 15, 2202, 189, 2298, 2299, 478, 140, 2303, 2170, 511, - /* 890 */ 2170, 710, 1564, 1565, 477, 1956, 1564, 1565, 2170, 1615, - /* 900 */ 1618, 1619, 1620, 1621, 1622, 1623, 1624, 1625, 705, 701, - /* 910 */ 1634, 1635, 1637, 1638, 1639, 1640, 2, 1643, 1644, 2220, - /* 920 */ 9, 597, 596, 595, 693, 1969, 693, 1969, 587, 139, - /* 930 */ 591, 2170, 1809, 709, 590, 602, 44, 43, 42, 589, - /* 940 */ 594, 379, 378, 1226, 690, 588, 691, 1616, 1626, 1584, - /* 950 */ 612, 41, 40, 1642, 1645, 47, 45, 44, 43, 42, - /* 960 */ 291, 693, 1969, 660, 251, 165, 2366, 2201, 1561, 2237, - /* 970 */ 1559, 437, 111, 2203, 713, 2205, 2206, 708, 1585, 703, - /* 980 */ 605, 309, 2170, 659, 188, 2370, 2290, 599, 2367, 661, - /* 990 */ 698, 2286, 207, 250, 618, 2305, 1223, 1224, 439, 435, - /* 1000 */ 1564, 1565, 1868, 1615, 1618, 1619, 1620, 1621, 1622, 1623, - /* 1010 */ 1624, 1625, 705, 701, 1634, 1635, 1637, 1638, 1639, 1640, - /* 1020 */ 2, 2301, 354, 167, 1583, 693, 1969, 1808, 329, 1588, - /* 1030 */ 2305, 491, 86, 70, 507, 85, 69, 506, 697, 90, - /* 1040 */ 2262, 635, 326, 73, 2366, 410, 72, 1731, 2310, 1704, - /* 1050 */ 166, 1807, 676, 474, 2156, 508, 2300, 351, 1972, 2153, - /* 1060 */ 476, 2372, 188, 1806, 1803, 1965, 2367, 661, 219, 519, - /* 1070 */ 517, 514, 776, 775, 774, 773, 415, 2170, 772, 771, - /* 1080 */ 146, 766, 765, 764, 763, 762, 761, 760, 158, 756, - /* 1090 */ 755, 754, 414, 413, 751, 750, 749, 176, 175, 635, - /* 1100 */ 2022, 2170, 2366, 425, 1588, 238, 372, 407, 62, 62, - /* 1110 */ 54, 664, 3, 2170, 2170, 2020, 1787, 1788, 462, 2372, - /* 1120 */ 188, 173, 1952, 1802, 2367, 661, 1801, 1945, 1617, 573, - /* 1130 */ 569, 565, 561, 744, 237, 1277, 2013, 1800, 41, 40, - /* 1140 */ 1704, 1799, 47, 45, 44, 43, 42, 109, 504, 1798, - /* 1150 */ 1797, 498, 497, 496, 495, 490, 489, 488, 487, 486, - /* 1160 */ 482, 481, 480, 479, 353, 471, 470, 469, 1796, 464, - /* 1170 */ 463, 370, 36, 2170, 91, 1278, 2170, 235, 41, 40, - /* 1180 */ 2022, 203, 47, 45, 44, 43, 42, 2170, 81, 80, - /* 1190 */ 452, 2170, 2202, 200, 748, 679, 447, 154, 446, 2170, - /* 1200 */ 2170, 2022, 710, 1947, 2328, 1795, 444, 442, 745, 2063, - /* 1210 */ 2371, 2013, 2371, 2366, 2022, 2366, 688, 352, 2170, 322, - /* 1220 */ 433, 1973, 1999, 431, 427, 423, 420, 445, 445, 2021, - /* 1230 */ 2220, 2370, 83, 2370, 135, 2367, 2369, 2367, 2368, 2202, - /* 1240 */ 759, 700, 2170, 1931, 709, 234, 227, 147, 458, 710, - /* 1250 */ 154, 2341, 232, 550, 74, 2170, 266, 55, 243, 245, - /* 1260 */ 586, 241, 244, 663, 247, 291, 291, 246, 154, 249, - /* 1270 */ 1855, 225, 248, 615, 265, 614, 432, 2220, 2201, 50, - /* 1280 */ 2237, 1846, 1316, 110, 2203, 713, 2205, 2206, 708, 2170, - /* 1290 */ 703, 709, 598, 1844, 50, 2386, 2191, 2290, 271, 154, - /* 1300 */ 50, 399, 2286, 600, 84, 296, 260, 71, 152, 154, - /* 1310 */ 1526, 14, 13, 704, 752, 603, 64, 94, 50, 1569, - /* 1320 */ 50, 1568, 1838, 717, 152, 2201, 154, 2237, 1529, 136, - /* 1330 */ 110, 2203, 713, 2205, 2206, 708, 1296, 703, 152, 1740, - /* 1340 */ 753, 1911, 2386, 2202, 2290, 284, 1805, 2334, 399, 2286, - /* 1350 */ 665, 648, 2193, 710, 1739, 642, 412, 411, 273, 677, - /* 1360 */ 1483, 278, 1294, 2202, 1909, 301, 1574, 685, 305, 1361, - /* 1370 */ 137, 2221, 794, 710, 386, 2359, 1678, 1641, 1627, 1567, - /* 1380 */ 321, 2220, 1908, 1389, 1393, 416, 1400, 2079, 1829, 1398, - /* 1390 */ 2010, 1834, 2324, 2170, 673, 709, 1662, 286, 157, 283, - /* 1400 */ 290, 2220, 5, 424, 367, 419, 1636, 1591, 441, 196, - /* 1410 */ 440, 195, 2202, 2170, 1507, 709, 443, 198, 1584, 1566, - /* 1420 */ 209, 459, 710, 316, 2309, 461, 1588, 2080, 465, 2201, - /* 1430 */ 467, 2237, 2202, 472, 110, 2203, 713, 2205, 2206, 708, - /* 1440 */ 502, 703, 710, 1583, 699, 485, 2386, 492, 2290, 2201, - /* 1450 */ 2220, 2237, 399, 2286, 110, 2203, 713, 2205, 2206, 708, - /* 1460 */ 2072, 703, 2170, 494, 709, 512, 2386, 513, 2290, 510, - /* 1470 */ 2220, 501, 399, 2286, 503, 213, 214, 1572, 515, 1571, - /* 1480 */ 516, 1589, 2170, 216, 709, 518, 520, 535, 4, 536, - /* 1490 */ 543, 224, 544, 546, 1586, 547, 226, 1590, 2201, 1592, - /* 1500 */ 2237, 2202, 548, 110, 2203, 713, 2205, 2206, 708, 551, - /* 1510 */ 703, 710, 549, 1593, 229, 2386, 2085, 2290, 2201, 557, - /* 1520 */ 2237, 399, 2286, 171, 2203, 713, 2205, 2206, 708, 231, - /* 1530 */ 703, 88, 89, 578, 236, 1575, 112, 1570, 580, 2220, - /* 1540 */ 1959, 240, 357, 1955, 242, 159, 160, 1957, 617, 619, - /* 1550 */ 2202, 2170, 92, 709, 257, 1953, 161, 162, 623, 624, - /* 1560 */ 710, 148, 622, 261, 317, 259, 1514, 1578, 1580, 628, - /* 1570 */ 2144, 2141, 2140, 630, 639, 627, 662, 2387, 649, 645, - /* 1580 */ 701, 1634, 1635, 1637, 1638, 1639, 1640, 2201, 2220, 2237, - /* 1590 */ 2340, 269, 110, 2203, 713, 2205, 2206, 708, 683, 703, - /* 1600 */ 2170, 629, 709, 2325, 2265, 389, 2290, 272, 652, 2335, - /* 1610 */ 399, 2286, 8, 658, 637, 640, 638, 2339, 390, 1704, - /* 1620 */ 2202, 2312, 2389, 282, 669, 666, 1587, 277, 1709, 141, - /* 1630 */ 710, 2306, 681, 1707, 318, 682, 2201, 2099, 2237, 319, - /* 1640 */ 2202, 110, 2203, 713, 2205, 2206, 708, 292, 703, 178, - /* 1650 */ 710, 2098, 279, 2263, 2097, 2290, 174, 1, 2220, 399, - /* 1660 */ 2286, 280, 281, 149, 686, 191, 320, 395, 1970, 687, - /* 1670 */ 2170, 150, 709, 100, 2365, 61, 285, 102, 2220, 2271, - /* 1680 */ 2014, 715, 1932, 323, 312, 795, 796, 325, 332, 798, - /* 1690 */ 2170, 347, 709, 346, 336, 359, 327, 2162, 2161, 53, - /* 1700 */ 360, 2160, 78, 2157, 421, 422, 2201, 1551, 2237, 2202, - /* 1710 */ 1552, 110, 2203, 713, 2205, 2206, 708, 194, 703, 710, - /* 1720 */ 426, 2155, 428, 696, 429, 2290, 711, 430, 2237, 399, - /* 1730 */ 2286, 111, 2203, 713, 2205, 2206, 708, 2154, 703, 368, - /* 1740 */ 2152, 434, 2151, 2150, 2202, 2290, 436, 2220, 438, 362, - /* 1750 */ 2286, 1542, 2131, 197, 710, 2130, 199, 1510, 79, 2170, - /* 1760 */ 1509, 709, 2112, 2111, 2110, 450, 451, 2109, 2108, 1460, - /* 1770 */ 2062, 456, 457, 2059, 2202, 201, 2058, 82, 2057, 2056, - /* 1780 */ 2061, 204, 2220, 2060, 710, 2055, 2054, 387, 2052, 2051, - /* 1790 */ 2050, 206, 473, 2049, 2170, 2201, 709, 2237, 475, 2065, - /* 1800 */ 111, 2203, 713, 2205, 2206, 708, 2048, 703, 2047, 2046, - /* 1810 */ 2045, 2202, 2220, 2044, 2290, 2043, 2042, 388, 2041, 2287, - /* 1820 */ 2040, 710, 2039, 2038, 2170, 2037, 709, 2036, 2035, 2034, - /* 1830 */ 2201, 208, 2237, 2033, 87, 345, 2203, 713, 2205, 2206, - /* 1840 */ 708, 2202, 703, 2032, 2031, 2030, 2064, 2029, 2028, 2220, - /* 1850 */ 2027, 710, 1462, 2026, 2025, 505, 2024, 2023, 1332, 355, - /* 1860 */ 2201, 2170, 2237, 709, 1336, 345, 2203, 713, 2205, 2206, - /* 1870 */ 708, 1874, 703, 2202, 356, 1328, 215, 1873, 1872, 2220, - /* 1880 */ 1870, 217, 1867, 710, 521, 1866, 218, 522, 526, 1859, - /* 1890 */ 523, 2170, 1848, 709, 525, 529, 1824, 2201, 1225, 2237, - /* 1900 */ 533, 527, 338, 2203, 713, 2205, 2206, 708, 531, 703, - /* 1910 */ 2202, 2220, 530, 76, 220, 2190, 394, 182, 1823, 2129, - /* 1920 */ 707, 222, 183, 2170, 2119, 709, 541, 2201, 230, 2237, - /* 1930 */ 77, 2107, 171, 2203, 713, 2205, 2206, 708, 228, 703, - /* 1940 */ 2202, 233, 2083, 1948, 1869, 1270, 1865, 657, 2220, 2106, - /* 1950 */ 710, 558, 559, 560, 1863, 562, 563, 1861, 566, 2201, - /* 1960 */ 2170, 2237, 709, 621, 345, 2203, 713, 2205, 2206, 708, - /* 1970 */ 567, 703, 564, 568, 1858, 570, 571, 572, 2220, 1843, - /* 1980 */ 1841, 802, 1842, 402, 1840, 1820, 2388, 2202, 1950, 1404, - /* 1990 */ 2170, 1405, 709, 239, 1949, 315, 2201, 710, 2237, 63, - /* 2000 */ 1319, 344, 2203, 713, 2205, 2206, 708, 1317, 703, 1306, - /* 2010 */ 2256, 180, 1315, 2202, 767, 769, 1314, 1856, 1313, 792, - /* 2020 */ 788, 784, 780, 710, 313, 2220, 2201, 1312, 2237, 1847, - /* 2030 */ 404, 345, 2203, 713, 2205, 2206, 708, 2170, 703, 709, - /* 2040 */ 1311, 1308, 1307, 1305, 380, 381, 601, 1845, 382, 604, - /* 2050 */ 1819, 2220, 1818, 606, 608, 1817, 610, 113, 29, 1536, - /* 2060 */ 1538, 2128, 1535, 2170, 108, 709, 67, 306, 1540, 57, - /* 2070 */ 1516, 1518, 2118, 2201, 2202, 2237, 625, 626, 345, 2203, - /* 2080 */ 713, 2205, 2206, 708, 710, 703, 1520, 2202, 2105, 164, - /* 2090 */ 2104, 262, 2371, 631, 1495, 20, 17, 710, 1494, 616, - /* 2100 */ 689, 2237, 31, 633, 340, 2203, 713, 2205, 2206, 708, - /* 2110 */ 6, 703, 2220, 1757, 268, 7, 641, 270, 21, 643, - /* 2120 */ 22, 275, 276, 33, 2170, 2220, 709, 65, 2191, 23, - /* 2130 */ 24, 18, 1738, 172, 1772, 294, 274, 2170, 2202, 709, - /* 2140 */ 1730, 32, 293, 95, 1771, 1777, 1778, 391, 710, 1776, - /* 2150 */ 1775, 392, 1701, 288, 2202, 59, 58, 1700, 2103, 2082, - /* 2160 */ 2201, 258, 2237, 96, 710, 330, 2203, 713, 2205, 2206, - /* 2170 */ 708, 97, 703, 2201, 177, 2237, 2220, 295, 328, 2203, - /* 2180 */ 713, 2205, 2206, 708, 2081, 703, 25, 297, 2170, 1736, - /* 2190 */ 709, 684, 2220, 98, 302, 68, 99, 307, 1653, 26, - /* 2200 */ 103, 1652, 13, 2202, 2170, 304, 709, 1576, 2240, 1663, - /* 2210 */ 702, 11, 1631, 710, 1629, 179, 39, 192, 1608, 1381, - /* 2220 */ 1380, 1628, 16, 27, 2201, 1600, 2237, 712, 28, 331, - /* 2230 */ 2203, 713, 2205, 2206, 708, 1390, 703, 714, 716, 718, - /* 2240 */ 2201, 2220, 2237, 405, 1387, 337, 2203, 713, 2205, 2206, - /* 2250 */ 708, 720, 703, 2170, 2202, 709, 721, 723, 726, 729, - /* 2260 */ 1386, 1383, 732, 724, 710, 727, 1379, 1377, 730, 733, - /* 2270 */ 2202, 1378, 310, 1375, 104, 105, 1399, 75, 1395, 1268, - /* 2280 */ 710, 747, 1300, 2202, 1299, 1298, 1297, 1295, 1293, 2201, - /* 2290 */ 1292, 2237, 2220, 710, 341, 2203, 713, 2205, 2206, 708, - /* 2300 */ 1291, 703, 757, 2202, 2170, 1326, 709, 311, 2220, 1289, - /* 2310 */ 1288, 1287, 1286, 710, 1285, 1284, 1864, 1283, 1323, 1321, - /* 2320 */ 2170, 2220, 709, 1280, 1279, 1274, 1276, 1275, 1273, 1862, - /* 2330 */ 777, 781, 778, 2170, 782, 709, 779, 783, 1860, 785, - /* 2340 */ 2201, 2220, 2237, 1857, 789, 333, 2203, 713, 2205, 2206, - /* 2350 */ 708, 786, 703, 2170, 787, 709, 2201, 790, 2237, 791, - /* 2360 */ 1839, 342, 2203, 713, 2205, 2206, 708, 793, 703, 2201, - /* 2370 */ 1215, 2237, 1816, 2202, 334, 2203, 713, 2205, 2206, 708, - /* 2380 */ 314, 703, 797, 710, 1562, 324, 800, 801, 1791, 2201, - /* 2390 */ 1791, 2237, 1791, 1791, 343, 2203, 713, 2205, 2206, 708, - /* 2400 */ 1791, 703, 1791, 1791, 1791, 1791, 2202, 1791, 1791, 1791, - /* 2410 */ 1791, 2220, 1791, 1791, 1791, 1791, 710, 1791, 1791, 1791, - /* 2420 */ 1791, 1791, 2202, 2170, 1791, 709, 1791, 1791, 1791, 1791, - /* 2430 */ 1791, 1791, 710, 1791, 1791, 1791, 1791, 1791, 1791, 1791, - /* 2440 */ 1791, 1791, 1791, 2202, 2220, 1791, 1791, 1791, 1791, 1791, - /* 2450 */ 1791, 1791, 1791, 710, 1791, 1791, 2170, 1791, 709, 2201, - /* 2460 */ 2220, 2237, 1791, 1791, 335, 2203, 713, 2205, 2206, 708, - /* 2470 */ 1791, 703, 2170, 1791, 709, 1791, 1791, 1791, 1791, 1791, - /* 2480 */ 1791, 2220, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, - /* 2490 */ 1791, 1791, 2201, 2170, 2237, 709, 1791, 348, 2203, 713, - /* 2500 */ 2205, 2206, 708, 1791, 703, 1791, 1791, 1791, 2201, 2202, - /* 2510 */ 2237, 1791, 1791, 349, 2203, 713, 2205, 2206, 708, 710, - /* 2520 */ 703, 1791, 2202, 1791, 1791, 1791, 1791, 1791, 1791, 2201, - /* 2530 */ 1791, 2237, 710, 2202, 2214, 2203, 713, 2205, 2206, 708, - /* 2540 */ 1791, 703, 1791, 710, 1791, 1791, 2202, 2220, 1791, 1791, - /* 2550 */ 1791, 1791, 1791, 1791, 1791, 1791, 710, 1791, 1791, 2170, - /* 2560 */ 2220, 709, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, - /* 2570 */ 1791, 2220, 2170, 1791, 709, 1791, 1791, 1791, 1791, 1791, - /* 2580 */ 1791, 1791, 1791, 2170, 2220, 709, 1791, 1791, 1791, 1791, - /* 2590 */ 1791, 1791, 1791, 1791, 1791, 2201, 2170, 2237, 709, 1791, - /* 2600 */ 2213, 2203, 713, 2205, 2206, 708, 1791, 703, 2201, 1791, - /* 2610 */ 2237, 1791, 1791, 2212, 2203, 713, 2205, 2206, 708, 2201, - /* 2620 */ 703, 2237, 1791, 2202, 364, 2203, 713, 2205, 2206, 708, - /* 2630 */ 1791, 703, 2201, 710, 2237, 1791, 2202, 365, 2203, 713, - /* 2640 */ 2205, 2206, 708, 1791, 703, 1791, 710, 2202, 1791, 1791, - /* 2650 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 710, 1791, 1791, - /* 2660 */ 1791, 2220, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, - /* 2670 */ 1791, 1791, 1791, 2170, 2220, 709, 1791, 1791, 1791, 1791, - /* 2680 */ 1791, 1791, 1791, 1791, 1791, 2220, 2170, 1791, 709, 1791, - /* 2690 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 2170, 2202, 709, - /* 2700 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 710, 2201, - /* 2710 */ 1791, 2237, 1791, 1791, 361, 2203, 713, 2205, 2206, 708, - /* 2720 */ 1791, 703, 2201, 1791, 2237, 1791, 1791, 366, 2203, 713, - /* 2730 */ 2205, 2206, 708, 711, 703, 2237, 2220, 1791, 340, 2203, - /* 2740 */ 713, 2205, 2206, 708, 1791, 703, 1791, 1791, 2170, 1791, - /* 2750 */ 709, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, - /* 2760 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, - /* 2770 */ 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, 1791, - /* 2780 */ 1791, 1791, 1791, 1791, 2201, 1791, 2237, 1791, 1791, 339, - /* 2790 */ 2203, 713, 2205, 2206, 708, 1791, 703, + /* 0 */ 38, 311, 2227, 410, 541, 699, 1994, 542, 1853, 2041, + /* 10 */ 2042, 164, 48, 46, 1733, 716, 416, 415, 389, 1996, + /* 20 */ 407, 1811, 1578, 41, 40, 133, 2045, 47, 45, 44, + /* 30 */ 43, 42, 583, 579, 578, 1659, 1893, 1576, 1603, 678, + /* 40 */ 142, 1585, 123, 2245, 2078, 122, 121, 120, 119, 118, + /* 50 */ 117, 116, 115, 114, 107, 2195, 9, 715, 699, 1994, + /* 60 */ 666, 41, 40, 2391, 1654, 47, 45, 44, 43, 42, + /* 70 */ 19, 143, 2116, 1606, 2116, 678, 142, 1584, 194, 1986, + /* 80 */ 665, 189, 678, 142, 400, 2392, 667, 2113, 686, 2114, + /* 90 */ 686, 2226, 170, 2262, 1822, 185, 172, 2228, 719, 2230, + /* 100 */ 2231, 714, 807, 709, 706, 15, 459, 2034, 782, 781, + /* 110 */ 780, 779, 419, 504, 778, 777, 146, 772, 771, 770, + /* 120 */ 769, 768, 767, 766, 158, 762, 761, 760, 418, 417, + /* 130 */ 757, 756, 755, 177, 176, 1604, 1833, 1603, 1808, 1394, + /* 140 */ 546, 1661, 1662, 188, 2323, 2324, 543, 140, 2328, 668, + /* 150 */ 2412, 355, 2181, 1385, 744, 743, 742, 1389, 741, 1391, + /* 160 */ 1392, 740, 737, 698, 1400, 734, 1402, 1403, 731, 728, + /* 170 */ 725, 1634, 1644, 213, 212, 699, 1994, 1660, 1663, 190, + /* 180 */ 2323, 2324, 560, 140, 2328, 1970, 290, 2323, 677, 2195, + /* 190 */ 134, 676, 1579, 2391, 1577, 56, 503, 2396, 1588, 1803, + /* 200 */ 2391, 41, 40, 429, 482, 47, 45, 44, 43, 42, + /* 210 */ 665, 189, 1604, 481, 422, 2392, 667, 549, 2395, 421, + /* 220 */ 542, 1853, 2392, 2394, 1582, 1583, 270, 1633, 1636, 1637, + /* 230 */ 1638, 1639, 1640, 1641, 1642, 1643, 711, 707, 1652, 1653, + /* 240 */ 1655, 1656, 1657, 1658, 2, 48, 46, 698, 640, 1261, + /* 250 */ 359, 1260, 1601, 407, 754, 1578, 1504, 1505, 1680, 495, + /* 260 */ 2227, 641, 511, 367, 2391, 1236, 138, 510, 1659, 556, + /* 270 */ 1576, 41, 40, 716, 1722, 47, 45, 44, 43, 42, + /* 280 */ 1603, 2397, 189, 478, 1262, 512, 2392, 667, 1487, 1488, + /* 290 */ 480, 1761, 1503, 1506, 698, 2396, 30, 1654, 2391, 557, + /* 300 */ 62, 2245, 1802, 19, 1264, 1265, 1688, 1238, 1241, 1242, + /* 310 */ 1584, 678, 142, 2195, 412, 715, 2395, 2040, 2042, 123, + /* 320 */ 2392, 2393, 122, 121, 120, 119, 118, 117, 116, 115, + /* 330 */ 114, 656, 51, 1429, 1430, 807, 376, 101, 15, 653, + /* 340 */ 652, 1759, 1760, 1762, 1763, 1764, 2205, 466, 2160, 2226, + /* 350 */ 1832, 2262, 558, 2109, 110, 2228, 719, 2230, 2231, 714, + /* 360 */ 2213, 709, 1987, 1689, 145, 62, 151, 2286, 2315, 1773, + /* 370 */ 2209, 60, 403, 2311, 1661, 1662, 52, 508, 638, 51, + /* 380 */ 502, 501, 500, 499, 494, 493, 492, 491, 490, 486, + /* 390 */ 485, 484, 483, 358, 475, 474, 473, 258, 468, 467, + /* 400 */ 374, 699, 1994, 2195, 1634, 1644, 1810, 1880, 2211, 404, + /* 410 */ 1660, 1663, 661, 66, 680, 187, 2323, 2324, 709, 140, + /* 420 */ 2328, 133, 662, 657, 650, 1579, 660, 1577, 588, 602, + /* 430 */ 132, 131, 130, 129, 128, 127, 126, 125, 124, 699, + /* 440 */ 1994, 37, 405, 1683, 1684, 1685, 1686, 1687, 1691, 1692, + /* 450 */ 1693, 1694, 581, 580, 2245, 441, 294, 1582, 1583, 457, + /* 460 */ 1633, 1636, 1637, 1638, 1639, 1640, 1641, 1642, 1643, 711, + /* 470 */ 707, 1652, 1653, 1655, 1656, 1657, 1658, 2, 12, 48, + /* 480 */ 46, 2330, 443, 439, 1261, 2227, 1260, 407, 294, 1578, + /* 490 */ 752, 156, 155, 749, 748, 747, 153, 222, 681, 62, + /* 500 */ 538, 544, 1659, 1860, 1576, 2227, 2205, 2327, 536, 659, + /* 510 */ 606, 532, 528, 626, 62, 601, 600, 599, 716, 1262, + /* 520 */ 1985, 294, 591, 139, 595, 618, 2245, 754, 594, 182, + /* 530 */ 2209, 1654, 294, 593, 598, 383, 382, 19, 2195, 592, + /* 540 */ 715, 254, 464, 2095, 1584, 401, 2245, 2047, 617, 375, + /* 550 */ 2099, 256, 182, 167, 373, 255, 144, 609, 2195, 2286, + /* 560 */ 715, 1996, 2045, 615, 603, 613, 253, 252, 2211, 807, + /* 570 */ 251, 1338, 15, 2100, 2226, 12, 2262, 2227, 709, 110, + /* 580 */ 2228, 719, 2230, 2231, 714, 451, 709, 450, 90, 203, + /* 590 */ 716, 186, 1862, 2315, 2226, 1831, 2262, 403, 2311, 171, + /* 600 */ 2228, 719, 2230, 2231, 714, 377, 709, 169, 1661, 1662, + /* 610 */ 70, 1340, 191, 69, 1989, 1935, 93, 449, 2245, 362, + /* 620 */ 2345, 1584, 387, 2396, 619, 1737, 666, 597, 596, 2391, + /* 630 */ 2195, 1603, 715, 47, 45, 44, 43, 42, 1634, 1644, + /* 640 */ 1605, 642, 2356, 745, 1660, 1663, 665, 189, 2195, 410, + /* 650 */ 224, 2392, 667, 589, 544, 294, 1860, 167, 2178, 1579, + /* 660 */ 1896, 1577, 699, 1994, 1578, 1996, 2226, 2330, 2262, 1349, + /* 670 */ 294, 110, 2228, 719, 2230, 2231, 714, 1336, 709, 1576, + /* 680 */ 470, 2095, 458, 2411, 1348, 2315, 44, 43, 42, 403, + /* 690 */ 2311, 1582, 1583, 2326, 1633, 1636, 1637, 1638, 1639, 1640, + /* 700 */ 1641, 1642, 1643, 711, 707, 1652, 1653, 1655, 1656, 1657, + /* 710 */ 1658, 2, 48, 46, 1664, 1863, 1830, 2227, 453, 1584, + /* 720 */ 407, 2047, 1578, 452, 302, 303, 1796, 206, 2188, 301, + /* 730 */ 681, 2047, 601, 600, 599, 1659, 685, 1576, 388, 591, + /* 740 */ 139, 595, 699, 1994, 807, 594, 2045, 2205, 2047, 513, + /* 750 */ 593, 598, 383, 382, 699, 1994, 592, 12, 2245, 10, + /* 760 */ 2189, 2214, 472, 694, 1654, 641, 2047, 800, 2391, 2195, + /* 770 */ 2195, 2209, 715, 397, 487, 641, 1871, 1584, 2391, 699, + /* 780 */ 1994, 2045, 1635, 699, 1994, 2397, 189, 764, 497, 2095, + /* 790 */ 2392, 667, 257, 292, 746, 2397, 189, 2038, 604, 488, + /* 800 */ 2392, 667, 807, 559, 2227, 49, 2226, 641, 2262, 2211, + /* 810 */ 2391, 110, 2228, 719, 2230, 2231, 714, 716, 709, 709, + /* 820 */ 699, 1994, 317, 186, 2047, 2315, 1605, 2397, 189, 403, + /* 830 */ 2311, 402, 2392, 667, 1579, 211, 1577, 1971, 1983, 2045, + /* 840 */ 1991, 1661, 1662, 41, 40, 2245, 1353, 47, 45, 44, + /* 850 */ 43, 42, 2346, 699, 1994, 699, 1994, 2195, 1829, 715, + /* 860 */ 168, 1352, 1549, 1550, 1669, 333, 1582, 1583, 699, 1994, + /* 870 */ 1603, 1634, 1644, 259, 2047, 267, 436, 1660, 1663, 1969, + /* 880 */ 2330, 411, 330, 73, 699, 1994, 72, 1979, 684, 2045, + /* 890 */ 14, 13, 1579, 2226, 1577, 2262, 356, 90, 111, 2228, + /* 900 */ 719, 2230, 2231, 714, 306, 709, 2325, 220, 523, 521, + /* 910 */ 518, 2195, 2315, 1828, 41, 40, 2314, 2311, 47, 45, + /* 920 */ 44, 43, 42, 1990, 1582, 1583, 515, 1633, 1636, 1637, + /* 930 */ 1638, 1639, 1640, 1641, 1642, 1643, 711, 707, 1652, 1653, + /* 940 */ 1655, 1656, 1657, 1658, 2, 48, 46, 62, 1603, 699, + /* 950 */ 1994, 1827, 1826, 407, 1690, 1578, 41, 40, 699, 1994, + /* 960 */ 47, 45, 44, 43, 42, 1606, 2195, 239, 1659, 696, + /* 970 */ 1576, 752, 156, 155, 749, 748, 747, 153, 697, 292, + /* 980 */ 699, 1994, 413, 174, 1825, 109, 699, 1994, 2227, 1606, + /* 990 */ 167, 577, 573, 569, 565, 1702, 238, 1654, 1996, 624, + /* 1000 */ 312, 716, 1730, 2353, 2195, 2195, 414, 208, 166, 701, + /* 1010 */ 1584, 2287, 1772, 752, 156, 155, 749, 748, 747, 153, + /* 1020 */ 1824, 1635, 703, 1821, 2287, 1820, 81, 80, 456, 2245, + /* 1030 */ 2359, 201, 35, 776, 774, 807, 91, 2195, 49, 236, + /* 1040 */ 2227, 2195, 1695, 715, 448, 446, 641, 86, 587, 2391, + /* 1050 */ 85, 167, 586, 716, 1749, 357, 2395, 765, 437, 1997, + /* 1060 */ 1956, 435, 431, 427, 424, 449, 2397, 189, 1838, 802, + /* 1070 */ 2088, 2392, 667, 2195, 1661, 1662, 2195, 2226, 2195, 2262, + /* 1080 */ 3, 2245, 110, 2228, 719, 2230, 2231, 714, 670, 709, + /* 1090 */ 1819, 1818, 54, 2195, 2411, 715, 2315, 1817, 1816, 1635, + /* 1100 */ 403, 2311, 2047, 294, 1634, 1644, 235, 228, 1587, 34, + /* 1110 */ 1660, 1663, 462, 233, 554, 41, 40, 2046, 204, 47, + /* 1120 */ 45, 44, 43, 42, 106, 1579, 154, 1577, 1815, 2226, + /* 1130 */ 1814, 2262, 226, 103, 110, 2228, 719, 2230, 2231, 714, + /* 1140 */ 682, 709, 269, 2195, 2195, 1813, 2290, 1972, 2315, 154, + /* 1150 */ 2195, 2195, 403, 2311, 381, 380, 750, 1582, 1583, 2038, + /* 1160 */ 1633, 1636, 1637, 1638, 1639, 1640, 1641, 1642, 1643, 711, + /* 1170 */ 707, 1652, 1653, 1655, 1656, 1657, 1658, 2, 48, 46, + /* 1180 */ 147, 2195, 751, 2195, 673, 2038, 407, 641, 1578, 326, + /* 1190 */ 2391, 1244, 2024, 1241, 1242, 2335, 1722, 1602, 2195, 55, + /* 1200 */ 74, 1659, 135, 1576, 2227, 268, 244, 2397, 189, 242, + /* 1210 */ 1869, 590, 2392, 667, 83, 154, 50, 716, 246, 2366, + /* 1220 */ 248, 245, 1544, 247, 379, 378, 250, 585, 1981, 249, + /* 1230 */ 1654, 1977, 607, 41, 40, 1334, 50, 47, 45, 44, + /* 1240 */ 43, 42, 621, 1584, 620, 2245, 758, 274, 94, 587, + /* 1250 */ 84, 2227, 154, 586, 1805, 1806, 50, 2195, 1998, 715, + /* 1260 */ 263, 1729, 2216, 299, 716, 1590, 648, 710, 807, 36, + /* 1270 */ 1314, 15, 1586, 759, 266, 41, 40, 1936, 2227, 47, + /* 1280 */ 45, 44, 43, 42, 14, 13, 1295, 287, 1547, 1758, + /* 1290 */ 1823, 713, 2245, 2226, 654, 2262, 137, 1312, 110, 2228, + /* 1300 */ 719, 2230, 2231, 714, 2195, 709, 715, 1661, 1662, 1757, + /* 1310 */ 2411, 281, 2315, 1934, 71, 152, 403, 2311, 2218, 2245, + /* 1320 */ 276, 1933, 2246, 420, 390, 683, 1296, 2104, 1854, 1501, + /* 1330 */ 2349, 2195, 1859, 715, 2035, 669, 304, 1634, 1644, 671, + /* 1340 */ 2226, 154, 2262, 1660, 1663, 110, 2228, 719, 2230, 2231, + /* 1350 */ 714, 64, 709, 679, 50, 289, 286, 2411, 1579, 2315, + /* 1360 */ 1577, 416, 415, 403, 2311, 50, 293, 2226, 5, 2262, + /* 1370 */ 2227, 1592, 348, 2228, 719, 2230, 2231, 714, 712, 709, + /* 1380 */ 700, 2280, 423, 716, 1659, 2384, 1585, 691, 308, 428, + /* 1390 */ 1582, 1583, 371, 1633, 1636, 1637, 1638, 1639, 1640, 1641, + /* 1400 */ 1642, 1643, 711, 707, 1652, 1653, 1655, 1656, 1657, 1658, + /* 1410 */ 2, 2245, 723, 1654, 1379, 152, 1609, 154, 136, 2227, + /* 1420 */ 152, 445, 444, 2195, 1696, 715, 1584, 1645, 196, 1589, + /* 1430 */ 197, 447, 716, 199, 2334, 1525, 320, 674, 325, 2227, + /* 1440 */ 1602, 465, 463, 210, 1606, 2105, 469, 471, 506, 476, + /* 1450 */ 1601, 705, 716, 496, 489, 2097, 516, 498, 505, 2226, + /* 1460 */ 2245, 2262, 507, 517, 110, 2228, 719, 2230, 2231, 714, + /* 1470 */ 514, 709, 2195, 214, 715, 215, 2411, 519, 2315, 217, + /* 1480 */ 2245, 522, 403, 2311, 524, 1407, 1607, 520, 1411, 4, + /* 1490 */ 1418, 1416, 2195, 157, 715, 540, 539, 547, 550, 225, + /* 1500 */ 1604, 551, 548, 227, 1608, 1610, 553, 1611, 2226, 552, + /* 1510 */ 2262, 555, 582, 110, 2228, 719, 2230, 2231, 714, 230, + /* 1520 */ 709, 232, 88, 2110, 89, 2411, 561, 2315, 2226, 237, + /* 1530 */ 2262, 403, 2311, 110, 2228, 719, 2230, 2231, 714, 610, + /* 1540 */ 709, 1593, 112, 1588, 352, 2288, 584, 2315, 611, 2169, + /* 1550 */ 623, 403, 2311, 625, 1984, 2166, 241, 1980, 243, 160, + /* 1560 */ 161, 92, 1982, 2227, 1978, 162, 148, 260, 163, 629, + /* 1570 */ 321, 628, 1532, 1596, 1598, 2165, 716, 636, 264, 2365, + /* 1580 */ 635, 630, 655, 633, 689, 262, 707, 1652, 1653, 1655, + /* 1590 */ 1656, 1657, 1658, 645, 2350, 2227, 2360, 651, 8, 2364, + /* 1600 */ 272, 664, 275, 393, 2245, 658, 175, 2337, 716, 634, + /* 1610 */ 280, 646, 643, 282, 644, 2227, 2195, 283, 715, 394, + /* 1620 */ 2414, 285, 675, 2390, 672, 1722, 141, 1605, 716, 1725, + /* 1630 */ 2331, 1727, 179, 295, 687, 149, 2245, 1, 284, 322, + /* 1640 */ 688, 150, 2227, 2124, 2123, 323, 2122, 399, 2195, 692, + /* 1650 */ 715, 100, 2226, 693, 2262, 716, 2245, 110, 2228, 719, + /* 1660 */ 2230, 2231, 714, 1995, 709, 324, 192, 61, 2195, 702, + /* 1670 */ 715, 2315, 2296, 102, 721, 403, 2311, 1957, 288, 327, + /* 1680 */ 2039, 1220, 315, 2245, 2226, 804, 2262, 801, 53, 111, + /* 1690 */ 2228, 719, 2230, 2231, 714, 2195, 709, 715, 329, 159, + /* 1700 */ 806, 351, 363, 2315, 717, 2227, 2262, 704, 2311, 111, + /* 1710 */ 2228, 719, 2230, 2231, 714, 2187, 709, 364, 716, 78, + /* 1720 */ 336, 2227, 350, 2315, 340, 2186, 2185, 366, 2311, 331, + /* 1730 */ 2182, 2226, 425, 2262, 716, 426, 111, 2228, 719, 2230, + /* 1740 */ 2231, 714, 1569, 709, 1570, 195, 2245, 430, 2180, 432, + /* 1750 */ 2315, 433, 2227, 434, 2179, 2312, 372, 2177, 2195, 438, + /* 1760 */ 715, 2176, 2245, 440, 2175, 716, 442, 391, 1560, 2156, + /* 1770 */ 2227, 198, 2155, 200, 2195, 79, 715, 1528, 1527, 2137, + /* 1780 */ 2136, 2135, 454, 716, 455, 2134, 2133, 1478, 2087, 460, + /* 1790 */ 461, 2084, 202, 2245, 2226, 2083, 2262, 2082, 392, 171, + /* 1800 */ 2228, 719, 2230, 2231, 714, 2195, 709, 715, 82, 2081, + /* 1810 */ 2226, 2245, 2262, 2086, 205, 349, 2228, 719, 2230, 2231, + /* 1820 */ 714, 2085, 709, 2195, 2080, 715, 2079, 2077, 2076, 2075, + /* 1830 */ 207, 477, 2074, 479, 2090, 2073, 2072, 2071, 2070, 2069, + /* 1840 */ 2068, 2226, 2357, 2262, 2067, 2066, 349, 2228, 719, 2230, + /* 1850 */ 2231, 714, 2065, 709, 2064, 2063, 2062, 2227, 360, 2226, + /* 1860 */ 2061, 2262, 2060, 2059, 342, 2228, 719, 2230, 2231, 714, + /* 1870 */ 716, 709, 2227, 2058, 209, 87, 2057, 2056, 2055, 2089, + /* 1880 */ 2054, 2053, 2052, 1480, 2051, 716, 2050, 2227, 509, 2049, + /* 1890 */ 2048, 1350, 1354, 361, 1899, 216, 1346, 1898, 2245, 1897, + /* 1900 */ 713, 1895, 1892, 525, 526, 218, 527, 1891, 529, 663, + /* 1910 */ 2195, 219, 715, 2245, 531, 1884, 530, 535, 398, 534, + /* 1920 */ 533, 1873, 537, 1849, 183, 2195, 1243, 715, 2245, 231, + /* 1930 */ 76, 1848, 221, 2154, 2227, 2144, 223, 2132, 2131, 2108, + /* 1940 */ 2195, 2215, 715, 1973, 184, 545, 2226, 716, 2262, 234, + /* 1950 */ 77, 172, 2228, 719, 2230, 2231, 714, 1894, 709, 2227, + /* 1960 */ 229, 2226, 562, 2262, 1890, 563, 349, 2228, 719, 2230, + /* 1970 */ 2231, 714, 716, 709, 1288, 2245, 2226, 1888, 2262, 566, + /* 1980 */ 406, 348, 2228, 719, 2230, 2231, 714, 2195, 709, 715, + /* 1990 */ 2281, 564, 567, 568, 1886, 570, 2227, 571, 572, 1883, + /* 2000 */ 2245, 575, 574, 576, 1868, 2413, 1866, 1867, 1865, 716, + /* 2010 */ 1845, 1975, 2195, 1423, 715, 1422, 240, 63, 1974, 1337, + /* 2020 */ 1335, 1333, 1332, 2226, 1331, 2262, 1330, 1329, 349, 2228, + /* 2030 */ 719, 2230, 2231, 714, 773, 709, 775, 2245, 1324, 1326, + /* 2040 */ 1881, 384, 408, 1872, 385, 605, 1325, 1870, 622, 2195, + /* 2050 */ 2262, 715, 1323, 344, 2228, 719, 2230, 2231, 714, 386, + /* 2060 */ 709, 608, 2227, 1844, 1843, 1842, 612, 1841, 614, 1840, + /* 2070 */ 616, 113, 1554, 1556, 1558, 716, 1553, 29, 2153, 57, + /* 2080 */ 67, 1534, 1536, 2227, 631, 2226, 2143, 2262, 265, 627, + /* 2090 */ 349, 2228, 719, 2230, 2231, 714, 716, 709, 2130, 632, + /* 2100 */ 2129, 1513, 2396, 2245, 20, 1512, 165, 810, 1538, 637, + /* 2110 */ 31, 6, 17, 639, 2227, 2195, 647, 715, 1775, 271, + /* 2120 */ 7, 649, 21, 319, 2245, 22, 173, 716, 278, 273, + /* 2130 */ 279, 1756, 277, 32, 2216, 95, 2195, 33, 715, 181, + /* 2140 */ 1748, 65, 24, 1790, 1795, 1789, 291, 798, 794, 790, + /* 2150 */ 786, 2226, 316, 2262, 395, 2245, 334, 2228, 719, 2230, + /* 2160 */ 2231, 714, 1796, 709, 23, 1794, 1793, 2195, 396, 715, + /* 2170 */ 59, 178, 2226, 2128, 2262, 58, 2107, 332, 2228, 719, + /* 2180 */ 2230, 2231, 714, 18, 709, 2227, 1719, 97, 1718, 298, + /* 2190 */ 2106, 307, 108, 1754, 98, 309, 96, 310, 716, 25, + /* 2200 */ 26, 2227, 690, 2226, 103, 2262, 300, 305, 335, 2228, + /* 2210 */ 719, 2230, 2231, 714, 716, 709, 68, 99, 1671, 11, + /* 2220 */ 13, 1670, 1594, 180, 1681, 2265, 2245, 695, 193, 1649, + /* 2230 */ 708, 1626, 1647, 1646, 720, 39, 722, 16, 2195, 27, + /* 2240 */ 715, 1618, 2245, 409, 28, 726, 1408, 724, 1413, 1405, + /* 2250 */ 1404, 727, 729, 2227, 2195, 730, 715, 1401, 732, 718, + /* 2260 */ 733, 735, 297, 1395, 736, 738, 716, 1393, 739, 296, + /* 2270 */ 313, 104, 2227, 1399, 2226, 105, 2262, 1417, 1286, 341, + /* 2280 */ 2228, 719, 2230, 2231, 714, 716, 709, 75, 261, 753, + /* 2290 */ 2226, 1398, 2262, 1318, 2245, 345, 2228, 719, 2230, 2231, + /* 2300 */ 714, 1397, 709, 1396, 1317, 2227, 2195, 1316, 715, 1315, + /* 2310 */ 1344, 1313, 1311, 2245, 1310, 1309, 763, 314, 716, 1307, + /* 2320 */ 1306, 1304, 1305, 1303, 2227, 2195, 1302, 715, 1341, 1301, + /* 2330 */ 1339, 1298, 1297, 1294, 1293, 1292, 1889, 716, 1291, 783, + /* 2340 */ 2227, 784, 2226, 1887, 2262, 785, 2245, 337, 2228, 719, + /* 2350 */ 2230, 2231, 714, 716, 709, 787, 788, 789, 2195, 1885, + /* 2360 */ 715, 2226, 791, 2262, 793, 2245, 346, 2228, 719, 2230, + /* 2370 */ 2231, 714, 792, 709, 1882, 2227, 795, 2195, 796, 715, + /* 2380 */ 1864, 2245, 797, 799, 1233, 1839, 1221, 803, 716, 318, + /* 2390 */ 805, 808, 2227, 2195, 2226, 715, 2262, 1580, 328, 338, + /* 2400 */ 2228, 719, 2230, 2231, 714, 716, 709, 809, 1809, 1809, + /* 2410 */ 1809, 1809, 1809, 2226, 1809, 2262, 2245, 1809, 347, 2228, + /* 2420 */ 719, 2230, 2231, 714, 1809, 709, 1809, 2227, 2195, 2226, + /* 2430 */ 715, 2262, 1809, 2245, 339, 2228, 719, 2230, 2231, 714, + /* 2440 */ 716, 709, 1809, 1809, 1809, 2195, 1809, 715, 1809, 1809, + /* 2450 */ 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, + /* 2460 */ 1809, 1809, 1809, 1809, 2226, 1809, 2262, 1809, 2245, 353, + /* 2470 */ 2228, 719, 2230, 2231, 714, 1809, 709, 1809, 1809, 1809, + /* 2480 */ 2195, 2226, 715, 2262, 1809, 1809, 354, 2228, 719, 2230, + /* 2490 */ 2231, 714, 2227, 709, 1809, 1809, 1809, 1809, 1809, 1809, + /* 2500 */ 1809, 1809, 1809, 1809, 1809, 716, 1809, 2227, 1809, 1809, + /* 2510 */ 1809, 1809, 1809, 1809, 1809, 1809, 2226, 1809, 2262, 1809, + /* 2520 */ 716, 2239, 2228, 719, 2230, 2231, 714, 1809, 709, 2227, + /* 2530 */ 1809, 1809, 1809, 2245, 1809, 1809, 1809, 1809, 1809, 1809, + /* 2540 */ 1809, 1809, 716, 1809, 1809, 2195, 1809, 715, 2245, 1809, + /* 2550 */ 1809, 1809, 1809, 1809, 2227, 1809, 1809, 1809, 1809, 1809, + /* 2560 */ 2195, 1809, 715, 1809, 1809, 1809, 1809, 716, 1809, 1809, + /* 2570 */ 2245, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, + /* 2580 */ 1809, 2226, 2195, 2262, 715, 1809, 2238, 2228, 719, 2230, + /* 2590 */ 2231, 714, 1809, 709, 1809, 2245, 2226, 1809, 2262, 1809, + /* 2600 */ 1809, 2237, 2228, 719, 2230, 2231, 714, 2195, 709, 715, + /* 2610 */ 1809, 1809, 1809, 1809, 1809, 1809, 2227, 1809, 2226, 1809, + /* 2620 */ 2262, 1809, 1809, 368, 2228, 719, 2230, 2231, 714, 716, + /* 2630 */ 709, 1809, 1809, 1809, 2227, 1809, 1809, 1809, 1809, 1809, + /* 2640 */ 1809, 1809, 1809, 2226, 1809, 2262, 1809, 716, 369, 2228, + /* 2650 */ 719, 2230, 2231, 714, 1809, 709, 1809, 2245, 1809, 1809, + /* 2660 */ 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 2195, + /* 2670 */ 1809, 715, 1809, 1809, 1809, 2245, 1809, 1809, 1809, 1809, + /* 2680 */ 1809, 2227, 1809, 1809, 1809, 1809, 1809, 2195, 1809, 715, + /* 2690 */ 1809, 1809, 1809, 1809, 716, 1809, 2227, 1809, 1809, 1809, + /* 2700 */ 1809, 1809, 1809, 1809, 1809, 2226, 1809, 2262, 1809, 716, + /* 2710 */ 365, 2228, 719, 2230, 2231, 714, 1809, 709, 1809, 1809, + /* 2720 */ 1809, 1809, 2245, 2226, 1809, 2262, 1809, 1809, 370, 2228, + /* 2730 */ 719, 2230, 2231, 714, 2195, 709, 715, 2245, 1809, 1809, + /* 2740 */ 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 2195, + /* 2750 */ 1809, 715, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, + /* 2760 */ 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, 1809, + /* 2770 */ 717, 1809, 2262, 1809, 1809, 344, 2228, 719, 2230, 2231, + /* 2780 */ 714, 1809, 709, 1809, 1809, 2226, 1809, 2262, 1809, 1809, + /* 2790 */ 343, 2228, 719, 2230, 2231, 714, 1809, 709, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 351, 342, 368, 394, 346, 351, 352, 349, 350, 1, - /* 10 */ 2, 352, 12, 13, 14, 406, 382, 381, 409, 410, - /* 20 */ 20, 20, 22, 8, 9, 371, 392, 12, 13, 14, - /* 30 */ 15, 16, 378, 33, 347, 35, 351, 352, 351, 380, - /* 40 */ 353, 412, 8, 9, 20, 396, 12, 13, 14, 15, - /* 50 */ 16, 392, 3, 394, 381, 14, 371, 368, 368, 351, - /* 60 */ 352, 20, 62, 378, 430, 431, 448, 449, 68, 20, - /* 70 */ 394, 382, 382, 358, 440, 75, 346, 351, 352, 349, - /* 80 */ 350, 392, 392, 68, 380, 409, 410, 428, 459, 430, - /* 90 */ 375, 462, 433, 434, 435, 436, 437, 438, 383, 440, - /* 100 */ 100, 380, 35, 103, 445, 401, 447, 372, 479, 480, - /* 110 */ 451, 452, 104, 484, 485, 380, 12, 13, 20, 430, - /* 120 */ 430, 400, 401, 388, 20, 466, 22, 112, 100, 440, - /* 130 */ 440, 390, 347, 474, 393, 394, 351, 33, 353, 35, - /* 140 */ 140, 141, 75, 115, 116, 117, 118, 119, 120, 121, - /* 150 */ 122, 123, 124, 104, 126, 127, 128, 129, 130, 131, - /* 160 */ 132, 361, 454, 455, 456, 457, 62, 459, 460, 369, - /* 170 */ 170, 171, 68, 20, 351, 352, 176, 177, 341, 75, - /* 180 */ 343, 455, 456, 457, 169, 459, 460, 20, 462, 351, - /* 190 */ 352, 191, 21, 193, 371, 24, 25, 26, 27, 28, - /* 200 */ 29, 30, 31, 32, 100, 479, 480, 103, 342, 371, - /* 210 */ 484, 485, 12, 13, 14, 15, 16, 183, 352, 393, - /* 220 */ 394, 172, 20, 223, 224, 0, 226, 227, 228, 229, + /* 0 */ 452, 453, 343, 376, 350, 355, 356, 353, 354, 397, + /* 10 */ 398, 384, 12, 13, 14, 356, 12, 13, 391, 392, + /* 20 */ 20, 0, 22, 8, 9, 375, 399, 12, 13, 14, + /* 30 */ 15, 16, 382, 360, 361, 35, 0, 37, 20, 355, + /* 40 */ 356, 37, 21, 384, 0, 24, 25, 26, 27, 28, + /* 50 */ 29, 30, 31, 32, 362, 396, 42, 398, 355, 356, + /* 60 */ 463, 8, 9, 466, 64, 12, 13, 14, 15, 16, + /* 70 */ 70, 379, 398, 20, 398, 355, 356, 77, 375, 387, + /* 80 */ 483, 484, 355, 356, 410, 488, 489, 413, 414, 413, + /* 90 */ 414, 432, 342, 434, 344, 383, 437, 438, 439, 440, + /* 100 */ 441, 442, 102, 444, 70, 105, 355, 395, 72, 73, + /* 110 */ 74, 75, 76, 86, 78, 79, 80, 81, 82, 83, + /* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, + /* 130 */ 94, 95, 96, 97, 98, 20, 343, 20, 340, 102, + /* 140 */ 14, 141, 142, 459, 460, 461, 20, 463, 464, 490, + /* 150 */ 491, 400, 0, 116, 117, 118, 119, 120, 121, 122, + /* 160 */ 123, 124, 125, 20, 127, 128, 129, 130, 131, 132, + /* 170 */ 133, 171, 172, 146, 147, 355, 356, 177, 178, 459, + /* 180 */ 460, 461, 69, 463, 464, 0, 459, 460, 461, 396, + /* 190 */ 463, 464, 192, 466, 194, 375, 169, 463, 194, 184, + /* 200 */ 466, 8, 9, 51, 160, 12, 13, 14, 15, 16, + /* 210 */ 483, 484, 20, 169, 416, 488, 489, 350, 484, 421, + /* 220 */ 353, 354, 488, 489, 224, 225, 173, 227, 228, 229, /* 230 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, - /* 240 */ 240, 241, 242, 243, 140, 141, 380, 379, 358, 24, - /* 250 */ 25, 26, 27, 28, 29, 30, 31, 32, 392, 391, - /* 260 */ 394, 0, 247, 248, 249, 250, 251, 252, 253, 254, - /* 270 */ 255, 256, 257, 383, 170, 171, 169, 67, 351, 352, - /* 280 */ 176, 177, 21, 54, 55, 24, 25, 26, 27, 28, - /* 290 */ 29, 30, 31, 32, 428, 191, 430, 193, 371, 433, - /* 300 */ 434, 435, 436, 437, 438, 103, 440, 140, 141, 443, - /* 310 */ 14, 445, 446, 447, 380, 342, 20, 451, 452, 339, - /* 320 */ 286, 387, 135, 170, 171, 352, 139, 223, 224, 395, - /* 330 */ 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, - /* 340 */ 236, 237, 238, 239, 240, 241, 242, 243, 244, 12, - /* 350 */ 13, 12, 13, 380, 247, 351, 352, 20, 20, 22, - /* 360 */ 22, 4, 20, 372, 257, 392, 20, 394, 351, 352, - /* 370 */ 33, 380, 35, 35, 35, 4, 8, 9, 387, 388, - /* 380 */ 12, 13, 14, 15, 16, 133, 395, 200, 20, 137, - /* 390 */ 203, 53, 412, 206, 342, 208, 20, 417, 20, 62, - /* 400 */ 22, 428, 398, 430, 352, 68, 433, 434, 435, 436, - /* 410 */ 437, 438, 75, 440, 43, 398, 45, 46, 445, 223, - /* 420 */ 447, 67, 8, 9, 451, 452, 12, 13, 14, 15, - /* 430 */ 16, 53, 380, 20, 351, 352, 244, 100, 246, 459, - /* 440 */ 103, 380, 462, 84, 392, 103, 394, 474, 387, 4, - /* 450 */ 244, 342, 412, 12, 13, 14, 395, 417, 44, 479, - /* 460 */ 480, 20, 37, 22, 484, 485, 170, 271, 272, 273, - /* 470 */ 274, 275, 276, 277, 33, 134, 35, 140, 141, 103, - /* 480 */ 428, 398, 430, 356, 357, 433, 434, 435, 436, 437, - /* 490 */ 438, 439, 440, 441, 442, 360, 21, 351, 352, 459, - /* 500 */ 342, 392, 462, 62, 145, 146, 48, 170, 171, 34, - /* 510 */ 352, 36, 377, 176, 177, 44, 75, 371, 104, 479, - /* 520 */ 480, 386, 380, 175, 484, 485, 114, 168, 191, 387, - /* 530 */ 193, 106, 193, 108, 109, 372, 111, 395, 380, 103, - /* 540 */ 172, 100, 22, 380, 103, 204, 205, 342, 103, 113, - /* 550 */ 392, 388, 394, 140, 141, 35, 412, 352, 133, 354, - /* 560 */ 223, 224, 137, 226, 227, 228, 229, 230, 231, 232, - /* 570 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, - /* 580 */ 243, 140, 141, 103, 443, 380, 428, 446, 430, 176, - /* 590 */ 177, 433, 434, 435, 436, 437, 438, 392, 440, 394, - /* 600 */ 376, 459, 260, 459, 462, 447, 462, 356, 357, 451, - /* 610 */ 452, 170, 171, 342, 266, 267, 268, 176, 177, 262, - /* 620 */ 100, 479, 480, 479, 480, 432, 484, 485, 484, 485, - /* 630 */ 172, 13, 191, 428, 193, 430, 260, 179, 433, 434, - /* 640 */ 435, 436, 437, 438, 342, 440, 351, 352, 2, 425, - /* 650 */ 445, 458, 447, 35, 8, 9, 451, 452, 12, 13, - /* 660 */ 14, 15, 16, 392, 223, 224, 371, 226, 227, 228, - /* 670 */ 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, - /* 680 */ 239, 240, 241, 242, 243, 12, 13, 351, 352, 342, - /* 690 */ 49, 22, 0, 20, 392, 22, 351, 352, 57, 352, - /* 700 */ 342, 60, 61, 14, 35, 260, 33, 371, 35, 20, - /* 710 */ 352, 20, 70, 71, 72, 114, 371, 351, 352, 77, - /* 720 */ 78, 79, 75, 351, 352, 83, 0, 380, 365, 366, - /* 730 */ 88, 89, 90, 91, 0, 62, 94, 371, 380, 392, - /* 740 */ 260, 394, 389, 371, 75, 392, 351, 352, 75, 418, - /* 750 */ 392, 372, 394, 380, 351, 352, 285, 8, 9, 380, - /* 760 */ 387, 12, 13, 14, 15, 16, 371, 388, 395, 100, - /* 770 */ 351, 352, 352, 100, 371, 428, 103, 430, 351, 352, - /* 780 */ 433, 434, 435, 436, 437, 438, 428, 440, 430, 12, - /* 790 */ 13, 433, 434, 435, 436, 437, 438, 20, 440, 22, - /* 800 */ 380, 8, 9, 103, 351, 12, 13, 14, 15, 16, - /* 810 */ 33, 22, 35, 140, 141, 133, 134, 135, 136, 137, - /* 820 */ 138, 139, 475, 476, 35, 133, 134, 135, 136, 137, - /* 830 */ 138, 139, 134, 135, 476, 365, 366, 139, 342, 62, - /* 840 */ 342, 351, 352, 170, 171, 351, 352, 75, 342, 176, - /* 850 */ 177, 0, 75, 104, 444, 435, 446, 404, 405, 170, - /* 860 */ 191, 371, 193, 172, 191, 371, 193, 133, 134, 135, - /* 870 */ 136, 137, 138, 139, 455, 456, 457, 100, 459, 460, - /* 880 */ 103, 342, 455, 456, 457, 159, 459, 460, 392, 100, - /* 890 */ 392, 352, 223, 224, 168, 381, 223, 224, 392, 226, - /* 900 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, - /* 910 */ 237, 238, 239, 240, 241, 242, 243, 140, 141, 380, - /* 920 */ 39, 70, 71, 72, 351, 352, 351, 352, 77, 78, - /* 930 */ 79, 392, 342, 394, 83, 4, 14, 15, 16, 88, - /* 940 */ 89, 90, 91, 14, 371, 94, 371, 170, 171, 20, - /* 950 */ 19, 8, 9, 176, 177, 12, 13, 14, 15, 16, - /* 960 */ 260, 351, 352, 459, 33, 172, 462, 428, 191, 430, - /* 970 */ 193, 186, 433, 434, 435, 436, 437, 438, 20, 440, - /* 980 */ 49, 371, 392, 479, 480, 3, 447, 56, 484, 485, - /* 990 */ 451, 452, 62, 62, 412, 432, 45, 46, 213, 214, - /* 1000 */ 223, 224, 0, 226, 227, 228, 229, 230, 231, 232, - /* 1010 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, - /* 1020 */ 243, 458, 18, 18, 20, 351, 352, 342, 23, 20, - /* 1030 */ 432, 27, 102, 102, 30, 105, 105, 33, 444, 360, - /* 1040 */ 446, 459, 37, 38, 462, 371, 41, 104, 258, 259, - /* 1050 */ 380, 342, 412, 49, 0, 51, 458, 52, 388, 0, - /* 1060 */ 56, 479, 480, 342, 342, 386, 484, 485, 63, 64, - /* 1070 */ 65, 66, 70, 71, 72, 73, 74, 392, 76, 77, - /* 1080 */ 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, - /* 1090 */ 88, 89, 90, 91, 92, 93, 94, 95, 96, 459, - /* 1100 */ 380, 392, 462, 49, 20, 33, 102, 387, 103, 103, - /* 1110 */ 42, 44, 44, 392, 392, 395, 140, 141, 114, 479, - /* 1120 */ 480, 49, 381, 342, 484, 485, 342, 0, 170, 57, - /* 1130 */ 58, 59, 60, 389, 62, 35, 392, 342, 8, 9, - /* 1140 */ 259, 342, 12, 13, 14, 15, 16, 142, 144, 342, - /* 1150 */ 342, 147, 148, 149, 150, 151, 152, 153, 154, 155, - /* 1160 */ 156, 157, 158, 159, 160, 161, 162, 163, 342, 165, - /* 1170 */ 166, 167, 2, 392, 102, 75, 392, 105, 8, 9, - /* 1180 */ 380, 172, 12, 13, 14, 15, 16, 392, 183, 184, - /* 1190 */ 185, 392, 342, 188, 67, 395, 190, 44, 192, 392, - /* 1200 */ 392, 380, 352, 0, 354, 342, 201, 202, 389, 0, - /* 1210 */ 459, 392, 459, 462, 380, 462, 395, 212, 392, 373, - /* 1220 */ 215, 381, 376, 218, 219, 220, 221, 222, 222, 395, - /* 1230 */ 380, 480, 42, 480, 44, 484, 485, 484, 485, 342, - /* 1240 */ 367, 68, 392, 370, 394, 173, 174, 44, 39, 352, - /* 1250 */ 44, 354, 180, 181, 114, 392, 172, 104, 107, 107, - /* 1260 */ 13, 110, 110, 281, 107, 260, 260, 110, 44, 107, - /* 1270 */ 0, 199, 110, 207, 62, 209, 217, 380, 428, 44, - /* 1280 */ 430, 0, 35, 433, 434, 435, 436, 437, 438, 392, - /* 1290 */ 440, 394, 22, 0, 44, 445, 47, 447, 44, 44, - /* 1300 */ 44, 451, 452, 22, 164, 44, 381, 44, 44, 44, - /* 1310 */ 104, 1, 2, 381, 13, 22, 44, 105, 44, 35, - /* 1320 */ 44, 35, 0, 44, 44, 428, 44, 430, 104, 44, - /* 1330 */ 433, 434, 435, 436, 437, 438, 35, 440, 44, 104, - /* 1340 */ 13, 369, 445, 342, 447, 488, 343, 402, 451, 452, - /* 1350 */ 283, 477, 103, 352, 104, 354, 12, 13, 104, 104, - /* 1360 */ 104, 471, 35, 342, 368, 104, 22, 104, 104, 104, - /* 1370 */ 355, 380, 50, 352, 411, 354, 104, 33, 104, 35, - /* 1380 */ 104, 380, 368, 104, 104, 355, 104, 402, 350, 104, - /* 1390 */ 391, 352, 402, 392, 461, 394, 223, 481, 104, 453, - /* 1400 */ 464, 380, 263, 49, 429, 413, 62, 20, 422, 360, - /* 1410 */ 206, 427, 342, 392, 189, 394, 422, 360, 20, 75, - /* 1420 */ 42, 352, 352, 415, 354, 399, 20, 402, 352, 428, - /* 1430 */ 399, 430, 342, 397, 433, 434, 435, 436, 437, 438, - /* 1440 */ 169, 440, 352, 20, 100, 351, 445, 352, 447, 428, - /* 1450 */ 380, 430, 451, 452, 433, 434, 435, 436, 437, 438, - /* 1460 */ 351, 440, 392, 399, 394, 101, 445, 364, 447, 99, - /* 1470 */ 380, 397, 451, 452, 397, 363, 351, 193, 98, 193, - /* 1480 */ 362, 20, 392, 351, 394, 351, 351, 344, 48, 348, - /* 1490 */ 344, 360, 348, 422, 20, 394, 360, 20, 428, 20, - /* 1500 */ 430, 342, 353, 433, 434, 435, 436, 437, 438, 353, - /* 1510 */ 440, 352, 414, 20, 360, 445, 405, 447, 428, 351, - /* 1520 */ 430, 451, 452, 433, 434, 435, 436, 437, 438, 360, - /* 1530 */ 440, 360, 360, 344, 360, 191, 351, 193, 380, 380, - /* 1540 */ 380, 380, 344, 380, 380, 380, 380, 380, 210, 426, - /* 1550 */ 342, 392, 103, 394, 358, 380, 380, 380, 197, 421, - /* 1560 */ 352, 424, 196, 358, 422, 420, 195, 223, 224, 419, - /* 1570 */ 392, 392, 392, 351, 392, 394, 486, 487, 270, 392, - /* 1580 */ 236, 237, 238, 239, 240, 241, 242, 428, 380, 430, - /* 1590 */ 470, 407, 433, 434, 435, 436, 437, 438, 269, 440, - /* 1600 */ 392, 413, 394, 402, 445, 392, 447, 407, 392, 402, - /* 1610 */ 451, 452, 278, 182, 264, 280, 279, 470, 287, 259, - /* 1620 */ 342, 473, 489, 413, 284, 282, 20, 472, 114, 352, - /* 1630 */ 352, 432, 392, 261, 407, 392, 428, 392, 430, 407, - /* 1640 */ 342, 433, 434, 435, 436, 437, 438, 358, 440, 353, - /* 1650 */ 352, 392, 469, 445, 392, 447, 470, 465, 380, 451, - /* 1660 */ 452, 468, 467, 358, 174, 463, 376, 392, 352, 403, - /* 1670 */ 392, 358, 394, 358, 483, 103, 482, 103, 380, 450, - /* 1680 */ 392, 384, 370, 351, 358, 36, 345, 359, 374, 344, - /* 1690 */ 392, 423, 394, 374, 374, 408, 340, 0, 0, 416, - /* 1700 */ 408, 0, 42, 0, 35, 216, 428, 35, 430, 342, - /* 1710 */ 35, 433, 434, 435, 436, 437, 438, 35, 440, 352, - /* 1720 */ 216, 0, 35, 445, 35, 447, 428, 216, 430, 451, - /* 1730 */ 452, 433, 434, 435, 436, 437, 438, 0, 440, 216, - /* 1740 */ 0, 35, 0, 0, 342, 447, 22, 380, 35, 451, - /* 1750 */ 452, 211, 0, 199, 352, 0, 199, 193, 200, 392, - /* 1760 */ 191, 394, 0, 0, 0, 187, 186, 0, 0, 47, - /* 1770 */ 0, 35, 49, 0, 342, 47, 0, 42, 0, 0, - /* 1780 */ 0, 47, 380, 0, 352, 0, 0, 385, 0, 0, - /* 1790 */ 0, 159, 35, 0, 392, 428, 394, 430, 159, 0, - /* 1800 */ 433, 434, 435, 436, 437, 438, 0, 440, 0, 0, - /* 1810 */ 0, 342, 380, 0, 447, 0, 0, 385, 0, 452, - /* 1820 */ 0, 352, 0, 0, 392, 0, 394, 0, 0, 0, - /* 1830 */ 428, 47, 430, 0, 42, 433, 434, 435, 436, 437, - /* 1840 */ 438, 342, 440, 0, 0, 0, 0, 0, 0, 380, - /* 1850 */ 0, 352, 22, 0, 0, 143, 0, 0, 22, 48, - /* 1860 */ 428, 392, 430, 394, 22, 433, 434, 435, 436, 437, - /* 1870 */ 438, 0, 440, 342, 48, 35, 62, 0, 0, 380, - /* 1880 */ 0, 62, 0, 352, 35, 0, 62, 49, 49, 0, - /* 1890 */ 39, 392, 0, 394, 35, 35, 0, 428, 14, 430, - /* 1900 */ 35, 39, 433, 434, 435, 436, 437, 438, 39, 440, - /* 1910 */ 342, 380, 49, 39, 42, 47, 385, 44, 0, 0, - /* 1920 */ 352, 40, 47, 392, 0, 394, 47, 428, 182, 430, - /* 1930 */ 39, 0, 433, 434, 435, 436, 437, 438, 39, 440, - /* 1940 */ 342, 47, 0, 0, 0, 69, 0, 478, 380, 0, - /* 1950 */ 352, 35, 49, 39, 0, 35, 49, 0, 35, 428, - /* 1960 */ 392, 430, 394, 1, 433, 434, 435, 436, 437, 438, - /* 1970 */ 49, 440, 39, 39, 0, 35, 49, 39, 380, 0, - /* 1980 */ 0, 19, 0, 385, 0, 0, 487, 342, 0, 22, - /* 1990 */ 392, 35, 394, 110, 0, 33, 428, 352, 430, 112, - /* 2000 */ 35, 433, 434, 435, 436, 437, 438, 35, 440, 22, - /* 2010 */ 442, 49, 35, 342, 44, 44, 35, 0, 35, 57, - /* 2020 */ 58, 59, 60, 352, 62, 380, 428, 35, 430, 0, - /* 2030 */ 385, 433, 434, 435, 436, 437, 438, 392, 440, 394, - /* 2040 */ 35, 35, 35, 35, 22, 22, 51, 0, 22, 35, - /* 2050 */ 0, 380, 0, 35, 35, 0, 22, 20, 103, 35, - /* 2060 */ 35, 0, 35, 392, 102, 394, 103, 105, 104, 172, - /* 2070 */ 35, 22, 0, 428, 342, 430, 22, 172, 433, 434, - /* 2080 */ 435, 436, 437, 438, 352, 440, 198, 342, 0, 194, - /* 2090 */ 0, 174, 3, 178, 172, 44, 265, 352, 172, 428, - /* 2100 */ 138, 430, 103, 178, 433, 434, 435, 436, 437, 438, - /* 2110 */ 48, 440, 380, 104, 103, 48, 101, 104, 44, 99, - /* 2120 */ 44, 44, 47, 44, 392, 380, 394, 3, 47, 265, - /* 2130 */ 44, 265, 104, 103, 35, 173, 103, 392, 342, 394, - /* 2140 */ 104, 103, 180, 103, 35, 104, 104, 35, 352, 35, - /* 2150 */ 35, 35, 104, 47, 342, 44, 258, 104, 0, 0, - /* 2160 */ 428, 199, 430, 103, 352, 433, 434, 435, 436, 437, - /* 2170 */ 438, 39, 440, 428, 47, 430, 380, 104, 433, 434, - /* 2180 */ 435, 436, 437, 438, 0, 440, 103, 103, 392, 104, - /* 2190 */ 394, 175, 380, 39, 103, 103, 103, 47, 101, 44, - /* 2200 */ 113, 101, 2, 342, 392, 173, 394, 22, 103, 223, - /* 2210 */ 103, 245, 104, 352, 104, 47, 103, 47, 22, 125, - /* 2220 */ 125, 104, 103, 103, 428, 104, 430, 225, 103, 433, - /* 2230 */ 434, 435, 436, 437, 438, 104, 440, 114, 35, 103, - /* 2240 */ 428, 380, 430, 35, 104, 433, 434, 435, 436, 437, - /* 2250 */ 438, 35, 440, 392, 342, 394, 103, 35, 35, 35, - /* 2260 */ 104, 104, 35, 103, 352, 103, 125, 104, 103, 103, - /* 2270 */ 342, 125, 44, 104, 103, 103, 35, 103, 22, 69, - /* 2280 */ 352, 68, 35, 342, 35, 35, 35, 35, 35, 428, - /* 2290 */ 35, 430, 380, 352, 433, 434, 435, 436, 437, 438, - /* 2300 */ 35, 440, 97, 342, 392, 75, 394, 44, 380, 35, - /* 2310 */ 35, 35, 22, 352, 35, 35, 0, 35, 75, 35, - /* 2320 */ 392, 380, 394, 35, 35, 22, 35, 35, 35, 0, - /* 2330 */ 35, 35, 49, 392, 49, 394, 39, 39, 0, 35, - /* 2340 */ 428, 380, 430, 0, 35, 433, 434, 435, 436, 437, - /* 2350 */ 438, 49, 440, 392, 39, 394, 428, 49, 430, 39, - /* 2360 */ 0, 433, 434, 435, 436, 437, 438, 35, 440, 428, - /* 2370 */ 35, 430, 0, 342, 433, 434, 435, 436, 437, 438, - /* 2380 */ 22, 440, 21, 352, 22, 22, 21, 20, 490, 428, - /* 2390 */ 490, 430, 490, 490, 433, 434, 435, 436, 437, 438, - /* 2400 */ 490, 440, 490, 490, 490, 490, 342, 490, 490, 490, - /* 2410 */ 490, 380, 490, 490, 490, 490, 352, 490, 490, 490, - /* 2420 */ 490, 490, 342, 392, 490, 394, 490, 490, 490, 490, - /* 2430 */ 490, 490, 352, 490, 490, 490, 490, 490, 490, 490, - /* 2440 */ 490, 490, 490, 342, 380, 490, 490, 490, 490, 490, - /* 2450 */ 490, 490, 490, 352, 490, 490, 392, 490, 394, 428, - /* 2460 */ 380, 430, 490, 490, 433, 434, 435, 436, 437, 438, - /* 2470 */ 490, 440, 392, 490, 394, 490, 490, 490, 490, 490, - /* 2480 */ 490, 380, 490, 490, 490, 490, 490, 490, 490, 490, - /* 2490 */ 490, 490, 428, 392, 430, 394, 490, 433, 434, 435, - /* 2500 */ 436, 437, 438, 490, 440, 490, 490, 490, 428, 342, - /* 2510 */ 430, 490, 490, 433, 434, 435, 436, 437, 438, 352, - /* 2520 */ 440, 490, 342, 490, 490, 490, 490, 490, 490, 428, - /* 2530 */ 490, 430, 352, 342, 433, 434, 435, 436, 437, 438, - /* 2540 */ 490, 440, 490, 352, 490, 490, 342, 380, 490, 490, - /* 2550 */ 490, 490, 490, 490, 490, 490, 352, 490, 490, 392, - /* 2560 */ 380, 394, 490, 490, 490, 490, 490, 490, 490, 490, - /* 2570 */ 490, 380, 392, 490, 394, 490, 490, 490, 490, 490, - /* 2580 */ 490, 490, 490, 392, 380, 394, 490, 490, 490, 490, - /* 2590 */ 490, 490, 490, 490, 490, 428, 392, 430, 394, 490, - /* 2600 */ 433, 434, 435, 436, 437, 438, 490, 440, 428, 490, - /* 2610 */ 430, 490, 490, 433, 434, 435, 436, 437, 438, 428, - /* 2620 */ 440, 430, 490, 342, 433, 434, 435, 436, 437, 438, - /* 2630 */ 490, 440, 428, 352, 430, 490, 342, 433, 434, 435, - /* 2640 */ 436, 437, 438, 490, 440, 490, 352, 342, 490, 490, - /* 2650 */ 490, 490, 490, 490, 490, 490, 490, 352, 490, 490, - /* 2660 */ 490, 380, 490, 490, 490, 490, 490, 490, 490, 490, - /* 2670 */ 490, 490, 490, 392, 380, 394, 490, 490, 490, 490, - /* 2680 */ 490, 490, 490, 490, 490, 380, 392, 490, 394, 490, - /* 2690 */ 490, 490, 490, 490, 490, 490, 490, 392, 342, 394, - /* 2700 */ 490, 490, 490, 490, 490, 490, 490, 490, 352, 428, - /* 2710 */ 490, 430, 490, 490, 433, 434, 435, 436, 437, 438, - /* 2720 */ 490, 440, 428, 490, 430, 490, 490, 433, 434, 435, - /* 2730 */ 436, 437, 438, 428, 440, 430, 380, 490, 433, 434, - /* 2740 */ 435, 436, 437, 438, 490, 440, 490, 490, 392, 490, - /* 2750 */ 394, 490, 490, 490, 490, 490, 490, 490, 490, 490, - /* 2760 */ 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, - /* 2770 */ 490, 490, 490, 490, 490, 490, 490, 490, 490, 490, - /* 2780 */ 490, 490, 490, 490, 428, 490, 430, 490, 490, 433, - /* 2790 */ 434, 435, 436, 437, 438, 490, 440, 339, 339, 339, - /* 2800 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2810 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2820 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2830 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2840 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2850 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2860 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2870 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2880 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2890 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2900 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2910 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2920 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2930 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2940 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2950 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2960 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2970 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2980 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 2990 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3000 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3010 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3020 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3030 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3040 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3050 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3060 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3070 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3080 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3090 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3100 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3110 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3120 */ 339, 339, 339, 339, 339, 339, 339, 339, 339, 339, - /* 3130 */ 339, 339, 339, 339, 339, 339, + /* 240 */ 240, 241, 242, 243, 244, 12, 13, 20, 50, 20, + /* 250 */ 18, 22, 20, 20, 69, 22, 141, 142, 224, 27, + /* 260 */ 343, 463, 30, 70, 466, 4, 37, 35, 35, 20, + /* 270 */ 37, 8, 9, 356, 260, 12, 13, 14, 15, 16, + /* 280 */ 20, 483, 484, 51, 55, 53, 488, 489, 171, 172, + /* 290 */ 58, 224, 177, 178, 20, 463, 33, 64, 466, 355, + /* 300 */ 105, 384, 287, 70, 56, 57, 113, 46, 47, 48, + /* 310 */ 77, 355, 356, 396, 394, 398, 484, 397, 398, 21, + /* 320 */ 488, 489, 24, 25, 26, 27, 28, 29, 30, 31, + /* 330 */ 32, 176, 105, 141, 142, 102, 104, 362, 105, 272, + /* 340 */ 273, 274, 275, 276, 277, 278, 372, 115, 380, 432, + /* 350 */ 343, 434, 408, 409, 437, 438, 439, 440, 441, 442, + /* 360 */ 386, 444, 387, 170, 447, 105, 449, 450, 451, 106, + /* 370 */ 396, 173, 455, 456, 141, 142, 105, 145, 180, 105, + /* 380 */ 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, + /* 390 */ 158, 159, 160, 161, 162, 163, 164, 429, 166, 167, + /* 400 */ 168, 355, 356, 396, 171, 172, 0, 0, 434, 435, + /* 410 */ 177, 178, 20, 4, 458, 459, 460, 461, 444, 463, + /* 420 */ 464, 375, 267, 268, 269, 192, 356, 194, 382, 22, + /* 430 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 355, + /* 440 */ 356, 248, 249, 250, 251, 252, 253, 254, 255, 256, + /* 450 */ 257, 258, 360, 361, 384, 187, 261, 224, 225, 375, + /* 460 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, + /* 470 */ 237, 238, 239, 240, 241, 242, 243, 244, 245, 12, + /* 480 */ 13, 436, 214, 215, 20, 343, 22, 20, 261, 22, + /* 490 */ 134, 135, 136, 137, 138, 139, 140, 351, 356, 105, + /* 500 */ 51, 355, 35, 357, 37, 343, 372, 462, 59, 439, + /* 510 */ 4, 62, 63, 115, 105, 72, 73, 74, 356, 55, + /* 520 */ 386, 261, 79, 80, 81, 19, 384, 69, 85, 384, + /* 530 */ 396, 64, 261, 90, 91, 92, 93, 70, 396, 96, + /* 540 */ 398, 35, 355, 356, 77, 376, 384, 384, 21, 404, + /* 550 */ 405, 136, 384, 384, 391, 140, 447, 51, 396, 450, + /* 560 */ 398, 392, 399, 36, 58, 38, 39, 40, 434, 102, + /* 570 */ 64, 37, 105, 405, 432, 245, 434, 343, 444, 437, + /* 580 */ 438, 439, 440, 441, 442, 191, 444, 193, 364, 402, + /* 590 */ 356, 449, 358, 451, 432, 343, 434, 455, 456, 437, + /* 600 */ 438, 439, 440, 441, 442, 381, 444, 365, 141, 142, + /* 610 */ 104, 77, 470, 107, 390, 373, 201, 223, 384, 204, + /* 620 */ 478, 77, 207, 3, 209, 14, 463, 369, 370, 466, + /* 630 */ 396, 20, 398, 12, 13, 14, 15, 16, 171, 172, + /* 640 */ 20, 479, 480, 115, 177, 178, 483, 484, 396, 376, + /* 650 */ 351, 488, 489, 13, 355, 261, 357, 384, 0, 192, + /* 660 */ 0, 194, 355, 356, 22, 392, 432, 436, 434, 22, + /* 670 */ 261, 437, 438, 439, 440, 441, 442, 37, 444, 37, + /* 680 */ 355, 356, 375, 449, 37, 451, 14, 15, 16, 455, + /* 690 */ 456, 224, 225, 462, 227, 228, 229, 230, 231, 232, + /* 700 */ 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, + /* 710 */ 243, 244, 12, 13, 14, 0, 343, 343, 416, 77, + /* 720 */ 20, 384, 22, 421, 135, 136, 106, 402, 416, 140, + /* 730 */ 356, 384, 72, 73, 74, 35, 399, 37, 391, 79, + /* 740 */ 80, 81, 355, 356, 102, 85, 399, 372, 384, 102, + /* 750 */ 90, 91, 92, 93, 355, 356, 96, 245, 384, 247, + /* 760 */ 416, 386, 375, 399, 64, 463, 384, 52, 466, 396, + /* 770 */ 396, 396, 398, 391, 375, 463, 0, 77, 466, 355, + /* 780 */ 356, 399, 171, 355, 356, 483, 484, 77, 355, 356, + /* 790 */ 488, 489, 135, 173, 393, 483, 484, 396, 22, 375, + /* 800 */ 488, 489, 102, 375, 343, 105, 432, 463, 434, 434, + /* 810 */ 466, 437, 438, 439, 440, 441, 442, 356, 444, 444, + /* 820 */ 355, 356, 34, 449, 384, 451, 20, 483, 484, 455, + /* 830 */ 456, 391, 488, 489, 192, 402, 194, 0, 385, 399, + /* 840 */ 375, 141, 142, 8, 9, 384, 22, 12, 13, 14, + /* 850 */ 15, 16, 478, 355, 356, 355, 356, 396, 343, 398, + /* 860 */ 18, 37, 205, 206, 14, 23, 224, 225, 355, 356, + /* 870 */ 20, 171, 172, 375, 384, 375, 218, 177, 178, 0, + /* 880 */ 436, 391, 40, 41, 355, 356, 44, 385, 375, 399, + /* 890 */ 1, 2, 192, 432, 194, 434, 54, 364, 437, 438, + /* 900 */ 439, 440, 441, 442, 375, 444, 462, 65, 66, 67, + /* 910 */ 68, 396, 451, 343, 8, 9, 455, 456, 12, 13, + /* 920 */ 14, 15, 16, 390, 224, 225, 102, 227, 228, 229, + /* 930 */ 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, + /* 940 */ 240, 241, 242, 243, 244, 12, 13, 105, 20, 355, + /* 950 */ 356, 343, 343, 20, 170, 22, 8, 9, 355, 356, + /* 960 */ 12, 13, 14, 15, 16, 20, 396, 35, 35, 375, + /* 970 */ 37, 134, 135, 136, 137, 138, 139, 140, 375, 173, + /* 980 */ 355, 356, 376, 51, 343, 143, 355, 356, 343, 20, + /* 990 */ 384, 59, 60, 61, 62, 106, 64, 64, 392, 416, + /* 1000 */ 375, 356, 4, 358, 396, 396, 375, 64, 173, 448, + /* 1010 */ 77, 450, 106, 134, 135, 136, 137, 138, 139, 140, + /* 1020 */ 343, 171, 448, 343, 450, 343, 184, 185, 186, 384, + /* 1030 */ 406, 189, 248, 369, 370, 102, 104, 396, 105, 107, + /* 1040 */ 343, 396, 258, 398, 202, 203, 463, 104, 134, 466, + /* 1050 */ 107, 384, 138, 356, 106, 213, 3, 371, 216, 392, + /* 1060 */ 374, 219, 220, 221, 222, 223, 483, 484, 346, 347, + /* 1070 */ 0, 488, 489, 396, 141, 142, 396, 432, 396, 434, + /* 1080 */ 33, 384, 437, 438, 439, 440, 441, 442, 33, 444, + /* 1090 */ 343, 343, 45, 396, 449, 398, 451, 343, 343, 171, + /* 1100 */ 455, 456, 384, 261, 171, 172, 174, 175, 37, 2, + /* 1110 */ 177, 178, 42, 181, 182, 8, 9, 399, 173, 12, + /* 1120 */ 13, 14, 15, 16, 105, 192, 33, 194, 343, 432, + /* 1130 */ 343, 434, 200, 114, 437, 438, 439, 440, 441, 442, + /* 1140 */ 416, 444, 173, 396, 396, 343, 449, 0, 451, 33, + /* 1150 */ 396, 396, 455, 456, 39, 40, 393, 224, 225, 396, + /* 1160 */ 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, + /* 1170 */ 237, 238, 239, 240, 241, 242, 243, 244, 12, 13, + /* 1180 */ 33, 396, 393, 396, 33, 396, 20, 463, 22, 377, + /* 1190 */ 466, 14, 380, 47, 48, 259, 260, 20, 396, 106, + /* 1200 */ 115, 35, 33, 37, 343, 64, 108, 483, 484, 111, + /* 1210 */ 0, 13, 488, 489, 45, 33, 33, 356, 108, 358, + /* 1220 */ 108, 111, 106, 111, 109, 110, 108, 112, 385, 111, + /* 1230 */ 64, 385, 22, 8, 9, 37, 33, 12, 13, 14, + /* 1240 */ 15, 16, 208, 77, 210, 384, 13, 33, 107, 134, + /* 1250 */ 165, 343, 33, 138, 141, 142, 33, 396, 385, 398, + /* 1260 */ 385, 263, 49, 33, 356, 194, 358, 385, 102, 2, + /* 1270 */ 37, 105, 37, 13, 422, 8, 9, 373, 343, 12, + /* 1280 */ 13, 14, 15, 16, 1, 2, 37, 492, 106, 106, + /* 1290 */ 344, 356, 384, 432, 481, 434, 359, 37, 437, 438, + /* 1300 */ 439, 440, 441, 442, 396, 444, 398, 141, 142, 106, + /* 1310 */ 449, 475, 451, 372, 33, 33, 455, 456, 105, 384, + /* 1320 */ 106, 372, 384, 359, 415, 106, 77, 406, 354, 106, + /* 1330 */ 406, 396, 356, 398, 395, 282, 106, 171, 172, 284, + /* 1340 */ 432, 33, 434, 177, 178, 437, 438, 439, 440, 441, + /* 1350 */ 442, 33, 444, 465, 33, 485, 457, 449, 192, 451, + /* 1360 */ 194, 12, 13, 455, 456, 33, 468, 432, 264, 434, + /* 1370 */ 343, 22, 437, 438, 439, 440, 441, 442, 443, 444, + /* 1380 */ 445, 446, 417, 356, 35, 358, 37, 106, 106, 51, + /* 1390 */ 224, 225, 433, 227, 228, 229, 230, 231, 232, 233, + /* 1400 */ 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, + /* 1410 */ 244, 384, 33, 64, 106, 33, 20, 33, 33, 343, + /* 1420 */ 33, 426, 207, 396, 106, 398, 77, 106, 431, 194, + /* 1430 */ 364, 426, 356, 364, 358, 190, 419, 286, 106, 343, + /* 1440 */ 20, 403, 356, 45, 20, 406, 356, 403, 170, 401, + /* 1450 */ 20, 102, 356, 356, 355, 355, 103, 403, 401, 432, + /* 1460 */ 384, 434, 401, 368, 437, 438, 439, 440, 441, 442, + /* 1470 */ 101, 444, 396, 367, 398, 355, 449, 100, 451, 355, + /* 1480 */ 384, 355, 455, 456, 355, 106, 20, 366, 106, 50, + /* 1490 */ 106, 106, 396, 106, 398, 352, 348, 348, 426, 364, + /* 1500 */ 20, 398, 352, 364, 20, 20, 418, 20, 432, 357, + /* 1510 */ 434, 357, 348, 437, 438, 439, 440, 441, 442, 364, + /* 1520 */ 444, 364, 364, 409, 364, 449, 355, 451, 432, 364, + /* 1530 */ 434, 455, 456, 437, 438, 439, 440, 441, 442, 346, + /* 1540 */ 444, 192, 355, 194, 348, 449, 384, 451, 346, 396, + /* 1550 */ 211, 455, 456, 430, 384, 396, 384, 384, 384, 384, + /* 1560 */ 384, 105, 384, 343, 384, 384, 428, 362, 384, 198, + /* 1570 */ 426, 197, 196, 224, 225, 396, 356, 355, 362, 474, + /* 1580 */ 417, 425, 271, 398, 270, 424, 237, 238, 239, 240, + /* 1590 */ 241, 242, 243, 396, 406, 343, 406, 396, 279, 474, + /* 1600 */ 411, 183, 411, 396, 384, 396, 474, 477, 356, 423, + /* 1610 */ 476, 281, 265, 473, 280, 343, 396, 472, 398, 288, + /* 1620 */ 493, 417, 285, 487, 283, 260, 356, 20, 356, 262, + /* 1630 */ 436, 115, 357, 362, 396, 362, 384, 469, 471, 411, + /* 1640 */ 396, 362, 343, 396, 396, 411, 396, 396, 396, 175, + /* 1650 */ 398, 362, 432, 407, 434, 356, 384, 437, 438, 439, + /* 1660 */ 440, 441, 442, 356, 444, 380, 467, 105, 396, 449, + /* 1670 */ 398, 451, 454, 105, 388, 455, 456, 374, 486, 355, + /* 1680 */ 396, 22, 362, 384, 432, 345, 434, 38, 420, 437, + /* 1690 */ 438, 439, 440, 441, 442, 396, 444, 398, 363, 349, + /* 1700 */ 348, 427, 412, 451, 432, 343, 434, 455, 456, 437, + /* 1710 */ 438, 439, 440, 441, 442, 0, 444, 412, 356, 45, + /* 1720 */ 378, 343, 378, 451, 378, 0, 0, 455, 456, 341, + /* 1730 */ 0, 432, 37, 434, 356, 217, 437, 438, 439, 440, + /* 1740 */ 441, 442, 37, 444, 37, 37, 384, 217, 0, 37, + /* 1750 */ 451, 37, 343, 217, 0, 456, 217, 0, 396, 37, + /* 1760 */ 398, 0, 384, 22, 0, 356, 37, 389, 212, 0, + /* 1770 */ 343, 200, 0, 200, 396, 201, 398, 194, 192, 0, + /* 1780 */ 0, 0, 188, 356, 187, 0, 0, 49, 0, 37, + /* 1790 */ 51, 0, 49, 384, 432, 0, 434, 0, 389, 437, + /* 1800 */ 438, 439, 440, 441, 442, 396, 444, 398, 45, 0, + /* 1810 */ 432, 384, 434, 0, 49, 437, 438, 439, 440, 441, + /* 1820 */ 442, 0, 444, 396, 0, 398, 0, 0, 0, 0, + /* 1830 */ 160, 37, 0, 160, 0, 0, 0, 0, 0, 0, + /* 1840 */ 0, 432, 480, 434, 0, 0, 437, 438, 439, 440, + /* 1850 */ 441, 442, 0, 444, 0, 0, 0, 343, 50, 432, + /* 1860 */ 0, 434, 0, 0, 437, 438, 439, 440, 441, 442, + /* 1870 */ 356, 444, 343, 0, 49, 45, 0, 0, 0, 0, + /* 1880 */ 0, 0, 0, 22, 0, 356, 0, 343, 144, 0, + /* 1890 */ 0, 22, 22, 50, 0, 64, 37, 0, 384, 0, + /* 1900 */ 356, 0, 0, 37, 51, 64, 42, 0, 37, 482, + /* 1910 */ 396, 64, 398, 384, 42, 0, 51, 42, 389, 51, + /* 1920 */ 37, 0, 37, 0, 33, 396, 14, 398, 384, 183, + /* 1930 */ 42, 0, 45, 0, 343, 0, 43, 0, 0, 0, + /* 1940 */ 396, 49, 398, 0, 49, 49, 432, 356, 434, 49, + /* 1950 */ 42, 437, 438, 439, 440, 441, 442, 0, 444, 343, + /* 1960 */ 42, 432, 37, 434, 0, 51, 437, 438, 439, 440, + /* 1970 */ 441, 442, 356, 444, 71, 384, 432, 0, 434, 37, + /* 1980 */ 389, 437, 438, 439, 440, 441, 442, 396, 444, 398, + /* 1990 */ 446, 42, 51, 42, 0, 37, 343, 51, 42, 0, + /* 2000 */ 384, 51, 37, 42, 0, 491, 0, 0, 0, 356, + /* 2010 */ 0, 0, 396, 37, 398, 22, 111, 113, 0, 37, + /* 2020 */ 37, 37, 37, 432, 37, 434, 37, 37, 437, 438, + /* 2030 */ 439, 440, 441, 442, 33, 444, 33, 384, 22, 37, + /* 2040 */ 0, 22, 389, 0, 22, 53, 37, 0, 432, 396, + /* 2050 */ 434, 398, 37, 437, 438, 439, 440, 441, 442, 22, + /* 2060 */ 444, 37, 343, 0, 0, 0, 37, 0, 37, 0, + /* 2070 */ 22, 20, 37, 37, 106, 356, 37, 105, 0, 173, + /* 2080 */ 105, 37, 22, 343, 22, 432, 0, 434, 175, 1, + /* 2090 */ 437, 438, 439, 440, 441, 442, 356, 444, 0, 173, + /* 2100 */ 0, 173, 3, 384, 33, 173, 195, 19, 199, 179, + /* 2110 */ 105, 50, 266, 179, 343, 396, 103, 398, 106, 105, + /* 2120 */ 50, 101, 33, 35, 384, 33, 105, 356, 33, 106, + /* 2130 */ 49, 106, 105, 105, 49, 105, 396, 33, 398, 51, + /* 2140 */ 106, 3, 33, 37, 106, 37, 49, 59, 60, 61, + /* 2150 */ 62, 432, 64, 434, 37, 384, 437, 438, 439, 440, + /* 2160 */ 441, 442, 106, 444, 266, 37, 37, 396, 37, 398, + /* 2170 */ 33, 49, 432, 0, 434, 259, 0, 437, 438, 439, + /* 2180 */ 440, 441, 442, 266, 444, 343, 106, 42, 106, 106, + /* 2190 */ 0, 174, 104, 106, 42, 107, 105, 49, 356, 105, + /* 2200 */ 33, 343, 176, 432, 114, 434, 105, 105, 437, 438, + /* 2210 */ 439, 440, 441, 442, 356, 444, 105, 105, 103, 246, + /* 2220 */ 2, 103, 22, 49, 224, 105, 384, 139, 49, 106, + /* 2230 */ 105, 22, 106, 106, 115, 105, 37, 105, 396, 105, + /* 2240 */ 398, 106, 384, 37, 105, 37, 106, 105, 22, 106, + /* 2250 */ 106, 105, 37, 343, 396, 105, 398, 106, 37, 226, + /* 2260 */ 105, 37, 174, 106, 105, 37, 356, 106, 105, 181, + /* 2270 */ 33, 105, 343, 126, 432, 105, 434, 37, 71, 437, + /* 2280 */ 438, 439, 440, 441, 442, 356, 444, 105, 200, 70, + /* 2290 */ 432, 126, 434, 37, 384, 437, 438, 439, 440, 441, + /* 2300 */ 442, 126, 444, 126, 37, 343, 396, 37, 398, 37, + /* 2310 */ 77, 37, 37, 384, 37, 37, 99, 33, 356, 37, + /* 2320 */ 37, 22, 37, 37, 343, 396, 37, 398, 77, 37, + /* 2330 */ 37, 37, 37, 37, 37, 22, 0, 356, 37, 37, + /* 2340 */ 343, 51, 432, 0, 434, 42, 384, 437, 438, 439, + /* 2350 */ 440, 441, 442, 356, 444, 37, 51, 42, 396, 0, + /* 2360 */ 398, 432, 37, 434, 42, 384, 437, 438, 439, 440, + /* 2370 */ 441, 442, 51, 444, 0, 343, 37, 396, 51, 398, + /* 2380 */ 0, 384, 42, 37, 37, 0, 22, 33, 356, 22, + /* 2390 */ 21, 21, 343, 396, 432, 398, 434, 22, 22, 437, + /* 2400 */ 438, 439, 440, 441, 442, 356, 444, 20, 494, 494, + /* 2410 */ 494, 494, 494, 432, 494, 434, 384, 494, 437, 438, + /* 2420 */ 439, 440, 441, 442, 494, 444, 494, 343, 396, 432, + /* 2430 */ 398, 434, 494, 384, 437, 438, 439, 440, 441, 442, + /* 2440 */ 356, 444, 494, 494, 494, 396, 494, 398, 494, 494, + /* 2450 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, + /* 2460 */ 494, 494, 494, 494, 432, 494, 434, 494, 384, 437, + /* 2470 */ 438, 439, 440, 441, 442, 494, 444, 494, 494, 494, + /* 2480 */ 396, 432, 398, 434, 494, 494, 437, 438, 439, 440, + /* 2490 */ 441, 442, 343, 444, 494, 494, 494, 494, 494, 494, + /* 2500 */ 494, 494, 494, 494, 494, 356, 494, 343, 494, 494, + /* 2510 */ 494, 494, 494, 494, 494, 494, 432, 494, 434, 494, + /* 2520 */ 356, 437, 438, 439, 440, 441, 442, 494, 444, 343, + /* 2530 */ 494, 494, 494, 384, 494, 494, 494, 494, 494, 494, + /* 2540 */ 494, 494, 356, 494, 494, 396, 494, 398, 384, 494, + /* 2550 */ 494, 494, 494, 494, 343, 494, 494, 494, 494, 494, + /* 2560 */ 396, 494, 398, 494, 494, 494, 494, 356, 494, 494, + /* 2570 */ 384, 494, 494, 494, 494, 494, 494, 494, 494, 494, + /* 2580 */ 494, 432, 396, 434, 398, 494, 437, 438, 439, 440, + /* 2590 */ 441, 442, 494, 444, 494, 384, 432, 494, 434, 494, + /* 2600 */ 494, 437, 438, 439, 440, 441, 442, 396, 444, 398, + /* 2610 */ 494, 494, 494, 494, 494, 494, 343, 494, 432, 494, + /* 2620 */ 434, 494, 494, 437, 438, 439, 440, 441, 442, 356, + /* 2630 */ 444, 494, 494, 494, 343, 494, 494, 494, 494, 494, + /* 2640 */ 494, 494, 494, 432, 494, 434, 494, 356, 437, 438, + /* 2650 */ 439, 440, 441, 442, 494, 444, 494, 384, 494, 494, + /* 2660 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 396, + /* 2670 */ 494, 398, 494, 494, 494, 384, 494, 494, 494, 494, + /* 2680 */ 494, 343, 494, 494, 494, 494, 494, 396, 494, 398, + /* 2690 */ 494, 494, 494, 494, 356, 494, 343, 494, 494, 494, + /* 2700 */ 494, 494, 494, 494, 494, 432, 494, 434, 494, 356, + /* 2710 */ 437, 438, 439, 440, 441, 442, 494, 444, 494, 494, + /* 2720 */ 494, 494, 384, 432, 494, 434, 494, 494, 437, 438, + /* 2730 */ 439, 440, 441, 442, 396, 444, 398, 384, 494, 494, + /* 2740 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 396, + /* 2750 */ 494, 398, 494, 494, 494, 494, 494, 494, 494, 494, + /* 2760 */ 494, 494, 494, 494, 494, 494, 494, 494, 494, 494, + /* 2770 */ 432, 494, 434, 494, 494, 437, 438, 439, 440, 441, + /* 2780 */ 442, 494, 444, 494, 494, 432, 494, 434, 494, 494, + /* 2790 */ 437, 438, 439, 440, 441, 442, 494, 444, 340, 340, + /* 2800 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2810 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2820 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2830 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2840 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2850 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2860 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2870 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2880 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2890 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2900 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2910 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2920 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2930 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2940 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2950 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2960 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2970 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2980 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 2990 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3000 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3010 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3020 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3030 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3040 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3050 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3060 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3070 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3080 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3090 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3100 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3110 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3120 */ 340, 340, 340, 340, 340, 340, 340, 340, 340, 340, + /* 3130 */ 340, 340, 340, 340, 340, 340, 340, 340, }; -#define YY_SHIFT_COUNT (802) +#define YY_SHIFT_COUNT (810) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2372) +#define YY_SHIFT_MAX (2387) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 1005, 0, 104, 0, 337, 337, 337, 337, 337, 337, - /* 10 */ 337, 337, 337, 337, 337, 337, 441, 673, 673, 777, - /* 20 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, - /* 30 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, - /* 40 */ 673, 673, 673, 673, 673, 673, 673, 673, 673, 673, - /* 50 */ 673, 342, 376, 1006, 202, 480, 700, 480, 202, 202, - /* 60 */ 480, 1344, 480, 1344, 1344, 445, 480, 1, 413, 24, - /* 70 */ 24, 413, 371, 371, 153, 167, 41, 41, 24, 24, - /* 80 */ 24, 24, 24, 24, 24, 24, 24, 24, 98, 24, - /* 90 */ 24, 210, 1, 24, 24, 346, 1, 24, 24, 1, - /* 100 */ 24, 24, 1, 24, 1, 1, 1, 24, 354, 1004, - /* 110 */ 15, 15, 642, 171, 669, 669, 669, 669, 669, 669, - /* 120 */ 669, 669, 669, 669, 669, 669, 669, 669, 669, 669, - /* 130 */ 669, 669, 669, 425, 49, 153, 167, 229, 229, 67, - /* 140 */ 691, 691, 691, 1127, 192, 192, 67, 210, 412, 1, - /* 150 */ 1, 206, 1, 647, 1, 647, 647, 601, 772, 28, - /* 160 */ 28, 28, 28, 28, 28, 28, 28, 1962, 851, 261, - /* 170 */ 368, 34, 196, 338, 348, 339, 339, 296, 458, 689, - /* 180 */ 378, 1009, 951, 929, 252, 1084, 790, 881, 982, 790, - /* 190 */ 1068, 357, 958, 1139, 1354, 1387, 1204, 210, 1387, 210, - /* 200 */ 1225, 1398, 1378, 1406, 1398, 1378, 1271, 1423, 1398, 1423, - /* 210 */ 1378, 1271, 1271, 1364, 1370, 1423, 1380, 1423, 1423, 1423, - /* 220 */ 1461, 1440, 1461, 1440, 1387, 210, 1474, 210, 1477, 1479, - /* 230 */ 210, 1477, 210, 1493, 210, 210, 1423, 210, 1461, 1, - /* 240 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - /* 250 */ 1423, 1461, 647, 647, 647, 1338, 1449, 1387, 354, 1361, - /* 260 */ 1366, 1474, 354, 1371, 1139, 1423, 1406, 1406, 647, 1308, - /* 270 */ 1329, 647, 1308, 1329, 647, 647, 1, 1334, 1431, 1308, - /* 280 */ 1335, 1337, 1350, 1139, 1331, 1340, 1343, 1360, 1398, 1606, - /* 290 */ 1514, 1372, 1477, 354, 354, 1329, 647, 647, 647, 647, - /* 300 */ 647, 1329, 647, 1490, 354, 601, 354, 1398, 1572, 1574, - /* 310 */ 647, 772, 1423, 354, 1649, 1461, 2797, 2797, 2797, 2797, - /* 320 */ 2797, 2797, 2797, 2797, 2797, 1002, 1072, 225, 414, 931, - /* 330 */ 749, 943, 692, 646, 1170, 793, 734, 1130, 1130, 1130, - /* 340 */ 1130, 1130, 1130, 1130, 1130, 1130, 682, 187, 200, 200, - /* 350 */ 359, 641, 785, 726, 930, 520, 789, 475, 341, 698, - /* 360 */ 698, 922, 8, 107, 922, 922, 922, 1054, 1059, 1153, - /* 370 */ 1209, 1190, 1140, 1203, 1151, 1152, 1157, 1162, 618, 1247, - /* 380 */ 1270, 1281, 1293, 1066, 1206, 1224, 1212, 1235, 1250, 1254, - /* 390 */ 976, 1067, 471, 1255, 1256, 1261, 1263, 1264, 1265, 1310, - /* 400 */ 1272, 1173, 1274, 1249, 1276, 1279, 1280, 1282, 1285, 1294, - /* 410 */ 436, 1284, 1286, 1301, 1327, 1100, 1322, 1697, 1698, 1701, - /* 420 */ 1660, 1703, 1669, 1489, 1672, 1675, 1682, 1504, 1721, 1687, - /* 430 */ 1689, 1511, 1737, 1523, 1740, 1706, 1742, 1724, 1743, 1713, - /* 440 */ 1540, 1752, 1554, 1755, 1557, 1558, 1564, 1569, 1762, 1763, - /* 450 */ 1764, 1578, 1580, 1767, 1768, 1722, 1770, 1736, 1723, 1773, - /* 460 */ 1728, 1776, 1735, 1778, 1779, 1780, 1734, 1783, 1785, 1786, - /* 470 */ 1788, 1789, 1790, 1632, 1757, 1793, 1639, 1799, 1806, 1808, - /* 480 */ 1809, 1810, 1813, 1815, 1816, 1818, 1820, 1822, 1823, 1825, - /* 490 */ 1827, 1828, 1829, 1784, 1833, 1792, 1843, 1844, 1845, 1846, - /* 500 */ 1847, 1848, 1830, 1850, 1853, 1854, 1712, 1856, 1857, 1836, - /* 510 */ 1811, 1842, 1826, 1871, 1814, 1840, 1877, 1819, 1878, 1824, - /* 520 */ 1880, 1882, 1849, 1838, 1851, 1885, 1859, 1839, 1862, 1889, - /* 530 */ 1860, 1863, 1869, 1892, 1865, 1896, 1872, 1874, 1873, 1868, - /* 540 */ 1875, 1884, 1879, 1918, 1881, 1891, 1919, 1924, 1931, 1899, - /* 550 */ 1746, 1949, 1868, 1894, 1942, 1943, 1876, 1944, 1946, 1916, - /* 560 */ 1903, 1914, 1954, 1920, 1907, 1933, 1957, 1923, 1921, 1934, - /* 570 */ 1974, 1940, 1927, 1938, 1979, 1980, 1982, 1984, 1985, 1988, - /* 580 */ 1887, 1883, 1956, 1967, 1994, 1965, 1972, 1977, 1981, 1983, - /* 590 */ 1992, 2005, 1970, 1971, 2006, 2007, 1987, 2008, 2017, 2022, - /* 600 */ 2029, 2023, 1995, 2047, 2026, 2014, 2050, 2018, 2052, 2019, - /* 610 */ 2055, 2034, 2037, 2024, 2025, 2027, 1964, 1955, 2061, 1897, - /* 620 */ 1963, 1888, 2035, 2049, 2072, 1895, 2054, 1905, 1917, 2088, - /* 630 */ 2090, 1922, 1915, 1926, 1925, 2089, 2051, 1831, 1999, 2009, - /* 640 */ 2011, 2062, 2015, 2067, 2020, 2013, 2074, 2076, 2028, 2030, - /* 650 */ 2033, 2038, 2036, 2077, 2075, 2081, 2040, 2079, 1864, 2041, - /* 660 */ 2042, 2124, 2086, 1866, 2099, 2109, 2112, 2114, 2115, 2116, - /* 670 */ 2048, 2053, 2106, 1898, 2111, 2127, 2158, 2159, 2060, 2132, - /* 680 */ 2083, 2073, 2085, 2084, 2091, 2016, 2092, 2184, 2154, 2032, - /* 690 */ 2093, 2087, 1868, 2150, 2155, 2097, 1966, 2100, 2200, 2185, - /* 700 */ 1986, 2105, 2108, 2107, 2110, 2113, 2117, 2168, 2119, 2120, - /* 710 */ 2170, 2121, 2196, 2002, 2125, 2123, 2131, 2203, 2208, 2136, - /* 720 */ 2140, 2216, 2153, 2156, 2222, 2160, 2157, 2223, 2162, 2163, - /* 730 */ 2224, 2165, 2169, 2227, 2166, 2094, 2095, 2141, 2146, 2171, - /* 740 */ 2228, 2172, 2241, 2174, 2228, 2228, 2256, 2210, 2213, 2247, - /* 750 */ 2249, 2250, 2251, 2252, 2253, 2255, 2265, 2230, 2205, 2263, - /* 760 */ 2274, 2275, 2276, 2290, 2279, 2280, 2282, 2243, 1970, 2284, - /* 770 */ 1971, 2288, 2289, 2291, 2292, 2303, 2293, 2316, 2295, 2283, - /* 780 */ 2297, 2329, 2296, 2285, 2298, 2338, 2304, 2302, 2315, 2343, - /* 790 */ 2309, 2308, 2320, 2360, 2332, 2335, 2372, 2358, 2361, 2362, - /* 800 */ 2363, 2365, 2367, + /* 0 */ 842, 0, 233, 0, 467, 467, 467, 467, 467, 467, + /* 10 */ 467, 467, 467, 467, 467, 467, 700, 933, 933, 1166, + /* 20 */ 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, + /* 30 */ 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, + /* 40 */ 933, 933, 933, 933, 933, 933, 933, 933, 933, 933, + /* 50 */ 933, 227, 260, 394, 274, 195, 271, 195, 274, 274, + /* 60 */ 195, 1349, 195, 1349, 1349, 409, 195, 18, 115, 143, + /* 70 */ 143, 115, 261, 261, 117, 192, 126, 126, 143, 143, + /* 80 */ 143, 143, 143, 143, 143, 143, 143, 143, 249, 143, + /* 90 */ 143, 113, 18, 143, 143, 392, 18, 143, 143, 18, + /* 100 */ 143, 143, 18, 143, 18, 18, 18, 143, 458, 232, + /* 110 */ 193, 193, 443, 298, 642, 642, 642, 642, 642, 642, + /* 120 */ 642, 642, 642, 642, 642, 642, 642, 642, 642, 642, + /* 130 */ 642, 642, 642, 1115, 620, 117, 192, 248, 248, 534, + /* 140 */ 806, 806, 806, 185, 512, 512, 534, 113, 398, 18, + /* 150 */ 18, 330, 18, 544, 18, 544, 544, 528, 710, 788, + /* 160 */ 37, 37, 37, 37, 37, 37, 37, 37, 2088, 660, + /* 170 */ 21, 53, 15, 67, 229, 155, 4, 4, 611, 198, + /* 180 */ 850, 464, 945, 1146, 1177, 914, 969, 936, 14, 1053, + /* 190 */ 936, 1047, 998, 928, 1104, 1338, 1396, 1215, 113, 1396, + /* 200 */ 113, 1245, 1420, 1398, 1424, 1420, 1398, 1278, 1430, 1420, + /* 210 */ 1430, 1398, 1278, 1278, 1353, 1369, 1430, 1377, 1430, 1430, + /* 220 */ 1430, 1466, 1439, 1466, 1439, 1396, 113, 1480, 113, 1484, + /* 230 */ 1485, 113, 1484, 113, 1487, 113, 113, 1430, 113, 1466, + /* 240 */ 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, + /* 250 */ 18, 1430, 788, 788, 1466, 544, 544, 544, 1339, 1456, + /* 260 */ 1396, 458, 1371, 1374, 1480, 458, 1376, 1104, 1430, 1424, + /* 270 */ 1424, 544, 1311, 1314, 544, 1311, 1314, 544, 544, 18, + /* 280 */ 1319, 1418, 1311, 1330, 1334, 1347, 1104, 1331, 1337, 1341, + /* 290 */ 1365, 1420, 1607, 1516, 1367, 1484, 458, 458, 1314, 544, + /* 300 */ 544, 544, 544, 544, 1314, 544, 1474, 458, 528, 458, + /* 310 */ 1420, 1562, 1568, 544, 710, 1430, 458, 1659, 1649, 1466, + /* 320 */ 2798, 2798, 2798, 2798, 2798, 2798, 2798, 2798, 2798, 36, + /* 330 */ 932, 406, 263, 506, 906, 948, 837, 1107, 1267, 835, + /* 340 */ 879, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, 1225, + /* 350 */ 356, 415, 527, 621, 621, 27, 449, 268, 44, 943, + /* 360 */ 647, 824, 657, 589, 589, 672, 889, 784, 672, 672, + /* 370 */ 672, 152, 658, 1093, 1070, 1169, 1085, 1147, 1098, 1110, + /* 380 */ 1112, 1118, 640, 1198, 407, 776, 1210, 1034, 1116, 1182, + /* 390 */ 1141, 1183, 1203, 1214, 1113, 1055, 1151, 1219, 1223, 1230, + /* 400 */ 1281, 1282, 1308, 1283, 1318, 34, 1321, 1213, 1332, 1379, + /* 410 */ 1382, 1384, 1385, 1387, 1019, 1071, 1235, 1233, 1260, 1249, + /* 420 */ 715, 1715, 1725, 1726, 1674, 1730, 1695, 1518, 1705, 1707, + /* 430 */ 1708, 1530, 1748, 1712, 1714, 1536, 1754, 1539, 1757, 1722, + /* 440 */ 1761, 1741, 1764, 1729, 1556, 1769, 1571, 1772, 1573, 1574, + /* 450 */ 1583, 1586, 1779, 1780, 1781, 1594, 1597, 1785, 1786, 1738, + /* 460 */ 1788, 1752, 1739, 1791, 1743, 1795, 1763, 1797, 1809, 1813, + /* 470 */ 1765, 1821, 1824, 1826, 1827, 1828, 1829, 1670, 1794, 1832, + /* 480 */ 1673, 1834, 1835, 1836, 1837, 1838, 1839, 1840, 1844, 1845, + /* 490 */ 1852, 1854, 1855, 1856, 1860, 1862, 1863, 1825, 1873, 1830, + /* 500 */ 1876, 1877, 1878, 1879, 1880, 1881, 1861, 1882, 1884, 1886, + /* 510 */ 1744, 1889, 1890, 1869, 1808, 1870, 1843, 1894, 1831, 1859, + /* 520 */ 1897, 1841, 1899, 1847, 1901, 1902, 1866, 1853, 1864, 1907, + /* 530 */ 1871, 1865, 1872, 1915, 1883, 1868, 1875, 1921, 1885, 1923, + /* 540 */ 1887, 1888, 1891, 1892, 1895, 1912, 1896, 1931, 1893, 1908, + /* 550 */ 1933, 1935, 1937, 1918, 1746, 1938, 1892, 1900, 1939, 1943, + /* 560 */ 1903, 1957, 1964, 1925, 1914, 1949, 1977, 1942, 1941, 1951, + /* 570 */ 1994, 1958, 1946, 1956, 1999, 1965, 1950, 1961, 2004, 2006, + /* 580 */ 2007, 2008, 2010, 2011, 1904, 1905, 1976, 1993, 2018, 1982, + /* 590 */ 1983, 1984, 1985, 1987, 1989, 1990, 2001, 2003, 2002, 2009, + /* 600 */ 2016, 2015, 2040, 2019, 2043, 2022, 1992, 2047, 2037, 2024, + /* 610 */ 2063, 2064, 2065, 2029, 2067, 2031, 2069, 2048, 2051, 2035, + /* 620 */ 2036, 2039, 1968, 1972, 2078, 1906, 1975, 1909, 2044, 2060, + /* 630 */ 2086, 1911, 2062, 1926, 1913, 2098, 2100, 1928, 1930, 1932, + /* 640 */ 1934, 2099, 2071, 1846, 2005, 2012, 2014, 2061, 2013, 2070, + /* 650 */ 2020, 2023, 2089, 2092, 2025, 2021, 2027, 2028, 2034, 2095, + /* 660 */ 2081, 2085, 2030, 2104, 1898, 2038, 2056, 2138, 2109, 1917, + /* 670 */ 2106, 2108, 2117, 2128, 2129, 2131, 2080, 2082, 2097, 1916, + /* 680 */ 2137, 2122, 2173, 2176, 2091, 2145, 2094, 2083, 2087, 2101, + /* 690 */ 2102, 2026, 2111, 2190, 2152, 2017, 2112, 2090, 1892, 2148, + /* 700 */ 2167, 2115, 1973, 2118, 2218, 2200, 2000, 2120, 2123, 2125, + /* 710 */ 2126, 2130, 2127, 2174, 2132, 2134, 2179, 2135, 2209, 2033, + /* 720 */ 2139, 2119, 2140, 2199, 2206, 2142, 2143, 2208, 2146, 2144, + /* 730 */ 2215, 2150, 2151, 2221, 2155, 2157, 2224, 2159, 2161, 2228, + /* 740 */ 2163, 2147, 2165, 2175, 2177, 2166, 2237, 2170, 2240, 2182, + /* 750 */ 2237, 2237, 2226, 2207, 2219, 2256, 2267, 2270, 2272, 2274, + /* 760 */ 2275, 2277, 2278, 2233, 2217, 2284, 2282, 2283, 2285, 2299, + /* 770 */ 2286, 2289, 2292, 2251, 2001, 2293, 2003, 2294, 2295, 2296, + /* 780 */ 2297, 2313, 2301, 2336, 2302, 2290, 2303, 2343, 2318, 2305, + /* 790 */ 2315, 2359, 2325, 2321, 2322, 2374, 2339, 2327, 2340, 2380, + /* 800 */ 2346, 2347, 2385, 2364, 2354, 2367, 2369, 2375, 2376, 2370, + /* 810 */ 2387, }; -#define YY_REDUCE_COUNT (324) -#define YY_REDUCE_MIN (-391) -#define YY_REDUCE_MAX (2356) +#define YY_REDUCE_COUNT (328) +#define YY_REDUCE_MIN (-452) +#define YY_REDUCE_MAX (2353) static const short yy_reduce_ofst[] = { - /* 0 */ -20, -341, -134, -27, 205, 850, 897, 1001, 1021, 1070, - /* 10 */ 1159, 1208, 1278, 158, 539, 1298, 52, 347, 1090, 1367, - /* 20 */ 358, 1402, 1432, 1469, 1499, 1531, 1568, 1598, 1645, 1671, - /* 30 */ 1732, 1745, 1796, 1812, 1861, 1912, 1928, 1941, 1961, 2031, - /* 40 */ 2064, 2080, 2101, 2167, 2180, 2191, 2204, 2281, 2294, 2305, - /* 50 */ 2356, -274, 142, 40, -292, -371, 144, 582, 419, 427, - /* 60 */ 640, -366, 504, -311, -310, 751, 753, -9, -391, -346, - /* 70 */ -315, -324, -342, -270, -279, -259, -313, -215, -177, -162, - /* 80 */ -73, 146, 4, 17, 295, 336, 345, 83, 453, 366, - /* 90 */ 372, 135, -66, 395, 403, 420, 61, 490, 494, -265, - /* 100 */ 573, 575, 373, 610, 163, 720, 379, 674, -285, -351, - /* 110 */ -382, -382, -200, -163, 109, 271, 302, 496, 498, 506, - /* 120 */ 590, 685, 709, 721, 722, 781, 784, 795, 799, 807, - /* 130 */ 808, 826, 863, -132, 193, -296, -174, 127, 251, 363, - /* 140 */ 193, 563, 598, -110, 410, 594, 470, 679, 224, 800, - /* 150 */ 821, 141, 670, 353, 834, 744, 819, 846, 873, -364, - /* 160 */ -327, 514, 741, 840, 925, 932, 840, 331, 972, 1003, - /* 170 */ 945, 857, 874, 1015, 890, 996, 1014, 991, 963, 991, - /* 180 */ 1030, 985, 1038, 1039, 999, 990, 933, 933, 916, 933, - /* 190 */ 946, 936, 991, 992, 975, 986, 984, 1049, 994, 1057, - /* 200 */ 1008, 1069, 1026, 1025, 1076, 1031, 1036, 1094, 1095, 1109, - /* 210 */ 1064, 1074, 1077, 1103, 1112, 1125, 1118, 1132, 1134, 1135, - /* 220 */ 1143, 1141, 1146, 1144, 1071, 1131, 1101, 1136, 1149, 1098, - /* 230 */ 1154, 1156, 1169, 1111, 1171, 1172, 1168, 1174, 1189, 1158, - /* 240 */ 1160, 1161, 1163, 1164, 1165, 1166, 1167, 1175, 1176, 1177, - /* 250 */ 1185, 1198, 1178, 1179, 1180, 1123, 1137, 1142, 1196, 1138, - /* 260 */ 1145, 1181, 1205, 1150, 1188, 1222, 1201, 1207, 1182, 1120, - /* 270 */ 1184, 1187, 1147, 1200, 1213, 1216, 991, 1148, 1155, 1186, - /* 280 */ 1183, 1193, 1195, 1210, 1133, 1191, 1194, 933, 1277, 1199, - /* 290 */ 1192, 1202, 1296, 1289, 1305, 1227, 1240, 1243, 1245, 1259, - /* 300 */ 1262, 1232, 1275, 1266, 1313, 1290, 1315, 1316, 1229, 1297, - /* 310 */ 1288, 1312, 1332, 1326, 1341, 1345, 1283, 1268, 1287, 1292, - /* 320 */ 1314, 1319, 1320, 1328, 1356, + /* 0 */ -202, 142, -83, 374, 234, 645, 861, 908, 1027, 1076, + /* 10 */ 697, 1096, 1220, 461, 1252, 1272, 935, 162, -341, 1299, + /* 20 */ 1362, 1378, 1409, 1427, 1514, 1529, 1544, 1591, 1653, 1616, + /* 30 */ 1719, 1740, 1771, 1842, 1858, 1910, 1929, 1962, 1981, 1997, + /* 40 */ 2032, 2049, 2084, 2149, 2164, 2186, 2211, 2273, 2291, 2338, + /* 50 */ 2353, -273, 163, 302, -44, 312, 344, 583, -316, -280, + /* 60 */ 724, -26, -403, 134, 375, -266, -168, -373, -326, -350, + /* 70 */ 46, -324, -346, -133, 145, -80, 146, 299, -297, -180, + /* 80 */ 84, 307, 187, 325, 387, 399, 424, 433, -56, 428, + /* 90 */ 465, 224, 347, 498, 500, 70, 382, 513, 529, 169, + /* 100 */ 594, 603, 440, 625, 273, 490, 606, 631, -308, -249, + /* 110 */ -452, -452, 242, -250, -207, 7, 252, 373, 515, 570, + /* 120 */ 608, 609, 641, 677, 680, 682, 747, 748, 754, 755, + /* 130 */ 785, 787, 802, -288, 45, 168, -388, -327, 92, 258, + /* 140 */ 45, 231, 444, -25, 561, 574, 664, 533, -32, 337, + /* 150 */ 364, 109, 667, 401, 718, 763, 789, 812, 686, 722, + /* 160 */ 453, 502, 843, 846, 873, 875, 882, 873, 852, 904, + /* 170 */ 946, 624, 795, 813, 937, 836, 941, 949, 938, 909, + /* 180 */ 938, 964, 921, 974, 976, 939, 924, 888, 888, 870, + /* 190 */ 888, 899, 898, 938, 965, 959, 995, 997, 1066, 1005, + /* 200 */ 1069, 1017, 1086, 1038, 1039, 1090, 1044, 1048, 1099, 1097, + /* 210 */ 1100, 1054, 1057, 1061, 1095, 1106, 1120, 1121, 1124, 1126, + /* 220 */ 1129, 1148, 1143, 1149, 1150, 1072, 1135, 1103, 1139, 1152, + /* 230 */ 1088, 1155, 1154, 1157, 1114, 1158, 1160, 1171, 1165, 1164, + /* 240 */ 1162, 1170, 1172, 1173, 1174, 1175, 1176, 1178, 1180, 1181, + /* 250 */ 1184, 1187, 1193, 1202, 1196, 1153, 1159, 1179, 1123, 1138, + /* 260 */ 1144, 1205, 1156, 1161, 1185, 1216, 1186, 1163, 1222, 1188, + /* 270 */ 1190, 1197, 1105, 1189, 1201, 1125, 1191, 1207, 1209, 938, + /* 280 */ 1130, 1134, 1132, 1140, 1145, 1167, 1204, 1127, 1136, 1192, + /* 290 */ 888, 1270, 1194, 1168, 1199, 1275, 1271, 1273, 1228, 1238, + /* 300 */ 1244, 1247, 1248, 1250, 1234, 1251, 1246, 1279, 1285, 1289, + /* 310 */ 1307, 1218, 1286, 1284, 1303, 1324, 1320, 1340, 1350, 1352, + /* 320 */ 1268, 1274, 1290, 1305, 1342, 1344, 1346, 1335, 1388, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 10 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 20 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 30 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 40 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 50 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 60 */ 2100, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 70 */ 1789, 1789, 1789, 1789, 2073, 1789, 1789, 1789, 1789, 1789, - /* 80 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 90 */ 1789, 1878, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 100 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1876, 2066, - /* 110 */ 2292, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 120 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 130 */ 1789, 1789, 1789, 1789, 2304, 1789, 1789, 1852, 1852, 1789, - /* 140 */ 2304, 2304, 2304, 1876, 2264, 2264, 1789, 1878, 2134, 1789, - /* 150 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1998, 1789, 1789, - /* 160 */ 1789, 1789, 1789, 2022, 1789, 1789, 1789, 2126, 1789, 1789, - /* 170 */ 2333, 2390, 1789, 1789, 2336, 1789, 1789, 1789, 1789, 1789, - /* 180 */ 1789, 2078, 1789, 1789, 1951, 2323, 2296, 2310, 2374, 2297, - /* 190 */ 2294, 2317, 1789, 2327, 1789, 1789, 2148, 1878, 1789, 1878, - /* 200 */ 2113, 1789, 2071, 1789, 1789, 2071, 2068, 1789, 1789, 1789, - /* 210 */ 2071, 2068, 2068, 1940, 1936, 1789, 1934, 1789, 1789, 1789, - /* 220 */ 1789, 1836, 1789, 1836, 1789, 1878, 1789, 1878, 1789, 1789, - /* 230 */ 1878, 1789, 1878, 1789, 1878, 1878, 1789, 1878, 1789, 1789, - /* 240 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 250 */ 1789, 1789, 1789, 1789, 1789, 2146, 2132, 1789, 1876, 2124, - /* 260 */ 2122, 1789, 1876, 2120, 2327, 1789, 1789, 1789, 1789, 2344, - /* 270 */ 2342, 1789, 2344, 2342, 1789, 1789, 1789, 2358, 2354, 2344, - /* 280 */ 2363, 2360, 2329, 2327, 2393, 2380, 2376, 2310, 1789, 1789, - /* 290 */ 2315, 2313, 1789, 1876, 1876, 2342, 1789, 1789, 1789, 1789, - /* 300 */ 1789, 2342, 1789, 1789, 1876, 1789, 1876, 1789, 1789, 1967, - /* 310 */ 1789, 1789, 1789, 1876, 1821, 1789, 2115, 2137, 2096, 2096, - /* 320 */ 2001, 2001, 2001, 1879, 1794, 1789, 1789, 1789, 1789, 1789, - /* 330 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 2357, 2356, 2219, - /* 340 */ 1789, 2268, 2267, 2266, 2257, 2218, 1963, 1789, 2217, 2216, - /* 350 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 2087, - /* 360 */ 2086, 2210, 1789, 1789, 2211, 2209, 2208, 1789, 1789, 1789, - /* 370 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 380 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 390 */ 1789, 2377, 2381, 1789, 1789, 1789, 1789, 1789, 1789, 2293, - /* 400 */ 1789, 1789, 1789, 2192, 1789, 1789, 1789, 1789, 1789, 1789, - /* 410 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 420 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 430 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 440 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 450 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 460 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 470 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 480 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 490 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 500 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 510 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 520 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 530 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1826, 2197, - /* 540 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 550 */ 1789, 1789, 2200, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 560 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 570 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 580 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 590 */ 1789, 1789, 1917, 1916, 1789, 1789, 1789, 1789, 1789, 1789, - /* 600 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 610 */ 1789, 1789, 1789, 1789, 1789, 1789, 2201, 1789, 1789, 1789, - /* 620 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 630 */ 1789, 1789, 1789, 1789, 1789, 2373, 2330, 1789, 1789, 1789, - /* 640 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 650 */ 1789, 1789, 1789, 1789, 1789, 2192, 1789, 2355, 1789, 1789, - /* 660 */ 2371, 1789, 2375, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 670 */ 2303, 2299, 1789, 1789, 2295, 1789, 1789, 1789, 1789, 1789, - /* 680 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 690 */ 1789, 1789, 2191, 1789, 2254, 1789, 1789, 1789, 2288, 1789, - /* 700 */ 1789, 2239, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 710 */ 1789, 2201, 1789, 2204, 1789, 1789, 1789, 1789, 1789, 1995, - /* 720 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 730 */ 1789, 1789, 1789, 1789, 1789, 1979, 1977, 1976, 1975, 1789, - /* 740 */ 2008, 1789, 1789, 1789, 2004, 2003, 1789, 1789, 1789, 1789, - /* 750 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1897, - /* 760 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1889, 1789, - /* 770 */ 1888, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 780 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 790 */ 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, 1789, - /* 800 */ 1789, 1789, 1789, + /* 0 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 10 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 20 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 30 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 40 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 50 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 60 */ 2125, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 70 */ 1807, 1807, 1807, 1807, 2098, 1807, 1807, 1807, 1807, 1807, + /* 80 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 90 */ 1807, 1903, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 100 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1901, 2091, + /* 110 */ 2317, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 120 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 130 */ 1807, 1807, 1807, 1807, 2329, 1807, 1807, 1877, 1877, 1807, + /* 140 */ 2329, 2329, 2329, 1901, 2289, 2289, 1807, 1903, 2159, 1807, + /* 150 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 2023, 1807, 1837, + /* 160 */ 1807, 1807, 1807, 1807, 2047, 1807, 1807, 1807, 2151, 1807, + /* 170 */ 1807, 2358, 2415, 1807, 1807, 2361, 1807, 1807, 1807, 1807, + /* 180 */ 1807, 1807, 2103, 1807, 1807, 1976, 2348, 2321, 2335, 2399, + /* 190 */ 2322, 2319, 2342, 1807, 2352, 1807, 1807, 2173, 1903, 1807, + /* 200 */ 1903, 2138, 1807, 2096, 1807, 1807, 2096, 2093, 1807, 1807, + /* 210 */ 1807, 2096, 2093, 2093, 1965, 1961, 1807, 1959, 1807, 1807, + /* 220 */ 1807, 1807, 1861, 1807, 1861, 1807, 1903, 1807, 1903, 1807, + /* 230 */ 1807, 1903, 1807, 1903, 1807, 1903, 1903, 1807, 1903, 1807, + /* 240 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 250 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 2171, 2157, + /* 260 */ 1807, 1901, 2149, 2147, 1807, 1901, 2145, 2352, 1807, 1807, + /* 270 */ 1807, 1807, 2369, 2367, 1807, 2369, 2367, 1807, 1807, 1807, + /* 280 */ 2383, 2379, 2369, 2388, 2385, 2354, 2352, 2418, 2405, 2401, + /* 290 */ 2335, 1807, 1807, 2340, 2338, 1807, 1901, 1901, 2367, 1807, + /* 300 */ 1807, 1807, 1807, 1807, 2367, 1807, 1807, 1901, 1807, 1901, + /* 310 */ 1807, 1807, 1992, 1807, 1807, 1807, 1901, 1807, 1846, 1807, + /* 320 */ 2140, 2162, 2121, 2121, 2026, 2026, 2026, 1904, 1812, 1807, + /* 330 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 340 */ 1807, 2382, 2381, 2244, 1807, 2293, 2292, 2291, 2282, 2243, + /* 350 */ 1988, 1807, 1807, 2242, 2241, 1807, 1807, 1807, 1807, 1807, + /* 360 */ 1807, 1807, 1807, 2112, 2111, 2235, 1807, 1807, 2236, 2234, + /* 370 */ 2233, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 380 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 390 */ 1807, 1807, 1807, 1807, 1807, 2402, 2406, 1807, 1807, 1807, + /* 400 */ 1807, 1807, 1807, 2318, 1807, 1807, 1807, 2217, 1807, 1807, + /* 410 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 420 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 430 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 440 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 450 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 460 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 470 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 480 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 490 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 500 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 510 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 520 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 530 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 540 */ 1807, 1807, 1851, 2222, 1807, 1807, 1807, 1807, 1807, 1807, + /* 550 */ 1807, 1807, 1807, 1807, 1807, 1807, 2225, 1807, 1807, 1807, + /* 560 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 570 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 580 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 590 */ 1807, 1807, 1807, 1807, 1807, 1807, 1942, 1941, 1807, 1807, + /* 600 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 610 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 620 */ 1807, 1807, 2226, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 630 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 640 */ 1807, 2398, 2355, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 650 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 660 */ 1807, 2217, 1807, 2380, 1807, 1807, 2396, 1807, 2400, 1807, + /* 670 */ 1807, 1807, 1807, 1807, 1807, 1807, 2328, 2324, 1807, 1807, + /* 680 */ 2320, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 690 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 2216, 1807, + /* 700 */ 2279, 1807, 1807, 1807, 2313, 1807, 1807, 2264, 1807, 1807, + /* 710 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 2226, 1807, 2229, + /* 720 */ 1807, 1807, 1807, 1807, 1807, 2020, 1807, 1807, 1807, 1807, + /* 730 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 740 */ 1807, 2004, 2002, 2001, 2000, 1807, 2033, 1807, 1807, 1807, + /* 750 */ 2029, 2028, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 760 */ 1807, 1807, 1807, 1807, 1807, 1922, 1807, 1807, 1807, 1807, + /* 770 */ 1807, 1807, 1807, 1807, 1914, 1807, 1913, 1807, 1807, 1807, + /* 780 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 790 */ 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, 1807, + /* 800 */ 1807, 1807, 1807, 1807, 1836, 1807, 1807, 1807, 1807, 1807, + /* 810 */ 1807, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1075,10 +1418,13 @@ static const YYCODETYPE yyFallback[] = { 0, /* USERS => nothing */ 0, /* CONNS => nothing */ 0, /* STATE => nothing */ + 0, /* NK_COMMA => nothing */ + 0, /* HOST => nothing */ 0, /* USER => nothing */ 0, /* ENABLE => nothing */ 0, /* NK_INTEGER => nothing */ 0, /* SYSINFO => nothing */ + 0, /* ADD => nothing */ 0, /* DROP => nothing */ 0, /* GRANT => nothing */ 0, /* ON => nothing */ @@ -1086,7 +1432,6 @@ static const YYCODETYPE yyFallback[] = { 0, /* REVOKE => nothing */ 0, /* FROM => nothing */ 0, /* SUBSCRIBE => nothing */ - 0, /* NK_COMMA => nothing */ 0, /* READ => nothing */ 0, /* WRITE => nothing */ 0, /* NK_DOT => nothing */ @@ -1143,12 +1488,11 @@ static const YYCODETYPE yyFallback[] = { 0, /* BWLIMIT => nothing */ 0, /* START => nothing */ 0, /* TIMESTAMP => nothing */ - 288, /* END => ABORT */ + 289, /* END => ABORT */ 0, /* TABLE => nothing */ 0, /* NK_LP => nothing */ 0, /* NK_RP => nothing */ 0, /* STABLE => nothing */ - 0, /* ADD => nothing */ 0, /* COLUMN => nothing */ 0, /* MODIFY => nothing */ 0, /* RENAME => nothing */ @@ -1331,56 +1675,56 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ABORT => nothing */ - 288, /* AFTER => ABORT */ - 288, /* ATTACH => ABORT */ - 288, /* BEFORE => ABORT */ - 288, /* BEGIN => ABORT */ - 288, /* BITAND => ABORT */ - 288, /* BITNOT => ABORT */ - 288, /* BITOR => ABORT */ - 288, /* BLOCKS => ABORT */ - 288, /* CHANGE => ABORT */ - 288, /* COMMA => ABORT */ - 288, /* CONCAT => ABORT */ - 288, /* CONFLICT => ABORT */ - 288, /* COPY => ABORT */ - 288, /* DEFERRED => ABORT */ - 288, /* DELIMITERS => ABORT */ - 288, /* DETACH => ABORT */ - 288, /* DIVIDE => ABORT */ - 288, /* DOT => ABORT */ - 288, /* EACH => ABORT */ - 288, /* FAIL => ABORT */ - 288, /* FILE => ABORT */ - 288, /* FOR => ABORT */ - 288, /* GLOB => ABORT */ - 288, /* ID => ABORT */ - 288, /* IMMEDIATE => ABORT */ - 288, /* IMPORT => ABORT */ - 288, /* INITIALLY => ABORT */ - 288, /* INSTEAD => ABORT */ - 288, /* ISNULL => ABORT */ - 288, /* KEY => ABORT */ - 288, /* MODULES => ABORT */ - 288, /* NK_BITNOT => ABORT */ - 288, /* NK_SEMI => ABORT */ - 288, /* NOTNULL => ABORT */ - 288, /* OF => ABORT */ - 288, /* PLUS => ABORT */ - 288, /* PRIVILEGE => ABORT */ - 288, /* RAISE => ABORT */ - 288, /* RESTRICT => ABORT */ - 288, /* ROW => ABORT */ - 288, /* SEMI => ABORT */ - 288, /* STAR => ABORT */ - 288, /* STATEMENT => ABORT */ - 288, /* STRICT => ABORT */ - 288, /* STRING => ABORT */ - 288, /* TIMES => ABORT */ - 288, /* VALUES => ABORT */ - 288, /* VARIABLE => ABORT */ - 288, /* VIEW => ABORT */ - 288, /* WAL => ABORT */ + 289, /* AFTER => ABORT */ + 289, /* ATTACH => ABORT */ + 289, /* BEFORE => ABORT */ + 289, /* BEGIN => ABORT */ + 289, /* BITAND => ABORT */ + 289, /* BITNOT => ABORT */ + 289, /* BITOR => ABORT */ + 289, /* BLOCKS => ABORT */ + 289, /* CHANGE => ABORT */ + 289, /* COMMA => ABORT */ + 289, /* CONCAT => ABORT */ + 289, /* CONFLICT => ABORT */ + 289, /* COPY => ABORT */ + 289, /* DEFERRED => ABORT */ + 289, /* DELIMITERS => ABORT */ + 289, /* DETACH => ABORT */ + 289, /* DIVIDE => ABORT */ + 289, /* DOT => ABORT */ + 289, /* EACH => ABORT */ + 289, /* FAIL => ABORT */ + 289, /* FILE => ABORT */ + 289, /* FOR => ABORT */ + 289, /* GLOB => ABORT */ + 289, /* ID => ABORT */ + 289, /* IMMEDIATE => ABORT */ + 289, /* IMPORT => ABORT */ + 289, /* INITIALLY => ABORT */ + 289, /* INSTEAD => ABORT */ + 289, /* ISNULL => ABORT */ + 289, /* KEY => ABORT */ + 289, /* MODULES => ABORT */ + 289, /* NK_BITNOT => ABORT */ + 289, /* NK_SEMI => ABORT */ + 289, /* NOTNULL => ABORT */ + 289, /* OF => ABORT */ + 289, /* PLUS => ABORT */ + 289, /* PRIVILEGE => ABORT */ + 289, /* RAISE => ABORT */ + 289, /* RESTRICT => ABORT */ + 289, /* ROW => ABORT */ + 289, /* SEMI => ABORT */ + 289, /* STAR => ABORT */ + 289, /* STATEMENT => ABORT */ + 289, /* STRICT => ABORT */ + 289, /* STRING => ABORT */ + 289, /* TIMES => ABORT */ + 289, /* VALUES => ABORT */ + 289, /* VARIABLE => ABORT */ + 289, /* VIEW => ABORT */ + 289, /* WAL => ABORT */ }; #endif /* YYFALLBACK */ @@ -1432,6 +1776,7 @@ struct yyParser { }; typedef struct yyParser yyParser; +#include #ifndef NDEBUG #include static FILE *yyTraceFILE = 0; @@ -1501,463 +1846,467 @@ static const char *const yyTokenName[] = { /* 30 */ "USERS", /* 31 */ "CONNS", /* 32 */ "STATE", - /* 33 */ "USER", - /* 34 */ "ENABLE", - /* 35 */ "NK_INTEGER", - /* 36 */ "SYSINFO", - /* 37 */ "DROP", - /* 38 */ "GRANT", - /* 39 */ "ON", - /* 40 */ "TO", - /* 41 */ "REVOKE", - /* 42 */ "FROM", - /* 43 */ "SUBSCRIBE", - /* 44 */ "NK_COMMA", - /* 45 */ "READ", - /* 46 */ "WRITE", - /* 47 */ "NK_DOT", - /* 48 */ "WITH", - /* 49 */ "DNODE", - /* 50 */ "PORT", - /* 51 */ "DNODES", - /* 52 */ "RESTORE", - /* 53 */ "NK_IPTOKEN", - /* 54 */ "FORCE", - /* 55 */ "UNSAFE", - /* 56 */ "LOCAL", - /* 57 */ "QNODE", - /* 58 */ "BNODE", - /* 59 */ "SNODE", - /* 60 */ "MNODE", - /* 61 */ "VNODE", - /* 62 */ "DATABASE", - /* 63 */ "USE", - /* 64 */ "FLUSH", - /* 65 */ "TRIM", - /* 66 */ "COMPACT", - /* 67 */ "IF", - /* 68 */ "NOT", - /* 69 */ "EXISTS", - /* 70 */ "BUFFER", - /* 71 */ "CACHEMODEL", - /* 72 */ "CACHESIZE", - /* 73 */ "COMP", - /* 74 */ "DURATION", - /* 75 */ "NK_VARIABLE", - /* 76 */ "MAXROWS", - /* 77 */ "MINROWS", - /* 78 */ "KEEP", - /* 79 */ "PAGES", - /* 80 */ "PAGESIZE", - /* 81 */ "TSDB_PAGESIZE", - /* 82 */ "PRECISION", - /* 83 */ "REPLICA", - /* 84 */ "VGROUPS", - /* 85 */ "SINGLE_STABLE", - /* 86 */ "RETENTIONS", - /* 87 */ "SCHEMALESS", - /* 88 */ "WAL_LEVEL", - /* 89 */ "WAL_FSYNC_PERIOD", - /* 90 */ "WAL_RETENTION_PERIOD", - /* 91 */ "WAL_RETENTION_SIZE", - /* 92 */ "WAL_ROLL_PERIOD", - /* 93 */ "WAL_SEGMENT_SIZE", - /* 94 */ "STT_TRIGGER", - /* 95 */ "TABLE_PREFIX", - /* 96 */ "TABLE_SUFFIX", - /* 97 */ "NK_COLON", - /* 98 */ "BWLIMIT", - /* 99 */ "START", - /* 100 */ "TIMESTAMP", - /* 101 */ "END", - /* 102 */ "TABLE", - /* 103 */ "NK_LP", - /* 104 */ "NK_RP", - /* 105 */ "STABLE", - /* 106 */ "ADD", - /* 107 */ "COLUMN", - /* 108 */ "MODIFY", - /* 109 */ "RENAME", - /* 110 */ "TAG", - /* 111 */ "SET", - /* 112 */ "NK_EQ", - /* 113 */ "USING", - /* 114 */ "TAGS", - /* 115 */ "BOOL", - /* 116 */ "TINYINT", - /* 117 */ "SMALLINT", - /* 118 */ "INT", - /* 119 */ "INTEGER", - /* 120 */ "BIGINT", - /* 121 */ "FLOAT", - /* 122 */ "DOUBLE", - /* 123 */ "BINARY", - /* 124 */ "NCHAR", - /* 125 */ "UNSIGNED", - /* 126 */ "JSON", - /* 127 */ "VARCHAR", - /* 128 */ "MEDIUMBLOB", - /* 129 */ "BLOB", - /* 130 */ "VARBINARY", - /* 131 */ "GEOMETRY", - /* 132 */ "DECIMAL", - /* 133 */ "COMMENT", - /* 134 */ "MAX_DELAY", - /* 135 */ "WATERMARK", - /* 136 */ "ROLLUP", - /* 137 */ "TTL", - /* 138 */ "SMA", - /* 139 */ "DELETE_MARK", - /* 140 */ "FIRST", - /* 141 */ "LAST", - /* 142 */ "SHOW", - /* 143 */ "PRIVILEGES", - /* 144 */ "DATABASES", - /* 145 */ "TABLES", - /* 146 */ "STABLES", - /* 147 */ "MNODES", - /* 148 */ "QNODES", - /* 149 */ "FUNCTIONS", - /* 150 */ "INDEXES", - /* 151 */ "ACCOUNTS", - /* 152 */ "APPS", - /* 153 */ "CONNECTIONS", - /* 154 */ "LICENCES", - /* 155 */ "GRANTS", - /* 156 */ "QUERIES", - /* 157 */ "SCORES", - /* 158 */ "TOPICS", - /* 159 */ "VARIABLES", - /* 160 */ "CLUSTER", - /* 161 */ "BNODES", - /* 162 */ "SNODES", - /* 163 */ "TRANSACTIONS", - /* 164 */ "DISTRIBUTED", - /* 165 */ "CONSUMERS", - /* 166 */ "SUBSCRIPTIONS", - /* 167 */ "VNODES", - /* 168 */ "ALIVE", - /* 169 */ "LIKE", - /* 170 */ "TBNAME", - /* 171 */ "QTAGS", - /* 172 */ "AS", - /* 173 */ "INDEX", - /* 174 */ "FUNCTION", - /* 175 */ "INTERVAL", - /* 176 */ "COUNT", - /* 177 */ "LAST_ROW", - /* 178 */ "META", - /* 179 */ "ONLY", - /* 180 */ "TOPIC", - /* 181 */ "CONSUMER", - /* 182 */ "GROUP", - /* 183 */ "DESC", - /* 184 */ "DESCRIBE", - /* 185 */ "RESET", - /* 186 */ "QUERY", - /* 187 */ "CACHE", - /* 188 */ "EXPLAIN", - /* 189 */ "ANALYZE", - /* 190 */ "VERBOSE", - /* 191 */ "NK_BOOL", - /* 192 */ "RATIO", - /* 193 */ "NK_FLOAT", - /* 194 */ "OUTPUTTYPE", - /* 195 */ "AGGREGATE", - /* 196 */ "BUFSIZE", - /* 197 */ "LANGUAGE", - /* 198 */ "REPLACE", - /* 199 */ "STREAM", - /* 200 */ "INTO", - /* 201 */ "PAUSE", - /* 202 */ "RESUME", - /* 203 */ "TRIGGER", - /* 204 */ "AT_ONCE", - /* 205 */ "WINDOW_CLOSE", - /* 206 */ "IGNORE", - /* 207 */ "EXPIRED", - /* 208 */ "FILL_HISTORY", - /* 209 */ "UPDATE", - /* 210 */ "SUBTABLE", - /* 211 */ "UNTREATED", - /* 212 */ "KILL", - /* 213 */ "CONNECTION", - /* 214 */ "TRANSACTION", - /* 215 */ "BALANCE", - /* 216 */ "VGROUP", - /* 217 */ "LEADER", - /* 218 */ "MERGE", - /* 219 */ "REDISTRIBUTE", - /* 220 */ "SPLIT", - /* 221 */ "DELETE", - /* 222 */ "INSERT", - /* 223 */ "NULL", - /* 224 */ "NK_QUESTION", - /* 225 */ "NK_ARROW", - /* 226 */ "ROWTS", - /* 227 */ "QSTART", - /* 228 */ "QEND", - /* 229 */ "QDURATION", - /* 230 */ "WSTART", - /* 231 */ "WEND", - /* 232 */ "WDURATION", - /* 233 */ "IROWTS", - /* 234 */ "ISFILLED", - /* 235 */ "CAST", - /* 236 */ "NOW", - /* 237 */ "TODAY", - /* 238 */ "TIMEZONE", - /* 239 */ "CLIENT_VERSION", - /* 240 */ "SERVER_VERSION", - /* 241 */ "SERVER_STATUS", - /* 242 */ "CURRENT_USER", - /* 243 */ "CASE", - /* 244 */ "WHEN", - /* 245 */ "THEN", - /* 246 */ "ELSE", - /* 247 */ "BETWEEN", - /* 248 */ "IS", - /* 249 */ "NK_LT", - /* 250 */ "NK_GT", - /* 251 */ "NK_LE", - /* 252 */ "NK_GE", - /* 253 */ "NK_NE", - /* 254 */ "MATCH", - /* 255 */ "NMATCH", - /* 256 */ "CONTAINS", - /* 257 */ "IN", - /* 258 */ "JOIN", - /* 259 */ "INNER", - /* 260 */ "SELECT", - /* 261 */ "NK_HINT", - /* 262 */ "DISTINCT", - /* 263 */ "WHERE", - /* 264 */ "PARTITION", - /* 265 */ "BY", - /* 266 */ "SESSION", - /* 267 */ "STATE_WINDOW", - /* 268 */ "EVENT_WINDOW", - /* 269 */ "SLIDING", - /* 270 */ "FILL", - /* 271 */ "VALUE", - /* 272 */ "VALUE_F", - /* 273 */ "NONE", - /* 274 */ "PREV", - /* 275 */ "NULL_F", - /* 276 */ "LINEAR", - /* 277 */ "NEXT", - /* 278 */ "HAVING", - /* 279 */ "RANGE", - /* 280 */ "EVERY", - /* 281 */ "ORDER", - /* 282 */ "SLIMIT", - /* 283 */ "SOFFSET", - /* 284 */ "LIMIT", - /* 285 */ "OFFSET", - /* 286 */ "ASC", - /* 287 */ "NULLS", - /* 288 */ "ABORT", - /* 289 */ "AFTER", - /* 290 */ "ATTACH", - /* 291 */ "BEFORE", - /* 292 */ "BEGIN", - /* 293 */ "BITAND", - /* 294 */ "BITNOT", - /* 295 */ "BITOR", - /* 296 */ "BLOCKS", - /* 297 */ "CHANGE", - /* 298 */ "COMMA", - /* 299 */ "CONCAT", - /* 300 */ "CONFLICT", - /* 301 */ "COPY", - /* 302 */ "DEFERRED", - /* 303 */ "DELIMITERS", - /* 304 */ "DETACH", - /* 305 */ "DIVIDE", - /* 306 */ "DOT", - /* 307 */ "EACH", - /* 308 */ "FAIL", - /* 309 */ "FILE", - /* 310 */ "FOR", - /* 311 */ "GLOB", - /* 312 */ "ID", - /* 313 */ "IMMEDIATE", - /* 314 */ "IMPORT", - /* 315 */ "INITIALLY", - /* 316 */ "INSTEAD", - /* 317 */ "ISNULL", - /* 318 */ "KEY", - /* 319 */ "MODULES", - /* 320 */ "NK_BITNOT", - /* 321 */ "NK_SEMI", - /* 322 */ "NOTNULL", - /* 323 */ "OF", - /* 324 */ "PLUS", - /* 325 */ "PRIVILEGE", - /* 326 */ "RAISE", - /* 327 */ "RESTRICT", - /* 328 */ "ROW", - /* 329 */ "SEMI", - /* 330 */ "STAR", - /* 331 */ "STATEMENT", - /* 332 */ "STRICT", - /* 333 */ "STRING", - /* 334 */ "TIMES", - /* 335 */ "VALUES", - /* 336 */ "VARIABLE", - /* 337 */ "VIEW", - /* 338 */ "WAL", - /* 339 */ "cmd", - /* 340 */ "account_options", - /* 341 */ "alter_account_options", - /* 342 */ "literal", - /* 343 */ "alter_account_option", - /* 344 */ "user_name", - /* 345 */ "sysinfo_opt", - /* 346 */ "privileges", - /* 347 */ "priv_level", - /* 348 */ "with_opt", - /* 349 */ "priv_type_list", - /* 350 */ "priv_type", - /* 351 */ "db_name", - /* 352 */ "table_name", - /* 353 */ "topic_name", - /* 354 */ "search_condition", - /* 355 */ "dnode_endpoint", - /* 356 */ "force_opt", - /* 357 */ "unsafe_opt", - /* 358 */ "not_exists_opt", - /* 359 */ "db_options", - /* 360 */ "exists_opt", - /* 361 */ "alter_db_options", - /* 362 */ "speed_opt", - /* 363 */ "start_opt", - /* 364 */ "end_opt", - /* 365 */ "integer_list", - /* 366 */ "variable_list", - /* 367 */ "retention_list", - /* 368 */ "signed", - /* 369 */ "alter_db_option", - /* 370 */ "retention", - /* 371 */ "full_table_name", - /* 372 */ "column_def_list", - /* 373 */ "tags_def_opt", - /* 374 */ "table_options", - /* 375 */ "multi_create_clause", - /* 376 */ "tags_def", - /* 377 */ "multi_drop_clause", - /* 378 */ "alter_table_clause", - /* 379 */ "alter_table_options", - /* 380 */ "column_name", - /* 381 */ "type_name", - /* 382 */ "signed_literal", - /* 383 */ "create_subtable_clause", - /* 384 */ "specific_cols_opt", - /* 385 */ "expression_list", - /* 386 */ "drop_table_clause", - /* 387 */ "col_name_list", - /* 388 */ "column_def", - /* 389 */ "duration_list", - /* 390 */ "rollup_func_list", - /* 391 */ "alter_table_option", - /* 392 */ "duration_literal", - /* 393 */ "rollup_func_name", - /* 394 */ "function_name", - /* 395 */ "col_name", - /* 396 */ "db_name_cond_opt", - /* 397 */ "like_pattern_opt", - /* 398 */ "table_name_cond", - /* 399 */ "from_db_opt", - /* 400 */ "tag_list_opt", - /* 401 */ "tag_item", - /* 402 */ "column_alias", - /* 403 */ "index_options", - /* 404 */ "full_index_name", - /* 405 */ "index_name", - /* 406 */ "func_list", - /* 407 */ "sliding_opt", - /* 408 */ "sma_stream_opt", - /* 409 */ "func", - /* 410 */ "sma_func_name", - /* 411 */ "with_meta", - /* 412 */ "query_or_subquery", - /* 413 */ "where_clause_opt", - /* 414 */ "cgroup_name", - /* 415 */ "analyze_opt", - /* 416 */ "explain_options", - /* 417 */ "insert_query", - /* 418 */ "or_replace_opt", - /* 419 */ "agg_func_opt", - /* 420 */ "bufsize_opt", - /* 421 */ "language_opt", - /* 422 */ "stream_name", - /* 423 */ "stream_options", - /* 424 */ "col_list_opt", - /* 425 */ "tag_def_or_ref_opt", - /* 426 */ "subtable_opt", - /* 427 */ "ignore_opt", - /* 428 */ "expression", - /* 429 */ "dnode_list", - /* 430 */ "literal_func", - /* 431 */ "literal_list", - /* 432 */ "table_alias", - /* 433 */ "expr_or_subquery", - /* 434 */ "pseudo_column", - /* 435 */ "column_reference", - /* 436 */ "function_expression", - /* 437 */ "case_when_expression", - /* 438 */ "star_func", - /* 439 */ "star_func_para_list", - /* 440 */ "noarg_func", - /* 441 */ "other_para_list", - /* 442 */ "star_func_para", - /* 443 */ "when_then_list", - /* 444 */ "case_when_else_opt", - /* 445 */ "common_expression", - /* 446 */ "when_then_expr", - /* 447 */ "predicate", - /* 448 */ "compare_op", - /* 449 */ "in_op", - /* 450 */ "in_predicate_value", - /* 451 */ "boolean_value_expression", - /* 452 */ "boolean_primary", - /* 453 */ "from_clause_opt", - /* 454 */ "table_reference_list", - /* 455 */ "table_reference", - /* 456 */ "table_primary", - /* 457 */ "joined_table", - /* 458 */ "alias_opt", - /* 459 */ "subquery", - /* 460 */ "parenthesized_joined_table", - /* 461 */ "join_type", - /* 462 */ "query_specification", - /* 463 */ "hint_list", - /* 464 */ "set_quantifier_opt", - /* 465 */ "tag_mode_opt", - /* 466 */ "select_list", - /* 467 */ "partition_by_clause_opt", - /* 468 */ "range_opt", - /* 469 */ "every_opt", - /* 470 */ "fill_opt", - /* 471 */ "twindow_clause_opt", - /* 472 */ "group_by_clause_opt", - /* 473 */ "having_clause_opt", - /* 474 */ "select_item", - /* 475 */ "partition_list", - /* 476 */ "partition_item", - /* 477 */ "fill_mode", - /* 478 */ "group_by_list", - /* 479 */ "query_expression", - /* 480 */ "query_simple", - /* 481 */ "order_by_clause_opt", - /* 482 */ "slimit_clause_opt", - /* 483 */ "limit_clause_opt", - /* 484 */ "union_query_expression", - /* 485 */ "query_simple_or_subquery", - /* 486 */ "sort_specification_list", - /* 487 */ "sort_specification", - /* 488 */ "ordering_specification_opt", - /* 489 */ "null_ordering_opt", + /* 33 */ "NK_COMMA", + /* 34 */ "HOST", + /* 35 */ "USER", + /* 36 */ "ENABLE", + /* 37 */ "NK_INTEGER", + /* 38 */ "SYSINFO", + /* 39 */ "ADD", + /* 40 */ "DROP", + /* 41 */ "GRANT", + /* 42 */ "ON", + /* 43 */ "TO", + /* 44 */ "REVOKE", + /* 45 */ "FROM", + /* 46 */ "SUBSCRIBE", + /* 47 */ "READ", + /* 48 */ "WRITE", + /* 49 */ "NK_DOT", + /* 50 */ "WITH", + /* 51 */ "DNODE", + /* 52 */ "PORT", + /* 53 */ "DNODES", + /* 54 */ "RESTORE", + /* 55 */ "NK_IPTOKEN", + /* 56 */ "FORCE", + /* 57 */ "UNSAFE", + /* 58 */ "LOCAL", + /* 59 */ "QNODE", + /* 60 */ "BNODE", + /* 61 */ "SNODE", + /* 62 */ "MNODE", + /* 63 */ "VNODE", + /* 64 */ "DATABASE", + /* 65 */ "USE", + /* 66 */ "FLUSH", + /* 67 */ "TRIM", + /* 68 */ "COMPACT", + /* 69 */ "IF", + /* 70 */ "NOT", + /* 71 */ "EXISTS", + /* 72 */ "BUFFER", + /* 73 */ "CACHEMODEL", + /* 74 */ "CACHESIZE", + /* 75 */ "COMP", + /* 76 */ "DURATION", + /* 77 */ "NK_VARIABLE", + /* 78 */ "MAXROWS", + /* 79 */ "MINROWS", + /* 80 */ "KEEP", + /* 81 */ "PAGES", + /* 82 */ "PAGESIZE", + /* 83 */ "TSDB_PAGESIZE", + /* 84 */ "PRECISION", + /* 85 */ "REPLICA", + /* 86 */ "VGROUPS", + /* 87 */ "SINGLE_STABLE", + /* 88 */ "RETENTIONS", + /* 89 */ "SCHEMALESS", + /* 90 */ "WAL_LEVEL", + /* 91 */ "WAL_FSYNC_PERIOD", + /* 92 */ "WAL_RETENTION_PERIOD", + /* 93 */ "WAL_RETENTION_SIZE", + /* 94 */ "WAL_ROLL_PERIOD", + /* 95 */ "WAL_SEGMENT_SIZE", + /* 96 */ "STT_TRIGGER", + /* 97 */ "TABLE_PREFIX", + /* 98 */ "TABLE_SUFFIX", + /* 99 */ "NK_COLON", + /* 100 */ "BWLIMIT", + /* 101 */ "START", + /* 102 */ "TIMESTAMP", + /* 103 */ "END", + /* 104 */ "TABLE", + /* 105 */ "NK_LP", + /* 106 */ "NK_RP", + /* 107 */ "STABLE", + /* 108 */ "COLUMN", + /* 109 */ "MODIFY", + /* 110 */ "RENAME", + /* 111 */ "TAG", + /* 112 */ "SET", + /* 113 */ "NK_EQ", + /* 114 */ "USING", + /* 115 */ "TAGS", + /* 116 */ "BOOL", + /* 117 */ "TINYINT", + /* 118 */ "SMALLINT", + /* 119 */ "INT", + /* 120 */ "INTEGER", + /* 121 */ "BIGINT", + /* 122 */ "FLOAT", + /* 123 */ "DOUBLE", + /* 124 */ "BINARY", + /* 125 */ "NCHAR", + /* 126 */ "UNSIGNED", + /* 127 */ "JSON", + /* 128 */ "VARCHAR", + /* 129 */ "MEDIUMBLOB", + /* 130 */ "BLOB", + /* 131 */ "VARBINARY", + /* 132 */ "GEOMETRY", + /* 133 */ "DECIMAL", + /* 134 */ "COMMENT", + /* 135 */ "MAX_DELAY", + /* 136 */ "WATERMARK", + /* 137 */ "ROLLUP", + /* 138 */ "TTL", + /* 139 */ "SMA", + /* 140 */ "DELETE_MARK", + /* 141 */ "FIRST", + /* 142 */ "LAST", + /* 143 */ "SHOW", + /* 144 */ "PRIVILEGES", + /* 145 */ "DATABASES", + /* 146 */ "TABLES", + /* 147 */ "STABLES", + /* 148 */ "MNODES", + /* 149 */ "QNODES", + /* 150 */ "FUNCTIONS", + /* 151 */ "INDEXES", + /* 152 */ "ACCOUNTS", + /* 153 */ "APPS", + /* 154 */ "CONNECTIONS", + /* 155 */ "LICENCES", + /* 156 */ "GRANTS", + /* 157 */ "QUERIES", + /* 158 */ "SCORES", + /* 159 */ "TOPICS", + /* 160 */ "VARIABLES", + /* 161 */ "CLUSTER", + /* 162 */ "BNODES", + /* 163 */ "SNODES", + /* 164 */ "TRANSACTIONS", + /* 165 */ "DISTRIBUTED", + /* 166 */ "CONSUMERS", + /* 167 */ "SUBSCRIPTIONS", + /* 168 */ "VNODES", + /* 169 */ "ALIVE", + /* 170 */ "LIKE", + /* 171 */ "TBNAME", + /* 172 */ "QTAGS", + /* 173 */ "AS", + /* 174 */ "INDEX", + /* 175 */ "FUNCTION", + /* 176 */ "INTERVAL", + /* 177 */ "COUNT", + /* 178 */ "LAST_ROW", + /* 179 */ "META", + /* 180 */ "ONLY", + /* 181 */ "TOPIC", + /* 182 */ "CONSUMER", + /* 183 */ "GROUP", + /* 184 */ "DESC", + /* 185 */ "DESCRIBE", + /* 186 */ "RESET", + /* 187 */ "QUERY", + /* 188 */ "CACHE", + /* 189 */ "EXPLAIN", + /* 190 */ "ANALYZE", + /* 191 */ "VERBOSE", + /* 192 */ "NK_BOOL", + /* 193 */ "RATIO", + /* 194 */ "NK_FLOAT", + /* 195 */ "OUTPUTTYPE", + /* 196 */ "AGGREGATE", + /* 197 */ "BUFSIZE", + /* 198 */ "LANGUAGE", + /* 199 */ "REPLACE", + /* 200 */ "STREAM", + /* 201 */ "INTO", + /* 202 */ "PAUSE", + /* 203 */ "RESUME", + /* 204 */ "TRIGGER", + /* 205 */ "AT_ONCE", + /* 206 */ "WINDOW_CLOSE", + /* 207 */ "IGNORE", + /* 208 */ "EXPIRED", + /* 209 */ "FILL_HISTORY", + /* 210 */ "UPDATE", + /* 211 */ "SUBTABLE", + /* 212 */ "UNTREATED", + /* 213 */ "KILL", + /* 214 */ "CONNECTION", + /* 215 */ "TRANSACTION", + /* 216 */ "BALANCE", + /* 217 */ "VGROUP", + /* 218 */ "LEADER", + /* 219 */ "MERGE", + /* 220 */ "REDISTRIBUTE", + /* 221 */ "SPLIT", + /* 222 */ "DELETE", + /* 223 */ "INSERT", + /* 224 */ "NULL", + /* 225 */ "NK_QUESTION", + /* 226 */ "NK_ARROW", + /* 227 */ "ROWTS", + /* 228 */ "QSTART", + /* 229 */ "QEND", + /* 230 */ "QDURATION", + /* 231 */ "WSTART", + /* 232 */ "WEND", + /* 233 */ "WDURATION", + /* 234 */ "IROWTS", + /* 235 */ "ISFILLED", + /* 236 */ "CAST", + /* 237 */ "NOW", + /* 238 */ "TODAY", + /* 239 */ "TIMEZONE", + /* 240 */ "CLIENT_VERSION", + /* 241 */ "SERVER_VERSION", + /* 242 */ "SERVER_STATUS", + /* 243 */ "CURRENT_USER", + /* 244 */ "CASE", + /* 245 */ "WHEN", + /* 246 */ "THEN", + /* 247 */ "ELSE", + /* 248 */ "BETWEEN", + /* 249 */ "IS", + /* 250 */ "NK_LT", + /* 251 */ "NK_GT", + /* 252 */ "NK_LE", + /* 253 */ "NK_GE", + /* 254 */ "NK_NE", + /* 255 */ "MATCH", + /* 256 */ "NMATCH", + /* 257 */ "CONTAINS", + /* 258 */ "IN", + /* 259 */ "JOIN", + /* 260 */ "INNER", + /* 261 */ "SELECT", + /* 262 */ "NK_HINT", + /* 263 */ "DISTINCT", + /* 264 */ "WHERE", + /* 265 */ "PARTITION", + /* 266 */ "BY", + /* 267 */ "SESSION", + /* 268 */ "STATE_WINDOW", + /* 269 */ "EVENT_WINDOW", + /* 270 */ "SLIDING", + /* 271 */ "FILL", + /* 272 */ "VALUE", + /* 273 */ "VALUE_F", + /* 274 */ "NONE", + /* 275 */ "PREV", + /* 276 */ "NULL_F", + /* 277 */ "LINEAR", + /* 278 */ "NEXT", + /* 279 */ "HAVING", + /* 280 */ "RANGE", + /* 281 */ "EVERY", + /* 282 */ "ORDER", + /* 283 */ "SLIMIT", + /* 284 */ "SOFFSET", + /* 285 */ "LIMIT", + /* 286 */ "OFFSET", + /* 287 */ "ASC", + /* 288 */ "NULLS", + /* 289 */ "ABORT", + /* 290 */ "AFTER", + /* 291 */ "ATTACH", + /* 292 */ "BEFORE", + /* 293 */ "BEGIN", + /* 294 */ "BITAND", + /* 295 */ "BITNOT", + /* 296 */ "BITOR", + /* 297 */ "BLOCKS", + /* 298 */ "CHANGE", + /* 299 */ "COMMA", + /* 300 */ "CONCAT", + /* 301 */ "CONFLICT", + /* 302 */ "COPY", + /* 303 */ "DEFERRED", + /* 304 */ "DELIMITERS", + /* 305 */ "DETACH", + /* 306 */ "DIVIDE", + /* 307 */ "DOT", + /* 308 */ "EACH", + /* 309 */ "FAIL", + /* 310 */ "FILE", + /* 311 */ "FOR", + /* 312 */ "GLOB", + /* 313 */ "ID", + /* 314 */ "IMMEDIATE", + /* 315 */ "IMPORT", + /* 316 */ "INITIALLY", + /* 317 */ "INSTEAD", + /* 318 */ "ISNULL", + /* 319 */ "KEY", + /* 320 */ "MODULES", + /* 321 */ "NK_BITNOT", + /* 322 */ "NK_SEMI", + /* 323 */ "NOTNULL", + /* 324 */ "OF", + /* 325 */ "PLUS", + /* 326 */ "PRIVILEGE", + /* 327 */ "RAISE", + /* 328 */ "RESTRICT", + /* 329 */ "ROW", + /* 330 */ "SEMI", + /* 331 */ "STAR", + /* 332 */ "STATEMENT", + /* 333 */ "STRICT", + /* 334 */ "STRING", + /* 335 */ "TIMES", + /* 336 */ "VALUES", + /* 337 */ "VARIABLE", + /* 338 */ "VIEW", + /* 339 */ "WAL", + /* 340 */ "cmd", + /* 341 */ "account_options", + /* 342 */ "alter_account_options", + /* 343 */ "literal", + /* 344 */ "alter_account_option", + /* 345 */ "ip_range_list", + /* 346 */ "white_list", + /* 347 */ "white_list_opt", + /* 348 */ "user_name", + /* 349 */ "sysinfo_opt", + /* 350 */ "privileges", + /* 351 */ "priv_level", + /* 352 */ "with_opt", + /* 353 */ "priv_type_list", + /* 354 */ "priv_type", + /* 355 */ "db_name", + /* 356 */ "table_name", + /* 357 */ "topic_name", + /* 358 */ "search_condition", + /* 359 */ "dnode_endpoint", + /* 360 */ "force_opt", + /* 361 */ "unsafe_opt", + /* 362 */ "not_exists_opt", + /* 363 */ "db_options", + /* 364 */ "exists_opt", + /* 365 */ "alter_db_options", + /* 366 */ "speed_opt", + /* 367 */ "start_opt", + /* 368 */ "end_opt", + /* 369 */ "integer_list", + /* 370 */ "variable_list", + /* 371 */ "retention_list", + /* 372 */ "signed", + /* 373 */ "alter_db_option", + /* 374 */ "retention", + /* 375 */ "full_table_name", + /* 376 */ "column_def_list", + /* 377 */ "tags_def_opt", + /* 378 */ "table_options", + /* 379 */ "multi_create_clause", + /* 380 */ "tags_def", + /* 381 */ "multi_drop_clause", + /* 382 */ "alter_table_clause", + /* 383 */ "alter_table_options", + /* 384 */ "column_name", + /* 385 */ "type_name", + /* 386 */ "signed_literal", + /* 387 */ "create_subtable_clause", + /* 388 */ "specific_cols_opt", + /* 389 */ "expression_list", + /* 390 */ "drop_table_clause", + /* 391 */ "col_name_list", + /* 392 */ "column_def", + /* 393 */ "duration_list", + /* 394 */ "rollup_func_list", + /* 395 */ "alter_table_option", + /* 396 */ "duration_literal", + /* 397 */ "rollup_func_name", + /* 398 */ "function_name", + /* 399 */ "col_name", + /* 400 */ "db_name_cond_opt", + /* 401 */ "like_pattern_opt", + /* 402 */ "table_name_cond", + /* 403 */ "from_db_opt", + /* 404 */ "tag_list_opt", + /* 405 */ "tag_item", + /* 406 */ "column_alias", + /* 407 */ "index_options", + /* 408 */ "full_index_name", + /* 409 */ "index_name", + /* 410 */ "func_list", + /* 411 */ "sliding_opt", + /* 412 */ "sma_stream_opt", + /* 413 */ "func", + /* 414 */ "sma_func_name", + /* 415 */ "with_meta", + /* 416 */ "query_or_subquery", + /* 417 */ "where_clause_opt", + /* 418 */ "cgroup_name", + /* 419 */ "analyze_opt", + /* 420 */ "explain_options", + /* 421 */ "insert_query", + /* 422 */ "or_replace_opt", + /* 423 */ "agg_func_opt", + /* 424 */ "bufsize_opt", + /* 425 */ "language_opt", + /* 426 */ "stream_name", + /* 427 */ "stream_options", + /* 428 */ "col_list_opt", + /* 429 */ "tag_def_or_ref_opt", + /* 430 */ "subtable_opt", + /* 431 */ "ignore_opt", + /* 432 */ "expression", + /* 433 */ "dnode_list", + /* 434 */ "literal_func", + /* 435 */ "literal_list", + /* 436 */ "table_alias", + /* 437 */ "expr_or_subquery", + /* 438 */ "pseudo_column", + /* 439 */ "column_reference", + /* 440 */ "function_expression", + /* 441 */ "case_when_expression", + /* 442 */ "star_func", + /* 443 */ "star_func_para_list", + /* 444 */ "noarg_func", + /* 445 */ "other_para_list", + /* 446 */ "star_func_para", + /* 447 */ "when_then_list", + /* 448 */ "case_when_else_opt", + /* 449 */ "common_expression", + /* 450 */ "when_then_expr", + /* 451 */ "predicate", + /* 452 */ "compare_op", + /* 453 */ "in_op", + /* 454 */ "in_predicate_value", + /* 455 */ "boolean_value_expression", + /* 456 */ "boolean_primary", + /* 457 */ "from_clause_opt", + /* 458 */ "table_reference_list", + /* 459 */ "table_reference", + /* 460 */ "table_primary", + /* 461 */ "joined_table", + /* 462 */ "alias_opt", + /* 463 */ "subquery", + /* 464 */ "parenthesized_joined_table", + /* 465 */ "join_type", + /* 466 */ "query_specification", + /* 467 */ "hint_list", + /* 468 */ "set_quantifier_opt", + /* 469 */ "tag_mode_opt", + /* 470 */ "select_list", + /* 471 */ "partition_by_clause_opt", + /* 472 */ "range_opt", + /* 473 */ "every_opt", + /* 474 */ "fill_opt", + /* 475 */ "twindow_clause_opt", + /* 476 */ "group_by_clause_opt", + /* 477 */ "having_clause_opt", + /* 478 */ "select_item", + /* 479 */ "partition_list", + /* 480 */ "partition_item", + /* 481 */ "fill_mode", + /* 482 */ "group_by_list", + /* 483 */ "query_expression", + /* 484 */ "query_simple", + /* 485 */ "order_by_clause_opt", + /* 486 */ "slimit_clause_opt", + /* 487 */ "limit_clause_opt", + /* 488 */ "union_query_expression", + /* 489 */ "query_simple_or_subquery", + /* 490 */ "sort_specification_list", + /* 491 */ "sort_specification", + /* 492 */ "ordering_specification_opt", + /* 493 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1989,586 +2338,593 @@ 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 sysinfo_opt", - /* 25 */ "cmd ::= ALTER USER user_name PASS NK_STRING", - /* 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 with_opt TO user_name", - /* 32 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name", - /* 33 */ "privileges ::= ALL", - /* 34 */ "privileges ::= priv_type_list", - /* 35 */ "privileges ::= SUBSCRIBE", - /* 36 */ "priv_type_list ::= priv_type", - /* 37 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", - /* 38 */ "priv_type ::= READ", - /* 39 */ "priv_type ::= WRITE", - /* 40 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", - /* 41 */ "priv_level ::= db_name NK_DOT NK_STAR", - /* 42 */ "priv_level ::= db_name NK_DOT table_name", - /* 43 */ "priv_level ::= topic_name", - /* 44 */ "with_opt ::=", - /* 45 */ "with_opt ::= WITH search_condition", - /* 46 */ "cmd ::= CREATE DNODE dnode_endpoint", - /* 47 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", - /* 48 */ "cmd ::= DROP DNODE NK_INTEGER force_opt", - /* 49 */ "cmd ::= DROP DNODE dnode_endpoint force_opt", - /* 50 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt", - /* 51 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt", - /* 52 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", - /* 53 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", - /* 54 */ "cmd ::= ALTER ALL DNODES NK_STRING", - /* 55 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", - /* 56 */ "cmd ::= RESTORE DNODE NK_INTEGER", - /* 57 */ "dnode_endpoint ::= NK_STRING", - /* 58 */ "dnode_endpoint ::= NK_ID", - /* 59 */ "dnode_endpoint ::= NK_IPTOKEN", - /* 60 */ "force_opt ::=", - /* 61 */ "force_opt ::= FORCE", - /* 62 */ "unsafe_opt ::= UNSAFE", - /* 63 */ "cmd ::= ALTER LOCAL NK_STRING", - /* 64 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", - /* 65 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", - /* 66 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", - /* 67 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER", - /* 68 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", - /* 69 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", - /* 70 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", - /* 71 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", - /* 72 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", - /* 73 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", - /* 74 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER", - /* 75 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER", - /* 76 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", - /* 77 */ "cmd ::= DROP DATABASE exists_opt db_name", - /* 78 */ "cmd ::= USE db_name", - /* 79 */ "cmd ::= ALTER DATABASE db_name alter_db_options", - /* 80 */ "cmd ::= FLUSH DATABASE db_name", - /* 81 */ "cmd ::= TRIM DATABASE db_name speed_opt", - /* 82 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt", - /* 83 */ "not_exists_opt ::= IF NOT EXISTS", - /* 84 */ "not_exists_opt ::=", - /* 85 */ "exists_opt ::= IF EXISTS", - /* 86 */ "exists_opt ::=", - /* 87 */ "db_options ::=", - /* 88 */ "db_options ::= db_options BUFFER NK_INTEGER", - /* 89 */ "db_options ::= db_options CACHEMODEL NK_STRING", - /* 90 */ "db_options ::= db_options CACHESIZE NK_INTEGER", - /* 91 */ "db_options ::= db_options COMP NK_INTEGER", - /* 92 */ "db_options ::= db_options DURATION NK_INTEGER", - /* 93 */ "db_options ::= db_options DURATION NK_VARIABLE", - /* 94 */ "db_options ::= db_options MAXROWS NK_INTEGER", - /* 95 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 96 */ "db_options ::= db_options KEEP integer_list", - /* 97 */ "db_options ::= db_options KEEP variable_list", - /* 98 */ "db_options ::= db_options PAGES NK_INTEGER", - /* 99 */ "db_options ::= db_options PAGESIZE NK_INTEGER", - /* 100 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", - /* 101 */ "db_options ::= db_options PRECISION NK_STRING", - /* 102 */ "db_options ::= db_options REPLICA NK_INTEGER", - /* 103 */ "db_options ::= db_options VGROUPS NK_INTEGER", - /* 104 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", - /* 105 */ "db_options ::= db_options RETENTIONS retention_list", - /* 106 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", - /* 107 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", - /* 108 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", - /* 109 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", - /* 110 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", - /* 111 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", - /* 112 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", - /* 113 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", - /* 114 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", - /* 115 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", - /* 116 */ "db_options ::= db_options TABLE_PREFIX signed", - /* 117 */ "db_options ::= db_options TABLE_SUFFIX signed", - /* 118 */ "alter_db_options ::= alter_db_option", - /* 119 */ "alter_db_options ::= alter_db_options alter_db_option", - /* 120 */ "alter_db_option ::= BUFFER NK_INTEGER", - /* 121 */ "alter_db_option ::= CACHEMODEL NK_STRING", - /* 122 */ "alter_db_option ::= CACHESIZE NK_INTEGER", - /* 123 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", - /* 124 */ "alter_db_option ::= KEEP integer_list", - /* 125 */ "alter_db_option ::= KEEP variable_list", - /* 126 */ "alter_db_option ::= PAGES NK_INTEGER", - /* 127 */ "alter_db_option ::= REPLICA NK_INTEGER", - /* 128 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", - /* 129 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", - /* 130 */ "alter_db_option ::= MINROWS NK_INTEGER", - /* 131 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER", - /* 132 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", - /* 133 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER", - /* 134 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", - /* 135 */ "integer_list ::= NK_INTEGER", - /* 136 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", - /* 137 */ "variable_list ::= NK_VARIABLE", - /* 138 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", - /* 139 */ "retention_list ::= retention", - /* 140 */ "retention_list ::= retention_list NK_COMMA retention", - /* 141 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 142 */ "speed_opt ::=", - /* 143 */ "speed_opt ::= BWLIMIT NK_INTEGER", - /* 144 */ "start_opt ::=", - /* 145 */ "start_opt ::= START WITH NK_INTEGER", - /* 146 */ "start_opt ::= START WITH NK_STRING", - /* 147 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", - /* 148 */ "end_opt ::=", - /* 149 */ "end_opt ::= END WITH NK_INTEGER", - /* 150 */ "end_opt ::= END WITH NK_STRING", - /* 151 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", - /* 152 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 153 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 154 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 155 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 156 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 157 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 158 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 159 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 160 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 161 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 162 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 163 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 164 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 165 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 166 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 167 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 168 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", - /* 169 */ "multi_create_clause ::= create_subtable_clause", - /* 170 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 171 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options", - /* 172 */ "multi_drop_clause ::= drop_table_clause", - /* 173 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", - /* 174 */ "drop_table_clause ::= exists_opt full_table_name", - /* 175 */ "specific_cols_opt ::=", - /* 176 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", - /* 177 */ "full_table_name ::= table_name", - /* 178 */ "full_table_name ::= db_name NK_DOT table_name", - /* 179 */ "column_def_list ::= column_def", - /* 180 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 181 */ "column_def ::= column_name type_name", - /* 182 */ "type_name ::= BOOL", - /* 183 */ "type_name ::= TINYINT", - /* 184 */ "type_name ::= SMALLINT", - /* 185 */ "type_name ::= INT", - /* 186 */ "type_name ::= INTEGER", - /* 187 */ "type_name ::= BIGINT", - /* 188 */ "type_name ::= FLOAT", - /* 189 */ "type_name ::= DOUBLE", - /* 190 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 191 */ "type_name ::= TIMESTAMP", - /* 192 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 193 */ "type_name ::= TINYINT UNSIGNED", - /* 194 */ "type_name ::= SMALLINT UNSIGNED", - /* 195 */ "type_name ::= INT UNSIGNED", - /* 196 */ "type_name ::= BIGINT UNSIGNED", - /* 197 */ "type_name ::= JSON", - /* 198 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 199 */ "type_name ::= MEDIUMBLOB", - /* 200 */ "type_name ::= BLOB", - /* 201 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 202 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", - /* 203 */ "type_name ::= DECIMAL", - /* 204 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 205 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 206 */ "tags_def_opt ::=", - /* 207 */ "tags_def_opt ::= tags_def", - /* 208 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 209 */ "table_options ::=", - /* 210 */ "table_options ::= table_options COMMENT NK_STRING", - /* 211 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 212 */ "table_options ::= table_options WATERMARK duration_list", - /* 213 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 214 */ "table_options ::= table_options TTL NK_INTEGER", - /* 215 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 216 */ "table_options ::= table_options DELETE_MARK duration_list", - /* 217 */ "alter_table_options ::= alter_table_option", - /* 218 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 219 */ "alter_table_option ::= COMMENT NK_STRING", - /* 220 */ "alter_table_option ::= TTL NK_INTEGER", - /* 221 */ "duration_list ::= duration_literal", - /* 222 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 223 */ "rollup_func_list ::= rollup_func_name", - /* 224 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 225 */ "rollup_func_name ::= function_name", - /* 226 */ "rollup_func_name ::= FIRST", - /* 227 */ "rollup_func_name ::= LAST", - /* 228 */ "col_name_list ::= col_name", - /* 229 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 230 */ "col_name ::= column_name", - /* 231 */ "cmd ::= SHOW DNODES", - /* 232 */ "cmd ::= SHOW USERS", - /* 233 */ "cmd ::= SHOW USER PRIVILEGES", - /* 234 */ "cmd ::= SHOW DATABASES", - /* 235 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 236 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 237 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 238 */ "cmd ::= SHOW MNODES", - /* 239 */ "cmd ::= SHOW QNODES", - /* 240 */ "cmd ::= SHOW FUNCTIONS", - /* 241 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 242 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", - /* 243 */ "cmd ::= SHOW STREAMS", - /* 244 */ "cmd ::= SHOW ACCOUNTS", - /* 245 */ "cmd ::= SHOW APPS", - /* 246 */ "cmd ::= SHOW CONNECTIONS", - /* 247 */ "cmd ::= SHOW LICENCES", - /* 248 */ "cmd ::= SHOW GRANTS", - /* 249 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 250 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 251 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 252 */ "cmd ::= SHOW QUERIES", - /* 253 */ "cmd ::= SHOW SCORES", - /* 254 */ "cmd ::= SHOW TOPICS", - /* 255 */ "cmd ::= SHOW VARIABLES", - /* 256 */ "cmd ::= SHOW CLUSTER VARIABLES", - /* 257 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 258 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", - /* 259 */ "cmd ::= SHOW BNODES", - /* 260 */ "cmd ::= SHOW SNODES", - /* 261 */ "cmd ::= SHOW CLUSTER", - /* 262 */ "cmd ::= SHOW TRANSACTIONS", - /* 263 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 264 */ "cmd ::= SHOW CONSUMERS", - /* 265 */ "cmd ::= SHOW SUBSCRIPTIONS", - /* 266 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", - /* 267 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", - /* 268 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", - /* 269 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", - /* 270 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", - /* 271 */ "cmd ::= SHOW VNODES", - /* 272 */ "cmd ::= SHOW db_name_cond_opt ALIVE", - /* 273 */ "cmd ::= SHOW CLUSTER ALIVE", - /* 274 */ "db_name_cond_opt ::=", - /* 275 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 276 */ "like_pattern_opt ::=", - /* 277 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 278 */ "table_name_cond ::= table_name", - /* 279 */ "from_db_opt ::=", - /* 280 */ "from_db_opt ::= FROM db_name", - /* 281 */ "tag_list_opt ::=", - /* 282 */ "tag_list_opt ::= tag_item", - /* 283 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", - /* 284 */ "tag_item ::= TBNAME", - /* 285 */ "tag_item ::= QTAGS", - /* 286 */ "tag_item ::= column_name", - /* 287 */ "tag_item ::= column_name column_alias", - /* 288 */ "tag_item ::= column_name AS column_alias", - /* 289 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", - /* 290 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", - /* 291 */ "cmd ::= DROP INDEX exists_opt full_index_name", - /* 292 */ "full_index_name ::= index_name", - /* 293 */ "full_index_name ::= db_name NK_DOT index_name", - /* 294 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", - /* 295 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt", - /* 296 */ "func_list ::= func", - /* 297 */ "func_list ::= func_list NK_COMMA func", - /* 298 */ "func ::= sma_func_name NK_LP expression_list NK_RP", - /* 299 */ "sma_func_name ::= function_name", - /* 300 */ "sma_func_name ::= COUNT", - /* 301 */ "sma_func_name ::= FIRST", - /* 302 */ "sma_func_name ::= LAST", - /* 303 */ "sma_func_name ::= LAST_ROW", - /* 304 */ "sma_stream_opt ::=", - /* 305 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", - /* 306 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", - /* 307 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", - /* 308 */ "with_meta ::= AS", - /* 309 */ "with_meta ::= WITH META AS", - /* 310 */ "with_meta ::= ONLY META AS", - /* 311 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", - /* 312 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", - /* 313 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", - /* 314 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 315 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 316 */ "cmd ::= DESC full_table_name", - /* 317 */ "cmd ::= DESCRIBE full_table_name", - /* 318 */ "cmd ::= RESET QUERY CACHE", - /* 319 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", - /* 320 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", - /* 321 */ "analyze_opt ::=", - /* 322 */ "analyze_opt ::= ANALYZE", - /* 323 */ "explain_options ::=", - /* 324 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 325 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 326 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", - /* 327 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 328 */ "agg_func_opt ::=", - /* 329 */ "agg_func_opt ::= AGGREGATE", - /* 330 */ "bufsize_opt ::=", - /* 331 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 332 */ "language_opt ::=", - /* 333 */ "language_opt ::= LANGUAGE NK_STRING", - /* 334 */ "or_replace_opt ::=", - /* 335 */ "or_replace_opt ::= OR REPLACE", - /* 336 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery", - /* 337 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 338 */ "cmd ::= PAUSE STREAM exists_opt stream_name", - /* 339 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", - /* 340 */ "col_list_opt ::=", - /* 341 */ "col_list_opt ::= NK_LP col_name_list NK_RP", - /* 342 */ "tag_def_or_ref_opt ::=", - /* 343 */ "tag_def_or_ref_opt ::= tags_def", - /* 344 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", - /* 345 */ "stream_options ::=", - /* 346 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 347 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 348 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 349 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 350 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", - /* 351 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", - /* 352 */ "stream_options ::= stream_options DELETE_MARK duration_literal", - /* 353 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", - /* 354 */ "subtable_opt ::=", - /* 355 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", - /* 356 */ "ignore_opt ::=", - /* 357 */ "ignore_opt ::= IGNORE UNTREATED", - /* 358 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 359 */ "cmd ::= KILL QUERY NK_STRING", - /* 360 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 361 */ "cmd ::= BALANCE VGROUP", - /* 362 */ "cmd ::= BALANCE VGROUP LEADER", - /* 363 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 364 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 365 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 366 */ "dnode_list ::= DNODE NK_INTEGER", - /* 367 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 368 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 369 */ "cmd ::= query_or_subquery", - /* 370 */ "cmd ::= insert_query", - /* 371 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", - /* 372 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", - /* 373 */ "literal ::= NK_INTEGER", - /* 374 */ "literal ::= NK_FLOAT", - /* 375 */ "literal ::= NK_STRING", - /* 376 */ "literal ::= NK_BOOL", - /* 377 */ "literal ::= TIMESTAMP NK_STRING", - /* 378 */ "literal ::= duration_literal", - /* 379 */ "literal ::= NULL", - /* 380 */ "literal ::= NK_QUESTION", - /* 381 */ "duration_literal ::= NK_VARIABLE", - /* 382 */ "signed ::= NK_INTEGER", - /* 383 */ "signed ::= NK_PLUS NK_INTEGER", - /* 384 */ "signed ::= NK_MINUS NK_INTEGER", - /* 385 */ "signed ::= NK_FLOAT", - /* 386 */ "signed ::= NK_PLUS NK_FLOAT", - /* 387 */ "signed ::= NK_MINUS NK_FLOAT", - /* 388 */ "signed_literal ::= signed", - /* 389 */ "signed_literal ::= NK_STRING", - /* 390 */ "signed_literal ::= NK_BOOL", - /* 391 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 392 */ "signed_literal ::= duration_literal", - /* 393 */ "signed_literal ::= NULL", - /* 394 */ "signed_literal ::= literal_func", - /* 395 */ "signed_literal ::= NK_QUESTION", - /* 396 */ "literal_list ::= signed_literal", - /* 397 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 398 */ "db_name ::= NK_ID", - /* 399 */ "table_name ::= NK_ID", - /* 400 */ "column_name ::= NK_ID", - /* 401 */ "function_name ::= NK_ID", - /* 402 */ "table_alias ::= NK_ID", - /* 403 */ "column_alias ::= NK_ID", - /* 404 */ "user_name ::= NK_ID", - /* 405 */ "topic_name ::= NK_ID", - /* 406 */ "stream_name ::= NK_ID", - /* 407 */ "cgroup_name ::= NK_ID", - /* 408 */ "index_name ::= NK_ID", - /* 409 */ "expr_or_subquery ::= expression", - /* 410 */ "expression ::= literal", - /* 411 */ "expression ::= pseudo_column", - /* 412 */ "expression ::= column_reference", - /* 413 */ "expression ::= function_expression", - /* 414 */ "expression ::= case_when_expression", - /* 415 */ "expression ::= NK_LP expression NK_RP", - /* 416 */ "expression ::= NK_PLUS expr_or_subquery", - /* 417 */ "expression ::= NK_MINUS expr_or_subquery", - /* 418 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", - /* 419 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", - /* 420 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", - /* 421 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", - /* 422 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", - /* 423 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 424 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", - /* 425 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", - /* 426 */ "expression_list ::= expr_or_subquery", - /* 427 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", - /* 428 */ "column_reference ::= column_name", - /* 429 */ "column_reference ::= table_name NK_DOT column_name", - /* 430 */ "pseudo_column ::= ROWTS", - /* 431 */ "pseudo_column ::= TBNAME", - /* 432 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 433 */ "pseudo_column ::= QSTART", - /* 434 */ "pseudo_column ::= QEND", - /* 435 */ "pseudo_column ::= QDURATION", - /* 436 */ "pseudo_column ::= WSTART", - /* 437 */ "pseudo_column ::= WEND", - /* 438 */ "pseudo_column ::= WDURATION", - /* 439 */ "pseudo_column ::= IROWTS", - /* 440 */ "pseudo_column ::= ISFILLED", - /* 441 */ "pseudo_column ::= QTAGS", - /* 442 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 443 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 444 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", - /* 445 */ "function_expression ::= literal_func", - /* 446 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 447 */ "literal_func ::= NOW", - /* 448 */ "noarg_func ::= NOW", - /* 449 */ "noarg_func ::= TODAY", - /* 450 */ "noarg_func ::= TIMEZONE", - /* 451 */ "noarg_func ::= DATABASE", - /* 452 */ "noarg_func ::= CLIENT_VERSION", - /* 453 */ "noarg_func ::= SERVER_VERSION", - /* 454 */ "noarg_func ::= SERVER_STATUS", - /* 455 */ "noarg_func ::= CURRENT_USER", - /* 456 */ "noarg_func ::= USER", - /* 457 */ "star_func ::= COUNT", - /* 458 */ "star_func ::= FIRST", - /* 459 */ "star_func ::= LAST", - /* 460 */ "star_func ::= LAST_ROW", - /* 461 */ "star_func_para_list ::= NK_STAR", - /* 462 */ "star_func_para_list ::= other_para_list", - /* 463 */ "other_para_list ::= star_func_para", - /* 464 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 465 */ "star_func_para ::= expr_or_subquery", - /* 466 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 467 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", - /* 468 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", - /* 469 */ "when_then_list ::= when_then_expr", - /* 470 */ "when_then_list ::= when_then_list when_then_expr", - /* 471 */ "when_then_expr ::= WHEN common_expression THEN common_expression", - /* 472 */ "case_when_else_opt ::=", - /* 473 */ "case_when_else_opt ::= ELSE common_expression", - /* 474 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", - /* 475 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", - /* 476 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", - /* 477 */ "predicate ::= expr_or_subquery IS NULL", - /* 478 */ "predicate ::= expr_or_subquery IS NOT NULL", - /* 479 */ "predicate ::= expr_or_subquery in_op in_predicate_value", - /* 480 */ "compare_op ::= NK_LT", - /* 481 */ "compare_op ::= NK_GT", - /* 482 */ "compare_op ::= NK_LE", - /* 483 */ "compare_op ::= NK_GE", - /* 484 */ "compare_op ::= NK_NE", - /* 485 */ "compare_op ::= NK_EQ", - /* 486 */ "compare_op ::= LIKE", - /* 487 */ "compare_op ::= NOT LIKE", - /* 488 */ "compare_op ::= MATCH", - /* 489 */ "compare_op ::= NMATCH", - /* 490 */ "compare_op ::= CONTAINS", - /* 491 */ "in_op ::= IN", - /* 492 */ "in_op ::= NOT IN", - /* 493 */ "in_predicate_value ::= NK_LP literal_list NK_RP", - /* 494 */ "boolean_value_expression ::= boolean_primary", - /* 495 */ "boolean_value_expression ::= NOT boolean_primary", - /* 496 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 497 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 498 */ "boolean_primary ::= predicate", - /* 499 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 500 */ "common_expression ::= expr_or_subquery", - /* 501 */ "common_expression ::= boolean_value_expression", - /* 502 */ "from_clause_opt ::=", - /* 503 */ "from_clause_opt ::= FROM table_reference_list", - /* 504 */ "table_reference_list ::= table_reference", - /* 505 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 506 */ "table_reference ::= table_primary", - /* 507 */ "table_reference ::= joined_table", - /* 508 */ "table_primary ::= table_name alias_opt", - /* 509 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 510 */ "table_primary ::= subquery alias_opt", - /* 511 */ "table_primary ::= parenthesized_joined_table", - /* 512 */ "alias_opt ::=", - /* 513 */ "alias_opt ::= table_alias", - /* 514 */ "alias_opt ::= AS table_alias", - /* 515 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 516 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 517 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 518 */ "join_type ::=", - /* 519 */ "join_type ::= INNER", - /* 520 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 521 */ "hint_list ::=", - /* 522 */ "hint_list ::= NK_HINT", - /* 523 */ "tag_mode_opt ::=", - /* 524 */ "tag_mode_opt ::= TAGS", - /* 525 */ "set_quantifier_opt ::=", - /* 526 */ "set_quantifier_opt ::= DISTINCT", - /* 527 */ "set_quantifier_opt ::= ALL", - /* 528 */ "select_list ::= select_item", - /* 529 */ "select_list ::= select_list NK_COMMA select_item", - /* 530 */ "select_item ::= NK_STAR", - /* 531 */ "select_item ::= common_expression", - /* 532 */ "select_item ::= common_expression column_alias", - /* 533 */ "select_item ::= common_expression AS column_alias", - /* 534 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 535 */ "where_clause_opt ::=", - /* 536 */ "where_clause_opt ::= WHERE search_condition", - /* 537 */ "partition_by_clause_opt ::=", - /* 538 */ "partition_by_clause_opt ::= PARTITION BY partition_list", - /* 539 */ "partition_list ::= partition_item", - /* 540 */ "partition_list ::= partition_list NK_COMMA partition_item", - /* 541 */ "partition_item ::= expr_or_subquery", - /* 542 */ "partition_item ::= expr_or_subquery column_alias", - /* 543 */ "partition_item ::= expr_or_subquery AS column_alias", - /* 544 */ "twindow_clause_opt ::=", - /* 545 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 546 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", - /* 547 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 548 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 549 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", - /* 550 */ "sliding_opt ::=", - /* 551 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 552 */ "fill_opt ::=", - /* 553 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 554 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", - /* 555 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", - /* 556 */ "fill_mode ::= NONE", - /* 557 */ "fill_mode ::= PREV", - /* 558 */ "fill_mode ::= NULL", - /* 559 */ "fill_mode ::= NULL_F", - /* 560 */ "fill_mode ::= LINEAR", - /* 561 */ "fill_mode ::= NEXT", - /* 562 */ "group_by_clause_opt ::=", - /* 563 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 564 */ "group_by_list ::= expr_or_subquery", - /* 565 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", - /* 566 */ "having_clause_opt ::=", - /* 567 */ "having_clause_opt ::= HAVING search_condition", - /* 568 */ "range_opt ::=", - /* 569 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", - /* 570 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", - /* 571 */ "every_opt ::=", - /* 572 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 573 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 574 */ "query_simple ::= query_specification", - /* 575 */ "query_simple ::= union_query_expression", - /* 576 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", - /* 577 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", - /* 578 */ "query_simple_or_subquery ::= query_simple", - /* 579 */ "query_simple_or_subquery ::= subquery", - /* 580 */ "query_or_subquery ::= query_expression", - /* 581 */ "query_or_subquery ::= subquery", - /* 582 */ "order_by_clause_opt ::=", - /* 583 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 584 */ "slimit_clause_opt ::=", - /* 585 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 586 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 587 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 588 */ "limit_clause_opt ::=", - /* 589 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 590 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 591 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 592 */ "subquery ::= NK_LP query_expression NK_RP", - /* 593 */ "subquery ::= NK_LP subquery NK_RP", - /* 594 */ "search_condition ::= common_expression", - /* 595 */ "sort_specification_list ::= sort_specification", - /* 596 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 597 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", - /* 598 */ "ordering_specification_opt ::=", - /* 599 */ "ordering_specification_opt ::= ASC", - /* 600 */ "ordering_specification_opt ::= DESC", - /* 601 */ "null_ordering_opt ::=", - /* 602 */ "null_ordering_opt ::= NULLS FIRST", - /* 603 */ "null_ordering_opt ::= NULLS LAST", + /* 24 */ "ip_range_list ::= NK_STRING", + /* 25 */ "ip_range_list ::= ip_range_list NK_COMMA NK_STRING", + /* 26 */ "white_list ::= HOST ip_range_list", + /* 27 */ "white_list_opt ::=", + /* 28 */ "white_list_opt ::= white_list", + /* 29 */ "cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt", + /* 30 */ "cmd ::= ALTER USER user_name PASS NK_STRING", + /* 31 */ "cmd ::= ALTER USER user_name ENABLE NK_INTEGER", + /* 32 */ "cmd ::= ALTER USER user_name SYSINFO NK_INTEGER", + /* 33 */ "cmd ::= ALTER USER user_name ADD white_list", + /* 34 */ "cmd ::= ALTER USER user_name DROP white_list", + /* 35 */ "cmd ::= DROP USER user_name", + /* 36 */ "sysinfo_opt ::=", + /* 37 */ "sysinfo_opt ::= SYSINFO NK_INTEGER", + /* 38 */ "cmd ::= GRANT privileges ON priv_level with_opt TO user_name", + /* 39 */ "cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name", + /* 40 */ "privileges ::= ALL", + /* 41 */ "privileges ::= priv_type_list", + /* 42 */ "privileges ::= SUBSCRIBE", + /* 43 */ "priv_type_list ::= priv_type", + /* 44 */ "priv_type_list ::= priv_type_list NK_COMMA priv_type", + /* 45 */ "priv_type ::= READ", + /* 46 */ "priv_type ::= WRITE", + /* 47 */ "priv_level ::= NK_STAR NK_DOT NK_STAR", + /* 48 */ "priv_level ::= db_name NK_DOT NK_STAR", + /* 49 */ "priv_level ::= db_name NK_DOT table_name", + /* 50 */ "priv_level ::= topic_name", + /* 51 */ "with_opt ::=", + /* 52 */ "with_opt ::= WITH search_condition", + /* 53 */ "cmd ::= CREATE DNODE dnode_endpoint", + /* 54 */ "cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER", + /* 55 */ "cmd ::= DROP DNODE NK_INTEGER force_opt", + /* 56 */ "cmd ::= DROP DNODE dnode_endpoint force_opt", + /* 57 */ "cmd ::= DROP DNODE NK_INTEGER unsafe_opt", + /* 58 */ "cmd ::= DROP DNODE dnode_endpoint unsafe_opt", + /* 59 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING", + /* 60 */ "cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING", + /* 61 */ "cmd ::= ALTER ALL DNODES NK_STRING", + /* 62 */ "cmd ::= ALTER ALL DNODES NK_STRING NK_STRING", + /* 63 */ "cmd ::= RESTORE DNODE NK_INTEGER", + /* 64 */ "dnode_endpoint ::= NK_STRING", + /* 65 */ "dnode_endpoint ::= NK_ID", + /* 66 */ "dnode_endpoint ::= NK_IPTOKEN", + /* 67 */ "force_opt ::=", + /* 68 */ "force_opt ::= FORCE", + /* 69 */ "unsafe_opt ::= UNSAFE", + /* 70 */ "cmd ::= ALTER LOCAL NK_STRING", + /* 71 */ "cmd ::= ALTER LOCAL NK_STRING NK_STRING", + /* 72 */ "cmd ::= CREATE QNODE ON DNODE NK_INTEGER", + /* 73 */ "cmd ::= DROP QNODE ON DNODE NK_INTEGER", + /* 74 */ "cmd ::= RESTORE QNODE ON DNODE NK_INTEGER", + /* 75 */ "cmd ::= CREATE BNODE ON DNODE NK_INTEGER", + /* 76 */ "cmd ::= DROP BNODE ON DNODE NK_INTEGER", + /* 77 */ "cmd ::= CREATE SNODE ON DNODE NK_INTEGER", + /* 78 */ "cmd ::= DROP SNODE ON DNODE NK_INTEGER", + /* 79 */ "cmd ::= CREATE MNODE ON DNODE NK_INTEGER", + /* 80 */ "cmd ::= DROP MNODE ON DNODE NK_INTEGER", + /* 81 */ "cmd ::= RESTORE MNODE ON DNODE NK_INTEGER", + /* 82 */ "cmd ::= RESTORE VNODE ON DNODE NK_INTEGER", + /* 83 */ "cmd ::= CREATE DATABASE not_exists_opt db_name db_options", + /* 84 */ "cmd ::= DROP DATABASE exists_opt db_name", + /* 85 */ "cmd ::= USE db_name", + /* 86 */ "cmd ::= ALTER DATABASE db_name alter_db_options", + /* 87 */ "cmd ::= FLUSH DATABASE db_name", + /* 88 */ "cmd ::= TRIM DATABASE db_name speed_opt", + /* 89 */ "cmd ::= COMPACT DATABASE db_name start_opt end_opt", + /* 90 */ "not_exists_opt ::= IF NOT EXISTS", + /* 91 */ "not_exists_opt ::=", + /* 92 */ "exists_opt ::= IF EXISTS", + /* 93 */ "exists_opt ::=", + /* 94 */ "db_options ::=", + /* 95 */ "db_options ::= db_options BUFFER NK_INTEGER", + /* 96 */ "db_options ::= db_options CACHEMODEL NK_STRING", + /* 97 */ "db_options ::= db_options CACHESIZE NK_INTEGER", + /* 98 */ "db_options ::= db_options COMP NK_INTEGER", + /* 99 */ "db_options ::= db_options DURATION NK_INTEGER", + /* 100 */ "db_options ::= db_options DURATION NK_VARIABLE", + /* 101 */ "db_options ::= db_options MAXROWS NK_INTEGER", + /* 102 */ "db_options ::= db_options MINROWS NK_INTEGER", + /* 103 */ "db_options ::= db_options KEEP integer_list", + /* 104 */ "db_options ::= db_options KEEP variable_list", + /* 105 */ "db_options ::= db_options PAGES NK_INTEGER", + /* 106 */ "db_options ::= db_options PAGESIZE NK_INTEGER", + /* 107 */ "db_options ::= db_options TSDB_PAGESIZE NK_INTEGER", + /* 108 */ "db_options ::= db_options PRECISION NK_STRING", + /* 109 */ "db_options ::= db_options REPLICA NK_INTEGER", + /* 110 */ "db_options ::= db_options VGROUPS NK_INTEGER", + /* 111 */ "db_options ::= db_options SINGLE_STABLE NK_INTEGER", + /* 112 */ "db_options ::= db_options RETENTIONS retention_list", + /* 113 */ "db_options ::= db_options SCHEMALESS NK_INTEGER", + /* 114 */ "db_options ::= db_options WAL_LEVEL NK_INTEGER", + /* 115 */ "db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER", + /* 116 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER", + /* 117 */ "db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", + /* 118 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER", + /* 119 */ "db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", + /* 120 */ "db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER", + /* 121 */ "db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER", + /* 122 */ "db_options ::= db_options STT_TRIGGER NK_INTEGER", + /* 123 */ "db_options ::= db_options TABLE_PREFIX signed", + /* 124 */ "db_options ::= db_options TABLE_SUFFIX signed", + /* 125 */ "alter_db_options ::= alter_db_option", + /* 126 */ "alter_db_options ::= alter_db_options alter_db_option", + /* 127 */ "alter_db_option ::= BUFFER NK_INTEGER", + /* 128 */ "alter_db_option ::= CACHEMODEL NK_STRING", + /* 129 */ "alter_db_option ::= CACHESIZE NK_INTEGER", + /* 130 */ "alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER", + /* 131 */ "alter_db_option ::= KEEP integer_list", + /* 132 */ "alter_db_option ::= KEEP variable_list", + /* 133 */ "alter_db_option ::= PAGES NK_INTEGER", + /* 134 */ "alter_db_option ::= REPLICA NK_INTEGER", + /* 135 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", + /* 136 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", + /* 137 */ "alter_db_option ::= MINROWS NK_INTEGER", + /* 138 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER", + /* 139 */ "alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER", + /* 140 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER", + /* 141 */ "alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER", + /* 142 */ "integer_list ::= NK_INTEGER", + /* 143 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", + /* 144 */ "variable_list ::= NK_VARIABLE", + /* 145 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", + /* 146 */ "retention_list ::= retention", + /* 147 */ "retention_list ::= retention_list NK_COMMA retention", + /* 148 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", + /* 149 */ "speed_opt ::=", + /* 150 */ "speed_opt ::= BWLIMIT NK_INTEGER", + /* 151 */ "start_opt ::=", + /* 152 */ "start_opt ::= START WITH NK_INTEGER", + /* 153 */ "start_opt ::= START WITH NK_STRING", + /* 154 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", + /* 155 */ "end_opt ::=", + /* 156 */ "end_opt ::= END WITH NK_INTEGER", + /* 157 */ "end_opt ::= END WITH NK_STRING", + /* 158 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", + /* 159 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 160 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 161 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 162 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 163 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 164 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 165 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 166 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 167 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 168 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 169 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 170 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 171 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 172 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 173 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 174 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 175 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", + /* 176 */ "multi_create_clause ::= create_subtable_clause", + /* 177 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 178 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options", + /* 179 */ "multi_drop_clause ::= drop_table_clause", + /* 180 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", + /* 181 */ "drop_table_clause ::= exists_opt full_table_name", + /* 182 */ "specific_cols_opt ::=", + /* 183 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", + /* 184 */ "full_table_name ::= table_name", + /* 185 */ "full_table_name ::= db_name NK_DOT table_name", + /* 186 */ "column_def_list ::= column_def", + /* 187 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 188 */ "column_def ::= column_name type_name", + /* 189 */ "type_name ::= BOOL", + /* 190 */ "type_name ::= TINYINT", + /* 191 */ "type_name ::= SMALLINT", + /* 192 */ "type_name ::= INT", + /* 193 */ "type_name ::= INTEGER", + /* 194 */ "type_name ::= BIGINT", + /* 195 */ "type_name ::= FLOAT", + /* 196 */ "type_name ::= DOUBLE", + /* 197 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 198 */ "type_name ::= TIMESTAMP", + /* 199 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 200 */ "type_name ::= TINYINT UNSIGNED", + /* 201 */ "type_name ::= SMALLINT UNSIGNED", + /* 202 */ "type_name ::= INT UNSIGNED", + /* 203 */ "type_name ::= BIGINT UNSIGNED", + /* 204 */ "type_name ::= JSON", + /* 205 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 206 */ "type_name ::= MEDIUMBLOB", + /* 207 */ "type_name ::= BLOB", + /* 208 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 209 */ "type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP", + /* 210 */ "type_name ::= DECIMAL", + /* 211 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 212 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 213 */ "tags_def_opt ::=", + /* 214 */ "tags_def_opt ::= tags_def", + /* 215 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 216 */ "table_options ::=", + /* 217 */ "table_options ::= table_options COMMENT NK_STRING", + /* 218 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 219 */ "table_options ::= table_options WATERMARK duration_list", + /* 220 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 221 */ "table_options ::= table_options TTL NK_INTEGER", + /* 222 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 223 */ "table_options ::= table_options DELETE_MARK duration_list", + /* 224 */ "alter_table_options ::= alter_table_option", + /* 225 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 226 */ "alter_table_option ::= COMMENT NK_STRING", + /* 227 */ "alter_table_option ::= TTL NK_INTEGER", + /* 228 */ "duration_list ::= duration_literal", + /* 229 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 230 */ "rollup_func_list ::= rollup_func_name", + /* 231 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 232 */ "rollup_func_name ::= function_name", + /* 233 */ "rollup_func_name ::= FIRST", + /* 234 */ "rollup_func_name ::= LAST", + /* 235 */ "col_name_list ::= col_name", + /* 236 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 237 */ "col_name ::= column_name", + /* 238 */ "cmd ::= SHOW DNODES", + /* 239 */ "cmd ::= SHOW USERS", + /* 240 */ "cmd ::= SHOW USER PRIVILEGES", + /* 241 */ "cmd ::= SHOW DATABASES", + /* 242 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 243 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 244 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 245 */ "cmd ::= SHOW MNODES", + /* 246 */ "cmd ::= SHOW QNODES", + /* 247 */ "cmd ::= SHOW FUNCTIONS", + /* 248 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 249 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", + /* 250 */ "cmd ::= SHOW STREAMS", + /* 251 */ "cmd ::= SHOW ACCOUNTS", + /* 252 */ "cmd ::= SHOW APPS", + /* 253 */ "cmd ::= SHOW CONNECTIONS", + /* 254 */ "cmd ::= SHOW LICENCES", + /* 255 */ "cmd ::= SHOW GRANTS", + /* 256 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 257 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 258 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 259 */ "cmd ::= SHOW QUERIES", + /* 260 */ "cmd ::= SHOW SCORES", + /* 261 */ "cmd ::= SHOW TOPICS", + /* 262 */ "cmd ::= SHOW VARIABLES", + /* 263 */ "cmd ::= SHOW CLUSTER VARIABLES", + /* 264 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 265 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", + /* 266 */ "cmd ::= SHOW BNODES", + /* 267 */ "cmd ::= SHOW SNODES", + /* 268 */ "cmd ::= SHOW CLUSTER", + /* 269 */ "cmd ::= SHOW TRANSACTIONS", + /* 270 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 271 */ "cmd ::= SHOW CONSUMERS", + /* 272 */ "cmd ::= SHOW SUBSCRIPTIONS", + /* 273 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", + /* 274 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", + /* 275 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", + /* 276 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", + /* 277 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", + /* 278 */ "cmd ::= SHOW VNODES", + /* 279 */ "cmd ::= SHOW db_name_cond_opt ALIVE", + /* 280 */ "cmd ::= SHOW CLUSTER ALIVE", + /* 281 */ "db_name_cond_opt ::=", + /* 282 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 283 */ "like_pattern_opt ::=", + /* 284 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 285 */ "table_name_cond ::= table_name", + /* 286 */ "from_db_opt ::=", + /* 287 */ "from_db_opt ::= FROM db_name", + /* 288 */ "tag_list_opt ::=", + /* 289 */ "tag_list_opt ::= tag_item", + /* 290 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", + /* 291 */ "tag_item ::= TBNAME", + /* 292 */ "tag_item ::= QTAGS", + /* 293 */ "tag_item ::= column_name", + /* 294 */ "tag_item ::= column_name column_alias", + /* 295 */ "tag_item ::= column_name AS column_alias", + /* 296 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", + /* 297 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", + /* 298 */ "cmd ::= DROP INDEX exists_opt full_index_name", + /* 299 */ "full_index_name ::= index_name", + /* 300 */ "full_index_name ::= db_name NK_DOT index_name", + /* 301 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", + /* 302 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt", + /* 303 */ "func_list ::= func", + /* 304 */ "func_list ::= func_list NK_COMMA func", + /* 305 */ "func ::= sma_func_name NK_LP expression_list NK_RP", + /* 306 */ "sma_func_name ::= function_name", + /* 307 */ "sma_func_name ::= COUNT", + /* 308 */ "sma_func_name ::= FIRST", + /* 309 */ "sma_func_name ::= LAST", + /* 310 */ "sma_func_name ::= LAST_ROW", + /* 311 */ "sma_stream_opt ::=", + /* 312 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", + /* 313 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", + /* 314 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", + /* 315 */ "with_meta ::= AS", + /* 316 */ "with_meta ::= WITH META AS", + /* 317 */ "with_meta ::= ONLY META AS", + /* 318 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", + /* 319 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", + /* 320 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", + /* 321 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 322 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 323 */ "cmd ::= DESC full_table_name", + /* 324 */ "cmd ::= DESCRIBE full_table_name", + /* 325 */ "cmd ::= RESET QUERY CACHE", + /* 326 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", + /* 327 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", + /* 328 */ "analyze_opt ::=", + /* 329 */ "analyze_opt ::= ANALYZE", + /* 330 */ "explain_options ::=", + /* 331 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 332 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 333 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", + /* 334 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 335 */ "agg_func_opt ::=", + /* 336 */ "agg_func_opt ::= AGGREGATE", + /* 337 */ "bufsize_opt ::=", + /* 338 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 339 */ "language_opt ::=", + /* 340 */ "language_opt ::= LANGUAGE NK_STRING", + /* 341 */ "or_replace_opt ::=", + /* 342 */ "or_replace_opt ::= OR REPLACE", + /* 343 */ "cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery", + /* 344 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 345 */ "cmd ::= PAUSE STREAM exists_opt stream_name", + /* 346 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", + /* 347 */ "col_list_opt ::=", + /* 348 */ "col_list_opt ::= NK_LP col_name_list NK_RP", + /* 349 */ "tag_def_or_ref_opt ::=", + /* 350 */ "tag_def_or_ref_opt ::= tags_def", + /* 351 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", + /* 352 */ "stream_options ::=", + /* 353 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 354 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 355 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 356 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 357 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", + /* 358 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", + /* 359 */ "stream_options ::= stream_options DELETE_MARK duration_literal", + /* 360 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", + /* 361 */ "subtable_opt ::=", + /* 362 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", + /* 363 */ "ignore_opt ::=", + /* 364 */ "ignore_opt ::= IGNORE UNTREATED", + /* 365 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 366 */ "cmd ::= KILL QUERY NK_STRING", + /* 367 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 368 */ "cmd ::= BALANCE VGROUP", + /* 369 */ "cmd ::= BALANCE VGROUP LEADER", + /* 370 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 371 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 372 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 373 */ "dnode_list ::= DNODE NK_INTEGER", + /* 374 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 375 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 376 */ "cmd ::= query_or_subquery", + /* 377 */ "cmd ::= insert_query", + /* 378 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", + /* 379 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", + /* 380 */ "literal ::= NK_INTEGER", + /* 381 */ "literal ::= NK_FLOAT", + /* 382 */ "literal ::= NK_STRING", + /* 383 */ "literal ::= NK_BOOL", + /* 384 */ "literal ::= TIMESTAMP NK_STRING", + /* 385 */ "literal ::= duration_literal", + /* 386 */ "literal ::= NULL", + /* 387 */ "literal ::= NK_QUESTION", + /* 388 */ "duration_literal ::= NK_VARIABLE", + /* 389 */ "signed ::= NK_INTEGER", + /* 390 */ "signed ::= NK_PLUS NK_INTEGER", + /* 391 */ "signed ::= NK_MINUS NK_INTEGER", + /* 392 */ "signed ::= NK_FLOAT", + /* 393 */ "signed ::= NK_PLUS NK_FLOAT", + /* 394 */ "signed ::= NK_MINUS NK_FLOAT", + /* 395 */ "signed_literal ::= signed", + /* 396 */ "signed_literal ::= NK_STRING", + /* 397 */ "signed_literal ::= NK_BOOL", + /* 398 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 399 */ "signed_literal ::= duration_literal", + /* 400 */ "signed_literal ::= NULL", + /* 401 */ "signed_literal ::= literal_func", + /* 402 */ "signed_literal ::= NK_QUESTION", + /* 403 */ "literal_list ::= signed_literal", + /* 404 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 405 */ "db_name ::= NK_ID", + /* 406 */ "table_name ::= NK_ID", + /* 407 */ "column_name ::= NK_ID", + /* 408 */ "function_name ::= NK_ID", + /* 409 */ "table_alias ::= NK_ID", + /* 410 */ "column_alias ::= NK_ID", + /* 411 */ "user_name ::= NK_ID", + /* 412 */ "topic_name ::= NK_ID", + /* 413 */ "stream_name ::= NK_ID", + /* 414 */ "cgroup_name ::= NK_ID", + /* 415 */ "index_name ::= NK_ID", + /* 416 */ "expr_or_subquery ::= expression", + /* 417 */ "expression ::= literal", + /* 418 */ "expression ::= pseudo_column", + /* 419 */ "expression ::= column_reference", + /* 420 */ "expression ::= function_expression", + /* 421 */ "expression ::= case_when_expression", + /* 422 */ "expression ::= NK_LP expression NK_RP", + /* 423 */ "expression ::= NK_PLUS expr_or_subquery", + /* 424 */ "expression ::= NK_MINUS expr_or_subquery", + /* 425 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", + /* 426 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", + /* 427 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", + /* 428 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", + /* 429 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", + /* 430 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 431 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", + /* 432 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", + /* 433 */ "expression_list ::= expr_or_subquery", + /* 434 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", + /* 435 */ "column_reference ::= column_name", + /* 436 */ "column_reference ::= table_name NK_DOT column_name", + /* 437 */ "pseudo_column ::= ROWTS", + /* 438 */ "pseudo_column ::= TBNAME", + /* 439 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 440 */ "pseudo_column ::= QSTART", + /* 441 */ "pseudo_column ::= QEND", + /* 442 */ "pseudo_column ::= QDURATION", + /* 443 */ "pseudo_column ::= WSTART", + /* 444 */ "pseudo_column ::= WEND", + /* 445 */ "pseudo_column ::= WDURATION", + /* 446 */ "pseudo_column ::= IROWTS", + /* 447 */ "pseudo_column ::= ISFILLED", + /* 448 */ "pseudo_column ::= QTAGS", + /* 449 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 450 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 451 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", + /* 452 */ "function_expression ::= literal_func", + /* 453 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 454 */ "literal_func ::= NOW", + /* 455 */ "noarg_func ::= NOW", + /* 456 */ "noarg_func ::= TODAY", + /* 457 */ "noarg_func ::= TIMEZONE", + /* 458 */ "noarg_func ::= DATABASE", + /* 459 */ "noarg_func ::= CLIENT_VERSION", + /* 460 */ "noarg_func ::= SERVER_VERSION", + /* 461 */ "noarg_func ::= SERVER_STATUS", + /* 462 */ "noarg_func ::= CURRENT_USER", + /* 463 */ "noarg_func ::= USER", + /* 464 */ "star_func ::= COUNT", + /* 465 */ "star_func ::= FIRST", + /* 466 */ "star_func ::= LAST", + /* 467 */ "star_func ::= LAST_ROW", + /* 468 */ "star_func_para_list ::= NK_STAR", + /* 469 */ "star_func_para_list ::= other_para_list", + /* 470 */ "other_para_list ::= star_func_para", + /* 471 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 472 */ "star_func_para ::= expr_or_subquery", + /* 473 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 474 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", + /* 475 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", + /* 476 */ "when_then_list ::= when_then_expr", + /* 477 */ "when_then_list ::= when_then_list when_then_expr", + /* 478 */ "when_then_expr ::= WHEN common_expression THEN common_expression", + /* 479 */ "case_when_else_opt ::=", + /* 480 */ "case_when_else_opt ::= ELSE common_expression", + /* 481 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", + /* 482 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", + /* 483 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", + /* 484 */ "predicate ::= expr_or_subquery IS NULL", + /* 485 */ "predicate ::= expr_or_subquery IS NOT NULL", + /* 486 */ "predicate ::= expr_or_subquery in_op in_predicate_value", + /* 487 */ "compare_op ::= NK_LT", + /* 488 */ "compare_op ::= NK_GT", + /* 489 */ "compare_op ::= NK_LE", + /* 490 */ "compare_op ::= NK_GE", + /* 491 */ "compare_op ::= NK_NE", + /* 492 */ "compare_op ::= NK_EQ", + /* 493 */ "compare_op ::= LIKE", + /* 494 */ "compare_op ::= NOT LIKE", + /* 495 */ "compare_op ::= MATCH", + /* 496 */ "compare_op ::= NMATCH", + /* 497 */ "compare_op ::= CONTAINS", + /* 498 */ "in_op ::= IN", + /* 499 */ "in_op ::= NOT IN", + /* 500 */ "in_predicate_value ::= NK_LP literal_list NK_RP", + /* 501 */ "boolean_value_expression ::= boolean_primary", + /* 502 */ "boolean_value_expression ::= NOT boolean_primary", + /* 503 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 504 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 505 */ "boolean_primary ::= predicate", + /* 506 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 507 */ "common_expression ::= expr_or_subquery", + /* 508 */ "common_expression ::= boolean_value_expression", + /* 509 */ "from_clause_opt ::=", + /* 510 */ "from_clause_opt ::= FROM table_reference_list", + /* 511 */ "table_reference_list ::= table_reference", + /* 512 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 513 */ "table_reference ::= table_primary", + /* 514 */ "table_reference ::= joined_table", + /* 515 */ "table_primary ::= table_name alias_opt", + /* 516 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 517 */ "table_primary ::= subquery alias_opt", + /* 518 */ "table_primary ::= parenthesized_joined_table", + /* 519 */ "alias_opt ::=", + /* 520 */ "alias_opt ::= table_alias", + /* 521 */ "alias_opt ::= AS table_alias", + /* 522 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 523 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 524 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 525 */ "join_type ::=", + /* 526 */ "join_type ::= INNER", + /* 527 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 528 */ "hint_list ::=", + /* 529 */ "hint_list ::= NK_HINT", + /* 530 */ "tag_mode_opt ::=", + /* 531 */ "tag_mode_opt ::= TAGS", + /* 532 */ "set_quantifier_opt ::=", + /* 533 */ "set_quantifier_opt ::= DISTINCT", + /* 534 */ "set_quantifier_opt ::= ALL", + /* 535 */ "select_list ::= select_item", + /* 536 */ "select_list ::= select_list NK_COMMA select_item", + /* 537 */ "select_item ::= NK_STAR", + /* 538 */ "select_item ::= common_expression", + /* 539 */ "select_item ::= common_expression column_alias", + /* 540 */ "select_item ::= common_expression AS column_alias", + /* 541 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 542 */ "where_clause_opt ::=", + /* 543 */ "where_clause_opt ::= WHERE search_condition", + /* 544 */ "partition_by_clause_opt ::=", + /* 545 */ "partition_by_clause_opt ::= PARTITION BY partition_list", + /* 546 */ "partition_list ::= partition_item", + /* 547 */ "partition_list ::= partition_list NK_COMMA partition_item", + /* 548 */ "partition_item ::= expr_or_subquery", + /* 549 */ "partition_item ::= expr_or_subquery column_alias", + /* 550 */ "partition_item ::= expr_or_subquery AS column_alias", + /* 551 */ "twindow_clause_opt ::=", + /* 552 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 553 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", + /* 554 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 555 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 556 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", + /* 557 */ "sliding_opt ::=", + /* 558 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 559 */ "fill_opt ::=", + /* 560 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 561 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", + /* 562 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", + /* 563 */ "fill_mode ::= NONE", + /* 564 */ "fill_mode ::= PREV", + /* 565 */ "fill_mode ::= NULL", + /* 566 */ "fill_mode ::= NULL_F", + /* 567 */ "fill_mode ::= LINEAR", + /* 568 */ "fill_mode ::= NEXT", + /* 569 */ "group_by_clause_opt ::=", + /* 570 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 571 */ "group_by_list ::= expr_or_subquery", + /* 572 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", + /* 573 */ "having_clause_opt ::=", + /* 574 */ "having_clause_opt ::= HAVING search_condition", + /* 575 */ "range_opt ::=", + /* 576 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", + /* 577 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", + /* 578 */ "every_opt ::=", + /* 579 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 580 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 581 */ "query_simple ::= query_specification", + /* 582 */ "query_simple ::= union_query_expression", + /* 583 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", + /* 584 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", + /* 585 */ "query_simple_or_subquery ::= query_simple", + /* 586 */ "query_simple_or_subquery ::= subquery", + /* 587 */ "query_or_subquery ::= query_expression", + /* 588 */ "query_or_subquery ::= subquery", + /* 589 */ "order_by_clause_opt ::=", + /* 590 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 591 */ "slimit_clause_opt ::=", + /* 592 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 593 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 594 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 595 */ "limit_clause_opt ::=", + /* 596 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 597 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 598 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 599 */ "subquery ::= NK_LP query_expression NK_RP", + /* 600 */ "subquery ::= NK_LP subquery NK_RP", + /* 601 */ "search_condition ::= common_expression", + /* 602 */ "sort_specification_list ::= sort_specification", + /* 603 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 604 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", + /* 605 */ "ordering_specification_opt ::=", + /* 606 */ "ordering_specification_opt ::= ASC", + /* 607 */ "ordering_specification_opt ::= DESC", + /* 608 */ "null_ordering_opt ::=", + /* 609 */ "null_ordering_opt ::= NULLS FIRST", + /* 610 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2695,215 +3051,248 @@ static void yy_destructor( */ /********* Begin destructor definitions ***************************************/ /* Default NON-TERMINAL Destructor */ - case 339: /* cmd */ - case 342: /* literal */ - case 348: /* with_opt */ - case 354: /* search_condition */ - case 359: /* db_options */ - case 361: /* alter_db_options */ - case 363: /* start_opt */ - case 364: /* end_opt */ - case 368: /* signed */ - case 370: /* retention */ - case 371: /* full_table_name */ - case 374: /* table_options */ - case 378: /* alter_table_clause */ - case 379: /* alter_table_options */ - case 382: /* signed_literal */ - case 383: /* create_subtable_clause */ - case 386: /* drop_table_clause */ - case 388: /* column_def */ - case 392: /* duration_literal */ - case 393: /* rollup_func_name */ - case 395: /* col_name */ - case 396: /* db_name_cond_opt */ - case 397: /* like_pattern_opt */ - case 398: /* table_name_cond */ - case 399: /* from_db_opt */ - case 401: /* tag_item */ - case 403: /* index_options */ - case 404: /* full_index_name */ - case 407: /* sliding_opt */ - case 408: /* sma_stream_opt */ - case 409: /* func */ - case 412: /* query_or_subquery */ - case 413: /* where_clause_opt */ - case 416: /* explain_options */ - case 417: /* insert_query */ - case 423: /* stream_options */ - case 426: /* subtable_opt */ - case 428: /* expression */ - case 430: /* literal_func */ - case 433: /* expr_or_subquery */ - case 434: /* pseudo_column */ - case 435: /* column_reference */ - case 436: /* function_expression */ - case 437: /* case_when_expression */ - case 442: /* star_func_para */ - case 444: /* case_when_else_opt */ - case 445: /* common_expression */ - case 446: /* when_then_expr */ - case 447: /* predicate */ - case 450: /* in_predicate_value */ - case 451: /* boolean_value_expression */ - case 452: /* boolean_primary */ - case 453: /* from_clause_opt */ - case 454: /* table_reference_list */ - case 455: /* table_reference */ - case 456: /* table_primary */ - case 457: /* joined_table */ - case 459: /* subquery */ - case 460: /* parenthesized_joined_table */ - case 462: /* query_specification */ - case 468: /* range_opt */ - case 469: /* every_opt */ - case 470: /* fill_opt */ - case 471: /* twindow_clause_opt */ - case 473: /* having_clause_opt */ - case 474: /* select_item */ - case 476: /* partition_item */ - case 479: /* query_expression */ - case 480: /* query_simple */ - case 482: /* slimit_clause_opt */ - case 483: /* limit_clause_opt */ - case 484: /* union_query_expression */ - case 485: /* query_simple_or_subquery */ - case 487: /* sort_specification */ + case 340: /* cmd */ + case 343: /* literal */ + case 352: /* with_opt */ + case 358: /* search_condition */ + case 363: /* db_options */ + case 365: /* alter_db_options */ + case 367: /* start_opt */ + case 368: /* end_opt */ + case 372: /* signed */ + case 374: /* retention */ + case 375: /* full_table_name */ + case 378: /* table_options */ + case 382: /* alter_table_clause */ + case 383: /* alter_table_options */ + case 386: /* signed_literal */ + case 387: /* create_subtable_clause */ + case 390: /* drop_table_clause */ + case 392: /* column_def */ + case 396: /* duration_literal */ + case 397: /* rollup_func_name */ + case 399: /* col_name */ + case 400: /* db_name_cond_opt */ + case 401: /* like_pattern_opt */ + case 402: /* table_name_cond */ + case 403: /* from_db_opt */ + case 405: /* tag_item */ + case 407: /* index_options */ + case 408: /* full_index_name */ + case 411: /* sliding_opt */ + case 412: /* sma_stream_opt */ + case 413: /* func */ + case 416: /* query_or_subquery */ + case 417: /* where_clause_opt */ + case 420: /* explain_options */ + case 421: /* insert_query */ + case 427: /* stream_options */ + case 430: /* subtable_opt */ + case 432: /* expression */ + case 434: /* literal_func */ + case 437: /* expr_or_subquery */ + case 438: /* pseudo_column */ + case 439: /* column_reference */ + case 440: /* function_expression */ + case 441: /* case_when_expression */ + case 446: /* star_func_para */ + case 448: /* case_when_else_opt */ + case 449: /* common_expression */ + case 450: /* when_then_expr */ + case 451: /* predicate */ + case 454: /* in_predicate_value */ + case 455: /* boolean_value_expression */ + case 456: /* boolean_primary */ + case 457: /* from_clause_opt */ + case 458: /* table_reference_list */ + case 459: /* table_reference */ + case 460: /* table_primary */ + case 461: /* joined_table */ + case 463: /* subquery */ + case 464: /* parenthesized_joined_table */ + case 466: /* query_specification */ + case 472: /* range_opt */ + case 473: /* every_opt */ + case 474: /* fill_opt */ + case 475: /* twindow_clause_opt */ + case 477: /* having_clause_opt */ + case 478: /* select_item */ + case 480: /* partition_item */ + case 483: /* query_expression */ + case 484: /* query_simple */ + case 486: /* slimit_clause_opt */ + case 487: /* limit_clause_opt */ + case 488: /* union_query_expression */ + case 489: /* query_simple_or_subquery */ + case 491: /* sort_specification */ { - nodesDestroyNode((yypminor->yy952)); +#line 7 "sql.y" + nodesDestroyNode((yypminor->yy28)); +#line 3131 "sql.c" } break; - case 340: /* account_options */ - case 341: /* alter_account_options */ - case 343: /* alter_account_option */ - case 362: /* speed_opt */ - case 411: /* with_meta */ - case 420: /* bufsize_opt */ + case 341: /* account_options */ + case 342: /* alter_account_options */ + case 344: /* alter_account_option */ + case 366: /* speed_opt */ + case 415: /* with_meta */ + case 424: /* bufsize_opt */ { +#line 54 "sql.y" +#line 3143 "sql.c" } break; - case 344: /* user_name */ - case 351: /* db_name */ - case 352: /* table_name */ - case 353: /* topic_name */ - case 355: /* dnode_endpoint */ - case 380: /* column_name */ - case 394: /* function_name */ - case 402: /* column_alias */ - case 405: /* index_name */ - case 410: /* sma_func_name */ - case 414: /* cgroup_name */ - case 421: /* language_opt */ - case 422: /* stream_name */ - case 432: /* table_alias */ - case 438: /* star_func */ - case 440: /* noarg_func */ - case 458: /* alias_opt */ + case 345: /* ip_range_list */ + case 346: /* white_list */ + case 347: /* white_list_opt */ + case 369: /* integer_list */ + case 370: /* variable_list */ + case 371: /* retention_list */ + case 376: /* column_def_list */ + case 377: /* tags_def_opt */ + case 379: /* multi_create_clause */ + case 380: /* tags_def */ + case 381: /* multi_drop_clause */ + case 388: /* specific_cols_opt */ + case 389: /* expression_list */ + case 391: /* col_name_list */ + case 393: /* duration_list */ + case 394: /* rollup_func_list */ + case 404: /* tag_list_opt */ + case 410: /* func_list */ + case 428: /* col_list_opt */ + case 429: /* tag_def_or_ref_opt */ + case 433: /* dnode_list */ + case 435: /* literal_list */ + case 443: /* star_func_para_list */ + case 445: /* other_para_list */ + case 447: /* when_then_list */ + case 467: /* hint_list */ + case 470: /* select_list */ + case 471: /* partition_by_clause_opt */ + case 476: /* group_by_clause_opt */ + case 479: /* partition_list */ + case 482: /* group_by_list */ + case 485: /* order_by_clause_opt */ + case 490: /* sort_specification_list */ { +#line 85 "sql.y" + nodesDestroyList((yypminor->yy236)); +#line 3182 "sql.c" +} + break; + case 348: /* user_name */ + case 355: /* db_name */ + case 356: /* table_name */ + case 357: /* topic_name */ + case 359: /* dnode_endpoint */ + case 384: /* column_name */ + case 398: /* function_name */ + case 406: /* column_alias */ + case 409: /* index_name */ + case 414: /* sma_func_name */ + case 418: /* cgroup_name */ + case 425: /* language_opt */ + case 426: /* stream_name */ + case 436: /* table_alias */ + case 442: /* star_func */ + case 444: /* noarg_func */ + case 462: /* alias_opt */ +{ +#line 762 "sql.y" +#line 3205 "sql.c" } break; - case 345: /* sysinfo_opt */ + case 349: /* sysinfo_opt */ { +#line 112 "sql.y" +#line 3212 "sql.c" } break; - case 346: /* privileges */ - case 349: /* priv_type_list */ - case 350: /* priv_type */ + case 350: /* privileges */ + case 353: /* priv_type_list */ + case 354: /* priv_type */ { +#line 121 "sql.y" +#line 3221 "sql.c" } break; - case 347: /* priv_level */ + case 351: /* priv_level */ { +#line 137 "sql.y" +#line 3228 "sql.c" } break; - case 356: /* force_opt */ - case 357: /* unsafe_opt */ - case 358: /* not_exists_opt */ - case 360: /* exists_opt */ - case 415: /* analyze_opt */ - case 418: /* or_replace_opt */ - case 419: /* agg_func_opt */ - case 427: /* ignore_opt */ - case 464: /* set_quantifier_opt */ - case 465: /* tag_mode_opt */ + case 360: /* force_opt */ + case 361: /* unsafe_opt */ + case 362: /* not_exists_opt */ + case 364: /* exists_opt */ + case 419: /* analyze_opt */ + case 422: /* or_replace_opt */ + case 423: /* agg_func_opt */ + case 431: /* ignore_opt */ + case 468: /* set_quantifier_opt */ + case 469: /* tag_mode_opt */ { +#line 166 "sql.y" +#line 3244 "sql.c" } break; - case 365: /* integer_list */ - case 366: /* variable_list */ - case 367: /* retention_list */ - case 372: /* column_def_list */ - case 373: /* tags_def_opt */ - case 375: /* multi_create_clause */ - case 376: /* tags_def */ - case 377: /* multi_drop_clause */ - case 384: /* specific_cols_opt */ - case 385: /* expression_list */ - case 387: /* col_name_list */ - case 389: /* duration_list */ - case 390: /* rollup_func_list */ - case 400: /* tag_list_opt */ - case 406: /* func_list */ - case 424: /* col_list_opt */ - case 425: /* tag_def_or_ref_opt */ - case 429: /* dnode_list */ - case 431: /* literal_list */ - case 439: /* star_func_para_list */ - case 441: /* other_para_list */ - case 443: /* when_then_list */ - case 463: /* hint_list */ - case 466: /* select_list */ - case 467: /* partition_by_clause_opt */ - case 472: /* group_by_clause_opt */ - case 475: /* partition_list */ - case 478: /* group_by_list */ - case 481: /* order_by_clause_opt */ - case 486: /* sort_specification_list */ -{ - nodesDestroyList((yypminor->yy824)); -} - break; - case 369: /* alter_db_option */ - case 391: /* alter_table_option */ + case 373: /* alter_db_option */ + case 395: /* alter_table_option */ { +#line 263 "sql.y" +#line 3252 "sql.c" } break; - case 381: /* type_name */ + case 385: /* type_name */ { +#line 384 "sql.y" +#line 3259 "sql.c" } break; - case 448: /* compare_op */ - case 449: /* in_op */ + case 452: /* compare_op */ + case 453: /* in_op */ { +#line 950 "sql.y" +#line 3267 "sql.c" } break; - case 461: /* join_type */ + case 465: /* join_type */ { +#line 1026 "sql.y" +#line 3274 "sql.c" } break; - case 477: /* fill_mode */ + case 481: /* fill_mode */ { +#line 1112 "sql.y" +#line 3281 "sql.c" } break; - case 488: /* ordering_specification_opt */ + case 492: /* ordering_specification_opt */ { +#line 1197 "sql.y" +#line 3288 "sql.c" } break; - case 489: /* null_ordering_opt */ + case 493: /* null_ordering_opt */ { +#line 1203 "sql.y" +#line 3295 "sql.c" } break; /********* End destructor definitions *****************************************/ @@ -3070,7 +3459,7 @@ static YYACTIONTYPE yy_find_shift_action( #endif /* YYWILDCARD */ return yy_default[stateno]; }else{ - assert( i>=0 && i=0 && i<(int)(sizeof(yy_action)/sizeof(yy_action[0])) ); return yy_action[i]; } }while(1); @@ -3192,610 +3581,617 @@ static void yy_shift( /* For rule J, yyRuleInfoLhs[J] contains the symbol on the left-hand side ** of that rule */ static const YYCODETYPE yyRuleInfoLhs[] = { - 339, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ - 339, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ - 340, /* (2) account_options ::= */ - 340, /* (3) account_options ::= account_options PPS literal */ - 340, /* (4) account_options ::= account_options TSERIES literal */ - 340, /* (5) account_options ::= account_options STORAGE literal */ - 340, /* (6) account_options ::= account_options STREAMS literal */ - 340, /* (7) account_options ::= account_options QTIME literal */ - 340, /* (8) account_options ::= account_options DBS literal */ - 340, /* (9) account_options ::= account_options USERS literal */ - 340, /* (10) account_options ::= account_options CONNS literal */ - 340, /* (11) account_options ::= account_options STATE literal */ - 341, /* (12) alter_account_options ::= alter_account_option */ - 341, /* (13) alter_account_options ::= alter_account_options alter_account_option */ - 343, /* (14) alter_account_option ::= PASS literal */ - 343, /* (15) alter_account_option ::= PPS literal */ - 343, /* (16) alter_account_option ::= TSERIES literal */ - 343, /* (17) alter_account_option ::= STORAGE literal */ - 343, /* (18) alter_account_option ::= STREAMS literal */ - 343, /* (19) alter_account_option ::= QTIME literal */ - 343, /* (20) alter_account_option ::= DBS literal */ - 343, /* (21) alter_account_option ::= USERS literal */ - 343, /* (22) alter_account_option ::= CONNS literal */ - 343, /* (23) alter_account_option ::= STATE literal */ - 339, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ - 339, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - 339, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ - 339, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ - 339, /* (28) cmd ::= DROP USER user_name */ - 345, /* (29) sysinfo_opt ::= */ - 345, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ - 339, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ - 339, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ - 346, /* (33) privileges ::= ALL */ - 346, /* (34) privileges ::= priv_type_list */ - 346, /* (35) privileges ::= SUBSCRIBE */ - 349, /* (36) priv_type_list ::= priv_type */ - 349, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - 350, /* (38) priv_type ::= READ */ - 350, /* (39) priv_type ::= WRITE */ - 347, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ - 347, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ - 347, /* (42) priv_level ::= db_name NK_DOT table_name */ - 347, /* (43) priv_level ::= topic_name */ - 348, /* (44) with_opt ::= */ - 348, /* (45) with_opt ::= WITH search_condition */ - 339, /* (46) cmd ::= CREATE DNODE dnode_endpoint */ - 339, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ - 339, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */ - 339, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */ - 339, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ - 339, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ - 339, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - 339, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - 339, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */ - 339, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - 339, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */ - 355, /* (57) dnode_endpoint ::= NK_STRING */ - 355, /* (58) dnode_endpoint ::= NK_ID */ - 355, /* (59) dnode_endpoint ::= NK_IPTOKEN */ - 356, /* (60) force_opt ::= */ - 356, /* (61) force_opt ::= FORCE */ - 357, /* (62) unsafe_opt ::= UNSAFE */ - 339, /* (63) cmd ::= ALTER LOCAL NK_STRING */ - 339, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - 339, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - 339, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - 339, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ - 339, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - 339, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - 339, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - 339, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - 339, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - 339, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - 339, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ - 339, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ - 339, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - 339, /* (77) cmd ::= DROP DATABASE exists_opt db_name */ - 339, /* (78) cmd ::= USE db_name */ - 339, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */ - 339, /* (80) cmd ::= FLUSH DATABASE db_name */ - 339, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */ - 339, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ - 358, /* (83) not_exists_opt ::= IF NOT EXISTS */ - 358, /* (84) not_exists_opt ::= */ - 360, /* (85) exists_opt ::= IF EXISTS */ - 360, /* (86) exists_opt ::= */ - 359, /* (87) db_options ::= */ - 359, /* (88) db_options ::= db_options BUFFER NK_INTEGER */ - 359, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */ - 359, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */ - 359, /* (91) db_options ::= db_options COMP NK_INTEGER */ - 359, /* (92) db_options ::= db_options DURATION NK_INTEGER */ - 359, /* (93) db_options ::= db_options DURATION NK_VARIABLE */ - 359, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */ - 359, /* (95) db_options ::= db_options MINROWS NK_INTEGER */ - 359, /* (96) db_options ::= db_options KEEP integer_list */ - 359, /* (97) db_options ::= db_options KEEP variable_list */ - 359, /* (98) db_options ::= db_options PAGES NK_INTEGER */ - 359, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */ - 359, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ - 359, /* (101) db_options ::= db_options PRECISION NK_STRING */ - 359, /* (102) db_options ::= db_options REPLICA NK_INTEGER */ - 359, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */ - 359, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - 359, /* (105) db_options ::= db_options RETENTIONS retention_list */ - 359, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */ - 359, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */ - 359, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ - 359, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ - 359, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ - 359, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ - 359, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ - 359, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ - 359, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ - 359, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */ - 359, /* (116) db_options ::= db_options TABLE_PREFIX signed */ - 359, /* (117) db_options ::= db_options TABLE_SUFFIX signed */ - 361, /* (118) alter_db_options ::= alter_db_option */ - 361, /* (119) alter_db_options ::= alter_db_options alter_db_option */ - 369, /* (120) alter_db_option ::= BUFFER NK_INTEGER */ - 369, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */ - 369, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */ - 369, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ - 369, /* (124) alter_db_option ::= KEEP integer_list */ - 369, /* (125) alter_db_option ::= KEEP variable_list */ - 369, /* (126) alter_db_option ::= PAGES NK_INTEGER */ - 369, /* (127) alter_db_option ::= REPLICA NK_INTEGER */ - 369, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */ - 369, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */ - 369, /* (130) alter_db_option ::= MINROWS NK_INTEGER */ - 369, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ - 369, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ - 369, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ - 369, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ - 365, /* (135) integer_list ::= NK_INTEGER */ - 365, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - 366, /* (137) variable_list ::= NK_VARIABLE */ - 366, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - 367, /* (139) retention_list ::= retention */ - 367, /* (140) retention_list ::= retention_list NK_COMMA retention */ - 370, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - 362, /* (142) speed_opt ::= */ - 362, /* (143) speed_opt ::= BWLIMIT NK_INTEGER */ - 363, /* (144) start_opt ::= */ - 363, /* (145) start_opt ::= START WITH NK_INTEGER */ - 363, /* (146) start_opt ::= START WITH NK_STRING */ - 363, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */ - 364, /* (148) end_opt ::= */ - 364, /* (149) end_opt ::= END WITH NK_INTEGER */ - 364, /* (150) end_opt ::= END WITH NK_STRING */ - 364, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */ - 339, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - 339, /* (153) cmd ::= CREATE TABLE multi_create_clause */ - 339, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - 339, /* (155) cmd ::= DROP TABLE multi_drop_clause */ - 339, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */ - 339, /* (157) cmd ::= ALTER TABLE alter_table_clause */ - 339, /* (158) cmd ::= ALTER STABLE alter_table_clause */ - 378, /* (159) alter_table_clause ::= full_table_name alter_table_options */ - 378, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - 378, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - 378, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - 378, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - 378, /* (164) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - 378, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ - 378, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - 378, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - 378, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - 375, /* (169) multi_create_clause ::= create_subtable_clause */ - 375, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */ - 383, /* (171) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ - 377, /* (172) multi_drop_clause ::= drop_table_clause */ - 377, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ - 386, /* (174) drop_table_clause ::= exists_opt full_table_name */ - 384, /* (175) specific_cols_opt ::= */ - 384, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */ - 371, /* (177) full_table_name ::= table_name */ - 371, /* (178) full_table_name ::= db_name NK_DOT table_name */ - 372, /* (179) column_def_list ::= column_def */ - 372, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */ - 388, /* (181) column_def ::= column_name type_name */ - 381, /* (182) type_name ::= BOOL */ - 381, /* (183) type_name ::= TINYINT */ - 381, /* (184) type_name ::= SMALLINT */ - 381, /* (185) type_name ::= INT */ - 381, /* (186) type_name ::= INTEGER */ - 381, /* (187) type_name ::= BIGINT */ - 381, /* (188) type_name ::= FLOAT */ - 381, /* (189) type_name ::= DOUBLE */ - 381, /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - 381, /* (191) type_name ::= TIMESTAMP */ - 381, /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - 381, /* (193) type_name ::= TINYINT UNSIGNED */ - 381, /* (194) type_name ::= SMALLINT UNSIGNED */ - 381, /* (195) type_name ::= INT UNSIGNED */ - 381, /* (196) type_name ::= BIGINT UNSIGNED */ - 381, /* (197) type_name ::= JSON */ - 381, /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - 381, /* (199) type_name ::= MEDIUMBLOB */ - 381, /* (200) type_name ::= BLOB */ - 381, /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - 381, /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ - 381, /* (203) type_name ::= DECIMAL */ - 381, /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - 381, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 373, /* (206) tags_def_opt ::= */ - 373, /* (207) tags_def_opt ::= tags_def */ - 376, /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - 374, /* (209) table_options ::= */ - 374, /* (210) table_options ::= table_options COMMENT NK_STRING */ - 374, /* (211) table_options ::= table_options MAX_DELAY duration_list */ - 374, /* (212) table_options ::= table_options WATERMARK duration_list */ - 374, /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - 374, /* (214) table_options ::= table_options TTL NK_INTEGER */ - 374, /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - 374, /* (216) table_options ::= table_options DELETE_MARK duration_list */ - 379, /* (217) alter_table_options ::= alter_table_option */ - 379, /* (218) alter_table_options ::= alter_table_options alter_table_option */ - 391, /* (219) alter_table_option ::= COMMENT NK_STRING */ - 391, /* (220) alter_table_option ::= TTL NK_INTEGER */ - 389, /* (221) duration_list ::= duration_literal */ - 389, /* (222) duration_list ::= duration_list NK_COMMA duration_literal */ - 390, /* (223) rollup_func_list ::= rollup_func_name */ - 390, /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - 393, /* (225) rollup_func_name ::= function_name */ - 393, /* (226) rollup_func_name ::= FIRST */ - 393, /* (227) rollup_func_name ::= LAST */ - 387, /* (228) col_name_list ::= col_name */ - 387, /* (229) col_name_list ::= col_name_list NK_COMMA col_name */ - 395, /* (230) col_name ::= column_name */ - 339, /* (231) cmd ::= SHOW DNODES */ - 339, /* (232) cmd ::= SHOW USERS */ - 339, /* (233) cmd ::= SHOW USER PRIVILEGES */ - 339, /* (234) cmd ::= SHOW DATABASES */ - 339, /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - 339, /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - 339, /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */ - 339, /* (238) cmd ::= SHOW MNODES */ - 339, /* (239) cmd ::= SHOW QNODES */ - 339, /* (240) cmd ::= SHOW FUNCTIONS */ - 339, /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - 339, /* (242) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - 339, /* (243) cmd ::= SHOW STREAMS */ - 339, /* (244) cmd ::= SHOW ACCOUNTS */ - 339, /* (245) cmd ::= SHOW APPS */ - 339, /* (246) cmd ::= SHOW CONNECTIONS */ - 339, /* (247) cmd ::= SHOW LICENCES */ - 339, /* (248) cmd ::= SHOW GRANTS */ - 339, /* (249) cmd ::= SHOW CREATE DATABASE db_name */ - 339, /* (250) cmd ::= SHOW CREATE TABLE full_table_name */ - 339, /* (251) cmd ::= SHOW CREATE STABLE full_table_name */ - 339, /* (252) cmd ::= SHOW QUERIES */ - 339, /* (253) cmd ::= SHOW SCORES */ - 339, /* (254) cmd ::= SHOW TOPICS */ - 339, /* (255) cmd ::= SHOW VARIABLES */ - 339, /* (256) cmd ::= SHOW CLUSTER VARIABLES */ - 339, /* (257) cmd ::= SHOW LOCAL VARIABLES */ - 339, /* (258) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - 339, /* (259) cmd ::= SHOW BNODES */ - 339, /* (260) cmd ::= SHOW SNODES */ - 339, /* (261) cmd ::= SHOW CLUSTER */ - 339, /* (262) cmd ::= SHOW TRANSACTIONS */ - 339, /* (263) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - 339, /* (264) cmd ::= SHOW CONSUMERS */ - 339, /* (265) cmd ::= SHOW SUBSCRIPTIONS */ - 339, /* (266) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - 339, /* (267) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - 339, /* (268) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - 339, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - 339, /* (270) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ - 339, /* (271) cmd ::= SHOW VNODES */ - 339, /* (272) cmd ::= SHOW db_name_cond_opt ALIVE */ - 339, /* (273) cmd ::= SHOW CLUSTER ALIVE */ - 396, /* (274) db_name_cond_opt ::= */ - 396, /* (275) db_name_cond_opt ::= db_name NK_DOT */ - 397, /* (276) like_pattern_opt ::= */ - 397, /* (277) like_pattern_opt ::= LIKE NK_STRING */ - 398, /* (278) table_name_cond ::= table_name */ - 399, /* (279) from_db_opt ::= */ - 399, /* (280) from_db_opt ::= FROM db_name */ - 400, /* (281) tag_list_opt ::= */ - 400, /* (282) tag_list_opt ::= tag_item */ - 400, /* (283) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - 401, /* (284) tag_item ::= TBNAME */ - 401, /* (285) tag_item ::= QTAGS */ - 401, /* (286) tag_item ::= column_name */ - 401, /* (287) tag_item ::= column_name column_alias */ - 401, /* (288) tag_item ::= column_name AS column_alias */ - 339, /* (289) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ - 339, /* (290) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ - 339, /* (291) cmd ::= DROP INDEX exists_opt full_index_name */ - 404, /* (292) full_index_name ::= index_name */ - 404, /* (293) full_index_name ::= db_name NK_DOT index_name */ - 403, /* (294) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - 403, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ - 406, /* (296) func_list ::= func */ - 406, /* (297) func_list ::= func_list NK_COMMA func */ - 409, /* (298) func ::= sma_func_name NK_LP expression_list NK_RP */ - 410, /* (299) sma_func_name ::= function_name */ - 410, /* (300) sma_func_name ::= COUNT */ - 410, /* (301) sma_func_name ::= FIRST */ - 410, /* (302) sma_func_name ::= LAST */ - 410, /* (303) sma_func_name ::= LAST_ROW */ - 408, /* (304) sma_stream_opt ::= */ - 408, /* (305) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - 408, /* (306) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - 408, /* (307) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - 411, /* (308) with_meta ::= AS */ - 411, /* (309) with_meta ::= WITH META AS */ - 411, /* (310) with_meta ::= ONLY META AS */ - 339, /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - 339, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - 339, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - 339, /* (314) cmd ::= DROP TOPIC exists_opt topic_name */ - 339, /* (315) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - 339, /* (316) cmd ::= DESC full_table_name */ - 339, /* (317) cmd ::= DESCRIBE full_table_name */ - 339, /* (318) cmd ::= RESET QUERY CACHE */ - 339, /* (319) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - 339, /* (320) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 415, /* (321) analyze_opt ::= */ - 415, /* (322) analyze_opt ::= ANALYZE */ - 416, /* (323) explain_options ::= */ - 416, /* (324) explain_options ::= explain_options VERBOSE NK_BOOL */ - 416, /* (325) explain_options ::= explain_options RATIO NK_FLOAT */ - 339, /* (326) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - 339, /* (327) cmd ::= DROP FUNCTION exists_opt function_name */ - 419, /* (328) agg_func_opt ::= */ - 419, /* (329) agg_func_opt ::= AGGREGATE */ - 420, /* (330) bufsize_opt ::= */ - 420, /* (331) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 421, /* (332) language_opt ::= */ - 421, /* (333) language_opt ::= LANGUAGE NK_STRING */ - 418, /* (334) or_replace_opt ::= */ - 418, /* (335) or_replace_opt ::= OR REPLACE */ - 339, /* (336) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ - 339, /* (337) cmd ::= DROP STREAM exists_opt stream_name */ - 339, /* (338) cmd ::= PAUSE STREAM exists_opt stream_name */ - 339, /* (339) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 424, /* (340) col_list_opt ::= */ - 424, /* (341) col_list_opt ::= NK_LP col_name_list NK_RP */ - 425, /* (342) tag_def_or_ref_opt ::= */ - 425, /* (343) tag_def_or_ref_opt ::= tags_def */ - 425, /* (344) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ - 423, /* (345) stream_options ::= */ - 423, /* (346) stream_options ::= stream_options TRIGGER AT_ONCE */ - 423, /* (347) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - 423, /* (348) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - 423, /* (349) stream_options ::= stream_options WATERMARK duration_literal */ - 423, /* (350) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - 423, /* (351) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - 423, /* (352) stream_options ::= stream_options DELETE_MARK duration_literal */ - 423, /* (353) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 426, /* (354) subtable_opt ::= */ - 426, /* (355) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 427, /* (356) ignore_opt ::= */ - 427, /* (357) ignore_opt ::= IGNORE UNTREATED */ - 339, /* (358) cmd ::= KILL CONNECTION NK_INTEGER */ - 339, /* (359) cmd ::= KILL QUERY NK_STRING */ - 339, /* (360) cmd ::= KILL TRANSACTION NK_INTEGER */ - 339, /* (361) cmd ::= BALANCE VGROUP */ - 339, /* (362) cmd ::= BALANCE VGROUP LEADER */ - 339, /* (363) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - 339, /* (364) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - 339, /* (365) cmd ::= SPLIT VGROUP NK_INTEGER */ - 429, /* (366) dnode_list ::= DNODE NK_INTEGER */ - 429, /* (367) dnode_list ::= dnode_list DNODE NK_INTEGER */ - 339, /* (368) cmd ::= DELETE FROM full_table_name where_clause_opt */ - 339, /* (369) cmd ::= query_or_subquery */ - 339, /* (370) cmd ::= insert_query */ - 417, /* (371) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - 417, /* (372) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - 342, /* (373) literal ::= NK_INTEGER */ - 342, /* (374) literal ::= NK_FLOAT */ - 342, /* (375) literal ::= NK_STRING */ - 342, /* (376) literal ::= NK_BOOL */ - 342, /* (377) literal ::= TIMESTAMP NK_STRING */ - 342, /* (378) literal ::= duration_literal */ - 342, /* (379) literal ::= NULL */ - 342, /* (380) literal ::= NK_QUESTION */ - 392, /* (381) duration_literal ::= NK_VARIABLE */ - 368, /* (382) signed ::= NK_INTEGER */ - 368, /* (383) signed ::= NK_PLUS NK_INTEGER */ - 368, /* (384) signed ::= NK_MINUS NK_INTEGER */ - 368, /* (385) signed ::= NK_FLOAT */ - 368, /* (386) signed ::= NK_PLUS NK_FLOAT */ - 368, /* (387) signed ::= NK_MINUS NK_FLOAT */ - 382, /* (388) signed_literal ::= signed */ - 382, /* (389) signed_literal ::= NK_STRING */ - 382, /* (390) signed_literal ::= NK_BOOL */ - 382, /* (391) signed_literal ::= TIMESTAMP NK_STRING */ - 382, /* (392) signed_literal ::= duration_literal */ - 382, /* (393) signed_literal ::= NULL */ - 382, /* (394) signed_literal ::= literal_func */ - 382, /* (395) signed_literal ::= NK_QUESTION */ - 431, /* (396) literal_list ::= signed_literal */ - 431, /* (397) literal_list ::= literal_list NK_COMMA signed_literal */ - 351, /* (398) db_name ::= NK_ID */ - 352, /* (399) table_name ::= NK_ID */ - 380, /* (400) column_name ::= NK_ID */ - 394, /* (401) function_name ::= NK_ID */ - 432, /* (402) table_alias ::= NK_ID */ - 402, /* (403) column_alias ::= NK_ID */ - 344, /* (404) user_name ::= NK_ID */ - 353, /* (405) topic_name ::= NK_ID */ - 422, /* (406) stream_name ::= NK_ID */ - 414, /* (407) cgroup_name ::= NK_ID */ - 405, /* (408) index_name ::= NK_ID */ - 433, /* (409) expr_or_subquery ::= expression */ - 428, /* (410) expression ::= literal */ - 428, /* (411) expression ::= pseudo_column */ - 428, /* (412) expression ::= column_reference */ - 428, /* (413) expression ::= function_expression */ - 428, /* (414) expression ::= case_when_expression */ - 428, /* (415) expression ::= NK_LP expression NK_RP */ - 428, /* (416) expression ::= NK_PLUS expr_or_subquery */ - 428, /* (417) expression ::= NK_MINUS expr_or_subquery */ - 428, /* (418) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - 428, /* (419) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - 428, /* (420) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - 428, /* (421) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - 428, /* (422) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - 428, /* (423) expression ::= column_reference NK_ARROW NK_STRING */ - 428, /* (424) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - 428, /* (425) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - 385, /* (426) expression_list ::= expr_or_subquery */ - 385, /* (427) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - 435, /* (428) column_reference ::= column_name */ - 435, /* (429) column_reference ::= table_name NK_DOT column_name */ - 434, /* (430) pseudo_column ::= ROWTS */ - 434, /* (431) pseudo_column ::= TBNAME */ - 434, /* (432) pseudo_column ::= table_name NK_DOT TBNAME */ - 434, /* (433) pseudo_column ::= QSTART */ - 434, /* (434) pseudo_column ::= QEND */ - 434, /* (435) pseudo_column ::= QDURATION */ - 434, /* (436) pseudo_column ::= WSTART */ - 434, /* (437) pseudo_column ::= WEND */ - 434, /* (438) pseudo_column ::= WDURATION */ - 434, /* (439) pseudo_column ::= IROWTS */ - 434, /* (440) pseudo_column ::= ISFILLED */ - 434, /* (441) pseudo_column ::= QTAGS */ - 436, /* (442) function_expression ::= function_name NK_LP expression_list NK_RP */ - 436, /* (443) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - 436, /* (444) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - 436, /* (445) function_expression ::= literal_func */ - 430, /* (446) literal_func ::= noarg_func NK_LP NK_RP */ - 430, /* (447) literal_func ::= NOW */ - 440, /* (448) noarg_func ::= NOW */ - 440, /* (449) noarg_func ::= TODAY */ - 440, /* (450) noarg_func ::= TIMEZONE */ - 440, /* (451) noarg_func ::= DATABASE */ - 440, /* (452) noarg_func ::= CLIENT_VERSION */ - 440, /* (453) noarg_func ::= SERVER_VERSION */ - 440, /* (454) noarg_func ::= SERVER_STATUS */ - 440, /* (455) noarg_func ::= CURRENT_USER */ - 440, /* (456) noarg_func ::= USER */ - 438, /* (457) star_func ::= COUNT */ - 438, /* (458) star_func ::= FIRST */ - 438, /* (459) star_func ::= LAST */ - 438, /* (460) star_func ::= LAST_ROW */ - 439, /* (461) star_func_para_list ::= NK_STAR */ - 439, /* (462) star_func_para_list ::= other_para_list */ - 441, /* (463) other_para_list ::= star_func_para */ - 441, /* (464) other_para_list ::= other_para_list NK_COMMA star_func_para */ - 442, /* (465) star_func_para ::= expr_or_subquery */ - 442, /* (466) star_func_para ::= table_name NK_DOT NK_STAR */ - 437, /* (467) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - 437, /* (468) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - 443, /* (469) when_then_list ::= when_then_expr */ - 443, /* (470) when_then_list ::= when_then_list when_then_expr */ - 446, /* (471) when_then_expr ::= WHEN common_expression THEN common_expression */ - 444, /* (472) case_when_else_opt ::= */ - 444, /* (473) case_when_else_opt ::= ELSE common_expression */ - 447, /* (474) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - 447, /* (475) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - 447, /* (476) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - 447, /* (477) predicate ::= expr_or_subquery IS NULL */ - 447, /* (478) predicate ::= expr_or_subquery IS NOT NULL */ - 447, /* (479) predicate ::= expr_or_subquery in_op in_predicate_value */ - 448, /* (480) compare_op ::= NK_LT */ - 448, /* (481) compare_op ::= NK_GT */ - 448, /* (482) compare_op ::= NK_LE */ - 448, /* (483) compare_op ::= NK_GE */ - 448, /* (484) compare_op ::= NK_NE */ - 448, /* (485) compare_op ::= NK_EQ */ - 448, /* (486) compare_op ::= LIKE */ - 448, /* (487) compare_op ::= NOT LIKE */ - 448, /* (488) compare_op ::= MATCH */ - 448, /* (489) compare_op ::= NMATCH */ - 448, /* (490) compare_op ::= CONTAINS */ - 449, /* (491) in_op ::= IN */ - 449, /* (492) in_op ::= NOT IN */ - 450, /* (493) in_predicate_value ::= NK_LP literal_list NK_RP */ - 451, /* (494) boolean_value_expression ::= boolean_primary */ - 451, /* (495) boolean_value_expression ::= NOT boolean_primary */ - 451, /* (496) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - 451, /* (497) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - 452, /* (498) boolean_primary ::= predicate */ - 452, /* (499) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - 445, /* (500) common_expression ::= expr_or_subquery */ - 445, /* (501) common_expression ::= boolean_value_expression */ - 453, /* (502) from_clause_opt ::= */ - 453, /* (503) from_clause_opt ::= FROM table_reference_list */ - 454, /* (504) table_reference_list ::= table_reference */ - 454, /* (505) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - 455, /* (506) table_reference ::= table_primary */ - 455, /* (507) table_reference ::= joined_table */ - 456, /* (508) table_primary ::= table_name alias_opt */ - 456, /* (509) table_primary ::= db_name NK_DOT table_name alias_opt */ - 456, /* (510) table_primary ::= subquery alias_opt */ - 456, /* (511) table_primary ::= parenthesized_joined_table */ - 458, /* (512) alias_opt ::= */ - 458, /* (513) alias_opt ::= table_alias */ - 458, /* (514) alias_opt ::= AS table_alias */ - 460, /* (515) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - 460, /* (516) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - 457, /* (517) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - 461, /* (518) join_type ::= */ - 461, /* (519) join_type ::= INNER */ - 462, /* (520) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - 463, /* (521) hint_list ::= */ - 463, /* (522) hint_list ::= NK_HINT */ - 465, /* (523) tag_mode_opt ::= */ - 465, /* (524) tag_mode_opt ::= TAGS */ - 464, /* (525) set_quantifier_opt ::= */ - 464, /* (526) set_quantifier_opt ::= DISTINCT */ - 464, /* (527) set_quantifier_opt ::= ALL */ - 466, /* (528) select_list ::= select_item */ - 466, /* (529) select_list ::= select_list NK_COMMA select_item */ - 474, /* (530) select_item ::= NK_STAR */ - 474, /* (531) select_item ::= common_expression */ - 474, /* (532) select_item ::= common_expression column_alias */ - 474, /* (533) select_item ::= common_expression AS column_alias */ - 474, /* (534) select_item ::= table_name NK_DOT NK_STAR */ - 413, /* (535) where_clause_opt ::= */ - 413, /* (536) where_clause_opt ::= WHERE search_condition */ - 467, /* (537) partition_by_clause_opt ::= */ - 467, /* (538) partition_by_clause_opt ::= PARTITION BY partition_list */ - 475, /* (539) partition_list ::= partition_item */ - 475, /* (540) partition_list ::= partition_list NK_COMMA partition_item */ - 476, /* (541) partition_item ::= expr_or_subquery */ - 476, /* (542) partition_item ::= expr_or_subquery column_alias */ - 476, /* (543) partition_item ::= expr_or_subquery AS column_alias */ - 471, /* (544) twindow_clause_opt ::= */ - 471, /* (545) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - 471, /* (546) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - 471, /* (547) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - 471, /* (548) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - 471, /* (549) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - 407, /* (550) sliding_opt ::= */ - 407, /* (551) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - 470, /* (552) fill_opt ::= */ - 470, /* (553) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - 470, /* (554) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - 470, /* (555) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - 477, /* (556) fill_mode ::= NONE */ - 477, /* (557) fill_mode ::= PREV */ - 477, /* (558) fill_mode ::= NULL */ - 477, /* (559) fill_mode ::= NULL_F */ - 477, /* (560) fill_mode ::= LINEAR */ - 477, /* (561) fill_mode ::= NEXT */ - 472, /* (562) group_by_clause_opt ::= */ - 472, /* (563) group_by_clause_opt ::= GROUP BY group_by_list */ - 478, /* (564) group_by_list ::= expr_or_subquery */ - 478, /* (565) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 473, /* (566) having_clause_opt ::= */ - 473, /* (567) having_clause_opt ::= HAVING search_condition */ - 468, /* (568) range_opt ::= */ - 468, /* (569) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - 468, /* (570) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 469, /* (571) every_opt ::= */ - 469, /* (572) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - 479, /* (573) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - 480, /* (574) query_simple ::= query_specification */ - 480, /* (575) query_simple ::= union_query_expression */ - 484, /* (576) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - 484, /* (577) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - 485, /* (578) query_simple_or_subquery ::= query_simple */ - 485, /* (579) query_simple_or_subquery ::= subquery */ - 412, /* (580) query_or_subquery ::= query_expression */ - 412, /* (581) query_or_subquery ::= subquery */ - 481, /* (582) order_by_clause_opt ::= */ - 481, /* (583) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 482, /* (584) slimit_clause_opt ::= */ - 482, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - 482, /* (586) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - 482, /* (587) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 483, /* (588) limit_clause_opt ::= */ - 483, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER */ - 483, /* (590) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - 483, /* (591) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 459, /* (592) subquery ::= NK_LP query_expression NK_RP */ - 459, /* (593) subquery ::= NK_LP subquery NK_RP */ - 354, /* (594) search_condition ::= common_expression */ - 486, /* (595) sort_specification_list ::= sort_specification */ - 486, /* (596) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - 487, /* (597) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 488, /* (598) ordering_specification_opt ::= */ - 488, /* (599) ordering_specification_opt ::= ASC */ - 488, /* (600) ordering_specification_opt ::= DESC */ - 489, /* (601) null_ordering_opt ::= */ - 489, /* (602) null_ordering_opt ::= NULLS FIRST */ - 489, /* (603) null_ordering_opt ::= NULLS LAST */ + 340, /* (0) cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ + 340, /* (1) cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ + 341, /* (2) account_options ::= */ + 341, /* (3) account_options ::= account_options PPS literal */ + 341, /* (4) account_options ::= account_options TSERIES literal */ + 341, /* (5) account_options ::= account_options STORAGE literal */ + 341, /* (6) account_options ::= account_options STREAMS literal */ + 341, /* (7) account_options ::= account_options QTIME literal */ + 341, /* (8) account_options ::= account_options DBS literal */ + 341, /* (9) account_options ::= account_options USERS literal */ + 341, /* (10) account_options ::= account_options CONNS literal */ + 341, /* (11) account_options ::= account_options STATE literal */ + 342, /* (12) alter_account_options ::= alter_account_option */ + 342, /* (13) alter_account_options ::= alter_account_options alter_account_option */ + 344, /* (14) alter_account_option ::= PASS literal */ + 344, /* (15) alter_account_option ::= PPS literal */ + 344, /* (16) alter_account_option ::= TSERIES literal */ + 344, /* (17) alter_account_option ::= STORAGE literal */ + 344, /* (18) alter_account_option ::= STREAMS literal */ + 344, /* (19) alter_account_option ::= QTIME literal */ + 344, /* (20) alter_account_option ::= DBS literal */ + 344, /* (21) alter_account_option ::= USERS literal */ + 344, /* (22) alter_account_option ::= CONNS literal */ + 344, /* (23) alter_account_option ::= STATE literal */ + 345, /* (24) ip_range_list ::= NK_STRING */ + 345, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ + 346, /* (26) white_list ::= HOST ip_range_list */ + 347, /* (27) white_list_opt ::= */ + 347, /* (28) white_list_opt ::= white_list */ + 340, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ + 340, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */ + 340, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ + 340, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ + 340, /* (33) cmd ::= ALTER USER user_name ADD white_list */ + 340, /* (34) cmd ::= ALTER USER user_name DROP white_list */ + 340, /* (35) cmd ::= DROP USER user_name */ + 349, /* (36) sysinfo_opt ::= */ + 349, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */ + 340, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ + 340, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ + 350, /* (40) privileges ::= ALL */ + 350, /* (41) privileges ::= priv_type_list */ + 350, /* (42) privileges ::= SUBSCRIBE */ + 353, /* (43) priv_type_list ::= priv_type */ + 353, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + 354, /* (45) priv_type ::= READ */ + 354, /* (46) priv_type ::= WRITE */ + 351, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */ + 351, /* (48) priv_level ::= db_name NK_DOT NK_STAR */ + 351, /* (49) priv_level ::= db_name NK_DOT table_name */ + 351, /* (50) priv_level ::= topic_name */ + 352, /* (51) with_opt ::= */ + 352, /* (52) with_opt ::= WITH search_condition */ + 340, /* (53) cmd ::= CREATE DNODE dnode_endpoint */ + 340, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + 340, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */ + 340, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */ + 340, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ + 340, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ + 340, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + 340, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + 340, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */ + 340, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + 340, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */ + 359, /* (64) dnode_endpoint ::= NK_STRING */ + 359, /* (65) dnode_endpoint ::= NK_ID */ + 359, /* (66) dnode_endpoint ::= NK_IPTOKEN */ + 360, /* (67) force_opt ::= */ + 360, /* (68) force_opt ::= FORCE */ + 361, /* (69) unsafe_opt ::= UNSAFE */ + 340, /* (70) cmd ::= ALTER LOCAL NK_STRING */ + 340, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + 340, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + 340, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + 340, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ + 340, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + 340, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + 340, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + 340, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + 340, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + 340, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + 340, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ + 340, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ + 340, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + 340, /* (84) cmd ::= DROP DATABASE exists_opt db_name */ + 340, /* (85) cmd ::= USE db_name */ + 340, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */ + 340, /* (87) cmd ::= FLUSH DATABASE db_name */ + 340, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */ + 340, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ + 362, /* (90) not_exists_opt ::= IF NOT EXISTS */ + 362, /* (91) not_exists_opt ::= */ + 364, /* (92) exists_opt ::= IF EXISTS */ + 364, /* (93) exists_opt ::= */ + 363, /* (94) db_options ::= */ + 363, /* (95) db_options ::= db_options BUFFER NK_INTEGER */ + 363, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */ + 363, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */ + 363, /* (98) db_options ::= db_options COMP NK_INTEGER */ + 363, /* (99) db_options ::= db_options DURATION NK_INTEGER */ + 363, /* (100) db_options ::= db_options DURATION NK_VARIABLE */ + 363, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */ + 363, /* (102) db_options ::= db_options MINROWS NK_INTEGER */ + 363, /* (103) db_options ::= db_options KEEP integer_list */ + 363, /* (104) db_options ::= db_options KEEP variable_list */ + 363, /* (105) db_options ::= db_options PAGES NK_INTEGER */ + 363, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */ + 363, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ + 363, /* (108) db_options ::= db_options PRECISION NK_STRING */ + 363, /* (109) db_options ::= db_options REPLICA NK_INTEGER */ + 363, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */ + 363, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + 363, /* (112) db_options ::= db_options RETENTIONS retention_list */ + 363, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */ + 363, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */ + 363, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ + 363, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ + 363, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + 363, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ + 363, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + 363, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ + 363, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ + 363, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */ + 363, /* (123) db_options ::= db_options TABLE_PREFIX signed */ + 363, /* (124) db_options ::= db_options TABLE_SUFFIX signed */ + 365, /* (125) alter_db_options ::= alter_db_option */ + 365, /* (126) alter_db_options ::= alter_db_options alter_db_option */ + 373, /* (127) alter_db_option ::= BUFFER NK_INTEGER */ + 373, /* (128) alter_db_option ::= CACHEMODEL NK_STRING */ + 373, /* (129) alter_db_option ::= CACHESIZE NK_INTEGER */ + 373, /* (130) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ + 373, /* (131) alter_db_option ::= KEEP integer_list */ + 373, /* (132) alter_db_option ::= KEEP variable_list */ + 373, /* (133) alter_db_option ::= PAGES NK_INTEGER */ + 373, /* (134) alter_db_option ::= REPLICA NK_INTEGER */ + 373, /* (135) alter_db_option ::= WAL_LEVEL NK_INTEGER */ + 373, /* (136) alter_db_option ::= STT_TRIGGER NK_INTEGER */ + 373, /* (137) alter_db_option ::= MINROWS NK_INTEGER */ + 373, /* (138) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ + 373, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + 373, /* (140) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ + 373, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + 369, /* (142) integer_list ::= NK_INTEGER */ + 369, /* (143) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + 370, /* (144) variable_list ::= NK_VARIABLE */ + 370, /* (145) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + 371, /* (146) retention_list ::= retention */ + 371, /* (147) retention_list ::= retention_list NK_COMMA retention */ + 374, /* (148) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + 366, /* (149) speed_opt ::= */ + 366, /* (150) speed_opt ::= BWLIMIT NK_INTEGER */ + 367, /* (151) start_opt ::= */ + 367, /* (152) start_opt ::= START WITH NK_INTEGER */ + 367, /* (153) start_opt ::= START WITH NK_STRING */ + 367, /* (154) start_opt ::= START WITH TIMESTAMP NK_STRING */ + 368, /* (155) end_opt ::= */ + 368, /* (156) end_opt ::= END WITH NK_INTEGER */ + 368, /* (157) end_opt ::= END WITH NK_STRING */ + 368, /* (158) end_opt ::= END WITH TIMESTAMP NK_STRING */ + 340, /* (159) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + 340, /* (160) cmd ::= CREATE TABLE multi_create_clause */ + 340, /* (161) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + 340, /* (162) cmd ::= DROP TABLE multi_drop_clause */ + 340, /* (163) cmd ::= DROP STABLE exists_opt full_table_name */ + 340, /* (164) cmd ::= ALTER TABLE alter_table_clause */ + 340, /* (165) cmd ::= ALTER STABLE alter_table_clause */ + 382, /* (166) alter_table_clause ::= full_table_name alter_table_options */ + 382, /* (167) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + 382, /* (168) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + 382, /* (169) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + 382, /* (170) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + 382, /* (171) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + 382, /* (172) alter_table_clause ::= full_table_name DROP TAG column_name */ + 382, /* (173) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + 382, /* (174) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + 382, /* (175) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + 379, /* (176) multi_create_clause ::= create_subtable_clause */ + 379, /* (177) multi_create_clause ::= multi_create_clause create_subtable_clause */ + 387, /* (178) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ + 381, /* (179) multi_drop_clause ::= drop_table_clause */ + 381, /* (180) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ + 390, /* (181) drop_table_clause ::= exists_opt full_table_name */ + 388, /* (182) specific_cols_opt ::= */ + 388, /* (183) specific_cols_opt ::= NK_LP col_name_list NK_RP */ + 375, /* (184) full_table_name ::= table_name */ + 375, /* (185) full_table_name ::= db_name NK_DOT table_name */ + 376, /* (186) column_def_list ::= column_def */ + 376, /* (187) column_def_list ::= column_def_list NK_COMMA column_def */ + 392, /* (188) column_def ::= column_name type_name */ + 385, /* (189) type_name ::= BOOL */ + 385, /* (190) type_name ::= TINYINT */ + 385, /* (191) type_name ::= SMALLINT */ + 385, /* (192) type_name ::= INT */ + 385, /* (193) type_name ::= INTEGER */ + 385, /* (194) type_name ::= BIGINT */ + 385, /* (195) type_name ::= FLOAT */ + 385, /* (196) type_name ::= DOUBLE */ + 385, /* (197) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + 385, /* (198) type_name ::= TIMESTAMP */ + 385, /* (199) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + 385, /* (200) type_name ::= TINYINT UNSIGNED */ + 385, /* (201) type_name ::= SMALLINT UNSIGNED */ + 385, /* (202) type_name ::= INT UNSIGNED */ + 385, /* (203) type_name ::= BIGINT UNSIGNED */ + 385, /* (204) type_name ::= JSON */ + 385, /* (205) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + 385, /* (206) type_name ::= MEDIUMBLOB */ + 385, /* (207) type_name ::= BLOB */ + 385, /* (208) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + 385, /* (209) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ + 385, /* (210) type_name ::= DECIMAL */ + 385, /* (211) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + 385, /* (212) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 377, /* (213) tags_def_opt ::= */ + 377, /* (214) tags_def_opt ::= tags_def */ + 380, /* (215) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + 378, /* (216) table_options ::= */ + 378, /* (217) table_options ::= table_options COMMENT NK_STRING */ + 378, /* (218) table_options ::= table_options MAX_DELAY duration_list */ + 378, /* (219) table_options ::= table_options WATERMARK duration_list */ + 378, /* (220) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + 378, /* (221) table_options ::= table_options TTL NK_INTEGER */ + 378, /* (222) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + 378, /* (223) table_options ::= table_options DELETE_MARK duration_list */ + 383, /* (224) alter_table_options ::= alter_table_option */ + 383, /* (225) alter_table_options ::= alter_table_options alter_table_option */ + 395, /* (226) alter_table_option ::= COMMENT NK_STRING */ + 395, /* (227) alter_table_option ::= TTL NK_INTEGER */ + 393, /* (228) duration_list ::= duration_literal */ + 393, /* (229) duration_list ::= duration_list NK_COMMA duration_literal */ + 394, /* (230) rollup_func_list ::= rollup_func_name */ + 394, /* (231) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + 397, /* (232) rollup_func_name ::= function_name */ + 397, /* (233) rollup_func_name ::= FIRST */ + 397, /* (234) rollup_func_name ::= LAST */ + 391, /* (235) col_name_list ::= col_name */ + 391, /* (236) col_name_list ::= col_name_list NK_COMMA col_name */ + 399, /* (237) col_name ::= column_name */ + 340, /* (238) cmd ::= SHOW DNODES */ + 340, /* (239) cmd ::= SHOW USERS */ + 340, /* (240) cmd ::= SHOW USER PRIVILEGES */ + 340, /* (241) cmd ::= SHOW DATABASES */ + 340, /* (242) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + 340, /* (243) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + 340, /* (244) cmd ::= SHOW db_name_cond_opt VGROUPS */ + 340, /* (245) cmd ::= SHOW MNODES */ + 340, /* (246) cmd ::= SHOW QNODES */ + 340, /* (247) cmd ::= SHOW FUNCTIONS */ + 340, /* (248) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + 340, /* (249) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + 340, /* (250) cmd ::= SHOW STREAMS */ + 340, /* (251) cmd ::= SHOW ACCOUNTS */ + 340, /* (252) cmd ::= SHOW APPS */ + 340, /* (253) cmd ::= SHOW CONNECTIONS */ + 340, /* (254) cmd ::= SHOW LICENCES */ + 340, /* (255) cmd ::= SHOW GRANTS */ + 340, /* (256) cmd ::= SHOW CREATE DATABASE db_name */ + 340, /* (257) cmd ::= SHOW CREATE TABLE full_table_name */ + 340, /* (258) cmd ::= SHOW CREATE STABLE full_table_name */ + 340, /* (259) cmd ::= SHOW QUERIES */ + 340, /* (260) cmd ::= SHOW SCORES */ + 340, /* (261) cmd ::= SHOW TOPICS */ + 340, /* (262) cmd ::= SHOW VARIABLES */ + 340, /* (263) cmd ::= SHOW CLUSTER VARIABLES */ + 340, /* (264) cmd ::= SHOW LOCAL VARIABLES */ + 340, /* (265) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + 340, /* (266) cmd ::= SHOW BNODES */ + 340, /* (267) cmd ::= SHOW SNODES */ + 340, /* (268) cmd ::= SHOW CLUSTER */ + 340, /* (269) cmd ::= SHOW TRANSACTIONS */ + 340, /* (270) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + 340, /* (271) cmd ::= SHOW CONSUMERS */ + 340, /* (272) cmd ::= SHOW SUBSCRIPTIONS */ + 340, /* (273) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + 340, /* (274) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + 340, /* (275) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + 340, /* (276) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + 340, /* (277) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + 340, /* (278) cmd ::= SHOW VNODES */ + 340, /* (279) cmd ::= SHOW db_name_cond_opt ALIVE */ + 340, /* (280) cmd ::= SHOW CLUSTER ALIVE */ + 400, /* (281) db_name_cond_opt ::= */ + 400, /* (282) db_name_cond_opt ::= db_name NK_DOT */ + 401, /* (283) like_pattern_opt ::= */ + 401, /* (284) like_pattern_opt ::= LIKE NK_STRING */ + 402, /* (285) table_name_cond ::= table_name */ + 403, /* (286) from_db_opt ::= */ + 403, /* (287) from_db_opt ::= FROM db_name */ + 404, /* (288) tag_list_opt ::= */ + 404, /* (289) tag_list_opt ::= tag_item */ + 404, /* (290) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + 405, /* (291) tag_item ::= TBNAME */ + 405, /* (292) tag_item ::= QTAGS */ + 405, /* (293) tag_item ::= column_name */ + 405, /* (294) tag_item ::= column_name column_alias */ + 405, /* (295) tag_item ::= column_name AS column_alias */ + 340, /* (296) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + 340, /* (297) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ + 340, /* (298) cmd ::= DROP INDEX exists_opt full_index_name */ + 408, /* (299) full_index_name ::= index_name */ + 408, /* (300) full_index_name ::= db_name NK_DOT index_name */ + 407, /* (301) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + 407, /* (302) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ + 410, /* (303) func_list ::= func */ + 410, /* (304) func_list ::= func_list NK_COMMA func */ + 413, /* (305) func ::= sma_func_name NK_LP expression_list NK_RP */ + 414, /* (306) sma_func_name ::= function_name */ + 414, /* (307) sma_func_name ::= COUNT */ + 414, /* (308) sma_func_name ::= FIRST */ + 414, /* (309) sma_func_name ::= LAST */ + 414, /* (310) sma_func_name ::= LAST_ROW */ + 412, /* (311) sma_stream_opt ::= */ + 412, /* (312) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + 412, /* (313) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + 412, /* (314) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + 415, /* (315) with_meta ::= AS */ + 415, /* (316) with_meta ::= WITH META AS */ + 415, /* (317) with_meta ::= ONLY META AS */ + 340, /* (318) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + 340, /* (319) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + 340, /* (320) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + 340, /* (321) cmd ::= DROP TOPIC exists_opt topic_name */ + 340, /* (322) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + 340, /* (323) cmd ::= DESC full_table_name */ + 340, /* (324) cmd ::= DESCRIBE full_table_name */ + 340, /* (325) cmd ::= RESET QUERY CACHE */ + 340, /* (326) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + 340, /* (327) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 419, /* (328) analyze_opt ::= */ + 419, /* (329) analyze_opt ::= ANALYZE */ + 420, /* (330) explain_options ::= */ + 420, /* (331) explain_options ::= explain_options VERBOSE NK_BOOL */ + 420, /* (332) explain_options ::= explain_options RATIO NK_FLOAT */ + 340, /* (333) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + 340, /* (334) cmd ::= DROP FUNCTION exists_opt function_name */ + 423, /* (335) agg_func_opt ::= */ + 423, /* (336) agg_func_opt ::= AGGREGATE */ + 424, /* (337) bufsize_opt ::= */ + 424, /* (338) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 425, /* (339) language_opt ::= */ + 425, /* (340) language_opt ::= LANGUAGE NK_STRING */ + 422, /* (341) or_replace_opt ::= */ + 422, /* (342) or_replace_opt ::= OR REPLACE */ + 340, /* (343) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ + 340, /* (344) cmd ::= DROP STREAM exists_opt stream_name */ + 340, /* (345) cmd ::= PAUSE STREAM exists_opt stream_name */ + 340, /* (346) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 428, /* (347) col_list_opt ::= */ + 428, /* (348) col_list_opt ::= NK_LP col_name_list NK_RP */ + 429, /* (349) tag_def_or_ref_opt ::= */ + 429, /* (350) tag_def_or_ref_opt ::= tags_def */ + 429, /* (351) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ + 427, /* (352) stream_options ::= */ + 427, /* (353) stream_options ::= stream_options TRIGGER AT_ONCE */ + 427, /* (354) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + 427, /* (355) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + 427, /* (356) stream_options ::= stream_options WATERMARK duration_literal */ + 427, /* (357) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + 427, /* (358) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + 427, /* (359) stream_options ::= stream_options DELETE_MARK duration_literal */ + 427, /* (360) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 430, /* (361) subtable_opt ::= */ + 430, /* (362) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 431, /* (363) ignore_opt ::= */ + 431, /* (364) ignore_opt ::= IGNORE UNTREATED */ + 340, /* (365) cmd ::= KILL CONNECTION NK_INTEGER */ + 340, /* (366) cmd ::= KILL QUERY NK_STRING */ + 340, /* (367) cmd ::= KILL TRANSACTION NK_INTEGER */ + 340, /* (368) cmd ::= BALANCE VGROUP */ + 340, /* (369) cmd ::= BALANCE VGROUP LEADER */ + 340, /* (370) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + 340, /* (371) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + 340, /* (372) cmd ::= SPLIT VGROUP NK_INTEGER */ + 433, /* (373) dnode_list ::= DNODE NK_INTEGER */ + 433, /* (374) dnode_list ::= dnode_list DNODE NK_INTEGER */ + 340, /* (375) cmd ::= DELETE FROM full_table_name where_clause_opt */ + 340, /* (376) cmd ::= query_or_subquery */ + 340, /* (377) cmd ::= insert_query */ + 421, /* (378) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + 421, /* (379) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + 343, /* (380) literal ::= NK_INTEGER */ + 343, /* (381) literal ::= NK_FLOAT */ + 343, /* (382) literal ::= NK_STRING */ + 343, /* (383) literal ::= NK_BOOL */ + 343, /* (384) literal ::= TIMESTAMP NK_STRING */ + 343, /* (385) literal ::= duration_literal */ + 343, /* (386) literal ::= NULL */ + 343, /* (387) literal ::= NK_QUESTION */ + 396, /* (388) duration_literal ::= NK_VARIABLE */ + 372, /* (389) signed ::= NK_INTEGER */ + 372, /* (390) signed ::= NK_PLUS NK_INTEGER */ + 372, /* (391) signed ::= NK_MINUS NK_INTEGER */ + 372, /* (392) signed ::= NK_FLOAT */ + 372, /* (393) signed ::= NK_PLUS NK_FLOAT */ + 372, /* (394) signed ::= NK_MINUS NK_FLOAT */ + 386, /* (395) signed_literal ::= signed */ + 386, /* (396) signed_literal ::= NK_STRING */ + 386, /* (397) signed_literal ::= NK_BOOL */ + 386, /* (398) signed_literal ::= TIMESTAMP NK_STRING */ + 386, /* (399) signed_literal ::= duration_literal */ + 386, /* (400) signed_literal ::= NULL */ + 386, /* (401) signed_literal ::= literal_func */ + 386, /* (402) signed_literal ::= NK_QUESTION */ + 435, /* (403) literal_list ::= signed_literal */ + 435, /* (404) literal_list ::= literal_list NK_COMMA signed_literal */ + 355, /* (405) db_name ::= NK_ID */ + 356, /* (406) table_name ::= NK_ID */ + 384, /* (407) column_name ::= NK_ID */ + 398, /* (408) function_name ::= NK_ID */ + 436, /* (409) table_alias ::= NK_ID */ + 406, /* (410) column_alias ::= NK_ID */ + 348, /* (411) user_name ::= NK_ID */ + 357, /* (412) topic_name ::= NK_ID */ + 426, /* (413) stream_name ::= NK_ID */ + 418, /* (414) cgroup_name ::= NK_ID */ + 409, /* (415) index_name ::= NK_ID */ + 437, /* (416) expr_or_subquery ::= expression */ + 432, /* (417) expression ::= literal */ + 432, /* (418) expression ::= pseudo_column */ + 432, /* (419) expression ::= column_reference */ + 432, /* (420) expression ::= function_expression */ + 432, /* (421) expression ::= case_when_expression */ + 432, /* (422) expression ::= NK_LP expression NK_RP */ + 432, /* (423) expression ::= NK_PLUS expr_or_subquery */ + 432, /* (424) expression ::= NK_MINUS expr_or_subquery */ + 432, /* (425) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + 432, /* (426) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + 432, /* (427) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + 432, /* (428) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + 432, /* (429) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + 432, /* (430) expression ::= column_reference NK_ARROW NK_STRING */ + 432, /* (431) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + 432, /* (432) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + 389, /* (433) expression_list ::= expr_or_subquery */ + 389, /* (434) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + 439, /* (435) column_reference ::= column_name */ + 439, /* (436) column_reference ::= table_name NK_DOT column_name */ + 438, /* (437) pseudo_column ::= ROWTS */ + 438, /* (438) pseudo_column ::= TBNAME */ + 438, /* (439) pseudo_column ::= table_name NK_DOT TBNAME */ + 438, /* (440) pseudo_column ::= QSTART */ + 438, /* (441) pseudo_column ::= QEND */ + 438, /* (442) pseudo_column ::= QDURATION */ + 438, /* (443) pseudo_column ::= WSTART */ + 438, /* (444) pseudo_column ::= WEND */ + 438, /* (445) pseudo_column ::= WDURATION */ + 438, /* (446) pseudo_column ::= IROWTS */ + 438, /* (447) pseudo_column ::= ISFILLED */ + 438, /* (448) pseudo_column ::= QTAGS */ + 440, /* (449) function_expression ::= function_name NK_LP expression_list NK_RP */ + 440, /* (450) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + 440, /* (451) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + 440, /* (452) function_expression ::= literal_func */ + 434, /* (453) literal_func ::= noarg_func NK_LP NK_RP */ + 434, /* (454) literal_func ::= NOW */ + 444, /* (455) noarg_func ::= NOW */ + 444, /* (456) noarg_func ::= TODAY */ + 444, /* (457) noarg_func ::= TIMEZONE */ + 444, /* (458) noarg_func ::= DATABASE */ + 444, /* (459) noarg_func ::= CLIENT_VERSION */ + 444, /* (460) noarg_func ::= SERVER_VERSION */ + 444, /* (461) noarg_func ::= SERVER_STATUS */ + 444, /* (462) noarg_func ::= CURRENT_USER */ + 444, /* (463) noarg_func ::= USER */ + 442, /* (464) star_func ::= COUNT */ + 442, /* (465) star_func ::= FIRST */ + 442, /* (466) star_func ::= LAST */ + 442, /* (467) star_func ::= LAST_ROW */ + 443, /* (468) star_func_para_list ::= NK_STAR */ + 443, /* (469) star_func_para_list ::= other_para_list */ + 445, /* (470) other_para_list ::= star_func_para */ + 445, /* (471) other_para_list ::= other_para_list NK_COMMA star_func_para */ + 446, /* (472) star_func_para ::= expr_or_subquery */ + 446, /* (473) star_func_para ::= table_name NK_DOT NK_STAR */ + 441, /* (474) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + 441, /* (475) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + 447, /* (476) when_then_list ::= when_then_expr */ + 447, /* (477) when_then_list ::= when_then_list when_then_expr */ + 450, /* (478) when_then_expr ::= WHEN common_expression THEN common_expression */ + 448, /* (479) case_when_else_opt ::= */ + 448, /* (480) case_when_else_opt ::= ELSE common_expression */ + 451, /* (481) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + 451, /* (482) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + 451, /* (483) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + 451, /* (484) predicate ::= expr_or_subquery IS NULL */ + 451, /* (485) predicate ::= expr_or_subquery IS NOT NULL */ + 451, /* (486) predicate ::= expr_or_subquery in_op in_predicate_value */ + 452, /* (487) compare_op ::= NK_LT */ + 452, /* (488) compare_op ::= NK_GT */ + 452, /* (489) compare_op ::= NK_LE */ + 452, /* (490) compare_op ::= NK_GE */ + 452, /* (491) compare_op ::= NK_NE */ + 452, /* (492) compare_op ::= NK_EQ */ + 452, /* (493) compare_op ::= LIKE */ + 452, /* (494) compare_op ::= NOT LIKE */ + 452, /* (495) compare_op ::= MATCH */ + 452, /* (496) compare_op ::= NMATCH */ + 452, /* (497) compare_op ::= CONTAINS */ + 453, /* (498) in_op ::= IN */ + 453, /* (499) in_op ::= NOT IN */ + 454, /* (500) in_predicate_value ::= NK_LP literal_list NK_RP */ + 455, /* (501) boolean_value_expression ::= boolean_primary */ + 455, /* (502) boolean_value_expression ::= NOT boolean_primary */ + 455, /* (503) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + 455, /* (504) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + 456, /* (505) boolean_primary ::= predicate */ + 456, /* (506) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + 449, /* (507) common_expression ::= expr_or_subquery */ + 449, /* (508) common_expression ::= boolean_value_expression */ + 457, /* (509) from_clause_opt ::= */ + 457, /* (510) from_clause_opt ::= FROM table_reference_list */ + 458, /* (511) table_reference_list ::= table_reference */ + 458, /* (512) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + 459, /* (513) table_reference ::= table_primary */ + 459, /* (514) table_reference ::= joined_table */ + 460, /* (515) table_primary ::= table_name alias_opt */ + 460, /* (516) table_primary ::= db_name NK_DOT table_name alias_opt */ + 460, /* (517) table_primary ::= subquery alias_opt */ + 460, /* (518) table_primary ::= parenthesized_joined_table */ + 462, /* (519) alias_opt ::= */ + 462, /* (520) alias_opt ::= table_alias */ + 462, /* (521) alias_opt ::= AS table_alias */ + 464, /* (522) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + 464, /* (523) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + 461, /* (524) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + 465, /* (525) join_type ::= */ + 465, /* (526) join_type ::= INNER */ + 466, /* (527) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + 467, /* (528) hint_list ::= */ + 467, /* (529) hint_list ::= NK_HINT */ + 469, /* (530) tag_mode_opt ::= */ + 469, /* (531) tag_mode_opt ::= TAGS */ + 468, /* (532) set_quantifier_opt ::= */ + 468, /* (533) set_quantifier_opt ::= DISTINCT */ + 468, /* (534) set_quantifier_opt ::= ALL */ + 470, /* (535) select_list ::= select_item */ + 470, /* (536) select_list ::= select_list NK_COMMA select_item */ + 478, /* (537) select_item ::= NK_STAR */ + 478, /* (538) select_item ::= common_expression */ + 478, /* (539) select_item ::= common_expression column_alias */ + 478, /* (540) select_item ::= common_expression AS column_alias */ + 478, /* (541) select_item ::= table_name NK_DOT NK_STAR */ + 417, /* (542) where_clause_opt ::= */ + 417, /* (543) where_clause_opt ::= WHERE search_condition */ + 471, /* (544) partition_by_clause_opt ::= */ + 471, /* (545) partition_by_clause_opt ::= PARTITION BY partition_list */ + 479, /* (546) partition_list ::= partition_item */ + 479, /* (547) partition_list ::= partition_list NK_COMMA partition_item */ + 480, /* (548) partition_item ::= expr_or_subquery */ + 480, /* (549) partition_item ::= expr_or_subquery column_alias */ + 480, /* (550) partition_item ::= expr_or_subquery AS column_alias */ + 475, /* (551) twindow_clause_opt ::= */ + 475, /* (552) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + 475, /* (553) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + 475, /* (554) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + 475, /* (555) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + 475, /* (556) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + 411, /* (557) sliding_opt ::= */ + 411, /* (558) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + 474, /* (559) fill_opt ::= */ + 474, /* (560) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + 474, /* (561) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + 474, /* (562) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + 481, /* (563) fill_mode ::= NONE */ + 481, /* (564) fill_mode ::= PREV */ + 481, /* (565) fill_mode ::= NULL */ + 481, /* (566) fill_mode ::= NULL_F */ + 481, /* (567) fill_mode ::= LINEAR */ + 481, /* (568) fill_mode ::= NEXT */ + 476, /* (569) group_by_clause_opt ::= */ + 476, /* (570) group_by_clause_opt ::= GROUP BY group_by_list */ + 482, /* (571) group_by_list ::= expr_or_subquery */ + 482, /* (572) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 477, /* (573) having_clause_opt ::= */ + 477, /* (574) having_clause_opt ::= HAVING search_condition */ + 472, /* (575) range_opt ::= */ + 472, /* (576) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + 472, /* (577) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 473, /* (578) every_opt ::= */ + 473, /* (579) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + 483, /* (580) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + 484, /* (581) query_simple ::= query_specification */ + 484, /* (582) query_simple ::= union_query_expression */ + 488, /* (583) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + 488, /* (584) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + 489, /* (585) query_simple_or_subquery ::= query_simple */ + 489, /* (586) query_simple_or_subquery ::= subquery */ + 416, /* (587) query_or_subquery ::= query_expression */ + 416, /* (588) query_or_subquery ::= subquery */ + 485, /* (589) order_by_clause_opt ::= */ + 485, /* (590) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 486, /* (591) slimit_clause_opt ::= */ + 486, /* (592) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + 486, /* (593) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + 486, /* (594) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 487, /* (595) limit_clause_opt ::= */ + 487, /* (596) limit_clause_opt ::= LIMIT NK_INTEGER */ + 487, /* (597) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + 487, /* (598) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 463, /* (599) subquery ::= NK_LP query_expression NK_RP */ + 463, /* (600) subquery ::= NK_LP subquery NK_RP */ + 358, /* (601) search_condition ::= common_expression */ + 490, /* (602) sort_specification_list ::= sort_specification */ + 490, /* (603) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + 491, /* (604) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 492, /* (605) ordering_specification_opt ::= */ + 492, /* (606) ordering_specification_opt ::= ASC */ + 492, /* (607) ordering_specification_opt ::= DESC */ + 493, /* (608) null_ordering_opt ::= */ + 493, /* (609) null_ordering_opt ::= NULLS FIRST */ + 493, /* (610) null_ordering_opt ::= NULLS LAST */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number @@ -3825,586 +4221,593 @@ static const signed char yyRuleInfoNRhs[] = { -2, /* (21) alter_account_option ::= USERS literal */ -2, /* (22) alter_account_option ::= CONNS literal */ -2, /* (23) alter_account_option ::= STATE literal */ - -6, /* (24) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ - -5, /* (25) cmd ::= ALTER USER user_name PASS NK_STRING */ - -5, /* (26) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ - -5, /* (27) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ - -3, /* (28) cmd ::= DROP USER user_name */ - 0, /* (29) sysinfo_opt ::= */ - -2, /* (30) sysinfo_opt ::= SYSINFO NK_INTEGER */ - -7, /* (31) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ - -7, /* (32) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ - -1, /* (33) privileges ::= ALL */ - -1, /* (34) privileges ::= priv_type_list */ - -1, /* (35) privileges ::= SUBSCRIBE */ - -1, /* (36) priv_type_list ::= priv_type */ - -3, /* (37) priv_type_list ::= priv_type_list NK_COMMA priv_type */ - -1, /* (38) priv_type ::= READ */ - -1, /* (39) priv_type ::= WRITE */ - -3, /* (40) priv_level ::= NK_STAR NK_DOT NK_STAR */ - -3, /* (41) priv_level ::= db_name NK_DOT NK_STAR */ - -3, /* (42) priv_level ::= db_name NK_DOT table_name */ - -1, /* (43) priv_level ::= topic_name */ - 0, /* (44) with_opt ::= */ - -2, /* (45) with_opt ::= WITH search_condition */ - -3, /* (46) cmd ::= CREATE DNODE dnode_endpoint */ - -5, /* (47) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ - -4, /* (48) cmd ::= DROP DNODE NK_INTEGER force_opt */ - -4, /* (49) cmd ::= DROP DNODE dnode_endpoint force_opt */ - -4, /* (50) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ - -4, /* (51) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ - -4, /* (52) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ - -5, /* (53) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ - -4, /* (54) cmd ::= ALTER ALL DNODES NK_STRING */ - -5, /* (55) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ - -3, /* (56) cmd ::= RESTORE DNODE NK_INTEGER */ - -1, /* (57) dnode_endpoint ::= NK_STRING */ - -1, /* (58) dnode_endpoint ::= NK_ID */ - -1, /* (59) dnode_endpoint ::= NK_IPTOKEN */ - 0, /* (60) force_opt ::= */ - -1, /* (61) force_opt ::= FORCE */ - -1, /* (62) unsafe_opt ::= UNSAFE */ - -3, /* (63) cmd ::= ALTER LOCAL NK_STRING */ - -4, /* (64) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ - -5, /* (65) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ - -5, /* (66) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ - -5, /* (67) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ - -5, /* (68) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ - -5, /* (69) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ - -5, /* (70) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ - -5, /* (71) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ - -5, /* (72) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ - -5, /* (73) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ - -5, /* (74) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ - -5, /* (75) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ - -5, /* (76) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ - -4, /* (77) cmd ::= DROP DATABASE exists_opt db_name */ - -2, /* (78) cmd ::= USE db_name */ - -4, /* (79) cmd ::= ALTER DATABASE db_name alter_db_options */ - -3, /* (80) cmd ::= FLUSH DATABASE db_name */ - -4, /* (81) cmd ::= TRIM DATABASE db_name speed_opt */ - -5, /* (82) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ - -3, /* (83) not_exists_opt ::= IF NOT EXISTS */ - 0, /* (84) not_exists_opt ::= */ - -2, /* (85) exists_opt ::= IF EXISTS */ - 0, /* (86) exists_opt ::= */ - 0, /* (87) db_options ::= */ - -3, /* (88) db_options ::= db_options BUFFER NK_INTEGER */ - -3, /* (89) db_options ::= db_options CACHEMODEL NK_STRING */ - -3, /* (90) db_options ::= db_options CACHESIZE NK_INTEGER */ - -3, /* (91) db_options ::= db_options COMP NK_INTEGER */ - -3, /* (92) db_options ::= db_options DURATION NK_INTEGER */ - -3, /* (93) db_options ::= db_options DURATION NK_VARIABLE */ - -3, /* (94) db_options ::= db_options MAXROWS NK_INTEGER */ - -3, /* (95) db_options ::= db_options MINROWS NK_INTEGER */ - -3, /* (96) db_options ::= db_options KEEP integer_list */ - -3, /* (97) db_options ::= db_options KEEP variable_list */ - -3, /* (98) db_options ::= db_options PAGES NK_INTEGER */ - -3, /* (99) db_options ::= db_options PAGESIZE NK_INTEGER */ - -3, /* (100) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ - -3, /* (101) db_options ::= db_options PRECISION NK_STRING */ - -3, /* (102) db_options ::= db_options REPLICA NK_INTEGER */ - -3, /* (103) db_options ::= db_options VGROUPS NK_INTEGER */ - -3, /* (104) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ - -3, /* (105) db_options ::= db_options RETENTIONS retention_list */ - -3, /* (106) db_options ::= db_options SCHEMALESS NK_INTEGER */ - -3, /* (107) db_options ::= db_options WAL_LEVEL NK_INTEGER */ - -3, /* (108) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ - -3, /* (109) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ - -4, /* (110) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ - -3, /* (111) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ - -4, /* (112) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ - -3, /* (113) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ - -3, /* (114) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ - -3, /* (115) db_options ::= db_options STT_TRIGGER NK_INTEGER */ - -3, /* (116) db_options ::= db_options TABLE_PREFIX signed */ - -3, /* (117) db_options ::= db_options TABLE_SUFFIX signed */ - -1, /* (118) alter_db_options ::= alter_db_option */ - -2, /* (119) alter_db_options ::= alter_db_options alter_db_option */ - -2, /* (120) alter_db_option ::= BUFFER NK_INTEGER */ - -2, /* (121) alter_db_option ::= CACHEMODEL NK_STRING */ - -2, /* (122) alter_db_option ::= CACHESIZE NK_INTEGER */ - -2, /* (123) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ - -2, /* (124) alter_db_option ::= KEEP integer_list */ - -2, /* (125) alter_db_option ::= KEEP variable_list */ - -2, /* (126) alter_db_option ::= PAGES NK_INTEGER */ - -2, /* (127) alter_db_option ::= REPLICA NK_INTEGER */ - -2, /* (128) alter_db_option ::= WAL_LEVEL NK_INTEGER */ - -2, /* (129) alter_db_option ::= STT_TRIGGER NK_INTEGER */ - -2, /* (130) alter_db_option ::= MINROWS NK_INTEGER */ - -2, /* (131) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ - -3, /* (132) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ - -2, /* (133) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ - -3, /* (134) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ - -1, /* (135) integer_list ::= NK_INTEGER */ - -3, /* (136) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - -1, /* (137) variable_list ::= NK_VARIABLE */ - -3, /* (138) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - -1, /* (139) retention_list ::= retention */ - -3, /* (140) retention_list ::= retention_list NK_COMMA retention */ - -3, /* (141) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - 0, /* (142) speed_opt ::= */ - -2, /* (143) speed_opt ::= BWLIMIT NK_INTEGER */ - 0, /* (144) start_opt ::= */ - -3, /* (145) start_opt ::= START WITH NK_INTEGER */ - -3, /* (146) start_opt ::= START WITH NK_STRING */ - -4, /* (147) start_opt ::= START WITH TIMESTAMP NK_STRING */ - 0, /* (148) end_opt ::= */ - -3, /* (149) end_opt ::= END WITH NK_INTEGER */ - -3, /* (150) end_opt ::= END WITH NK_STRING */ - -4, /* (151) end_opt ::= END WITH TIMESTAMP NK_STRING */ - -9, /* (152) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - -3, /* (153) cmd ::= CREATE TABLE multi_create_clause */ - -9, /* (154) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - -3, /* (155) cmd ::= DROP TABLE multi_drop_clause */ - -4, /* (156) cmd ::= DROP STABLE exists_opt full_table_name */ - -3, /* (157) cmd ::= ALTER TABLE alter_table_clause */ - -3, /* (158) cmd ::= ALTER STABLE alter_table_clause */ - -2, /* (159) alter_table_clause ::= full_table_name alter_table_options */ - -5, /* (160) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - -4, /* (161) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - -5, /* (162) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - -5, /* (163) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - -5, /* (164) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - -4, /* (165) alter_table_clause ::= full_table_name DROP TAG column_name */ - -5, /* (166) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - -5, /* (167) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - -6, /* (168) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - -1, /* (169) multi_create_clause ::= create_subtable_clause */ - -2, /* (170) multi_create_clause ::= multi_create_clause create_subtable_clause */ - -10, /* (171) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ - -1, /* (172) multi_drop_clause ::= drop_table_clause */ - -3, /* (173) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ - -2, /* (174) drop_table_clause ::= exists_opt full_table_name */ - 0, /* (175) specific_cols_opt ::= */ - -3, /* (176) specific_cols_opt ::= NK_LP col_name_list NK_RP */ - -1, /* (177) full_table_name ::= table_name */ - -3, /* (178) full_table_name ::= db_name NK_DOT table_name */ - -1, /* (179) column_def_list ::= column_def */ - -3, /* (180) column_def_list ::= column_def_list NK_COMMA column_def */ - -2, /* (181) column_def ::= column_name type_name */ - -1, /* (182) type_name ::= BOOL */ - -1, /* (183) type_name ::= TINYINT */ - -1, /* (184) type_name ::= SMALLINT */ - -1, /* (185) type_name ::= INT */ - -1, /* (186) type_name ::= INTEGER */ - -1, /* (187) type_name ::= BIGINT */ - -1, /* (188) type_name ::= FLOAT */ - -1, /* (189) type_name ::= DOUBLE */ - -4, /* (190) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - -1, /* (191) type_name ::= TIMESTAMP */ - -4, /* (192) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - -2, /* (193) type_name ::= TINYINT UNSIGNED */ - -2, /* (194) type_name ::= SMALLINT UNSIGNED */ - -2, /* (195) type_name ::= INT UNSIGNED */ - -2, /* (196) type_name ::= BIGINT UNSIGNED */ - -1, /* (197) type_name ::= JSON */ - -4, /* (198) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - -1, /* (199) type_name ::= MEDIUMBLOB */ - -1, /* (200) type_name ::= BLOB */ - -4, /* (201) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - -4, /* (202) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ - -1, /* (203) type_name ::= DECIMAL */ - -4, /* (204) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - -6, /* (205) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 0, /* (206) tags_def_opt ::= */ - -1, /* (207) tags_def_opt ::= tags_def */ - -4, /* (208) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - 0, /* (209) table_options ::= */ - -3, /* (210) table_options ::= table_options COMMENT NK_STRING */ - -3, /* (211) table_options ::= table_options MAX_DELAY duration_list */ - -3, /* (212) table_options ::= table_options WATERMARK duration_list */ - -5, /* (213) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - -3, /* (214) table_options ::= table_options TTL NK_INTEGER */ - -5, /* (215) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - -3, /* (216) table_options ::= table_options DELETE_MARK duration_list */ - -1, /* (217) alter_table_options ::= alter_table_option */ - -2, /* (218) alter_table_options ::= alter_table_options alter_table_option */ - -2, /* (219) alter_table_option ::= COMMENT NK_STRING */ - -2, /* (220) alter_table_option ::= TTL NK_INTEGER */ - -1, /* (221) duration_list ::= duration_literal */ - -3, /* (222) duration_list ::= duration_list NK_COMMA duration_literal */ - -1, /* (223) rollup_func_list ::= rollup_func_name */ - -3, /* (224) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - -1, /* (225) rollup_func_name ::= function_name */ - -1, /* (226) rollup_func_name ::= FIRST */ - -1, /* (227) rollup_func_name ::= LAST */ - -1, /* (228) col_name_list ::= col_name */ - -3, /* (229) col_name_list ::= col_name_list NK_COMMA col_name */ - -1, /* (230) col_name ::= column_name */ - -2, /* (231) cmd ::= SHOW DNODES */ - -2, /* (232) cmd ::= SHOW USERS */ - -3, /* (233) cmd ::= SHOW USER PRIVILEGES */ - -2, /* (234) cmd ::= SHOW DATABASES */ - -4, /* (235) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - -4, /* (236) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - -3, /* (237) cmd ::= SHOW db_name_cond_opt VGROUPS */ - -2, /* (238) cmd ::= SHOW MNODES */ - -2, /* (239) cmd ::= SHOW QNODES */ - -2, /* (240) cmd ::= SHOW FUNCTIONS */ - -5, /* (241) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - -6, /* (242) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - -2, /* (243) cmd ::= SHOW STREAMS */ - -2, /* (244) cmd ::= SHOW ACCOUNTS */ - -2, /* (245) cmd ::= SHOW APPS */ - -2, /* (246) cmd ::= SHOW CONNECTIONS */ - -2, /* (247) cmd ::= SHOW LICENCES */ - -2, /* (248) cmd ::= SHOW GRANTS */ - -4, /* (249) cmd ::= SHOW CREATE DATABASE db_name */ - -4, /* (250) cmd ::= SHOW CREATE TABLE full_table_name */ - -4, /* (251) cmd ::= SHOW CREATE STABLE full_table_name */ - -2, /* (252) cmd ::= SHOW QUERIES */ - -2, /* (253) cmd ::= SHOW SCORES */ - -2, /* (254) cmd ::= SHOW TOPICS */ - -2, /* (255) cmd ::= SHOW VARIABLES */ - -3, /* (256) cmd ::= SHOW CLUSTER VARIABLES */ - -3, /* (257) cmd ::= SHOW LOCAL VARIABLES */ - -5, /* (258) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - -2, /* (259) cmd ::= SHOW BNODES */ - -2, /* (260) cmd ::= SHOW SNODES */ - -2, /* (261) cmd ::= SHOW CLUSTER */ - -2, /* (262) cmd ::= SHOW TRANSACTIONS */ - -4, /* (263) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - -2, /* (264) cmd ::= SHOW CONSUMERS */ - -2, /* (265) cmd ::= SHOW SUBSCRIPTIONS */ - -5, /* (266) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - -6, /* (267) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - -7, /* (268) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - -8, /* (269) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - -5, /* (270) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ - -2, /* (271) cmd ::= SHOW VNODES */ - -3, /* (272) cmd ::= SHOW db_name_cond_opt ALIVE */ - -3, /* (273) cmd ::= SHOW CLUSTER ALIVE */ - 0, /* (274) db_name_cond_opt ::= */ - -2, /* (275) db_name_cond_opt ::= db_name NK_DOT */ - 0, /* (276) like_pattern_opt ::= */ - -2, /* (277) like_pattern_opt ::= LIKE NK_STRING */ - -1, /* (278) table_name_cond ::= table_name */ - 0, /* (279) from_db_opt ::= */ - -2, /* (280) from_db_opt ::= FROM db_name */ - 0, /* (281) tag_list_opt ::= */ - -1, /* (282) tag_list_opt ::= tag_item */ - -3, /* (283) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - -1, /* (284) tag_item ::= TBNAME */ - -1, /* (285) tag_item ::= QTAGS */ - -1, /* (286) tag_item ::= column_name */ - -2, /* (287) tag_item ::= column_name column_alias */ - -3, /* (288) tag_item ::= column_name AS column_alias */ - -8, /* (289) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ - -9, /* (290) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ - -4, /* (291) cmd ::= DROP INDEX exists_opt full_index_name */ - -1, /* (292) full_index_name ::= index_name */ - -3, /* (293) full_index_name ::= db_name NK_DOT index_name */ - -10, /* (294) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - -12, /* (295) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ - -1, /* (296) func_list ::= func */ - -3, /* (297) func_list ::= func_list NK_COMMA func */ - -4, /* (298) func ::= sma_func_name NK_LP expression_list NK_RP */ - -1, /* (299) sma_func_name ::= function_name */ - -1, /* (300) sma_func_name ::= COUNT */ - -1, /* (301) sma_func_name ::= FIRST */ - -1, /* (302) sma_func_name ::= LAST */ - -1, /* (303) sma_func_name ::= LAST_ROW */ - 0, /* (304) sma_stream_opt ::= */ - -3, /* (305) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - -3, /* (306) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - -3, /* (307) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - -1, /* (308) with_meta ::= AS */ - -3, /* (309) with_meta ::= WITH META AS */ - -3, /* (310) with_meta ::= ONLY META AS */ - -6, /* (311) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - -7, /* (312) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - -8, /* (313) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - -4, /* (314) cmd ::= DROP TOPIC exists_opt topic_name */ - -7, /* (315) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - -2, /* (316) cmd ::= DESC full_table_name */ - -2, /* (317) cmd ::= DESCRIBE full_table_name */ - -3, /* (318) cmd ::= RESET QUERY CACHE */ - -4, /* (319) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - -4, /* (320) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 0, /* (321) analyze_opt ::= */ - -1, /* (322) analyze_opt ::= ANALYZE */ - 0, /* (323) explain_options ::= */ - -3, /* (324) explain_options ::= explain_options VERBOSE NK_BOOL */ - -3, /* (325) explain_options ::= explain_options RATIO NK_FLOAT */ - -12, /* (326) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - -4, /* (327) cmd ::= DROP FUNCTION exists_opt function_name */ - 0, /* (328) agg_func_opt ::= */ - -1, /* (329) agg_func_opt ::= AGGREGATE */ - 0, /* (330) bufsize_opt ::= */ - -2, /* (331) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 0, /* (332) language_opt ::= */ - -2, /* (333) language_opt ::= LANGUAGE NK_STRING */ - 0, /* (334) or_replace_opt ::= */ - -2, /* (335) or_replace_opt ::= OR REPLACE */ - -12, /* (336) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ - -4, /* (337) cmd ::= DROP STREAM exists_opt stream_name */ - -4, /* (338) cmd ::= PAUSE STREAM exists_opt stream_name */ - -5, /* (339) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 0, /* (340) col_list_opt ::= */ - -3, /* (341) col_list_opt ::= NK_LP col_name_list NK_RP */ - 0, /* (342) tag_def_or_ref_opt ::= */ - -1, /* (343) tag_def_or_ref_opt ::= tags_def */ - -4, /* (344) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ - 0, /* (345) stream_options ::= */ - -3, /* (346) stream_options ::= stream_options TRIGGER AT_ONCE */ - -3, /* (347) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - -4, /* (348) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - -3, /* (349) stream_options ::= stream_options WATERMARK duration_literal */ - -4, /* (350) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - -3, /* (351) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - -3, /* (352) stream_options ::= stream_options DELETE_MARK duration_literal */ - -4, /* (353) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 0, /* (354) subtable_opt ::= */ - -4, /* (355) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 0, /* (356) ignore_opt ::= */ - -2, /* (357) ignore_opt ::= IGNORE UNTREATED */ - -3, /* (358) cmd ::= KILL CONNECTION NK_INTEGER */ - -3, /* (359) cmd ::= KILL QUERY NK_STRING */ - -3, /* (360) cmd ::= KILL TRANSACTION NK_INTEGER */ - -2, /* (361) cmd ::= BALANCE VGROUP */ - -3, /* (362) cmd ::= BALANCE VGROUP LEADER */ - -4, /* (363) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - -4, /* (364) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - -3, /* (365) cmd ::= SPLIT VGROUP NK_INTEGER */ - -2, /* (366) dnode_list ::= DNODE NK_INTEGER */ - -3, /* (367) dnode_list ::= dnode_list DNODE NK_INTEGER */ - -4, /* (368) cmd ::= DELETE FROM full_table_name where_clause_opt */ - -1, /* (369) cmd ::= query_or_subquery */ - -1, /* (370) cmd ::= insert_query */ - -7, /* (371) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - -4, /* (372) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - -1, /* (373) literal ::= NK_INTEGER */ - -1, /* (374) literal ::= NK_FLOAT */ - -1, /* (375) literal ::= NK_STRING */ - -1, /* (376) literal ::= NK_BOOL */ - -2, /* (377) literal ::= TIMESTAMP NK_STRING */ - -1, /* (378) literal ::= duration_literal */ - -1, /* (379) literal ::= NULL */ - -1, /* (380) literal ::= NK_QUESTION */ - -1, /* (381) duration_literal ::= NK_VARIABLE */ - -1, /* (382) signed ::= NK_INTEGER */ - -2, /* (383) signed ::= NK_PLUS NK_INTEGER */ - -2, /* (384) signed ::= NK_MINUS NK_INTEGER */ - -1, /* (385) signed ::= NK_FLOAT */ - -2, /* (386) signed ::= NK_PLUS NK_FLOAT */ - -2, /* (387) signed ::= NK_MINUS NK_FLOAT */ - -1, /* (388) signed_literal ::= signed */ - -1, /* (389) signed_literal ::= NK_STRING */ - -1, /* (390) signed_literal ::= NK_BOOL */ - -2, /* (391) signed_literal ::= TIMESTAMP NK_STRING */ - -1, /* (392) signed_literal ::= duration_literal */ - -1, /* (393) signed_literal ::= NULL */ - -1, /* (394) signed_literal ::= literal_func */ - -1, /* (395) signed_literal ::= NK_QUESTION */ - -1, /* (396) literal_list ::= signed_literal */ - -3, /* (397) literal_list ::= literal_list NK_COMMA signed_literal */ - -1, /* (398) db_name ::= NK_ID */ - -1, /* (399) table_name ::= NK_ID */ - -1, /* (400) column_name ::= NK_ID */ - -1, /* (401) function_name ::= NK_ID */ - -1, /* (402) table_alias ::= NK_ID */ - -1, /* (403) column_alias ::= NK_ID */ - -1, /* (404) user_name ::= NK_ID */ - -1, /* (405) topic_name ::= NK_ID */ - -1, /* (406) stream_name ::= NK_ID */ - -1, /* (407) cgroup_name ::= NK_ID */ - -1, /* (408) index_name ::= NK_ID */ - -1, /* (409) expr_or_subquery ::= expression */ - -1, /* (410) expression ::= literal */ - -1, /* (411) expression ::= pseudo_column */ - -1, /* (412) expression ::= column_reference */ - -1, /* (413) expression ::= function_expression */ - -1, /* (414) expression ::= case_when_expression */ - -3, /* (415) expression ::= NK_LP expression NK_RP */ - -2, /* (416) expression ::= NK_PLUS expr_or_subquery */ - -2, /* (417) expression ::= NK_MINUS expr_or_subquery */ - -3, /* (418) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - -3, /* (419) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - -3, /* (420) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - -3, /* (421) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - -3, /* (422) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - -3, /* (423) expression ::= column_reference NK_ARROW NK_STRING */ - -3, /* (424) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - -3, /* (425) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - -1, /* (426) expression_list ::= expr_or_subquery */ - -3, /* (427) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - -1, /* (428) column_reference ::= column_name */ - -3, /* (429) column_reference ::= table_name NK_DOT column_name */ - -1, /* (430) pseudo_column ::= ROWTS */ - -1, /* (431) pseudo_column ::= TBNAME */ - -3, /* (432) pseudo_column ::= table_name NK_DOT TBNAME */ - -1, /* (433) pseudo_column ::= QSTART */ - -1, /* (434) pseudo_column ::= QEND */ - -1, /* (435) pseudo_column ::= QDURATION */ - -1, /* (436) pseudo_column ::= WSTART */ - -1, /* (437) pseudo_column ::= WEND */ - -1, /* (438) pseudo_column ::= WDURATION */ - -1, /* (439) pseudo_column ::= IROWTS */ - -1, /* (440) pseudo_column ::= ISFILLED */ - -1, /* (441) pseudo_column ::= QTAGS */ - -4, /* (442) function_expression ::= function_name NK_LP expression_list NK_RP */ - -4, /* (443) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - -6, /* (444) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - -1, /* (445) function_expression ::= literal_func */ - -3, /* (446) literal_func ::= noarg_func NK_LP NK_RP */ - -1, /* (447) literal_func ::= NOW */ - -1, /* (448) noarg_func ::= NOW */ - -1, /* (449) noarg_func ::= TODAY */ - -1, /* (450) noarg_func ::= TIMEZONE */ - -1, /* (451) noarg_func ::= DATABASE */ - -1, /* (452) noarg_func ::= CLIENT_VERSION */ - -1, /* (453) noarg_func ::= SERVER_VERSION */ - -1, /* (454) noarg_func ::= SERVER_STATUS */ - -1, /* (455) noarg_func ::= CURRENT_USER */ - -1, /* (456) noarg_func ::= USER */ - -1, /* (457) star_func ::= COUNT */ - -1, /* (458) star_func ::= FIRST */ - -1, /* (459) star_func ::= LAST */ - -1, /* (460) star_func ::= LAST_ROW */ - -1, /* (461) star_func_para_list ::= NK_STAR */ - -1, /* (462) star_func_para_list ::= other_para_list */ - -1, /* (463) other_para_list ::= star_func_para */ - -3, /* (464) other_para_list ::= other_para_list NK_COMMA star_func_para */ - -1, /* (465) star_func_para ::= expr_or_subquery */ - -3, /* (466) star_func_para ::= table_name NK_DOT NK_STAR */ - -4, /* (467) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - -5, /* (468) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - -1, /* (469) when_then_list ::= when_then_expr */ - -2, /* (470) when_then_list ::= when_then_list when_then_expr */ - -4, /* (471) when_then_expr ::= WHEN common_expression THEN common_expression */ - 0, /* (472) case_when_else_opt ::= */ - -2, /* (473) case_when_else_opt ::= ELSE common_expression */ - -3, /* (474) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - -5, /* (475) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - -6, /* (476) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - -3, /* (477) predicate ::= expr_or_subquery IS NULL */ - -4, /* (478) predicate ::= expr_or_subquery IS NOT NULL */ - -3, /* (479) predicate ::= expr_or_subquery in_op in_predicate_value */ - -1, /* (480) compare_op ::= NK_LT */ - -1, /* (481) compare_op ::= NK_GT */ - -1, /* (482) compare_op ::= NK_LE */ - -1, /* (483) compare_op ::= NK_GE */ - -1, /* (484) compare_op ::= NK_NE */ - -1, /* (485) compare_op ::= NK_EQ */ - -1, /* (486) compare_op ::= LIKE */ - -2, /* (487) compare_op ::= NOT LIKE */ - -1, /* (488) compare_op ::= MATCH */ - -1, /* (489) compare_op ::= NMATCH */ - -1, /* (490) compare_op ::= CONTAINS */ - -1, /* (491) in_op ::= IN */ - -2, /* (492) in_op ::= NOT IN */ - -3, /* (493) in_predicate_value ::= NK_LP literal_list NK_RP */ - -1, /* (494) boolean_value_expression ::= boolean_primary */ - -2, /* (495) boolean_value_expression ::= NOT boolean_primary */ - -3, /* (496) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - -3, /* (497) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - -1, /* (498) boolean_primary ::= predicate */ - -3, /* (499) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - -1, /* (500) common_expression ::= expr_or_subquery */ - -1, /* (501) common_expression ::= boolean_value_expression */ - 0, /* (502) from_clause_opt ::= */ - -2, /* (503) from_clause_opt ::= FROM table_reference_list */ - -1, /* (504) table_reference_list ::= table_reference */ - -3, /* (505) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - -1, /* (506) table_reference ::= table_primary */ - -1, /* (507) table_reference ::= joined_table */ - -2, /* (508) table_primary ::= table_name alias_opt */ - -4, /* (509) table_primary ::= db_name NK_DOT table_name alias_opt */ - -2, /* (510) table_primary ::= subquery alias_opt */ - -1, /* (511) table_primary ::= parenthesized_joined_table */ - 0, /* (512) alias_opt ::= */ - -1, /* (513) alias_opt ::= table_alias */ - -2, /* (514) alias_opt ::= AS table_alias */ - -3, /* (515) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - -3, /* (516) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - -6, /* (517) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - 0, /* (518) join_type ::= */ - -1, /* (519) join_type ::= INNER */ - -14, /* (520) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - 0, /* (521) hint_list ::= */ - -1, /* (522) hint_list ::= NK_HINT */ - 0, /* (523) tag_mode_opt ::= */ - -1, /* (524) tag_mode_opt ::= TAGS */ - 0, /* (525) set_quantifier_opt ::= */ - -1, /* (526) set_quantifier_opt ::= DISTINCT */ - -1, /* (527) set_quantifier_opt ::= ALL */ - -1, /* (528) select_list ::= select_item */ - -3, /* (529) select_list ::= select_list NK_COMMA select_item */ - -1, /* (530) select_item ::= NK_STAR */ - -1, /* (531) select_item ::= common_expression */ - -2, /* (532) select_item ::= common_expression column_alias */ - -3, /* (533) select_item ::= common_expression AS column_alias */ - -3, /* (534) select_item ::= table_name NK_DOT NK_STAR */ - 0, /* (535) where_clause_opt ::= */ - -2, /* (536) where_clause_opt ::= WHERE search_condition */ - 0, /* (537) partition_by_clause_opt ::= */ - -3, /* (538) partition_by_clause_opt ::= PARTITION BY partition_list */ - -1, /* (539) partition_list ::= partition_item */ - -3, /* (540) partition_list ::= partition_list NK_COMMA partition_item */ - -1, /* (541) partition_item ::= expr_or_subquery */ - -2, /* (542) partition_item ::= expr_or_subquery column_alias */ - -3, /* (543) partition_item ::= expr_or_subquery AS column_alias */ - 0, /* (544) twindow_clause_opt ::= */ - -6, /* (545) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - -4, /* (546) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - -6, /* (547) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - -8, /* (548) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - -7, /* (549) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - 0, /* (550) sliding_opt ::= */ - -4, /* (551) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - 0, /* (552) fill_opt ::= */ - -4, /* (553) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - -6, /* (554) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - -6, /* (555) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - -1, /* (556) fill_mode ::= NONE */ - -1, /* (557) fill_mode ::= PREV */ - -1, /* (558) fill_mode ::= NULL */ - -1, /* (559) fill_mode ::= NULL_F */ - -1, /* (560) fill_mode ::= LINEAR */ - -1, /* (561) fill_mode ::= NEXT */ - 0, /* (562) group_by_clause_opt ::= */ - -3, /* (563) group_by_clause_opt ::= GROUP BY group_by_list */ - -1, /* (564) group_by_list ::= expr_or_subquery */ - -3, /* (565) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 0, /* (566) having_clause_opt ::= */ - -2, /* (567) having_clause_opt ::= HAVING search_condition */ - 0, /* (568) range_opt ::= */ - -6, /* (569) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - -4, /* (570) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 0, /* (571) every_opt ::= */ - -4, /* (572) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - -4, /* (573) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - -1, /* (574) query_simple ::= query_specification */ - -1, /* (575) query_simple ::= union_query_expression */ - -4, /* (576) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - -3, /* (577) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - -1, /* (578) query_simple_or_subquery ::= query_simple */ - -1, /* (579) query_simple_or_subquery ::= subquery */ - -1, /* (580) query_or_subquery ::= query_expression */ - -1, /* (581) query_or_subquery ::= subquery */ - 0, /* (582) order_by_clause_opt ::= */ - -3, /* (583) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 0, /* (584) slimit_clause_opt ::= */ - -2, /* (585) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - -4, /* (586) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - -4, /* (587) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 0, /* (588) limit_clause_opt ::= */ - -2, /* (589) limit_clause_opt ::= LIMIT NK_INTEGER */ - -4, /* (590) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - -4, /* (591) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - -3, /* (592) subquery ::= NK_LP query_expression NK_RP */ - -3, /* (593) subquery ::= NK_LP subquery NK_RP */ - -1, /* (594) search_condition ::= common_expression */ - -1, /* (595) sort_specification_list ::= sort_specification */ - -3, /* (596) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - -3, /* (597) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 0, /* (598) ordering_specification_opt ::= */ - -1, /* (599) ordering_specification_opt ::= ASC */ - -1, /* (600) ordering_specification_opt ::= DESC */ - 0, /* (601) null_ordering_opt ::= */ - -2, /* (602) null_ordering_opt ::= NULLS FIRST */ - -2, /* (603) null_ordering_opt ::= NULLS LAST */ + -1, /* (24) ip_range_list ::= NK_STRING */ + -3, /* (25) ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ + -2, /* (26) white_list ::= HOST ip_range_list */ + 0, /* (27) white_list_opt ::= */ + -1, /* (28) white_list_opt ::= white_list */ + -7, /* (29) cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ + -5, /* (30) cmd ::= ALTER USER user_name PASS NK_STRING */ + -5, /* (31) cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ + -5, /* (32) cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ + -5, /* (33) cmd ::= ALTER USER user_name ADD white_list */ + -5, /* (34) cmd ::= ALTER USER user_name DROP white_list */ + -3, /* (35) cmd ::= DROP USER user_name */ + 0, /* (36) sysinfo_opt ::= */ + -2, /* (37) sysinfo_opt ::= SYSINFO NK_INTEGER */ + -7, /* (38) cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ + -7, /* (39) cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ + -1, /* (40) privileges ::= ALL */ + -1, /* (41) privileges ::= priv_type_list */ + -1, /* (42) privileges ::= SUBSCRIBE */ + -1, /* (43) priv_type_list ::= priv_type */ + -3, /* (44) priv_type_list ::= priv_type_list NK_COMMA priv_type */ + -1, /* (45) priv_type ::= READ */ + -1, /* (46) priv_type ::= WRITE */ + -3, /* (47) priv_level ::= NK_STAR NK_DOT NK_STAR */ + -3, /* (48) priv_level ::= db_name NK_DOT NK_STAR */ + -3, /* (49) priv_level ::= db_name NK_DOT table_name */ + -1, /* (50) priv_level ::= topic_name */ + 0, /* (51) with_opt ::= */ + -2, /* (52) with_opt ::= WITH search_condition */ + -3, /* (53) cmd ::= CREATE DNODE dnode_endpoint */ + -5, /* (54) cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ + -4, /* (55) cmd ::= DROP DNODE NK_INTEGER force_opt */ + -4, /* (56) cmd ::= DROP DNODE dnode_endpoint force_opt */ + -4, /* (57) cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ + -4, /* (58) cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ + -4, /* (59) cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + -5, /* (60) cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + -4, /* (61) cmd ::= ALTER ALL DNODES NK_STRING */ + -5, /* (62) cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + -3, /* (63) cmd ::= RESTORE DNODE NK_INTEGER */ + -1, /* (64) dnode_endpoint ::= NK_STRING */ + -1, /* (65) dnode_endpoint ::= NK_ID */ + -1, /* (66) dnode_endpoint ::= NK_IPTOKEN */ + 0, /* (67) force_opt ::= */ + -1, /* (68) force_opt ::= FORCE */ + -1, /* (69) unsafe_opt ::= UNSAFE */ + -3, /* (70) cmd ::= ALTER LOCAL NK_STRING */ + -4, /* (71) cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + -5, /* (72) cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + -5, /* (73) cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + -5, /* (74) cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ + -5, /* (75) cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + -5, /* (76) cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + -5, /* (77) cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + -5, /* (78) cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + -5, /* (79) cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + -5, /* (80) cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + -5, /* (81) cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ + -5, /* (82) cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ + -5, /* (83) cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ + -4, /* (84) cmd ::= DROP DATABASE exists_opt db_name */ + -2, /* (85) cmd ::= USE db_name */ + -4, /* (86) cmd ::= ALTER DATABASE db_name alter_db_options */ + -3, /* (87) cmd ::= FLUSH DATABASE db_name */ + -4, /* (88) cmd ::= TRIM DATABASE db_name speed_opt */ + -5, /* (89) cmd ::= COMPACT DATABASE db_name start_opt end_opt */ + -3, /* (90) not_exists_opt ::= IF NOT EXISTS */ + 0, /* (91) not_exists_opt ::= */ + -2, /* (92) exists_opt ::= IF EXISTS */ + 0, /* (93) exists_opt ::= */ + 0, /* (94) db_options ::= */ + -3, /* (95) db_options ::= db_options BUFFER NK_INTEGER */ + -3, /* (96) db_options ::= db_options CACHEMODEL NK_STRING */ + -3, /* (97) db_options ::= db_options CACHESIZE NK_INTEGER */ + -3, /* (98) db_options ::= db_options COMP NK_INTEGER */ + -3, /* (99) db_options ::= db_options DURATION NK_INTEGER */ + -3, /* (100) db_options ::= db_options DURATION NK_VARIABLE */ + -3, /* (101) db_options ::= db_options MAXROWS NK_INTEGER */ + -3, /* (102) db_options ::= db_options MINROWS NK_INTEGER */ + -3, /* (103) db_options ::= db_options KEEP integer_list */ + -3, /* (104) db_options ::= db_options KEEP variable_list */ + -3, /* (105) db_options ::= db_options PAGES NK_INTEGER */ + -3, /* (106) db_options ::= db_options PAGESIZE NK_INTEGER */ + -3, /* (107) db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ + -3, /* (108) db_options ::= db_options PRECISION NK_STRING */ + -3, /* (109) db_options ::= db_options REPLICA NK_INTEGER */ + -3, /* (110) db_options ::= db_options VGROUPS NK_INTEGER */ + -3, /* (111) db_options ::= db_options SINGLE_STABLE NK_INTEGER */ + -3, /* (112) db_options ::= db_options RETENTIONS retention_list */ + -3, /* (113) db_options ::= db_options SCHEMALESS NK_INTEGER */ + -3, /* (114) db_options ::= db_options WAL_LEVEL NK_INTEGER */ + -3, /* (115) db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ + -3, /* (116) db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ + -4, /* (117) db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + -3, /* (118) db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ + -4, /* (119) db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + -3, /* (120) db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ + -3, /* (121) db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ + -3, /* (122) db_options ::= db_options STT_TRIGGER NK_INTEGER */ + -3, /* (123) db_options ::= db_options TABLE_PREFIX signed */ + -3, /* (124) db_options ::= db_options TABLE_SUFFIX signed */ + -1, /* (125) alter_db_options ::= alter_db_option */ + -2, /* (126) alter_db_options ::= alter_db_options alter_db_option */ + -2, /* (127) alter_db_option ::= BUFFER NK_INTEGER */ + -2, /* (128) alter_db_option ::= CACHEMODEL NK_STRING */ + -2, /* (129) alter_db_option ::= CACHESIZE NK_INTEGER */ + -2, /* (130) alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ + -2, /* (131) alter_db_option ::= KEEP integer_list */ + -2, /* (132) alter_db_option ::= KEEP variable_list */ + -2, /* (133) alter_db_option ::= PAGES NK_INTEGER */ + -2, /* (134) alter_db_option ::= REPLICA NK_INTEGER */ + -2, /* (135) alter_db_option ::= WAL_LEVEL NK_INTEGER */ + -2, /* (136) alter_db_option ::= STT_TRIGGER NK_INTEGER */ + -2, /* (137) alter_db_option ::= MINROWS NK_INTEGER */ + -2, /* (138) alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ + -3, /* (139) alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + -2, /* (140) alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ + -3, /* (141) alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + -1, /* (142) integer_list ::= NK_INTEGER */ + -3, /* (143) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + -1, /* (144) variable_list ::= NK_VARIABLE */ + -3, /* (145) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + -1, /* (146) retention_list ::= retention */ + -3, /* (147) retention_list ::= retention_list NK_COMMA retention */ + -3, /* (148) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + 0, /* (149) speed_opt ::= */ + -2, /* (150) speed_opt ::= BWLIMIT NK_INTEGER */ + 0, /* (151) start_opt ::= */ + -3, /* (152) start_opt ::= START WITH NK_INTEGER */ + -3, /* (153) start_opt ::= START WITH NK_STRING */ + -4, /* (154) start_opt ::= START WITH TIMESTAMP NK_STRING */ + 0, /* (155) end_opt ::= */ + -3, /* (156) end_opt ::= END WITH NK_INTEGER */ + -3, /* (157) end_opt ::= END WITH NK_STRING */ + -4, /* (158) end_opt ::= END WITH TIMESTAMP NK_STRING */ + -9, /* (159) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + -3, /* (160) cmd ::= CREATE TABLE multi_create_clause */ + -9, /* (161) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + -3, /* (162) cmd ::= DROP TABLE multi_drop_clause */ + -4, /* (163) cmd ::= DROP STABLE exists_opt full_table_name */ + -3, /* (164) cmd ::= ALTER TABLE alter_table_clause */ + -3, /* (165) cmd ::= ALTER STABLE alter_table_clause */ + -2, /* (166) alter_table_clause ::= full_table_name alter_table_options */ + -5, /* (167) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + -4, /* (168) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + -5, /* (169) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + -5, /* (170) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + -5, /* (171) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + -4, /* (172) alter_table_clause ::= full_table_name DROP TAG column_name */ + -5, /* (173) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + -5, /* (174) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + -6, /* (175) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + -1, /* (176) multi_create_clause ::= create_subtable_clause */ + -2, /* (177) multi_create_clause ::= multi_create_clause create_subtable_clause */ + -10, /* (178) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ + -1, /* (179) multi_drop_clause ::= drop_table_clause */ + -3, /* (180) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ + -2, /* (181) drop_table_clause ::= exists_opt full_table_name */ + 0, /* (182) specific_cols_opt ::= */ + -3, /* (183) specific_cols_opt ::= NK_LP col_name_list NK_RP */ + -1, /* (184) full_table_name ::= table_name */ + -3, /* (185) full_table_name ::= db_name NK_DOT table_name */ + -1, /* (186) column_def_list ::= column_def */ + -3, /* (187) column_def_list ::= column_def_list NK_COMMA column_def */ + -2, /* (188) column_def ::= column_name type_name */ + -1, /* (189) type_name ::= BOOL */ + -1, /* (190) type_name ::= TINYINT */ + -1, /* (191) type_name ::= SMALLINT */ + -1, /* (192) type_name ::= INT */ + -1, /* (193) type_name ::= INTEGER */ + -1, /* (194) type_name ::= BIGINT */ + -1, /* (195) type_name ::= FLOAT */ + -1, /* (196) type_name ::= DOUBLE */ + -4, /* (197) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + -1, /* (198) type_name ::= TIMESTAMP */ + -4, /* (199) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + -2, /* (200) type_name ::= TINYINT UNSIGNED */ + -2, /* (201) type_name ::= SMALLINT UNSIGNED */ + -2, /* (202) type_name ::= INT UNSIGNED */ + -2, /* (203) type_name ::= BIGINT UNSIGNED */ + -1, /* (204) type_name ::= JSON */ + -4, /* (205) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + -1, /* (206) type_name ::= MEDIUMBLOB */ + -1, /* (207) type_name ::= BLOB */ + -4, /* (208) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + -4, /* (209) type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ + -1, /* (210) type_name ::= DECIMAL */ + -4, /* (211) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + -6, /* (212) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 0, /* (213) tags_def_opt ::= */ + -1, /* (214) tags_def_opt ::= tags_def */ + -4, /* (215) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + 0, /* (216) table_options ::= */ + -3, /* (217) table_options ::= table_options COMMENT NK_STRING */ + -3, /* (218) table_options ::= table_options MAX_DELAY duration_list */ + -3, /* (219) table_options ::= table_options WATERMARK duration_list */ + -5, /* (220) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + -3, /* (221) table_options ::= table_options TTL NK_INTEGER */ + -5, /* (222) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + -3, /* (223) table_options ::= table_options DELETE_MARK duration_list */ + -1, /* (224) alter_table_options ::= alter_table_option */ + -2, /* (225) alter_table_options ::= alter_table_options alter_table_option */ + -2, /* (226) alter_table_option ::= COMMENT NK_STRING */ + -2, /* (227) alter_table_option ::= TTL NK_INTEGER */ + -1, /* (228) duration_list ::= duration_literal */ + -3, /* (229) duration_list ::= duration_list NK_COMMA duration_literal */ + -1, /* (230) rollup_func_list ::= rollup_func_name */ + -3, /* (231) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + -1, /* (232) rollup_func_name ::= function_name */ + -1, /* (233) rollup_func_name ::= FIRST */ + -1, /* (234) rollup_func_name ::= LAST */ + -1, /* (235) col_name_list ::= col_name */ + -3, /* (236) col_name_list ::= col_name_list NK_COMMA col_name */ + -1, /* (237) col_name ::= column_name */ + -2, /* (238) cmd ::= SHOW DNODES */ + -2, /* (239) cmd ::= SHOW USERS */ + -3, /* (240) cmd ::= SHOW USER PRIVILEGES */ + -2, /* (241) cmd ::= SHOW DATABASES */ + -4, /* (242) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + -4, /* (243) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + -3, /* (244) cmd ::= SHOW db_name_cond_opt VGROUPS */ + -2, /* (245) cmd ::= SHOW MNODES */ + -2, /* (246) cmd ::= SHOW QNODES */ + -2, /* (247) cmd ::= SHOW FUNCTIONS */ + -5, /* (248) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + -6, /* (249) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + -2, /* (250) cmd ::= SHOW STREAMS */ + -2, /* (251) cmd ::= SHOW ACCOUNTS */ + -2, /* (252) cmd ::= SHOW APPS */ + -2, /* (253) cmd ::= SHOW CONNECTIONS */ + -2, /* (254) cmd ::= SHOW LICENCES */ + -2, /* (255) cmd ::= SHOW GRANTS */ + -4, /* (256) cmd ::= SHOW CREATE DATABASE db_name */ + -4, /* (257) cmd ::= SHOW CREATE TABLE full_table_name */ + -4, /* (258) cmd ::= SHOW CREATE STABLE full_table_name */ + -2, /* (259) cmd ::= SHOW QUERIES */ + -2, /* (260) cmd ::= SHOW SCORES */ + -2, /* (261) cmd ::= SHOW TOPICS */ + -2, /* (262) cmd ::= SHOW VARIABLES */ + -3, /* (263) cmd ::= SHOW CLUSTER VARIABLES */ + -3, /* (264) cmd ::= SHOW LOCAL VARIABLES */ + -5, /* (265) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + -2, /* (266) cmd ::= SHOW BNODES */ + -2, /* (267) cmd ::= SHOW SNODES */ + -2, /* (268) cmd ::= SHOW CLUSTER */ + -2, /* (269) cmd ::= SHOW TRANSACTIONS */ + -4, /* (270) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + -2, /* (271) cmd ::= SHOW CONSUMERS */ + -2, /* (272) cmd ::= SHOW SUBSCRIPTIONS */ + -5, /* (273) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + -6, /* (274) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + -7, /* (275) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + -8, /* (276) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + -5, /* (277) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + -2, /* (278) cmd ::= SHOW VNODES */ + -3, /* (279) cmd ::= SHOW db_name_cond_opt ALIVE */ + -3, /* (280) cmd ::= SHOW CLUSTER ALIVE */ + 0, /* (281) db_name_cond_opt ::= */ + -2, /* (282) db_name_cond_opt ::= db_name NK_DOT */ + 0, /* (283) like_pattern_opt ::= */ + -2, /* (284) like_pattern_opt ::= LIKE NK_STRING */ + -1, /* (285) table_name_cond ::= table_name */ + 0, /* (286) from_db_opt ::= */ + -2, /* (287) from_db_opt ::= FROM db_name */ + 0, /* (288) tag_list_opt ::= */ + -1, /* (289) tag_list_opt ::= tag_item */ + -3, /* (290) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + -1, /* (291) tag_item ::= TBNAME */ + -1, /* (292) tag_item ::= QTAGS */ + -1, /* (293) tag_item ::= column_name */ + -2, /* (294) tag_item ::= column_name column_alias */ + -3, /* (295) tag_item ::= column_name AS column_alias */ + -8, /* (296) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + -9, /* (297) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ + -4, /* (298) cmd ::= DROP INDEX exists_opt full_index_name */ + -1, /* (299) full_index_name ::= index_name */ + -3, /* (300) full_index_name ::= db_name NK_DOT index_name */ + -10, /* (301) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + -12, /* (302) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ + -1, /* (303) func_list ::= func */ + -3, /* (304) func_list ::= func_list NK_COMMA func */ + -4, /* (305) func ::= sma_func_name NK_LP expression_list NK_RP */ + -1, /* (306) sma_func_name ::= function_name */ + -1, /* (307) sma_func_name ::= COUNT */ + -1, /* (308) sma_func_name ::= FIRST */ + -1, /* (309) sma_func_name ::= LAST */ + -1, /* (310) sma_func_name ::= LAST_ROW */ + 0, /* (311) sma_stream_opt ::= */ + -3, /* (312) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + -3, /* (313) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + -3, /* (314) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + -1, /* (315) with_meta ::= AS */ + -3, /* (316) with_meta ::= WITH META AS */ + -3, /* (317) with_meta ::= ONLY META AS */ + -6, /* (318) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + -7, /* (319) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + -8, /* (320) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + -4, /* (321) cmd ::= DROP TOPIC exists_opt topic_name */ + -7, /* (322) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + -2, /* (323) cmd ::= DESC full_table_name */ + -2, /* (324) cmd ::= DESCRIBE full_table_name */ + -3, /* (325) cmd ::= RESET QUERY CACHE */ + -4, /* (326) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + -4, /* (327) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 0, /* (328) analyze_opt ::= */ + -1, /* (329) analyze_opt ::= ANALYZE */ + 0, /* (330) explain_options ::= */ + -3, /* (331) explain_options ::= explain_options VERBOSE NK_BOOL */ + -3, /* (332) explain_options ::= explain_options RATIO NK_FLOAT */ + -12, /* (333) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + -4, /* (334) cmd ::= DROP FUNCTION exists_opt function_name */ + 0, /* (335) agg_func_opt ::= */ + -1, /* (336) agg_func_opt ::= AGGREGATE */ + 0, /* (337) bufsize_opt ::= */ + -2, /* (338) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 0, /* (339) language_opt ::= */ + -2, /* (340) language_opt ::= LANGUAGE NK_STRING */ + 0, /* (341) or_replace_opt ::= */ + -2, /* (342) or_replace_opt ::= OR REPLACE */ + -12, /* (343) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ + -4, /* (344) cmd ::= DROP STREAM exists_opt stream_name */ + -4, /* (345) cmd ::= PAUSE STREAM exists_opt stream_name */ + -5, /* (346) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 0, /* (347) col_list_opt ::= */ + -3, /* (348) col_list_opt ::= NK_LP col_name_list NK_RP */ + 0, /* (349) tag_def_or_ref_opt ::= */ + -1, /* (350) tag_def_or_ref_opt ::= tags_def */ + -4, /* (351) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ + 0, /* (352) stream_options ::= */ + -3, /* (353) stream_options ::= stream_options TRIGGER AT_ONCE */ + -3, /* (354) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + -4, /* (355) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + -3, /* (356) stream_options ::= stream_options WATERMARK duration_literal */ + -4, /* (357) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + -3, /* (358) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + -3, /* (359) stream_options ::= stream_options DELETE_MARK duration_literal */ + -4, /* (360) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 0, /* (361) subtable_opt ::= */ + -4, /* (362) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 0, /* (363) ignore_opt ::= */ + -2, /* (364) ignore_opt ::= IGNORE UNTREATED */ + -3, /* (365) cmd ::= KILL CONNECTION NK_INTEGER */ + -3, /* (366) cmd ::= KILL QUERY NK_STRING */ + -3, /* (367) cmd ::= KILL TRANSACTION NK_INTEGER */ + -2, /* (368) cmd ::= BALANCE VGROUP */ + -3, /* (369) cmd ::= BALANCE VGROUP LEADER */ + -4, /* (370) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + -4, /* (371) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + -3, /* (372) cmd ::= SPLIT VGROUP NK_INTEGER */ + -2, /* (373) dnode_list ::= DNODE NK_INTEGER */ + -3, /* (374) dnode_list ::= dnode_list DNODE NK_INTEGER */ + -4, /* (375) cmd ::= DELETE FROM full_table_name where_clause_opt */ + -1, /* (376) cmd ::= query_or_subquery */ + -1, /* (377) cmd ::= insert_query */ + -7, /* (378) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + -4, /* (379) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + -1, /* (380) literal ::= NK_INTEGER */ + -1, /* (381) literal ::= NK_FLOAT */ + -1, /* (382) literal ::= NK_STRING */ + -1, /* (383) literal ::= NK_BOOL */ + -2, /* (384) literal ::= TIMESTAMP NK_STRING */ + -1, /* (385) literal ::= duration_literal */ + -1, /* (386) literal ::= NULL */ + -1, /* (387) literal ::= NK_QUESTION */ + -1, /* (388) duration_literal ::= NK_VARIABLE */ + -1, /* (389) signed ::= NK_INTEGER */ + -2, /* (390) signed ::= NK_PLUS NK_INTEGER */ + -2, /* (391) signed ::= NK_MINUS NK_INTEGER */ + -1, /* (392) signed ::= NK_FLOAT */ + -2, /* (393) signed ::= NK_PLUS NK_FLOAT */ + -2, /* (394) signed ::= NK_MINUS NK_FLOAT */ + -1, /* (395) signed_literal ::= signed */ + -1, /* (396) signed_literal ::= NK_STRING */ + -1, /* (397) signed_literal ::= NK_BOOL */ + -2, /* (398) signed_literal ::= TIMESTAMP NK_STRING */ + -1, /* (399) signed_literal ::= duration_literal */ + -1, /* (400) signed_literal ::= NULL */ + -1, /* (401) signed_literal ::= literal_func */ + -1, /* (402) signed_literal ::= NK_QUESTION */ + -1, /* (403) literal_list ::= signed_literal */ + -3, /* (404) literal_list ::= literal_list NK_COMMA signed_literal */ + -1, /* (405) db_name ::= NK_ID */ + -1, /* (406) table_name ::= NK_ID */ + -1, /* (407) column_name ::= NK_ID */ + -1, /* (408) function_name ::= NK_ID */ + -1, /* (409) table_alias ::= NK_ID */ + -1, /* (410) column_alias ::= NK_ID */ + -1, /* (411) user_name ::= NK_ID */ + -1, /* (412) topic_name ::= NK_ID */ + -1, /* (413) stream_name ::= NK_ID */ + -1, /* (414) cgroup_name ::= NK_ID */ + -1, /* (415) index_name ::= NK_ID */ + -1, /* (416) expr_or_subquery ::= expression */ + -1, /* (417) expression ::= literal */ + -1, /* (418) expression ::= pseudo_column */ + -1, /* (419) expression ::= column_reference */ + -1, /* (420) expression ::= function_expression */ + -1, /* (421) expression ::= case_when_expression */ + -3, /* (422) expression ::= NK_LP expression NK_RP */ + -2, /* (423) expression ::= NK_PLUS expr_or_subquery */ + -2, /* (424) expression ::= NK_MINUS expr_or_subquery */ + -3, /* (425) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + -3, /* (426) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + -3, /* (427) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + -3, /* (428) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + -3, /* (429) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + -3, /* (430) expression ::= column_reference NK_ARROW NK_STRING */ + -3, /* (431) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + -3, /* (432) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + -1, /* (433) expression_list ::= expr_or_subquery */ + -3, /* (434) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + -1, /* (435) column_reference ::= column_name */ + -3, /* (436) column_reference ::= table_name NK_DOT column_name */ + -1, /* (437) pseudo_column ::= ROWTS */ + -1, /* (438) pseudo_column ::= TBNAME */ + -3, /* (439) pseudo_column ::= table_name NK_DOT TBNAME */ + -1, /* (440) pseudo_column ::= QSTART */ + -1, /* (441) pseudo_column ::= QEND */ + -1, /* (442) pseudo_column ::= QDURATION */ + -1, /* (443) pseudo_column ::= WSTART */ + -1, /* (444) pseudo_column ::= WEND */ + -1, /* (445) pseudo_column ::= WDURATION */ + -1, /* (446) pseudo_column ::= IROWTS */ + -1, /* (447) pseudo_column ::= ISFILLED */ + -1, /* (448) pseudo_column ::= QTAGS */ + -4, /* (449) function_expression ::= function_name NK_LP expression_list NK_RP */ + -4, /* (450) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + -6, /* (451) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + -1, /* (452) function_expression ::= literal_func */ + -3, /* (453) literal_func ::= noarg_func NK_LP NK_RP */ + -1, /* (454) literal_func ::= NOW */ + -1, /* (455) noarg_func ::= NOW */ + -1, /* (456) noarg_func ::= TODAY */ + -1, /* (457) noarg_func ::= TIMEZONE */ + -1, /* (458) noarg_func ::= DATABASE */ + -1, /* (459) noarg_func ::= CLIENT_VERSION */ + -1, /* (460) noarg_func ::= SERVER_VERSION */ + -1, /* (461) noarg_func ::= SERVER_STATUS */ + -1, /* (462) noarg_func ::= CURRENT_USER */ + -1, /* (463) noarg_func ::= USER */ + -1, /* (464) star_func ::= COUNT */ + -1, /* (465) star_func ::= FIRST */ + -1, /* (466) star_func ::= LAST */ + -1, /* (467) star_func ::= LAST_ROW */ + -1, /* (468) star_func_para_list ::= NK_STAR */ + -1, /* (469) star_func_para_list ::= other_para_list */ + -1, /* (470) other_para_list ::= star_func_para */ + -3, /* (471) other_para_list ::= other_para_list NK_COMMA star_func_para */ + -1, /* (472) star_func_para ::= expr_or_subquery */ + -3, /* (473) star_func_para ::= table_name NK_DOT NK_STAR */ + -4, /* (474) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + -5, /* (475) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + -1, /* (476) when_then_list ::= when_then_expr */ + -2, /* (477) when_then_list ::= when_then_list when_then_expr */ + -4, /* (478) when_then_expr ::= WHEN common_expression THEN common_expression */ + 0, /* (479) case_when_else_opt ::= */ + -2, /* (480) case_when_else_opt ::= ELSE common_expression */ + -3, /* (481) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + -5, /* (482) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + -6, /* (483) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + -3, /* (484) predicate ::= expr_or_subquery IS NULL */ + -4, /* (485) predicate ::= expr_or_subquery IS NOT NULL */ + -3, /* (486) predicate ::= expr_or_subquery in_op in_predicate_value */ + -1, /* (487) compare_op ::= NK_LT */ + -1, /* (488) compare_op ::= NK_GT */ + -1, /* (489) compare_op ::= NK_LE */ + -1, /* (490) compare_op ::= NK_GE */ + -1, /* (491) compare_op ::= NK_NE */ + -1, /* (492) compare_op ::= NK_EQ */ + -1, /* (493) compare_op ::= LIKE */ + -2, /* (494) compare_op ::= NOT LIKE */ + -1, /* (495) compare_op ::= MATCH */ + -1, /* (496) compare_op ::= NMATCH */ + -1, /* (497) compare_op ::= CONTAINS */ + -1, /* (498) in_op ::= IN */ + -2, /* (499) in_op ::= NOT IN */ + -3, /* (500) in_predicate_value ::= NK_LP literal_list NK_RP */ + -1, /* (501) boolean_value_expression ::= boolean_primary */ + -2, /* (502) boolean_value_expression ::= NOT boolean_primary */ + -3, /* (503) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + -3, /* (504) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + -1, /* (505) boolean_primary ::= predicate */ + -3, /* (506) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + -1, /* (507) common_expression ::= expr_or_subquery */ + -1, /* (508) common_expression ::= boolean_value_expression */ + 0, /* (509) from_clause_opt ::= */ + -2, /* (510) from_clause_opt ::= FROM table_reference_list */ + -1, /* (511) table_reference_list ::= table_reference */ + -3, /* (512) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + -1, /* (513) table_reference ::= table_primary */ + -1, /* (514) table_reference ::= joined_table */ + -2, /* (515) table_primary ::= table_name alias_opt */ + -4, /* (516) table_primary ::= db_name NK_DOT table_name alias_opt */ + -2, /* (517) table_primary ::= subquery alias_opt */ + -1, /* (518) table_primary ::= parenthesized_joined_table */ + 0, /* (519) alias_opt ::= */ + -1, /* (520) alias_opt ::= table_alias */ + -2, /* (521) alias_opt ::= AS table_alias */ + -3, /* (522) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + -3, /* (523) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + -6, /* (524) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + 0, /* (525) join_type ::= */ + -1, /* (526) join_type ::= INNER */ + -14, /* (527) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + 0, /* (528) hint_list ::= */ + -1, /* (529) hint_list ::= NK_HINT */ + 0, /* (530) tag_mode_opt ::= */ + -1, /* (531) tag_mode_opt ::= TAGS */ + 0, /* (532) set_quantifier_opt ::= */ + -1, /* (533) set_quantifier_opt ::= DISTINCT */ + -1, /* (534) set_quantifier_opt ::= ALL */ + -1, /* (535) select_list ::= select_item */ + -3, /* (536) select_list ::= select_list NK_COMMA select_item */ + -1, /* (537) select_item ::= NK_STAR */ + -1, /* (538) select_item ::= common_expression */ + -2, /* (539) select_item ::= common_expression column_alias */ + -3, /* (540) select_item ::= common_expression AS column_alias */ + -3, /* (541) select_item ::= table_name NK_DOT NK_STAR */ + 0, /* (542) where_clause_opt ::= */ + -2, /* (543) where_clause_opt ::= WHERE search_condition */ + 0, /* (544) partition_by_clause_opt ::= */ + -3, /* (545) partition_by_clause_opt ::= PARTITION BY partition_list */ + -1, /* (546) partition_list ::= partition_item */ + -3, /* (547) partition_list ::= partition_list NK_COMMA partition_item */ + -1, /* (548) partition_item ::= expr_or_subquery */ + -2, /* (549) partition_item ::= expr_or_subquery column_alias */ + -3, /* (550) partition_item ::= expr_or_subquery AS column_alias */ + 0, /* (551) twindow_clause_opt ::= */ + -6, /* (552) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + -4, /* (553) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + -6, /* (554) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + -8, /* (555) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + -7, /* (556) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + 0, /* (557) sliding_opt ::= */ + -4, /* (558) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + 0, /* (559) fill_opt ::= */ + -4, /* (560) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + -6, /* (561) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + -6, /* (562) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + -1, /* (563) fill_mode ::= NONE */ + -1, /* (564) fill_mode ::= PREV */ + -1, /* (565) fill_mode ::= NULL */ + -1, /* (566) fill_mode ::= NULL_F */ + -1, /* (567) fill_mode ::= LINEAR */ + -1, /* (568) fill_mode ::= NEXT */ + 0, /* (569) group_by_clause_opt ::= */ + -3, /* (570) group_by_clause_opt ::= GROUP BY group_by_list */ + -1, /* (571) group_by_list ::= expr_or_subquery */ + -3, /* (572) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 0, /* (573) having_clause_opt ::= */ + -2, /* (574) having_clause_opt ::= HAVING search_condition */ + 0, /* (575) range_opt ::= */ + -6, /* (576) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + -4, /* (577) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 0, /* (578) every_opt ::= */ + -4, /* (579) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + -4, /* (580) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + -1, /* (581) query_simple ::= query_specification */ + -1, /* (582) query_simple ::= union_query_expression */ + -4, /* (583) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + -3, /* (584) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + -1, /* (585) query_simple_or_subquery ::= query_simple */ + -1, /* (586) query_simple_or_subquery ::= subquery */ + -1, /* (587) query_or_subquery ::= query_expression */ + -1, /* (588) query_or_subquery ::= subquery */ + 0, /* (589) order_by_clause_opt ::= */ + -3, /* (590) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 0, /* (591) slimit_clause_opt ::= */ + -2, /* (592) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + -4, /* (593) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + -4, /* (594) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 0, /* (595) limit_clause_opt ::= */ + -2, /* (596) limit_clause_opt ::= LIMIT NK_INTEGER */ + -4, /* (597) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + -4, /* (598) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + -3, /* (599) subquery ::= NK_LP query_expression NK_RP */ + -3, /* (600) subquery ::= NK_LP subquery NK_RP */ + -1, /* (601) search_condition ::= common_expression */ + -1, /* (602) sort_specification_list ::= sort_specification */ + -3, /* (603) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + -3, /* (604) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 0, /* (605) ordering_specification_opt ::= */ + -1, /* (606) ordering_specification_opt ::= ASC */ + -1, /* (607) ordering_specification_opt ::= DESC */ + 0, /* (608) null_ordering_opt ::= */ + -2, /* (609) null_ordering_opt ::= NULLS FIRST */ + -2, /* (610) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -4434,54 +4837,6 @@ static YYACTIONTYPE yy_reduce( (void)yyLookahead; (void)yyLookaheadToken; yymsp = yypParser->yytos; -#ifndef NDEBUG - if( yyTraceFILE && yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ){ - yysize = yyRuleInfoNRhs[yyruleno]; - if( yysize ){ - fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", - yyTracePrompt, - yyruleno, yyRuleName[yyruleno], - yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){ - yypParser->yyhwm++; - assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack)); - } -#endif -#if YYSTACKDEPTH>0 - if( yypParser->yytos>=yypParser->yystackEnd ){ - yyStackOverflow(yypParser); - /* The call to yyStackOverflow() above pops the stack until it is - ** empty, causing the main parser loop to exit. So the return value - ** is never used and does not matter. */ - return 0; - } -#else - if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){ - if( yyGrowStack(yypParser) ){ - yyStackOverflow(yypParser); - /* The call to yyStackOverflow() above pops the stack until it is - ** empty, causing the main parser loop to exit. So the return value - ** is never used and does not matter. */ - return 0; - } - yymsp = yypParser->yytos; - } -#endif - } switch( yyruleno ){ /* Beginning here are the reduction cases. A typical example @@ -4495,15 +4850,21 @@ static YYACTIONTYPE yy_reduce( /********** Begin reduce actions **********************************************/ YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ +#line 50 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } - yy_destructor(yypParser,340,&yymsp[0].minor); - break; - case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ -{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } +#line 4855 "sql.c" yy_destructor(yypParser,341,&yymsp[0].minor); break; + case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ +#line 51 "sql.y" +{ pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } +#line 4861 "sql.c" + yy_destructor(yypParser,342,&yymsp[0].minor); + break; case 2: /* account_options ::= */ +#line 55 "sql.y" { } +#line 4867 "sql.c" break; case 3: /* account_options ::= account_options PPS literal */ case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); @@ -4514,20 +4875,26 @@ 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,340,&yymsp[-2].minor); +{ yy_destructor(yypParser,341,&yymsp[-2].minor); +#line 56 "sql.y" { } - yy_destructor(yypParser,342,&yymsp[0].minor); +#line 4881 "sql.c" + yy_destructor(yypParser,343,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ -{ yy_destructor(yypParser,343,&yymsp[0].minor); +{ yy_destructor(yypParser,344,&yymsp[0].minor); +#line 68 "sql.y" { } +#line 4889 "sql.c" } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ -{ yy_destructor(yypParser,341,&yymsp[-1].minor); +{ yy_destructor(yypParser,342,&yymsp[-1].minor); +#line 69 "sql.y" { } - yy_destructor(yypParser,343,&yymsp[0].minor); +#line 4896 "sql.c" + yy_destructor(yypParser,344,&yymsp[0].minor); } break; case 14: /* alter_account_option ::= PASS literal */ @@ -4540,1656 +4907,2492 @@ static YYACTIONTYPE yy_reduce( case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21); case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); +#line 73 "sql.y" { } - yy_destructor(yypParser,342,&yymsp[0].minor); +#line 4912 "sql.c" + yy_destructor(yypParser,343,&yymsp[0].minor); break; - case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-3].minor.yy169, &yymsp[-1].minor.yy0, yymsp[0].minor.yy243); } + case 24: /* ip_range_list ::= NK_STRING */ +#line 86 "sql.y" +{ yylhsminor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } +#line 4918 "sql.c" + yymsp[0].minor.yy236 = yylhsminor.yy236; break; - case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy169, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } + case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ +#line 87 "sql.y" +{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } +#line 4924 "sql.c" + yymsp[-2].minor.yy236 = yylhsminor.yy236; break; - case 26: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy169, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } + case 26: /* white_list ::= HOST ip_range_list */ +#line 91 "sql.y" +{ yymsp[-1].minor.yy236 = yymsp[0].minor.yy236; } +#line 4930 "sql.c" break; - case 27: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy169, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } + case 27: /* white_list_opt ::= */ + case 182: /* specific_cols_opt ::= */ yytestcase(yyruleno==182); + case 213: /* tags_def_opt ::= */ yytestcase(yyruleno==213); + case 288: /* tag_list_opt ::= */ yytestcase(yyruleno==288); + case 347: /* col_list_opt ::= */ yytestcase(yyruleno==347); + case 349: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==349); + case 544: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==544); + case 569: /* group_by_clause_opt ::= */ yytestcase(yyruleno==569); + case 589: /* order_by_clause_opt ::= */ yytestcase(yyruleno==589); +#line 95 "sql.y" +{ yymsp[1].minor.yy236 = NULL; } +#line 4943 "sql.c" break; - case 28: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy169); } + case 28: /* white_list_opt ::= white_list */ + case 214: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==214); + case 350: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==350); + case 469: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==469); +#line 96 "sql.y" +{ yylhsminor.yy236 = yymsp[0].minor.yy236; } +#line 4951 "sql.c" + yymsp[0].minor.yy236 = yylhsminor.yy236; break; - case 29: /* sysinfo_opt ::= */ -{ yymsp[1].minor.yy243 = 1; } + case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ +#line 100 "sql.y" +{ + pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy889, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy847); + pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy236); + } +#line 4960 "sql.c" break; - case 30: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ -{ yymsp[-1].minor.yy243 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } + case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */ +#line 104 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +#line 4965 "sql.c" break; - case 31: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy949, &yymsp[-3].minor.yy637, &yymsp[0].minor.yy169, yymsp[-2].minor.yy952); } + case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ +#line 105 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } +#line 4970 "sql.c" break; - case 32: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy949, &yymsp[-3].minor.yy637, &yymsp[0].minor.yy169, yymsp[-2].minor.yy952); } + case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ +#line 106 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } +#line 4975 "sql.c" break; - case 33: /* privileges ::= ALL */ -{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_ALL; } + case 33: /* cmd ::= ALTER USER user_name ADD white_list */ +#line 107 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy236); } +#line 4980 "sql.c" break; - case 34: /* privileges ::= priv_type_list */ - case 36: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==36); -{ yylhsminor.yy949 = yymsp[0].minor.yy949; } - yymsp[0].minor.yy949 = yylhsminor.yy949; + case 34: /* cmd ::= ALTER USER user_name DROP white_list */ +#line 108 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy889, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy236); } +#line 4985 "sql.c" break; - case 35: /* privileges ::= SUBSCRIBE */ -{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_SUBSCRIBE; } + case 35: /* cmd ::= DROP USER user_name */ +#line 109 "sql.y" +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy889); } +#line 4990 "sql.c" break; - case 37: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy949 = yymsp[-2].minor.yy949 | yymsp[0].minor.yy949; } - yymsp[-2].minor.yy949 = yylhsminor.yy949; + case 36: /* sysinfo_opt ::= */ +#line 113 "sql.y" +{ yymsp[1].minor.yy847 = 1; } +#line 4995 "sql.c" break; - case 38: /* priv_type ::= READ */ -{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_READ; } + case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ +#line 114 "sql.y" +{ yymsp[-1].minor.yy847 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +#line 5000 "sql.c" break; - case 39: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy949 = PRIVILEGE_TYPE_WRITE; } + case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ +#line 117 "sql.y" +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy701, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy889, yymsp[-2].minor.yy28); } +#line 5005 "sql.c" break; - case 40: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy637.first = yymsp[-2].minor.yy0; yylhsminor.yy637.second = yymsp[0].minor.yy0; } - yymsp[-2].minor.yy637 = yylhsminor.yy637; + case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ +#line 118 "sql.y" +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy701, &yymsp[-3].minor.yy833, &yymsp[0].minor.yy889, yymsp[-2].minor.yy28); } +#line 5010 "sql.c" break; - case 41: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy637.first = yymsp[-2].minor.yy169; yylhsminor.yy637.second = yymsp[0].minor.yy0; } - yymsp[-2].minor.yy637 = yylhsminor.yy637; + case 40: /* privileges ::= ALL */ +#line 122 "sql.y" +{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_ALL; } +#line 5015 "sql.c" break; - case 42: /* priv_level ::= db_name NK_DOT table_name */ -{ yylhsminor.yy637.first = yymsp[-2].minor.yy169; yylhsminor.yy637.second = yymsp[0].minor.yy169; } - yymsp[-2].minor.yy637 = yylhsminor.yy637; + case 41: /* privileges ::= priv_type_list */ + case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43); +#line 123 "sql.y" +{ yylhsminor.yy701 = yymsp[0].minor.yy701; } +#line 5021 "sql.c" + yymsp[0].minor.yy701 = yylhsminor.yy701; break; - case 43: /* priv_level ::= topic_name */ -{ yylhsminor.yy637.first = yymsp[0].minor.yy169; yylhsminor.yy637.second = nil_token; } - yymsp[0].minor.yy637 = yylhsminor.yy637; + case 42: /* privileges ::= SUBSCRIBE */ +#line 124 "sql.y" +{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_SUBSCRIBE; } +#line 5027 "sql.c" break; - case 44: /* with_opt ::= */ - case 144: /* start_opt ::= */ yytestcase(yyruleno==144); - case 148: /* end_opt ::= */ yytestcase(yyruleno==148); - case 276: /* like_pattern_opt ::= */ yytestcase(yyruleno==276); - case 354: /* subtable_opt ::= */ yytestcase(yyruleno==354); - case 472: /* case_when_else_opt ::= */ yytestcase(yyruleno==472); - case 502: /* from_clause_opt ::= */ yytestcase(yyruleno==502); - case 535: /* where_clause_opt ::= */ yytestcase(yyruleno==535); - case 544: /* twindow_clause_opt ::= */ yytestcase(yyruleno==544); - case 550: /* sliding_opt ::= */ yytestcase(yyruleno==550); - case 552: /* fill_opt ::= */ yytestcase(yyruleno==552); - case 566: /* having_clause_opt ::= */ yytestcase(yyruleno==566); - case 568: /* range_opt ::= */ yytestcase(yyruleno==568); - case 571: /* every_opt ::= */ yytestcase(yyruleno==571); - case 584: /* slimit_clause_opt ::= */ yytestcase(yyruleno==584); - case 588: /* limit_clause_opt ::= */ yytestcase(yyruleno==588); -{ yymsp[1].minor.yy952 = NULL; } + case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ +#line 129 "sql.y" +{ yylhsminor.yy701 = yymsp[-2].minor.yy701 | yymsp[0].minor.yy701; } +#line 5032 "sql.c" + yymsp[-2].minor.yy701 = yylhsminor.yy701; break; - case 45: /* with_opt ::= WITH search_condition */ - case 503: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==503); - case 536: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==536); - case 567: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==567); -{ yymsp[-1].minor.yy952 = yymsp[0].minor.yy952; } + case 45: /* priv_type ::= READ */ +#line 133 "sql.y" +{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_READ; } +#line 5038 "sql.c" break; - case 46: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy169, NULL); } + case 46: /* priv_type ::= WRITE */ +#line 134 "sql.y" +{ yymsp[0].minor.yy701 = PRIVILEGE_TYPE_WRITE; } +#line 5043 "sql.c" break; - case 47: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy0); } + case 47: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ +#line 138 "sql.y" +{ yylhsminor.yy833.first = yymsp[-2].minor.yy0; yylhsminor.yy833.second = yymsp[0].minor.yy0; } +#line 5048 "sql.c" + yymsp[-2].minor.yy833 = yylhsminor.yy833; break; - case 48: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy957, false); } + case 48: /* priv_level ::= db_name NK_DOT NK_STAR */ +#line 139 "sql.y" +{ yylhsminor.yy833.first = yymsp[-2].minor.yy889; yylhsminor.yy833.second = yymsp[0].minor.yy0; } +#line 5054 "sql.c" + yymsp[-2].minor.yy833 = yylhsminor.yy833; break; - case 49: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy169, yymsp[0].minor.yy957, false); } + case 49: /* priv_level ::= db_name NK_DOT table_name */ +#line 140 "sql.y" +{ yylhsminor.yy833.first = yymsp[-2].minor.yy889; yylhsminor.yy833.second = yymsp[0].minor.yy889; } +#line 5060 "sql.c" + yymsp[-2].minor.yy833 = yylhsminor.yy833; break; - case 50: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy957); } + case 50: /* priv_level ::= topic_name */ +#line 141 "sql.y" +{ yylhsminor.yy833.first = yymsp[0].minor.yy889; yylhsminor.yy833.second = nil_token; } +#line 5066 "sql.c" + yymsp[0].minor.yy833 = yylhsminor.yy833; break; - case 51: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy169, false, yymsp[0].minor.yy957); } + case 51: /* with_opt ::= */ + case 151: /* start_opt ::= */ yytestcase(yyruleno==151); + case 155: /* end_opt ::= */ yytestcase(yyruleno==155); + case 283: /* like_pattern_opt ::= */ yytestcase(yyruleno==283); + case 361: /* subtable_opt ::= */ yytestcase(yyruleno==361); + case 479: /* case_when_else_opt ::= */ yytestcase(yyruleno==479); + case 509: /* from_clause_opt ::= */ yytestcase(yyruleno==509); + case 542: /* where_clause_opt ::= */ yytestcase(yyruleno==542); + case 551: /* twindow_clause_opt ::= */ yytestcase(yyruleno==551); + case 557: /* sliding_opt ::= */ yytestcase(yyruleno==557); + case 559: /* fill_opt ::= */ yytestcase(yyruleno==559); + case 573: /* having_clause_opt ::= */ yytestcase(yyruleno==573); + case 575: /* range_opt ::= */ yytestcase(yyruleno==575); + case 578: /* every_opt ::= */ yytestcase(yyruleno==578); + case 591: /* slimit_clause_opt ::= */ yytestcase(yyruleno==591); + case 595: /* limit_clause_opt ::= */ yytestcase(yyruleno==595); +#line 143 "sql.y" +{ yymsp[1].minor.yy28 = NULL; } +#line 5087 "sql.c" break; - case 52: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ + case 52: /* with_opt ::= WITH search_condition */ + case 510: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==510); + case 543: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==543); + case 574: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==574); +#line 144 "sql.y" +{ yymsp[-1].minor.yy28 = yymsp[0].minor.yy28; } +#line 5095 "sql.c" + break; + case 53: /* cmd ::= CREATE DNODE dnode_endpoint */ +#line 147 "sql.y" +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy889, NULL); } +#line 5100 "sql.c" + break; + case 54: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ +#line 148 "sql.y" +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0); } +#line 5105 "sql.c" + break; + case 55: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ +#line 149 "sql.y" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy793, false); } +#line 5110 "sql.c" + break; + case 56: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ +#line 150 "sql.y" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy793, false); } +#line 5115 "sql.c" + break; + case 57: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ +#line 151 "sql.y" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy793); } +#line 5120 "sql.c" + break; + case 58: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ +#line 152 "sql.y" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy889, false, yymsp[0].minor.yy793); } +#line 5125 "sql.c" + break; + case 59: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ +#line 153 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } +#line 5130 "sql.c" break; - case 53: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ + case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ +#line 154 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 5135 "sql.c" break; - case 54: /* cmd ::= ALTER ALL DNODES NK_STRING */ + case 61: /* cmd ::= ALTER ALL DNODES NK_STRING */ +#line 155 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } +#line 5140 "sql.c" break; - case 55: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ + case 62: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ +#line 156 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 5145 "sql.c" break; - case 56: /* cmd ::= RESTORE DNODE NK_INTEGER */ + case 63: /* cmd ::= RESTORE DNODE NK_INTEGER */ +#line 157 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } +#line 5150 "sql.c" break; - case 57: /* dnode_endpoint ::= NK_STRING */ - case 58: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==58); - case 59: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==59); - case 300: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==300); - case 301: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==301); - case 302: /* sma_func_name ::= LAST */ yytestcase(yyruleno==302); - case 303: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==303); - case 398: /* db_name ::= NK_ID */ yytestcase(yyruleno==398); - case 399: /* table_name ::= NK_ID */ yytestcase(yyruleno==399); - case 400: /* column_name ::= NK_ID */ yytestcase(yyruleno==400); - case 401: /* function_name ::= NK_ID */ yytestcase(yyruleno==401); - case 402: /* table_alias ::= NK_ID */ yytestcase(yyruleno==402); - case 403: /* column_alias ::= NK_ID */ yytestcase(yyruleno==403); - case 404: /* user_name ::= NK_ID */ yytestcase(yyruleno==404); - case 405: /* topic_name ::= NK_ID */ yytestcase(yyruleno==405); - case 406: /* stream_name ::= NK_ID */ yytestcase(yyruleno==406); - case 407: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==407); - case 408: /* index_name ::= NK_ID */ yytestcase(yyruleno==408); - case 448: /* noarg_func ::= NOW */ yytestcase(yyruleno==448); - case 449: /* noarg_func ::= TODAY */ yytestcase(yyruleno==449); - case 450: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==450); - case 451: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==451); - case 452: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==452); - case 453: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==453); - case 454: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==454); - case 455: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==455); - case 456: /* noarg_func ::= USER */ yytestcase(yyruleno==456); - case 457: /* star_func ::= COUNT */ yytestcase(yyruleno==457); - case 458: /* star_func ::= FIRST */ yytestcase(yyruleno==458); - case 459: /* star_func ::= LAST */ yytestcase(yyruleno==459); - case 460: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==460); -{ yylhsminor.yy169 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy169 = yylhsminor.yy169; + case 64: /* dnode_endpoint ::= NK_STRING */ + case 65: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==65); + case 66: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==66); + case 307: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==307); + case 308: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==308); + case 309: /* sma_func_name ::= LAST */ yytestcase(yyruleno==309); + case 310: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==310); + case 405: /* db_name ::= NK_ID */ yytestcase(yyruleno==405); + case 406: /* table_name ::= NK_ID */ yytestcase(yyruleno==406); + case 407: /* column_name ::= NK_ID */ yytestcase(yyruleno==407); + case 408: /* function_name ::= NK_ID */ yytestcase(yyruleno==408); + case 409: /* table_alias ::= NK_ID */ yytestcase(yyruleno==409); + case 410: /* column_alias ::= NK_ID */ yytestcase(yyruleno==410); + case 411: /* user_name ::= NK_ID */ yytestcase(yyruleno==411); + case 412: /* topic_name ::= NK_ID */ yytestcase(yyruleno==412); + case 413: /* stream_name ::= NK_ID */ yytestcase(yyruleno==413); + case 414: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==414); + case 415: /* index_name ::= NK_ID */ yytestcase(yyruleno==415); + case 455: /* noarg_func ::= NOW */ yytestcase(yyruleno==455); + case 456: /* noarg_func ::= TODAY */ yytestcase(yyruleno==456); + case 457: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==457); + case 458: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==458); + case 459: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==459); + case 460: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==460); + case 461: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==461); + case 462: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==462); + case 463: /* noarg_func ::= USER */ yytestcase(yyruleno==463); + case 464: /* star_func ::= COUNT */ yytestcase(yyruleno==464); + case 465: /* star_func ::= FIRST */ yytestcase(yyruleno==465); + case 466: /* star_func ::= LAST */ yytestcase(yyruleno==466); + case 467: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==467); +#line 161 "sql.y" +{ yylhsminor.yy889 = yymsp[0].minor.yy0; } +#line 5185 "sql.c" + yymsp[0].minor.yy889 = yylhsminor.yy889; break; - case 60: /* force_opt ::= */ - case 84: /* not_exists_opt ::= */ yytestcase(yyruleno==84); - case 86: /* exists_opt ::= */ yytestcase(yyruleno==86); - case 321: /* analyze_opt ::= */ yytestcase(yyruleno==321); - case 328: /* agg_func_opt ::= */ yytestcase(yyruleno==328); - case 334: /* or_replace_opt ::= */ yytestcase(yyruleno==334); - case 356: /* ignore_opt ::= */ yytestcase(yyruleno==356); - case 523: /* tag_mode_opt ::= */ yytestcase(yyruleno==523); - case 525: /* set_quantifier_opt ::= */ yytestcase(yyruleno==525); -{ yymsp[1].minor.yy957 = false; } + case 67: /* force_opt ::= */ + case 91: /* not_exists_opt ::= */ yytestcase(yyruleno==91); + case 93: /* exists_opt ::= */ yytestcase(yyruleno==93); + case 328: /* analyze_opt ::= */ yytestcase(yyruleno==328); + case 335: /* agg_func_opt ::= */ yytestcase(yyruleno==335); + case 341: /* or_replace_opt ::= */ yytestcase(yyruleno==341); + case 363: /* ignore_opt ::= */ yytestcase(yyruleno==363); + case 530: /* tag_mode_opt ::= */ yytestcase(yyruleno==530); + case 532: /* set_quantifier_opt ::= */ yytestcase(yyruleno==532); +#line 167 "sql.y" +{ yymsp[1].minor.yy793 = false; } +#line 5199 "sql.c" break; - case 61: /* force_opt ::= FORCE */ - case 62: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==62); - case 322: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==322); - case 329: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==329); - case 524: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==524); - case 526: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==526); -{ yymsp[0].minor.yy957 = true; } + case 68: /* force_opt ::= FORCE */ + case 69: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==69); + case 329: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==329); + case 336: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==336); + case 531: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==531); + case 533: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==533); +#line 168 "sql.y" +{ yymsp[0].minor.yy793 = true; } +#line 5209 "sql.c" break; - case 63: /* cmd ::= ALTER LOCAL NK_STRING */ + case 70: /* cmd ::= ALTER LOCAL NK_STRING */ +#line 175 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } +#line 5214 "sql.c" break; - case 64: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ + case 71: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ +#line 176 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 5219 "sql.c" break; - case 65: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ + case 72: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ +#line 179 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } +#line 5224 "sql.c" break; - case 66: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ + case 73: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ +#line 180 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } +#line 5229 "sql.c" break; - case 67: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ + case 74: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ +#line 181 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } +#line 5234 "sql.c" break; - case 68: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ + case 75: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ +#line 184 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } +#line 5239 "sql.c" break; - case 69: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ + case 76: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ +#line 185 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } +#line 5244 "sql.c" break; - case 70: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ + case 77: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ +#line 188 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } +#line 5249 "sql.c" break; - case 71: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ + case 78: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ +#line 189 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } +#line 5254 "sql.c" break; - case 72: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ + case 79: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ +#line 192 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } +#line 5259 "sql.c" break; - case 73: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ + case 80: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ +#line 193 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } +#line 5264 "sql.c" break; - case 74: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ + case 81: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ +#line 194 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } +#line 5269 "sql.c" break; - case 75: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ + case 82: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ +#line 197 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } +#line 5274 "sql.c" break; - case 76: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy957, &yymsp[-1].minor.yy169, yymsp[0].minor.yy952); } + case 83: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ +#line 200 "sql.y" +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy793, &yymsp[-1].minor.yy889, yymsp[0].minor.yy28); } +#line 5279 "sql.c" break; - case 77: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); } + case 84: /* cmd ::= DROP DATABASE exists_opt db_name */ +#line 201 "sql.y" +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +#line 5284 "sql.c" break; - case 78: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy169); } + case 85: /* cmd ::= USE db_name */ +#line 202 "sql.y" +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy889); } +#line 5289 "sql.c" break; - case 79: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy169, yymsp[0].minor.yy952); } + case 86: /* cmd ::= ALTER DATABASE db_name alter_db_options */ +#line 203 "sql.y" +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy28); } +#line 5294 "sql.c" break; - case 80: /* cmd ::= FLUSH DATABASE db_name */ -{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy169); } + case 87: /* cmd ::= FLUSH DATABASE db_name */ +#line 204 "sql.y" +{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy889); } +#line 5299 "sql.c" break; - case 81: /* cmd ::= TRIM DATABASE db_name speed_opt */ -{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy169, yymsp[0].minor.yy480); } + case 88: /* cmd ::= TRIM DATABASE db_name speed_opt */ +#line 205 "sql.y" +{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy956); } +#line 5304 "sql.c" break; - case 82: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy169, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); } + case 89: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ +#line 206 "sql.y" +{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy889, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +#line 5309 "sql.c" break; - case 83: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy957 = true; } + case 90: /* not_exists_opt ::= IF NOT EXISTS */ +#line 210 "sql.y" +{ yymsp[-2].minor.yy793 = true; } +#line 5314 "sql.c" break; - case 85: /* exists_opt ::= IF EXISTS */ - case 335: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==335); - case 357: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==357); -{ yymsp[-1].minor.yy957 = true; } + case 92: /* exists_opt ::= IF EXISTS */ + case 342: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==342); + case 364: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==364); +#line 215 "sql.y" +{ yymsp[-1].minor.yy793 = true; } +#line 5321 "sql.c" break; - case 87: /* db_options ::= */ -{ yymsp[1].minor.yy952 = createDefaultDatabaseOptions(pCxt); } + case 94: /* db_options ::= */ +#line 218 "sql.y" +{ yymsp[1].minor.yy28 = createDefaultDatabaseOptions(pCxt); } +#line 5326 "sql.c" break; - case 88: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 95: /* db_options ::= db_options BUFFER NK_INTEGER */ +#line 219 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } +#line 5331 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 89: /* db_options ::= db_options CACHEMODEL NK_STRING */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 96: /* db_options ::= db_options CACHEMODEL NK_STRING */ +#line 220 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } +#line 5337 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 90: /* db_options ::= db_options CACHESIZE NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 97: /* db_options ::= db_options CACHESIZE NK_INTEGER */ +#line 221 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } +#line 5343 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 91: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 98: /* db_options ::= db_options COMP NK_INTEGER */ +#line 222 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_COMP, &yymsp[0].minor.yy0); } +#line 5349 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 92: /* db_options ::= db_options DURATION NK_INTEGER */ - case 93: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==93); -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 99: /* db_options ::= db_options DURATION NK_INTEGER */ + case 100: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==100); +#line 223 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } +#line 5356 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 94: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 101: /* db_options ::= db_options MAXROWS NK_INTEGER */ +#line 225 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } +#line 5362 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 95: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 102: /* db_options ::= db_options MINROWS NK_INTEGER */ +#line 226 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } +#line 5368 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 96: /* db_options ::= db_options KEEP integer_list */ - case 97: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==97); -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_KEEP, yymsp[0].minor.yy824); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 103: /* db_options ::= db_options KEEP integer_list */ + case 104: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==104); +#line 227 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_KEEP, yymsp[0].minor.yy236); } +#line 5375 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 98: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 105: /* db_options ::= db_options PAGES NK_INTEGER */ +#line 229 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } +#line 5381 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 99: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 106: /* db_options ::= db_options PAGESIZE NK_INTEGER */ +#line 230 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } +#line 5387 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 100: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 107: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ +#line 231 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } +#line 5393 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 101: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 108: /* db_options ::= db_options PRECISION NK_STRING */ +#line 232 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } +#line 5399 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 102: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 109: /* db_options ::= db_options REPLICA NK_INTEGER */ +#line 233 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } +#line 5405 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 103: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 110: /* db_options ::= db_options VGROUPS NK_INTEGER */ +#line 235 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } +#line 5411 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 104: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 111: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ +#line 236 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } +#line 5417 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 105: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_RETENTIONS, yymsp[0].minor.yy824); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 112: /* db_options ::= db_options RETENTIONS retention_list */ +#line 237 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_RETENTIONS, yymsp[0].minor.yy236); } +#line 5423 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 106: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 113: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ +#line 238 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } +#line 5429 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 107: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 114: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ +#line 239 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL, &yymsp[0].minor.yy0); } +#line 5435 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 108: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 115: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ +#line 240 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } +#line 5441 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 109: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 116: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ +#line 241 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } +#line 5447 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 110: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + case 117: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ +#line 242 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-3].minor.yy952, DB_OPTION_WAL_RETENTION_PERIOD, &t); + yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-3].minor.yy28, DB_OPTION_WAL_RETENTION_PERIOD, &t); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; +#line 5457 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 111: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 118: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ +#line 247 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } +#line 5463 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 112: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + case 119: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ +#line 248 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-3].minor.yy952, DB_OPTION_WAL_RETENTION_SIZE, &t); + yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-3].minor.yy28, DB_OPTION_WAL_RETENTION_SIZE, &t); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; +#line 5473 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 113: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 120: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ +#line 253 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } +#line 5479 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 114: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 121: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ +#line 254 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } +#line 5485 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 115: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 122: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ +#line 255 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } +#line 5491 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 116: /* db_options ::= db_options TABLE_PREFIX signed */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy952); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 123: /* db_options ::= db_options TABLE_PREFIX signed */ +#line 256 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy28); } +#line 5497 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 117: /* db_options ::= db_options TABLE_SUFFIX signed */ -{ yylhsminor.yy952 = setDatabaseOption(pCxt, yymsp[-2].minor.yy952, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy952); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 124: /* db_options ::= db_options TABLE_SUFFIX signed */ +#line 257 "sql.y" +{ yylhsminor.yy28 = setDatabaseOption(pCxt, yymsp[-2].minor.yy28, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy28); } +#line 5503 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 118: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy952 = createAlterDatabaseOptions(pCxt); yylhsminor.yy952 = setAlterDatabaseOption(pCxt, yylhsminor.yy952, &yymsp[0].minor.yy25); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 125: /* alter_db_options ::= alter_db_option */ +#line 259 "sql.y" +{ yylhsminor.yy28 = createAlterDatabaseOptions(pCxt); yylhsminor.yy28 = setAlterDatabaseOption(pCxt, yylhsminor.yy28, &yymsp[0].minor.yy481); } +#line 5509 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 119: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy952 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy952, &yymsp[0].minor.yy25); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; + case 126: /* alter_db_options ::= alter_db_options alter_db_option */ +#line 260 "sql.y" +{ yylhsminor.yy28 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy28, &yymsp[0].minor.yy481); } +#line 5515 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 120: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 127: /* alter_db_option ::= BUFFER NK_INTEGER */ +#line 264 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5521 "sql.c" break; - case 121: /* alter_db_option ::= CACHEMODEL NK_STRING */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 128: /* alter_db_option ::= CACHEMODEL NK_STRING */ +#line 265 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5526 "sql.c" break; - case 122: /* alter_db_option ::= CACHESIZE NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 129: /* alter_db_option ::= CACHESIZE NK_INTEGER */ +#line 266 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5531 "sql.c" break; - case 123: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 130: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ +#line 267 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5536 "sql.c" break; - case 124: /* alter_db_option ::= KEEP integer_list */ - case 125: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==125); -{ yymsp[-1].minor.yy25.type = DB_OPTION_KEEP; yymsp[-1].minor.yy25.pList = yymsp[0].minor.yy824; } + case 131: /* alter_db_option ::= KEEP integer_list */ + case 132: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==132); +#line 268 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_KEEP; yymsp[-1].minor.yy481.pList = yymsp[0].minor.yy236; } +#line 5542 "sql.c" break; - case 126: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_PAGES; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 133: /* alter_db_option ::= PAGES NK_INTEGER */ +#line 270 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_PAGES; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5547 "sql.c" break; - case 127: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 134: /* alter_db_option ::= REPLICA NK_INTEGER */ +#line 271 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5552 "sql.c" break; - case 128: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_WAL; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 135: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ +#line 273 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_WAL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5557 "sql.c" break; - case 129: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 136: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ +#line 274 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5562 "sql.c" break; - case 130: /* alter_db_option ::= MINROWS NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 137: /* alter_db_option ::= MINROWS NK_INTEGER */ +#line 275 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5567 "sql.c" break; - case 131: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 138: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ +#line 276 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5572 "sql.c" break; - case 132: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ + case 139: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ +#line 277 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.yy25.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy25.val = t; + yymsp[-2].minor.yy481.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy481.val = t; } +#line 5581 "sql.c" break; - case 133: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } + case 140: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ +#line 282 "sql.y" +{ yymsp[-1].minor.yy481.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 5586 "sql.c" break; - case 134: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ + case 141: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ +#line 283 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.yy25.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy25.val = t; + yymsp[-2].minor.yy481.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy481.val = t; } - break; - case 135: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy824 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy824 = yylhsminor.yy824; - break; - case 136: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 367: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==367); -{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy824 = yylhsminor.yy824; - break; - case 137: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy824 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy824 = yylhsminor.yy824; - break; - case 138: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy824 = yylhsminor.yy824; - break; - case 139: /* retention_list ::= retention */ - case 169: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==169); - case 172: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==172); - case 179: /* column_def_list ::= column_def */ yytestcase(yyruleno==179); - case 223: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==223); - case 228: /* col_name_list ::= col_name */ yytestcase(yyruleno==228); - case 282: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==282); - case 296: /* func_list ::= func */ yytestcase(yyruleno==296); - case 396: /* literal_list ::= signed_literal */ yytestcase(yyruleno==396); - case 463: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==463); - case 469: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==469); - case 528: /* select_list ::= select_item */ yytestcase(yyruleno==528); - case 539: /* partition_list ::= partition_item */ yytestcase(yyruleno==539); - case 595: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==595); -{ yylhsminor.yy824 = createNodeList(pCxt, yymsp[0].minor.yy952); } - yymsp[0].minor.yy824 = yylhsminor.yy824; - break; - case 140: /* retention_list ::= retention_list NK_COMMA retention */ - case 173: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==173); - case 180: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==180); - case 224: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==224); - case 229: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==229); - case 283: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==283); - case 297: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==297); - case 397: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==397); - case 464: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==464); - case 529: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==529); - case 540: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==540); - case 596: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==596); -{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, yymsp[0].minor.yy952); } - yymsp[-2].minor.yy824 = yylhsminor.yy824; - break; - case 141: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ -{ yylhsminor.yy952 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; - break; - case 142: /* speed_opt ::= */ - case 330: /* bufsize_opt ::= */ yytestcase(yyruleno==330); -{ yymsp[1].minor.yy480 = 0; } - break; - case 143: /* speed_opt ::= BWLIMIT NK_INTEGER */ - case 331: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==331); -{ yymsp[-1].minor.yy480 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } - break; - case 145: /* start_opt ::= START WITH NK_INTEGER */ - case 149: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==149); -{ yymsp[-2].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - break; - case 146: /* start_opt ::= START WITH NK_STRING */ - case 150: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==150); -{ yymsp[-2].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } - break; - case 147: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ - case 151: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==151); -{ yymsp[-3].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } - break; - case 152: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 154: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==154); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy957, yymsp[-5].minor.yy952, yymsp[-3].minor.yy824, yymsp[-1].minor.yy824, yymsp[0].minor.yy952); } - break; - case 153: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy824); } - break; - case 155: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy824); } - break; - case 156: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy957, yymsp[0].minor.yy952); } - break; - case 157: /* cmd ::= ALTER TABLE alter_table_clause */ - case 369: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==369); - case 370: /* cmd ::= insert_query */ yytestcase(yyruleno==370); -{ pCxt->pRootNode = yymsp[0].minor.yy952; } - break; - case 158: /* cmd ::= ALTER STABLE alter_table_clause */ -{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy952); } - break; - case 159: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy952 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; - break; - case 160: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy952 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; - break; - case 161: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy952 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy952, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy169); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; - break; - case 162: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy952 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; - break; - case 163: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy952 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy169, &yymsp[0].minor.yy169); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; - break; - case 164: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy952 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; - break; - case 165: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy952 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy952, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy169); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; - break; - case 166: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy952 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; - break; - case 167: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy952 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy952, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy169, &yymsp[0].minor.yy169); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; - break; - case 168: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ -{ yylhsminor.yy952 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy952, &yymsp[-2].minor.yy169, yymsp[0].minor.yy952); } - yymsp[-5].minor.yy952 = yylhsminor.yy952; - break; - case 170: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 470: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==470); -{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-1].minor.yy824, yymsp[0].minor.yy952); } - yymsp[-1].minor.yy824 = yylhsminor.yy824; - break; - case 171: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ -{ yylhsminor.yy952 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy957, yymsp[-8].minor.yy952, yymsp[-6].minor.yy952, yymsp[-5].minor.yy824, yymsp[-2].minor.yy824, yymsp[0].minor.yy952); } - yymsp[-9].minor.yy952 = yylhsminor.yy952; - break; - case 174: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy952 = createDropTableClause(pCxt, yymsp[-1].minor.yy957, yymsp[0].minor.yy952); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; - break; - case 175: /* specific_cols_opt ::= */ - case 206: /* tags_def_opt ::= */ yytestcase(yyruleno==206); - case 281: /* tag_list_opt ::= */ yytestcase(yyruleno==281); - case 340: /* col_list_opt ::= */ yytestcase(yyruleno==340); - case 342: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==342); - case 537: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==537); - case 562: /* group_by_clause_opt ::= */ yytestcase(yyruleno==562); - case 582: /* order_by_clause_opt ::= */ yytestcase(yyruleno==582); -{ yymsp[1].minor.yy824 = NULL; } - break; - case 176: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ - case 341: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==341); -{ yymsp[-2].minor.yy824 = yymsp[-1].minor.yy824; } - break; - case 177: /* full_table_name ::= table_name */ -{ yylhsminor.yy952 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy169, NULL); } - yymsp[0].minor.yy952 = yylhsminor.yy952; - break; - case 178: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy952 = createRealTableNode(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169, NULL); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; - break; - case 181: /* column_def ::= column_name type_name */ -{ yylhsminor.yy952 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy169, yymsp[0].minor.yy84, NULL); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; - break; - case 182: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_BOOL); } - break; - case 183: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_TINYINT); } - break; - case 184: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_SMALLINT); } - break; - case 185: /* type_name ::= INT */ - case 186: /* type_name ::= INTEGER */ yytestcase(yyruleno==186); -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_INT); } - break; - case 187: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_BIGINT); } - break; - case 188: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_FLOAT); } - break; - case 189: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_DOUBLE); } - break; - case 190: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } - break; - case 191: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } - break; - case 192: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } - break; - case 193: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_UTINYINT); } - break; - case 194: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_USMALLINT); } - break; - case 195: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_UINT); } - break; - case 196: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy84 = createDataType(TSDB_DATA_TYPE_UBIGINT); } - break; - case 197: /* type_name ::= JSON */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_JSON); } - break; - case 198: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } - break; - case 199: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } - break; - case 200: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_BLOB); } - break; - case 201: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } - break; - case 202: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy84 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } - break; - case 203: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy84 = createDataType(TSDB_DATA_TYPE_DECIMAL); } - break; - case 204: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy84 = createDataType(TSDB_DATA_TYPE_DECIMAL); } - break; - case 205: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy84 = createDataType(TSDB_DATA_TYPE_DECIMAL); } - break; - case 207: /* tags_def_opt ::= tags_def */ - case 343: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==343); - case 462: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==462); -{ yylhsminor.yy824 = yymsp[0].minor.yy824; } - yymsp[0].minor.yy824 = yylhsminor.yy824; - break; - case 208: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ - case 344: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==344); -{ yymsp[-3].minor.yy824 = yymsp[-1].minor.yy824; } - break; - case 209: /* table_options ::= */ -{ yymsp[1].minor.yy952 = createDefaultTableOptions(pCxt); } - break; - case 210: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; - break; - case 211: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy824); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; - break; - case 212: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy824); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; - break; - case 213: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-4].minor.yy952, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy824); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; - break; - case 214: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; - break; - case 215: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-4].minor.yy952, TABLE_OPTION_SMA, yymsp[-1].minor.yy824); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; - break; - case 216: /* table_options ::= table_options DELETE_MARK duration_list */ -{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-2].minor.yy952, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy824); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; - break; - case 217: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy952 = createAlterTableOptions(pCxt); yylhsminor.yy952 = setTableOption(pCxt, yylhsminor.yy952, yymsp[0].minor.yy25.type, &yymsp[0].minor.yy25.val); } - yymsp[0].minor.yy952 = yylhsminor.yy952; - break; - case 218: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy952 = setTableOption(pCxt, yymsp[-1].minor.yy952, yymsp[0].minor.yy25.type, &yymsp[0].minor.yy25.val); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; - break; - case 219: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy25.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } - break; - case 220: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy25.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy25.val = yymsp[0].minor.yy0; } - break; - case 221: /* duration_list ::= duration_literal */ - case 426: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==426); -{ yylhsminor.yy824 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); } - yymsp[0].minor.yy824 = yylhsminor.yy824; - break; - case 222: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 427: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==427); -{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); } - yymsp[-2].minor.yy824 = yylhsminor.yy824; - break; - case 225: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy952 = createFunctionNode(pCxt, &yymsp[0].minor.yy169, NULL); } - yymsp[0].minor.yy952 = yylhsminor.yy952; - break; - case 226: /* rollup_func_name ::= FIRST */ - case 227: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==227); - case 285: /* tag_item ::= QTAGS */ yytestcase(yyruleno==285); -{ yylhsminor.yy952 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy952 = yylhsminor.yy952; - break; - case 230: /* col_name ::= column_name */ - case 286: /* tag_item ::= column_name */ yytestcase(yyruleno==286); -{ yylhsminor.yy952 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy169); } - yymsp[0].minor.yy952 = yylhsminor.yy952; - break; - case 231: /* cmd ::= SHOW DNODES */ +#line 5595 "sql.c" + break; + case 142: /* integer_list ::= NK_INTEGER */ +#line 291 "sql.y" +{ yylhsminor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 5600 "sql.c" + yymsp[0].minor.yy236 = yylhsminor.yy236; + break; + case 143: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ + case 374: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==374); +#line 292 "sql.y" +{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 5607 "sql.c" + yymsp[-2].minor.yy236 = yylhsminor.yy236; + break; + case 144: /* variable_list ::= NK_VARIABLE */ +#line 296 "sql.y" +{ yylhsminor.yy236 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 5613 "sql.c" + yymsp[0].minor.yy236 = yylhsminor.yy236; + break; + case 145: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ +#line 297 "sql.y" +{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 5619 "sql.c" + yymsp[-2].minor.yy236 = yylhsminor.yy236; + break; + case 146: /* retention_list ::= retention */ + case 176: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==176); + case 179: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==179); + case 186: /* column_def_list ::= column_def */ yytestcase(yyruleno==186); + case 230: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==230); + case 235: /* col_name_list ::= col_name */ yytestcase(yyruleno==235); + case 289: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==289); + case 303: /* func_list ::= func */ yytestcase(yyruleno==303); + case 403: /* literal_list ::= signed_literal */ yytestcase(yyruleno==403); + case 470: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==470); + case 476: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==476); + case 535: /* select_list ::= select_item */ yytestcase(yyruleno==535); + case 546: /* partition_list ::= partition_item */ yytestcase(yyruleno==546); + case 602: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==602); +#line 301 "sql.y" +{ yylhsminor.yy236 = createNodeList(pCxt, yymsp[0].minor.yy28); } +#line 5638 "sql.c" + yymsp[0].minor.yy236 = yylhsminor.yy236; + break; + case 147: /* retention_list ::= retention_list NK_COMMA retention */ + case 180: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==180); + case 187: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==187); + case 231: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==231); + case 236: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==236); + case 290: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==290); + case 304: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==304); + case 404: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==404); + case 471: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==471); + case 536: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==536); + case 547: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==547); + case 603: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==603); +#line 302 "sql.y" +{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); } +#line 5655 "sql.c" + yymsp[-2].minor.yy236 = yylhsminor.yy236; + break; + case 148: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ +#line 304 "sql.y" +{ yylhsminor.yy28 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 5661 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; + break; + case 149: /* speed_opt ::= */ + case 337: /* bufsize_opt ::= */ yytestcase(yyruleno==337); +#line 308 "sql.y" +{ yymsp[1].minor.yy956 = 0; } +#line 5668 "sql.c" + break; + case 150: /* speed_opt ::= BWLIMIT NK_INTEGER */ + case 338: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==338); +#line 309 "sql.y" +{ yymsp[-1].minor.yy956 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } +#line 5674 "sql.c" + break; + case 152: /* start_opt ::= START WITH NK_INTEGER */ + case 156: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==156); +#line 312 "sql.y" +{ yymsp[-2].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +#line 5680 "sql.c" + break; + case 153: /* start_opt ::= START WITH NK_STRING */ + case 157: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==157); +#line 313 "sql.y" +{ yymsp[-2].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 5686 "sql.c" + break; + case 154: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ + case 158: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==158); +#line 314 "sql.y" +{ yymsp[-3].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 5692 "sql.c" + break; + case 159: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 161: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==161); +#line 323 "sql.y" +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy793, yymsp[-5].minor.yy28, yymsp[-3].minor.yy236, yymsp[-1].minor.yy236, yymsp[0].minor.yy28); } +#line 5698 "sql.c" + break; + case 160: /* cmd ::= CREATE TABLE multi_create_clause */ +#line 324 "sql.y" +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy236); } +#line 5703 "sql.c" + break; + case 162: /* cmd ::= DROP TABLE multi_drop_clause */ +#line 327 "sql.y" +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy236); } +#line 5708 "sql.c" + break; + case 163: /* cmd ::= DROP STABLE exists_opt full_table_name */ +#line 328 "sql.y" +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); } +#line 5713 "sql.c" + break; + case 164: /* cmd ::= ALTER TABLE alter_table_clause */ + case 376: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==376); + case 377: /* cmd ::= insert_query */ yytestcase(yyruleno==377); +#line 330 "sql.y" +{ pCxt->pRootNode = yymsp[0].minor.yy28; } +#line 5720 "sql.c" + break; + case 165: /* cmd ::= ALTER STABLE alter_table_clause */ +#line 331 "sql.y" +{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy28); } +#line 5725 "sql.c" + break; + case 166: /* alter_table_clause ::= full_table_name alter_table_options */ +#line 333 "sql.y" +{ yylhsminor.yy28 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +#line 5730 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; + break; + case 167: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ +#line 335 "sql.y" +{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } +#line 5736 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; + break; + case 168: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ +#line 336 "sql.y" +{ yylhsminor.yy28 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy28, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy889); } +#line 5742 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; + break; + case 169: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ +#line 338 "sql.y" +{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } +#line 5748 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; + break; + case 170: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ +#line 340 "sql.y" +{ yylhsminor.yy28 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } +#line 5754 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; + break; + case 171: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ +#line 342 "sql.y" +{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } +#line 5760 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; + break; + case 172: /* alter_table_clause ::= full_table_name DROP TAG column_name */ +#line 343 "sql.y" +{ yylhsminor.yy28 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy28, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy889); } +#line 5766 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; + break; + case 173: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ +#line 345 "sql.y" +{ yylhsminor.yy28 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32); } +#line 5772 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; + break; + case 174: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ +#line 347 "sql.y" +{ yylhsminor.yy28 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy28, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } +#line 5778 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; + break; + case 175: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ +#line 349 "sql.y" +{ yylhsminor.yy28 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy28, &yymsp[-2].minor.yy889, yymsp[0].minor.yy28); } +#line 5784 "sql.c" + yymsp[-5].minor.yy28 = yylhsminor.yy28; + break; + case 177: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 477: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==477); +#line 354 "sql.y" +{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-1].minor.yy236, yymsp[0].minor.yy28); } +#line 5791 "sql.c" + yymsp[-1].minor.yy236 = yylhsminor.yy236; + break; + case 178: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ +#line 358 "sql.y" +{ yylhsminor.yy28 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy793, yymsp[-8].minor.yy28, yymsp[-6].minor.yy28, yymsp[-5].minor.yy236, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); } +#line 5797 "sql.c" + yymsp[-9].minor.yy28 = yylhsminor.yy28; + break; + case 181: /* drop_table_clause ::= exists_opt full_table_name */ +#line 365 "sql.y" +{ yylhsminor.yy28 = createDropTableClause(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); } +#line 5803 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; + break; + case 183: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ + case 348: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==348); +#line 370 "sql.y" +{ yymsp[-2].minor.yy236 = yymsp[-1].minor.yy236; } +#line 5810 "sql.c" + break; + case 184: /* full_table_name ::= table_name */ +#line 372 "sql.y" +{ yylhsminor.yy28 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy889, NULL); } +#line 5815 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; + break; + case 185: /* full_table_name ::= db_name NK_DOT table_name */ +#line 373 "sql.y" +{ yylhsminor.yy28 = createRealTableNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889, NULL); } +#line 5821 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; + break; + case 188: /* column_def ::= column_name type_name */ +#line 380 "sql.y" +{ yylhsminor.yy28 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy889, yymsp[0].minor.yy32, NULL); } +#line 5827 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; + break; + case 189: /* type_name ::= BOOL */ +#line 385 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BOOL); } +#line 5833 "sql.c" + break; + case 190: /* type_name ::= TINYINT */ +#line 386 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_TINYINT); } +#line 5838 "sql.c" + break; + case 191: /* type_name ::= SMALLINT */ +#line 387 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +#line 5843 "sql.c" + break; + case 192: /* type_name ::= INT */ + case 193: /* type_name ::= INTEGER */ yytestcase(yyruleno==193); +#line 388 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_INT); } +#line 5849 "sql.c" + break; + case 194: /* type_name ::= BIGINT */ +#line 390 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BIGINT); } +#line 5854 "sql.c" + break; + case 195: /* type_name ::= FLOAT */ +#line 391 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_FLOAT); } +#line 5859 "sql.c" + break; + case 196: /* type_name ::= DOUBLE */ +#line 392 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +#line 5864 "sql.c" + break; + case 197: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +#line 393 "sql.y" +{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +#line 5869 "sql.c" + break; + case 198: /* type_name ::= TIMESTAMP */ +#line 394 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +#line 5874 "sql.c" + break; + case 199: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +#line 395 "sql.y" +{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +#line 5879 "sql.c" + break; + case 200: /* type_name ::= TINYINT UNSIGNED */ +#line 396 "sql.y" +{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +#line 5884 "sql.c" + break; + case 201: /* type_name ::= SMALLINT UNSIGNED */ +#line 397 "sql.y" +{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +#line 5889 "sql.c" + break; + case 202: /* type_name ::= INT UNSIGNED */ +#line 398 "sql.y" +{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UINT); } +#line 5894 "sql.c" + break; + case 203: /* type_name ::= BIGINT UNSIGNED */ +#line 399 "sql.y" +{ yymsp[-1].minor.yy32 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +#line 5899 "sql.c" + break; + case 204: /* type_name ::= JSON */ +#line 400 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_JSON); } +#line 5904 "sql.c" + break; + case 205: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +#line 401 "sql.y" +{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +#line 5909 "sql.c" + break; + case 206: /* type_name ::= MEDIUMBLOB */ +#line 402 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +#line 5914 "sql.c" + break; + case 207: /* type_name ::= BLOB */ +#line 403 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_BLOB); } +#line 5919 "sql.c" + break; + case 208: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +#line 404 "sql.y" +{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +#line 5924 "sql.c" + break; + case 209: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ +#line 405 "sql.y" +{ yymsp[-3].minor.yy32 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } +#line 5929 "sql.c" + break; + case 210: /* type_name ::= DECIMAL */ +#line 406 "sql.y" +{ yymsp[0].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 5934 "sql.c" + break; + case 211: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +#line 407 "sql.y" +{ yymsp[-3].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 5939 "sql.c" + break; + case 212: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +#line 408 "sql.y" +{ yymsp[-5].minor.yy32 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 5944 "sql.c" + break; + case 215: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ + case 351: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==351); +#line 417 "sql.y" +{ yymsp[-3].minor.yy236 = yymsp[-1].minor.yy236; } +#line 5950 "sql.c" + break; + case 216: /* table_options ::= */ +#line 419 "sql.y" +{ yymsp[1].minor.yy28 = createDefaultTableOptions(pCxt); } +#line 5955 "sql.c" + break; + case 217: /* table_options ::= table_options COMMENT NK_STRING */ +#line 420 "sql.y" +{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } +#line 5960 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; + break; + case 218: /* table_options ::= table_options MAX_DELAY duration_list */ +#line 421 "sql.y" +{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy236); } +#line 5966 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; + break; + case 219: /* table_options ::= table_options WATERMARK duration_list */ +#line 422 "sql.y" +{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy236); } +#line 5972 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; + break; + case 220: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ +#line 423 "sql.y" +{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-4].minor.yy28, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy236); } +#line 5978 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; + break; + case 221: /* table_options ::= table_options TTL NK_INTEGER */ +#line 424 "sql.y" +{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } +#line 5984 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; + break; + case 222: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +#line 425 "sql.y" +{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-4].minor.yy28, TABLE_OPTION_SMA, yymsp[-1].minor.yy236); } +#line 5990 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; + break; + case 223: /* table_options ::= table_options DELETE_MARK duration_list */ +#line 426 "sql.y" +{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-2].minor.yy28, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy236); } +#line 5996 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; + break; + case 224: /* alter_table_options ::= alter_table_option */ +#line 428 "sql.y" +{ yylhsminor.yy28 = createAlterTableOptions(pCxt); yylhsminor.yy28 = setTableOption(pCxt, yylhsminor.yy28, yymsp[0].minor.yy481.type, &yymsp[0].minor.yy481.val); } +#line 6002 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; + break; + case 225: /* alter_table_options ::= alter_table_options alter_table_option */ +#line 429 "sql.y" +{ yylhsminor.yy28 = setTableOption(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy481.type, &yymsp[0].minor.yy481.val); } +#line 6008 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; + break; + case 226: /* alter_table_option ::= COMMENT NK_STRING */ +#line 433 "sql.y" +{ yymsp[-1].minor.yy481.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 6014 "sql.c" + break; + case 227: /* alter_table_option ::= TTL NK_INTEGER */ +#line 434 "sql.y" +{ yymsp[-1].minor.yy481.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy481.val = yymsp[0].minor.yy0; } +#line 6019 "sql.c" + break; + case 228: /* duration_list ::= duration_literal */ + case 433: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==433); +#line 438 "sql.y" +{ yylhsminor.yy236 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } +#line 6025 "sql.c" + yymsp[0].minor.yy236 = yylhsminor.yy236; + break; + case 229: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 434: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==434); +#line 439 "sql.y" +{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } +#line 6032 "sql.c" + yymsp[-2].minor.yy236 = yylhsminor.yy236; + break; + case 232: /* rollup_func_name ::= function_name */ +#line 446 "sql.y" +{ yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[0].minor.yy889, NULL); } +#line 6038 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; + break; + case 233: /* rollup_func_name ::= FIRST */ + case 234: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==234); + case 292: /* tag_item ::= QTAGS */ yytestcase(yyruleno==292); +#line 447 "sql.y" +{ yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } +#line 6046 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; + break; + case 237: /* col_name ::= column_name */ + case 293: /* tag_item ::= column_name */ yytestcase(yyruleno==293); +#line 455 "sql.y" +{ yylhsminor.yy28 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy889); } +#line 6053 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; + break; + case 238: /* cmd ::= SHOW DNODES */ +#line 458 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } +#line 6059 "sql.c" break; - case 232: /* cmd ::= SHOW USERS */ + case 239: /* cmd ::= SHOW USERS */ +#line 459 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } +#line 6064 "sql.c" break; - case 233: /* cmd ::= SHOW USER PRIVILEGES */ + case 240: /* cmd ::= SHOW USER PRIVILEGES */ +#line 460 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } +#line 6069 "sql.c" break; - case 234: /* cmd ::= SHOW DATABASES */ + case 241: /* cmd ::= SHOW DATABASES */ +#line 461 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } +#line 6074 "sql.c" break; - case 235: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy952, yymsp[0].minor.yy952, OP_TYPE_LIKE); } + case 242: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +#line 462 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, OP_TYPE_LIKE); } +#line 6079 "sql.c" break; - case 236: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy952, yymsp[0].minor.yy952, OP_TYPE_LIKE); } + case 243: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +#line 463 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, OP_TYPE_LIKE); } +#line 6084 "sql.c" break; - case 237: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy952, NULL, OP_TYPE_LIKE); } + case 244: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +#line 464 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy28, NULL, OP_TYPE_LIKE); } +#line 6089 "sql.c" break; - case 238: /* cmd ::= SHOW MNODES */ + case 245: /* cmd ::= SHOW MNODES */ +#line 465 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } +#line 6094 "sql.c" break; - case 239: /* cmd ::= SHOW QNODES */ + case 246: /* cmd ::= SHOW QNODES */ +#line 467 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } +#line 6099 "sql.c" break; - case 240: /* cmd ::= SHOW FUNCTIONS */ + case 247: /* cmd ::= SHOW FUNCTIONS */ +#line 468 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } +#line 6104 "sql.c" break; - case 241: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy952, yymsp[-1].minor.yy952, OP_TYPE_EQUAL); } + case 248: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +#line 469 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy28, yymsp[-1].minor.yy28, OP_TYPE_EQUAL); } +#line 6109 "sql.c" break; - case 242: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy169), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169), OP_TYPE_EQUAL); } + case 249: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ +#line 470 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), OP_TYPE_EQUAL); } +#line 6114 "sql.c" break; - case 243: /* cmd ::= SHOW STREAMS */ + case 250: /* cmd ::= SHOW STREAMS */ +#line 471 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } +#line 6119 "sql.c" break; - case 244: /* cmd ::= SHOW ACCOUNTS */ + case 251: /* cmd ::= SHOW ACCOUNTS */ +#line 472 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } +#line 6124 "sql.c" break; - case 245: /* cmd ::= SHOW APPS */ + case 252: /* cmd ::= SHOW APPS */ +#line 473 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } +#line 6129 "sql.c" break; - case 246: /* cmd ::= SHOW CONNECTIONS */ + case 253: /* cmd ::= SHOW CONNECTIONS */ +#line 474 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } +#line 6134 "sql.c" break; - case 247: /* cmd ::= SHOW LICENCES */ - case 248: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==248); + case 254: /* cmd ::= SHOW LICENCES */ + case 255: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==255); +#line 475 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } +#line 6140 "sql.c" break; - case 249: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy169); } + case 256: /* cmd ::= SHOW CREATE DATABASE db_name */ +#line 477 "sql.y" +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy889); } +#line 6145 "sql.c" break; - case 250: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy952); } + case 257: /* cmd ::= SHOW CREATE TABLE full_table_name */ +#line 478 "sql.y" +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy28); } +#line 6150 "sql.c" break; - case 251: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy952); } + case 258: /* cmd ::= SHOW CREATE STABLE full_table_name */ +#line 479 "sql.y" +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy28); } +#line 6155 "sql.c" break; - case 252: /* cmd ::= SHOW QUERIES */ + case 259: /* cmd ::= SHOW QUERIES */ +#line 480 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } +#line 6160 "sql.c" break; - case 253: /* cmd ::= SHOW SCORES */ + case 260: /* cmd ::= SHOW SCORES */ +#line 481 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } +#line 6165 "sql.c" break; - case 254: /* cmd ::= SHOW TOPICS */ + case 261: /* cmd ::= SHOW TOPICS */ +#line 482 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } +#line 6170 "sql.c" break; - case 255: /* cmd ::= SHOW VARIABLES */ - case 256: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==256); + case 262: /* cmd ::= SHOW VARIABLES */ + case 263: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==263); +#line 483 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } +#line 6176 "sql.c" break; - case 257: /* cmd ::= SHOW LOCAL VARIABLES */ + case 264: /* cmd ::= SHOW LOCAL VARIABLES */ +#line 485 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } +#line 6181 "sql.c" break; - case 258: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy952); } + case 265: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ +#line 486 "sql.y" +{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy28); } +#line 6186 "sql.c" break; - case 259: /* cmd ::= SHOW BNODES */ + case 266: /* cmd ::= SHOW BNODES */ +#line 487 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } +#line 6191 "sql.c" break; - case 260: /* cmd ::= SHOW SNODES */ + case 267: /* cmd ::= SHOW SNODES */ +#line 488 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } +#line 6196 "sql.c" break; - case 261: /* cmd ::= SHOW CLUSTER */ + case 268: /* cmd ::= SHOW CLUSTER */ +#line 489 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } +#line 6201 "sql.c" break; - case 262: /* cmd ::= SHOW TRANSACTIONS */ + case 269: /* cmd ::= SHOW TRANSACTIONS */ +#line 490 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } +#line 6206 "sql.c" break; - case 263: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy952); } + case 270: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ +#line 491 "sql.y" +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy28); } +#line 6211 "sql.c" break; - case 264: /* cmd ::= SHOW CONSUMERS */ + case 271: /* cmd ::= SHOW CONSUMERS */ +#line 492 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } +#line 6216 "sql.c" break; - case 265: /* cmd ::= SHOW SUBSCRIPTIONS */ + case 272: /* cmd ::= SHOW SUBSCRIPTIONS */ +#line 493 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } +#line 6221 "sql.c" break; - case 266: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy952, yymsp[-1].minor.yy952, OP_TYPE_EQUAL); } + case 273: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ +#line 494 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy28, yymsp[-1].minor.yy28, OP_TYPE_EQUAL); } +#line 6226 "sql.c" break; - case 267: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy169), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169), OP_TYPE_EQUAL); } + case 274: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ +#line 495 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), OP_TYPE_EQUAL); } +#line 6231 "sql.c" break; - case 268: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy952, yymsp[0].minor.yy952, yymsp[-3].minor.yy824); } + case 275: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ +#line 496 "sql.y" +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28, yymsp[-3].minor.yy236); } +#line 6236 "sql.c" break; - case 269: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy169), yymsp[-4].minor.yy824); } + case 276: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ +#line 497 "sql.y" +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy889), yymsp[-4].minor.yy236); } +#line 6241 "sql.c" break; - case 270: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + case 277: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ +#line 498 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } +#line 6246 "sql.c" break; - case 271: /* cmd ::= SHOW VNODES */ + case 278: /* cmd ::= SHOW VNODES */ +#line 499 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } +#line 6251 "sql.c" break; - case 272: /* cmd ::= SHOW db_name_cond_opt ALIVE */ -{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy952, QUERY_NODE_SHOW_DB_ALIVE_STMT); } + case 279: /* cmd ::= SHOW db_name_cond_opt ALIVE */ +#line 501 "sql.y" +{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy28, QUERY_NODE_SHOW_DB_ALIVE_STMT); } +#line 6256 "sql.c" break; - case 273: /* cmd ::= SHOW CLUSTER ALIVE */ + case 280: /* cmd ::= SHOW CLUSTER ALIVE */ +#line 502 "sql.y" { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } +#line 6261 "sql.c" break; - case 274: /* db_name_cond_opt ::= */ - case 279: /* from_db_opt ::= */ yytestcase(yyruleno==279); -{ yymsp[1].minor.yy952 = createDefaultDatabaseCondValue(pCxt); } + case 281: /* db_name_cond_opt ::= */ + case 286: /* from_db_opt ::= */ yytestcase(yyruleno==286); +#line 504 "sql.y" +{ yymsp[1].minor.yy28 = createDefaultDatabaseCondValue(pCxt); } +#line 6267 "sql.c" break; - case 275: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy952 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy169); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; + case 282: /* db_name_cond_opt ::= db_name NK_DOT */ +#line 505 "sql.y" +{ yylhsminor.yy28 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy889); } +#line 6272 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 277: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 284: /* like_pattern_opt ::= LIKE NK_STRING */ +#line 508 "sql.y" +{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +#line 6278 "sql.c" break; - case 278: /* table_name_cond ::= table_name */ -{ yylhsminor.yy952 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 285: /* table_name_cond ::= table_name */ +#line 510 "sql.y" +{ yylhsminor.yy28 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889); } +#line 6283 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 280: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy952 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy169); } + case 287: /* from_db_opt ::= FROM db_name */ +#line 513 "sql.y" +{ yymsp[-1].minor.yy28 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy889); } +#line 6289 "sql.c" break; - case 284: /* tag_item ::= TBNAME */ -{ yylhsminor.yy952 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 291: /* tag_item ::= TBNAME */ +#line 521 "sql.y" +{ yylhsminor.yy28 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } +#line 6294 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 287: /* tag_item ::= column_name column_alias */ -{ yylhsminor.yy952 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy169), &yymsp[0].minor.yy169); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; + case 294: /* tag_item ::= column_name column_alias */ +#line 524 "sql.y" +{ yylhsminor.yy28 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy889), &yymsp[0].minor.yy889); } +#line 6300 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 288: /* tag_item ::= column_name AS column_alias */ -{ yylhsminor.yy952 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy169), &yymsp[0].minor.yy169); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 295: /* tag_item ::= column_name AS column_alias */ +#line 525 "sql.y" +{ yylhsminor.yy28 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy889), &yymsp[0].minor.yy889); } +#line 6306 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 289: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy957, yymsp[-3].minor.yy952, yymsp[-1].minor.yy952, NULL, yymsp[0].minor.yy952); } + case 296: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ +#line 529 "sql.y" +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy793, yymsp[-3].minor.yy28, yymsp[-1].minor.yy28, NULL, yymsp[0].minor.yy28); } +#line 6312 "sql.c" break; - case 290: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy957, yymsp[-5].minor.yy952, yymsp[-3].minor.yy952, yymsp[-1].minor.yy824, NULL); } + case 297: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ +#line 531 "sql.y" +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy793, yymsp[-5].minor.yy28, yymsp[-3].minor.yy28, yymsp[-1].minor.yy236, NULL); } +#line 6317 "sql.c" break; - case 291: /* cmd ::= DROP INDEX exists_opt full_index_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy957, yymsp[0].minor.yy952); } + case 298: /* cmd ::= DROP INDEX exists_opt full_index_name */ +#line 532 "sql.y" +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy793, yymsp[0].minor.yy28); } +#line 6322 "sql.c" break; - case 292: /* full_index_name ::= index_name */ -{ yylhsminor.yy952 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy169); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 299: /* full_index_name ::= index_name */ +#line 534 "sql.y" +{ yylhsminor.yy28 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy889); } +#line 6327 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 293: /* full_index_name ::= db_name NK_DOT index_name */ -{ yylhsminor.yy952 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 300: /* full_index_name ::= db_name NK_DOT index_name */ +#line 535 "sql.y" +{ yylhsminor.yy28 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889); } +#line 6333 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 294: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-9].minor.yy952 = createIndexOption(pCxt, yymsp[-7].minor.yy824, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), NULL, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); } + case 301: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ +#line 538 "sql.y" +{ yymsp[-9].minor.yy28 = createIndexOption(pCxt, yymsp[-7].minor.yy236, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +#line 6339 "sql.c" break; - case 295: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-11].minor.yy952 = createIndexOption(pCxt, yymsp[-9].minor.yy824, releaseRawExprNode(pCxt, yymsp[-5].minor.yy952), releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), yymsp[-1].minor.yy952, yymsp[0].minor.yy952); } + case 302: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ +#line 541 "sql.y" +{ yymsp[-11].minor.yy28 = createIndexOption(pCxt, yymsp[-9].minor.yy236, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +#line 6344 "sql.c" break; - case 298: /* func ::= sma_func_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy952 = createFunctionNode(pCxt, &yymsp[-3].minor.yy169, yymsp[-1].minor.yy824); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; + case 305: /* func ::= sma_func_name NK_LP expression_list NK_RP */ +#line 548 "sql.y" +{ yylhsminor.yy28 = createFunctionNode(pCxt, &yymsp[-3].minor.yy889, yymsp[-1].minor.yy236); } +#line 6349 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 299: /* sma_func_name ::= function_name */ - case 513: /* alias_opt ::= table_alias */ yytestcase(yyruleno==513); -{ yylhsminor.yy169 = yymsp[0].minor.yy169; } - yymsp[0].minor.yy169 = yylhsminor.yy169; + case 306: /* sma_func_name ::= function_name */ + case 520: /* alias_opt ::= table_alias */ yytestcase(yyruleno==520); +#line 552 "sql.y" +{ yylhsminor.yy889 = yymsp[0].minor.yy889; } +#line 6356 "sql.c" + yymsp[0].minor.yy889 = yylhsminor.yy889; break; - case 304: /* sma_stream_opt ::= */ - case 345: /* stream_options ::= */ yytestcase(yyruleno==345); -{ yymsp[1].minor.yy952 = createStreamOptions(pCxt); } + case 311: /* sma_stream_opt ::= */ + case 352: /* stream_options ::= */ yytestcase(yyruleno==352); +#line 558 "sql.y" +{ yymsp[1].minor.yy28 = createStreamOptions(pCxt); } +#line 6363 "sql.c" break; - case 305: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy952)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); yylhsminor.yy952 = yymsp[-2].minor.yy952; } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 312: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ +#line 559 "sql.y" +{ ((SStreamOptions*)yymsp[-2].minor.yy28)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; } +#line 6368 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 306: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy952)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); yylhsminor.yy952 = yymsp[-2].minor.yy952; } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 313: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ +#line 560 "sql.y" +{ ((SStreamOptions*)yymsp[-2].minor.yy28)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; } +#line 6374 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 307: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy952)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); yylhsminor.yy952 = yymsp[-2].minor.yy952; } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 314: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ +#line 561 "sql.y" +{ ((SStreamOptions*)yymsp[-2].minor.yy28)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); yylhsminor.yy28 = yymsp[-2].minor.yy28; } +#line 6380 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 308: /* with_meta ::= AS */ -{ yymsp[0].minor.yy480 = 0; } + case 315: /* with_meta ::= AS */ +#line 566 "sql.y" +{ yymsp[0].minor.yy956 = 0; } +#line 6386 "sql.c" break; - case 309: /* with_meta ::= WITH META AS */ -{ yymsp[-2].minor.yy480 = 1; } + case 316: /* with_meta ::= WITH META AS */ +#line 567 "sql.y" +{ yymsp[-2].minor.yy956 = 1; } +#line 6391 "sql.c" break; - case 310: /* with_meta ::= ONLY META AS */ -{ yymsp[-2].minor.yy480 = 2; } + case 317: /* with_meta ::= ONLY META AS */ +#line 568 "sql.y" +{ yymsp[-2].minor.yy956 = 2; } +#line 6396 "sql.c" break; - case 311: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy957, &yymsp[-2].minor.yy169, yymsp[0].minor.yy952); } + case 318: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ +#line 570 "sql.y" +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy793, &yymsp[-2].minor.yy889, yymsp[0].minor.yy28); } +#line 6401 "sql.c" break; - case 312: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy957, &yymsp[-3].minor.yy169, &yymsp[0].minor.yy169, yymsp[-2].minor.yy480); } + case 319: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ +#line 572 "sql.y" +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy793, &yymsp[-3].minor.yy889, &yymsp[0].minor.yy889, yymsp[-2].minor.yy956); } +#line 6406 "sql.c" break; - case 313: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy957, &yymsp[-4].minor.yy169, yymsp[-1].minor.yy952, yymsp[-3].minor.yy480, yymsp[0].minor.yy952); } + case 320: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ +#line 574 "sql.y" +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy793, &yymsp[-4].minor.yy889, yymsp[-1].minor.yy28, yymsp[-3].minor.yy956, yymsp[0].minor.yy28); } +#line 6411 "sql.c" break; - case 314: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); } + case 321: /* cmd ::= DROP TOPIC exists_opt topic_name */ +#line 576 "sql.y" +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +#line 6416 "sql.c" break; - case 315: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy957, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169); } + case 322: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ +#line 577 "sql.y" +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy793, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889); } +#line 6421 "sql.c" break; - case 316: /* cmd ::= DESC full_table_name */ - case 317: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==317); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy952); } + case 323: /* cmd ::= DESC full_table_name */ + case 324: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==324); +#line 580 "sql.y" +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy28); } +#line 6427 "sql.c" break; - case 318: /* cmd ::= RESET QUERY CACHE */ + case 325: /* cmd ::= RESET QUERY CACHE */ +#line 584 "sql.y" { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } +#line 6432 "sql.c" break; - case 319: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - case 320: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==320); -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy957, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); } + case 326: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + case 327: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==327); +#line 587 "sql.y" +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy793, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +#line 6438 "sql.c" break; - case 323: /* explain_options ::= */ -{ yymsp[1].minor.yy952 = createDefaultExplainOptions(pCxt); } + case 330: /* explain_options ::= */ +#line 595 "sql.y" +{ yymsp[1].minor.yy28 = createDefaultExplainOptions(pCxt); } +#line 6443 "sql.c" break; - case 324: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy952 = setExplainVerbose(pCxt, yymsp[-2].minor.yy952, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 331: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +#line 596 "sql.y" +{ yylhsminor.yy28 = setExplainVerbose(pCxt, yymsp[-2].minor.yy28, &yymsp[0].minor.yy0); } +#line 6448 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 325: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy952 = setExplainRatio(pCxt, yymsp[-2].minor.yy952, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 332: /* explain_options ::= explain_options RATIO NK_FLOAT */ +#line 597 "sql.y" +{ yylhsminor.yy28 = setExplainRatio(pCxt, yymsp[-2].minor.yy28, &yymsp[0].minor.yy0); } +#line 6454 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 326: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy957, yymsp[-9].minor.yy957, &yymsp[-6].minor.yy169, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy84, yymsp[-1].minor.yy480, &yymsp[0].minor.yy169, yymsp[-10].minor.yy957); } + case 333: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ +#line 602 "sql.y" +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy793, yymsp[-9].minor.yy793, &yymsp[-6].minor.yy889, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy32, yymsp[-1].minor.yy956, &yymsp[0].minor.yy889, yymsp[-10].minor.yy793); } +#line 6460 "sql.c" break; - case 327: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); } + case 334: /* cmd ::= DROP FUNCTION exists_opt function_name */ +#line 603 "sql.y" +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +#line 6465 "sql.c" break; - case 332: /* language_opt ::= */ -{ yymsp[1].minor.yy169 = nil_token; } + case 339: /* language_opt ::= */ +#line 617 "sql.y" +{ yymsp[1].minor.yy889 = nil_token; } +#line 6470 "sql.c" break; - case 333: /* language_opt ::= LANGUAGE NK_STRING */ -{ yymsp[-1].minor.yy169 = yymsp[0].minor.yy0; } + case 340: /* language_opt ::= LANGUAGE NK_STRING */ +#line 618 "sql.y" +{ yymsp[-1].minor.yy889 = yymsp[0].minor.yy0; } +#line 6475 "sql.c" break; - case 336: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ -{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy957, &yymsp[-8].minor.yy169, yymsp[-5].minor.yy952, yymsp[-7].minor.yy952, yymsp[-3].minor.yy824, yymsp[-2].minor.yy952, yymsp[0].minor.yy952, yymsp[-4].minor.yy824); } + case 343: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ +#line 628 "sql.y" +{ pCxt->pRootNode = createCreateStreamStmt(pCxt, yymsp[-9].minor.yy793, &yymsp[-8].minor.yy889, yymsp[-5].minor.yy28, yymsp[-7].minor.yy28, yymsp[-3].minor.yy236, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, yymsp[-4].minor.yy236); } +#line 6480 "sql.c" break; - case 337: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); } + case 344: /* cmd ::= DROP STREAM exists_opt stream_name */ +#line 629 "sql.y" +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +#line 6485 "sql.c" break; - case 338: /* cmd ::= PAUSE STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); } + case 345: /* cmd ::= PAUSE STREAM exists_opt stream_name */ +#line 630 "sql.y" +{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +#line 6490 "sql.c" break; - case 339: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ -{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy957, yymsp[-1].minor.yy957, &yymsp[0].minor.yy169); } + case 346: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ +#line 631 "sql.y" +{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy793, yymsp[-1].minor.yy793, &yymsp[0].minor.yy889); } +#line 6495 "sql.c" break; - case 346: /* stream_options ::= stream_options TRIGGER AT_ONCE */ - case 347: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==347); -{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-2].minor.yy952, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 353: /* stream_options ::= stream_options TRIGGER AT_ONCE */ + case 354: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==354); +#line 645 "sql.y" +{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } +#line 6501 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 348: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-3].minor.yy952, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; + case 355: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ +#line 647 "sql.y" +{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } +#line 6507 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 349: /* stream_options ::= stream_options WATERMARK duration_literal */ -{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-2].minor.yy952, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 356: /* stream_options ::= stream_options WATERMARK duration_literal */ +#line 648 "sql.y" +{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } +#line 6513 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 350: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-3].minor.yy952, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; + case 357: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ +#line 649 "sql.y" +{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } +#line 6519 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 351: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-2].minor.yy952, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 358: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ +#line 650 "sql.y" +{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } +#line 6525 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 352: /* stream_options ::= stream_options DELETE_MARK duration_literal */ -{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-2].minor.yy952, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 359: /* stream_options ::= stream_options DELETE_MARK duration_literal */ +#line 651 "sql.y" +{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-2].minor.yy28, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } +#line 6531 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 353: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ -{ yylhsminor.yy952 = setStreamOptions(pCxt, yymsp[-3].minor.yy952, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; + case 360: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ +#line 652 "sql.y" +{ yylhsminor.yy28 = setStreamOptions(pCxt, yymsp[-3].minor.yy28, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } +#line 6537 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 355: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - case 551: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==551); - case 572: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==572); -{ yymsp[-3].minor.yy952 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy952); } + case 362: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + case 558: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==558); + case 579: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==579); +#line 655 "sql.y" +{ yymsp[-3].minor.yy28 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy28); } +#line 6545 "sql.c" break; - case 358: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 365: /* cmd ::= KILL CONNECTION NK_INTEGER */ +#line 663 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } +#line 6550 "sql.c" break; - case 359: /* cmd ::= KILL QUERY NK_STRING */ + case 366: /* cmd ::= KILL QUERY NK_STRING */ +#line 664 "sql.y" { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } +#line 6555 "sql.c" break; - case 360: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 367: /* cmd ::= KILL TRANSACTION NK_INTEGER */ +#line 665 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } +#line 6560 "sql.c" break; - case 361: /* cmd ::= BALANCE VGROUP */ + case 368: /* cmd ::= BALANCE VGROUP */ +#line 668 "sql.y" { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } +#line 6565 "sql.c" break; - case 362: /* cmd ::= BALANCE VGROUP LEADER */ + case 369: /* cmd ::= BALANCE VGROUP LEADER */ +#line 669 "sql.y" { pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt); } +#line 6570 "sql.c" break; - case 363: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 370: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ +#line 670 "sql.y" { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 6575 "sql.c" break; - case 364: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy824); } + case 371: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +#line 671 "sql.y" +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy236); } +#line 6580 "sql.c" break; - case 365: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 372: /* cmd ::= SPLIT VGROUP NK_INTEGER */ +#line 672 "sql.y" { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } +#line 6585 "sql.c" break; - case 366: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy824 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + case 373: /* dnode_list ::= DNODE NK_INTEGER */ +#line 676 "sql.y" +{ yymsp[-1].minor.yy236 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 6590 "sql.c" break; - case 368: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); } + case 375: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ +#line 683 "sql.y" +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +#line 6595 "sql.c" break; - case 371: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -{ yymsp[-6].minor.yy952 = createInsertStmt(pCxt, yymsp[-4].minor.yy952, yymsp[-2].minor.yy824, yymsp[0].minor.yy952); } + case 378: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ +#line 692 "sql.y" +{ yymsp[-6].minor.yy28 = createInsertStmt(pCxt, yymsp[-4].minor.yy28, yymsp[-2].minor.yy236, yymsp[0].minor.yy28); } +#line 6600 "sql.c" break; - case 372: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ -{ yymsp[-3].minor.yy952 = createInsertStmt(pCxt, yymsp[-1].minor.yy952, NULL, yymsp[0].minor.yy952); } + case 379: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ +#line 693 "sql.y" +{ yymsp[-3].minor.yy28 = createInsertStmt(pCxt, yymsp[-1].minor.yy28, NULL, yymsp[0].minor.yy28); } +#line 6605 "sql.c" break; - case 373: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 380: /* literal ::= NK_INTEGER */ +#line 696 "sql.y" +{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } +#line 6610 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 374: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 381: /* literal ::= NK_FLOAT */ +#line 697 "sql.y" +{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } +#line 6616 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 375: /* literal ::= NK_STRING */ -{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 382: /* literal ::= NK_STRING */ +#line 698 "sql.y" +{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } +#line 6622 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 376: /* literal ::= NK_BOOL */ -{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 383: /* literal ::= NK_BOOL */ +#line 699 "sql.y" +{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } +#line 6628 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 377: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; + case 384: /* literal ::= TIMESTAMP NK_STRING */ +#line 700 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } +#line 6634 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 378: /* literal ::= duration_literal */ - case 388: /* signed_literal ::= signed */ yytestcase(yyruleno==388); - case 409: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==409); - case 410: /* expression ::= literal */ yytestcase(yyruleno==410); - case 411: /* expression ::= pseudo_column */ yytestcase(yyruleno==411); - case 412: /* expression ::= column_reference */ yytestcase(yyruleno==412); - case 413: /* expression ::= function_expression */ yytestcase(yyruleno==413); - case 414: /* expression ::= case_when_expression */ yytestcase(yyruleno==414); - case 445: /* function_expression ::= literal_func */ yytestcase(yyruleno==445); - case 494: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==494); - case 498: /* boolean_primary ::= predicate */ yytestcase(yyruleno==498); - case 500: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==500); - case 501: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==501); - case 504: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==504); - case 506: /* table_reference ::= table_primary */ yytestcase(yyruleno==506); - case 507: /* table_reference ::= joined_table */ yytestcase(yyruleno==507); - case 511: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==511); - case 574: /* query_simple ::= query_specification */ yytestcase(yyruleno==574); - case 575: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==575); - case 578: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==578); - case 580: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==580); -{ yylhsminor.yy952 = yymsp[0].minor.yy952; } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 385: /* literal ::= duration_literal */ + case 395: /* signed_literal ::= signed */ yytestcase(yyruleno==395); + case 416: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==416); + case 417: /* expression ::= literal */ yytestcase(yyruleno==417); + case 418: /* expression ::= pseudo_column */ yytestcase(yyruleno==418); + case 419: /* expression ::= column_reference */ yytestcase(yyruleno==419); + case 420: /* expression ::= function_expression */ yytestcase(yyruleno==420); + case 421: /* expression ::= case_when_expression */ yytestcase(yyruleno==421); + case 452: /* function_expression ::= literal_func */ yytestcase(yyruleno==452); + case 501: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==501); + case 505: /* boolean_primary ::= predicate */ yytestcase(yyruleno==505); + case 507: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==507); + case 508: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==508); + case 511: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==511); + case 513: /* table_reference ::= table_primary */ yytestcase(yyruleno==513); + case 514: /* table_reference ::= joined_table */ yytestcase(yyruleno==514); + case 518: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==518); + case 581: /* query_simple ::= query_specification */ yytestcase(yyruleno==581); + case 582: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==582); + case 585: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==585); + case 587: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==587); +#line 701 "sql.y" +{ yylhsminor.yy28 = yymsp[0].minor.yy28; } +#line 6660 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 379: /* literal ::= NULL */ -{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 386: /* literal ::= NULL */ +#line 702 "sql.y" +{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } +#line 6666 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 380: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 387: /* literal ::= NK_QUESTION */ +#line 703 "sql.y" +{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 6672 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 381: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 388: /* duration_literal ::= NK_VARIABLE */ +#line 705 "sql.y" +{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 6678 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 382: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 389: /* signed ::= NK_INTEGER */ +#line 707 "sql.y" +{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } +#line 6684 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 383: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } + case 390: /* signed ::= NK_PLUS NK_INTEGER */ +#line 708 "sql.y" +{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } +#line 6690 "sql.c" break; - case 384: /* signed ::= NK_MINUS NK_INTEGER */ + case 391: /* signed ::= NK_MINUS NK_INTEGER */ +#line 709 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; +#line 6699 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 385: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 392: /* signed ::= NK_FLOAT */ +#line 714 "sql.y" +{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +#line 6705 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 386: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 393: /* signed ::= NK_PLUS NK_FLOAT */ +#line 715 "sql.y" +{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +#line 6711 "sql.c" break; - case 387: /* signed ::= NK_MINUS NK_FLOAT */ + case 394: /* signed ::= NK_MINUS NK_FLOAT */ +#line 716 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; +#line 6720 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 389: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 396: /* signed_literal ::= NK_STRING */ +#line 723 "sql.y" +{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +#line 6726 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 390: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 397: /* signed_literal ::= NK_BOOL */ +#line 724 "sql.y" +{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } +#line 6732 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 391: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 398: /* signed_literal ::= TIMESTAMP NK_STRING */ +#line 725 "sql.y" +{ yymsp[-1].minor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 6738 "sql.c" break; - case 392: /* signed_literal ::= duration_literal */ - case 394: /* signed_literal ::= literal_func */ yytestcase(yyruleno==394); - case 465: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==465); - case 531: /* select_item ::= common_expression */ yytestcase(yyruleno==531); - case 541: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==541); - case 579: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==579); - case 581: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==581); - case 594: /* search_condition ::= common_expression */ yytestcase(yyruleno==594); -{ yylhsminor.yy952 = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 399: /* signed_literal ::= duration_literal */ + case 401: /* signed_literal ::= literal_func */ yytestcase(yyruleno==401); + case 472: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==472); + case 538: /* select_item ::= common_expression */ yytestcase(yyruleno==538); + case 548: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==548); + case 586: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==586); + case 588: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==588); + case 601: /* search_condition ::= common_expression */ yytestcase(yyruleno==601); +#line 726 "sql.y" +{ yylhsminor.yy28 = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); } +#line 6750 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 393: /* signed_literal ::= NULL */ -{ yylhsminor.yy952 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 400: /* signed_literal ::= NULL */ +#line 727 "sql.y" +{ yylhsminor.yy28 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } +#line 6756 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 395: /* signed_literal ::= NK_QUESTION */ -{ yylhsminor.yy952 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 402: /* signed_literal ::= NK_QUESTION */ +#line 729 "sql.y" +{ yylhsminor.yy28 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } +#line 6762 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 415: /* expression ::= NK_LP expression NK_RP */ - case 499: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==499); - case 593: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==593); -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 422: /* expression ::= NK_LP expression NK_RP */ + case 506: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==506); + case 600: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==600); +#line 790 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } +#line 6770 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 416: /* expression ::= NK_PLUS expr_or_subquery */ + case 423: /* expression ::= NK_PLUS expr_or_subquery */ +#line 791 "sql.y" { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; +#line 6779 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 417: /* expression ::= NK_MINUS expr_or_subquery */ + case 424: /* expression ::= NK_MINUS expr_or_subquery */ +#line 795 "sql.y" { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy952), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy28), NULL)); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; +#line 6788 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 418: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + case 425: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ +#line 799 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6798 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 419: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + case 426: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ +#line 804 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6808 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 420: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + case 427: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ +#line 809 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6818 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 421: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + case 428: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ +#line 814 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6828 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 422: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ + case 429: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ +#line 819 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6838 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 423: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 430: /* expression ::= column_reference NK_ARROW NK_STRING */ +#line 824 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6847 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 424: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + case 431: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ +#line 828 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6857 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 425: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + case 432: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ +#line 833 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6867 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 428: /* column_reference ::= column_name */ -{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy169, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy169)); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 435: /* column_reference ::= column_name */ +#line 844 "sql.y" +{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy889, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy889)); } +#line 6873 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 429: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169, createColumnNode(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy169)); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 436: /* column_reference ::= table_name NK_DOT column_name */ +#line 845 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889, createColumnNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy889)); } +#line 6879 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 430: /* pseudo_column ::= ROWTS */ - case 431: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==431); - case 433: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==433); - case 434: /* pseudo_column ::= QEND */ yytestcase(yyruleno==434); - case 435: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==435); - case 436: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==436); - case 437: /* pseudo_column ::= WEND */ yytestcase(yyruleno==437); - case 438: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==438); - case 439: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==439); - case 440: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==440); - case 441: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==441); - case 447: /* literal_func ::= NOW */ yytestcase(yyruleno==447); -{ yylhsminor.yy952 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 437: /* pseudo_column ::= ROWTS */ + case 438: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==438); + case 440: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==440); + case 441: /* pseudo_column ::= QEND */ yytestcase(yyruleno==441); + case 442: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==442); + case 443: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==443); + case 444: /* pseudo_column ::= WEND */ yytestcase(yyruleno==444); + case 445: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==445); + case 446: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==446); + case 447: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==447); + case 448: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==448); + case 454: /* literal_func ::= NOW */ yytestcase(yyruleno==454); +#line 847 "sql.y" +{ yylhsminor.yy28 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } +#line 6896 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 432: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy169)))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 439: /* pseudo_column ::= table_name NK_DOT TBNAME */ +#line 849 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy889)))); } +#line 6902 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 442: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 443: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==443); -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy169, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy169, yymsp[-1].minor.yy824)); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; + case 449: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 450: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==450); +#line 860 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy889, yymsp[-1].minor.yy236)); } +#line 6909 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 444: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), yymsp[-1].minor.yy84)); } - yymsp[-5].minor.yy952 = yylhsminor.yy952; + case 451: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ +#line 863 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy32)); } +#line 6915 "sql.c" + yymsp[-5].minor.yy28 = yylhsminor.yy28; break; - case 446: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy169, NULL)); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 453: /* literal_func ::= noarg_func NK_LP NK_RP */ +#line 866 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy889, NULL)); } +#line 6921 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 461: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy824 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy824 = yylhsminor.yy824; + case 468: /* star_func_para_list ::= NK_STAR */ +#line 890 "sql.y" +{ yylhsminor.yy236 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } +#line 6927 "sql.c" + yymsp[0].minor.yy236 = yylhsminor.yy236; break; - case 466: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 534: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==534); -{ yylhsminor.yy952 = createColumnNode(pCxt, &yymsp[-2].minor.yy169, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 473: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 541: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==541); +#line 899 "sql.y" +{ yylhsminor.yy28 = createColumnNode(pCxt, &yymsp[-2].minor.yy889, &yymsp[0].minor.yy0); } +#line 6934 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 467: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy824, yymsp[-1].minor.yy952)); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; + case 474: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ +#line 902 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy236, yymsp[-1].minor.yy28)); } +#line 6940 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 468: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), yymsp[-2].minor.yy824, yymsp[-1].minor.yy952)); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; + case 475: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ +#line 904 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-2].minor.yy236, yymsp[-1].minor.yy28)); } +#line 6946 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; break; - case 471: /* when_then_expr ::= WHEN common_expression THEN common_expression */ -{ yymsp[-3].minor.yy952 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952)); } + case 478: /* when_then_expr ::= WHEN common_expression THEN common_expression */ +#line 911 "sql.y" +{ yymsp[-3].minor.yy28 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28)); } +#line 6952 "sql.c" break; - case 473: /* case_when_else_opt ::= ELSE common_expression */ -{ yymsp[-1].minor.yy952 = releaseRawExprNode(pCxt, yymsp[0].minor.yy952); } + case 480: /* case_when_else_opt ::= ELSE common_expression */ +#line 914 "sql.y" +{ yymsp[-1].minor.yy28 = releaseRawExprNode(pCxt, yymsp[0].minor.yy28); } +#line 6957 "sql.c" break; - case 474: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ - case 479: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==479); + case 481: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ + case 486: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==486); +#line 917 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy520, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy896, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6967 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 475: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + case 482: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ +#line 924 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy952), releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy28), releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-4].minor.yy952 = yylhsminor.yy952; +#line 6977 "sql.c" + yymsp[-4].minor.yy28 = yylhsminor.yy28; break; - case 476: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + case 483: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ +#line 930 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy952), releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-5].minor.yy952 = yylhsminor.yy952; +#line 6987 "sql.c" + yymsp[-5].minor.yy28 = yylhsminor.yy28; break; - case 477: /* predicate ::= expr_or_subquery IS NULL */ + case 484: /* predicate ::= expr_or_subquery IS NULL */ +#line 935 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), NULL)); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 6996 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 478: /* predicate ::= expr_or_subquery IS NOT NULL */ + case 485: /* predicate ::= expr_or_subquery IS NOT NULL */ +#line 939 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL)); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; +#line 7005 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 480: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy520 = OP_TYPE_LOWER_THAN; } + case 487: /* compare_op ::= NK_LT */ +#line 951 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_LOWER_THAN; } +#line 7011 "sql.c" break; - case 481: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy520 = OP_TYPE_GREATER_THAN; } + case 488: /* compare_op ::= NK_GT */ +#line 952 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_GREATER_THAN; } +#line 7016 "sql.c" break; - case 482: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy520 = OP_TYPE_LOWER_EQUAL; } + case 489: /* compare_op ::= NK_LE */ +#line 953 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_LOWER_EQUAL; } +#line 7021 "sql.c" break; - case 483: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy520 = OP_TYPE_GREATER_EQUAL; } + case 490: /* compare_op ::= NK_GE */ +#line 954 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_GREATER_EQUAL; } +#line 7026 "sql.c" break; - case 484: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy520 = OP_TYPE_NOT_EQUAL; } + case 491: /* compare_op ::= NK_NE */ +#line 955 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_NOT_EQUAL; } +#line 7031 "sql.c" break; - case 485: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy520 = OP_TYPE_EQUAL; } + case 492: /* compare_op ::= NK_EQ */ +#line 956 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_EQUAL; } +#line 7036 "sql.c" break; - case 486: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy520 = OP_TYPE_LIKE; } + case 493: /* compare_op ::= LIKE */ +#line 957 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_LIKE; } +#line 7041 "sql.c" break; - case 487: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy520 = OP_TYPE_NOT_LIKE; } + case 494: /* compare_op ::= NOT LIKE */ +#line 958 "sql.y" +{ yymsp[-1].minor.yy896 = OP_TYPE_NOT_LIKE; } +#line 7046 "sql.c" break; - case 488: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy520 = OP_TYPE_MATCH; } + case 495: /* compare_op ::= MATCH */ +#line 959 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_MATCH; } +#line 7051 "sql.c" break; - case 489: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy520 = OP_TYPE_NMATCH; } + case 496: /* compare_op ::= NMATCH */ +#line 960 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_NMATCH; } +#line 7056 "sql.c" break; - case 490: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy520 = OP_TYPE_JSON_CONTAINS; } + case 497: /* compare_op ::= CONTAINS */ +#line 961 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_JSON_CONTAINS; } +#line 7061 "sql.c" break; - case 491: /* in_op ::= IN */ -{ yymsp[0].minor.yy520 = OP_TYPE_IN; } + case 498: /* in_op ::= IN */ +#line 965 "sql.y" +{ yymsp[0].minor.yy896 = OP_TYPE_IN; } +#line 7066 "sql.c" break; - case 492: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy520 = OP_TYPE_NOT_IN; } + case 499: /* in_op ::= NOT IN */ +#line 966 "sql.y" +{ yymsp[-1].minor.yy896 = OP_TYPE_NOT_IN; } +#line 7071 "sql.c" break; - case 493: /* in_predicate_value ::= NK_LP literal_list NK_RP */ -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy824)); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 500: /* in_predicate_value ::= NK_LP literal_list NK_RP */ +#line 968 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); } +#line 7076 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 495: /* boolean_value_expression ::= NOT boolean_primary */ + case 502: /* boolean_value_expression ::= NOT boolean_primary */ +#line 972 "sql.y" { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy952), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy28), NULL)); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; +#line 7085 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 496: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 503: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ +#line 977 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 7095 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 497: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 504: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ +#line 983 "sql.y" { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy952); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy952); - yylhsminor.yy952 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy28); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy28); + yylhsminor.yy28 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; +#line 7105 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 505: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy952 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy952, yymsp[0].minor.yy952, NULL); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 512: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +#line 1001 "sql.y" +{ yylhsminor.yy28 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy28, yymsp[0].minor.yy28, NULL); } +#line 7111 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 508: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy952 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy169, &yymsp[0].minor.yy169); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; + case 515: /* table_primary ::= table_name alias_opt */ +#line 1007 "sql.y" +{ yylhsminor.yy28 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } +#line 7117 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 509: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy952 = createRealTableNode(pCxt, &yymsp[-3].minor.yy169, &yymsp[-1].minor.yy169, &yymsp[0].minor.yy169); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; + case 516: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +#line 1008 "sql.y" +{ yylhsminor.yy28 = createRealTableNode(pCxt, &yymsp[-3].minor.yy889, &yymsp[-1].minor.yy889, &yymsp[0].minor.yy889); } +#line 7123 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 510: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy952 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952), &yymsp[0].minor.yy169); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; + case 517: /* table_primary ::= subquery alias_opt */ +#line 1009 "sql.y" +{ yylhsminor.yy28 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28), &yymsp[0].minor.yy889); } +#line 7129 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 512: /* alias_opt ::= */ -{ yymsp[1].minor.yy169 = nil_token; } + case 519: /* alias_opt ::= */ +#line 1014 "sql.y" +{ yymsp[1].minor.yy889 = nil_token; } +#line 7135 "sql.c" break; - case 514: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy169 = yymsp[0].minor.yy169; } + case 521: /* alias_opt ::= AS table_alias */ +#line 1016 "sql.y" +{ yymsp[-1].minor.yy889 = yymsp[0].minor.yy889; } +#line 7140 "sql.c" break; - case 515: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 516: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==516); -{ yymsp[-2].minor.yy952 = yymsp[-1].minor.yy952; } + case 522: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 523: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==523); +#line 1018 "sql.y" +{ yymsp[-2].minor.yy28 = yymsp[-1].minor.yy28; } +#line 7146 "sql.c" break; - case 517: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy952 = createJoinTableNode(pCxt, yymsp[-4].minor.yy932, yymsp[-5].minor.yy952, yymsp[-2].minor.yy952, yymsp[0].minor.yy952); } - yymsp[-5].minor.yy952 = yylhsminor.yy952; + case 524: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +#line 1023 "sql.y" +{ yylhsminor.yy28 = createJoinTableNode(pCxt, yymsp[-4].minor.yy152, yymsp[-5].minor.yy28, yymsp[-2].minor.yy28, yymsp[0].minor.yy28); } +#line 7151 "sql.c" + yymsp[-5].minor.yy28 = yylhsminor.yy28; break; - case 518: /* join_type ::= */ -{ yymsp[1].minor.yy932 = JOIN_TYPE_INNER; } + case 525: /* join_type ::= */ +#line 1027 "sql.y" +{ yymsp[1].minor.yy152 = JOIN_TYPE_INNER; } +#line 7157 "sql.c" break; - case 519: /* join_type ::= INNER */ -{ yymsp[0].minor.yy932 = JOIN_TYPE_INNER; } + case 526: /* join_type ::= INNER */ +#line 1028 "sql.y" +{ yymsp[0].minor.yy152 = JOIN_TYPE_INNER; } +#line 7162 "sql.c" break; - case 520: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 527: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ +#line 1034 "sql.y" { - yymsp[-13].minor.yy952 = createSelectStmt(pCxt, yymsp[-11].minor.yy957, yymsp[-9].minor.yy824, yymsp[-8].minor.yy952, yymsp[-12].minor.yy824); - yymsp[-13].minor.yy952 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy952, yymsp[-10].minor.yy957); - yymsp[-13].minor.yy952 = addWhereClause(pCxt, yymsp[-13].minor.yy952, yymsp[-7].minor.yy952); - yymsp[-13].minor.yy952 = addPartitionByClause(pCxt, yymsp[-13].minor.yy952, yymsp[-6].minor.yy824); - yymsp[-13].minor.yy952 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy952, yymsp[-2].minor.yy952); - yymsp[-13].minor.yy952 = addGroupByClause(pCxt, yymsp[-13].minor.yy952, yymsp[-1].minor.yy824); - yymsp[-13].minor.yy952 = addHavingClause(pCxt, yymsp[-13].minor.yy952, yymsp[0].minor.yy952); - yymsp[-13].minor.yy952 = addRangeClause(pCxt, yymsp[-13].minor.yy952, yymsp[-5].minor.yy952); - yymsp[-13].minor.yy952 = addEveryClause(pCxt, yymsp[-13].minor.yy952, yymsp[-4].minor.yy952); - yymsp[-13].minor.yy952 = addFillClause(pCxt, yymsp[-13].minor.yy952, yymsp[-3].minor.yy952); + yymsp[-13].minor.yy28 = createSelectStmt(pCxt, yymsp[-11].minor.yy793, yymsp[-9].minor.yy236, yymsp[-8].minor.yy28, yymsp[-12].minor.yy236); + yymsp[-13].minor.yy28 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy28, yymsp[-10].minor.yy793); + yymsp[-13].minor.yy28 = addWhereClause(pCxt, yymsp[-13].minor.yy28, yymsp[-7].minor.yy28); + yymsp[-13].minor.yy28 = addPartitionByClause(pCxt, yymsp[-13].minor.yy28, yymsp[-6].minor.yy236); + yymsp[-13].minor.yy28 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy28, yymsp[-2].minor.yy28); + yymsp[-13].minor.yy28 = addGroupByClause(pCxt, yymsp[-13].minor.yy28, yymsp[-1].minor.yy236); + yymsp[-13].minor.yy28 = addHavingClause(pCxt, yymsp[-13].minor.yy28, yymsp[0].minor.yy28); + yymsp[-13].minor.yy28 = addRangeClause(pCxt, yymsp[-13].minor.yy28, yymsp[-5].minor.yy28); + yymsp[-13].minor.yy28 = addEveryClause(pCxt, yymsp[-13].minor.yy28, yymsp[-4].minor.yy28); + yymsp[-13].minor.yy28 = addFillClause(pCxt, yymsp[-13].minor.yy28, yymsp[-3].minor.yy28); } +#line 7178 "sql.c" break; - case 521: /* hint_list ::= */ -{ yymsp[1].minor.yy824 = createHintNodeList(pCxt, NULL); } + case 528: /* hint_list ::= */ +#line 1049 "sql.y" +{ yymsp[1].minor.yy236 = createHintNodeList(pCxt, NULL); } +#line 7183 "sql.c" break; - case 522: /* hint_list ::= NK_HINT */ -{ yylhsminor.yy824 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy824 = yylhsminor.yy824; + case 529: /* hint_list ::= NK_HINT */ +#line 1050 "sql.y" +{ yylhsminor.yy236 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } +#line 7188 "sql.c" + yymsp[0].minor.yy236 = yylhsminor.yy236; break; - case 527: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy957 = false; } + case 534: /* set_quantifier_opt ::= ALL */ +#line 1061 "sql.y" +{ yymsp[0].minor.yy793 = false; } +#line 7194 "sql.c" break; - case 530: /* select_item ::= NK_STAR */ -{ yylhsminor.yy952 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy952 = yylhsminor.yy952; + case 537: /* select_item ::= NK_STAR */ +#line 1068 "sql.y" +{ yylhsminor.yy28 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } +#line 7199 "sql.c" + yymsp[0].minor.yy28 = yylhsminor.yy28; break; - case 532: /* select_item ::= common_expression column_alias */ - case 542: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==542); -{ yylhsminor.yy952 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952), &yymsp[0].minor.yy169); } - yymsp[-1].minor.yy952 = yylhsminor.yy952; + case 539: /* select_item ::= common_expression column_alias */ + case 549: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==549); +#line 1070 "sql.y" +{ yylhsminor.yy28 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28), &yymsp[0].minor.yy889); } +#line 7206 "sql.c" + yymsp[-1].minor.yy28 = yylhsminor.yy28; break; - case 533: /* select_item ::= common_expression AS column_alias */ - case 543: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==543); -{ yylhsminor.yy952 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), &yymsp[0].minor.yy169); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 540: /* select_item ::= common_expression AS column_alias */ + case 550: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==550); +#line 1071 "sql.y" +{ yylhsminor.yy28 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), &yymsp[0].minor.yy889); } +#line 7213 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 538: /* partition_by_clause_opt ::= PARTITION BY partition_list */ - case 563: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==563); - case 583: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==583); -{ yymsp[-2].minor.yy824 = yymsp[0].minor.yy824; } + case 545: /* partition_by_clause_opt ::= PARTITION BY partition_list */ + case 570: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==570); + case 590: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==590); +#line 1080 "sql.y" +{ yymsp[-2].minor.yy236 = yymsp[0].minor.yy236; } +#line 7221 "sql.c" break; - case 545: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy952 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); } + case 552: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +#line 1093 "sql.y" +{ yymsp[-5].minor.yy28 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } +#line 7226 "sql.c" break; - case 546: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy952 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); } + case 553: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ +#line 1094 "sql.y" +{ yymsp[-3].minor.yy28 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } +#line 7231 "sql.c" break; - case 547: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy952 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), NULL, yymsp[-1].minor.yy952, yymsp[0].minor.yy952); } + case 554: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +#line 1096 "sql.y" +{ yymsp[-5].minor.yy28 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), NULL, yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +#line 7236 "sql.c" break; - case 548: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy952 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy952), releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), yymsp[-1].minor.yy952, yymsp[0].minor.yy952); } + case 555: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +#line 1099 "sql.y" +{ yymsp[-7].minor.yy28 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy28), releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), yymsp[-1].minor.yy28, yymsp[0].minor.yy28); } +#line 7241 "sql.c" break; - case 549: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ -{ yymsp[-6].minor.yy952 = createEventWindowNode(pCxt, yymsp[-3].minor.yy952, yymsp[0].minor.yy952); } + case 556: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ +#line 1101 "sql.y" +{ yymsp[-6].minor.yy28 = createEventWindowNode(pCxt, yymsp[-3].minor.yy28, yymsp[0].minor.yy28); } +#line 7246 "sql.c" break; - case 553: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy952 = createFillNode(pCxt, yymsp[-1].minor.yy214, NULL); } + case 560: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +#line 1107 "sql.y" +{ yymsp[-3].minor.yy28 = createFillNode(pCxt, yymsp[-1].minor.yy322, NULL); } +#line 7251 "sql.c" break; - case 554: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -{ yymsp[-5].minor.yy952 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy824)); } + case 561: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ +#line 1108 "sql.y" +{ yymsp[-5].minor.yy28 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); } +#line 7256 "sql.c" break; - case 555: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -{ yymsp[-5].minor.yy952 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy824)); } + case 562: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ +#line 1109 "sql.y" +{ yymsp[-5].minor.yy28 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy236)); } +#line 7261 "sql.c" break; - case 556: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy214 = FILL_MODE_NONE; } + case 563: /* fill_mode ::= NONE */ +#line 1113 "sql.y" +{ yymsp[0].minor.yy322 = FILL_MODE_NONE; } +#line 7266 "sql.c" break; - case 557: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy214 = FILL_MODE_PREV; } + case 564: /* fill_mode ::= PREV */ +#line 1114 "sql.y" +{ yymsp[0].minor.yy322 = FILL_MODE_PREV; } +#line 7271 "sql.c" break; - case 558: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy214 = FILL_MODE_NULL; } + case 565: /* fill_mode ::= NULL */ +#line 1115 "sql.y" +{ yymsp[0].minor.yy322 = FILL_MODE_NULL; } +#line 7276 "sql.c" break; - case 559: /* fill_mode ::= NULL_F */ -{ yymsp[0].minor.yy214 = FILL_MODE_NULL_F; } + case 566: /* fill_mode ::= NULL_F */ +#line 1116 "sql.y" +{ yymsp[0].minor.yy322 = FILL_MODE_NULL_F; } +#line 7281 "sql.c" break; - case 560: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy214 = FILL_MODE_LINEAR; } + case 567: /* fill_mode ::= LINEAR */ +#line 1117 "sql.y" +{ yymsp[0].minor.yy322 = FILL_MODE_LINEAR; } +#line 7286 "sql.c" break; - case 561: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy214 = FILL_MODE_NEXT; } + case 568: /* fill_mode ::= NEXT */ +#line 1118 "sql.y" +{ yymsp[0].minor.yy322 = FILL_MODE_NEXT; } +#line 7291 "sql.c" break; - case 564: /* group_by_list ::= expr_or_subquery */ -{ yylhsminor.yy824 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); } - yymsp[0].minor.yy824 = yylhsminor.yy824; + case 571: /* group_by_list ::= expr_or_subquery */ +#line 1127 "sql.y" +{ yylhsminor.yy236 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } +#line 7296 "sql.c" + yymsp[0].minor.yy236 = yylhsminor.yy236; break; - case 565: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ -{ yylhsminor.yy824 = addNodeToList(pCxt, yymsp[-2].minor.yy824, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy952))); } - yymsp[-2].minor.yy824 = yylhsminor.yy824; + case 572: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ +#line 1128 "sql.y" +{ yylhsminor.yy236 = addNodeToList(pCxt, yymsp[-2].minor.yy236, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy28))); } +#line 7302 "sql.c" + yymsp[-2].minor.yy236 = yylhsminor.yy236; break; - case 569: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -{ yymsp[-5].minor.yy952 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy952), releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); } + case 576: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ +#line 1135 "sql.y" +{ yymsp[-5].minor.yy28 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy28), releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } +#line 7308 "sql.c" break; - case 570: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy952 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy952)); } + case 577: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ +#line 1137 "sql.y" +{ yymsp[-3].minor.yy28 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy28)); } +#line 7313 "sql.c" break; - case 573: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 580: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ +#line 1144 "sql.y" { - yylhsminor.yy952 = addOrderByClause(pCxt, yymsp[-3].minor.yy952, yymsp[-2].minor.yy824); - yylhsminor.yy952 = addSlimitClause(pCxt, yylhsminor.yy952, yymsp[-1].minor.yy952); - yylhsminor.yy952 = addLimitClause(pCxt, yylhsminor.yy952, yymsp[0].minor.yy952); + yylhsminor.yy28 = addOrderByClause(pCxt, yymsp[-3].minor.yy28, yymsp[-2].minor.yy236); + yylhsminor.yy28 = addSlimitClause(pCxt, yylhsminor.yy28, yymsp[-1].minor.yy28); + yylhsminor.yy28 = addLimitClause(pCxt, yylhsminor.yy28, yymsp[0].minor.yy28); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; +#line 7322 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 576: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -{ yylhsminor.yy952 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy952, yymsp[0].minor.yy952); } - yymsp[-3].minor.yy952 = yylhsminor.yy952; + case 583: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ +#line 1154 "sql.y" +{ yylhsminor.yy28 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy28, yymsp[0].minor.yy28); } +#line 7328 "sql.c" + yymsp[-3].minor.yy28 = yylhsminor.yy28; break; - case 577: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -{ yylhsminor.yy952 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy952, yymsp[0].minor.yy952); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 584: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ +#line 1156 "sql.y" +{ yylhsminor.yy28 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy28, yymsp[0].minor.yy28); } +#line 7334 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 585: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 589: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==589); -{ yymsp[-1].minor.yy952 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 592: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 596: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==596); +#line 1170 "sql.y" +{ yymsp[-1].minor.yy28 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } +#line 7341 "sql.c" break; - case 586: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 590: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==590); -{ yymsp[-3].minor.yy952 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 593: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 597: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==597); +#line 1171 "sql.y" +{ yymsp[-3].minor.yy28 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } +#line 7347 "sql.c" break; - case 587: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 591: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==591); -{ yymsp[-3].minor.yy952 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 594: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 598: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==598); +#line 1172 "sql.y" +{ yymsp[-3].minor.yy28 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } +#line 7353 "sql.c" break; - case 592: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy952 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy952); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 599: /* subquery ::= NK_LP query_expression NK_RP */ +#line 1180 "sql.y" +{ yylhsminor.yy28 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy28); } +#line 7358 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 597: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy952 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy952), yymsp[-1].minor.yy498, yymsp[0].minor.yy977); } - yymsp[-2].minor.yy952 = yylhsminor.yy952; + case 604: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ +#line 1194 "sql.y" +{ yylhsminor.yy28 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy28), yymsp[-1].minor.yy734, yymsp[0].minor.yy945); } +#line 7364 "sql.c" + yymsp[-2].minor.yy28 = yylhsminor.yy28; break; - case 598: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy498 = ORDER_ASC; } + case 605: /* ordering_specification_opt ::= */ +#line 1198 "sql.y" +{ yymsp[1].minor.yy734 = ORDER_ASC; } +#line 7370 "sql.c" break; - case 599: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy498 = ORDER_ASC; } + case 606: /* ordering_specification_opt ::= ASC */ +#line 1199 "sql.y" +{ yymsp[0].minor.yy734 = ORDER_ASC; } +#line 7375 "sql.c" break; - case 600: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy498 = ORDER_DESC; } + case 607: /* ordering_specification_opt ::= DESC */ +#line 1200 "sql.y" +{ yymsp[0].minor.yy734 = ORDER_DESC; } +#line 7380 "sql.c" break; - case 601: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy977 = NULL_ORDER_DEFAULT; } + case 608: /* null_ordering_opt ::= */ +#line 1204 "sql.y" +{ yymsp[1].minor.yy945 = NULL_ORDER_DEFAULT; } +#line 7385 "sql.c" break; - case 602: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy977 = NULL_ORDER_FIRST; } + case 609: /* null_ordering_opt ::= NULLS FIRST */ +#line 1205 "sql.y" +{ yymsp[-1].minor.yy945 = NULL_ORDER_FIRST; } +#line 7390 "sql.c" break; - case 603: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy977 = NULL_ORDER_LAST; } + case 610: /* null_ordering_opt ::= NULLS LAST */ +#line 1206 "sql.y" +{ yymsp[-1].minor.yy945 = NULL_ORDER_LAST; } +#line 7395 "sql.c" break; default: break; @@ -6251,6 +7454,7 @@ static void yy_syntax_error( ParseCTX_FETCH #define TOKEN yyminor /************ Begin %syntax_error code ****************************************/ +#line 29 "sql.y" if (TSDB_CODE_SUCCESS == pCxt->errCode) { if(TOKEN.z) { @@ -6261,6 +7465,7 @@ static void yy_syntax_error( } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } +#line 7468 "sql.c" /************ End %syntax_error code ******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE @@ -6346,12 +7551,56 @@ void Parse( } #endif - do{ + while(1){ /* Exit by "break" */ + assert( yypParser->yytos>=yypParser->yystack ); assert( yyact==yypParser->yytos->stateno ); yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact); if( yyact >= YY_MIN_REDUCE ){ - yyact = yy_reduce(yypParser,yyact-YY_MIN_REDUCE,yymajor, - yyminor ParseCTX_PARAM); + unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */ +#ifndef NDEBUG + assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ); + if( yyTraceFILE ){ + int yysize = yyRuleInfoNRhs[yyruleno]; + if( yysize ){ + fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", + yyTracePrompt, + yyruleno, yyRuleName[yyruleno], + yyrulenoyytos[yysize].stateno); + }else{ + fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n", + yyTracePrompt, yyruleno, yyRuleName[yyruleno], + yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){ + yypParser->yyhwm++; + assert( yypParser->yyhwm == + (int)(yypParser->yytos - yypParser->yystack)); + } +#endif +#if YYSTACKDEPTH>0 + if( yypParser->yytos>=yypParser->yystackEnd ){ + yyStackOverflow(yypParser); + break; + } +#else + if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){ + if( yyGrowStack(yypParser) ){ + yyStackOverflow(yypParser); + break; + } + } +#endif + } + yyact = yy_reduce(yypParser,yyruleno,yymajor,yyminor ParseCTX_PARAM); }else if( yyact <= YY_MAX_SHIFTREDUCE ){ yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor); #ifndef YYNOERRORRECOVERY @@ -6407,14 +7656,13 @@ void Parse( yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion); yymajor = YYNOCODE; }else{ - while( yypParser->yytos >= yypParser->yystack - && (yyact = yy_find_reduce_action( - yypParser->yytos->stateno, - YYERRORSYMBOL)) > YY_MAX_SHIFTREDUCE - ){ + while( yypParser->yytos > yypParser->yystack ){ + yyact = yy_find_reduce_action(yypParser->yytos->stateno, + YYERRORSYMBOL); + if( yyact<=YY_MAX_SHIFTREDUCE ) break; yy_pop_parser_stack(yypParser); } - if( yypParser->yytos < yypParser->yystack || yymajor==0 ){ + if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){ yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); yy_parse_failed(yypParser); #ifndef YYNOERRORRECOVERY @@ -6464,7 +7712,7 @@ void Parse( break; #endif } - }while( yypParser->yytos>yypParser->yystack ); + } #ifndef NDEBUG if( yyTraceFILE ){ yyStackEntry *i; diff --git a/source/util/src/terror.c b/source/util/src/terror.c index 278b23b5a9..a02657a543 100644 --- a/source/util/src/terror.c +++ b/source/util/src/terror.c @@ -556,7 +556,6 @@ TAOS_DEFINE_ERROR(TSDB_CODE_PAR_NOT_ALLOWED_WIN_QUERY, "Window query not su TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INVALID_DROP_COL, "No columns can be dropped") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INVALID_COL_JSON, "Only tag can be json type") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_VALUE_TOO_LONG, "Value too long for column/tag") -TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INVALID_VARBINARY, "Invalidate varbinary type") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INVALID_DELETE_WHERE, "The DELETE statement must have a definite time window range") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INVALID_REDISTRIBUTE_VG, "The REDISTRIBUTE VGROUP statement only support 1 to 3 dnodes") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_FILL_NOT_ALLOWED_FUNC, "Fill not allowed") @@ -573,6 +572,8 @@ TAOS_DEFINE_ERROR(TSDB_CODE_PAR_GET_META_ERROR, "Fail to get table i TAOS_DEFINE_ERROR(TSDB_CODE_PAR_NOT_UNIQUE_TABLE_ALIAS, "Not unique table/alias") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_SYSTABLE_NOT_ALLOWED_FUNC, "System table not allowed") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_SYSTABLE_NOT_ALLOWED, "System table not allowed") +TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INVALID_VARBINARY, "Invalidate varbinary type") +TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INVALID_IP_RANGE, "Invalid IPV4 address ranges") TAOS_DEFINE_ERROR(TSDB_CODE_PAR_INTERNAL_ERROR, "Parser internal error") //planner diff --git a/tests/parallel_test/cases.task b/tests/parallel_test/cases.task index 24f6ad33b6..511dbdc3cf 100644 --- a/tests/parallel_test/cases.task +++ b/tests/parallel_test/cases.task @@ -809,6 +809,7 @@ ,,y,script,./test.sh -f tsim/user/basic.sim ,,y,script,./test.sh -f tsim/user/password.sim +,,y,script,./test.sh -f tsim/user/whitelist.sim ,,y,script,./test.sh -f tsim/user/privilege_db.sim ,,y,script,./test.sh -f tsim/user/privilege_sysinfo.sim ,,y,script,./test.sh -f tsim/user/privilege_topic.sim diff --git a/tests/script/tsim/user/whitelist.sim b/tests/script/tsim/user/whitelist.sim new file mode 100644 index 0000000000..53f16a90bb --- /dev/null +++ b/tests/script/tsim/user/whitelist.sim @@ -0,0 +1,28 @@ +system sh/stop_dnodes.sh +system sh/deploy.sh -n dnode1 -i 1 +system sh/exec.sh -n dnode1 -s start +sql connect + +print ============= step1 +sql create user u_read pass 'taosdata1' host '127.0.0.1/24','192.168.1.0/24' +sql create user u_write pass 'taosdata1' host '127.0.0.1','192.168.1.0' + +sql alter user u_read add host '3.3.3.4/24' +sql alter user u_write drop host '4.4.4.5/25' + +sql show users +if $rows != 3 then + return -1 +endi + +print ============= step2 +sql_error create user read1 pass 'taosdata1' host '127.0.0/24' +sql_error create user write1 pass 'taosdata1' host '4.4.4.4/33' + +sql show users +if $rows != 3 then + return -1 +endi + + +system sh/exec.sh -n dnode1 -s stop -x SIGINT