diff --git a/include/common/tmisce.h b/include/common/tmisce.h index afb33c733a..267ca814d4 100644 --- a/include/common/tmisce.h +++ b/include/common/tmisce.h @@ -29,21 +29,7 @@ typedef struct SCorEpSet { #define GET_ACTIVE_EP(_eps) (&((_eps)->eps[(_eps)->inUse])) -#define EPSET_TO_STR(_eps, tbuf) \ - do { \ - int len = snprintf((tbuf), sizeof(tbuf), "epset:{"); \ - for (int _i = 0; _i < (_eps)->numOfEps; _i++) { \ - if (_i == (_eps)->numOfEps - 1) { \ - len += \ - snprintf((tbuf) + len, sizeof(tbuf) - len, "%d. %s:%d", _i, (_eps)->eps[_i].fqdn, (_eps)->eps[_i].port); \ - } else { \ - len += \ - snprintf((tbuf) + len, sizeof(tbuf) - len, "%d. %s:%d, ", _i, (_eps)->eps[_i].fqdn, (_eps)->eps[_i].port); \ - } \ - } \ - len += snprintf((tbuf) + len, sizeof(tbuf) - len, "}, inUse:%d", (_eps)->inUse); \ - } while (0); - +int32_t epsetToStr(const SEpSet* pEpSet, char* pBuf, int32_t len); int32_t taosGetFqdnPortFromEp(const char* ep, SEp* pEp); void addEpIntoEpSet(SEpSet* pEpSet, const char* fqdn, uint16_t port); diff --git a/include/libs/stream/tstream.h b/include/libs/stream/tstream.h index 138fad0ddb..c12bb146b4 100644 --- a/include/libs/stream/tstream.h +++ b/include/libs/stream/tstream.h @@ -516,7 +516,6 @@ typedef struct SStreamMeta { TdThreadMutex backendMutex; SMetaHbInfo* pHbInfo; STaskUpdateInfo updateInfo; - SHashObj* pUpdateTaskSet; int32_t numOfStreamTasks; // this value should be increased when a new task is added into the meta int32_t numOfPausedTasks; int64_t rid; diff --git a/include/util/tunit.h b/include/util/tunit.h index de37c85929..207431fa7d 100644 --- a/include/util/tunit.h +++ b/include/util/tunit.h @@ -22,10 +22,10 @@ extern "C" { #endif -int64_t taosStrHumanToInt64(const char* str); +int32_t taosStrHumanToInt64(const char* str, int64_t* out); void taosInt64ToHumanStr(int64_t val, char* outStr); -int32_t taosStrHumanToInt32(const char* str); +int32_t taosStrHumanToInt32(const char* str, int32_t* out); void taosInt32ToHumanStr(int32_t val, char* outStr); #ifdef __cplusplus diff --git a/include/util/tutil.h b/include/util/tutil.h index de2cd205f2..54ce6fc849 100644 --- a/include/util/tutil.h +++ b/include/util/tutil.h @@ -56,6 +56,8 @@ void taosIpPort2String(uint32_t ip, uint16_t port, char *str); void *tmemmem(const char *haystack, int hlen, const char *needle, int nlen); +int32_t parseCfgReal(const char* str, double* out); + static FORCE_INLINE void taosEncryptPass(uint8_t *inBuf, size_t inLen, char *target) { T_MD5_CTX context; tMD5Init(&context); diff --git a/source/client/src/clientHb.c b/source/client/src/clientHb.c index a146712cab..b1f0ea55d8 100644 --- a/source/client/src/clientHb.c +++ b/source/client/src/clientHb.c @@ -496,6 +496,11 @@ static int32_t hbAsyncCallBack(void *param, SDataBuf *pMsg, int32_t code) { if (code != 0) { pInst->onlineDnodes = pInst->totalDnodes ? 0 : -1; tscDebug("hb rsp error %s, update server status %d/%d", tstrerror(code), pInst->onlineDnodes, pInst->totalDnodes); + taosThreadMutexUnlock(&clientHbMgr.lock); + taosMemoryFree(pMsg->pData); + taosMemoryFree(pMsg->pEpSet); + tFreeClientHbBatchRsp(&pRsp); + return -1; } if (rspNum) { diff --git a/source/common/src/tmisce.c b/source/common/src/tmisce.c index 1606b45eed..77dd8344b1 100644 --- a/source/common/src/tmisce.c +++ b/source/common/src/tmisce.c @@ -70,6 +70,7 @@ void epsetAssign(SEpSet* pDst, const SEpSet* pSrc) { tstrncpy(pDst->eps[i].fqdn, pSrc->eps[i].fqdn, tListLen(pSrc->eps[i].fqdn)); } } + void epAssign(SEp* pDst, SEp* pSrc) { if (pSrc == NULL || pDst == NULL) { return; @@ -78,6 +79,7 @@ void epAssign(SEp* pDst, SEp* pSrc) { tstrncpy(pDst->fqdn, pSrc->fqdn, tListLen(pSrc->fqdn)); pDst->port = pSrc->port; } + void epsetSort(SEpSet* pDst) { if (pDst->numOfEps <= 1) { return; @@ -127,6 +129,34 @@ SEpSet getEpSet_s(SCorEpSet* pEpSet) { return ep; } +int32_t epsetToStr(const SEpSet* pEpSet, char* pBuf, int32_t bufLen) { + int len = snprintf(pBuf, bufLen, "epset:{"); + if (len < 0) { + return -1; + } + + for (int _i = 0; (_i < pEpSet->numOfEps) && (bufLen > len); _i++) { + int32_t ret = 0; + if (_i == pEpSet->numOfEps - 1) { + ret = snprintf(pBuf + len, bufLen - len, "%d. %s:%d", _i, pEpSet->eps[_i].fqdn, pEpSet->eps[_i].port); + } else { + ret = snprintf(pBuf + len, bufLen - len, "%d. %s:%d, ", _i, pEpSet->eps[_i].fqdn, pEpSet->eps[_i].port); + } + + if (ret < 0) { + return -1; + } + + len += ret; + } + + if (len < bufLen) { + /*len += */snprintf(pBuf + len, bufLen - len, "}, inUse:%d", pEpSet->inUse); + } + + return TSDB_CODE_SUCCESS; +} + int32_t taosGenCrashJsonMsg(int signum, char** pMsg, int64_t clusterId, int64_t startTime) { SJson* pJson = tjsonCreateObject(); if (pJson == NULL) return -1; diff --git a/source/dnode/mnode/impl/src/mndMain.c b/source/dnode/mnode/impl/src/mndMain.c index 75ba0fef10..0eb2559928 100644 --- a/source/dnode/mnode/impl/src/mndMain.c +++ b/source/dnode/mnode/impl/src/mndMain.c @@ -837,7 +837,7 @@ _OVER: "msg:%p, type:%s failed to process since %s, mnode restored:%d stopped:%d, sync restored:%d " "role:%s, redirect numOfEps:%d inUse:%d, type:%s", pMsg, TMSG_INFO(pMsg->msgType), terrstr(), pMnode->restored, pMnode->stopped, state.restored, - syncStr(state.restored), epSet.numOfEps, epSet.inUse, TMSG_INFO(pMsg->msgType)); + syncStr(state.state), epSet.numOfEps, epSet.inUse, TMSG_INFO(pMsg->msgType)); if (epSet.numOfEps <= 0) return -1; diff --git a/source/dnode/mnode/impl/src/mndStream.c b/source/dnode/mnode/impl/src/mndStream.c index ff05db417e..8f9afb2adc 100644 --- a/source/dnode/mnode/impl/src/mndStream.c +++ b/source/dnode/mnode/impl/src/mndStream.c @@ -1747,7 +1747,8 @@ static SVgroupChangeInfo mndFindChangedNodeInfo(SMnode *pMnode, const SArray *pP const SEp *pPrevEp = GET_ACTIVE_EP(&pPrevEntry->epset); char buf[256] = {0}; - EPSET_TO_STR(&pCurrent->epset, buf); + epsetToStr(&pCurrent->epset, buf, tListLen(buf)); + mDebug("nodeId:%d restart/epset changed detected, old:%s:%d -> new:%s, stageUpdate:%d", pCurrent->nodeId, pPrevEp->fqdn, pPrevEp->port, buf, pPrevEntry->stageUpdated); @@ -1898,7 +1899,7 @@ static SArray *extractNodeListFromStream(SMnode *pMnode) { taosArrayPush(plist, pEntry); char buf[256] = {0}; - EPSET_TO_STR(&pEntry->epset, buf); + epsetToStr(&pEntry->epset, buf, tListLen(buf)); mDebug("extract nodeInfo from stream obj, nodeId:%d, %s", pEntry->nodeId, buf); } taosHashCleanup(pHash); diff --git a/source/dnode/mnode/impl/src/mndStreamUtil.c b/source/dnode/mnode/impl/src/mndStreamUtil.c index a124b4052c..d5bc12f9df 100644 --- a/source/dnode/mnode/impl/src/mndStreamUtil.c +++ b/source/dnode/mnode/impl/src/mndStreamUtil.c @@ -114,7 +114,7 @@ SArray *mndTakeVgroupSnapshot(SMnode *pMnode, bool *allReady) { } char buf[256] = {0}; - EPSET_TO_STR(&entry.epset, buf); + epsetToStr(&entry.epset, buf, tListLen(buf)); mDebug("take node snapshot, nodeId:%d %s", entry.nodeId, buf); taosArrayPush(pVgroupListSnapshot, &entry); @@ -133,7 +133,7 @@ SArray *mndTakeVgroupSnapshot(SMnode *pMnode, bool *allReady) { entry.nodeId = SNODE_HANDLE; char buf[256] = {0}; - EPSET_TO_STR(&entry.epset, buf); + epsetToStr(&entry.epset, buf, tListLen(buf)); mDebug("take snode snapshot, nodeId:%d %s", entry.nodeId, buf); taosArrayPush(pVgroupListSnapshot, &entry); sdbRelease(pSdb, pObj); @@ -302,7 +302,7 @@ static int32_t doSetPauseAction(SMnode *pMnode, STrans *pTrans, SStreamTask *pTa } char buf[256] = {0}; - EPSET_TO_STR(&epset, buf); + epsetToStr(&epset, buf, tListLen(buf)); mDebug("pause stream task in node:%d, epset:%s", pTask->info.nodeId, buf); code = setTransAction(pTrans, pReq, sizeof(SVPauseStreamTaskReq), TDMT_STREAM_TASK_PAUSE, &epset, 0); diff --git a/source/dnode/mnode/impl/src/mndTrans.c b/source/dnode/mnode/impl/src/mndTrans.c index 0e4f4210fb..41ff45038f 100644 --- a/source/dnode/mnode/impl/src/mndTrans.c +++ b/source/dnode/mnode/impl/src/mndTrans.c @@ -857,6 +857,58 @@ int32_t mndTransCheckConflict(SMnode *pMnode, STrans *pTrans) { return 0; } +static bool mndTransActionsOfSameType(SArray *pActions) { + int32_t size = taosArrayGetSize(pActions); + ETrnAct lastActType = TRANS_ACTION_NULL; + bool same = true; + for (int32_t i = 0; i < size; ++i) { + STransAction *pAction = taosArrayGet(pActions, i); + if (i > 0) { + if (lastActType != pAction->actionType) { + same = false; + break; + } + } + lastActType = pAction->actionType; + } + return same; +} + +static int32_t mndTransCheckParallelActions(SMnode *pMnode, STrans *pTrans) { + if (pTrans->exec == TRN_EXEC_PARALLEL) { + if (mndTransActionsOfSameType(pTrans->redoActions) == false) { + terrno = TSDB_CODE_MND_TRANS_INVALID_STAGE; + mError("trans:%d, types of parallel redo actions are not the same", pTrans->id); + return -1; + } + + if (pTrans->policy == TRN_POLICY_ROLLBACK) { + if (mndTransActionsOfSameType(pTrans->undoActions) == false) { + terrno = TSDB_CODE_MND_TRANS_INVALID_STAGE; + mError("trans:%d, types of parallel undo actions are not the same", pTrans->id); + return -1; + } + } + } + + return 0; +} + +static int32_t mndTransCheckCommitActions(SMnode *pMnode, STrans *pTrans) { + if (!pTrans->changeless && taosArrayGetSize(pTrans->commitActions) <= 0) { + terrno = TSDB_CODE_MND_TRANS_CLOG_IS_NULL; + mError("trans:%d, commit actions of non-changeless trans are empty", pTrans->id); + return -1; + } + if (mndTransActionsOfSameType(pTrans->commitActions) == false) { + terrno = TSDB_CODE_MND_TRANS_INVALID_STAGE; + mError("trans:%d, types of commit actions are not the same", pTrans->id); + return -1; + } + + return 0; +} + int32_t mndTransPrepare(SMnode *pMnode, STrans *pTrans) { if (pTrans == NULL) return -1; @@ -864,9 +916,11 @@ int32_t mndTransPrepare(SMnode *pMnode, STrans *pTrans) { return -1; } - if (!pTrans->changeless && taosArrayGetSize(pTrans->commitActions) <= 0) { - terrno = TSDB_CODE_MND_TRANS_CLOG_IS_NULL; - mError("trans:%d, failed to prepare since %s", pTrans->id, terrstr()); + if (mndTransCheckParallelActions(pMnode, pTrans) != 0) { + return -1; + } + + if (mndTransCheckCommitActions(pMnode, pTrans) != 0) { return -1; } @@ -1283,24 +1337,25 @@ static int32_t mndTransExecuteActions(SMnode *pMnode, STrans *pTrans, SArray *pA static int32_t mndTransExecuteRedoActions(SMnode *pMnode, STrans *pTrans, bool topHalf) { int32_t code = mndTransExecuteActions(pMnode, pTrans, pTrans->redoActions, topHalf); - if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS) { - mError("failed to execute redoActions since:%s, code:0x%x", terrstr(), terrno); + if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS && code != TSDB_CODE_MND_TRANS_CTX_SWITCH) { + mError("trans:%d, failed to execute redoActions since:%s, code:0x%x, topHalf:%d", pTrans->id, terrstr(), terrno, + topHalf); } return code; } static int32_t mndTransExecuteUndoActions(SMnode *pMnode, STrans *pTrans, bool topHalf) { int32_t code = mndTransExecuteActions(pMnode, pTrans, pTrans->undoActions, topHalf); - if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS) { - mError("failed to execute undoActions since %s", terrstr()); + if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS && code != TSDB_CODE_MND_TRANS_CTX_SWITCH) { + mError("trans:%d, failed to execute undoActions since %s. topHalf:%d", pTrans->id, terrstr(), topHalf); } return code; } static int32_t mndTransExecuteCommitActions(SMnode *pMnode, STrans *pTrans, bool topHalf) { int32_t code = mndTransExecuteActions(pMnode, pTrans, pTrans->commitActions, topHalf); - if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS) { - mError("failed to execute commitActions since %s", terrstr()); + if (code != 0 && code != TSDB_CODE_ACTION_IN_PROGRESS && code != TSDB_CODE_MND_TRANS_CTX_SWITCH) { + mError("trans:%d, failed to execute commitActions since %s. topHalf:%d", pTrans->id, terrstr(), topHalf); } return code; } diff --git a/source/dnode/snode/inc/sndInt.h b/source/dnode/snode/inc/sndInt.h index 68f7f756d5..024c3c6bae 100644 --- a/source/dnode/snode/inc/sndInt.h +++ b/source/dnode/snode/inc/sndInt.h @@ -30,11 +30,11 @@ extern "C" { #endif -typedef struct SSnode { +struct SSnode { char* path; SStreamMeta* pMeta; SMsgCb msgCb; -} SSnode; +}; #if 0 typedef struct { diff --git a/source/dnode/vnode/src/tq/tq.c b/source/dnode/vnode/src/tq/tq.c index ccfc8cc7c9..7886967be0 100644 --- a/source/dnode/vnode/src/tq/tq.c +++ b/source/dnode/vnode/src/tq/tq.c @@ -923,13 +923,14 @@ int32_t handleStep2Async(SStreamTask* pStreamTask, void* param) { STaskId hId = pStreamTask->hTaskInfo.id; SStreamTask* pTask = streamMetaAcquireTask(pStreamTask->pMeta, hId.streamId, hId.taskId); if (pTask == NULL) { - // todo handle error + tqWarn("s-task:0x%x failed to acquired it to exec step 2, scan wal quit", (int32_t) hId.taskId); + return TSDB_CODE_SUCCESS; } doStartFillhistoryStep2(pTask, pStreamTask, pTq); streamMetaReleaseTask(pMeta, pTask); - return 0; + return TSDB_CODE_SUCCESS; } // this function should be executed by only one thread, so we set an sentinel to protect this function diff --git a/source/dnode/vnode/src/tq/tqScan.c b/source/dnode/vnode/src/tq/tqScan.c index 9940164ee2..cc9e8c0136 100644 --- a/source/dnode/vnode/src/tq/tqScan.c +++ b/source/dnode/vnode/src/tq/tqScan.c @@ -311,7 +311,7 @@ int32_t tqTaosxScanLog(STQ* pTq, STqHandle* pHandle, SPackedData submit, STaosxR SSDataBlock* pBlock = taosArrayGet(pBlocks, i); tqAddBlockDataToRsp(pBlock, (SMqDataRsp*)pRsp, taosArrayGetSize(pBlock->pDataBlock), pTq->pVnode->config.tsdbCfg.precision); - totalRows += pBlock->info.rows; + *totalRows += pBlock->info.rows; blockDataFreeRes(pBlock); SSchemaWrapper* pSW = taosArrayGetP(pSchemas, i); taosArrayPush(pRsp->blockSchema, &pSW); diff --git a/source/dnode/vnode/src/tq/tqUtil.c b/source/dnode/vnode/src/tq/tqUtil.c index 6029575e2c..d8440e996f 100644 --- a/source/dnode/vnode/src/tq/tqUtil.c +++ b/source/dnode/vnode/src/tq/tqUtil.c @@ -501,6 +501,10 @@ int32_t tqGetStreamExecInfo(SVnode* pVnode, int64_t streamId, int64_t* pDelay, b } // extract the required source task for a given stream, identified by streamId + streamMetaRLock(pMeta); + + numOfTasks = taosArrayGetSize(pMeta->pTaskList); + for (int32_t i = 0; i < numOfTasks; ++i) { STaskId* pId = taosArrayGet(pMeta->pTaskList, i); if (pId->streamId != streamId) { @@ -552,5 +556,7 @@ int32_t tqGetStreamExecInfo(SVnode* pVnode, int64_t streamId, int64_t* pDelay, b walCloseReader(pReader); } + streamMetaRUnLock(pMeta); + return TSDB_CODE_SUCCESS; } diff --git a/source/dnode/vnode/src/tqCommon/tqCommon.c b/source/dnode/vnode/src/tqCommon/tqCommon.c index 0f7f74f78b..2fa9f9a9ff 100644 --- a/source/dnode/vnode/src/tqCommon/tqCommon.c +++ b/source/dnode/vnode/src/tqCommon/tqCommon.c @@ -807,6 +807,7 @@ int32_t tqStreamTaskProcessRunReq(SStreamMeta* pMeta, SRpcMsg* pMsg, bool isLead int32_t tqStartTaskCompleteCallback(SStreamMeta* pMeta) { STaskStartInfo* pStartInfo = &pMeta->startInfo; int32_t vgId = pMeta->vgId; + bool scanWal = false; streamMetaWLock(pMeta); if (pStartInfo->taskStarting == 1) { @@ -831,10 +832,18 @@ int32_t tqStartTaskCompleteCallback(SStreamMeta* pMeta) { pStartInfo->restartCount = 0; tqDebug("vgId:%d all tasks are ready, reset restartCounter 0, not restart tasks", vgId); } + + scanWal = true; } } streamMetaWUnLock(pMeta); + + if (scanWal && (vgId != SNODE_HANDLE)) { + tqDebug("vgId:%d start scan wal for executing tasks", vgId); + tqScanWalAsync(pMeta->ahandle, true); + } + return TSDB_CODE_SUCCESS; } diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c index add2955a2b..e217977b8b 100644 --- a/source/libs/executor/src/executil.c +++ b/source/libs/executor/src/executil.c @@ -2136,6 +2136,9 @@ int32_t buildGroupIdMapForAllTables(STableListInfo* pTableListInfo, SReadHandle* } pTableListInfo->oneTableForEachGroup = groupByTbname; + if (numOfTables == 1 && pTableListInfo->idInfo.tableType == TSDB_CHILD_TABLE) { + pTableListInfo->oneTableForEachGroup = true; + } if (groupSort && groupByTbname) { taosArraySort(pTableListInfo->pTableList, orderbyGroupIdComparFn); diff --git a/source/libs/executor/src/scanoperator.c b/source/libs/executor/src/scanoperator.c index a6613e589a..64806a1c72 100644 --- a/source/libs/executor/src/scanoperator.c +++ b/source/libs/executor/src/scanoperator.c @@ -889,14 +889,15 @@ static SSDataBlock* doGroupedTableScan(SOperatorInfo* pOperator) { if (pTableScanInfo->countState < TABLE_COUNT_STATE_END) { STableListInfo* pTableListInfo = pTableScanInfo->base.pTableListInfo; - if (pTableListInfo->oneTableForEachGroup || pTableListInfo->groupOffset) { // group by tbname, group by tag + sort + if (pTableListInfo->oneTableForEachGroup || pTableListInfo->groupOffset) { // group by tbname, group by tag + sort if (pTableScanInfo->countState < TABLE_COUNT_STATE_PROCESSED) { pTableScanInfo->countState = TABLE_COUNT_STATE_PROCESSED; STableKeyInfo* pStart = (STableKeyInfo*)tableListGetInfo(pTableScanInfo->base.pTableListInfo, pTableScanInfo->tableStartIndex); + if (NULL == pStart) return NULL; return getBlockForEmptyTable(pOperator, pStart); } - } else { // group by tag + no sort + } else { // group by tag + no sort int32_t numOfTables = tableListGetSize(pTableListInfo); if (pTableScanInfo->tableEndIndex + 1 >= numOfTables) { // get empty group, mark processed & rm from hash diff --git a/source/libs/function/src/builtins.c b/source/libs/function/src/builtins.c index b4af77fafc..d690f1fa1c 100644 --- a/source/libs/function/src/builtins.c +++ b/source/libs/function/src/builtins.c @@ -2017,9 +2017,17 @@ static int32_t translateCast(SFunctionNode* pFunc, char* pErrBuf, int32_t len) { if (IS_STR_DATA_TYPE(para2Type)) { para2Bytes -= VARSTR_HEADER_SIZE; } - if (para2Bytes <= 0 || para2Bytes > 4096) { // cast dst var type length limits to 4096 bytes - return buildFuncErrMsg(pErrBuf, len, TSDB_CODE_FUNC_FUNTION_ERROR, - "CAST function converted length should be in range (0, 4096] bytes"); + if (para2Bytes <= 0 || + para2Bytes > TSDB_MAX_BINARY_LEN - VARSTR_HEADER_SIZE) { // cast dst var type length limits to 4096 bytes + if (TSDB_DATA_TYPE_NCHAR == para2Type) { + return buildFuncErrMsg(pErrBuf, len, TSDB_CODE_FUNC_FUNTION_ERROR, + "CAST function converted length should be in range (0, %d] NCHARS", + (TSDB_MAX_BINARY_LEN - VARSTR_HEADER_SIZE)/TSDB_NCHAR_SIZE); + } else { + return buildFuncErrMsg(pErrBuf, len, TSDB_CODE_FUNC_FUNTION_ERROR, + "CAST function converted length should be in range (0, %d] bytes", + TSDB_MAX_BINARY_LEN - VARSTR_HEADER_SIZE); + } } // add database precision as param diff --git a/source/libs/function/src/builtinsimpl.c b/source/libs/function/src/builtinsimpl.c index 5ab6d5e075..b709abc30b 100644 --- a/source/libs/function/src/builtinsimpl.c +++ b/source/libs/function/src/builtinsimpl.c @@ -3201,15 +3201,15 @@ static int32_t doSaveTupleData(SSerializeDataHandle* pHandle, const void* pBuf, int32_t saveTupleData(SqlFunctionCtx* pCtx, int32_t rowIndex, const SSDataBlock* pSrcBlock, STuplePos* pPos) { prepareBuf(pCtx); - SWinKey key; + SWinKey key = {0}; if (pCtx->saveHandle.pBuf == NULL) { - SColumnInfoData* pColInfo = taosArrayGet(pSrcBlock->pDataBlock, 0); - if (pColInfo->info.type == TSDB_DATA_TYPE_TIMESTAMP) { - int64_t skey = *(int64_t*)colDataGetData(pColInfo, rowIndex); - - key.groupId = pSrcBlock->info.id.groupId; - key.ts = skey; + SColumnInfoData* pColInfo = pCtx->input.pPTS; + if (!pColInfo || pColInfo->info.type != TSDB_DATA_TYPE_TIMESTAMP) { + pColInfo = taosArrayGet(pSrcBlock->pDataBlock, 0); } + ASSERT(pColInfo->info.type == TSDB_DATA_TYPE_TIMESTAMP); + key.groupId = pSrcBlock->info.id.groupId; + key.ts = *(int64_t*)colDataGetData(pColInfo, rowIndex);; } char* buf = serializeTupleData(pSrcBlock, rowIndex, &pCtx->subsidiaries, pCtx->subsidiaries.buf); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 1a2d05bb68..9a0e800ef9 100755 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -420,6 +420,13 @@ type_name(A) ::= DECIMAL. type_name(A) ::= DECIMAL NK_LP NK_INTEGER NK_RP. { A = createDataType(TSDB_DATA_TYPE_DECIMAL); } type_name(A) ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP. { A = createDataType(TSDB_DATA_TYPE_DECIMAL); } +%type type_name_default_len { SDataType } +%destructor type_name_default_len { } +type_name_default_len(A) ::= BINARY. { A = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); } +type_name_default_len(A) ::= NCHAR. { A = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); } +type_name_default_len(A) ::= VARCHAR. { A = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); } +type_name_default_len(A) ::= VARBINARY. { A = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); } + %type tags_def_opt { SNodeList* } %destructor tags_def_opt { nodesDestroyList($$); } tags_def_opt(A) ::= . { A = NULL; } @@ -1118,6 +1125,9 @@ function_expression(A) ::= function_name(B) NK_LP expression_list(C) NK_RP(D). function_expression(A) ::= star_func(B) NK_LP star_func_para_list(C) NK_RP(D). { A = createRawExprNodeExt(pCxt, &B, &D, createFunctionNode(pCxt, &B, C)); } function_expression(A) ::= CAST(B) NK_LP expr_or_subquery(C) AS type_name(D) NK_RP(E). { A = createRawExprNodeExt(pCxt, &B, &E, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, C), D)); } +function_expression(A) ::= + CAST(B) NK_LP expr_or_subquery(C) AS type_name_default_len(D) NK_RP(E). { A = createRawExprNodeExt(pCxt, &B, &E, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, C), D)); } + function_expression(A) ::= literal_func(B). { A = B; } literal_func(A) ::= noarg_func(B) NK_LP NK_RP(C). { A = createRawExprNodeExt(pCxt, &B, &C, createFunctionNode(pCxt, &B, NULL)); } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index e579594e55..dd65e3eb7f 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1607,7 +1607,10 @@ SDataType createDataType(uint8_t type) { } SDataType createVarLenDataType(uint8_t type, const SToken* pLen) { - SDataType dt = {.type = type, .precision = 0, .scale = 0, .bytes = taosStr2Int32(pLen->z, NULL, 10)}; + int32_t len = TSDB_MAX_BINARY_LEN - VARSTR_HEADER_SIZE; + if (type == TSDB_DATA_TYPE_NCHAR) len /= TSDB_NCHAR_SIZE; + if(pLen) len = taosStr2Int32(pLen->z, NULL, 10); + SDataType dt = {.type = type, .precision = 0, .scale = 0, .bytes = len}; return dt; } diff --git a/source/libs/parser/src/parInsertSql.c b/source/libs/parser/src/parInsertSql.c index 9a7d0f4839..afdd6089d2 100644 --- a/source/libs/parser/src/parInsertSql.c +++ b/source/libs/parser/src/parInsertSql.c @@ -1572,11 +1572,13 @@ static int32_t parseValueTokenImpl(SInsertParseContext* pCxt, const char** pSql, case TSDB_DATA_TYPE_NCHAR: { // if the converted output len is over than pColumnModel->bytes, return error: 'Argument list too long' int32_t len = 0; - char* pUcs4 = taosMemoryCalloc(1, pSchema->bytes - VARSTR_HEADER_SIZE); + int64_t realLen = pToken->n << 2; + if (realLen > pSchema->bytes - VARSTR_HEADER_SIZE) realLen = pSchema->bytes - VARSTR_HEADER_SIZE; + char* pUcs4 = taosMemoryMalloc(realLen); if (NULL == pUcs4) { return TSDB_CODE_OUT_OF_MEMORY; } - if (!taosMbsToUcs4(pToken->z, pToken->n, (TdUcs4*)pUcs4, pSchema->bytes - VARSTR_HEADER_SIZE, &len)) { + if (!taosMbsToUcs4(pToken->z, pToken->n, (TdUcs4*)pUcs4, realLen, &len)) { taosMemoryFree(pUcs4); if (errno == E2BIG) { return generateSyntaxErrMsg(&pCxt->msg, TSDB_CODE_PAR_VALUE_TOO_LONG, pSchema->name); diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 8aa9f32c79..237deb3740 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2111,7 +2111,6 @@ static int32_t translateMultiResFunc(STranslateContext* pCxt, SFunctionNode* pFu } if (tsKeepColumnName && 1 == LIST_LENGTH(pFunc->pParameterList) && !pFunc->node.asAlias && !pFunc->node.asParam) { strcpy(pFunc->node.userAlias, ((SExprNode*)nodesListGetNode(pFunc->pParameterList, 0))->userAlias); - strcpy(pFunc->node.aliasName, pFunc->node.userAlias); } return TSDB_CODE_SUCCESS; } @@ -2703,6 +2702,29 @@ static EDealRes rewriteExprToGroupKeyFunc(STranslateContext* pCxt, SNode** pNode return (TSDB_CODE_SUCCESS == pCxt->errCode ? DEAL_RES_IGNORE_CHILD : DEAL_RES_ERROR); } +static bool isTbnameFuction(SNode* pNode) { + return QUERY_NODE_FUNCTION == nodeType(pNode) && FUNCTION_TYPE_TBNAME == ((SFunctionNode*)pNode)->funcType; +} + +static bool hasTbnameFunction(SNodeList* pPartitionByList) { + SNode* pPartKey = NULL; + FOREACH(pPartKey, pPartitionByList) { + if (isTbnameFuction(pPartKey)) { + return true; + } + } + return false; +} + +static bool fromSubtable(SNode* table) { + if (NULL == table) return false; + if (table->type == QUERY_NODE_REAL_TABLE && ((SRealTableNode*)table)->pMeta && + ((SRealTableNode*)table)->pMeta->tableType == TSDB_CHILD_TABLE) { + return true; + } + return false; +} + static EDealRes doCheckExprForGroupBy(SNode** pNode, void* pContext) { STranslateContext* pCxt = (STranslateContext*)pContext; SSelectStmt* pSelect = (SSelectStmt*)pCxt->pCurrStmt; @@ -2714,15 +2736,25 @@ static EDealRes doCheckExprForGroupBy(SNode** pNode, void* pContext) { } SNode* pGroupNode = NULL; FOREACH(pGroupNode, getGroupByList(pCxt)) { - if (nodesEqualNode(getGroupByNode(pGroupNode), *pNode)) { + SNode* pActualNode = getGroupByNode(pGroupNode); + if (nodesEqualNode(pActualNode, *pNode)) { return DEAL_RES_IGNORE_CHILD; } + if (isTbnameFuction(pActualNode) && QUERY_NODE_COLUMN == nodeType(*pNode) && + ((SColumnNode*)*pNode)->colType == COLUMN_TYPE_TAG) { + return rewriteExprToGroupKeyFunc(pCxt, pNode); + } } SNode* pPartKey = NULL; + bool partionByTbname = hasTbnameFunction(pSelect->pPartitionByList); FOREACH(pPartKey, pSelect->pPartitionByList) { if (nodesEqualNode(pPartKey, *pNode)) { return rewriteExprToGroupKeyFunc(pCxt, pNode); } + if ((partionByTbname) && QUERY_NODE_COLUMN == nodeType(*pNode) && + ((SColumnNode*)*pNode)->colType == COLUMN_TYPE_TAG) { + return rewriteExprToGroupKeyFunc(pCxt, pNode); + } } if (NULL != pSelect->pWindow && QUERY_NODE_STATE_WINDOW == nodeType(pSelect->pWindow)) { if (nodesEqualNode(((SStateWindowNode*)pSelect->pWindow)->pExpr, *pNode)) { @@ -2786,11 +2818,19 @@ static EDealRes doCheckAggColCoexist(SNode** pNode, void* pContext) { return DEAL_RES_IGNORE_CHILD; } SNode* pPartKey = NULL; + bool partionByTbname = false; + if (fromSubtable(((SSelectStmt*)pCxt->pTranslateCxt->pCurrStmt)->pFromTable) || + hasTbnameFunction(((SSelectStmt*)pCxt->pTranslateCxt->pCurrStmt)->pPartitionByList)) { + partionByTbname = true; + } FOREACH(pPartKey, ((SSelectStmt*)pCxt->pTranslateCxt->pCurrStmt)->pPartitionByList) { if (nodesEqualNode(pPartKey, *pNode)) { return rewriteExprToGroupKeyFunc(pCxt->pTranslateCxt, pNode); } } + if (partionByTbname && QUERY_NODE_COLUMN == nodeType(*pNode) && ((SColumnNode*)*pNode)->colType == COLUMN_TYPE_TAG) { + return rewriteExprToGroupKeyFunc(pCxt->pTranslateCxt, pNode); + } if (isScanPseudoColumnFunc(*pNode) || QUERY_NODE_COLUMN == nodeType(*pNode)) { pCxt->existCol = true; } @@ -3961,22 +4001,12 @@ static int32_t checkStateExpr(STranslateContext* pCxt, SNode* pNode) { return TSDB_CODE_SUCCESS; } -static bool hasPartitionByTbname(SNodeList* pPartitionByList) { - SNode* pPartKey = NULL; - FOREACH(pPartKey, pPartitionByList) { - if (QUERY_NODE_FUNCTION == nodeType(pPartKey) && FUNCTION_TYPE_TBNAME == ((SFunctionNode*)pPartKey)->funcType) { - return true; - } - } - return false; -} - static int32_t checkStateWindowForStream(STranslateContext* pCxt, SSelectStmt* pSelect) { if (!pCxt->createStream) { return TSDB_CODE_SUCCESS; } if (TSDB_SUPER_TABLE == ((SRealTableNode*)pSelect->pFromTable)->pMeta->tableType && - !hasPartitionByTbname(pSelect->pPartitionByList)) { + !hasTbnameFunction(pSelect->pPartitionByList)) { return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_STREAM_QUERY, "Unsupported stream query"); } return TSDB_CODE_SUCCESS; @@ -7612,12 +7642,12 @@ static int32_t translateKillTransaction(STranslateContext* pCxt, SKillStmt* pStm static bool crossTableWithoutAggOper(SSelectStmt* pSelect) { return NULL == pSelect->pWindow && !pSelect->hasAggFuncs && !pSelect->hasIndefiniteRowsFunc && !pSelect->hasInterpFunc && TSDB_SUPER_TABLE == ((SRealTableNode*)pSelect->pFromTable)->pMeta->tableType && - !hasPartitionByTbname(pSelect->pPartitionByList); + !hasTbnameFunction(pSelect->pPartitionByList); } static bool crossTableWithUdaf(SSelectStmt* pSelect) { return pSelect->hasUdaf && TSDB_SUPER_TABLE == ((SRealTableNode*)pSelect->pFromTable)->pMeta->tableType && - !hasPartitionByTbname(pSelect->pPartitionByList); + !hasTbnameFunction(pSelect->pPartitionByList); } static int32_t checkCreateStream(STranslateContext* pCxt, SCreateStreamStmt* pStmt) { @@ -7875,7 +7905,7 @@ static int32_t checkStreamQuery(STranslateContext* pCxt, SCreateStreamStmt* pStm SSelectStmt* pSelect = (SSelectStmt*)pStmt->pQuery; if ( (SRealTableNode*)pSelect->pFromTable && ((SRealTableNode*)pSelect->pFromTable)->pMeta && TSDB_SUPER_TABLE == ((SRealTableNode*)pSelect->pFromTable)->pMeta->tableType - && !hasPartitionByTbname(pSelect->pPartitionByList) + && !hasTbnameFunction(pSelect->pPartitionByList) && pSelect->pWindow != NULL && pSelect->pWindow->type == QUERY_NODE_EVENT_WINDOW) { return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_STREAM_QUERY, "Event window for stream on super table must patitioned by table name"); @@ -7903,7 +7933,7 @@ static int32_t checkStreamQuery(STranslateContext* pCxt, SCreateStreamStmt* pStm if (pSelect->pWindow != NULL && pSelect->pWindow->type == QUERY_NODE_COUNT_WINDOW) { if ( (SRealTableNode*)pSelect->pFromTable && ((SRealTableNode*)pSelect->pFromTable)->pMeta && TSDB_SUPER_TABLE == ((SRealTableNode*)pSelect->pFromTable)->pMeta->tableType - && !hasPartitionByTbname(pSelect->pPartitionByList) ) { + && !hasTbnameFunction(pSelect->pPartitionByList) ) { return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_STREAM_QUERY, "Count window for stream on super table must patitioned by table name"); } diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 2b50125382..9dc9477d8e 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -104,29 +104,29 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 520 +#define YYNOCODE 521 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - int32_t yy20; - SNodeList* yy184; - ENullOrder yy217; - EOperatorType yy220; - SToken yy369; - EFillMode yy374; - bool yy377; - SNode* yy392; - SShowTablesOption yy397; - EOrder yy578; - int8_t yy743; - SAlterOption yy845; - EShowKind yy849; - SDataType yy864; - int64_t yy909; - EJoinType yy932; - STokenPair yy937; + SToken yy213; + EShowKind yy217; + STokenPair yy285; + EJoinType yy310; + int32_t yy316; + int64_t yy337; + ENullOrder yy371; + int8_t yy379; + EOperatorType yy484; + SAlterOption yy549; + SNode* yy664; + EOrder yy798; + bool yy885; + SDataType yy892; + SShowTablesOption yy943; + EFillMode yy992; + SNodeList* yy1006; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -142,18 +142,18 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 895 -#define YYNRULE 695 -#define YYNRULE_WITH_ACTION 695 +#define YYNSTATE 900 +#define YYNRULE 700 +#define YYNRULE_WITH_ACTION 700 #define YYNTOKEN 357 -#define YY_MAX_SHIFT 894 -#define YY_MIN_SHIFTREDUCE 1329 -#define YY_MAX_SHIFTREDUCE 2023 -#define YY_ERROR_ACTION 2024 -#define YY_ACCEPT_ACTION 2025 -#define YY_NO_ACTION 2026 -#define YY_MIN_REDUCE 2027 -#define YY_MAX_REDUCE 2721 +#define YY_MAX_SHIFT 899 +#define YY_MIN_SHIFTREDUCE 1335 +#define YY_MAX_SHIFTREDUCE 2034 +#define YY_ERROR_ACTION 2035 +#define YY_ACCEPT_ACTION 2036 +#define YY_NO_ACTION 2037 +#define YY_MIN_REDUCE 2038 +#define YY_MAX_REDUCE 2737 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -220,651 +220,678 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (3068) +#define YY_ACTTAB_COUNT (3332) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 605, 37, 310, 606, 2070, 197, 613, 793, 2220, 606, - /* 10 */ 2070, 2209, 47, 45, 1945, 2496, 504, 2260, 610, 33, - /* 20 */ 439, 503, 1785, 2028, 607, 40, 39, 138, 511, 46, - /* 30 */ 44, 43, 42, 41, 648, 1871, 2114, 1783, 743, 2500, - /* 40 */ 622, 2692, 793, 2220, 128, 2520, 2273, 127, 126, 125, - /* 50 */ 124, 123, 122, 121, 120, 119, 755, 147, 758, 742, - /* 60 */ 204, 762, 138, 2360, 2693, 744, 1866, 714, 2273, 653, - /* 70 */ 2692, 737, 19, 572, 570, 408, 390, 750, 442, 1791, - /* 80 */ 218, 2357, 780, 2271, 2502, 2505, 2538, 460, 2698, 204, - /* 90 */ 2266, 2268, 738, 2693, 744, 797, 623, 2353, 2486, 2538, - /* 100 */ 775, 46, 44, 43, 42, 41, 891, 2050, 286, 15, - /* 110 */ 864, 863, 862, 861, 467, 792, 860, 859, 152, 854, - /* 120 */ 853, 852, 851, 850, 849, 848, 151, 842, 841, 840, - /* 130 */ 466, 465, 837, 836, 835, 184, 183, 834, 833, 107, - /* 140 */ 2519, 2479, 1810, 2557, 456, 1873, 1874, 115, 2521, 779, - /* 150 */ 2523, 2524, 774, 101, 797, 743, 1810, 96, 2692, 187, - /* 160 */ 2486, 2611, 736, 458, 2213, 435, 2607, 62, 302, 2619, - /* 170 */ 754, 169, 139, 753, 412, 2692, 742, 204, 425, 2222, - /* 180 */ 206, 2693, 744, 2215, 1845, 1855, 2271, 1811, 2641, 185, - /* 190 */ 2049, 1872, 1875, 742, 204, 2496, 445, 686, 2693, 744, - /* 200 */ 793, 2220, 1811, 1813, 50, 274, 1786, 797, 1784, 273, - /* 210 */ 733, 2360, 684, 2341, 682, 271, 270, 40, 39, 2500, - /* 220 */ 209, 46, 44, 43, 42, 41, 2267, 2268, 128, 2358, - /* 230 */ 780, 127, 126, 125, 124, 123, 122, 121, 120, 119, - /* 240 */ 1789, 1790, 1842, 2486, 1844, 1847, 1848, 1849, 1850, 1851, - /* 250 */ 1852, 1853, 1854, 771, 795, 794, 1865, 1867, 1868, 1869, - /* 260 */ 1870, 2, 47, 45, 2502, 2504, 436, 388, 2027, 1808, - /* 270 */ 439, 844, 1785, 314, 315, 797, 555, 2520, 313, 575, - /* 280 */ 99, 400, 792, 397, 574, 1871, 423, 1783, 688, 2196, - /* 290 */ 773, 1369, 137, 136, 135, 134, 133, 132, 131, 130, - /* 300 */ 129, 534, 792, 576, 739, 734, 727, 723, 389, 536, - /* 310 */ 1376, 1978, 1571, 1572, 1842, 443, 1866, 174, 2538, 514, - /* 320 */ 1644, 1645, 19, 172, 1536, 2158, 1900, 1664, 1665, 1791, - /* 330 */ 2486, 2222, 775, 1371, 1374, 1375, 306, 846, 1527, 822, - /* 340 */ 821, 820, 1531, 819, 1533, 1534, 818, 815, 751, 1542, - /* 350 */ 812, 1544, 1545, 809, 806, 803, 891, 411, 488, 15, - /* 360 */ 832, 730, 729, 1976, 1977, 1979, 1980, 1981, 522, 304, - /* 370 */ 698, 50, 2519, 1663, 1666, 2557, 1396, 1902, 1395, 380, - /* 380 */ 2521, 779, 2523, 2524, 774, 772, 797, 763, 2576, 2197, - /* 390 */ 62, 1479, 1901, 143, 1949, 1873, 1874, 2211, 2347, 2326, - /* 400 */ 1810, 563, 562, 561, 560, 559, 554, 553, 552, 551, - /* 410 */ 394, 175, 1397, 2039, 541, 540, 539, 538, 537, 531, - /* 420 */ 530, 529, 51, 524, 523, 409, 2309, 2626, 224, 515, - /* 430 */ 1632, 1633, 713, 1481, 1845, 1855, 1651, 464, 463, 2292, - /* 440 */ 2697, 1872, 1875, 40, 39, 615, 2399, 46, 44, 43, - /* 450 */ 42, 41, 445, 2623, 1814, 1814, 1786, 1813, 1784, 34, - /* 460 */ 40, 39, 1792, 797, 46, 44, 43, 42, 41, 1907, - /* 470 */ 91, 755, 147, 90, 36, 437, 1895, 1896, 1897, 1898, - /* 480 */ 1899, 1903, 1904, 1905, 1906, 29, 502, 697, 501, 492, - /* 490 */ 1789, 1790, 1842, 2626, 1844, 1847, 1848, 1849, 1850, 1851, - /* 500 */ 1852, 1853, 1854, 771, 795, 794, 1865, 1867, 1868, 1869, - /* 510 */ 1870, 2, 12, 47, 45, 566, 494, 490, 500, 2622, - /* 520 */ 173, 439, 2520, 1785, 2273, 364, 2048, 830, 162, 161, - /* 530 */ 827, 826, 825, 159, 2697, 776, 1871, 2692, 1783, 788, - /* 540 */ 306, 89, 362, 75, 40, 39, 74, 2013, 46, 44, - /* 550 */ 43, 42, 41, 2520, 621, 1810, 2696, 391, 66, 306, - /* 560 */ 2693, 2695, 1990, 2538, 1846, 625, 758, 1866, 60, 237, - /* 570 */ 587, 585, 582, 19, 2273, 2486, 711, 775, 229, 2486, - /* 580 */ 1791, 424, 757, 202, 2619, 2620, 832, 145, 2624, 2271, - /* 590 */ 548, 306, 40, 39, 2538, 547, 46, 44, 43, 42, - /* 600 */ 41, 550, 549, 546, 565, 228, 2486, 891, 775, 2480, - /* 610 */ 15, 62, 1881, 2697, 755, 147, 2692, 2519, 1810, 2626, - /* 620 */ 2557, 200, 1843, 304, 115, 2521, 779, 2523, 2524, 774, - /* 630 */ 12, 797, 10, 1795, 149, 2696, 156, 2582, 2611, 2693, - /* 640 */ 2694, 602, 435, 2607, 62, 2621, 1873, 1874, 2519, 63, - /* 650 */ 600, 2557, 695, 596, 592, 115, 2521, 779, 2523, 2524, - /* 660 */ 774, 2195, 797, 62, 445, 847, 239, 187, 2181, 2611, - /* 670 */ 608, 96, 2078, 435, 2607, 797, 1815, 1815, 793, 2220, - /* 680 */ 2047, 755, 147, 40, 39, 1845, 1855, 46, 44, 43, - /* 690 */ 42, 41, 1872, 1875, 1989, 458, 2642, 2216, 55, 698, - /* 700 */ 85, 84, 507, 172, 764, 217, 2583, 1786, 241, 1784, - /* 710 */ 35, 2222, 608, 766, 2078, 2583, 40, 39, 499, 497, - /* 720 */ 46, 44, 43, 42, 41, 2046, 203, 2619, 2620, 387, - /* 730 */ 145, 2624, 486, 2486, 2020, 483, 479, 475, 472, 500, - /* 740 */ 1814, 1789, 1790, 1842, 1376, 1844, 1847, 1848, 1849, 1850, - /* 750 */ 1851, 1852, 1853, 1854, 771, 795, 794, 1865, 1867, 1868, - /* 760 */ 1869, 1870, 2, 47, 45, 1876, 2520, 185, 1374, 1375, - /* 770 */ 2408, 439, 1970, 1785, 700, 2399, 451, 2273, 2486, 776, - /* 780 */ 306, 2080, 1846, 2045, 434, 1961, 1871, 1971, 1783, 410, - /* 790 */ 1942, 2340, 2271, 205, 2619, 2620, 2520, 145, 2624, 830, - /* 800 */ 162, 161, 827, 826, 825, 159, 652, 2538, 461, 776, - /* 810 */ 651, 2649, 172, 306, 520, 2336, 172, 1866, 454, 2486, - /* 820 */ 2223, 775, 793, 2220, 2222, 276, 668, 667, 666, 1969, - /* 830 */ 1791, 747, 306, 658, 144, 662, 2486, 2538, 12, 661, - /* 840 */ 1843, 2019, 508, 275, 660, 665, 418, 417, 2696, 2486, - /* 850 */ 659, 775, 2273, 655, 654, 526, 2336, 891, 793, 2220, - /* 860 */ 48, 2519, 148, 220, 2557, 2582, 2520, 2272, 115, 2521, - /* 870 */ 779, 2523, 2524, 774, 1785, 797, 3, 675, 509, 776, - /* 880 */ 2712, 2662, 2611, 43, 42, 41, 435, 2607, 53, 1783, - /* 890 */ 824, 2519, 687, 2264, 2557, 823, 1873, 1874, 115, 2521, - /* 900 */ 779, 2523, 2524, 774, 222, 797, 195, 2538, 272, 1791, - /* 910 */ 2712, 2273, 2611, 2273, 793, 2220, 435, 2607, 444, 2486, - /* 920 */ 459, 775, 2430, 1713, 1714, 678, 2271, 1396, 2271, 1395, - /* 930 */ 2044, 1791, 672, 670, 528, 1845, 1855, 2043, 1378, 269, - /* 940 */ 793, 2220, 1872, 1875, 1809, 557, 2336, 1754, 40, 39, - /* 950 */ 664, 663, 46, 44, 43, 42, 41, 1786, 891, 1784, - /* 960 */ 542, 2519, 1815, 1397, 2557, 416, 415, 140, 115, 2521, - /* 970 */ 779, 2523, 2524, 774, 477, 797, 2439, 450, 449, 87, - /* 980 */ 2712, 71, 2611, 2486, 70, 160, 435, 2607, 2042, 1753, - /* 990 */ 2486, 1789, 1790, 1842, 227, 1844, 1847, 1848, 1849, 1850, - /* 1000 */ 1851, 1852, 1853, 1854, 771, 795, 794, 1865, 1867, 1868, - /* 1010 */ 1869, 1870, 2, 47, 45, 349, 2520, 793, 2220, 453, - /* 1020 */ 452, 439, 1810, 1785, 690, 2440, 689, 714, 2205, 776, - /* 1030 */ 2692, 725, 793, 2220, 1399, 1400, 1871, 543, 1783, 414, - /* 1040 */ 413, 2486, 650, 793, 2220, 2207, 2520, 9, 2698, 204, - /* 1050 */ 793, 2220, 544, 2693, 744, 793, 2220, 2538, 1786, 776, - /* 1060 */ 1784, 2685, 54, 624, 652, 1814, 1941, 1866, 651, 2486, - /* 1070 */ 2217, 775, 14, 13, 2427, 277, 714, 40, 39, 2692, - /* 1080 */ 1791, 46, 44, 43, 42, 41, 2101, 2538, 113, 793, - /* 1090 */ 2220, 828, 1789, 1790, 2264, 793, 2220, 2698, 204, 2486, - /* 1100 */ 748, 775, 2693, 744, 1810, 150, 769, 891, 669, 285, - /* 1110 */ 48, 2519, 2319, 2212, 2557, 761, 2520, 2041, 115, 2521, - /* 1120 */ 779, 2523, 2524, 774, 693, 797, 171, 858, 856, 776, - /* 1130 */ 2712, 2630, 2611, 464, 463, 829, 435, 2607, 2264, 793, - /* 1140 */ 2220, 2519, 2038, 1799, 2557, 746, 1873, 1874, 115, 2521, - /* 1150 */ 779, 2523, 2524, 774, 518, 797, 1871, 2538, 1792, 318, - /* 1160 */ 2712, 699, 2611, 2037, 793, 2220, 435, 2607, 100, 2486, - /* 1170 */ 2486, 775, 644, 643, 2203, 714, 646, 645, 2692, 2631, - /* 1180 */ 1934, 1914, 2036, 1491, 790, 1845, 1855, 1866, 793, 2220, - /* 1190 */ 793, 2220, 1872, 1875, 2159, 2486, 2698, 204, 1490, 1692, - /* 1200 */ 1791, 2693, 744, 358, 2055, 886, 2250, 1786, 791, 1784, - /* 1210 */ 345, 2519, 714, 1495, 2557, 2692, 2486, 2035, 115, 2521, - /* 1220 */ 779, 2523, 2524, 774, 2040, 797, 759, 768, 1494, 77, - /* 1230 */ 2712, 199, 2611, 2698, 204, 2486, 435, 2607, 2693, 744, - /* 1240 */ 2224, 1789, 1790, 1842, 1843, 1844, 1847, 1848, 1849, 1850, - /* 1250 */ 1851, 1852, 1853, 1854, 771, 795, 794, 1865, 1867, 1868, - /* 1260 */ 1869, 1870, 2, 47, 45, 793, 2220, 577, 1846, 2034, - /* 1270 */ 2486, 439, 2117, 1785, 1892, 2033, 1794, 714, 2032, 2031, - /* 1280 */ 2692, 2030, 1934, 88, 282, 462, 1871, 1815, 1783, 830, - /* 1290 */ 162, 161, 827, 826, 825, 159, 2520, 579, 2698, 204, - /* 1300 */ 2198, 656, 262, 2693, 744, 260, 211, 770, 264, 776, - /* 1310 */ 266, 263, 268, 265, 657, 267, 160, 1866, 2099, 2090, - /* 1320 */ 2088, 198, 2486, 2022, 2023, 1475, 1843, 1800, 2486, 1795, - /* 1330 */ 1791, 2486, 2486, 153, 2486, 2507, 160, 2538, 1473, 2655, - /* 1340 */ 671, 673, 676, 112, 721, 49, 668, 667, 666, 2486, - /* 1350 */ 49, 775, 109, 658, 144, 662, 731, 891, 299, 661, - /* 1360 */ 15, 1803, 1805, 188, 660, 665, 418, 417, 160, 49, - /* 1370 */ 659, 64, 49, 655, 654, 795, 794, 1865, 1867, 1868, - /* 1380 */ 1869, 1870, 14, 13, 1793, 312, 293, 76, 158, 160, - /* 1390 */ 1432, 2519, 142, 1708, 2557, 2509, 1873, 1874, 115, 2521, - /* 1400 */ 779, 2523, 2524, 774, 2025, 797, 324, 323, 326, 325, - /* 1410 */ 2586, 73, 2611, 1711, 393, 392, 435, 2607, 328, 327, - /* 1420 */ 2520, 1965, 1975, 2082, 446, 330, 329, 1974, 332, 331, - /* 1430 */ 334, 333, 1433, 776, 2539, 1845, 1855, 1871, 2155, 455, - /* 1440 */ 291, 2154, 1872, 1875, 2345, 760, 1661, 1797, 1908, 1856, - /* 1450 */ 336, 335, 338, 337, 801, 340, 339, 1786, 2071, 1784, - /* 1460 */ 158, 2538, 316, 838, 785, 320, 1521, 160, 1866, 342, - /* 1470 */ 341, 728, 2645, 2486, 141, 775, 882, 344, 343, 430, - /* 1480 */ 735, 782, 158, 468, 470, 2346, 426, 1451, 357, 469, - /* 1490 */ 2077, 1789, 1790, 1842, 2261, 1844, 1847, 1848, 1849, 1850, - /* 1500 */ 1851, 1852, 1853, 1854, 771, 795, 794, 1865, 1867, 1868, - /* 1510 */ 1869, 1870, 2, 756, 707, 2519, 2646, 2520, 2557, 839, - /* 1520 */ 2656, 301, 115, 2521, 779, 2523, 2524, 774, 305, 797, - /* 1530 */ 776, 1549, 2182, 298, 2584, 714, 2611, 1553, 2692, 5, - /* 1540 */ 435, 2607, 471, 1449, 1560, 476, 406, 484, 485, 1818, - /* 1550 */ 496, 1558, 495, 212, 213, 1796, 2698, 204, 2538, 163, - /* 1560 */ 498, 2693, 744, 215, 1685, 352, 1808, 512, 1809, 226, - /* 1570 */ 2486, 521, 775, 568, 519, 2520, 525, 527, 532, 545, - /* 1580 */ 558, 556, 2338, 564, 567, 569, 580, 581, 776, 578, - /* 1590 */ 231, 232, 583, 234, 584, 586, 588, 1816, 603, 4, - /* 1600 */ 604, 611, 614, 242, 612, 1811, 93, 616, 1776, 245, - /* 1610 */ 1752, 1817, 2519, 1819, 2520, 2557, 2538, 617, 618, 115, - /* 1620 */ 2521, 779, 2523, 2524, 774, 248, 797, 776, 2486, 620, - /* 1630 */ 775, 765, 1820, 2611, 2520, 647, 626, 435, 2607, 649, - /* 1640 */ 448, 447, 1777, 250, 94, 2354, 95, 776, 255, 2210, - /* 1650 */ 259, 2206, 117, 261, 165, 2538, 795, 794, 1865, 1867, - /* 1660 */ 1868, 1869, 1870, 384, 692, 679, 694, 2486, 680, 775, - /* 1670 */ 2519, 98, 166, 2557, 2208, 2538, 2204, 116, 2521, 779, - /* 1680 */ 2523, 2524, 774, 167, 797, 168, 278, 2486, 154, 775, - /* 1690 */ 2417, 2611, 2414, 1812, 2413, 2610, 2607, 702, 701, 709, - /* 1700 */ 706, 283, 718, 703, 708, 353, 281, 2400, 732, 2519, - /* 1710 */ 783, 2661, 2557, 2660, 8, 741, 116, 2521, 779, 2523, - /* 1720 */ 2524, 774, 288, 797, 290, 719, 179, 294, 2633, 777, - /* 1730 */ 2611, 292, 2557, 717, 767, 2607, 116, 2521, 779, 2523, - /* 1740 */ 2524, 774, 295, 797, 716, 1934, 297, 752, 431, 749, - /* 1750 */ 2611, 2715, 2520, 2691, 399, 2607, 296, 146, 300, 1813, - /* 1760 */ 2627, 1939, 1, 191, 307, 776, 155, 61, 1937, 2592, - /* 1770 */ 207, 2520, 354, 355, 781, 2368, 2367, 2366, 441, 786, - /* 1780 */ 157, 2221, 106, 356, 776, 787, 2478, 2477, 2473, 2472, - /* 1790 */ 2464, 108, 2463, 2538, 1353, 2455, 2520, 359, 885, 164, - /* 1800 */ 52, 2454, 404, 2438, 2470, 2486, 2469, 775, 2461, 776, - /* 1810 */ 2460, 2449, 2538, 2448, 888, 405, 347, 2467, 2466, 890, - /* 1820 */ 2458, 383, 2457, 2446, 2486, 2445, 775, 2443, 2442, 799, - /* 1830 */ 363, 361, 2437, 2265, 2436, 82, 2431, 2538, 473, 474, - /* 1840 */ 371, 382, 372, 2429, 1736, 1737, 210, 2519, 478, 2486, - /* 1850 */ 2557, 775, 480, 481, 176, 2521, 779, 2523, 2524, 774, - /* 1860 */ 482, 797, 1735, 2428, 407, 2426, 2519, 487, 2425, 2557, - /* 1870 */ 489, 2424, 491, 177, 2521, 779, 2523, 2524, 774, 2520, - /* 1880 */ 797, 2423, 493, 1724, 2404, 214, 2403, 83, 216, 1688, - /* 1890 */ 1687, 2519, 776, 2381, 2557, 2520, 715, 2652, 116, 2521, - /* 1900 */ 779, 2523, 2524, 774, 696, 797, 2380, 2379, 776, 505, - /* 1910 */ 506, 2378, 2611, 2377, 2328, 510, 1631, 2608, 2325, 513, - /* 1920 */ 2538, 2324, 894, 2318, 516, 517, 2315, 745, 2713, 219, - /* 1930 */ 2314, 2313, 2486, 86, 775, 2312, 2538, 2317, 351, 221, - /* 1940 */ 2316, 2311, 2310, 2308, 2307, 2306, 223, 533, 2486, 535, - /* 1950 */ 775, 2305, 2303, 2302, 884, 194, 2301, 2300, 2299, 2323, - /* 1960 */ 2298, 2297, 2296, 2321, 880, 876, 872, 868, 2304, 348, - /* 1970 */ 428, 2295, 2294, 2293, 2519, 2291, 2520, 2557, 2290, 2289, - /* 1980 */ 2288, 176, 2521, 779, 2523, 2524, 774, 2287, 797, 776, - /* 1990 */ 2519, 2286, 2285, 2557, 2284, 225, 2283, 381, 2521, 779, - /* 2000 */ 2523, 2524, 774, 2282, 797, 2281, 2322, 2320, 2280, 92, - /* 2010 */ 2279, 114, 1637, 2278, 321, 2277, 2276, 2538, 573, 230, - /* 2020 */ 2520, 571, 2275, 2274, 2653, 2120, 1492, 395, 2119, 2486, - /* 2030 */ 1488, 775, 396, 776, 1496, 233, 235, 2118, 2116, 2113, - /* 2040 */ 236, 590, 591, 2112, 595, 2105, 789, 594, 589, 598, - /* 2050 */ 2092, 429, 2520, 2066, 593, 597, 599, 601, 2506, 186, - /* 2060 */ 1377, 2538, 258, 79, 238, 776, 2065, 240, 2402, 2398, - /* 2070 */ 2388, 2519, 80, 2486, 2557, 775, 196, 2376, 381, 2521, - /* 2080 */ 779, 2523, 2524, 774, 609, 797, 247, 2375, 249, 252, - /* 2090 */ 2520, 309, 2352, 2538, 2199, 2115, 2111, 627, 308, 628, - /* 2100 */ 629, 2109, 1425, 773, 631, 2486, 632, 775, 2107, 635, - /* 2110 */ 2104, 636, 639, 633, 2087, 2519, 637, 279, 2557, 2085, - /* 2120 */ 641, 2086, 374, 2521, 779, 2523, 2524, 774, 640, 797, - /* 2130 */ 2084, 2538, 2062, 2201, 1565, 1564, 2200, 1478, 2102, 1477, - /* 2140 */ 1476, 1474, 1472, 2486, 1471, 775, 1470, 2519, 72, 1469, - /* 2150 */ 2557, 855, 2100, 1468, 177, 2521, 779, 2523, 2524, 774, - /* 2160 */ 857, 797, 1465, 1464, 1463, 1462, 2520, 419, 740, 420, - /* 2170 */ 2091, 421, 2089, 422, 674, 2061, 677, 2060, 2059, 776, - /* 2180 */ 681, 2058, 2057, 683, 685, 2519, 118, 2520, 2557, 1722, - /* 2190 */ 1718, 1720, 380, 2521, 779, 2523, 2524, 774, 1717, 797, - /* 2200 */ 776, 2577, 28, 2401, 280, 2397, 1694, 2538, 1696, 2714, - /* 2210 */ 2387, 1698, 2520, 704, 2374, 67, 2373, 20, 56, 2486, - /* 2220 */ 57, 775, 284, 2697, 720, 776, 30, 705, 2538, 257, - /* 2230 */ 427, 17, 1992, 287, 1673, 710, 726, 1672, 6, 1966, - /* 2240 */ 2486, 438, 775, 722, 724, 170, 180, 7, 712, 201, - /* 2250 */ 289, 21, 22, 2538, 1973, 642, 638, 634, 630, 178, - /* 2260 */ 256, 2519, 440, 190, 2557, 2486, 189, 775, 381, 2521, - /* 2270 */ 779, 2523, 2524, 774, 31, 797, 2507, 1960, 32, 65, - /* 2280 */ 81, 24, 2519, 2012, 23, 2557, 2013, 2007, 2006, 381, - /* 2290 */ 2521, 779, 2523, 2524, 774, 432, 797, 2011, 2010, 433, - /* 2300 */ 1931, 303, 97, 59, 181, 254, 2372, 691, 1930, 2520, - /* 2310 */ 2557, 2351, 25, 102, 376, 2521, 779, 2523, 2524, 774, - /* 2320 */ 103, 797, 776, 13, 1883, 2520, 11, 1801, 58, 1882, - /* 2330 */ 1893, 1858, 18, 38, 182, 1857, 192, 16, 776, 1827, - /* 2340 */ 26, 1835, 27, 2520, 311, 1968, 193, 317, 784, 69, - /* 2350 */ 2538, 2350, 104, 105, 778, 2562, 776, 109, 322, 1860, - /* 2360 */ 798, 800, 2486, 2561, 775, 457, 2538, 319, 796, 804, - /* 2370 */ 807, 810, 68, 244, 1550, 802, 346, 1547, 2486, 1546, - /* 2380 */ 775, 805, 253, 246, 2538, 1543, 808, 813, 1555, 251, - /* 2390 */ 619, 811, 816, 1537, 1535, 814, 2486, 817, 775, 110, - /* 2400 */ 111, 1541, 1559, 1540, 2519, 78, 1459, 2557, 243, 1423, - /* 2410 */ 1539, 366, 2521, 779, 2523, 2524, 774, 831, 797, 1538, - /* 2420 */ 2519, 1486, 2520, 2557, 1458, 1455, 1454, 365, 2521, 779, - /* 2430 */ 2523, 2524, 774, 1453, 797, 776, 1452, 1450, 2519, 1448, - /* 2440 */ 2520, 2557, 1447, 1446, 843, 367, 2521, 779, 2523, 2524, - /* 2450 */ 774, 1485, 797, 776, 208, 845, 1444, 1443, 1482, 2520, - /* 2460 */ 1442, 1441, 1440, 2538, 1439, 1438, 1480, 1435, 1434, 1431, - /* 2470 */ 1430, 1429, 776, 2110, 1428, 2486, 866, 775, 865, 2108, - /* 2480 */ 867, 2538, 869, 2106, 871, 873, 870, 874, 875, 2103, - /* 2490 */ 2083, 877, 878, 2486, 879, 775, 881, 2081, 883, 1366, - /* 2500 */ 2538, 2056, 1354, 887, 2026, 893, 350, 889, 2026, 1787, - /* 2510 */ 360, 2026, 2486, 892, 775, 2026, 2026, 2519, 2026, 2520, - /* 2520 */ 2557, 2026, 2026, 2026, 373, 2521, 779, 2523, 2524, 774, - /* 2530 */ 2026, 797, 776, 2026, 2026, 2519, 2026, 2026, 2557, 2026, - /* 2540 */ 2520, 2026, 377, 2521, 779, 2523, 2524, 774, 2026, 797, - /* 2550 */ 2026, 2026, 2026, 776, 2519, 2026, 2520, 2557, 2026, 2026, - /* 2560 */ 2538, 368, 2521, 779, 2523, 2524, 774, 2026, 797, 776, - /* 2570 */ 2026, 2026, 2486, 2026, 775, 2026, 2026, 2026, 2026, 2026, - /* 2580 */ 2026, 2538, 2026, 2026, 2026, 2026, 2520, 2026, 2026, 2026, - /* 2590 */ 2026, 2026, 2026, 2486, 2026, 775, 2026, 2538, 2026, 776, - /* 2600 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2486, - /* 2610 */ 2026, 775, 2026, 2026, 2519, 2026, 2520, 2557, 2026, 2026, - /* 2620 */ 2026, 378, 2521, 779, 2523, 2524, 774, 2538, 797, 776, - /* 2630 */ 2026, 2026, 2026, 2026, 2026, 2519, 2026, 2026, 2557, 2486, - /* 2640 */ 2026, 775, 369, 2521, 779, 2523, 2524, 774, 2026, 797, - /* 2650 */ 2026, 2519, 2026, 2520, 2557, 2026, 2026, 2538, 379, 2521, - /* 2660 */ 779, 2523, 2524, 774, 2026, 797, 776, 2026, 2026, 2486, - /* 2670 */ 2026, 775, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 2680 */ 2026, 2519, 2026, 2520, 2557, 2026, 2026, 2026, 370, 2521, - /* 2690 */ 779, 2523, 2524, 774, 2538, 797, 776, 2026, 2026, 2520, - /* 2700 */ 2026, 2026, 2026, 2026, 2026, 2026, 2486, 2026, 775, 2026, - /* 2710 */ 2026, 2519, 776, 2026, 2557, 2026, 2026, 2026, 385, 2521, - /* 2720 */ 779, 2523, 2524, 774, 2538, 797, 2026, 2026, 2026, 2026, - /* 2730 */ 2026, 2026, 2026, 2026, 2026, 2026, 2486, 2026, 775, 2026, - /* 2740 */ 2538, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2519, 2026, - /* 2750 */ 2026, 2557, 2486, 2026, 775, 386, 2521, 779, 2523, 2524, - /* 2760 */ 774, 2026, 797, 2026, 2026, 2026, 2026, 2026, 2026, 2520, - /* 2770 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2519, 2026, - /* 2780 */ 2026, 2557, 776, 2026, 2026, 2532, 2521, 779, 2523, 2524, - /* 2790 */ 774, 2026, 797, 2026, 2519, 2026, 2520, 2557, 2026, 2026, - /* 2800 */ 2026, 2531, 2521, 779, 2523, 2524, 774, 2026, 797, 776, - /* 2810 */ 2538, 2026, 2026, 2520, 2026, 2026, 2026, 2026, 2026, 2026, - /* 2820 */ 2026, 2026, 2486, 2026, 775, 2026, 776, 2026, 2026, 2026, - /* 2830 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2538, 2026, 2026, - /* 2840 */ 2026, 2026, 2520, 2026, 2026, 2026, 2026, 2026, 2026, 2486, - /* 2850 */ 2026, 775, 2026, 2026, 2538, 776, 2026, 2026, 2026, 2026, - /* 2860 */ 2026, 2026, 2026, 2026, 2519, 2026, 2486, 2557, 775, 2026, - /* 2870 */ 2026, 2530, 2521, 779, 2523, 2524, 774, 2026, 797, 2026, - /* 2880 */ 2520, 2026, 2026, 2538, 2026, 2026, 2026, 2026, 2026, 2026, - /* 2890 */ 2026, 2519, 2026, 776, 2557, 2486, 2026, 775, 401, 2521, - /* 2900 */ 779, 2523, 2524, 774, 2026, 797, 2026, 2026, 2519, 2026, - /* 2910 */ 2026, 2557, 2026, 2026, 2520, 402, 2521, 779, 2523, 2524, - /* 2920 */ 774, 2538, 797, 2026, 2026, 2026, 2026, 776, 2026, 2026, - /* 2930 */ 2026, 2026, 2026, 2486, 2026, 775, 2026, 2519, 2026, 2026, - /* 2940 */ 2557, 2026, 2026, 2026, 398, 2521, 779, 2523, 2524, 774, - /* 2950 */ 2026, 797, 2026, 2026, 2026, 2538, 2026, 2026, 2520, 2026, - /* 2960 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2486, 2026, 775, - /* 2970 */ 2026, 776, 2026, 2026, 2026, 2519, 2026, 2026, 2557, 2026, - /* 2980 */ 2026, 2026, 403, 2521, 779, 2523, 2524, 774, 2026, 797, - /* 2990 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2538, - /* 3000 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 777, - /* 3010 */ 2026, 2486, 2557, 775, 2026, 2026, 376, 2521, 779, 2523, - /* 3020 */ 2524, 774, 2026, 797, 2026, 2026, 2026, 2026, 2026, 2026, - /* 3030 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 3040 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 3050 */ 2026, 2026, 2026, 2519, 2026, 2026, 2557, 2026, 2026, 2026, - /* 3060 */ 375, 2521, 779, 2523, 2524, 774, 2026, 797, + /* 0 */ 37, 310, 458, 443, 605, 798, 2231, 606, 2081, 2454, + /* 10 */ 170, 172, 47, 45, 1956, 511, 185, 425, 2233, 2233, + /* 20 */ 439, 2039, 1795, 40, 39, 139, 2286, 46, 44, 43, + /* 30 */ 42, 41, 648, 622, 2511, 1882, 2125, 1793, 2324, 410, + /* 40 */ 852, 2355, 129, 2192, 2535, 128, 127, 126, 125, 124, + /* 50 */ 123, 122, 121, 120, 2642, 755, 148, 758, 2375, 2515, + /* 60 */ 714, 572, 570, 2708, 390, 239, 1877, 2288, 218, 608, + /* 70 */ 2209, 2089, 19, 442, 408, 2713, 2372, 785, 2708, 1801, + /* 80 */ 2639, 2714, 204, 2286, 1981, 2553, 2709, 744, 40, 39, + /* 90 */ 623, 2368, 46, 44, 43, 42, 41, 2712, 2501, 1982, + /* 100 */ 780, 2709, 2711, 154, 2517, 2520, 896, 797, 738, 15, + /* 110 */ 869, 868, 867, 866, 467, 802, 865, 864, 153, 859, + /* 120 */ 858, 857, 856, 855, 854, 853, 152, 847, 846, 845, + /* 130 */ 466, 465, 842, 841, 840, 184, 183, 839, 838, 1821, + /* 140 */ 2534, 1980, 185, 2573, 713, 1884, 1885, 115, 2536, 784, + /* 150 */ 2538, 2539, 779, 613, 802, 743, 606, 2081, 2708, 187, + /* 160 */ 2494, 2627, 1820, 456, 675, 435, 2623, 2356, 302, 2635, + /* 170 */ 754, 2288, 140, 753, 2307, 2708, 742, 204, 424, 687, + /* 180 */ 206, 2709, 744, 743, 1855, 1865, 2708, 2286, 2657, 107, + /* 190 */ 2000, 1883, 1886, 742, 204, 272, 50, 797, 2709, 744, + /* 200 */ 755, 148, 548, 797, 742, 204, 1796, 547, 1794, 2709, + /* 210 */ 744, 2375, 678, 2031, 2224, 546, 445, 40, 39, 672, + /* 220 */ 670, 46, 44, 43, 42, 41, 269, 802, 129, 2373, + /* 230 */ 785, 128, 127, 126, 125, 124, 123, 122, 121, 120, + /* 240 */ 1799, 1800, 1852, 62, 1854, 1857, 1858, 1859, 1860, 1861, + /* 250 */ 1862, 1863, 1864, 776, 800, 799, 1876, 1878, 1879, 1880, + /* 260 */ 1881, 2, 47, 45, 1674, 1675, 1804, 388, 71, 1818, + /* 270 */ 439, 70, 1795, 798, 2231, 1820, 555, 737, 1823, 575, + /* 280 */ 60, 400, 1820, 610, 574, 1882, 50, 1793, 711, 607, + /* 290 */ 40, 39, 66, 139, 46, 44, 43, 42, 41, 747, + /* 300 */ 653, 534, 1824, 576, 697, 2553, 2713, 1821, 389, 536, + /* 310 */ 1673, 1676, 757, 202, 2635, 2636, 1877, 146, 2640, 514, + /* 320 */ 2030, 33, 19, 1823, 1542, 224, 1911, 40, 39, 1801, + /* 330 */ 1852, 46, 44, 43, 42, 41, 550, 549, 1533, 827, + /* 340 */ 826, 825, 1537, 824, 1539, 1540, 775, 774, 621, 1548, + /* 350 */ 773, 1550, 1551, 772, 811, 808, 896, 411, 1542, 15, + /* 360 */ 835, 163, 162, 832, 831, 830, 160, 91, 522, 736, + /* 370 */ 90, 62, 1533, 827, 826, 825, 1537, 824, 1539, 1540, + /* 380 */ 823, 820, 625, 1548, 817, 1550, 1551, 814, 811, 808, + /* 390 */ 2208, 733, 1912, 837, 1960, 1884, 1885, 62, 2362, 2341, + /* 400 */ 1820, 563, 562, 561, 560, 559, 554, 553, 552, 551, + /* 410 */ 394, 1989, 306, 2024, 541, 540, 539, 538, 537, 531, + /* 420 */ 530, 529, 2038, 524, 523, 409, 43, 42, 41, 515, + /* 430 */ 1642, 1643, 1581, 1582, 1855, 1865, 1661, 1807, 89, 1654, + /* 440 */ 1655, 1883, 1886, 488, 304, 2511, 138, 137, 136, 135, + /* 450 */ 134, 133, 132, 131, 130, 306, 1796, 1402, 1794, 1401, + /* 460 */ 602, 730, 729, 1987, 1988, 1990, 1991, 1992, 200, 600, + /* 470 */ 2515, 695, 596, 592, 36, 437, 1906, 1907, 1908, 1909, + /* 480 */ 1910, 1914, 1915, 1916, 1917, 739, 734, 727, 723, 304, + /* 490 */ 1799, 1800, 1852, 1403, 1854, 1857, 1858, 1859, 1860, 1861, + /* 500 */ 1862, 1863, 1864, 776, 800, 799, 1876, 1878, 1879, 1880, + /* 510 */ 1881, 2, 12, 47, 45, 2517, 2519, 436, 1375, 2712, + /* 520 */ 173, 439, 2535, 1795, 1825, 364, 802, 257, 835, 163, + /* 530 */ 162, 832, 831, 830, 160, 781, 1882, 1382, 1793, 175, + /* 540 */ 306, 2050, 362, 75, 180, 2061, 74, 46, 44, 43, + /* 550 */ 42, 41, 2535, 642, 638, 634, 630, 391, 256, 12, + /* 560 */ 1377, 1380, 1381, 2553, 1856, 758, 306, 1877, 748, 237, + /* 570 */ 587, 585, 582, 19, 492, 51, 2501, 2060, 780, 2059, + /* 580 */ 1801, 40, 39, 2206, 35, 46, 44, 43, 42, 41, + /* 590 */ 40, 39, 2207, 2553, 46, 44, 43, 42, 41, 2501, + /* 600 */ 97, 494, 490, 254, 172, 2222, 2501, 896, 780, 241, + /* 610 */ 15, 62, 2234, 608, 2713, 2089, 274, 2708, 2534, 2642, + /* 620 */ 273, 2573, 1853, 2495, 2058, 115, 2536, 784, 2538, 2539, + /* 630 */ 779, 2501, 802, 2501, 771, 150, 2712, 157, 2598, 2627, + /* 640 */ 2709, 2710, 770, 435, 2623, 2638, 1884, 1885, 2534, 63, + /* 650 */ 460, 2573, 828, 2281, 2283, 115, 2536, 784, 2538, 2539, + /* 660 */ 779, 445, 802, 837, 798, 2231, 2288, 187, 764, 2627, + /* 670 */ 2599, 244, 802, 435, 2623, 1801, 755, 148, 2501, 445, + /* 680 */ 253, 246, 762, 1972, 209, 1855, 1865, 251, 619, 2112, + /* 690 */ 802, 99, 1883, 1886, 397, 686, 2658, 423, 698, 688, + /* 700 */ 85, 84, 507, 113, 2642, 217, 243, 1796, 698, 1794, + /* 710 */ 684, 669, 682, 271, 270, 1820, 1497, 1913, 499, 497, + /* 720 */ 151, 835, 163, 162, 832, 831, 830, 160, 2223, 387, + /* 730 */ 2637, 1496, 486, 2220, 1892, 483, 479, 475, 472, 500, + /* 740 */ 1820, 1799, 1800, 1852, 306, 1854, 1857, 1858, 1859, 1860, + /* 750 */ 1861, 1862, 1863, 1864, 776, 800, 799, 1876, 1878, 1879, + /* 760 */ 1880, 1881, 2, 47, 45, 1887, 2535, 451, 1795, 566, + /* 770 */ 1402, 439, 1401, 1795, 615, 2414, 798, 2231, 652, 781, + /* 780 */ 306, 2091, 651, 1793, 700, 2414, 1882, 144, 1793, 203, + /* 790 */ 2635, 2636, 349, 146, 2640, 2535, 55, 40, 39, 34, + /* 800 */ 577, 46, 44, 43, 42, 41, 1403, 2553, 781, 1918, + /* 810 */ 2665, 62, 2455, 458, 520, 2351, 746, 1877, 798, 2231, + /* 820 */ 2501, 172, 780, 464, 463, 1801, 668, 667, 666, 2233, + /* 830 */ 1801, 2216, 229, 658, 145, 662, 2553, 149, 508, 661, + /* 840 */ 2598, 693, 2282, 2283, 660, 665, 418, 417, 1802, 2501, + /* 850 */ 659, 780, 896, 655, 654, 798, 2231, 896, 565, 228, + /* 860 */ 48, 454, 2534, 714, 220, 2573, 2708, 2535, 112, 115, + /* 870 */ 2536, 784, 2538, 2539, 779, 509, 802, 109, 174, 1856, + /* 880 */ 781, 2728, 2678, 2627, 2714, 204, 2169, 435, 2623, 2709, + /* 890 */ 744, 2534, 714, 197, 2573, 2708, 1884, 1885, 115, 2536, + /* 900 */ 784, 2538, 2539, 779, 1856, 802, 2275, 502, 2553, 501, + /* 910 */ 2728, 1485, 2627, 2714, 204, 2445, 435, 2623, 2709, 744, + /* 920 */ 2423, 2501, 1824, 780, 849, 40, 39, 755, 148, 46, + /* 930 */ 44, 43, 42, 41, 96, 1855, 1865, 1853, 1764, 500, + /* 940 */ 40, 39, 1883, 1886, 46, 44, 43, 42, 41, 2288, + /* 950 */ 29, 412, 1796, 1487, 1794, 96, 434, 1796, 829, 1794, + /* 960 */ 2226, 2279, 1853, 2534, 2057, 2286, 2573, 477, 450, 449, + /* 970 */ 115, 2536, 784, 2538, 2539, 779, 276, 802, 526, 2351, + /* 980 */ 306, 2227, 2728, 2056, 2627, 2055, 1799, 1800, 435, 2623, + /* 990 */ 851, 1799, 1800, 1852, 769, 1854, 1857, 1858, 1859, 1860, + /* 1000 */ 1861, 1862, 1863, 1864, 776, 800, 799, 1876, 1878, 1879, + /* 1010 */ 1880, 1881, 2, 47, 45, 1501, 2535, 504, 2501, 1805, + /* 1020 */ 2218, 439, 503, 1795, 12, 2036, 10, 2001, 222, 781, + /* 1030 */ 1500, 725, 1763, 798, 2231, 461, 1882, 2501, 1793, 2501, + /* 1040 */ 205, 2635, 2636, 172, 146, 2640, 2535, 557, 2351, 798, + /* 1050 */ 2231, 2233, 1382, 528, 798, 2231, 1953, 2553, 1824, 781, + /* 1060 */ 2054, 2701, 453, 452, 798, 2231, 2214, 1877, 714, 542, + /* 1070 */ 2501, 2708, 780, 766, 543, 2599, 1380, 1381, 798, 2231, + /* 1080 */ 1801, 798, 2231, 2442, 544, 798, 2231, 2553, 195, 2714, + /* 1090 */ 204, 14, 13, 358, 2709, 744, 2265, 227, 624, 579, + /* 1100 */ 2501, 285, 780, 1405, 1406, 2228, 470, 896, 798, 2231, + /* 1110 */ 48, 469, 2534, 1820, 2501, 2573, 2235, 2535, 117, 115, + /* 1120 */ 2536, 784, 2538, 2539, 779, 282, 802, 2288, 277, 1824, + /* 1130 */ 781, 2728, 2646, 2627, 444, 798, 2231, 435, 2623, 798, + /* 1140 */ 2231, 2053, 2534, 2286, 1825, 2573, 1884, 1885, 275, 115, + /* 1150 */ 2536, 784, 2538, 2539, 779, 761, 802, 714, 2553, 318, + /* 1160 */ 2708, 2728, 1903, 2627, 9, 2288, 2334, 435, 2623, 798, + /* 1170 */ 2231, 2501, 459, 780, 798, 2231, 798, 2231, 2714, 204, + /* 1180 */ 750, 2286, 2052, 2709, 744, 1855, 1865, 644, 643, 795, + /* 1190 */ 798, 2231, 1883, 1886, 796, 2501, 345, 314, 315, 2288, + /* 1200 */ 1925, 2288, 313, 646, 645, 664, 663, 1796, 518, 1794, + /* 1210 */ 462, 77, 2049, 2534, 2048, 793, 2573, 2287, 2047, 2522, + /* 1220 */ 115, 2536, 784, 2538, 2539, 779, 2128, 802, 1723, 1724, + /* 1230 */ 2046, 2045, 2728, 2044, 2627, 161, 2501, 2043, 435, 2623, + /* 1240 */ 2042, 1799, 1800, 1852, 2041, 1854, 1857, 1858, 1859, 1860, + /* 1250 */ 1861, 1862, 1863, 1864, 776, 800, 799, 1876, 1878, 1879, + /* 1260 */ 1880, 1881, 2, 47, 45, 88, 2501, 833, 2501, 2535, + /* 1270 */ 2279, 439, 2501, 1795, 100, 699, 863, 861, 834, 2524, + /* 1280 */ 1825, 2279, 781, 198, 2501, 2501, 1882, 2501, 1793, 759, + /* 1290 */ 1384, 2501, 2066, 891, 2501, 199, 1819, 690, 2501, 689, + /* 1300 */ 668, 667, 666, 2647, 1945, 1702, 161, 658, 145, 662, + /* 1310 */ 2553, 262, 54, 661, 260, 211, 2110, 1877, 660, 665, + /* 1320 */ 418, 417, 3, 2501, 659, 780, 714, 655, 654, 2708, + /* 1330 */ 1801, 161, 1952, 264, 53, 1853, 263, 141, 671, 656, + /* 1340 */ 714, 416, 415, 2708, 286, 721, 49, 2714, 204, 87, + /* 1350 */ 49, 1825, 2709, 744, 657, 266, 268, 896, 265, 267, + /* 1360 */ 15, 2714, 204, 1481, 188, 2534, 2709, 744, 2573, 161, + /* 1370 */ 464, 463, 115, 2536, 784, 2538, 2539, 779, 1479, 802, + /* 1380 */ 1809, 2033, 2034, 1718, 2602, 2101, 2627, 2099, 64, 101, + /* 1390 */ 435, 2623, 49, 1882, 1803, 1802, 1884, 1885, 49, 1945, + /* 1400 */ 312, 14, 13, 76, 159, 161, 73, 673, 1721, 676, + /* 1410 */ 806, 324, 323, 326, 325, 414, 413, 159, 650, 2671, + /* 1420 */ 2535, 843, 1976, 1986, 1877, 328, 327, 1985, 330, 329, + /* 1430 */ 1438, 332, 331, 781, 844, 1855, 1865, 1801, 334, 333, + /* 1440 */ 652, 291, 1883, 1886, 651, 1457, 760, 2170, 336, 335, + /* 1450 */ 2051, 751, 338, 337, 340, 339, 161, 1796, 1455, 1794, + /* 1460 */ 2093, 2553, 342, 341, 768, 1919, 344, 343, 299, 1866, + /* 1470 */ 142, 159, 1439, 731, 2501, 1671, 780, 316, 293, 143, + /* 1480 */ 790, 320, 1527, 357, 2082, 2554, 2166, 1555, 2165, 2360, + /* 1490 */ 2661, 1799, 1800, 1852, 1563, 1854, 1857, 1858, 1859, 1860, + /* 1500 */ 1861, 1862, 1863, 1864, 776, 800, 799, 1876, 1878, 1879, + /* 1510 */ 1880, 1881, 2, 887, 728, 430, 2534, 735, 426, 2573, + /* 1520 */ 787, 393, 392, 115, 2536, 784, 2538, 2539, 779, 468, + /* 1530 */ 802, 446, 2535, 1570, 2361, 2600, 2088, 2627, 2276, 707, + /* 1540 */ 756, 435, 2623, 2662, 1882, 781, 455, 1568, 164, 301, + /* 1550 */ 2672, 298, 2193, 305, 471, 5, 476, 484, 406, 485, + /* 1560 */ 1828, 496, 213, 495, 1810, 1806, 1805, 212, 2535, 498, + /* 1570 */ 215, 352, 1695, 2553, 1818, 1877, 512, 1819, 519, 226, + /* 1580 */ 521, 781, 525, 527, 532, 568, 2501, 545, 780, 556, + /* 1590 */ 2353, 558, 580, 564, 567, 569, 581, 578, 1813, 1815, + /* 1600 */ 232, 231, 583, 584, 234, 586, 588, 1826, 4, 2553, + /* 1610 */ 603, 604, 800, 799, 1876, 1878, 1879, 1880, 1881, 611, + /* 1620 */ 242, 612, 2501, 1821, 780, 1827, 614, 93, 2534, 616, + /* 1630 */ 245, 2573, 617, 1829, 618, 115, 2536, 784, 2538, 2539, + /* 1640 */ 779, 248, 802, 620, 250, 1830, 94, 765, 95, 2627, + /* 1650 */ 647, 626, 2369, 435, 2623, 118, 255, 649, 2221, 679, + /* 1660 */ 259, 2432, 2217, 261, 2534, 166, 680, 2573, 692, 167, + /* 1670 */ 384, 116, 2536, 784, 2538, 2539, 779, 694, 802, 98, + /* 1680 */ 2429, 2219, 2215, 168, 2535, 2627, 2428, 169, 353, 2626, + /* 1690 */ 2623, 1822, 155, 278, 702, 703, 732, 781, 701, 2415, + /* 1700 */ 706, 281, 283, 2677, 709, 718, 788, 2676, 8, 708, + /* 1710 */ 741, 719, 717, 2649, 292, 1786, 716, 1762, 294, 288, + /* 1720 */ 290, 2535, 1945, 295, 179, 2553, 296, 752, 431, 297, + /* 1730 */ 749, 1823, 1, 147, 781, 1950, 1948, 191, 2501, 2643, + /* 1740 */ 780, 2535, 61, 307, 786, 2707, 207, 448, 447, 1787, + /* 1750 */ 2731, 354, 2383, 156, 778, 791, 2232, 2382, 2535, 2381, + /* 1760 */ 355, 441, 2553, 800, 799, 1876, 1878, 1879, 1880, 1881, + /* 1770 */ 158, 781, 2608, 356, 792, 2501, 106, 780, 108, 1359, + /* 1780 */ 2534, 890, 2553, 2573, 300, 804, 52, 116, 2536, 784, + /* 1790 */ 2538, 2539, 779, 2493, 802, 2501, 2492, 780, 895, 2553, + /* 1800 */ 2488, 2627, 2487, 2479, 2478, 767, 2623, 359, 2470, 2469, + /* 1810 */ 2485, 347, 2501, 893, 780, 165, 363, 782, 2484, 2476, + /* 1820 */ 2573, 2453, 2452, 2475, 116, 2536, 784, 2538, 2539, 779, + /* 1830 */ 2451, 802, 361, 82, 2464, 2446, 404, 2534, 2627, 2463, + /* 1840 */ 2573, 2482, 399, 2623, 380, 2536, 784, 2538, 2539, 779, + /* 1850 */ 777, 802, 763, 2592, 2534, 2481, 2535, 2573, 2473, 371, + /* 1860 */ 2472, 176, 2536, 784, 2538, 2539, 779, 2461, 802, 781, + /* 1870 */ 2460, 382, 2535, 2458, 696, 2457, 2280, 473, 372, 383, + /* 1880 */ 405, 474, 1746, 1747, 210, 781, 478, 2444, 480, 481, + /* 1890 */ 482, 1745, 899, 2443, 407, 2441, 487, 2553, 2440, 2439, + /* 1900 */ 489, 491, 2535, 715, 2668, 2438, 493, 1734, 351, 2419, + /* 1910 */ 2501, 214, 780, 2553, 2418, 781, 216, 1698, 83, 1697, + /* 1920 */ 2396, 2395, 2394, 505, 889, 194, 2501, 506, 780, 2393, + /* 1930 */ 2392, 2343, 510, 1641, 885, 881, 877, 873, 2340, 348, + /* 1940 */ 513, 2339, 2333, 2553, 516, 2330, 517, 2329, 2328, 219, + /* 1950 */ 2327, 86, 2534, 2332, 2331, 2573, 2501, 221, 780, 177, + /* 1960 */ 2536, 784, 2538, 2539, 779, 2326, 802, 2325, 2534, 2323, + /* 1970 */ 2535, 2573, 2322, 2321, 223, 116, 2536, 784, 2538, 2539, + /* 1980 */ 779, 114, 802, 781, 321, 2320, 533, 535, 2318, 2627, + /* 1990 */ 2317, 2316, 2315, 2314, 2624, 2338, 2313, 2312, 2534, 2311, + /* 2000 */ 2336, 2573, 2319, 2310, 2309, 176, 2536, 784, 2538, 2539, + /* 2010 */ 779, 2553, 802, 745, 2729, 2308, 794, 2306, 2305, 2304, + /* 2020 */ 2303, 2302, 2301, 225, 2501, 2300, 780, 92, 2299, 2298, + /* 2030 */ 2297, 2296, 2337, 2335, 2295, 2294, 1647, 2293, 230, 2292, + /* 2040 */ 571, 2291, 2290, 2289, 573, 2535, 428, 2131, 2669, 1498, + /* 2050 */ 1494, 395, 233, 2130, 2129, 396, 2127, 2124, 781, 590, + /* 2060 */ 1502, 309, 2123, 589, 235, 2116, 2534, 2103, 308, 2573, + /* 2070 */ 2077, 2076, 2417, 381, 2536, 784, 2538, 2539, 779, 2413, + /* 2080 */ 802, 593, 2535, 186, 2403, 2521, 2553, 279, 591, 236, + /* 2090 */ 595, 599, 594, 79, 80, 781, 597, 598, 601, 2501, + /* 2100 */ 238, 780, 2535, 1383, 2391, 2390, 240, 196, 247, 609, + /* 2110 */ 249, 2367, 2210, 252, 2126, 781, 2122, 627, 629, 2120, + /* 2120 */ 628, 429, 631, 2553, 633, 632, 2118, 635, 637, 636, + /* 2130 */ 2115, 639, 2098, 640, 641, 2096, 2501, 2097, 780, 258, + /* 2140 */ 1575, 2534, 1431, 2553, 2573, 2095, 2073, 2212, 381, 2536, + /* 2150 */ 784, 2538, 2539, 779, 2211, 802, 2501, 1483, 780, 2113, + /* 2160 */ 1574, 1482, 2535, 1484, 1480, 1478, 1477, 2111, 1476, 860, + /* 2170 */ 1475, 1474, 1469, 862, 419, 778, 2102, 420, 2534, 1471, + /* 2180 */ 1470, 2573, 421, 2100, 422, 374, 2536, 784, 2538, 2539, + /* 2190 */ 779, 72, 802, 2072, 1468, 677, 2071, 2070, 2534, 2069, + /* 2200 */ 681, 2573, 674, 2553, 2068, 177, 2536, 784, 2538, 2539, + /* 2210 */ 779, 683, 802, 685, 119, 1728, 2501, 1730, 780, 1727, + /* 2220 */ 1732, 2416, 2535, 1708, 28, 2412, 67, 1704, 280, 1706, + /* 2230 */ 2402, 740, 704, 2389, 2388, 781, 20, 720, 2713, 17, + /* 2240 */ 23, 21, 427, 65, 22, 6, 2535, 190, 7, 32, + /* 2250 */ 201, 2522, 24, 30, 18, 2018, 724, 2017, 2534, 781, + /* 2260 */ 2730, 2573, 287, 2553, 56, 380, 2536, 784, 2538, 2539, + /* 2270 */ 779, 2003, 802, 57, 2593, 1977, 2501, 705, 780, 722, + /* 2280 */ 726, 1683, 284, 1682, 171, 432, 178, 2553, 2022, 710, + /* 2290 */ 189, 712, 2021, 433, 289, 1984, 31, 81, 438, 1971, + /* 2300 */ 2501, 303, 780, 59, 2387, 2366, 181, 103, 25, 13, + /* 2310 */ 182, 1811, 192, 1845, 2365, 789, 2023, 1429, 2534, 2024, + /* 2320 */ 2535, 2573, 440, 1942, 102, 381, 2536, 784, 2538, 2539, + /* 2330 */ 779, 813, 802, 781, 1941, 1894, 1893, 1869, 104, 319, + /* 2340 */ 1904, 1868, 2534, 322, 2535, 2573, 816, 819, 822, 381, + /* 2350 */ 2536, 784, 2538, 2539, 779, 38, 802, 781, 16, 58, + /* 2360 */ 1867, 2553, 11, 26, 783, 109, 2535, 805, 1837, 27, + /* 2370 */ 457, 809, 311, 193, 2501, 317, 780, 812, 1979, 781, + /* 2380 */ 69, 105, 2578, 2577, 815, 2553, 1871, 801, 68, 818, + /* 2390 */ 1556, 807, 821, 1553, 810, 110, 803, 1552, 2501, 1547, + /* 2400 */ 780, 346, 1549, 1543, 1569, 1541, 111, 2553, 1565, 78, + /* 2410 */ 836, 1546, 1465, 1464, 1545, 1461, 691, 1460, 1459, 2573, + /* 2420 */ 2501, 1458, 780, 376, 2536, 784, 2538, 2539, 779, 1544, + /* 2430 */ 802, 1456, 1454, 1453, 1452, 1492, 1491, 208, 848, 850, + /* 2440 */ 2534, 1447, 1450, 2573, 1449, 1448, 1446, 366, 2536, 784, + /* 2450 */ 2538, 2539, 779, 1445, 802, 1444, 1488, 1486, 1441, 1440, + /* 2460 */ 1437, 1435, 2534, 1436, 1434, 2573, 2121, 870, 2119, 365, + /* 2470 */ 2536, 784, 2538, 2539, 779, 872, 802, 871, 874, 876, + /* 2480 */ 875, 2117, 2535, 878, 879, 880, 2114, 882, 883, 884, + /* 2490 */ 2094, 886, 2092, 888, 1372, 781, 2067, 1360, 892, 2535, + /* 2500 */ 350, 894, 2037, 2037, 1797, 898, 360, 2037, 897, 2037, + /* 2510 */ 2037, 2037, 781, 2037, 2037, 2037, 2535, 2037, 2037, 2037, + /* 2520 */ 2037, 2037, 2037, 2553, 2037, 2037, 2037, 2037, 2037, 781, + /* 2530 */ 2037, 2037, 2037, 2037, 2037, 2037, 2501, 2037, 780, 2037, + /* 2540 */ 2553, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2550 */ 2037, 2037, 2037, 2501, 2037, 780, 2037, 2553, 2037, 2037, + /* 2560 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2570 */ 2501, 2037, 780, 2037, 2037, 2037, 2037, 2037, 2534, 2037, + /* 2580 */ 2037, 2573, 2037, 2037, 2037, 367, 2536, 784, 2538, 2539, + /* 2590 */ 779, 2037, 802, 2037, 2037, 2534, 2037, 2037, 2573, 2037, + /* 2600 */ 2037, 2037, 373, 2536, 784, 2538, 2539, 779, 2037, 802, + /* 2610 */ 2037, 2037, 2534, 2037, 2037, 2573, 2037, 2037, 2037, 377, + /* 2620 */ 2536, 784, 2538, 2539, 779, 2037, 802, 2535, 2037, 2037, + /* 2630 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2640 */ 781, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2535, 2037, + /* 2650 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2660 */ 2037, 781, 2037, 2037, 2037, 2037, 2037, 2037, 2553, 2037, + /* 2670 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2680 */ 2037, 2501, 2037, 780, 2037, 2037, 2535, 2037, 2037, 2553, + /* 2690 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 781, + /* 2700 */ 2037, 2037, 2501, 2037, 780, 2535, 2037, 2037, 2037, 2037, + /* 2710 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 781, 2037, + /* 2720 */ 2037, 2037, 2037, 2534, 2037, 2037, 2573, 2553, 2037, 2037, + /* 2730 */ 368, 2536, 784, 2538, 2539, 779, 2037, 802, 2037, 2037, + /* 2740 */ 2501, 2037, 780, 2037, 2534, 2037, 2553, 2573, 2037, 2037, + /* 2750 */ 2037, 378, 2536, 784, 2538, 2539, 779, 2037, 802, 2501, + /* 2760 */ 2037, 780, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2770 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2780 */ 2037, 2037, 2534, 2037, 2535, 2573, 2037, 2037, 2037, 369, + /* 2790 */ 2536, 784, 2538, 2539, 779, 2037, 802, 781, 2037, 2037, + /* 2800 */ 2037, 2534, 2037, 2037, 2573, 2037, 2037, 2037, 379, 2536, + /* 2810 */ 784, 2538, 2539, 779, 2037, 802, 2037, 2037, 2037, 2037, + /* 2820 */ 2037, 2037, 2037, 2535, 2037, 2553, 2037, 2037, 2037, 2037, + /* 2830 */ 2037, 2037, 2037, 2037, 2037, 2037, 781, 2037, 2501, 2037, + /* 2840 */ 780, 2037, 2037, 2535, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2850 */ 2037, 2037, 2037, 2037, 2037, 2037, 781, 2037, 2037, 2037, + /* 2860 */ 2535, 2037, 2037, 2037, 2553, 2037, 2037, 2037, 2037, 2037, + /* 2870 */ 2037, 2037, 2037, 781, 2037, 2037, 2037, 2501, 2037, 780, + /* 2880 */ 2534, 2037, 2037, 2573, 2553, 2037, 2037, 370, 2536, 784, + /* 2890 */ 2538, 2539, 779, 2037, 802, 2037, 2037, 2501, 2037, 780, + /* 2900 */ 2037, 2553, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2910 */ 2037, 2037, 2037, 2037, 2501, 2037, 780, 2037, 2037, 2534, + /* 2920 */ 2037, 2037, 2573, 2037, 2037, 2037, 385, 2536, 784, 2538, + /* 2930 */ 2539, 779, 2037, 802, 2037, 2037, 2037, 2037, 2037, 2534, + /* 2940 */ 2037, 2037, 2573, 2037, 2037, 2037, 386, 2536, 784, 2538, + /* 2950 */ 2539, 779, 2037, 802, 2037, 2037, 2534, 2037, 2037, 2573, + /* 2960 */ 2037, 2037, 2037, 2547, 2536, 784, 2538, 2539, 779, 2037, + /* 2970 */ 802, 2037, 2037, 2535, 2037, 2037, 2037, 2037, 2037, 2037, + /* 2980 */ 2037, 2037, 2037, 2037, 2037, 2037, 781, 2037, 2037, 2037, + /* 2990 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 3000 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2535, + /* 3010 */ 2037, 2037, 2037, 2037, 2553, 2037, 2037, 2037, 2037, 2037, + /* 3020 */ 2037, 2037, 781, 2037, 2037, 2037, 2037, 2501, 2037, 780, + /* 3030 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 3040 */ 2037, 2037, 2037, 2037, 2535, 2037, 2037, 2037, 2037, 2037, + /* 3050 */ 2553, 2037, 2037, 2037, 2037, 2037, 2037, 781, 2037, 2037, + /* 3060 */ 2037, 2037, 2037, 2501, 2037, 780, 2037, 2037, 2037, 2534, + /* 3070 */ 2037, 2037, 2573, 2037, 2037, 2037, 2546, 2536, 784, 2538, + /* 3080 */ 2539, 779, 2037, 802, 2037, 2553, 2037, 2037, 2535, 2037, + /* 3090 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2501, 2037, + /* 3100 */ 780, 781, 2037, 2037, 2037, 2534, 2037, 2037, 2573, 2037, + /* 3110 */ 2037, 2037, 2545, 2536, 784, 2538, 2539, 779, 2037, 802, + /* 3120 */ 2535, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2553, + /* 3130 */ 2037, 2037, 2037, 781, 2037, 2037, 2037, 2037, 2037, 2037, + /* 3140 */ 2534, 2037, 2501, 2573, 780, 2535, 2037, 401, 2536, 784, + /* 3150 */ 2538, 2539, 779, 2037, 802, 2037, 2037, 2037, 781, 2037, + /* 3160 */ 2037, 2553, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 3170 */ 2037, 2037, 2037, 2037, 2501, 2037, 780, 2037, 2037, 2037, + /* 3180 */ 2037, 2037, 2037, 2037, 2534, 2037, 2553, 2573, 2037, 2037, + /* 3190 */ 2037, 402, 2536, 784, 2538, 2539, 779, 2037, 802, 2501, + /* 3200 */ 2037, 780, 2037, 2037, 2535, 2037, 2037, 2037, 2037, 2037, + /* 3210 */ 2037, 2037, 2037, 2037, 2037, 2037, 2534, 781, 2037, 2573, + /* 3220 */ 2037, 2535, 2037, 398, 2536, 784, 2538, 2539, 779, 2037, + /* 3230 */ 802, 2037, 2037, 2037, 781, 2037, 2037, 2037, 2037, 2037, + /* 3240 */ 2037, 2534, 2037, 2037, 2573, 2553, 2037, 2037, 403, 2536, + /* 3250 */ 784, 2538, 2539, 779, 2037, 802, 2037, 2037, 2501, 2037, + /* 3260 */ 780, 2037, 2553, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 3270 */ 2037, 2037, 2037, 2037, 2037, 2501, 2037, 780, 2037, 2037, + /* 3280 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 3290 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 3300 */ 782, 2037, 2037, 2573, 2037, 2037, 2037, 376, 2536, 784, + /* 3310 */ 2538, 2539, 779, 2037, 802, 2037, 2037, 2534, 2037, 2037, + /* 3320 */ 2573, 2037, 2037, 2037, 375, 2536, 784, 2538, 2539, 779, + /* 3330 */ 2037, 802, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 367, 477, 478, 370, 371, 400, 367, 372, 373, 370, - /* 10 */ 371, 402, 12, 13, 14, 389, 437, 412, 14, 2, - /* 20 */ 20, 442, 22, 0, 20, 8, 9, 392, 372, 12, - /* 30 */ 13, 14, 15, 16, 399, 35, 0, 37, 488, 413, - /* 40 */ 372, 491, 372, 373, 21, 360, 401, 24, 25, 26, - /* 50 */ 27, 28, 29, 30, 31, 32, 372, 373, 373, 509, - /* 60 */ 510, 416, 392, 415, 514, 515, 66, 488, 401, 399, - /* 70 */ 491, 373, 72, 417, 418, 408, 420, 33, 430, 79, - /* 80 */ 424, 433, 434, 416, 458, 459, 401, 411, 509, 510, - /* 90 */ 414, 415, 20, 514, 515, 469, 428, 429, 413, 401, - /* 100 */ 415, 12, 13, 14, 15, 16, 106, 360, 66, 109, - /* 110 */ 74, 75, 76, 77, 78, 20, 80, 81, 82, 83, + /* 0 */ 478, 479, 393, 393, 367, 372, 373, 370, 371, 438, + /* 10 */ 401, 401, 12, 13, 14, 372, 401, 408, 409, 409, + /* 20 */ 20, 0, 22, 8, 9, 392, 417, 12, 13, 14, + /* 30 */ 15, 16, 399, 372, 389, 35, 0, 37, 0, 424, + /* 40 */ 388, 426, 21, 391, 360, 24, 25, 26, 27, 28, + /* 50 */ 29, 30, 31, 32, 462, 372, 373, 373, 416, 414, + /* 60 */ 489, 418, 419, 492, 421, 368, 66, 401, 425, 372, + /* 70 */ 0, 374, 72, 431, 408, 489, 434, 435, 492, 79, + /* 80 */ 488, 510, 511, 417, 22, 401, 515, 516, 8, 9, + /* 90 */ 429, 430, 12, 13, 14, 15, 16, 511, 414, 37, + /* 100 */ 416, 515, 516, 33, 459, 460, 106, 20, 20, 109, + /* 110 */ 74, 75, 76, 77, 78, 470, 80, 81, 82, 83, /* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, - /* 130 */ 94, 95, 96, 97, 98, 99, 100, 101, 102, 379, - /* 140 */ 455, 403, 20, 458, 406, 145, 146, 462, 463, 464, - /* 150 */ 465, 466, 467, 111, 469, 488, 20, 381, 491, 474, - /* 160 */ 413, 476, 464, 393, 404, 480, 481, 109, 484, 485, - /* 170 */ 486, 401, 488, 489, 398, 491, 509, 510, 408, 409, - /* 180 */ 495, 514, 515, 407, 184, 185, 416, 20, 503, 401, - /* 190 */ 360, 191, 192, 509, 510, 389, 458, 21, 514, 515, - /* 200 */ 372, 373, 20, 20, 109, 140, 206, 469, 208, 144, - /* 210 */ 190, 415, 36, 425, 38, 39, 40, 8, 9, 413, - /* 220 */ 392, 12, 13, 14, 15, 16, 414, 415, 21, 433, - /* 230 */ 434, 24, 25, 26, 27, 28, 29, 30, 31, 32, - /* 240 */ 240, 241, 242, 413, 244, 245, 246, 247, 248, 249, + /* 130 */ 94, 95, 96, 97, 98, 99, 100, 101, 102, 20, + /* 140 */ 456, 79, 401, 459, 50, 145, 146, 463, 464, 465, + /* 150 */ 466, 467, 468, 367, 470, 489, 370, 371, 492, 475, + /* 160 */ 403, 477, 20, 406, 4, 481, 482, 426, 485, 486, + /* 170 */ 487, 401, 489, 490, 0, 492, 510, 511, 408, 19, + /* 180 */ 496, 515, 516, 489, 184, 185, 492, 417, 504, 379, + /* 190 */ 110, 191, 192, 510, 511, 35, 109, 20, 515, 516, + /* 200 */ 372, 373, 164, 20, 510, 511, 206, 169, 208, 515, + /* 210 */ 516, 416, 52, 198, 404, 177, 459, 8, 9, 59, + /* 220 */ 60, 12, 13, 14, 15, 16, 66, 470, 21, 434, + /* 230 */ 435, 24, 25, 26, 27, 28, 29, 30, 31, 32, + /* 240 */ 240, 241, 242, 109, 244, 245, 246, 247, 248, 249, /* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, - /* 260 */ 260, 261, 12, 13, 458, 459, 460, 18, 0, 20, - /* 270 */ 20, 13, 22, 139, 140, 469, 27, 360, 144, 30, - /* 280 */ 215, 72, 20, 218, 35, 35, 221, 37, 223, 0, - /* 290 */ 373, 4, 24, 25, 26, 27, 28, 29, 30, 31, - /* 300 */ 32, 52, 20, 54, 284, 285, 286, 287, 59, 60, - /* 310 */ 23, 240, 145, 146, 242, 393, 66, 382, 401, 70, - /* 320 */ 184, 185, 72, 401, 106, 390, 117, 145, 146, 79, - /* 330 */ 413, 409, 415, 46, 47, 48, 278, 79, 120, 121, - /* 340 */ 122, 123, 124, 125, 126, 127, 128, 129, 304, 131, - /* 350 */ 132, 133, 134, 135, 136, 137, 106, 108, 70, 109, - /* 360 */ 71, 290, 291, 292, 293, 294, 295, 296, 119, 186, - /* 370 */ 372, 109, 455, 191, 192, 458, 20, 183, 22, 462, - /* 380 */ 463, 464, 465, 466, 467, 468, 469, 470, 471, 0, - /* 390 */ 109, 37, 183, 37, 14, 145, 146, 403, 149, 150, + /* 260 */ 260, 261, 12, 13, 145, 146, 37, 18, 108, 20, + /* 270 */ 20, 111, 22, 372, 373, 20, 27, 373, 20, 30, + /* 280 */ 186, 72, 20, 14, 35, 35, 109, 37, 194, 20, + /* 290 */ 8, 9, 4, 392, 12, 13, 14, 15, 16, 33, + /* 300 */ 399, 52, 20, 54, 20, 401, 3, 20, 59, 60, + /* 310 */ 191, 192, 484, 485, 486, 487, 66, 489, 490, 70, + /* 320 */ 305, 2, 72, 20, 106, 66, 117, 8, 9, 79, + /* 330 */ 242, 12, 13, 14, 15, 16, 162, 163, 120, 121, + /* 340 */ 122, 123, 124, 125, 126, 127, 128, 129, 20, 131, + /* 350 */ 132, 133, 134, 135, 136, 137, 106, 108, 106, 109, + /* 360 */ 138, 139, 140, 141, 142, 143, 144, 108, 119, 465, + /* 370 */ 111, 109, 120, 121, 122, 123, 124, 125, 126, 127, + /* 380 */ 128, 129, 71, 131, 132, 133, 134, 135, 136, 137, + /* 390 */ 0, 190, 183, 71, 14, 145, 146, 109, 149, 150, /* 400 */ 20, 152, 153, 154, 155, 156, 157, 158, 159, 160, - /* 410 */ 161, 359, 56, 361, 165, 166, 167, 168, 169, 170, - /* 420 */ 171, 172, 109, 174, 175, 176, 0, 461, 66, 180, - /* 430 */ 181, 182, 50, 79, 184, 185, 187, 12, 13, 0, - /* 440 */ 3, 191, 192, 8, 9, 447, 448, 12, 13, 14, - /* 450 */ 15, 16, 458, 487, 20, 20, 206, 20, 208, 265, - /* 460 */ 8, 9, 37, 469, 12, 13, 14, 15, 16, 275, - /* 470 */ 108, 372, 373, 111, 265, 266, 267, 268, 269, 270, - /* 480 */ 271, 272, 273, 274, 275, 33, 205, 20, 207, 201, - /* 490 */ 240, 241, 242, 461, 244, 245, 246, 247, 248, 249, + /* 410 */ 161, 240, 278, 110, 165, 166, 167, 168, 169, 170, + /* 420 */ 171, 172, 0, 174, 175, 176, 14, 15, 16, 180, + /* 430 */ 181, 182, 145, 146, 184, 185, 187, 208, 179, 184, + /* 440 */ 185, 191, 192, 70, 186, 389, 24, 25, 26, 27, + /* 450 */ 28, 29, 30, 31, 32, 278, 206, 20, 208, 22, + /* 460 */ 52, 290, 291, 292, 293, 294, 295, 296, 186, 61, + /* 470 */ 414, 119, 64, 65, 265, 266, 267, 268, 269, 270, + /* 480 */ 271, 272, 273, 274, 275, 284, 285, 286, 287, 186, + /* 490 */ 240, 241, 242, 56, 244, 245, 246, 247, 248, 249, /* 500 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, - /* 510 */ 260, 261, 262, 12, 13, 88, 228, 229, 237, 487, - /* 520 */ 18, 20, 360, 22, 401, 23, 360, 138, 139, 140, - /* 530 */ 141, 142, 143, 144, 488, 373, 35, 491, 37, 416, - /* 540 */ 278, 179, 40, 41, 8, 9, 44, 110, 12, 13, - /* 550 */ 14, 15, 16, 360, 20, 20, 510, 55, 4, 278, - /* 560 */ 514, 515, 110, 401, 184, 71, 373, 66, 186, 67, - /* 570 */ 68, 69, 70, 72, 401, 413, 194, 415, 151, 413, - /* 580 */ 79, 408, 483, 484, 485, 486, 71, 488, 489, 416, - /* 590 */ 164, 278, 8, 9, 401, 169, 12, 13, 14, 15, - /* 600 */ 16, 162, 163, 177, 177, 178, 413, 106, 415, 403, - /* 610 */ 109, 109, 14, 488, 372, 373, 491, 455, 20, 461, - /* 620 */ 458, 186, 242, 186, 462, 463, 464, 465, 466, 467, - /* 630 */ 262, 469, 264, 208, 472, 510, 474, 475, 476, 514, - /* 640 */ 515, 52, 480, 481, 109, 487, 145, 146, 455, 147, - /* 650 */ 61, 458, 119, 64, 65, 462, 463, 464, 465, 466, - /* 660 */ 467, 0, 469, 109, 458, 388, 368, 474, 391, 476, - /* 670 */ 372, 381, 374, 480, 481, 469, 242, 242, 372, 373, - /* 680 */ 360, 372, 373, 8, 9, 184, 185, 12, 13, 14, - /* 690 */ 15, 16, 191, 192, 110, 393, 503, 407, 392, 372, - /* 700 */ 198, 199, 200, 401, 473, 203, 475, 206, 368, 208, - /* 710 */ 2, 409, 372, 473, 374, 475, 8, 9, 216, 217, - /* 720 */ 12, 13, 14, 15, 16, 360, 484, 485, 486, 227, - /* 730 */ 488, 489, 230, 413, 198, 233, 234, 235, 236, 237, - /* 740 */ 20, 240, 241, 242, 23, 244, 245, 246, 247, 248, + /* 510 */ 260, 261, 262, 12, 13, 459, 460, 461, 4, 3, + /* 520 */ 18, 20, 360, 22, 242, 23, 470, 35, 138, 139, + /* 530 */ 140, 141, 142, 143, 144, 373, 35, 23, 37, 359, + /* 540 */ 278, 361, 40, 41, 52, 360, 44, 12, 13, 14, + /* 550 */ 15, 16, 360, 61, 62, 63, 64, 55, 66, 262, + /* 560 */ 46, 47, 48, 401, 184, 373, 278, 66, 302, 67, + /* 570 */ 68, 69, 70, 72, 201, 109, 414, 360, 416, 360, + /* 580 */ 79, 8, 9, 0, 2, 12, 13, 14, 15, 16, + /* 590 */ 8, 9, 0, 401, 12, 13, 14, 15, 16, 414, + /* 600 */ 108, 228, 229, 111, 401, 403, 414, 106, 416, 368, + /* 610 */ 109, 109, 409, 372, 489, 374, 140, 492, 456, 462, + /* 620 */ 144, 459, 242, 403, 360, 463, 464, 465, 466, 467, + /* 630 */ 468, 414, 470, 414, 402, 473, 511, 475, 476, 477, + /* 640 */ 515, 516, 410, 481, 482, 488, 145, 146, 456, 147, + /* 650 */ 412, 459, 119, 415, 416, 463, 464, 465, 466, 467, + /* 660 */ 468, 459, 470, 71, 372, 373, 401, 475, 474, 477, + /* 670 */ 476, 179, 470, 481, 482, 79, 372, 373, 414, 459, + /* 680 */ 188, 189, 417, 110, 392, 184, 185, 195, 196, 0, + /* 690 */ 470, 215, 191, 192, 218, 21, 504, 221, 372, 223, + /* 700 */ 198, 199, 200, 379, 462, 203, 214, 206, 372, 208, + /* 710 */ 36, 22, 38, 39, 40, 20, 22, 183, 216, 217, + /* 720 */ 396, 138, 139, 140, 141, 142, 143, 144, 404, 227, + /* 730 */ 488, 37, 230, 402, 14, 233, 234, 235, 236, 237, + /* 740 */ 20, 240, 241, 242, 278, 244, 245, 246, 247, 248, /* 750 */ 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, - /* 760 */ 259, 260, 261, 12, 13, 14, 360, 401, 47, 48, - /* 770 */ 397, 20, 22, 22, 447, 448, 37, 401, 413, 373, - /* 780 */ 278, 375, 184, 360, 408, 110, 35, 37, 37, 423, - /* 790 */ 4, 425, 416, 484, 485, 486, 360, 488, 489, 138, - /* 800 */ 139, 140, 141, 142, 143, 144, 138, 401, 393, 373, - /* 810 */ 142, 375, 401, 278, 372, 373, 401, 66, 37, 413, - /* 820 */ 409, 415, 372, 373, 409, 452, 74, 75, 76, 79, - /* 830 */ 79, 33, 278, 81, 82, 83, 413, 401, 262, 87, - /* 840 */ 242, 305, 392, 139, 92, 93, 94, 95, 3, 413, - /* 850 */ 98, 415, 401, 101, 102, 372, 373, 106, 372, 373, - /* 860 */ 109, 455, 472, 421, 458, 475, 360, 416, 462, 463, - /* 870 */ 464, 465, 466, 467, 22, 469, 33, 4, 392, 373, - /* 880 */ 474, 375, 476, 14, 15, 16, 480, 481, 45, 37, - /* 890 */ 410, 455, 19, 413, 458, 119, 145, 146, 462, 463, - /* 900 */ 464, 465, 466, 467, 421, 469, 186, 401, 35, 79, - /* 910 */ 474, 401, 476, 401, 372, 373, 480, 481, 408, 413, - /* 920 */ 408, 415, 0, 219, 220, 52, 416, 20, 416, 22, - /* 930 */ 360, 79, 59, 60, 392, 184, 185, 360, 14, 66, - /* 940 */ 372, 373, 191, 192, 20, 372, 373, 208, 8, 9, - /* 950 */ 386, 387, 12, 13, 14, 15, 16, 206, 106, 208, - /* 960 */ 392, 455, 242, 56, 458, 39, 40, 33, 462, 463, - /* 970 */ 464, 465, 466, 467, 52, 469, 437, 238, 239, 45, - /* 980 */ 474, 108, 476, 413, 111, 33, 480, 481, 360, 208, - /* 990 */ 413, 240, 241, 242, 421, 244, 245, 246, 247, 248, + /* 760 */ 259, 260, 261, 12, 13, 14, 360, 37, 22, 88, + /* 770 */ 20, 20, 22, 22, 448, 449, 372, 373, 138, 373, + /* 780 */ 278, 375, 142, 37, 448, 449, 35, 37, 37, 485, + /* 790 */ 486, 487, 34, 489, 490, 360, 392, 8, 9, 265, + /* 800 */ 106, 12, 13, 14, 15, 16, 56, 401, 373, 275, + /* 810 */ 375, 109, 438, 393, 372, 373, 300, 66, 372, 373, + /* 820 */ 414, 401, 416, 12, 13, 79, 74, 75, 76, 409, + /* 830 */ 79, 402, 151, 81, 82, 83, 401, 473, 392, 87, + /* 840 */ 476, 438, 415, 416, 92, 93, 94, 95, 37, 414, + /* 850 */ 98, 416, 106, 101, 102, 372, 373, 106, 177, 178, + /* 860 */ 109, 37, 456, 489, 422, 459, 492, 360, 109, 463, + /* 870 */ 464, 465, 466, 467, 468, 392, 470, 118, 382, 184, + /* 880 */ 373, 475, 375, 477, 510, 511, 390, 481, 482, 515, + /* 890 */ 516, 456, 489, 400, 459, 492, 145, 146, 463, 464, + /* 900 */ 465, 466, 467, 468, 184, 470, 413, 205, 401, 207, + /* 910 */ 475, 37, 477, 510, 511, 0, 481, 482, 515, 516, + /* 920 */ 397, 414, 20, 416, 13, 8, 9, 372, 373, 12, + /* 930 */ 13, 14, 15, 16, 381, 184, 185, 242, 208, 237, + /* 940 */ 8, 9, 191, 192, 12, 13, 14, 15, 16, 401, + /* 950 */ 33, 398, 206, 79, 208, 381, 408, 206, 411, 208, + /* 960 */ 407, 414, 242, 456, 360, 417, 459, 52, 238, 239, + /* 970 */ 463, 464, 465, 466, 467, 468, 453, 470, 372, 373, + /* 980 */ 278, 407, 475, 360, 477, 360, 240, 241, 481, 482, + /* 990 */ 79, 240, 241, 242, 72, 244, 245, 246, 247, 248, /* 1000 */ 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, - /* 1010 */ 259, 260, 261, 12, 13, 34, 360, 372, 373, 238, - /* 1020 */ 239, 20, 20, 22, 222, 437, 224, 488, 402, 373, - /* 1030 */ 491, 375, 372, 373, 57, 58, 35, 392, 37, 113, - /* 1040 */ 114, 413, 116, 372, 373, 402, 360, 42, 509, 510, - /* 1050 */ 372, 373, 392, 514, 515, 372, 373, 401, 206, 373, - /* 1060 */ 208, 375, 110, 392, 138, 20, 280, 66, 142, 413, - /* 1070 */ 392, 415, 1, 2, 0, 392, 488, 8, 9, 491, - /* 1080 */ 79, 12, 13, 14, 15, 16, 0, 401, 379, 372, - /* 1090 */ 373, 410, 240, 241, 413, 372, 373, 509, 510, 413, - /* 1100 */ 302, 415, 514, 515, 20, 396, 72, 106, 22, 392, - /* 1110 */ 109, 455, 0, 404, 458, 392, 360, 360, 462, 463, - /* 1120 */ 464, 465, 466, 467, 437, 469, 186, 386, 387, 373, - /* 1130 */ 474, 375, 476, 12, 13, 410, 480, 481, 413, 372, - /* 1140 */ 373, 455, 360, 22, 458, 300, 145, 146, 462, 463, - /* 1150 */ 464, 465, 466, 467, 42, 469, 35, 401, 37, 392, - /* 1160 */ 474, 437, 476, 360, 372, 373, 480, 481, 179, 413, - /* 1170 */ 413, 415, 377, 378, 402, 488, 377, 378, 491, 276, - /* 1180 */ 277, 110, 360, 22, 392, 184, 185, 66, 372, 373, - /* 1190 */ 372, 373, 191, 192, 390, 413, 509, 510, 37, 210, - /* 1200 */ 79, 514, 515, 394, 363, 364, 397, 206, 392, 208, - /* 1210 */ 392, 455, 488, 22, 458, 491, 413, 360, 462, 463, - /* 1220 */ 464, 465, 466, 467, 361, 469, 437, 106, 37, 119, - /* 1230 */ 474, 186, 476, 509, 510, 413, 480, 481, 514, 515, - /* 1240 */ 402, 240, 241, 242, 242, 244, 245, 246, 247, 248, + /* 1010 */ 259, 260, 261, 12, 13, 22, 360, 438, 414, 208, + /* 1020 */ 402, 20, 443, 22, 262, 357, 264, 110, 422, 373, + /* 1030 */ 37, 375, 208, 372, 373, 393, 35, 414, 37, 414, + /* 1040 */ 485, 486, 487, 401, 489, 490, 360, 372, 373, 372, + /* 1050 */ 373, 409, 23, 392, 372, 373, 4, 401, 20, 373, + /* 1060 */ 360, 375, 238, 239, 372, 373, 402, 66, 489, 392, + /* 1070 */ 414, 492, 416, 474, 392, 476, 47, 48, 372, 373, + /* 1080 */ 79, 372, 373, 0, 392, 372, 373, 401, 186, 510, + /* 1090 */ 511, 1, 2, 394, 515, 516, 397, 422, 392, 106, + /* 1100 */ 414, 392, 416, 57, 58, 392, 438, 106, 372, 373, + /* 1110 */ 109, 443, 456, 20, 414, 459, 402, 360, 186, 463, + /* 1120 */ 464, 465, 466, 467, 468, 402, 470, 401, 392, 20, + /* 1130 */ 373, 475, 375, 477, 408, 372, 373, 481, 482, 372, + /* 1140 */ 373, 360, 456, 417, 242, 459, 145, 146, 139, 463, + /* 1150 */ 464, 465, 466, 467, 468, 392, 470, 489, 401, 392, + /* 1160 */ 492, 475, 240, 477, 42, 401, 0, 481, 482, 372, + /* 1170 */ 373, 414, 408, 416, 372, 373, 372, 373, 510, 511, + /* 1180 */ 33, 417, 360, 515, 516, 184, 185, 377, 378, 392, + /* 1190 */ 372, 373, 191, 192, 392, 414, 392, 139, 140, 401, + /* 1200 */ 110, 401, 144, 377, 378, 386, 387, 206, 42, 208, + /* 1210 */ 392, 119, 360, 456, 360, 417, 459, 417, 360, 49, + /* 1220 */ 463, 464, 465, 466, 467, 468, 0, 470, 219, 220, + /* 1230 */ 360, 360, 475, 360, 477, 33, 414, 360, 481, 482, + /* 1240 */ 360, 240, 241, 242, 360, 244, 245, 246, 247, 248, /* 1250 */ 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, - /* 1260 */ 259, 260, 261, 12, 13, 372, 373, 106, 184, 360, - /* 1270 */ 413, 20, 0, 22, 240, 360, 37, 488, 360, 360, - /* 1280 */ 491, 360, 277, 173, 402, 392, 35, 242, 37, 138, - /* 1290 */ 139, 140, 141, 142, 143, 144, 360, 106, 509, 510, - /* 1300 */ 0, 13, 112, 514, 515, 115, 232, 402, 112, 373, - /* 1310 */ 112, 115, 112, 115, 13, 115, 33, 66, 0, 0, - /* 1320 */ 0, 443, 413, 145, 146, 37, 242, 206, 413, 208, - /* 1330 */ 79, 413, 413, 33, 413, 49, 33, 401, 37, 426, - /* 1340 */ 22, 22, 22, 109, 33, 33, 74, 75, 76, 413, - /* 1350 */ 33, 415, 118, 81, 82, 83, 507, 106, 518, 87, - /* 1360 */ 109, 240, 241, 33, 92, 93, 94, 95, 33, 33, - /* 1370 */ 98, 33, 33, 101, 102, 254, 255, 256, 257, 258, - /* 1380 */ 259, 260, 1, 2, 37, 33, 500, 33, 33, 33, - /* 1390 */ 37, 455, 376, 110, 458, 109, 145, 146, 462, 463, - /* 1400 */ 464, 465, 466, 467, 357, 469, 12, 13, 12, 13, - /* 1410 */ 474, 33, 476, 110, 12, 13, 480, 481, 12, 13, - /* 1420 */ 360, 110, 110, 0, 22, 12, 13, 110, 12, 13, - /* 1430 */ 12, 13, 79, 373, 401, 184, 185, 35, 389, 37, - /* 1440 */ 110, 389, 191, 192, 426, 110, 110, 208, 110, 110, - /* 1450 */ 12, 13, 12, 13, 33, 12, 13, 206, 371, 208, - /* 1460 */ 33, 401, 110, 13, 110, 110, 110, 33, 66, 12, - /* 1470 */ 13, 506, 426, 413, 33, 415, 53, 12, 13, 506, - /* 1480 */ 506, 506, 33, 376, 437, 426, 436, 37, 110, 442, - /* 1490 */ 373, 240, 241, 242, 412, 244, 245, 246, 247, 248, + /* 1260 */ 259, 260, 261, 12, 13, 173, 414, 411, 414, 360, + /* 1270 */ 414, 20, 414, 22, 179, 438, 386, 387, 411, 109, + /* 1280 */ 242, 414, 373, 444, 414, 414, 35, 414, 37, 438, + /* 1290 */ 14, 414, 363, 364, 414, 186, 20, 222, 414, 224, + /* 1300 */ 74, 75, 76, 276, 277, 210, 33, 81, 82, 83, + /* 1310 */ 401, 112, 110, 87, 115, 232, 0, 66, 92, 93, + /* 1320 */ 94, 95, 33, 414, 98, 416, 489, 101, 102, 492, + /* 1330 */ 79, 33, 280, 112, 45, 242, 115, 33, 22, 13, + /* 1340 */ 489, 39, 40, 492, 66, 33, 33, 510, 511, 45, + /* 1350 */ 33, 242, 515, 516, 13, 112, 112, 106, 115, 115, + /* 1360 */ 109, 510, 511, 37, 33, 456, 515, 516, 459, 33, + /* 1370 */ 12, 13, 463, 464, 465, 466, 467, 468, 37, 470, + /* 1380 */ 22, 145, 146, 110, 475, 0, 477, 0, 33, 111, + /* 1390 */ 481, 482, 33, 35, 37, 37, 145, 146, 33, 277, + /* 1400 */ 33, 1, 2, 33, 33, 33, 33, 22, 110, 22, + /* 1410 */ 33, 12, 13, 12, 13, 113, 114, 33, 116, 427, + /* 1420 */ 360, 13, 110, 110, 66, 12, 13, 110, 12, 13, + /* 1430 */ 37, 12, 13, 373, 13, 184, 185, 79, 12, 13, + /* 1440 */ 138, 110, 191, 192, 142, 37, 110, 390, 12, 13, + /* 1450 */ 361, 304, 12, 13, 12, 13, 33, 206, 37, 208, + /* 1460 */ 0, 401, 12, 13, 106, 110, 12, 13, 519, 110, + /* 1470 */ 33, 33, 79, 508, 414, 110, 416, 110, 501, 376, + /* 1480 */ 110, 110, 110, 110, 371, 401, 389, 110, 389, 427, + /* 1490 */ 427, 240, 241, 242, 110, 244, 245, 246, 247, 248, /* 1500 */ 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, - /* 1510 */ 259, 260, 261, 490, 444, 455, 426, 360, 458, 13, - /* 1520 */ 426, 511, 462, 463, 464, 465, 466, 467, 493, 469, - /* 1530 */ 373, 110, 391, 482, 474, 488, 476, 110, 491, 281, - /* 1540 */ 480, 481, 438, 37, 110, 52, 457, 42, 456, 20, - /* 1550 */ 449, 110, 221, 454, 381, 208, 509, 510, 401, 110, - /* 1560 */ 449, 514, 515, 381, 204, 440, 20, 372, 20, 45, - /* 1570 */ 413, 422, 415, 183, 373, 360, 373, 422, 419, 372, - /* 1580 */ 422, 373, 372, 419, 419, 419, 107, 385, 373, 105, - /* 1590 */ 384, 372, 104, 372, 383, 372, 372, 20, 365, 50, - /* 1600 */ 369, 365, 449, 381, 369, 20, 381, 415, 206, 381, - /* 1610 */ 208, 20, 455, 20, 360, 458, 401, 374, 439, 462, - /* 1620 */ 463, 464, 465, 466, 467, 381, 469, 373, 413, 374, - /* 1630 */ 415, 474, 20, 476, 360, 365, 372, 480, 481, 401, - /* 1640 */ 238, 239, 240, 381, 381, 429, 381, 373, 381, 401, - /* 1650 */ 401, 401, 372, 401, 401, 401, 254, 255, 256, 257, - /* 1660 */ 258, 259, 260, 365, 225, 363, 453, 413, 363, 415, - /* 1670 */ 455, 109, 401, 458, 401, 401, 401, 462, 463, 464, - /* 1680 */ 465, 466, 467, 401, 469, 401, 379, 413, 451, 415, - /* 1690 */ 413, 476, 413, 20, 413, 480, 481, 212, 211, 372, - /* 1700 */ 415, 379, 413, 446, 438, 449, 445, 448, 289, 455, - /* 1710 */ 288, 499, 458, 499, 297, 197, 462, 463, 464, 465, - /* 1720 */ 466, 467, 431, 469, 431, 299, 499, 498, 502, 455, - /* 1730 */ 476, 501, 458, 298, 480, 481, 462, 463, 464, 465, - /* 1740 */ 466, 467, 497, 469, 282, 277, 438, 303, 306, 301, - /* 1750 */ 476, 519, 360, 513, 480, 481, 496, 373, 512, 20, - /* 1760 */ 461, 119, 494, 374, 379, 373, 379, 109, 279, 479, - /* 1770 */ 492, 360, 431, 431, 413, 413, 413, 413, 413, 189, - /* 1780 */ 379, 373, 379, 397, 373, 427, 413, 413, 413, 413, - /* 1790 */ 413, 109, 413, 401, 22, 413, 360, 372, 38, 366, - /* 1800 */ 441, 413, 432, 0, 413, 413, 413, 415, 413, 373, - /* 1810 */ 413, 413, 401, 413, 362, 432, 379, 413, 413, 365, - /* 1820 */ 413, 450, 413, 413, 413, 413, 415, 413, 413, 405, - /* 1830 */ 358, 380, 0, 413, 0, 45, 0, 401, 37, 231, - /* 1840 */ 395, 395, 395, 0, 37, 37, 37, 455, 231, 413, - /* 1850 */ 458, 415, 37, 37, 462, 463, 464, 465, 466, 467, - /* 1860 */ 231, 469, 37, 0, 231, 0, 455, 37, 0, 458, - /* 1870 */ 37, 0, 22, 462, 463, 464, 465, 466, 467, 360, - /* 1880 */ 469, 0, 37, 226, 0, 214, 0, 215, 214, 208, - /* 1890 */ 206, 455, 373, 0, 458, 360, 504, 505, 462, 463, - /* 1900 */ 464, 465, 466, 467, 1, 469, 0, 0, 373, 202, - /* 1910 */ 201, 0, 476, 0, 150, 49, 49, 481, 0, 37, - /* 1920 */ 401, 0, 19, 0, 37, 52, 0, 516, 517, 49, - /* 1930 */ 0, 0, 413, 45, 415, 0, 401, 0, 35, 49, - /* 1940 */ 0, 0, 0, 0, 0, 0, 169, 37, 413, 169, - /* 1950 */ 415, 0, 0, 0, 51, 52, 0, 0, 0, 0, - /* 1960 */ 0, 0, 0, 0, 61, 62, 63, 64, 0, 66, - /* 1970 */ 435, 0, 0, 0, 455, 0, 360, 458, 0, 0, - /* 1980 */ 0, 462, 463, 464, 465, 466, 467, 0, 469, 373, - /* 1990 */ 455, 0, 0, 458, 0, 49, 0, 462, 463, 464, - /* 2000 */ 465, 466, 467, 0, 469, 0, 0, 0, 0, 45, - /* 2010 */ 0, 108, 22, 0, 111, 0, 0, 401, 148, 150, - /* 2020 */ 360, 149, 0, 0, 505, 0, 22, 50, 0, 413, - /* 2030 */ 37, 415, 50, 373, 22, 66, 66, 0, 0, 0, - /* 2040 */ 66, 52, 42, 0, 42, 0, 143, 52, 37, 52, - /* 2050 */ 0, 435, 360, 0, 37, 37, 42, 37, 49, 33, - /* 2060 */ 14, 401, 115, 42, 45, 373, 0, 43, 0, 0, - /* 2070 */ 0, 455, 42, 413, 458, 415, 49, 0, 462, 463, - /* 2080 */ 464, 465, 466, 467, 49, 469, 42, 0, 197, 49, - /* 2090 */ 360, 188, 0, 401, 0, 0, 0, 37, 195, 52, - /* 2100 */ 42, 0, 73, 373, 37, 413, 52, 415, 0, 37, - /* 2110 */ 0, 52, 37, 42, 0, 455, 42, 214, 458, 0, - /* 2120 */ 42, 0, 462, 463, 464, 465, 466, 467, 52, 469, - /* 2130 */ 0, 401, 0, 0, 37, 22, 0, 22, 0, 37, - /* 2140 */ 37, 37, 37, 413, 37, 415, 37, 455, 117, 37, - /* 2150 */ 458, 33, 0, 37, 462, 463, 464, 465, 466, 467, - /* 2160 */ 33, 469, 37, 37, 22, 37, 360, 22, 508, 22, - /* 2170 */ 0, 22, 0, 22, 54, 0, 37, 0, 0, 373, - /* 2180 */ 37, 0, 0, 37, 22, 455, 20, 360, 458, 110, - /* 2190 */ 37, 37, 462, 463, 464, 465, 466, 467, 37, 469, - /* 2200 */ 373, 471, 109, 0, 49, 0, 37, 401, 22, 517, - /* 2210 */ 0, 213, 360, 22, 0, 109, 0, 33, 186, 413, - /* 2220 */ 186, 415, 189, 3, 37, 373, 109, 186, 401, 35, - /* 2230 */ 37, 283, 110, 109, 186, 193, 105, 186, 50, 110, - /* 2240 */ 413, 435, 415, 109, 107, 209, 52, 50, 193, 49, - /* 2250 */ 110, 33, 33, 401, 110, 61, 62, 63, 64, 109, - /* 2260 */ 66, 455, 435, 33, 458, 413, 109, 415, 462, 463, - /* 2270 */ 464, 465, 466, 467, 109, 469, 49, 110, 33, 3, - /* 2280 */ 109, 33, 455, 110, 283, 458, 110, 37, 37, 462, - /* 2290 */ 463, 464, 465, 466, 467, 37, 469, 37, 37, 37, - /* 2300 */ 110, 49, 108, 33, 49, 111, 0, 455, 110, 360, - /* 2310 */ 458, 0, 33, 109, 462, 463, 464, 465, 466, 467, - /* 2320 */ 42, 469, 373, 2, 107, 360, 263, 22, 276, 107, - /* 2330 */ 240, 110, 283, 109, 49, 110, 49, 109, 373, 110, - /* 2340 */ 109, 22, 109, 360, 110, 110, 109, 109, 190, 109, - /* 2350 */ 401, 0, 42, 109, 243, 109, 373, 118, 49, 110, - /* 2360 */ 119, 37, 413, 109, 415, 37, 401, 188, 109, 37, - /* 2370 */ 37, 37, 109, 179, 110, 109, 33, 110, 413, 110, - /* 2380 */ 415, 109, 188, 189, 401, 110, 109, 37, 22, 195, - /* 2390 */ 196, 109, 37, 110, 110, 109, 413, 109, 415, 109, - /* 2400 */ 109, 130, 37, 130, 455, 109, 22, 458, 214, 73, - /* 2410 */ 130, 462, 463, 464, 465, 466, 467, 72, 469, 130, - /* 2420 */ 455, 79, 360, 458, 37, 37, 37, 462, 463, 464, - /* 2430 */ 465, 466, 467, 37, 469, 373, 37, 37, 455, 37, - /* 2440 */ 360, 458, 37, 37, 103, 462, 463, 464, 465, 466, - /* 2450 */ 467, 79, 469, 373, 33, 103, 37, 37, 79, 360, - /* 2460 */ 37, 22, 37, 401, 37, 37, 37, 37, 37, 37, - /* 2470 */ 37, 22, 373, 0, 37, 413, 52, 415, 37, 0, - /* 2480 */ 42, 401, 37, 0, 42, 37, 52, 52, 42, 0, - /* 2490 */ 0, 37, 52, 413, 42, 415, 37, 0, 22, 37, - /* 2500 */ 401, 0, 22, 33, 520, 20, 22, 21, 520, 22, - /* 2510 */ 22, 520, 413, 21, 415, 520, 520, 455, 520, 360, - /* 2520 */ 458, 520, 520, 520, 462, 463, 464, 465, 466, 467, - /* 2530 */ 520, 469, 373, 520, 520, 455, 520, 520, 458, 520, - /* 2540 */ 360, 520, 462, 463, 464, 465, 466, 467, 520, 469, - /* 2550 */ 520, 520, 520, 373, 455, 520, 360, 458, 520, 520, - /* 2560 */ 401, 462, 463, 464, 465, 466, 467, 520, 469, 373, - /* 2570 */ 520, 520, 413, 520, 415, 520, 520, 520, 520, 520, - /* 2580 */ 520, 401, 520, 520, 520, 520, 360, 520, 520, 520, - /* 2590 */ 520, 520, 520, 413, 520, 415, 520, 401, 520, 373, - /* 2600 */ 520, 520, 520, 520, 520, 520, 520, 520, 520, 413, - /* 2610 */ 520, 415, 520, 520, 455, 520, 360, 458, 520, 520, - /* 2620 */ 520, 462, 463, 464, 465, 466, 467, 401, 469, 373, - /* 2630 */ 520, 520, 520, 520, 520, 455, 520, 520, 458, 413, - /* 2640 */ 520, 415, 462, 463, 464, 465, 466, 467, 520, 469, - /* 2650 */ 520, 455, 520, 360, 458, 520, 520, 401, 462, 463, - /* 2660 */ 464, 465, 466, 467, 520, 469, 373, 520, 520, 413, - /* 2670 */ 520, 415, 520, 520, 520, 520, 520, 520, 520, 520, - /* 2680 */ 520, 455, 520, 360, 458, 520, 520, 520, 462, 463, - /* 2690 */ 464, 465, 466, 467, 401, 469, 373, 520, 520, 360, - /* 2700 */ 520, 520, 520, 520, 520, 520, 413, 520, 415, 520, - /* 2710 */ 520, 455, 373, 520, 458, 520, 520, 520, 462, 463, - /* 2720 */ 464, 465, 466, 467, 401, 469, 520, 520, 520, 520, - /* 2730 */ 520, 520, 520, 520, 520, 520, 413, 520, 415, 520, - /* 2740 */ 401, 520, 520, 520, 520, 520, 520, 520, 455, 520, - /* 2750 */ 520, 458, 413, 520, 415, 462, 463, 464, 465, 466, - /* 2760 */ 467, 520, 469, 520, 520, 520, 520, 520, 520, 360, - /* 2770 */ 520, 520, 520, 520, 520, 520, 520, 520, 455, 520, - /* 2780 */ 520, 458, 373, 520, 520, 462, 463, 464, 465, 466, - /* 2790 */ 467, 520, 469, 520, 455, 520, 360, 458, 520, 520, - /* 2800 */ 520, 462, 463, 464, 465, 466, 467, 520, 469, 373, - /* 2810 */ 401, 520, 520, 360, 520, 520, 520, 520, 520, 520, - /* 2820 */ 520, 520, 413, 520, 415, 520, 373, 520, 520, 520, - /* 2830 */ 520, 520, 520, 520, 520, 520, 520, 401, 520, 520, - /* 2840 */ 520, 520, 360, 520, 520, 520, 520, 520, 520, 413, - /* 2850 */ 520, 415, 520, 520, 401, 373, 520, 520, 520, 520, - /* 2860 */ 520, 520, 520, 520, 455, 520, 413, 458, 415, 520, - /* 2870 */ 520, 462, 463, 464, 465, 466, 467, 520, 469, 520, - /* 2880 */ 360, 520, 520, 401, 520, 520, 520, 520, 520, 520, - /* 2890 */ 520, 455, 520, 373, 458, 413, 520, 415, 462, 463, - /* 2900 */ 464, 465, 466, 467, 520, 469, 520, 520, 455, 520, - /* 2910 */ 520, 458, 520, 520, 360, 462, 463, 464, 465, 466, - /* 2920 */ 467, 401, 469, 520, 520, 520, 520, 373, 520, 520, - /* 2930 */ 520, 520, 520, 413, 520, 415, 520, 455, 520, 520, - /* 2940 */ 458, 520, 520, 520, 462, 463, 464, 465, 466, 467, - /* 2950 */ 520, 469, 520, 520, 520, 401, 520, 520, 360, 520, - /* 2960 */ 520, 520, 520, 520, 520, 520, 520, 413, 520, 415, - /* 2970 */ 520, 373, 520, 520, 520, 455, 520, 520, 458, 520, - /* 2980 */ 520, 520, 462, 463, 464, 465, 466, 467, 520, 469, - /* 2990 */ 520, 520, 520, 520, 520, 520, 520, 520, 520, 401, - /* 3000 */ 520, 520, 520, 520, 520, 520, 520, 520, 520, 455, - /* 3010 */ 520, 413, 458, 415, 520, 520, 462, 463, 464, 465, - /* 3020 */ 466, 467, 520, 469, 520, 520, 520, 520, 520, 520, - /* 3030 */ 520, 520, 520, 520, 520, 520, 520, 520, 520, 520, - /* 3040 */ 520, 520, 520, 520, 520, 520, 520, 520, 520, 520, - /* 3050 */ 520, 520, 520, 455, 520, 520, 458, 520, 520, 520, - /* 3060 */ 462, 463, 464, 465, 466, 467, 520, 469, 357, 357, - /* 3070 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3080 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3090 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3100 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3110 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3120 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3130 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3140 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3150 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3160 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3170 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3180 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3190 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3200 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3210 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3220 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3230 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3240 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3250 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3260 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3270 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3280 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3290 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3300 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3310 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3320 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3330 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 1510 */ 259, 260, 261, 53, 507, 507, 456, 507, 437, 459, + /* 1520 */ 507, 12, 13, 463, 464, 465, 466, 467, 468, 376, + /* 1530 */ 470, 22, 360, 110, 427, 475, 373, 477, 413, 445, + /* 1540 */ 491, 481, 482, 427, 35, 373, 37, 110, 110, 512, + /* 1550 */ 427, 483, 391, 494, 439, 281, 52, 42, 458, 457, + /* 1560 */ 20, 450, 381, 221, 206, 208, 208, 455, 360, 450, + /* 1570 */ 381, 441, 204, 401, 20, 66, 372, 20, 373, 45, + /* 1580 */ 423, 373, 373, 423, 420, 183, 414, 372, 416, 373, + /* 1590 */ 372, 423, 107, 420, 420, 420, 385, 105, 240, 241, + /* 1600 */ 372, 384, 104, 383, 372, 372, 372, 20, 50, 401, + /* 1610 */ 365, 369, 254, 255, 256, 257, 258, 259, 260, 365, + /* 1620 */ 381, 369, 414, 20, 416, 20, 450, 381, 456, 416, + /* 1630 */ 381, 459, 374, 20, 440, 463, 464, 465, 466, 467, + /* 1640 */ 468, 381, 470, 374, 381, 20, 381, 475, 381, 477, + /* 1650 */ 365, 372, 430, 481, 482, 372, 381, 401, 401, 363, + /* 1660 */ 401, 414, 401, 401, 456, 401, 363, 459, 225, 401, + /* 1670 */ 365, 463, 464, 465, 466, 467, 468, 454, 470, 109, + /* 1680 */ 414, 401, 401, 401, 360, 477, 414, 401, 450, 481, + /* 1690 */ 482, 20, 452, 379, 212, 447, 289, 373, 211, 449, + /* 1700 */ 416, 446, 379, 500, 372, 414, 288, 500, 297, 439, + /* 1710 */ 197, 299, 298, 503, 502, 206, 282, 208, 499, 432, + /* 1720 */ 432, 360, 277, 498, 500, 401, 497, 303, 306, 439, + /* 1730 */ 301, 20, 495, 373, 373, 119, 279, 374, 414, 462, + /* 1740 */ 416, 360, 109, 379, 414, 514, 493, 238, 239, 240, + /* 1750 */ 520, 432, 414, 379, 373, 189, 373, 414, 360, 414, + /* 1760 */ 432, 414, 401, 254, 255, 256, 257, 258, 259, 260, + /* 1770 */ 379, 373, 480, 397, 428, 414, 379, 416, 109, 22, + /* 1780 */ 456, 38, 401, 459, 513, 405, 442, 463, 464, 465, + /* 1790 */ 466, 467, 468, 414, 470, 414, 414, 416, 365, 401, + /* 1800 */ 414, 477, 414, 414, 414, 481, 482, 372, 414, 414, + /* 1810 */ 414, 379, 414, 362, 416, 366, 358, 456, 414, 414, + /* 1820 */ 459, 0, 0, 414, 463, 464, 465, 466, 467, 468, + /* 1830 */ 0, 470, 380, 45, 414, 0, 433, 456, 477, 414, + /* 1840 */ 459, 414, 481, 482, 463, 464, 465, 466, 467, 468, + /* 1850 */ 469, 470, 471, 472, 456, 414, 360, 459, 414, 395, + /* 1860 */ 414, 463, 464, 465, 466, 467, 468, 414, 470, 373, + /* 1870 */ 414, 395, 360, 414, 1, 414, 414, 37, 395, 451, + /* 1880 */ 433, 231, 37, 37, 37, 373, 231, 0, 37, 37, + /* 1890 */ 231, 37, 19, 0, 231, 0, 37, 401, 0, 0, + /* 1900 */ 37, 22, 360, 505, 506, 0, 37, 226, 35, 0, + /* 1910 */ 414, 214, 416, 401, 0, 373, 214, 208, 215, 206, + /* 1920 */ 0, 0, 0, 202, 51, 52, 414, 201, 416, 0, + /* 1930 */ 0, 150, 49, 49, 61, 62, 63, 64, 0, 66, + /* 1940 */ 37, 0, 0, 401, 37, 0, 52, 0, 0, 49, + /* 1950 */ 0, 45, 456, 0, 0, 459, 414, 49, 416, 463, + /* 1960 */ 464, 465, 466, 467, 468, 0, 470, 0, 456, 0, + /* 1970 */ 360, 459, 0, 0, 169, 463, 464, 465, 466, 467, + /* 1980 */ 468, 108, 470, 373, 111, 0, 37, 169, 0, 477, + /* 1990 */ 0, 0, 0, 0, 482, 0, 0, 0, 456, 0, + /* 2000 */ 0, 459, 0, 0, 0, 463, 464, 465, 466, 467, + /* 2010 */ 468, 401, 470, 517, 518, 0, 143, 0, 0, 0, + /* 2020 */ 0, 0, 0, 49, 414, 0, 416, 45, 0, 0, + /* 2030 */ 0, 0, 0, 0, 0, 0, 22, 0, 150, 0, + /* 2040 */ 149, 0, 0, 0, 148, 360, 436, 0, 506, 22, + /* 2050 */ 37, 50, 66, 0, 0, 50, 0, 0, 373, 52, + /* 2060 */ 22, 188, 0, 37, 66, 0, 456, 0, 195, 459, + /* 2070 */ 0, 0, 0, 463, 464, 465, 466, 467, 468, 0, + /* 2080 */ 470, 37, 360, 33, 0, 49, 401, 214, 42, 66, + /* 2090 */ 42, 42, 52, 42, 42, 373, 37, 52, 37, 414, + /* 2100 */ 45, 416, 360, 14, 0, 0, 43, 49, 42, 49, + /* 2110 */ 197, 0, 0, 49, 0, 373, 0, 37, 42, 0, + /* 2120 */ 52, 436, 37, 401, 42, 52, 0, 37, 42, 52, + /* 2130 */ 0, 37, 0, 52, 42, 0, 414, 0, 416, 115, + /* 2140 */ 37, 456, 73, 401, 459, 0, 0, 0, 463, 464, + /* 2150 */ 465, 466, 467, 468, 0, 470, 414, 37, 416, 0, + /* 2160 */ 22, 37, 360, 22, 37, 37, 37, 0, 37, 33, + /* 2170 */ 37, 37, 22, 33, 22, 373, 0, 22, 456, 37, + /* 2180 */ 37, 459, 22, 0, 22, 463, 464, 465, 466, 467, + /* 2190 */ 468, 117, 470, 0, 37, 37, 0, 0, 456, 0, + /* 2200 */ 37, 459, 54, 401, 0, 463, 464, 465, 466, 467, + /* 2210 */ 468, 37, 470, 22, 20, 37, 414, 37, 416, 37, + /* 2220 */ 110, 0, 360, 213, 109, 0, 109, 37, 49, 22, + /* 2230 */ 0, 509, 22, 0, 0, 373, 33, 37, 3, 283, + /* 2240 */ 283, 33, 37, 3, 33, 50, 360, 33, 50, 33, + /* 2250 */ 49, 49, 33, 109, 283, 37, 107, 37, 456, 373, + /* 2260 */ 518, 459, 109, 401, 186, 463, 464, 465, 466, 467, + /* 2270 */ 468, 110, 470, 186, 472, 110, 414, 186, 416, 109, + /* 2280 */ 105, 186, 189, 186, 209, 37, 109, 401, 37, 193, + /* 2290 */ 109, 193, 37, 37, 110, 110, 109, 109, 436, 110, + /* 2300 */ 414, 49, 416, 33, 0, 0, 49, 42, 33, 2, + /* 2310 */ 49, 22, 49, 22, 0, 190, 110, 73, 456, 110, + /* 2320 */ 360, 459, 436, 110, 109, 463, 464, 465, 466, 467, + /* 2330 */ 468, 109, 470, 373, 110, 107, 107, 110, 42, 188, + /* 2340 */ 240, 110, 456, 49, 360, 459, 109, 109, 109, 463, + /* 2350 */ 464, 465, 466, 467, 468, 109, 470, 373, 109, 276, + /* 2360 */ 110, 401, 263, 109, 243, 118, 360, 37, 110, 109, + /* 2370 */ 37, 37, 110, 109, 414, 109, 416, 37, 110, 373, + /* 2380 */ 109, 109, 109, 109, 37, 401, 110, 109, 109, 37, + /* 2390 */ 110, 109, 37, 110, 109, 109, 119, 110, 414, 130, + /* 2400 */ 416, 33, 110, 110, 37, 110, 109, 401, 22, 109, + /* 2410 */ 72, 130, 22, 37, 130, 37, 456, 37, 37, 459, + /* 2420 */ 414, 37, 416, 463, 464, 465, 466, 467, 468, 130, + /* 2430 */ 470, 37, 37, 37, 37, 79, 79, 33, 103, 103, + /* 2440 */ 456, 22, 37, 459, 37, 37, 37, 463, 464, 465, + /* 2450 */ 466, 467, 468, 37, 470, 37, 79, 37, 37, 37, + /* 2460 */ 37, 22, 456, 37, 37, 459, 0, 37, 0, 463, + /* 2470 */ 464, 465, 466, 467, 468, 42, 470, 52, 37, 42, + /* 2480 */ 52, 0, 360, 37, 52, 42, 0, 37, 52, 42, + /* 2490 */ 0, 37, 0, 22, 37, 373, 0, 22, 33, 360, + /* 2500 */ 22, 21, 521, 521, 22, 20, 22, 521, 21, 521, + /* 2510 */ 521, 521, 373, 521, 521, 521, 360, 521, 521, 521, + /* 2520 */ 521, 521, 521, 401, 521, 521, 521, 521, 521, 373, + /* 2530 */ 521, 521, 521, 521, 521, 521, 414, 521, 416, 521, + /* 2540 */ 401, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2550 */ 521, 521, 521, 414, 521, 416, 521, 401, 521, 521, + /* 2560 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2570 */ 414, 521, 416, 521, 521, 521, 521, 521, 456, 521, + /* 2580 */ 521, 459, 521, 521, 521, 463, 464, 465, 466, 467, + /* 2590 */ 468, 521, 470, 521, 521, 456, 521, 521, 459, 521, + /* 2600 */ 521, 521, 463, 464, 465, 466, 467, 468, 521, 470, + /* 2610 */ 521, 521, 456, 521, 521, 459, 521, 521, 521, 463, + /* 2620 */ 464, 465, 466, 467, 468, 521, 470, 360, 521, 521, + /* 2630 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2640 */ 373, 521, 521, 521, 521, 521, 521, 521, 360, 521, + /* 2650 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2660 */ 521, 373, 521, 521, 521, 521, 521, 521, 401, 521, + /* 2670 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2680 */ 521, 414, 521, 416, 521, 521, 360, 521, 521, 401, + /* 2690 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 373, + /* 2700 */ 521, 521, 414, 521, 416, 360, 521, 521, 521, 521, + /* 2710 */ 521, 521, 521, 521, 521, 521, 521, 521, 373, 521, + /* 2720 */ 521, 521, 521, 456, 521, 521, 459, 401, 521, 521, + /* 2730 */ 463, 464, 465, 466, 467, 468, 521, 470, 521, 521, + /* 2740 */ 414, 521, 416, 521, 456, 521, 401, 459, 521, 521, + /* 2750 */ 521, 463, 464, 465, 466, 467, 468, 521, 470, 414, + /* 2760 */ 521, 416, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2770 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2780 */ 521, 521, 456, 521, 360, 459, 521, 521, 521, 463, + /* 2790 */ 464, 465, 466, 467, 468, 521, 470, 373, 521, 521, + /* 2800 */ 521, 456, 521, 521, 459, 521, 521, 521, 463, 464, + /* 2810 */ 465, 466, 467, 468, 521, 470, 521, 521, 521, 521, + /* 2820 */ 521, 521, 521, 360, 521, 401, 521, 521, 521, 521, + /* 2830 */ 521, 521, 521, 521, 521, 521, 373, 521, 414, 521, + /* 2840 */ 416, 521, 521, 360, 521, 521, 521, 521, 521, 521, + /* 2850 */ 521, 521, 521, 521, 521, 521, 373, 521, 521, 521, + /* 2860 */ 360, 521, 521, 521, 401, 521, 521, 521, 521, 521, + /* 2870 */ 521, 521, 521, 373, 521, 521, 521, 414, 521, 416, + /* 2880 */ 456, 521, 521, 459, 401, 521, 521, 463, 464, 465, + /* 2890 */ 466, 467, 468, 521, 470, 521, 521, 414, 521, 416, + /* 2900 */ 521, 401, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2910 */ 521, 521, 521, 521, 414, 521, 416, 521, 521, 456, + /* 2920 */ 521, 521, 459, 521, 521, 521, 463, 464, 465, 466, + /* 2930 */ 467, 468, 521, 470, 521, 521, 521, 521, 521, 456, + /* 2940 */ 521, 521, 459, 521, 521, 521, 463, 464, 465, 466, + /* 2950 */ 467, 468, 521, 470, 521, 521, 456, 521, 521, 459, + /* 2960 */ 521, 521, 521, 463, 464, 465, 466, 467, 468, 521, + /* 2970 */ 470, 521, 521, 360, 521, 521, 521, 521, 521, 521, + /* 2980 */ 521, 521, 521, 521, 521, 521, 373, 521, 521, 521, + /* 2990 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3000 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 360, + /* 3010 */ 521, 521, 521, 521, 401, 521, 521, 521, 521, 521, + /* 3020 */ 521, 521, 373, 521, 521, 521, 521, 414, 521, 416, + /* 3030 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3040 */ 521, 521, 521, 521, 360, 521, 521, 521, 521, 521, + /* 3050 */ 401, 521, 521, 521, 521, 521, 521, 373, 521, 521, + /* 3060 */ 521, 521, 521, 414, 521, 416, 521, 521, 521, 456, + /* 3070 */ 521, 521, 459, 521, 521, 521, 463, 464, 465, 466, + /* 3080 */ 467, 468, 521, 470, 521, 401, 521, 521, 360, 521, + /* 3090 */ 521, 521, 521, 521, 521, 521, 521, 521, 414, 521, + /* 3100 */ 416, 373, 521, 521, 521, 456, 521, 521, 459, 521, + /* 3110 */ 521, 521, 463, 464, 465, 466, 467, 468, 521, 470, + /* 3120 */ 360, 521, 521, 521, 521, 521, 521, 521, 521, 401, + /* 3130 */ 521, 521, 521, 373, 521, 521, 521, 521, 521, 521, + /* 3140 */ 456, 521, 414, 459, 416, 360, 521, 463, 464, 465, + /* 3150 */ 466, 467, 468, 521, 470, 521, 521, 521, 373, 521, + /* 3160 */ 521, 401, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3170 */ 521, 521, 521, 521, 414, 521, 416, 521, 521, 521, + /* 3180 */ 521, 521, 521, 521, 456, 521, 401, 459, 521, 521, + /* 3190 */ 521, 463, 464, 465, 466, 467, 468, 521, 470, 414, + /* 3200 */ 521, 416, 521, 521, 360, 521, 521, 521, 521, 521, + /* 3210 */ 521, 521, 521, 521, 521, 521, 456, 373, 521, 459, + /* 3220 */ 521, 360, 521, 463, 464, 465, 466, 467, 468, 521, + /* 3230 */ 470, 521, 521, 521, 373, 521, 521, 521, 521, 521, + /* 3240 */ 521, 456, 521, 521, 459, 401, 521, 521, 463, 464, + /* 3250 */ 465, 466, 467, 468, 521, 470, 521, 521, 414, 521, + /* 3260 */ 416, 521, 401, 521, 521, 521, 521, 521, 521, 521, + /* 3270 */ 521, 521, 521, 521, 521, 414, 521, 416, 521, 521, + /* 3280 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3290 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3300 */ 456, 521, 521, 459, 521, 521, 521, 463, 464, 465, + /* 3310 */ 466, 467, 468, 521, 470, 521, 521, 456, 521, 521, + /* 3320 */ 459, 521, 521, 521, 463, 464, 465, 466, 467, 468, + /* 3330 */ 521, 470, 357, 357, 357, 357, 357, 357, 357, 357, /* 3340 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, /* 3350 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, /* 3360 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, @@ -873,236 +900,262 @@ static const YYCODETYPE yy_lookahead[] = { /* 3390 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, /* 3400 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, /* 3410 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, - /* 3420 */ 357, 357, 357, 357, 357, + /* 3420 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3430 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3440 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3450 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3460 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3470 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3480 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3490 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3500 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3510 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3520 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3530 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3540 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3550 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3560 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3570 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3580 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3590 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3600 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3610 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3620 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3630 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3640 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3650 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3660 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3670 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, 357, + /* 3680 */ 357, 357, 357, 357, 357, 357, 357, 357, 357, }; -#define YY_SHIFT_COUNT (894) +#define YY_SHIFT_COUNT (899) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2501) +#define YY_SHIFT_MAX (2496) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 502, 0, 250, 0, 501, 501, 501, 501, 501, 501, /* 10 */ 501, 501, 501, 501, 501, 501, 751, 1001, 1001, 1251, /* 20 */ 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, /* 30 */ 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, /* 40 */ 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, 1001, - /* 50 */ 262, 535, 281, 95, 58, 313, 58, 58, 95, 95, - /* 60 */ 58, 1121, 58, 249, 1121, 554, 58, 122, 1402, 182, - /* 70 */ 282, 282, 1402, 1402, 287, 287, 182, 136, 167, 4, - /* 80 */ 4, 72, 282, 282, 282, 282, 282, 282, 282, 282, - /* 90 */ 282, 282, 282, 467, 534, 282, 282, 494, 122, 282, - /* 100 */ 467, 282, 122, 282, 282, 122, 282, 282, 122, 282, - /* 110 */ 122, 122, 122, 282, 515, 209, 209, 752, 207, 852, - /* 120 */ 852, 852, 852, 852, 852, 852, 852, 852, 852, 852, - /* 130 */ 852, 852, 852, 852, 852, 852, 852, 852, 926, 437, - /* 140 */ 136, 167, 977, 977, 354, 183, 183, 183, 368, 368, - /* 150 */ 289, 258, 354, 494, 533, 122, 576, 122, 122, 830, - /* 160 */ 122, 830, 830, 776, 981, 218, 218, 218, 218, 218, - /* 170 */ 218, 218, 218, 1903, 1272, 23, 435, 536, 71, 20, - /* 180 */ 356, 380, 598, 425, 425, 720, 721, 1045, 750, 750, - /* 190 */ 750, 382, 1084, 750, 907, 434, 924, 668, 989, 434, - /* 200 */ 434, 1002, 903, 1005, 845, 903, 843, 786, 258, 1258, - /* 210 */ 1493, 1505, 1529, 1331, 494, 1529, 494, 1360, 1546, 1548, - /* 220 */ 1524, 1548, 1524, 1390, 1546, 1548, 1546, 1524, 1390, 1390, - /* 230 */ 1390, 1479, 1484, 1546, 1488, 1546, 1546, 1546, 1577, 1549, - /* 240 */ 1577, 1549, 1529, 494, 494, 1585, 494, 1591, 1593, 494, - /* 250 */ 1591, 494, 1612, 494, 494, 1546, 494, 1577, 122, 122, - /* 260 */ 122, 122, 122, 122, 122, 122, 122, 122, 122, 1546, - /* 270 */ 981, 981, 1577, 830, 830, 830, 1439, 1562, 1529, 515, - /* 280 */ 1673, 1485, 1487, 1585, 515, 1258, 1546, 830, 1419, 1422, - /* 290 */ 1419, 1422, 1417, 1518, 1419, 1426, 1435, 1462, 1258, 1442, - /* 300 */ 1444, 1448, 1468, 1548, 1739, 1642, 1489, 1591, 515, 515, - /* 310 */ 1658, 1422, 830, 830, 830, 830, 1422, 830, 1590, 515, - /* 320 */ 776, 515, 1548, 830, 830, 830, 830, 830, 830, 830, - /* 330 */ 830, 830, 830, 830, 830, 830, 830, 830, 830, 830, - /* 340 */ 830, 830, 830, 830, 830, 1682, 830, 1546, 515, 1772, - /* 350 */ 1760, 1577, 3068, 3068, 3068, 3068, 3068, 3068, 3068, 3068, - /* 360 */ 3068, 36, 2194, 268, 873, 452, 584, 675, 17, 708, - /* 370 */ 940, 389, 661, 1069, 1069, 1069, 1069, 1069, 1069, 1069, - /* 380 */ 1069, 1069, 1151, 65, 176, 89, 89, 288, 362, 426, - /* 390 */ 427, 589, 739, 781, 439, 1161, 1191, 704, 869, 1071, - /* 400 */ 194, 869, 869, 869, 134, 134, 922, 1074, 952, 1112, - /* 410 */ 934, 1110, 1300, 1190, 1196, 1198, 1200, 1288, 1301, 1086, - /* 420 */ 1318, 1319, 1320, 802, 1283, 1303, 42, 1311, 1312, 1317, - /* 430 */ 1330, 1178, 798, 44, 1335, 1381, 1338, 1034, 1339, 1286, - /* 440 */ 1336, 1352, 1354, 1355, 1356, 1394, 1396, 1406, 1413, 1416, - /* 450 */ 1418, 1438, 1440, 1443, 1457, 1465, 1378, 1421, 1427, 1434, - /* 460 */ 1441, 1449, 1234, 1239, 1347, 1450, 1506, 1353, 1423, 1803, - /* 470 */ 1832, 1834, 1790, 1836, 1801, 1608, 1807, 1808, 1809, 1617, - /* 480 */ 1843, 1815, 1816, 1629, 1825, 1863, 1633, 1865, 1830, 1868, - /* 490 */ 1833, 1871, 1850, 1881, 1845, 1657, 1884, 1671, 1886, 1674, - /* 500 */ 1672, 1681, 1684, 1893, 1906, 1907, 1707, 1709, 1911, 1913, - /* 510 */ 1764, 1866, 1867, 1918, 1882, 1921, 1923, 1887, 1873, 1926, - /* 520 */ 1880, 1930, 1888, 1931, 1935, 1937, 1890, 1940, 1941, 1942, - /* 530 */ 1943, 1944, 1945, 1777, 1910, 1951, 1780, 1952, 1953, 1956, - /* 540 */ 1957, 1958, 1959, 1960, 1961, 1962, 1963, 1968, 1971, 1972, - /* 550 */ 1973, 1975, 1978, 1979, 1980, 1987, 1991, 1946, 1992, 1964, - /* 560 */ 1994, 1996, 2003, 2005, 2006, 2007, 2008, 2010, 1990, 2013, - /* 570 */ 1869, 2015, 1872, 2016, 1870, 2022, 2023, 2004, 1977, 2012, - /* 580 */ 1982, 2025, 1969, 1993, 2028, 1970, 2037, 1974, 2038, 2039, - /* 590 */ 2011, 1989, 2000, 2043, 2017, 1995, 2002, 2045, 2018, 1997, - /* 600 */ 2014, 2050, 2020, 2053, 2019, 2021, 2026, 2009, 2027, 2046, - /* 610 */ 2035, 2066, 2024, 2030, 2068, 2069, 2070, 2077, 2044, 1891, - /* 620 */ 2087, 2009, 2040, 2092, 2094, 2029, 2095, 2096, 2060, 2047, - /* 630 */ 2058, 2101, 2067, 2054, 2071, 2108, 2072, 2059, 2074, 2110, - /* 640 */ 2075, 2076, 2078, 2114, 2119, 2121, 2130, 2132, 2133, 2031, - /* 650 */ 1947, 2097, 2113, 2136, 2115, 2102, 2103, 2104, 2105, 2107, - /* 660 */ 2109, 2112, 2116, 2118, 2127, 2125, 2126, 2142, 2128, 2138, - /* 670 */ 2145, 2152, 2147, 2170, 2149, 2120, 2172, 2151, 2139, 2175, - /* 680 */ 2177, 2178, 2143, 2181, 2146, 2182, 2162, 2166, 2153, 2154, - /* 690 */ 2161, 2079, 2093, 2203, 2032, 2106, 1998, 2009, 2155, 2205, - /* 700 */ 2034, 2169, 2186, 2210, 2036, 2191, 2041, 2033, 2214, 2216, - /* 710 */ 2048, 2042, 2051, 2055, 2220, 2184, 1948, 2117, 2122, 2124, - /* 720 */ 2129, 2187, 2193, 2134, 2188, 2137, 2197, 2131, 2140, 2218, - /* 730 */ 2219, 2144, 2150, 2157, 2165, 2167, 2230, 2200, 2227, 2171, - /* 740 */ 2245, 2001, 2173, 2176, 2276, 2248, 2049, 2250, 2251, 2258, - /* 750 */ 2260, 2261, 2262, 2190, 2198, 2252, 2052, 2270, 2255, 2306, - /* 760 */ 2311, 2204, 2278, 2279, 2217, 2063, 2222, 2321, 2305, 2090, - /* 770 */ 2221, 2224, 2225, 2285, 2228, 2231, 2287, 2229, 2319, 2111, - /* 780 */ 2233, 2234, 2235, 2237, 2238, 2158, 2240, 2351, 2310, 2179, - /* 790 */ 2244, 2239, 2009, 2309, 2246, 2254, 2249, 2259, 2263, 2241, - /* 800 */ 2264, 2324, 2328, 2266, 2267, 2332, 2272, 2269, 2333, 2277, - /* 810 */ 2275, 2334, 2282, 2283, 2350, 2286, 2284, 2355, 2288, 2271, - /* 820 */ 2273, 2280, 2289, 2290, 2343, 2291, 2365, 2296, 2343, 2343, - /* 830 */ 2366, 2336, 2345, 2384, 2387, 2388, 2389, 2396, 2399, 2400, - /* 840 */ 2402, 2405, 2406, 2342, 2341, 2372, 2352, 2421, 2419, 2420, - /* 850 */ 2423, 2439, 2425, 2427, 2428, 2379, 2118, 2429, 2127, 2430, - /* 860 */ 2431, 2432, 2433, 2449, 2437, 2473, 2441, 2424, 2438, 2479, - /* 870 */ 2445, 2434, 2442, 2483, 2448, 2435, 2446, 2489, 2454, 2440, - /* 880 */ 2452, 2490, 2459, 2497, 2476, 2462, 2501, 2480, 2470, 2484, - /* 890 */ 2486, 2487, 2488, 2492, 2485, + /* 50 */ 177, 262, 702, 87, 134, 466, 134, 134, 87, 87, + /* 60 */ 134, 1358, 134, 249, 1358, 288, 134, 142, 1509, 119, + /* 70 */ 183, 183, 1509, 1509, 514, 514, 119, 255, 287, 269, + /* 80 */ 269, 88, 183, 183, 183, 183, 183, 183, 183, 183, + /* 90 */ 183, 183, 183, 284, 328, 183, 183, 311, 142, 183, + /* 100 */ 284, 183, 142, 183, 183, 142, 183, 183, 142, 183, + /* 110 */ 142, 142, 142, 183, 322, 209, 209, 218, 752, 207, + /* 120 */ 746, 746, 746, 746, 746, 746, 746, 746, 746, 746, + /* 130 */ 746, 746, 746, 746, 746, 746, 746, 746, 746, 1302, + /* 140 */ 303, 255, 287, 1046, 1046, 874, 258, 258, 258, 762, + /* 150 */ 762, 592, 911, 874, 311, 352, 142, 297, 142, 142, + /* 160 */ 596, 142, 596, 596, 533, 758, 252, 252, 252, 252, + /* 170 */ 252, 252, 252, 1873, 1226, 21, 282, 15, 171, 201, + /* 180 */ 750, 380, 720, 811, 811, 902, 1029, 1109, 62, 62, + /* 190 */ 62, 94, 695, 62, 437, 1038, 1276, 640, 1095, 1038, + /* 200 */ 1038, 1093, 1027, 1122, 516, 1027, 1289, 1052, 911, 1274, + /* 210 */ 1504, 1515, 1540, 1342, 311, 1540, 311, 1368, 1554, 1557, + /* 220 */ 1534, 1557, 1534, 1402, 1554, 1557, 1554, 1534, 1402, 1402, + /* 230 */ 1402, 1485, 1492, 1554, 1498, 1554, 1554, 1554, 1587, 1558, + /* 240 */ 1587, 1558, 1540, 311, 311, 1603, 311, 1605, 1613, 311, + /* 250 */ 1605, 311, 1625, 311, 311, 1554, 311, 1587, 142, 142, + /* 260 */ 142, 142, 142, 142, 142, 142, 142, 142, 142, 1554, + /* 270 */ 758, 758, 1587, 596, 596, 596, 1443, 1570, 1540, 322, + /* 280 */ 1671, 1482, 1487, 1603, 322, 1274, 1554, 596, 1407, 1418, + /* 290 */ 1407, 1418, 1411, 1513, 1407, 1412, 1414, 1434, 1274, 1422, + /* 300 */ 1424, 1429, 1445, 1557, 1711, 1616, 1457, 1605, 322, 322, + /* 310 */ 1633, 1418, 596, 596, 596, 596, 1418, 596, 1566, 322, + /* 320 */ 533, 322, 1557, 596, 596, 596, 596, 596, 596, 596, + /* 330 */ 596, 596, 596, 596, 596, 596, 596, 596, 596, 596, + /* 340 */ 596, 596, 596, 596, 596, 1669, 596, 1554, 322, 1757, + /* 350 */ 1743, 1587, 3332, 3332, 3332, 3332, 3332, 3332, 3332, 3332, + /* 360 */ 3332, 36, 492, 422, 160, 917, 80, 573, 319, 582, + /* 370 */ 932, 390, 583, 789, 789, 789, 789, 789, 789, 789, + /* 380 */ 789, 789, 222, 476, 674, 535, 535, 373, 259, 38, + /* 390 */ 681, 408, 730, 824, 174, 694, 993, 1009, 412, 1090, + /* 400 */ 534, 412, 412, 412, 1058, 1058, 915, 1083, 1202, 1166, + /* 410 */ 1304, 1092, 70, 1199, 1221, 1243, 1244, 1326, 1341, 689, + /* 420 */ 1316, 1385, 1387, 1075, 1273, 1298, 1278, 1312, 1313, 1317, + /* 430 */ 1331, 1236, 266, 1147, 1336, 1400, 1355, 922, 1359, 1170, + /* 440 */ 1365, 1367, 1370, 1371, 1372, 1399, 1401, 1413, 1416, 1419, + /* 450 */ 1426, 1436, 1440, 1442, 1450, 1454, 1373, 1377, 1384, 1423, + /* 460 */ 1437, 1438, 759, 229, 1357, 1408, 1421, 1393, 1460, 1821, + /* 470 */ 1822, 1830, 1788, 1835, 1840, 1650, 1845, 1846, 1847, 1655, + /* 480 */ 1887, 1851, 1852, 1659, 1854, 1893, 1663, 1895, 1859, 1898, + /* 490 */ 1863, 1899, 1879, 1905, 1869, 1681, 1909, 1697, 1914, 1702, + /* 500 */ 1703, 1709, 1713, 1920, 1921, 1922, 1721, 1726, 1929, 1930, + /* 510 */ 1781, 1883, 1884, 1938, 1903, 1941, 1942, 1907, 1894, 1945, + /* 520 */ 1900, 1947, 1906, 1948, 1950, 1953, 1908, 1954, 1965, 1967, + /* 530 */ 1969, 1972, 1973, 1805, 1949, 1985, 1818, 1988, 1990, 1991, + /* 540 */ 1992, 1993, 1995, 1996, 1997, 1999, 2000, 2002, 2003, 2004, + /* 550 */ 2015, 2017, 2018, 2019, 2020, 2021, 2022, 1974, 2025, 1982, + /* 560 */ 2028, 2029, 2030, 2031, 2032, 2033, 2034, 2035, 2014, 2037, + /* 570 */ 1888, 2039, 1891, 2041, 1896, 2042, 2043, 2027, 2001, 2038, + /* 580 */ 2005, 2047, 1986, 2013, 2053, 1998, 2054, 2023, 2056, 2057, + /* 590 */ 2026, 2007, 2046, 2062, 2044, 2040, 2048, 2065, 2059, 2045, + /* 600 */ 2049, 2067, 2061, 2070, 2055, 2051, 2050, 2036, 2058, 2089, + /* 610 */ 2060, 2071, 2063, 2052, 2072, 2079, 2084, 2104, 2066, 1913, + /* 620 */ 2105, 2036, 2064, 2111, 2112, 2069, 2114, 2116, 2080, 2068, + /* 630 */ 2076, 2119, 2085, 2073, 2082, 2126, 2090, 2077, 2086, 2130, + /* 640 */ 2094, 2081, 2092, 2132, 2135, 2137, 2145, 2146, 2147, 2074, + /* 650 */ 2024, 2103, 2138, 2154, 2141, 2120, 2124, 2127, 2128, 2129, + /* 660 */ 2131, 2133, 2134, 2136, 2140, 2142, 2143, 2150, 2157, 2159, + /* 670 */ 2152, 2167, 2155, 2176, 2160, 2148, 2183, 2162, 2158, 2193, + /* 680 */ 2196, 2197, 2163, 2199, 2174, 2204, 2191, 2194, 2178, 2180, + /* 690 */ 2182, 2110, 2115, 2221, 2078, 2117, 2010, 2036, 2179, 2225, + /* 700 */ 2087, 2190, 2207, 2230, 2075, 2210, 2091, 2093, 2233, 2234, + /* 710 */ 2095, 2096, 2097, 2098, 2235, 2203, 1956, 2144, 2161, 2153, + /* 720 */ 2165, 2200, 2205, 2170, 2195, 2149, 2198, 2175, 2184, 2208, + /* 730 */ 2211, 2185, 2177, 2181, 2187, 2189, 2214, 2201, 2202, 2188, + /* 740 */ 2216, 1957, 2206, 2209, 2240, 2219, 1971, 2218, 2220, 2248, + /* 750 */ 2251, 2255, 2256, 2213, 2224, 2252, 2083, 2270, 2257, 2304, + /* 760 */ 2305, 2215, 2265, 2275, 2228, 2099, 2229, 2307, 2289, 2100, + /* 770 */ 2227, 2231, 2222, 2237, 2238, 2239, 2246, 2250, 2261, 2249, + /* 780 */ 2254, 2263, 2258, 2291, 2121, 2260, 2262, 2268, 2264, 2266, + /* 790 */ 2125, 2271, 2314, 2296, 2151, 2272, 2247, 2036, 2294, 2273, + /* 800 */ 2274, 2276, 2278, 2279, 2277, 2280, 2330, 2333, 2282, 2283, + /* 810 */ 2334, 2285, 2287, 2340, 2222, 2292, 2347, 2237, 2293, 2352, + /* 820 */ 2238, 2295, 2355, 2239, 2269, 2281, 2284, 2299, 2286, 2368, + /* 830 */ 2297, 2367, 2300, 2368, 2368, 2386, 2244, 2338, 2390, 2376, + /* 840 */ 2378, 2380, 2381, 2384, 2394, 2395, 2396, 2397, 2356, 2335, + /* 850 */ 2357, 2336, 2404, 2405, 2407, 2408, 2419, 2409, 2416, 2418, + /* 860 */ 2377, 2136, 2420, 2140, 2421, 2422, 2423, 2426, 2439, 2427, + /* 870 */ 2466, 2430, 2425, 2433, 2468, 2441, 2428, 2437, 2481, 2446, + /* 880 */ 2432, 2443, 2486, 2450, 2436, 2447, 2490, 2454, 2492, 2471, + /* 890 */ 2457, 2496, 2475, 2465, 2478, 2480, 2482, 2484, 2487, 2485, }; #define YY_REDUCE_COUNT (360) -#define YY_REDUCE_MIN (-476) -#define YY_REDUCE_MAX (2598) +#define YY_REDUCE_MIN (-478) +#define YY_REDUCE_MAX (2861) static const short yy_reduce_ofst[] = { - /* 0 */ 1047, -315, 162, 193, 406, 436, 506, 656, 686, 756, - /* 10 */ 936, 1060, 1157, 1215, 1254, 1274, -83, 1392, 1411, 1436, - /* 20 */ 1519, 1535, 1616, 1660, 1692, 1730, 1806, 1827, 1852, 1949, - /* 30 */ 1965, 1983, 2062, 2080, 2099, 2159, 2180, 2196, 2226, 2256, - /* 40 */ 2293, 2323, 2339, 2409, 2436, 2453, 2482, 2520, 2554, 2598, - /* 50 */ -316, -333, -421, 99, 539, 588, 687, 724, 242, 309, - /* 60 */ 789, -194, -450, -344, -374, 46, 125, -230, -262, -352, - /* 70 */ -365, -330, -6, 206, -367, -361, -204, 366, -324, 298, - /* 80 */ 340, -302, -172, 306, 450, 486, 442, 483, 542, 568, - /* 90 */ 645, 660, 573, -2, -332, 671, 678, -224, 173, 683, - /* 100 */ 327, 717, 376, 723, 767, -78, 792, 816, 510, 818, - /* 110 */ 302, 512, 415, 893, 709, -476, -476, -65, 52, -253, - /* 120 */ -170, 166, 320, 365, 423, 570, 577, 628, 757, 782, - /* 130 */ 803, 822, 857, 909, 915, 918, 919, 921, -395, -34, - /* 140 */ -212, -188, 795, 799, 564, -34, 32, 158, 231, 240, - /* 150 */ -240, 277, 741, 290, 373, -355, 390, 123, 411, 480, - /* 160 */ 451, 681, 725, 809, 841, -391, 626, 643, 772, 838, - /* 170 */ 882, 905, 838, 878, 804, 863, 913, 840, 849, 886, - /* 180 */ 1016, 1033, 1033, 1049, 1052, 1018, 1087, 1046, 965, 973, - /* 190 */ 974, 1050, 1033, 975, 1107, 1059, 1117, 1082, 1070, 1090, - /* 200 */ 1094, 1033, 1023, 1023, 1010, 1023, 1051, 1035, 1141, 1104, - /* 210 */ 1089, 1092, 1101, 1099, 1173, 1111, 1182, 1125, 1195, 1201, - /* 220 */ 1149, 1203, 1155, 1159, 1207, 1208, 1210, 1158, 1164, 1165, - /* 230 */ 1166, 1202, 1206, 1219, 1211, 1221, 1223, 1224, 1233, 1231, - /* 240 */ 1236, 1235, 1153, 1222, 1225, 1192, 1228, 1243, 1179, 1244, - /* 250 */ 1255, 1262, 1216, 1263, 1265, 1264, 1267, 1270, 1238, 1248, - /* 260 */ 1249, 1250, 1252, 1253, 1271, 1273, 1275, 1282, 1284, 1280, - /* 270 */ 1302, 1305, 1298, 1277, 1279, 1281, 1213, 1237, 1256, 1307, - /* 280 */ 1259, 1257, 1261, 1285, 1322, 1266, 1327, 1289, 1212, 1291, - /* 290 */ 1214, 1293, 1226, 1230, 1227, 1229, 1245, 1260, 1308, 1232, - /* 300 */ 1240, 1246, 1023, 1384, 1299, 1268, 1278, 1389, 1385, 1387, - /* 310 */ 1290, 1341, 1361, 1362, 1363, 1364, 1342, 1365, 1358, 1401, - /* 320 */ 1386, 1403, 1408, 1373, 1374, 1375, 1376, 1377, 1379, 1382, - /* 330 */ 1388, 1391, 1393, 1395, 1397, 1398, 1400, 1404, 1405, 1407, - /* 340 */ 1409, 1410, 1412, 1414, 1415, 1424, 1420, 1425, 1437, 1452, - /* 350 */ 1433, 1454, 1359, 1371, 1370, 1383, 1445, 1446, 1447, 1451, - /* 360 */ 1472, + /* 0 */ 668, -316, 162, 192, 406, 435, 507, 656, 686, 757, + /* 10 */ 909, 1060, 1172, 1208, 1324, 1361, 1381, 1398, 1496, 1512, + /* 20 */ 1542, 1610, 1685, 1722, 1742, 1802, 1862, 1886, 1960, 1984, + /* 30 */ 2006, 2122, 2139, 2156, 2267, 2288, 2326, 2345, 2424, 2463, + /* 40 */ 2483, 2500, 2613, 2649, 2684, 2728, 2760, 2785, 2844, 2861, + /* 50 */ -317, -334, 579, -172, -429, 374, 403, 837, 304, 555, + /* 60 */ 851, 56, -306, -357, -355, -414, 125, -391, -243, -358, + /* 70 */ -367, -99, 202, 220, -363, -214, -205, -385, 238, -303, + /* 80 */ 241, -96, 292, 404, 446, 483, 442, 606, 661, 677, + /* 90 */ 682, 692, 675, 326, -339, 706, 713, 553, -230, 736, + /* 100 */ 336, 709, 548, 763, 767, -390, 797, 802, 726, 804, + /* 110 */ 420, 764, 642, 818, 324, -478, -478, 232, 496, 180, + /* 120 */ 185, 217, 219, 264, 604, 623, 625, 700, 781, 822, + /* 130 */ 852, 854, 858, 870, 871, 873, 877, 880, 884, 493, + /* 140 */ -408, -259, 427, 810, 826, 819, -408, 157, 242, 194, + /* 150 */ 599, -190, -348, 890, 574, 523, 265, 364, 798, 203, + /* 160 */ 547, 800, 856, 867, 699, 929, 331, 429, 618, 664, + /* 170 */ 714, 723, 714, 839, 1057, 1089, 992, 949, 965, 977, + /* 180 */ 1103, 1084, 1084, 1097, 1099, 1062, 1113, 1063, 1007, 1008, + /* 190 */ 1010, 1081, 1084, 1013, 1153, 1107, 1163, 1125, 1094, 1116, + /* 200 */ 1123, 1084, 1049, 1049, 1037, 1049, 1068, 1059, 1161, 1115, + /* 210 */ 1100, 1102, 1111, 1112, 1181, 1119, 1189, 1130, 1204, 1205, + /* 220 */ 1157, 1209, 1160, 1164, 1215, 1216, 1218, 1168, 1173, 1174, + /* 230 */ 1175, 1211, 1217, 1228, 1220, 1232, 1233, 1234, 1245, 1242, + /* 240 */ 1254, 1252, 1176, 1239, 1246, 1213, 1249, 1258, 1194, 1260, + /* 250 */ 1269, 1263, 1222, 1265, 1267, 1279, 1275, 1285, 1256, 1257, + /* 260 */ 1259, 1261, 1262, 1264, 1268, 1280, 1281, 1282, 1286, 1283, + /* 270 */ 1296, 1303, 1305, 1247, 1266, 1272, 1223, 1240, 1238, 1314, + /* 280 */ 1250, 1248, 1255, 1284, 1323, 1270, 1332, 1291, 1203, 1287, + /* 290 */ 1207, 1288, 1210, 1212, 1224, 1219, 1225, 1229, 1290, 1230, + /* 300 */ 1231, 1271, 1049, 1360, 1277, 1237, 1253, 1363, 1364, 1374, + /* 310 */ 1292, 1319, 1330, 1338, 1343, 1345, 1328, 1347, 1346, 1391, + /* 320 */ 1376, 1397, 1383, 1379, 1382, 1386, 1388, 1389, 1390, 1394, + /* 330 */ 1395, 1396, 1404, 1405, 1409, 1420, 1425, 1427, 1441, 1444, + /* 340 */ 1446, 1453, 1456, 1459, 1461, 1380, 1462, 1435, 1432, 1451, + /* 350 */ 1449, 1433, 1344, 1428, 1403, 1447, 1464, 1476, 1483, 1452, + /* 360 */ 1458, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 10 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 20 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 30 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 40 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 50 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 60 */ 2369, 2024, 2024, 2332, 2024, 2024, 2024, 2024, 2024, 2024, - /* 70 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2339, 2024, 2024, - /* 80 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 90 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2124, 2024, 2024, - /* 100 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 110 */ 2024, 2024, 2024, 2024, 2122, 2613, 2024, 2024, 2024, 2024, - /* 120 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 130 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2625, - /* 140 */ 2024, 2024, 2096, 2096, 2024, 2625, 2625, 2625, 2585, 2585, - /* 150 */ 2122, 2024, 2024, 2124, 2407, 2024, 2024, 2024, 2024, 2024, - /* 160 */ 2024, 2024, 2024, 2249, 2054, 2024, 2024, 2024, 2024, 2273, - /* 170 */ 2024, 2024, 2024, 2395, 2024, 2024, 2654, 2716, 2024, 2657, - /* 180 */ 2024, 2024, 2024, 2024, 2024, 2344, 2024, 2644, 2024, 2024, - /* 190 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2202, 2389, 2024, - /* 200 */ 2024, 2024, 2617, 2631, 2700, 2618, 2615, 2638, 2024, 2648, - /* 210 */ 2024, 2432, 2024, 2421, 2124, 2024, 2124, 2382, 2327, 2024, - /* 220 */ 2337, 2024, 2337, 2334, 2024, 2024, 2024, 2337, 2334, 2334, - /* 230 */ 2334, 2191, 2187, 2024, 2185, 2024, 2024, 2024, 2024, 2079, - /* 240 */ 2024, 2079, 2024, 2124, 2124, 2024, 2124, 2024, 2024, 2124, - /* 250 */ 2024, 2124, 2024, 2124, 2124, 2024, 2124, 2024, 2024, 2024, - /* 260 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 270 */ 2024, 2024, 2024, 2024, 2024, 2024, 2419, 2405, 2024, 2122, - /* 280 */ 2024, 2393, 2391, 2024, 2122, 2648, 2024, 2024, 2670, 2665, - /* 290 */ 2670, 2665, 2684, 2680, 2670, 2689, 2686, 2650, 2648, 2719, - /* 300 */ 2706, 2702, 2631, 2024, 2024, 2636, 2634, 2024, 2122, 2122, - /* 310 */ 2024, 2665, 2024, 2024, 2024, 2024, 2665, 2024, 2024, 2122, - /* 320 */ 2024, 2122, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 330 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 340 */ 2024, 2024, 2024, 2024, 2024, 2218, 2024, 2024, 2122, 2024, - /* 350 */ 2063, 2024, 2384, 2410, 2365, 2365, 2252, 2252, 2252, 2125, - /* 360 */ 2029, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 370 */ 2024, 2024, 2024, 2683, 2682, 2537, 2024, 2589, 2588, 2587, - /* 380 */ 2578, 2536, 2214, 2024, 2024, 2535, 2534, 2024, 2024, 2024, - /* 390 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2528, 2024, - /* 400 */ 2024, 2529, 2527, 2526, 2356, 2355, 2024, 2024, 2024, 2024, - /* 410 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 420 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 430 */ 2024, 2024, 2703, 2707, 2024, 2614, 2024, 2024, 2024, 2508, - /* 440 */ 2024, 2024, 2024, 2024, 2024, 2476, 2471, 2462, 2453, 2468, - /* 450 */ 2459, 2447, 2465, 2456, 2444, 2441, 2024, 2024, 2024, 2024, - /* 460 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 470 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 480 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 490 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 500 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 510 */ 2333, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 520 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 530 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 540 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 550 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 560 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 570 */ 2024, 2024, 2024, 2024, 2348, 2024, 2024, 2024, 2024, 2024, - /* 580 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 590 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 600 */ 2024, 2024, 2024, 2024, 2024, 2024, 2068, 2515, 2024, 2024, - /* 610 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 620 */ 2024, 2518, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 630 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 640 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 650 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 660 */ 2024, 2024, 2024, 2165, 2164, 2024, 2024, 2024, 2024, 2024, - /* 670 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 680 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 690 */ 2024, 2519, 2024, 2024, 2024, 2024, 2024, 2510, 2024, 2024, - /* 700 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 710 */ 2024, 2024, 2024, 2024, 2699, 2651, 2024, 2024, 2024, 2024, - /* 720 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 730 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2508, 2024, - /* 740 */ 2681, 2024, 2024, 2697, 2024, 2701, 2024, 2024, 2024, 2024, - /* 750 */ 2024, 2024, 2024, 2624, 2620, 2024, 2024, 2616, 2024, 2024, - /* 760 */ 2024, 2024, 2024, 2575, 2024, 2024, 2024, 2609, 2024, 2024, - /* 770 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2519, 2024, 2522, - /* 780 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 790 */ 2024, 2024, 2507, 2024, 2560, 2559, 2024, 2024, 2024, 2024, - /* 800 */ 2024, 2024, 2024, 2246, 2024, 2024, 2024, 2024, 2024, 2024, - /* 810 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2230, - /* 820 */ 2228, 2227, 2226, 2024, 2259, 2024, 2024, 2024, 2255, 2254, - /* 830 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 840 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2143, 2024, 2024, - /* 850 */ 2024, 2024, 2024, 2024, 2024, 2024, 2135, 2024, 2134, 2024, - /* 860 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 870 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, - /* 880 */ 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2024, 2053, 2024, - /* 890 */ 2024, 2024, 2024, 2024, 2024, + /* 0 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 10 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 20 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 30 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 40 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 50 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 60 */ 2384, 2035, 2035, 2347, 2035, 2035, 2035, 2035, 2035, 2035, + /* 70 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2354, 2035, 2035, + /* 80 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 90 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2135, 2035, 2035, + /* 100 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 110 */ 2035, 2035, 2035, 2035, 2133, 2629, 2035, 2035, 2035, 2035, + /* 120 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 130 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 140 */ 2641, 2035, 2035, 2107, 2107, 2035, 2641, 2641, 2641, 2601, + /* 150 */ 2601, 2133, 2035, 2035, 2135, 2422, 2035, 2035, 2035, 2035, + /* 160 */ 2035, 2035, 2035, 2035, 2264, 2065, 2035, 2035, 2035, 2035, + /* 170 */ 2288, 2035, 2035, 2410, 2035, 2035, 2670, 2732, 2035, 2673, + /* 180 */ 2035, 2035, 2035, 2035, 2035, 2359, 2035, 2660, 2035, 2035, + /* 190 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2213, 2404, 2035, + /* 200 */ 2035, 2035, 2633, 2647, 2716, 2634, 2631, 2654, 2035, 2664, + /* 210 */ 2035, 2447, 2035, 2436, 2135, 2035, 2135, 2397, 2342, 2035, + /* 220 */ 2352, 2035, 2352, 2349, 2035, 2035, 2035, 2352, 2349, 2349, + /* 230 */ 2349, 2202, 2198, 2035, 2196, 2035, 2035, 2035, 2035, 2090, + /* 240 */ 2035, 2090, 2035, 2135, 2135, 2035, 2135, 2035, 2035, 2135, + /* 250 */ 2035, 2135, 2035, 2135, 2135, 2035, 2135, 2035, 2035, 2035, + /* 260 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 270 */ 2035, 2035, 2035, 2035, 2035, 2035, 2434, 2420, 2035, 2133, + /* 280 */ 2035, 2408, 2406, 2035, 2133, 2664, 2035, 2035, 2686, 2681, + /* 290 */ 2686, 2681, 2700, 2696, 2686, 2705, 2702, 2666, 2664, 2735, + /* 300 */ 2722, 2718, 2647, 2035, 2035, 2652, 2650, 2035, 2133, 2133, + /* 310 */ 2035, 2681, 2035, 2035, 2035, 2035, 2681, 2035, 2035, 2133, + /* 320 */ 2035, 2133, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 330 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 340 */ 2035, 2035, 2035, 2035, 2035, 2229, 2035, 2035, 2133, 2035, + /* 350 */ 2074, 2035, 2399, 2425, 2380, 2380, 2267, 2267, 2267, 2136, + /* 360 */ 2040, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 370 */ 2035, 2035, 2035, 2699, 2698, 2552, 2035, 2605, 2604, 2603, + /* 380 */ 2594, 2551, 2225, 2035, 2035, 2550, 2549, 2035, 2035, 2035, + /* 390 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2543, 2035, + /* 400 */ 2035, 2544, 2542, 2541, 2371, 2370, 2035, 2035, 2035, 2035, + /* 410 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 420 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 430 */ 2035, 2035, 2719, 2723, 2035, 2630, 2035, 2035, 2035, 2523, + /* 440 */ 2035, 2035, 2035, 2035, 2035, 2491, 2486, 2477, 2468, 2483, + /* 450 */ 2474, 2462, 2480, 2471, 2459, 2456, 2035, 2035, 2035, 2035, + /* 460 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 470 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 480 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 490 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 500 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 510 */ 2348, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 520 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 530 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 540 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 550 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 560 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 570 */ 2035, 2035, 2035, 2035, 2363, 2035, 2035, 2035, 2035, 2035, + /* 580 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 590 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 600 */ 2035, 2035, 2035, 2035, 2035, 2035, 2079, 2530, 2035, 2035, + /* 610 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 620 */ 2035, 2533, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 630 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 640 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 650 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 660 */ 2035, 2035, 2035, 2176, 2175, 2035, 2035, 2035, 2035, 2035, + /* 670 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 680 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 690 */ 2035, 2534, 2035, 2035, 2035, 2035, 2035, 2525, 2035, 2035, + /* 700 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 710 */ 2035, 2035, 2035, 2035, 2715, 2667, 2035, 2035, 2035, 2035, + /* 720 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 730 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2523, 2035, + /* 740 */ 2697, 2035, 2035, 2713, 2035, 2717, 2035, 2035, 2035, 2035, + /* 750 */ 2035, 2035, 2035, 2640, 2636, 2035, 2035, 2632, 2035, 2035, + /* 760 */ 2035, 2035, 2035, 2591, 2035, 2035, 2035, 2625, 2035, 2035, + /* 770 */ 2035, 2035, 2263, 2262, 2261, 2260, 2035, 2035, 2035, 2035, + /* 780 */ 2035, 2035, 2534, 2035, 2537, 2035, 2035, 2035, 2035, 2035, + /* 790 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2522, 2035, 2576, + /* 800 */ 2575, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2257, 2035, + /* 810 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 820 */ 2035, 2035, 2035, 2035, 2241, 2239, 2238, 2237, 2035, 2274, + /* 830 */ 2035, 2035, 2035, 2270, 2269, 2035, 2035, 2035, 2035, 2035, + /* 840 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 850 */ 2035, 2035, 2154, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 860 */ 2035, 2146, 2035, 2145, 2035, 2035, 2035, 2035, 2035, 2035, + /* 870 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 880 */ 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, 2035, + /* 890 */ 2035, 2035, 2035, 2064, 2035, 2035, 2035, 2035, 2035, 2035, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1976,116 +2029,117 @@ static const char *const yyTokenName[] = { /* 407 */ "drop_table_clause", /* 408 */ "col_name_list", /* 409 */ "column_def", - /* 410 */ "duration_list", - /* 411 */ "rollup_func_list", - /* 412 */ "alter_table_option", - /* 413 */ "duration_literal", - /* 414 */ "rollup_func_name", - /* 415 */ "function_name", - /* 416 */ "col_name", - /* 417 */ "db_kind_opt", - /* 418 */ "table_kind_db_name_cond_opt", - /* 419 */ "like_pattern_opt", - /* 420 */ "db_name_cond_opt", - /* 421 */ "table_name_cond", - /* 422 */ "from_db_opt", - /* 423 */ "tag_list_opt", - /* 424 */ "table_kind", - /* 425 */ "tag_item", - /* 426 */ "column_alias", - /* 427 */ "index_options", - /* 428 */ "full_index_name", - /* 429 */ "index_name", - /* 430 */ "func_list", - /* 431 */ "sliding_opt", - /* 432 */ "sma_stream_opt", - /* 433 */ "func", - /* 434 */ "sma_func_name", - /* 435 */ "expression_list", - /* 436 */ "with_meta", - /* 437 */ "query_or_subquery", - /* 438 */ "where_clause_opt", - /* 439 */ "cgroup_name", - /* 440 */ "analyze_opt", - /* 441 */ "explain_options", - /* 442 */ "insert_query", - /* 443 */ "or_replace_opt", - /* 444 */ "agg_func_opt", - /* 445 */ "bufsize_opt", - /* 446 */ "language_opt", - /* 447 */ "full_view_name", - /* 448 */ "view_name", - /* 449 */ "stream_name", - /* 450 */ "stream_options", - /* 451 */ "col_list_opt", - /* 452 */ "tag_def_or_ref_opt", - /* 453 */ "subtable_opt", - /* 454 */ "ignore_opt", - /* 455 */ "expression", - /* 456 */ "on_vgroup_id", - /* 457 */ "dnode_list", - /* 458 */ "literal_func", - /* 459 */ "signed_literal", - /* 460 */ "literal_list", - /* 461 */ "table_alias", - /* 462 */ "expr_or_subquery", - /* 463 */ "pseudo_column", - /* 464 */ "column_reference", - /* 465 */ "function_expression", - /* 466 */ "case_when_expression", - /* 467 */ "star_func", - /* 468 */ "star_func_para_list", - /* 469 */ "noarg_func", - /* 470 */ "other_para_list", - /* 471 */ "star_func_para", - /* 472 */ "when_then_list", - /* 473 */ "case_when_else_opt", - /* 474 */ "common_expression", - /* 475 */ "when_then_expr", - /* 476 */ "predicate", - /* 477 */ "compare_op", - /* 478 */ "in_op", - /* 479 */ "in_predicate_value", - /* 480 */ "boolean_value_expression", - /* 481 */ "boolean_primary", - /* 482 */ "from_clause_opt", - /* 483 */ "table_reference_list", - /* 484 */ "table_reference", - /* 485 */ "table_primary", - /* 486 */ "joined_table", - /* 487 */ "alias_opt", - /* 488 */ "subquery", - /* 489 */ "parenthesized_joined_table", - /* 490 */ "join_type", - /* 491 */ "query_specification", - /* 492 */ "hint_list", - /* 493 */ "set_quantifier_opt", - /* 494 */ "tag_mode_opt", - /* 495 */ "select_list", - /* 496 */ "partition_by_clause_opt", - /* 497 */ "range_opt", - /* 498 */ "every_opt", - /* 499 */ "fill_opt", - /* 500 */ "twindow_clause_opt", - /* 501 */ "group_by_clause_opt", - /* 502 */ "having_clause_opt", - /* 503 */ "select_item", - /* 504 */ "partition_list", - /* 505 */ "partition_item", - /* 506 */ "interval_sliding_duration_literal", - /* 507 */ "fill_mode", - /* 508 */ "group_by_list", - /* 509 */ "query_expression", - /* 510 */ "query_simple", - /* 511 */ "order_by_clause_opt", - /* 512 */ "slimit_clause_opt", - /* 513 */ "limit_clause_opt", - /* 514 */ "union_query_expression", - /* 515 */ "query_simple_or_subquery", - /* 516 */ "sort_specification_list", - /* 517 */ "sort_specification", - /* 518 */ "ordering_specification_opt", - /* 519 */ "null_ordering_opt", + /* 410 */ "type_name_default_len", + /* 411 */ "duration_list", + /* 412 */ "rollup_func_list", + /* 413 */ "alter_table_option", + /* 414 */ "duration_literal", + /* 415 */ "rollup_func_name", + /* 416 */ "function_name", + /* 417 */ "col_name", + /* 418 */ "db_kind_opt", + /* 419 */ "table_kind_db_name_cond_opt", + /* 420 */ "like_pattern_opt", + /* 421 */ "db_name_cond_opt", + /* 422 */ "table_name_cond", + /* 423 */ "from_db_opt", + /* 424 */ "tag_list_opt", + /* 425 */ "table_kind", + /* 426 */ "tag_item", + /* 427 */ "column_alias", + /* 428 */ "index_options", + /* 429 */ "full_index_name", + /* 430 */ "index_name", + /* 431 */ "func_list", + /* 432 */ "sliding_opt", + /* 433 */ "sma_stream_opt", + /* 434 */ "func", + /* 435 */ "sma_func_name", + /* 436 */ "expression_list", + /* 437 */ "with_meta", + /* 438 */ "query_or_subquery", + /* 439 */ "where_clause_opt", + /* 440 */ "cgroup_name", + /* 441 */ "analyze_opt", + /* 442 */ "explain_options", + /* 443 */ "insert_query", + /* 444 */ "or_replace_opt", + /* 445 */ "agg_func_opt", + /* 446 */ "bufsize_opt", + /* 447 */ "language_opt", + /* 448 */ "full_view_name", + /* 449 */ "view_name", + /* 450 */ "stream_name", + /* 451 */ "stream_options", + /* 452 */ "col_list_opt", + /* 453 */ "tag_def_or_ref_opt", + /* 454 */ "subtable_opt", + /* 455 */ "ignore_opt", + /* 456 */ "expression", + /* 457 */ "on_vgroup_id", + /* 458 */ "dnode_list", + /* 459 */ "literal_func", + /* 460 */ "signed_literal", + /* 461 */ "literal_list", + /* 462 */ "table_alias", + /* 463 */ "expr_or_subquery", + /* 464 */ "pseudo_column", + /* 465 */ "column_reference", + /* 466 */ "function_expression", + /* 467 */ "case_when_expression", + /* 468 */ "star_func", + /* 469 */ "star_func_para_list", + /* 470 */ "noarg_func", + /* 471 */ "other_para_list", + /* 472 */ "star_func_para", + /* 473 */ "when_then_list", + /* 474 */ "case_when_else_opt", + /* 475 */ "common_expression", + /* 476 */ "when_then_expr", + /* 477 */ "predicate", + /* 478 */ "compare_op", + /* 479 */ "in_op", + /* 480 */ "in_predicate_value", + /* 481 */ "boolean_value_expression", + /* 482 */ "boolean_primary", + /* 483 */ "from_clause_opt", + /* 484 */ "table_reference_list", + /* 485 */ "table_reference", + /* 486 */ "table_primary", + /* 487 */ "joined_table", + /* 488 */ "alias_opt", + /* 489 */ "subquery", + /* 490 */ "parenthesized_joined_table", + /* 491 */ "join_type", + /* 492 */ "query_specification", + /* 493 */ "hint_list", + /* 494 */ "set_quantifier_opt", + /* 495 */ "tag_mode_opt", + /* 496 */ "select_list", + /* 497 */ "partition_by_clause_opt", + /* 498 */ "range_opt", + /* 499 */ "every_opt", + /* 500 */ "fill_opt", + /* 501 */ "twindow_clause_opt", + /* 502 */ "group_by_clause_opt", + /* 503 */ "having_clause_opt", + /* 504 */ "select_item", + /* 505 */ "partition_list", + /* 506 */ "partition_item", + /* 507 */ "interval_sliding_duration_literal", + /* 508 */ "fill_mode", + /* 509 */ "group_by_list", + /* 510 */ "query_expression", + /* 511 */ "query_simple", + /* 512 */ "order_by_clause_opt", + /* 513 */ "slimit_clause_opt", + /* 514 */ "limit_clause_opt", + /* 515 */ "union_query_expression", + /* 516 */ "query_simple_or_subquery", + /* 517 */ "sort_specification_list", + /* 518 */ "sort_specification", + /* 519 */ "ordering_specification_opt", + /* 520 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -2315,479 +2369,484 @@ static const char *const yyRuleName[] = { /* 219 */ "type_name ::= DECIMAL", /* 220 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 221 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 222 */ "tags_def_opt ::=", - /* 223 */ "tags_def_opt ::= tags_def", - /* 224 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 225 */ "table_options ::=", - /* 226 */ "table_options ::= table_options COMMENT NK_STRING", - /* 227 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 228 */ "table_options ::= table_options WATERMARK duration_list", - /* 229 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 230 */ "table_options ::= table_options TTL NK_INTEGER", - /* 231 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 232 */ "table_options ::= table_options DELETE_MARK duration_list", - /* 233 */ "alter_table_options ::= alter_table_option", - /* 234 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 235 */ "alter_table_option ::= COMMENT NK_STRING", - /* 236 */ "alter_table_option ::= TTL NK_INTEGER", - /* 237 */ "duration_list ::= duration_literal", - /* 238 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 239 */ "rollup_func_list ::= rollup_func_name", - /* 240 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 241 */ "rollup_func_name ::= function_name", - /* 242 */ "rollup_func_name ::= FIRST", - /* 243 */ "rollup_func_name ::= LAST", - /* 244 */ "col_name_list ::= col_name", - /* 245 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 246 */ "col_name ::= column_name", - /* 247 */ "cmd ::= SHOW DNODES", - /* 248 */ "cmd ::= SHOW USERS", - /* 249 */ "cmd ::= SHOW USER PRIVILEGES", - /* 250 */ "cmd ::= SHOW db_kind_opt DATABASES", - /* 251 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", - /* 252 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 253 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 254 */ "cmd ::= SHOW MNODES", - /* 255 */ "cmd ::= SHOW QNODES", - /* 256 */ "cmd ::= SHOW ARBGROUPS", - /* 257 */ "cmd ::= SHOW FUNCTIONS", - /* 258 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 259 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", - /* 260 */ "cmd ::= SHOW STREAMS", - /* 261 */ "cmd ::= SHOW ACCOUNTS", - /* 262 */ "cmd ::= SHOW APPS", - /* 263 */ "cmd ::= SHOW CONNECTIONS", - /* 264 */ "cmd ::= SHOW LICENCES", - /* 265 */ "cmd ::= SHOW GRANTS", - /* 266 */ "cmd ::= SHOW GRANTS FULL", - /* 267 */ "cmd ::= SHOW GRANTS LOGS", - /* 268 */ "cmd ::= SHOW CLUSTER MACHINES", - /* 269 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 270 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 271 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 272 */ "cmd ::= SHOW ENCRYPTIONS", - /* 273 */ "cmd ::= SHOW QUERIES", - /* 274 */ "cmd ::= SHOW SCORES", - /* 275 */ "cmd ::= SHOW TOPICS", - /* 276 */ "cmd ::= SHOW VARIABLES", - /* 277 */ "cmd ::= SHOW CLUSTER VARIABLES", - /* 278 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 279 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", - /* 280 */ "cmd ::= SHOW BNODES", - /* 281 */ "cmd ::= SHOW SNODES", - /* 282 */ "cmd ::= SHOW CLUSTER", - /* 283 */ "cmd ::= SHOW TRANSACTIONS", - /* 284 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 285 */ "cmd ::= SHOW CONSUMERS", - /* 286 */ "cmd ::= SHOW SUBSCRIPTIONS", - /* 287 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", - /* 288 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", - /* 289 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", - /* 290 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", - /* 291 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", - /* 292 */ "cmd ::= SHOW VNODES", - /* 293 */ "cmd ::= SHOW db_name_cond_opt ALIVE", - /* 294 */ "cmd ::= SHOW CLUSTER ALIVE", - /* 295 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt", - /* 296 */ "cmd ::= SHOW CREATE VIEW full_table_name", - /* 297 */ "cmd ::= SHOW COMPACTS", - /* 298 */ "cmd ::= SHOW COMPACT NK_INTEGER", - /* 299 */ "table_kind_db_name_cond_opt ::=", - /* 300 */ "table_kind_db_name_cond_opt ::= table_kind", - /* 301 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", - /* 302 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", - /* 303 */ "table_kind ::= NORMAL", - /* 304 */ "table_kind ::= CHILD", - /* 305 */ "db_name_cond_opt ::=", - /* 306 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 307 */ "like_pattern_opt ::=", - /* 308 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 309 */ "table_name_cond ::= table_name", - /* 310 */ "from_db_opt ::=", - /* 311 */ "from_db_opt ::= FROM db_name", - /* 312 */ "tag_list_opt ::=", - /* 313 */ "tag_list_opt ::= tag_item", - /* 314 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", - /* 315 */ "tag_item ::= TBNAME", - /* 316 */ "tag_item ::= QTAGS", - /* 317 */ "tag_item ::= column_name", - /* 318 */ "tag_item ::= column_name column_alias", - /* 319 */ "tag_item ::= column_name AS column_alias", - /* 320 */ "db_kind_opt ::=", - /* 321 */ "db_kind_opt ::= USER", - /* 322 */ "db_kind_opt ::= SYSTEM", - /* 323 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", - /* 324 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", - /* 325 */ "cmd ::= DROP INDEX exists_opt full_index_name", - /* 326 */ "full_index_name ::= index_name", - /* 327 */ "full_index_name ::= db_name NK_DOT index_name", - /* 328 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", - /* 329 */ "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", - /* 330 */ "func_list ::= func", - /* 331 */ "func_list ::= func_list NK_COMMA func", - /* 332 */ "func ::= sma_func_name NK_LP expression_list NK_RP", - /* 333 */ "sma_func_name ::= function_name", - /* 334 */ "sma_func_name ::= COUNT", - /* 335 */ "sma_func_name ::= FIRST", - /* 336 */ "sma_func_name ::= LAST", - /* 337 */ "sma_func_name ::= LAST_ROW", - /* 338 */ "sma_stream_opt ::=", - /* 339 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", - /* 340 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", - /* 341 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", - /* 342 */ "with_meta ::= AS", - /* 343 */ "with_meta ::= WITH META AS", - /* 344 */ "with_meta ::= ONLY META AS", - /* 345 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", - /* 346 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", - /* 347 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", - /* 348 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 349 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 350 */ "cmd ::= DESC full_table_name", - /* 351 */ "cmd ::= DESCRIBE full_table_name", - /* 352 */ "cmd ::= RESET QUERY CACHE", - /* 353 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", - /* 354 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", - /* 355 */ "analyze_opt ::=", - /* 356 */ "analyze_opt ::= ANALYZE", - /* 357 */ "explain_options ::=", - /* 358 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 359 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 360 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", - /* 361 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 362 */ "agg_func_opt ::=", - /* 363 */ "agg_func_opt ::= AGGREGATE", - /* 364 */ "bufsize_opt ::=", - /* 365 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 366 */ "language_opt ::=", - /* 367 */ "language_opt ::= LANGUAGE NK_STRING", - /* 368 */ "or_replace_opt ::=", - /* 369 */ "or_replace_opt ::= OR REPLACE", - /* 370 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", - /* 371 */ "cmd ::= DROP VIEW exists_opt full_view_name", - /* 372 */ "full_view_name ::= view_name", - /* 373 */ "full_view_name ::= db_name NK_DOT view_name", - /* 374 */ "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", - /* 375 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 376 */ "cmd ::= PAUSE STREAM exists_opt stream_name", - /* 377 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", - /* 378 */ "col_list_opt ::=", - /* 379 */ "col_list_opt ::= NK_LP col_name_list NK_RP", - /* 380 */ "tag_def_or_ref_opt ::=", - /* 381 */ "tag_def_or_ref_opt ::= tags_def", - /* 382 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", - /* 383 */ "stream_options ::=", - /* 384 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 385 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 386 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 387 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 388 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", - /* 389 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", - /* 390 */ "stream_options ::= stream_options DELETE_MARK duration_literal", - /* 391 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", - /* 392 */ "subtable_opt ::=", - /* 393 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", - /* 394 */ "ignore_opt ::=", - /* 395 */ "ignore_opt ::= IGNORE UNTREATED", - /* 396 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 397 */ "cmd ::= KILL QUERY NK_STRING", - /* 398 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 399 */ "cmd ::= KILL COMPACT NK_INTEGER", - /* 400 */ "cmd ::= BALANCE VGROUP", - /* 401 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", - /* 402 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 403 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 404 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 405 */ "on_vgroup_id ::=", - /* 406 */ "on_vgroup_id ::= ON NK_INTEGER", - /* 407 */ "dnode_list ::= DNODE NK_INTEGER", - /* 408 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 409 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 410 */ "cmd ::= query_or_subquery", - /* 411 */ "cmd ::= insert_query", - /* 412 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", - /* 413 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", - /* 414 */ "tags_literal ::= NK_INTEGER", - /* 415 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal", - /* 416 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal", - /* 417 */ "tags_literal ::= NK_PLUS NK_INTEGER", - /* 418 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal", - /* 419 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal", - /* 420 */ "tags_literal ::= NK_MINUS NK_INTEGER", - /* 421 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal", - /* 422 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal", - /* 423 */ "tags_literal ::= NK_FLOAT", - /* 424 */ "tags_literal ::= NK_PLUS NK_FLOAT", - /* 425 */ "tags_literal ::= NK_MINUS NK_FLOAT", - /* 426 */ "tags_literal ::= NK_BIN", - /* 427 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal", - /* 428 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal", - /* 429 */ "tags_literal ::= NK_PLUS NK_BIN", - /* 430 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal", - /* 431 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal", - /* 432 */ "tags_literal ::= NK_MINUS NK_BIN", - /* 433 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal", - /* 434 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal", - /* 435 */ "tags_literal ::= NK_HEX", - /* 436 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal", - /* 437 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal", - /* 438 */ "tags_literal ::= NK_PLUS NK_HEX", - /* 439 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal", - /* 440 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal", - /* 441 */ "tags_literal ::= NK_MINUS NK_HEX", - /* 442 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal", - /* 443 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal", - /* 444 */ "tags_literal ::= NK_STRING", - /* 445 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal", - /* 446 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal", - /* 447 */ "tags_literal ::= NK_BOOL", - /* 448 */ "tags_literal ::= NULL", - /* 449 */ "tags_literal ::= literal_func", - /* 450 */ "tags_literal ::= literal_func NK_PLUS duration_literal", - /* 451 */ "tags_literal ::= literal_func NK_MINUS duration_literal", - /* 452 */ "tags_literal_list ::= tags_literal", - /* 453 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal", - /* 454 */ "literal ::= NK_INTEGER", - /* 455 */ "literal ::= NK_FLOAT", - /* 456 */ "literal ::= NK_STRING", - /* 457 */ "literal ::= NK_BOOL", - /* 458 */ "literal ::= TIMESTAMP NK_STRING", - /* 459 */ "literal ::= duration_literal", - /* 460 */ "literal ::= NULL", - /* 461 */ "literal ::= NK_QUESTION", - /* 462 */ "duration_literal ::= NK_VARIABLE", - /* 463 */ "signed ::= NK_INTEGER", - /* 464 */ "signed ::= NK_PLUS NK_INTEGER", - /* 465 */ "signed ::= NK_MINUS NK_INTEGER", - /* 466 */ "signed ::= NK_FLOAT", - /* 467 */ "signed ::= NK_PLUS NK_FLOAT", - /* 468 */ "signed ::= NK_MINUS NK_FLOAT", - /* 469 */ "signed_literal ::= signed", - /* 470 */ "signed_literal ::= NK_STRING", - /* 471 */ "signed_literal ::= NK_BOOL", - /* 472 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 473 */ "signed_literal ::= duration_literal", - /* 474 */ "signed_literal ::= NULL", - /* 475 */ "signed_literal ::= literal_func", - /* 476 */ "signed_literal ::= NK_QUESTION", - /* 477 */ "literal_list ::= signed_literal", - /* 478 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 479 */ "db_name ::= NK_ID", - /* 480 */ "table_name ::= NK_ID", - /* 481 */ "column_name ::= NK_ID", - /* 482 */ "function_name ::= NK_ID", - /* 483 */ "view_name ::= NK_ID", - /* 484 */ "table_alias ::= NK_ID", - /* 485 */ "column_alias ::= NK_ID", - /* 486 */ "column_alias ::= NK_ALIAS", - /* 487 */ "user_name ::= NK_ID", - /* 488 */ "topic_name ::= NK_ID", - /* 489 */ "stream_name ::= NK_ID", - /* 490 */ "cgroup_name ::= NK_ID", - /* 491 */ "index_name ::= NK_ID", - /* 492 */ "expr_or_subquery ::= expression", - /* 493 */ "expression ::= literal", - /* 494 */ "expression ::= pseudo_column", - /* 495 */ "expression ::= column_reference", - /* 496 */ "expression ::= function_expression", - /* 497 */ "expression ::= case_when_expression", - /* 498 */ "expression ::= NK_LP expression NK_RP", - /* 499 */ "expression ::= NK_PLUS expr_or_subquery", - /* 500 */ "expression ::= NK_MINUS expr_or_subquery", - /* 501 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", - /* 502 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", - /* 503 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", - /* 504 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", - /* 505 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", - /* 506 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 507 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", - /* 508 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", - /* 509 */ "expression_list ::= expr_or_subquery", - /* 510 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", - /* 511 */ "column_reference ::= column_name", - /* 512 */ "column_reference ::= table_name NK_DOT column_name", - /* 513 */ "column_reference ::= NK_ALIAS", - /* 514 */ "column_reference ::= table_name NK_DOT NK_ALIAS", - /* 515 */ "pseudo_column ::= ROWTS", - /* 516 */ "pseudo_column ::= TBNAME", - /* 517 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 518 */ "pseudo_column ::= QSTART", - /* 519 */ "pseudo_column ::= QEND", - /* 520 */ "pseudo_column ::= QDURATION", - /* 521 */ "pseudo_column ::= WSTART", - /* 522 */ "pseudo_column ::= WEND", - /* 523 */ "pseudo_column ::= WDURATION", - /* 524 */ "pseudo_column ::= IROWTS", - /* 525 */ "pseudo_column ::= ISFILLED", - /* 526 */ "pseudo_column ::= QTAGS", - /* 527 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 528 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 529 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", - /* 530 */ "function_expression ::= literal_func", - /* 531 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 532 */ "literal_func ::= NOW", - /* 533 */ "literal_func ::= TODAY", - /* 534 */ "noarg_func ::= NOW", - /* 535 */ "noarg_func ::= TODAY", - /* 536 */ "noarg_func ::= TIMEZONE", - /* 537 */ "noarg_func ::= DATABASE", - /* 538 */ "noarg_func ::= CLIENT_VERSION", - /* 539 */ "noarg_func ::= SERVER_VERSION", - /* 540 */ "noarg_func ::= SERVER_STATUS", - /* 541 */ "noarg_func ::= CURRENT_USER", - /* 542 */ "noarg_func ::= USER", - /* 543 */ "star_func ::= COUNT", - /* 544 */ "star_func ::= FIRST", - /* 545 */ "star_func ::= LAST", - /* 546 */ "star_func ::= LAST_ROW", - /* 547 */ "star_func_para_list ::= NK_STAR", - /* 548 */ "star_func_para_list ::= other_para_list", - /* 549 */ "other_para_list ::= star_func_para", - /* 550 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 551 */ "star_func_para ::= expr_or_subquery", - /* 552 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 553 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", - /* 554 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", - /* 555 */ "when_then_list ::= when_then_expr", - /* 556 */ "when_then_list ::= when_then_list when_then_expr", - /* 557 */ "when_then_expr ::= WHEN common_expression THEN common_expression", - /* 558 */ "case_when_else_opt ::=", - /* 559 */ "case_when_else_opt ::= ELSE common_expression", - /* 560 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", - /* 561 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", - /* 562 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", - /* 563 */ "predicate ::= expr_or_subquery IS NULL", - /* 564 */ "predicate ::= expr_or_subquery IS NOT NULL", - /* 565 */ "predicate ::= expr_or_subquery in_op in_predicate_value", - /* 566 */ "compare_op ::= NK_LT", - /* 567 */ "compare_op ::= NK_GT", - /* 568 */ "compare_op ::= NK_LE", - /* 569 */ "compare_op ::= NK_GE", - /* 570 */ "compare_op ::= NK_NE", - /* 571 */ "compare_op ::= NK_EQ", - /* 572 */ "compare_op ::= LIKE", - /* 573 */ "compare_op ::= NOT LIKE", - /* 574 */ "compare_op ::= MATCH", - /* 575 */ "compare_op ::= NMATCH", - /* 576 */ "compare_op ::= CONTAINS", - /* 577 */ "in_op ::= IN", - /* 578 */ "in_op ::= NOT IN", - /* 579 */ "in_predicate_value ::= NK_LP literal_list NK_RP", - /* 580 */ "boolean_value_expression ::= boolean_primary", - /* 581 */ "boolean_value_expression ::= NOT boolean_primary", - /* 582 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 583 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 584 */ "boolean_primary ::= predicate", - /* 585 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 586 */ "common_expression ::= expr_or_subquery", - /* 587 */ "common_expression ::= boolean_value_expression", - /* 588 */ "from_clause_opt ::=", - /* 589 */ "from_clause_opt ::= FROM table_reference_list", - /* 590 */ "table_reference_list ::= table_reference", - /* 591 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 592 */ "table_reference ::= table_primary", - /* 593 */ "table_reference ::= joined_table", - /* 594 */ "table_primary ::= table_name alias_opt", - /* 595 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 596 */ "table_primary ::= subquery alias_opt", - /* 597 */ "table_primary ::= parenthesized_joined_table", - /* 598 */ "alias_opt ::=", - /* 599 */ "alias_opt ::= table_alias", - /* 600 */ "alias_opt ::= AS table_alias", - /* 601 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 602 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 603 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 604 */ "join_type ::=", - /* 605 */ "join_type ::= INNER", - /* 606 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 607 */ "hint_list ::=", - /* 608 */ "hint_list ::= NK_HINT", - /* 609 */ "tag_mode_opt ::=", - /* 610 */ "tag_mode_opt ::= TAGS", - /* 611 */ "set_quantifier_opt ::=", - /* 612 */ "set_quantifier_opt ::= DISTINCT", - /* 613 */ "set_quantifier_opt ::= ALL", - /* 614 */ "select_list ::= select_item", - /* 615 */ "select_list ::= select_list NK_COMMA select_item", - /* 616 */ "select_item ::= NK_STAR", - /* 617 */ "select_item ::= common_expression", - /* 618 */ "select_item ::= common_expression column_alias", - /* 619 */ "select_item ::= common_expression AS column_alias", - /* 620 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 621 */ "where_clause_opt ::=", - /* 622 */ "where_clause_opt ::= WHERE search_condition", - /* 623 */ "partition_by_clause_opt ::=", - /* 624 */ "partition_by_clause_opt ::= PARTITION BY partition_list", - /* 625 */ "partition_list ::= partition_item", - /* 626 */ "partition_list ::= partition_list NK_COMMA partition_item", - /* 627 */ "partition_item ::= expr_or_subquery", - /* 628 */ "partition_item ::= expr_or_subquery column_alias", - /* 629 */ "partition_item ::= expr_or_subquery AS column_alias", - /* 630 */ "twindow_clause_opt ::=", - /* 631 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", - /* 632 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", - /* 633 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 634 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 635 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", - /* 636 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", - /* 637 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 638 */ "sliding_opt ::=", - /* 639 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", - /* 640 */ "interval_sliding_duration_literal ::= NK_VARIABLE", - /* 641 */ "interval_sliding_duration_literal ::= NK_STRING", - /* 642 */ "interval_sliding_duration_literal ::= NK_INTEGER", - /* 643 */ "fill_opt ::=", - /* 644 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 645 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", - /* 646 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", - /* 647 */ "fill_mode ::= NONE", - /* 648 */ "fill_mode ::= PREV", - /* 649 */ "fill_mode ::= NULL", - /* 650 */ "fill_mode ::= NULL_F", - /* 651 */ "fill_mode ::= LINEAR", - /* 652 */ "fill_mode ::= NEXT", - /* 653 */ "group_by_clause_opt ::=", - /* 654 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 655 */ "group_by_list ::= expr_or_subquery", - /* 656 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", - /* 657 */ "having_clause_opt ::=", - /* 658 */ "having_clause_opt ::= HAVING search_condition", - /* 659 */ "range_opt ::=", - /* 660 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", - /* 661 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", - /* 662 */ "every_opt ::=", - /* 663 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 664 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 665 */ "query_simple ::= query_specification", - /* 666 */ "query_simple ::= union_query_expression", - /* 667 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", - /* 668 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", - /* 669 */ "query_simple_or_subquery ::= query_simple", - /* 670 */ "query_simple_or_subquery ::= subquery", - /* 671 */ "query_or_subquery ::= query_expression", - /* 672 */ "query_or_subquery ::= subquery", - /* 673 */ "order_by_clause_opt ::=", - /* 674 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 675 */ "slimit_clause_opt ::=", - /* 676 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 677 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 678 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 679 */ "limit_clause_opt ::=", - /* 680 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 681 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 682 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 683 */ "subquery ::= NK_LP query_expression NK_RP", - /* 684 */ "subquery ::= NK_LP subquery NK_RP", - /* 685 */ "search_condition ::= common_expression", - /* 686 */ "sort_specification_list ::= sort_specification", - /* 687 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 688 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", - /* 689 */ "ordering_specification_opt ::=", - /* 690 */ "ordering_specification_opt ::= ASC", - /* 691 */ "ordering_specification_opt ::= DESC", - /* 692 */ "null_ordering_opt ::=", - /* 693 */ "null_ordering_opt ::= NULLS FIRST", - /* 694 */ "null_ordering_opt ::= NULLS LAST", + /* 222 */ "type_name_default_len ::= BINARY", + /* 223 */ "type_name_default_len ::= NCHAR", + /* 224 */ "type_name_default_len ::= VARCHAR", + /* 225 */ "type_name_default_len ::= VARBINARY", + /* 226 */ "tags_def_opt ::=", + /* 227 */ "tags_def_opt ::= tags_def", + /* 228 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 229 */ "table_options ::=", + /* 230 */ "table_options ::= table_options COMMENT NK_STRING", + /* 231 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 232 */ "table_options ::= table_options WATERMARK duration_list", + /* 233 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 234 */ "table_options ::= table_options TTL NK_INTEGER", + /* 235 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 236 */ "table_options ::= table_options DELETE_MARK duration_list", + /* 237 */ "alter_table_options ::= alter_table_option", + /* 238 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 239 */ "alter_table_option ::= COMMENT NK_STRING", + /* 240 */ "alter_table_option ::= TTL NK_INTEGER", + /* 241 */ "duration_list ::= duration_literal", + /* 242 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 243 */ "rollup_func_list ::= rollup_func_name", + /* 244 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 245 */ "rollup_func_name ::= function_name", + /* 246 */ "rollup_func_name ::= FIRST", + /* 247 */ "rollup_func_name ::= LAST", + /* 248 */ "col_name_list ::= col_name", + /* 249 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 250 */ "col_name ::= column_name", + /* 251 */ "cmd ::= SHOW DNODES", + /* 252 */ "cmd ::= SHOW USERS", + /* 253 */ "cmd ::= SHOW USER PRIVILEGES", + /* 254 */ "cmd ::= SHOW db_kind_opt DATABASES", + /* 255 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", + /* 256 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 257 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 258 */ "cmd ::= SHOW MNODES", + /* 259 */ "cmd ::= SHOW QNODES", + /* 260 */ "cmd ::= SHOW ARBGROUPS", + /* 261 */ "cmd ::= SHOW FUNCTIONS", + /* 262 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 263 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", + /* 264 */ "cmd ::= SHOW STREAMS", + /* 265 */ "cmd ::= SHOW ACCOUNTS", + /* 266 */ "cmd ::= SHOW APPS", + /* 267 */ "cmd ::= SHOW CONNECTIONS", + /* 268 */ "cmd ::= SHOW LICENCES", + /* 269 */ "cmd ::= SHOW GRANTS", + /* 270 */ "cmd ::= SHOW GRANTS FULL", + /* 271 */ "cmd ::= SHOW GRANTS LOGS", + /* 272 */ "cmd ::= SHOW CLUSTER MACHINES", + /* 273 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 274 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 275 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 276 */ "cmd ::= SHOW ENCRYPTIONS", + /* 277 */ "cmd ::= SHOW QUERIES", + /* 278 */ "cmd ::= SHOW SCORES", + /* 279 */ "cmd ::= SHOW TOPICS", + /* 280 */ "cmd ::= SHOW VARIABLES", + /* 281 */ "cmd ::= SHOW CLUSTER VARIABLES", + /* 282 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 283 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", + /* 284 */ "cmd ::= SHOW BNODES", + /* 285 */ "cmd ::= SHOW SNODES", + /* 286 */ "cmd ::= SHOW CLUSTER", + /* 287 */ "cmd ::= SHOW TRANSACTIONS", + /* 288 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 289 */ "cmd ::= SHOW CONSUMERS", + /* 290 */ "cmd ::= SHOW SUBSCRIPTIONS", + /* 291 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", + /* 292 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", + /* 293 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", + /* 294 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", + /* 295 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", + /* 296 */ "cmd ::= SHOW VNODES", + /* 297 */ "cmd ::= SHOW db_name_cond_opt ALIVE", + /* 298 */ "cmd ::= SHOW CLUSTER ALIVE", + /* 299 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt", + /* 300 */ "cmd ::= SHOW CREATE VIEW full_table_name", + /* 301 */ "cmd ::= SHOW COMPACTS", + /* 302 */ "cmd ::= SHOW COMPACT NK_INTEGER", + /* 303 */ "table_kind_db_name_cond_opt ::=", + /* 304 */ "table_kind_db_name_cond_opt ::= table_kind", + /* 305 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", + /* 306 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", + /* 307 */ "table_kind ::= NORMAL", + /* 308 */ "table_kind ::= CHILD", + /* 309 */ "db_name_cond_opt ::=", + /* 310 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 311 */ "like_pattern_opt ::=", + /* 312 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 313 */ "table_name_cond ::= table_name", + /* 314 */ "from_db_opt ::=", + /* 315 */ "from_db_opt ::= FROM db_name", + /* 316 */ "tag_list_opt ::=", + /* 317 */ "tag_list_opt ::= tag_item", + /* 318 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", + /* 319 */ "tag_item ::= TBNAME", + /* 320 */ "tag_item ::= QTAGS", + /* 321 */ "tag_item ::= column_name", + /* 322 */ "tag_item ::= column_name column_alias", + /* 323 */ "tag_item ::= column_name AS column_alias", + /* 324 */ "db_kind_opt ::=", + /* 325 */ "db_kind_opt ::= USER", + /* 326 */ "db_kind_opt ::= SYSTEM", + /* 327 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", + /* 328 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", + /* 329 */ "cmd ::= DROP INDEX exists_opt full_index_name", + /* 330 */ "full_index_name ::= index_name", + /* 331 */ "full_index_name ::= db_name NK_DOT index_name", + /* 332 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", + /* 333 */ "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", + /* 334 */ "func_list ::= func", + /* 335 */ "func_list ::= func_list NK_COMMA func", + /* 336 */ "func ::= sma_func_name NK_LP expression_list NK_RP", + /* 337 */ "sma_func_name ::= function_name", + /* 338 */ "sma_func_name ::= COUNT", + /* 339 */ "sma_func_name ::= FIRST", + /* 340 */ "sma_func_name ::= LAST", + /* 341 */ "sma_func_name ::= LAST_ROW", + /* 342 */ "sma_stream_opt ::=", + /* 343 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", + /* 344 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", + /* 345 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", + /* 346 */ "with_meta ::= AS", + /* 347 */ "with_meta ::= WITH META AS", + /* 348 */ "with_meta ::= ONLY META AS", + /* 349 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", + /* 350 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", + /* 351 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", + /* 352 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 353 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 354 */ "cmd ::= DESC full_table_name", + /* 355 */ "cmd ::= DESCRIBE full_table_name", + /* 356 */ "cmd ::= RESET QUERY CACHE", + /* 357 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", + /* 358 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", + /* 359 */ "analyze_opt ::=", + /* 360 */ "analyze_opt ::= ANALYZE", + /* 361 */ "explain_options ::=", + /* 362 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 363 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 364 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", + /* 365 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 366 */ "agg_func_opt ::=", + /* 367 */ "agg_func_opt ::= AGGREGATE", + /* 368 */ "bufsize_opt ::=", + /* 369 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 370 */ "language_opt ::=", + /* 371 */ "language_opt ::= LANGUAGE NK_STRING", + /* 372 */ "or_replace_opt ::=", + /* 373 */ "or_replace_opt ::= OR REPLACE", + /* 374 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", + /* 375 */ "cmd ::= DROP VIEW exists_opt full_view_name", + /* 376 */ "full_view_name ::= view_name", + /* 377 */ "full_view_name ::= db_name NK_DOT view_name", + /* 378 */ "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", + /* 379 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 380 */ "cmd ::= PAUSE STREAM exists_opt stream_name", + /* 381 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", + /* 382 */ "col_list_opt ::=", + /* 383 */ "col_list_opt ::= NK_LP col_name_list NK_RP", + /* 384 */ "tag_def_or_ref_opt ::=", + /* 385 */ "tag_def_or_ref_opt ::= tags_def", + /* 386 */ "tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP", + /* 387 */ "stream_options ::=", + /* 388 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 389 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 390 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 391 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 392 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", + /* 393 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", + /* 394 */ "stream_options ::= stream_options DELETE_MARK duration_literal", + /* 395 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", + /* 396 */ "subtable_opt ::=", + /* 397 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", + /* 398 */ "ignore_opt ::=", + /* 399 */ "ignore_opt ::= IGNORE UNTREATED", + /* 400 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 401 */ "cmd ::= KILL QUERY NK_STRING", + /* 402 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 403 */ "cmd ::= KILL COMPACT NK_INTEGER", + /* 404 */ "cmd ::= BALANCE VGROUP", + /* 405 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", + /* 406 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 407 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 408 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 409 */ "on_vgroup_id ::=", + /* 410 */ "on_vgroup_id ::= ON NK_INTEGER", + /* 411 */ "dnode_list ::= DNODE NK_INTEGER", + /* 412 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 413 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 414 */ "cmd ::= query_or_subquery", + /* 415 */ "cmd ::= insert_query", + /* 416 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", + /* 417 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", + /* 418 */ "tags_literal ::= NK_INTEGER", + /* 419 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal", + /* 420 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal", + /* 421 */ "tags_literal ::= NK_PLUS NK_INTEGER", + /* 422 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal", + /* 423 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal", + /* 424 */ "tags_literal ::= NK_MINUS NK_INTEGER", + /* 425 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal", + /* 426 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal", + /* 427 */ "tags_literal ::= NK_FLOAT", + /* 428 */ "tags_literal ::= NK_PLUS NK_FLOAT", + /* 429 */ "tags_literal ::= NK_MINUS NK_FLOAT", + /* 430 */ "tags_literal ::= NK_BIN", + /* 431 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal", + /* 432 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal", + /* 433 */ "tags_literal ::= NK_PLUS NK_BIN", + /* 434 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal", + /* 435 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal", + /* 436 */ "tags_literal ::= NK_MINUS NK_BIN", + /* 437 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal", + /* 438 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal", + /* 439 */ "tags_literal ::= NK_HEX", + /* 440 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal", + /* 441 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal", + /* 442 */ "tags_literal ::= NK_PLUS NK_HEX", + /* 443 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal", + /* 444 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal", + /* 445 */ "tags_literal ::= NK_MINUS NK_HEX", + /* 446 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal", + /* 447 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal", + /* 448 */ "tags_literal ::= NK_STRING", + /* 449 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal", + /* 450 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal", + /* 451 */ "tags_literal ::= NK_BOOL", + /* 452 */ "tags_literal ::= NULL", + /* 453 */ "tags_literal ::= literal_func", + /* 454 */ "tags_literal ::= literal_func NK_PLUS duration_literal", + /* 455 */ "tags_literal ::= literal_func NK_MINUS duration_literal", + /* 456 */ "tags_literal_list ::= tags_literal", + /* 457 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal", + /* 458 */ "literal ::= NK_INTEGER", + /* 459 */ "literal ::= NK_FLOAT", + /* 460 */ "literal ::= NK_STRING", + /* 461 */ "literal ::= NK_BOOL", + /* 462 */ "literal ::= TIMESTAMP NK_STRING", + /* 463 */ "literal ::= duration_literal", + /* 464 */ "literal ::= NULL", + /* 465 */ "literal ::= NK_QUESTION", + /* 466 */ "duration_literal ::= NK_VARIABLE", + /* 467 */ "signed ::= NK_INTEGER", + /* 468 */ "signed ::= NK_PLUS NK_INTEGER", + /* 469 */ "signed ::= NK_MINUS NK_INTEGER", + /* 470 */ "signed ::= NK_FLOAT", + /* 471 */ "signed ::= NK_PLUS NK_FLOAT", + /* 472 */ "signed ::= NK_MINUS NK_FLOAT", + /* 473 */ "signed_literal ::= signed", + /* 474 */ "signed_literal ::= NK_STRING", + /* 475 */ "signed_literal ::= NK_BOOL", + /* 476 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 477 */ "signed_literal ::= duration_literal", + /* 478 */ "signed_literal ::= NULL", + /* 479 */ "signed_literal ::= literal_func", + /* 480 */ "signed_literal ::= NK_QUESTION", + /* 481 */ "literal_list ::= signed_literal", + /* 482 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 483 */ "db_name ::= NK_ID", + /* 484 */ "table_name ::= NK_ID", + /* 485 */ "column_name ::= NK_ID", + /* 486 */ "function_name ::= NK_ID", + /* 487 */ "view_name ::= NK_ID", + /* 488 */ "table_alias ::= NK_ID", + /* 489 */ "column_alias ::= NK_ID", + /* 490 */ "column_alias ::= NK_ALIAS", + /* 491 */ "user_name ::= NK_ID", + /* 492 */ "topic_name ::= NK_ID", + /* 493 */ "stream_name ::= NK_ID", + /* 494 */ "cgroup_name ::= NK_ID", + /* 495 */ "index_name ::= NK_ID", + /* 496 */ "expr_or_subquery ::= expression", + /* 497 */ "expression ::= literal", + /* 498 */ "expression ::= pseudo_column", + /* 499 */ "expression ::= column_reference", + /* 500 */ "expression ::= function_expression", + /* 501 */ "expression ::= case_when_expression", + /* 502 */ "expression ::= NK_LP expression NK_RP", + /* 503 */ "expression ::= NK_PLUS expr_or_subquery", + /* 504 */ "expression ::= NK_MINUS expr_or_subquery", + /* 505 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", + /* 506 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", + /* 507 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", + /* 508 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", + /* 509 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", + /* 510 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 511 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", + /* 512 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", + /* 513 */ "expression_list ::= expr_or_subquery", + /* 514 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", + /* 515 */ "column_reference ::= column_name", + /* 516 */ "column_reference ::= table_name NK_DOT column_name", + /* 517 */ "column_reference ::= NK_ALIAS", + /* 518 */ "column_reference ::= table_name NK_DOT NK_ALIAS", + /* 519 */ "pseudo_column ::= ROWTS", + /* 520 */ "pseudo_column ::= TBNAME", + /* 521 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 522 */ "pseudo_column ::= QSTART", + /* 523 */ "pseudo_column ::= QEND", + /* 524 */ "pseudo_column ::= QDURATION", + /* 525 */ "pseudo_column ::= WSTART", + /* 526 */ "pseudo_column ::= WEND", + /* 527 */ "pseudo_column ::= WDURATION", + /* 528 */ "pseudo_column ::= IROWTS", + /* 529 */ "pseudo_column ::= ISFILLED", + /* 530 */ "pseudo_column ::= QTAGS", + /* 531 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 532 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 533 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", + /* 534 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP", + /* 535 */ "function_expression ::= literal_func", + /* 536 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 537 */ "literal_func ::= NOW", + /* 538 */ "literal_func ::= TODAY", + /* 539 */ "noarg_func ::= NOW", + /* 540 */ "noarg_func ::= TODAY", + /* 541 */ "noarg_func ::= TIMEZONE", + /* 542 */ "noarg_func ::= DATABASE", + /* 543 */ "noarg_func ::= CLIENT_VERSION", + /* 544 */ "noarg_func ::= SERVER_VERSION", + /* 545 */ "noarg_func ::= SERVER_STATUS", + /* 546 */ "noarg_func ::= CURRENT_USER", + /* 547 */ "noarg_func ::= USER", + /* 548 */ "star_func ::= COUNT", + /* 549 */ "star_func ::= FIRST", + /* 550 */ "star_func ::= LAST", + /* 551 */ "star_func ::= LAST_ROW", + /* 552 */ "star_func_para_list ::= NK_STAR", + /* 553 */ "star_func_para_list ::= other_para_list", + /* 554 */ "other_para_list ::= star_func_para", + /* 555 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 556 */ "star_func_para ::= expr_or_subquery", + /* 557 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 558 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", + /* 559 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", + /* 560 */ "when_then_list ::= when_then_expr", + /* 561 */ "when_then_list ::= when_then_list when_then_expr", + /* 562 */ "when_then_expr ::= WHEN common_expression THEN common_expression", + /* 563 */ "case_when_else_opt ::=", + /* 564 */ "case_when_else_opt ::= ELSE common_expression", + /* 565 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", + /* 566 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", + /* 567 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", + /* 568 */ "predicate ::= expr_or_subquery IS NULL", + /* 569 */ "predicate ::= expr_or_subquery IS NOT NULL", + /* 570 */ "predicate ::= expr_or_subquery in_op in_predicate_value", + /* 571 */ "compare_op ::= NK_LT", + /* 572 */ "compare_op ::= NK_GT", + /* 573 */ "compare_op ::= NK_LE", + /* 574 */ "compare_op ::= NK_GE", + /* 575 */ "compare_op ::= NK_NE", + /* 576 */ "compare_op ::= NK_EQ", + /* 577 */ "compare_op ::= LIKE", + /* 578 */ "compare_op ::= NOT LIKE", + /* 579 */ "compare_op ::= MATCH", + /* 580 */ "compare_op ::= NMATCH", + /* 581 */ "compare_op ::= CONTAINS", + /* 582 */ "in_op ::= IN", + /* 583 */ "in_op ::= NOT IN", + /* 584 */ "in_predicate_value ::= NK_LP literal_list NK_RP", + /* 585 */ "boolean_value_expression ::= boolean_primary", + /* 586 */ "boolean_value_expression ::= NOT boolean_primary", + /* 587 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 588 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 589 */ "boolean_primary ::= predicate", + /* 590 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 591 */ "common_expression ::= expr_or_subquery", + /* 592 */ "common_expression ::= boolean_value_expression", + /* 593 */ "from_clause_opt ::=", + /* 594 */ "from_clause_opt ::= FROM table_reference_list", + /* 595 */ "table_reference_list ::= table_reference", + /* 596 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 597 */ "table_reference ::= table_primary", + /* 598 */ "table_reference ::= joined_table", + /* 599 */ "table_primary ::= table_name alias_opt", + /* 600 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 601 */ "table_primary ::= subquery alias_opt", + /* 602 */ "table_primary ::= parenthesized_joined_table", + /* 603 */ "alias_opt ::=", + /* 604 */ "alias_opt ::= table_alias", + /* 605 */ "alias_opt ::= AS table_alias", + /* 606 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 607 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 608 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 609 */ "join_type ::=", + /* 610 */ "join_type ::= INNER", + /* 611 */ "query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 612 */ "hint_list ::=", + /* 613 */ "hint_list ::= NK_HINT", + /* 614 */ "tag_mode_opt ::=", + /* 615 */ "tag_mode_opt ::= TAGS", + /* 616 */ "set_quantifier_opt ::=", + /* 617 */ "set_quantifier_opt ::= DISTINCT", + /* 618 */ "set_quantifier_opt ::= ALL", + /* 619 */ "select_list ::= select_item", + /* 620 */ "select_list ::= select_list NK_COMMA select_item", + /* 621 */ "select_item ::= NK_STAR", + /* 622 */ "select_item ::= common_expression", + /* 623 */ "select_item ::= common_expression column_alias", + /* 624 */ "select_item ::= common_expression AS column_alias", + /* 625 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 626 */ "where_clause_opt ::=", + /* 627 */ "where_clause_opt ::= WHERE search_condition", + /* 628 */ "partition_by_clause_opt ::=", + /* 629 */ "partition_by_clause_opt ::= PARTITION BY partition_list", + /* 630 */ "partition_list ::= partition_item", + /* 631 */ "partition_list ::= partition_list NK_COMMA partition_item", + /* 632 */ "partition_item ::= expr_or_subquery", + /* 633 */ "partition_item ::= expr_or_subquery column_alias", + /* 634 */ "partition_item ::= expr_or_subquery AS column_alias", + /* 635 */ "twindow_clause_opt ::=", + /* 636 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", + /* 637 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", + /* 638 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 639 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 640 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", + /* 641 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", + /* 642 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 643 */ "sliding_opt ::=", + /* 644 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", + /* 645 */ "interval_sliding_duration_literal ::= NK_VARIABLE", + /* 646 */ "interval_sliding_duration_literal ::= NK_STRING", + /* 647 */ "interval_sliding_duration_literal ::= NK_INTEGER", + /* 648 */ "fill_opt ::=", + /* 649 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 650 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", + /* 651 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", + /* 652 */ "fill_mode ::= NONE", + /* 653 */ "fill_mode ::= PREV", + /* 654 */ "fill_mode ::= NULL", + /* 655 */ "fill_mode ::= NULL_F", + /* 656 */ "fill_mode ::= LINEAR", + /* 657 */ "fill_mode ::= NEXT", + /* 658 */ "group_by_clause_opt ::=", + /* 659 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 660 */ "group_by_list ::= expr_or_subquery", + /* 661 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", + /* 662 */ "having_clause_opt ::=", + /* 663 */ "having_clause_opt ::= HAVING search_condition", + /* 664 */ "range_opt ::=", + /* 665 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", + /* 666 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", + /* 667 */ "every_opt ::=", + /* 668 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 669 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 670 */ "query_simple ::= query_specification", + /* 671 */ "query_simple ::= union_query_expression", + /* 672 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", + /* 673 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", + /* 674 */ "query_simple_or_subquery ::= query_simple", + /* 675 */ "query_simple_or_subquery ::= subquery", + /* 676 */ "query_or_subquery ::= query_expression", + /* 677 */ "query_or_subquery ::= subquery", + /* 678 */ "order_by_clause_opt ::=", + /* 679 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 680 */ "slimit_clause_opt ::=", + /* 681 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 682 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 683 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 684 */ "limit_clause_opt ::=", + /* 685 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 686 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 687 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 688 */ "subquery ::= NK_LP query_expression NK_RP", + /* 689 */ "subquery ::= NK_LP subquery NK_RP", + /* 690 */ "search_condition ::= common_expression", + /* 691 */ "sort_specification_list ::= sort_specification", + /* 692 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 693 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", + /* 694 */ "ordering_specification_opt ::=", + /* 695 */ "ordering_specification_opt ::= ASC", + /* 696 */ "ordering_specification_opt ::= DESC", + /* 697 */ "null_ordering_opt ::=", + /* 698 */ "null_ordering_opt ::= NULLS FIRST", + /* 699 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2932,75 +2991,75 @@ static void yy_destructor( case 404: /* create_subtable_clause */ case 407: /* drop_table_clause */ case 409: /* column_def */ - case 413: /* duration_literal */ - case 414: /* rollup_func_name */ - case 416: /* col_name */ - case 419: /* like_pattern_opt */ - case 420: /* db_name_cond_opt */ - case 421: /* table_name_cond */ - case 422: /* from_db_opt */ - case 425: /* tag_item */ - case 427: /* index_options */ - case 428: /* full_index_name */ - case 431: /* sliding_opt */ - case 432: /* sma_stream_opt */ - case 433: /* func */ - case 437: /* query_or_subquery */ - case 438: /* where_clause_opt */ - case 441: /* explain_options */ - case 442: /* insert_query */ - case 447: /* full_view_name */ - case 450: /* stream_options */ - case 453: /* subtable_opt */ - case 455: /* expression */ - case 458: /* literal_func */ - case 459: /* signed_literal */ - case 462: /* expr_or_subquery */ - case 463: /* pseudo_column */ - case 464: /* column_reference */ - case 465: /* function_expression */ - case 466: /* case_when_expression */ - case 471: /* star_func_para */ - case 473: /* case_when_else_opt */ - case 474: /* common_expression */ - case 475: /* when_then_expr */ - case 476: /* predicate */ - case 479: /* in_predicate_value */ - case 480: /* boolean_value_expression */ - case 481: /* boolean_primary */ - case 482: /* from_clause_opt */ - case 483: /* table_reference_list */ - case 484: /* table_reference */ - case 485: /* table_primary */ - case 486: /* joined_table */ - case 488: /* subquery */ - case 489: /* parenthesized_joined_table */ - case 491: /* query_specification */ - case 497: /* range_opt */ - case 498: /* every_opt */ - case 499: /* fill_opt */ - case 500: /* twindow_clause_opt */ - case 502: /* having_clause_opt */ - case 503: /* select_item */ - case 505: /* partition_item */ - case 506: /* interval_sliding_duration_literal */ - case 509: /* query_expression */ - case 510: /* query_simple */ - case 512: /* slimit_clause_opt */ - case 513: /* limit_clause_opt */ - case 514: /* union_query_expression */ - case 515: /* query_simple_or_subquery */ - case 517: /* sort_specification */ + case 414: /* duration_literal */ + case 415: /* rollup_func_name */ + case 417: /* col_name */ + case 420: /* like_pattern_opt */ + case 421: /* db_name_cond_opt */ + case 422: /* table_name_cond */ + case 423: /* from_db_opt */ + case 426: /* tag_item */ + case 428: /* index_options */ + case 429: /* full_index_name */ + case 432: /* sliding_opt */ + case 433: /* sma_stream_opt */ + case 434: /* func */ + case 438: /* query_or_subquery */ + case 439: /* where_clause_opt */ + case 442: /* explain_options */ + case 443: /* insert_query */ + case 448: /* full_view_name */ + case 451: /* stream_options */ + case 454: /* subtable_opt */ + case 456: /* expression */ + case 459: /* literal_func */ + case 460: /* signed_literal */ + case 463: /* expr_or_subquery */ + case 464: /* pseudo_column */ + case 465: /* column_reference */ + case 466: /* function_expression */ + case 467: /* case_when_expression */ + case 472: /* star_func_para */ + case 474: /* case_when_else_opt */ + case 475: /* common_expression */ + case 476: /* when_then_expr */ + case 477: /* predicate */ + case 480: /* in_predicate_value */ + case 481: /* boolean_value_expression */ + case 482: /* boolean_primary */ + case 483: /* from_clause_opt */ + case 484: /* table_reference_list */ + case 485: /* table_reference */ + case 486: /* table_primary */ + case 487: /* joined_table */ + case 489: /* subquery */ + case 490: /* parenthesized_joined_table */ + case 492: /* query_specification */ + case 498: /* range_opt */ + case 499: /* every_opt */ + case 500: /* fill_opt */ + case 501: /* twindow_clause_opt */ + case 503: /* having_clause_opt */ + case 504: /* select_item */ + case 506: /* partition_item */ + case 507: /* interval_sliding_duration_literal */ + case 510: /* query_expression */ + case 511: /* query_simple */ + case 513: /* slimit_clause_opt */ + case 514: /* limit_clause_opt */ + case 515: /* union_query_expression */ + case 516: /* query_simple_or_subquery */ + case 518: /* sort_specification */ { - nodesDestroyNode((yypminor->yy392)); + nodesDestroyNode((yypminor->yy664)); } break; case 358: /* account_options */ case 359: /* alter_account_options */ case 361: /* alter_account_option */ case 383: /* speed_opt */ - case 436: /* with_meta */ - case 445: /* bufsize_opt */ + case 437: /* with_meta */ + case 446: /* bufsize_opt */ { } @@ -3019,28 +3078,28 @@ static void yy_destructor( case 405: /* specific_cols_opt */ case 406: /* tags_literal_list */ case 408: /* col_name_list */ - case 410: /* duration_list */ - case 411: /* rollup_func_list */ - case 423: /* tag_list_opt */ - case 430: /* func_list */ - case 435: /* expression_list */ - case 451: /* col_list_opt */ - case 452: /* tag_def_or_ref_opt */ - case 457: /* dnode_list */ - case 460: /* literal_list */ - case 468: /* star_func_para_list */ - case 470: /* other_para_list */ - case 472: /* when_then_list */ - case 492: /* hint_list */ - case 495: /* select_list */ - case 496: /* partition_by_clause_opt */ - case 501: /* group_by_clause_opt */ - case 504: /* partition_list */ - case 508: /* group_by_list */ - case 511: /* order_by_clause_opt */ - case 516: /* sort_specification_list */ + case 411: /* duration_list */ + case 412: /* rollup_func_list */ + case 424: /* tag_list_opt */ + case 431: /* func_list */ + case 436: /* expression_list */ + case 452: /* col_list_opt */ + case 453: /* tag_def_or_ref_opt */ + case 458: /* dnode_list */ + case 461: /* literal_list */ + case 469: /* star_func_para_list */ + case 471: /* other_para_list */ + case 473: /* when_then_list */ + case 493: /* hint_list */ + case 496: /* select_list */ + case 497: /* partition_by_clause_opt */ + case 502: /* group_by_clause_opt */ + case 505: /* partition_list */ + case 509: /* group_by_list */ + case 512: /* order_by_clause_opt */ + case 517: /* sort_specification_list */ { - nodesDestroyList((yypminor->yy184)); + nodesDestroyList((yypminor->yy1006)); } break; case 365: /* user_name */ @@ -3049,19 +3108,19 @@ static void yy_destructor( case 374: /* topic_name */ case 376: /* dnode_endpoint */ case 401: /* column_name */ - case 415: /* function_name */ - case 426: /* column_alias */ - case 429: /* index_name */ - case 434: /* sma_func_name */ - case 439: /* cgroup_name */ - case 446: /* language_opt */ - case 448: /* view_name */ - case 449: /* stream_name */ - case 456: /* on_vgroup_id */ - case 461: /* table_alias */ - case 467: /* star_func */ - case 469: /* noarg_func */ - case 487: /* alias_opt */ + case 416: /* function_name */ + case 427: /* column_alias */ + case 430: /* index_name */ + case 435: /* sma_func_name */ + case 440: /* cgroup_name */ + case 447: /* language_opt */ + case 449: /* view_name */ + case 450: /* stream_name */ + case 457: /* on_vgroup_id */ + case 462: /* table_alias */ + case 468: /* star_func */ + case 470: /* noarg_func */ + case 488: /* alias_opt */ { } @@ -3087,60 +3146,61 @@ static void yy_destructor( case 378: /* unsafe_opt */ case 379: /* not_exists_opt */ case 381: /* exists_opt */ - case 440: /* analyze_opt */ - case 443: /* or_replace_opt */ - case 444: /* agg_func_opt */ - case 454: /* ignore_opt */ - case 493: /* set_quantifier_opt */ - case 494: /* tag_mode_opt */ + case 441: /* analyze_opt */ + case 444: /* or_replace_opt */ + case 445: /* agg_func_opt */ + case 455: /* ignore_opt */ + case 494: /* set_quantifier_opt */ + case 495: /* tag_mode_opt */ { } break; case 390: /* alter_db_option */ - case 412: /* alter_table_option */ + case 413: /* alter_table_option */ { } break; case 402: /* type_name */ + case 410: /* type_name_default_len */ { } break; - case 417: /* db_kind_opt */ - case 424: /* table_kind */ + case 418: /* db_kind_opt */ + case 425: /* table_kind */ { } break; - case 418: /* table_kind_db_name_cond_opt */ + case 419: /* table_kind_db_name_cond_opt */ { } break; - case 477: /* compare_op */ - case 478: /* in_op */ + case 478: /* compare_op */ + case 479: /* in_op */ { } break; - case 490: /* join_type */ + case 491: /* join_type */ { } break; - case 507: /* fill_mode */ + case 508: /* fill_mode */ { } break; - case 518: /* ordering_specification_opt */ + case 519: /* ordering_specification_opt */ { } break; - case 519: /* null_ordering_opt */ + case 520: /* null_ordering_opt */ { } @@ -3653,479 +3713,484 @@ static const YYCODETYPE yyRuleInfoLhs[] = { 402, /* (219) type_name ::= DECIMAL */ 402, /* (220) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 402, /* (221) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 394, /* (222) tags_def_opt ::= */ - 394, /* (223) tags_def_opt ::= tags_def */ - 397, /* (224) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - 395, /* (225) table_options ::= */ - 395, /* (226) table_options ::= table_options COMMENT NK_STRING */ - 395, /* (227) table_options ::= table_options MAX_DELAY duration_list */ - 395, /* (228) table_options ::= table_options WATERMARK duration_list */ - 395, /* (229) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - 395, /* (230) table_options ::= table_options TTL NK_INTEGER */ - 395, /* (231) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - 395, /* (232) table_options ::= table_options DELETE_MARK duration_list */ - 400, /* (233) alter_table_options ::= alter_table_option */ - 400, /* (234) alter_table_options ::= alter_table_options alter_table_option */ - 412, /* (235) alter_table_option ::= COMMENT NK_STRING */ - 412, /* (236) alter_table_option ::= TTL NK_INTEGER */ - 410, /* (237) duration_list ::= duration_literal */ - 410, /* (238) duration_list ::= duration_list NK_COMMA duration_literal */ - 411, /* (239) rollup_func_list ::= rollup_func_name */ - 411, /* (240) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - 414, /* (241) rollup_func_name ::= function_name */ - 414, /* (242) rollup_func_name ::= FIRST */ - 414, /* (243) rollup_func_name ::= LAST */ - 408, /* (244) col_name_list ::= col_name */ - 408, /* (245) col_name_list ::= col_name_list NK_COMMA col_name */ - 416, /* (246) col_name ::= column_name */ - 357, /* (247) cmd ::= SHOW DNODES */ - 357, /* (248) cmd ::= SHOW USERS */ - 357, /* (249) cmd ::= SHOW USER PRIVILEGES */ - 357, /* (250) cmd ::= SHOW db_kind_opt DATABASES */ - 357, /* (251) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ - 357, /* (252) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - 357, /* (253) cmd ::= SHOW db_name_cond_opt VGROUPS */ - 357, /* (254) cmd ::= SHOW MNODES */ - 357, /* (255) cmd ::= SHOW QNODES */ - 357, /* (256) cmd ::= SHOW ARBGROUPS */ - 357, /* (257) cmd ::= SHOW FUNCTIONS */ - 357, /* (258) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - 357, /* (259) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - 357, /* (260) cmd ::= SHOW STREAMS */ - 357, /* (261) cmd ::= SHOW ACCOUNTS */ - 357, /* (262) cmd ::= SHOW APPS */ - 357, /* (263) cmd ::= SHOW CONNECTIONS */ - 357, /* (264) cmd ::= SHOW LICENCES */ - 357, /* (265) cmd ::= SHOW GRANTS */ - 357, /* (266) cmd ::= SHOW GRANTS FULL */ - 357, /* (267) cmd ::= SHOW GRANTS LOGS */ - 357, /* (268) cmd ::= SHOW CLUSTER MACHINES */ - 357, /* (269) cmd ::= SHOW CREATE DATABASE db_name */ - 357, /* (270) cmd ::= SHOW CREATE TABLE full_table_name */ - 357, /* (271) cmd ::= SHOW CREATE STABLE full_table_name */ - 357, /* (272) cmd ::= SHOW ENCRYPTIONS */ - 357, /* (273) cmd ::= SHOW QUERIES */ - 357, /* (274) cmd ::= SHOW SCORES */ - 357, /* (275) cmd ::= SHOW TOPICS */ - 357, /* (276) cmd ::= SHOW VARIABLES */ - 357, /* (277) cmd ::= SHOW CLUSTER VARIABLES */ - 357, /* (278) cmd ::= SHOW LOCAL VARIABLES */ - 357, /* (279) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - 357, /* (280) cmd ::= SHOW BNODES */ - 357, /* (281) cmd ::= SHOW SNODES */ - 357, /* (282) cmd ::= SHOW CLUSTER */ - 357, /* (283) cmd ::= SHOW TRANSACTIONS */ - 357, /* (284) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - 357, /* (285) cmd ::= SHOW CONSUMERS */ - 357, /* (286) cmd ::= SHOW SUBSCRIPTIONS */ - 357, /* (287) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - 357, /* (288) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - 357, /* (289) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - 357, /* (290) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - 357, /* (291) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ - 357, /* (292) cmd ::= SHOW VNODES */ - 357, /* (293) cmd ::= SHOW db_name_cond_opt ALIVE */ - 357, /* (294) cmd ::= SHOW CLUSTER ALIVE */ - 357, /* (295) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ - 357, /* (296) cmd ::= SHOW CREATE VIEW full_table_name */ - 357, /* (297) cmd ::= SHOW COMPACTS */ - 357, /* (298) cmd ::= SHOW COMPACT NK_INTEGER */ - 418, /* (299) table_kind_db_name_cond_opt ::= */ - 418, /* (300) table_kind_db_name_cond_opt ::= table_kind */ - 418, /* (301) table_kind_db_name_cond_opt ::= db_name NK_DOT */ - 418, /* (302) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ - 424, /* (303) table_kind ::= NORMAL */ - 424, /* (304) table_kind ::= CHILD */ - 420, /* (305) db_name_cond_opt ::= */ - 420, /* (306) db_name_cond_opt ::= db_name NK_DOT */ - 419, /* (307) like_pattern_opt ::= */ - 419, /* (308) like_pattern_opt ::= LIKE NK_STRING */ - 421, /* (309) table_name_cond ::= table_name */ - 422, /* (310) from_db_opt ::= */ - 422, /* (311) from_db_opt ::= FROM db_name */ - 423, /* (312) tag_list_opt ::= */ - 423, /* (313) tag_list_opt ::= tag_item */ - 423, /* (314) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - 425, /* (315) tag_item ::= TBNAME */ - 425, /* (316) tag_item ::= QTAGS */ - 425, /* (317) tag_item ::= column_name */ - 425, /* (318) tag_item ::= column_name column_alias */ - 425, /* (319) tag_item ::= column_name AS column_alias */ - 417, /* (320) db_kind_opt ::= */ - 417, /* (321) db_kind_opt ::= USER */ - 417, /* (322) db_kind_opt ::= SYSTEM */ - 357, /* (323) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ - 357, /* (324) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ - 357, /* (325) cmd ::= DROP INDEX exists_opt full_index_name */ - 428, /* (326) full_index_name ::= index_name */ - 428, /* (327) full_index_name ::= db_name NK_DOT index_name */ - 427, /* (328) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - 427, /* (329) 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 */ - 430, /* (330) func_list ::= func */ - 430, /* (331) func_list ::= func_list NK_COMMA func */ - 433, /* (332) func ::= sma_func_name NK_LP expression_list NK_RP */ - 434, /* (333) sma_func_name ::= function_name */ - 434, /* (334) sma_func_name ::= COUNT */ - 434, /* (335) sma_func_name ::= FIRST */ - 434, /* (336) sma_func_name ::= LAST */ - 434, /* (337) sma_func_name ::= LAST_ROW */ - 432, /* (338) sma_stream_opt ::= */ - 432, /* (339) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - 432, /* (340) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - 432, /* (341) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - 436, /* (342) with_meta ::= AS */ - 436, /* (343) with_meta ::= WITH META AS */ - 436, /* (344) with_meta ::= ONLY META AS */ - 357, /* (345) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - 357, /* (346) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - 357, /* (347) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - 357, /* (348) cmd ::= DROP TOPIC exists_opt topic_name */ - 357, /* (349) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - 357, /* (350) cmd ::= DESC full_table_name */ - 357, /* (351) cmd ::= DESCRIBE full_table_name */ - 357, /* (352) cmd ::= RESET QUERY CACHE */ - 357, /* (353) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - 357, /* (354) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 440, /* (355) analyze_opt ::= */ - 440, /* (356) analyze_opt ::= ANALYZE */ - 441, /* (357) explain_options ::= */ - 441, /* (358) explain_options ::= explain_options VERBOSE NK_BOOL */ - 441, /* (359) explain_options ::= explain_options RATIO NK_FLOAT */ - 357, /* (360) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - 357, /* (361) cmd ::= DROP FUNCTION exists_opt function_name */ - 444, /* (362) agg_func_opt ::= */ - 444, /* (363) agg_func_opt ::= AGGREGATE */ - 445, /* (364) bufsize_opt ::= */ - 445, /* (365) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 446, /* (366) language_opt ::= */ - 446, /* (367) language_opt ::= LANGUAGE NK_STRING */ - 443, /* (368) or_replace_opt ::= */ - 443, /* (369) or_replace_opt ::= OR REPLACE */ - 357, /* (370) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ - 357, /* (371) cmd ::= DROP VIEW exists_opt full_view_name */ - 447, /* (372) full_view_name ::= view_name */ - 447, /* (373) full_view_name ::= db_name NK_DOT view_name */ - 357, /* (374) 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 */ - 357, /* (375) cmd ::= DROP STREAM exists_opt stream_name */ - 357, /* (376) cmd ::= PAUSE STREAM exists_opt stream_name */ - 357, /* (377) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 451, /* (378) col_list_opt ::= */ - 451, /* (379) col_list_opt ::= NK_LP col_name_list NK_RP */ - 452, /* (380) tag_def_or_ref_opt ::= */ - 452, /* (381) tag_def_or_ref_opt ::= tags_def */ - 452, /* (382) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ - 450, /* (383) stream_options ::= */ - 450, /* (384) stream_options ::= stream_options TRIGGER AT_ONCE */ - 450, /* (385) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - 450, /* (386) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - 450, /* (387) stream_options ::= stream_options WATERMARK duration_literal */ - 450, /* (388) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - 450, /* (389) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - 450, /* (390) stream_options ::= stream_options DELETE_MARK duration_literal */ - 450, /* (391) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 453, /* (392) subtable_opt ::= */ - 453, /* (393) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 454, /* (394) ignore_opt ::= */ - 454, /* (395) ignore_opt ::= IGNORE UNTREATED */ - 357, /* (396) cmd ::= KILL CONNECTION NK_INTEGER */ - 357, /* (397) cmd ::= KILL QUERY NK_STRING */ - 357, /* (398) cmd ::= KILL TRANSACTION NK_INTEGER */ - 357, /* (399) cmd ::= KILL COMPACT NK_INTEGER */ - 357, /* (400) cmd ::= BALANCE VGROUP */ - 357, /* (401) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ - 357, /* (402) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - 357, /* (403) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - 357, /* (404) cmd ::= SPLIT VGROUP NK_INTEGER */ - 456, /* (405) on_vgroup_id ::= */ - 456, /* (406) on_vgroup_id ::= ON NK_INTEGER */ - 457, /* (407) dnode_list ::= DNODE NK_INTEGER */ - 457, /* (408) dnode_list ::= dnode_list DNODE NK_INTEGER */ - 357, /* (409) cmd ::= DELETE FROM full_table_name where_clause_opt */ - 357, /* (410) cmd ::= query_or_subquery */ - 357, /* (411) cmd ::= insert_query */ - 442, /* (412) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - 442, /* (413) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - 403, /* (414) tags_literal ::= NK_INTEGER */ - 403, /* (415) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - 403, /* (416) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ - 403, /* (417) tags_literal ::= NK_PLUS NK_INTEGER */ - 403, /* (418) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - 403, /* (419) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ - 403, /* (420) tags_literal ::= NK_MINUS NK_INTEGER */ - 403, /* (421) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ - 403, /* (422) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ - 403, /* (423) tags_literal ::= NK_FLOAT */ - 403, /* (424) tags_literal ::= NK_PLUS NK_FLOAT */ - 403, /* (425) tags_literal ::= NK_MINUS NK_FLOAT */ - 403, /* (426) tags_literal ::= NK_BIN */ - 403, /* (427) tags_literal ::= NK_BIN NK_PLUS duration_literal */ - 403, /* (428) tags_literal ::= NK_BIN NK_MINUS duration_literal */ - 403, /* (429) tags_literal ::= NK_PLUS NK_BIN */ - 403, /* (430) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ - 403, /* (431) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ - 403, /* (432) tags_literal ::= NK_MINUS NK_BIN */ - 403, /* (433) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ - 403, /* (434) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ - 403, /* (435) tags_literal ::= NK_HEX */ - 403, /* (436) tags_literal ::= NK_HEX NK_PLUS duration_literal */ - 403, /* (437) tags_literal ::= NK_HEX NK_MINUS duration_literal */ - 403, /* (438) tags_literal ::= NK_PLUS NK_HEX */ - 403, /* (439) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ - 403, /* (440) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ - 403, /* (441) tags_literal ::= NK_MINUS NK_HEX */ - 403, /* (442) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ - 403, /* (443) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ - 403, /* (444) tags_literal ::= NK_STRING */ - 403, /* (445) tags_literal ::= NK_STRING NK_PLUS duration_literal */ - 403, /* (446) tags_literal ::= NK_STRING NK_MINUS duration_literal */ - 403, /* (447) tags_literal ::= NK_BOOL */ - 403, /* (448) tags_literal ::= NULL */ - 403, /* (449) tags_literal ::= literal_func */ - 403, /* (450) tags_literal ::= literal_func NK_PLUS duration_literal */ - 403, /* (451) tags_literal ::= literal_func NK_MINUS duration_literal */ - 406, /* (452) tags_literal_list ::= tags_literal */ - 406, /* (453) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ - 360, /* (454) literal ::= NK_INTEGER */ - 360, /* (455) literal ::= NK_FLOAT */ - 360, /* (456) literal ::= NK_STRING */ - 360, /* (457) literal ::= NK_BOOL */ - 360, /* (458) literal ::= TIMESTAMP NK_STRING */ - 360, /* (459) literal ::= duration_literal */ - 360, /* (460) literal ::= NULL */ - 360, /* (461) literal ::= NK_QUESTION */ - 413, /* (462) duration_literal ::= NK_VARIABLE */ - 389, /* (463) signed ::= NK_INTEGER */ - 389, /* (464) signed ::= NK_PLUS NK_INTEGER */ - 389, /* (465) signed ::= NK_MINUS NK_INTEGER */ - 389, /* (466) signed ::= NK_FLOAT */ - 389, /* (467) signed ::= NK_PLUS NK_FLOAT */ - 389, /* (468) signed ::= NK_MINUS NK_FLOAT */ - 459, /* (469) signed_literal ::= signed */ - 459, /* (470) signed_literal ::= NK_STRING */ - 459, /* (471) signed_literal ::= NK_BOOL */ - 459, /* (472) signed_literal ::= TIMESTAMP NK_STRING */ - 459, /* (473) signed_literal ::= duration_literal */ - 459, /* (474) signed_literal ::= NULL */ - 459, /* (475) signed_literal ::= literal_func */ - 459, /* (476) signed_literal ::= NK_QUESTION */ - 460, /* (477) literal_list ::= signed_literal */ - 460, /* (478) literal_list ::= literal_list NK_COMMA signed_literal */ - 372, /* (479) db_name ::= NK_ID */ - 373, /* (480) table_name ::= NK_ID */ - 401, /* (481) column_name ::= NK_ID */ - 415, /* (482) function_name ::= NK_ID */ - 448, /* (483) view_name ::= NK_ID */ - 461, /* (484) table_alias ::= NK_ID */ - 426, /* (485) column_alias ::= NK_ID */ - 426, /* (486) column_alias ::= NK_ALIAS */ - 365, /* (487) user_name ::= NK_ID */ - 374, /* (488) topic_name ::= NK_ID */ - 449, /* (489) stream_name ::= NK_ID */ - 439, /* (490) cgroup_name ::= NK_ID */ - 429, /* (491) index_name ::= NK_ID */ - 462, /* (492) expr_or_subquery ::= expression */ - 455, /* (493) expression ::= literal */ - 455, /* (494) expression ::= pseudo_column */ - 455, /* (495) expression ::= column_reference */ - 455, /* (496) expression ::= function_expression */ - 455, /* (497) expression ::= case_when_expression */ - 455, /* (498) expression ::= NK_LP expression NK_RP */ - 455, /* (499) expression ::= NK_PLUS expr_or_subquery */ - 455, /* (500) expression ::= NK_MINUS expr_or_subquery */ - 455, /* (501) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - 455, /* (502) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - 455, /* (503) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - 455, /* (504) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - 455, /* (505) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - 455, /* (506) expression ::= column_reference NK_ARROW NK_STRING */ - 455, /* (507) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - 455, /* (508) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - 435, /* (509) expression_list ::= expr_or_subquery */ - 435, /* (510) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - 464, /* (511) column_reference ::= column_name */ - 464, /* (512) column_reference ::= table_name NK_DOT column_name */ - 464, /* (513) column_reference ::= NK_ALIAS */ - 464, /* (514) column_reference ::= table_name NK_DOT NK_ALIAS */ - 463, /* (515) pseudo_column ::= ROWTS */ - 463, /* (516) pseudo_column ::= TBNAME */ - 463, /* (517) pseudo_column ::= table_name NK_DOT TBNAME */ - 463, /* (518) pseudo_column ::= QSTART */ - 463, /* (519) pseudo_column ::= QEND */ - 463, /* (520) pseudo_column ::= QDURATION */ - 463, /* (521) pseudo_column ::= WSTART */ - 463, /* (522) pseudo_column ::= WEND */ - 463, /* (523) pseudo_column ::= WDURATION */ - 463, /* (524) pseudo_column ::= IROWTS */ - 463, /* (525) pseudo_column ::= ISFILLED */ - 463, /* (526) pseudo_column ::= QTAGS */ - 465, /* (527) function_expression ::= function_name NK_LP expression_list NK_RP */ - 465, /* (528) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - 465, /* (529) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - 465, /* (530) function_expression ::= literal_func */ - 458, /* (531) literal_func ::= noarg_func NK_LP NK_RP */ - 458, /* (532) literal_func ::= NOW */ - 458, /* (533) literal_func ::= TODAY */ - 469, /* (534) noarg_func ::= NOW */ - 469, /* (535) noarg_func ::= TODAY */ - 469, /* (536) noarg_func ::= TIMEZONE */ - 469, /* (537) noarg_func ::= DATABASE */ - 469, /* (538) noarg_func ::= CLIENT_VERSION */ - 469, /* (539) noarg_func ::= SERVER_VERSION */ - 469, /* (540) noarg_func ::= SERVER_STATUS */ - 469, /* (541) noarg_func ::= CURRENT_USER */ - 469, /* (542) noarg_func ::= USER */ - 467, /* (543) star_func ::= COUNT */ - 467, /* (544) star_func ::= FIRST */ - 467, /* (545) star_func ::= LAST */ - 467, /* (546) star_func ::= LAST_ROW */ - 468, /* (547) star_func_para_list ::= NK_STAR */ - 468, /* (548) star_func_para_list ::= other_para_list */ - 470, /* (549) other_para_list ::= star_func_para */ - 470, /* (550) other_para_list ::= other_para_list NK_COMMA star_func_para */ - 471, /* (551) star_func_para ::= expr_or_subquery */ - 471, /* (552) star_func_para ::= table_name NK_DOT NK_STAR */ - 466, /* (553) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - 466, /* (554) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - 472, /* (555) when_then_list ::= when_then_expr */ - 472, /* (556) when_then_list ::= when_then_list when_then_expr */ - 475, /* (557) when_then_expr ::= WHEN common_expression THEN common_expression */ - 473, /* (558) case_when_else_opt ::= */ - 473, /* (559) case_when_else_opt ::= ELSE common_expression */ - 476, /* (560) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - 476, /* (561) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - 476, /* (562) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - 476, /* (563) predicate ::= expr_or_subquery IS NULL */ - 476, /* (564) predicate ::= expr_or_subquery IS NOT NULL */ - 476, /* (565) predicate ::= expr_or_subquery in_op in_predicate_value */ - 477, /* (566) compare_op ::= NK_LT */ - 477, /* (567) compare_op ::= NK_GT */ - 477, /* (568) compare_op ::= NK_LE */ - 477, /* (569) compare_op ::= NK_GE */ - 477, /* (570) compare_op ::= NK_NE */ - 477, /* (571) compare_op ::= NK_EQ */ - 477, /* (572) compare_op ::= LIKE */ - 477, /* (573) compare_op ::= NOT LIKE */ - 477, /* (574) compare_op ::= MATCH */ - 477, /* (575) compare_op ::= NMATCH */ - 477, /* (576) compare_op ::= CONTAINS */ - 478, /* (577) in_op ::= IN */ - 478, /* (578) in_op ::= NOT IN */ - 479, /* (579) in_predicate_value ::= NK_LP literal_list NK_RP */ - 480, /* (580) boolean_value_expression ::= boolean_primary */ - 480, /* (581) boolean_value_expression ::= NOT boolean_primary */ - 480, /* (582) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - 480, /* (583) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - 481, /* (584) boolean_primary ::= predicate */ - 481, /* (585) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - 474, /* (586) common_expression ::= expr_or_subquery */ - 474, /* (587) common_expression ::= boolean_value_expression */ - 482, /* (588) from_clause_opt ::= */ - 482, /* (589) from_clause_opt ::= FROM table_reference_list */ - 483, /* (590) table_reference_list ::= table_reference */ - 483, /* (591) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - 484, /* (592) table_reference ::= table_primary */ - 484, /* (593) table_reference ::= joined_table */ - 485, /* (594) table_primary ::= table_name alias_opt */ - 485, /* (595) table_primary ::= db_name NK_DOT table_name alias_opt */ - 485, /* (596) table_primary ::= subquery alias_opt */ - 485, /* (597) table_primary ::= parenthesized_joined_table */ - 487, /* (598) alias_opt ::= */ - 487, /* (599) alias_opt ::= table_alias */ - 487, /* (600) alias_opt ::= AS table_alias */ - 489, /* (601) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - 489, /* (602) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - 486, /* (603) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - 490, /* (604) join_type ::= */ - 490, /* (605) join_type ::= INNER */ - 491, /* (606) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - 492, /* (607) hint_list ::= */ - 492, /* (608) hint_list ::= NK_HINT */ - 494, /* (609) tag_mode_opt ::= */ - 494, /* (610) tag_mode_opt ::= TAGS */ - 493, /* (611) set_quantifier_opt ::= */ - 493, /* (612) set_quantifier_opt ::= DISTINCT */ - 493, /* (613) set_quantifier_opt ::= ALL */ - 495, /* (614) select_list ::= select_item */ - 495, /* (615) select_list ::= select_list NK_COMMA select_item */ - 503, /* (616) select_item ::= NK_STAR */ - 503, /* (617) select_item ::= common_expression */ - 503, /* (618) select_item ::= common_expression column_alias */ - 503, /* (619) select_item ::= common_expression AS column_alias */ - 503, /* (620) select_item ::= table_name NK_DOT NK_STAR */ - 438, /* (621) where_clause_opt ::= */ - 438, /* (622) where_clause_opt ::= WHERE search_condition */ - 496, /* (623) partition_by_clause_opt ::= */ - 496, /* (624) partition_by_clause_opt ::= PARTITION BY partition_list */ - 504, /* (625) partition_list ::= partition_item */ - 504, /* (626) partition_list ::= partition_list NK_COMMA partition_item */ - 505, /* (627) partition_item ::= expr_or_subquery */ - 505, /* (628) partition_item ::= expr_or_subquery column_alias */ - 505, /* (629) partition_item ::= expr_or_subquery AS column_alias */ - 500, /* (630) twindow_clause_opt ::= */ - 500, /* (631) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ - 500, /* (632) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - 500, /* (633) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - 500, /* (634) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - 500, /* (635) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - 500, /* (636) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ - 500, /* (637) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 431, /* (638) sliding_opt ::= */ - 431, /* (639) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ - 506, /* (640) interval_sliding_duration_literal ::= NK_VARIABLE */ - 506, /* (641) interval_sliding_duration_literal ::= NK_STRING */ - 506, /* (642) interval_sliding_duration_literal ::= NK_INTEGER */ - 499, /* (643) fill_opt ::= */ - 499, /* (644) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - 499, /* (645) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - 499, /* (646) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - 507, /* (647) fill_mode ::= NONE */ - 507, /* (648) fill_mode ::= PREV */ - 507, /* (649) fill_mode ::= NULL */ - 507, /* (650) fill_mode ::= NULL_F */ - 507, /* (651) fill_mode ::= LINEAR */ - 507, /* (652) fill_mode ::= NEXT */ - 501, /* (653) group_by_clause_opt ::= */ - 501, /* (654) group_by_clause_opt ::= GROUP BY group_by_list */ - 508, /* (655) group_by_list ::= expr_or_subquery */ - 508, /* (656) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 502, /* (657) having_clause_opt ::= */ - 502, /* (658) having_clause_opt ::= HAVING search_condition */ - 497, /* (659) range_opt ::= */ - 497, /* (660) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - 497, /* (661) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 498, /* (662) every_opt ::= */ - 498, /* (663) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - 509, /* (664) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - 510, /* (665) query_simple ::= query_specification */ - 510, /* (666) query_simple ::= union_query_expression */ - 514, /* (667) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - 514, /* (668) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - 515, /* (669) query_simple_or_subquery ::= query_simple */ - 515, /* (670) query_simple_or_subquery ::= subquery */ - 437, /* (671) query_or_subquery ::= query_expression */ - 437, /* (672) query_or_subquery ::= subquery */ - 511, /* (673) order_by_clause_opt ::= */ - 511, /* (674) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 512, /* (675) slimit_clause_opt ::= */ - 512, /* (676) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - 512, /* (677) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - 512, /* (678) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 513, /* (679) limit_clause_opt ::= */ - 513, /* (680) limit_clause_opt ::= LIMIT NK_INTEGER */ - 513, /* (681) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - 513, /* (682) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 488, /* (683) subquery ::= NK_LP query_expression NK_RP */ - 488, /* (684) subquery ::= NK_LP subquery NK_RP */ - 375, /* (685) search_condition ::= common_expression */ - 516, /* (686) sort_specification_list ::= sort_specification */ - 516, /* (687) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - 517, /* (688) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 518, /* (689) ordering_specification_opt ::= */ - 518, /* (690) ordering_specification_opt ::= ASC */ - 518, /* (691) ordering_specification_opt ::= DESC */ - 519, /* (692) null_ordering_opt ::= */ - 519, /* (693) null_ordering_opt ::= NULLS FIRST */ - 519, /* (694) null_ordering_opt ::= NULLS LAST */ + 410, /* (222) type_name_default_len ::= BINARY */ + 410, /* (223) type_name_default_len ::= NCHAR */ + 410, /* (224) type_name_default_len ::= VARCHAR */ + 410, /* (225) type_name_default_len ::= VARBINARY */ + 394, /* (226) tags_def_opt ::= */ + 394, /* (227) tags_def_opt ::= tags_def */ + 397, /* (228) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + 395, /* (229) table_options ::= */ + 395, /* (230) table_options ::= table_options COMMENT NK_STRING */ + 395, /* (231) table_options ::= table_options MAX_DELAY duration_list */ + 395, /* (232) table_options ::= table_options WATERMARK duration_list */ + 395, /* (233) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + 395, /* (234) table_options ::= table_options TTL NK_INTEGER */ + 395, /* (235) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + 395, /* (236) table_options ::= table_options DELETE_MARK duration_list */ + 400, /* (237) alter_table_options ::= alter_table_option */ + 400, /* (238) alter_table_options ::= alter_table_options alter_table_option */ + 413, /* (239) alter_table_option ::= COMMENT NK_STRING */ + 413, /* (240) alter_table_option ::= TTL NK_INTEGER */ + 411, /* (241) duration_list ::= duration_literal */ + 411, /* (242) duration_list ::= duration_list NK_COMMA duration_literal */ + 412, /* (243) rollup_func_list ::= rollup_func_name */ + 412, /* (244) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + 415, /* (245) rollup_func_name ::= function_name */ + 415, /* (246) rollup_func_name ::= FIRST */ + 415, /* (247) rollup_func_name ::= LAST */ + 408, /* (248) col_name_list ::= col_name */ + 408, /* (249) col_name_list ::= col_name_list NK_COMMA col_name */ + 417, /* (250) col_name ::= column_name */ + 357, /* (251) cmd ::= SHOW DNODES */ + 357, /* (252) cmd ::= SHOW USERS */ + 357, /* (253) cmd ::= SHOW USER PRIVILEGES */ + 357, /* (254) cmd ::= SHOW db_kind_opt DATABASES */ + 357, /* (255) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + 357, /* (256) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + 357, /* (257) cmd ::= SHOW db_name_cond_opt VGROUPS */ + 357, /* (258) cmd ::= SHOW MNODES */ + 357, /* (259) cmd ::= SHOW QNODES */ + 357, /* (260) cmd ::= SHOW ARBGROUPS */ + 357, /* (261) cmd ::= SHOW FUNCTIONS */ + 357, /* (262) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + 357, /* (263) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + 357, /* (264) cmd ::= SHOW STREAMS */ + 357, /* (265) cmd ::= SHOW ACCOUNTS */ + 357, /* (266) cmd ::= SHOW APPS */ + 357, /* (267) cmd ::= SHOW CONNECTIONS */ + 357, /* (268) cmd ::= SHOW LICENCES */ + 357, /* (269) cmd ::= SHOW GRANTS */ + 357, /* (270) cmd ::= SHOW GRANTS FULL */ + 357, /* (271) cmd ::= SHOW GRANTS LOGS */ + 357, /* (272) cmd ::= SHOW CLUSTER MACHINES */ + 357, /* (273) cmd ::= SHOW CREATE DATABASE db_name */ + 357, /* (274) cmd ::= SHOW CREATE TABLE full_table_name */ + 357, /* (275) cmd ::= SHOW CREATE STABLE full_table_name */ + 357, /* (276) cmd ::= SHOW ENCRYPTIONS */ + 357, /* (277) cmd ::= SHOW QUERIES */ + 357, /* (278) cmd ::= SHOW SCORES */ + 357, /* (279) cmd ::= SHOW TOPICS */ + 357, /* (280) cmd ::= SHOW VARIABLES */ + 357, /* (281) cmd ::= SHOW CLUSTER VARIABLES */ + 357, /* (282) cmd ::= SHOW LOCAL VARIABLES */ + 357, /* (283) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + 357, /* (284) cmd ::= SHOW BNODES */ + 357, /* (285) cmd ::= SHOW SNODES */ + 357, /* (286) cmd ::= SHOW CLUSTER */ + 357, /* (287) cmd ::= SHOW TRANSACTIONS */ + 357, /* (288) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + 357, /* (289) cmd ::= SHOW CONSUMERS */ + 357, /* (290) cmd ::= SHOW SUBSCRIPTIONS */ + 357, /* (291) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + 357, /* (292) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + 357, /* (293) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + 357, /* (294) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + 357, /* (295) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + 357, /* (296) cmd ::= SHOW VNODES */ + 357, /* (297) cmd ::= SHOW db_name_cond_opt ALIVE */ + 357, /* (298) cmd ::= SHOW CLUSTER ALIVE */ + 357, /* (299) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ + 357, /* (300) cmd ::= SHOW CREATE VIEW full_table_name */ + 357, /* (301) cmd ::= SHOW COMPACTS */ + 357, /* (302) cmd ::= SHOW COMPACT NK_INTEGER */ + 419, /* (303) table_kind_db_name_cond_opt ::= */ + 419, /* (304) table_kind_db_name_cond_opt ::= table_kind */ + 419, /* (305) table_kind_db_name_cond_opt ::= db_name NK_DOT */ + 419, /* (306) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ + 425, /* (307) table_kind ::= NORMAL */ + 425, /* (308) table_kind ::= CHILD */ + 421, /* (309) db_name_cond_opt ::= */ + 421, /* (310) db_name_cond_opt ::= db_name NK_DOT */ + 420, /* (311) like_pattern_opt ::= */ + 420, /* (312) like_pattern_opt ::= LIKE NK_STRING */ + 422, /* (313) table_name_cond ::= table_name */ + 423, /* (314) from_db_opt ::= */ + 423, /* (315) from_db_opt ::= FROM db_name */ + 424, /* (316) tag_list_opt ::= */ + 424, /* (317) tag_list_opt ::= tag_item */ + 424, /* (318) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + 426, /* (319) tag_item ::= TBNAME */ + 426, /* (320) tag_item ::= QTAGS */ + 426, /* (321) tag_item ::= column_name */ + 426, /* (322) tag_item ::= column_name column_alias */ + 426, /* (323) tag_item ::= column_name AS column_alias */ + 418, /* (324) db_kind_opt ::= */ + 418, /* (325) db_kind_opt ::= USER */ + 418, /* (326) db_kind_opt ::= SYSTEM */ + 357, /* (327) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + 357, /* (328) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ + 357, /* (329) cmd ::= DROP INDEX exists_opt full_index_name */ + 429, /* (330) full_index_name ::= index_name */ + 429, /* (331) full_index_name ::= db_name NK_DOT index_name */ + 428, /* (332) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + 428, /* (333) 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 */ + 431, /* (334) func_list ::= func */ + 431, /* (335) func_list ::= func_list NK_COMMA func */ + 434, /* (336) func ::= sma_func_name NK_LP expression_list NK_RP */ + 435, /* (337) sma_func_name ::= function_name */ + 435, /* (338) sma_func_name ::= COUNT */ + 435, /* (339) sma_func_name ::= FIRST */ + 435, /* (340) sma_func_name ::= LAST */ + 435, /* (341) sma_func_name ::= LAST_ROW */ + 433, /* (342) sma_stream_opt ::= */ + 433, /* (343) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + 433, /* (344) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + 433, /* (345) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + 437, /* (346) with_meta ::= AS */ + 437, /* (347) with_meta ::= WITH META AS */ + 437, /* (348) with_meta ::= ONLY META AS */ + 357, /* (349) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + 357, /* (350) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + 357, /* (351) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + 357, /* (352) cmd ::= DROP TOPIC exists_opt topic_name */ + 357, /* (353) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + 357, /* (354) cmd ::= DESC full_table_name */ + 357, /* (355) cmd ::= DESCRIBE full_table_name */ + 357, /* (356) cmd ::= RESET QUERY CACHE */ + 357, /* (357) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + 357, /* (358) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 441, /* (359) analyze_opt ::= */ + 441, /* (360) analyze_opt ::= ANALYZE */ + 442, /* (361) explain_options ::= */ + 442, /* (362) explain_options ::= explain_options VERBOSE NK_BOOL */ + 442, /* (363) explain_options ::= explain_options RATIO NK_FLOAT */ + 357, /* (364) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + 357, /* (365) cmd ::= DROP FUNCTION exists_opt function_name */ + 445, /* (366) agg_func_opt ::= */ + 445, /* (367) agg_func_opt ::= AGGREGATE */ + 446, /* (368) bufsize_opt ::= */ + 446, /* (369) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 447, /* (370) language_opt ::= */ + 447, /* (371) language_opt ::= LANGUAGE NK_STRING */ + 444, /* (372) or_replace_opt ::= */ + 444, /* (373) or_replace_opt ::= OR REPLACE */ + 357, /* (374) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ + 357, /* (375) cmd ::= DROP VIEW exists_opt full_view_name */ + 448, /* (376) full_view_name ::= view_name */ + 448, /* (377) full_view_name ::= db_name NK_DOT view_name */ + 357, /* (378) 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 */ + 357, /* (379) cmd ::= DROP STREAM exists_opt stream_name */ + 357, /* (380) cmd ::= PAUSE STREAM exists_opt stream_name */ + 357, /* (381) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 452, /* (382) col_list_opt ::= */ + 452, /* (383) col_list_opt ::= NK_LP col_name_list NK_RP */ + 453, /* (384) tag_def_or_ref_opt ::= */ + 453, /* (385) tag_def_or_ref_opt ::= tags_def */ + 453, /* (386) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ + 451, /* (387) stream_options ::= */ + 451, /* (388) stream_options ::= stream_options TRIGGER AT_ONCE */ + 451, /* (389) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + 451, /* (390) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + 451, /* (391) stream_options ::= stream_options WATERMARK duration_literal */ + 451, /* (392) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + 451, /* (393) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + 451, /* (394) stream_options ::= stream_options DELETE_MARK duration_literal */ + 451, /* (395) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 454, /* (396) subtable_opt ::= */ + 454, /* (397) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 455, /* (398) ignore_opt ::= */ + 455, /* (399) ignore_opt ::= IGNORE UNTREATED */ + 357, /* (400) cmd ::= KILL CONNECTION NK_INTEGER */ + 357, /* (401) cmd ::= KILL QUERY NK_STRING */ + 357, /* (402) cmd ::= KILL TRANSACTION NK_INTEGER */ + 357, /* (403) cmd ::= KILL COMPACT NK_INTEGER */ + 357, /* (404) cmd ::= BALANCE VGROUP */ + 357, /* (405) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ + 357, /* (406) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + 357, /* (407) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + 357, /* (408) cmd ::= SPLIT VGROUP NK_INTEGER */ + 457, /* (409) on_vgroup_id ::= */ + 457, /* (410) on_vgroup_id ::= ON NK_INTEGER */ + 458, /* (411) dnode_list ::= DNODE NK_INTEGER */ + 458, /* (412) dnode_list ::= dnode_list DNODE NK_INTEGER */ + 357, /* (413) cmd ::= DELETE FROM full_table_name where_clause_opt */ + 357, /* (414) cmd ::= query_or_subquery */ + 357, /* (415) cmd ::= insert_query */ + 443, /* (416) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + 443, /* (417) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + 403, /* (418) tags_literal ::= NK_INTEGER */ + 403, /* (419) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + 403, /* (420) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ + 403, /* (421) tags_literal ::= NK_PLUS NK_INTEGER */ + 403, /* (422) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + 403, /* (423) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ + 403, /* (424) tags_literal ::= NK_MINUS NK_INTEGER */ + 403, /* (425) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ + 403, /* (426) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ + 403, /* (427) tags_literal ::= NK_FLOAT */ + 403, /* (428) tags_literal ::= NK_PLUS NK_FLOAT */ + 403, /* (429) tags_literal ::= NK_MINUS NK_FLOAT */ + 403, /* (430) tags_literal ::= NK_BIN */ + 403, /* (431) tags_literal ::= NK_BIN NK_PLUS duration_literal */ + 403, /* (432) tags_literal ::= NK_BIN NK_MINUS duration_literal */ + 403, /* (433) tags_literal ::= NK_PLUS NK_BIN */ + 403, /* (434) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ + 403, /* (435) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ + 403, /* (436) tags_literal ::= NK_MINUS NK_BIN */ + 403, /* (437) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ + 403, /* (438) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ + 403, /* (439) tags_literal ::= NK_HEX */ + 403, /* (440) tags_literal ::= NK_HEX NK_PLUS duration_literal */ + 403, /* (441) tags_literal ::= NK_HEX NK_MINUS duration_literal */ + 403, /* (442) tags_literal ::= NK_PLUS NK_HEX */ + 403, /* (443) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ + 403, /* (444) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ + 403, /* (445) tags_literal ::= NK_MINUS NK_HEX */ + 403, /* (446) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ + 403, /* (447) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ + 403, /* (448) tags_literal ::= NK_STRING */ + 403, /* (449) tags_literal ::= NK_STRING NK_PLUS duration_literal */ + 403, /* (450) tags_literal ::= NK_STRING NK_MINUS duration_literal */ + 403, /* (451) tags_literal ::= NK_BOOL */ + 403, /* (452) tags_literal ::= NULL */ + 403, /* (453) tags_literal ::= literal_func */ + 403, /* (454) tags_literal ::= literal_func NK_PLUS duration_literal */ + 403, /* (455) tags_literal ::= literal_func NK_MINUS duration_literal */ + 406, /* (456) tags_literal_list ::= tags_literal */ + 406, /* (457) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ + 360, /* (458) literal ::= NK_INTEGER */ + 360, /* (459) literal ::= NK_FLOAT */ + 360, /* (460) literal ::= NK_STRING */ + 360, /* (461) literal ::= NK_BOOL */ + 360, /* (462) literal ::= TIMESTAMP NK_STRING */ + 360, /* (463) literal ::= duration_literal */ + 360, /* (464) literal ::= NULL */ + 360, /* (465) literal ::= NK_QUESTION */ + 414, /* (466) duration_literal ::= NK_VARIABLE */ + 389, /* (467) signed ::= NK_INTEGER */ + 389, /* (468) signed ::= NK_PLUS NK_INTEGER */ + 389, /* (469) signed ::= NK_MINUS NK_INTEGER */ + 389, /* (470) signed ::= NK_FLOAT */ + 389, /* (471) signed ::= NK_PLUS NK_FLOAT */ + 389, /* (472) signed ::= NK_MINUS NK_FLOAT */ + 460, /* (473) signed_literal ::= signed */ + 460, /* (474) signed_literal ::= NK_STRING */ + 460, /* (475) signed_literal ::= NK_BOOL */ + 460, /* (476) signed_literal ::= TIMESTAMP NK_STRING */ + 460, /* (477) signed_literal ::= duration_literal */ + 460, /* (478) signed_literal ::= NULL */ + 460, /* (479) signed_literal ::= literal_func */ + 460, /* (480) signed_literal ::= NK_QUESTION */ + 461, /* (481) literal_list ::= signed_literal */ + 461, /* (482) literal_list ::= literal_list NK_COMMA signed_literal */ + 372, /* (483) db_name ::= NK_ID */ + 373, /* (484) table_name ::= NK_ID */ + 401, /* (485) column_name ::= NK_ID */ + 416, /* (486) function_name ::= NK_ID */ + 449, /* (487) view_name ::= NK_ID */ + 462, /* (488) table_alias ::= NK_ID */ + 427, /* (489) column_alias ::= NK_ID */ + 427, /* (490) column_alias ::= NK_ALIAS */ + 365, /* (491) user_name ::= NK_ID */ + 374, /* (492) topic_name ::= NK_ID */ + 450, /* (493) stream_name ::= NK_ID */ + 440, /* (494) cgroup_name ::= NK_ID */ + 430, /* (495) index_name ::= NK_ID */ + 463, /* (496) expr_or_subquery ::= expression */ + 456, /* (497) expression ::= literal */ + 456, /* (498) expression ::= pseudo_column */ + 456, /* (499) expression ::= column_reference */ + 456, /* (500) expression ::= function_expression */ + 456, /* (501) expression ::= case_when_expression */ + 456, /* (502) expression ::= NK_LP expression NK_RP */ + 456, /* (503) expression ::= NK_PLUS expr_or_subquery */ + 456, /* (504) expression ::= NK_MINUS expr_or_subquery */ + 456, /* (505) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + 456, /* (506) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + 456, /* (507) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + 456, /* (508) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + 456, /* (509) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + 456, /* (510) expression ::= column_reference NK_ARROW NK_STRING */ + 456, /* (511) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + 456, /* (512) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + 436, /* (513) expression_list ::= expr_or_subquery */ + 436, /* (514) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + 465, /* (515) column_reference ::= column_name */ + 465, /* (516) column_reference ::= table_name NK_DOT column_name */ + 465, /* (517) column_reference ::= NK_ALIAS */ + 465, /* (518) column_reference ::= table_name NK_DOT NK_ALIAS */ + 464, /* (519) pseudo_column ::= ROWTS */ + 464, /* (520) pseudo_column ::= TBNAME */ + 464, /* (521) pseudo_column ::= table_name NK_DOT TBNAME */ + 464, /* (522) pseudo_column ::= QSTART */ + 464, /* (523) pseudo_column ::= QEND */ + 464, /* (524) pseudo_column ::= QDURATION */ + 464, /* (525) pseudo_column ::= WSTART */ + 464, /* (526) pseudo_column ::= WEND */ + 464, /* (527) pseudo_column ::= WDURATION */ + 464, /* (528) pseudo_column ::= IROWTS */ + 464, /* (529) pseudo_column ::= ISFILLED */ + 464, /* (530) pseudo_column ::= QTAGS */ + 466, /* (531) function_expression ::= function_name NK_LP expression_list NK_RP */ + 466, /* (532) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + 466, /* (533) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + 466, /* (534) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ + 466, /* (535) function_expression ::= literal_func */ + 459, /* (536) literal_func ::= noarg_func NK_LP NK_RP */ + 459, /* (537) literal_func ::= NOW */ + 459, /* (538) literal_func ::= TODAY */ + 470, /* (539) noarg_func ::= NOW */ + 470, /* (540) noarg_func ::= TODAY */ + 470, /* (541) noarg_func ::= TIMEZONE */ + 470, /* (542) noarg_func ::= DATABASE */ + 470, /* (543) noarg_func ::= CLIENT_VERSION */ + 470, /* (544) noarg_func ::= SERVER_VERSION */ + 470, /* (545) noarg_func ::= SERVER_STATUS */ + 470, /* (546) noarg_func ::= CURRENT_USER */ + 470, /* (547) noarg_func ::= USER */ + 468, /* (548) star_func ::= COUNT */ + 468, /* (549) star_func ::= FIRST */ + 468, /* (550) star_func ::= LAST */ + 468, /* (551) star_func ::= LAST_ROW */ + 469, /* (552) star_func_para_list ::= NK_STAR */ + 469, /* (553) star_func_para_list ::= other_para_list */ + 471, /* (554) other_para_list ::= star_func_para */ + 471, /* (555) other_para_list ::= other_para_list NK_COMMA star_func_para */ + 472, /* (556) star_func_para ::= expr_or_subquery */ + 472, /* (557) star_func_para ::= table_name NK_DOT NK_STAR */ + 467, /* (558) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + 467, /* (559) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + 473, /* (560) when_then_list ::= when_then_expr */ + 473, /* (561) when_then_list ::= when_then_list when_then_expr */ + 476, /* (562) when_then_expr ::= WHEN common_expression THEN common_expression */ + 474, /* (563) case_when_else_opt ::= */ + 474, /* (564) case_when_else_opt ::= ELSE common_expression */ + 477, /* (565) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + 477, /* (566) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + 477, /* (567) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + 477, /* (568) predicate ::= expr_or_subquery IS NULL */ + 477, /* (569) predicate ::= expr_or_subquery IS NOT NULL */ + 477, /* (570) predicate ::= expr_or_subquery in_op in_predicate_value */ + 478, /* (571) compare_op ::= NK_LT */ + 478, /* (572) compare_op ::= NK_GT */ + 478, /* (573) compare_op ::= NK_LE */ + 478, /* (574) compare_op ::= NK_GE */ + 478, /* (575) compare_op ::= NK_NE */ + 478, /* (576) compare_op ::= NK_EQ */ + 478, /* (577) compare_op ::= LIKE */ + 478, /* (578) compare_op ::= NOT LIKE */ + 478, /* (579) compare_op ::= MATCH */ + 478, /* (580) compare_op ::= NMATCH */ + 478, /* (581) compare_op ::= CONTAINS */ + 479, /* (582) in_op ::= IN */ + 479, /* (583) in_op ::= NOT IN */ + 480, /* (584) in_predicate_value ::= NK_LP literal_list NK_RP */ + 481, /* (585) boolean_value_expression ::= boolean_primary */ + 481, /* (586) boolean_value_expression ::= NOT boolean_primary */ + 481, /* (587) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + 481, /* (588) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + 482, /* (589) boolean_primary ::= predicate */ + 482, /* (590) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + 475, /* (591) common_expression ::= expr_or_subquery */ + 475, /* (592) common_expression ::= boolean_value_expression */ + 483, /* (593) from_clause_opt ::= */ + 483, /* (594) from_clause_opt ::= FROM table_reference_list */ + 484, /* (595) table_reference_list ::= table_reference */ + 484, /* (596) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + 485, /* (597) table_reference ::= table_primary */ + 485, /* (598) table_reference ::= joined_table */ + 486, /* (599) table_primary ::= table_name alias_opt */ + 486, /* (600) table_primary ::= db_name NK_DOT table_name alias_opt */ + 486, /* (601) table_primary ::= subquery alias_opt */ + 486, /* (602) table_primary ::= parenthesized_joined_table */ + 488, /* (603) alias_opt ::= */ + 488, /* (604) alias_opt ::= table_alias */ + 488, /* (605) alias_opt ::= AS table_alias */ + 490, /* (606) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + 490, /* (607) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + 487, /* (608) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + 491, /* (609) join_type ::= */ + 491, /* (610) join_type ::= INNER */ + 492, /* (611) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + 493, /* (612) hint_list ::= */ + 493, /* (613) hint_list ::= NK_HINT */ + 495, /* (614) tag_mode_opt ::= */ + 495, /* (615) tag_mode_opt ::= TAGS */ + 494, /* (616) set_quantifier_opt ::= */ + 494, /* (617) set_quantifier_opt ::= DISTINCT */ + 494, /* (618) set_quantifier_opt ::= ALL */ + 496, /* (619) select_list ::= select_item */ + 496, /* (620) select_list ::= select_list NK_COMMA select_item */ + 504, /* (621) select_item ::= NK_STAR */ + 504, /* (622) select_item ::= common_expression */ + 504, /* (623) select_item ::= common_expression column_alias */ + 504, /* (624) select_item ::= common_expression AS column_alias */ + 504, /* (625) select_item ::= table_name NK_DOT NK_STAR */ + 439, /* (626) where_clause_opt ::= */ + 439, /* (627) where_clause_opt ::= WHERE search_condition */ + 497, /* (628) partition_by_clause_opt ::= */ + 497, /* (629) partition_by_clause_opt ::= PARTITION BY partition_list */ + 505, /* (630) partition_list ::= partition_item */ + 505, /* (631) partition_list ::= partition_list NK_COMMA partition_item */ + 506, /* (632) partition_item ::= expr_or_subquery */ + 506, /* (633) partition_item ::= expr_or_subquery column_alias */ + 506, /* (634) partition_item ::= expr_or_subquery AS column_alias */ + 501, /* (635) twindow_clause_opt ::= */ + 501, /* (636) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ + 501, /* (637) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + 501, /* (638) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + 501, /* (639) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + 501, /* (640) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + 501, /* (641) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ + 501, /* (642) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 432, /* (643) sliding_opt ::= */ + 432, /* (644) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ + 507, /* (645) interval_sliding_duration_literal ::= NK_VARIABLE */ + 507, /* (646) interval_sliding_duration_literal ::= NK_STRING */ + 507, /* (647) interval_sliding_duration_literal ::= NK_INTEGER */ + 500, /* (648) fill_opt ::= */ + 500, /* (649) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + 500, /* (650) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + 500, /* (651) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + 508, /* (652) fill_mode ::= NONE */ + 508, /* (653) fill_mode ::= PREV */ + 508, /* (654) fill_mode ::= NULL */ + 508, /* (655) fill_mode ::= NULL_F */ + 508, /* (656) fill_mode ::= LINEAR */ + 508, /* (657) fill_mode ::= NEXT */ + 502, /* (658) group_by_clause_opt ::= */ + 502, /* (659) group_by_clause_opt ::= GROUP BY group_by_list */ + 509, /* (660) group_by_list ::= expr_or_subquery */ + 509, /* (661) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 503, /* (662) having_clause_opt ::= */ + 503, /* (663) having_clause_opt ::= HAVING search_condition */ + 498, /* (664) range_opt ::= */ + 498, /* (665) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + 498, /* (666) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 499, /* (667) every_opt ::= */ + 499, /* (668) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + 510, /* (669) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + 511, /* (670) query_simple ::= query_specification */ + 511, /* (671) query_simple ::= union_query_expression */ + 515, /* (672) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + 515, /* (673) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + 516, /* (674) query_simple_or_subquery ::= query_simple */ + 516, /* (675) query_simple_or_subquery ::= subquery */ + 438, /* (676) query_or_subquery ::= query_expression */ + 438, /* (677) query_or_subquery ::= subquery */ + 512, /* (678) order_by_clause_opt ::= */ + 512, /* (679) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 513, /* (680) slimit_clause_opt ::= */ + 513, /* (681) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + 513, /* (682) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + 513, /* (683) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 514, /* (684) limit_clause_opt ::= */ + 514, /* (685) limit_clause_opt ::= LIMIT NK_INTEGER */ + 514, /* (686) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + 514, /* (687) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 489, /* (688) subquery ::= NK_LP query_expression NK_RP */ + 489, /* (689) subquery ::= NK_LP subquery NK_RP */ + 375, /* (690) search_condition ::= common_expression */ + 517, /* (691) sort_specification_list ::= sort_specification */ + 517, /* (692) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + 518, /* (693) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 519, /* (694) ordering_specification_opt ::= */ + 519, /* (695) ordering_specification_opt ::= ASC */ + 519, /* (696) ordering_specification_opt ::= DESC */ + 520, /* (697) null_ordering_opt ::= */ + 520, /* (698) null_ordering_opt ::= NULLS FIRST */ + 520, /* (699) null_ordering_opt ::= NULLS LAST */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number @@ -4353,479 +4418,484 @@ static const signed char yyRuleInfoNRhs[] = { -1, /* (219) type_name ::= DECIMAL */ -4, /* (220) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (221) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 0, /* (222) tags_def_opt ::= */ - -1, /* (223) tags_def_opt ::= tags_def */ - -4, /* (224) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - 0, /* (225) table_options ::= */ - -3, /* (226) table_options ::= table_options COMMENT NK_STRING */ - -3, /* (227) table_options ::= table_options MAX_DELAY duration_list */ - -3, /* (228) table_options ::= table_options WATERMARK duration_list */ - -5, /* (229) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - -3, /* (230) table_options ::= table_options TTL NK_INTEGER */ - -5, /* (231) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - -3, /* (232) table_options ::= table_options DELETE_MARK duration_list */ - -1, /* (233) alter_table_options ::= alter_table_option */ - -2, /* (234) alter_table_options ::= alter_table_options alter_table_option */ - -2, /* (235) alter_table_option ::= COMMENT NK_STRING */ - -2, /* (236) alter_table_option ::= TTL NK_INTEGER */ - -1, /* (237) duration_list ::= duration_literal */ - -3, /* (238) duration_list ::= duration_list NK_COMMA duration_literal */ - -1, /* (239) rollup_func_list ::= rollup_func_name */ - -3, /* (240) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - -1, /* (241) rollup_func_name ::= function_name */ - -1, /* (242) rollup_func_name ::= FIRST */ - -1, /* (243) rollup_func_name ::= LAST */ - -1, /* (244) col_name_list ::= col_name */ - -3, /* (245) col_name_list ::= col_name_list NK_COMMA col_name */ - -1, /* (246) col_name ::= column_name */ - -2, /* (247) cmd ::= SHOW DNODES */ - -2, /* (248) cmd ::= SHOW USERS */ - -3, /* (249) cmd ::= SHOW USER PRIVILEGES */ - -3, /* (250) cmd ::= SHOW db_kind_opt DATABASES */ - -4, /* (251) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ - -4, /* (252) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - -3, /* (253) cmd ::= SHOW db_name_cond_opt VGROUPS */ - -2, /* (254) cmd ::= SHOW MNODES */ - -2, /* (255) cmd ::= SHOW QNODES */ - -2, /* (256) cmd ::= SHOW ARBGROUPS */ - -2, /* (257) cmd ::= SHOW FUNCTIONS */ - -5, /* (258) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - -6, /* (259) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - -2, /* (260) cmd ::= SHOW STREAMS */ - -2, /* (261) cmd ::= SHOW ACCOUNTS */ - -2, /* (262) cmd ::= SHOW APPS */ - -2, /* (263) cmd ::= SHOW CONNECTIONS */ - -2, /* (264) cmd ::= SHOW LICENCES */ - -2, /* (265) cmd ::= SHOW GRANTS */ - -3, /* (266) cmd ::= SHOW GRANTS FULL */ - -3, /* (267) cmd ::= SHOW GRANTS LOGS */ - -3, /* (268) cmd ::= SHOW CLUSTER MACHINES */ - -4, /* (269) cmd ::= SHOW CREATE DATABASE db_name */ - -4, /* (270) cmd ::= SHOW CREATE TABLE full_table_name */ - -4, /* (271) cmd ::= SHOW CREATE STABLE full_table_name */ - -2, /* (272) cmd ::= SHOW ENCRYPTIONS */ - -2, /* (273) cmd ::= SHOW QUERIES */ - -2, /* (274) cmd ::= SHOW SCORES */ - -2, /* (275) cmd ::= SHOW TOPICS */ - -2, /* (276) cmd ::= SHOW VARIABLES */ - -3, /* (277) cmd ::= SHOW CLUSTER VARIABLES */ - -3, /* (278) cmd ::= SHOW LOCAL VARIABLES */ - -5, /* (279) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - -2, /* (280) cmd ::= SHOW BNODES */ - -2, /* (281) cmd ::= SHOW SNODES */ - -2, /* (282) cmd ::= SHOW CLUSTER */ - -2, /* (283) cmd ::= SHOW TRANSACTIONS */ - -4, /* (284) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - -2, /* (285) cmd ::= SHOW CONSUMERS */ - -2, /* (286) cmd ::= SHOW SUBSCRIPTIONS */ - -5, /* (287) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - -6, /* (288) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - -7, /* (289) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - -8, /* (290) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - -5, /* (291) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ - -2, /* (292) cmd ::= SHOW VNODES */ - -3, /* (293) cmd ::= SHOW db_name_cond_opt ALIVE */ - -3, /* (294) cmd ::= SHOW CLUSTER ALIVE */ - -4, /* (295) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ - -4, /* (296) cmd ::= SHOW CREATE VIEW full_table_name */ - -2, /* (297) cmd ::= SHOW COMPACTS */ - -3, /* (298) cmd ::= SHOW COMPACT NK_INTEGER */ - 0, /* (299) table_kind_db_name_cond_opt ::= */ - -1, /* (300) table_kind_db_name_cond_opt ::= table_kind */ - -2, /* (301) table_kind_db_name_cond_opt ::= db_name NK_DOT */ - -3, /* (302) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ - -1, /* (303) table_kind ::= NORMAL */ - -1, /* (304) table_kind ::= CHILD */ - 0, /* (305) db_name_cond_opt ::= */ - -2, /* (306) db_name_cond_opt ::= db_name NK_DOT */ - 0, /* (307) like_pattern_opt ::= */ - -2, /* (308) like_pattern_opt ::= LIKE NK_STRING */ - -1, /* (309) table_name_cond ::= table_name */ - 0, /* (310) from_db_opt ::= */ - -2, /* (311) from_db_opt ::= FROM db_name */ - 0, /* (312) tag_list_opt ::= */ - -1, /* (313) tag_list_opt ::= tag_item */ - -3, /* (314) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - -1, /* (315) tag_item ::= TBNAME */ - -1, /* (316) tag_item ::= QTAGS */ - -1, /* (317) tag_item ::= column_name */ - -2, /* (318) tag_item ::= column_name column_alias */ - -3, /* (319) tag_item ::= column_name AS column_alias */ - 0, /* (320) db_kind_opt ::= */ - -1, /* (321) db_kind_opt ::= USER */ - -1, /* (322) db_kind_opt ::= SYSTEM */ - -8, /* (323) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ - -9, /* (324) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ - -4, /* (325) cmd ::= DROP INDEX exists_opt full_index_name */ - -1, /* (326) full_index_name ::= index_name */ - -3, /* (327) full_index_name ::= db_name NK_DOT index_name */ - -10, /* (328) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - -12, /* (329) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ - -1, /* (330) func_list ::= func */ - -3, /* (331) func_list ::= func_list NK_COMMA func */ - -4, /* (332) func ::= sma_func_name NK_LP expression_list NK_RP */ - -1, /* (333) sma_func_name ::= function_name */ - -1, /* (334) sma_func_name ::= COUNT */ - -1, /* (335) sma_func_name ::= FIRST */ - -1, /* (336) sma_func_name ::= LAST */ - -1, /* (337) sma_func_name ::= LAST_ROW */ - 0, /* (338) sma_stream_opt ::= */ - -3, /* (339) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - -3, /* (340) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - -3, /* (341) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - -1, /* (342) with_meta ::= AS */ - -3, /* (343) with_meta ::= WITH META AS */ - -3, /* (344) with_meta ::= ONLY META AS */ - -6, /* (345) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - -7, /* (346) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - -8, /* (347) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - -4, /* (348) cmd ::= DROP TOPIC exists_opt topic_name */ - -7, /* (349) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - -2, /* (350) cmd ::= DESC full_table_name */ - -2, /* (351) cmd ::= DESCRIBE full_table_name */ - -3, /* (352) cmd ::= RESET QUERY CACHE */ - -4, /* (353) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - -4, /* (354) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 0, /* (355) analyze_opt ::= */ - -1, /* (356) analyze_opt ::= ANALYZE */ - 0, /* (357) explain_options ::= */ - -3, /* (358) explain_options ::= explain_options VERBOSE NK_BOOL */ - -3, /* (359) explain_options ::= explain_options RATIO NK_FLOAT */ - -12, /* (360) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - -4, /* (361) cmd ::= DROP FUNCTION exists_opt function_name */ - 0, /* (362) agg_func_opt ::= */ - -1, /* (363) agg_func_opt ::= AGGREGATE */ - 0, /* (364) bufsize_opt ::= */ - -2, /* (365) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 0, /* (366) language_opt ::= */ - -2, /* (367) language_opt ::= LANGUAGE NK_STRING */ - 0, /* (368) or_replace_opt ::= */ - -2, /* (369) or_replace_opt ::= OR REPLACE */ - -6, /* (370) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ - -4, /* (371) cmd ::= DROP VIEW exists_opt full_view_name */ - -1, /* (372) full_view_name ::= view_name */ - -3, /* (373) full_view_name ::= db_name NK_DOT view_name */ - -12, /* (374) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ - -4, /* (375) cmd ::= DROP STREAM exists_opt stream_name */ - -4, /* (376) cmd ::= PAUSE STREAM exists_opt stream_name */ - -5, /* (377) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 0, /* (378) col_list_opt ::= */ - -3, /* (379) col_list_opt ::= NK_LP col_name_list NK_RP */ - 0, /* (380) tag_def_or_ref_opt ::= */ - -1, /* (381) tag_def_or_ref_opt ::= tags_def */ - -4, /* (382) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ - 0, /* (383) stream_options ::= */ - -3, /* (384) stream_options ::= stream_options TRIGGER AT_ONCE */ - -3, /* (385) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - -4, /* (386) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - -3, /* (387) stream_options ::= stream_options WATERMARK duration_literal */ - -4, /* (388) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - -3, /* (389) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - -3, /* (390) stream_options ::= stream_options DELETE_MARK duration_literal */ - -4, /* (391) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 0, /* (392) subtable_opt ::= */ - -4, /* (393) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 0, /* (394) ignore_opt ::= */ - -2, /* (395) ignore_opt ::= IGNORE UNTREATED */ - -3, /* (396) cmd ::= KILL CONNECTION NK_INTEGER */ - -3, /* (397) cmd ::= KILL QUERY NK_STRING */ - -3, /* (398) cmd ::= KILL TRANSACTION NK_INTEGER */ - -3, /* (399) cmd ::= KILL COMPACT NK_INTEGER */ - -2, /* (400) cmd ::= BALANCE VGROUP */ - -4, /* (401) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ - -4, /* (402) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - -4, /* (403) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - -3, /* (404) cmd ::= SPLIT VGROUP NK_INTEGER */ - 0, /* (405) on_vgroup_id ::= */ - -2, /* (406) on_vgroup_id ::= ON NK_INTEGER */ - -2, /* (407) dnode_list ::= DNODE NK_INTEGER */ - -3, /* (408) dnode_list ::= dnode_list DNODE NK_INTEGER */ - -4, /* (409) cmd ::= DELETE FROM full_table_name where_clause_opt */ - -1, /* (410) cmd ::= query_or_subquery */ - -1, /* (411) cmd ::= insert_query */ - -7, /* (412) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - -4, /* (413) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - -1, /* (414) tags_literal ::= NK_INTEGER */ - -3, /* (415) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - -3, /* (416) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ - -2, /* (417) tags_literal ::= NK_PLUS NK_INTEGER */ - -4, /* (418) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - -4, /* (419) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ - -2, /* (420) tags_literal ::= NK_MINUS NK_INTEGER */ - -4, /* (421) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ - -4, /* (422) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ - -1, /* (423) tags_literal ::= NK_FLOAT */ - -2, /* (424) tags_literal ::= NK_PLUS NK_FLOAT */ - -2, /* (425) tags_literal ::= NK_MINUS NK_FLOAT */ - -1, /* (426) tags_literal ::= NK_BIN */ - -3, /* (427) tags_literal ::= NK_BIN NK_PLUS duration_literal */ - -3, /* (428) tags_literal ::= NK_BIN NK_MINUS duration_literal */ - -2, /* (429) tags_literal ::= NK_PLUS NK_BIN */ - -4, /* (430) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ - -4, /* (431) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ - -2, /* (432) tags_literal ::= NK_MINUS NK_BIN */ - -4, /* (433) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ - -4, /* (434) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ - -1, /* (435) tags_literal ::= NK_HEX */ - -3, /* (436) tags_literal ::= NK_HEX NK_PLUS duration_literal */ - -3, /* (437) tags_literal ::= NK_HEX NK_MINUS duration_literal */ - -2, /* (438) tags_literal ::= NK_PLUS NK_HEX */ - -4, /* (439) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ - -4, /* (440) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ - -2, /* (441) tags_literal ::= NK_MINUS NK_HEX */ - -4, /* (442) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ - -4, /* (443) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ - -1, /* (444) tags_literal ::= NK_STRING */ - -3, /* (445) tags_literal ::= NK_STRING NK_PLUS duration_literal */ - -3, /* (446) tags_literal ::= NK_STRING NK_MINUS duration_literal */ - -1, /* (447) tags_literal ::= NK_BOOL */ - -1, /* (448) tags_literal ::= NULL */ - -1, /* (449) tags_literal ::= literal_func */ - -3, /* (450) tags_literal ::= literal_func NK_PLUS duration_literal */ - -3, /* (451) tags_literal ::= literal_func NK_MINUS duration_literal */ - -1, /* (452) tags_literal_list ::= tags_literal */ - -3, /* (453) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ - -1, /* (454) literal ::= NK_INTEGER */ - -1, /* (455) literal ::= NK_FLOAT */ - -1, /* (456) literal ::= NK_STRING */ - -1, /* (457) literal ::= NK_BOOL */ - -2, /* (458) literal ::= TIMESTAMP NK_STRING */ - -1, /* (459) literal ::= duration_literal */ - -1, /* (460) literal ::= NULL */ - -1, /* (461) literal ::= NK_QUESTION */ - -1, /* (462) duration_literal ::= NK_VARIABLE */ - -1, /* (463) signed ::= NK_INTEGER */ - -2, /* (464) signed ::= NK_PLUS NK_INTEGER */ - -2, /* (465) signed ::= NK_MINUS NK_INTEGER */ - -1, /* (466) signed ::= NK_FLOAT */ - -2, /* (467) signed ::= NK_PLUS NK_FLOAT */ - -2, /* (468) signed ::= NK_MINUS NK_FLOAT */ - -1, /* (469) signed_literal ::= signed */ - -1, /* (470) signed_literal ::= NK_STRING */ - -1, /* (471) signed_literal ::= NK_BOOL */ - -2, /* (472) signed_literal ::= TIMESTAMP NK_STRING */ - -1, /* (473) signed_literal ::= duration_literal */ - -1, /* (474) signed_literal ::= NULL */ - -1, /* (475) signed_literal ::= literal_func */ - -1, /* (476) signed_literal ::= NK_QUESTION */ - -1, /* (477) literal_list ::= signed_literal */ - -3, /* (478) literal_list ::= literal_list NK_COMMA signed_literal */ - -1, /* (479) db_name ::= NK_ID */ - -1, /* (480) table_name ::= NK_ID */ - -1, /* (481) column_name ::= NK_ID */ - -1, /* (482) function_name ::= NK_ID */ - -1, /* (483) view_name ::= NK_ID */ - -1, /* (484) table_alias ::= NK_ID */ - -1, /* (485) column_alias ::= NK_ID */ - -1, /* (486) column_alias ::= NK_ALIAS */ - -1, /* (487) user_name ::= NK_ID */ - -1, /* (488) topic_name ::= NK_ID */ - -1, /* (489) stream_name ::= NK_ID */ - -1, /* (490) cgroup_name ::= NK_ID */ - -1, /* (491) index_name ::= NK_ID */ - -1, /* (492) expr_or_subquery ::= expression */ - -1, /* (493) expression ::= literal */ - -1, /* (494) expression ::= pseudo_column */ - -1, /* (495) expression ::= column_reference */ - -1, /* (496) expression ::= function_expression */ - -1, /* (497) expression ::= case_when_expression */ - -3, /* (498) expression ::= NK_LP expression NK_RP */ - -2, /* (499) expression ::= NK_PLUS expr_or_subquery */ - -2, /* (500) expression ::= NK_MINUS expr_or_subquery */ - -3, /* (501) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - -3, /* (502) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - -3, /* (503) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - -3, /* (504) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - -3, /* (505) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - -3, /* (506) expression ::= column_reference NK_ARROW NK_STRING */ - -3, /* (507) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - -3, /* (508) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - -1, /* (509) expression_list ::= expr_or_subquery */ - -3, /* (510) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - -1, /* (511) column_reference ::= column_name */ - -3, /* (512) column_reference ::= table_name NK_DOT column_name */ - -1, /* (513) column_reference ::= NK_ALIAS */ - -3, /* (514) column_reference ::= table_name NK_DOT NK_ALIAS */ - -1, /* (515) pseudo_column ::= ROWTS */ - -1, /* (516) pseudo_column ::= TBNAME */ - -3, /* (517) pseudo_column ::= table_name NK_DOT TBNAME */ - -1, /* (518) pseudo_column ::= QSTART */ - -1, /* (519) pseudo_column ::= QEND */ - -1, /* (520) pseudo_column ::= QDURATION */ - -1, /* (521) pseudo_column ::= WSTART */ - -1, /* (522) pseudo_column ::= WEND */ - -1, /* (523) pseudo_column ::= WDURATION */ - -1, /* (524) pseudo_column ::= IROWTS */ - -1, /* (525) pseudo_column ::= ISFILLED */ - -1, /* (526) pseudo_column ::= QTAGS */ - -4, /* (527) function_expression ::= function_name NK_LP expression_list NK_RP */ - -4, /* (528) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - -6, /* (529) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - -1, /* (530) function_expression ::= literal_func */ - -3, /* (531) literal_func ::= noarg_func NK_LP NK_RP */ - -1, /* (532) literal_func ::= NOW */ - -1, /* (533) literal_func ::= TODAY */ - -1, /* (534) noarg_func ::= NOW */ - -1, /* (535) noarg_func ::= TODAY */ - -1, /* (536) noarg_func ::= TIMEZONE */ - -1, /* (537) noarg_func ::= DATABASE */ - -1, /* (538) noarg_func ::= CLIENT_VERSION */ - -1, /* (539) noarg_func ::= SERVER_VERSION */ - -1, /* (540) noarg_func ::= SERVER_STATUS */ - -1, /* (541) noarg_func ::= CURRENT_USER */ - -1, /* (542) noarg_func ::= USER */ - -1, /* (543) star_func ::= COUNT */ - -1, /* (544) star_func ::= FIRST */ - -1, /* (545) star_func ::= LAST */ - -1, /* (546) star_func ::= LAST_ROW */ - -1, /* (547) star_func_para_list ::= NK_STAR */ - -1, /* (548) star_func_para_list ::= other_para_list */ - -1, /* (549) other_para_list ::= star_func_para */ - -3, /* (550) other_para_list ::= other_para_list NK_COMMA star_func_para */ - -1, /* (551) star_func_para ::= expr_or_subquery */ - -3, /* (552) star_func_para ::= table_name NK_DOT NK_STAR */ - -4, /* (553) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - -5, /* (554) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - -1, /* (555) when_then_list ::= when_then_expr */ - -2, /* (556) when_then_list ::= when_then_list when_then_expr */ - -4, /* (557) when_then_expr ::= WHEN common_expression THEN common_expression */ - 0, /* (558) case_when_else_opt ::= */ - -2, /* (559) case_when_else_opt ::= ELSE common_expression */ - -3, /* (560) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - -5, /* (561) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - -6, /* (562) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - -3, /* (563) predicate ::= expr_or_subquery IS NULL */ - -4, /* (564) predicate ::= expr_or_subquery IS NOT NULL */ - -3, /* (565) predicate ::= expr_or_subquery in_op in_predicate_value */ - -1, /* (566) compare_op ::= NK_LT */ - -1, /* (567) compare_op ::= NK_GT */ - -1, /* (568) compare_op ::= NK_LE */ - -1, /* (569) compare_op ::= NK_GE */ - -1, /* (570) compare_op ::= NK_NE */ - -1, /* (571) compare_op ::= NK_EQ */ - -1, /* (572) compare_op ::= LIKE */ - -2, /* (573) compare_op ::= NOT LIKE */ - -1, /* (574) compare_op ::= MATCH */ - -1, /* (575) compare_op ::= NMATCH */ - -1, /* (576) compare_op ::= CONTAINS */ - -1, /* (577) in_op ::= IN */ - -2, /* (578) in_op ::= NOT IN */ - -3, /* (579) in_predicate_value ::= NK_LP literal_list NK_RP */ - -1, /* (580) boolean_value_expression ::= boolean_primary */ - -2, /* (581) boolean_value_expression ::= NOT boolean_primary */ - -3, /* (582) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - -3, /* (583) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - -1, /* (584) boolean_primary ::= predicate */ - -3, /* (585) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - -1, /* (586) common_expression ::= expr_or_subquery */ - -1, /* (587) common_expression ::= boolean_value_expression */ - 0, /* (588) from_clause_opt ::= */ - -2, /* (589) from_clause_opt ::= FROM table_reference_list */ - -1, /* (590) table_reference_list ::= table_reference */ - -3, /* (591) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - -1, /* (592) table_reference ::= table_primary */ - -1, /* (593) table_reference ::= joined_table */ - -2, /* (594) table_primary ::= table_name alias_opt */ - -4, /* (595) table_primary ::= db_name NK_DOT table_name alias_opt */ - -2, /* (596) table_primary ::= subquery alias_opt */ - -1, /* (597) table_primary ::= parenthesized_joined_table */ - 0, /* (598) alias_opt ::= */ - -1, /* (599) alias_opt ::= table_alias */ - -2, /* (600) alias_opt ::= AS table_alias */ - -3, /* (601) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - -3, /* (602) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - -6, /* (603) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - 0, /* (604) join_type ::= */ - -1, /* (605) join_type ::= INNER */ - -14, /* (606) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - 0, /* (607) hint_list ::= */ - -1, /* (608) hint_list ::= NK_HINT */ - 0, /* (609) tag_mode_opt ::= */ - -1, /* (610) tag_mode_opt ::= TAGS */ - 0, /* (611) set_quantifier_opt ::= */ - -1, /* (612) set_quantifier_opt ::= DISTINCT */ - -1, /* (613) set_quantifier_opt ::= ALL */ - -1, /* (614) select_list ::= select_item */ - -3, /* (615) select_list ::= select_list NK_COMMA select_item */ - -1, /* (616) select_item ::= NK_STAR */ - -1, /* (617) select_item ::= common_expression */ - -2, /* (618) select_item ::= common_expression column_alias */ - -3, /* (619) select_item ::= common_expression AS column_alias */ - -3, /* (620) select_item ::= table_name NK_DOT NK_STAR */ - 0, /* (621) where_clause_opt ::= */ - -2, /* (622) where_clause_opt ::= WHERE search_condition */ - 0, /* (623) partition_by_clause_opt ::= */ - -3, /* (624) partition_by_clause_opt ::= PARTITION BY partition_list */ - -1, /* (625) partition_list ::= partition_item */ - -3, /* (626) partition_list ::= partition_list NK_COMMA partition_item */ - -1, /* (627) partition_item ::= expr_or_subquery */ - -2, /* (628) partition_item ::= expr_or_subquery column_alias */ - -3, /* (629) partition_item ::= expr_or_subquery AS column_alias */ - 0, /* (630) twindow_clause_opt ::= */ - -6, /* (631) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ - -4, /* (632) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - -6, /* (633) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - -8, /* (634) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - -7, /* (635) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - -4, /* (636) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ - -6, /* (637) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 0, /* (638) sliding_opt ::= */ - -4, /* (639) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ - -1, /* (640) interval_sliding_duration_literal ::= NK_VARIABLE */ - -1, /* (641) interval_sliding_duration_literal ::= NK_STRING */ - -1, /* (642) interval_sliding_duration_literal ::= NK_INTEGER */ - 0, /* (643) fill_opt ::= */ - -4, /* (644) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - -6, /* (645) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - -6, /* (646) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - -1, /* (647) fill_mode ::= NONE */ - -1, /* (648) fill_mode ::= PREV */ - -1, /* (649) fill_mode ::= NULL */ - -1, /* (650) fill_mode ::= NULL_F */ - -1, /* (651) fill_mode ::= LINEAR */ - -1, /* (652) fill_mode ::= NEXT */ - 0, /* (653) group_by_clause_opt ::= */ - -3, /* (654) group_by_clause_opt ::= GROUP BY group_by_list */ - -1, /* (655) group_by_list ::= expr_or_subquery */ - -3, /* (656) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 0, /* (657) having_clause_opt ::= */ - -2, /* (658) having_clause_opt ::= HAVING search_condition */ - 0, /* (659) range_opt ::= */ - -6, /* (660) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - -4, /* (661) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 0, /* (662) every_opt ::= */ - -4, /* (663) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - -4, /* (664) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - -1, /* (665) query_simple ::= query_specification */ - -1, /* (666) query_simple ::= union_query_expression */ - -4, /* (667) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - -3, /* (668) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - -1, /* (669) query_simple_or_subquery ::= query_simple */ - -1, /* (670) query_simple_or_subquery ::= subquery */ - -1, /* (671) query_or_subquery ::= query_expression */ - -1, /* (672) query_or_subquery ::= subquery */ - 0, /* (673) order_by_clause_opt ::= */ - -3, /* (674) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 0, /* (675) slimit_clause_opt ::= */ - -2, /* (676) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - -4, /* (677) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - -4, /* (678) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 0, /* (679) limit_clause_opt ::= */ - -2, /* (680) limit_clause_opt ::= LIMIT NK_INTEGER */ - -4, /* (681) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - -4, /* (682) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - -3, /* (683) subquery ::= NK_LP query_expression NK_RP */ - -3, /* (684) subquery ::= NK_LP subquery NK_RP */ - -1, /* (685) search_condition ::= common_expression */ - -1, /* (686) sort_specification_list ::= sort_specification */ - -3, /* (687) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - -3, /* (688) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 0, /* (689) ordering_specification_opt ::= */ - -1, /* (690) ordering_specification_opt ::= ASC */ - -1, /* (691) ordering_specification_opt ::= DESC */ - 0, /* (692) null_ordering_opt ::= */ - -2, /* (693) null_ordering_opt ::= NULLS FIRST */ - -2, /* (694) null_ordering_opt ::= NULLS LAST */ + -1, /* (222) type_name_default_len ::= BINARY */ + -1, /* (223) type_name_default_len ::= NCHAR */ + -1, /* (224) type_name_default_len ::= VARCHAR */ + -1, /* (225) type_name_default_len ::= VARBINARY */ + 0, /* (226) tags_def_opt ::= */ + -1, /* (227) tags_def_opt ::= tags_def */ + -4, /* (228) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + 0, /* (229) table_options ::= */ + -3, /* (230) table_options ::= table_options COMMENT NK_STRING */ + -3, /* (231) table_options ::= table_options MAX_DELAY duration_list */ + -3, /* (232) table_options ::= table_options WATERMARK duration_list */ + -5, /* (233) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + -3, /* (234) table_options ::= table_options TTL NK_INTEGER */ + -5, /* (235) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + -3, /* (236) table_options ::= table_options DELETE_MARK duration_list */ + -1, /* (237) alter_table_options ::= alter_table_option */ + -2, /* (238) alter_table_options ::= alter_table_options alter_table_option */ + -2, /* (239) alter_table_option ::= COMMENT NK_STRING */ + -2, /* (240) alter_table_option ::= TTL NK_INTEGER */ + -1, /* (241) duration_list ::= duration_literal */ + -3, /* (242) duration_list ::= duration_list NK_COMMA duration_literal */ + -1, /* (243) rollup_func_list ::= rollup_func_name */ + -3, /* (244) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + -1, /* (245) rollup_func_name ::= function_name */ + -1, /* (246) rollup_func_name ::= FIRST */ + -1, /* (247) rollup_func_name ::= LAST */ + -1, /* (248) col_name_list ::= col_name */ + -3, /* (249) col_name_list ::= col_name_list NK_COMMA col_name */ + -1, /* (250) col_name ::= column_name */ + -2, /* (251) cmd ::= SHOW DNODES */ + -2, /* (252) cmd ::= SHOW USERS */ + -3, /* (253) cmd ::= SHOW USER PRIVILEGES */ + -3, /* (254) cmd ::= SHOW db_kind_opt DATABASES */ + -4, /* (255) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + -4, /* (256) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + -3, /* (257) cmd ::= SHOW db_name_cond_opt VGROUPS */ + -2, /* (258) cmd ::= SHOW MNODES */ + -2, /* (259) cmd ::= SHOW QNODES */ + -2, /* (260) cmd ::= SHOW ARBGROUPS */ + -2, /* (261) cmd ::= SHOW FUNCTIONS */ + -5, /* (262) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + -6, /* (263) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + -2, /* (264) cmd ::= SHOW STREAMS */ + -2, /* (265) cmd ::= SHOW ACCOUNTS */ + -2, /* (266) cmd ::= SHOW APPS */ + -2, /* (267) cmd ::= SHOW CONNECTIONS */ + -2, /* (268) cmd ::= SHOW LICENCES */ + -2, /* (269) cmd ::= SHOW GRANTS */ + -3, /* (270) cmd ::= SHOW GRANTS FULL */ + -3, /* (271) cmd ::= SHOW GRANTS LOGS */ + -3, /* (272) cmd ::= SHOW CLUSTER MACHINES */ + -4, /* (273) cmd ::= SHOW CREATE DATABASE db_name */ + -4, /* (274) cmd ::= SHOW CREATE TABLE full_table_name */ + -4, /* (275) cmd ::= SHOW CREATE STABLE full_table_name */ + -2, /* (276) cmd ::= SHOW ENCRYPTIONS */ + -2, /* (277) cmd ::= SHOW QUERIES */ + -2, /* (278) cmd ::= SHOW SCORES */ + -2, /* (279) cmd ::= SHOW TOPICS */ + -2, /* (280) cmd ::= SHOW VARIABLES */ + -3, /* (281) cmd ::= SHOW CLUSTER VARIABLES */ + -3, /* (282) cmd ::= SHOW LOCAL VARIABLES */ + -5, /* (283) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + -2, /* (284) cmd ::= SHOW BNODES */ + -2, /* (285) cmd ::= SHOW SNODES */ + -2, /* (286) cmd ::= SHOW CLUSTER */ + -2, /* (287) cmd ::= SHOW TRANSACTIONS */ + -4, /* (288) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + -2, /* (289) cmd ::= SHOW CONSUMERS */ + -2, /* (290) cmd ::= SHOW SUBSCRIPTIONS */ + -5, /* (291) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + -6, /* (292) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + -7, /* (293) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + -8, /* (294) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + -5, /* (295) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + -2, /* (296) cmd ::= SHOW VNODES */ + -3, /* (297) cmd ::= SHOW db_name_cond_opt ALIVE */ + -3, /* (298) cmd ::= SHOW CLUSTER ALIVE */ + -4, /* (299) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ + -4, /* (300) cmd ::= SHOW CREATE VIEW full_table_name */ + -2, /* (301) cmd ::= SHOW COMPACTS */ + -3, /* (302) cmd ::= SHOW COMPACT NK_INTEGER */ + 0, /* (303) table_kind_db_name_cond_opt ::= */ + -1, /* (304) table_kind_db_name_cond_opt ::= table_kind */ + -2, /* (305) table_kind_db_name_cond_opt ::= db_name NK_DOT */ + -3, /* (306) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ + -1, /* (307) table_kind ::= NORMAL */ + -1, /* (308) table_kind ::= CHILD */ + 0, /* (309) db_name_cond_opt ::= */ + -2, /* (310) db_name_cond_opt ::= db_name NK_DOT */ + 0, /* (311) like_pattern_opt ::= */ + -2, /* (312) like_pattern_opt ::= LIKE NK_STRING */ + -1, /* (313) table_name_cond ::= table_name */ + 0, /* (314) from_db_opt ::= */ + -2, /* (315) from_db_opt ::= FROM db_name */ + 0, /* (316) tag_list_opt ::= */ + -1, /* (317) tag_list_opt ::= tag_item */ + -3, /* (318) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + -1, /* (319) tag_item ::= TBNAME */ + -1, /* (320) tag_item ::= QTAGS */ + -1, /* (321) tag_item ::= column_name */ + -2, /* (322) tag_item ::= column_name column_alias */ + -3, /* (323) tag_item ::= column_name AS column_alias */ + 0, /* (324) db_kind_opt ::= */ + -1, /* (325) db_kind_opt ::= USER */ + -1, /* (326) db_kind_opt ::= SYSTEM */ + -8, /* (327) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + -9, /* (328) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ + -4, /* (329) cmd ::= DROP INDEX exists_opt full_index_name */ + -1, /* (330) full_index_name ::= index_name */ + -3, /* (331) full_index_name ::= db_name NK_DOT index_name */ + -10, /* (332) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + -12, /* (333) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ + -1, /* (334) func_list ::= func */ + -3, /* (335) func_list ::= func_list NK_COMMA func */ + -4, /* (336) func ::= sma_func_name NK_LP expression_list NK_RP */ + -1, /* (337) sma_func_name ::= function_name */ + -1, /* (338) sma_func_name ::= COUNT */ + -1, /* (339) sma_func_name ::= FIRST */ + -1, /* (340) sma_func_name ::= LAST */ + -1, /* (341) sma_func_name ::= LAST_ROW */ + 0, /* (342) sma_stream_opt ::= */ + -3, /* (343) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + -3, /* (344) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + -3, /* (345) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + -1, /* (346) with_meta ::= AS */ + -3, /* (347) with_meta ::= WITH META AS */ + -3, /* (348) with_meta ::= ONLY META AS */ + -6, /* (349) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + -7, /* (350) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + -8, /* (351) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + -4, /* (352) cmd ::= DROP TOPIC exists_opt topic_name */ + -7, /* (353) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + -2, /* (354) cmd ::= DESC full_table_name */ + -2, /* (355) cmd ::= DESCRIBE full_table_name */ + -3, /* (356) cmd ::= RESET QUERY CACHE */ + -4, /* (357) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + -4, /* (358) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 0, /* (359) analyze_opt ::= */ + -1, /* (360) analyze_opt ::= ANALYZE */ + 0, /* (361) explain_options ::= */ + -3, /* (362) explain_options ::= explain_options VERBOSE NK_BOOL */ + -3, /* (363) explain_options ::= explain_options RATIO NK_FLOAT */ + -12, /* (364) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + -4, /* (365) cmd ::= DROP FUNCTION exists_opt function_name */ + 0, /* (366) agg_func_opt ::= */ + -1, /* (367) agg_func_opt ::= AGGREGATE */ + 0, /* (368) bufsize_opt ::= */ + -2, /* (369) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 0, /* (370) language_opt ::= */ + -2, /* (371) language_opt ::= LANGUAGE NK_STRING */ + 0, /* (372) or_replace_opt ::= */ + -2, /* (373) or_replace_opt ::= OR REPLACE */ + -6, /* (374) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ + -4, /* (375) cmd ::= DROP VIEW exists_opt full_view_name */ + -1, /* (376) full_view_name ::= view_name */ + -3, /* (377) full_view_name ::= db_name NK_DOT view_name */ + -12, /* (378) cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ + -4, /* (379) cmd ::= DROP STREAM exists_opt stream_name */ + -4, /* (380) cmd ::= PAUSE STREAM exists_opt stream_name */ + -5, /* (381) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 0, /* (382) col_list_opt ::= */ + -3, /* (383) col_list_opt ::= NK_LP col_name_list NK_RP */ + 0, /* (384) tag_def_or_ref_opt ::= */ + -1, /* (385) tag_def_or_ref_opt ::= tags_def */ + -4, /* (386) tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ + 0, /* (387) stream_options ::= */ + -3, /* (388) stream_options ::= stream_options TRIGGER AT_ONCE */ + -3, /* (389) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + -4, /* (390) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + -3, /* (391) stream_options ::= stream_options WATERMARK duration_literal */ + -4, /* (392) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + -3, /* (393) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + -3, /* (394) stream_options ::= stream_options DELETE_MARK duration_literal */ + -4, /* (395) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 0, /* (396) subtable_opt ::= */ + -4, /* (397) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 0, /* (398) ignore_opt ::= */ + -2, /* (399) ignore_opt ::= IGNORE UNTREATED */ + -3, /* (400) cmd ::= KILL CONNECTION NK_INTEGER */ + -3, /* (401) cmd ::= KILL QUERY NK_STRING */ + -3, /* (402) cmd ::= KILL TRANSACTION NK_INTEGER */ + -3, /* (403) cmd ::= KILL COMPACT NK_INTEGER */ + -2, /* (404) cmd ::= BALANCE VGROUP */ + -4, /* (405) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ + -4, /* (406) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + -4, /* (407) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + -3, /* (408) cmd ::= SPLIT VGROUP NK_INTEGER */ + 0, /* (409) on_vgroup_id ::= */ + -2, /* (410) on_vgroup_id ::= ON NK_INTEGER */ + -2, /* (411) dnode_list ::= DNODE NK_INTEGER */ + -3, /* (412) dnode_list ::= dnode_list DNODE NK_INTEGER */ + -4, /* (413) cmd ::= DELETE FROM full_table_name where_clause_opt */ + -1, /* (414) cmd ::= query_or_subquery */ + -1, /* (415) cmd ::= insert_query */ + -7, /* (416) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + -4, /* (417) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + -1, /* (418) tags_literal ::= NK_INTEGER */ + -3, /* (419) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + -3, /* (420) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ + -2, /* (421) tags_literal ::= NK_PLUS NK_INTEGER */ + -4, /* (422) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + -4, /* (423) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ + -2, /* (424) tags_literal ::= NK_MINUS NK_INTEGER */ + -4, /* (425) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ + -4, /* (426) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ + -1, /* (427) tags_literal ::= NK_FLOAT */ + -2, /* (428) tags_literal ::= NK_PLUS NK_FLOAT */ + -2, /* (429) tags_literal ::= NK_MINUS NK_FLOAT */ + -1, /* (430) tags_literal ::= NK_BIN */ + -3, /* (431) tags_literal ::= NK_BIN NK_PLUS duration_literal */ + -3, /* (432) tags_literal ::= NK_BIN NK_MINUS duration_literal */ + -2, /* (433) tags_literal ::= NK_PLUS NK_BIN */ + -4, /* (434) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ + -4, /* (435) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ + -2, /* (436) tags_literal ::= NK_MINUS NK_BIN */ + -4, /* (437) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ + -4, /* (438) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ + -1, /* (439) tags_literal ::= NK_HEX */ + -3, /* (440) tags_literal ::= NK_HEX NK_PLUS duration_literal */ + -3, /* (441) tags_literal ::= NK_HEX NK_MINUS duration_literal */ + -2, /* (442) tags_literal ::= NK_PLUS NK_HEX */ + -4, /* (443) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ + -4, /* (444) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ + -2, /* (445) tags_literal ::= NK_MINUS NK_HEX */ + -4, /* (446) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ + -4, /* (447) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ + -1, /* (448) tags_literal ::= NK_STRING */ + -3, /* (449) tags_literal ::= NK_STRING NK_PLUS duration_literal */ + -3, /* (450) tags_literal ::= NK_STRING NK_MINUS duration_literal */ + -1, /* (451) tags_literal ::= NK_BOOL */ + -1, /* (452) tags_literal ::= NULL */ + -1, /* (453) tags_literal ::= literal_func */ + -3, /* (454) tags_literal ::= literal_func NK_PLUS duration_literal */ + -3, /* (455) tags_literal ::= literal_func NK_MINUS duration_literal */ + -1, /* (456) tags_literal_list ::= tags_literal */ + -3, /* (457) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ + -1, /* (458) literal ::= NK_INTEGER */ + -1, /* (459) literal ::= NK_FLOAT */ + -1, /* (460) literal ::= NK_STRING */ + -1, /* (461) literal ::= NK_BOOL */ + -2, /* (462) literal ::= TIMESTAMP NK_STRING */ + -1, /* (463) literal ::= duration_literal */ + -1, /* (464) literal ::= NULL */ + -1, /* (465) literal ::= NK_QUESTION */ + -1, /* (466) duration_literal ::= NK_VARIABLE */ + -1, /* (467) signed ::= NK_INTEGER */ + -2, /* (468) signed ::= NK_PLUS NK_INTEGER */ + -2, /* (469) signed ::= NK_MINUS NK_INTEGER */ + -1, /* (470) signed ::= NK_FLOAT */ + -2, /* (471) signed ::= NK_PLUS NK_FLOAT */ + -2, /* (472) signed ::= NK_MINUS NK_FLOAT */ + -1, /* (473) signed_literal ::= signed */ + -1, /* (474) signed_literal ::= NK_STRING */ + -1, /* (475) signed_literal ::= NK_BOOL */ + -2, /* (476) signed_literal ::= TIMESTAMP NK_STRING */ + -1, /* (477) signed_literal ::= duration_literal */ + -1, /* (478) signed_literal ::= NULL */ + -1, /* (479) signed_literal ::= literal_func */ + -1, /* (480) signed_literal ::= NK_QUESTION */ + -1, /* (481) literal_list ::= signed_literal */ + -3, /* (482) literal_list ::= literal_list NK_COMMA signed_literal */ + -1, /* (483) db_name ::= NK_ID */ + -1, /* (484) table_name ::= NK_ID */ + -1, /* (485) column_name ::= NK_ID */ + -1, /* (486) function_name ::= NK_ID */ + -1, /* (487) view_name ::= NK_ID */ + -1, /* (488) table_alias ::= NK_ID */ + -1, /* (489) column_alias ::= NK_ID */ + -1, /* (490) column_alias ::= NK_ALIAS */ + -1, /* (491) user_name ::= NK_ID */ + -1, /* (492) topic_name ::= NK_ID */ + -1, /* (493) stream_name ::= NK_ID */ + -1, /* (494) cgroup_name ::= NK_ID */ + -1, /* (495) index_name ::= NK_ID */ + -1, /* (496) expr_or_subquery ::= expression */ + -1, /* (497) expression ::= literal */ + -1, /* (498) expression ::= pseudo_column */ + -1, /* (499) expression ::= column_reference */ + -1, /* (500) expression ::= function_expression */ + -1, /* (501) expression ::= case_when_expression */ + -3, /* (502) expression ::= NK_LP expression NK_RP */ + -2, /* (503) expression ::= NK_PLUS expr_or_subquery */ + -2, /* (504) expression ::= NK_MINUS expr_or_subquery */ + -3, /* (505) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + -3, /* (506) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + -3, /* (507) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + -3, /* (508) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + -3, /* (509) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + -3, /* (510) expression ::= column_reference NK_ARROW NK_STRING */ + -3, /* (511) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + -3, /* (512) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + -1, /* (513) expression_list ::= expr_or_subquery */ + -3, /* (514) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + -1, /* (515) column_reference ::= column_name */ + -3, /* (516) column_reference ::= table_name NK_DOT column_name */ + -1, /* (517) column_reference ::= NK_ALIAS */ + -3, /* (518) column_reference ::= table_name NK_DOT NK_ALIAS */ + -1, /* (519) pseudo_column ::= ROWTS */ + -1, /* (520) pseudo_column ::= TBNAME */ + -3, /* (521) pseudo_column ::= table_name NK_DOT TBNAME */ + -1, /* (522) pseudo_column ::= QSTART */ + -1, /* (523) pseudo_column ::= QEND */ + -1, /* (524) pseudo_column ::= QDURATION */ + -1, /* (525) pseudo_column ::= WSTART */ + -1, /* (526) pseudo_column ::= WEND */ + -1, /* (527) pseudo_column ::= WDURATION */ + -1, /* (528) pseudo_column ::= IROWTS */ + -1, /* (529) pseudo_column ::= ISFILLED */ + -1, /* (530) pseudo_column ::= QTAGS */ + -4, /* (531) function_expression ::= function_name NK_LP expression_list NK_RP */ + -4, /* (532) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + -6, /* (533) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + -6, /* (534) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ + -1, /* (535) function_expression ::= literal_func */ + -3, /* (536) literal_func ::= noarg_func NK_LP NK_RP */ + -1, /* (537) literal_func ::= NOW */ + -1, /* (538) literal_func ::= TODAY */ + -1, /* (539) noarg_func ::= NOW */ + -1, /* (540) noarg_func ::= TODAY */ + -1, /* (541) noarg_func ::= TIMEZONE */ + -1, /* (542) noarg_func ::= DATABASE */ + -1, /* (543) noarg_func ::= CLIENT_VERSION */ + -1, /* (544) noarg_func ::= SERVER_VERSION */ + -1, /* (545) noarg_func ::= SERVER_STATUS */ + -1, /* (546) noarg_func ::= CURRENT_USER */ + -1, /* (547) noarg_func ::= USER */ + -1, /* (548) star_func ::= COUNT */ + -1, /* (549) star_func ::= FIRST */ + -1, /* (550) star_func ::= LAST */ + -1, /* (551) star_func ::= LAST_ROW */ + -1, /* (552) star_func_para_list ::= NK_STAR */ + -1, /* (553) star_func_para_list ::= other_para_list */ + -1, /* (554) other_para_list ::= star_func_para */ + -3, /* (555) other_para_list ::= other_para_list NK_COMMA star_func_para */ + -1, /* (556) star_func_para ::= expr_or_subquery */ + -3, /* (557) star_func_para ::= table_name NK_DOT NK_STAR */ + -4, /* (558) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + -5, /* (559) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + -1, /* (560) when_then_list ::= when_then_expr */ + -2, /* (561) when_then_list ::= when_then_list when_then_expr */ + -4, /* (562) when_then_expr ::= WHEN common_expression THEN common_expression */ + 0, /* (563) case_when_else_opt ::= */ + -2, /* (564) case_when_else_opt ::= ELSE common_expression */ + -3, /* (565) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + -5, /* (566) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + -6, /* (567) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + -3, /* (568) predicate ::= expr_or_subquery IS NULL */ + -4, /* (569) predicate ::= expr_or_subquery IS NOT NULL */ + -3, /* (570) predicate ::= expr_or_subquery in_op in_predicate_value */ + -1, /* (571) compare_op ::= NK_LT */ + -1, /* (572) compare_op ::= NK_GT */ + -1, /* (573) compare_op ::= NK_LE */ + -1, /* (574) compare_op ::= NK_GE */ + -1, /* (575) compare_op ::= NK_NE */ + -1, /* (576) compare_op ::= NK_EQ */ + -1, /* (577) compare_op ::= LIKE */ + -2, /* (578) compare_op ::= NOT LIKE */ + -1, /* (579) compare_op ::= MATCH */ + -1, /* (580) compare_op ::= NMATCH */ + -1, /* (581) compare_op ::= CONTAINS */ + -1, /* (582) in_op ::= IN */ + -2, /* (583) in_op ::= NOT IN */ + -3, /* (584) in_predicate_value ::= NK_LP literal_list NK_RP */ + -1, /* (585) boolean_value_expression ::= boolean_primary */ + -2, /* (586) boolean_value_expression ::= NOT boolean_primary */ + -3, /* (587) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + -3, /* (588) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + -1, /* (589) boolean_primary ::= predicate */ + -3, /* (590) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + -1, /* (591) common_expression ::= expr_or_subquery */ + -1, /* (592) common_expression ::= boolean_value_expression */ + 0, /* (593) from_clause_opt ::= */ + -2, /* (594) from_clause_opt ::= FROM table_reference_list */ + -1, /* (595) table_reference_list ::= table_reference */ + -3, /* (596) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + -1, /* (597) table_reference ::= table_primary */ + -1, /* (598) table_reference ::= joined_table */ + -2, /* (599) table_primary ::= table_name alias_opt */ + -4, /* (600) table_primary ::= db_name NK_DOT table_name alias_opt */ + -2, /* (601) table_primary ::= subquery alias_opt */ + -1, /* (602) table_primary ::= parenthesized_joined_table */ + 0, /* (603) alias_opt ::= */ + -1, /* (604) alias_opt ::= table_alias */ + -2, /* (605) alias_opt ::= AS table_alias */ + -3, /* (606) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + -3, /* (607) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + -6, /* (608) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + 0, /* (609) join_type ::= */ + -1, /* (610) join_type ::= INNER */ + -14, /* (611) query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + 0, /* (612) hint_list ::= */ + -1, /* (613) hint_list ::= NK_HINT */ + 0, /* (614) tag_mode_opt ::= */ + -1, /* (615) tag_mode_opt ::= TAGS */ + 0, /* (616) set_quantifier_opt ::= */ + -1, /* (617) set_quantifier_opt ::= DISTINCT */ + -1, /* (618) set_quantifier_opt ::= ALL */ + -1, /* (619) select_list ::= select_item */ + -3, /* (620) select_list ::= select_list NK_COMMA select_item */ + -1, /* (621) select_item ::= NK_STAR */ + -1, /* (622) select_item ::= common_expression */ + -2, /* (623) select_item ::= common_expression column_alias */ + -3, /* (624) select_item ::= common_expression AS column_alias */ + -3, /* (625) select_item ::= table_name NK_DOT NK_STAR */ + 0, /* (626) where_clause_opt ::= */ + -2, /* (627) where_clause_opt ::= WHERE search_condition */ + 0, /* (628) partition_by_clause_opt ::= */ + -3, /* (629) partition_by_clause_opt ::= PARTITION BY partition_list */ + -1, /* (630) partition_list ::= partition_item */ + -3, /* (631) partition_list ::= partition_list NK_COMMA partition_item */ + -1, /* (632) partition_item ::= expr_or_subquery */ + -2, /* (633) partition_item ::= expr_or_subquery column_alias */ + -3, /* (634) partition_item ::= expr_or_subquery AS column_alias */ + 0, /* (635) twindow_clause_opt ::= */ + -6, /* (636) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ + -4, /* (637) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + -6, /* (638) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + -8, /* (639) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + -7, /* (640) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + -4, /* (641) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ + -6, /* (642) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 0, /* (643) sliding_opt ::= */ + -4, /* (644) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ + -1, /* (645) interval_sliding_duration_literal ::= NK_VARIABLE */ + -1, /* (646) interval_sliding_duration_literal ::= NK_STRING */ + -1, /* (647) interval_sliding_duration_literal ::= NK_INTEGER */ + 0, /* (648) fill_opt ::= */ + -4, /* (649) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + -6, /* (650) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + -6, /* (651) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + -1, /* (652) fill_mode ::= NONE */ + -1, /* (653) fill_mode ::= PREV */ + -1, /* (654) fill_mode ::= NULL */ + -1, /* (655) fill_mode ::= NULL_F */ + -1, /* (656) fill_mode ::= LINEAR */ + -1, /* (657) fill_mode ::= NEXT */ + 0, /* (658) group_by_clause_opt ::= */ + -3, /* (659) group_by_clause_opt ::= GROUP BY group_by_list */ + -1, /* (660) group_by_list ::= expr_or_subquery */ + -3, /* (661) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 0, /* (662) having_clause_opt ::= */ + -2, /* (663) having_clause_opt ::= HAVING search_condition */ + 0, /* (664) range_opt ::= */ + -6, /* (665) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + -4, /* (666) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 0, /* (667) every_opt ::= */ + -4, /* (668) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + -4, /* (669) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + -1, /* (670) query_simple ::= query_specification */ + -1, /* (671) query_simple ::= union_query_expression */ + -4, /* (672) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + -3, /* (673) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + -1, /* (674) query_simple_or_subquery ::= query_simple */ + -1, /* (675) query_simple_or_subquery ::= subquery */ + -1, /* (676) query_or_subquery ::= query_expression */ + -1, /* (677) query_or_subquery ::= subquery */ + 0, /* (678) order_by_clause_opt ::= */ + -3, /* (679) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 0, /* (680) slimit_clause_opt ::= */ + -2, /* (681) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + -4, /* (682) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + -4, /* (683) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 0, /* (684) limit_clause_opt ::= */ + -2, /* (685) limit_clause_opt ::= LIMIT NK_INTEGER */ + -4, /* (686) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + -4, /* (687) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + -3, /* (688) subquery ::= NK_LP query_expression NK_RP */ + -3, /* (689) subquery ::= NK_LP subquery NK_RP */ + -1, /* (690) search_condition ::= common_expression */ + -1, /* (691) sort_specification_list ::= sort_specification */ + -3, /* (692) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + -3, /* (693) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 0, /* (694) ordering_specification_opt ::= */ + -1, /* (695) ordering_specification_opt ::= ASC */ + -1, /* (696) ordering_specification_opt ::= DESC */ + 0, /* (697) null_ordering_opt ::= */ + -2, /* (698) null_ordering_opt ::= NULLS FIRST */ + -2, /* (699) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -4965,154 +5035,154 @@ static YYACTIONTYPE yy_reduce( yy_destructor(yypParser,360,&yymsp[0].minor); break; case 24: /* ip_range_list ::= NK_STRING */ -{ yylhsminor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy184 = yylhsminor.yy184; +{ yylhsminor.yy1006 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; case 25: /* ip_range_list ::= ip_range_list NK_COMMA NK_STRING */ -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy184 = yylhsminor.yy184; +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; case 26: /* white_list ::= HOST ip_range_list */ -{ yymsp[-1].minor.yy184 = yymsp[0].minor.yy184; } +{ yymsp[-1].minor.yy1006 = yymsp[0].minor.yy1006; } break; case 27: /* white_list_opt ::= */ case 191: /* specific_cols_opt ::= */ yytestcase(yyruleno==191); - case 222: /* tags_def_opt ::= */ yytestcase(yyruleno==222); - case 312: /* tag_list_opt ::= */ yytestcase(yyruleno==312); - case 378: /* col_list_opt ::= */ yytestcase(yyruleno==378); - case 380: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==380); - case 623: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==623); - case 653: /* group_by_clause_opt ::= */ yytestcase(yyruleno==653); - case 673: /* order_by_clause_opt ::= */ yytestcase(yyruleno==673); -{ yymsp[1].minor.yy184 = NULL; } + case 226: /* tags_def_opt ::= */ yytestcase(yyruleno==226); + case 316: /* tag_list_opt ::= */ yytestcase(yyruleno==316); + case 382: /* col_list_opt ::= */ yytestcase(yyruleno==382); + case 384: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==384); + case 628: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==628); + case 658: /* group_by_clause_opt ::= */ yytestcase(yyruleno==658); + case 678: /* order_by_clause_opt ::= */ yytestcase(yyruleno==678); +{ yymsp[1].minor.yy1006 = NULL; } break; case 28: /* white_list_opt ::= white_list */ - case 223: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==223); - case 381: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==381); - case 548: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==548); -{ yylhsminor.yy184 = yymsp[0].minor.yy184; } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 227: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==227); + case 385: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==385); + case 553: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==553); +{ yylhsminor.yy1006 = yymsp[0].minor.yy1006; } + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ { - pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy369, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy743); - pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy184); + pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.yy213, &yymsp[-2].minor.yy0, yymsp[-1].minor.yy379); + pCxt->pRootNode = addCreateUserStmtWhiteList(pCxt, pCxt->pRootNode, yymsp[0].minor.yy1006); } break; case 30: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 31: /* cmd ::= ALTER USER user_name ENABLE NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } break; case 32: /* cmd ::= ALTER USER user_name SYSINFO NK_INTEGER */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } break; case 33: /* cmd ::= ALTER USER user_name ADD white_list */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy184); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy1006); } break; case 34: /* cmd ::= ALTER USER user_name DROP white_list */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy369, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy184); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy1006); } break; case 35: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy369); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy213); } break; case 36: /* sysinfo_opt ::= */ -{ yymsp[1].minor.yy743 = 1; } +{ yymsp[1].minor.yy379 = 1; } break; case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ -{ yymsp[-1].minor.yy743 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +{ yymsp[-1].minor.yy379 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } break; case 38: /* cmd ::= GRANT privileges ON priv_level with_opt TO user_name */ -{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy937, &yymsp[0].minor.yy369, yymsp[-2].minor.yy392); } +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy337, &yymsp[-3].minor.yy285, &yymsp[0].minor.yy213, yymsp[-2].minor.yy664); } break; case 39: /* cmd ::= REVOKE privileges ON priv_level with_opt FROM user_name */ -{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy909, &yymsp[-3].minor.yy937, &yymsp[0].minor.yy369, yymsp[-2].minor.yy392); } +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy337, &yymsp[-3].minor.yy285, &yymsp[0].minor.yy213, yymsp[-2].minor.yy664); } break; case 40: /* privileges ::= ALL */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALL; } +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_ALL; } break; case 41: /* privileges ::= priv_type_list */ case 43: /* priv_type_list ::= priv_type */ yytestcase(yyruleno==43); -{ yylhsminor.yy909 = yymsp[0].minor.yy909; } - yymsp[0].minor.yy909 = yylhsminor.yy909; +{ yylhsminor.yy337 = yymsp[0].minor.yy337; } + yymsp[0].minor.yy337 = yylhsminor.yy337; break; case 42: /* privileges ::= SUBSCRIBE */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_SUBSCRIBE; } +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_SUBSCRIBE; } break; case 44: /* priv_type_list ::= priv_type_list NK_COMMA priv_type */ -{ yylhsminor.yy909 = yymsp[-2].minor.yy909 | yymsp[0].minor.yy909; } - yymsp[-2].minor.yy909 = yylhsminor.yy909; +{ yylhsminor.yy337 = yymsp[-2].minor.yy337 | yymsp[0].minor.yy337; } + yymsp[-2].minor.yy337 = yylhsminor.yy337; break; case 45: /* priv_type ::= READ */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_READ; } +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_READ; } break; case 46: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_WRITE; } +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_WRITE; } break; case 47: /* priv_type ::= ALTER */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALTER; } +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_ALTER; } break; case 48: /* priv_level ::= NK_STAR NK_DOT NK_STAR */ -{ yylhsminor.yy937.first = yymsp[-2].minor.yy0; yylhsminor.yy937.second = yymsp[0].minor.yy0; } - yymsp[-2].minor.yy937 = yylhsminor.yy937; +{ yylhsminor.yy285.first = yymsp[-2].minor.yy0; yylhsminor.yy285.second = yymsp[0].minor.yy0; } + yymsp[-2].minor.yy285 = yylhsminor.yy285; break; case 49: /* priv_level ::= db_name NK_DOT NK_STAR */ -{ yylhsminor.yy937.first = yymsp[-2].minor.yy369; yylhsminor.yy937.second = yymsp[0].minor.yy0; } - yymsp[-2].minor.yy937 = yylhsminor.yy937; +{ yylhsminor.yy285.first = yymsp[-2].minor.yy213; yylhsminor.yy285.second = yymsp[0].minor.yy0; } + yymsp[-2].minor.yy285 = yylhsminor.yy285; break; case 50: /* priv_level ::= db_name NK_DOT table_name */ -{ yylhsminor.yy937.first = yymsp[-2].minor.yy369; yylhsminor.yy937.second = yymsp[0].minor.yy369; } - yymsp[-2].minor.yy937 = yylhsminor.yy937; +{ yylhsminor.yy285.first = yymsp[-2].minor.yy213; yylhsminor.yy285.second = yymsp[0].minor.yy213; } + yymsp[-2].minor.yy285 = yylhsminor.yy285; break; case 51: /* priv_level ::= topic_name */ -{ yylhsminor.yy937.first = yymsp[0].minor.yy369; yylhsminor.yy937.second = nil_token; } - yymsp[0].minor.yy937 = yylhsminor.yy937; +{ yylhsminor.yy285.first = yymsp[0].minor.yy213; yylhsminor.yy285.second = nil_token; } + yymsp[0].minor.yy285 = yylhsminor.yy285; break; case 52: /* with_opt ::= */ case 160: /* start_opt ::= */ yytestcase(yyruleno==160); case 164: /* end_opt ::= */ yytestcase(yyruleno==164); - case 307: /* like_pattern_opt ::= */ yytestcase(yyruleno==307); - case 392: /* subtable_opt ::= */ yytestcase(yyruleno==392); - case 558: /* case_when_else_opt ::= */ yytestcase(yyruleno==558); - case 588: /* from_clause_opt ::= */ yytestcase(yyruleno==588); - case 621: /* where_clause_opt ::= */ yytestcase(yyruleno==621); - case 630: /* twindow_clause_opt ::= */ yytestcase(yyruleno==630); - case 638: /* sliding_opt ::= */ yytestcase(yyruleno==638); - case 643: /* fill_opt ::= */ yytestcase(yyruleno==643); - case 657: /* having_clause_opt ::= */ yytestcase(yyruleno==657); - case 659: /* range_opt ::= */ yytestcase(yyruleno==659); - case 662: /* every_opt ::= */ yytestcase(yyruleno==662); - case 675: /* slimit_clause_opt ::= */ yytestcase(yyruleno==675); - case 679: /* limit_clause_opt ::= */ yytestcase(yyruleno==679); -{ yymsp[1].minor.yy392 = NULL; } + case 311: /* like_pattern_opt ::= */ yytestcase(yyruleno==311); + case 396: /* subtable_opt ::= */ yytestcase(yyruleno==396); + case 563: /* case_when_else_opt ::= */ yytestcase(yyruleno==563); + case 593: /* from_clause_opt ::= */ yytestcase(yyruleno==593); + case 626: /* where_clause_opt ::= */ yytestcase(yyruleno==626); + case 635: /* twindow_clause_opt ::= */ yytestcase(yyruleno==635); + case 643: /* sliding_opt ::= */ yytestcase(yyruleno==643); + case 648: /* fill_opt ::= */ yytestcase(yyruleno==648); + case 662: /* having_clause_opt ::= */ yytestcase(yyruleno==662); + case 664: /* range_opt ::= */ yytestcase(yyruleno==664); + case 667: /* every_opt ::= */ yytestcase(yyruleno==667); + case 680: /* slimit_clause_opt ::= */ yytestcase(yyruleno==680); + case 684: /* limit_clause_opt ::= */ yytestcase(yyruleno==684); +{ yymsp[1].minor.yy664 = NULL; } break; case 53: /* with_opt ::= WITH search_condition */ - case 589: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==589); - case 622: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==622); - case 658: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==658); -{ yymsp[-1].minor.yy392 = yymsp[0].minor.yy392; } + case 594: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==594); + case 627: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==627); + case 663: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==663); +{ yymsp[-1].minor.yy664 = yymsp[0].minor.yy664; } break; case 54: /* cmd ::= CREATE ENCRYPT_KEY NK_STRING */ { pCxt->pRootNode = createEncryptKeyStmt(pCxt, &yymsp[0].minor.yy0); } break; case 55: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy369, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy213, NULL); } break; case 56: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0); } break; case 57: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy377, false); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy885, false); } break; case 58: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy377, false); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy885, false); } break; case 59: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy377); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy885); } break; case 60: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy369, false, yymsp[0].minor.yy377); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy213, false, yymsp[0].minor.yy885); } break; case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -5132,57 +5202,57 @@ static YYACTIONTYPE yy_reduce( case 66: /* dnode_endpoint ::= NK_STRING */ case 67: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==67); case 68: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==68); - case 334: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==334); - case 335: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==335); - case 336: /* sma_func_name ::= LAST */ yytestcase(yyruleno==336); - case 337: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==337); - case 479: /* db_name ::= NK_ID */ yytestcase(yyruleno==479); - case 480: /* table_name ::= NK_ID */ yytestcase(yyruleno==480); - case 481: /* column_name ::= NK_ID */ yytestcase(yyruleno==481); - case 482: /* function_name ::= NK_ID */ yytestcase(yyruleno==482); - case 483: /* view_name ::= NK_ID */ yytestcase(yyruleno==483); - case 484: /* table_alias ::= NK_ID */ yytestcase(yyruleno==484); - case 485: /* column_alias ::= NK_ID */ yytestcase(yyruleno==485); - case 486: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==486); - case 487: /* user_name ::= NK_ID */ yytestcase(yyruleno==487); - case 488: /* topic_name ::= NK_ID */ yytestcase(yyruleno==488); - case 489: /* stream_name ::= NK_ID */ yytestcase(yyruleno==489); - case 490: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==490); - case 491: /* index_name ::= NK_ID */ yytestcase(yyruleno==491); - case 534: /* noarg_func ::= NOW */ yytestcase(yyruleno==534); - case 535: /* noarg_func ::= TODAY */ yytestcase(yyruleno==535); - case 536: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==536); - case 537: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==537); - case 538: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==538); - case 539: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==539); - case 540: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==540); - case 541: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==541); - case 542: /* noarg_func ::= USER */ yytestcase(yyruleno==542); - case 543: /* star_func ::= COUNT */ yytestcase(yyruleno==543); - case 544: /* star_func ::= FIRST */ yytestcase(yyruleno==544); - case 545: /* star_func ::= LAST */ yytestcase(yyruleno==545); - case 546: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==546); -{ yylhsminor.yy369 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy369 = yylhsminor.yy369; + case 338: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==338); + case 339: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==339); + case 340: /* sma_func_name ::= LAST */ yytestcase(yyruleno==340); + case 341: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==341); + case 483: /* db_name ::= NK_ID */ yytestcase(yyruleno==483); + case 484: /* table_name ::= NK_ID */ yytestcase(yyruleno==484); + case 485: /* column_name ::= NK_ID */ yytestcase(yyruleno==485); + case 486: /* function_name ::= NK_ID */ yytestcase(yyruleno==486); + case 487: /* view_name ::= NK_ID */ yytestcase(yyruleno==487); + case 488: /* table_alias ::= NK_ID */ yytestcase(yyruleno==488); + case 489: /* column_alias ::= NK_ID */ yytestcase(yyruleno==489); + case 490: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==490); + case 491: /* user_name ::= NK_ID */ yytestcase(yyruleno==491); + case 492: /* topic_name ::= NK_ID */ yytestcase(yyruleno==492); + case 493: /* stream_name ::= NK_ID */ yytestcase(yyruleno==493); + case 494: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==494); + case 495: /* index_name ::= NK_ID */ yytestcase(yyruleno==495); + case 539: /* noarg_func ::= NOW */ yytestcase(yyruleno==539); + case 540: /* noarg_func ::= TODAY */ yytestcase(yyruleno==540); + case 541: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==541); + case 542: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==542); + case 543: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==543); + case 544: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==544); + case 545: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==545); + case 546: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==546); + case 547: /* noarg_func ::= USER */ yytestcase(yyruleno==547); + case 548: /* star_func ::= COUNT */ yytestcase(yyruleno==548); + case 549: /* star_func ::= FIRST */ yytestcase(yyruleno==549); + case 550: /* star_func ::= LAST */ yytestcase(yyruleno==550); + case 551: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==551); +{ yylhsminor.yy213 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy213 = yylhsminor.yy213; break; case 69: /* force_opt ::= */ case 95: /* not_exists_opt ::= */ yytestcase(yyruleno==95); case 97: /* exists_opt ::= */ yytestcase(yyruleno==97); - case 355: /* analyze_opt ::= */ yytestcase(yyruleno==355); - case 362: /* agg_func_opt ::= */ yytestcase(yyruleno==362); - case 368: /* or_replace_opt ::= */ yytestcase(yyruleno==368); - case 394: /* ignore_opt ::= */ yytestcase(yyruleno==394); - case 609: /* tag_mode_opt ::= */ yytestcase(yyruleno==609); - case 611: /* set_quantifier_opt ::= */ yytestcase(yyruleno==611); -{ yymsp[1].minor.yy377 = false; } + case 359: /* analyze_opt ::= */ yytestcase(yyruleno==359); + case 366: /* agg_func_opt ::= */ yytestcase(yyruleno==366); + case 372: /* or_replace_opt ::= */ yytestcase(yyruleno==372); + case 398: /* ignore_opt ::= */ yytestcase(yyruleno==398); + case 614: /* tag_mode_opt ::= */ yytestcase(yyruleno==614); + case 616: /* set_quantifier_opt ::= */ yytestcase(yyruleno==616); +{ yymsp[1].minor.yy885 = false; } break; case 70: /* force_opt ::= FORCE */ case 71: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==71); - case 356: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==356); - case 363: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==363); - case 610: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==610); - case 612: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==612); -{ yymsp[0].minor.yy377 = true; } + case 360: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==360); + case 367: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==367); + case 615: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==615); + case 617: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==617); +{ yymsp[0].minor.yy885 = true; } break; case 72: /* cmd ::= ALTER CLUSTER NK_STRING */ { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -5230,1637 +5300,1650 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } break; case 87: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy377, &yymsp[-1].minor.yy369, yymsp[0].minor.yy392); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy885, &yymsp[-1].minor.yy213, yymsp[0].minor.yy664); } break; case 88: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } break; case 89: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy369); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy213); } break; case 90: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy392); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy664); } break; case 91: /* cmd ::= FLUSH DATABASE db_name */ -{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy369); } +{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy213); } break; case 92: /* cmd ::= TRIM DATABASE db_name speed_opt */ -{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy20); } +{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy316); } break; case 93: /* cmd ::= COMPACT DATABASE db_name start_opt end_opt */ -{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy369, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } +{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy213, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } break; case 94: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy377 = true; } +{ yymsp[-2].minor.yy885 = true; } break; case 96: /* exists_opt ::= IF EXISTS */ - case 369: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==369); - case 395: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==395); -{ yymsp[-1].minor.yy377 = true; } + case 373: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==373); + case 399: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==399); +{ yymsp[-1].minor.yy885 = true; } break; case 98: /* db_options ::= */ -{ yymsp[1].minor.yy392 = createDefaultDatabaseOptions(pCxt); } +{ yymsp[1].minor.yy664 = createDefaultDatabaseOptions(pCxt); } break; case 99: /* db_options ::= db_options BUFFER NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 100: /* db_options ::= db_options CACHEMODEL NK_STRING */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 101: /* db_options ::= db_options CACHESIZE NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 102: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 103: /* db_options ::= db_options DURATION NK_INTEGER */ case 104: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==104); -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 105: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 106: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 107: /* db_options ::= db_options KEEP integer_list */ case 108: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==108); -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP, yymsp[0].minor.yy184); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_KEEP, yymsp[0].minor.yy1006); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 109: /* db_options ::= db_options PAGES NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 110: /* db_options ::= db_options PAGESIZE NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 111: /* db_options ::= db_options TSDB_PAGESIZE NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 112: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 113: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 114: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 115: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 116: /* db_options ::= db_options RETENTIONS retention_list */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_RETENTIONS, yymsp[0].minor.yy184); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_RETENTIONS, yymsp[0].minor.yy1006); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 117: /* db_options ::= db_options SCHEMALESS NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 118: /* db_options ::= db_options WAL_LEVEL NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 119: /* db_options ::= db_options WAL_FSYNC_PERIOD NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 120: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 121: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-3].minor.yy392, DB_OPTION_WAL_RETENTION_PERIOD, &t); + yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-3].minor.yy664, DB_OPTION_WAL_RETENTION_PERIOD, &t); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; case 122: /* db_options ::= db_options WAL_RETENTION_SIZE NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 123: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-3].minor.yy392, DB_OPTION_WAL_RETENTION_SIZE, &t); + yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-3].minor.yy664, DB_OPTION_WAL_RETENTION_SIZE, &t); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; case 124: /* db_options ::= db_options WAL_ROLL_PERIOD NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 125: /* db_options ::= db_options WAL_SEGMENT_SIZE NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 126: /* db_options ::= db_options STT_TRIGGER NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 127: /* db_options ::= db_options TABLE_PREFIX signed */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy392); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy664); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 128: /* db_options ::= db_options TABLE_SUFFIX signed */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy392); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy664); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 129: /* db_options ::= db_options KEEP_TIME_OFFSET NK_INTEGER */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 130: /* db_options ::= db_options ENCRYPT_ALGORITHM NK_STRING */ -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_ENCRYPT_ALGORITHM, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_ENCRYPT_ALGORITHM, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 131: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy392 = createAlterDatabaseOptions(pCxt); yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yylhsminor.yy392, &yymsp[0].minor.yy845); } - yymsp[0].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterDatabaseOptions(pCxt); yylhsminor.yy664 = setAlterDatabaseOption(pCxt, yylhsminor.yy664, &yymsp[0].minor.yy549); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; case 132: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy392 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy392, &yymsp[0].minor.yy845); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy664, &yymsp[0].minor.yy549); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; case 133: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 134: /* alter_db_option ::= CACHEMODEL NK_STRING */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 135: /* alter_db_option ::= CACHESIZE NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 136: /* alter_db_option ::= WAL_FSYNC_PERIOD NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 137: /* alter_db_option ::= KEEP integer_list */ case 138: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==138); -{ yymsp[-1].minor.yy845.type = DB_OPTION_KEEP; yymsp[-1].minor.yy845.pList = yymsp[0].minor.yy184; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_KEEP; yymsp[-1].minor.yy549.pList = yymsp[0].minor.yy1006; } break; case 139: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_PAGES; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_PAGES; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 140: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 141: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_WAL; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 142: /* alter_db_option ::= STT_TRIGGER NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 143: /* alter_db_option ::= MINROWS NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 144: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 145: /* alter_db_option ::= WAL_RETENTION_PERIOD 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; - yymsp[-2].minor.yy845.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy845.val = t; + yymsp[-2].minor.yy549.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-2].minor.yy549.val = t; } break; case 146: /* alter_db_option ::= WAL_RETENTION_SIZE NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 147: /* alter_db_option ::= WAL_RETENTION_SIZE 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; - yymsp[-2].minor.yy845.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy845.val = t; + yymsp[-2].minor.yy549.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-2].minor.yy549.val = t; } break; case 148: /* alter_db_option ::= KEEP_TIME_OFFSET NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 149: /* alter_db_option ::= ENCRYPT_ALGORITHM NK_STRING */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_ENCRYPT_ALGORITHM; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy549.type = DB_OPTION_ENCRYPT_ALGORITHM; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; case 150: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy184 = yylhsminor.yy184; +{ yylhsminor.yy1006 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; case 151: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 408: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==408); -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy184 = yylhsminor.yy184; + case 412: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==412); +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; case 152: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy184 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy184 = yylhsminor.yy184; +{ yylhsminor.yy1006 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; case 153: /* variable_list ::= variable_list NK_COMMA NK_VARIABLE */ -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy184 = yylhsminor.yy184; +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; case 154: /* retention_list ::= retention */ case 185: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==185); case 188: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==188); case 195: /* column_def_list ::= column_def */ yytestcase(yyruleno==195); - case 239: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==239); - case 244: /* col_name_list ::= col_name */ yytestcase(yyruleno==244); - case 313: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==313); - case 330: /* func_list ::= func */ yytestcase(yyruleno==330); - case 452: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==452); - case 477: /* literal_list ::= signed_literal */ yytestcase(yyruleno==477); - case 549: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==549); - case 555: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==555); - case 614: /* select_list ::= select_item */ yytestcase(yyruleno==614); - case 625: /* partition_list ::= partition_item */ yytestcase(yyruleno==625); - case 686: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==686); -{ yylhsminor.yy184 = createNodeList(pCxt, yymsp[0].minor.yy392); } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 243: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==243); + case 248: /* col_name_list ::= col_name */ yytestcase(yyruleno==248); + case 317: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==317); + case 334: /* func_list ::= func */ yytestcase(yyruleno==334); + case 456: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==456); + case 481: /* literal_list ::= signed_literal */ yytestcase(yyruleno==481); + case 554: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==554); + case 560: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==560); + case 619: /* select_list ::= select_item */ yytestcase(yyruleno==619); + case 630: /* partition_list ::= partition_item */ yytestcase(yyruleno==630); + case 691: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==691); +{ yylhsminor.yy1006 = createNodeList(pCxt, yymsp[0].minor.yy664); } + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; case 155: /* retention_list ::= retention_list NK_COMMA retention */ case 189: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==189); case 196: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==196); - case 240: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==240); - case 245: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==245); - case 314: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==314); - case 331: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==331); - case 453: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==453); - case 478: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==478); - case 550: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==550); - case 615: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==615); - case 626: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==626); - case 687: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==687); -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); } - yymsp[-2].minor.yy184 = yylhsminor.yy184; + case 244: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==244); + case 249: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==249); + case 318: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==318); + case 335: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==335); + case 457: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==457); + case 482: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==482); + case 555: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==555); + case 620: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==620); + case 631: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==631); + case 692: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==692); +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, yymsp[0].minor.yy664); } + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; case 156: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ case 157: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==157); -{ yylhsminor.yy392 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 158: /* speed_opt ::= */ - case 364: /* bufsize_opt ::= */ yytestcase(yyruleno==364); -{ yymsp[1].minor.yy20 = 0; } + case 368: /* bufsize_opt ::= */ yytestcase(yyruleno==368); +{ yymsp[1].minor.yy316 = 0; } break; case 159: /* speed_opt ::= BWLIMIT NK_INTEGER */ - case 365: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==365); -{ yymsp[-1].minor.yy20 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } + case 369: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==369); +{ yymsp[-1].minor.yy316 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } break; case 161: /* start_opt ::= START WITH NK_INTEGER */ case 165: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==165); -{ yymsp[-2].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +{ yymsp[-2].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; case 162: /* start_opt ::= START WITH NK_STRING */ case 166: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==166); -{ yymsp[-2].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-2].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 163: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 167: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==167); -{ yymsp[-3].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +{ yymsp[-3].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; case 168: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 170: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==170); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy377, yymsp[-5].minor.yy392, yymsp[-3].minor.yy184, yymsp[-1].minor.yy184, yymsp[0].minor.yy392); } +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy885, yymsp[-5].minor.yy664, yymsp[-3].minor.yy1006, yymsp[-1].minor.yy1006, yymsp[0].minor.yy664); } break; case 169: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy184); } +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy1006); } break; case 171: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy184); } +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy1006); } break; case 172: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); } break; case 173: /* cmd ::= ALTER TABLE alter_table_clause */ - case 410: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==410); - case 411: /* cmd ::= insert_query */ yytestcase(yyruleno==411); -{ pCxt->pRootNode = yymsp[0].minor.yy392; } + case 414: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==414); + case 415: /* cmd ::= insert_query */ yytestcase(yyruleno==415); +{ pCxt->pRootNode = yymsp[0].minor.yy664; } break; case 174: /* cmd ::= ALTER STABLE alter_table_clause */ -{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy392); } +{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy664); } break; case 175: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy392 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; case 176: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); } + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 177: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy369); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy664, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy213); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; case 178: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); } + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 179: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); } + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 180: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); } + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 181: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy392 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy392, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy369); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy664, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy213); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; case 182: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy392 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); } + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 183: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy392 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy392, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); } + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 184: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ tags_literal */ -{ yylhsminor.yy392 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy392, &yymsp[-2].minor.yy369, yymsp[0].minor.yy392); } - yymsp[-5].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy664, &yymsp[-2].minor.yy213, yymsp[0].minor.yy664); } + yymsp[-5].minor.yy664 = yylhsminor.yy664; break; case 186: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 556: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==556); -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-1].minor.yy184, yymsp[0].minor.yy392); } - yymsp[-1].minor.yy184 = yylhsminor.yy184; + case 561: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==561); +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-1].minor.yy1006, yymsp[0].minor.yy664); } + yymsp[-1].minor.yy1006 = yylhsminor.yy1006; break; case 187: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP tags_literal_list NK_RP table_options */ -{ yylhsminor.yy392 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy377, yymsp[-8].minor.yy392, yymsp[-6].minor.yy392, yymsp[-5].minor.yy184, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); } - yymsp[-9].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy885, yymsp[-8].minor.yy664, yymsp[-6].minor.yy664, yymsp[-5].minor.yy1006, yymsp[-2].minor.yy1006, yymsp[0].minor.yy664); } + yymsp[-9].minor.yy664 = yylhsminor.yy664; break; case 190: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy392 = createDropTableClause(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createDropTableClause(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; case 192: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ - case 379: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==379); -{ yymsp[-2].minor.yy184 = yymsp[-1].minor.yy184; } + case 383: /* col_list_opt ::= NK_LP col_name_list NK_RP */ yytestcase(yyruleno==383); +{ yymsp[-2].minor.yy1006 = yymsp[-1].minor.yy1006; } break; case 193: /* full_table_name ::= table_name */ -{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy369, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy213, NULL); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; case 194: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369, NULL); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createRealTableNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213, NULL); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 197: /* column_def ::= column_name type_name */ -{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864, NULL); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; +{ yylhsminor.yy664 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892, NULL); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; case 198: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BOOL); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_BOOL); } break; case 199: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_TINYINT); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; case 200: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; case 201: /* type_name ::= INT */ case 202: /* type_name ::= INTEGER */ yytestcase(yyruleno==202); -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_INT); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_INT); } break; case 203: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BIGINT); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; case 204: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_FLOAT); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; case 205: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; case 206: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; case 207: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; case 208: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; case 209: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; case 210: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; case 211: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UINT); } +{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_UINT); } break; case 212: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; case 213: /* type_name ::= JSON */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_JSON); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_JSON); } break; case 214: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; case 215: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; case 216: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BLOB); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_BLOB); } break; case 217: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; case 218: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } break; case 219: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 220: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-3].minor.yy892 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 221: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +{ yymsp[-5].minor.yy892 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 224: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ - case 382: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==382); -{ yymsp[-3].minor.yy184 = yymsp[-1].minor.yy184; } + case 222: /* type_name_default_len ::= BINARY */ +{ yymsp[0].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); } break; - case 225: /* table_options ::= */ -{ yymsp[1].minor.yy392 = createDefaultTableOptions(pCxt); } + case 223: /* type_name_default_len ::= NCHAR */ +{ yymsp[0].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); } break; - case 226: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 224: /* type_name_default_len ::= VARCHAR */ +{ yymsp[0].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); } break; - case 227: /* table_options ::= table_options MAX_DELAY duration_list */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy184); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 225: /* type_name_default_len ::= VARBINARY */ +{ yymsp[0].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); } break; - case 228: /* table_options ::= table_options WATERMARK duration_list */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy184); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 228: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ + case 386: /* tag_def_or_ref_opt ::= TAGS NK_LP col_name_list NK_RP */ yytestcase(yyruleno==386); +{ yymsp[-3].minor.yy1006 = yymsp[-1].minor.yy1006; } break; - case 229: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy184); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; + case 229: /* table_options ::= */ +{ yymsp[1].minor.yy664 = createDefaultTableOptions(pCxt); } break; - case 230: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 230: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 231: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-4].minor.yy392, TABLE_OPTION_SMA, yymsp[-1].minor.yy184); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; + case 231: /* table_options ::= table_options MAX_DELAY duration_list */ +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy1006); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 232: /* table_options ::= table_options DELETE_MARK duration_list */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-2].minor.yy392, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy184); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 232: /* table_options ::= table_options WATERMARK duration_list */ +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy1006); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 233: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy392 = createAlterTableOptions(pCxt); yylhsminor.yy392 = setTableOption(pCxt, yylhsminor.yy392, yymsp[0].minor.yy845.type, &yymsp[0].minor.yy845.val); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 233: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-4].minor.yy664, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy1006); } + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; - case 234: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy392 = setTableOption(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy845.type, &yymsp[0].minor.yy845.val); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 234: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 235: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy845.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } + case 235: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-4].minor.yy664, TABLE_OPTION_SMA, yymsp[-1].minor.yy1006); } + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; - case 236: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } + case 236: /* table_options ::= table_options DELETE_MARK duration_list */ +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy1006); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 237: /* duration_list ::= duration_literal */ - case 509: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==509); -{ yylhsminor.yy184 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 237: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy664 = createAlterTableOptions(pCxt); yylhsminor.yy664 = setTableOption(pCxt, yylhsminor.yy664, yymsp[0].minor.yy549.type, &yymsp[0].minor.yy549.val); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 238: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 510: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==510); -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[-2].minor.yy184 = yylhsminor.yy184; + case 238: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy549.type, &yymsp[0].minor.yy549.val); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 241: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy369, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 239: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy549.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; - case 242: /* rollup_func_name ::= FIRST */ - case 243: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==243); - case 316: /* tag_item ::= QTAGS */ yytestcase(yyruleno==316); -{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 240: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy549.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } break; - case 246: /* col_name ::= column_name */ - case 317: /* tag_item ::= column_name */ yytestcase(yyruleno==317); -{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy369); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 241: /* duration_list ::= duration_literal */ + case 513: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==513); +{ yylhsminor.yy1006 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; - case 247: /* cmd ::= SHOW DNODES */ + case 242: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 514: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==514); +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; + break; + case 245: /* rollup_func_name ::= function_name */ +{ yylhsminor.yy664 = createFunctionNode(pCxt, &yymsp[0].minor.yy213, NULL); } + yymsp[0].minor.yy664 = yylhsminor.yy664; + break; + case 246: /* rollup_func_name ::= FIRST */ + case 247: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==247); + case 320: /* tag_item ::= QTAGS */ yytestcase(yyruleno==320); +{ yylhsminor.yy664 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy664 = yylhsminor.yy664; + break; + case 250: /* col_name ::= column_name */ + case 321: /* tag_item ::= column_name */ yytestcase(yyruleno==321); +{ yylhsminor.yy664 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy213); } + yymsp[0].minor.yy664 = yylhsminor.yy664; + break; + case 251: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } break; - case 248: /* cmd ::= SHOW USERS */ + case 252: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } break; - case 249: /* cmd ::= SHOW USER PRIVILEGES */ + case 253: /* cmd ::= SHOW USER PRIVILEGES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } break; - case 250: /* cmd ::= SHOW db_kind_opt DATABASES */ + case 254: /* cmd ::= SHOW db_kind_opt DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT); - setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy849); + setShowKind(pCxt, pCxt->pRootNode, yymsp[-1].minor.yy217); } break; - case 251: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + case 255: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ { - pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy397, yymsp[0].minor.yy392, OP_TYPE_LIKE); + pCxt->pRootNode = createShowTablesStmt(pCxt, yymsp[-2].minor.yy943, yymsp[0].minor.yy664, OP_TYPE_LIKE); } break; - case 252: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } + case 256: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, OP_TYPE_LIKE); } break; - case 253: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy392, NULL, OP_TYPE_LIKE); } + case 257: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy664, NULL, OP_TYPE_LIKE); } break; - case 254: /* cmd ::= SHOW MNODES */ + case 258: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } break; - case 255: /* cmd ::= SHOW QNODES */ + case 259: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } break; - case 256: /* cmd ::= SHOW ARBGROUPS */ + case 260: /* cmd ::= SHOW ARBGROUPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); } break; - case 257: /* cmd ::= SHOW FUNCTIONS */ + case 261: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } break; - case 258: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); } + case 262: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy664, yymsp[-1].minor.yy664, OP_TYPE_EQUAL); } break; - case 259: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy369), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369), OP_TYPE_EQUAL); } + case 263: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy213), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213), OP_TYPE_EQUAL); } break; - case 260: /* cmd ::= SHOW STREAMS */ + case 264: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } break; - case 261: /* cmd ::= SHOW ACCOUNTS */ + case 265: /* cmd ::= SHOW ACCOUNTS */ { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } break; - case 262: /* cmd ::= SHOW APPS */ + case 266: /* cmd ::= SHOW APPS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } break; - case 263: /* cmd ::= SHOW CONNECTIONS */ + case 267: /* cmd ::= SHOW CONNECTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } break; - case 264: /* cmd ::= SHOW LICENCES */ - case 265: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==265); + case 268: /* cmd ::= SHOW LICENCES */ + case 269: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==269); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } break; - case 266: /* cmd ::= SHOW GRANTS FULL */ + case 270: /* cmd ::= SHOW GRANTS FULL */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); } break; - case 267: /* cmd ::= SHOW GRANTS LOGS */ + case 271: /* cmd ::= SHOW GRANTS LOGS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); } break; - case 268: /* cmd ::= SHOW CLUSTER MACHINES */ + case 272: /* cmd ::= SHOW CLUSTER MACHINES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); } break; - case 269: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy369); } + case 273: /* cmd ::= SHOW CREATE DATABASE db_name */ +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy213); } break; - case 270: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy392); } + case 274: /* cmd ::= SHOW CREATE TABLE full_table_name */ +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy664); } break; - case 271: /* cmd ::= SHOW CREATE STABLE full_table_name */ + case 275: /* cmd ::= SHOW CREATE STABLE full_table_name */ { pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, -yymsp[0].minor.yy392); } +yymsp[0].minor.yy664); } break; - case 272: /* cmd ::= SHOW ENCRYPTIONS */ + case 276: /* cmd ::= SHOW ENCRYPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ENCRYPTIONS_STMT); } break; - case 273: /* cmd ::= SHOW QUERIES */ + case 277: /* cmd ::= SHOW QUERIES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } break; - case 274: /* cmd ::= SHOW SCORES */ + case 278: /* cmd ::= SHOW SCORES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } break; - case 275: /* cmd ::= SHOW TOPICS */ + case 279: /* cmd ::= SHOW TOPICS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } break; - case 276: /* cmd ::= SHOW VARIABLES */ - case 277: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==277); + case 280: /* cmd ::= SHOW VARIABLES */ + case 281: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==281); { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } break; - case 278: /* cmd ::= SHOW LOCAL VARIABLES */ + case 282: /* cmd ::= SHOW LOCAL VARIABLES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } break; - case 279: /* 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.yy392); } + case 283: /* 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.yy664); } break; - case 280: /* cmd ::= SHOW BNODES */ + case 284: /* cmd ::= SHOW BNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } break; - case 281: /* cmd ::= SHOW SNODES */ + case 285: /* cmd ::= SHOW SNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } break; - case 282: /* cmd ::= SHOW CLUSTER */ + case 286: /* cmd ::= SHOW CLUSTER */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } break; - case 283: /* cmd ::= SHOW TRANSACTIONS */ + case 287: /* cmd ::= SHOW TRANSACTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } break; - case 284: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy392); } + case 288: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy664); } break; - case 285: /* cmd ::= SHOW CONSUMERS */ + case 289: /* cmd ::= SHOW CONSUMERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } break; - case 286: /* cmd ::= SHOW SUBSCRIPTIONS */ + case 290: /* cmd ::= SHOW SUBSCRIPTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } break; - case 287: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy392, yymsp[-1].minor.yy392, OP_TYPE_EQUAL); } + case 291: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy664, yymsp[-1].minor.yy664, OP_TYPE_EQUAL); } break; - case 288: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy369), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369), OP_TYPE_EQUAL); } + case 292: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy213), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213), OP_TYPE_EQUAL); } break; - case 289: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392, yymsp[-3].minor.yy184); } + case 293: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy664, yymsp[-3].minor.yy1006); } break; - case 290: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ -{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy369), yymsp[-4].minor.yy184); } + case 294: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy213), yymsp[-4].minor.yy1006); } break; - case 291: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + case 295: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } break; - case 292: /* cmd ::= SHOW VNODES */ + case 296: /* cmd ::= SHOW VNODES */ { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } break; - case 293: /* cmd ::= SHOW db_name_cond_opt ALIVE */ -{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy392, QUERY_NODE_SHOW_DB_ALIVE_STMT); } + case 297: /* cmd ::= SHOW db_name_cond_opt ALIVE */ +{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy664, QUERY_NODE_SHOW_DB_ALIVE_STMT); } break; - case 294: /* cmd ::= SHOW CLUSTER ALIVE */ + case 298: /* cmd ::= SHOW CLUSTER ALIVE */ { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } break; - case 295: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ -{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, OP_TYPE_LIKE); } + case 299: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, OP_TYPE_LIKE); } break; - case 296: /* cmd ::= SHOW CREATE VIEW full_table_name */ -{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy392); } + case 300: /* cmd ::= SHOW CREATE VIEW full_table_name */ +{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy664); } break; - case 297: /* cmd ::= SHOW COMPACTS */ + case 301: /* cmd ::= SHOW COMPACTS */ { pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); } break; - case 298: /* cmd ::= SHOW COMPACT NK_INTEGER */ + case 302: /* cmd ::= SHOW COMPACT NK_INTEGER */ { pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; - case 299: /* table_kind_db_name_cond_opt ::= */ -{ yymsp[1].minor.yy397.kind = SHOW_KIND_ALL; yymsp[1].minor.yy397.dbName = nil_token; } + case 303: /* table_kind_db_name_cond_opt ::= */ +{ yymsp[1].minor.yy943.kind = SHOW_KIND_ALL; yymsp[1].minor.yy943.dbName = nil_token; } break; - case 300: /* table_kind_db_name_cond_opt ::= table_kind */ -{ yylhsminor.yy397.kind = yymsp[0].minor.yy849; yylhsminor.yy397.dbName = nil_token; } - yymsp[0].minor.yy397 = yylhsminor.yy397; + case 304: /* table_kind_db_name_cond_opt ::= table_kind */ +{ yylhsminor.yy943.kind = yymsp[0].minor.yy217; yylhsminor.yy943.dbName = nil_token; } + yymsp[0].minor.yy943 = yylhsminor.yy943; break; - case 301: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy397.kind = SHOW_KIND_ALL; yylhsminor.yy397.dbName = yymsp[-1].minor.yy369; } - yymsp[-1].minor.yy397 = yylhsminor.yy397; + case 305: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy943.kind = SHOW_KIND_ALL; yylhsminor.yy943.dbName = yymsp[-1].minor.yy213; } + yymsp[-1].minor.yy943 = yylhsminor.yy943; break; - case 302: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ -{ yylhsminor.yy397.kind = yymsp[-2].minor.yy849; yylhsminor.yy397.dbName = yymsp[-1].minor.yy369; } - yymsp[-2].minor.yy397 = yylhsminor.yy397; + case 306: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ +{ yylhsminor.yy943.kind = yymsp[-2].minor.yy217; yylhsminor.yy943.dbName = yymsp[-1].minor.yy213; } + yymsp[-2].minor.yy943 = yylhsminor.yy943; break; - case 303: /* table_kind ::= NORMAL */ -{ yymsp[0].minor.yy849 = SHOW_KIND_TABLES_NORMAL; } + case 307: /* table_kind ::= NORMAL */ +{ yymsp[0].minor.yy217 = SHOW_KIND_TABLES_NORMAL; } break; - case 304: /* table_kind ::= CHILD */ -{ yymsp[0].minor.yy849 = SHOW_KIND_TABLES_CHILD; } + case 308: /* table_kind ::= CHILD */ +{ yymsp[0].minor.yy217 = SHOW_KIND_TABLES_CHILD; } break; - case 305: /* db_name_cond_opt ::= */ - case 310: /* from_db_opt ::= */ yytestcase(yyruleno==310); -{ yymsp[1].minor.yy392 = createDefaultDatabaseCondValue(pCxt); } + case 309: /* db_name_cond_opt ::= */ + case 314: /* from_db_opt ::= */ yytestcase(yyruleno==314); +{ yymsp[1].minor.yy664 = createDefaultDatabaseCondValue(pCxt); } break; - case 306: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy392 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy369); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 310: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy664 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy213); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 308: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 312: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 309: /* table_name_cond ::= table_name */ -{ yylhsminor.yy392 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 313: /* table_name_cond ::= table_name */ +{ yylhsminor.yy664 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 311: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy392 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369); } + case 315: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy664 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213); } break; - case 315: /* tag_item ::= TBNAME */ -{ yylhsminor.yy392 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 319: /* tag_item ::= TBNAME */ +{ yylhsminor.yy664 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 318: /* tag_item ::= column_name column_alias */ -{ yylhsminor.yy392 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy369), &yymsp[0].minor.yy369); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 322: /* tag_item ::= column_name column_alias */ +{ yylhsminor.yy664 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy213), &yymsp[0].minor.yy213); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 319: /* tag_item ::= column_name AS column_alias */ -{ yylhsminor.yy392 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy369), &yymsp[0].minor.yy369); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 323: /* tag_item ::= column_name AS column_alias */ +{ yylhsminor.yy664 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy213), &yymsp[0].minor.yy213); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 320: /* db_kind_opt ::= */ -{ yymsp[1].minor.yy849 = SHOW_KIND_ALL; } + case 324: /* db_kind_opt ::= */ +{ yymsp[1].minor.yy217 = SHOW_KIND_ALL; } break; - case 321: /* db_kind_opt ::= USER */ -{ yymsp[0].minor.yy849 = SHOW_KIND_DATABASES_USER; } + case 325: /* db_kind_opt ::= USER */ +{ yymsp[0].minor.yy217 = SHOW_KIND_DATABASES_USER; } break; - case 322: /* db_kind_opt ::= SYSTEM */ -{ yymsp[0].minor.yy849 = SHOW_KIND_DATABASES_SYSTEM; } + case 326: /* db_kind_opt ::= SYSTEM */ +{ yymsp[0].minor.yy217 = SHOW_KIND_DATABASES_SYSTEM; } break; - case 323: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy377, yymsp[-3].minor.yy392, yymsp[-1].minor.yy392, NULL, yymsp[0].minor.yy392); } + case 327: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy885, yymsp[-3].minor.yy664, yymsp[-1].minor.yy664, NULL, yymsp[0].minor.yy664); } break; - case 324: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy377, yymsp[-5].minor.yy392, yymsp[-3].minor.yy392, yymsp[-1].minor.yy184, NULL); } + case 328: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy885, yymsp[-5].minor.yy664, yymsp[-3].minor.yy664, yymsp[-1].minor.yy1006, NULL); } break; - case 325: /* cmd ::= DROP INDEX exists_opt full_index_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } + case 329: /* cmd ::= DROP INDEX exists_opt full_index_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); } break; - case 326: /* full_index_name ::= index_name */ -{ yylhsminor.yy392 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy369); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 330: /* full_index_name ::= index_name */ +{ yylhsminor.yy664 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy213); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 327: /* full_index_name ::= db_name NK_DOT index_name */ -{ yylhsminor.yy392 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 331: /* full_index_name ::= db_name NK_DOT index_name */ +{ yylhsminor.yy664 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 328: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ -{ yymsp[-9].minor.yy392 = createIndexOption(pCxt, yymsp[-7].minor.yy184, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 332: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ +{ yymsp[-9].minor.yy664 = createIndexOption(pCxt, yymsp[-7].minor.yy1006, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), NULL, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } break; - case 329: /* 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.yy392 = createIndexOption(pCxt, yymsp[-9].minor.yy184, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 333: /* 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.yy664 = createIndexOption(pCxt, yymsp[-9].minor.yy1006, releaseRawExprNode(pCxt, yymsp[-5].minor.yy664), releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } break; - case 332: /* func ::= sma_func_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[-3].minor.yy369, yymsp[-1].minor.yy184); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 336: /* func ::= sma_func_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy664 = createFunctionNode(pCxt, &yymsp[-3].minor.yy213, yymsp[-1].minor.yy1006); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 333: /* sma_func_name ::= function_name */ - case 599: /* alias_opt ::= table_alias */ yytestcase(yyruleno==599); -{ yylhsminor.yy369 = yymsp[0].minor.yy369; } - yymsp[0].minor.yy369 = yylhsminor.yy369; + case 337: /* sma_func_name ::= function_name */ + case 604: /* alias_opt ::= table_alias */ yytestcase(yyruleno==604); +{ yylhsminor.yy213 = yymsp[0].minor.yy213; } + yymsp[0].minor.yy213 = yylhsminor.yy213; break; - case 338: /* sma_stream_opt ::= */ - case 383: /* stream_options ::= */ yytestcase(yyruleno==383); -{ yymsp[1].minor.yy392 = createStreamOptions(pCxt); } + case 342: /* sma_stream_opt ::= */ + case 387: /* stream_options ::= */ yytestcase(yyruleno==387); +{ yymsp[1].minor.yy664 = createStreamOptions(pCxt); } break; - case 339: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 343: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ +{ ((SStreamOptions*)yymsp[-2].minor.yy664)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); yylhsminor.yy664 = yymsp[-2].minor.yy664; } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 340: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 344: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ +{ ((SStreamOptions*)yymsp[-2].minor.yy664)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); yylhsminor.yy664 = yymsp[-2].minor.yy664; } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 341: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ -{ ((SStreamOptions*)yymsp[-2].minor.yy392)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); yylhsminor.yy392 = yymsp[-2].minor.yy392; } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 345: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ +{ ((SStreamOptions*)yymsp[-2].minor.yy664)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); yylhsminor.yy664 = yymsp[-2].minor.yy664; } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 342: /* with_meta ::= AS */ -{ yymsp[0].minor.yy20 = 0; } + case 346: /* with_meta ::= AS */ +{ yymsp[0].minor.yy316 = 0; } break; - case 343: /* with_meta ::= WITH META AS */ -{ yymsp[-2].minor.yy20 = 1; } + case 347: /* with_meta ::= WITH META AS */ +{ yymsp[-2].minor.yy316 = 1; } break; - case 344: /* with_meta ::= ONLY META AS */ -{ yymsp[-2].minor.yy20 = 2; } + case 348: /* with_meta ::= ONLY META AS */ +{ yymsp[-2].minor.yy316 = 2; } break; - case 345: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ -{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy377, &yymsp[-2].minor.yy369, yymsp[0].minor.yy392); } + case 349: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy885, &yymsp[-2].minor.yy213, yymsp[0].minor.yy664); } break; - case 346: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ -{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy377, &yymsp[-3].minor.yy369, &yymsp[0].minor.yy369, yymsp[-2].minor.yy20); } + case 350: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy885, &yymsp[-3].minor.yy213, &yymsp[0].minor.yy213, yymsp[-2].minor.yy316); } break; - case 347: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ -{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy377, &yymsp[-4].minor.yy369, yymsp[-1].minor.yy392, yymsp[-3].minor.yy20, yymsp[0].minor.yy392); } + case 351: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy885, &yymsp[-4].minor.yy213, yymsp[-1].minor.yy664, yymsp[-3].minor.yy316, yymsp[0].minor.yy664); } break; - case 348: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } + case 352: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } break; - case 349: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ -{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy377, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369); } + case 353: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy885, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213); } break; - case 350: /* cmd ::= DESC full_table_name */ - case 351: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==351); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy392); } + case 354: /* cmd ::= DESC full_table_name */ + case 355: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==355); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy664); } break; - case 352: /* cmd ::= RESET QUERY CACHE */ + case 356: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 353: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - case 354: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==354); -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy377, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 357: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + case 358: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==358); +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy885, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } break; - case 357: /* explain_options ::= */ -{ yymsp[1].minor.yy392 = createDefaultExplainOptions(pCxt); } + case 361: /* explain_options ::= */ +{ yymsp[1].minor.yy664 = createDefaultExplainOptions(pCxt); } break; - case 358: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy392 = setExplainVerbose(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 362: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy664 = setExplainVerbose(pCxt, yymsp[-2].minor.yy664, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 359: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy392 = setExplainRatio(pCxt, yymsp[-2].minor.yy392, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 363: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy664 = setExplainRatio(pCxt, yymsp[-2].minor.yy664, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 360: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ -{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy377, yymsp[-9].minor.yy377, &yymsp[-6].minor.yy369, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy864, yymsp[-1].minor.yy20, &yymsp[0].minor.yy369, yymsp[-10].minor.yy377); } + case 364: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ +{ pCxt->pRootNode = createCreateFunctionStmt(pCxt, yymsp[-7].minor.yy885, yymsp[-9].minor.yy885, &yymsp[-6].minor.yy213, &yymsp[-4].minor.yy0, yymsp[-2].minor.yy892, yymsp[-1].minor.yy316, &yymsp[0].minor.yy213, yymsp[-10].minor.yy885); } break; - case 361: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } + case 365: /* cmd ::= DROP FUNCTION exists_opt function_name */ +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } break; - case 366: /* language_opt ::= */ - case 405: /* on_vgroup_id ::= */ yytestcase(yyruleno==405); -{ yymsp[1].minor.yy369 = nil_token; } + case 370: /* language_opt ::= */ + case 409: /* on_vgroup_id ::= */ yytestcase(yyruleno==409); +{ yymsp[1].minor.yy213 = nil_token; } break; - case 367: /* language_opt ::= LANGUAGE NK_STRING */ - case 406: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==406); -{ yymsp[-1].minor.yy369 = yymsp[0].minor.yy0; } + case 371: /* language_opt ::= LANGUAGE NK_STRING */ + case 410: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==410); +{ yymsp[-1].minor.yy213 = yymsp[0].minor.yy0; } break; - case 370: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ -{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy377, yymsp[-2].minor.yy392, &yymsp[-1].minor.yy0, yymsp[0].minor.yy392); } + case 374: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ +{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy885, yymsp[-2].minor.yy664, &yymsp[-1].minor.yy0, yymsp[0].minor.yy664); } break; - case 371: /* cmd ::= DROP VIEW exists_opt full_view_name */ -{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } + case 375: /* cmd ::= DROP VIEW exists_opt full_view_name */ +{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); } break; - case 372: /* full_view_name ::= view_name */ -{ yylhsminor.yy392 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy369); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 376: /* full_view_name ::= view_name */ +{ yylhsminor.yy664 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy213); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 373: /* full_view_name ::= db_name NK_DOT view_name */ -{ yylhsminor.yy392 = createViewNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 377: /* full_view_name ::= db_name NK_DOT view_name */ +{ yylhsminor.yy664 = createViewNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 374: /* 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.yy377, &yymsp[-8].minor.yy369, yymsp[-5].minor.yy392, yymsp[-7].minor.yy392, yymsp[-3].minor.yy184, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, yymsp[-4].minor.yy184); } + case 378: /* 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.yy885, &yymsp[-8].minor.yy213, yymsp[-5].minor.yy664, yymsp[-7].minor.yy664, yymsp[-3].minor.yy1006, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, yymsp[-4].minor.yy1006); } break; - case 375: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } + case 379: /* cmd ::= DROP STREAM exists_opt stream_name */ +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } break; - case 376: /* cmd ::= PAUSE STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } + case 380: /* cmd ::= PAUSE STREAM exists_opt stream_name */ +{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } break; - case 377: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ -{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy377, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } + case 381: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ +{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy885, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } break; - case 384: /* stream_options ::= stream_options TRIGGER AT_ONCE */ - case 385: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==385); -{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 388: /* stream_options ::= stream_options TRIGGER AT_ONCE */ + case 389: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==389); +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 386: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ -{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-3].minor.yy392, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 390: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-3].minor.yy664, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 387: /* stream_options ::= stream_options WATERMARK duration_literal */ -{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 391: /* stream_options ::= stream_options WATERMARK duration_literal */ +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 388: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ -{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-3].minor.yy392, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 392: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-3].minor.yy664, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 389: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ -{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 393: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 390: /* stream_options ::= stream_options DELETE_MARK duration_literal */ -{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 394: /* stream_options ::= stream_options DELETE_MARK duration_literal */ +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 391: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ -{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-3].minor.yy392, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 395: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-3].minor.yy664, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 393: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - case 639: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==639); - case 663: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==663); -{ yymsp[-3].minor.yy392 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy392); } + case 397: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + case 644: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==644); + case 668: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==668); +{ yymsp[-3].minor.yy664 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy664); } break; - case 396: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 400: /* cmd ::= KILL CONNECTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } break; - case 397: /* cmd ::= KILL QUERY NK_STRING */ + case 401: /* cmd ::= KILL QUERY NK_STRING */ { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 398: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 402: /* cmd ::= KILL TRANSACTION NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } break; - case 399: /* cmd ::= KILL COMPACT NK_INTEGER */ + case 403: /* cmd ::= KILL COMPACT NK_INTEGER */ { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); } break; - case 400: /* cmd ::= BALANCE VGROUP */ + case 404: /* cmd ::= BALANCE VGROUP */ { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } break; - case 401: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ -{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy369); } + case 405: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ +{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy213); } break; - case 402: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 406: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } break; - case 403: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy184); } + case 407: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy1006); } break; - case 404: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 408: /* cmd ::= SPLIT VGROUP NK_INTEGER */ { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } break; - case 407: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + case 411: /* dnode_list ::= DNODE NK_INTEGER */ +{ yymsp[-1].minor.yy1006 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } break; - case 409: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 413: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } break; - case 412: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ -{ yymsp[-6].minor.yy392 = createInsertStmt(pCxt, yymsp[-4].minor.yy392, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); } + case 416: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ +{ yymsp[-6].minor.yy664 = createInsertStmt(pCxt, yymsp[-4].minor.yy664, yymsp[-2].minor.yy1006, yymsp[0].minor.yy664); } break; - case 413: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ -{ yymsp[-3].minor.yy392 = createInsertStmt(pCxt, yymsp[-1].minor.yy392, NULL, yymsp[0].minor.yy392); } + case 417: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ +{ yymsp[-3].minor.yy664 = createInsertStmt(pCxt, yymsp[-1].minor.yy664, NULL, yymsp[0].minor.yy664); } break; - case 414: /* tags_literal ::= NK_INTEGER */ - case 426: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==426); - case 435: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==435); -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 418: /* tags_literal ::= NK_INTEGER */ + case 430: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==430); + case 439: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==439); +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 415: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - case 416: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==416); - case 427: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==427); - case 428: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==428); - case 436: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==436); - case 437: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==437); - case 445: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==445); - case 446: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==446); + case 419: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + case 420: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==420); + case 431: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==431); + case 432: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==432); + case 440: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==440); + case 441: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==441); + case 449: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==449); + case 450: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==450); { SToken l = yymsp[-2].minor.yy0; - SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); l.n = (r.z + r.n) - l.z; - yylhsminor.yy392 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy392); + yylhsminor.yy664 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy664); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 417: /* tags_literal ::= NK_PLUS NK_INTEGER */ - case 420: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==420); - case 429: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==429); - case 432: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==432); - case 438: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==438); - case 441: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==441); + case 421: /* tags_literal ::= NK_PLUS NK_INTEGER */ + case 424: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==424); + case 433: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==433); + case 436: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==436); + case 442: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==442); + case 445: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==445); { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL); + yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &t, NULL); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 418: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - case 419: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==419); - case 421: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==421); - case 422: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==422); - case 430: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==430); - case 431: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==431); - case 433: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==433); - case 434: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==434); - case 439: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==439); - case 440: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==440); - case 442: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==442); - case 443: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==443); + case 422: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + case 423: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==423); + case 425: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==425); + case 426: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==426); + case 434: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==434); + case 435: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==435); + case 437: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==437); + case 438: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==438); + case 443: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==443); + case 444: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==444); + case 446: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==446); + case 447: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==447); { SToken l = yymsp[-3].minor.yy0; - SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); l.n = (r.z + r.n) - l.z; - yylhsminor.yy392 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy392); + yylhsminor.yy664 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, NULL, yymsp[0].minor.yy664); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 423: /* tags_literal ::= NK_FLOAT */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 427: /* tags_literal ::= NK_FLOAT */ +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 424: /* tags_literal ::= NK_PLUS NK_FLOAT */ - case 425: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==425); + case 428: /* tags_literal ::= NK_PLUS NK_FLOAT */ + case 429: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==429); { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL); + yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t, NULL); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 444: /* tags_literal ::= NK_STRING */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 448: /* tags_literal ::= NK_STRING */ +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 447: /* tags_literal ::= NK_BOOL */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 451: /* tags_literal ::= NK_BOOL */ +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 448: /* tags_literal ::= NULL */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 452: /* tags_literal ::= NULL */ +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 449: /* tags_literal ::= literal_func */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy392); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 453: /* tags_literal ::= literal_func */ +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy664); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 450: /* tags_literal ::= literal_func NK_PLUS duration_literal */ - case 451: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==451); + case 454: /* tags_literal ::= literal_func NK_PLUS duration_literal */ + case 455: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==455); { - SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); + SToken l = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken r = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); l.n = (r.z + r.n) - l.z; - yylhsminor.yy392 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); + yylhsminor.yy664 = createRawValueNodeExt(pCxt, TSDB_DATA_TYPE_BINARY, &l, yymsp[-2].minor.yy664, yymsp[0].minor.yy664); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 454: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 458: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 455: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 459: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 456: /* literal ::= NK_STRING */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 460: /* literal ::= NK_STRING */ +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 457: /* literal ::= NK_BOOL */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 461: /* literal ::= NK_BOOL */ +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 458: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 462: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 459: /* literal ::= duration_literal */ - case 469: /* signed_literal ::= signed */ yytestcase(yyruleno==469); - case 492: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==492); - case 493: /* expression ::= literal */ yytestcase(yyruleno==493); - case 495: /* expression ::= column_reference */ yytestcase(yyruleno==495); - case 496: /* expression ::= function_expression */ yytestcase(yyruleno==496); - case 497: /* expression ::= case_when_expression */ yytestcase(yyruleno==497); - case 530: /* function_expression ::= literal_func */ yytestcase(yyruleno==530); - case 580: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==580); - case 584: /* boolean_primary ::= predicate */ yytestcase(yyruleno==584); - case 586: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==586); - case 587: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==587); - case 590: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==590); - case 592: /* table_reference ::= table_primary */ yytestcase(yyruleno==592); - case 593: /* table_reference ::= joined_table */ yytestcase(yyruleno==593); - case 597: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==597); - case 665: /* query_simple ::= query_specification */ yytestcase(yyruleno==665); - case 666: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==666); - case 669: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==669); - case 671: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==671); -{ yylhsminor.yy392 = yymsp[0].minor.yy392; } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 463: /* literal ::= duration_literal */ + case 473: /* signed_literal ::= signed */ yytestcase(yyruleno==473); + case 496: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==496); + case 497: /* expression ::= literal */ yytestcase(yyruleno==497); + case 499: /* expression ::= column_reference */ yytestcase(yyruleno==499); + case 500: /* expression ::= function_expression */ yytestcase(yyruleno==500); + case 501: /* expression ::= case_when_expression */ yytestcase(yyruleno==501); + case 535: /* function_expression ::= literal_func */ yytestcase(yyruleno==535); + case 585: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==585); + case 589: /* boolean_primary ::= predicate */ yytestcase(yyruleno==589); + case 591: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==591); + case 592: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==592); + case 595: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==595); + case 597: /* table_reference ::= table_primary */ yytestcase(yyruleno==597); + case 598: /* table_reference ::= joined_table */ yytestcase(yyruleno==598); + case 602: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==602); + case 670: /* query_simple ::= query_specification */ yytestcase(yyruleno==670); + case 671: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==671); + case 674: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==674); + case 676: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==676); +{ yylhsminor.yy664 = yymsp[0].minor.yy664; } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 460: /* literal ::= NULL */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 464: /* literal ::= NULL */ +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 461: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 465: /* literal ::= NK_QUESTION */ +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 462: /* duration_literal ::= NK_VARIABLE */ - case 640: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==640); - case 641: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==641); - case 642: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==642); -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 466: /* duration_literal ::= NK_VARIABLE */ + case 645: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==645); + case 646: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==646); + case 647: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==647); +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 463: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 467: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 464: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } + case 468: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } break; - case 465: /* signed ::= NK_MINUS NK_INTEGER */ + case 469: /* signed ::= NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 466: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 470: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 467: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 471: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 468: /* signed ::= NK_MINUS NK_FLOAT */ + case 472: /* signed ::= NK_MINUS NK_FLOAT */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 470: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 474: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 471: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 475: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 472: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 476: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 473: /* signed_literal ::= duration_literal */ - case 475: /* signed_literal ::= literal_func */ yytestcase(yyruleno==475); - case 551: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==551); - case 617: /* select_item ::= common_expression */ yytestcase(yyruleno==617); - case 627: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==627); - case 670: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==670); - case 672: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==672); - case 685: /* search_condition ::= common_expression */ yytestcase(yyruleno==685); -{ yylhsminor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 477: /* signed_literal ::= duration_literal */ + case 479: /* signed_literal ::= literal_func */ yytestcase(yyruleno==479); + case 556: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==556); + case 622: /* select_item ::= common_expression */ yytestcase(yyruleno==622); + case 632: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==632); + case 675: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==675); + case 677: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==677); + case 690: /* search_condition ::= common_expression */ yytestcase(yyruleno==690); +{ yylhsminor.yy664 = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 474: /* signed_literal ::= NULL */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 478: /* signed_literal ::= NULL */ +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 476: /* signed_literal ::= NK_QUESTION */ -{ yylhsminor.yy392 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 480: /* signed_literal ::= NK_QUESTION */ +{ yylhsminor.yy664 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 494: /* expression ::= pseudo_column */ -{ yylhsminor.yy392 = yymsp[0].minor.yy392; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy392, true); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 498: /* expression ::= pseudo_column */ +{ yylhsminor.yy664 = yymsp[0].minor.yy664; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy664, true); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 498: /* expression ::= NK_LP expression NK_RP */ - case 585: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==585); - case 684: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==684); -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 502: /* expression ::= NK_LP expression NK_RP */ + case 590: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==590); + case 689: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==689); +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 499: /* expression ::= NK_PLUS expr_or_subquery */ + case 503: /* expression ::= NK_PLUS expr_or_subquery */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 500: /* expression ::= NK_MINUS expr_or_subquery */ + case 504: /* expression ::= NK_MINUS expr_or_subquery */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy664), NULL)); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 501: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + case 505: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 502: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + case 506: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 503: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + case 507: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 504: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + case 508: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 505: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ + case 509: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_REM, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 506: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 510: /* expression ::= column_reference NK_ARROW NK_STRING */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 507: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + case 511: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 508: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + case 512: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_BIT_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 511: /* column_reference ::= column_name */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy369, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy369)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 515: /* column_reference ::= column_name */ +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy213, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy213)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 512: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369, createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy369)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 516: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213, createColumnNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213)); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 513: /* column_reference ::= NK_ALIAS */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 517: /* column_reference ::= NK_ALIAS */ +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 514: /* column_reference ::= table_name NK_DOT NK_ALIAS */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 518: /* column_reference ::= table_name NK_DOT NK_ALIAS */ +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 515: /* pseudo_column ::= ROWTS */ - case 516: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==516); - case 518: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==518); - case 519: /* pseudo_column ::= QEND */ yytestcase(yyruleno==519); - case 520: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==520); - case 521: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==521); - case 522: /* pseudo_column ::= WEND */ yytestcase(yyruleno==522); - case 523: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==523); - case 524: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==524); - case 525: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==525); - case 526: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==526); - case 532: /* literal_func ::= NOW */ yytestcase(yyruleno==532); - case 533: /* literal_func ::= TODAY */ yytestcase(yyruleno==533); -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 519: /* pseudo_column ::= ROWTS */ + case 520: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==520); + case 522: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==522); + case 523: /* pseudo_column ::= QEND */ yytestcase(yyruleno==523); + case 524: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==524); + case 525: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==525); + case 526: /* pseudo_column ::= WEND */ yytestcase(yyruleno==526); + case 527: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==527); + case 528: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==528); + case 529: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==529); + case 530: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==530); + case 537: /* literal_func ::= NOW */ yytestcase(yyruleno==537); + case 538: /* literal_func ::= TODAY */ yytestcase(yyruleno==538); +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 517: /* pseudo_column ::= table_name NK_DOT TBNAME */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy369)))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 521: /* pseudo_column ::= table_name NK_DOT TBNAME */ +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy213)))); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 527: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 528: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==528); -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy369, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy369, yymsp[-1].minor.yy184)); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 531: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 532: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==532); +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy213, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy213, yymsp[-1].minor.yy1006)); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 529: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy864)); } - yymsp[-5].minor.yy392 = yylhsminor.yy392; + case 533: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + case 534: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==534); +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), yymsp[-1].minor.yy892)); } + yymsp[-5].minor.yy664 = yylhsminor.yy664; break; - case 531: /* literal_func ::= noarg_func NK_LP NK_RP */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy369, NULL)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 536: /* literal_func ::= noarg_func NK_LP NK_RP */ +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy213, NULL)); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 547: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy184 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 552: /* star_func_para_list ::= NK_STAR */ +{ yylhsminor.yy1006 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; - case 552: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 620: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==620); -{ yylhsminor.yy392 = createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 557: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 625: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==625); +{ yylhsminor.yy664 = createColumnNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 553: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy184, yymsp[-1].minor.yy392)); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 558: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy1006, yymsp[-1].minor.yy664)); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 554: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-2].minor.yy184, yymsp[-1].minor.yy392)); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; + case 559: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-4].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), yymsp[-2].minor.yy1006, yymsp[-1].minor.yy664)); } + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; - case 557: /* when_then_expr ::= WHEN common_expression THEN common_expression */ -{ yymsp[-3].minor.yy392 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } + case 562: /* when_then_expr ::= WHEN common_expression THEN common_expression */ +{ yymsp[-3].minor.yy664 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } break; - case 559: /* case_when_else_opt ::= ELSE common_expression */ -{ yymsp[-1].minor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } + case 564: /* case_when_else_opt ::= ELSE common_expression */ +{ yymsp[-1].minor.yy664 = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); } break; - case 560: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ - case 565: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==565); + case 565: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ + case 570: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==570); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy220, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy484, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 561: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + case 566: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy664), releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-4].minor.yy392 = yylhsminor.yy392; + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; - case 562: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + case 567: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy664), releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-5].minor.yy392 = yylhsminor.yy392; + yymsp[-5].minor.yy664 = yylhsminor.yy664; break; - case 563: /* predicate ::= expr_or_subquery IS NULL */ + case 568: /* predicate ::= expr_or_subquery IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), NULL)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 564: /* predicate ::= expr_or_subquery IS NOT NULL */ + case 569: /* predicate ::= expr_or_subquery IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), NULL)); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 566: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy220 = OP_TYPE_LOWER_THAN; } + case 571: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy484 = OP_TYPE_LOWER_THAN; } break; - case 567: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy220 = OP_TYPE_GREATER_THAN; } + case 572: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy484 = OP_TYPE_GREATER_THAN; } break; - case 568: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy220 = OP_TYPE_LOWER_EQUAL; } + case 573: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy484 = OP_TYPE_LOWER_EQUAL; } break; - case 569: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy220 = OP_TYPE_GREATER_EQUAL; } + case 574: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy484 = OP_TYPE_GREATER_EQUAL; } break; - case 570: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy220 = OP_TYPE_NOT_EQUAL; } + case 575: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy484 = OP_TYPE_NOT_EQUAL; } break; - case 571: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy220 = OP_TYPE_EQUAL; } + case 576: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy484 = OP_TYPE_EQUAL; } break; - case 572: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy220 = OP_TYPE_LIKE; } + case 577: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy484 = OP_TYPE_LIKE; } break; - case 573: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy220 = OP_TYPE_NOT_LIKE; } + case 578: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy484 = OP_TYPE_NOT_LIKE; } break; - case 574: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy220 = OP_TYPE_MATCH; } + case 579: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy484 = OP_TYPE_MATCH; } break; - case 575: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy220 = OP_TYPE_NMATCH; } + case 580: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy484 = OP_TYPE_NMATCH; } break; - case 576: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy220 = OP_TYPE_JSON_CONTAINS; } + case 581: /* compare_op ::= CONTAINS */ +{ yymsp[0].minor.yy484 = OP_TYPE_JSON_CONTAINS; } break; - case 577: /* in_op ::= IN */ -{ yymsp[0].minor.yy220 = OP_TYPE_IN; } + case 582: /* in_op ::= IN */ +{ yymsp[0].minor.yy484 = OP_TYPE_IN; } break; - case 578: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy220 = OP_TYPE_NOT_IN; } + case 583: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy484 = OP_TYPE_NOT_IN; } break; - case 579: /* in_predicate_value ::= NK_LP literal_list NK_RP */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy184)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 584: /* in_predicate_value ::= NK_LP literal_list NK_RP */ +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy1006)); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 581: /* boolean_value_expression ::= NOT boolean_primary */ + case 586: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy392), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy664), NULL)); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 582: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 587: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 583: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 588: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy392); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy392); - yylhsminor.yy392 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy664); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy664); + yylhsminor.yy664 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 591: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy392 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy392, yymsp[0].minor.yy392, NULL); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 596: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy664 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, NULL); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 594: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 599: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy664 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 595: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy392 = createRealTableNode(pCxt, &yymsp[-3].minor.yy369, &yymsp[-1].minor.yy369, &yymsp[0].minor.yy369); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 600: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy664 = createRealTableNode(pCxt, &yymsp[-3].minor.yy213, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 596: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy392 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy369); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 601: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy664 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664), &yymsp[0].minor.yy213); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 598: /* alias_opt ::= */ -{ yymsp[1].minor.yy369 = nil_token; } + case 603: /* alias_opt ::= */ +{ yymsp[1].minor.yy213 = nil_token; } break; - case 600: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy369 = yymsp[0].minor.yy369; } + case 605: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy213 = yymsp[0].minor.yy213; } break; - case 601: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 602: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==602); -{ yymsp[-2].minor.yy392 = yymsp[-1].minor.yy392; } + case 606: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 607: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==607); +{ yymsp[-2].minor.yy664 = yymsp[-1].minor.yy664; } break; - case 603: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy392 = createJoinTableNode(pCxt, yymsp[-4].minor.yy932, yymsp[-5].minor.yy392, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } - yymsp[-5].minor.yy392 = yylhsminor.yy392; + case 608: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy664 = createJoinTableNode(pCxt, yymsp[-4].minor.yy310, yymsp[-5].minor.yy664, yymsp[-2].minor.yy664, yymsp[0].minor.yy664); } + yymsp[-5].minor.yy664 = yylhsminor.yy664; break; - case 604: /* join_type ::= */ -{ yymsp[1].minor.yy932 = JOIN_TYPE_INNER; } + case 609: /* join_type ::= */ +{ yymsp[1].minor.yy310 = JOIN_TYPE_INNER; } break; - case 605: /* join_type ::= INNER */ -{ yymsp[0].minor.yy932 = JOIN_TYPE_INNER; } + case 610: /* join_type ::= INNER */ +{ yymsp[0].minor.yy310 = JOIN_TYPE_INNER; } break; - case 606: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 611: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-13].minor.yy392 = createSelectStmt(pCxt, yymsp[-11].minor.yy377, yymsp[-9].minor.yy184, yymsp[-8].minor.yy392, yymsp[-12].minor.yy184); - yymsp[-13].minor.yy392 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy392, yymsp[-10].minor.yy377); - yymsp[-13].minor.yy392 = addWhereClause(pCxt, yymsp[-13].minor.yy392, yymsp[-7].minor.yy392); - yymsp[-13].minor.yy392 = addPartitionByClause(pCxt, yymsp[-13].minor.yy392, yymsp[-6].minor.yy184); - yymsp[-13].minor.yy392 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy392, yymsp[-2].minor.yy392); - yymsp[-13].minor.yy392 = addGroupByClause(pCxt, yymsp[-13].minor.yy392, yymsp[-1].minor.yy184); - yymsp[-13].minor.yy392 = addHavingClause(pCxt, yymsp[-13].minor.yy392, yymsp[0].minor.yy392); - yymsp[-13].minor.yy392 = addRangeClause(pCxt, yymsp[-13].minor.yy392, yymsp[-5].minor.yy392); - yymsp[-13].minor.yy392 = addEveryClause(pCxt, yymsp[-13].minor.yy392, yymsp[-4].minor.yy392); - yymsp[-13].minor.yy392 = addFillClause(pCxt, yymsp[-13].minor.yy392, yymsp[-3].minor.yy392); + yymsp[-13].minor.yy664 = createSelectStmt(pCxt, yymsp[-11].minor.yy885, yymsp[-9].minor.yy1006, yymsp[-8].minor.yy664, yymsp[-12].minor.yy1006); + yymsp[-13].minor.yy664 = setSelectStmtTagMode(pCxt, yymsp[-13].minor.yy664, yymsp[-10].minor.yy885); + yymsp[-13].minor.yy664 = addWhereClause(pCxt, yymsp[-13].minor.yy664, yymsp[-7].minor.yy664); + yymsp[-13].minor.yy664 = addPartitionByClause(pCxt, yymsp[-13].minor.yy664, yymsp[-6].minor.yy1006); + yymsp[-13].minor.yy664 = addWindowClauseClause(pCxt, yymsp[-13].minor.yy664, yymsp[-2].minor.yy664); + yymsp[-13].minor.yy664 = addGroupByClause(pCxt, yymsp[-13].minor.yy664, yymsp[-1].minor.yy1006); + yymsp[-13].minor.yy664 = addHavingClause(pCxt, yymsp[-13].minor.yy664, yymsp[0].minor.yy664); + yymsp[-13].minor.yy664 = addRangeClause(pCxt, yymsp[-13].minor.yy664, yymsp[-5].minor.yy664); + yymsp[-13].minor.yy664 = addEveryClause(pCxt, yymsp[-13].minor.yy664, yymsp[-4].minor.yy664); + yymsp[-13].minor.yy664 = addFillClause(pCxt, yymsp[-13].minor.yy664, yymsp[-3].minor.yy664); } break; - case 607: /* hint_list ::= */ -{ yymsp[1].minor.yy184 = createHintNodeList(pCxt, NULL); } + case 612: /* hint_list ::= */ +{ yymsp[1].minor.yy1006 = createHintNodeList(pCxt, NULL); } break; - case 608: /* hint_list ::= NK_HINT */ -{ yylhsminor.yy184 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 613: /* hint_list ::= NK_HINT */ +{ yylhsminor.yy1006 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; - case 613: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy377 = false; } + case 618: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy885 = false; } break; - case 616: /* select_item ::= NK_STAR */ -{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 621: /* select_item ::= NK_STAR */ +{ yylhsminor.yy664 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 618: /* select_item ::= common_expression column_alias */ - case 628: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==628); -{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy369); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 623: /* select_item ::= common_expression column_alias */ + case 633: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==633); +{ yylhsminor.yy664 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664), &yymsp[0].minor.yy213); } + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 619: /* select_item ::= common_expression AS column_alias */ - case 629: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==629); -{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), &yymsp[0].minor.yy369); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 624: /* select_item ::= common_expression AS column_alias */ + case 634: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==634); +{ yylhsminor.yy664 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), &yymsp[0].minor.yy213); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 624: /* partition_by_clause_opt ::= PARTITION BY partition_list */ - case 654: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==654); - case 674: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==674); -{ yymsp[-2].minor.yy184 = yymsp[0].minor.yy184; } + case 629: /* partition_by_clause_opt ::= PARTITION BY partition_list */ + case 659: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==659); + case 679: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==679); +{ yymsp[-2].minor.yy1006 = yymsp[0].minor.yy1006; } break; - case 631: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ -{ yymsp[-5].minor.yy392 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + case 636: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ +{ yymsp[-5].minor.yy664 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } break; - case 632: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy392 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + case 637: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ +{ yymsp[-3].minor.yy664 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } break; - case 633: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), NULL, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 638: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy664 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), NULL, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } break; - case 634: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy392 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy392), releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 639: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy664 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy664), releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } break; - case 635: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ -{ yymsp[-6].minor.yy392 = createEventWindowNode(pCxt, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } + case 640: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ +{ yymsp[-6].minor.yy664 = createEventWindowNode(pCxt, yymsp[-3].minor.yy664, yymsp[0].minor.yy664); } break; - case 636: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy392 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } + case 641: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy664 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } break; - case 637: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy392 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } + case 642: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy664 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } break; - case 644: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy392 = createFillNode(pCxt, yymsp[-1].minor.yy374, NULL); } + case 649: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy664 = createFillNode(pCxt, yymsp[-1].minor.yy992, NULL); } break; - case 645: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ -{ yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy184)); } + case 650: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ +{ yymsp[-5].minor.yy664 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy1006)); } break; - case 646: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ -{ yymsp[-5].minor.yy392 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy184)); } + case 651: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ +{ yymsp[-5].minor.yy664 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy1006)); } break; - case 647: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy374 = FILL_MODE_NONE; } + case 652: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy992 = FILL_MODE_NONE; } break; - case 648: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy374 = FILL_MODE_PREV; } + case 653: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy992 = FILL_MODE_PREV; } break; - case 649: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy374 = FILL_MODE_NULL; } + case 654: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy992 = FILL_MODE_NULL; } break; - case 650: /* fill_mode ::= NULL_F */ -{ yymsp[0].minor.yy374 = FILL_MODE_NULL_F; } + case 655: /* fill_mode ::= NULL_F */ +{ yymsp[0].minor.yy992 = FILL_MODE_NULL_F; } break; - case 651: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy374 = FILL_MODE_LINEAR; } + case 656: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy992 = FILL_MODE_LINEAR; } break; - case 652: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy374 = FILL_MODE_NEXT; } + case 657: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy992 = FILL_MODE_NEXT; } break; - case 655: /* group_by_list ::= expr_or_subquery */ -{ yylhsminor.yy184 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 660: /* group_by_list ::= expr_or_subquery */ +{ yylhsminor.yy1006 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; - case 656: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392))); } - yymsp[-2].minor.yy184 = yylhsminor.yy184; + case 661: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; - case 660: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ -{ yymsp[-5].minor.yy392 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy392), releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + case 665: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ +{ yymsp[-5].minor.yy664 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } break; - case 661: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy392 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + case 666: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ +{ yymsp[-3].minor.yy664 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } break; - case 664: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 669: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy392 = addOrderByClause(pCxt, yymsp[-3].minor.yy392, yymsp[-2].minor.yy184); - yylhsminor.yy392 = addSlimitClause(pCxt, yylhsminor.yy392, yymsp[-1].minor.yy392); - yylhsminor.yy392 = addLimitClause(pCxt, yylhsminor.yy392, yymsp[0].minor.yy392); + yylhsminor.yy664 = addOrderByClause(pCxt, yymsp[-3].minor.yy664, yymsp[-2].minor.yy1006); + yylhsminor.yy664 = addSlimitClause(pCxt, yylhsminor.yy664, yymsp[-1].minor.yy664); + yylhsminor.yy664 = addLimitClause(pCxt, yylhsminor.yy664, yymsp[0].minor.yy664); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 667: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ -{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy392, yymsp[0].minor.yy392); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; + case 672: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ +{ yylhsminor.yy664 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy664, yymsp[0].minor.yy664); } + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 668: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ -{ yylhsminor.yy392 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy392, yymsp[0].minor.yy392); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 673: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ +{ yylhsminor.yy664 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy664, yymsp[0].minor.yy664); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 676: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 680: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==680); -{ yymsp[-1].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 681: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 685: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==685); +{ yymsp[-1].minor.yy664 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 677: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 681: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==681); -{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 682: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 686: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==686); +{ yymsp[-3].minor.yy664 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 678: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 682: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==682); -{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 683: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 687: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==687); +{ yymsp[-3].minor.yy664 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 683: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy392 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy392); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 688: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy664); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 688: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy392 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), yymsp[-1].minor.yy578, yymsp[0].minor.yy217); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 693: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy664 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), yymsp[-1].minor.yy798, yymsp[0].minor.yy371); } + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 689: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy578 = ORDER_ASC; } + case 694: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy798 = ORDER_ASC; } break; - case 690: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy578 = ORDER_ASC; } + case 695: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy798 = ORDER_ASC; } break; - case 691: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy578 = ORDER_DESC; } + case 696: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy798 = ORDER_DESC; } break; - case 692: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy217 = NULL_ORDER_DEFAULT; } + case 697: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy371 = NULL_ORDER_DEFAULT; } break; - case 693: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_FIRST; } + case 698: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy371 = NULL_ORDER_FIRST; } break; - case 694: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_LAST; } + case 699: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy371 = NULL_ORDER_LAST; } break; default: break; diff --git a/source/libs/planner/src/planLogicCreater.c b/source/libs/planner/src/planLogicCreater.c index c34d8ac64f..7ce623e788 100644 --- a/source/libs/planner/src/planLogicCreater.c +++ b/source/libs/planner/src/planLogicCreater.c @@ -494,6 +494,9 @@ static int32_t createScanLogicNode(SLogicPlanContext* pCxt, SSelectStmt* pSelect } else if (pSelect->pPartitionByList) { isCountByTag = !keysHasCol(pSelect->pPartitionByList); } + if (pScan->tableType == TSDB_CHILD_TABLE) { + isCountByTag = true; + } } pScan->isCountByTag = isCountByTag; diff --git a/source/libs/stream/src/streamMeta.c b/source/libs/stream/src/streamMeta.c index b2fdd247f1..d09b251506 100644 --- a/source/libs/stream/src/streamMeta.c +++ b/source/libs/stream/src/streamMeta.c @@ -304,7 +304,6 @@ void streamMetaRemoveDB(void* arg, char* key) { SStreamMeta* streamMetaOpen(const char* path, void* ahandle, FTaskExpand expandFunc, int32_t vgId, int64_t stage, startComplete_fn_t fn) { - int32_t code = -1; SStreamMeta* pMeta = taosMemoryCalloc(1, sizeof(SStreamMeta)); if (pMeta == NULL) { terrno = TSDB_CODE_OUT_OF_MEMORY; @@ -516,7 +515,6 @@ void streamMetaCloseImpl(void* arg) { taosHashCleanup(pMeta->pTasksMap); taosHashCleanup(pMeta->pTaskDbUnique); - taosHashCleanup(pMeta->pUpdateTaskSet); taosHashCleanup(pMeta->updateInfo.pTasks); taosHashCleanup(pMeta->startInfo.pReadyTaskSet); taosHashCleanup(pMeta->startInfo.pFailedTaskSet); diff --git a/source/libs/stream/src/streamStart.c b/source/libs/stream/src/streamStart.c index cb340ade32..f2a694a554 100644 --- a/source/libs/stream/src/streamStart.c +++ b/source/libs/stream/src/streamStart.c @@ -119,7 +119,11 @@ int32_t streamReExecScanHistoryFuture(SStreamTask* pTask, int32_t idleDuration) // add ref for task SStreamTask* p = streamMetaAcquireTask(pTask->pMeta, pTask->id.streamId, pTask->id.taskId); - ASSERT(p != NULL); + if (p == NULL) { + stError("s-task:0x%x failed to acquire task, status:%s, not exec scan-history data", pTask->id.taskId, + streamTaskGetStatus(pTask)->name); + return TSDB_CODE_SUCCESS; + } pTask->schedHistoryInfo.numOfTicks = numOfTicks; @@ -394,8 +398,7 @@ void doProcessDownstreamReadyRsp(SStreamTask* pTask) { if (pTask->status.taskStatus == TASK_STATUS__HALT) { ASSERT(HAS_RELATED_FILLHISTORY_TASK(pTask) && (pTask->info.fillHistory == 0)); - // halt it self for count window stream task until the related - // fill history task completd. + // halt it self for count window stream task until the related fill history task completed. stDebug("s-task:%s level:%d initial status is %s from mnode, set it to be halt", pTask->id.idStr, pTask->info.taskLevel, streamTaskGetStatusStr(pTask->status.taskStatus)); streamTaskHandleEvent(pTask->status.pSM, TASK_EVENT_HALT); diff --git a/source/libs/stream/src/streamTask.c b/source/libs/stream/src/streamTask.c index c7a1a00a46..c34e162326 100644 --- a/source/libs/stream/src/streamTask.c +++ b/source/libs/stream/src/streamTask.c @@ -35,7 +35,7 @@ static int32_t doUpdateTaskEpset(SStreamTask* pTask, int32_t nodeId, SEpSet* pEp if (pTask->info.nodeId == nodeId) { // execution task should be moved away epsetAssign(&pTask->info.epSet, pEpSet); - EPSET_TO_STR(pEpSet, buf) + epsetToStr(pEpSet, buf, tListLen(buf)); stDebug("s-task:0x%x (vgId:%d) self node epset is updated %s", pTask->id.taskId, nodeId, buf); } @@ -380,12 +380,12 @@ void tFreeStreamTask(SStreamTask* pTask) { } if (pTask->hTaskInfo.pTimer != NULL) { - taosTmrStop(pTask->hTaskInfo.pTimer); + /*bool ret = */taosTmrStop(pTask->hTaskInfo.pTimer); pTask->hTaskInfo.pTimer = NULL; } if (pTask->msgInfo.pTimer != NULL) { - taosTmrStop(pTask->msgInfo.pTimer); + /*bool ret = */taosTmrStop(pTask->msgInfo.pTimer); pTask->msgInfo.pTimer = NULL; } @@ -592,7 +592,7 @@ int32_t streamTaskSetUpstreamInfo(SStreamTask* pTask, const SStreamTask* pUpstre void streamTaskUpdateUpstreamInfo(SStreamTask* pTask, int32_t nodeId, const SEpSet* pEpSet) { char buf[512] = {0}; - EPSET_TO_STR(pEpSet, buf); + epsetToStr(pEpSet, buf, tListLen(buf)); int32_t numOfUpstream = taosArrayGetSize(pTask->upstreamInfo.pList); for (int32_t i = 0; i < numOfUpstream; ++i) { @@ -626,7 +626,7 @@ void streamTaskSetFixedDownstreamInfo(SStreamTask* pTask, const SStreamTask* pDo void streamTaskUpdateDownstreamInfo(SStreamTask* pTask, int32_t nodeId, const SEpSet* pEpSet) { char buf[512] = {0}; - EPSET_TO_STR(pEpSet, buf); + epsetToStr(pEpSet, buf, tListLen(buf)); int32_t id = pTask->id.taskId; int8_t type = pTask->outputInfo.type; @@ -733,15 +733,12 @@ bool streamTaskIsAllUpstreamClosed(SStreamTask* pTask) { bool streamTaskSetSchedStatusWait(SStreamTask* pTask) { bool ret = false; - // double check + taosThreadMutexLock(&pTask->lock); if (pTask->status.schedStatus == TASK_SCHED_STATUS__INACTIVE) { - taosThreadMutexLock(&pTask->lock); - if (pTask->status.schedStatus == TASK_SCHED_STATUS__INACTIVE) { - pTask->status.schedStatus = TASK_SCHED_STATUS__WAITING; - ret = true; - } - taosThreadMutexUnlock(&pTask->lock); + pTask->status.schedStatus = TASK_SCHED_STATUS__WAITING; + ret = true; } + taosThreadMutexUnlock(&pTask->lock); return ret; } diff --git a/source/libs/sync/src/syncMain.c b/source/libs/sync/src/syncMain.c index da18bbdea2..85aa3a2796 100644 --- a/source/libs/sync/src/syncMain.c +++ b/source/libs/sync/src/syncMain.c @@ -276,16 +276,18 @@ int32_t syncForceBecomeFollower(SSyncNode* ths, const SRpcMsg* pRpcMsg) { int32_t syncBecomeAssignedLeader(SSyncNode* ths, SRpcMsg* pRpcMsg) { int32_t ret = -1; + int32_t errcode = TSDB_CODE_MND_ARB_TOKEN_MISMATCH; + void* pHead = NULL; + int32_t contLen = 0; SVArbSetAssignedLeaderReq req = {0}; if (tDeserializeSVArbSetAssignedLeaderReq((char*)pRpcMsg->pCont + sizeof(SMsgHead), pRpcMsg->contLen, &req) != 0) { sError("vgId:%d, failed to deserialize SVArbSetAssignedLeaderReq", ths->vgId); terrno = TSDB_CODE_INVALID_MSG; - return -1; + errcode = terrno; + goto _OVER; } - int32_t errcode = TSDB_CODE_MND_ARB_TOKEN_MISMATCH; - if (ths->arbTerm > req.arbTerm) { sInfo("vgId:%d, skip to set assigned leader, msg with lower term, local:%" PRId64 "msg:%" PRId64, ths->vgId, ths->arbTerm, req.arbTerm); @@ -294,50 +296,58 @@ int32_t syncBecomeAssignedLeader(SSyncNode* ths, SRpcMsg* pRpcMsg) { ths->arbTerm = TMAX(req.arbTerm, ths->arbTerm); - if (strncmp(req.memberToken, ths->arbToken, TSDB_ARB_TOKEN_SIZE) == 0) { - if (ths->state != TAOS_SYNC_STATE_ASSIGNED_LEADER) { - raftStoreNextTerm(ths); - if (terrno != TSDB_CODE_SUCCESS) { - sError("vgId:%d, failed to set next term since:%s", ths->vgId, terrstr()); - goto _OVER; - } - syncNodeBecomeAssignedLeader(ths); - - if (syncNodeAppendNoop(ths) < 0) { - sError("vgId:%d, assigned leader failed to append noop entry since %s", ths->vgId, terrstr()); - } - } - errcode = TSDB_CODE_SUCCESS; - } else { + if (strncmp(req.memberToken, ths->arbToken, TSDB_ARB_TOKEN_SIZE) != 0) { sInfo("vgId:%d, skip to set assigned leader, token mismatch, local:%s, msg:%s", ths->vgId, ths->arbToken, req.memberToken); goto _OVER; } + if (ths->state != TAOS_SYNC_STATE_ASSIGNED_LEADER) { + terrno = TSDB_CODE_SUCCESS; + raftStoreNextTerm(ths); + if (terrno != TSDB_CODE_SUCCESS) { + sError("vgId:%d, failed to set next term since:%s", ths->vgId, terrstr()); + errcode = terrno; + goto _OVER; + } + syncNodeBecomeAssignedLeader(ths); + + if (syncNodeAppendNoop(ths) < 0) { + sError("vgId:%d, assigned leader failed to append noop entry since %s", ths->vgId, terrstr()); + } + } + SVArbSetAssignedLeaderRsp rsp = {0}; rsp.arbToken = req.arbToken; rsp.memberToken = req.memberToken; rsp.vgId = ths->vgId; - int32_t contLen = tSerializeSVArbSetAssignedLeaderRsp(NULL, 0, &rsp); + contLen = tSerializeSVArbSetAssignedLeaderRsp(NULL, 0, &rsp); if (contLen <= 0) { sError("vgId:%d, failed to serialize SVArbSetAssignedLeaderRsp", ths->vgId); terrno = TSDB_CODE_OUT_OF_MEMORY; + errcode = terrno; goto _OVER; } - void* pHead = rpcMallocCont(contLen); + pHead = rpcMallocCont(contLen); if (!pHead) { sError("vgId:%d, failed to malloc memory for SVArbSetAssignedLeaderRsp", ths->vgId); terrno = TSDB_CODE_OUT_OF_MEMORY; + errcode = terrno; goto _OVER; } if (tSerializeSVArbSetAssignedLeaderRsp(pHead, contLen, &rsp) <= 0) { sError("vgId:%d, failed to serialize SVArbSetAssignedLeaderRsp", ths->vgId); terrno = TSDB_CODE_OUT_OF_MEMORY; + errcode = terrno; rpcFreeCont(pHead); goto _OVER; } + errcode = TSDB_CODE_SUCCESS; + ret = 0; + +_OVER:; SRpcMsg rspMsg = { .code = errcode, .pCont = pHead, @@ -347,9 +357,6 @@ int32_t syncBecomeAssignedLeader(SSyncNode* ths, SRpcMsg* pRpcMsg) { tmsgSendRsp(&rspMsg); - ret = 0; - -_OVER: tFreeSVArbSetAssignedLeaderReq(&req); return ret; } diff --git a/source/libs/transport/src/transCli.c b/source/libs/transport/src/transCli.c index 062609baac..79699a755a 100644 --- a/source/libs/transport/src/transCli.c +++ b/source/libs/transport/src/transCli.c @@ -2188,7 +2188,7 @@ static void cliSchedMsgToDebug(SCliMsg* pMsg, char* label) { STransConnCtx* pCtx = pMsg->ctx; STraceId* trace = &pMsg->msg.info.traceId; char tbuf[512] = {0}; - EPSET_TO_STR(&pCtx->epSet, tbuf); + epsetToStr(&pCtx->epSet, tbuf, tListLen(tbuf)); tGDebug("%s retry on next node,use:%s, step: %d,timeout:%" PRId64 "", label, tbuf, pCtx->retryStep, pCtx->retryNextInterval); return; @@ -2421,7 +2421,7 @@ int cliAppCb(SCliConn* pConn, STransMsg* pResp, SCliMsg* pMsg) { if (hasEpSet) { if (rpcDebugFlag & DEBUG_TRACE) { char tbuf[512] = {0}; - EPSET_TO_STR(&pCtx->epSet, tbuf); + epsetToStr(&pCtx->epSet, tbuf, tListLen(tbuf)); tGTrace("%s conn %p extract epset from msg", CONN_GET_INST_LABEL(pConn), pConn); } } diff --git a/source/libs/transport/src/transComm.c b/source/libs/transport/src/transComm.c index 27099c76fc..fff13e7ebb 100644 --- a/source/libs/transport/src/transComm.c +++ b/source/libs/transport/src/transComm.c @@ -70,7 +70,7 @@ int32_t transDecompressMsg(char** msg, int32_t len) { char* buf = taosMemoryCalloc(1, oriLen + sizeof(STransMsgHead)); STransMsgHead* pNewHead = (STransMsgHead*)buf; int32_t decompLen = LZ4_decompress_safe(pCont + sizeof(STransCompMsg), (char*)pNewHead->content, - len - sizeof(STransMsgHead) - sizeof(STransCompMsg), oriLen); + len - sizeof(STransMsgHead) - sizeof(STransCompMsg), oriLen); memcpy((char*)pNewHead, (char*)pHead, sizeof(STransMsgHead)); pNewHead->msgLen = htonl(oriLen + sizeof(STransMsgHead)); @@ -158,6 +158,10 @@ int transResetBuffer(SConnBuffer* connBuf) { p->left = -1; p->total = 0; p->len = 0; + if (p->cap > BUFFER_CAP) { + p->cap = BUFFER_CAP; + p->buf = taosMemoryRealloc(p->buf, p->cap); + } } else { ASSERTS(0, "invalid read from sock buf"); return -1; diff --git a/source/util/src/tconfig.c b/source/util/src/tconfig.c index 6ebafa14ce..29df209309 100644 --- a/source/util/src/tconfig.c +++ b/source/util/src/tconfig.c @@ -174,7 +174,9 @@ static int32_t cfgSetBool(SConfigItem *pItem, const char *value, ECfgSrcType sty } static int32_t cfgSetInt32(SConfigItem *pItem, const char *value, ECfgSrcType stype) { - int32_t ival = taosStrHumanToInt32(value); + int32_t ival; + int32_t code = taosStrHumanToInt32(value, &ival); + if (code != TSDB_CODE_SUCCESS) return code; if (ival < pItem->imin || ival > pItem->imax) { uError("cfg:%s, type:%s src:%s value:%d out of range[%" PRId64 ", %" PRId64 "]", pItem->name, cfgDtypeStr(pItem->dtype), cfgStypeStr(stype), ival, pItem->imin, pItem->imax); @@ -188,7 +190,9 @@ static int32_t cfgSetInt32(SConfigItem *pItem, const char *value, ECfgSrcType st } static int32_t cfgSetInt64(SConfigItem *pItem, const char *value, ECfgSrcType stype) { - int64_t ival = taosStrHumanToInt64(value); + int64_t ival; + int32_t code = taosStrHumanToInt64(value, &ival); + if (code != TSDB_CODE_SUCCESS) return code; if (ival < pItem->imin || ival > pItem->imax) { uError("cfg:%s, type:%s src:%s value:%" PRId64 " out of range[%" PRId64 ", %" PRId64 "]", pItem->name, cfgDtypeStr(pItem->dtype), cfgStypeStr(stype), ival, pItem->imin, pItem->imax); @@ -202,15 +206,16 @@ static int32_t cfgSetInt64(SConfigItem *pItem, const char *value, ECfgSrcType st } static int32_t cfgSetFloat(SConfigItem *pItem, const char *value, ECfgSrcType stype) { - float fval = (float)atof(value); - if (fval < pItem->fmin || fval > pItem->fmax) { + double dval; + int32_t code = parseCfgReal(value, &dval); + if (dval < pItem->fmin || dval > pItem->fmax) { uError("cfg:%s, type:%s src:%s value:%f out of range[%f, %f]", pItem->name, cfgDtypeStr(pItem->dtype), - cfgStypeStr(stype), fval, pItem->fmin, pItem->fmax); + cfgStypeStr(stype), dval, pItem->fmin, pItem->fmax); terrno = TSDB_CODE_OUT_OF_RANGE; return -1; } - pItem->fval = fval; + pItem->fval = (float)dval; pItem->stype = stype; return 0; } @@ -408,7 +413,9 @@ int32_t cfgCheckRangeForDynUpdate(SConfig *pCfg, const char *name, const char *p } } break; case CFG_DTYPE_INT32: { - int32_t ival = (int32_t)taosStrHumanToInt32(pVal); + int32_t ival; + int32_t code = (int32_t)taosStrHumanToInt32(pVal, &ival); + if (code != TSDB_CODE_SUCCESS) return code; if (ival < pItem->imin || ival > pItem->imax) { uError("cfg:%s, type:%s value:%d out of range[%" PRId64 ", %" PRId64 "]", pItem->name, cfgDtypeStr(pItem->dtype), ival, pItem->imin, pItem->imax); @@ -417,7 +424,9 @@ int32_t cfgCheckRangeForDynUpdate(SConfig *pCfg, const char *name, const char *p } } break; case CFG_DTYPE_INT64: { - int64_t ival = (int64_t)taosStrHumanToInt64(pVal); + int64_t ival; + int32_t code = taosStrHumanToInt64(pVal, &ival); + if (code != TSDB_CODE_SUCCESS) return code; if (ival < pItem->imin || ival > pItem->imax) { uError("cfg:%s, type:%s value:%" PRId64 " out of range[%" PRId64 ", %" PRId64 "]", pItem->name, cfgDtypeStr(pItem->dtype), ival, pItem->imin, pItem->imax); @@ -427,9 +436,11 @@ int32_t cfgCheckRangeForDynUpdate(SConfig *pCfg, const char *name, const char *p } break; case CFG_DTYPE_FLOAT: case CFG_DTYPE_DOUBLE: { - float fval = (float)atof(pVal); - if (fval < pItem->fmin || fval > pItem->fmax) { - uError("cfg:%s, type:%s value:%f out of range[%f, %f]", pItem->name, cfgDtypeStr(pItem->dtype), fval, + double dval; + int32_t code = parseCfgReal(pVal, &dval); + if (code != TSDB_CODE_SUCCESS) return code; + if (dval < pItem->fmin || dval > pItem->fmax) { + uError("cfg:%s, type:%s value:%f out of range[%f, %f]", pItem->name, cfgDtypeStr(pItem->dtype), dval, pItem->fmin, pItem->fmax); terrno = TSDB_CODE_OUT_OF_RANGE; return -1; diff --git a/source/util/src/terror.c b/source/util/src/terror.c index 8c9f2379b2..a07e8bb4c5 100644 --- a/source/util/src/terror.c +++ b/source/util/src/terror.c @@ -288,7 +288,7 @@ TAOS_DEFINE_ERROR(TSDB_CODE_MND_DNODE_IN_DROPPING, "Dnode in dropping sta // mnode-trans TAOS_DEFINE_ERROR(TSDB_CODE_MND_TRANS_ALREADY_EXIST, "Transaction already exists") TAOS_DEFINE_ERROR(TSDB_CODE_MND_TRANS_NOT_EXIST, "Transaction not exists") -TAOS_DEFINE_ERROR(TSDB_CODE_MND_TRANS_INVALID_STAGE, "Invalid stage to kill") +TAOS_DEFINE_ERROR(TSDB_CODE_MND_TRANS_INVALID_STAGE, "Invalid transaction stage") TAOS_DEFINE_ERROR(TSDB_CODE_MND_TRANS_CONFLICT, "Conflict transaction not completed") TAOS_DEFINE_ERROR(TSDB_CODE_MND_TRANS_CLOG_IS_NULL, "Transaction commitlog is null") TAOS_DEFINE_ERROR(TSDB_CODE_MND_TRANS_NETWORK_UNAVAILL, "Unable to establish connection While execute transaction and will continue in the background") diff --git a/source/util/src/tlog.c b/source/util/src/tlog.c index 16ca1b64c3..0c09174970 100644 --- a/source/util/src/tlog.c +++ b/source/util/src/tlog.c @@ -242,6 +242,7 @@ void taosCloseLog() { taosMemoryFreeClear(tsLogObj.logHandle->buffer); taosThreadMutexDestroy(&tsLogObj.logMutex); taosMemoryFreeClear(tsLogObj.logHandle); + tsLogObj.logHandle = NULL; } } @@ -285,8 +286,11 @@ static void taosKeepOldLog(char *oldName) { taosRemoveOldFiles(tsLogDir, tsLogKeepDays); } } - -static void *taosThreadToOpenNewFile(void *param) { +typedef struct { + TdFilePtr pOldFile; + char keepName[LOG_FILE_NAME_LEN + 20]; +} OldFileKeeper; +static OldFileKeeper *taosOpenNewFile() { char keepName[LOG_FILE_NAME_LEN + 20]; sprintf(keepName, "%s.%d", tsLogObj.logName, tsLogObj.flag); @@ -312,13 +316,26 @@ static void *taosThreadToOpenNewFile(void *param) { tsLogObj.logHandle->pFile = pFile; tsLogObj.lines = 0; tsLogObj.openInProgress = 0; - taosSsleep(20); - taosCloseLogByFd(pOldFile); + OldFileKeeper* oldFileKeeper = taosMemoryMalloc(sizeof(OldFileKeeper)); + if (oldFileKeeper == NULL) { + uError("create old log keep info faild! mem is not enough."); + return NULL; + } + oldFileKeeper->pOldFile = pOldFile; + memcpy(oldFileKeeper->keepName, keepName, LOG_FILE_NAME_LEN + 20); uInfo(" new log file:%d is opened", tsLogObj.flag); uInfo("=================================="); - taosKeepOldLog(keepName); + return oldFileKeeper; +} +static void *taosThreadToCloseOldFile(void* param) { + if(!param) return NULL; + OldFileKeeper* oldFileKeeper = (OldFileKeeper*)param; + taosSsleep(20); + taosCloseLogByFd(oldFileKeeper->pOldFile); + taosKeepOldLog(oldFileKeeper->keepName); + taosMemoryFree(oldFileKeeper); return NULL; } @@ -334,7 +351,8 @@ static int32_t taosOpenNewLogFile() { taosThreadAttrInit(&attr); taosThreadAttrSetDetachState(&attr, PTHREAD_CREATE_DETACHED); - taosThreadCreate(&thread, &attr, taosThreadToOpenNewFile, NULL); + OldFileKeeper* oldFileKeeper = taosOpenNewFile(); + taosThreadCreate(&thread, &attr, taosThreadToCloseOldFile, oldFileKeeper); taosThreadAttrDestroy(&attr); } @@ -347,10 +365,11 @@ void taosResetLog() { // force create a new log file tsLogObj.lines = tsNumOfLogLines + 10; - taosOpenNewLogFile(); - - uInfo("=================================="); - uInfo(" reset log file "); + if (tsLogObj.logHandle) { + taosOpenNewLogFile(); + uInfo("=================================="); + uInfo(" reset log file "); + } } static bool taosCheckFileIsOpen(char *logFileName) { diff --git a/source/util/src/tunit.c b/source/util/src/tunit.c index 378f23613a..09f59f1e40 100644 --- a/source/util/src/tunit.c +++ b/source/util/src/tunit.c @@ -23,45 +23,74 @@ #define UNIT_ONE_PEBIBYTE (UNIT_ONE_TEBIBYTE * UNIT_SIZE_CONVERT_FACTOR) #define UNIT_ONE_EXBIBYTE (UNIT_ONE_PEBIBYTE * UNIT_SIZE_CONVERT_FACTOR) -int64_t taosStrHumanToInt64(const char* str) { - size_t sLen = strlen(str); - if (sLen < 2) return atoll(str); - - int64_t val = 0; - - char* strNoUnit = NULL; - char unit = str[sLen - 1]; - if ((unit == 'P') || (unit == 'p')) { - strNoUnit = taosMemoryCalloc(sLen, 1); - memcpy(strNoUnit, str, sLen - 1); - - val = atof(strNoUnit) * UNIT_ONE_PEBIBYTE; - } else if ((unit == 'T') || (unit == 't')) { - strNoUnit = taosMemoryCalloc(sLen, 1); - memcpy(strNoUnit, str, sLen - 1); - - val = atof(strNoUnit) * UNIT_ONE_TEBIBYTE; - } else if ((unit == 'G') || (unit == 'g')) { - strNoUnit = taosMemoryCalloc(sLen, 1); - memcpy(strNoUnit, str, sLen - 1); - - val = atof(strNoUnit) * UNIT_ONE_GIBIBYTE; - } else if ((unit == 'M') || (unit == 'm')) { - strNoUnit = taosMemoryCalloc(sLen, 1); - memcpy(strNoUnit, str, sLen - 1); - - val = atof(strNoUnit) * UNIT_ONE_MEBIBYTE; - } else if ((unit == 'K') || (unit == 'k')) { - strNoUnit = taosMemoryCalloc(sLen, 1); - memcpy(strNoUnit, str, sLen - 1); - - val = atof(strNoUnit) * UNIT_ONE_KIBIBYTE; - } else { - val = atoll(str); +static int32_t parseCfgIntWithUnit(const char* str, double *res) { + double val, temp = INT64_MAX; + char* endPtr; + errno = 0; + val = taosStr2Int64(str, &endPtr, 0); + if (*endPtr == '.' || errno == ERANGE) { + errno = 0; + val = taosStr2Double(str, &endPtr); } + if (endPtr == str || errno == ERANGE || isnan(val)) { + terrno = TSDB_CODE_INVALID_CFG_VALUE; + return -1; + } + while (isspace((unsigned char)*endPtr)) endPtr++; + uint64_t factor = 1; + if (*endPtr != '\0') { + switch (*endPtr) { + case 'P': + case 'p': { + temp /= UNIT_ONE_PEBIBYTE; + factor = UNIT_ONE_PEBIBYTE; + } break; + case 'T': + case 't': { + temp /= UNIT_ONE_TEBIBYTE; + factor = UNIT_ONE_TEBIBYTE; + } break; + case 'G': + case 'g': { + temp /= UNIT_ONE_GIBIBYTE; + factor = UNIT_ONE_GIBIBYTE; + } break; + case 'M': + case 'm': { + temp /= UNIT_ONE_MEBIBYTE; + factor = UNIT_ONE_MEBIBYTE; + } break; + case 'K': + case 'k': { + temp /= UNIT_ONE_KIBIBYTE; + factor = UNIT_ONE_KIBIBYTE; + } break; + default: + terrno = TSDB_CODE_INVALID_CFG_VALUE; + return -1; + } + if ((val > 0 && val > temp) || (val < 0 && val < -temp)) { + terrno = TSDB_CODE_OUT_OF_RANGE; + return -1; + } + endPtr++; + val *= factor; + } + while (isspace((unsigned char)*endPtr)) endPtr++; + if (*endPtr) { + terrno = TSDB_CODE_INVALID_CFG_VALUE; + return -1; + } + val = rint(val); + *res = val; + return TSDB_CODE_SUCCESS; +} - taosMemoryFree(strNoUnit); - return val; +int32_t taosStrHumanToInt64(const char* str, int64_t *out) { + double res; + int32_t code = parseCfgIntWithUnit(str, &res); + if (code == TSDB_CODE_SUCCESS) *out = (int64_t)res; + return code; } #ifdef BUILD_NO_CALL @@ -83,35 +112,17 @@ void taosInt64ToHumanStr(int64_t val, char* outStr) { } #endif -int32_t taosStrHumanToInt32(const char* str) { - size_t sLen = strlen(str); - if (sLen < 2) return atoll(str); - - int32_t val = 0; - - char* strNoUnit = NULL; - char unit = str[sLen - 1]; - if ((unit == 'G') || (unit == 'g')) { - strNoUnit = taosMemoryCalloc(sLen, 1); - memcpy(strNoUnit, str, sLen - 1); - - val = atof(strNoUnit) * UNIT_ONE_GIBIBYTE; - } else if ((unit == 'M') || (unit == 'm')) { - strNoUnit = taosMemoryCalloc(sLen, 1); - memcpy(strNoUnit, str, sLen - 1); - - val = atof(strNoUnit) * UNIT_ONE_MEBIBYTE; - } else if ((unit == 'K') || (unit == 'k')) { - strNoUnit = taosMemoryCalloc(sLen, 1); - memcpy(strNoUnit, str, sLen - 1); - - val = atof(strNoUnit) * UNIT_ONE_KIBIBYTE; - } else { - val = atoll(str); +int32_t taosStrHumanToInt32(const char* str, int32_t* out) { + double res; + int32_t code = parseCfgIntWithUnit(str, &res); + if (code == TSDB_CODE_SUCCESS) { + if (res < INT32_MIN || res > INT32_MAX) { + terrno = TSDB_CODE_OUT_OF_RANGE; + return -1; + } + *out = (int32_t)res; } - - taosMemoryFree(strNoUnit); - return val; + return code; } #ifdef BUILD_NO_CALL diff --git a/source/util/src/tutil.c b/source/util/src/tutil.c index 6b6878ec83..f201edcb5e 100644 --- a/source/util/src/tutil.c +++ b/source/util/src/tutil.c @@ -496,3 +496,21 @@ size_t twcsncspn(const TdUcs4 *wcs, size_t size, const TdUcs4 *reject, size_t rs return index; } + +int32_t parseCfgReal(const char* str, double* out) { + double val; + char *endPtr; + errno = 0; + val = taosStr2Double(str, &endPtr); + if (str == endPtr || errno == ERANGE || isnan(val)) { + terrno = TSDB_CODE_INVALID_CFG_VALUE; + return -1; + } + while(isspace((unsigned char)*endPtr)) endPtr++; + if (*endPtr != '\0') { + terrno = TSDB_CODE_INVALID_CFG_VALUE; + return -1; + } + *out = val; + return TSDB_CODE_SUCCESS; +} diff --git a/tests/develop-test/2-query/pseudo_column.py b/tests/develop-test/2-query/pseudo_column.py index 1d94df4cff..61ea53433f 100644 --- a/tests/develop-test/2-query/pseudo_column.py +++ b/tests/develop-test/2-query/pseudo_column.py @@ -66,10 +66,10 @@ class TDTestCase: tdSql.query('select * from (select tbname, avg(f) from st partition by tbname) a partition by a.tbname order by a.tbname'); tdSql.checkRows(2) tdSql.checkCols(2) - tdSql.checkData(0, 0, 'ct1'); - tdSql.checkData(0, 1, 6.0); - tdSql.checkData(1, 0, 'ct2'); - tdSql.checkData(1, 1, 12.0); + tdSql.checkData(0, 0, 'ct1') + tdSql.checkData(0, 1, 6.0) + tdSql.checkData(1, 0, 'ct2') + tdSql.checkData(1, 1, 12.0) tdSql.error('select tbname from (select * from st)') tdSql.error('select st.tbname from (select st.tbname from st)') diff --git a/tests/script/tsim/parser/select_with_tags.sim b/tests/script/tsim/parser/select_with_tags.sim index 0e777de7e8..0cc8a7db8a 100644 --- a/tests/script/tsim/parser/select_with_tags.sim +++ b/tests/script/tsim/parser/select_with_tags.sim @@ -870,7 +870,7 @@ sql_error select stddev(c2), tbname from select_tags_mt0; sql_error select twa(c2), tbname from select_tags_mt0; sql_error select interp(c2), tbname from select_tags_mt0 where ts=100001; -sql_error select t1,t2,tbname from select_tags_mt0 group by tbname; + sql select count(tbname) from select_tags_mt0 interval(1d); sql select count(tbname) from select_tags_mt0 group by t1; sql select count(tbname),SUM(T1) from select_tags_mt0 interval(1d); @@ -888,16 +888,16 @@ sql_error select tbname, t1 from select_tags_mt0 interval(1y); print ==================================>TD-4231 sql select t1,tbname from select_tags_mt0 where c1<0 sql select t1,tbname from select_tags_mt0 where c1<0 and tbname in ('select_tags_tb12') - sql select tbname from select_tags_mt0 where tbname in ('select_tags_tb12'); -sql_error select first(c1), last(c2), t1 from select_tags_mt0 group by tbname; -sql_error select first(c1), last(c2), tbname, t2 from select_tags_mt0 group by tbname; -sql_error select first(c1), count(*), t2, t1, tbname from select_tags_mt0 group by tbname; -#valid sql: select first(c1), t2 from select_tags_mt0 group by tbname; +sql select first(ts), tbname from select_tags_mt0 group by tbname; +sql select count(c1) from select_tags_mt0 where c1=99 group by tbname; +sql select count(*),tbname from select_tags_mt0 group by tbname -#sql select first(ts), tbname from select_tags_mt0 group by tbname; -#sql select count(c1) from select_tags_mt0 where c1=99 group by tbname; -#sql select count(*),tbname from select_tags_mt0 group by tbname +print ==================================> tag supported in group +sql select t1,t2,tbname from select_tags_mt0 group by tbname; +sql select first(c1), last(c2), t1 from select_tags_mt0 group by tbname; +sql select first(c1), last(c2), tbname, t2 from select_tags_mt0 group by tbname; +sql select first(c1), count(*), t2, t1, tbname from select_tags_mt0 group by tbname; system sh/exec.sh -n dnode1 -s stop -x SIGINT diff --git a/tests/script/tsim/query/count_spread.sim b/tests/script/tsim/query/count_spread.sim index c03783b7fe..082b32d1fb 100644 --- a/tests/script/tsim/query/count_spread.sim +++ b/tests/script/tsim/query/count_spread.sim @@ -3,15 +3,24 @@ system sh/deploy.sh -n dnode1 -i 1 system sh/exec.sh -n dnode1 -s start sql connect -sql create database test; +sql create database test KEEP 36500; sql use test; sql create table st(ts timestamp, f int) tags(t int); -sql insert into ct1 using st tags(1) values(now, 0)(now+1s, 1)(now+2s, 10)(now+3s, 11) -sql insert into ct2 using st tags(2) values(now+2s, 2)(now+3s, 3) -sql insert into ct3 using st tags(3) values(now+4s, 4)(now+5s, 5) -sql insert into ct4 using st tags(4) values(now+6s, 6)(now+7s, 7) -sql select count(*), spread(ts) from st where tbname='ct1' +$ms = 1712135244502 +$ms1 = $ms + 1000 +$ms2 = $ms + 2000 +$ms3 = $ms + 3000 +$ms4 = $ms + 4000 +$ms5 = $ms + 5000 +$ms6 = $ms + 6000 +$ms7 = $ms + 7000 +sql insert into ct1 using st tags(1) values($ms , 0)($ms1 , 1)($ms2 , 10)($ms3 , 11) +sql insert into ct2 using st tags(2) values($ms2 , 2)($ms3 , 3) +sql insert into ct3 using st tags(3) values($ms4 , 4)($ms5 , 5) +sql insert into ct4 using st tags(4) values($ms6 , 6)($ms7 , 7) + +sql select count(*), spread(ts) from st where tbname='ct1' print $data00, $data01 if $data00 != @4@ then return -1 diff --git a/tests/script/tsim/stream/basic5.sim b/tests/script/tsim/stream/basic5.sim index 583c803e4e..f507ab7d3b 100644 --- a/tests/script/tsim/stream/basic5.sim +++ b/tests/script/tsim/stream/basic5.sim @@ -15,6 +15,8 @@ sql use test3; sql create table t1(ts timestamp, a int, b int , c int, d double); sql create stream streams3 trigger at_once ignore expired 0 ignore update 0 into streamt3 as select _wstart, count(*) c1 from t1 state_window(a); +sleep 1000 + sql insert into t1 values(1648791211000,1,2,3,1.0); sql insert into t1 values(1648791213000,2,2,3,1.1); sql insert into t1 values(1648791215000,3,2,3,1.1); @@ -214,4 +216,232 @@ if $data[29][1] != 2 then goto loop11 endi +print step2============= + +sql create database test4 vgroups 4; +sql use test4; +sql create stable st(ts timestamp,a int,b int,c int,d double) 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 streams4 trigger at_once ignore expired 0 ignore update 0 into streamt4 as select _wstart, first(a), b, c, ta, tb from st interval(1s); + +sleep 1000 + +sql insert into t1 values(1648791211000,1,2,3,1.0); +sql insert into t1 values(1648791213000,2,3,4,1.1); +sql insert into t2 values(1648791215000,3,4,5,1.1); +sql insert into t2 values(1648791217000,4,5,6,1.1); + +$loop_count = 0 + +loop12: + +sleep 200 + +$loop_count = $loop_count + 1 +if $loop_count == 10 then + return -1 +endi + +print 1 select * from streamt4 order by 1; +sql select * from streamt4 order by 1; + +if $rows != 4 then + print ======rows=$rows + goto loop12 +endi + +if $data02 != 2 then + print ======data02=$data02 + goto loop12 +endi + +if $data03 != 3 then + print ======data03=$data03 + goto loop12 +endi + +if $data04 != 1 then + print ======data04=$data04 + goto loop12 +endi + +if $data05 != 1 then + print ======data05=$data05 + goto loop12 +endi + + +if $data22 != 4 then + print ======data22=$data22 + goto loop12 +endi + +if $data23 != 5 then + print ======data23=$data23 + goto loop12 +endi + +if $data24 != 2 then + print ======data24=$data24 + goto loop12 +endi + +if $data25 != 2 then + print ======data25=$data25 + goto loop12 +endi + +print step3============= + +sql create database test5 vgroups 4; +sql use test5; +sql create stable st(ts timestamp,a int,b int,c int,d double) 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 streams5 trigger at_once ignore expired 0 ignore update 0 into streamt5 as select _wstart, b, c, ta, tb, max(b) from t1 interval(1s); + +sleep 1000 + +sql insert into t1 values(1648791211000,1,2,3,1.0); +sql insert into t1 values(1648791213000,2,3,4,1.1); +sql insert into t1 values(1648791215000,3,4,5,1.1); +sql insert into t1 values(1648791217000,4,5,6,1.1); + +$loop_count = 0 + +loop13: + +sleep 200 + +$loop_count = $loop_count + 1 +if $loop_count == 10 then + return -1 +endi + +print 1 select * from streamt5 order by 1; +sql select * from streamt5 order by 1; + +if $rows != 4 then + print ======rows=$rows + goto loop13 +endi + +if $data01 != 2 then + print ======data02=$data02 + goto loop13 +endi + +if $data02 != 3 then + print ======data03=$data03 + goto loop13 +endi + +if $data03 != 1 then + print ======data04=$data04 + goto loop13 +endi + +if $data04 != 1 then + print ======data05=$data05 + goto loop13 +endi + + +if $data21 != 4 then + print ======data22=$data22 + goto loop13 +endi + +if $data22 != 5 then + print ======data23=$data23 + goto loop13 +endi + +if $data23 != 1 then + print ======data24=$data24 + goto loop13 +endi + +if $data24 != 1 then + print ======data25=$data25 + goto loop13 +endi + +print step4============= + +sql create database test6 vgroups 4; +sql use test6; +sql create stable st(ts timestamp,a int,b int,c int,d double) 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 streams6 trigger at_once ignore expired 0 ignore update 0 into streamt6 as select _wstart, b, c,min(c), ta, tb from st interval(1s); + +sleep 1000 + +sql insert into t1 values(1648791211000,1,2,3,1.0); +sql insert into t1 values(1648791213000,2,3,4,1.1); +sql insert into t2 values(1648791215000,3,4,5,1.1); +sql insert into t2 values(1648791217000,4,5,6,1.1); + +$loop_count = 0 + +loop14: + +sleep 200 + +$loop_count = $loop_count + 1 +if $loop_count == 10 then + return -1 +endi + +print 1 select * from streamt6 order by 1; +sql select * from streamt6 order by 1; + +if $rows != 4 then + print ======rows=$rows + goto loop14 +endi + +if $data01 != 2 then + print ======data02=$data02 + goto loop14 +endi + +if $data02 != 3 then + print ======data03=$data03 + goto loop14 +endi + +if $data04 != 1 then + print ======data04=$data04 + goto loop14 +endi + +if $data05 != 1 then + print ======data05=$data05 + goto loop14 +endi + + +if $data21 != 4 then + print ======data22=$data22 + goto loop14 +endi + +if $data22 != 5 then + print ======data23=$data23 + goto loop14 +endi + +if $data24 != 2 then + print ======data24=$data24 + goto loop14 +endi + +if $data25 != 2 then + print ======data25=$data25 + goto loop14 +endi + system sh/exec.sh -n dnode1 -s stop -x SIGINT \ No newline at end of file diff --git a/tests/system-test/0-others/show.py b/tests/system-test/0-others/show.py index 75d7116e03..bc1239fae8 100644 --- a/tests/system-test/0-others/show.py +++ b/tests/system-test/0-others/show.py @@ -240,6 +240,49 @@ class TDTestCase: self.show_create_sysdb_sql() self.show_create_systb_sql() self.show_column_name() + self.test_show_variables() + + def get_variable(self, name: str, local: bool = True): + if local: + sql = 'show local variables' + else: + sql = f'select `value` from information_schema.ins_dnode_variables where name like "{name}"' + tdSql.query(sql, queryTimes=1) + res = tdSql.queryResult + if local: + for row in res: + if row[0] == name: + return row[1] + else: + if len(res) > 0: + return res[0][0] + raise Exception(f"variable {name} not found") + + def test_show_variables(self): + epsion = 0.0000001 + var = 'minimalTmpDirGB' + expect_val: float = 10.11 + sql = f'ALTER LOCAL "{var}" "{expect_val}"' + tdSql.execute(sql) + val: float = float(self.get_variable(var)) + if val != expect_val: + tdLog.exit(f'failed to set local {var} to {expect_val} actually {val}') + + error_vals = ['a', '10a', '', '1.100r', '1.12 r'] + for error_val in error_vals: + tdSql.error(f'ALTER LOCAL "{var}" "{error_val}"') + + var = 'supportVnodes' + expect_val = 1240 ## 1.211111 * 1024 + sql = f'ALTER DNODE 1 "{var}" "1.211111k"' + tdSql.execute(sql, queryTimes=1) + val = int(self.get_variable(var, False)) + if val != expect_val: + tdLog.exit(f'failed to set dnode {var} to {expect_val} actually {val}') + + error_vals = ['a', '10a', '', '1.100r', '1.12 r', '5k'] + for error_val in error_vals: + tdSql.error(f'ALTER DNODE 1 "{var}" "{error_val}"') def stop(self): tdSql.close() diff --git a/tests/system-test/2-query/cast.py b/tests/system-test/2-query/cast.py index ede1f28324..352395b830 100644 --- a/tests/system-test/2-query/cast.py +++ b/tests/system-test/2-query/cast.py @@ -79,6 +79,10 @@ class TDTestCase: tdSql.query(f"select cast(c1 as binary(32)) as b from {self.dbname}.t1") for i in range(len(data_t1_c1)): tdSql.checkData( i, 0, str(data_t1_c1[i]) ) + + tdSql.query(f"select cast(c1 as binary) as b from {self.dbname}.t1") + for i in range(len(data_t1_c1)): + tdSql.checkData( i, 0, str(data_t1_c1[i]) ) tdLog.printNoPrefix("==========step6: cast int to nchar, expect changes to str(int) ") @@ -130,6 +134,13 @@ class TDTestCase: tdSql.query(f"select cast(c2 as binary(32)) as b from {self.dbname}.t1") for i in range(len(data_t1_c2)): tdSql.checkData( i, 0, str(data_t1_c2[i]) ) + + tdSql.query(f"select cast(c2 as binary) as b from {self.dbname}.ct4") + for i in range(len(data_ct4_c2)): + tdSql.checkData( i, 0, str(data_ct4_c2[i]) ) + tdSql.query(f"select cast(c2 as binary) as b from {self.dbname}.t1") + for i in range(len(data_t1_c2)): + tdSql.checkData( i, 0, str(data_t1_c2[i]) ) tdLog.printNoPrefix("==========step10: cast bigint to nchar, expect changes to str(int) ") @@ -184,6 +195,13 @@ class TDTestCase: tdSql.query(f"select cast(c3 as binary(32)) as b from {self.dbname}.t1") for i in range(len(data_t1_c3)): tdSql.checkData( i, 0, str(data_t1_c3[i]) ) + + tdSql.query(f"select cast(c3 as binary) as b from {self.dbname}.ct4") + for i in range(len(data_ct4_c3)): + tdSql.checkData( i, 0, str(data_ct4_c3[i]) ) + tdSql.query(f"select cast(c3 as binary) as b from {self.dbname}.t1") + for i in range(len(data_t1_c3)): + tdSql.checkData( i, 0, str(data_t1_c3[i]) ) tdLog.printNoPrefix("==========step14: cast smallint to nchar, expect changes to str(int) ") @@ -235,6 +253,13 @@ class TDTestCase: tdSql.query(f"select cast(c4 as binary(32)) as b from {self.dbname}.t1") for i in range(len(data_t1_c4)): tdSql.checkData( i, 0, str(data_t1_c4[i]) ) + + tdSql.query(f"select cast(c4 as binary) as b from {self.dbname}.ct4") + for i in range(len(data_ct4_c4)): + tdSql.checkData( i, 0, str(data_ct4_c4[i]) ) + tdSql.query(f"select cast(c4 as binary) as b from {self.dbname}.t1") + for i in range(len(data_t1_c4)): + tdSql.checkData( i, 0, str(data_t1_c4[i]) ) tdLog.printNoPrefix("==========step18: cast tinyint to nchar, expect changes to str(int) ") @@ -282,6 +307,12 @@ class TDTestCase: for i in range(len(data_ct4_c5)): tdSql.checkData( i, 0, str(data_ct4_c5[i]) ) if data_ct4_c5[i] is None else tdSql.checkData( i, 0, f'{data_ct4_c5[i]:.6f}' ) tdSql.query(f"select cast(c5 as binary(32)) as b from {self.dbname}.t1") + for i in range(len(data_t1_c5)): + tdSql.checkData( i, 0, str(data_t1_c5[i]) ) if data_t1_c5[i] is None else tdSql.checkData( i, 0, f'{data_t1_c5[i]:.6f}' ) + tdSql.query(f"select cast(c5 as binary) as b from {self.dbname}.ct4") + for i in range(len(data_ct4_c5)): + tdSql.checkData( i, 0, str(data_ct4_c5[i]) ) if data_ct4_c5[i] is None else tdSql.checkData( i, 0, f'{data_ct4_c5[i]:.6f}' ) + tdSql.query(f"select cast(c5 as binary) as b from {self.dbname}.t1") for i in range(len(data_t1_c5)): tdSql.checkData( i, 0, str(data_t1_c5[i]) ) if data_t1_c5[i] is None else tdSql.checkData( i, 0, f'{data_t1_c5[i]:.6f}' ) @@ -290,6 +321,12 @@ class TDTestCase: for i in range(len(data_ct4_c5)): tdSql.checkData( i, 0, None ) if data_ct4_c5[i] is None else tdSql.checkData( i, 0, f'{data_ct4_c5[i]:.6f}' ) tdSql.query(f"select cast(c5 as nchar(32)) as b from {self.dbname}.t1") + for i in range(len(data_t1_c5)): + tdSql.checkData( i, 0, None ) if data_t1_c5[i] is None else tdSql.checkData( i, 0, f'{data_t1_c5[i]:.6f}' ) + tdSql.query(f"select cast(c5 as nchar) as b from {self.dbname}.t1") + for i in range(len(data_t1_c5)): + tdSql.checkData( i, 0, None ) if data_t1_c5[i] is None else tdSql.checkData( i, 0, f'{data_t1_c5[i]:.6f}' ) + tdSql.query(f"select cast(c5 as varchar) as b from {self.dbname}.t1") for i in range(len(data_t1_c5)): tdSql.checkData( i, 0, None ) if data_t1_c5[i] is None else tdSql.checkData( i, 0, f'{data_t1_c5[i]:.6f}' ) @@ -580,6 +617,10 @@ class TDTestCase: ( tdSql.checkData(i, 0, '12121.233231') for i in range(tdSql.queryRows) ) tdSql.query(f"select cast(12121.23323131 + 'test~!@`#$%^&*(){'}'}{'{'}][;><.,' as binary(2)) as b from {self.dbname}.ct4") ( tdSql.checkData(i, 0, '12') for i in range(tdSql.queryRows) ) + tdSql.query(f"select cast(12121.23323131 + 'test~!@`#$%^&*(){'}'}{'{'}][;><.,' as binary) as b from {self.dbname}.ct4") + ( tdSql.checkData(i, 0, '12121.233231') for i in range(tdSql.queryRows) ) + tdSql.query(f"select cast(12121.23323131 + 'test~!@`#$%^&*(){'}'}{'{'}][;><.,' as binary) as b from {self.dbname}.ct4") + ( tdSql.checkData(i, 0, '12') for i in range(tdSql.queryRows) ) tdSql.query(f"select cast(12121.23323131 + 'test~!@`#$%^&*(){'}'}{'{'}][;><.,' as nchar(16)) as b from {self.dbname}.ct4") ( tdSql.checkData(i, 0, '12121.233231') for i in range(tdSql.queryRows) ) tdSql.query(f"select cast(12121.23323131 + 'test~!@`#$%^&*(){'}'}{'{'}][;><.,' as nchar(2)) as b from {self.dbname}.ct4") diff --git a/tests/system-test/2-query/count.py b/tests/system-test/2-query/count.py index c06ee28d02..6d34dde791 100644 --- a/tests/system-test/2-query/count.py +++ b/tests/system-test/2-query/count.py @@ -103,6 +103,10 @@ class TDTestCase: tdSql.checkRows(row) tdSql.query(f'select {function_name}(c1),sum(c1) from {self.stbname} partition by tbname') tdSql.checkRows(row) + tdSql.query(f'select t0, {function_name}(c1),sum(c1) from {self.stbname} partition by tbname') + tdSql.checkRows(row) + tdSql.query(f'select cast(t0 as binary(12)), {function_name}(c1),sum(c1) from {self.stbname} partition by tbname') + tdSql.checkRows(row) tdSql.query(f'select {function_name}(c1),sum(c1) from {self.stbname} partition by c1') tdSql.checkRows(0) tdSql.query(f'select {function_name}(c1),sum(c1) from {self.stbname} partition by t0') diff --git a/tests/system-test/2-query/csum.py b/tests/system-test/2-query/csum.py index b16f511491..e3ac529d5e 100644 --- a/tests/system-test/2-query/csum.py +++ b/tests/system-test/2-query/csum.py @@ -470,7 +470,9 @@ class TDTestCase: tdSql.checkRows(40) # bug need fix - tdSql.query("select tbname , csum(c1), csum(c12) from db.stb1 partition by tbname") + tdSql.query("select tbname , st1, csum(c1), csum(c12) from db.stb1 partition by tbname") + tdSql.checkRows(40) + tdSql.query("select tbname , cast(st1 as binary(24)), csum(c1), csum(c12) from db.stb1 partition by tbname") tdSql.checkRows(40) tdSql.query("select tbname , csum(st1) from db.stb1 partition by tbname") tdSql.checkRows(70) diff --git a/tests/system-test/2-query/group_partition.py b/tests/system-test/2-query/group_partition.py index 36e3afd3ca..4b236c1bce 100644 --- a/tests/system-test/2-query/group_partition.py +++ b/tests/system-test/2-query/group_partition.py @@ -91,15 +91,71 @@ class TDTestCase: tdSql.query(f"select t2, t3, c1, count(*) from {self.dbname}.{self.stable} {keyword} by t2, t3, c1 ") tdSql.checkRows(nonempty_tb_num * self.row_nums) + def test_groupby_sub_table(self): + for i in range(self.tb_nums): + tbname = f"{self.dbname}.sub_{self.stable}_{i}" + ts = self.ts + i*10000 + tdSql.query(f"select t1, t2, t3,count(*) from {tbname}") + tdSql.checkRows(1) + tdSql.checkData(0, 1, i) + tdSql.checkData(0, 2, i*10) + + tdSql.query(f"select cast(t2 as binary(12)),count(*) from {tbname}") + tdSql.checkRows(1) + tdSql.checkData(0, 0, i) + + tdSql.query(f"select t2 + 1, count(*) from {tbname}") + tdSql.checkRows(1) + tdSql.checkData(0, 0, i + 1) + + tdSql.query(f"select t1, t2, t3, count(*) from {tbname} group by tbname") + tdSql.checkRows(1) + tdSql.checkData(0, 1, i) + tdSql.checkData(0, 2, i*10) + + tdSql.query(f"select t1, t2, t3, count(*) from {tbname} group by tbname, c1, t4") + tdSql.checkData(0, 1, i) + tdSql.checkData(0, 2, i*10) + + tdSql.query(f"select t1, t2, t3, count(*) from {tbname} partition by tbname") + tdSql.checkRows(1) + tdSql.checkData(0, 1, i) + tdSql.checkData(0, 2, i*10) + + tdSql.query(f"select t1, t2, t3, count(*) from {tbname} partition by c1, tbname") + tdSql.checkData(0, 1, i) + tdSql.checkData(0, 2, i*10) + + tdSql.query(f"select t1, t2, t3, count(*) from {self.dbname}.{self.stable} partition by c1, tbname order by tbname desc") + tdSql.checkRows(50) + tdSql.checkData(0, 1, 4) + tdSql.checkData(0, 2, 40) + def test_multi_group_key(self, check_num, nonempty_tb_num): # multi tag/tbname tdSql.query(f"select t2, t3, tbname, count(*) from {self.dbname}.{self.stable} group by t2, t3, tbname") tdSql.checkRows(check_num) + tdSql.query(f"select cast(t2 as binary(12)), count(*) from {self.dbname}.{self.stable} group by t2, t3, tbname") + tdSql.checkRows(check_num) + tdSql.query(f"select t2, t3, tbname, count(*) from {self.dbname}.{self.stable} partition by t2, t3, tbname") tdSql.checkRows(check_num) + tdSql.query(f"select t2, t3, tbname, count(*) from {self.dbname}.{self.stable} group by tbname order by tbname asc") + tdSql.checkRows(check_num) + tdSql.checkData(0, 0, 0) + tdSql.checkData(1, 0, 1) + tdSql.checkData(2, 1, 20) + tdSql.checkData(3, 1, 30) + + tdSql.query(f"select t2, t3, tbname, count(*) from {self.dbname}.{self.stable} partition by tbname order by tbname asc") + tdSql.checkRows(check_num) + tdSql.checkData(0, 0, 0) + tdSql.checkData(2, 1, 20) + tdSql.checkData(3, 1, 30) + # multi tag + col tdSql.query(f"select t1, t2, c1, count(*) from {self.dbname}.{self.stable} partition by t1, t2, c1 ") tdSql.checkRows(nonempty_tb_num * self.row_nums) @@ -222,12 +278,14 @@ class TDTestCase: self.test_groupby('group', self.tb_nums, nonempty_tb_num) self.test_groupby('partition', self.tb_nums, nonempty_tb_num) + self.test_groupby_sub_table() self.test_innerSelect(self.tb_nums) self.test_multi_group_key(self.tb_nums, nonempty_tb_num) self.test_multi_agg(self.tb_nums, nonempty_tb_num) self.test_window(nonempty_tb_num) self.test_event_window(nonempty_tb_num) + ## test old version before changed # self.test_groupby('group', 0, 0) # self.insert_db(5, self.row_nums) diff --git a/tests/system-test/2-query/multi_res_function.py b/tests/system-test/2-query/multi_res_function.py new file mode 100644 index 0000000000..89038e5c08 --- /dev/null +++ b/tests/system-test/2-query/multi_res_function.py @@ -0,0 +1,130 @@ +################################################################### +# Copyright (c) 2016 by TAOS Technologies, Inc. +# All rights reserved. +# +# This file is proprietary and confidential to TAOS Technologies. +# No part of this file may be reproduced, stored, transmitted, +# disclosed or used in any form or by any means other than as +# expressly provided by the written permission from Jianhui Tao +# +################################################################### + +# -*- coding: utf-8 -*- + +import random +import string +import sys +import taos +from util.common import * +from util.log import * +from util.cases import * +from util.sql import * +import numpy as np + + +class TDTestCase: + def init(self, conn, logSql, replicaVar=1): + self.replicaVar = int(replicaVar) + tdLog.debug("start to execute %s" % __file__) + tdSql.init(conn.cursor()) + + self.rowNum = 10 + self.tbnum = 20 + self.ts = 1537146000000 + self.binary_str = 'taosdata' + self.nchar_str = '涛思数据' + + def first_check_base(self): + dbname = "db" + tdSql.prepare(dbname) + column_dict = { + 'col1': 'tinyint', + 'col2': 'smallint', + 'col3': 'int', + 'col4': 'bigint', + 'col5': 'tinyint unsigned', + 'col6': 'smallint unsigned', + 'col7': 'int unsigned', + 'col8': 'bigint unsigned', + 'col9': 'float', + 'col10': 'double', + 'col11': 'bool', + 'col12': 'binary(20)', + 'col13': 'nchar(20)' + } + tdSql.execute(f"alter local \'keepColumnName\' \'1\'") + tdSql.execute(f'''create table {dbname}.stb(ts timestamp, col1 tinyint, col2 smallint, col3 int, col4 bigint, col5 tinyint unsigned, col6 smallint unsigned, + col7 int unsigned, col8 bigint unsigned, col9 float, col10 double, col11 bool, col12 binary(20), col13 nchar(20)) tags(loc nchar(20))''') + tdSql.execute(f"create table {dbname}.stb_1 using {dbname}.stb tags('beijing')") + tdSql.execute(f"create table {dbname}.stb_2 using {dbname}.stb tags('beijing')") + + column_list = ['col1','col2','col3','col4','col5','col6','col7','col8','col9','col10','col11','col12','col13'] + for i in column_list: + for j in ['stb_1']: + tdSql.query(f"select first({i}) from {dbname}.{j}") + tdSql.checkRows(0) + for n in range(self.rowNum): + i = n + tdSql.execute(f"insert into {dbname}.stb_1 values(%d, %d, %d, %d, %d, %d, %d, %d, %d, %f, %f, %d, '{self.binary_str}%d', '{self.nchar_str}%d')" + % (self.ts + i, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1, i + 0.1, i + 0.1, i % 2, i + 1, i + 1)) + + for n in range(self.rowNum): + i = n + 10 + tdSql.execute(f"insert into {dbname}.stb_1 values(%d, %d, %d, %d, %d, %d, %d, %d, %d, %f, %f, %d, '{self.binary_str}%d', '{self.nchar_str}%d')" + % (self.ts + i, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1, i + 0.1, i + 0.1, i % 2, i + 1, i + 1)) + + for n in range(self.rowNum): + i = n + 100 + tdSql.execute(f"insert into {dbname}.stb_2 values(%d, %d, %d, %d, %d, %d, %d, %d, %d, %f, %f, %d, '{self.binary_str}%d', '{self.nchar_str}%d')" + % (self.ts + i, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1, i + 1, i + 0.1, i + 0.1, i % 2, i + 1, i + 1)) + + for k, v in column_dict.items(): + + if v == 'tinyint' or v == 'smallint' or v == 'int' or v == 'bigint' or v == 'tinyint unsigned' or v == 'smallint unsigned'\ + or v == 'int unsigned' or v == 'bigint unsigned': + tdSql.query(f"select last({k})-first({k}) from {dbname}.stb") + tdSql.checkData(0, 0, 109) + tdSql.query(f"select first({k})+last({k}) from {dbname}.stb") + tdSql.checkData(0, 0, 111) + tdSql.query(f"select max({k})-first({k}) from {dbname}.stb") + tdSql.checkData(0, 0, 109) + tdSql.query(f"select max({k})-min({k}) from {dbname}.stb") + tdSql.checkData(0, 0, 109) + + tdSql.query(f"select last({k})-first({k}) from {dbname}.stb_1") + tdSql.checkData(0, 0, 19) + tdSql.query(f"select first({k})+last({k}) from {dbname}.stb_1") + tdSql.checkData(0, 0, 21) + tdSql.query(f"select max({k})-first({k}) from {dbname}.stb_1") + tdSql.checkData(0, 0, 19) + tdSql.query(f"select max({k})-min({k}) from {dbname}.stb_1") + tdSql.checkData(0, 0, 19) + + # float,double + elif v == 'float' or v == 'double': + tdSql.query(f"select first({k})+last({k}) from {dbname}.stb") + tdSql.checkData(0, 0, 109.2) + tdSql.query(f"select first({k})+last({k}) from {dbname}.stb_1") + tdSql.checkData(0, 0, 19.2) + # bool + elif v == 'bool': + continue + # binary + elif 'binary' in v: + continue + # nchar + elif 'nchar' in v: + continue + + #tdSql.execute(f'drop database {dbname}') + + def run(self): + self.first_check_base() + + + def stop(self): + tdSql.close() + tdLog.success("%s successfully executed" % __file__) + +tdCases.addWindows(__file__, TDTestCase()) +tdCases.addLinux(__file__, TDTestCase())