diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 17fde6a536..d9d3c7e297 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -845,6 +845,7 @@ typedef struct { int8_t cacheLast; int8_t replications; int32_t sstTrigger; + int32_t minRows; } SAlterDbReq; int32_t tSerializeSAlterDbReq(void* buf, int32_t bufLen, SAlterDbReq* pReq); @@ -1316,6 +1317,9 @@ typedef struct { int8_t strict; int8_t cacheLast; int64_t reserved[8]; + // 1st modification + int16_t sttTrigger; + int32_t minRows; } SAlterVnodeConfigReq; int32_t tSerializeSAlterVnodeConfigReq(void* buf, int32_t bufLen, SAlterVnodeConfigReq* pReq); diff --git a/include/util/taoserror.h b/include/util/taoserror.h index 3ffbd02e97..75b71409a8 100644 --- a/include/util/taoserror.h +++ b/include/util/taoserror.h @@ -240,6 +240,7 @@ int32_t* taosGetErrno(); #define TSDB_CODE_MND_TOO_MANY_USERS TAOS_DEF_ERROR_CODE(0, 0x0355) #define TSDB_CODE_MND_INVALID_ALTER_OPER TAOS_DEF_ERROR_CODE(0, 0x0356) #define TSDB_CODE_MND_AUTH_FAILURE TAOS_DEF_ERROR_CODE(0, 0x0357) +#define TSDB_CODE_MND_USER_NOT_AVAILABLE TAOS_DEF_ERROR_CODE(0, 0x0358) // mnode-stable-part1 #define TSDB_CODE_MND_STB_ALREADY_EXIST TAOS_DEF_ERROR_CODE(0, 0x0360) diff --git a/source/client/src/clientSml.c b/source/client/src/clientSml.c index 32f748d4a9..885a0019cb 100644 --- a/source/client/src/clientSml.c +++ b/source/client/src/clientSml.c @@ -1216,6 +1216,12 @@ static int32_t smlParseLineBottom(SSmlHandle *info) { static int32_t smlInsertData(SSmlHandle *info) { int32_t code = TSDB_CODE_SUCCESS; + if(info->pRequest->dbList == NULL){ + info->pRequest->dbList = taosArrayInit(1, TSDB_DB_FNAME_LEN); + } + void* data = taosArrayReserve(info->pRequest->dbList, 1); + memcpy(data, info->pRequest->pDb, TSDB_DB_FNAME_LEN > strlen(info->pRequest->pDb) ? strlen(info->pRequest->pDb) : TSDB_DB_FNAME_LEN); + SSmlTableInfo **oneTable = (SSmlTableInfo **)taosHashIterate(info->childTables, NULL); while (oneTable) { SSmlTableInfo *tableData = *oneTable; @@ -1224,6 +1230,11 @@ static int32_t smlInsertData(SSmlHandle *info) { tstrncpy(pName.dbname, info->pRequest->pDb, sizeof(pName.dbname)); memcpy(pName.tname, tableData->childTableName, strlen(tableData->childTableName)); + if(info->pRequest->tableList == NULL){ + info->pRequest->tableList = taosArrayInit(1, sizeof(SName)); + } + taosArrayPush(info->pRequest->tableList, &pName); + SRequestConnInfo conn = {0}; conn.pTrans = info->taos->pAppInfo->pTransporter; conn.requestId = info->pRequest->requestId; @@ -1425,6 +1436,7 @@ static int smlProcess(SSmlHandle *info, char *lines[], char *rawLine, char *rawL do { code = smlModifyDBSchemas(info); if (code == 0) break; + taosMsleep(200); } while (retryNum++ < taosHashGetSize(info->superTables) * MAX_RETRY_TIMES); if (code != 0) { @@ -1449,62 +1461,75 @@ TAOS_RES *taos_schemaless_insert_inner(TAOS *taos, char *lines[], char *rawLine, terrno = TSDB_CODE_TSC_DISCONNECTED; return NULL; } + SRequestObj *request = NULL; + SSmlHandle *info = NULL; + while(1){ + request = (SRequestObj *)createRequest(*(int64_t *)taos, TSDB_SQL_INSERT, reqid); + if (request == NULL) { + uError("SML:taos_schemaless_insert error request is null"); + return NULL; + } - SRequestObj *request = (SRequestObj *)createRequest(*(int64_t *)taos, TSDB_SQL_INSERT, reqid); - if (request == NULL) { - uError("SML:taos_schemaless_insert error request is null"); - return NULL; + info = smlBuildSmlInfo(taos); + if (info == NULL) { + request->code = TSDB_CODE_OUT_OF_MEMORY; + uError("SML:taos_schemaless_insert error SSmlHandle is null"); + return (TAOS_RES *)request; + } + info->pRequest = request; + info->isRawLine = rawLine != NULL; + info->ttl = ttl; + info->precision = precision; + info->protocol = (TSDB_SML_PROTOCOL_TYPE)protocol; + info->msgBuf.buf = info->pRequest->msgBuf; + info->msgBuf.len = ERROR_MSG_BUF_DEFAULT_SIZE; + info->lineNum = numLines; + + SSmlMsgBuf msg = {ERROR_MSG_BUF_DEFAULT_SIZE, request->msgBuf}; + if (request->pDb == NULL) { + request->code = TSDB_CODE_PAR_DB_NOT_SPECIFIED; + smlBuildInvalidDataMsg(&msg, "Database not specified", NULL); + goto end; + } + + if (protocol < TSDB_SML_LINE_PROTOCOL || protocol > TSDB_SML_JSON_PROTOCOL) { + request->code = TSDB_CODE_SML_INVALID_PROTOCOL_TYPE; + smlBuildInvalidDataMsg(&msg, "protocol invalidate", NULL); + goto end; + } + + if (protocol == TSDB_SML_LINE_PROTOCOL && + (precision < TSDB_SML_TIMESTAMP_NOT_CONFIGURED || precision > TSDB_SML_TIMESTAMP_NANO_SECONDS)) { + request->code = TSDB_CODE_SML_INVALID_PRECISION_TYPE; + smlBuildInvalidDataMsg(&msg, "precision invalidate for line protocol", NULL); + goto end; + } + + if (protocol == TSDB_SML_JSON_PROTOCOL) { + numLines = 1; + } else if (numLines <= 0) { + request->code = TSDB_CODE_SML_INVALID_DATA; + smlBuildInvalidDataMsg(&msg, "line num is invalid", NULL); + goto end; + } + + code = smlProcess(info, lines, rawLine, rawLineEnd, numLines); + request->code = code; + info->cost.endTime = taosGetTimestampUs(); + info->cost.code = code; + smlPrintStatisticInfo(info); + if(code == TSDB_CODE_TDB_INVALID_TABLE_SCHEMA_VER || code == TSDB_CODE_SDB_OBJ_CREATING){ + refreshMeta(request->pTscObj, request); + uInfo("SML:%"PRIx64" ver is old retry or object is creating code:%d", info->id, code); + smlDestroyInfo(info); + info = NULL; + taos_free_result(request); + request = NULL; + continue; + } + break; } - SSmlHandle *info = smlBuildSmlInfo(taos); - if (info == NULL) { - request->code = TSDB_CODE_OUT_OF_MEMORY; - uError("SML:taos_schemaless_insert error SSmlHandle is null"); - return (TAOS_RES *)request; - } - info->pRequest = request; - info->isRawLine = rawLine != NULL; - info->ttl = ttl; - info->precision = precision; - info->protocol = (TSDB_SML_PROTOCOL_TYPE)protocol; - info->msgBuf.buf = info->pRequest->msgBuf; - info->msgBuf.len = ERROR_MSG_BUF_DEFAULT_SIZE; - info->lineNum = numLines; - - SSmlMsgBuf msg = {ERROR_MSG_BUF_DEFAULT_SIZE, request->msgBuf}; - if (request->pDb == NULL) { - request->code = TSDB_CODE_PAR_DB_NOT_SPECIFIED; - smlBuildInvalidDataMsg(&msg, "Database not specified", NULL); - goto end; - } - - if (protocol < TSDB_SML_LINE_PROTOCOL || protocol > TSDB_SML_JSON_PROTOCOL) { - request->code = TSDB_CODE_SML_INVALID_PROTOCOL_TYPE; - smlBuildInvalidDataMsg(&msg, "protocol invalidate", NULL); - goto end; - } - - if (protocol == TSDB_SML_LINE_PROTOCOL && - (precision < TSDB_SML_TIMESTAMP_NOT_CONFIGURED || precision > TSDB_SML_TIMESTAMP_NANO_SECONDS)) { - request->code = TSDB_CODE_SML_INVALID_PRECISION_TYPE; - smlBuildInvalidDataMsg(&msg, "precision invalidate for line protocol", NULL); - goto end; - } - - if (protocol == TSDB_SML_JSON_PROTOCOL) { - numLines = 1; - } else if (numLines <= 0) { - request->code = TSDB_CODE_SML_INVALID_DATA; - smlBuildInvalidDataMsg(&msg, "line num is invalid", NULL); - goto end; - } - - code = smlProcess(info, lines, rawLine, rawLineEnd, numLines); - request->code = code; - info->cost.endTime = taosGetTimestampUs(); - info->cost.code = code; - smlPrintStatisticInfo(info); - end: smlDestroyInfo(info); return (TAOS_RES *)request; diff --git a/source/client/src/clientSmlLine.c b/source/client/src/clientSmlLine.c index 66f1316cd5..f5ae077b5d 100644 --- a/source/client/src/clientSmlLine.c +++ b/source/client/src/clientSmlLine.c @@ -436,7 +436,7 @@ static int32_t smlParseColKv(SSmlHandle *info, char **sql, char *sqlEnd, SSmlLin // bind data ret = smlBuildCol(info->currTableDataCtx, info->currSTableMeta->schema, &kv, cnt + 1); if (unlikely(ret != TSDB_CODE_SUCCESS)) { - uError("smlBuildCol error, retry"); + uDebug("smlBuildCol error, retry"); info->dataFormat = false; info->reRun = true; return TSDB_CODE_SUCCESS; @@ -582,8 +582,10 @@ int32_t smlParseInfluxString(SSmlHandle *info, char *sql, char *sqlEnd, SSmlLine .i = ts, .length = (size_t)tDataTypes[TSDB_DATA_TYPE_TIMESTAMP].bytes}; if (info->dataFormat) { - smlBuildCol(info->currTableDataCtx, info->currSTableMeta->schema, &kv, 0); - smlBuildRow(info->currTableDataCtx); + ret = smlBuildCol(info->currTableDataCtx, info->currSTableMeta->schema, &kv, 0); + if(ret != TSDB_CODE_SUCCESS){return ret;} + ret = smlBuildRow(info->currTableDataCtx); + if(ret != TSDB_CODE_SUCCESS){return ret;} clearColValArray(info->currTableDataCtx->pValues); } else { taosArraySet(elements->colArray, 0, &kv); diff --git a/source/common/src/tdatablock.c b/source/common/src/tdatablock.c index 453e4a8d8e..3c8d394b43 100644 --- a/source/common/src/tdatablock.c +++ b/source/common/src/tdatablock.c @@ -2044,8 +2044,8 @@ char* dumpBlockData(SSDataBlock* pDataBlock, const char* flag, char** pDataBuf) if (len >= size - 1) return dumpBuf; break; case TSDB_DATA_TYPE_DOUBLE: - // len += snprintf(dumpBuf + len, size - len, " %15lf |", *(double*)var); - // if (len >= size - 1) return dumpBuf; + len += snprintf(dumpBuf + len, size - len, " %15f |", *(double*)var); + if (len >= size - 1) return dumpBuf; break; case TSDB_DATA_TYPE_BOOL: len += snprintf(dumpBuf + len, size - len, " %15d |", *(bool*)var); diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 6dd28094cb..9ad7c72bc0 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -2219,6 +2219,10 @@ int32_t tSerializeSAlterDbReq(void *buf, int32_t bufLen, SAlterDbReq *pReq) { if (tEncodeI8(&encoder, pReq->cacheLast) < 0) return -1; if (tEncodeI8(&encoder, pReq->replications) < 0) return -1; if (tEncodeI32(&encoder, pReq->sstTrigger) < 0) return -1; + + // 1st modification + if (tEncodeI32(&encoder, pReq->minRows) < 0) return -1; + tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -2246,6 +2250,13 @@ int32_t tDeserializeSAlterDbReq(void *buf, int32_t bufLen, SAlterDbReq *pReq) { if (tDecodeI8(&decoder, &pReq->cacheLast) < 0) return -1; if (tDecodeI8(&decoder, &pReq->replications) < 0) return -1; if (tDecodeI32(&decoder, &pReq->sstTrigger) < 0) return -1; + + // 1st modification + if (!tDecodeIsEnd(&decoder)) { + if (tDecodeI32(&decoder, &pReq->minRows) < 0) return -1; + } else { + pReq->minRows = -1; + } tEndDecode(&decoder); tDecoderClear(&decoder); @@ -4172,6 +4183,11 @@ int32_t tSerializeSAlterVnodeConfigReq(void *buf, int32_t bufLen, SAlterVnodeCon for (int32_t i = 0; i < 8; ++i) { if (tEncodeI64(&encoder, pReq->reserved[i]) < 0) return -1; } + + // 1st modification + if (tEncodeI16(&encoder, pReq->sttTrigger) < 0) return -1; + if (tEncodeI32(&encoder, pReq->minRows) < 0) return -1; + tEndEncode(&encoder); int32_t tlen = encoder.pos; @@ -4201,6 +4217,15 @@ int32_t tDeserializeSAlterVnodeConfigReq(void *buf, int32_t bufLen, SAlterVnodeC if (tDecodeI64(&decoder, &pReq->reserved[i]) < 0) return -1; } + // 1st modification + if (tDecodeIsEnd(&decoder)) { + pReq->sttTrigger = -1; + pReq->minRows = -1; + } else { + if (tDecodeI16(&decoder, &pReq->sttTrigger) < 0) return -1; + if (tDecodeI32(&decoder, &pReq->minRows) < 0) return -1; + } + tEndDecode(&decoder); tDecoderClear(&decoder); return 0; diff --git a/source/dnode/mgmt/mgmt_vnode/src/vmInt.c b/source/dnode/mgmt/mgmt_vnode/src/vmInt.c index 8008e5f810..0524e2713a 100644 --- a/source/dnode/mgmt/mgmt_vnode/src/vmInt.c +++ b/source/dnode/mgmt/mgmt_vnode/src/vmInt.c @@ -124,7 +124,7 @@ void vmCloseVnode(SVnodeMgmt *pMgmt, SVnodeObj *pVnode, bool commitAndRemoveWal) vmFreeQueue(pMgmt, pVnode); if (commitAndRemoveWal) { - dInfo("vgId:%d, commit data", pVnode->vgId); + dInfo("vgId:%d, commit data for vnode split", pVnode->vgId); vnodeSyncCommit(pVnode->pImpl); vnodeBegin(pVnode->pImpl); dInfo("vgId:%d, commit data finished", pVnode->vgId); diff --git a/source/dnode/mnode/impl/inc/mndDef.h b/source/dnode/mnode/impl/inc/mndDef.h index fe2c58e29e..ebe96fd740 100644 --- a/source/dnode/mnode/impl/inc/mndDef.h +++ b/source/dnode/mnode/impl/inc/mndDef.h @@ -543,7 +543,7 @@ void* tDecodeSMqConsumerObj(const void* buf, SMqConsumerObj* pConsumer typedef struct { int32_t vgId; - char* qmsg; //SubPlanToString + char* qmsg; // SubPlanToString SEpSet epSet; } SMqVgEp; diff --git a/source/dnode/mnode/impl/src/mndDb.c b/source/dnode/mnode/impl/src/mndDb.c index af76971304..e848a81d40 100644 --- a/source/dnode/mnode/impl/src/mndDb.c +++ b/source/dnode/mnode/impl/src/mndDb.c @@ -725,6 +725,18 @@ static int32_t mndSetDbCfgFromAlterDbReq(SDbObj *pDb, SAlterDbReq *pAlter) { terrno = 0; } + if (pAlter->sstTrigger > 0 && pAlter->sstTrigger != pDb->cfg.sstTrigger) { + pDb->cfg.sstTrigger = pAlter->sstTrigger; + pDb->vgVersion++; + terrno = 0; + } + + if (pAlter->minRows > 0 && pAlter->minRows != pDb->cfg.minRows) { + pDb->cfg.minRows = pAlter->minRows; + pDb->vgVersion++; + terrno = 0; + } + return terrno; } diff --git a/source/dnode/mnode/impl/src/mndUser.c b/source/dnode/mnode/impl/src/mndUser.c index 23822c8f20..92b73aed96 100644 --- a/source/dnode/mnode/impl/src/mndUser.c +++ b/source/dnode/mnode/impl/src/mndUser.c @@ -337,7 +337,11 @@ SUserObj *mndAcquireUser(SMnode *pMnode, const char *userName) { SSdb *pSdb = pMnode->pSdb; SUserObj *pUser = sdbAcquire(pSdb, SDB_USER, userName); if (pUser == NULL) { - terrno = TSDB_CODE_MND_USER_NOT_EXIST; + if (terrno == TSDB_CODE_SDB_OBJ_NOT_THERE) { + terrno = TSDB_CODE_MND_USER_NOT_EXIST; + } else { + terrno = TSDB_CODE_MND_USER_NOT_AVAILABLE; + } } return pUser; } diff --git a/source/dnode/mnode/impl/src/mndVgroup.c b/source/dnode/mnode/impl/src/mndVgroup.c index b5d9353b68..84e8a9ec43 100644 --- a/source/dnode/mnode/impl/src/mndVgroup.c +++ b/source/dnode/mnode/impl/src/mndVgroup.c @@ -319,6 +319,8 @@ static void *mndBuildAlterVnodeConfigReq(SMnode *pMnode, SDbObj *pDb, SVgObj *pV alterReq.walLevel = pDb->cfg.walLevel; alterReq.strict = pDb->cfg.strict; alterReq.cacheLast = pDb->cfg.cacheLast; + alterReq.sttTrigger = pDb->cfg.sstTrigger; + alterReq.minRows = pDb->cfg.minRows; mInfo("vgId:%d, build alter vnode config req", pVgroup->vgId); int32_t contLen = tSerializeSAlterVnodeConfigReq(NULL, 0, &alterReq); diff --git a/source/dnode/vnode/src/inc/tsdb.h b/source/dnode/vnode/src/inc/tsdb.h index 15087e90f0..b2e1e8ab34 100644 --- a/source/dnode/vnode/src/inc/tsdb.h +++ b/source/dnode/vnode/src/inc/tsdb.h @@ -780,6 +780,7 @@ typedef struct SCacheRowsReader { SDataFReader *pDataFReader; SDataFReader *pDataFReaderLast; const char *idstr; + int64_t lastTs; } SCacheRowsReader; typedef struct { diff --git a/source/dnode/vnode/src/tq/tq.c b/source/dnode/vnode/src/tq/tq.c index 4d21a2e7f3..5d3350a69a 100644 --- a/source/dnode/vnode/src/tq/tq.c +++ b/source/dnode/vnode/src/tq/tq.c @@ -983,11 +983,15 @@ int32_t tqExpandTask(STQ* pTq, SStreamTask* pTask, int64_t ver) { pTask->tbSink.vnode = pTq->pVnode; pTask->tbSink.tbSinkFunc = tqSinkToTablePipeline2; - /*A(pTask->tbSink.pSchemaWrapper);*/ - /*A(pTask->tbSink.pSchemaWrapper->pSchema);*/ + int32_t version = 1; + SMetaInfo info = {0}; + int32_t code = metaGetInfo(pTq->pVnode->pMeta, pTask->tbSink.stbUid, &info, NULL); + if (code == TSDB_CODE_SUCCESS) { + version = info.skmVer; + } pTask->tbSink.pTSchema = - tBuildTSchema(pTask->tbSink.pSchemaWrapper->pSchema, pTask->tbSink.pSchemaWrapper->nCols, 1); + tBuildTSchema(pTask->tbSink.pSchemaWrapper->pSchema, pTask->tbSink.pSchemaWrapper->nCols, version); ASSERT(pTask->tbSink.pTSchema); } diff --git a/source/dnode/vnode/src/tsdb/tsdbCache.c b/source/dnode/vnode/src/tsdb/tsdbCache.c index dcf7286c00..58401cdf44 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCache.c +++ b/source/dnode/vnode/src/tsdb/tsdbCache.c @@ -506,6 +506,11 @@ static int32_t getTableDelData(STbData *pMem, STbData *pIMem, SDelFReader *pDelR SArray *aDelData) { int32_t code = 0; + if (pDelIdx) { + code = getTableDelDataFromDelIdx(pDelReader, pDelIdx, aDelData); + if (code) goto _err; + } + if (pMem) { code = getTableDelDataFromTbData(pMem, aDelData); if (code) goto _err; @@ -516,11 +521,6 @@ static int32_t getTableDelData(STbData *pMem, STbData *pIMem, SDelFReader *pDelR if (code) goto _err; } - if (pDelIdx) { - code = getTableDelDataFromDelIdx(pDelReader, pDelIdx, aDelData); - if (code) goto _err; - } - _err: return code; } @@ -593,9 +593,10 @@ typedef struct { SMergeTree mergeTree; SMergeTree *pMergeTree; SSttBlockLoadInfo *pLoadInfo; + int64_t lastTs; } SFSLastNextRowIter; -static int32_t getNextRowFromFSLast(void *iter, TSDBROW **ppRow) { +static int32_t getNextRowFromFSLast(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlierTs) { SFSLastNextRowIter *state = (SFSLastNextRowIter *)iter; int32_t code = 0; @@ -641,15 +642,27 @@ static int32_t getNextRowFromFSLast(void *iter, TSDBROW **ppRow) { } state->state = SFSLASTNEXTROW_BLOCKROW; } - case SFSLASTNEXTROW_BLOCKROW: - state->row = tMergeTreeGetRow(&state->mergeTree); - *ppRow = &state->row; - bool hasVal = tMergeTreeNext(&state->mergeTree); + case SFSLASTNEXTROW_BLOCKROW: { + bool hasVal = false; + do { + state->row = tMergeTreeGetRow(&state->mergeTree); + *ppRow = &state->row; + hasVal = tMergeTreeNext(&state->mergeTree); + } while (TSDBROW_TS(&state->row) <= state->lastTs && hasVal); + + if (TSDBROW_TS(&state->row) <= state->lastTs) { + *pIgnoreEarlierTs = true; + state->state = SFSLASTNEXTROW_FILESET; + goto _next_fileset; + } + + *pIgnoreEarlierTs = false; if (!hasVal) { state->state = SFSLASTNEXTROW_FILESET; } return code; + } default: ASSERT(0); break; @@ -722,9 +735,10 @@ typedef struct SFSNextRowIter { int32_t iRow; TSDBROW row; SSttBlockLoadInfo *pLoadInfo; + int64_t lastTs; } SFSNextRowIter; -static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow) { +static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlierTs) { SFSNextRowIter *state = (SFSNextRowIter *)iter; int32_t code = 0; @@ -816,12 +830,14 @@ static int32_t getNextRowFromFS(void *iter, TSDBROW **ppRow) { SDataBlk block = {0}; tDataBlkReset(&block); - // tBlockDataReset(&state->blockData); tBlockDataReset(state->pBlockData); tMapDataGetItemByIdx(&state->blockMap, state->iBlock, &block, tGetDataBlk); - /* code = tsdbReadBlockData(state->pDataFReader, &state->blockIdx, &block, &state->blockData, NULL, NULL); - */ + if (block.maxKey.ts <= state->lastTs) { + *pIgnoreEarlierTs = true; + goto _next_fileset; + } + *pIgnoreEarlierTs = false; tBlockDataReset(state->pBlockData); TABLEID tid = {.suid = state->suid, .uid = state->uid}; code = tBlockDataInit(state->pBlockData, &tid, state->pTSchema, NULL, 0); @@ -931,16 +947,23 @@ typedef struct SMemNextRowIter { SMEMNEXTROWSTATES state; STbData *pMem; // [input] STbDataIter iter; // mem buffer skip list iterator + int64_t lastTs; // bool iterOpened; // TSDBROW *curRow; } SMemNextRowIter; -static int32_t getNextRowFromMem(void *iter, TSDBROW **ppRow) { +static int32_t getNextRowFromMem(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlierTs) { SMemNextRowIter *state = (SMemNextRowIter *)iter; int32_t code = 0; + *pIgnoreEarlierTs = false; switch (state->state) { case SMEMNEXTROW_ENTER: { if (state->pMem != NULL) { + if (state->pMem->maxKey <= state->lastTs) { + *ppRow = NULL; + *pIgnoreEarlierTs = true; + return code; + } tsdbTbDataIterOpen(state->pMem, NULL, 1, &state->iter); TSDBROW *pMemRow = tsdbTbDataIterGet(&state->iter); @@ -1041,13 +1064,14 @@ static bool tsdbKeyDeleted(TSDBKEY *key, SArray *pSkyline, int64_t *iSkyline) { return deleted; } -typedef int32_t (*_next_row_fn_t)(void *iter, TSDBROW **ppRow); +typedef int32_t (*_next_row_fn_t)(void *iter, TSDBROW **ppRow, bool *pIgnoreEarlierTs); typedef int32_t (*_next_row_clear_fn_t)(void *iter); typedef struct { TSDBROW *pRow; bool stop; bool next; + bool ignoreEarlierTs; void *iter; _next_row_fn_t nextRowFn; _next_row_clear_fn_t nextRowClearFn; @@ -1070,7 +1094,7 @@ typedef struct { static int32_t nextRowIterOpen(CacheNextRowIter *pIter, tb_uid_t uid, STsdb *pTsdb, STSchema *pTSchema, tb_uid_t suid, SSttBlockLoadInfo *pLoadInfo, STsdbReadSnap *pReadSnap, SDataFReader **pDataFReader, - SDataFReader **pDataFReaderLast) { + SDataFReader **pDataFReaderLast, int64_t lastTs) { int code = 0; STbData *pMem = NULL; @@ -1131,6 +1155,7 @@ static int32_t nextRowIterOpen(CacheNextRowIter *pIter, tb_uid_t uid, STsdb *pTs pIter->fsLastState.uid = uid; pIter->fsLastState.pLoadInfo = pLoadInfo; pIter->fsLastState.pDataFReader = pDataFReaderLast; + pIter->fsLastState.lastTs = lastTs; pIter->fsState.state = SFSNEXTROW_FS; pIter->fsState.pTsdb = pTsdb; @@ -1141,17 +1166,19 @@ static int32_t nextRowIterOpen(CacheNextRowIter *pIter, tb_uid_t uid, STsdb *pTs pIter->fsState.uid = uid; pIter->fsState.pLoadInfo = pLoadInfo; pIter->fsState.pDataFReader = pDataFReader; + pIter->fsState.lastTs = lastTs; - pIter->input[0] = (TsdbNextRowState){&pIter->memRow, true, false, &pIter->memState, getNextRowFromMem, NULL}; - pIter->input[1] = (TsdbNextRowState){&pIter->imemRow, true, false, &pIter->imemState, getNextRowFromMem, NULL}; - pIter->input[2] = (TsdbNextRowState){&pIter->fsLastRow, false, true, &pIter->fsLastState, getNextRowFromFSLast, - clearNextRowFromFSLast}; + pIter->input[0] = (TsdbNextRowState){&pIter->memRow, true, false, false, &pIter->memState, getNextRowFromMem, NULL}; + pIter->input[1] = (TsdbNextRowState){&pIter->imemRow, true, false, false, &pIter->imemState, getNextRowFromMem, NULL}; + pIter->input[2] = (TsdbNextRowState){ + &pIter->fsLastRow, false, true, false, &pIter->fsLastState, getNextRowFromFSLast, clearNextRowFromFSLast}; pIter->input[3] = - (TsdbNextRowState){&pIter->fsRow, false, true, &pIter->fsState, getNextRowFromFS, clearNextRowFromFS}; + (TsdbNextRowState){&pIter->fsRow, false, true, false, &pIter->fsState, getNextRowFromFS, clearNextRowFromFS}; if (pMem) { pIter->memState.pMem = pMem; pIter->memState.state = SMEMNEXTROW_ENTER; + pIter->memState.lastTs = lastTs; pIter->input[0].stop = false; pIter->input[0].next = true; } @@ -1159,6 +1186,7 @@ static int32_t nextRowIterOpen(CacheNextRowIter *pIter, tb_uid_t uid, STsdb *pTs if (pIMem) { pIter->imemState.pMem = pIMem; pIter->imemState.state = SMEMNEXTROW_ENTER; + pIter->imemState.lastTs = lastTs; pIter->input[1].stop = false; pIter->input[1].next = true; } @@ -1186,12 +1214,12 @@ _err: } // iterate next row non deleted backward ts, version (from high to low) -static int32_t nextRowIterGet(CacheNextRowIter *pIter, TSDBROW **ppRow) { +static int32_t nextRowIterGet(CacheNextRowIter *pIter, TSDBROW **ppRow, bool *pIgnoreEarlierTs) { int code = 0; for (;;) { for (int i = 0; i < 4; ++i) { if (pIter->input[i].next && !pIter->input[i].stop) { - code = pIter->input[i].nextRowFn(pIter->input[i].iter, &pIter->input[i].pRow); + code = pIter->input[i].nextRowFn(pIter->input[i].iter, &pIter->input[i].pRow, &pIter->input[i].ignoreEarlierTs); if (code) goto _err; if (pIter->input[i].pRow == NULL) { @@ -1203,6 +1231,8 @@ static int32_t nextRowIterGet(CacheNextRowIter *pIter, TSDBROW **ppRow) { if (pIter->input[0].stop && pIter->input[1].stop && pIter->input[2].stop && pIter->input[3].stop) { *ppRow = NULL; + *pIgnoreEarlierTs = (pIter->input[0].ignoreEarlierTs || pIter->input[1].ignoreEarlierTs || + pIter->input[2].ignoreEarlierTs || pIter->input[3].ignoreEarlierTs); return code; } @@ -1303,6 +1333,7 @@ static int32_t mergeLastRow(tb_uid_t uid, STsdb *pTsdb, bool *dup, SArray **ppCo int16_t noneCol = 0; bool setNoneCol = false; bool hasRow = false; + bool ignoreEarlierTs = false; SArray *pColArray = NULL; SColVal *pColVal = &(SColVal){0}; @@ -1315,11 +1346,11 @@ static int32_t mergeLastRow(tb_uid_t uid, STsdb *pTsdb, bool *dup, SArray **ppCo CacheNextRowIter iter = {0}; nextRowIterOpen(&iter, uid, pTsdb, pTSchema, pr->suid, pr->pLoadInfo, pr->pReadSnap, &pr->pDataFReader, - &pr->pDataFReaderLast); + &pr->pDataFReaderLast, pr->lastTs); do { TSDBROW *pRow = NULL; - nextRowIterGet(&iter, &pRow); + nextRowIterGet(&iter, &pRow, &ignoreEarlierTs); if (!pRow) { break; @@ -1419,7 +1450,12 @@ static int32_t mergeLastRow(tb_uid_t uid, STsdb *pTsdb, bool *dup, SArray **ppCo // taosArrayDestroy(pColArray); //} else { if (!hasRow) { - taosArrayClear(pColArray); + if (ignoreEarlierTs) { + taosArrayDestroy(pColArray); + pColArray = NULL; + } else { + taosArrayClear(pColArray); + } } *ppColArray = pColArray; //} @@ -1441,6 +1477,7 @@ static int32_t mergeLast(tb_uid_t uid, STsdb *pTsdb, SArray **ppLastArray, SCach int16_t noneCol = 0; bool setNoneCol = false; bool hasRow = false; + bool ignoreEarlierTs = false; SArray *pColArray = NULL; SColVal *pColVal = &(SColVal){0}; @@ -1453,11 +1490,11 @@ static int32_t mergeLast(tb_uid_t uid, STsdb *pTsdb, SArray **ppLastArray, SCach CacheNextRowIter iter = {0}; nextRowIterOpen(&iter, uid, pTsdb, pTSchema, pr->suid, pr->pLoadInfo, pr->pReadSnap, &pr->pDataFReader, - &pr->pDataFReaderLast); + &pr->pDataFReaderLast, pr->lastTs); do { TSDBROW *pRow = NULL; - nextRowIterGet(&iter, &pRow); + nextRowIterGet(&iter, &pRow, &ignoreEarlierTs); if (!pRow) { break; @@ -1557,7 +1594,12 @@ static int32_t mergeLast(tb_uid_t uid, STsdb *pTsdb, SArray **ppLastArray, SCach // taosArrayDestroy(pColArray); //} else { if (!hasRow) { - taosArrayClear(pColArray); + if (ignoreEarlierTs) { + taosArrayDestroy(pColArray); + pColArray = NULL; + } else { + taosArrayClear(pColArray); + } } *ppLastArray = pColArray; //} @@ -1591,8 +1633,8 @@ int32_t tsdbCacheGetLastrowH(SLRUCache *pCache, tb_uid_t uid, SCacheRowsReader * SArray *pArray = NULL; bool dup = false; // which is always false for now code = mergeLastRow(uid, pTsdb, &dup, &pArray, pr); - // if table's empty or error, set handle NULL and return - if (code < 0 /* || pArray == NULL*/) { + // if table's empty or error or ignore ignore earlier ts, set handle NULL and return + if (code < 0 || pArray == NULL) { if (!dup && pArray) { taosArrayDestroy(pArray); } @@ -1635,8 +1677,8 @@ int32_t tsdbCacheGetLastH(SLRUCache *pCache, tb_uid_t uid, SCacheRowsReader *pr, if (!h) { SArray *pLastArray = NULL; code = mergeLast(uid, pTsdb, &pLastArray, pr); - // if table's empty or error, set handle NULL and return - if (code < 0 /* || pLastArray == NULL*/) { + // if table's empty or error or ignore ignore earlier ts, set handle NULL and return + if (code < 0 || pLastArray == NULL) { taosThreadMutexUnlock(&pTsdb->lruMutex); *handle = NULL; diff --git a/source/dnode/vnode/src/tsdb/tsdbCacheRead.c b/source/dnode/vnode/src/tsdb/tsdbCacheRead.c index 5528b6313c..d925950703 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCacheRead.c +++ b/source/dnode/vnode/src/tsdb/tsdbCacheRead.c @@ -199,6 +199,8 @@ int32_t tsdbCacherowsReaderOpen(void* pVnode, int32_t type, void* pTableIdList, p->idstr = taosStrdup(idstr); taosThreadMutexInit(&p->readerMutex, NULL); + p->lastTs = INT64_MIN; + *pReader = p; return TSDB_CODE_SUCCESS; } @@ -347,6 +349,8 @@ int32_t tsdbRetrieveCacheRows(void* pReader, SSDataBlock* pResBlock, const int32 } { + bool hasNotNullRow = true; + int64_t minTs = INT64_MAX; for (int32_t k = 0; k < pr->numOfCols; ++k) { int32_t slotId = slotIds[k]; @@ -357,6 +361,7 @@ int32_t tsdbRetrieveCacheRows(void* pReader, SSDataBlock* pResBlock, const int32 hasRes = true; p->ts = pCol->ts; p->colVal = pCol->colVal; + minTs = pCol->ts; // only set value for last row query if (HASTYPE(pr->type, CACHESCAN_RETRIEVE_LAST_ROW)) { @@ -373,11 +378,17 @@ int32_t tsdbRetrieveCacheRows(void* pReader, SSDataBlock* pResBlock, const int32 if (pColVal->ts > p->ts) { if (!COL_VAL_IS_VALUE(&pColVal->colVal) && HASTYPE(pr->type, CACHESCAN_RETRIEVE_LAST)) { + if (!COL_VAL_IS_VALUE(&p->colVal)) { + hasNotNullRow = false; + } continue; } hasRes = true; p->ts = pColVal->ts; + if (pColVal->ts < minTs && HASTYPE(pr->type, CACHESCAN_RETRIEVE_LAST)) { + minTs = pColVal->ts; + } if (!IS_VAR_DATA_TYPE(pColVal->colVal.type)) { p->colVal = pColVal->colVal; @@ -394,6 +405,10 @@ int32_t tsdbRetrieveCacheRows(void* pReader, SSDataBlock* pResBlock, const int32 } } } + + if (hasNotNullRow) { + pr->lastTs = minTs; + } } tsdbCacheRelease(lruCache, h); diff --git a/source/dnode/vnode/src/tsdb/tsdbSnapshot.c b/source/dnode/vnode/src/tsdb/tsdbSnapshot.c index 1a98134d70..aed863d194 100644 --- a/source/dnode/vnode/src/tsdb/tsdbSnapshot.c +++ b/source/dnode/vnode/src/tsdb/tsdbSnapshot.c @@ -198,7 +198,7 @@ static int32_t tsdbSnapCmprData(STsdbSnapReader* pReader, uint8_t** ppData) { ASSERT(pReader->bData.nRow); int32_t aBufN[5] = {0}; - code = tCmprBlockData(&pReader->bData, TWO_STAGE_COMP, NULL, NULL, pReader->aBuf, aBufN); + code = tCmprBlockData(&pReader->bData, NO_COMPRESSION, NULL, NULL, pReader->aBuf, aBufN); if (code) goto _exit; int32_t size = aBufN[0] + aBufN[1] + aBufN[2] + aBufN[3]; @@ -276,7 +276,7 @@ static int32_t tsdbSnapReadTimeSeriesData(STsdbSnapReader* pReader, uint8_t** pp code = tsdbSnapReadNextRow(pReader, &pRowInfo); TSDB_CHECK_CODE(code, lino, _exit); - if (pReader->bData.nRow >= 4096) break; + if (pReader->bData.nRow >= 81920) break; } while (pRowInfo); ASSERT(pReader->bData.nRow > 0); diff --git a/source/dnode/vnode/src/vnd/vnodeSvr.c b/source/dnode/vnode/src/vnd/vnodeSvr.c index fb8d230eba..45113d55d3 100644 --- a/source/dnode/vnode/src/vnd/vnodeSvr.c +++ b/source/dnode/vnode/src/vnd/vnodeSvr.c @@ -1541,6 +1541,14 @@ static int32_t vnodeProcessAlterConfigReq(SVnode *pVnode, int64_t version, void } } + if (req.sttTrigger != -1 && req.sttTrigger != pVnode->config.sttTrigger) { + pVnode->config.sttTrigger = req.sttTrigger; + } + + if (req.minRows != -1 && req.minRows != pVnode->config.tsdbCfg.minRows) { + pVnode->config.tsdbCfg.minRows = req.minRows; + } + if (walChanged) { walAlter(pVnode->pWal, &pVnode->config.walCfg); } @@ -1656,7 +1664,7 @@ _err: } static int32_t vnodeProcessDropIndexReq(SVnode *pVnode, int64_t version, void *pReq, int32_t len, SRpcMsg *pRsp) { SDropIndexReq req = {0}; - pRsp->msgType = TDMT_VND_CREATE_INDEX_RSP; + pRsp->msgType = TDMT_VND_DROP_INDEX_RSP; pRsp->code = TSDB_CODE_SUCCESS; pRsp->pCont = NULL; pRsp->contLen = 0; @@ -1665,6 +1673,7 @@ static int32_t vnodeProcessDropIndexReq(SVnode *pVnode, int64_t version, void *p terrno = TSDB_CODE_INVALID_MSG; return -1; } + if (metaDropIndexFromSTable(pVnode->pMeta, version, &req) < 0) { pRsp->code = terrno; return -1; diff --git a/source/libs/executor/inc/executorimpl.h b/source/libs/executor/inc/executorimpl.h index 0b55eb4a45..55bf8b37d0 100644 --- a/source/libs/executor/inc/executorimpl.h +++ b/source/libs/executor/inc/executorimpl.h @@ -121,7 +121,8 @@ enum { STREAM_RECOVER_STEP__NONE = 0, STREAM_RECOVER_STEP__PREPARE1, STREAM_RECOVER_STEP__PREPARE2, - STREAM_RECOVER_STEP__SCAN, + STREAM_RECOVER_STEP__SCAN1, + STREAM_RECOVER_STEP__SCAN2, }; typedef struct { diff --git a/source/libs/executor/src/executor.c b/source/libs/executor/src/executor.c index 04d54a95ae..ac78ddc23c 100644 --- a/source/libs/executor/src/executor.c +++ b/source/libs/executor/src/executor.c @@ -1110,11 +1110,8 @@ int32_t qStreamPrepareScan(qTaskInfo_t tinfo, STqOffsetVal* pOffset, int8_t subT STableScanInfo* pTableScanInfo = pInfo->pTableScanOp->info; int32_t numOfTables = tableListGetSize(pTaskInfo->pTableInfoList); -#ifndef NDEBUG - qDebug("switch to next table %" PRId64 " (cursor %d), %" PRId64 " rows returned", uid, - pTableScanInfo->currentTable, pInfo->pTableScanOp->resultInfo.totalRows); + qDebug("switch to next table %" PRId64 " ts %" PRId64 "% "PRId64 " rows returned", uid, ts, pInfo->pTableScanOp->resultInfo.totalRows); pInfo->pTableScanOp->resultInfo.totalRows = 0; -#endif bool found = false; for (int32_t i = 0; i < numOfTables; i++) { diff --git a/source/libs/executor/src/scanoperator.c b/source/libs/executor/src/scanoperator.c index 2f3b757241..40b9597643 100644 --- a/source/libs/executor/src/scanoperator.c +++ b/source/libs/executor/src/scanoperator.c @@ -1608,8 +1608,6 @@ static SSDataBlock* doQueueScan(SOperatorInfo* pOperator) { if (pTaskInfo->streamInfo.prepareStatus.type == TMQ_OFFSET__SNAPSHOT_DATA) { SSDataBlock* pResult = doTableScan(pInfo->pTableScanOp); if (pResult && pResult->info.rows > 0) { - qDebug("queue scan tsdb return %d rows min:%" PRId64 " max:%" PRId64, pResult->info.rows, - pResult->info.window.skey, pResult->info.window.ekey); qDebug("queue scan tsdb return %d rows min:%" PRId64 " max:%" PRId64 " wal curVersion:%" PRId64, pResult->info.rows, pResult->info.window.skey, pResult->info.window.ekey, pInfo->tqReader->pWalReader->curVersion); pTaskInfo->streamInfo.returned = 1; @@ -1724,9 +1722,9 @@ static void setBlockGroupIdByUid(SStreamScanInfo* pInfo, SSDataBlock* pBlock) { } } -static void doCheckUpdate(SStreamScanInfo* pInfo, TSKEY endKey) { +static void doCheckUpdate(SStreamScanInfo* pInfo, TSKEY endKey, SSDataBlock* pBlock) { if (pInfo->pUpdateInfo) { - checkUpdateData(pInfo, true, pInfo->pRes, true); + checkUpdateData(pInfo, true, pBlock, true); pInfo->twAggSup.maxTs = TMAX(pInfo->twAggSup.maxTs, endKey); if (pInfo->pUpdateDataRes->info.rows > 0) { pInfo->updateResIndex = 0; @@ -1758,11 +1756,13 @@ static SSDataBlock* doStreamScan(SOperatorInfo* pOperator) { pTSInfo->base.cond.endVersion = pTaskInfo->streamInfo.fillHistoryVer1; qDebug("stream recover step 1, from %" PRId64 " to %" PRId64, pTSInfo->base.cond.startVersion, pTSInfo->base.cond.endVersion); + pTaskInfo->streamInfo.recoverStep = STREAM_RECOVER_STEP__SCAN1; } else { pTSInfo->base.cond.startVersion = pTaskInfo->streamInfo.fillHistoryVer1 + 1; pTSInfo->base.cond.endVersion = pTaskInfo->streamInfo.fillHistoryVer2; qDebug("stream recover step 2, from %" PRId64 " to %" PRId64, pTSInfo->base.cond.startVersion, pTSInfo->base.cond.endVersion); + pTaskInfo->streamInfo.recoverStep = STREAM_RECOVER_STEP__SCAN2; } /*resetTableScanInfo(pTSInfo, pWin);*/ @@ -1772,11 +1772,11 @@ static SSDataBlock* doStreamScan(SOperatorInfo* pOperator) { pTSInfo->scanTimes = 0; pTSInfo->currentGroupId = -1; - pTaskInfo->streamInfo.recoverStep = STREAM_RECOVER_STEP__SCAN; pTaskInfo->streamInfo.recoverScanFinished = false; } - if (pTaskInfo->streamInfo.recoverStep == STREAM_RECOVER_STEP__SCAN) { + if (pTaskInfo->streamInfo.recoverStep == STREAM_RECOVER_STEP__SCAN1 || + pTaskInfo->streamInfo.recoverStep == STREAM_RECOVER_STEP__SCAN2) { if (pInfo->blockRecoverContiCnt > 100) { pInfo->blockRecoverTotCnt += pInfo->blockRecoverContiCnt; pInfo->blockRecoverContiCnt = 0; @@ -1789,6 +1789,27 @@ static SSDataBlock* doStreamScan(SOperatorInfo* pOperator) { printDataBlock(pInfo->pRecoverRes, "scan recover"); return pInfo->pRecoverRes; } break; + case STREAM_SCAN_FROM_UPDATERES: { + generateScanRange(pInfo, pInfo->pUpdateDataRes, pInfo->pUpdateRes); + prepareRangeScan(pInfo, pInfo->pUpdateRes, &pInfo->updateResIndex); + pInfo->scanMode = STREAM_SCAN_FROM_DATAREADER_RANGE; + return pInfo->pUpdateRes; + } break; + case STREAM_SCAN_FROM_DATAREADER_RANGE: { + SSDataBlock* pSDB = doRangeScan(pInfo, pInfo->pUpdateRes, pInfo->primaryTsIndex, &pInfo->updateResIndex); + if (pSDB) { + STableScanInfo* pTableScanInfo = pInfo->pTableScanOp->info; + uint64_t version = getReaderMaxVersion(pTableScanInfo->base.dataReader); + updateInfoSetScanRange(pInfo->pUpdateInfo, &pTableScanInfo->base.cond.twindows, pInfo->groupId, version); + pSDB->info.type = pInfo->scanMode == STREAM_SCAN_FROM_DATAREADER_RANGE ? STREAM_NORMAL : STREAM_PULL_DATA; + checkUpdateData(pInfo, true, pSDB, false); + // printDataBlock(pSDB, "stream scan update"); + calBlockTbName(pInfo, pSDB); + return pSDB; + } + blockDataCleanup(pInfo->pUpdateDataRes); + pInfo->scanMode = STREAM_SCAN_FROM_READERHANDLE; + } break; default: break; } @@ -1798,8 +1819,12 @@ static SSDataBlock* doStreamScan(SOperatorInfo* pOperator) { pInfo->blockRecoverContiCnt++; calBlockTbName(pInfo, pInfo->pRecoverRes); if (pInfo->pUpdateInfo) { - TSKEY maxTs = updateInfoFillBlockData(pInfo->pUpdateInfo, pInfo->pRecoverRes, pInfo->primaryTsIndex); - pInfo->twAggSup.maxTs = TMAX(pInfo->twAggSup.maxTs, maxTs); + if (pTaskInfo->streamInfo.recoverStep == STREAM_RECOVER_STEP__SCAN1) { + TSKEY maxTs = updateInfoFillBlockData(pInfo->pUpdateInfo, pInfo->pRecoverRes, pInfo->primaryTsIndex); + pInfo->twAggSup.maxTs = TMAX(pInfo->twAggSup.maxTs, maxTs); + } else { + doCheckUpdate(pInfo, pInfo->pRecoverRes->info.window.ekey, pInfo->pRecoverRes); + } } if (pInfo->pCreateTbRes->info.rows > 0) { pInfo->scanMode = STREAM_SCAN_FROM_RES; @@ -1910,7 +1935,7 @@ FETCH_NEXT_BLOCK: switch (pInfo->scanMode) { case STREAM_SCAN_FROM_RES: { pInfo->scanMode = STREAM_SCAN_FROM_READERHANDLE; - doCheckUpdate(pInfo, pInfo->pRes->info.window.ekey); + doCheckUpdate(pInfo, pInfo->pRes->info.window.ekey, pInfo->pRes); doFilter(pInfo->pRes, pOperator->exprSupp.pFilterInfo, NULL); pInfo->pRes->info.dataLoad = 1; blockDataUpdateTsWindow(pInfo->pRes, pInfo->primaryTsIndex); @@ -2011,7 +2036,7 @@ FETCH_NEXT_BLOCK: return pInfo->pCreateTbRes; } - doCheckUpdate(pInfo, pBlockInfo->window.ekey); + doCheckUpdate(pInfo, pBlockInfo->window.ekey, pInfo->pRes); doFilter(pInfo->pRes, pOperator->exprSupp.pFilterInfo, NULL); pInfo->pRes->info.dataLoad = 1; blockDataUpdateTsWindow(pInfo->pRes, pInfo->primaryTsIndex); diff --git a/source/libs/executor/src/timewindowoperator.c b/source/libs/executor/src/timewindowoperator.c index 6411d862ae..bfdf5ea89b 100644 --- a/source/libs/executor/src/timewindowoperator.c +++ b/source/libs/executor/src/timewindowoperator.c @@ -4805,10 +4805,9 @@ static SSDataBlock* doStreamIntervalAgg(SOperatorInfo* pOperator) { setInverFunction(pSup->pCtx, pOperator->exprSupp.numOfExprs, pBlock->info.type); } + doStreamIntervalAggImpl(pOperator, pBlock, pBlock->info.id.groupId, pInfo->pUpdatedMap); pInfo->twAggSup.maxTs = TMAX(pInfo->twAggSup.maxTs, pBlock->info.window.ekey); pInfo->twAggSup.minTs = TMIN(pInfo->twAggSup.minTs, pBlock->info.window.skey); - - doStreamIntervalAggImpl(pOperator, pBlock, pBlock->info.id.groupId, pInfo->pUpdatedMap); } pOperator->status = OP_RES_TO_RETURN; removeDeleteResults(pInfo->pUpdatedMap, pInfo->pDelWins); diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 22afc7ef55..8d6c3288b9 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -1462,7 +1462,7 @@ SListCell* nodesListErase(SNodeList* pList, SListCell* pCell) { } void nodesListInsertList(SNodeList* pTarget, SListCell* pPos, SNodeList* pSrc) { - if (NULL == pTarget || NULL == pPos || NULL == pSrc) { + if (NULL == pTarget || NULL == pPos || NULL == pSrc || NULL == pSrc->pHead) { return; } diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 994f99a797..72a0a70e36 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -236,6 +236,7 @@ alter_db_option(A) ::= REPLICA NK_INTEGER(B). //alter_db_option(A) ::= STRICT NK_STRING(B). { A.type = DB_OPTION_STRICT; A.val = B; } alter_db_option(A) ::= WAL_LEVEL NK_INTEGER(B). { A.type = DB_OPTION_WAL; A.val = B; } alter_db_option(A) ::= STT_TRIGGER NK_INTEGER(B). { A.type = DB_OPTION_STT_TRIGGER; A.val = B; } +alter_db_option(A) ::= MINROWS NK_INTEGER(B). { A.type = DB_OPTION_MINROWS; A.val = B; } %type integer_list { SNodeList* } %destructor integer_list { nodesDestroyList($$); } diff --git a/source/libs/parser/src/parInsertSml.c b/source/libs/parser/src/parInsertSml.c index 4742921d08..d6c1072669 100644 --- a/source/libs/parser/src/parInsertSml.c +++ b/source/libs/parser/src/parInsertSml.c @@ -201,6 +201,7 @@ int32_t smlBuildCol(STableDataCxt* pTableCxt, SSchema* schema, void* data, int32 SSmlKv* kv = (SSmlKv*)data; if(kv->keyLen != strlen(pColSchema->name) || memcmp(kv->key, pColSchema->name, kv->keyLen) != 0 || kv->type != pColSchema->type){ ret = TSDB_CODE_SML_INVALID_DATA; + uError("SML smlBuildCol error col not same %s", pColSchema->name); goto end; } if (kv->type == TSDB_DATA_TYPE_NCHAR) { diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index da9c1b9185..74b32c638d 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2500,9 +2500,8 @@ static int32_t translateTable(STranslateContext* pCxt, SNode* pTable) { STempTableNode* pTempTable = (STempTableNode*)pTable; code = translateSubquery(pCxt, pTempTable->pSubquery); if (TSDB_CODE_SUCCESS == code) { - if (QUERY_NODE_SELECT_STMT == nodeType(pTempTable->pSubquery) && - ((SSelectStmt*)pTempTable->pSubquery)->isEmptyResult && - isSelectStmt(pCxt->pCurrStmt)) { + if (QUERY_NODE_SELECT_STMT == nodeType(pTempTable->pSubquery) && + ((SSelectStmt*)pTempTable->pSubquery)->isEmptyResult && isSelectStmt(pCxt->pCurrStmt)) { ((SSelectStmt*)pCxt->pCurrStmt)->isEmptyResult = true; } @@ -2935,6 +2934,9 @@ static int32_t translateSelectList(STranslateContext* pCxt, SSelectStmt* pSelect if (TSDB_CODE_SUCCESS == code) { code = translateFillValues(pCxt, pSelect); } + if (NULL == pSelect->pProjectionList || 0 >= pSelect->pProjectionList->length) { + code = TSDB_CODE_PAR_INVALID_SELECTED_EXPR; + } return code; } @@ -4251,6 +4253,7 @@ static void buildAlterDbReq(STranslateContext* pCxt, SAlterDatabaseStmt* pStmt, pReq->cacheLastSize = pStmt->pOptions->cacheLastSize; pReq->replications = pStmt->pOptions->replica; pReq->sstTrigger = pStmt->pOptions->sstTrigger; + pReq->minRows = pStmt->pOptions->minRowsPerBlock; return; } @@ -5570,7 +5573,8 @@ static int32_t checkCreateTopic(STranslateContext* pCxt, SCreateTopicStmt* pStmt if (QUERY_NODE_SELECT_STMT == nodeType(pStmt->pQuery)) { SSelectStmt* pSelect = (SSelectStmt*)pStmt->pQuery; - if (!pSelect->isDistinct && QUERY_NODE_REAL_TABLE == nodeType(pSelect->pFromTable) && + if (!pSelect->isDistinct && + (NULL != pSelect->pFromTable && QUERY_NODE_REAL_TABLE == nodeType(pSelect->pFromTable)) && NULL == pSelect->pGroupByList && NULL == pSelect->pLimit && NULL == pSelect->pSlimit && NULL == pSelect->pOrderByList && NULL == pSelect->pPartitionByList) { return TSDB_CODE_SUCCESS; diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index ab0571206b..457083358d 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -139,17 +139,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 753 -#define YYNRULE 573 +#define YYNSTATE 754 +#define YYNRULE 574 #define YYNTOKEN 329 -#define YY_MAX_SHIFT 752 -#define YY_MIN_SHIFTREDUCE 1119 -#define YY_MAX_SHIFTREDUCE 1691 -#define YY_ERROR_ACTION 1692 -#define YY_ACCEPT_ACTION 1693 -#define YY_NO_ACTION 1694 -#define YY_MIN_REDUCE 1695 -#define YY_MAX_REDUCE 2267 +#define YY_MAX_SHIFT 753 +#define YY_MIN_SHIFTREDUCE 1121 +#define YY_MAX_SHIFTREDUCE 1694 +#define YY_ERROR_ACTION 1695 +#define YY_ACCEPT_ACTION 1696 +#define YY_NO_ACTION 1697 +#define YY_MIN_REDUCE 1698 +#define YY_MAX_REDUCE 2271 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -218,518 +218,518 @@ typedef union { *********** Begin parsing tables **********************************************/ #define YY_ACTTAB_COUNT (2833) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 2065, 2243, 1976, 167, 2079, 2238, 491, 377, 492, 1731, - /* 10 */ 1803, 2061, 45, 43, 1619, 164, 1976, 1974, 629, 2065, - /* 20 */ 385, 2242, 1468, 617, 1859, 2239, 2241, 2079, 376, 1493, - /* 30 */ 2061, 1973, 629, 1549, 166, 1466, 1707, 2097, 1848, 44, - /* 40 */ 42, 41, 40, 39, 641, 620, 2057, 2063, 366, 2061, - /* 50 */ 2047, 500, 658, 492, 1731, 388, 139, 652, 1544, 176, - /* 60 */ 2097, 1493, 1910, 161, 18, 2057, 2063, 367, 659, 350, - /* 70 */ 364, 1474, 1859, 2047, 178, 658, 652, 497, 1908, 1908, - /* 80 */ 352, 1959, 2078, 493, 2057, 2063, 2114, 1897, 641, 109, - /* 90 */ 2080, 662, 2082, 2083, 657, 652, 652, 749, 35, 291, - /* 100 */ 14, 179, 617, 2167, 627, 2078, 430, 379, 2163, 2114, - /* 110 */ 45, 43, 168, 2080, 662, 2082, 2083, 657, 385, 652, - /* 120 */ 1468, 184, 270, 2175, 616, 1764, 133, 615, 2066, 2193, - /* 130 */ 2238, 1549, 1171, 1466, 1170, 139, 1551, 1552, 490, 2061, - /* 140 */ 605, 495, 1737, 1623, 2238, 604, 182, 222, 333, 1493, - /* 150 */ 2239, 606, 1695, 581, 2204, 1152, 1544, 1834, 141, 604, - /* 160 */ 182, 2138, 18, 1172, 2239, 606, 1524, 1534, 48, 1474, - /* 170 */ 1761, 509, 1550, 1553, 2057, 2063, 131, 130, 129, 128, - /* 180 */ 127, 126, 125, 124, 123, 652, 1469, 641, 1467, 176, - /* 190 */ 61, 545, 544, 543, 1154, 749, 1157, 1158, 14, 136, - /* 200 */ 539, 181, 2175, 2176, 538, 137, 2180, 1385, 1386, 537, - /* 210 */ 542, 1960, 468, 1472, 1473, 536, 1523, 1526, 1527, 1528, - /* 220 */ 1529, 1530, 1531, 1532, 1533, 654, 650, 1542, 1543, 1545, - /* 230 */ 1546, 1547, 1548, 2, 1551, 1552, 726, 725, 724, 723, - /* 240 */ 395, 600, 722, 721, 143, 716, 715, 714, 713, 712, - /* 250 */ 711, 710, 156, 706, 705, 704, 394, 393, 701, 700, - /* 260 */ 699, 698, 697, 1616, 1524, 1534, 595, 48, 696, 694, - /* 270 */ 1550, 1553, 122, 198, 197, 121, 120, 119, 118, 117, - /* 280 */ 116, 115, 114, 113, 1469, 694, 1467, 154, 153, 691, - /* 290 */ 690, 689, 151, 38, 37, 1525, 467, 44, 42, 41, - /* 300 */ 40, 39, 1492, 154, 153, 691, 690, 689, 151, 1693, - /* 310 */ 2182, 1472, 1473, 273, 1523, 1526, 1527, 1528, 1529, 1530, - /* 320 */ 1531, 1532, 1533, 654, 650, 1542, 1543, 1545, 1546, 1547, - /* 330 */ 1548, 2, 11, 45, 43, 390, 2179, 2097, 1903, 1905, - /* 340 */ 185, 385, 1296, 1468, 499, 599, 49, 495, 1737, 345, - /* 350 */ 601, 596, 589, 1940, 1549, 61, 1466, 92, 1287, 684, - /* 360 */ 683, 682, 1291, 681, 1293, 1294, 680, 677, 86, 1302, - /* 370 */ 674, 1304, 1305, 671, 668, 1696, 31, 398, 2079, 1544, - /* 380 */ 568, 397, 38, 37, 65, 18, 44, 42, 41, 40, - /* 390 */ 39, 598, 1474, 1853, 1578, 628, 122, 1494, 11, 121, + /* 0 */ 2069, 2247, 1980, 166, 2083, 2242, 491, 2101, 492, 1734, + /* 10 */ 1806, 2065, 45, 43, 1622, 600, 1980, 1978, 630, 2069, + /* 20 */ 385, 2246, 1471, 618, 1496, 2243, 2245, 2083, 376, 2186, + /* 30 */ 2065, 1977, 630, 1552, 2019, 1469, 1837, 2101, 44, 42, + /* 40 */ 41, 40, 39, 430, 642, 621, 2061, 2067, 366, 1173, + /* 50 */ 2051, 1172, 659, 629, 643, 2183, 139, 653, 1547, 2247, + /* 60 */ 2101, 599, 1914, 2242, 18, 2061, 2067, 367, 660, 350, + /* 70 */ 132, 1477, 167, 2051, 1710, 659, 653, 530, 1912, 2246, + /* 80 */ 1174, 240, 2082, 2243, 2244, 333, 2118, 1861, 642, 109, + /* 90 */ 2084, 663, 2086, 2087, 658, 2069, 653, 750, 65, 697, + /* 100 */ 14, 179, 507, 2171, 1973, 2082, 2065, 379, 2167, 2118, + /* 110 */ 45, 43, 168, 2084, 663, 2086, 2087, 658, 385, 653, + /* 120 */ 1471, 184, 270, 2179, 617, 1721, 133, 616, 73, 2197, + /* 130 */ 2242, 1552, 1173, 1469, 1172, 390, 1554, 1555, 1907, 1909, + /* 140 */ 606, 2061, 2067, 380, 2242, 605, 182, 222, 35, 291, + /* 150 */ 2243, 607, 653, 582, 2208, 273, 1547, 1838, 628, 605, + /* 160 */ 182, 642, 18, 1174, 2243, 607, 1527, 1537, 48, 1477, + /* 170 */ 1764, 2051, 1553, 1556, 38, 37, 178, 81, 44, 42, + /* 180 */ 41, 40, 39, 546, 545, 544, 1472, 509, 1470, 1901, + /* 190 */ 536, 136, 540, 176, 61, 750, 539, 61, 14, 92, + /* 200 */ 497, 538, 543, 61, 38, 37, 493, 537, 44, 42, + /* 210 */ 41, 40, 39, 1475, 1476, 1964, 1526, 1529, 1530, 1531, + /* 220 */ 1532, 1533, 1534, 1535, 1536, 655, 651, 1545, 1546, 1548, + /* 230 */ 1549, 1550, 1551, 2, 1554, 1555, 727, 726, 725, 724, + /* 240 */ 395, 48, 723, 722, 143, 717, 716, 715, 714, 713, + /* 250 */ 712, 711, 156, 707, 706, 705, 394, 393, 702, 701, + /* 260 */ 700, 699, 698, 601, 1527, 1537, 596, 1661, 580, 695, + /* 270 */ 1553, 1556, 122, 1583, 1242, 121, 120, 119, 118, 117, + /* 280 */ 116, 115, 114, 113, 1472, 695, 1470, 154, 153, 692, + /* 290 */ 691, 690, 151, 38, 37, 697, 1154, 44, 42, 41, + /* 300 */ 40, 39, 1959, 154, 153, 692, 691, 690, 151, 1696, + /* 310 */ 1244, 1475, 1476, 190, 1526, 1529, 1530, 1531, 1532, 1533, + /* 320 */ 1534, 1535, 1536, 655, 651, 1545, 1546, 1548, 1549, 1550, + /* 330 */ 1551, 2, 11, 45, 43, 1156, 1839, 1159, 1160, 1496, + /* 340 */ 52, 385, 1299, 1471, 185, 32, 1959, 185, 1496, 345, + /* 350 */ 602, 597, 590, 185, 1552, 1588, 1469, 192, 1290, 685, + /* 360 */ 684, 683, 1294, 682, 1296, 1297, 681, 678, 86, 1305, + /* 370 */ 675, 1307, 1308, 672, 669, 1699, 31, 398, 2083, 1547, + /* 380 */ 147, 397, 38, 37, 354, 18, 44, 42, 41, 40, + /* 390 */ 39, 185, 1477, 1856, 1581, 500, 122, 492, 1734, 121, /* 400 */ 120, 119, 118, 117, 116, 115, 114, 113, 38, 37, - /* 410 */ 628, 2097, 44, 42, 41, 40, 39, 185, 749, 656, - /* 420 */ 1496, 14, 642, 580, 2047, 1474, 658, 2238, 11, 1910, - /* 430 */ 9, 45, 43, 1554, 628, 687, 363, 2015, 187, 385, - /* 440 */ 1250, 1468, 2244, 182, 507, 1908, 1969, 2239, 606, 1718, - /* 450 */ 1579, 1647, 1549, 1249, 1466, 1857, 2078, 1551, 1552, 626, - /* 460 */ 2114, 1969, 2243, 327, 2080, 662, 2082, 2083, 657, 655, - /* 470 */ 652, 643, 2132, 545, 544, 543, 1239, 1544, 617, 1495, - /* 480 */ 61, 136, 539, 637, 240, 1969, 538, 1524, 1534, 2242, - /* 490 */ 1474, 537, 542, 1550, 1553, 2047, 185, 536, 592, 591, - /* 500 */ 1645, 1646, 1648, 1649, 1650, 185, 708, 1469, 448, 1467, - /* 510 */ 1615, 139, 1241, 1330, 1331, 477, 749, 447, 152, 46, - /* 520 */ 541, 540, 34, 383, 1573, 1574, 1575, 1576, 1577, 1581, - /* 530 */ 1582, 1583, 1584, 1495, 1472, 1473, 575, 1523, 1526, 1527, - /* 540 */ 1528, 1529, 1530, 1531, 1532, 1533, 654, 650, 1542, 1543, - /* 550 */ 1545, 1546, 1547, 1548, 2, 1551, 1552, 38, 37, 1846, - /* 560 */ 1681, 44, 42, 41, 40, 39, 38, 37, 250, 1717, - /* 570 */ 44, 42, 41, 40, 39, 53, 619, 180, 2175, 2176, - /* 580 */ 2079, 137, 2180, 642, 605, 1524, 1534, 1708, 2238, 38, - /* 590 */ 37, 1550, 1553, 44, 42, 41, 40, 39, 2243, 132, - /* 600 */ 1842, 642, 2238, 604, 182, 1469, 530, 1467, 2239, 606, - /* 610 */ 1716, 1493, 644, 2097, 2139, 2047, 1857, 132, 2242, 239, - /* 620 */ 2068, 659, 2239, 2240, 535, 27, 2047, 272, 658, 646, - /* 630 */ 185, 2139, 1472, 1473, 1857, 1523, 1526, 1527, 1528, 1529, - /* 640 */ 1530, 1531, 1532, 1533, 654, 650, 1542, 1543, 1545, 1546, - /* 650 */ 1547, 1548, 2, 45, 43, 86, 2047, 2079, 2078, 1658, - /* 660 */ 424, 385, 2114, 1468, 423, 109, 2080, 662, 2082, 2083, - /* 670 */ 657, 354, 652, 2070, 1549, 142, 1466, 149, 2138, 2167, - /* 680 */ 1852, 272, 1580, 379, 2163, 1442, 1443, 1468, 38, 37, - /* 690 */ 2097, 61, 44, 42, 41, 40, 39, 1910, 659, 1544, - /* 700 */ 1466, 617, 2182, 2047, 373, 658, 580, 642, 33, 709, - /* 710 */ 2238, 1819, 1474, 1908, 38, 37, 1904, 1905, 44, 42, - /* 720 */ 41, 40, 39, 54, 1844, 2244, 182, 1688, 2178, 238, - /* 730 */ 2239, 606, 642, 237, 139, 2078, 1474, 642, 749, 2114, - /* 740 */ 1857, 46, 169, 2080, 662, 2082, 2083, 657, 621, 652, - /* 750 */ 357, 45, 43, 428, 32, 1171, 608, 1170, 388, 385, - /* 760 */ 1910, 1468, 749, 391, 1585, 1857, 164, 378, 282, 283, - /* 770 */ 1857, 164, 1549, 281, 1466, 1859, 1908, 1551, 1552, 1835, - /* 780 */ 1859, 1635, 1715, 38, 37, 1832, 1172, 44, 42, 41, - /* 790 */ 40, 39, 89, 340, 607, 2259, 362, 1544, 561, 2079, - /* 800 */ 183, 2175, 2176, 1714, 137, 2180, 106, 1524, 1534, 2182, - /* 810 */ 1474, 720, 718, 1550, 1553, 642, 358, 534, 356, 355, - /* 820 */ 417, 532, 140, 147, 1687, 534, 1910, 1469, 2047, 1467, - /* 830 */ 1849, 429, 2097, 389, 8, 2177, 749, 559, 533, 14, - /* 840 */ 659, 185, 1908, 419, 415, 2047, 533, 658, 1857, 2047, - /* 850 */ 557, 1469, 555, 1467, 1472, 1473, 1713, 1523, 1526, 1527, - /* 860 */ 1528, 1529, 1530, 1531, 1532, 1533, 654, 650, 1542, 1543, - /* 870 */ 1545, 1546, 1547, 1548, 2, 1551, 1552, 2078, 1472, 1473, - /* 880 */ 623, 2114, 13, 12, 110, 2080, 662, 2082, 2083, 657, - /* 890 */ 100, 652, 1496, 1559, 41, 40, 39, 694, 2167, 1493, - /* 900 */ 105, 1712, 2047, 2164, 164, 1524, 1534, 642, 642, 1494, - /* 910 */ 102, 1550, 1553, 1860, 1850, 154, 153, 691, 690, 689, - /* 920 */ 151, 1910, 1496, 438, 453, 1469, 580, 1467, 38, 37, - /* 930 */ 2238, 1804, 44, 42, 41, 40, 39, 1909, 1955, 688, - /* 940 */ 1857, 1857, 1901, 163, 1711, 2244, 182, 2047, 1833, 190, - /* 950 */ 2239, 606, 1472, 1473, 73, 1523, 1526, 1527, 1528, 1529, - /* 960 */ 1530, 1531, 1532, 1533, 654, 650, 1542, 1543, 1545, 1546, - /* 970 */ 1547, 1548, 2, 61, 336, 165, 1491, 2040, 382, 381, - /* 980 */ 311, 1955, 1592, 461, 1254, 550, 475, 2079, 1482, 474, - /* 990 */ 2047, 1955, 192, 305, 309, 72, 1887, 1253, 71, 1549, - /* 1000 */ 560, 1475, 196, 81, 444, 194, 476, 1710, 431, 446, - /* 1010 */ 1709, 696, 692, 609, 236, 1901, 205, 487, 485, 482, - /* 1020 */ 2097, 432, 1706, 580, 1544, 1402, 1403, 2238, 659, 553, - /* 1030 */ 1157, 1158, 1705, 2047, 547, 658, 1840, 1474, 642, 235, - /* 1040 */ 191, 1704, 2244, 182, 1612, 1525, 83, 2239, 606, 82, - /* 1050 */ 248, 1703, 1702, 2047, 625, 353, 2047, 61, 422, 479, - /* 1060 */ 421, 1401, 1404, 648, 1493, 2078, 612, 434, 2047, 2114, - /* 1070 */ 249, 1857, 109, 2080, 662, 2082, 2083, 657, 2047, 652, - /* 1080 */ 69, 1701, 2065, 68, 2142, 420, 2167, 2047, 1700, 693, - /* 1090 */ 379, 2163, 1901, 2061, 90, 108, 472, 2047, 2047, 466, + /* 410 */ 629, 2101, 44, 42, 41, 40, 39, 377, 750, 657, + /* 420 */ 1499, 14, 468, 581, 2051, 164, 659, 2242, 61, 388, + /* 430 */ 1495, 45, 43, 1557, 1863, 282, 283, 161, 1959, 385, + /* 440 */ 281, 1471, 2248, 182, 364, 1497, 1863, 2243, 607, 196, + /* 450 */ 1582, 238, 1552, 1912, 1469, 237, 2082, 1554, 1555, 627, + /* 460 */ 2118, 1973, 569, 327, 2084, 663, 2086, 2087, 658, 656, + /* 470 */ 653, 644, 2136, 1698, 38, 37, 11, 1547, 44, 42, + /* 480 */ 41, 40, 39, 198, 197, 1388, 1389, 1527, 1537, 100, + /* 490 */ 1477, 1767, 490, 1553, 1556, 495, 1740, 131, 130, 129, + /* 500 */ 128, 127, 126, 125, 124, 123, 467, 1472, 499, 1470, + /* 510 */ 27, 495, 1740, 1854, 89, 340, 750, 424, 362, 46, + /* 520 */ 562, 423, 34, 383, 1576, 1577, 1578, 1579, 1580, 1584, + /* 530 */ 1585, 1586, 1587, 1720, 1475, 1476, 576, 1526, 1529, 1530, + /* 540 */ 1531, 1532, 1533, 1534, 1535, 1536, 655, 651, 1545, 1546, + /* 550 */ 1548, 1549, 1550, 1551, 2, 1554, 1555, 546, 545, 544, + /* 560 */ 1477, 1333, 1334, 581, 536, 136, 540, 2242, 250, 49, + /* 570 */ 539, 1908, 1909, 1852, 106, 538, 543, 709, 185, 2051, + /* 580 */ 2083, 537, 2248, 182, 2065, 1527, 1537, 2243, 607, 33, + /* 590 */ 140, 1553, 1556, 13, 12, 38, 37, 1836, 1853, 44, + /* 600 */ 42, 41, 40, 39, 688, 1472, 2247, 1470, 542, 541, + /* 610 */ 38, 37, 560, 2101, 44, 42, 41, 40, 39, 2061, + /* 620 */ 2067, 660, 618, 1498, 1944, 558, 2051, 556, 659, 11, + /* 630 */ 653, 9, 1475, 1476, 86, 1526, 1529, 1530, 1531, 1532, + /* 640 */ 1533, 1534, 1535, 1536, 655, 651, 1545, 1546, 1548, 1549, + /* 650 */ 1550, 1551, 2, 45, 43, 139, 248, 2083, 2082, 1857, + /* 660 */ 2070, 385, 2118, 1471, 643, 109, 2084, 663, 2086, 2087, + /* 670 */ 658, 2065, 653, 1497, 1552, 142, 1469, 149, 2142, 2171, + /* 680 */ 187, 38, 37, 379, 2167, 44, 42, 41, 40, 39, + /* 690 */ 2101, 1719, 176, 1595, 1498, 1914, 1754, 1861, 660, 1547, + /* 700 */ 90, 618, 363, 2051, 1684, 659, 2061, 2067, 1718, 695, + /* 710 */ 624, 1912, 1477, 352, 1963, 1650, 357, 653, 547, 185, + /* 720 */ 620, 180, 2179, 2180, 643, 137, 2184, 154, 153, 692, + /* 730 */ 691, 690, 151, 141, 139, 2082, 2142, 2051, 750, 2118, + /* 740 */ 54, 46, 169, 2084, 663, 2086, 2087, 658, 2246, 653, + /* 750 */ 1717, 45, 43, 643, 2051, 689, 581, 1861, 1905, 385, + /* 760 */ 2242, 1471, 593, 592, 1648, 1649, 1651, 1652, 1653, 428, + /* 770 */ 163, 272, 1552, 1850, 1469, 2248, 182, 1554, 1555, 448, + /* 780 */ 2243, 607, 358, 2186, 356, 355, 1861, 532, 447, 1405, + /* 790 */ 1406, 534, 629, 1846, 608, 2263, 2051, 1547, 1848, 2083, + /* 800 */ 181, 2179, 2180, 1716, 137, 2184, 1499, 1527, 1537, 2182, + /* 810 */ 1477, 1844, 533, 1553, 1556, 643, 38, 37, 2186, 643, + /* 820 */ 44, 42, 41, 40, 39, 1404, 1407, 1472, 687, 1470, + /* 830 */ 1914, 132, 2101, 1715, 2037, 429, 750, 373, 535, 14, + /* 840 */ 660, 638, 272, 1973, 2181, 2051, 1912, 659, 1861, 2051, + /* 850 */ 2044, 1691, 1861, 194, 1475, 1476, 1714, 1526, 1529, 1530, + /* 860 */ 1531, 1532, 1533, 1534, 1535, 1536, 655, 651, 1545, 1546, + /* 870 */ 1548, 1549, 1550, 1551, 2, 1554, 1555, 2082, 245, 2051, + /* 880 */ 2045, 2118, 405, 1914, 110, 2084, 663, 2086, 2087, 658, + /* 890 */ 378, 653, 693, 388, 83, 1905, 581, 82, 2171, 1912, + /* 900 */ 2242, 164, 2051, 2168, 606, 1527, 1537, 1496, 2242, 1638, + /* 910 */ 1863, 1553, 1556, 721, 719, 2248, 182, 417, 61, 8, + /* 920 */ 2243, 607, 1253, 605, 182, 1472, 581, 1470, 2243, 607, + /* 930 */ 2242, 1914, 645, 1626, 2143, 1252, 1562, 654, 389, 1496, + /* 940 */ 419, 415, 1496, 1159, 1160, 2248, 182, 1912, 1690, 610, + /* 950 */ 2243, 607, 1475, 1476, 191, 1526, 1529, 1530, 1531, 1532, + /* 960 */ 1533, 1534, 1535, 1536, 655, 651, 1545, 1546, 1548, 1549, + /* 970 */ 1550, 1551, 2, 1499, 336, 165, 1494, 643, 382, 381, + /* 980 */ 311, 567, 647, 461, 2143, 551, 475, 2083, 1485, 474, + /* 990 */ 41, 40, 39, 438, 309, 72, 1619, 477, 71, 1552, + /* 1000 */ 561, 1478, 1711, 422, 444, 421, 476, 2211, 694, 446, + /* 1010 */ 1861, 1905, 1471, 164, 236, 609, 205, 487, 485, 482, + /* 1020 */ 2101, 152, 1864, 618, 1547, 1469, 643, 581, 660, 554, + /* 1030 */ 420, 2242, 391, 2051, 548, 659, 1713, 1477, 643, 235, + /* 1040 */ 164, 534, 453, 1712, 2191, 1615, 2248, 182, 643, 1863, + /* 1050 */ 1914, 2243, 607, 1528, 454, 353, 139, 61, 710, 1861, + /* 1060 */ 1823, 1477, 533, 649, 508, 2082, 1913, 434, 185, 2118, + /* 1070 */ 1807, 1861, 109, 2084, 663, 2086, 2087, 658, 53, 653, + /* 1080 */ 69, 1861, 2051, 68, 2146, 1528, 2171, 750, 1528, 2051, + /* 1090 */ 379, 2167, 1709, 1708, 1480, 108, 472, 1707, 1747, 466, /* 1100 */ 465, 464, 463, 460, 459, 458, 457, 456, 452, 451, - /* 1110 */ 450, 449, 335, 441, 440, 439, 642, 436, 435, 351, - /* 1120 */ 686, 228, 642, 185, 226, 1699, 642, 2047, 2057, 2063, - /* 1130 */ 380, 642, 392, 2033, 2047, 80, 79, 427, 454, 652, - /* 1140 */ 189, 2079, 508, 2187, 1612, 642, 51, 1854, 3, 1857, - /* 1150 */ 1477, 145, 1483, 134, 1478, 1857, 649, 642, 245, 1857, - /* 1160 */ 334, 241, 1751, 413, 1857, 411, 407, 403, 400, 420, - /* 1170 */ 642, 2047, 2079, 576, 2097, 563, 653, 562, 1857, 1486, - /* 1180 */ 1488, 405, 620, 267, 546, 152, 286, 2047, 642, 658, - /* 1190 */ 1857, 1476, 650, 1542, 1543, 1545, 1546, 1547, 1548, 642, - /* 1200 */ 1698, 642, 1744, 1857, 639, 2097, 230, 185, 152, 229, - /* 1210 */ 1525, 232, 2207, 659, 231, 640, 63, 292, 2047, 2078, - /* 1220 */ 658, 1857, 2079, 2114, 548, 1742, 109, 2080, 662, 2082, - /* 1230 */ 2083, 657, 1857, 652, 1857, 63, 47, 254, 179, 2079, - /* 1240 */ 2167, 610, 1437, 579, 379, 2163, 2047, 551, 234, 152, - /* 1250 */ 2078, 233, 13, 12, 2114, 2097, 47, 109, 2080, 662, - /* 1260 */ 2082, 2083, 657, 659, 652, 1440, 2194, 1738, 2047, 2258, - /* 1270 */ 658, 2167, 2097, 1644, 593, 379, 2163, 279, 1690, 1691, - /* 1280 */ 659, 221, 70, 261, 150, 2047, 2201, 658, 2098, 152, - /* 1290 */ 1732, 63, 1643, 1535, 256, 396, 613, 47, 666, 2079, - /* 1300 */ 2078, 150, 152, 1480, 2114, 1570, 624, 168, 2080, 662, - /* 1310 */ 2082, 2083, 657, 1399, 652, 52, 744, 2078, 1964, 2079, - /* 1320 */ 1898, 2114, 135, 150, 109, 2080, 662, 2082, 2083, 657, - /* 1330 */ 2197, 652, 2097, 1201, 284, 702, 2258, 752, 2167, 634, - /* 1340 */ 659, 288, 379, 2163, 1479, 2047, 1280, 658, 1586, 2205, - /* 1350 */ 618, 298, 2097, 2214, 304, 1308, 703, 1220, 1312, 1319, - /* 1360 */ 659, 269, 266, 1, 4, 2047, 175, 658, 404, 1202, - /* 1370 */ 399, 349, 742, 738, 734, 730, 296, 2078, 1218, 1317, - /* 1380 */ 155, 2114, 1422, 299, 109, 2080, 662, 2082, 2083, 657, - /* 1390 */ 195, 652, 433, 1496, 1965, 437, 2258, 2078, 2167, 470, - /* 1400 */ 1491, 2114, 379, 2163, 109, 2080, 662, 2082, 2083, 657, - /* 1410 */ 442, 652, 455, 587, 1957, 462, 2258, 107, 2167, 469, - /* 1420 */ 289, 471, 379, 2163, 480, 481, 478, 199, 2079, 200, - /* 1430 */ 483, 484, 2041, 2232, 202, 223, 1497, 486, 488, 489, - /* 1440 */ 498, 1499, 501, 1494, 502, 208, 210, 1498, 2079, 503, - /* 1450 */ 171, 1500, 638, 504, 506, 1174, 526, 522, 518, 514, - /* 1460 */ 220, 2097, 510, 213, 215, 84, 85, 219, 527, 659, - /* 1470 */ 528, 529, 112, 339, 2047, 531, 658, 565, 580, 1847, - /* 1480 */ 567, 2097, 2238, 88, 148, 300, 570, 276, 225, 659, - /* 1490 */ 242, 1843, 275, 227, 2047, 157, 658, 2244, 182, 158, - /* 1500 */ 1845, 87, 2239, 606, 218, 1841, 2078, 2024, 1429, 2021, - /* 1510 */ 2114, 243, 569, 109, 2080, 662, 2082, 2083, 657, 159, - /* 1520 */ 652, 2020, 2079, 160, 246, 2258, 2078, 2167, 571, 574, - /* 1530 */ 2114, 379, 2163, 109, 2080, 662, 2082, 2083, 657, 244, - /* 1540 */ 652, 577, 2186, 2198, 584, 2140, 2079, 2167, 2208, 594, - /* 1550 */ 632, 379, 2163, 590, 2213, 2097, 252, 368, 255, 597, - /* 1560 */ 7, 603, 582, 659, 2212, 585, 611, 583, 2047, 265, - /* 1570 */ 658, 217, 211, 369, 614, 2261, 216, 1612, 505, 2097, - /* 1580 */ 138, 1495, 622, 2183, 372, 274, 1501, 659, 95, 301, - /* 1590 */ 1970, 630, 2047, 260, 658, 209, 2079, 631, 1984, 263, - /* 1600 */ 2078, 2189, 264, 172, 2114, 566, 1983, 109, 2080, 662, - /* 1610 */ 2082, 2083, 657, 2079, 652, 1982, 302, 2237, 268, 645, - /* 1620 */ 262, 2167, 635, 303, 2078, 379, 2163, 375, 2114, 2097, - /* 1630 */ 97, 110, 2080, 662, 2082, 2083, 657, 659, 652, 1858, - /* 1640 */ 636, 60, 2047, 2148, 658, 2167, 2097, 99, 101, 2166, - /* 1650 */ 2163, 580, 664, 306, 659, 2238, 295, 1820, 1902, 2047, - /* 1660 */ 745, 658, 746, 748, 341, 50, 330, 342, 308, 315, - /* 1670 */ 2244, 182, 310, 2079, 2078, 2239, 606, 2039, 2114, 2038, - /* 1680 */ 2037, 321, 2080, 662, 2082, 2083, 657, 77, 652, 329, - /* 1690 */ 2034, 2078, 319, 2079, 401, 2114, 402, 1459, 110, 2080, - /* 1700 */ 662, 2082, 2083, 657, 1460, 652, 2097, 188, 406, 2032, - /* 1710 */ 408, 409, 2167, 410, 659, 2031, 647, 2163, 412, 2047, - /* 1720 */ 2030, 658, 414, 2029, 416, 602, 2097, 2028, 418, 78, - /* 1730 */ 1425, 1424, 1996, 1995, 659, 1994, 425, 426, 1993, 2047, - /* 1740 */ 1992, 658, 1376, 1948, 1947, 1945, 144, 1944, 1943, 1946, - /* 1750 */ 1942, 660, 1941, 1939, 1938, 2114, 2079, 1937, 110, 2080, - /* 1760 */ 662, 2082, 2083, 657, 193, 652, 443, 1936, 445, 1950, - /* 1770 */ 1935, 2078, 2167, 1934, 1933, 2114, 344, 2163, 169, 2080, - /* 1780 */ 662, 2082, 2083, 657, 146, 652, 1932, 1931, 1930, 2097, - /* 1790 */ 1929, 1928, 1927, 1926, 374, 1925, 1924, 659, 1923, 1922, - /* 1800 */ 1921, 1920, 2047, 1919, 658, 1918, 1949, 1917, 1916, 1915, - /* 1810 */ 1914, 1378, 1913, 473, 2079, 1912, 1911, 337, 338, 1251, - /* 1820 */ 1767, 201, 1766, 203, 1255, 1765, 204, 1763, 1727, 1247, - /* 1830 */ 2067, 2260, 1160, 1159, 2078, 1726, 2011, 2003, 2114, 2079, - /* 1840 */ 1991, 328, 2080, 662, 2082, 2083, 657, 2097, 652, 1990, - /* 1850 */ 214, 494, 75, 206, 1968, 656, 1836, 1762, 177, 1760, - /* 1860 */ 2047, 207, 658, 76, 496, 212, 511, 1758, 513, 515, - /* 1870 */ 1756, 517, 2097, 519, 1754, 1741, 1740, 384, 512, 523, - /* 1880 */ 659, 516, 521, 1723, 1838, 2047, 525, 658, 1194, 520, - /* 1890 */ 62, 1323, 2078, 524, 1837, 1324, 2114, 1238, 1237, 327, - /* 1900 */ 2080, 662, 2082, 2083, 657, 1752, 652, 1236, 2133, 717, - /* 1910 */ 719, 1230, 2079, 1235, 1232, 1231, 1229, 2078, 359, 1745, - /* 1920 */ 360, 2114, 361, 549, 328, 2080, 662, 2082, 2083, 657, - /* 1930 */ 1743, 652, 552, 2079, 1722, 1721, 554, 556, 1720, 558, - /* 1940 */ 111, 1447, 1449, 1446, 2010, 2097, 224, 1451, 26, 1431, - /* 1950 */ 386, 66, 2002, 659, 1433, 162, 1989, 1987, 2047, 572, - /* 1960 */ 658, 2243, 2079, 259, 16, 19, 2097, 58, 59, 258, - /* 1970 */ 20, 30, 64, 2068, 659, 21, 1675, 28, 17, 2047, - /* 1980 */ 1674, 658, 251, 2079, 5, 586, 1660, 6, 588, 370, - /* 1990 */ 2078, 253, 57, 1642, 2114, 2097, 1634, 328, 2080, 662, - /* 2000 */ 2082, 2083, 657, 659, 652, 1680, 1679, 1678, 2047, 170, - /* 2010 */ 658, 564, 257, 29, 371, 2114, 2097, 271, 323, 2080, - /* 2020 */ 662, 2082, 2083, 657, 659, 652, 55, 578, 91, 2047, - /* 2030 */ 1681, 658, 573, 2079, 1609, 173, 1988, 1608, 247, 365, - /* 2040 */ 2078, 1986, 1985, 1967, 2114, 94, 93, 312, 2080, 662, - /* 2050 */ 2082, 2083, 657, 22, 652, 277, 278, 633, 2079, 96, - /* 2060 */ 1640, 2078, 280, 285, 67, 2114, 2097, 1966, 313, 2080, - /* 2070 */ 662, 2082, 2083, 657, 659, 652, 98, 102, 290, 2047, - /* 2080 */ 287, 658, 23, 1561, 1560, 12, 1484, 2117, 10, 663, - /* 2090 */ 1539, 2097, 651, 2079, 1537, 36, 174, 15, 56, 659, - /* 2100 */ 1536, 24, 186, 1508, 2047, 25, 658, 1516, 1309, 665, - /* 2110 */ 667, 2078, 1571, 387, 1306, 2114, 2079, 669, 314, 2080, - /* 2120 */ 662, 2082, 2083, 657, 670, 652, 2097, 1303, 672, 673, - /* 2130 */ 661, 1297, 675, 676, 659, 1295, 2078, 678, 1301, 2047, - /* 2140 */ 2114, 658, 1300, 320, 2080, 662, 2082, 2083, 657, 2097, - /* 2150 */ 652, 679, 1286, 103, 293, 1299, 685, 659, 1298, 1318, - /* 2160 */ 104, 74, 2047, 1314, 658, 1192, 1226, 695, 1225, 1224, - /* 2170 */ 1223, 2078, 1222, 1221, 2079, 2114, 1245, 1219, 324, 2080, - /* 2180 */ 662, 2082, 2083, 657, 1217, 652, 1216, 1215, 707, 294, - /* 2190 */ 1213, 1212, 1211, 2079, 2078, 1210, 1209, 1208, 2114, 1207, - /* 2200 */ 1242, 316, 2080, 662, 2082, 2083, 657, 2097, 652, 1240, - /* 2210 */ 1198, 1204, 1203, 1200, 1199, 659, 1197, 1759, 727, 728, - /* 2220 */ 2047, 729, 658, 1757, 731, 733, 2097, 1755, 732, 735, - /* 2230 */ 737, 1753, 736, 739, 659, 740, 741, 1739, 743, 2047, - /* 2240 */ 1149, 658, 1719, 297, 1470, 747, 751, 307, 1694, 750, - /* 2250 */ 1694, 1694, 2078, 1694, 2079, 1694, 2114, 1694, 1694, 325, - /* 2260 */ 2080, 662, 2082, 2083, 657, 1694, 652, 1694, 1694, 1694, - /* 2270 */ 1694, 2078, 1694, 1694, 1694, 2114, 1694, 1694, 317, 2080, - /* 2280 */ 662, 2082, 2083, 657, 1694, 652, 1694, 2097, 1694, 1694, - /* 2290 */ 1694, 1694, 1694, 1694, 1694, 659, 1694, 1694, 1694, 1694, - /* 2300 */ 2047, 1694, 658, 1694, 1694, 1694, 1694, 1694, 1694, 1694, - /* 2310 */ 1694, 1694, 2079, 1694, 1694, 1694, 1694, 1694, 1694, 1694, - /* 2320 */ 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 2079, 1694, - /* 2330 */ 1694, 1694, 2078, 1694, 1694, 1694, 2114, 1694, 1694, 326, - /* 2340 */ 2080, 662, 2082, 2083, 657, 2097, 652, 1694, 1694, 1694, - /* 2350 */ 1694, 1694, 1694, 659, 1694, 1694, 1694, 1694, 2047, 1694, - /* 2360 */ 658, 2097, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 659, - /* 2370 */ 1694, 1694, 1694, 1694, 2047, 1694, 658, 1694, 1694, 1694, - /* 2380 */ 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, - /* 2390 */ 2078, 2079, 1694, 1694, 2114, 1694, 1694, 318, 2080, 662, - /* 2400 */ 2082, 2083, 657, 1694, 652, 1694, 2078, 2079, 1694, 1694, - /* 2410 */ 2114, 1694, 1694, 331, 2080, 662, 2082, 2083, 657, 1694, - /* 2420 */ 652, 1694, 1694, 1694, 2097, 1694, 2079, 1694, 1694, 1694, - /* 2430 */ 1694, 1694, 659, 1694, 1694, 1694, 1694, 2047, 1694, 658, - /* 2440 */ 2097, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 659, 1694, - /* 2450 */ 1694, 1694, 1694, 2047, 1694, 658, 1694, 1694, 1694, 2097, - /* 2460 */ 1694, 1694, 1694, 1694, 1694, 1694, 1694, 659, 1694, 2078, - /* 2470 */ 1694, 1694, 2047, 2114, 658, 1694, 332, 2080, 662, 2082, - /* 2480 */ 2083, 657, 1694, 652, 1694, 2078, 1694, 1694, 1694, 2114, - /* 2490 */ 2079, 1694, 2091, 2080, 662, 2082, 2083, 657, 1694, 652, - /* 2500 */ 1694, 1694, 1694, 1694, 2078, 1694, 1694, 2079, 2114, 1694, - /* 2510 */ 1694, 2090, 2080, 662, 2082, 2083, 657, 1694, 652, 1694, - /* 2520 */ 1694, 1694, 1694, 2097, 1694, 1694, 1694, 1694, 1694, 1694, - /* 2530 */ 1694, 659, 1694, 1694, 1694, 1694, 2047, 1694, 658, 1694, - /* 2540 */ 2097, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 659, 1694, - /* 2550 */ 1694, 1694, 1694, 2047, 1694, 658, 1694, 1694, 1694, 1694, - /* 2560 */ 1694, 1694, 1694, 1694, 1694, 1694, 1694, 2079, 2078, 1694, - /* 2570 */ 1694, 1694, 2114, 1694, 1694, 2089, 2080, 662, 2082, 2083, - /* 2580 */ 657, 1694, 652, 1694, 1694, 2078, 1694, 2079, 1694, 2114, - /* 2590 */ 1694, 1694, 346, 2080, 662, 2082, 2083, 657, 1694, 652, - /* 2600 */ 2097, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 659, 1694, - /* 2610 */ 1694, 1694, 1694, 2047, 1694, 658, 1694, 1694, 1694, 1694, - /* 2620 */ 2097, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 659, 1694, - /* 2630 */ 1694, 1694, 1694, 2047, 1694, 658, 1694, 1694, 1694, 1694, - /* 2640 */ 1694, 1694, 1694, 1694, 1694, 2078, 1694, 1694, 1694, 2114, - /* 2650 */ 1694, 1694, 347, 2080, 662, 2082, 2083, 657, 1694, 652, - /* 2660 */ 1694, 2079, 1694, 1694, 1694, 2078, 1694, 1694, 1694, 2114, - /* 2670 */ 1694, 1694, 343, 2080, 662, 2082, 2083, 657, 2079, 652, - /* 2680 */ 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, - /* 2690 */ 1694, 1694, 1694, 1694, 2097, 1694, 1694, 1694, 1694, 1694, - /* 2700 */ 1694, 1694, 659, 1694, 1694, 1694, 1694, 2047, 1694, 658, - /* 2710 */ 1694, 2097, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 659, - /* 2720 */ 1694, 1694, 1694, 1694, 2047, 1694, 658, 1694, 1694, 1694, - /* 2730 */ 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 2078, - /* 2740 */ 2079, 1694, 1694, 2114, 1694, 1694, 348, 2080, 662, 2082, - /* 2750 */ 2083, 657, 1694, 652, 1694, 1694, 660, 1694, 1694, 1694, - /* 2760 */ 2114, 1694, 1694, 323, 2080, 662, 2082, 2083, 657, 1694, - /* 2770 */ 652, 1694, 1694, 2097, 1694, 1694, 1694, 1694, 1694, 1694, - /* 2780 */ 1694, 659, 1694, 1694, 1694, 1694, 2047, 1694, 658, 1694, - /* 2790 */ 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, - /* 2800 */ 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, - /* 2810 */ 1694, 1694, 1694, 1694, 1694, 1694, 1694, 1694, 2078, 1694, - /* 2820 */ 1694, 1694, 2114, 1694, 1694, 322, 2080, 662, 2082, 2083, - /* 2830 */ 657, 1694, 652, + /* 1110 */ 450, 449, 335, 441, 440, 439, 643, 436, 435, 351, + /* 1120 */ 549, 249, 183, 2179, 2180, 613, 137, 2184, 643, 1615, + /* 1130 */ 305, 643, 1858, 1891, 152, 80, 79, 427, 2051, 2051, + /* 1140 */ 189, 2083, 643, 2051, 241, 239, 1257, 577, 51, 1861, + /* 1150 */ 3, 145, 1486, 134, 1481, 643, 1706, 643, 622, 1256, + /* 1160 */ 334, 1861, 1479, 413, 1861, 411, 407, 403, 400, 420, + /* 1170 */ 1705, 626, 2083, 286, 2101, 1861, 1472, 611, 1470, 1489, + /* 1180 */ 1491, 267, 621, 228, 643, 650, 226, 2051, 1861, 659, + /* 1190 */ 1861, 1440, 651, 1545, 1546, 1548, 1549, 1550, 1551, 643, + /* 1200 */ 640, 431, 2051, 1475, 1476, 2101, 1704, 185, 643, 643, + /* 1210 */ 1703, 1445, 1446, 660, 432, 641, 2051, 1861, 2051, 2082, + /* 1220 */ 659, 479, 2083, 2118, 292, 392, 109, 2084, 663, 2086, + /* 1230 */ 2087, 658, 1861, 653, 230, 1702, 1701, 229, 179, 2083, + /* 1240 */ 2171, 1861, 1861, 1618, 379, 2167, 232, 1483, 234, 231, + /* 1250 */ 2082, 233, 2051, 594, 2118, 2101, 2051, 109, 2084, 663, + /* 1260 */ 2086, 2087, 658, 660, 653, 152, 2198, 1745, 2051, 2262, + /* 1270 */ 659, 2171, 2101, 63, 221, 379, 2167, 564, 63, 563, + /* 1280 */ 660, 2051, 2051, 261, 254, 2051, 2205, 659, 105, 552, + /* 1290 */ 1693, 1694, 2102, 152, 396, 13, 12, 47, 102, 2083, + /* 1300 */ 2082, 279, 70, 2072, 2118, 150, 152, 168, 2084, 663, + /* 1310 */ 2086, 2087, 658, 63, 653, 1482, 1968, 2082, 1735, 2083, + /* 1320 */ 1902, 2118, 1443, 47, 109, 2084, 663, 2086, 2087, 658, + /* 1330 */ 1647, 653, 2101, 2201, 1573, 1646, 2262, 753, 2171, 703, + /* 1340 */ 660, 256, 379, 2167, 619, 2051, 1741, 659, 269, 2209, + /* 1350 */ 625, 298, 2101, 2218, 1402, 614, 2074, 47, 284, 635, + /* 1360 */ 660, 1222, 288, 1283, 667, 2051, 175, 659, 150, 152, + /* 1370 */ 1589, 704, 743, 739, 735, 731, 296, 2082, 266, 135, + /* 1380 */ 1538, 2118, 150, 1203, 109, 2084, 663, 2086, 2087, 658, + /* 1390 */ 1, 653, 4, 1220, 399, 745, 2262, 2082, 2171, 404, + /* 1400 */ 349, 2118, 379, 2167, 109, 2084, 663, 2086, 2087, 658, + /* 1410 */ 1425, 653, 299, 588, 304, 195, 2262, 107, 2171, 1204, + /* 1420 */ 289, 1311, 379, 2167, 433, 1315, 1322, 1499, 2083, 1969, + /* 1430 */ 437, 470, 442, 2236, 1494, 223, 1320, 455, 462, 155, + /* 1440 */ 1961, 469, 480, 471, 481, 478, 483, 200, 2083, 484, + /* 1450 */ 171, 199, 639, 202, 486, 488, 526, 522, 518, 514, + /* 1460 */ 220, 2101, 1500, 489, 1502, 498, 501, 1497, 208, 660, + /* 1470 */ 1501, 502, 210, 503, 2051, 1503, 659, 506, 504, 213, + /* 1480 */ 215, 2101, 1176, 84, 85, 510, 527, 276, 531, 660, + /* 1490 */ 529, 528, 275, 219, 2051, 111, 659, 2028, 2025, 339, + /* 1500 */ 1851, 87, 566, 2024, 218, 88, 2082, 571, 1432, 300, + /* 1510 */ 2118, 243, 568, 109, 2084, 663, 2086, 2087, 658, 148, + /* 1520 */ 653, 242, 2083, 225, 1847, 2262, 2082, 2171, 227, 157, + /* 1530 */ 2118, 379, 2167, 109, 2084, 663, 2086, 2087, 658, 158, + /* 1540 */ 653, 1849, 2190, 1845, 570, 2144, 2083, 2171, 159, 160, + /* 1550 */ 572, 379, 2167, 244, 246, 2101, 578, 2202, 2212, 585, + /* 1560 */ 575, 595, 633, 660, 2217, 252, 255, 591, 2051, 368, + /* 1570 */ 659, 217, 211, 598, 7, 604, 216, 586, 505, 2101, + /* 1580 */ 584, 2216, 583, 265, 615, 369, 1615, 660, 612, 2265, + /* 1590 */ 138, 262, 2051, 1498, 659, 209, 2083, 2193, 2187, 623, + /* 1600 */ 2082, 372, 172, 263, 2118, 1504, 260, 109, 2084, 663, + /* 1610 */ 2086, 2087, 658, 2083, 653, 274, 264, 95, 268, 646, + /* 1620 */ 301, 2171, 1974, 2241, 2082, 379, 2167, 636, 2118, 2101, + /* 1630 */ 631, 110, 2084, 663, 2086, 2087, 658, 660, 653, 302, + /* 1640 */ 637, 632, 2051, 1988, 659, 2171, 2101, 97, 1987, 2170, + /* 1650 */ 2167, 303, 1986, 375, 660, 1862, 60, 2152, 99, 2051, + /* 1660 */ 101, 659, 665, 1906, 746, 1824, 295, 306, 747, 310, + /* 1670 */ 749, 341, 50, 2083, 2082, 315, 2043, 308, 2118, 2042, + /* 1680 */ 342, 321, 2084, 663, 2086, 2087, 658, 329, 653, 330, + /* 1690 */ 319, 2082, 2041, 2083, 77, 2118, 2038, 401, 110, 2084, + /* 1700 */ 663, 2086, 2087, 658, 402, 653, 2101, 1462, 1463, 188, + /* 1710 */ 406, 2036, 2171, 408, 660, 409, 648, 2167, 410, 2051, + /* 1720 */ 2035, 659, 412, 2034, 414, 603, 2101, 2033, 416, 2032, + /* 1730 */ 418, 78, 1428, 1427, 660, 2000, 1999, 1998, 426, 2051, + /* 1740 */ 425, 659, 1997, 1996, 1379, 1952, 1951, 1949, 1948, 144, + /* 1750 */ 1947, 661, 1950, 1946, 1945, 2118, 2083, 1943, 110, 2084, + /* 1760 */ 663, 2086, 2087, 658, 1942, 653, 1941, 193, 443, 1940, + /* 1770 */ 445, 2082, 2171, 1954, 1939, 2118, 344, 2167, 169, 2084, + /* 1780 */ 663, 2086, 2087, 658, 1381, 653, 1938, 1937, 1936, 2101, + /* 1790 */ 1935, 1934, 1933, 1932, 374, 1931, 1930, 660, 1929, 1928, + /* 1800 */ 1927, 1926, 2051, 1925, 659, 146, 1924, 1923, 1922, 1953, + /* 1810 */ 1921, 1920, 1919, 1918, 2083, 1917, 473, 1916, 1915, 1254, + /* 1820 */ 337, 338, 1770, 201, 1258, 1769, 203, 1768, 204, 1250, + /* 1830 */ 1766, 2264, 1730, 177, 2082, 1162, 1729, 1161, 2118, 2083, + /* 1840 */ 2015, 328, 2084, 663, 2086, 2087, 658, 2101, 653, 2007, + /* 1850 */ 1995, 2071, 494, 1994, 1972, 657, 206, 1840, 75, 76, + /* 1860 */ 2051, 214, 659, 496, 207, 212, 1765, 1763, 511, 1761, + /* 1870 */ 515, 1759, 2101, 513, 519, 1757, 517, 384, 1744, 512, + /* 1880 */ 660, 523, 521, 525, 1743, 2051, 516, 659, 1726, 520, + /* 1890 */ 1842, 62, 2082, 1196, 1327, 524, 2118, 1841, 1326, 327, + /* 1900 */ 2084, 663, 2086, 2087, 658, 1241, 653, 1240, 2137, 1239, + /* 1910 */ 1755, 1232, 2083, 1748, 1238, 1237, 1234, 2082, 1233, 1746, + /* 1920 */ 1231, 2118, 359, 360, 328, 2084, 663, 2086, 2087, 658, + /* 1930 */ 718, 653, 550, 2083, 361, 720, 224, 553, 1725, 555, + /* 1940 */ 1724, 557, 1723, 559, 112, 2101, 1450, 2014, 26, 1452, + /* 1950 */ 386, 1449, 1454, 660, 1436, 66, 2006, 573, 2051, 1993, + /* 1960 */ 659, 1434, 2083, 1991, 162, 2247, 2101, 19, 16, 1663, + /* 1970 */ 20, 58, 59, 28, 660, 258, 259, 251, 30, 2051, + /* 1980 */ 64, 659, 17, 2083, 2072, 587, 1678, 21, 5, 6, + /* 1990 */ 2082, 589, 1677, 370, 2118, 2101, 253, 328, 2084, 663, + /* 2000 */ 2086, 2087, 658, 660, 653, 1682, 1645, 170, 2051, 257, + /* 2010 */ 659, 565, 271, 55, 1681, 2118, 2101, 29, 323, 2084, + /* 2020 */ 663, 2086, 2087, 658, 660, 653, 574, 579, 371, 2051, + /* 2030 */ 247, 659, 365, 2083, 1637, 57, 91, 173, 1992, 1990, + /* 2040 */ 2082, 1989, 1683, 1971, 2118, 1684, 1612, 312, 2084, 663, + /* 2050 */ 2086, 2087, 658, 1611, 653, 93, 94, 277, 2083, 96, + /* 2060 */ 22, 2082, 278, 1970, 280, 2118, 2101, 1643, 313, 2084, + /* 2070 */ 663, 2086, 2087, 658, 660, 653, 285, 287, 67, 2051, + /* 2080 */ 290, 659, 98, 102, 23, 1564, 634, 1563, 12, 1487, + /* 2090 */ 1519, 2101, 2121, 2083, 174, 1542, 1540, 652, 10, 660, + /* 2100 */ 36, 186, 1539, 15, 2051, 24, 659, 1574, 1511, 25, + /* 2110 */ 56, 2082, 1312, 662, 666, 2118, 2083, 664, 314, 2084, + /* 2120 */ 663, 2086, 2087, 658, 387, 653, 2101, 668, 670, 1309, + /* 2130 */ 671, 673, 1306, 1300, 660, 674, 2082, 676, 1298, 2051, + /* 2140 */ 2118, 659, 677, 320, 2084, 663, 2086, 2087, 658, 2101, + /* 2150 */ 653, 679, 680, 1289, 293, 103, 104, 660, 1321, 1304, + /* 2160 */ 686, 74, 2051, 1317, 659, 1194, 1248, 1303, 1302, 1301, + /* 2170 */ 696, 2082, 1228, 1227, 2083, 2118, 708, 1226, 324, 2084, + /* 2180 */ 663, 2086, 2087, 658, 1225, 653, 1224, 1223, 1221, 1219, + /* 2190 */ 1218, 1217, 294, 2083, 2082, 1215, 1214, 1213, 2118, 1212, + /* 2200 */ 1211, 316, 2084, 663, 2086, 2087, 658, 2101, 653, 1210, + /* 2210 */ 1245, 1209, 1200, 1243, 1206, 660, 1205, 1202, 1201, 1199, + /* 2220 */ 2051, 1762, 659, 728, 730, 1760, 2101, 732, 729, 1758, + /* 2230 */ 734, 736, 738, 1756, 660, 733, 740, 737, 742, 2051, + /* 2240 */ 1742, 659, 741, 744, 1151, 1722, 297, 748, 1697, 1473, + /* 2250 */ 307, 751, 2082, 1697, 2083, 1697, 2118, 752, 1697, 325, + /* 2260 */ 2084, 663, 2086, 2087, 658, 1697, 653, 1697, 1697, 1697, + /* 2270 */ 1697, 2082, 1697, 1697, 1697, 2118, 1697, 1697, 317, 2084, + /* 2280 */ 663, 2086, 2087, 658, 1697, 653, 1697, 2101, 1697, 1697, + /* 2290 */ 1697, 1697, 1697, 1697, 1697, 660, 1697, 1697, 1697, 1697, + /* 2300 */ 2051, 1697, 659, 1697, 1697, 1697, 1697, 1697, 1697, 1697, + /* 2310 */ 1697, 1697, 2083, 1697, 1697, 1697, 1697, 1697, 1697, 1697, + /* 2320 */ 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 2083, 1697, + /* 2330 */ 1697, 1697, 2082, 1697, 1697, 1697, 2118, 1697, 1697, 326, + /* 2340 */ 2084, 663, 2086, 2087, 658, 2101, 653, 1697, 1697, 1697, + /* 2350 */ 1697, 1697, 1697, 660, 1697, 1697, 1697, 1697, 2051, 1697, + /* 2360 */ 659, 2101, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 660, + /* 2370 */ 1697, 1697, 1697, 1697, 2051, 1697, 659, 1697, 1697, 1697, + /* 2380 */ 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, + /* 2390 */ 2082, 2083, 1697, 1697, 2118, 1697, 1697, 318, 2084, 663, + /* 2400 */ 2086, 2087, 658, 1697, 653, 1697, 2082, 2083, 1697, 1697, + /* 2410 */ 2118, 1697, 1697, 331, 2084, 663, 2086, 2087, 658, 1697, + /* 2420 */ 653, 1697, 1697, 1697, 2101, 1697, 2083, 1697, 1697, 1697, + /* 2430 */ 1697, 1697, 660, 1697, 1697, 1697, 1697, 2051, 1697, 659, + /* 2440 */ 2101, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 660, 1697, + /* 2450 */ 1697, 1697, 1697, 2051, 1697, 659, 1697, 1697, 1697, 2101, + /* 2460 */ 1697, 1697, 1697, 1697, 1697, 1697, 1697, 660, 1697, 2082, + /* 2470 */ 1697, 1697, 2051, 2118, 659, 1697, 332, 2084, 663, 2086, + /* 2480 */ 2087, 658, 1697, 653, 1697, 2082, 1697, 1697, 1697, 2118, + /* 2490 */ 2083, 1697, 2095, 2084, 663, 2086, 2087, 658, 1697, 653, + /* 2500 */ 1697, 1697, 1697, 1697, 2082, 1697, 1697, 2083, 2118, 1697, + /* 2510 */ 1697, 2094, 2084, 663, 2086, 2087, 658, 1697, 653, 1697, + /* 2520 */ 1697, 1697, 1697, 2101, 1697, 1697, 1697, 1697, 1697, 1697, + /* 2530 */ 1697, 660, 1697, 1697, 1697, 1697, 2051, 1697, 659, 1697, + /* 2540 */ 2101, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 660, 1697, + /* 2550 */ 1697, 1697, 1697, 2051, 1697, 659, 1697, 1697, 1697, 1697, + /* 2560 */ 1697, 1697, 1697, 1697, 1697, 1697, 1697, 2083, 2082, 1697, + /* 2570 */ 1697, 1697, 2118, 1697, 1697, 2093, 2084, 663, 2086, 2087, + /* 2580 */ 658, 1697, 653, 1697, 1697, 2082, 1697, 2083, 1697, 2118, + /* 2590 */ 1697, 1697, 346, 2084, 663, 2086, 2087, 658, 1697, 653, + /* 2600 */ 2101, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 660, 1697, + /* 2610 */ 1697, 1697, 1697, 2051, 1697, 659, 1697, 1697, 1697, 1697, + /* 2620 */ 2101, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 660, 1697, + /* 2630 */ 1697, 1697, 1697, 2051, 1697, 659, 1697, 1697, 1697, 1697, + /* 2640 */ 1697, 1697, 1697, 1697, 1697, 2082, 1697, 1697, 1697, 2118, + /* 2650 */ 1697, 1697, 347, 2084, 663, 2086, 2087, 658, 1697, 653, + /* 2660 */ 1697, 2083, 1697, 1697, 1697, 2082, 1697, 1697, 1697, 2118, + /* 2670 */ 1697, 1697, 343, 2084, 663, 2086, 2087, 658, 2083, 653, + /* 2680 */ 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, + /* 2690 */ 1697, 1697, 1697, 1697, 2101, 1697, 1697, 1697, 1697, 1697, + /* 2700 */ 1697, 1697, 660, 1697, 1697, 1697, 1697, 2051, 1697, 659, + /* 2710 */ 1697, 2101, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 660, + /* 2720 */ 1697, 1697, 1697, 1697, 2051, 1697, 659, 1697, 1697, 1697, + /* 2730 */ 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 2082, + /* 2740 */ 2083, 1697, 1697, 2118, 1697, 1697, 348, 2084, 663, 2086, + /* 2750 */ 2087, 658, 1697, 653, 1697, 1697, 661, 1697, 1697, 1697, + /* 2760 */ 2118, 1697, 1697, 323, 2084, 663, 2086, 2087, 658, 1697, + /* 2770 */ 653, 1697, 1697, 2101, 1697, 1697, 1697, 1697, 1697, 1697, + /* 2780 */ 1697, 660, 1697, 1697, 1697, 1697, 2051, 1697, 659, 1697, + /* 2790 */ 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, + /* 2800 */ 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, + /* 2810 */ 1697, 1697, 1697, 1697, 1697, 1697, 1697, 1697, 2082, 1697, + /* 2820 */ 1697, 1697, 2118, 1697, 1697, 322, 2084, 663, 2086, 2087, + /* 2830 */ 658, 1697, 653, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 367, 443, 380, 347, 332, 447, 336, 357, 338, 339, - /* 10 */ 354, 378, 12, 13, 14, 365, 380, 395, 396, 367, - /* 20 */ 20, 463, 22, 340, 374, 467, 468, 332, 392, 20, - /* 30 */ 378, 395, 396, 33, 331, 35, 333, 365, 367, 12, - /* 40 */ 13, 14, 15, 16, 20, 373, 413, 414, 415, 378, - /* 50 */ 378, 336, 380, 338, 339, 357, 373, 424, 58, 365, - /* 60 */ 365, 20, 365, 365, 64, 413, 414, 415, 373, 372, - /* 70 */ 372, 71, 374, 378, 364, 380, 424, 14, 381, 381, - /* 80 */ 386, 387, 410, 20, 413, 414, 414, 377, 20, 417, - /* 90 */ 418, 419, 420, 421, 422, 424, 424, 97, 432, 433, - /* 100 */ 100, 429, 340, 431, 20, 410, 340, 435, 436, 414, + /* 0 */ 367, 443, 380, 347, 332, 447, 336, 365, 338, 339, + /* 10 */ 354, 378, 12, 13, 14, 373, 380, 395, 396, 367, + /* 20 */ 20, 463, 22, 340, 20, 467, 468, 332, 392, 416, + /* 30 */ 378, 395, 396, 33, 361, 35, 0, 365, 12, 13, + /* 40 */ 14, 15, 16, 340, 20, 373, 413, 414, 415, 20, + /* 50 */ 378, 22, 380, 340, 340, 442, 373, 424, 58, 443, + /* 60 */ 365, 419, 365, 447, 64, 413, 414, 415, 373, 372, + /* 70 */ 356, 71, 331, 378, 333, 380, 424, 363, 381, 463, + /* 80 */ 51, 408, 410, 467, 468, 382, 414, 373, 20, 417, + /* 90 */ 418, 419, 420, 421, 422, 367, 424, 97, 4, 63, + /* 100 */ 100, 429, 389, 431, 391, 410, 378, 435, 436, 414, /* 110 */ 12, 13, 417, 418, 419, 420, 421, 422, 20, 424, - /* 120 */ 22, 449, 439, 440, 441, 0, 443, 444, 367, 457, - /* 130 */ 447, 33, 20, 35, 22, 373, 136, 137, 337, 378, - /* 140 */ 443, 340, 341, 14, 447, 462, 463, 35, 382, 20, - /* 150 */ 467, 468, 0, 458, 459, 4, 58, 0, 427, 462, - /* 160 */ 463, 430, 64, 51, 467, 468, 166, 167, 100, 71, - /* 170 */ 0, 63, 172, 173, 413, 414, 24, 25, 26, 27, - /* 180 */ 28, 29, 30, 31, 32, 424, 186, 20, 188, 365, - /* 190 */ 100, 66, 67, 68, 43, 97, 45, 46, 100, 74, - /* 200 */ 75, 439, 440, 441, 79, 443, 444, 166, 167, 84, - /* 210 */ 85, 387, 80, 213, 214, 90, 216, 217, 218, 219, + /* 120 */ 22, 449, 439, 440, 441, 332, 443, 444, 111, 457, + /* 130 */ 447, 33, 20, 35, 22, 376, 136, 137, 379, 380, + /* 140 */ 443, 413, 414, 415, 447, 462, 463, 35, 432, 433, + /* 150 */ 467, 468, 424, 458, 459, 58, 58, 0, 20, 462, + /* 160 */ 463, 20, 64, 51, 467, 468, 166, 167, 100, 71, + /* 170 */ 0, 378, 172, 173, 8, 9, 364, 160, 12, 13, + /* 180 */ 14, 15, 16, 66, 67, 68, 186, 63, 188, 377, + /* 190 */ 73, 74, 75, 365, 100, 97, 79, 100, 100, 102, + /* 200 */ 14, 84, 85, 100, 8, 9, 20, 90, 12, 13, + /* 210 */ 14, 15, 16, 213, 214, 387, 216, 217, 218, 219, /* 220 */ 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, /* 230 */ 230, 231, 232, 233, 136, 137, 66, 67, 68, 69, - /* 240 */ 70, 20, 72, 73, 74, 75, 76, 77, 78, 79, + /* 240 */ 70, 100, 72, 73, 74, 75, 76, 77, 78, 79, /* 250 */ 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, - /* 260 */ 90, 91, 92, 4, 166, 167, 171, 100, 63, 112, - /* 270 */ 172, 173, 21, 141, 142, 24, 25, 26, 27, 28, + /* 260 */ 90, 91, 92, 20, 166, 167, 171, 101, 96, 112, + /* 270 */ 172, 173, 21, 165, 35, 24, 25, 26, 27, 28, /* 280 */ 29, 30, 31, 32, 186, 112, 188, 130, 131, 132, - /* 290 */ 133, 134, 135, 8, 9, 166, 164, 12, 13, 14, - /* 300 */ 15, 16, 20, 130, 131, 132, 133, 134, 135, 329, - /* 310 */ 416, 213, 214, 58, 216, 217, 218, 219, 220, 221, + /* 290 */ 133, 134, 135, 8, 9, 63, 4, 12, 13, 14, + /* 300 */ 15, 16, 373, 130, 131, 132, 133, 134, 135, 329, + /* 310 */ 71, 213, 214, 384, 216, 217, 218, 219, 220, 221, /* 320 */ 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, - /* 330 */ 232, 233, 234, 12, 13, 376, 442, 365, 379, 380, - /* 340 */ 250, 20, 97, 22, 337, 373, 100, 340, 341, 64, - /* 350 */ 255, 256, 257, 0, 33, 100, 35, 102, 113, 114, + /* 330 */ 232, 233, 234, 12, 13, 43, 0, 45, 46, 20, + /* 340 */ 168, 20, 97, 22, 250, 237, 373, 250, 20, 64, + /* 350 */ 255, 256, 257, 250, 33, 247, 35, 384, 113, 114, /* 360 */ 115, 116, 117, 118, 119, 120, 121, 122, 346, 124, /* 370 */ 125, 126, 127, 128, 129, 0, 2, 397, 332, 58, - /* 380 */ 111, 401, 8, 9, 4, 64, 12, 13, 14, 15, - /* 390 */ 16, 419, 71, 371, 109, 340, 21, 20, 234, 24, + /* 380 */ 44, 401, 8, 9, 362, 64, 12, 13, 14, 15, + /* 390 */ 16, 250, 71, 371, 109, 336, 21, 338, 339, 24, /* 400 */ 25, 26, 27, 28, 29, 30, 31, 32, 8, 9, - /* 410 */ 340, 365, 12, 13, 14, 15, 16, 250, 97, 373, - /* 420 */ 20, 100, 340, 443, 378, 71, 380, 447, 234, 365, - /* 430 */ 236, 12, 13, 14, 340, 111, 372, 361, 356, 20, - /* 440 */ 22, 22, 462, 463, 389, 381, 391, 467, 468, 332, - /* 450 */ 165, 213, 33, 35, 35, 373, 410, 136, 137, 389, - /* 460 */ 414, 391, 3, 417, 418, 419, 420, 421, 422, 423, - /* 470 */ 424, 425, 426, 66, 67, 68, 35, 58, 340, 20, - /* 480 */ 100, 74, 75, 389, 408, 391, 79, 166, 167, 3, - /* 490 */ 71, 84, 85, 172, 173, 378, 250, 90, 260, 261, - /* 500 */ 262, 263, 264, 265, 266, 250, 71, 186, 155, 188, - /* 510 */ 251, 373, 71, 136, 137, 97, 97, 164, 44, 100, - /* 520 */ 351, 352, 237, 238, 239, 240, 241, 242, 243, 244, - /* 530 */ 245, 246, 247, 20, 213, 214, 402, 216, 217, 218, + /* 410 */ 340, 365, 12, 13, 14, 15, 16, 357, 97, 373, + /* 420 */ 20, 100, 80, 443, 378, 365, 380, 447, 100, 357, + /* 430 */ 20, 12, 13, 14, 374, 130, 131, 365, 373, 20, + /* 440 */ 135, 22, 462, 463, 372, 20, 374, 467, 468, 384, + /* 450 */ 165, 131, 33, 381, 35, 135, 410, 136, 137, 389, + /* 460 */ 414, 391, 111, 417, 418, 419, 420, 421, 422, 423, + /* 470 */ 424, 425, 426, 0, 8, 9, 234, 58, 12, 13, + /* 480 */ 14, 15, 16, 141, 142, 166, 167, 166, 167, 344, + /* 490 */ 71, 0, 337, 172, 173, 340, 341, 24, 25, 26, + /* 500 */ 27, 28, 29, 30, 31, 32, 164, 186, 337, 188, + /* 510 */ 44, 340, 341, 368, 194, 195, 97, 397, 198, 100, + /* 520 */ 200, 401, 237, 238, 239, 240, 241, 242, 243, 244, + /* 530 */ 245, 246, 247, 332, 213, 214, 402, 216, 217, 218, /* 540 */ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, - /* 550 */ 229, 230, 231, 232, 233, 136, 137, 8, 9, 366, - /* 560 */ 101, 12, 13, 14, 15, 16, 8, 9, 168, 332, - /* 570 */ 12, 13, 14, 15, 16, 101, 438, 439, 440, 441, - /* 580 */ 332, 443, 444, 340, 443, 166, 167, 333, 447, 8, - /* 590 */ 9, 172, 173, 12, 13, 14, 15, 16, 443, 356, - /* 600 */ 366, 340, 447, 462, 463, 186, 363, 188, 467, 468, - /* 610 */ 332, 20, 428, 365, 430, 378, 373, 356, 463, 130, - /* 620 */ 47, 373, 467, 468, 363, 44, 378, 168, 380, 428, - /* 630 */ 250, 430, 213, 214, 373, 216, 217, 218, 219, 220, + /* 550 */ 229, 230, 231, 232, 233, 136, 137, 66, 67, 68, + /* 560 */ 71, 136, 137, 443, 73, 74, 75, 447, 168, 100, + /* 570 */ 79, 379, 380, 367, 344, 84, 85, 71, 250, 378, + /* 580 */ 332, 90, 462, 463, 378, 166, 167, 467, 468, 2, + /* 590 */ 360, 172, 173, 1, 2, 8, 9, 0, 368, 12, + /* 600 */ 13, 14, 15, 16, 111, 186, 3, 188, 351, 352, + /* 610 */ 8, 9, 21, 365, 12, 13, 14, 15, 16, 413, + /* 620 */ 414, 373, 340, 20, 0, 34, 378, 36, 380, 234, + /* 630 */ 424, 236, 213, 214, 346, 216, 217, 218, 219, 220, /* 640 */ 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, - /* 650 */ 231, 232, 233, 12, 13, 346, 378, 332, 410, 101, - /* 660 */ 397, 20, 414, 22, 401, 417, 418, 419, 420, 421, - /* 670 */ 422, 362, 424, 100, 33, 427, 35, 429, 430, 431, - /* 680 */ 371, 168, 165, 435, 436, 196, 197, 22, 8, 9, - /* 690 */ 365, 100, 12, 13, 14, 15, 16, 365, 373, 58, - /* 700 */ 35, 340, 416, 378, 372, 380, 443, 340, 2, 353, - /* 710 */ 447, 355, 71, 381, 8, 9, 379, 380, 12, 13, - /* 720 */ 14, 15, 16, 356, 366, 462, 463, 178, 442, 131, - /* 730 */ 467, 468, 340, 135, 373, 410, 71, 340, 97, 414, - /* 740 */ 373, 100, 417, 418, 419, 420, 421, 422, 356, 424, - /* 750 */ 37, 12, 13, 356, 237, 20, 270, 22, 357, 20, - /* 760 */ 365, 22, 97, 357, 247, 373, 365, 372, 130, 131, - /* 770 */ 373, 365, 33, 135, 35, 374, 381, 136, 137, 0, - /* 780 */ 374, 101, 332, 8, 9, 0, 51, 12, 13, 14, - /* 790 */ 15, 16, 194, 195, 469, 470, 198, 58, 200, 332, - /* 800 */ 439, 440, 441, 332, 443, 444, 344, 166, 167, 416, - /* 810 */ 71, 351, 352, 172, 173, 340, 103, 112, 105, 106, - /* 820 */ 181, 108, 360, 44, 275, 112, 365, 186, 378, 188, - /* 830 */ 368, 356, 365, 372, 39, 442, 97, 21, 133, 100, - /* 840 */ 373, 250, 381, 204, 205, 378, 133, 380, 373, 378, - /* 850 */ 34, 186, 36, 188, 213, 214, 332, 216, 217, 218, + /* 650 */ 231, 232, 233, 12, 13, 373, 58, 332, 410, 371, + /* 660 */ 367, 20, 414, 22, 340, 417, 418, 419, 420, 421, + /* 670 */ 422, 378, 424, 20, 33, 427, 35, 429, 430, 431, + /* 680 */ 356, 8, 9, 435, 436, 12, 13, 14, 15, 16, + /* 690 */ 365, 332, 365, 101, 20, 365, 0, 373, 373, 58, + /* 700 */ 102, 340, 372, 378, 101, 380, 413, 414, 332, 112, + /* 710 */ 397, 381, 71, 386, 387, 213, 37, 424, 22, 250, + /* 720 */ 438, 439, 440, 441, 340, 443, 444, 130, 131, 132, + /* 730 */ 133, 134, 135, 427, 373, 410, 430, 378, 97, 414, + /* 740 */ 356, 100, 417, 418, 419, 420, 421, 422, 3, 424, + /* 750 */ 332, 12, 13, 340, 378, 375, 443, 373, 378, 20, + /* 760 */ 447, 22, 260, 261, 262, 263, 264, 265, 266, 356, + /* 770 */ 168, 168, 33, 366, 35, 462, 463, 136, 137, 155, + /* 780 */ 467, 468, 103, 416, 105, 106, 373, 108, 164, 136, + /* 790 */ 137, 112, 340, 366, 469, 470, 378, 58, 366, 332, + /* 800 */ 439, 440, 441, 332, 443, 444, 20, 166, 167, 442, + /* 810 */ 71, 366, 133, 172, 173, 340, 8, 9, 416, 340, + /* 820 */ 12, 13, 14, 15, 16, 172, 173, 186, 366, 188, + /* 830 */ 365, 356, 365, 332, 0, 356, 97, 372, 363, 100, + /* 840 */ 373, 389, 168, 391, 442, 378, 381, 380, 373, 378, + /* 850 */ 397, 178, 373, 58, 213, 214, 332, 216, 217, 218, /* 860 */ 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, - /* 870 */ 229, 230, 231, 232, 233, 136, 137, 410, 213, 214, - /* 880 */ 397, 414, 1, 2, 417, 418, 419, 420, 421, 422, - /* 890 */ 344, 424, 20, 14, 14, 15, 16, 112, 431, 20, - /* 900 */ 100, 332, 378, 436, 365, 166, 167, 340, 340, 20, - /* 910 */ 110, 172, 173, 374, 368, 130, 131, 132, 133, 134, - /* 920 */ 135, 365, 20, 356, 356, 186, 443, 188, 8, 9, - /* 930 */ 447, 354, 12, 13, 14, 15, 16, 381, 373, 375, - /* 940 */ 373, 373, 378, 168, 332, 462, 463, 378, 0, 384, - /* 950 */ 467, 468, 213, 214, 111, 216, 217, 218, 219, 220, + /* 870 */ 229, 230, 231, 232, 233, 136, 137, 410, 366, 378, + /* 880 */ 397, 414, 48, 365, 417, 418, 419, 420, 421, 422, + /* 890 */ 372, 424, 375, 357, 99, 378, 443, 102, 431, 381, + /* 900 */ 447, 365, 378, 436, 443, 166, 167, 20, 447, 101, + /* 910 */ 374, 172, 173, 351, 352, 462, 463, 181, 100, 39, + /* 920 */ 467, 468, 22, 462, 463, 186, 443, 188, 467, 468, + /* 930 */ 447, 365, 428, 14, 430, 35, 14, 366, 372, 20, + /* 940 */ 204, 205, 20, 45, 46, 462, 463, 381, 275, 44, + /* 950 */ 467, 468, 213, 214, 168, 216, 217, 218, 219, 220, /* 960 */ 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, - /* 970 */ 231, 232, 233, 100, 18, 18, 20, 397, 12, 13, - /* 980 */ 23, 373, 101, 27, 22, 4, 30, 332, 22, 33, - /* 990 */ 378, 373, 384, 358, 37, 38, 361, 35, 41, 33, - /* 1000 */ 19, 35, 384, 160, 48, 58, 50, 332, 22, 53, - /* 1010 */ 332, 63, 375, 44, 33, 378, 59, 60, 61, 62, - /* 1020 */ 365, 35, 332, 443, 58, 136, 137, 447, 373, 48, - /* 1030 */ 45, 46, 332, 378, 53, 380, 366, 71, 340, 58, - /* 1040 */ 168, 332, 462, 463, 249, 166, 99, 467, 468, 102, - /* 1050 */ 58, 332, 332, 378, 356, 99, 378, 100, 185, 97, - /* 1060 */ 187, 172, 173, 97, 20, 410, 44, 111, 378, 414, - /* 1070 */ 168, 373, 417, 418, 419, 420, 421, 422, 378, 424, - /* 1080 */ 99, 332, 367, 102, 429, 212, 431, 378, 332, 375, - /* 1090 */ 435, 436, 378, 378, 102, 138, 140, 378, 378, 143, + /* 970 */ 231, 232, 233, 20, 18, 18, 20, 340, 12, 13, + /* 980 */ 23, 397, 428, 27, 430, 4, 30, 332, 22, 33, + /* 990 */ 14, 15, 16, 356, 37, 38, 4, 97, 41, 33, + /* 1000 */ 19, 35, 333, 185, 48, 187, 50, 388, 375, 53, + /* 1010 */ 373, 378, 22, 365, 33, 270, 59, 60, 61, 62, + /* 1020 */ 365, 44, 374, 340, 58, 35, 340, 443, 373, 48, + /* 1030 */ 212, 447, 357, 378, 53, 380, 332, 71, 340, 58, + /* 1040 */ 365, 112, 356, 332, 248, 249, 462, 463, 340, 374, + /* 1050 */ 365, 467, 468, 166, 356, 99, 373, 100, 353, 373, + /* 1060 */ 355, 71, 133, 97, 356, 410, 381, 111, 250, 414, + /* 1070 */ 354, 373, 417, 418, 419, 420, 421, 422, 101, 424, + /* 1080 */ 99, 373, 378, 102, 429, 166, 431, 97, 166, 378, + /* 1090 */ 435, 436, 332, 332, 35, 138, 140, 332, 0, 143, /* 1100 */ 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, /* 1110 */ 154, 155, 156, 157, 158, 159, 340, 161, 162, 163, - /* 1120 */ 366, 104, 340, 250, 107, 332, 340, 378, 413, 414, - /* 1130 */ 415, 340, 356, 0, 378, 178, 179, 180, 356, 424, - /* 1140 */ 183, 332, 356, 248, 249, 340, 42, 356, 44, 373, - /* 1150 */ 35, 42, 186, 44, 188, 373, 64, 340, 366, 373, - /* 1160 */ 203, 356, 0, 206, 373, 208, 209, 210, 211, 212, - /* 1170 */ 340, 378, 332, 356, 365, 199, 366, 201, 373, 213, - /* 1180 */ 214, 48, 373, 471, 22, 44, 356, 378, 340, 380, - /* 1190 */ 373, 35, 226, 227, 228, 229, 230, 231, 232, 340, - /* 1200 */ 332, 340, 0, 373, 356, 365, 104, 250, 44, 107, - /* 1210 */ 166, 104, 388, 373, 107, 356, 44, 356, 378, 410, - /* 1220 */ 380, 373, 332, 414, 22, 0, 417, 418, 419, 420, - /* 1230 */ 421, 422, 373, 424, 373, 44, 44, 44, 429, 332, - /* 1240 */ 431, 272, 101, 96, 435, 436, 378, 22, 104, 44, - /* 1250 */ 410, 107, 1, 2, 414, 365, 44, 417, 418, 419, - /* 1260 */ 420, 421, 422, 373, 424, 101, 457, 0, 378, 429, - /* 1270 */ 380, 431, 365, 101, 460, 435, 436, 44, 136, 137, - /* 1280 */ 373, 342, 44, 454, 44, 378, 446, 380, 365, 44, - /* 1290 */ 339, 44, 101, 101, 101, 342, 274, 44, 44, 332, - /* 1300 */ 410, 44, 44, 188, 414, 213, 101, 417, 418, 419, - /* 1310 */ 420, 421, 422, 101, 424, 168, 49, 410, 388, 332, - /* 1320 */ 377, 414, 44, 44, 417, 418, 419, 420, 421, 422, - /* 1330 */ 388, 424, 365, 35, 101, 13, 429, 19, 431, 101, - /* 1340 */ 373, 101, 435, 436, 188, 378, 101, 380, 101, 459, - /* 1350 */ 445, 33, 365, 446, 101, 101, 13, 35, 101, 101, - /* 1360 */ 373, 464, 437, 448, 252, 378, 48, 380, 48, 71, - /* 1370 */ 412, 411, 54, 55, 56, 57, 58, 410, 35, 101, - /* 1380 */ 101, 414, 184, 399, 417, 418, 419, 420, 421, 422, - /* 1390 */ 42, 424, 385, 20, 388, 385, 429, 410, 431, 165, - /* 1400 */ 20, 414, 435, 436, 417, 418, 419, 420, 421, 422, - /* 1410 */ 383, 424, 340, 446, 340, 385, 429, 99, 431, 383, - /* 1420 */ 102, 383, 435, 436, 98, 350, 95, 349, 332, 340, - /* 1430 */ 94, 348, 397, 446, 340, 33, 20, 340, 340, 334, - /* 1440 */ 334, 20, 405, 20, 380, 346, 346, 20, 332, 341, - /* 1450 */ 48, 20, 134, 398, 341, 52, 54, 55, 56, 57, - /* 1460 */ 58, 365, 340, 346, 346, 346, 346, 346, 343, 373, - /* 1470 */ 343, 334, 340, 334, 378, 365, 380, 202, 443, 365, - /* 1480 */ 409, 365, 447, 100, 407, 405, 192, 169, 365, 373, - /* 1490 */ 344, 365, 174, 365, 378, 365, 380, 462, 463, 365, - /* 1500 */ 365, 99, 467, 468, 102, 365, 410, 378, 190, 378, - /* 1510 */ 414, 193, 191, 417, 418, 419, 420, 421, 422, 365, - /* 1520 */ 424, 378, 332, 365, 344, 429, 410, 431, 404, 380, - /* 1530 */ 414, 435, 436, 417, 418, 419, 420, 421, 422, 403, - /* 1540 */ 424, 340, 446, 388, 378, 429, 332, 431, 388, 259, - /* 1550 */ 258, 435, 436, 378, 453, 365, 393, 378, 393, 378, - /* 1560 */ 267, 177, 253, 373, 453, 269, 271, 268, 378, 412, - /* 1570 */ 380, 169, 170, 276, 273, 472, 174, 249, 176, 365, - /* 1580 */ 373, 20, 340, 416, 341, 344, 20, 373, 344, 393, - /* 1590 */ 391, 378, 378, 455, 380, 193, 332, 378, 378, 451, - /* 1600 */ 410, 456, 450, 453, 414, 397, 378, 417, 418, 419, - /* 1610 */ 420, 421, 422, 332, 424, 378, 393, 466, 465, 429, - /* 1620 */ 452, 431, 170, 361, 410, 435, 436, 378, 414, 365, - /* 1630 */ 344, 417, 418, 419, 420, 421, 422, 373, 424, 373, - /* 1640 */ 390, 100, 378, 434, 380, 431, 365, 344, 100, 435, - /* 1650 */ 436, 443, 369, 340, 373, 447, 344, 355, 378, 378, - /* 1660 */ 36, 380, 335, 334, 394, 400, 406, 394, 345, 359, - /* 1670 */ 462, 463, 330, 332, 410, 467, 468, 0, 414, 0, - /* 1680 */ 0, 417, 418, 419, 420, 421, 422, 42, 424, 359, - /* 1690 */ 0, 410, 359, 332, 35, 414, 207, 35, 417, 418, - /* 1700 */ 419, 420, 421, 422, 35, 424, 365, 35, 207, 0, - /* 1710 */ 35, 35, 431, 207, 373, 0, 435, 436, 207, 378, - /* 1720 */ 0, 380, 35, 0, 22, 461, 365, 0, 35, 194, - /* 1730 */ 188, 186, 0, 0, 373, 0, 182, 181, 0, 378, - /* 1740 */ 0, 380, 47, 0, 0, 0, 42, 0, 0, 0, + /* 1120 */ 22, 168, 439, 440, 441, 44, 443, 444, 340, 249, + /* 1130 */ 358, 340, 356, 361, 44, 178, 179, 180, 378, 378, + /* 1140 */ 183, 332, 340, 378, 356, 130, 22, 356, 42, 373, + /* 1150 */ 44, 42, 186, 44, 188, 340, 332, 340, 356, 35, + /* 1160 */ 203, 373, 35, 206, 373, 208, 209, 210, 211, 212, + /* 1170 */ 332, 356, 332, 356, 365, 373, 186, 272, 188, 213, + /* 1180 */ 214, 471, 373, 104, 340, 64, 107, 378, 373, 380, + /* 1190 */ 373, 101, 226, 227, 228, 229, 230, 231, 232, 340, + /* 1200 */ 356, 22, 378, 213, 214, 365, 332, 250, 340, 340, + /* 1210 */ 332, 196, 197, 373, 35, 356, 378, 373, 378, 410, + /* 1220 */ 380, 97, 332, 414, 356, 356, 417, 418, 419, 420, + /* 1230 */ 421, 422, 373, 424, 104, 332, 332, 107, 429, 332, + /* 1240 */ 431, 373, 373, 251, 435, 436, 104, 188, 104, 107, + /* 1250 */ 410, 107, 378, 460, 414, 365, 378, 417, 418, 419, + /* 1260 */ 420, 421, 422, 373, 424, 44, 457, 0, 378, 429, + /* 1270 */ 380, 431, 365, 44, 342, 435, 436, 199, 44, 201, + /* 1280 */ 373, 378, 378, 454, 44, 378, 446, 380, 100, 22, + /* 1290 */ 136, 137, 365, 44, 342, 1, 2, 44, 110, 332, + /* 1300 */ 410, 44, 44, 47, 414, 44, 44, 417, 418, 419, + /* 1310 */ 420, 421, 422, 44, 424, 188, 388, 410, 339, 332, + /* 1320 */ 377, 414, 101, 44, 417, 418, 419, 420, 421, 422, + /* 1330 */ 101, 424, 365, 388, 213, 101, 429, 19, 431, 13, + /* 1340 */ 373, 101, 435, 436, 445, 378, 0, 380, 464, 459, + /* 1350 */ 101, 33, 365, 446, 101, 274, 100, 44, 101, 101, + /* 1360 */ 373, 35, 101, 101, 44, 378, 48, 380, 44, 44, + /* 1370 */ 101, 13, 54, 55, 56, 57, 58, 410, 437, 44, + /* 1380 */ 101, 414, 44, 35, 417, 418, 419, 420, 421, 422, + /* 1390 */ 448, 424, 252, 35, 412, 49, 429, 410, 431, 48, + /* 1400 */ 411, 414, 435, 436, 417, 418, 419, 420, 421, 422, + /* 1410 */ 184, 424, 399, 446, 101, 42, 429, 99, 431, 71, + /* 1420 */ 102, 101, 435, 436, 385, 101, 101, 20, 332, 388, + /* 1430 */ 385, 165, 383, 446, 20, 33, 101, 340, 385, 101, + /* 1440 */ 340, 383, 98, 383, 350, 95, 94, 340, 332, 348, + /* 1450 */ 48, 349, 134, 340, 340, 340, 54, 55, 56, 57, + /* 1460 */ 58, 365, 20, 334, 20, 334, 405, 20, 346, 373, + /* 1470 */ 20, 380, 346, 341, 378, 20, 380, 341, 398, 346, + /* 1480 */ 346, 365, 52, 346, 346, 340, 343, 169, 365, 373, + /* 1490 */ 334, 343, 174, 346, 378, 340, 380, 378, 378, 334, + /* 1500 */ 365, 99, 202, 378, 102, 100, 410, 192, 190, 405, + /* 1510 */ 414, 193, 409, 417, 418, 419, 420, 421, 422, 407, + /* 1520 */ 424, 344, 332, 365, 365, 429, 410, 431, 365, 365, + /* 1530 */ 414, 435, 436, 417, 418, 419, 420, 421, 422, 365, + /* 1540 */ 424, 365, 446, 365, 191, 429, 332, 431, 365, 365, + /* 1550 */ 404, 435, 436, 403, 344, 365, 340, 388, 388, 378, + /* 1560 */ 380, 259, 258, 373, 453, 393, 393, 378, 378, 378, + /* 1570 */ 380, 169, 170, 378, 267, 177, 174, 269, 176, 365, + /* 1580 */ 268, 453, 253, 412, 273, 276, 249, 373, 271, 472, + /* 1590 */ 373, 452, 378, 20, 380, 193, 332, 456, 416, 340, + /* 1600 */ 410, 341, 453, 451, 414, 20, 455, 417, 418, 419, + /* 1610 */ 420, 421, 422, 332, 424, 344, 450, 344, 465, 429, + /* 1620 */ 393, 431, 391, 466, 410, 435, 436, 170, 414, 365, + /* 1630 */ 378, 417, 418, 419, 420, 421, 422, 373, 424, 393, + /* 1640 */ 390, 378, 378, 378, 380, 431, 365, 344, 378, 435, + /* 1650 */ 436, 361, 378, 378, 373, 373, 100, 434, 344, 378, + /* 1660 */ 100, 380, 369, 378, 36, 355, 344, 340, 335, 330, + /* 1670 */ 334, 394, 400, 332, 410, 359, 0, 345, 414, 0, + /* 1680 */ 394, 417, 418, 419, 420, 421, 422, 359, 424, 406, + /* 1690 */ 359, 410, 0, 332, 42, 414, 0, 35, 417, 418, + /* 1700 */ 419, 420, 421, 422, 207, 424, 365, 35, 35, 35, + /* 1710 */ 207, 0, 431, 35, 373, 35, 435, 436, 207, 378, + /* 1720 */ 0, 380, 207, 0, 35, 461, 365, 0, 22, 0, + /* 1730 */ 35, 194, 188, 186, 373, 0, 0, 0, 181, 378, + /* 1740 */ 182, 380, 0, 0, 47, 0, 0, 0, 0, 42, /* 1750 */ 0, 410, 0, 0, 0, 414, 332, 0, 417, 418, - /* 1760 */ 419, 420, 421, 422, 155, 424, 35, 0, 155, 0, - /* 1770 */ 0, 410, 431, 0, 0, 414, 435, 436, 417, 418, - /* 1780 */ 419, 420, 421, 422, 42, 424, 0, 0, 0, 365, + /* 1760 */ 419, 420, 421, 422, 0, 424, 0, 155, 35, 0, + /* 1770 */ 155, 410, 431, 0, 0, 414, 435, 436, 417, 418, + /* 1780 */ 419, 420, 421, 422, 22, 424, 0, 0, 0, 365, /* 1790 */ 0, 0, 0, 0, 370, 0, 0, 373, 0, 0, - /* 1800 */ 0, 0, 378, 0, 380, 0, 0, 0, 0, 0, - /* 1810 */ 0, 22, 0, 139, 332, 0, 0, 96, 96, 22, - /* 1820 */ 0, 58, 0, 58, 22, 0, 58, 0, 0, 35, - /* 1830 */ 47, 470, 14, 14, 410, 0, 0, 0, 414, 332, + /* 1800 */ 0, 0, 378, 0, 380, 42, 0, 0, 0, 0, + /* 1810 */ 0, 0, 0, 0, 332, 0, 139, 0, 0, 22, + /* 1820 */ 96, 96, 0, 58, 22, 0, 58, 0, 58, 35, + /* 1830 */ 0, 470, 0, 44, 410, 14, 0, 14, 414, 332, /* 1840 */ 0, 417, 418, 419, 420, 421, 422, 365, 424, 0, - /* 1850 */ 177, 47, 39, 42, 0, 373, 0, 0, 44, 0, - /* 1860 */ 378, 40, 380, 39, 47, 39, 35, 0, 39, 35, - /* 1870 */ 0, 39, 365, 35, 0, 0, 0, 370, 48, 35, - /* 1880 */ 373, 48, 39, 0, 0, 378, 39, 380, 65, 48, - /* 1890 */ 109, 22, 410, 48, 0, 35, 414, 35, 35, 417, - /* 1900 */ 418, 419, 420, 421, 422, 0, 424, 35, 426, 44, - /* 1910 */ 44, 22, 332, 35, 35, 35, 35, 410, 22, 0, - /* 1920 */ 22, 414, 22, 50, 417, 418, 419, 420, 421, 422, - /* 1930 */ 0, 424, 35, 332, 0, 0, 35, 35, 0, 22, - /* 1940 */ 20, 35, 35, 35, 0, 365, 107, 101, 100, 35, - /* 1950 */ 370, 100, 0, 373, 22, 189, 0, 0, 378, 22, - /* 1960 */ 380, 3, 332, 47, 254, 44, 365, 44, 44, 44, - /* 1970 */ 254, 44, 3, 47, 373, 44, 35, 100, 254, 378, - /* 1980 */ 35, 380, 100, 332, 96, 98, 101, 96, 95, 35, - /* 1990 */ 410, 101, 44, 101, 414, 365, 101, 417, 418, 419, - /* 2000 */ 420, 421, 422, 373, 424, 101, 35, 35, 378, 100, - /* 2010 */ 380, 410, 100, 100, 35, 414, 365, 47, 417, 418, - /* 2020 */ 419, 420, 421, 422, 373, 424, 168, 175, 100, 378, - /* 2030 */ 101, 380, 168, 332, 101, 47, 0, 101, 170, 168, - /* 2040 */ 410, 0, 0, 0, 414, 39, 100, 417, 418, 419, - /* 2050 */ 420, 421, 422, 100, 424, 47, 101, 171, 332, 39, - /* 2060 */ 101, 410, 100, 100, 100, 414, 365, 0, 417, 418, - /* 2070 */ 419, 420, 421, 422, 373, 424, 100, 110, 47, 378, - /* 2080 */ 169, 380, 44, 98, 98, 2, 22, 100, 235, 111, - /* 2090 */ 101, 365, 100, 332, 101, 100, 47, 100, 248, 373, - /* 2100 */ 101, 100, 47, 101, 378, 100, 380, 22, 101, 35, - /* 2110 */ 100, 410, 213, 35, 101, 414, 332, 35, 417, 418, - /* 2120 */ 419, 420, 421, 422, 100, 424, 365, 101, 35, 100, - /* 2130 */ 215, 101, 35, 100, 373, 101, 410, 35, 123, 378, - /* 2140 */ 414, 380, 123, 417, 418, 419, 420, 421, 422, 365, - /* 2150 */ 424, 100, 22, 100, 44, 123, 112, 373, 123, 35, - /* 2160 */ 100, 100, 378, 22, 380, 65, 35, 64, 35, 35, - /* 2170 */ 35, 410, 35, 35, 332, 414, 71, 35, 417, 418, - /* 2180 */ 419, 420, 421, 422, 35, 424, 35, 35, 93, 44, - /* 2190 */ 35, 35, 35, 332, 410, 22, 35, 35, 414, 35, - /* 2200 */ 71, 417, 418, 419, 420, 421, 422, 365, 424, 35, - /* 2210 */ 22, 35, 35, 35, 35, 373, 35, 0, 35, 48, - /* 2220 */ 378, 39, 380, 0, 35, 39, 365, 0, 48, 35, - /* 2230 */ 39, 0, 48, 35, 373, 48, 39, 0, 35, 378, - /* 2240 */ 35, 380, 0, 22, 22, 21, 20, 22, 473, 21, - /* 2250 */ 473, 473, 410, 473, 332, 473, 414, 473, 473, 417, + /* 1850 */ 0, 47, 47, 0, 0, 373, 42, 0, 39, 39, + /* 1860 */ 378, 177, 380, 47, 40, 39, 0, 0, 35, 0, + /* 1870 */ 35, 0, 365, 39, 35, 0, 39, 370, 0, 48, + /* 1880 */ 373, 35, 39, 39, 0, 378, 48, 380, 0, 48, + /* 1890 */ 0, 109, 410, 65, 35, 48, 414, 0, 22, 417, + /* 1900 */ 418, 419, 420, 421, 422, 35, 424, 35, 426, 35, + /* 1910 */ 0, 22, 332, 0, 35, 35, 35, 410, 35, 0, + /* 1920 */ 35, 414, 22, 22, 417, 418, 419, 420, 421, 422, + /* 1930 */ 44, 424, 50, 332, 22, 44, 107, 35, 0, 35, + /* 1940 */ 0, 35, 0, 22, 20, 365, 35, 0, 100, 35, + /* 1950 */ 370, 35, 101, 373, 22, 100, 0, 22, 378, 0, + /* 1960 */ 380, 35, 332, 0, 189, 3, 365, 44, 254, 101, + /* 1970 */ 254, 44, 44, 100, 373, 44, 47, 100, 44, 378, + /* 1980 */ 3, 380, 254, 332, 47, 98, 35, 44, 96, 96, + /* 1990 */ 410, 95, 35, 35, 414, 365, 101, 417, 418, 419, + /* 2000 */ 420, 421, 422, 373, 424, 35, 101, 100, 378, 100, + /* 2010 */ 380, 410, 47, 168, 35, 414, 365, 100, 417, 418, + /* 2020 */ 419, 420, 421, 422, 373, 424, 168, 175, 35, 378, + /* 2030 */ 170, 380, 168, 332, 101, 44, 100, 47, 0, 0, + /* 2040 */ 410, 0, 101, 0, 414, 101, 101, 417, 418, 419, + /* 2050 */ 420, 421, 422, 101, 424, 100, 39, 47, 332, 39, + /* 2060 */ 100, 410, 101, 0, 100, 414, 365, 101, 417, 418, + /* 2070 */ 419, 420, 421, 422, 373, 424, 100, 169, 100, 378, + /* 2080 */ 47, 380, 100, 110, 44, 98, 171, 98, 2, 22, + /* 2090 */ 22, 365, 100, 332, 47, 101, 101, 100, 235, 373, + /* 2100 */ 100, 47, 101, 100, 378, 100, 380, 213, 101, 100, + /* 2110 */ 248, 410, 101, 215, 35, 414, 332, 111, 417, 418, + /* 2120 */ 419, 420, 421, 422, 35, 424, 365, 100, 35, 101, + /* 2130 */ 100, 35, 101, 101, 373, 100, 410, 35, 101, 378, + /* 2140 */ 414, 380, 100, 417, 418, 419, 420, 421, 422, 365, + /* 2150 */ 424, 35, 100, 22, 44, 100, 100, 373, 35, 123, + /* 2160 */ 112, 100, 378, 22, 380, 65, 71, 123, 123, 123, + /* 2170 */ 64, 410, 35, 35, 332, 414, 93, 35, 417, 418, + /* 2180 */ 419, 420, 421, 422, 35, 424, 35, 35, 35, 35, + /* 2190 */ 35, 35, 44, 332, 410, 35, 35, 35, 414, 22, + /* 2200 */ 35, 417, 418, 419, 420, 421, 422, 365, 424, 35, + /* 2210 */ 71, 35, 22, 35, 35, 373, 35, 35, 35, 35, + /* 2220 */ 378, 0, 380, 35, 39, 0, 365, 35, 48, 0, + /* 2230 */ 39, 35, 39, 0, 373, 48, 35, 48, 39, 378, + /* 2240 */ 0, 380, 48, 35, 35, 0, 22, 21, 473, 22, + /* 2250 */ 22, 21, 410, 473, 332, 473, 414, 20, 473, 417, /* 2260 */ 418, 419, 420, 421, 422, 473, 424, 473, 473, 473, /* 2270 */ 473, 410, 473, 473, 473, 414, 473, 473, 417, 418, /* 2280 */ 419, 420, 421, 422, 473, 424, 473, 365, 473, 473, @@ -789,86 +789,86 @@ static const YYCODETYPE yy_lookahead[] = { /* 2820 */ 473, 473, 414, 473, 473, 417, 418, 419, 420, 421, /* 2830 */ 422, 473, 424, }; -#define YY_SHIFT_COUNT (752) +#define YY_SHIFT_COUNT (753) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2242) +#define YY_SHIFT_MAX (2245) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 957, 0, 98, 0, 321, 321, 321, 321, 321, 321, /* 10 */ 321, 321, 321, 321, 321, 419, 641, 641, 739, 641, /* 20 */ 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, /* 30 */ 641, 641, 641, 641, 641, 641, 641, 641, 641, 641, - /* 40 */ 641, 641, 641, 641, 641, 641, 641, 641, 167, 591, - /* 50 */ 873, 68, 255, 90, 246, 90, 68, 68, 966, 966, - /* 60 */ 966, 90, 966, 966, 380, 90, 9, 889, 24, 24, - /* 70 */ 889, 151, 151, 41, 377, 63, 63, 24, 24, 24, - /* 80 */ 24, 24, 24, 24, 84, 24, 24, 108, 9, 24, - /* 90 */ 24, 221, 24, 9, 24, 84, 24, 84, 9, 24, - /* 100 */ 24, 9, 24, 9, 9, 9, 24, 205, 956, 285, - /* 110 */ 285, 251, 407, 665, 665, 665, 665, 665, 665, 665, - /* 120 */ 665, 665, 665, 665, 665, 665, 665, 665, 665, 665, - /* 130 */ 665, 665, 713, 459, 41, 377, 441, 513, 513, 513, - /* 140 */ 948, 194, 194, 441, 282, 282, 282, 108, 269, 164, - /* 150 */ 9, 354, 9, 354, 354, 324, 435, 245, 245, 245, - /* 160 */ 245, 245, 245, 245, 245, 1318, 375, 125, 400, 549, - /* 170 */ 238, 112, 95, 129, 879, 735, 872, 985, 705, 902, - /* 180 */ 895, 795, 486, 895, 1104, 259, 1044, 1112, 1320, 1198, - /* 190 */ 1348, 1373, 1348, 1234, 1380, 1380, 1348, 1234, 1234, 1326, - /* 200 */ 1331, 1380, 1336, 1380, 1380, 1380, 1416, 1416, 1421, 108, - /* 210 */ 1423, 108, 1427, 1431, 108, 1427, 108, 108, 108, 1380, - /* 220 */ 108, 1403, 1403, 1416, 9, 9, 9, 9, 9, 9, - /* 230 */ 9, 9, 9, 9, 9, 1380, 1416, 354, 354, 354, - /* 240 */ 1275, 1383, 1421, 205, 1294, 1321, 1423, 205, 1380, 1373, - /* 250 */ 1373, 354, 1290, 1292, 354, 1290, 1292, 354, 354, 9, - /* 260 */ 1293, 1384, 1290, 1296, 1299, 1309, 1112, 1297, 1301, 1295, - /* 270 */ 1328, 282, 1561, 1380, 1427, 205, 205, 1566, 1292, 354, - /* 280 */ 354, 354, 354, 354, 1292, 354, 1452, 205, 324, 205, - /* 290 */ 282, 1541, 1548, 354, 435, 1380, 205, 1624, 1416, 2833, + /* 40 */ 641, 641, 641, 641, 641, 641, 641, 641, 141, 328, + /* 50 */ 818, 68, 97, 103, 469, 103, 68, 68, 966, 966, + /* 60 */ 966, 103, 966, 966, 94, 103, 4, 653, 24, 24, + /* 70 */ 653, 292, 292, 319, 425, 186, 186, 24, 24, 24, + /* 80 */ 24, 24, 24, 24, 138, 24, 24, 124, 4, 24, + /* 90 */ 24, 243, 24, 4, 24, 138, 24, 138, 4, 24, + /* 100 */ 24, 4, 24, 4, 4, 4, 24, 232, 956, 285, + /* 110 */ 285, 117, 251, 990, 990, 990, 990, 990, 990, 990, + /* 120 */ 990, 990, 990, 990, 990, 990, 990, 990, 990, 990, + /* 130 */ 990, 990, 679, 603, 319, 425, 239, 674, 674, 674, + /* 140 */ 36, 395, 395, 239, 410, 410, 410, 124, 351, 242, + /* 150 */ 4, 489, 4, 489, 489, 493, 506, 245, 245, 245, + /* 160 */ 245, 245, 245, 245, 245, 1318, 491, 375, 400, 673, + /* 170 */ 502, 112, 95, 919, 922, 29, 786, 898, 929, 953, + /* 180 */ 796, 880, 745, 796, 1106, 992, 887, 1140, 1351, 1226, + /* 190 */ 1373, 1407, 1373, 1266, 1414, 1414, 1373, 1266, 1266, 1344, + /* 200 */ 1350, 1414, 1352, 1414, 1414, 1414, 1442, 1442, 1444, 124, + /* 210 */ 1447, 124, 1450, 1455, 124, 1450, 124, 124, 124, 1414, + /* 220 */ 124, 1430, 1430, 1442, 4, 4, 4, 4, 4, 4, + /* 230 */ 4, 4, 4, 4, 4, 1414, 1442, 489, 489, 489, + /* 240 */ 1300, 1405, 1444, 232, 1315, 1353, 1447, 232, 1414, 1407, + /* 250 */ 1407, 489, 1302, 1304, 489, 1302, 1304, 489, 489, 4, + /* 260 */ 1307, 1398, 1302, 1308, 1312, 1329, 1140, 1309, 1311, 1317, + /* 270 */ 1337, 410, 1573, 1414, 1450, 232, 232, 1585, 1304, 489, + /* 280 */ 489, 489, 489, 489, 1304, 489, 1457, 232, 493, 232, + /* 290 */ 410, 1556, 1560, 489, 506, 1414, 232, 1628, 1442, 2833, /* 300 */ 2833, 2833, 2833, 2833, 2833, 2833, 2833, 2833, 170, 1402, - /* 310 */ 152, 981, 558, 581, 680, 157, 374, 706, 775, 785, - /* 320 */ 920, 920, 920, 920, 920, 920, 920, 920, 920, 173, - /* 330 */ 598, 27, 27, 132, 639, 353, 947, 418, 962, 816, - /* 340 */ 489, 638, 638, 880, 881, 517, 880, 880, 880, 1133, - /* 350 */ 474, 986, 1109, 843, 779, 1017, 1102, 1107, 1144, 1162, - /* 360 */ 1202, 1225, 976, 1141, 1164, 992, 1172, 1191, 1193, 1142, - /* 370 */ 969, 1022, 1147, 1205, 1212, 1233, 1238, 1240, 1245, 1251, - /* 380 */ 1247, 1115, 1156, 1092, 1192, 573, 1253, 1254, 1257, 1258, - /* 390 */ 1278, 1279, 800, 1322, 1343, 1298, 1267, 1677, 1679, 1680, - /* 400 */ 1645, 1690, 1659, 1489, 1662, 1669, 1672, 1501, 1709, 1675, - /* 410 */ 1676, 1506, 1715, 1511, 1720, 1687, 1723, 1702, 1727, 1693, - /* 420 */ 1535, 1542, 1545, 1732, 1733, 1735, 1554, 1556, 1738, 1740, - /* 430 */ 1695, 1743, 1744, 1745, 1704, 1747, 1748, 1749, 1750, 1752, - /* 440 */ 1753, 1754, 1757, 1609, 1731, 1767, 1613, 1769, 1770, 1773, - /* 450 */ 1774, 1786, 1787, 1788, 1790, 1791, 1792, 1793, 1795, 1796, - /* 460 */ 1798, 1799, 1800, 1742, 1801, 1803, 1805, 1806, 1807, 1808, - /* 470 */ 1789, 1809, 1810, 1812, 1674, 1815, 1816, 1797, 1721, 1802, - /* 480 */ 1722, 1820, 1763, 1794, 1822, 1765, 1825, 1768, 1827, 1828, - /* 490 */ 1811, 1813, 1814, 1783, 1818, 1804, 1819, 1817, 1835, 1821, - /* 500 */ 1824, 1836, 1837, 1840, 1826, 1673, 1849, 1854, 1856, 1823, - /* 510 */ 1857, 1859, 1831, 1830, 1829, 1867, 1834, 1833, 1832, 1870, - /* 520 */ 1838, 1841, 1843, 1874, 1844, 1845, 1847, 1875, 1876, 1883, - /* 530 */ 1884, 1781, 1839, 1860, 1869, 1894, 1862, 1863, 1872, 1878, - /* 540 */ 1865, 1866, 1879, 1880, 1889, 1881, 1905, 1896, 1919, 1898, - /* 550 */ 1873, 1930, 1900, 1897, 1934, 1901, 1935, 1902, 1938, 1917, - /* 560 */ 1920, 1906, 1907, 1908, 1846, 1848, 1944, 1858, 1851, 1914, - /* 570 */ 1932, 1952, 1766, 1937, 1864, 1868, 1956, 1957, 1871, 1852, - /* 580 */ 1958, 1921, 1710, 1877, 1885, 1882, 1888, 1887, 1891, 1893, - /* 590 */ 1890, 1923, 1924, 1892, 1909, 1912, 1913, 1895, 1925, 1916, - /* 600 */ 1926, 1928, 1927, 1716, 1904, 1929, 1969, 1931, 1724, 1941, - /* 610 */ 1945, 1954, 1971, 1972, 1979, 1933, 1936, 1970, 1850, 1948, - /* 620 */ 1988, 2036, 2041, 2042, 2043, 1946, 2006, 1783, 2008, 1953, - /* 630 */ 1955, 1959, 1962, 1963, 1886, 1964, 2067, 2020, 1911, 1976, - /* 640 */ 1967, 1783, 2031, 2038, 1985, 1853, 1986, 2083, 2064, 1899, - /* 650 */ 1987, 1989, 1992, 1993, 1995, 1999, 2049, 1997, 2001, 2055, - /* 660 */ 2002, 2085, 1915, 2005, 1978, 2007, 2074, 2078, 2010, 2013, - /* 670 */ 2082, 2024, 2026, 2093, 2029, 2030, 2097, 2033, 2034, 2102, - /* 680 */ 2051, 2015, 2019, 2032, 2035, 2130, 2044, 2053, 2110, 2060, - /* 690 */ 2124, 2061, 2110, 2110, 2141, 2100, 2103, 2131, 2133, 2134, - /* 700 */ 2135, 2137, 2138, 2142, 2149, 2151, 2152, 2105, 2095, 2145, - /* 710 */ 2155, 2156, 2157, 2173, 2161, 2162, 2164, 2129, 1865, 2174, - /* 720 */ 1866, 2176, 2177, 2178, 2179, 2188, 2181, 2217, 2183, 2171, - /* 730 */ 2182, 2223, 2189, 2180, 2186, 2227, 2194, 2184, 2191, 2231, - /* 740 */ 2198, 2187, 2197, 2237, 2203, 2205, 2242, 2221, 2224, 2222, - /* 750 */ 2225, 2228, 2226, + /* 310 */ 473, 981, 166, 466, 808, 157, 374, 587, 602, 597, + /* 320 */ 196, 196, 196, 196, 196, 196, 196, 196, 196, 173, + /* 330 */ 320, 26, 26, 342, 736, 624, 795, 900, 1124, 591, + /* 340 */ 1015, 305, 305, 976, 592, 108, 976, 976, 976, 834, + /* 350 */ 977, 1179, 1109, 17, 336, 1079, 1130, 1142, 1144, 696, + /* 360 */ 1098, 1267, 1078, 1090, 1221, 598, 1229, 1234, 1240, 1154, + /* 370 */ 905, 1081, 172, 1249, 1253, 1257, 1258, 1261, 1262, 1294, + /* 380 */ 1269, 1059, 1127, 1121, 1279, 1256, 1313, 1320, 1324, 1325, + /* 390 */ 1335, 1338, 1188, 1326, 1358, 1348, 1346, 1676, 1679, 1692, + /* 400 */ 1652, 1696, 1662, 1497, 1672, 1673, 1674, 1503, 1711, 1678, + /* 410 */ 1680, 1511, 1720, 1515, 1723, 1689, 1727, 1706, 1729, 1695, + /* 420 */ 1537, 1544, 1547, 1735, 1736, 1737, 1558, 1557, 1742, 1743, + /* 430 */ 1697, 1745, 1746, 1747, 1707, 1748, 1750, 1752, 1753, 1754, + /* 440 */ 1757, 1764, 1766, 1612, 1733, 1769, 1615, 1773, 1774, 1786, + /* 450 */ 1787, 1788, 1790, 1791, 1792, 1793, 1795, 1796, 1798, 1799, + /* 460 */ 1800, 1801, 1803, 1763, 1806, 1807, 1808, 1809, 1810, 1811, + /* 470 */ 1762, 1812, 1813, 1815, 1677, 1817, 1818, 1797, 1724, 1802, + /* 480 */ 1725, 1822, 1765, 1794, 1825, 1768, 1827, 1770, 1830, 1832, + /* 490 */ 1814, 1819, 1789, 1804, 1821, 1805, 1823, 1816, 1836, 1824, + /* 500 */ 1820, 1840, 1849, 1850, 1826, 1684, 1853, 1854, 1857, 1828, + /* 510 */ 1866, 1867, 1833, 1831, 1834, 1869, 1835, 1838, 1837, 1871, + /* 520 */ 1839, 1841, 1843, 1875, 1846, 1847, 1844, 1878, 1884, 1888, + /* 530 */ 1890, 1782, 1829, 1859, 1876, 1897, 1870, 1872, 1874, 1879, + /* 540 */ 1880, 1886, 1891, 1881, 1883, 1889, 1885, 1910, 1900, 1913, + /* 550 */ 1901, 1882, 1919, 1912, 1902, 1938, 1904, 1940, 1906, 1942, + /* 560 */ 1921, 1924, 1911, 1914, 1916, 1851, 1848, 1947, 1845, 1855, + /* 570 */ 1926, 1932, 1956, 1775, 1935, 1858, 1860, 1959, 1963, 1864, + /* 580 */ 1852, 1962, 1923, 1714, 1873, 1868, 1877, 1892, 1887, 1893, + /* 590 */ 1896, 1895, 1927, 1928, 1905, 1907, 1909, 1917, 1933, 1931, + /* 600 */ 1929, 1937, 1936, 1934, 1716, 1941, 1944, 1977, 1943, 1728, + /* 610 */ 1951, 1957, 1958, 1970, 1979, 1993, 1945, 1952, 1965, 1862, + /* 620 */ 1991, 1990, 2038, 2039, 2041, 2043, 1955, 2017, 1804, 2010, + /* 630 */ 1960, 1961, 1966, 1964, 1976, 1915, 1978, 2063, 2020, 1908, + /* 640 */ 1982, 1973, 1804, 2033, 2040, 1987, 1863, 1989, 2086, 2067, + /* 650 */ 1894, 1992, 1994, 1997, 1995, 2000, 2001, 2047, 2003, 2005, + /* 660 */ 2054, 2007, 2068, 1898, 2009, 2006, 2011, 2079, 2089, 2027, + /* 670 */ 2028, 2093, 2030, 2031, 2096, 2035, 2032, 2102, 2042, 2037, + /* 680 */ 2116, 2052, 2036, 2044, 2045, 2046, 2131, 2048, 2055, 2110, + /* 690 */ 2056, 2123, 2061, 2110, 2110, 2141, 2100, 2106, 2137, 2138, + /* 700 */ 2142, 2149, 2151, 2152, 2153, 2154, 2155, 2156, 2095, 2083, + /* 710 */ 2148, 2160, 2161, 2162, 2177, 2165, 2174, 2176, 2139, 1886, + /* 720 */ 2178, 1891, 2179, 2181, 2182, 2183, 2190, 2184, 2221, 2188, + /* 730 */ 2180, 2185, 2225, 2192, 2187, 2191, 2229, 2196, 2189, 2193, + /* 740 */ 2233, 2201, 2194, 2199, 2240, 2208, 2209, 2245, 2224, 2226, + /* 750 */ 2227, 2228, 2230, 2237, }; #define YY_REDUCE_COUNT (307) #define YY_REDUCE_MIN (-442) @@ -879,110 +879,110 @@ static const short yy_reduce_ofst[] = { /* 20 */ 1264, 1361, 1424, 1482, 1507, 1580, 1601, 1630, 1651, 1701, /* 30 */ 1726, 1761, 1784, 1842, 1861, 1922, 1980, 1996, 2059, 2075, /* 40 */ 2094, 2158, 2175, 2235, 2255, 2329, 2346, 2408, -317, -303, - /* 50 */ 263, 138, 483, 580, 1035, 1208, -238, 361, -367, -348, - /* 60 */ 715, 141, -329, -239, -442, 155, -302, -364, 243, 261, - /* 70 */ -378, -330, -285, -306, -41, -199, 7, 82, 367, 397, - /* 80 */ 475, 567, 568, 782, 55, 786, 791, 309, 64, 805, - /* 90 */ 817, -28, 392, 332, 698, 70, 830, 94, -350, 848, - /* 100 */ 859, 395, 861, 401, 461, 406, 776, 462, -234, -334, - /* 110 */ -334, -297, -344, 117, 237, 278, 450, 471, 524, 569, - /* 120 */ 612, 675, 678, 690, 700, 709, 719, 720, 749, 756, - /* 130 */ 793, 868, -290, -106, -176, 337, 169, -106, 286, 393, - /* 140 */ 546, 184, 201, 460, 565, 608, 618, 22, 76, -269, - /* 150 */ 539, 564, 556, 637, 714, 635, 356, 193, 234, 358, - /* 160 */ 670, 754, 792, 810, 754, 134, 254, 577, 824, 712, - /* 170 */ 814, 939, 829, 923, 923, 953, 930, 951, 943, 942, - /* 180 */ 905, 905, 897, 905, 925, 915, 923, 958, 960, 984, - /* 190 */ 1007, 1006, 1010, 1027, 1072, 1074, 1030, 1036, 1038, 1075, - /* 200 */ 1078, 1089, 1083, 1094, 1097, 1098, 1105, 1106, 1037, 1099, - /* 210 */ 1064, 1100, 1108, 1055, 1117, 1113, 1118, 1119, 1120, 1122, - /* 220 */ 1121, 1125, 1127, 1137, 1110, 1114, 1123, 1126, 1128, 1130, - /* 230 */ 1134, 1135, 1140, 1154, 1158, 1132, 1139, 1129, 1131, 1143, - /* 240 */ 1071, 1077, 1080, 1146, 1124, 1136, 1149, 1180, 1201, 1155, - /* 250 */ 1160, 1166, 1101, 1163, 1175, 1111, 1165, 1179, 1181, 923, - /* 260 */ 1145, 1138, 1150, 1168, 1148, 1152, 1157, 1103, 1151, 1153, - /* 270 */ 905, 1207, 1167, 1242, 1243, 1241, 1244, 1199, 1196, 1213, - /* 280 */ 1219, 1220, 1228, 1237, 1223, 1249, 1250, 1286, 1262, 1303, - /* 290 */ 1266, 1209, 1283, 1280, 1302, 1313, 1312, 1327, 1329, 1265, - /* 300 */ 1260, 1270, 1273, 1310, 1330, 1333, 1323, 1342, + /* 50 */ 120, 282, 313, 453, 483, 584, 361, 683, -367, -348, + /* 60 */ -272, 461, 206, 293, -442, -384, 72, -364, -286, 475, + /* 70 */ -378, -330, 59, 327, -241, 155, 171, 324, 384, 413, + /* 80 */ 479, 637, 686, 698, -287, 708, 776, 22, 330, 788, + /* 90 */ 791, -358, 802, 465, 815, 70, 817, 452, 60, 844, + /* 100 */ 859, 518, 868, 536, 566, 675, 869, 230, -297, -284, + /* 110 */ -284, -344, -259, -207, 201, 359, 376, 418, 471, 501, + /* 120 */ 524, 704, 711, 760, 761, 765, 824, 838, 874, 878, + /* 130 */ 903, 904, -188, -387, -172, 192, 257, -387, 367, 402, + /* 140 */ 145, 504, 554, 562, -71, -27, 65, 288, -327, 306, + /* 150 */ 648, 380, 685, 517, 633, 772, 705, 407, 427, 432, + /* 160 */ 445, 462, 512, 571, 462, 134, 716, 669, 619, 710, + /* 170 */ 793, 932, 829, 927, 927, 952, 928, 979, 943, 945, + /* 180 */ 899, 899, 884, 899, 941, 942, 927, 982, 989, 1013, + /* 190 */ 1039, 1041, 1045, 1049, 1097, 1100, 1053, 1058, 1060, 1094, + /* 200 */ 1102, 1107, 1101, 1113, 1114, 1115, 1129, 1131, 1061, 1122, + /* 210 */ 1091, 1126, 1132, 1080, 1133, 1136, 1134, 1137, 1138, 1145, + /* 220 */ 1147, 1143, 1148, 1156, 1123, 1135, 1158, 1159, 1163, 1164, + /* 230 */ 1174, 1176, 1178, 1183, 1184, 1155, 1165, 1119, 1120, 1125, + /* 240 */ 1103, 1112, 1104, 1177, 1146, 1150, 1180, 1210, 1216, 1169, + /* 250 */ 1170, 1181, 1111, 1172, 1189, 1128, 1173, 1191, 1195, 927, + /* 260 */ 1141, 1151, 1149, 1139, 1152, 1166, 1171, 1117, 1157, 1153, + /* 270 */ 899, 1217, 1182, 1259, 1260, 1271, 1273, 1231, 1227, 1252, + /* 280 */ 1263, 1265, 1270, 1274, 1246, 1275, 1250, 1303, 1290, 1314, + /* 290 */ 1282, 1223, 1293, 1285, 1310, 1327, 1322, 1333, 1336, 1272, + /* 300 */ 1283, 1277, 1286, 1316, 1328, 1331, 1332, 1339, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 10 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 20 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 30 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 40 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 50 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 60 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 70 */ 1692, 1692, 1692, 1958, 1692, 1692, 1692, 1692, 1692, 1692, - /* 80 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1771, 1692, 1692, - /* 90 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 100 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1769, 1951, 2169, - /* 110 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 120 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 130 */ 1692, 1692, 1692, 2181, 1692, 1692, 1692, 2181, 2181, 2181, - /* 140 */ 1769, 2141, 2141, 1692, 1692, 1692, 1692, 1771, 2014, 1692, - /* 150 */ 1692, 1692, 1692, 1692, 1692, 1886, 1692, 1692, 1692, 1692, - /* 160 */ 1692, 1910, 1692, 1692, 1692, 2004, 1692, 1692, 2206, 2262, - /* 170 */ 1692, 1692, 2209, 1692, 1692, 1692, 1963, 1692, 1839, 2196, - /* 180 */ 2173, 2187, 2246, 2174, 2171, 2190, 1692, 2200, 1692, 1997, - /* 190 */ 1956, 1692, 1956, 1953, 1692, 1692, 1956, 1953, 1953, 1828, - /* 200 */ 1824, 1692, 1822, 1692, 1692, 1692, 1692, 1692, 1692, 1771, - /* 210 */ 1692, 1771, 1692, 1692, 1771, 1692, 1771, 1771, 1771, 1692, - /* 220 */ 1771, 1749, 1749, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 230 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 240 */ 2026, 2012, 1692, 1769, 2008, 2006, 1692, 1769, 1692, 1692, - /* 250 */ 1692, 1692, 2217, 2215, 1692, 2217, 2215, 1692, 1692, 1692, - /* 260 */ 2231, 2227, 2217, 2235, 2233, 2202, 2200, 2265, 2252, 2248, - /* 270 */ 2187, 1692, 1692, 1692, 1692, 1769, 1769, 1692, 2215, 1692, - /* 280 */ 1692, 1692, 1692, 1692, 2215, 1692, 1692, 1769, 1692, 1769, - /* 290 */ 1692, 1692, 1855, 1692, 1692, 1692, 1769, 1724, 1692, 1999, - /* 300 */ 2017, 1981, 1981, 1889, 1889, 1889, 1772, 1697, 1692, 1692, - /* 310 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 320 */ 2230, 2229, 2096, 1692, 2145, 2144, 2143, 2134, 2095, 1851, - /* 330 */ 1692, 2094, 2093, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 340 */ 1692, 1972, 1971, 2087, 1692, 1692, 2088, 2086, 2085, 1692, - /* 350 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 360 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 370 */ 2249, 2253, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 2170, - /* 380 */ 1692, 1692, 1692, 1692, 1692, 2069, 1692, 1692, 1692, 1692, - /* 390 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 400 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 410 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 420 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 430 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 440 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 450 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 460 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 470 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 480 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 490 */ 1692, 1692, 1729, 2074, 1692, 1692, 1692, 1692, 1692, 1692, - /* 500 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 510 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 520 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 530 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 540 */ 1810, 1809, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 550 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 560 */ 1692, 1692, 1692, 1692, 2078, 1692, 1692, 1692, 1692, 1692, - /* 570 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 580 */ 2245, 2203, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 590 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 600 */ 2069, 1692, 2228, 1692, 1692, 2243, 1692, 2247, 1692, 1692, - /* 610 */ 1692, 1692, 1692, 1692, 1692, 2180, 2176, 1692, 1692, 2172, - /* 620 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 2077, 1692, 1692, - /* 630 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 640 */ 1692, 2068, 1692, 2131, 1692, 1692, 1692, 2165, 1692, 1692, - /* 650 */ 2116, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 660 */ 2078, 1692, 2081, 1692, 1692, 1692, 1692, 1692, 1883, 1692, - /* 670 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 680 */ 1692, 1868, 1866, 1865, 1864, 1692, 1861, 1692, 1896, 1692, - /* 690 */ 1692, 1692, 1892, 1891, 1692, 1692, 1692, 1692, 1692, 1692, - /* 700 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1790, - /* 710 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1782, 1692, - /* 720 */ 1781, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 730 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 740 */ 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, 1692, - /* 750 */ 1692, 1692, 1692, + /* 0 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 10 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 20 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 30 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 40 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 50 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 60 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 70 */ 1695, 1695, 1695, 1962, 1695, 1695, 1695, 1695, 1695, 1695, + /* 80 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1774, 1695, 1695, + /* 90 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 100 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1772, 1955, 2173, + /* 110 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 120 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 130 */ 1695, 1695, 1695, 2185, 1695, 1695, 1695, 2185, 2185, 2185, + /* 140 */ 1772, 2145, 2145, 1695, 1695, 1695, 1695, 1774, 2018, 1695, + /* 150 */ 1695, 1695, 1695, 1695, 1695, 1890, 1695, 1695, 1695, 1695, + /* 160 */ 1695, 1914, 1695, 1695, 1695, 2008, 1695, 1695, 2210, 2266, + /* 170 */ 1695, 1695, 2213, 1695, 1695, 1695, 1967, 1695, 1843, 2200, + /* 180 */ 2177, 2191, 2250, 2178, 2175, 2194, 1695, 2204, 1695, 2001, + /* 190 */ 1960, 1695, 1960, 1957, 1695, 1695, 1960, 1957, 1957, 1832, + /* 200 */ 1828, 1695, 1826, 1695, 1695, 1695, 1695, 1695, 1695, 1774, + /* 210 */ 1695, 1774, 1695, 1695, 1774, 1695, 1774, 1774, 1774, 1695, + /* 220 */ 1774, 1752, 1752, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 230 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 240 */ 2030, 2016, 1695, 1772, 2012, 2010, 1695, 1772, 1695, 1695, + /* 250 */ 1695, 1695, 2221, 2219, 1695, 2221, 2219, 1695, 1695, 1695, + /* 260 */ 2235, 2231, 2221, 2239, 2237, 2206, 2204, 2269, 2256, 2252, + /* 270 */ 2191, 1695, 1695, 1695, 1695, 1772, 1772, 1695, 2219, 1695, + /* 280 */ 1695, 1695, 1695, 1695, 2219, 1695, 1695, 1772, 1695, 1772, + /* 290 */ 1695, 1695, 1859, 1695, 1695, 1695, 1772, 1727, 1695, 2003, + /* 300 */ 2021, 1985, 1985, 1893, 1893, 1893, 1775, 1700, 1695, 1695, + /* 310 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 320 */ 2234, 2233, 2100, 1695, 2149, 2148, 2147, 2138, 2099, 1855, + /* 330 */ 1695, 2098, 2097, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 340 */ 1695, 1976, 1975, 2091, 1695, 1695, 2092, 2090, 2089, 1695, + /* 350 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 360 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 370 */ 2253, 2257, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 2174, + /* 380 */ 1695, 1695, 1695, 1695, 1695, 2073, 1695, 1695, 1695, 1695, + /* 390 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 400 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 410 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 420 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 430 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 440 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 450 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 460 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 470 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 480 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 490 */ 1695, 1695, 1732, 2078, 1695, 1695, 1695, 1695, 1695, 1695, + /* 500 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 510 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 520 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 530 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 540 */ 1695, 1813, 1812, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 550 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 560 */ 1695, 1695, 1695, 1695, 1695, 2082, 1695, 1695, 1695, 1695, + /* 570 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 580 */ 1695, 2249, 2207, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 590 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 600 */ 1695, 2073, 1695, 2232, 1695, 1695, 2247, 1695, 2251, 1695, + /* 610 */ 1695, 1695, 1695, 1695, 1695, 1695, 2184, 2180, 1695, 1695, + /* 620 */ 2176, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 2081, 1695, + /* 630 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 640 */ 1695, 1695, 2072, 1695, 2135, 1695, 1695, 1695, 2169, 1695, + /* 650 */ 1695, 2120, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 660 */ 1695, 2082, 1695, 2085, 1695, 1695, 1695, 1695, 1695, 1887, + /* 670 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 680 */ 1695, 1695, 1872, 1870, 1869, 1868, 1695, 1865, 1695, 1900, + /* 690 */ 1695, 1695, 1695, 1896, 1895, 1695, 1695, 1695, 1695, 1695, + /* 700 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 710 */ 1793, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1785, + /* 720 */ 1695, 1784, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 730 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 740 */ 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, 1695, + /* 750 */ 1695, 1695, 1695, 1695, }; /********** End of lemon-generated parsing tables *****************************/ @@ -2018,459 +2018,460 @@ static const char *const yyRuleName[] = { /* 117 */ "alter_db_option ::= REPLICA NK_INTEGER", /* 118 */ "alter_db_option ::= WAL_LEVEL NK_INTEGER", /* 119 */ "alter_db_option ::= STT_TRIGGER NK_INTEGER", - /* 120 */ "integer_list ::= NK_INTEGER", - /* 121 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", - /* 122 */ "variable_list ::= NK_VARIABLE", - /* 123 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", - /* 124 */ "retention_list ::= retention", - /* 125 */ "retention_list ::= retention_list NK_COMMA retention", - /* 126 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", - /* 127 */ "speed_opt ::=", - /* 128 */ "speed_opt ::= MAX_SPEED NK_INTEGER", - /* 129 */ "start_opt ::=", - /* 130 */ "start_opt ::= START WITH NK_INTEGER", - /* 131 */ "start_opt ::= START WITH NK_STRING", - /* 132 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", - /* 133 */ "end_opt ::=", - /* 134 */ "end_opt ::= END WITH NK_INTEGER", - /* 135 */ "end_opt ::= END WITH NK_STRING", - /* 136 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", - /* 137 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 138 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 139 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 140 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 141 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 142 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 143 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 144 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 145 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 146 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 147 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 148 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 149 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 150 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 151 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 152 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 153 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", - /* 154 */ "multi_create_clause ::= create_subtable_clause", - /* 155 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 156 */ "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", - /* 157 */ "multi_drop_clause ::= drop_table_clause", - /* 158 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", - /* 159 */ "drop_table_clause ::= exists_opt full_table_name", - /* 160 */ "specific_cols_opt ::=", - /* 161 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", - /* 162 */ "full_table_name ::= table_name", - /* 163 */ "full_table_name ::= db_name NK_DOT table_name", - /* 164 */ "column_def_list ::= column_def", - /* 165 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 166 */ "column_def ::= column_name type_name", - /* 167 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 168 */ "type_name ::= BOOL", - /* 169 */ "type_name ::= TINYINT", - /* 170 */ "type_name ::= SMALLINT", - /* 171 */ "type_name ::= INT", - /* 172 */ "type_name ::= INTEGER", - /* 173 */ "type_name ::= BIGINT", - /* 174 */ "type_name ::= FLOAT", - /* 175 */ "type_name ::= DOUBLE", - /* 176 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 177 */ "type_name ::= TIMESTAMP", - /* 178 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 179 */ "type_name ::= TINYINT UNSIGNED", - /* 180 */ "type_name ::= SMALLINT UNSIGNED", - /* 181 */ "type_name ::= INT UNSIGNED", - /* 182 */ "type_name ::= BIGINT UNSIGNED", - /* 183 */ "type_name ::= JSON", - /* 184 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 185 */ "type_name ::= MEDIUMBLOB", - /* 186 */ "type_name ::= BLOB", - /* 187 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 188 */ "type_name ::= DECIMAL", - /* 189 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 190 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 191 */ "tags_def_opt ::=", - /* 192 */ "tags_def_opt ::= tags_def", - /* 193 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 194 */ "table_options ::=", - /* 195 */ "table_options ::= table_options COMMENT NK_STRING", - /* 196 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 197 */ "table_options ::= table_options WATERMARK duration_list", - /* 198 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 199 */ "table_options ::= table_options TTL NK_INTEGER", - /* 200 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 201 */ "table_options ::= table_options DELETE_MARK duration_list", - /* 202 */ "alter_table_options ::= alter_table_option", - /* 203 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 204 */ "alter_table_option ::= COMMENT NK_STRING", - /* 205 */ "alter_table_option ::= TTL NK_INTEGER", - /* 206 */ "duration_list ::= duration_literal", - /* 207 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 208 */ "rollup_func_list ::= rollup_func_name", - /* 209 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 210 */ "rollup_func_name ::= function_name", - /* 211 */ "rollup_func_name ::= FIRST", - /* 212 */ "rollup_func_name ::= LAST", - /* 213 */ "col_name_list ::= col_name", - /* 214 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 215 */ "col_name ::= column_name", - /* 216 */ "cmd ::= SHOW DNODES", - /* 217 */ "cmd ::= SHOW USERS", - /* 218 */ "cmd ::= SHOW USER PRIVILEGES", - /* 219 */ "cmd ::= SHOW DATABASES", - /* 220 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 221 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 222 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 223 */ "cmd ::= SHOW MNODES", - /* 224 */ "cmd ::= SHOW QNODES", - /* 225 */ "cmd ::= SHOW FUNCTIONS", - /* 226 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 227 */ "cmd ::= SHOW STREAMS", - /* 228 */ "cmd ::= SHOW ACCOUNTS", - /* 229 */ "cmd ::= SHOW APPS", - /* 230 */ "cmd ::= SHOW CONNECTIONS", - /* 231 */ "cmd ::= SHOW LICENCES", - /* 232 */ "cmd ::= SHOW GRANTS", - /* 233 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 234 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 235 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 236 */ "cmd ::= SHOW QUERIES", - /* 237 */ "cmd ::= SHOW SCORES", - /* 238 */ "cmd ::= SHOW TOPICS", - /* 239 */ "cmd ::= SHOW VARIABLES", - /* 240 */ "cmd ::= SHOW CLUSTER VARIABLES", - /* 241 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 242 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", - /* 243 */ "cmd ::= SHOW BNODES", - /* 244 */ "cmd ::= SHOW SNODES", - /* 245 */ "cmd ::= SHOW CLUSTER", - /* 246 */ "cmd ::= SHOW TRANSACTIONS", - /* 247 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 248 */ "cmd ::= SHOW CONSUMERS", - /* 249 */ "cmd ::= SHOW SUBSCRIPTIONS", - /* 250 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", - /* 251 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", - /* 252 */ "cmd ::= SHOW VNODES NK_INTEGER", - /* 253 */ "cmd ::= SHOW VNODES NK_STRING", - /* 254 */ "cmd ::= SHOW db_name_cond_opt ALIVE", - /* 255 */ "cmd ::= SHOW CLUSTER ALIVE", - /* 256 */ "db_name_cond_opt ::=", - /* 257 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 258 */ "like_pattern_opt ::=", - /* 259 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 260 */ "table_name_cond ::= table_name", - /* 261 */ "from_db_opt ::=", - /* 262 */ "from_db_opt ::= FROM db_name", - /* 263 */ "tag_list_opt ::=", - /* 264 */ "tag_list_opt ::= tag_item", - /* 265 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", - /* 266 */ "tag_item ::= TBNAME", - /* 267 */ "tag_item ::= QTAGS", - /* 268 */ "tag_item ::= column_name", - /* 269 */ "tag_item ::= column_name column_alias", - /* 270 */ "tag_item ::= column_name AS column_alias", - /* 271 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options", - /* 272 */ "cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP", - /* 273 */ "cmd ::= DROP INDEX exists_opt full_index_name", - /* 274 */ "full_index_name ::= index_name", - /* 275 */ "full_index_name ::= db_name NK_DOT index_name", - /* 276 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", - /* 277 */ "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", - /* 278 */ "func_list ::= func", - /* 279 */ "func_list ::= func_list NK_COMMA func", - /* 280 */ "func ::= sma_func_name NK_LP expression_list NK_RP", - /* 281 */ "sma_func_name ::= function_name", - /* 282 */ "sma_func_name ::= COUNT", - /* 283 */ "sma_func_name ::= FIRST", - /* 284 */ "sma_func_name ::= LAST", - /* 285 */ "sma_func_name ::= LAST_ROW", - /* 286 */ "sma_stream_opt ::=", - /* 287 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", - /* 288 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", - /* 289 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", - /* 290 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", - /* 291 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", - /* 292 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", - /* 293 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", - /* 294 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", - /* 295 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 296 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 297 */ "cmd ::= DESC full_table_name", - /* 298 */ "cmd ::= DESCRIBE full_table_name", - /* 299 */ "cmd ::= RESET QUERY CACHE", - /* 300 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", - /* 301 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", - /* 302 */ "analyze_opt ::=", - /* 303 */ "analyze_opt ::= ANALYZE", - /* 304 */ "explain_options ::=", - /* 305 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 306 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 307 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", - /* 308 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 309 */ "agg_func_opt ::=", - /* 310 */ "agg_func_opt ::= AGGREGATE", - /* 311 */ "bufsize_opt ::=", - /* 312 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 313 */ "language_opt ::=", - /* 314 */ "language_opt ::= LANGUAGE NK_STRING", - /* 315 */ "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", - /* 316 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 317 */ "col_list_opt ::=", - /* 318 */ "col_list_opt ::= NK_LP col_name_list NK_RP", - /* 319 */ "tag_def_or_ref_opt ::=", - /* 320 */ "tag_def_or_ref_opt ::= tags_def", - /* 321 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", - /* 322 */ "stream_options ::=", - /* 323 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 324 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 325 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 326 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 327 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", - /* 328 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", - /* 329 */ "stream_options ::= stream_options DELETE_MARK duration_literal", - /* 330 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", - /* 331 */ "subtable_opt ::=", - /* 332 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", - /* 333 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 334 */ "cmd ::= KILL QUERY NK_STRING", - /* 335 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 336 */ "cmd ::= BALANCE VGROUP", - /* 337 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 338 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 339 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 340 */ "dnode_list ::= DNODE NK_INTEGER", - /* 341 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 342 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 343 */ "cmd ::= query_or_subquery", - /* 344 */ "cmd ::= insert_query", - /* 345 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", - /* 346 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", - /* 347 */ "literal ::= NK_INTEGER", - /* 348 */ "literal ::= NK_FLOAT", - /* 349 */ "literal ::= NK_STRING", - /* 350 */ "literal ::= NK_BOOL", - /* 351 */ "literal ::= TIMESTAMP NK_STRING", - /* 352 */ "literal ::= duration_literal", - /* 353 */ "literal ::= NULL", - /* 354 */ "literal ::= NK_QUESTION", - /* 355 */ "duration_literal ::= NK_VARIABLE", - /* 356 */ "signed ::= NK_INTEGER", - /* 357 */ "signed ::= NK_PLUS NK_INTEGER", - /* 358 */ "signed ::= NK_MINUS NK_INTEGER", - /* 359 */ "signed ::= NK_FLOAT", - /* 360 */ "signed ::= NK_PLUS NK_FLOAT", - /* 361 */ "signed ::= NK_MINUS NK_FLOAT", - /* 362 */ "signed_literal ::= signed", - /* 363 */ "signed_literal ::= NK_STRING", - /* 364 */ "signed_literal ::= NK_BOOL", - /* 365 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 366 */ "signed_literal ::= duration_literal", - /* 367 */ "signed_literal ::= NULL", - /* 368 */ "signed_literal ::= literal_func", - /* 369 */ "signed_literal ::= NK_QUESTION", - /* 370 */ "literal_list ::= signed_literal", - /* 371 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 372 */ "db_name ::= NK_ID", - /* 373 */ "table_name ::= NK_ID", - /* 374 */ "column_name ::= NK_ID", - /* 375 */ "function_name ::= NK_ID", - /* 376 */ "table_alias ::= NK_ID", - /* 377 */ "column_alias ::= NK_ID", - /* 378 */ "user_name ::= NK_ID", - /* 379 */ "topic_name ::= NK_ID", - /* 380 */ "stream_name ::= NK_ID", - /* 381 */ "cgroup_name ::= NK_ID", - /* 382 */ "index_name ::= NK_ID", - /* 383 */ "expr_or_subquery ::= expression", - /* 384 */ "expression ::= literal", - /* 385 */ "expression ::= pseudo_column", - /* 386 */ "expression ::= column_reference", - /* 387 */ "expression ::= function_expression", - /* 388 */ "expression ::= case_when_expression", - /* 389 */ "expression ::= NK_LP expression NK_RP", - /* 390 */ "expression ::= NK_PLUS expr_or_subquery", - /* 391 */ "expression ::= NK_MINUS expr_or_subquery", - /* 392 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", - /* 393 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", - /* 394 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", - /* 395 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", - /* 396 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", - /* 397 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 398 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", - /* 399 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", - /* 400 */ "expression_list ::= expr_or_subquery", - /* 401 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", - /* 402 */ "column_reference ::= column_name", - /* 403 */ "column_reference ::= table_name NK_DOT column_name", - /* 404 */ "pseudo_column ::= ROWTS", - /* 405 */ "pseudo_column ::= TBNAME", - /* 406 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 407 */ "pseudo_column ::= QSTART", - /* 408 */ "pseudo_column ::= QEND", - /* 409 */ "pseudo_column ::= QDURATION", - /* 410 */ "pseudo_column ::= WSTART", - /* 411 */ "pseudo_column ::= WEND", - /* 412 */ "pseudo_column ::= WDURATION", - /* 413 */ "pseudo_column ::= IROWTS", - /* 414 */ "pseudo_column ::= ISFILLED", - /* 415 */ "pseudo_column ::= QTAGS", - /* 416 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 417 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 418 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", - /* 419 */ "function_expression ::= literal_func", - /* 420 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 421 */ "literal_func ::= NOW", - /* 422 */ "noarg_func ::= NOW", - /* 423 */ "noarg_func ::= TODAY", - /* 424 */ "noarg_func ::= TIMEZONE", - /* 425 */ "noarg_func ::= DATABASE", - /* 426 */ "noarg_func ::= CLIENT_VERSION", - /* 427 */ "noarg_func ::= SERVER_VERSION", - /* 428 */ "noarg_func ::= SERVER_STATUS", - /* 429 */ "noarg_func ::= CURRENT_USER", - /* 430 */ "noarg_func ::= USER", - /* 431 */ "star_func ::= COUNT", - /* 432 */ "star_func ::= FIRST", - /* 433 */ "star_func ::= LAST", - /* 434 */ "star_func ::= LAST_ROW", - /* 435 */ "star_func_para_list ::= NK_STAR", - /* 436 */ "star_func_para_list ::= other_para_list", - /* 437 */ "other_para_list ::= star_func_para", - /* 438 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 439 */ "star_func_para ::= expr_or_subquery", - /* 440 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 441 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", - /* 442 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", - /* 443 */ "when_then_list ::= when_then_expr", - /* 444 */ "when_then_list ::= when_then_list when_then_expr", - /* 445 */ "when_then_expr ::= WHEN common_expression THEN common_expression", - /* 446 */ "case_when_else_opt ::=", - /* 447 */ "case_when_else_opt ::= ELSE common_expression", - /* 448 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", - /* 449 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", - /* 450 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", - /* 451 */ "predicate ::= expr_or_subquery IS NULL", - /* 452 */ "predicate ::= expr_or_subquery IS NOT NULL", - /* 453 */ "predicate ::= expr_or_subquery in_op in_predicate_value", - /* 454 */ "compare_op ::= NK_LT", - /* 455 */ "compare_op ::= NK_GT", - /* 456 */ "compare_op ::= NK_LE", - /* 457 */ "compare_op ::= NK_GE", - /* 458 */ "compare_op ::= NK_NE", - /* 459 */ "compare_op ::= NK_EQ", - /* 460 */ "compare_op ::= LIKE", - /* 461 */ "compare_op ::= NOT LIKE", - /* 462 */ "compare_op ::= MATCH", - /* 463 */ "compare_op ::= NMATCH", - /* 464 */ "compare_op ::= CONTAINS", - /* 465 */ "in_op ::= IN", - /* 466 */ "in_op ::= NOT IN", - /* 467 */ "in_predicate_value ::= NK_LP literal_list NK_RP", - /* 468 */ "boolean_value_expression ::= boolean_primary", - /* 469 */ "boolean_value_expression ::= NOT boolean_primary", - /* 470 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 471 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 472 */ "boolean_primary ::= predicate", - /* 473 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 474 */ "common_expression ::= expr_or_subquery", - /* 475 */ "common_expression ::= boolean_value_expression", - /* 476 */ "from_clause_opt ::=", - /* 477 */ "from_clause_opt ::= FROM table_reference_list", - /* 478 */ "table_reference_list ::= table_reference", - /* 479 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 480 */ "table_reference ::= table_primary", - /* 481 */ "table_reference ::= joined_table", - /* 482 */ "table_primary ::= table_name alias_opt", - /* 483 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 484 */ "table_primary ::= subquery alias_opt", - /* 485 */ "table_primary ::= parenthesized_joined_table", - /* 486 */ "alias_opt ::=", - /* 487 */ "alias_opt ::= table_alias", - /* 488 */ "alias_opt ::= AS table_alias", - /* 489 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 490 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 491 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 492 */ "join_type ::=", - /* 493 */ "join_type ::= INNER", - /* 494 */ "query_specification ::= SELECT set_quantifier_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", - /* 495 */ "set_quantifier_opt ::=", - /* 496 */ "set_quantifier_opt ::= DISTINCT", - /* 497 */ "set_quantifier_opt ::= ALL", - /* 498 */ "select_list ::= select_item", - /* 499 */ "select_list ::= select_list NK_COMMA select_item", - /* 500 */ "select_item ::= NK_STAR", - /* 501 */ "select_item ::= common_expression", - /* 502 */ "select_item ::= common_expression column_alias", - /* 503 */ "select_item ::= common_expression AS column_alias", - /* 504 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 505 */ "where_clause_opt ::=", - /* 506 */ "where_clause_opt ::= WHERE search_condition", - /* 507 */ "partition_by_clause_opt ::=", - /* 508 */ "partition_by_clause_opt ::= PARTITION BY partition_list", - /* 509 */ "partition_list ::= partition_item", - /* 510 */ "partition_list ::= partition_list NK_COMMA partition_item", - /* 511 */ "partition_item ::= expr_or_subquery", - /* 512 */ "partition_item ::= expr_or_subquery column_alias", - /* 513 */ "partition_item ::= expr_or_subquery AS column_alias", - /* 514 */ "twindow_clause_opt ::=", - /* 515 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 516 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", - /* 517 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 518 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 519 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", - /* 520 */ "sliding_opt ::=", - /* 521 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 522 */ "fill_opt ::=", - /* 523 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 524 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 525 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP", - /* 526 */ "fill_mode ::= NONE", - /* 527 */ "fill_mode ::= PREV", - /* 528 */ "fill_mode ::= NULL", - /* 529 */ "fill_mode ::= NULL_F", - /* 530 */ "fill_mode ::= LINEAR", - /* 531 */ "fill_mode ::= NEXT", - /* 532 */ "group_by_clause_opt ::=", - /* 533 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 534 */ "group_by_list ::= expr_or_subquery", - /* 535 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", - /* 536 */ "having_clause_opt ::=", - /* 537 */ "having_clause_opt ::= HAVING search_condition", - /* 538 */ "range_opt ::=", - /* 539 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", - /* 540 */ "every_opt ::=", - /* 541 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 542 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 543 */ "query_simple ::= query_specification", - /* 544 */ "query_simple ::= union_query_expression", - /* 545 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", - /* 546 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", - /* 547 */ "query_simple_or_subquery ::= query_simple", - /* 548 */ "query_simple_or_subquery ::= subquery", - /* 549 */ "query_or_subquery ::= query_expression", - /* 550 */ "query_or_subquery ::= subquery", - /* 551 */ "order_by_clause_opt ::=", - /* 552 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 553 */ "slimit_clause_opt ::=", - /* 554 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 555 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 556 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 557 */ "limit_clause_opt ::=", - /* 558 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 559 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 560 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 561 */ "subquery ::= NK_LP query_expression NK_RP", - /* 562 */ "subquery ::= NK_LP subquery NK_RP", - /* 563 */ "search_condition ::= common_expression", - /* 564 */ "sort_specification_list ::= sort_specification", - /* 565 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 566 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", - /* 567 */ "ordering_specification_opt ::=", - /* 568 */ "ordering_specification_opt ::= ASC", - /* 569 */ "ordering_specification_opt ::= DESC", - /* 570 */ "null_ordering_opt ::=", - /* 571 */ "null_ordering_opt ::= NULLS FIRST", - /* 572 */ "null_ordering_opt ::= NULLS LAST", + /* 120 */ "alter_db_option ::= MINROWS NK_INTEGER", + /* 121 */ "integer_list ::= NK_INTEGER", + /* 122 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", + /* 123 */ "variable_list ::= NK_VARIABLE", + /* 124 */ "variable_list ::= variable_list NK_COMMA NK_VARIABLE", + /* 125 */ "retention_list ::= retention", + /* 126 */ "retention_list ::= retention_list NK_COMMA retention", + /* 127 */ "retention ::= NK_VARIABLE NK_COLON NK_VARIABLE", + /* 128 */ "speed_opt ::=", + /* 129 */ "speed_opt ::= MAX_SPEED NK_INTEGER", + /* 130 */ "start_opt ::=", + /* 131 */ "start_opt ::= START WITH NK_INTEGER", + /* 132 */ "start_opt ::= START WITH NK_STRING", + /* 133 */ "start_opt ::= START WITH TIMESTAMP NK_STRING", + /* 134 */ "end_opt ::=", + /* 135 */ "end_opt ::= END WITH NK_INTEGER", + /* 136 */ "end_opt ::= END WITH NK_STRING", + /* 137 */ "end_opt ::= END WITH TIMESTAMP NK_STRING", + /* 138 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 139 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 140 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 141 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 142 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 143 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 144 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 145 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 146 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 147 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 148 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 149 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 150 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 151 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 152 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 153 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 154 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", + /* 155 */ "multi_create_clause ::= create_subtable_clause", + /* 156 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 157 */ "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", + /* 158 */ "multi_drop_clause ::= drop_table_clause", + /* 159 */ "multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause", + /* 160 */ "drop_table_clause ::= exists_opt full_table_name", + /* 161 */ "specific_cols_opt ::=", + /* 162 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", + /* 163 */ "full_table_name ::= table_name", + /* 164 */ "full_table_name ::= db_name NK_DOT table_name", + /* 165 */ "column_def_list ::= column_def", + /* 166 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 167 */ "column_def ::= column_name type_name", + /* 168 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 169 */ "type_name ::= BOOL", + /* 170 */ "type_name ::= TINYINT", + /* 171 */ "type_name ::= SMALLINT", + /* 172 */ "type_name ::= INT", + /* 173 */ "type_name ::= INTEGER", + /* 174 */ "type_name ::= BIGINT", + /* 175 */ "type_name ::= FLOAT", + /* 176 */ "type_name ::= DOUBLE", + /* 177 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 178 */ "type_name ::= TIMESTAMP", + /* 179 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 180 */ "type_name ::= TINYINT UNSIGNED", + /* 181 */ "type_name ::= SMALLINT UNSIGNED", + /* 182 */ "type_name ::= INT UNSIGNED", + /* 183 */ "type_name ::= BIGINT UNSIGNED", + /* 184 */ "type_name ::= JSON", + /* 185 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 186 */ "type_name ::= MEDIUMBLOB", + /* 187 */ "type_name ::= BLOB", + /* 188 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 189 */ "type_name ::= DECIMAL", + /* 190 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 191 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 192 */ "tags_def_opt ::=", + /* 193 */ "tags_def_opt ::= tags_def", + /* 194 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 195 */ "table_options ::=", + /* 196 */ "table_options ::= table_options COMMENT NK_STRING", + /* 197 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 198 */ "table_options ::= table_options WATERMARK duration_list", + /* 199 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 200 */ "table_options ::= table_options TTL NK_INTEGER", + /* 201 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 202 */ "table_options ::= table_options DELETE_MARK duration_list", + /* 203 */ "alter_table_options ::= alter_table_option", + /* 204 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 205 */ "alter_table_option ::= COMMENT NK_STRING", + /* 206 */ "alter_table_option ::= TTL NK_INTEGER", + /* 207 */ "duration_list ::= duration_literal", + /* 208 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 209 */ "rollup_func_list ::= rollup_func_name", + /* 210 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 211 */ "rollup_func_name ::= function_name", + /* 212 */ "rollup_func_name ::= FIRST", + /* 213 */ "rollup_func_name ::= LAST", + /* 214 */ "col_name_list ::= col_name", + /* 215 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 216 */ "col_name ::= column_name", + /* 217 */ "cmd ::= SHOW DNODES", + /* 218 */ "cmd ::= SHOW USERS", + /* 219 */ "cmd ::= SHOW USER PRIVILEGES", + /* 220 */ "cmd ::= SHOW DATABASES", + /* 221 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 222 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 223 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 224 */ "cmd ::= SHOW MNODES", + /* 225 */ "cmd ::= SHOW QNODES", + /* 226 */ "cmd ::= SHOW FUNCTIONS", + /* 227 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 228 */ "cmd ::= SHOW STREAMS", + /* 229 */ "cmd ::= SHOW ACCOUNTS", + /* 230 */ "cmd ::= SHOW APPS", + /* 231 */ "cmd ::= SHOW CONNECTIONS", + /* 232 */ "cmd ::= SHOW LICENCES", + /* 233 */ "cmd ::= SHOW GRANTS", + /* 234 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 235 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 236 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 237 */ "cmd ::= SHOW QUERIES", + /* 238 */ "cmd ::= SHOW SCORES", + /* 239 */ "cmd ::= SHOW TOPICS", + /* 240 */ "cmd ::= SHOW VARIABLES", + /* 241 */ "cmd ::= SHOW CLUSTER VARIABLES", + /* 242 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 243 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", + /* 244 */ "cmd ::= SHOW BNODES", + /* 245 */ "cmd ::= SHOW SNODES", + /* 246 */ "cmd ::= SHOW CLUSTER", + /* 247 */ "cmd ::= SHOW TRANSACTIONS", + /* 248 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 249 */ "cmd ::= SHOW CONSUMERS", + /* 250 */ "cmd ::= SHOW SUBSCRIPTIONS", + /* 251 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", + /* 252 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", + /* 253 */ "cmd ::= SHOW VNODES NK_INTEGER", + /* 254 */ "cmd ::= SHOW VNODES NK_STRING", + /* 255 */ "cmd ::= SHOW db_name_cond_opt ALIVE", + /* 256 */ "cmd ::= SHOW CLUSTER ALIVE", + /* 257 */ "db_name_cond_opt ::=", + /* 258 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 259 */ "like_pattern_opt ::=", + /* 260 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 261 */ "table_name_cond ::= table_name", + /* 262 */ "from_db_opt ::=", + /* 263 */ "from_db_opt ::= FROM db_name", + /* 264 */ "tag_list_opt ::=", + /* 265 */ "tag_list_opt ::= tag_item", + /* 266 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", + /* 267 */ "tag_item ::= TBNAME", + /* 268 */ "tag_item ::= QTAGS", + /* 269 */ "tag_item ::= column_name", + /* 270 */ "tag_item ::= column_name column_alias", + /* 271 */ "tag_item ::= column_name AS column_alias", + /* 272 */ "cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options", + /* 273 */ "cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP", + /* 274 */ "cmd ::= DROP INDEX exists_opt full_index_name", + /* 275 */ "full_index_name ::= index_name", + /* 276 */ "full_index_name ::= db_name NK_DOT index_name", + /* 277 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", + /* 278 */ "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", + /* 279 */ "func_list ::= func", + /* 280 */ "func_list ::= func_list NK_COMMA func", + /* 281 */ "func ::= sma_func_name NK_LP expression_list NK_RP", + /* 282 */ "sma_func_name ::= function_name", + /* 283 */ "sma_func_name ::= COUNT", + /* 284 */ "sma_func_name ::= FIRST", + /* 285 */ "sma_func_name ::= LAST", + /* 286 */ "sma_func_name ::= LAST_ROW", + /* 287 */ "sma_stream_opt ::=", + /* 288 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", + /* 289 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", + /* 290 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", + /* 291 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", + /* 292 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name", + /* 293 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name", + /* 294 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name", + /* 295 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name", + /* 296 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 297 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 298 */ "cmd ::= DESC full_table_name", + /* 299 */ "cmd ::= DESCRIBE full_table_name", + /* 300 */ "cmd ::= RESET QUERY CACHE", + /* 301 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", + /* 302 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", + /* 303 */ "analyze_opt ::=", + /* 304 */ "analyze_opt ::= ANALYZE", + /* 305 */ "explain_options ::=", + /* 306 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 307 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 308 */ "cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", + /* 309 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 310 */ "agg_func_opt ::=", + /* 311 */ "agg_func_opt ::= AGGREGATE", + /* 312 */ "bufsize_opt ::=", + /* 313 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 314 */ "language_opt ::=", + /* 315 */ "language_opt ::= LANGUAGE NK_STRING", + /* 316 */ "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", + /* 317 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 318 */ "col_list_opt ::=", + /* 319 */ "col_list_opt ::= NK_LP col_name_list NK_RP", + /* 320 */ "tag_def_or_ref_opt ::=", + /* 321 */ "tag_def_or_ref_opt ::= tags_def", + /* 322 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", + /* 323 */ "stream_options ::=", + /* 324 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 325 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 326 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 327 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 328 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", + /* 329 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", + /* 330 */ "stream_options ::= stream_options DELETE_MARK duration_literal", + /* 331 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", + /* 332 */ "subtable_opt ::=", + /* 333 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", + /* 334 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 335 */ "cmd ::= KILL QUERY NK_STRING", + /* 336 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 337 */ "cmd ::= BALANCE VGROUP", + /* 338 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 339 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 340 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 341 */ "dnode_list ::= DNODE NK_INTEGER", + /* 342 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 343 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 344 */ "cmd ::= query_or_subquery", + /* 345 */ "cmd ::= insert_query", + /* 346 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", + /* 347 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", + /* 348 */ "literal ::= NK_INTEGER", + /* 349 */ "literal ::= NK_FLOAT", + /* 350 */ "literal ::= NK_STRING", + /* 351 */ "literal ::= NK_BOOL", + /* 352 */ "literal ::= TIMESTAMP NK_STRING", + /* 353 */ "literal ::= duration_literal", + /* 354 */ "literal ::= NULL", + /* 355 */ "literal ::= NK_QUESTION", + /* 356 */ "duration_literal ::= NK_VARIABLE", + /* 357 */ "signed ::= NK_INTEGER", + /* 358 */ "signed ::= NK_PLUS NK_INTEGER", + /* 359 */ "signed ::= NK_MINUS NK_INTEGER", + /* 360 */ "signed ::= NK_FLOAT", + /* 361 */ "signed ::= NK_PLUS NK_FLOAT", + /* 362 */ "signed ::= NK_MINUS NK_FLOAT", + /* 363 */ "signed_literal ::= signed", + /* 364 */ "signed_literal ::= NK_STRING", + /* 365 */ "signed_literal ::= NK_BOOL", + /* 366 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 367 */ "signed_literal ::= duration_literal", + /* 368 */ "signed_literal ::= NULL", + /* 369 */ "signed_literal ::= literal_func", + /* 370 */ "signed_literal ::= NK_QUESTION", + /* 371 */ "literal_list ::= signed_literal", + /* 372 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 373 */ "db_name ::= NK_ID", + /* 374 */ "table_name ::= NK_ID", + /* 375 */ "column_name ::= NK_ID", + /* 376 */ "function_name ::= NK_ID", + /* 377 */ "table_alias ::= NK_ID", + /* 378 */ "column_alias ::= NK_ID", + /* 379 */ "user_name ::= NK_ID", + /* 380 */ "topic_name ::= NK_ID", + /* 381 */ "stream_name ::= NK_ID", + /* 382 */ "cgroup_name ::= NK_ID", + /* 383 */ "index_name ::= NK_ID", + /* 384 */ "expr_or_subquery ::= expression", + /* 385 */ "expression ::= literal", + /* 386 */ "expression ::= pseudo_column", + /* 387 */ "expression ::= column_reference", + /* 388 */ "expression ::= function_expression", + /* 389 */ "expression ::= case_when_expression", + /* 390 */ "expression ::= NK_LP expression NK_RP", + /* 391 */ "expression ::= NK_PLUS expr_or_subquery", + /* 392 */ "expression ::= NK_MINUS expr_or_subquery", + /* 393 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", + /* 394 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", + /* 395 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", + /* 396 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", + /* 397 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", + /* 398 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 399 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", + /* 400 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", + /* 401 */ "expression_list ::= expr_or_subquery", + /* 402 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", + /* 403 */ "column_reference ::= column_name", + /* 404 */ "column_reference ::= table_name NK_DOT column_name", + /* 405 */ "pseudo_column ::= ROWTS", + /* 406 */ "pseudo_column ::= TBNAME", + /* 407 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 408 */ "pseudo_column ::= QSTART", + /* 409 */ "pseudo_column ::= QEND", + /* 410 */ "pseudo_column ::= QDURATION", + /* 411 */ "pseudo_column ::= WSTART", + /* 412 */ "pseudo_column ::= WEND", + /* 413 */ "pseudo_column ::= WDURATION", + /* 414 */ "pseudo_column ::= IROWTS", + /* 415 */ "pseudo_column ::= ISFILLED", + /* 416 */ "pseudo_column ::= QTAGS", + /* 417 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 418 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 419 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", + /* 420 */ "function_expression ::= literal_func", + /* 421 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 422 */ "literal_func ::= NOW", + /* 423 */ "noarg_func ::= NOW", + /* 424 */ "noarg_func ::= TODAY", + /* 425 */ "noarg_func ::= TIMEZONE", + /* 426 */ "noarg_func ::= DATABASE", + /* 427 */ "noarg_func ::= CLIENT_VERSION", + /* 428 */ "noarg_func ::= SERVER_VERSION", + /* 429 */ "noarg_func ::= SERVER_STATUS", + /* 430 */ "noarg_func ::= CURRENT_USER", + /* 431 */ "noarg_func ::= USER", + /* 432 */ "star_func ::= COUNT", + /* 433 */ "star_func ::= FIRST", + /* 434 */ "star_func ::= LAST", + /* 435 */ "star_func ::= LAST_ROW", + /* 436 */ "star_func_para_list ::= NK_STAR", + /* 437 */ "star_func_para_list ::= other_para_list", + /* 438 */ "other_para_list ::= star_func_para", + /* 439 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 440 */ "star_func_para ::= expr_or_subquery", + /* 441 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 442 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", + /* 443 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", + /* 444 */ "when_then_list ::= when_then_expr", + /* 445 */ "when_then_list ::= when_then_list when_then_expr", + /* 446 */ "when_then_expr ::= WHEN common_expression THEN common_expression", + /* 447 */ "case_when_else_opt ::=", + /* 448 */ "case_when_else_opt ::= ELSE common_expression", + /* 449 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", + /* 450 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", + /* 451 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", + /* 452 */ "predicate ::= expr_or_subquery IS NULL", + /* 453 */ "predicate ::= expr_or_subquery IS NOT NULL", + /* 454 */ "predicate ::= expr_or_subquery in_op in_predicate_value", + /* 455 */ "compare_op ::= NK_LT", + /* 456 */ "compare_op ::= NK_GT", + /* 457 */ "compare_op ::= NK_LE", + /* 458 */ "compare_op ::= NK_GE", + /* 459 */ "compare_op ::= NK_NE", + /* 460 */ "compare_op ::= NK_EQ", + /* 461 */ "compare_op ::= LIKE", + /* 462 */ "compare_op ::= NOT LIKE", + /* 463 */ "compare_op ::= MATCH", + /* 464 */ "compare_op ::= NMATCH", + /* 465 */ "compare_op ::= CONTAINS", + /* 466 */ "in_op ::= IN", + /* 467 */ "in_op ::= NOT IN", + /* 468 */ "in_predicate_value ::= NK_LP literal_list NK_RP", + /* 469 */ "boolean_value_expression ::= boolean_primary", + /* 470 */ "boolean_value_expression ::= NOT boolean_primary", + /* 471 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 472 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 473 */ "boolean_primary ::= predicate", + /* 474 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 475 */ "common_expression ::= expr_or_subquery", + /* 476 */ "common_expression ::= boolean_value_expression", + /* 477 */ "from_clause_opt ::=", + /* 478 */ "from_clause_opt ::= FROM table_reference_list", + /* 479 */ "table_reference_list ::= table_reference", + /* 480 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 481 */ "table_reference ::= table_primary", + /* 482 */ "table_reference ::= joined_table", + /* 483 */ "table_primary ::= table_name alias_opt", + /* 484 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 485 */ "table_primary ::= subquery alias_opt", + /* 486 */ "table_primary ::= parenthesized_joined_table", + /* 487 */ "alias_opt ::=", + /* 488 */ "alias_opt ::= table_alias", + /* 489 */ "alias_opt ::= AS table_alias", + /* 490 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 491 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 492 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 493 */ "join_type ::=", + /* 494 */ "join_type ::= INNER", + /* 495 */ "query_specification ::= SELECT set_quantifier_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", + /* 496 */ "set_quantifier_opt ::=", + /* 497 */ "set_quantifier_opt ::= DISTINCT", + /* 498 */ "set_quantifier_opt ::= ALL", + /* 499 */ "select_list ::= select_item", + /* 500 */ "select_list ::= select_list NK_COMMA select_item", + /* 501 */ "select_item ::= NK_STAR", + /* 502 */ "select_item ::= common_expression", + /* 503 */ "select_item ::= common_expression column_alias", + /* 504 */ "select_item ::= common_expression AS column_alias", + /* 505 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 506 */ "where_clause_opt ::=", + /* 507 */ "where_clause_opt ::= WHERE search_condition", + /* 508 */ "partition_by_clause_opt ::=", + /* 509 */ "partition_by_clause_opt ::= PARTITION BY partition_list", + /* 510 */ "partition_list ::= partition_item", + /* 511 */ "partition_list ::= partition_list NK_COMMA partition_item", + /* 512 */ "partition_item ::= expr_or_subquery", + /* 513 */ "partition_item ::= expr_or_subquery column_alias", + /* 514 */ "partition_item ::= expr_or_subquery AS column_alias", + /* 515 */ "twindow_clause_opt ::=", + /* 516 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 517 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", + /* 518 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 519 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 520 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", + /* 521 */ "sliding_opt ::=", + /* 522 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 523 */ "fill_opt ::=", + /* 524 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 525 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 526 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP", + /* 527 */ "fill_mode ::= NONE", + /* 528 */ "fill_mode ::= PREV", + /* 529 */ "fill_mode ::= NULL", + /* 530 */ "fill_mode ::= NULL_F", + /* 531 */ "fill_mode ::= LINEAR", + /* 532 */ "fill_mode ::= NEXT", + /* 533 */ "group_by_clause_opt ::=", + /* 534 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 535 */ "group_by_list ::= expr_or_subquery", + /* 536 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", + /* 537 */ "having_clause_opt ::=", + /* 538 */ "having_clause_opt ::= HAVING search_condition", + /* 539 */ "range_opt ::=", + /* 540 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", + /* 541 */ "every_opt ::=", + /* 542 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 543 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 544 */ "query_simple ::= query_specification", + /* 545 */ "query_simple ::= union_query_expression", + /* 546 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", + /* 547 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", + /* 548 */ "query_simple_or_subquery ::= query_simple", + /* 549 */ "query_simple_or_subquery ::= subquery", + /* 550 */ "query_or_subquery ::= query_expression", + /* 551 */ "query_or_subquery ::= subquery", + /* 552 */ "order_by_clause_opt ::=", + /* 553 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 554 */ "slimit_clause_opt ::=", + /* 555 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 556 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 557 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 558 */ "limit_clause_opt ::=", + /* 559 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 560 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 561 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 562 */ "subquery ::= NK_LP query_expression NK_RP", + /* 563 */ "subquery ::= NK_LP subquery NK_RP", + /* 564 */ "search_condition ::= common_expression", + /* 565 */ "sort_specification_list ::= sort_specification", + /* 566 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 567 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", + /* 568 */ "ordering_specification_opt ::=", + /* 569 */ "ordering_specification_opt ::= ASC", + /* 570 */ "ordering_specification_opt ::= DESC", + /* 571 */ "null_ordering_opt ::=", + /* 572 */ "null_ordering_opt ::= NULLS FIRST", + /* 573 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -3211,459 +3212,460 @@ static const struct { { 354, -2 }, /* (117) alter_db_option ::= REPLICA NK_INTEGER */ { 354, -2 }, /* (118) alter_db_option ::= WAL_LEVEL NK_INTEGER */ { 354, -2 }, /* (119) alter_db_option ::= STT_TRIGGER NK_INTEGER */ - { 351, -1 }, /* (120) integer_list ::= NK_INTEGER */ - { 351, -3 }, /* (121) integer_list ::= integer_list NK_COMMA NK_INTEGER */ - { 352, -1 }, /* (122) variable_list ::= NK_VARIABLE */ - { 352, -3 }, /* (123) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ - { 353, -1 }, /* (124) retention_list ::= retention */ - { 353, -3 }, /* (125) retention_list ::= retention_list NK_COMMA retention */ - { 355, -3 }, /* (126) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ - { 348, 0 }, /* (127) speed_opt ::= */ - { 348, -2 }, /* (128) speed_opt ::= MAX_SPEED NK_INTEGER */ - { 349, 0 }, /* (129) start_opt ::= */ - { 349, -3 }, /* (130) start_opt ::= START WITH NK_INTEGER */ - { 349, -3 }, /* (131) start_opt ::= START WITH NK_STRING */ - { 349, -4 }, /* (132) start_opt ::= START WITH TIMESTAMP NK_STRING */ - { 350, 0 }, /* (133) end_opt ::= */ - { 350, -3 }, /* (134) end_opt ::= END WITH NK_INTEGER */ - { 350, -3 }, /* (135) end_opt ::= END WITH NK_STRING */ - { 350, -4 }, /* (136) end_opt ::= END WITH TIMESTAMP NK_STRING */ - { 329, -9 }, /* (137) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 329, -3 }, /* (138) cmd ::= CREATE TABLE multi_create_clause */ - { 329, -9 }, /* (139) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 329, -3 }, /* (140) cmd ::= DROP TABLE multi_drop_clause */ - { 329, -4 }, /* (141) cmd ::= DROP STABLE exists_opt full_table_name */ - { 329, -3 }, /* (142) cmd ::= ALTER TABLE alter_table_clause */ - { 329, -3 }, /* (143) cmd ::= ALTER STABLE alter_table_clause */ - { 363, -2 }, /* (144) alter_table_clause ::= full_table_name alter_table_options */ - { 363, -5 }, /* (145) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 363, -4 }, /* (146) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 363, -5 }, /* (147) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 363, -5 }, /* (148) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 363, -5 }, /* (149) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 363, -4 }, /* (150) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 363, -5 }, /* (151) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 363, -5 }, /* (152) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 363, -6 }, /* (153) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ - { 360, -1 }, /* (154) multi_create_clause ::= create_subtable_clause */ - { 360, -2 }, /* (155) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 368, -10 }, /* (156) 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 */ - { 362, -1 }, /* (157) multi_drop_clause ::= drop_table_clause */ - { 362, -3 }, /* (158) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ - { 371, -2 }, /* (159) drop_table_clause ::= exists_opt full_table_name */ - { 369, 0 }, /* (160) specific_cols_opt ::= */ - { 369, -3 }, /* (161) specific_cols_opt ::= NK_LP col_name_list NK_RP */ - { 356, -1 }, /* (162) full_table_name ::= table_name */ - { 356, -3 }, /* (163) full_table_name ::= db_name NK_DOT table_name */ - { 357, -1 }, /* (164) column_def_list ::= column_def */ - { 357, -3 }, /* (165) column_def_list ::= column_def_list NK_COMMA column_def */ - { 374, -2 }, /* (166) column_def ::= column_name type_name */ - { 374, -4 }, /* (167) column_def ::= column_name type_name COMMENT NK_STRING */ - { 366, -1 }, /* (168) type_name ::= BOOL */ - { 366, -1 }, /* (169) type_name ::= TINYINT */ - { 366, -1 }, /* (170) type_name ::= SMALLINT */ - { 366, -1 }, /* (171) type_name ::= INT */ - { 366, -1 }, /* (172) type_name ::= INTEGER */ - { 366, -1 }, /* (173) type_name ::= BIGINT */ - { 366, -1 }, /* (174) type_name ::= FLOAT */ - { 366, -1 }, /* (175) type_name ::= DOUBLE */ - { 366, -4 }, /* (176) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 366, -1 }, /* (177) type_name ::= TIMESTAMP */ - { 366, -4 }, /* (178) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 366, -2 }, /* (179) type_name ::= TINYINT UNSIGNED */ - { 366, -2 }, /* (180) type_name ::= SMALLINT UNSIGNED */ - { 366, -2 }, /* (181) type_name ::= INT UNSIGNED */ - { 366, -2 }, /* (182) type_name ::= BIGINT UNSIGNED */ - { 366, -1 }, /* (183) type_name ::= JSON */ - { 366, -4 }, /* (184) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 366, -1 }, /* (185) type_name ::= MEDIUMBLOB */ - { 366, -1 }, /* (186) type_name ::= BLOB */ - { 366, -4 }, /* (187) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 366, -1 }, /* (188) type_name ::= DECIMAL */ - { 366, -4 }, /* (189) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 366, -6 }, /* (190) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 358, 0 }, /* (191) tags_def_opt ::= */ - { 358, -1 }, /* (192) tags_def_opt ::= tags_def */ - { 361, -4 }, /* (193) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 359, 0 }, /* (194) table_options ::= */ - { 359, -3 }, /* (195) table_options ::= table_options COMMENT NK_STRING */ - { 359, -3 }, /* (196) table_options ::= table_options MAX_DELAY duration_list */ - { 359, -3 }, /* (197) table_options ::= table_options WATERMARK duration_list */ - { 359, -5 }, /* (198) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - { 359, -3 }, /* (199) table_options ::= table_options TTL NK_INTEGER */ - { 359, -5 }, /* (200) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 359, -3 }, /* (201) table_options ::= table_options DELETE_MARK duration_list */ - { 364, -1 }, /* (202) alter_table_options ::= alter_table_option */ - { 364, -2 }, /* (203) alter_table_options ::= alter_table_options alter_table_option */ - { 377, -2 }, /* (204) alter_table_option ::= COMMENT NK_STRING */ - { 377, -2 }, /* (205) alter_table_option ::= TTL NK_INTEGER */ - { 375, -1 }, /* (206) duration_list ::= duration_literal */ - { 375, -3 }, /* (207) duration_list ::= duration_list NK_COMMA duration_literal */ - { 376, -1 }, /* (208) rollup_func_list ::= rollup_func_name */ - { 376, -3 }, /* (209) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - { 379, -1 }, /* (210) rollup_func_name ::= function_name */ - { 379, -1 }, /* (211) rollup_func_name ::= FIRST */ - { 379, -1 }, /* (212) rollup_func_name ::= LAST */ - { 372, -1 }, /* (213) col_name_list ::= col_name */ - { 372, -3 }, /* (214) col_name_list ::= col_name_list NK_COMMA col_name */ - { 381, -1 }, /* (215) col_name ::= column_name */ - { 329, -2 }, /* (216) cmd ::= SHOW DNODES */ - { 329, -2 }, /* (217) cmd ::= SHOW USERS */ - { 329, -3 }, /* (218) cmd ::= SHOW USER PRIVILEGES */ - { 329, -2 }, /* (219) cmd ::= SHOW DATABASES */ - { 329, -4 }, /* (220) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 329, -4 }, /* (221) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 329, -3 }, /* (222) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 329, -2 }, /* (223) cmd ::= SHOW MNODES */ - { 329, -2 }, /* (224) cmd ::= SHOW QNODES */ - { 329, -2 }, /* (225) cmd ::= SHOW FUNCTIONS */ - { 329, -5 }, /* (226) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 329, -2 }, /* (227) cmd ::= SHOW STREAMS */ - { 329, -2 }, /* (228) cmd ::= SHOW ACCOUNTS */ - { 329, -2 }, /* (229) cmd ::= SHOW APPS */ - { 329, -2 }, /* (230) cmd ::= SHOW CONNECTIONS */ - { 329, -2 }, /* (231) cmd ::= SHOW LICENCES */ - { 329, -2 }, /* (232) cmd ::= SHOW GRANTS */ - { 329, -4 }, /* (233) cmd ::= SHOW CREATE DATABASE db_name */ - { 329, -4 }, /* (234) cmd ::= SHOW CREATE TABLE full_table_name */ - { 329, -4 }, /* (235) cmd ::= SHOW CREATE STABLE full_table_name */ - { 329, -2 }, /* (236) cmd ::= SHOW QUERIES */ - { 329, -2 }, /* (237) cmd ::= SHOW SCORES */ - { 329, -2 }, /* (238) cmd ::= SHOW TOPICS */ - { 329, -2 }, /* (239) cmd ::= SHOW VARIABLES */ - { 329, -3 }, /* (240) cmd ::= SHOW CLUSTER VARIABLES */ - { 329, -3 }, /* (241) cmd ::= SHOW LOCAL VARIABLES */ - { 329, -5 }, /* (242) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - { 329, -2 }, /* (243) cmd ::= SHOW BNODES */ - { 329, -2 }, /* (244) cmd ::= SHOW SNODES */ - { 329, -2 }, /* (245) cmd ::= SHOW CLUSTER */ - { 329, -2 }, /* (246) cmd ::= SHOW TRANSACTIONS */ - { 329, -4 }, /* (247) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - { 329, -2 }, /* (248) cmd ::= SHOW CONSUMERS */ - { 329, -2 }, /* (249) cmd ::= SHOW SUBSCRIPTIONS */ - { 329, -5 }, /* (250) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - { 329, -7 }, /* (251) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - { 329, -3 }, /* (252) cmd ::= SHOW VNODES NK_INTEGER */ - { 329, -3 }, /* (253) cmd ::= SHOW VNODES NK_STRING */ - { 329, -3 }, /* (254) cmd ::= SHOW db_name_cond_opt ALIVE */ - { 329, -3 }, /* (255) cmd ::= SHOW CLUSTER ALIVE */ - { 382, 0 }, /* (256) db_name_cond_opt ::= */ - { 382, -2 }, /* (257) db_name_cond_opt ::= db_name NK_DOT */ - { 383, 0 }, /* (258) like_pattern_opt ::= */ - { 383, -2 }, /* (259) like_pattern_opt ::= LIKE NK_STRING */ - { 384, -1 }, /* (260) table_name_cond ::= table_name */ - { 385, 0 }, /* (261) from_db_opt ::= */ - { 385, -2 }, /* (262) from_db_opt ::= FROM db_name */ - { 386, 0 }, /* (263) tag_list_opt ::= */ - { 386, -1 }, /* (264) tag_list_opt ::= tag_item */ - { 386, -3 }, /* (265) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - { 387, -1 }, /* (266) tag_item ::= TBNAME */ - { 387, -1 }, /* (267) tag_item ::= QTAGS */ - { 387, -1 }, /* (268) tag_item ::= column_name */ - { 387, -2 }, /* (269) tag_item ::= column_name column_alias */ - { 387, -3 }, /* (270) tag_item ::= column_name AS column_alias */ - { 329, -8 }, /* (271) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ - { 329, -9 }, /* (272) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ - { 329, -4 }, /* (273) cmd ::= DROP INDEX exists_opt full_index_name */ - { 389, -1 }, /* (274) full_index_name ::= index_name */ - { 389, -3 }, /* (275) full_index_name ::= db_name NK_DOT index_name */ - { 390, -10 }, /* (276) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - { 390, -12 }, /* (277) 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 */ - { 392, -1 }, /* (278) func_list ::= func */ - { 392, -3 }, /* (279) func_list ::= func_list NK_COMMA func */ - { 395, -4 }, /* (280) func ::= sma_func_name NK_LP expression_list NK_RP */ - { 396, -1 }, /* (281) sma_func_name ::= function_name */ - { 396, -1 }, /* (282) sma_func_name ::= COUNT */ - { 396, -1 }, /* (283) sma_func_name ::= FIRST */ - { 396, -1 }, /* (284) sma_func_name ::= LAST */ - { 396, -1 }, /* (285) sma_func_name ::= LAST_ROW */ - { 394, 0 }, /* (286) sma_stream_opt ::= */ - { 394, -3 }, /* (287) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - { 394, -3 }, /* (288) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - { 394, -3 }, /* (289) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - { 329, -6 }, /* (290) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - { 329, -7 }, /* (291) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ - { 329, -9 }, /* (292) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ - { 329, -7 }, /* (293) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ - { 329, -9 }, /* (294) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ - { 329, -4 }, /* (295) cmd ::= DROP TOPIC exists_opt topic_name */ - { 329, -7 }, /* (296) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - { 329, -2 }, /* (297) cmd ::= DESC full_table_name */ - { 329, -2 }, /* (298) cmd ::= DESCRIBE full_table_name */ - { 329, -3 }, /* (299) cmd ::= RESET QUERY CACHE */ - { 329, -4 }, /* (300) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - { 329, -4 }, /* (301) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - { 399, 0 }, /* (302) analyze_opt ::= */ - { 399, -1 }, /* (303) analyze_opt ::= ANALYZE */ - { 400, 0 }, /* (304) explain_options ::= */ - { 400, -3 }, /* (305) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 400, -3 }, /* (306) explain_options ::= explain_options RATIO NK_FLOAT */ - { 329, -11 }, /* (307) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - { 329, -4 }, /* (308) cmd ::= DROP FUNCTION exists_opt function_name */ - { 402, 0 }, /* (309) agg_func_opt ::= */ - { 402, -1 }, /* (310) agg_func_opt ::= AGGREGATE */ - { 403, 0 }, /* (311) bufsize_opt ::= */ - { 403, -2 }, /* (312) bufsize_opt ::= BUFSIZE NK_INTEGER */ - { 404, 0 }, /* (313) language_opt ::= */ - { 404, -2 }, /* (314) language_opt ::= LANGUAGE NK_STRING */ - { 329, -12 }, /* (315) 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 */ - { 329, -4 }, /* (316) cmd ::= DROP STREAM exists_opt stream_name */ - { 407, 0 }, /* (317) col_list_opt ::= */ - { 407, -3 }, /* (318) col_list_opt ::= NK_LP col_name_list NK_RP */ - { 408, 0 }, /* (319) tag_def_or_ref_opt ::= */ - { 408, -1 }, /* (320) tag_def_or_ref_opt ::= tags_def */ - { 408, -4 }, /* (321) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ - { 406, 0 }, /* (322) stream_options ::= */ - { 406, -3 }, /* (323) stream_options ::= stream_options TRIGGER AT_ONCE */ - { 406, -3 }, /* (324) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - { 406, -4 }, /* (325) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - { 406, -3 }, /* (326) stream_options ::= stream_options WATERMARK duration_literal */ - { 406, -4 }, /* (327) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - { 406, -3 }, /* (328) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - { 406, -3 }, /* (329) stream_options ::= stream_options DELETE_MARK duration_literal */ - { 406, -4 }, /* (330) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - { 409, 0 }, /* (331) subtable_opt ::= */ - { 409, -4 }, /* (332) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - { 329, -3 }, /* (333) cmd ::= KILL CONNECTION NK_INTEGER */ - { 329, -3 }, /* (334) cmd ::= KILL QUERY NK_STRING */ - { 329, -3 }, /* (335) cmd ::= KILL TRANSACTION NK_INTEGER */ - { 329, -2 }, /* (336) cmd ::= BALANCE VGROUP */ - { 329, -4 }, /* (337) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - { 329, -4 }, /* (338) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - { 329, -3 }, /* (339) cmd ::= SPLIT VGROUP NK_INTEGER */ - { 411, -2 }, /* (340) dnode_list ::= DNODE NK_INTEGER */ - { 411, -3 }, /* (341) dnode_list ::= dnode_list DNODE NK_INTEGER */ - { 329, -4 }, /* (342) cmd ::= DELETE FROM full_table_name where_clause_opt */ - { 329, -1 }, /* (343) cmd ::= query_or_subquery */ - { 329, -1 }, /* (344) cmd ::= insert_query */ - { 401, -7 }, /* (345) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - { 401, -4 }, /* (346) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - { 332, -1 }, /* (347) literal ::= NK_INTEGER */ - { 332, -1 }, /* (348) literal ::= NK_FLOAT */ - { 332, -1 }, /* (349) literal ::= NK_STRING */ - { 332, -1 }, /* (350) literal ::= NK_BOOL */ - { 332, -2 }, /* (351) literal ::= TIMESTAMP NK_STRING */ - { 332, -1 }, /* (352) literal ::= duration_literal */ - { 332, -1 }, /* (353) literal ::= NULL */ - { 332, -1 }, /* (354) literal ::= NK_QUESTION */ - { 378, -1 }, /* (355) duration_literal ::= NK_VARIABLE */ - { 413, -1 }, /* (356) signed ::= NK_INTEGER */ - { 413, -2 }, /* (357) signed ::= NK_PLUS NK_INTEGER */ - { 413, -2 }, /* (358) signed ::= NK_MINUS NK_INTEGER */ - { 413, -1 }, /* (359) signed ::= NK_FLOAT */ - { 413, -2 }, /* (360) signed ::= NK_PLUS NK_FLOAT */ - { 413, -2 }, /* (361) signed ::= NK_MINUS NK_FLOAT */ - { 367, -1 }, /* (362) signed_literal ::= signed */ - { 367, -1 }, /* (363) signed_literal ::= NK_STRING */ - { 367, -1 }, /* (364) signed_literal ::= NK_BOOL */ - { 367, -2 }, /* (365) signed_literal ::= TIMESTAMP NK_STRING */ - { 367, -1 }, /* (366) signed_literal ::= duration_literal */ - { 367, -1 }, /* (367) signed_literal ::= NULL */ - { 367, -1 }, /* (368) signed_literal ::= literal_func */ - { 367, -1 }, /* (369) signed_literal ::= NK_QUESTION */ - { 415, -1 }, /* (370) literal_list ::= signed_literal */ - { 415, -3 }, /* (371) literal_list ::= literal_list NK_COMMA signed_literal */ - { 340, -1 }, /* (372) db_name ::= NK_ID */ - { 373, -1 }, /* (373) table_name ::= NK_ID */ - { 365, -1 }, /* (374) column_name ::= NK_ID */ - { 380, -1 }, /* (375) function_name ::= NK_ID */ - { 416, -1 }, /* (376) table_alias ::= NK_ID */ - { 388, -1 }, /* (377) column_alias ::= NK_ID */ - { 334, -1 }, /* (378) user_name ::= NK_ID */ - { 341, -1 }, /* (379) topic_name ::= NK_ID */ - { 405, -1 }, /* (380) stream_name ::= NK_ID */ - { 398, -1 }, /* (381) cgroup_name ::= NK_ID */ - { 391, -1 }, /* (382) index_name ::= NK_ID */ - { 417, -1 }, /* (383) expr_or_subquery ::= expression */ - { 410, -1 }, /* (384) expression ::= literal */ - { 410, -1 }, /* (385) expression ::= pseudo_column */ - { 410, -1 }, /* (386) expression ::= column_reference */ - { 410, -1 }, /* (387) expression ::= function_expression */ - { 410, -1 }, /* (388) expression ::= case_when_expression */ - { 410, -3 }, /* (389) expression ::= NK_LP expression NK_RP */ - { 410, -2 }, /* (390) expression ::= NK_PLUS expr_or_subquery */ - { 410, -2 }, /* (391) expression ::= NK_MINUS expr_or_subquery */ - { 410, -3 }, /* (392) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - { 410, -3 }, /* (393) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - { 410, -3 }, /* (394) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - { 410, -3 }, /* (395) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - { 410, -3 }, /* (396) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - { 410, -3 }, /* (397) expression ::= column_reference NK_ARROW NK_STRING */ - { 410, -3 }, /* (398) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - { 410, -3 }, /* (399) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - { 370, -1 }, /* (400) expression_list ::= expr_or_subquery */ - { 370, -3 }, /* (401) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - { 419, -1 }, /* (402) column_reference ::= column_name */ - { 419, -3 }, /* (403) column_reference ::= table_name NK_DOT column_name */ - { 418, -1 }, /* (404) pseudo_column ::= ROWTS */ - { 418, -1 }, /* (405) pseudo_column ::= TBNAME */ - { 418, -3 }, /* (406) pseudo_column ::= table_name NK_DOT TBNAME */ - { 418, -1 }, /* (407) pseudo_column ::= QSTART */ - { 418, -1 }, /* (408) pseudo_column ::= QEND */ - { 418, -1 }, /* (409) pseudo_column ::= QDURATION */ - { 418, -1 }, /* (410) pseudo_column ::= WSTART */ - { 418, -1 }, /* (411) pseudo_column ::= WEND */ - { 418, -1 }, /* (412) pseudo_column ::= WDURATION */ - { 418, -1 }, /* (413) pseudo_column ::= IROWTS */ - { 418, -1 }, /* (414) pseudo_column ::= ISFILLED */ - { 418, -1 }, /* (415) pseudo_column ::= QTAGS */ - { 420, -4 }, /* (416) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 420, -4 }, /* (417) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 420, -6 }, /* (418) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - { 420, -1 }, /* (419) function_expression ::= literal_func */ - { 414, -3 }, /* (420) literal_func ::= noarg_func NK_LP NK_RP */ - { 414, -1 }, /* (421) literal_func ::= NOW */ - { 424, -1 }, /* (422) noarg_func ::= NOW */ - { 424, -1 }, /* (423) noarg_func ::= TODAY */ - { 424, -1 }, /* (424) noarg_func ::= TIMEZONE */ - { 424, -1 }, /* (425) noarg_func ::= DATABASE */ - { 424, -1 }, /* (426) noarg_func ::= CLIENT_VERSION */ - { 424, -1 }, /* (427) noarg_func ::= SERVER_VERSION */ - { 424, -1 }, /* (428) noarg_func ::= SERVER_STATUS */ - { 424, -1 }, /* (429) noarg_func ::= CURRENT_USER */ - { 424, -1 }, /* (430) noarg_func ::= USER */ - { 422, -1 }, /* (431) star_func ::= COUNT */ - { 422, -1 }, /* (432) star_func ::= FIRST */ - { 422, -1 }, /* (433) star_func ::= LAST */ - { 422, -1 }, /* (434) star_func ::= LAST_ROW */ - { 423, -1 }, /* (435) star_func_para_list ::= NK_STAR */ - { 423, -1 }, /* (436) star_func_para_list ::= other_para_list */ - { 425, -1 }, /* (437) other_para_list ::= star_func_para */ - { 425, -3 }, /* (438) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 426, -1 }, /* (439) star_func_para ::= expr_or_subquery */ - { 426, -3 }, /* (440) star_func_para ::= table_name NK_DOT NK_STAR */ - { 421, -4 }, /* (441) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - { 421, -5 }, /* (442) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - { 427, -1 }, /* (443) when_then_list ::= when_then_expr */ - { 427, -2 }, /* (444) when_then_list ::= when_then_list when_then_expr */ - { 430, -4 }, /* (445) when_then_expr ::= WHEN common_expression THEN common_expression */ - { 428, 0 }, /* (446) case_when_else_opt ::= */ - { 428, -2 }, /* (447) case_when_else_opt ::= ELSE common_expression */ - { 431, -3 }, /* (448) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - { 431, -5 }, /* (449) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - { 431, -6 }, /* (450) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - { 431, -3 }, /* (451) predicate ::= expr_or_subquery IS NULL */ - { 431, -4 }, /* (452) predicate ::= expr_or_subquery IS NOT NULL */ - { 431, -3 }, /* (453) predicate ::= expr_or_subquery in_op in_predicate_value */ - { 432, -1 }, /* (454) compare_op ::= NK_LT */ - { 432, -1 }, /* (455) compare_op ::= NK_GT */ - { 432, -1 }, /* (456) compare_op ::= NK_LE */ - { 432, -1 }, /* (457) compare_op ::= NK_GE */ - { 432, -1 }, /* (458) compare_op ::= NK_NE */ - { 432, -1 }, /* (459) compare_op ::= NK_EQ */ - { 432, -1 }, /* (460) compare_op ::= LIKE */ - { 432, -2 }, /* (461) compare_op ::= NOT LIKE */ - { 432, -1 }, /* (462) compare_op ::= MATCH */ - { 432, -1 }, /* (463) compare_op ::= NMATCH */ - { 432, -1 }, /* (464) compare_op ::= CONTAINS */ - { 433, -1 }, /* (465) in_op ::= IN */ - { 433, -2 }, /* (466) in_op ::= NOT IN */ - { 434, -3 }, /* (467) in_predicate_value ::= NK_LP literal_list NK_RP */ - { 435, -1 }, /* (468) boolean_value_expression ::= boolean_primary */ - { 435, -2 }, /* (469) boolean_value_expression ::= NOT boolean_primary */ - { 435, -3 }, /* (470) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 435, -3 }, /* (471) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 436, -1 }, /* (472) boolean_primary ::= predicate */ - { 436, -3 }, /* (473) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 429, -1 }, /* (474) common_expression ::= expr_or_subquery */ - { 429, -1 }, /* (475) common_expression ::= boolean_value_expression */ - { 437, 0 }, /* (476) from_clause_opt ::= */ - { 437, -2 }, /* (477) from_clause_opt ::= FROM table_reference_list */ - { 438, -1 }, /* (478) table_reference_list ::= table_reference */ - { 438, -3 }, /* (479) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 439, -1 }, /* (480) table_reference ::= table_primary */ - { 439, -1 }, /* (481) table_reference ::= joined_table */ - { 440, -2 }, /* (482) table_primary ::= table_name alias_opt */ - { 440, -4 }, /* (483) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 440, -2 }, /* (484) table_primary ::= subquery alias_opt */ - { 440, -1 }, /* (485) table_primary ::= parenthesized_joined_table */ - { 442, 0 }, /* (486) alias_opt ::= */ - { 442, -1 }, /* (487) alias_opt ::= table_alias */ - { 442, -2 }, /* (488) alias_opt ::= AS table_alias */ - { 444, -3 }, /* (489) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 444, -3 }, /* (490) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 441, -6 }, /* (491) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 445, 0 }, /* (492) join_type ::= */ - { 445, -1 }, /* (493) join_type ::= INNER */ - { 447, -12 }, /* (494) query_specification ::= SELECT set_quantifier_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 */ - { 448, 0 }, /* (495) set_quantifier_opt ::= */ - { 448, -1 }, /* (496) set_quantifier_opt ::= DISTINCT */ - { 448, -1 }, /* (497) set_quantifier_opt ::= ALL */ - { 449, -1 }, /* (498) select_list ::= select_item */ - { 449, -3 }, /* (499) select_list ::= select_list NK_COMMA select_item */ - { 457, -1 }, /* (500) select_item ::= NK_STAR */ - { 457, -1 }, /* (501) select_item ::= common_expression */ - { 457, -2 }, /* (502) select_item ::= common_expression column_alias */ - { 457, -3 }, /* (503) select_item ::= common_expression AS column_alias */ - { 457, -3 }, /* (504) select_item ::= table_name NK_DOT NK_STAR */ - { 412, 0 }, /* (505) where_clause_opt ::= */ - { 412, -2 }, /* (506) where_clause_opt ::= WHERE search_condition */ - { 450, 0 }, /* (507) partition_by_clause_opt ::= */ - { 450, -3 }, /* (508) partition_by_clause_opt ::= PARTITION BY partition_list */ - { 458, -1 }, /* (509) partition_list ::= partition_item */ - { 458, -3 }, /* (510) partition_list ::= partition_list NK_COMMA partition_item */ - { 459, -1 }, /* (511) partition_item ::= expr_or_subquery */ - { 459, -2 }, /* (512) partition_item ::= expr_or_subquery column_alias */ - { 459, -3 }, /* (513) partition_item ::= expr_or_subquery AS column_alias */ - { 454, 0 }, /* (514) twindow_clause_opt ::= */ - { 454, -6 }, /* (515) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 454, -4 }, /* (516) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - { 454, -6 }, /* (517) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 454, -8 }, /* (518) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 454, -7 }, /* (519) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - { 393, 0 }, /* (520) sliding_opt ::= */ - { 393, -4 }, /* (521) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 453, 0 }, /* (522) fill_opt ::= */ - { 453, -4 }, /* (523) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 453, -6 }, /* (524) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 453, -6 }, /* (525) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP */ - { 460, -1 }, /* (526) fill_mode ::= NONE */ - { 460, -1 }, /* (527) fill_mode ::= PREV */ - { 460, -1 }, /* (528) fill_mode ::= NULL */ - { 460, -1 }, /* (529) fill_mode ::= NULL_F */ - { 460, -1 }, /* (530) fill_mode ::= LINEAR */ - { 460, -1 }, /* (531) fill_mode ::= NEXT */ - { 455, 0 }, /* (532) group_by_clause_opt ::= */ - { 455, -3 }, /* (533) group_by_clause_opt ::= GROUP BY group_by_list */ - { 461, -1 }, /* (534) group_by_list ::= expr_or_subquery */ - { 461, -3 }, /* (535) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - { 456, 0 }, /* (536) having_clause_opt ::= */ - { 456, -2 }, /* (537) having_clause_opt ::= HAVING search_condition */ - { 451, 0 }, /* (538) range_opt ::= */ - { 451, -6 }, /* (539) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - { 452, 0 }, /* (540) every_opt ::= */ - { 452, -4 }, /* (541) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - { 462, -4 }, /* (542) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 463, -1 }, /* (543) query_simple ::= query_specification */ - { 463, -1 }, /* (544) query_simple ::= union_query_expression */ - { 467, -4 }, /* (545) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - { 467, -3 }, /* (546) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - { 468, -1 }, /* (547) query_simple_or_subquery ::= query_simple */ - { 468, -1 }, /* (548) query_simple_or_subquery ::= subquery */ - { 397, -1 }, /* (549) query_or_subquery ::= query_expression */ - { 397, -1 }, /* (550) query_or_subquery ::= subquery */ - { 464, 0 }, /* (551) order_by_clause_opt ::= */ - { 464, -3 }, /* (552) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 465, 0 }, /* (553) slimit_clause_opt ::= */ - { 465, -2 }, /* (554) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 465, -4 }, /* (555) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 465, -4 }, /* (556) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 466, 0 }, /* (557) limit_clause_opt ::= */ - { 466, -2 }, /* (558) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 466, -4 }, /* (559) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 466, -4 }, /* (560) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 443, -3 }, /* (561) subquery ::= NK_LP query_expression NK_RP */ - { 443, -3 }, /* (562) subquery ::= NK_LP subquery NK_RP */ - { 446, -1 }, /* (563) search_condition ::= common_expression */ - { 469, -1 }, /* (564) sort_specification_list ::= sort_specification */ - { 469, -3 }, /* (565) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 470, -3 }, /* (566) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - { 471, 0 }, /* (567) ordering_specification_opt ::= */ - { 471, -1 }, /* (568) ordering_specification_opt ::= ASC */ - { 471, -1 }, /* (569) ordering_specification_opt ::= DESC */ - { 472, 0 }, /* (570) null_ordering_opt ::= */ - { 472, -2 }, /* (571) null_ordering_opt ::= NULLS FIRST */ - { 472, -2 }, /* (572) null_ordering_opt ::= NULLS LAST */ + { 354, -2 }, /* (120) alter_db_option ::= MINROWS NK_INTEGER */ + { 351, -1 }, /* (121) integer_list ::= NK_INTEGER */ + { 351, -3 }, /* (122) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 352, -1 }, /* (123) variable_list ::= NK_VARIABLE */ + { 352, -3 }, /* (124) variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + { 353, -1 }, /* (125) retention_list ::= retention */ + { 353, -3 }, /* (126) retention_list ::= retention_list NK_COMMA retention */ + { 355, -3 }, /* (127) retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + { 348, 0 }, /* (128) speed_opt ::= */ + { 348, -2 }, /* (129) speed_opt ::= MAX_SPEED NK_INTEGER */ + { 349, 0 }, /* (130) start_opt ::= */ + { 349, -3 }, /* (131) start_opt ::= START WITH NK_INTEGER */ + { 349, -3 }, /* (132) start_opt ::= START WITH NK_STRING */ + { 349, -4 }, /* (133) start_opt ::= START WITH TIMESTAMP NK_STRING */ + { 350, 0 }, /* (134) end_opt ::= */ + { 350, -3 }, /* (135) end_opt ::= END WITH NK_INTEGER */ + { 350, -3 }, /* (136) end_opt ::= END WITH NK_STRING */ + { 350, -4 }, /* (137) end_opt ::= END WITH TIMESTAMP NK_STRING */ + { 329, -9 }, /* (138) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 329, -3 }, /* (139) cmd ::= CREATE TABLE multi_create_clause */ + { 329, -9 }, /* (140) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 329, -3 }, /* (141) cmd ::= DROP TABLE multi_drop_clause */ + { 329, -4 }, /* (142) cmd ::= DROP STABLE exists_opt full_table_name */ + { 329, -3 }, /* (143) cmd ::= ALTER TABLE alter_table_clause */ + { 329, -3 }, /* (144) cmd ::= ALTER STABLE alter_table_clause */ + { 363, -2 }, /* (145) alter_table_clause ::= full_table_name alter_table_options */ + { 363, -5 }, /* (146) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 363, -4 }, /* (147) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 363, -5 }, /* (148) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 363, -5 }, /* (149) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 363, -5 }, /* (150) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 363, -4 }, /* (151) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 363, -5 }, /* (152) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 363, -5 }, /* (153) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 363, -6 }, /* (154) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + { 360, -1 }, /* (155) multi_create_clause ::= create_subtable_clause */ + { 360, -2 }, /* (156) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 368, -10 }, /* (157) 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 */ + { 362, -1 }, /* (158) multi_drop_clause ::= drop_table_clause */ + { 362, -3 }, /* (159) multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ + { 371, -2 }, /* (160) drop_table_clause ::= exists_opt full_table_name */ + { 369, 0 }, /* (161) specific_cols_opt ::= */ + { 369, -3 }, /* (162) specific_cols_opt ::= NK_LP col_name_list NK_RP */ + { 356, -1 }, /* (163) full_table_name ::= table_name */ + { 356, -3 }, /* (164) full_table_name ::= db_name NK_DOT table_name */ + { 357, -1 }, /* (165) column_def_list ::= column_def */ + { 357, -3 }, /* (166) column_def_list ::= column_def_list NK_COMMA column_def */ + { 374, -2 }, /* (167) column_def ::= column_name type_name */ + { 374, -4 }, /* (168) column_def ::= column_name type_name COMMENT NK_STRING */ + { 366, -1 }, /* (169) type_name ::= BOOL */ + { 366, -1 }, /* (170) type_name ::= TINYINT */ + { 366, -1 }, /* (171) type_name ::= SMALLINT */ + { 366, -1 }, /* (172) type_name ::= INT */ + { 366, -1 }, /* (173) type_name ::= INTEGER */ + { 366, -1 }, /* (174) type_name ::= BIGINT */ + { 366, -1 }, /* (175) type_name ::= FLOAT */ + { 366, -1 }, /* (176) type_name ::= DOUBLE */ + { 366, -4 }, /* (177) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 366, -1 }, /* (178) type_name ::= TIMESTAMP */ + { 366, -4 }, /* (179) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 366, -2 }, /* (180) type_name ::= TINYINT UNSIGNED */ + { 366, -2 }, /* (181) type_name ::= SMALLINT UNSIGNED */ + { 366, -2 }, /* (182) type_name ::= INT UNSIGNED */ + { 366, -2 }, /* (183) type_name ::= BIGINT UNSIGNED */ + { 366, -1 }, /* (184) type_name ::= JSON */ + { 366, -4 }, /* (185) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 366, -1 }, /* (186) type_name ::= MEDIUMBLOB */ + { 366, -1 }, /* (187) type_name ::= BLOB */ + { 366, -4 }, /* (188) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 366, -1 }, /* (189) type_name ::= DECIMAL */ + { 366, -4 }, /* (190) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 366, -6 }, /* (191) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 358, 0 }, /* (192) tags_def_opt ::= */ + { 358, -1 }, /* (193) tags_def_opt ::= tags_def */ + { 361, -4 }, /* (194) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 359, 0 }, /* (195) table_options ::= */ + { 359, -3 }, /* (196) table_options ::= table_options COMMENT NK_STRING */ + { 359, -3 }, /* (197) table_options ::= table_options MAX_DELAY duration_list */ + { 359, -3 }, /* (198) table_options ::= table_options WATERMARK duration_list */ + { 359, -5 }, /* (199) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + { 359, -3 }, /* (200) table_options ::= table_options TTL NK_INTEGER */ + { 359, -5 }, /* (201) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 359, -3 }, /* (202) table_options ::= table_options DELETE_MARK duration_list */ + { 364, -1 }, /* (203) alter_table_options ::= alter_table_option */ + { 364, -2 }, /* (204) alter_table_options ::= alter_table_options alter_table_option */ + { 377, -2 }, /* (205) alter_table_option ::= COMMENT NK_STRING */ + { 377, -2 }, /* (206) alter_table_option ::= TTL NK_INTEGER */ + { 375, -1 }, /* (207) duration_list ::= duration_literal */ + { 375, -3 }, /* (208) duration_list ::= duration_list NK_COMMA duration_literal */ + { 376, -1 }, /* (209) rollup_func_list ::= rollup_func_name */ + { 376, -3 }, /* (210) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + { 379, -1 }, /* (211) rollup_func_name ::= function_name */ + { 379, -1 }, /* (212) rollup_func_name ::= FIRST */ + { 379, -1 }, /* (213) rollup_func_name ::= LAST */ + { 372, -1 }, /* (214) col_name_list ::= col_name */ + { 372, -3 }, /* (215) col_name_list ::= col_name_list NK_COMMA col_name */ + { 381, -1 }, /* (216) col_name ::= column_name */ + { 329, -2 }, /* (217) cmd ::= SHOW DNODES */ + { 329, -2 }, /* (218) cmd ::= SHOW USERS */ + { 329, -3 }, /* (219) cmd ::= SHOW USER PRIVILEGES */ + { 329, -2 }, /* (220) cmd ::= SHOW DATABASES */ + { 329, -4 }, /* (221) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 329, -4 }, /* (222) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 329, -3 }, /* (223) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 329, -2 }, /* (224) cmd ::= SHOW MNODES */ + { 329, -2 }, /* (225) cmd ::= SHOW QNODES */ + { 329, -2 }, /* (226) cmd ::= SHOW FUNCTIONS */ + { 329, -5 }, /* (227) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 329, -2 }, /* (228) cmd ::= SHOW STREAMS */ + { 329, -2 }, /* (229) cmd ::= SHOW ACCOUNTS */ + { 329, -2 }, /* (230) cmd ::= SHOW APPS */ + { 329, -2 }, /* (231) cmd ::= SHOW CONNECTIONS */ + { 329, -2 }, /* (232) cmd ::= SHOW LICENCES */ + { 329, -2 }, /* (233) cmd ::= SHOW GRANTS */ + { 329, -4 }, /* (234) cmd ::= SHOW CREATE DATABASE db_name */ + { 329, -4 }, /* (235) cmd ::= SHOW CREATE TABLE full_table_name */ + { 329, -4 }, /* (236) cmd ::= SHOW CREATE STABLE full_table_name */ + { 329, -2 }, /* (237) cmd ::= SHOW QUERIES */ + { 329, -2 }, /* (238) cmd ::= SHOW SCORES */ + { 329, -2 }, /* (239) cmd ::= SHOW TOPICS */ + { 329, -2 }, /* (240) cmd ::= SHOW VARIABLES */ + { 329, -3 }, /* (241) cmd ::= SHOW CLUSTER VARIABLES */ + { 329, -3 }, /* (242) cmd ::= SHOW LOCAL VARIABLES */ + { 329, -5 }, /* (243) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + { 329, -2 }, /* (244) cmd ::= SHOW BNODES */ + { 329, -2 }, /* (245) cmd ::= SHOW SNODES */ + { 329, -2 }, /* (246) cmd ::= SHOW CLUSTER */ + { 329, -2 }, /* (247) cmd ::= SHOW TRANSACTIONS */ + { 329, -4 }, /* (248) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + { 329, -2 }, /* (249) cmd ::= SHOW CONSUMERS */ + { 329, -2 }, /* (250) cmd ::= SHOW SUBSCRIPTIONS */ + { 329, -5 }, /* (251) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + { 329, -7 }, /* (252) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + { 329, -3 }, /* (253) cmd ::= SHOW VNODES NK_INTEGER */ + { 329, -3 }, /* (254) cmd ::= SHOW VNODES NK_STRING */ + { 329, -3 }, /* (255) cmd ::= SHOW db_name_cond_opt ALIVE */ + { 329, -3 }, /* (256) cmd ::= SHOW CLUSTER ALIVE */ + { 382, 0 }, /* (257) db_name_cond_opt ::= */ + { 382, -2 }, /* (258) db_name_cond_opt ::= db_name NK_DOT */ + { 383, 0 }, /* (259) like_pattern_opt ::= */ + { 383, -2 }, /* (260) like_pattern_opt ::= LIKE NK_STRING */ + { 384, -1 }, /* (261) table_name_cond ::= table_name */ + { 385, 0 }, /* (262) from_db_opt ::= */ + { 385, -2 }, /* (263) from_db_opt ::= FROM db_name */ + { 386, 0 }, /* (264) tag_list_opt ::= */ + { 386, -1 }, /* (265) tag_list_opt ::= tag_item */ + { 386, -3 }, /* (266) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + { 387, -1 }, /* (267) tag_item ::= TBNAME */ + { 387, -1 }, /* (268) tag_item ::= QTAGS */ + { 387, -1 }, /* (269) tag_item ::= column_name */ + { 387, -2 }, /* (270) tag_item ::= column_name column_alias */ + { 387, -3 }, /* (271) tag_item ::= column_name AS column_alias */ + { 329, -8 }, /* (272) cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ + { 329, -9 }, /* (273) cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ + { 329, -4 }, /* (274) cmd ::= DROP INDEX exists_opt full_index_name */ + { 389, -1 }, /* (275) full_index_name ::= index_name */ + { 389, -3 }, /* (276) full_index_name ::= db_name NK_DOT index_name */ + { 390, -10 }, /* (277) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + { 390, -12 }, /* (278) 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 */ + { 392, -1 }, /* (279) func_list ::= func */ + { 392, -3 }, /* (280) func_list ::= func_list NK_COMMA func */ + { 395, -4 }, /* (281) func ::= sma_func_name NK_LP expression_list NK_RP */ + { 396, -1 }, /* (282) sma_func_name ::= function_name */ + { 396, -1 }, /* (283) sma_func_name ::= COUNT */ + { 396, -1 }, /* (284) sma_func_name ::= FIRST */ + { 396, -1 }, /* (285) sma_func_name ::= LAST */ + { 396, -1 }, /* (286) sma_func_name ::= LAST_ROW */ + { 394, 0 }, /* (287) sma_stream_opt ::= */ + { 394, -3 }, /* (288) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + { 394, -3 }, /* (289) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + { 394, -3 }, /* (290) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + { 329, -6 }, /* (291) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + { 329, -7 }, /* (292) cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + { 329, -9 }, /* (293) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ + { 329, -7 }, /* (294) cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + { 329, -9 }, /* (295) cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ + { 329, -4 }, /* (296) cmd ::= DROP TOPIC exists_opt topic_name */ + { 329, -7 }, /* (297) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + { 329, -2 }, /* (298) cmd ::= DESC full_table_name */ + { 329, -2 }, /* (299) cmd ::= DESCRIBE full_table_name */ + { 329, -3 }, /* (300) cmd ::= RESET QUERY CACHE */ + { 329, -4 }, /* (301) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + { 329, -4 }, /* (302) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + { 399, 0 }, /* (303) analyze_opt ::= */ + { 399, -1 }, /* (304) analyze_opt ::= ANALYZE */ + { 400, 0 }, /* (305) explain_options ::= */ + { 400, -3 }, /* (306) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 400, -3 }, /* (307) explain_options ::= explain_options RATIO NK_FLOAT */ + { 329, -11 }, /* (308) cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + { 329, -4 }, /* (309) cmd ::= DROP FUNCTION exists_opt function_name */ + { 402, 0 }, /* (310) agg_func_opt ::= */ + { 402, -1 }, /* (311) agg_func_opt ::= AGGREGATE */ + { 403, 0 }, /* (312) bufsize_opt ::= */ + { 403, -2 }, /* (313) bufsize_opt ::= BUFSIZE NK_INTEGER */ + { 404, 0 }, /* (314) language_opt ::= */ + { 404, -2 }, /* (315) language_opt ::= LANGUAGE NK_STRING */ + { 329, -12 }, /* (316) 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 */ + { 329, -4 }, /* (317) cmd ::= DROP STREAM exists_opt stream_name */ + { 407, 0 }, /* (318) col_list_opt ::= */ + { 407, -3 }, /* (319) col_list_opt ::= NK_LP col_name_list NK_RP */ + { 408, 0 }, /* (320) tag_def_or_ref_opt ::= */ + { 408, -1 }, /* (321) tag_def_or_ref_opt ::= tags_def */ + { 408, -4 }, /* (322) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ + { 406, 0 }, /* (323) stream_options ::= */ + { 406, -3 }, /* (324) stream_options ::= stream_options TRIGGER AT_ONCE */ + { 406, -3 }, /* (325) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + { 406, -4 }, /* (326) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + { 406, -3 }, /* (327) stream_options ::= stream_options WATERMARK duration_literal */ + { 406, -4 }, /* (328) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + { 406, -3 }, /* (329) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + { 406, -3 }, /* (330) stream_options ::= stream_options DELETE_MARK duration_literal */ + { 406, -4 }, /* (331) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + { 409, 0 }, /* (332) subtable_opt ::= */ + { 409, -4 }, /* (333) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + { 329, -3 }, /* (334) cmd ::= KILL CONNECTION NK_INTEGER */ + { 329, -3 }, /* (335) cmd ::= KILL QUERY NK_STRING */ + { 329, -3 }, /* (336) cmd ::= KILL TRANSACTION NK_INTEGER */ + { 329, -2 }, /* (337) cmd ::= BALANCE VGROUP */ + { 329, -4 }, /* (338) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + { 329, -4 }, /* (339) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + { 329, -3 }, /* (340) cmd ::= SPLIT VGROUP NK_INTEGER */ + { 411, -2 }, /* (341) dnode_list ::= DNODE NK_INTEGER */ + { 411, -3 }, /* (342) dnode_list ::= dnode_list DNODE NK_INTEGER */ + { 329, -4 }, /* (343) cmd ::= DELETE FROM full_table_name where_clause_opt */ + { 329, -1 }, /* (344) cmd ::= query_or_subquery */ + { 329, -1 }, /* (345) cmd ::= insert_query */ + { 401, -7 }, /* (346) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + { 401, -4 }, /* (347) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + { 332, -1 }, /* (348) literal ::= NK_INTEGER */ + { 332, -1 }, /* (349) literal ::= NK_FLOAT */ + { 332, -1 }, /* (350) literal ::= NK_STRING */ + { 332, -1 }, /* (351) literal ::= NK_BOOL */ + { 332, -2 }, /* (352) literal ::= TIMESTAMP NK_STRING */ + { 332, -1 }, /* (353) literal ::= duration_literal */ + { 332, -1 }, /* (354) literal ::= NULL */ + { 332, -1 }, /* (355) literal ::= NK_QUESTION */ + { 378, -1 }, /* (356) duration_literal ::= NK_VARIABLE */ + { 413, -1 }, /* (357) signed ::= NK_INTEGER */ + { 413, -2 }, /* (358) signed ::= NK_PLUS NK_INTEGER */ + { 413, -2 }, /* (359) signed ::= NK_MINUS NK_INTEGER */ + { 413, -1 }, /* (360) signed ::= NK_FLOAT */ + { 413, -2 }, /* (361) signed ::= NK_PLUS NK_FLOAT */ + { 413, -2 }, /* (362) signed ::= NK_MINUS NK_FLOAT */ + { 367, -1 }, /* (363) signed_literal ::= signed */ + { 367, -1 }, /* (364) signed_literal ::= NK_STRING */ + { 367, -1 }, /* (365) signed_literal ::= NK_BOOL */ + { 367, -2 }, /* (366) signed_literal ::= TIMESTAMP NK_STRING */ + { 367, -1 }, /* (367) signed_literal ::= duration_literal */ + { 367, -1 }, /* (368) signed_literal ::= NULL */ + { 367, -1 }, /* (369) signed_literal ::= literal_func */ + { 367, -1 }, /* (370) signed_literal ::= NK_QUESTION */ + { 415, -1 }, /* (371) literal_list ::= signed_literal */ + { 415, -3 }, /* (372) literal_list ::= literal_list NK_COMMA signed_literal */ + { 340, -1 }, /* (373) db_name ::= NK_ID */ + { 373, -1 }, /* (374) table_name ::= NK_ID */ + { 365, -1 }, /* (375) column_name ::= NK_ID */ + { 380, -1 }, /* (376) function_name ::= NK_ID */ + { 416, -1 }, /* (377) table_alias ::= NK_ID */ + { 388, -1 }, /* (378) column_alias ::= NK_ID */ + { 334, -1 }, /* (379) user_name ::= NK_ID */ + { 341, -1 }, /* (380) topic_name ::= NK_ID */ + { 405, -1 }, /* (381) stream_name ::= NK_ID */ + { 398, -1 }, /* (382) cgroup_name ::= NK_ID */ + { 391, -1 }, /* (383) index_name ::= NK_ID */ + { 417, -1 }, /* (384) expr_or_subquery ::= expression */ + { 410, -1 }, /* (385) expression ::= literal */ + { 410, -1 }, /* (386) expression ::= pseudo_column */ + { 410, -1 }, /* (387) expression ::= column_reference */ + { 410, -1 }, /* (388) expression ::= function_expression */ + { 410, -1 }, /* (389) expression ::= case_when_expression */ + { 410, -3 }, /* (390) expression ::= NK_LP expression NK_RP */ + { 410, -2 }, /* (391) expression ::= NK_PLUS expr_or_subquery */ + { 410, -2 }, /* (392) expression ::= NK_MINUS expr_or_subquery */ + { 410, -3 }, /* (393) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + { 410, -3 }, /* (394) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + { 410, -3 }, /* (395) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + { 410, -3 }, /* (396) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + { 410, -3 }, /* (397) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + { 410, -3 }, /* (398) expression ::= column_reference NK_ARROW NK_STRING */ + { 410, -3 }, /* (399) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + { 410, -3 }, /* (400) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + { 370, -1 }, /* (401) expression_list ::= expr_or_subquery */ + { 370, -3 }, /* (402) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + { 419, -1 }, /* (403) column_reference ::= column_name */ + { 419, -3 }, /* (404) column_reference ::= table_name NK_DOT column_name */ + { 418, -1 }, /* (405) pseudo_column ::= ROWTS */ + { 418, -1 }, /* (406) pseudo_column ::= TBNAME */ + { 418, -3 }, /* (407) pseudo_column ::= table_name NK_DOT TBNAME */ + { 418, -1 }, /* (408) pseudo_column ::= QSTART */ + { 418, -1 }, /* (409) pseudo_column ::= QEND */ + { 418, -1 }, /* (410) pseudo_column ::= QDURATION */ + { 418, -1 }, /* (411) pseudo_column ::= WSTART */ + { 418, -1 }, /* (412) pseudo_column ::= WEND */ + { 418, -1 }, /* (413) pseudo_column ::= WDURATION */ + { 418, -1 }, /* (414) pseudo_column ::= IROWTS */ + { 418, -1 }, /* (415) pseudo_column ::= ISFILLED */ + { 418, -1 }, /* (416) pseudo_column ::= QTAGS */ + { 420, -4 }, /* (417) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 420, -4 }, /* (418) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 420, -6 }, /* (419) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + { 420, -1 }, /* (420) function_expression ::= literal_func */ + { 414, -3 }, /* (421) literal_func ::= noarg_func NK_LP NK_RP */ + { 414, -1 }, /* (422) literal_func ::= NOW */ + { 424, -1 }, /* (423) noarg_func ::= NOW */ + { 424, -1 }, /* (424) noarg_func ::= TODAY */ + { 424, -1 }, /* (425) noarg_func ::= TIMEZONE */ + { 424, -1 }, /* (426) noarg_func ::= DATABASE */ + { 424, -1 }, /* (427) noarg_func ::= CLIENT_VERSION */ + { 424, -1 }, /* (428) noarg_func ::= SERVER_VERSION */ + { 424, -1 }, /* (429) noarg_func ::= SERVER_STATUS */ + { 424, -1 }, /* (430) noarg_func ::= CURRENT_USER */ + { 424, -1 }, /* (431) noarg_func ::= USER */ + { 422, -1 }, /* (432) star_func ::= COUNT */ + { 422, -1 }, /* (433) star_func ::= FIRST */ + { 422, -1 }, /* (434) star_func ::= LAST */ + { 422, -1 }, /* (435) star_func ::= LAST_ROW */ + { 423, -1 }, /* (436) star_func_para_list ::= NK_STAR */ + { 423, -1 }, /* (437) star_func_para_list ::= other_para_list */ + { 425, -1 }, /* (438) other_para_list ::= star_func_para */ + { 425, -3 }, /* (439) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 426, -1 }, /* (440) star_func_para ::= expr_or_subquery */ + { 426, -3 }, /* (441) star_func_para ::= table_name NK_DOT NK_STAR */ + { 421, -4 }, /* (442) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + { 421, -5 }, /* (443) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + { 427, -1 }, /* (444) when_then_list ::= when_then_expr */ + { 427, -2 }, /* (445) when_then_list ::= when_then_list when_then_expr */ + { 430, -4 }, /* (446) when_then_expr ::= WHEN common_expression THEN common_expression */ + { 428, 0 }, /* (447) case_when_else_opt ::= */ + { 428, -2 }, /* (448) case_when_else_opt ::= ELSE common_expression */ + { 431, -3 }, /* (449) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + { 431, -5 }, /* (450) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + { 431, -6 }, /* (451) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + { 431, -3 }, /* (452) predicate ::= expr_or_subquery IS NULL */ + { 431, -4 }, /* (453) predicate ::= expr_or_subquery IS NOT NULL */ + { 431, -3 }, /* (454) predicate ::= expr_or_subquery in_op in_predicate_value */ + { 432, -1 }, /* (455) compare_op ::= NK_LT */ + { 432, -1 }, /* (456) compare_op ::= NK_GT */ + { 432, -1 }, /* (457) compare_op ::= NK_LE */ + { 432, -1 }, /* (458) compare_op ::= NK_GE */ + { 432, -1 }, /* (459) compare_op ::= NK_NE */ + { 432, -1 }, /* (460) compare_op ::= NK_EQ */ + { 432, -1 }, /* (461) compare_op ::= LIKE */ + { 432, -2 }, /* (462) compare_op ::= NOT LIKE */ + { 432, -1 }, /* (463) compare_op ::= MATCH */ + { 432, -1 }, /* (464) compare_op ::= NMATCH */ + { 432, -1 }, /* (465) compare_op ::= CONTAINS */ + { 433, -1 }, /* (466) in_op ::= IN */ + { 433, -2 }, /* (467) in_op ::= NOT IN */ + { 434, -3 }, /* (468) in_predicate_value ::= NK_LP literal_list NK_RP */ + { 435, -1 }, /* (469) boolean_value_expression ::= boolean_primary */ + { 435, -2 }, /* (470) boolean_value_expression ::= NOT boolean_primary */ + { 435, -3 }, /* (471) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 435, -3 }, /* (472) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 436, -1 }, /* (473) boolean_primary ::= predicate */ + { 436, -3 }, /* (474) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 429, -1 }, /* (475) common_expression ::= expr_or_subquery */ + { 429, -1 }, /* (476) common_expression ::= boolean_value_expression */ + { 437, 0 }, /* (477) from_clause_opt ::= */ + { 437, -2 }, /* (478) from_clause_opt ::= FROM table_reference_list */ + { 438, -1 }, /* (479) table_reference_list ::= table_reference */ + { 438, -3 }, /* (480) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 439, -1 }, /* (481) table_reference ::= table_primary */ + { 439, -1 }, /* (482) table_reference ::= joined_table */ + { 440, -2 }, /* (483) table_primary ::= table_name alias_opt */ + { 440, -4 }, /* (484) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 440, -2 }, /* (485) table_primary ::= subquery alias_opt */ + { 440, -1 }, /* (486) table_primary ::= parenthesized_joined_table */ + { 442, 0 }, /* (487) alias_opt ::= */ + { 442, -1 }, /* (488) alias_opt ::= table_alias */ + { 442, -2 }, /* (489) alias_opt ::= AS table_alias */ + { 444, -3 }, /* (490) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 444, -3 }, /* (491) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 441, -6 }, /* (492) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 445, 0 }, /* (493) join_type ::= */ + { 445, -1 }, /* (494) join_type ::= INNER */ + { 447, -12 }, /* (495) query_specification ::= SELECT set_quantifier_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 */ + { 448, 0 }, /* (496) set_quantifier_opt ::= */ + { 448, -1 }, /* (497) set_quantifier_opt ::= DISTINCT */ + { 448, -1 }, /* (498) set_quantifier_opt ::= ALL */ + { 449, -1 }, /* (499) select_list ::= select_item */ + { 449, -3 }, /* (500) select_list ::= select_list NK_COMMA select_item */ + { 457, -1 }, /* (501) select_item ::= NK_STAR */ + { 457, -1 }, /* (502) select_item ::= common_expression */ + { 457, -2 }, /* (503) select_item ::= common_expression column_alias */ + { 457, -3 }, /* (504) select_item ::= common_expression AS column_alias */ + { 457, -3 }, /* (505) select_item ::= table_name NK_DOT NK_STAR */ + { 412, 0 }, /* (506) where_clause_opt ::= */ + { 412, -2 }, /* (507) where_clause_opt ::= WHERE search_condition */ + { 450, 0 }, /* (508) partition_by_clause_opt ::= */ + { 450, -3 }, /* (509) partition_by_clause_opt ::= PARTITION BY partition_list */ + { 458, -1 }, /* (510) partition_list ::= partition_item */ + { 458, -3 }, /* (511) partition_list ::= partition_list NK_COMMA partition_item */ + { 459, -1 }, /* (512) partition_item ::= expr_or_subquery */ + { 459, -2 }, /* (513) partition_item ::= expr_or_subquery column_alias */ + { 459, -3 }, /* (514) partition_item ::= expr_or_subquery AS column_alias */ + { 454, 0 }, /* (515) twindow_clause_opt ::= */ + { 454, -6 }, /* (516) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 454, -4 }, /* (517) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + { 454, -6 }, /* (518) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 454, -8 }, /* (519) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 454, -7 }, /* (520) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + { 393, 0 }, /* (521) sliding_opt ::= */ + { 393, -4 }, /* (522) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 453, 0 }, /* (523) fill_opt ::= */ + { 453, -4 }, /* (524) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 453, -6 }, /* (525) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 453, -6 }, /* (526) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP */ + { 460, -1 }, /* (527) fill_mode ::= NONE */ + { 460, -1 }, /* (528) fill_mode ::= PREV */ + { 460, -1 }, /* (529) fill_mode ::= NULL */ + { 460, -1 }, /* (530) fill_mode ::= NULL_F */ + { 460, -1 }, /* (531) fill_mode ::= LINEAR */ + { 460, -1 }, /* (532) fill_mode ::= NEXT */ + { 455, 0 }, /* (533) group_by_clause_opt ::= */ + { 455, -3 }, /* (534) group_by_clause_opt ::= GROUP BY group_by_list */ + { 461, -1 }, /* (535) group_by_list ::= expr_or_subquery */ + { 461, -3 }, /* (536) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + { 456, 0 }, /* (537) having_clause_opt ::= */ + { 456, -2 }, /* (538) having_clause_opt ::= HAVING search_condition */ + { 451, 0 }, /* (539) range_opt ::= */ + { 451, -6 }, /* (540) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + { 452, 0 }, /* (541) every_opt ::= */ + { 452, -4 }, /* (542) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + { 462, -4 }, /* (543) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 463, -1 }, /* (544) query_simple ::= query_specification */ + { 463, -1 }, /* (545) query_simple ::= union_query_expression */ + { 467, -4 }, /* (546) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + { 467, -3 }, /* (547) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + { 468, -1 }, /* (548) query_simple_or_subquery ::= query_simple */ + { 468, -1 }, /* (549) query_simple_or_subquery ::= subquery */ + { 397, -1 }, /* (550) query_or_subquery ::= query_expression */ + { 397, -1 }, /* (551) query_or_subquery ::= subquery */ + { 464, 0 }, /* (552) order_by_clause_opt ::= */ + { 464, -3 }, /* (553) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 465, 0 }, /* (554) slimit_clause_opt ::= */ + { 465, -2 }, /* (555) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 465, -4 }, /* (556) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 465, -4 }, /* (557) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 466, 0 }, /* (558) limit_clause_opt ::= */ + { 466, -2 }, /* (559) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 466, -4 }, /* (560) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 466, -4 }, /* (561) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 443, -3 }, /* (562) subquery ::= NK_LP query_expression NK_RP */ + { 443, -3 }, /* (563) subquery ::= NK_LP subquery NK_RP */ + { 446, -1 }, /* (564) search_condition ::= common_expression */ + { 469, -1 }, /* (565) sort_specification_list ::= sort_specification */ + { 469, -3 }, /* (566) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 470, -3 }, /* (567) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + { 471, 0 }, /* (568) ordering_specification_opt ::= */ + { 471, -1 }, /* (569) ordering_specification_opt ::= ASC */ + { 471, -1 }, /* (570) ordering_specification_opt ::= DESC */ + { 472, 0 }, /* (571) null_ordering_opt ::= */ + { 472, -2 }, /* (572) null_ordering_opt ::= NULLS FIRST */ + { 472, -2 }, /* (573) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3856,8 +3858,8 @@ static YYACTIONTYPE yy_reduce( yymsp[-2].minor.yy63 = yylhsminor.yy63; break; case 42: /* priv_level ::= topic_name */ - case 281: /* sma_func_name ::= function_name */ yytestcase(yyruleno==281); - case 487: /* alias_opt ::= table_alias */ yytestcase(yyruleno==487); + case 282: /* sma_func_name ::= function_name */ yytestcase(yyruleno==282); + case 488: /* alias_opt ::= table_alias */ yytestcase(yyruleno==488); { yylhsminor.yy63 = yymsp[0].minor.yy63; } yymsp[0].minor.yy63 = yylhsminor.yy63; break; @@ -3888,49 +3890,49 @@ static YYACTIONTYPE yy_reduce( case 51: /* dnode_endpoint ::= NK_STRING */ case 52: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==52); case 53: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==53); - case 282: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==282); - case 283: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==283); - case 284: /* sma_func_name ::= LAST */ yytestcase(yyruleno==284); - case 285: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==285); - case 372: /* db_name ::= NK_ID */ yytestcase(yyruleno==372); - case 373: /* table_name ::= NK_ID */ yytestcase(yyruleno==373); - case 374: /* column_name ::= NK_ID */ yytestcase(yyruleno==374); - case 375: /* function_name ::= NK_ID */ yytestcase(yyruleno==375); - case 376: /* table_alias ::= NK_ID */ yytestcase(yyruleno==376); - case 377: /* column_alias ::= NK_ID */ yytestcase(yyruleno==377); - case 378: /* user_name ::= NK_ID */ yytestcase(yyruleno==378); - case 379: /* topic_name ::= NK_ID */ yytestcase(yyruleno==379); - case 380: /* stream_name ::= NK_ID */ yytestcase(yyruleno==380); - case 381: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==381); - case 382: /* index_name ::= NK_ID */ yytestcase(yyruleno==382); - case 422: /* noarg_func ::= NOW */ yytestcase(yyruleno==422); - case 423: /* noarg_func ::= TODAY */ yytestcase(yyruleno==423); - case 424: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==424); - case 425: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==425); - case 426: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==426); - case 427: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==427); - case 428: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==428); - case 429: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==429); - case 430: /* noarg_func ::= USER */ yytestcase(yyruleno==430); - case 431: /* star_func ::= COUNT */ yytestcase(yyruleno==431); - case 432: /* star_func ::= FIRST */ yytestcase(yyruleno==432); - case 433: /* star_func ::= LAST */ yytestcase(yyruleno==433); - case 434: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==434); + case 283: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==283); + case 284: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==284); + case 285: /* sma_func_name ::= LAST */ yytestcase(yyruleno==285); + case 286: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==286); + case 373: /* db_name ::= NK_ID */ yytestcase(yyruleno==373); + case 374: /* table_name ::= NK_ID */ yytestcase(yyruleno==374); + case 375: /* column_name ::= NK_ID */ yytestcase(yyruleno==375); + case 376: /* function_name ::= NK_ID */ yytestcase(yyruleno==376); + case 377: /* table_alias ::= NK_ID */ yytestcase(yyruleno==377); + case 378: /* column_alias ::= NK_ID */ yytestcase(yyruleno==378); + case 379: /* user_name ::= NK_ID */ yytestcase(yyruleno==379); + case 380: /* topic_name ::= NK_ID */ yytestcase(yyruleno==380); + case 381: /* stream_name ::= NK_ID */ yytestcase(yyruleno==381); + case 382: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==382); + case 383: /* index_name ::= NK_ID */ yytestcase(yyruleno==383); + case 423: /* noarg_func ::= NOW */ yytestcase(yyruleno==423); + case 424: /* noarg_func ::= TODAY */ yytestcase(yyruleno==424); + case 425: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==425); + case 426: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==426); + case 427: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==427); + case 428: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==428); + case 429: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==429); + case 430: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==430); + case 431: /* noarg_func ::= USER */ yytestcase(yyruleno==431); + case 432: /* star_func ::= COUNT */ yytestcase(yyruleno==432); + case 433: /* star_func ::= FIRST */ yytestcase(yyruleno==433); + case 434: /* star_func ::= LAST */ yytestcase(yyruleno==434); + case 435: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==435); { yylhsminor.yy63 = yymsp[0].minor.yy0; } yymsp[0].minor.yy63 = yylhsminor.yy63; break; case 54: /* force_opt ::= */ case 74: /* not_exists_opt ::= */ yytestcase(yyruleno==74); case 76: /* exists_opt ::= */ yytestcase(yyruleno==76); - case 302: /* analyze_opt ::= */ yytestcase(yyruleno==302); - case 309: /* agg_func_opt ::= */ yytestcase(yyruleno==309); - case 495: /* set_quantifier_opt ::= */ yytestcase(yyruleno==495); + case 303: /* analyze_opt ::= */ yytestcase(yyruleno==303); + case 310: /* agg_func_opt ::= */ yytestcase(yyruleno==310); + case 496: /* set_quantifier_opt ::= */ yytestcase(yyruleno==496); { yymsp[1].minor.yy669 = false; } break; case 55: /* force_opt ::= FORCE */ - case 303: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==303); - case 310: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==310); - case 496: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==496); + case 304: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==304); + case 311: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==311); + case 497: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==497); { yymsp[0].minor.yy669 = true; } break; case 56: /* cmd ::= ALTER LOCAL NK_STRING */ @@ -4151,728 +4153,731 @@ static YYACTIONTYPE yy_reduce( case 119: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ { yymsp[-1].minor.yy233.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; } break; - case 120: /* integer_list ::= NK_INTEGER */ + case 120: /* alter_db_option ::= MINROWS NK_INTEGER */ +{ yymsp[-1].minor.yy233.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; } + break; + case 121: /* integer_list ::= NK_INTEGER */ { yylhsminor.yy222 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy222 = yylhsminor.yy222; break; - case 121: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 341: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==341); + case 122: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ + case 342: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==342); { yylhsminor.yy222 = addNodeToList(pCxt, yymsp[-2].minor.yy222, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy222 = yylhsminor.yy222; break; - case 122: /* variable_list ::= NK_VARIABLE */ + case 123: /* variable_list ::= NK_VARIABLE */ { yylhsminor.yy222 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy222 = yylhsminor.yy222; break; - case 123: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ + case 124: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ { yylhsminor.yy222 = addNodeToList(pCxt, yymsp[-2].minor.yy222, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy222 = yylhsminor.yy222; break; - case 124: /* retention_list ::= retention */ - case 154: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==154); - case 157: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==157); - case 164: /* column_def_list ::= column_def */ yytestcase(yyruleno==164); - case 208: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==208); - case 213: /* col_name_list ::= col_name */ yytestcase(yyruleno==213); - case 264: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==264); - case 278: /* func_list ::= func */ yytestcase(yyruleno==278); - case 370: /* literal_list ::= signed_literal */ yytestcase(yyruleno==370); - case 437: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==437); - case 443: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==443); - case 498: /* select_list ::= select_item */ yytestcase(yyruleno==498); - case 509: /* partition_list ::= partition_item */ yytestcase(yyruleno==509); - case 564: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==564); + case 125: /* retention_list ::= retention */ + case 155: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==155); + case 158: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==158); + case 165: /* column_def_list ::= column_def */ yytestcase(yyruleno==165); + case 209: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==209); + case 214: /* col_name_list ::= col_name */ yytestcase(yyruleno==214); + case 265: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==265); + case 279: /* func_list ::= func */ yytestcase(yyruleno==279); + case 371: /* literal_list ::= signed_literal */ yytestcase(yyruleno==371); + case 438: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==438); + case 444: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==444); + case 499: /* select_list ::= select_item */ yytestcase(yyruleno==499); + case 510: /* partition_list ::= partition_item */ yytestcase(yyruleno==510); + case 565: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==565); { yylhsminor.yy222 = createNodeList(pCxt, yymsp[0].minor.yy828); } yymsp[0].minor.yy222 = yylhsminor.yy222; break; - case 125: /* retention_list ::= retention_list NK_COMMA retention */ - case 158: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==158); - case 165: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==165); - case 209: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==209); - case 214: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==214); - case 265: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==265); - case 279: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==279); - case 371: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==371); - case 438: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==438); - case 499: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==499); - case 510: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==510); - case 565: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==565); + case 126: /* retention_list ::= retention_list NK_COMMA retention */ + case 159: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==159); + case 166: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==166); + case 210: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==210); + case 215: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==215); + case 266: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==266); + case 280: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==280); + case 372: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==372); + case 439: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==439); + case 500: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==500); + case 511: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==511); + case 566: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==566); { yylhsminor.yy222 = addNodeToList(pCxt, yymsp[-2].minor.yy222, yymsp[0].minor.yy828); } yymsp[-2].minor.yy222 = yylhsminor.yy222; break; - case 126: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ + case 127: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ { yylhsminor.yy828 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 127: /* speed_opt ::= */ - case 311: /* bufsize_opt ::= */ yytestcase(yyruleno==311); + case 128: /* speed_opt ::= */ + case 312: /* bufsize_opt ::= */ yytestcase(yyruleno==312); { yymsp[1].minor.yy332 = 0; } break; - case 128: /* speed_opt ::= MAX_SPEED NK_INTEGER */ - case 312: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==312); + case 129: /* speed_opt ::= MAX_SPEED NK_INTEGER */ + case 313: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==313); { yymsp[-1].minor.yy332 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; - case 129: /* start_opt ::= */ - case 133: /* end_opt ::= */ yytestcase(yyruleno==133); - case 258: /* like_pattern_opt ::= */ yytestcase(yyruleno==258); - case 331: /* subtable_opt ::= */ yytestcase(yyruleno==331); - case 446: /* case_when_else_opt ::= */ yytestcase(yyruleno==446); - case 476: /* from_clause_opt ::= */ yytestcase(yyruleno==476); - case 505: /* where_clause_opt ::= */ yytestcase(yyruleno==505); - case 514: /* twindow_clause_opt ::= */ yytestcase(yyruleno==514); - case 520: /* sliding_opt ::= */ yytestcase(yyruleno==520); - case 522: /* fill_opt ::= */ yytestcase(yyruleno==522); - case 536: /* having_clause_opt ::= */ yytestcase(yyruleno==536); - case 538: /* range_opt ::= */ yytestcase(yyruleno==538); - case 540: /* every_opt ::= */ yytestcase(yyruleno==540); - case 553: /* slimit_clause_opt ::= */ yytestcase(yyruleno==553); - case 557: /* limit_clause_opt ::= */ yytestcase(yyruleno==557); + case 130: /* start_opt ::= */ + case 134: /* end_opt ::= */ yytestcase(yyruleno==134); + case 259: /* like_pattern_opt ::= */ yytestcase(yyruleno==259); + case 332: /* subtable_opt ::= */ yytestcase(yyruleno==332); + case 447: /* case_when_else_opt ::= */ yytestcase(yyruleno==447); + case 477: /* from_clause_opt ::= */ yytestcase(yyruleno==477); + case 506: /* where_clause_opt ::= */ yytestcase(yyruleno==506); + case 515: /* twindow_clause_opt ::= */ yytestcase(yyruleno==515); + case 521: /* sliding_opt ::= */ yytestcase(yyruleno==521); + case 523: /* fill_opt ::= */ yytestcase(yyruleno==523); + case 537: /* having_clause_opt ::= */ yytestcase(yyruleno==537); + case 539: /* range_opt ::= */ yytestcase(yyruleno==539); + case 541: /* every_opt ::= */ yytestcase(yyruleno==541); + case 554: /* slimit_clause_opt ::= */ yytestcase(yyruleno==554); + case 558: /* limit_clause_opt ::= */ yytestcase(yyruleno==558); { yymsp[1].minor.yy828 = NULL; } break; - case 130: /* start_opt ::= START WITH NK_INTEGER */ - case 134: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==134); + case 131: /* start_opt ::= START WITH NK_INTEGER */ + case 135: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==135); { yymsp[-2].minor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; - case 131: /* start_opt ::= START WITH NK_STRING */ - case 135: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==135); + case 132: /* start_opt ::= START WITH NK_STRING */ + case 136: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==136); { yymsp[-2].minor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 132: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ - case 136: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==136); + case 133: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ + case 137: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==137); { yymsp[-3].minor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 137: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 139: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==139); + case 138: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 140: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==140); { pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy669, yymsp[-5].minor.yy828, yymsp[-3].minor.yy222, yymsp[-1].minor.yy222, yymsp[0].minor.yy828); } break; - case 138: /* cmd ::= CREATE TABLE multi_create_clause */ + case 139: /* cmd ::= CREATE TABLE multi_create_clause */ { pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy222); } break; - case 140: /* cmd ::= DROP TABLE multi_drop_clause */ + case 141: /* cmd ::= DROP TABLE multi_drop_clause */ { pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy222); } break; - case 141: /* cmd ::= DROP STABLE exists_opt full_table_name */ + case 142: /* cmd ::= DROP STABLE exists_opt full_table_name */ { pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy669, yymsp[0].minor.yy828); } break; - case 142: /* cmd ::= ALTER TABLE alter_table_clause */ - case 343: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==343); - case 344: /* cmd ::= insert_query */ yytestcase(yyruleno==344); + case 143: /* cmd ::= ALTER TABLE alter_table_clause */ + case 344: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==344); + case 345: /* cmd ::= insert_query */ yytestcase(yyruleno==345); { pCxt->pRootNode = yymsp[0].minor.yy828; } break; - case 143: /* cmd ::= ALTER STABLE alter_table_clause */ + case 144: /* cmd ::= ALTER STABLE alter_table_clause */ { pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy828); } break; - case 144: /* alter_table_clause ::= full_table_name alter_table_options */ + case 145: /* alter_table_clause ::= full_table_name alter_table_options */ { yylhsminor.yy828 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy828, yymsp[0].minor.yy828); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 145: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + case 146: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ { yylhsminor.yy828 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy828, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy63, yymsp[0].minor.yy686); } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 146: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ + case 147: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ { yylhsminor.yy828 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy828, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy63); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 147: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + case 148: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ { yylhsminor.yy828 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy828, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy63, yymsp[0].minor.yy686); } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 148: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + case 149: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ { yylhsminor.yy828 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy828, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy63, &yymsp[0].minor.yy63); } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 149: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + case 150: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ { yylhsminor.yy828 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy828, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy63, yymsp[0].minor.yy686); } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 150: /* alter_table_clause ::= full_table_name DROP TAG column_name */ + case 151: /* alter_table_clause ::= full_table_name DROP TAG column_name */ { yylhsminor.yy828 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy828, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy63); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 151: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + case 152: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ { yylhsminor.yy828 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy828, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy63, yymsp[0].minor.yy686); } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 152: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + case 153: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ { yylhsminor.yy828 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy828, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy63, &yymsp[0].minor.yy63); } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 153: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ + case 154: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { yylhsminor.yy828 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy828, &yymsp[-2].minor.yy63, yymsp[0].minor.yy828); } yymsp[-5].minor.yy828 = yylhsminor.yy828; break; - case 155: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 444: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==444); + case 156: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 445: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==445); { yylhsminor.yy222 = addNodeToList(pCxt, yymsp[-1].minor.yy222, yymsp[0].minor.yy828); } yymsp[-1].minor.yy222 = yylhsminor.yy222; break; - case 156: /* 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 */ + case 157: /* 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.yy828 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy669, yymsp[-8].minor.yy828, yymsp[-6].minor.yy828, yymsp[-5].minor.yy222, yymsp[-2].minor.yy222, yymsp[0].minor.yy828); } yymsp[-9].minor.yy828 = yylhsminor.yy828; break; - case 159: /* drop_table_clause ::= exists_opt full_table_name */ + case 160: /* drop_table_clause ::= exists_opt full_table_name */ { yylhsminor.yy828 = createDropTableClause(pCxt, yymsp[-1].minor.yy669, yymsp[0].minor.yy828); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 160: /* specific_cols_opt ::= */ - case 191: /* tags_def_opt ::= */ yytestcase(yyruleno==191); - case 263: /* tag_list_opt ::= */ yytestcase(yyruleno==263); - case 317: /* col_list_opt ::= */ yytestcase(yyruleno==317); - case 319: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==319); - case 507: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==507); - case 532: /* group_by_clause_opt ::= */ yytestcase(yyruleno==532); - case 551: /* order_by_clause_opt ::= */ yytestcase(yyruleno==551); + case 161: /* specific_cols_opt ::= */ + case 192: /* tags_def_opt ::= */ yytestcase(yyruleno==192); + case 264: /* tag_list_opt ::= */ yytestcase(yyruleno==264); + case 318: /* col_list_opt ::= */ yytestcase(yyruleno==318); + case 320: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==320); + case 508: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==508); + case 533: /* group_by_clause_opt ::= */ yytestcase(yyruleno==533); + case 552: /* order_by_clause_opt ::= */ yytestcase(yyruleno==552); { yymsp[1].minor.yy222 = NULL; } break; - case 161: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ - case 318: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==318); + case 162: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ + case 319: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==319); { yymsp[-2].minor.yy222 = yymsp[-1].minor.yy222; } break; - case 162: /* full_table_name ::= table_name */ + case 163: /* full_table_name ::= table_name */ { yylhsminor.yy828 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy63, NULL); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 163: /* full_table_name ::= db_name NK_DOT table_name */ + case 164: /* full_table_name ::= db_name NK_DOT table_name */ { yylhsminor.yy828 = createRealTableNode(pCxt, &yymsp[-2].minor.yy63, &yymsp[0].minor.yy63, NULL); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 166: /* column_def ::= column_name type_name */ + case 167: /* column_def ::= column_name type_name */ { yylhsminor.yy828 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy63, yymsp[0].minor.yy686, NULL); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 167: /* column_def ::= column_name type_name COMMENT NK_STRING */ + case 168: /* column_def ::= column_name type_name COMMENT NK_STRING */ { yylhsminor.yy828 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy63, yymsp[-2].minor.yy686, &yymsp[0].minor.yy0); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 168: /* type_name ::= BOOL */ + case 169: /* type_name ::= BOOL */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 169: /* type_name ::= TINYINT */ + case 170: /* type_name ::= TINYINT */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 170: /* type_name ::= SMALLINT */ + case 171: /* type_name ::= SMALLINT */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 171: /* type_name ::= INT */ - case 172: /* type_name ::= INTEGER */ yytestcase(yyruleno==172); + case 172: /* type_name ::= INT */ + case 173: /* type_name ::= INTEGER */ yytestcase(yyruleno==173); { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 173: /* type_name ::= BIGINT */ + case 174: /* type_name ::= BIGINT */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 174: /* type_name ::= FLOAT */ + case 175: /* type_name ::= FLOAT */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 175: /* type_name ::= DOUBLE */ + case 176: /* type_name ::= DOUBLE */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 176: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + case 177: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy686 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 177: /* type_name ::= TIMESTAMP */ + case 178: /* type_name ::= TIMESTAMP */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 178: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + case 179: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy686 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 179: /* type_name ::= TINYINT UNSIGNED */ + case 180: /* type_name ::= TINYINT UNSIGNED */ { yymsp[-1].minor.yy686 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 180: /* type_name ::= SMALLINT UNSIGNED */ + case 181: /* type_name ::= SMALLINT UNSIGNED */ { yymsp[-1].minor.yy686 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 181: /* type_name ::= INT UNSIGNED */ + case 182: /* type_name ::= INT UNSIGNED */ { yymsp[-1].minor.yy686 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 182: /* type_name ::= BIGINT UNSIGNED */ + case 183: /* type_name ::= BIGINT UNSIGNED */ { yymsp[-1].minor.yy686 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 183: /* type_name ::= JSON */ + case 184: /* type_name ::= JSON */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 184: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + case 185: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy686 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 185: /* type_name ::= MEDIUMBLOB */ + case 186: /* type_name ::= MEDIUMBLOB */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 186: /* type_name ::= BLOB */ + case 187: /* type_name ::= BLOB */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 187: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + case 188: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy686 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 188: /* type_name ::= DECIMAL */ + case 189: /* type_name ::= DECIMAL */ { yymsp[0].minor.yy686 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 189: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + case 190: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ { yymsp[-3].minor.yy686 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 190: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + case 191: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ { yymsp[-5].minor.yy686 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 192: /* tags_def_opt ::= tags_def */ - case 320: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==320); - case 436: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==436); + case 193: /* tags_def_opt ::= tags_def */ + case 321: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==321); + case 437: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==437); { yylhsminor.yy222 = yymsp[0].minor.yy222; } yymsp[0].minor.yy222 = yylhsminor.yy222; break; - case 193: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ - case 321: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==321); + case 194: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ + case 322: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==322); { yymsp[-3].minor.yy222 = yymsp[-1].minor.yy222; } break; - case 194: /* table_options ::= */ + case 195: /* table_options ::= */ { yymsp[1].minor.yy828 = createDefaultTableOptions(pCxt); } break; - case 195: /* table_options ::= table_options COMMENT NK_STRING */ + case 196: /* table_options ::= table_options COMMENT NK_STRING */ { yylhsminor.yy828 = setTableOption(pCxt, yymsp[-2].minor.yy828, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 196: /* table_options ::= table_options MAX_DELAY duration_list */ + case 197: /* table_options ::= table_options MAX_DELAY duration_list */ { yylhsminor.yy828 = setTableOption(pCxt, yymsp[-2].minor.yy828, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy222); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 197: /* table_options ::= table_options WATERMARK duration_list */ + case 198: /* table_options ::= table_options WATERMARK duration_list */ { yylhsminor.yy828 = setTableOption(pCxt, yymsp[-2].minor.yy828, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy222); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 198: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + case 199: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ { yylhsminor.yy828 = setTableOption(pCxt, yymsp[-4].minor.yy828, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy222); } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 199: /* table_options ::= table_options TTL NK_INTEGER */ + case 200: /* table_options ::= table_options TTL NK_INTEGER */ { yylhsminor.yy828 = setTableOption(pCxt, yymsp[-2].minor.yy828, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 200: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + case 201: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ { yylhsminor.yy828 = setTableOption(pCxt, yymsp[-4].minor.yy828, TABLE_OPTION_SMA, yymsp[-1].minor.yy222); } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 201: /* table_options ::= table_options DELETE_MARK duration_list */ + case 202: /* table_options ::= table_options DELETE_MARK duration_list */ { yylhsminor.yy828 = setTableOption(pCxt, yymsp[-2].minor.yy828, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy222); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 202: /* alter_table_options ::= alter_table_option */ + case 203: /* alter_table_options ::= alter_table_option */ { yylhsminor.yy828 = createAlterTableOptions(pCxt); yylhsminor.yy828 = setTableOption(pCxt, yylhsminor.yy828, yymsp[0].minor.yy233.type, &yymsp[0].minor.yy233.val); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 203: /* alter_table_options ::= alter_table_options alter_table_option */ + case 204: /* alter_table_options ::= alter_table_options alter_table_option */ { yylhsminor.yy828 = setTableOption(pCxt, yymsp[-1].minor.yy828, yymsp[0].minor.yy233.type, &yymsp[0].minor.yy233.val); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 204: /* alter_table_option ::= COMMENT NK_STRING */ + case 205: /* alter_table_option ::= COMMENT NK_STRING */ { yymsp[-1].minor.yy233.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; } break; - case 205: /* alter_table_option ::= TTL NK_INTEGER */ + case 206: /* alter_table_option ::= TTL NK_INTEGER */ { yymsp[-1].minor.yy233.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy233.val = yymsp[0].minor.yy0; } break; - case 206: /* duration_list ::= duration_literal */ - case 400: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==400); + case 207: /* duration_list ::= duration_literal */ + case 401: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==401); { yylhsminor.yy222 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy828)); } yymsp[0].minor.yy222 = yylhsminor.yy222; break; - case 207: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 401: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==401); + case 208: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 402: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==402); { yylhsminor.yy222 = addNodeToList(pCxt, yymsp[-2].minor.yy222, releaseRawExprNode(pCxt, yymsp[0].minor.yy828)); } yymsp[-2].minor.yy222 = yylhsminor.yy222; break; - case 210: /* rollup_func_name ::= function_name */ + case 211: /* rollup_func_name ::= function_name */ { yylhsminor.yy828 = createFunctionNode(pCxt, &yymsp[0].minor.yy63, NULL); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 211: /* rollup_func_name ::= FIRST */ - case 212: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==212); - case 267: /* tag_item ::= QTAGS */ yytestcase(yyruleno==267); + case 212: /* rollup_func_name ::= FIRST */ + case 213: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==213); + case 268: /* tag_item ::= QTAGS */ yytestcase(yyruleno==268); { yylhsminor.yy828 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 215: /* col_name ::= column_name */ - case 268: /* tag_item ::= column_name */ yytestcase(yyruleno==268); + case 216: /* col_name ::= column_name */ + case 269: /* tag_item ::= column_name */ yytestcase(yyruleno==269); { yylhsminor.yy828 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy63); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 216: /* cmd ::= SHOW DNODES */ + case 217: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; - case 217: /* cmd ::= SHOW USERS */ + case 218: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; - case 218: /* cmd ::= SHOW USER PRIVILEGES */ + case 219: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } break; - case 219: /* cmd ::= SHOW DATABASES */ + case 220: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); } break; - case 220: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + case 221: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy828, yymsp[0].minor.yy828, OP_TYPE_LIKE); } break; - case 221: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + case 222: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy828, yymsp[0].minor.yy828, OP_TYPE_LIKE); } break; - case 222: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ + case 223: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy828, NULL, OP_TYPE_LIKE); } break; - case 223: /* cmd ::= SHOW MNODES */ + case 224: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; - case 224: /* cmd ::= SHOW QNODES */ + case 225: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; - case 225: /* cmd ::= SHOW FUNCTIONS */ + case 226: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; - case 226: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + case 227: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy828, yymsp[-1].minor.yy828, OP_TYPE_EQUAL); } break; - case 227: /* cmd ::= SHOW STREAMS */ + case 228: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; - case 228: /* cmd ::= SHOW ACCOUNTS */ + case 229: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 229: /* cmd ::= SHOW APPS */ + case 230: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; - case 230: /* cmd ::= SHOW CONNECTIONS */ + case 231: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; - case 231: /* cmd ::= SHOW LICENCES */ - case 232: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==232); + case 232: /* cmd ::= SHOW LICENCES */ + case 233: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==233); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; - case 233: /* cmd ::= SHOW CREATE DATABASE db_name */ + case 234: /* cmd ::= SHOW CREATE DATABASE db_name */ { pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy63); } break; - case 234: /* cmd ::= SHOW CREATE TABLE full_table_name */ + case 235: /* cmd ::= SHOW CREATE TABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy828); } break; - case 235: /* cmd ::= SHOW CREATE STABLE full_table_name */ + case 236: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy828); } break; - case 236: /* cmd ::= SHOW QUERIES */ + case 237: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; - case 237: /* cmd ::= SHOW SCORES */ + case 238: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; - case 238: /* cmd ::= SHOW TOPICS */ + case 239: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; - case 239: /* cmd ::= SHOW VARIABLES */ - case 240: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==240); + case 240: /* cmd ::= SHOW VARIABLES */ + case 241: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==241); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; - case 241: /* cmd ::= SHOW LOCAL VARIABLES */ + case 242: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; - case 242: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + case 243: /* 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.yy828); } break; - case 243: /* cmd ::= SHOW BNODES */ + case 244: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; - case 244: /* cmd ::= SHOW SNODES */ + case 245: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; - case 245: /* cmd ::= SHOW CLUSTER */ + case 246: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; - case 246: /* cmd ::= SHOW TRANSACTIONS */ + case 247: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; - case 247: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + case 248: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ { pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy828); } break; - case 248: /* cmd ::= SHOW CONSUMERS */ + case 249: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; - case 249: /* cmd ::= SHOW SUBSCRIPTIONS */ + case 250: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; - case 250: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + case 251: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy828, yymsp[-1].minor.yy828, OP_TYPE_EQUAL); } break; - case 251: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + case 252: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ { pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy828, yymsp[0].minor.yy828, yymsp[-3].minor.yy222); } break; - case 252: /* cmd ::= SHOW VNODES NK_INTEGER */ + case 253: /* cmd ::= SHOW VNODES NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; - case 253: /* cmd ::= SHOW VNODES NK_STRING */ + case 254: /* cmd ::= SHOW VNODES NK_STRING */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, createValueNode(pCxt, TSDB_DATA_TYPE_VARCHAR, &yymsp[0].minor.yy0)); } break; - case 254: /* cmd ::= SHOW db_name_cond_opt ALIVE */ + case 255: /* cmd ::= SHOW db_name_cond_opt ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy828, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; - case 255: /* cmd ::= SHOW CLUSTER ALIVE */ + case 256: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; - case 256: /* db_name_cond_opt ::= */ - case 261: /* from_db_opt ::= */ yytestcase(yyruleno==261); + case 257: /* db_name_cond_opt ::= */ + case 262: /* from_db_opt ::= */ yytestcase(yyruleno==262); { yymsp[1].minor.yy828 = createDefaultDatabaseCondValue(pCxt); } break; - case 257: /* db_name_cond_opt ::= db_name NK_DOT */ + case 258: /* db_name_cond_opt ::= db_name NK_DOT */ { yylhsminor.yy828 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy63); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 259: /* like_pattern_opt ::= LIKE NK_STRING */ + case 260: /* like_pattern_opt ::= LIKE NK_STRING */ { yymsp[-1].minor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 260: /* table_name_cond ::= table_name */ + case 261: /* table_name_cond ::= table_name */ { yylhsminor.yy828 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy63); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 262: /* from_db_opt ::= FROM db_name */ + case 263: /* from_db_opt ::= FROM db_name */ { yymsp[-1].minor.yy828 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy63); } break; - case 266: /* tag_item ::= TBNAME */ + case 267: /* tag_item ::= TBNAME */ { yylhsminor.yy828 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 269: /* tag_item ::= column_name column_alias */ + case 270: /* tag_item ::= column_name column_alias */ { yylhsminor.yy828 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy63), &yymsp[0].minor.yy63); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 270: /* tag_item ::= column_name AS column_alias */ + case 271: /* tag_item ::= column_name AS column_alias */ { yylhsminor.yy828 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy63), &yymsp[0].minor.yy63); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 271: /* cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ + case 272: /* cmd ::= CREATE SMA INDEX not_exists_opt full_index_name ON full_table_name index_options */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy669, yymsp[-3].minor.yy828, yymsp[-1].minor.yy828, NULL, yymsp[0].minor.yy828); } break; - case 272: /* cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ + case 273: /* cmd ::= CREATE INDEX not_exists_opt full_index_name ON full_table_name NK_LP col_name_list NK_RP */ { pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy669, yymsp[-5].minor.yy828, yymsp[-3].minor.yy828, yymsp[-1].minor.yy222, NULL); } break; - case 273: /* cmd ::= DROP INDEX exists_opt full_index_name */ + case 274: /* cmd ::= DROP INDEX exists_opt full_index_name */ { pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy669, yymsp[0].minor.yy828); } break; - case 274: /* full_index_name ::= index_name */ + case 275: /* full_index_name ::= index_name */ { yylhsminor.yy828 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy63); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 275: /* full_index_name ::= db_name NK_DOT index_name */ + case 276: /* full_index_name ::= db_name NK_DOT index_name */ { yylhsminor.yy828 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy63, &yymsp[0].minor.yy63); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 276: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + case 277: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ { yymsp[-9].minor.yy828 = createIndexOption(pCxt, yymsp[-7].minor.yy222, releaseRawExprNode(pCxt, yymsp[-3].minor.yy828), NULL, yymsp[-1].minor.yy828, yymsp[0].minor.yy828); } break; - case 277: /* 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 */ + case 278: /* 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.yy828 = createIndexOption(pCxt, yymsp[-9].minor.yy222, releaseRawExprNode(pCxt, yymsp[-5].minor.yy828), releaseRawExprNode(pCxt, yymsp[-3].minor.yy828), yymsp[-1].minor.yy828, yymsp[0].minor.yy828); } break; - case 280: /* func ::= sma_func_name NK_LP expression_list NK_RP */ + case 281: /* func ::= sma_func_name NK_LP expression_list NK_RP */ { yylhsminor.yy828 = createFunctionNode(pCxt, &yymsp[-3].minor.yy63, yymsp[-1].minor.yy222); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 286: /* sma_stream_opt ::= */ - case 322: /* stream_options ::= */ yytestcase(yyruleno==322); + case 287: /* sma_stream_opt ::= */ + case 323: /* stream_options ::= */ yytestcase(yyruleno==323); { yymsp[1].minor.yy828 = createStreamOptions(pCxt); } break; - case 287: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + case 288: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy828)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy828); yylhsminor.yy828 = yymsp[-2].minor.yy828; } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 288: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + case 289: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy828)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy828); yylhsminor.yy828 = yymsp[-2].minor.yy828; } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 289: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + case 290: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ { ((SStreamOptions*)yymsp[-2].minor.yy828)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy828); yylhsminor.yy828 = yymsp[-2].minor.yy828; } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 290: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + case 291: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ { pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy669, &yymsp[-2].minor.yy63, yymsp[0].minor.yy828); } break; - case 291: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ + case 292: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy669, &yymsp[-3].minor.yy63, &yymsp[0].minor.yy63, false); } break; - case 292: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ + case 293: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS DATABASE db_name */ { pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-6].minor.yy669, &yymsp[-5].minor.yy63, &yymsp[0].minor.yy63, true); } break; - case 293: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ + case 294: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS STABLE full_table_name */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-4].minor.yy669, &yymsp[-3].minor.yy63, yymsp[0].minor.yy828, false); } break; - case 294: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ + case 295: /* cmd ::= CREATE TOPIC not_exists_opt topic_name WITH META AS STABLE full_table_name */ { pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-6].minor.yy669, &yymsp[-5].minor.yy63, yymsp[0].minor.yy828, true); } break; - case 295: /* cmd ::= DROP TOPIC exists_opt topic_name */ + case 296: /* cmd ::= DROP TOPIC exists_opt topic_name */ { pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy669, &yymsp[0].minor.yy63); } break; - case 296: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + case 297: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ { pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy669, &yymsp[-2].minor.yy63, &yymsp[0].minor.yy63); } break; - case 297: /* cmd ::= DESC full_table_name */ - case 298: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==298); + case 298: /* cmd ::= DESC full_table_name */ + case 299: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==299); { pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy828); } break; - case 299: /* cmd ::= RESET QUERY CACHE */ + case 300: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 300: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - case 301: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==301); + case 301: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + case 302: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==302); { pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy669, yymsp[-1].minor.yy828, yymsp[0].minor.yy828); } break; - case 304: /* explain_options ::= */ + case 305: /* explain_options ::= */ { yymsp[1].minor.yy828 = createDefaultExplainOptions(pCxt); } break; - case 305: /* explain_options ::= explain_options VERBOSE NK_BOOL */ + case 306: /* explain_options ::= explain_options VERBOSE NK_BOOL */ { yylhsminor.yy828 = setExplainVerbose(pCxt, yymsp[-2].minor.yy828, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 306: /* explain_options ::= explain_options RATIO NK_FLOAT */ + case 307: /* explain_options ::= explain_options RATIO NK_FLOAT */ { yylhsminor.yy828 = setExplainRatio(pCxt, yymsp[-2].minor.yy828, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 307: /* cmd ::= CREATE agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + case 308: /* cmd ::= CREATE 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.yy669, yymsp[-9].minor.yy669, &yymsp[-6].minor.yy63, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy686, yymsp[-1].minor.yy332, &yymsp[0].minor.yy63); } break; - case 308: /* cmd ::= DROP FUNCTION exists_opt function_name */ + case 309: /* cmd ::= DROP FUNCTION exists_opt function_name */ { pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy669, &yymsp[0].minor.yy63); } break; - case 313: /* language_opt ::= */ + case 314: /* language_opt ::= */ { yymsp[1].minor.yy63 = nil_token; } break; - case 314: /* language_opt ::= LANGUAGE NK_STRING */ + case 315: /* language_opt ::= LANGUAGE NK_STRING */ { yymsp[-1].minor.yy63 = yymsp[0].minor.yy0; } break; - case 315: /* 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 */ + case 316: /* 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.yy669, &yymsp[-8].minor.yy63, yymsp[-5].minor.yy828, yymsp[-7].minor.yy828, yymsp[-3].minor.yy222, yymsp[-2].minor.yy828, yymsp[0].minor.yy828, yymsp[-4].minor.yy222); } break; - case 316: /* cmd ::= DROP STREAM exists_opt stream_name */ + case 317: /* cmd ::= DROP STREAM exists_opt stream_name */ { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy669, &yymsp[0].minor.yy63); } break; - case 323: /* stream_options ::= stream_options TRIGGER AT_ONCE */ - case 324: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==324); + case 324: /* stream_options ::= stream_options TRIGGER AT_ONCE */ + case 325: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==325); { yylhsminor.yy828 = setStreamOptions(pCxt, yymsp[-2].minor.yy828, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 325: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + case 326: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ { yylhsminor.yy828 = setStreamOptions(pCxt, yymsp[-3].minor.yy828, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy828)); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 326: /* stream_options ::= stream_options WATERMARK duration_literal */ + case 327: /* stream_options ::= stream_options WATERMARK duration_literal */ { yylhsminor.yy828 = setStreamOptions(pCxt, yymsp[-2].minor.yy828, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy828)); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 327: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + case 328: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ { yylhsminor.yy828 = setStreamOptions(pCxt, yymsp[-3].minor.yy828, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 328: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + case 329: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ { yylhsminor.yy828 = setStreamOptions(pCxt, yymsp[-2].minor.yy828, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 329: /* stream_options ::= stream_options DELETE_MARK duration_literal */ + case 330: /* stream_options ::= stream_options DELETE_MARK duration_literal */ { yylhsminor.yy828 = setStreamOptions(pCxt, yymsp[-2].minor.yy828, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy828)); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 330: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + case 331: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ { yylhsminor.yy828 = setStreamOptions(pCxt, yymsp[-3].minor.yy828, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 332: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - case 521: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==521); - case 541: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==541); + case 333: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + case 522: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ yytestcase(yyruleno==522); + case 542: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==542); { yymsp[-3].minor.yy828 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy828); } break; - case 333: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 334: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 334: /* cmd ::= KILL QUERY NK_STRING */ + case 335: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 335: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 336: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; - case 336: /* cmd ::= BALANCE VGROUP */ + case 337: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; - case 337: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 338: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 338: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + case 339: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ { pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy222); } break; - case 339: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 340: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 340: /* dnode_list ::= DNODE NK_INTEGER */ + case 341: /* dnode_list ::= DNODE NK_INTEGER */ { yymsp[-1].minor.yy222 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; - case 342: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ + case 343: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy828, yymsp[0].minor.yy828); } break; - case 345: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + case 346: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ { yymsp[-6].minor.yy828 = createInsertStmt(pCxt, yymsp[-4].minor.yy828, yymsp[-2].minor.yy222, yymsp[0].minor.yy828); } break; - case 346: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ + case 347: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ { yymsp[-3].minor.yy828 = createInsertStmt(pCxt, yymsp[-1].minor.yy828, NULL, yymsp[0].minor.yy828); } break; - case 347: /* literal ::= NK_INTEGER */ + case 348: /* literal ::= NK_INTEGER */ { yylhsminor.yy828 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 348: /* literal ::= NK_FLOAT */ + case 349: /* literal ::= NK_FLOAT */ { yylhsminor.yy828 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 349: /* literal ::= NK_STRING */ + case 350: /* literal ::= NK_STRING */ { yylhsminor.yy828 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 350: /* literal ::= NK_BOOL */ + case 351: /* literal ::= NK_BOOL */ { yylhsminor.yy828 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 351: /* literal ::= TIMESTAMP NK_STRING */ + case 352: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 352: /* literal ::= duration_literal */ - case 362: /* signed_literal ::= signed */ yytestcase(yyruleno==362); - case 383: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==383); - case 384: /* expression ::= literal */ yytestcase(yyruleno==384); - case 385: /* expression ::= pseudo_column */ yytestcase(yyruleno==385); - case 386: /* expression ::= column_reference */ yytestcase(yyruleno==386); - case 387: /* expression ::= function_expression */ yytestcase(yyruleno==387); - case 388: /* expression ::= case_when_expression */ yytestcase(yyruleno==388); - case 419: /* function_expression ::= literal_func */ yytestcase(yyruleno==419); - case 468: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==468); - case 472: /* boolean_primary ::= predicate */ yytestcase(yyruleno==472); - case 474: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==474); - case 475: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==475); - case 478: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==478); - case 480: /* table_reference ::= table_primary */ yytestcase(yyruleno==480); - case 481: /* table_reference ::= joined_table */ yytestcase(yyruleno==481); - case 485: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==485); - case 543: /* query_simple ::= query_specification */ yytestcase(yyruleno==543); - case 544: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==544); - case 547: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==547); - case 549: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==549); + case 353: /* literal ::= duration_literal */ + case 363: /* signed_literal ::= signed */ yytestcase(yyruleno==363); + case 384: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==384); + case 385: /* expression ::= literal */ yytestcase(yyruleno==385); + case 386: /* expression ::= pseudo_column */ yytestcase(yyruleno==386); + case 387: /* expression ::= column_reference */ yytestcase(yyruleno==387); + case 388: /* expression ::= function_expression */ yytestcase(yyruleno==388); + case 389: /* expression ::= case_when_expression */ yytestcase(yyruleno==389); + case 420: /* function_expression ::= literal_func */ yytestcase(yyruleno==420); + case 469: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==469); + case 473: /* boolean_primary ::= predicate */ yytestcase(yyruleno==473); + case 475: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==475); + case 476: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==476); + case 479: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==479); + case 481: /* table_reference ::= table_primary */ yytestcase(yyruleno==481); + case 482: /* table_reference ::= joined_table */ yytestcase(yyruleno==482); + case 486: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==486); + case 544: /* query_simple ::= query_specification */ yytestcase(yyruleno==544); + case 545: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==545); + case 548: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==548); + case 550: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==550); { yylhsminor.yy828 = yymsp[0].minor.yy828; } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 353: /* literal ::= NULL */ + case 354: /* literal ::= NULL */ { yylhsminor.yy828 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 354: /* literal ::= NK_QUESTION */ + case 355: /* literal ::= NK_QUESTION */ { yylhsminor.yy828 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 355: /* duration_literal ::= NK_VARIABLE */ + case 356: /* duration_literal ::= NK_VARIABLE */ { yylhsminor.yy828 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 356: /* signed ::= NK_INTEGER */ + case 357: /* signed ::= NK_INTEGER */ { yylhsminor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 357: /* signed ::= NK_PLUS NK_INTEGER */ + case 358: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; - case 358: /* signed ::= NK_MINUS NK_INTEGER */ + case 359: /* signed ::= NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; @@ -4880,14 +4885,14 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 359: /* signed ::= NK_FLOAT */ + case 360: /* signed ::= NK_FLOAT */ { yylhsminor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 360: /* signed ::= NK_PLUS NK_FLOAT */ + case 361: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 361: /* signed ::= NK_MINUS NK_FLOAT */ + case 362: /* signed ::= NK_MINUS NK_FLOAT */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; @@ -4895,57 +4900,57 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 363: /* signed_literal ::= NK_STRING */ + case 364: /* signed_literal ::= NK_STRING */ { yylhsminor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 364: /* signed_literal ::= NK_BOOL */ + case 365: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 365: /* signed_literal ::= TIMESTAMP NK_STRING */ + case 366: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 366: /* signed_literal ::= duration_literal */ - case 368: /* signed_literal ::= literal_func */ yytestcase(yyruleno==368); - case 439: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==439); - case 501: /* select_item ::= common_expression */ yytestcase(yyruleno==501); - case 511: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==511); - case 548: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==548); - case 550: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==550); - case 563: /* search_condition ::= common_expression */ yytestcase(yyruleno==563); + case 367: /* signed_literal ::= duration_literal */ + case 369: /* signed_literal ::= literal_func */ yytestcase(yyruleno==369); + case 440: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==440); + case 502: /* select_item ::= common_expression */ yytestcase(yyruleno==502); + case 512: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==512); + case 549: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==549); + case 551: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==551); + case 564: /* search_condition ::= common_expression */ yytestcase(yyruleno==564); { yylhsminor.yy828 = releaseRawExprNode(pCxt, yymsp[0].minor.yy828); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 367: /* signed_literal ::= NULL */ + case 368: /* signed_literal ::= NULL */ { yylhsminor.yy828 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 369: /* signed_literal ::= NK_QUESTION */ + case 370: /* signed_literal ::= NK_QUESTION */ { yylhsminor.yy828 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 389: /* expression ::= NK_LP expression NK_RP */ - case 473: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==473); - case 562: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==562); + case 390: /* expression ::= NK_LP expression NK_RP */ + case 474: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==474); + case 563: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==563); { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy828)); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 390: /* expression ::= NK_PLUS expr_or_subquery */ + case 391: /* expression ::= NK_PLUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy828)); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 391: /* expression ::= NK_MINUS expr_or_subquery */ + case 392: /* expression ::= NK_MINUS expr_or_subquery */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy828), NULL)); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 392: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + case 393: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -4953,7 +4958,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 393: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + case 394: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -4961,7 +4966,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 394: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + case 395: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -4969,7 +4974,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 395: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + case 396: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -4977,7 +4982,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 396: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ + case 397: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -4985,14 +4990,14 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 397: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 398: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); yylhsminor.yy828 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy828), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 398: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + case 399: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -5000,7 +5005,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 399: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + case 400: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -5008,71 +5013,71 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 402: /* column_reference ::= column_name */ + case 403: /* column_reference ::= column_name */ { yylhsminor.yy828 = createRawExprNode(pCxt, &yymsp[0].minor.yy63, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy63)); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 403: /* column_reference ::= table_name NK_DOT column_name */ + case 404: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy63, &yymsp[0].minor.yy63, createColumnNode(pCxt, &yymsp[-2].minor.yy63, &yymsp[0].minor.yy63)); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 404: /* pseudo_column ::= ROWTS */ - case 405: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==405); - case 407: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==407); - case 408: /* pseudo_column ::= QEND */ yytestcase(yyruleno==408); - case 409: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==409); - case 410: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==410); - case 411: /* pseudo_column ::= WEND */ yytestcase(yyruleno==411); - case 412: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==412); - case 413: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==413); - case 414: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==414); - case 415: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==415); - case 421: /* literal_func ::= NOW */ yytestcase(yyruleno==421); + case 405: /* pseudo_column ::= ROWTS */ + case 406: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==406); + case 408: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==408); + case 409: /* pseudo_column ::= QEND */ yytestcase(yyruleno==409); + case 410: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==410); + case 411: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==411); + case 412: /* pseudo_column ::= WEND */ yytestcase(yyruleno==412); + case 413: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==413); + case 414: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==414); + case 415: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==415); + case 416: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==416); + case 422: /* literal_func ::= NOW */ yytestcase(yyruleno==422); { yylhsminor.yy828 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 406: /* pseudo_column ::= table_name NK_DOT TBNAME */ + case 407: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy63, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy63)))); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 416: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 417: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==417); + case 417: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 418: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==418); { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy63, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy63, yymsp[-1].minor.yy222)); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 418: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + case 419: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy828), yymsp[-1].minor.yy686)); } yymsp[-5].minor.yy828 = yylhsminor.yy828; break; - case 420: /* literal_func ::= noarg_func NK_LP NK_RP */ + case 421: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy63, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy63, NULL)); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 435: /* star_func_para_list ::= NK_STAR */ + case 436: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy222 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy222 = yylhsminor.yy222; break; - case 440: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 504: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==504); + case 441: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 505: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==505); { yylhsminor.yy828 = createColumnNode(pCxt, &yymsp[-2].minor.yy63, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 441: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ + case 442: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy222, yymsp[-1].minor.yy828)); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 442: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + case 443: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy828), yymsp[-2].minor.yy222, yymsp[-1].minor.yy828)); } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 445: /* when_then_expr ::= WHEN common_expression THEN common_expression */ + case 446: /* when_then_expr ::= WHEN common_expression THEN common_expression */ { yymsp[-3].minor.yy828 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy828), releaseRawExprNode(pCxt, yymsp[0].minor.yy828)); } break; - case 447: /* case_when_else_opt ::= ELSE common_expression */ + case 448: /* case_when_else_opt ::= ELSE common_expression */ { yymsp[-1].minor.yy828 = releaseRawExprNode(pCxt, yymsp[0].minor.yy828); } break; - case 448: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ - case 453: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==453); + case 449: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ + case 454: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==454); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -5080,7 +5085,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 449: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + case 450: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -5088,7 +5093,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-4].minor.yy828 = yylhsminor.yy828; break; - case 450: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + case 451: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -5096,71 +5101,71 @@ static YYACTIONTYPE yy_reduce( } yymsp[-5].minor.yy828 = yylhsminor.yy828; break; - case 451: /* predicate ::= expr_or_subquery IS NULL */ + case 452: /* predicate ::= expr_or_subquery IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); yylhsminor.yy828 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy828), NULL)); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 452: /* predicate ::= expr_or_subquery IS NOT NULL */ + case 453: /* predicate ::= expr_or_subquery IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy828); yylhsminor.yy828 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy828), NULL)); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 454: /* compare_op ::= NK_LT */ + case 455: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy62 = OP_TYPE_LOWER_THAN; } break; - case 455: /* compare_op ::= NK_GT */ + case 456: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy62 = OP_TYPE_GREATER_THAN; } break; - case 456: /* compare_op ::= NK_LE */ + case 457: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy62 = OP_TYPE_LOWER_EQUAL; } break; - case 457: /* compare_op ::= NK_GE */ + case 458: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy62 = OP_TYPE_GREATER_EQUAL; } break; - case 458: /* compare_op ::= NK_NE */ + case 459: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy62 = OP_TYPE_NOT_EQUAL; } break; - case 459: /* compare_op ::= NK_EQ */ + case 460: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy62 = OP_TYPE_EQUAL; } break; - case 460: /* compare_op ::= LIKE */ + case 461: /* compare_op ::= LIKE */ { yymsp[0].minor.yy62 = OP_TYPE_LIKE; } break; - case 461: /* compare_op ::= NOT LIKE */ + case 462: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy62 = OP_TYPE_NOT_LIKE; } break; - case 462: /* compare_op ::= MATCH */ + case 463: /* compare_op ::= MATCH */ { yymsp[0].minor.yy62 = OP_TYPE_MATCH; } break; - case 463: /* compare_op ::= NMATCH */ + case 464: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy62 = OP_TYPE_NMATCH; } break; - case 464: /* compare_op ::= CONTAINS */ + case 465: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy62 = OP_TYPE_JSON_CONTAINS; } break; - case 465: /* in_op ::= IN */ + case 466: /* in_op ::= IN */ { yymsp[0].minor.yy62 = OP_TYPE_IN; } break; - case 466: /* in_op ::= NOT IN */ + case 467: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy62 = OP_TYPE_NOT_IN; } break; - case 467: /* in_predicate_value ::= NK_LP literal_list NK_RP */ + case 468: /* in_predicate_value ::= NK_LP literal_list NK_RP */ { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy222)); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 469: /* boolean_value_expression ::= NOT boolean_primary */ + case 470: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy828), NULL)); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 470: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 471: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -5168,7 +5173,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 471: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 472: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy828); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy828); @@ -5176,48 +5181,48 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 477: /* from_clause_opt ::= FROM table_reference_list */ - case 506: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==506); - case 537: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==537); + case 478: /* from_clause_opt ::= FROM table_reference_list */ + case 507: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==507); + case 538: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==538); { yymsp[-1].minor.yy828 = yymsp[0].minor.yy828; } break; - case 479: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ + case 480: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy828 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy828, yymsp[0].minor.yy828, NULL); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 482: /* table_primary ::= table_name alias_opt */ + case 483: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy828 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy63, &yymsp[0].minor.yy63); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 483: /* table_primary ::= db_name NK_DOT table_name alias_opt */ + case 484: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy828 = createRealTableNode(pCxt, &yymsp[-3].minor.yy63, &yymsp[-1].minor.yy63, &yymsp[0].minor.yy63); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 484: /* table_primary ::= subquery alias_opt */ + case 485: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy828 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy828), &yymsp[0].minor.yy63); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 486: /* alias_opt ::= */ + case 487: /* alias_opt ::= */ { yymsp[1].minor.yy63 = nil_token; } break; - case 488: /* alias_opt ::= AS table_alias */ + case 489: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy63 = yymsp[0].minor.yy63; } break; - case 489: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 490: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==490); + case 490: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 491: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==491); { yymsp[-2].minor.yy828 = yymsp[-1].minor.yy828; } break; - case 491: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + case 492: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy828 = createJoinTableNode(pCxt, yymsp[-4].minor.yy574, yymsp[-5].minor.yy828, yymsp[-2].minor.yy828, yymsp[0].minor.yy828); } yymsp[-5].minor.yy828 = yylhsminor.yy828; break; - case 492: /* join_type ::= */ + case 493: /* join_type ::= */ { yymsp[1].minor.yy574 = JOIN_TYPE_INNER; } break; - case 493: /* join_type ::= INNER */ + case 494: /* join_type ::= INNER */ { yymsp[0].minor.yy574 = JOIN_TYPE_INNER; } break; - case 494: /* query_specification ::= SELECT set_quantifier_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 495: /* query_specification ::= SELECT set_quantifier_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 */ { yymsp[-11].minor.yy828 = createSelectStmt(pCxt, yymsp[-10].minor.yy669, yymsp[-9].minor.yy222, yymsp[-8].minor.yy828); yymsp[-11].minor.yy828 = addWhereClause(pCxt, yymsp[-11].minor.yy828, yymsp[-7].minor.yy828); @@ -5230,82 +5235,82 @@ static YYACTIONTYPE yy_reduce( yymsp[-11].minor.yy828 = addFillClause(pCxt, yymsp[-11].minor.yy828, yymsp[-3].minor.yy828); } break; - case 497: /* set_quantifier_opt ::= ALL */ + case 498: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy669 = false; } break; - case 500: /* select_item ::= NK_STAR */ + case 501: /* select_item ::= NK_STAR */ { yylhsminor.yy828 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy828 = yylhsminor.yy828; break; - case 502: /* select_item ::= common_expression column_alias */ - case 512: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==512); + case 503: /* select_item ::= common_expression column_alias */ + case 513: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==513); { yylhsminor.yy828 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy828), &yymsp[0].minor.yy63); } yymsp[-1].minor.yy828 = yylhsminor.yy828; break; - case 503: /* select_item ::= common_expression AS column_alias */ - case 513: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==513); + case 504: /* select_item ::= common_expression AS column_alias */ + case 514: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==514); { yylhsminor.yy828 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy828), &yymsp[0].minor.yy63); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 508: /* partition_by_clause_opt ::= PARTITION BY partition_list */ - case 533: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==533); - case 552: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==552); + case 509: /* partition_by_clause_opt ::= PARTITION BY partition_list */ + case 534: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==534); + case 553: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==553); { yymsp[-2].minor.yy222 = yymsp[0].minor.yy222; } break; - case 515: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + case 516: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy828 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy828), releaseRawExprNode(pCxt, yymsp[-1].minor.yy828)); } break; - case 516: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + case 517: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ { yymsp[-3].minor.yy828 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy828)); } break; - case 517: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + case 518: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy828 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy828), NULL, yymsp[-1].minor.yy828, yymsp[0].minor.yy828); } break; - case 518: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + case 519: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy828 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy828), releaseRawExprNode(pCxt, yymsp[-3].minor.yy828), yymsp[-1].minor.yy828, yymsp[0].minor.yy828); } break; - case 519: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + case 520: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ { yymsp[-6].minor.yy828 = createEventWindowNode(pCxt, yymsp[-3].minor.yy828, yymsp[0].minor.yy828); } break; - case 523: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ + case 524: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy828 = createFillNode(pCxt, yymsp[-1].minor.yy822, NULL); } break; - case 524: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + case 525: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ { yymsp[-5].minor.yy828 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy222)); } break; - case 525: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP */ + case 526: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA literal_list NK_RP */ { yymsp[-5].minor.yy828 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy222)); } break; - case 526: /* fill_mode ::= NONE */ + case 527: /* fill_mode ::= NONE */ { yymsp[0].minor.yy822 = FILL_MODE_NONE; } break; - case 527: /* fill_mode ::= PREV */ + case 528: /* fill_mode ::= PREV */ { yymsp[0].minor.yy822 = FILL_MODE_PREV; } break; - case 528: /* fill_mode ::= NULL */ + case 529: /* fill_mode ::= NULL */ { yymsp[0].minor.yy822 = FILL_MODE_NULL; } break; - case 529: /* fill_mode ::= NULL_F */ + case 530: /* fill_mode ::= NULL_F */ { yymsp[0].minor.yy822 = FILL_MODE_NULL_F; } break; - case 530: /* fill_mode ::= LINEAR */ + case 531: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy822 = FILL_MODE_LINEAR; } break; - case 531: /* fill_mode ::= NEXT */ + case 532: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy822 = FILL_MODE_NEXT; } break; - case 534: /* group_by_list ::= expr_or_subquery */ + case 535: /* group_by_list ::= expr_or_subquery */ { yylhsminor.yy222 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy828))); } yymsp[0].minor.yy222 = yylhsminor.yy222; break; - case 535: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + case 536: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ { yylhsminor.yy222 = addNodeToList(pCxt, yymsp[-2].minor.yy222, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy828))); } yymsp[-2].minor.yy222 = yylhsminor.yy222; break; - case 539: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + case 540: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ { yymsp[-5].minor.yy828 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy828), releaseRawExprNode(pCxt, yymsp[-1].minor.yy828)); } break; - case 542: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 543: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy828 = addOrderByClause(pCxt, yymsp[-3].minor.yy828, yymsp[-2].minor.yy222); yylhsminor.yy828 = addSlimitClause(pCxt, yylhsminor.yy828, yymsp[-1].minor.yy828); @@ -5313,50 +5318,50 @@ static YYACTIONTYPE yy_reduce( } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 545: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + case 546: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ { yylhsminor.yy828 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy828, yymsp[0].minor.yy828); } yymsp[-3].minor.yy828 = yylhsminor.yy828; break; - case 546: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + case 547: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ { yylhsminor.yy828 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy828, yymsp[0].minor.yy828); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 554: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 558: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==558); + case 555: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 559: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==559); { yymsp[-1].minor.yy828 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 555: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 559: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==559); + case 556: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 560: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==560); { yymsp[-3].minor.yy828 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 556: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 560: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==560); + case 557: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 561: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==561); { yymsp[-3].minor.yy828 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 561: /* subquery ::= NK_LP query_expression NK_RP */ + case 562: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy828 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy828); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 566: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + case 567: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ { yylhsminor.yy828 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy828), yymsp[-1].minor.yy158, yymsp[0].minor.yy675); } yymsp[-2].minor.yy828 = yylhsminor.yy828; break; - case 567: /* ordering_specification_opt ::= */ + case 568: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy158 = ORDER_ASC; } break; - case 568: /* ordering_specification_opt ::= ASC */ + case 569: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy158 = ORDER_ASC; } break; - case 569: /* ordering_specification_opt ::= DESC */ + case 570: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy158 = ORDER_DESC; } break; - case 570: /* null_ordering_opt ::= */ + case 571: /* null_ordering_opt ::= */ { yymsp[1].minor.yy675 = NULL_ORDER_DEFAULT; } break; - case 571: /* null_ordering_opt ::= NULLS FIRST */ + case 572: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy675 = NULL_ORDER_FIRST; } break; - case 572: /* null_ordering_opt ::= NULLS LAST */ + case 573: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy675 = NULL_ORDER_LAST; } break; default: diff --git a/source/libs/parser/test/parAlterToBalanceTest.cpp b/source/libs/parser/test/parAlterToBalanceTest.cpp index bfcf6ec27e..4cccfd449c 100644 --- a/source/libs/parser/test/parAlterToBalanceTest.cpp +++ b/source/libs/parser/test/parAlterToBalanceTest.cpp @@ -108,6 +108,7 @@ TEST_F(ParserInitialATest, alterDnode) { * | REPLICA int_value -- todo: enum 1, 3, default 1, unit replica * | WAL_LEVEL int_value -- enum 1, 2, default 1 * | STT_TRIGGER int_value -- rang [1, 16], default 8 + * | MINROWS int_value -- rang [10, 1000], default 100 * } */ TEST_F(ParserInitialATest, alterDatabase) { @@ -133,6 +134,7 @@ TEST_F(ParserInitialATest, alterDatabase) { expect.cacheLastSize = -1; expect.replications = -1; expect.sstTrigger = -1; + expect.minRows = -1; }; auto setAlterDbBuffer = [&](int32_t buffer) { expect.buffer = buffer; }; auto setAlterDbPageSize = [&](int32_t pageSize) { expect.pageSize = pageSize; }; @@ -150,6 +152,7 @@ TEST_F(ParserInitialATest, alterDatabase) { auto setAlterDbCacheModel = [&](int8_t cacheModel) { expect.cacheLast = cacheModel; }; auto setAlterDbReplica = [&](int8_t replications) { expect.replications = replications; }; auto setAlterDbSttTrigger = [&](int8_t sstTrigger) { expect.sstTrigger = sstTrigger; }; + auto setAlterDbMinRows = [&](int32_t minRows) { expect.minRows = minRows; }; setCheckDdlFunc([&](const SQuery* pQuery, ParserStage stage) { ASSERT_EQ(nodeType(pQuery->pRoot), QUERY_NODE_ALTER_DATABASE_STMT); @@ -170,6 +173,7 @@ TEST_F(ParserInitialATest, alterDatabase) { ASSERT_EQ(req.cacheLast, expect.cacheLast); ASSERT_EQ(req.replications, expect.replications); ASSERT_EQ(req.sstTrigger, expect.sstTrigger); + ASSERT_EQ(req.minRows, expect.minRows); }); const int32_t MINUTE_PER_DAY = MILLISECOND_PER_DAY / MILLISECOND_PER_MINUTE; @@ -277,6 +281,15 @@ TEST_F(ParserInitialATest, alterDatabase) { setAlterDbSttTrigger(16); run("ALTER DATABASE test STT_TRIGGER 16"); clearAlterDbReq(); + + initAlterDb("test"); + setAlterDbMinRows(10); + run("ALTER DATABASE test MINROWS 10"); + setAlterDbMinRows(50); + run("ALTER DATABASE test MINROWS 50"); + setAlterDbMinRows(1000); + run("ALTER DATABASE test MINROWS 1000"); + clearAlterDbReq(); } TEST_F(ParserInitialATest, alterDatabaseSemanticCheck) { diff --git a/source/libs/scalar/src/scalar.c b/source/libs/scalar/src/scalar.c index 25938a7678..fe01977b2e 100644 --- a/source/libs/scalar/src/scalar.c +++ b/source/libs/scalar/src/scalar.c @@ -59,6 +59,8 @@ int32_t sclCreateColumnInfoData(SDataType *pType, int32_t numOfRows, SScalarPara pParam->columnData = pColumnData; pParam->colAlloced = true; + pParam->numOfRows = numOfRows; + return TSDB_CODE_SUCCESS; } @@ -740,6 +742,10 @@ int32_t sclExecFunction(SFunctionNode *node, SScalarCtx *ctx, SScalarParam *outp SCL_ERR_JRET(code); } + if (rowNum == 0) { + goto _return; + } + code = (*ffpSet.process)(params, paramNum, output); if (code) { sclError("scalar function exec failed, funcId:%d, code:%s", node->funcId, tstrerror(code)); diff --git a/source/libs/scalar/src/sclfunc.c b/source/libs/scalar/src/sclfunc.c index f4c3669574..195a08525c 100644 --- a/source/libs/scalar/src/sclfunc.c +++ b/source/libs/scalar/src/sclfunc.c @@ -1055,9 +1055,9 @@ int32_t toISO8601Function(SScalarParam *pInput, int32_t inputNum, SScalarParam * if (tsDigits == TSDB_TIME_PRECISION_MILLI_DIGITS) { timeVal = timeVal / 1000; } else if (tsDigits == TSDB_TIME_PRECISION_MICRO_DIGITS) { - timeVal = timeVal / (1000 * 1000); + timeVal = timeVal / ((int64_t)(1000 * 1000)); } else if (tsDigits == TSDB_TIME_PRECISION_NANO_DIGITS) { - timeVal = timeVal / (1000 * 1000 * 1000); + timeVal = timeVal / ((int64_t)(1000 * 1000 * 1000)); } else { colDataSetNULL(pOutput->columnData, i); continue; @@ -1317,19 +1317,19 @@ int32_t timeTruncateFunction(SScalarParam *pInput, int32_t inputNum, SScalarPara case 86400000: { /* 1d */ if (tsDigits == TSDB_TIME_PRECISION_MILLI_DIGITS) { if (ignoreTz) { - timeVal = timeVal - (timeVal + offsetFromTz(timezone, 1000)) % (86400L * 1000); + timeVal = timeVal - (timeVal + offsetFromTz(timezone, 1000)) % (((int64_t)86400) * 1000); } else { timeVal = timeVal / 1000 / 86400 * 86400 * 1000; } } else if (tsDigits == TSDB_TIME_PRECISION_MICRO_DIGITS) { if (ignoreTz) { - timeVal = timeVal - (timeVal + offsetFromTz(timezone, 1000000)) % (86400L * 1000000); + timeVal = timeVal - (timeVal + offsetFromTz(timezone, 1000000)) % (((int64_t)86400) * 1000000); } else { timeVal = timeVal / 1000000 / 86400 * 86400 * 1000000; } } else if (tsDigits == TSDB_TIME_PRECISION_NANO_DIGITS) { if (ignoreTz) { - timeVal = timeVal - (timeVal + offsetFromTz(timezone, 1000000000)) % (86400L * 1000000000); + timeVal = timeVal - (timeVal + offsetFromTz(timezone, 1000000000)) % (((int64_t)86400) * 1000000000); } else { timeVal = timeVal / 1000000000 / 86400 * 86400 * 1000000000; } diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index 04e4859c5e..90f79fd93c 100644 --- a/source/libs/sync/src/syncMain.c +++ b/source/libs/sync/src/syncMain.c @@ -1082,21 +1082,15 @@ void syncNodePreClose(SSyncNode* pSyncNode) { ASSERT(pSyncNode->pFsm != NULL); ASSERT(pSyncNode->pFsm->FpApplyQueueItems != NULL); - while (1) { - int32_t aqItems = pSyncNode->pFsm->FpApplyQueueItems(pSyncNode->pFsm); - sTrace("vgId:%d, pre close, %d items in apply queue", pSyncNode->vgId, aqItems); - if (aqItems == 0 || aqItems == -1) { - break; - } - taosMsleep(20); - } - // stop elect timer syncNodeStopElectTimer(pSyncNode); // stop heartbeat timer syncNodeStopHeartbeatTimer(pSyncNode); + // stop ping timer + syncNodeStopPingTimer(pSyncNode); + // clean rsp syncRespCleanRsp(pSyncNode->pSyncRespMgr); } @@ -1120,10 +1114,11 @@ void syncNodeClose(SSyncNode* pSyncNode) { if (pSyncNode == NULL) return; sNInfo(pSyncNode, "sync close, node:%p", pSyncNode); + syncRespCleanRsp(pSyncNode->pSyncRespMgr); + syncNodeStopPingTimer(pSyncNode); syncNodeStopElectTimer(pSyncNode); syncNodeStopHeartbeatTimer(pSyncNode); - syncNodeLogReplMgrDestroy(pSyncNode); syncRespMgrDestroy(pSyncNode->pSyncRespMgr); diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index b6f995b11e..50ed9fa61b 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -425,21 +425,6 @@ void cliHandleResp(SCliConn* conn) { tDebug("%s conn %p ref by app", CONN_GET_INST_LABEL(conn), conn); } - // if (TMSG_INFO(pHead->msgType - 1) != 0) { - // char buf[128] = {0}; - // sprintf(buf, "%s", TMSG_INFO(pHead->msgType - 1)); - // int* count = taosHashGet(pThrd->msgCount, TMSG_INFO(pHead->msgType - 1), strlen(TMSG_INFO(pHead->msgType - 1))); - // if (NULL == 0) { - // int localCount = 1; - // taosHashPut(pThrd->msgCount, TMSG_INFO(pHead->msgType - 1), strlen(TMSG_INFO(pHead->msgType - 1)), &localCount, - // sizeof(localCount)); - // } else { - // int localCount = *count - 1; - // taosHashPut(pThrd->msgCount, TMSG_INFO(pHead->msgType - 1), strlen(TMSG_INFO(pHead->msgType - 1)), &localCount, - // sizeof(localCount)); - // } - // } - STraceId* trace = &transMsg.info.traceId; tGDebug("%s conn %p %s received from %s, local info:%s, len:%d, code str:%s", CONN_GET_INST_LABEL(conn), conn, TMSG_INFO(pHead->msgType), conn->dst, conn->src, pHead->msgLen, tstrerror(transMsg.code)); @@ -1118,19 +1103,6 @@ void cliSend(SCliConn* pConn) { msgLen = (int32_t)ntohl((uint32_t)(pHead->msgLen)); } - // if (tmsgIsValid(pHead->msgType)) { - // char buf[128] = {0}; - // sprintf(buf, "%s", TMSG_INFO(pHead->msgType)); - // int* count = taosHashGet(pThrd->msgCount, buf, sizeof(buf)); - // if (NULL == 0) { - // int localCount = 1; - // taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); - // } else { - // int localCount = *count + 1; - // taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); - // } - // } - tGDebug("%s conn %p %s is sent to %s, local info %s, len:%d", CONN_GET_INST_LABEL(pConn), pConn, TMSG_INFO(pHead->msgType), pConn->dst, pConn->src, msgLen); @@ -1525,16 +1497,19 @@ void cliHandleReq(SCliMsg* pMsg, SCliThrd* pThrd) { destroyCmsg(pMsg); return; } - if (tmsgIsValid(pMsg->msg.msgType)) { - char buf[128] = {0}; - sprintf(buf, "%s", TMSG_INFO(pMsg->msg.msgType)); - int* count = taosHashGet(pThrd->msgCount, buf, sizeof(buf)); - if (NULL == 0) { - int localCount = 1; - taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); - } else { - int localCount = *count + 1; - taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); + + if (rpcDebugFlag & DEBUG_TRACE) { + if (tmsgIsValid(pMsg->msg.msgType)) { + char buf[128] = {0}; + sprintf(buf, "%s", TMSG_INFO(pMsg->msg.msgType)); + int* count = taosHashGet(pThrd->msgCount, buf, sizeof(buf)); + if (NULL == 0) { + int localCount = 1; + taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); + } else { + int localCount = *count + 1; + taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); + } } } @@ -1782,18 +1757,20 @@ static void cliAsyncCb(uv_async_t* handle) { QUEUE_MOVE(&item->qmsg, &wq); taosThreadMutexUnlock(&item->mtx); - void* pIter = taosHashIterate(pThrd->msgCount, NULL); - while (pIter != NULL) { - int* count = pIter; - size_t len = 0; - char* key = taosHashGetKey(pIter, &len); - if (*count != 0) { - tDebug("key: %s count: %d", key, *count); - } + if (rpcDebugFlag & DEBUG_TRACE) { + void* pIter = taosHashIterate(pThrd->msgCount, NULL); + while (pIter != NULL) { + int* count = pIter; + size_t len = 0; + char* key = taosHashGetKey(pIter, &len); + if (*count != 0) { + tDebug("key: %s count: %d", key, *count); + } - pIter = taosHashIterate(pThrd->msgCount, pIter); + pIter = taosHashIterate(pThrd->msgCount, pIter); + } + tDebug("all conn count: %d", pThrd->newConnCount); } - tDebug("all conn count: %d", pThrd->newConnCount); int8_t supportBatch = pTransInst->supportBatch; if (supportBatch == 0) { @@ -2379,17 +2356,18 @@ int cliAppCb(SCliConn* pConn, STransMsg* pResp, SCliMsg* pMsg) { tGTrace("%s conn %p extract epset from msg", CONN_GET_INST_LABEL(pConn), pConn); } } - - if (tmsgIsValid(pResp->msgType - 1)) { - char buf[128] = {0}; - sprintf(buf, "%s", TMSG_INFO(pResp->msgType - 1)); - int* count = taosHashGet(pThrd->msgCount, buf, sizeof(buf)); - if (NULL == 0) { - int localCount = 0; - taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); - } else { - int localCount = *count - 1; - taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); + if (rpcDebugFlag & DEBUG_TRACE) { + if (tmsgIsValid(pResp->msgType - 1)) { + char buf[128] = {0}; + sprintf(buf, "%s", TMSG_INFO(pResp->msgType - 1)); + int* count = taosHashGet(pThrd->msgCount, buf, sizeof(buf)); + if (NULL == 0) { + int localCount = 0; + taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); + } else { + int localCount = *count - 1; + taosHashPut(pThrd->msgCount, buf, sizeof(buf), &localCount, sizeof(localCount)); + } } } if (pCtx->pSem != NULL) { diff --git a/source/os/src/osRand.c b/source/os/src/osRand.c index 4998eb45a4..83c36a422d 100644 --- a/source/os/src/osRand.c +++ b/source/os/src/osRand.c @@ -25,7 +25,15 @@ void taosSeedRand(uint32_t seed) { return srand(seed); } -uint32_t taosRand(void) { return rand(); } +uint32_t taosRand(void) { +#ifdef WINDOWS + unsigned int pSeed; + rand_s(&pSeed); + return pSeed; +#else + return rand(); +#endif +} uint32_t taosRandR(uint32_t* pSeed) { #ifdef WINDOWS diff --git a/source/util/src/terror.c b/source/util/src/terror.c index cb0ccc75df..1f49f8f8b5 100644 --- a/source/util/src/terror.c +++ b/source/util/src/terror.c @@ -184,6 +184,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_MND_TOO_MANY_ACCTS, "Too many accounts") TAOS_DEFINE_ERROR(TSDB_CODE_MND_USER_ALREADY_EXIST, "User already exists") TAOS_DEFINE_ERROR(TSDB_CODE_MND_USER_NOT_EXIST, "Invalid user") TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_USER_FORMAT, "Invalid user format") +TAOS_DEFINE_ERROR(TSDB_CODE_MND_USER_NOT_AVAILABLE, "User not available") TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_PASS_FORMAT, "Invalid password format") TAOS_DEFINE_ERROR(TSDB_CODE_MND_NO_USER_FROM_CONN, "Can not get user from conn") TAOS_DEFINE_ERROR(TSDB_CODE_MND_TOO_MANY_USERS, "Too many users") @@ -211,8 +212,8 @@ TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_FUNC_BUFSIZE, "Invalid func bufSize" TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_FUNC_COMMENT, "Invalid func comment") TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_FUNC_RETRIEVE, "Invalid func retrieve msg") -TAOS_DEFINE_ERROR(TSDB_CODE_MND_TAG_INDEX_ALREADY_EXIST, "Tag index already exists") -TAOS_DEFINE_ERROR(TSDB_CODE_MND_TAG_INDEX_NOT_EXIST, "Tag index not exists") +TAOS_DEFINE_ERROR(TSDB_CODE_MND_TAG_INDEX_ALREADY_EXIST, "index already exists") +TAOS_DEFINE_ERROR(TSDB_CODE_MND_TAG_INDEX_NOT_EXIST, "index not exist") // mnode-db @@ -301,9 +302,9 @@ TAOS_DEFINE_ERROR(TSDB_CODE_MND_TOO_MANY_STREAMS, "Too many streams") TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_TARGET_TABLE, "Cannot write the same stable as other stream") // mnode-sma -TAOS_DEFINE_ERROR(TSDB_CODE_MND_SMA_ALREADY_EXIST, "SMA already exists") -TAOS_DEFINE_ERROR(TSDB_CODE_MND_SMA_NOT_EXIST, "SMA does not exist") -TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_SMA_OPTION, "Invalid sma option") +TAOS_DEFINE_ERROR(TSDB_CODE_MND_SMA_ALREADY_EXIST, "index already exists") +TAOS_DEFINE_ERROR(TSDB_CODE_MND_SMA_NOT_EXIST, "index not exist") +TAOS_DEFINE_ERROR(TSDB_CODE_MND_INVALID_SMA_OPTION, "Invalid sma index option") // dnode TAOS_DEFINE_ERROR(TSDB_CODE_DNODE_OFFLINE, "Dnode is offline") diff --git a/tests/parallel_test/cases.task b/tests/parallel_test/cases.task index dfb8230cc7..ec192dc6a6 100644 --- a/tests/parallel_test/cases.task +++ b/tests/parallel_test/cases.task @@ -733,7 +733,7 @@ ,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqConsFromTsdb-mutilVg-mutilCtb.py ,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqConsFromTsdb1-1ctb-funcNFilter.py ,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqConsFromTsdb1-mutilVg-mutilCtb-funcNFilter.py -#,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqConsFromTsdb1-mutilVg-mutilCtb.py +,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqConsFromTsdb1-mutilVg-mutilCtb.py ,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqAutoCreateTbl.py ,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqDnodeRestart.py ,,y,system-test,./pytest.sh python3 ./test.py -f 7-tmq/tmqDnodeRestart1.py diff --git a/tests/parallel_test/run_case.sh b/tests/parallel_test/run_case.sh index 95115bc437..e00e59f46b 100755 --- a/tests/parallel_test/run_case.sh +++ b/tests/parallel_test/run_case.sh @@ -81,6 +81,7 @@ echo "cmd exit code: $RET" md5sum /usr/lib/libtaos.so.1 md5sum /home/TDinternal/debug/build/lib/libtaos.so + if [ $RET -ne 0 ]; then pwd fi diff --git a/tests/script/tsim/db/alter_option.sim b/tests/script/tsim/db/alter_option.sim index f4392fbca4..6f568ecdb1 100644 --- a/tests/script/tsim/db/alter_option.sim +++ b/tests/script/tsim/db/alter_option.sim @@ -285,8 +285,6 @@ sql_error alter database db keep -1 print ============== modify minrows sql_error alter database db minrows 8 -sql_error alter database db minrows 200 -sql_error alter database db minrows 11 sql_error alter database db minrows 8000 sql_error alter database db minrows 8001 diff --git a/tests/script/tsim/stream/checkStreamSTable1.sim b/tests/script/tsim/stream/checkStreamSTable1.sim new file mode 100644 index 0000000000..495e1cf358 --- /dev/null +++ b/tests/script/tsim/stream/checkStreamSTable1.sim @@ -0,0 +1,71 @@ +system sh/stop_dnodes.sh +system sh/deploy.sh -n dnode1 -i 1 + +print ===== step1 + +system sh/exec.sh -n dnode1 -s start +sleep 50 +sql connect + +print ===== step2 + +sql create database test vgroups 4; +sql use test; +sql create stable st(ts timestamp,a int,b int,c int) tags(ta int,tb int,tc int); +sql create table t1 using st tags(1,1,1); +sql create table t2 using st tags(2,2,2); +sql create stream streams1 trigger at_once into streamt1 as select _wstart, count(*) c1, count(a) c2 from st interval(1s) ; +sql insert into t1 values(1648791211000,1,2,3); +sql insert into t1 values(1648791212000,2,2,3); + +$loop_count = 0 +loop0: + +sleep 300 + +$loop_count = $loop_count + 1 +if $loop_count == 10 then + return -1 +endi + +print 1 select * from streamt1; +sql select * from streamt1; + +if $rows != 2 then + print rows=$rows + goto loop0 +endi + +print drop stream streams1 +sql drop stream streams1; + +print alter table streamt1 add column c3 double +sql alter table streamt1 add column c3 double; + +print create stream streams1 trigger at_once into streamt1 as select _wstart, count(*) c1, count(a) c2, avg(b) c3 from st interval(1s) ; +sql create stream streams1 trigger at_once into streamt1 as select _wstart, count(*) c1, count(a) c2, avg(b) c3 from st interval(1s) ; + +sql insert into t2 values(1648791213000,1,2,3); +sql insert into t1 values(1648791214000,1,2,3); + +$loop_count = 0 +loop1: + +sleep 300 + +$loop_count = $loop_count + 1 +if $loop_count == 10 then + return -1 +endi + +print 2 select * from streamt1; +sql select * from streamt1; + +if $rows != 4 then + print rows=$rows + goto loop1 +endi + +print ======over + +system sh/stop_dnodes.sh diff --git a/tests/system-test/2-query/mavg.py b/tests/system-test/2-query/mavg.py index d659a682b1..798d0e290b 100644 --- a/tests/system-test/2-query/mavg.py +++ b/tests/system-test/2-query/mavg.py @@ -716,8 +716,6 @@ class TDTestCase: tdSql.checkRows(2) # partition by col - tdSql.query(f"select c1 , mavg(c1,3) from {dbname}.stb1 partition by c1") - tdSql.checkRows(0) tdSql.query(f"select c1 , mavg(c1,1) from {dbname}.stb1 partition by c1") tdSql.checkRows(40) tdSql.query(f"select c1, c2, c3, c4, mavg(c1,3) from {dbname}.stb1 partition by tbname ") diff --git a/tests/system-test/7-tmq/tmqConsFromTsdb1-mutilVg-mutilCtb.py b/tests/system-test/7-tmq/tmqConsFromTsdb1-mutilVg-mutilCtb.py index 8ff01444f8..439845aa54 100644 --- a/tests/system-test/7-tmq/tmqConsFromTsdb1-mutilVg-mutilCtb.py +++ b/tests/system-test/7-tmq/tmqConsFromTsdb1-mutilVg-mutilCtb.py @@ -18,8 +18,8 @@ from tmqCommon import * class TDTestCase: def __init__(self): self.vgroups = 4 - self.ctbNum = 3000 - self.rowsPerTbl = 70 + self.ctbNum = 1000 + self.rowsPerTbl = 100 def init(self, conn, logSql, replicaVar=1): self.replicaVar = int(replicaVar) @@ -112,15 +112,15 @@ class TDTestCase: # init consume info, and start tmq_sim, then check consume result tdLog.info("insert consume info to consume processor") consumerId = 3 - expectrowcnt = math.ceil(paraDict["rowsPerTbl"] * paraDict["ctbNum"] / 3) + expectrowcnt = math.ceil(paraDict["rowsPerTbl"] * paraDict["ctbNum"]) topicList = topicNameList[0] ifcheckdata = 1 ifManualCommit = 1 - keyList = 'group.id:cgrp1, enable.auto.commit:true, auto.commit.interval.ms:1000, auto.offset.reset:earliest' + keyList = 'group.id:cgrp3, enable.auto.commit:true, auto.commit.interval.ms:100, auto.offset.reset:earliest' tmqCom.insertConsumerInfo(consumerId, expectrowcnt,topicList,keyList,ifcheckdata,ifManualCommit) consumerId = 4 - expectrowcnt = math.ceil(paraDict["rowsPerTbl"] * paraDict["ctbNum"] * 2/3) + expectrowcnt = math.ceil(paraDict["rowsPerTbl"] * paraDict["ctbNum"]) tmqCom.insertConsumerInfo(consumerId, expectrowcnt,topicList,keyList,ifcheckdata,ifManualCommit) tdLog.info("start consume processor 0") @@ -131,8 +131,8 @@ class TDTestCase: resultList = tmqCom.selectConsumeResult(expectRows) actConsumeTotalRows = resultList[0] + resultList[1] - if not (totalRowsInserted == actConsumeTotalRows): - tdLog.info("sum of two consume rows: %d should be equal to total inserted rows: %d"%(actConsumeTotalRows, totalRowsInserted)) + tdLog.info("sum of two consume rows: %d should be greater than or equal to total inserted rows: %d"%(actConsumeTotalRows, totalRowsInserted)) + if not (totalRowsInserted <= actConsumeTotalRows): tdLog.exit("%d tmq consume rows error!"%consumerId) time.sleep(10) @@ -188,7 +188,7 @@ class TDTestCase: topicList = topicNameList[0] ifcheckdata = 1 ifManualCommit = 1 - keyList = 'group.id:cgrp1, enable.auto.commit:true, auto.commit.interval.ms:1000, auto.offset.reset:earliest' + keyList = 'group.id:cgrp4, enable.auto.commit:true, auto.commit.interval.ms:100, auto.offset.reset:earliest' tmqCom.insertConsumerInfo(consumerId, expectrowcnt,topicList,keyList,ifcheckdata,ifManualCommit) tdLog.info("start consume processor 0") @@ -216,9 +216,9 @@ class TDTestCase: actConsumeTotalRows = resultList[0] - if not (actConsumeTotalRows > 0 and actConsumeTotalRows < totalRowsInserted): - tdLog.info("act consume rows: %d"%(actConsumeTotalRows)) - tdLog.info("and second consume rows should be between 0 and %d"%(totalRowsInserted)) + tdLog.info("act consume rows: %d"%(actConsumeTotalRows)) + tdLog.info("and second consume rows should be between 0 and %d"%(totalRowsInserted)) + if not (actConsumeTotalRows > 0 and actConsumeTotalRows <= totalRowsInserted): tdLog.exit("%d tmq consume rows error!"%consumerId) time.sleep(10) diff --git a/tests/system-test/7-tmq/tmqConsFromTsdb1-mutilVg.py b/tests/system-test/7-tmq/tmqConsFromTsdb1-mutilVg.py index da8ac6c57d..53ff020b08 100644 --- a/tests/system-test/7-tmq/tmqConsFromTsdb1-mutilVg.py +++ b/tests/system-test/7-tmq/tmqConsFromTsdb1-mutilVg.py @@ -18,7 +18,7 @@ from tmqCommon import * class TDTestCase: def __init__(self): self.vgroups = 4 - self.ctbNum = 10 + self.ctbNum = 4 self.rowsPerTbl = 10000 def init(self, conn, logSql, replicaVar=1): @@ -41,7 +41,7 @@ class TDTestCase: 'ctbStartIdx': 0, 'ctbNum': 10, 'rowsPerTbl': 10000, - 'batchNum': 10, + 'batchNum': 1000, 'startTs': 1640966400000, # 2022-01-01 00:00:00.000 'pollDelay': 3, 'showMsg': 1, @@ -112,15 +112,15 @@ class TDTestCase: # init consume info, and start tmq_sim, then check consume result tdLog.info("insert consume info to consume processor") consumerId = 3 - expectrowcnt = math.ceil(paraDict["rowsPerTbl"] * paraDict["ctbNum"] / 3) + expectrowcnt = math.ceil(paraDict["rowsPerTbl"] * paraDict["ctbNum"]) topicList = topicNameList[0] ifcheckdata = 1 ifManualCommit = 1 - keyList = 'group.id:cgrp1, enable.auto.commit:true, auto.commit.interval.ms:200, auto.offset.reset:earliest' + keyList = 'group.id:cgrp3, enable.auto.commit:true, auto.commit.interval.ms:200, auto.offset.reset:earliest' tmqCom.insertConsumerInfo(consumerId, expectrowcnt,topicList,keyList,ifcheckdata,ifManualCommit) consumerId = 4 - expectrowcnt = math.ceil(paraDict["rowsPerTbl"] * paraDict["ctbNum"] * 2/3) + expectrowcnt = math.ceil(paraDict["rowsPerTbl"] * paraDict["ctbNum"]) tmqCom.insertConsumerInfo(consumerId, expectrowcnt,topicList,keyList,ifcheckdata,ifManualCommit) tdLog.info("start consume processor 0") @@ -130,9 +130,9 @@ class TDTestCase: expectRows = 2 resultList = tmqCom.selectConsumeResult(expectRows) actConsumeTotalRows = resultList[0] + resultList[1] - - if not (totalRowsInserted == actConsumeTotalRows): - tdLog.info("sum of two consume rows: %d should be equal to total inserted rows: %d"%(actConsumeTotalRows, totalRowsInserted)) + + tdLog.info("sum of two consume rows: %d should be greater than or equal to total inserted rows: %d"%(actConsumeTotalRows, totalRowsInserted)) + if not (totalRowsInserted <= actConsumeTotalRows): tdLog.exit("%d tmq consume rows error!"%consumerId) time.sleep(10) @@ -188,7 +188,7 @@ class TDTestCase: topicList = topicNameList[0] ifcheckdata = 1 ifManualCommit = 1 - keyList = 'group.id:cgrp1, enable.auto.commit:true, auto.commit.interval.ms:200, auto.offset.reset:earliest' + keyList = 'group.id:cgrp4, enable.auto.commit:true, auto.commit.interval.ms:200, auto.offset.reset:earliest' tmqCom.insertConsumerInfo(consumerId, expectrowcnt,topicList,keyList,ifcheckdata,ifManualCommit) tdLog.info("start consume processor 0") @@ -216,7 +216,7 @@ class TDTestCase: actConsumeTotalRows = resultList[0] - if not (actConsumeTotalRows > 0 and actConsumeTotalRows < totalRowsInserted): + if not (actConsumeTotalRows > 0 and actConsumeTotalRows <= totalRowsInserted): tdLog.info("act consume rows: %d"%(actConsumeTotalRows)) tdLog.info("and second consume rows should be between 0 and %d"%(totalRowsInserted)) tdLog.exit("%d tmq consume rows error!"%consumerId) diff --git a/tests/system-test/7-tmq/tmqConsFromTsdb1.py b/tests/system-test/7-tmq/tmqConsFromTsdb1.py index b910caf420..4bb6cf463f 100644 --- a/tests/system-test/7-tmq/tmqConsFromTsdb1.py +++ b/tests/system-test/7-tmq/tmqConsFromTsdb1.py @@ -41,7 +41,7 @@ class TDTestCase: 'ctbStartIdx': 0, 'ctbNum': 10, 'rowsPerTbl': 10000, - 'batchNum': 10, + 'batchNum': 100, 'startTs': 1640966400000, # 2022-01-01 00:00:00.000 'pollDelay': 3, 'showMsg': 1, @@ -87,7 +87,7 @@ class TDTestCase: 'rowsPerTbl': 10000, 'batchNum': 10, 'startTs': 1640966400000, # 2022-01-01 00:00:00.000 - 'pollDelay': 25, + 'pollDelay': 10, 'showMsg': 1, 'showRow': 1, 'snapshot': 1} @@ -116,7 +116,7 @@ class TDTestCase: topicList = topicNameList[0] ifcheckdata = 1 ifManualCommit = 1 - keyList = 'group.id:cgrp1, enable.auto.commit:true, auto.commit.interval.ms:200, auto.offset.reset:earliest' + keyList = 'group.id:cgrp3, enable.auto.commit:true, auto.commit.interval.ms:200, auto.offset.reset:earliest' tmqCom.insertConsumerInfo(consumerId, expectrowcnt,topicList,keyList,ifcheckdata,ifManualCommit) consumerId = 4 @@ -131,8 +131,8 @@ class TDTestCase: resultList = tmqCom.selectConsumeResult(expectRows) actConsumeTotalRows = resultList[0] + resultList[1] + tdLog.info("sum of two consume rows: %d should be equal to total inserted rows: %d"%(actConsumeTotalRows, totalRowsInserted)) if not (totalRowsInserted == actConsumeTotalRows): - tdLog.info("sum of two consume rows: %d should be equal to total inserted rows: %d"%(actConsumeTotalRows, totalRowsInserted)) tdLog.exit("%d tmq consume rows error!"%consumerId) time.sleep(10) @@ -188,7 +188,7 @@ class TDTestCase: topicList = topicNameList[0] ifcheckdata = 1 ifManualCommit = 1 - keyList = 'group.id:cgrp1, enable.auto.commit:true, auto.commit.interval.ms:200, auto.offset.reset:earliest' + keyList = 'group.id:cgrp4, enable.auto.commit:true, auto.commit.interval.ms:200, auto.offset.reset:earliest' tmqCom.insertConsumerInfo(consumerId, expectrowcnt,topicList,keyList,ifcheckdata,ifManualCommit) tdLog.info("start consume processor 0") @@ -213,12 +213,11 @@ class TDTestCase: expectRows = 1 resultList = tmqCom.selectConsumeResult(expectRows) - actConsumeTotalRows = resultList[0] - if not (actConsumeTotalRows > 0 and actConsumeTotalRows < totalRowsInserted): - tdLog.info("act consume rows: %d"%(actConsumeTotalRows)) - tdLog.info("and second consume rows should be between 0 and %d"%(totalRowsInserted)) + tdLog.info("act consume rows: %d"%(actConsumeTotalRows)) + tdLog.info("and second consume rows should be between 0 and %d"%(totalRowsInserted)) + if not ((actConsumeTotalRows > 0) and (actConsumeTotalRows <= totalRowsInserted)): tdLog.exit("%d tmq consume rows error!"%consumerId) time.sleep(10) diff --git a/tools/shell/inc/shellInt.h b/tools/shell/inc/shellInt.h index 113853bd83..08d4b167ea 100644 --- a/tools/shell/inc/shellInt.h +++ b/tools/shell/inc/shellInt.h @@ -83,7 +83,7 @@ typedef struct { const char *clientVersion; char cusName[32]; char promptHeader[32]; - const char* promptContinue; + char promptContinue[32]; const char* osname; int32_t promptSize; char programVersion[256]; diff --git a/tools/shell/src/shellArguments.c b/tools/shell/src/shellArguments.c index 19275cce82..636138fac7 100644 --- a/tools/shell/src/shellArguments.c +++ b/tools/shell/src/shellArguments.c @@ -411,7 +411,9 @@ int32_t shellParseArgs(int32_t argc, char *argv[]) { "Copyright (c) 2022 by %s, all rights reserved.\r\n\r\n"; strcpy(shell.info.cusName, cusName); sprintf(shell.info.promptHeader, "%s> ", cusPrompt); - shell.info.promptContinue = TAOS_CONSOLE_PROMPT_CONTINUE; + char promptContinueFormat[32] = {0}; + sprintf(promptContinueFormat, "%%%zus> ", strlen(cusPrompt)); + sprintf(shell.info.promptContinue, promptContinueFormat, " "); shell.info.promptSize = strlen(shell.info.promptHeader); snprintf(shell.info.programVersion, sizeof(shell.info.programVersion), "version: %s compatible_version: %s\ngitinfo: %s\nbuildInfo: %s", version, compatible_version, gitinfo,