diff --git a/include/common/tdataformat.h b/include/common/tdataformat.h index 6c8a39caf6..3f3ec30569 100644 --- a/include/common/tdataformat.h +++ b/include/common/tdataformat.h @@ -126,7 +126,7 @@ int32_t tRowMerge(SArray *aRowP, STSchema *pTSchema, int8_t flag); int32_t tRowUpsertColData(SRow *pRow, STSchema *pTSchema, SColData *aColData, int32_t nColData, int32_t flag); void tRowGetKey(SRow *pRow, SRowKey *key); int32_t tRowKeyCompare(const void *p1, const void *p2); -int32_t tRowKeyAssign(SRowKey* pDst, SRowKey* pSrc); +int32_t tRowKeyAssign(SRowKey *pDst, SRowKey *pSrc); // SRowIter ================================ int32_t tRowIterOpen(SRow *pRow, STSchema *pTSchema, SRowIter **ppIter); @@ -174,6 +174,7 @@ int32_t tColDataUpdateValue(SColData *pColData, SColVal *pColVal, bool forward); void tColDataGetValue(SColData *pColData, int32_t iVal, SColVal *pColVal); uint8_t tColDataGetBitValue(const SColData *pColData, int32_t iVal); int32_t tColDataCopy(SColData *pColDataFrom, SColData *pColData, xMallocFn xMalloc, void *arg); +void tColDataArrGetRowKey(SColData *aColData, int32_t nColData, int32_t iRow, SRowKey *key); extern void (*tColDataCalcSMA[])(SColData *pColData, int64_t *sum, int64_t *max, int64_t *min, int16_t *numOfNull); @@ -188,8 +189,8 @@ void tColDataSortMerge(SArray *colDataArr); int32_t tColDataAddValueByDataBlock(SColData *pColData, int8_t type, int32_t bytes, int32_t nRows, char *lengthOrbitmap, char *data); // for encode/decode -int32_t tPutColData(uint8_t *pBuf, SColData *pColData); -int32_t tGetColData(uint8_t *pBuf, SColData *pColData); +int32_t tPutColData(uint8_t version, uint8_t *pBuf, SColData *pColData); +int32_t tGetColData(uint8_t version, uint8_t *pBuf, SColData *pColData); // STRUCT ================================ struct STColumn { diff --git a/include/common/tmsg.h b/include/common/tmsg.h index 1be5abbf76..33e77aee2b 100644 --- a/include/common/tmsg.h +++ b/include/common/tmsg.h @@ -4037,6 +4037,7 @@ int32_t tDeserializeSMqSeekReq(void* buf, int32_t bufLen, SMqSeekReq* pReq); #define SUBMIT_REQ_COLUMN_DATA_FORMAT 0x2 #define SUBMIT_REQ_FROM_FILE 0x4 #define TD_REQ_FROM_TAOX 0x8 +#define SUBMIT_REQUEST_VERSION (1) #define TD_REQ_FROM_TAOX_OLD 0x1 // for compatibility diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index 145afa232b..287b283390 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -16,7 +16,6 @@ #ifndef _TD_COMMON_TOKEN_H_ #define _TD_COMMON_TOKEN_H_ - #define TK_OR 1 #define TK_AND 2 #define TK_UNION 3 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/tdataformat.c b/source/common/src/tdataformat.c index 1585c12ac1..f13a0a0825 100644 --- a/source/common/src/tdataformat.c +++ b/source/common/src/tdataformat.c @@ -3111,7 +3111,7 @@ static int32_t tColDataCopyRowAppend(SColData *aFromColData, int32_t iFromRow, S return code; } -static FORCE_INLINE void tColDataArrGetRowKey(SColData *aColData, int32_t nColData, int32_t iRow, SRowKey *key) { +void tColDataArrGetRowKey(SColData *aColData, int32_t nColData, int32_t iRow, SRowKey *key) { SColVal cv; key->ts = ((TSKEY *)aColData[0].pData)[iRow]; @@ -3490,7 +3490,7 @@ _exit: return; } -int32_t tPutColData(uint8_t *pBuf, SColData *pColData) { +static int32_t tPutColDataVersion0(uint8_t *pBuf, SColData *pColData) { int32_t n = 0; n += tPutI16v(pBuf ? pBuf + n : NULL, pColData->cid); @@ -3532,7 +3532,7 @@ int32_t tPutColData(uint8_t *pBuf, SColData *pColData) { return n; } -int32_t tGetColData(uint8_t *pBuf, SColData *pColData) { +static int32_t tGetColDataVersion0(uint8_t *pBuf, SColData *pColData) { int32_t n = 0; n += tGetI16v(pBuf + n, &pColData->cid); @@ -3571,10 +3571,45 @@ int32_t tGetColData(uint8_t *pBuf, SColData *pColData) { n += pColData->nData; } } + pColData->cflag = 0; return n; } +static int32_t tPutColDataVersion1(uint8_t *pBuf, SColData *pColData) { + int32_t n = tPutColDataVersion0(pBuf, pColData); + n += tPutI8(pBuf ? pBuf + n : NULL, pColData->cflag); + return n; +} + +static int32_t tGetColDataVersion1(uint8_t *pBuf, SColData *pColData) { + int32_t n = tGetColDataVersion0(pBuf, pColData); + n += tGetI8(pBuf ? pBuf + n : NULL, &pColData->cflag); + return n; +} + +int32_t tPutColData(uint8_t version, uint8_t *pBuf, SColData *pColData) { + if (version == 0) { + return tPutColDataVersion0(pBuf, pColData); + } else if (version == 1) { + return tPutColDataVersion1(pBuf, pColData); + } else { + ASSERT(0); + return -1; + } +} + +int32_t tGetColData(uint8_t version, uint8_t *pBuf, SColData *pColData) { + if (version == 0) { + return tGetColDataVersion0(pBuf, pColData); + } else if (version == 1) { + return tGetColDataVersion1(pBuf, pColData); + } else { + ASSERT(0); + return -1; + } +} + #define CALC_SUM_MAX_MIN(SUM, MAX, MIN, VAL) \ do { \ (SUM) += (VAL); \ diff --git a/source/common/src/tmsg.c b/source/common/src/tmsg.c index 3fd8d53885..e4c6c9494a 100644 --- a/source/common/src/tmsg.c +++ b/source/common/src/tmsg.c @@ -9074,7 +9074,8 @@ int32_t tDecodeSBatchDeleteReqSetCtime(SDecoder *pDecoder, SBatchDeleteReq *pReq static int32_t tEncodeSSubmitTbData(SEncoder *pCoder, const SSubmitTbData *pSubmitTbData) { if (tStartEncode(pCoder) < 0) return -1; - if (tEncodeI32v(pCoder, pSubmitTbData->flags) < 0) return -1; + int32_t flags = pSubmitTbData->flags | ((SUBMIT_REQUEST_VERSION) << 8); + if (tEncodeI32v(pCoder, flags) < 0) return -1; // auto create table if (pSubmitTbData->flags & SUBMIT_REQ_AUTO_CREATE_TABLE) { @@ -9094,7 +9095,8 @@ static int32_t tEncodeSSubmitTbData(SEncoder *pCoder, const SSubmitTbData *pSubm if (tEncodeU64v(pCoder, nColData) < 0) return -1; for (uint64_t i = 0; i < nColData; i++) { - pCoder->pos += tPutColData(pCoder->data ? pCoder->data + pCoder->pos : NULL, &aColData[i]); + pCoder->pos += + tPutColData(SUBMIT_REQUEST_VERSION, pCoder->data ? pCoder->data + pCoder->pos : NULL, &aColData[i]); } } else { if (tEncodeU64v(pCoder, TARRAY_SIZE(pSubmitTbData->aRowP)) < 0) return -1; @@ -9113,13 +9115,18 @@ static int32_t tEncodeSSubmitTbData(SEncoder *pCoder, const SSubmitTbData *pSubm static int32_t tDecodeSSubmitTbData(SDecoder *pCoder, SSubmitTbData *pSubmitTbData) { int32_t code = 0; + int32_t flags; + uint8_t version; if (tStartDecode(pCoder) < 0) { code = TSDB_CODE_INVALID_MSG; goto _exit; } - if (tDecodeI32v(pCoder, &pSubmitTbData->flags) < 0) return -1; + if (tDecodeI32v(pCoder, &flags) < 0) return -1; + + pSubmitTbData->flags = flags & 0xff; + version = (flags >> 8) & 0xff; if (pSubmitTbData->flags & SUBMIT_REQ_AUTO_CREATE_TABLE) { pSubmitTbData->pCreateTbReq = taosMemoryCalloc(1, sizeof(SVCreateTbReq)); @@ -9163,7 +9170,7 @@ static int32_t tDecodeSSubmitTbData(SDecoder *pCoder, SSubmitTbData *pSubmitTbDa } for (int32_t i = 0; i < nColData; ++i) { - pCoder->pos += tGetColData(pCoder->data + pCoder->pos, taosArrayReserve(pSubmitTbData->aCol, 1)); + pCoder->pos += tGetColData(version, pCoder->data + pCoder->pos, taosArrayReserve(pSubmitTbData->aCol, 1)); } } else { uint64_t nRow; diff --git a/source/dnode/mnode/impl/src/mndMain.c b/source/dnode/mnode/impl/src/mndMain.c index ee7cd83a8c..76a9d804e6 100644 --- a/source/dnode/mnode/impl/src/mndMain.c +++ b/source/dnode/mnode/impl/src/mndMain.c @@ -822,7 +822,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/vnode/src/tq/tq.c b/source/dnode/vnode/src/tq/tq.c index 3a321fef79..b7882b547c 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/vnd/vnodeSvr.c b/source/dnode/vnode/src/vnd/vnodeSvr.c index a4af782ad7..fae28ca32c 100644 --- a/source/dnode/vnode/src/vnd/vnodeSvr.c +++ b/source/dnode/vnode/src/vnd/vnodeSvr.c @@ -240,10 +240,13 @@ static int32_t vnodePreProcessSubmitTbData(SVnode *pVnode, SDecoder *pCoder, int } SSubmitTbData submitTbData; + uint8_t version; if (tDecodeI32v(pCoder, &submitTbData.flags) < 0) { code = TSDB_CODE_INVALID_MSG; TSDB_CHECK_CODE(code, lino, _exit); } + version = (submitTbData.flags >> 8) & 0xff; + submitTbData.flags = submitTbData.flags & 0xff; if (submitTbData.flags & SUBMIT_REQ_FROM_FILE) { code = grantCheck(TSDB_GRANT_CSV); @@ -307,7 +310,7 @@ static int32_t vnodePreProcessSubmitTbData(SVnode *pVnode, SDecoder *pCoder, int } SColData colData = {0}; - pCoder->pos += tGetColData(pCoder->data + pCoder->pos, &colData); + pCoder->pos += tGetColData(version, pCoder->data + pCoder->pos, &colData); if (colData.flag != HAS_VALUE) { code = TSDB_CODE_INVALID_MSG; goto _exit; @@ -321,7 +324,7 @@ static int32_t vnodePreProcessSubmitTbData(SVnode *pVnode, SDecoder *pCoder, int } for (uint64_t i = 1; i < nColData; i++) { - pCoder->pos += tGetColData(pCoder->data + pCoder->pos, &colData); + pCoder->pos += tGetColData(version, pCoder->data + pCoder->pos, &colData); } } else { uint64_t nRow; @@ -1572,17 +1575,18 @@ static int32_t vnodeProcessSubmitReq(SVnode *pVnode, int64_t ver, void *pReq, in goto _exit; } - SColData *pColData = (SColData *)taosArrayGet(pSubmitTbData->aCol, 0); - TSKEY *aKey = (TSKEY *)(pColData->pData); - - for (int32_t iRow = 0; iRow < pColData->nVal; iRow++) { - if (aKey[iRow] < minKey || aKey[iRow] > maxKey || (iRow > 0 && aKey[iRow] <= aKey[iRow - 1])) { + SColData *colDataArr = TARRAY_DATA(pSubmitTbData->aCol); + SRowKey lastKey; + tColDataArrGetRowKey(colDataArr, TARRAY_SIZE(pSubmitTbData->aCol), 0, &lastKey); + for (int32_t iRow = 1; iRow < colDataArr[0].nVal; iRow++) { + SRowKey key; + tColDataArrGetRowKey(TARRAY_DATA(pSubmitTbData->aCol), TARRAY_SIZE(pSubmitTbData->aCol), iRow, &key); + if (tRowKeyCompare(&lastKey, &key) >= 0) { code = TSDB_CODE_INVALID_MSG; vError("vgId:%d %s failed since %s, version:%" PRId64, TD_VID(pVnode), __func__, tstrerror(terrno), ver); goto _exit; } } - } else { int32_t nRow = TARRAY_SIZE(pSubmitTbData->aRowP); SRow **aRow = (SRow **)TARRAY_DATA(pSubmitTbData->aRowP); diff --git a/source/libs/executor/src/executil.c b/source/libs/executor/src/executil.c index c46b45c4ea..4f055cb928 100644 --- a/source/libs/executor/src/executil.c +++ b/source/libs/executor/src/executil.c @@ -2168,6 +2168,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 38fedd53d2..28b912ffee 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 2476449383..df992d1b55 100644 --- a/source/libs/function/src/builtins.c +++ b/source/libs/function/src/builtins.c @@ -2018,9 +2018,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 b88e1474d7..6be95b786b 100644 --- a/source/libs/function/src/builtinsimpl.c +++ b/source/libs/function/src/builtinsimpl.c @@ -3598,15 +3598,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 2c60c1261b..e7b40b00cf 100755 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -416,6 +416,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; } @@ -1122,6 +1129,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 eee0eba78b..85f3c9c444 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1602,7 +1602,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 bbcd27bd65..a1c257022a 100644 --- a/source/libs/parser/src/parInsertSql.c +++ b/source/libs/parser/src/parInsertSql.c @@ -1576,11 +1576,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 59ce465c08..732920a3ce 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2116,7 +2116,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; } @@ -2708,6 +2707,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; @@ -2719,15 +2741,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)) { @@ -2791,11 +2823,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; } @@ -3966,24 +4006,13 @@ 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)) { - return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_STREAM_QUERY, - "State window for stream on super table must patitioned by table name"); + !hasTbnameFunction(pSelect->pPartitionByList)) { + return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_STREAM_QUERY, "Unsupported stream query"); } if ((SRealTableNode*)pSelect->pFromTable && hasPkInTable(((SRealTableNode*)pSelect->pFromTable)->pMeta)) { return generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_STREAM_QUERY, @@ -7679,12 +7708,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) { @@ -7989,7 +8018,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"); @@ -8024,7 +8053,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"); } @@ -8161,6 +8190,7 @@ static int32_t adjustOrderOfProjections(STranslateContext* pCxt, SNodeList** ppC } int32_t code = TSDB_CODE_SUCCESS; + bool hasTsKey = false; bool hasPrimaryKey = false; SNode* pCol = NULL; SNode* pProj = NULL; @@ -8176,13 +8206,22 @@ static int32_t adjustOrderOfProjections(STranslateContext* pCxt, SNodeList** ppC break; } if (PRIMARYKEY_TIMESTAMP_COL_ID == pSchema->colId) { + hasTsKey = true; + } + + if (pSchema->flags & COL_IS_KEY) { hasPrimaryKey = true; } } - if (TSDB_CODE_SUCCESS == code && !hasPrimaryKey) { + if (TSDB_CODE_SUCCESS == code && !hasTsKey) { code = generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_COLUMNS_NUM, - "primary timestamp column can not be null"); + "Primary timestamp column of dest table can not be null"); + } + + if (TSDB_CODE_SUCCESS == code && !hasPrimaryKey && hasPkInTable(pMeta)) { + code = generateSyntaxErrMsgExt(&pCxt->msgBuf, TSDB_CODE_PAR_INVALID_COLUMNS_NUM, + "Primary key column of dest table can not be null"); } SNodeList* pNewProjections = NULL; diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index 2c1826a3ff..5b242d2224 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -25,6 +25,8 @@ ** input grammar file: */ /************ Begin %include sections from the grammar ************************/ +#line 11 "sql.y" + #include #include #include @@ -40,6 +42,7 @@ #include "parAst.h" #define YYSTACKDEPTH 0 +#line 46 "sql.c" /**************** End of %include directives **********************************/ /* These constants specify the various numeric values for terminal symbols. ***************** Begin token definitions *************************************/ @@ -457,29 +460,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 @@ -495,18 +498,18 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 895 -#define YYNRULE 696 -#define YYNRULE_WITH_ACTION 696 +#define YYNSTATE 900 +#define YYNRULE 701 +#define YYNRULE_WITH_ACTION 701 #define YYNTOKEN 355 -#define YY_MAX_SHIFT 894 -#define YY_MIN_SHIFTREDUCE 1330 -#define YY_MAX_SHIFTREDUCE 2025 -#define YY_ERROR_ACTION 2026 -#define YY_ACCEPT_ACTION 2027 -#define YY_NO_ACTION 2028 -#define YY_MIN_REDUCE 2029 -#define YY_MAX_REDUCE 2724 +#define YY_MAX_SHIFT 899 +#define YY_MIN_SHIFTREDUCE 1336 +#define YY_MAX_SHIFTREDUCE 2036 +#define YY_ERROR_ACTION 2037 +#define YY_ACCEPT_ACTION 2038 +#define YY_NO_ACTION 2039 +#define YY_MIN_REDUCE 2040 +#define YY_MAX_REDUCE 2740 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -573,646 +576,660 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (3107) +#define YY_ACTTAB_COUNT (3248) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 825, 505, 37, 311, 744, 605, 504, 2695, 606, 2072, - /* 10 */ 2359, 459, 47, 45, 1947, 2482, 2208, 186, 457, 166, - /* 20 */ 440, 2030, 1787, 756, 147, 743, 205, 2221, 2357, 781, - /* 30 */ 2696, 745, 2308, 2210, 1812, 1873, 2115, 1785, 610, 411, - /* 40 */ 2359, 2339, 128, 2523, 607, 127, 126, 125, 124, 123, - /* 50 */ 122, 121, 120, 119, 715, 443, 759, 2695, 2356, 781, - /* 60 */ 1813, 1377, 40, 39, 739, 1868, 46, 44, 43, 42, - /* 70 */ 41, 19, 446, 426, 2406, 2701, 205, 738, 1793, 793, - /* 80 */ 2696, 745, 2273, 798, 2541, 1375, 1376, 40, 39, 409, - /* 90 */ 446, 46, 44, 43, 42, 41, 2489, 2271, 776, 613, - /* 100 */ 694, 798, 606, 2072, 891, 2541, 175, 15, 793, 866, - /* 110 */ 865, 864, 863, 468, 2158, 862, 861, 152, 856, 855, - /* 120 */ 854, 853, 852, 851, 850, 151, 844, 843, 842, 467, - /* 130 */ 466, 839, 838, 837, 185, 184, 836, 303, 2622, 755, - /* 140 */ 2522, 139, 754, 2560, 2695, 1875, 1876, 115, 2524, 780, - /* 150 */ 2526, 2527, 775, 174, 798, 2407, 444, 2483, 365, 188, - /* 160 */ 161, 2614, 743, 205, 173, 436, 2610, 2696, 745, 602, - /* 170 */ 737, 744, 2221, 62, 2695, 363, 75, 698, 600, 74, - /* 180 */ 207, 596, 592, 1847, 1857, 1570, 1571, 1991, 2644, 392, - /* 190 */ 1874, 1877, 743, 205, 1370, 50, 548, 2696, 745, 489, - /* 200 */ 547, 238, 587, 585, 582, 1788, 461, 1786, 546, 2266, - /* 210 */ 2268, 40, 39, 1377, 446, 46, 44, 43, 42, 41, - /* 220 */ 176, 699, 2041, 128, 2699, 798, 127, 126, 125, 124, - /* 230 */ 123, 122, 121, 120, 119, 54, 1372, 1375, 1376, 1791, - /* 240 */ 1792, 1844, 62, 1846, 1849, 1850, 1851, 1852, 1853, 1854, - /* 250 */ 1855, 1856, 772, 796, 795, 1867, 1869, 1870, 1871, 1872, - /* 260 */ 2, 47, 45, 2029, 849, 793, 389, 2180, 1810, 440, - /* 270 */ 503, 1787, 502, 240, 401, 555, 512, 608, 575, 2080, - /* 280 */ 794, 2219, 63, 574, 1873, 1844, 1785, 137, 136, 135, - /* 290 */ 134, 133, 132, 131, 130, 129, 615, 2398, 33, 535, - /* 300 */ 210, 576, 501, 621, 40, 39, 390, 537, 46, 44, - /* 310 */ 43, 42, 41, 2700, 1868, 1812, 2695, 515, 1902, 242, - /* 320 */ 19, 572, 570, 608, 391, 2080, 1815, 1793, 219, 2273, - /* 330 */ 493, 2430, 85, 84, 508, 2699, 435, 218, 113, 2696, - /* 340 */ 2698, 40, 39, 307, 2271, 46, 44, 43, 42, 41, - /* 350 */ 500, 498, 50, 891, 412, 150, 15, 495, 491, 1535, - /* 360 */ 1951, 388, 198, 2211, 487, 523, 1812, 484, 480, 476, - /* 370 */ 473, 501, 186, 695, 2260, 1526, 823, 822, 821, 1530, - /* 380 */ 820, 1532, 1533, 819, 816, 1903, 1541, 813, 1543, 1544, - /* 390 */ 810, 807, 804, 1379, 1875, 1876, 2340, 2346, 2325, 1811, + /* 0 */ 2497, 505, 2288, 457, 605, 830, 504, 606, 2083, 435, + /* 10 */ 2457, 772, 47, 45, 1958, 512, 2448, 33, 2286, 771, + /* 20 */ 440, 798, 1797, 40, 39, 186, 2458, 46, 44, 43, + /* 30 */ 42, 41, 2323, 35, 1822, 1884, 2126, 1795, 66, 40, + /* 40 */ 39, 2374, 2538, 46, 44, 43, 42, 41, 411, 176, + /* 50 */ 2354, 2052, 756, 148, 715, 759, 443, 2711, 446, 2371, + /* 60 */ 786, 572, 570, 715, 391, 1879, 2711, 478, 219, 803, + /* 70 */ 2288, 19, 465, 464, 798, 2717, 205, 409, 1803, 715, + /* 80 */ 2712, 745, 2711, 2556, 2717, 205, 2286, 40, 39, 2712, + /* 90 */ 745, 46, 44, 43, 42, 41, 2504, 1804, 781, 613, + /* 100 */ 2717, 205, 606, 2083, 896, 2712, 745, 15, 50, 871, + /* 110 */ 870, 869, 868, 468, 186, 867, 866, 153, 861, 860, + /* 120 */ 859, 858, 857, 856, 855, 152, 849, 848, 847, 467, + /* 130 */ 466, 844, 843, 842, 185, 184, 841, 799, 2230, 2355, + /* 140 */ 2537, 62, 1402, 2576, 1401, 1886, 1887, 115, 2539, 785, + /* 150 */ 2541, 2542, 780, 174, 803, 2525, 610, 139, 365, 188, + /* 160 */ 744, 2630, 607, 2711, 648, 436, 2626, 303, 2638, 755, + /* 170 */ 1825, 140, 754, 3, 2711, 363, 75, 1403, 738, 74, + /* 180 */ 207, 743, 205, 1857, 1867, 53, 2712, 745, 2660, 392, + /* 190 */ 1885, 1888, 743, 205, 799, 2230, 548, 2712, 745, 2041, + /* 200 */ 547, 238, 587, 585, 582, 1798, 2556, 1796, 546, 756, + /* 210 */ 148, 40, 39, 2527, 139, 46, 44, 43, 42, 41, + /* 220 */ 129, 653, 698, 128, 127, 126, 125, 124, 123, 122, + /* 230 */ 121, 120, 838, 164, 163, 835, 834, 833, 161, 1801, + /* 240 */ 1802, 1854, 62, 1856, 1859, 1860, 1861, 1862, 1863, 1864, + /* 250 */ 1865, 1866, 777, 801, 800, 1878, 1880, 1881, 1882, 1883, + /* 260 */ 2, 47, 45, 2040, 117, 452, 389, 1807, 1820, 440, + /* 270 */ 798, 1797, 737, 621, 401, 555, 744, 461, 575, 2711, + /* 280 */ 2281, 2283, 63, 574, 1884, 1823, 1795, 138, 137, 136, + /* 290 */ 135, 134, 133, 132, 131, 130, 444, 743, 205, 535, + /* 300 */ 625, 576, 2712, 745, 173, 2221, 390, 537, 2207, 739, + /* 310 */ 840, 307, 2232, 1402, 1879, 1401, 1983, 515, 1913, 12, + /* 320 */ 19, 37, 311, 758, 203, 2638, 2639, 1803, 146, 2643, + /* 330 */ 144, 1984, 85, 84, 508, 305, 129, 218, 1822, 128, + /* 340 */ 127, 126, 125, 124, 123, 122, 121, 120, 1403, 1962, + /* 350 */ 500, 498, 62, 896, 412, 1822, 15, 50, 1483, 1541, + /* 360 */ 1894, 388, 2498, 446, 487, 523, 1822, 484, 480, 476, + /* 370 */ 473, 501, 1982, 695, 803, 1532, 828, 827, 826, 1536, + /* 380 */ 825, 1538, 1539, 824, 821, 1914, 1547, 818, 1549, 1550, + /* 390 */ 815, 812, 809, 489, 1886, 1887, 696, 2361, 2340, 1485, /* 400 */ 563, 562, 561, 560, 559, 554, 553, 552, 551, 395, - /* 410 */ 465, 464, 307, 541, 540, 539, 538, 532, 531, 530, - /* 420 */ 625, 525, 524, 410, 66, 756, 147, 516, 1630, 1631, - /* 430 */ 1980, 96, 1847, 1857, 1649, 1794, 2433, 40, 39, 1874, - /* 440 */ 1877, 46, 44, 43, 42, 41, 315, 316, 413, 1816, - /* 450 */ 1812, 314, 35, 696, 1788, 1813, 1786, 2214, 40, 39, - /* 460 */ 756, 147, 46, 44, 43, 42, 41, 36, 438, 1897, - /* 470 */ 1898, 1899, 1900, 1901, 1905, 1906, 1907, 1908, 1642, 1643, - /* 480 */ 731, 730, 1978, 1979, 1981, 1982, 1983, 478, 1791, 1792, - /* 490 */ 1844, 305, 1846, 1849, 1850, 1851, 1852, 1853, 1854, 1855, - /* 500 */ 1856, 772, 796, 795, 1867, 1869, 1870, 1871, 1872, 2, - /* 510 */ 12, 47, 45, 2523, 275, 1396, 2273, 1395, 274, 440, - /* 520 */ 747, 1787, 307, 445, 62, 2700, 777, 62, 2695, 1848, - /* 530 */ 2022, 2271, 143, 258, 1873, 846, 1785, 62, 674, 204, - /* 540 */ 2622, 2623, 2523, 145, 2627, 794, 2219, 2699, 12, 181, - /* 550 */ 1397, 2696, 2697, 686, 2541, 759, 14, 13, 642, 638, - /* 560 */ 634, 630, 212, 257, 1868, 55, 2489, 1972, 776, 273, - /* 570 */ 19, 51, 734, 758, 203, 2622, 2623, 1793, 145, 2627, - /* 580 */ 1662, 1663, 1973, 2541, 287, 677, 699, 1845, 99, 794, - /* 590 */ 2219, 398, 671, 669, 424, 2489, 687, 776, 2700, 270, - /* 600 */ 848, 2052, 1883, 891, 97, 1797, 15, 255, 1812, 138, - /* 610 */ 2522, 452, 2629, 2560, 201, 1815, 648, 115, 2524, 780, - /* 620 */ 2526, 2527, 775, 1971, 798, 1661, 1664, 149, 101, 157, - /* 630 */ 2585, 2614, 794, 2219, 154, 436, 2610, 2021, 2626, 2522, - /* 640 */ 71, 2411, 2560, 70, 1875, 1876, 115, 2524, 780, 2526, - /* 650 */ 2527, 775, 138, 798, 2489, 794, 2219, 455, 188, 653, - /* 660 */ 2614, 701, 2398, 1916, 436, 2610, 740, 735, 728, 724, - /* 670 */ 1817, 794, 2219, 40, 39, 509, 245, 46, 44, 43, - /* 680 */ 42, 41, 1847, 1857, 2051, 254, 247, 2645, 1944, 1874, - /* 690 */ 1877, 510, 252, 619, 307, 685, 277, 307, 29, 1396, - /* 700 */ 1535, 1395, 2195, 2015, 1788, 566, 1786, 307, 622, 1706, - /* 710 */ 683, 244, 681, 272, 271, 835, 1526, 823, 822, 821, - /* 720 */ 1530, 820, 1532, 1533, 819, 816, 2050, 1541, 813, 1543, - /* 730 */ 1544, 810, 807, 804, 1397, 756, 147, 2489, 1791, 1792, - /* 740 */ 1844, 307, 1846, 1849, 1850, 1851, 1852, 1853, 1854, 1855, - /* 750 */ 1856, 772, 796, 795, 1867, 1869, 1870, 1871, 1872, 2, - /* 760 */ 47, 45, 1878, 2523, 623, 2352, 521, 2335, 440, 230, - /* 770 */ 1787, 1848, 835, 1992, 527, 2335, 777, 2049, 2082, 2489, - /* 780 */ 305, 1756, 276, 1873, 2273, 1785, 46, 44, 43, 42, - /* 790 */ 41, 460, 2523, 148, 565, 229, 2585, 794, 2219, 2271, - /* 800 */ 1793, 667, 666, 665, 2541, 777, 2196, 2652, 657, 144, - /* 810 */ 661, 451, 450, 1868, 660, 221, 2489, 529, 776, 659, - /* 820 */ 664, 419, 418, 223, 2027, 658, 1793, 1755, 654, 1845, - /* 830 */ 2489, 1787, 2083, 2541, 40, 39, 794, 2219, 46, 44, - /* 840 */ 43, 42, 41, 1904, 652, 2489, 1785, 776, 651, 206, - /* 850 */ 2622, 2623, 891, 145, 2627, 48, 542, 454, 453, 2048, - /* 860 */ 2522, 1715, 1716, 2560, 2523, 2047, 1477, 115, 2524, 780, - /* 870 */ 2526, 2527, 775, 2292, 798, 794, 2219, 774, 12, 2715, - /* 880 */ 10, 2614, 794, 2219, 884, 436, 2610, 1793, 694, 2522, - /* 890 */ 2267, 2268, 2560, 1875, 1876, 543, 115, 2524, 780, 2526, - /* 900 */ 2527, 775, 544, 798, 471, 2541, 2442, 1479, 2715, 470, - /* 910 */ 2614, 826, 2489, 891, 436, 2610, 1812, 2489, 2489, 776, - /* 920 */ 794, 2219, 40, 39, 350, 34, 46, 44, 43, 42, - /* 930 */ 41, 1847, 1857, 714, 1963, 1909, 794, 2219, 1874, 1877, - /* 940 */ 624, 2204, 425, 2406, 833, 163, 162, 830, 829, 828, - /* 950 */ 160, 1399, 1400, 1788, 2206, 1786, 2216, 715, 2499, 715, - /* 960 */ 2695, 2522, 2695, 1943, 2560, 43, 42, 41, 381, 2524, - /* 970 */ 780, 2526, 2527, 775, 773, 798, 764, 2579, 2701, 205, - /* 980 */ 2701, 205, 2503, 2696, 745, 2696, 745, 1791, 1792, 1844, - /* 990 */ 107, 1846, 1849, 1850, 1851, 1852, 1853, 1854, 1855, 1856, - /* 1000 */ 772, 796, 795, 1867, 1869, 1870, 1871, 1872, 2, 47, - /* 1010 */ 45, 225, 2523, 2443, 1788, 2212, 1786, 440, 2499, 1787, - /* 1020 */ 2046, 557, 2335, 794, 2219, 777, 2202, 2665, 692, 2505, - /* 1030 */ 2507, 437, 1873, 2194, 1785, 550, 549, 794, 2219, 173, - /* 1040 */ 798, 2523, 2503, 278, 2045, 644, 643, 2222, 1791, 1792, - /* 1050 */ 646, 645, 91, 2541, 777, 90, 726, 286, 794, 2219, - /* 1060 */ 794, 2219, 1868, 794, 2219, 2489, 715, 776, 60, 2695, - /* 1070 */ 228, 794, 2219, 2489, 827, 1793, 712, 2264, 762, 1848, - /* 1080 */ 319, 715, 2541, 791, 2695, 794, 2219, 2701, 205, 2505, - /* 1090 */ 2508, 792, 2696, 745, 2489, 9, 776, 2489, 459, 172, - /* 1100 */ 798, 891, 2701, 205, 48, 346, 173, 2696, 745, 2522, - /* 1110 */ 2629, 1816, 2560, 2523, 2221, 1816, 115, 2524, 780, 2526, - /* 1120 */ 2527, 775, 199, 798, 89, 1489, 777, 1816, 2715, 2273, - /* 1130 */ 2614, 794, 2219, 2044, 436, 2610, 2625, 1845, 2522, 2629, - /* 1140 */ 1488, 2560, 1875, 1876, 763, 115, 2524, 780, 2526, 2527, - /* 1150 */ 775, 463, 798, 700, 2541, 760, 1812, 2715, 765, 2614, - /* 1160 */ 2586, 2043, 462, 436, 2610, 2624, 2489, 767, 776, 2586, - /* 1170 */ 173, 833, 163, 162, 830, 829, 828, 160, 2221, 96, - /* 1180 */ 1847, 1857, 663, 662, 2273, 1493, 2489, 1874, 1877, 417, - /* 1190 */ 416, 3, 833, 163, 162, 830, 829, 828, 160, 789, - /* 1200 */ 1492, 655, 1788, 53, 1786, 2215, 715, 577, 715, 2695, - /* 1210 */ 2522, 2695, 2040, 2560, 2489, 748, 2039, 178, 2524, 780, - /* 1220 */ 2526, 2527, 775, 1796, 798, 1474, 2038, 2701, 205, 2701, - /* 1230 */ 205, 283, 2696, 745, 2696, 745, 1791, 1792, 1844, 100, - /* 1240 */ 1846, 1849, 1850, 1851, 1852, 1853, 1854, 1855, 1856, 772, - /* 1250 */ 796, 795, 1867, 1869, 1870, 1871, 1872, 2, 47, 45, - /* 1260 */ 2523, 415, 414, 2037, 650, 2489, 440, 579, 1787, 2489, - /* 1270 */ 1690, 746, 2716, 777, 2036, 2688, 196, 2035, 2318, 2489, - /* 1280 */ 200, 1873, 2034, 1785, 2033, 2032, 831, 2273, 652, 2264, - /* 1290 */ 2523, 77, 651, 860, 858, 832, 359, 154, 2264, 2250, - /* 1300 */ 140, 2541, 2272, 777, 656, 2633, 2057, 886, 2197, 2634, - /* 1310 */ 1936, 1868, 87, 2489, 263, 776, 2489, 261, 265, 267, - /* 1320 */ 519, 264, 266, 269, 1793, 2102, 268, 2489, 1472, 1936, - /* 1330 */ 2489, 2541, 1817, 2100, 2091, 2489, 1817, 2489, 2489, 2089, - /* 1340 */ 689, 153, 688, 2489, 722, 776, 88, 668, 1817, 49, - /* 1350 */ 891, 49, 189, 15, 771, 670, 672, 2522, 2510, 751, - /* 1360 */ 2560, 675, 2024, 2025, 115, 2524, 780, 2526, 2527, 775, - /* 1370 */ 2159, 798, 1713, 161, 14, 13, 2715, 1845, 2614, 465, - /* 1380 */ 464, 770, 436, 2610, 64, 49, 49, 2522, 2042, 1801, - /* 1390 */ 2560, 1875, 1876, 1799, 115, 2524, 780, 2526, 2527, 775, - /* 1400 */ 1795, 798, 1873, 313, 1794, 76, 2715, 159, 2614, 161, - /* 1410 */ 325, 324, 436, 2610, 840, 2523, 2512, 327, 326, 1967, - /* 1420 */ 329, 328, 331, 330, 1977, 2658, 1976, 292, 777, 1847, - /* 1430 */ 1857, 841, 1868, 333, 332, 73, 1874, 1877, 1451, 335, - /* 1440 */ 334, 337, 336, 112, 732, 1793, 339, 338, 761, 341, - /* 1450 */ 340, 1788, 109, 1786, 2118, 1449, 2541, 300, 294, 1910, - /* 1460 */ 1858, 1659, 343, 342, 345, 344, 802, 142, 2489, 159, - /* 1470 */ 776, 769, 1432, 2542, 2156, 161, 2155, 2073, 317, 2344, - /* 1480 */ 786, 141, 321, 749, 1519, 1791, 1792, 1844, 2648, 1846, - /* 1490 */ 1849, 1850, 1851, 1852, 1853, 1854, 1855, 1856, 772, 796, - /* 1500 */ 795, 1867, 1869, 1870, 1871, 1872, 2, 394, 393, 159, - /* 1510 */ 358, 729, 2522, 1433, 431, 2560, 736, 447, 427, 115, - /* 1520 */ 2524, 780, 2526, 2527, 775, 783, 798, 667, 666, 665, - /* 1530 */ 1873, 2589, 456, 2614, 657, 144, 661, 436, 2610, 2523, - /* 1540 */ 660, 1548, 469, 2079, 1552, 659, 664, 419, 418, 1894, - /* 1550 */ 1559, 658, 777, 2345, 654, 2261, 1557, 708, 2649, 2659, - /* 1560 */ 1868, 757, 302, 2523, 299, 306, 2181, 5, 472, 477, - /* 1570 */ 1798, 407, 1802, 485, 1797, 1820, 777, 486, 497, 496, - /* 1580 */ 2541, 214, 213, 1683, 164, 499, 216, 353, 1810, 513, - /* 1590 */ 1811, 520, 2489, 227, 776, 522, 526, 568, 528, 2523, - /* 1600 */ 533, 545, 564, 556, 2541, 2337, 1805, 1807, 567, 558, - /* 1610 */ 569, 580, 777, 581, 578, 232, 2489, 233, 776, 583, - /* 1620 */ 796, 795, 1867, 1869, 1870, 1871, 1872, 235, 586, 752, - /* 1630 */ 584, 588, 1818, 603, 4, 604, 2522, 611, 612, 2560, - /* 1640 */ 2541, 614, 243, 115, 2524, 780, 2526, 2527, 775, 1813, - /* 1650 */ 798, 93, 2489, 616, 776, 2587, 246, 2614, 1819, 1821, - /* 1660 */ 2522, 436, 2610, 2560, 617, 618, 1822, 115, 2524, 780, - /* 1670 */ 2526, 2527, 775, 249, 798, 620, 251, 2353, 94, 766, - /* 1680 */ 95, 2614, 626, 256, 647, 436, 2610, 649, 2209, 260, - /* 1690 */ 117, 678, 2205, 679, 262, 167, 2522, 168, 385, 2560, - /* 1700 */ 1778, 2207, 1754, 116, 2524, 780, 2526, 2527, 775, 691, - /* 1710 */ 798, 2420, 2203, 169, 170, 98, 2523, 2614, 2417, 279, - /* 1720 */ 693, 2613, 2610, 354, 155, 1814, 2399, 703, 2416, 777, - /* 1730 */ 704, 702, 449, 448, 1779, 710, 707, 284, 719, 733, - /* 1740 */ 784, 709, 2664, 2663, 2636, 8, 2523, 742, 796, 795, - /* 1750 */ 1867, 1869, 1870, 1871, 1872, 293, 720, 2541, 289, 777, - /* 1760 */ 291, 180, 718, 295, 717, 282, 432, 2718, 753, 2489, - /* 1770 */ 296, 776, 2694, 298, 750, 297, 1936, 146, 301, 1815, - /* 1780 */ 1941, 1939, 61, 192, 308, 2630, 156, 2541, 782, 2523, - /* 1790 */ 355, 356, 2367, 2366, 2365, 442, 788, 787, 357, 2489, - /* 1800 */ 1, 776, 777, 158, 2481, 106, 2480, 2595, 2476, 2220, - /* 1810 */ 2475, 2467, 1354, 2522, 108, 2466, 2560, 800, 348, 885, - /* 1820 */ 116, 2524, 780, 2526, 2527, 775, 52, 798, 2458, 2441, - /* 1830 */ 2541, 2457, 888, 208, 2614, 2473, 2472, 165, 768, 2610, - /* 1840 */ 890, 2464, 2489, 778, 776, 360, 2560, 2440, 364, 2523, - /* 1850 */ 116, 2524, 780, 2526, 2527, 775, 2463, 798, 2452, 362, - /* 1860 */ 384, 2439, 777, 82, 2614, 2434, 2451, 2470, 400, 2610, - /* 1870 */ 2469, 2523, 372, 2461, 2460, 2449, 405, 383, 2448, 2446, - /* 1880 */ 2445, 2265, 373, 474, 777, 475, 2522, 406, 1738, 2560, - /* 1890 */ 2541, 1739, 211, 177, 2524, 780, 2526, 2527, 775, 479, - /* 1900 */ 798, 2432, 2489, 481, 776, 482, 483, 1737, 2431, 408, - /* 1910 */ 2429, 488, 2541, 490, 2427, 492, 2426, 494, 1726, 2403, - /* 1920 */ 2402, 215, 217, 1686, 2489, 2428, 776, 83, 1685, 2380, - /* 1930 */ 2379, 2378, 506, 507, 2377, 716, 2655, 2376, 511, 2327, - /* 1940 */ 1629, 2324, 514, 2323, 2317, 518, 2522, 220, 517, 2560, - /* 1950 */ 2314, 2523, 2313, 116, 2524, 780, 2526, 2527, 775, 2312, - /* 1960 */ 798, 2311, 86, 2316, 777, 2315, 2310, 2614, 2522, 2309, - /* 1970 */ 222, 2560, 2611, 224, 2304, 177, 2524, 780, 2526, 2527, - /* 1980 */ 775, 2523, 798, 2307, 2306, 2305, 534, 536, 2302, 2301, - /* 1990 */ 2300, 2299, 2541, 92, 777, 2322, 2298, 2297, 2296, 2523, - /* 2000 */ 2320, 2303, 2295, 2294, 2489, 2293, 776, 2291, 2290, 2289, - /* 2010 */ 2288, 2287, 777, 2286, 2285, 2284, 226, 2283, 2656, 2282, - /* 2020 */ 2281, 2321, 2541, 2319, 2280, 2279, 429, 2278, 1635, 2523, - /* 2030 */ 2277, 231, 571, 2276, 2489, 573, 776, 2275, 2274, 2121, - /* 2040 */ 2541, 234, 777, 2120, 1490, 236, 2119, 237, 2522, 396, - /* 2050 */ 1494, 2560, 2489, 2117, 776, 382, 2524, 780, 2526, 2527, - /* 2060 */ 775, 2114, 798, 1486, 2113, 2106, 397, 2093, 589, 590, - /* 2070 */ 2541, 591, 593, 597, 430, 250, 595, 2068, 2522, 601, - /* 2080 */ 187, 2560, 2489, 594, 776, 375, 2524, 780, 2526, 2527, - /* 2090 */ 775, 598, 798, 599, 239, 1378, 2522, 79, 2067, 2560, - /* 2100 */ 241, 2509, 80, 382, 2524, 780, 2526, 2527, 775, 2523, - /* 2110 */ 798, 197, 609, 2401, 2397, 2387, 2375, 2374, 253, 2351, - /* 2120 */ 248, 2198, 774, 627, 628, 629, 2522, 2116, 2523, 2560, - /* 2130 */ 1425, 741, 2112, 178, 2524, 780, 2526, 2527, 775, 2110, - /* 2140 */ 798, 777, 632, 631, 633, 2108, 2523, 635, 636, 637, - /* 2150 */ 2541, 2105, 640, 641, 2088, 639, 2086, 2087, 2085, 777, - /* 2160 */ 2064, 2200, 2489, 72, 776, 1564, 1563, 259, 2199, 2541, - /* 2170 */ 1476, 1475, 1473, 1471, 1470, 1469, 857, 1468, 1467, 859, - /* 2180 */ 2103, 2489, 2101, 776, 1464, 1463, 1462, 2541, 2717, 1461, - /* 2190 */ 2092, 420, 421, 422, 2090, 673, 423, 2063, 2062, 2489, - /* 2200 */ 676, 776, 2061, 439, 680, 2060, 2522, 684, 697, 2560, - /* 2210 */ 682, 2059, 118, 381, 2524, 780, 2526, 2527, 775, 28, - /* 2220 */ 798, 441, 2580, 1720, 1722, 2522, 894, 2400, 2560, 56, - /* 2230 */ 1719, 67, 382, 2524, 780, 2526, 2527, 775, 1724, 798, - /* 2240 */ 695, 2396, 352, 2522, 1710, 281, 2560, 1692, 2523, 2386, - /* 2250 */ 382, 2524, 780, 2526, 2527, 775, 57, 798, 195, 706, - /* 2260 */ 1694, 777, 1696, 2373, 171, 705, 2372, 882, 878, 874, - /* 2270 */ 870, 2523, 349, 285, 1671, 1670, 711, 2700, 20, 713, - /* 2280 */ 1994, 721, 30, 288, 777, 1968, 17, 428, 723, 2541, - /* 2290 */ 6, 290, 7, 725, 727, 21, 179, 22, 191, 65, - /* 2300 */ 202, 2489, 190, 776, 2510, 2523, 32, 1975, 31, 24, - /* 2310 */ 304, 1962, 2541, 114, 2014, 81, 322, 2015, 777, 2009, - /* 2320 */ 2008, 433, 2013, 23, 2489, 2012, 776, 18, 434, 1933, - /* 2330 */ 59, 2523, 1932, 2371, 58, 182, 2350, 102, 25, 1885, - /* 2340 */ 103, 11, 13, 1803, 777, 690, 2541, 1895, 2560, 183, - /* 2350 */ 790, 2523, 377, 2524, 780, 2526, 2527, 775, 2489, 798, - /* 2360 */ 776, 1884, 1860, 193, 777, 38, 1837, 1859, 2522, 2349, - /* 2370 */ 104, 2560, 2541, 779, 16, 367, 2524, 780, 2526, 2527, - /* 2380 */ 775, 323, 798, 1829, 2489, 26, 776, 27, 109, 312, - /* 2390 */ 801, 458, 2541, 805, 310, 1970, 194, 318, 808, 69, - /* 2400 */ 320, 309, 2522, 785, 2489, 2560, 776, 1862, 105, 366, - /* 2410 */ 2524, 780, 2526, 2527, 775, 2565, 798, 2564, 797, 68, - /* 2420 */ 280, 799, 811, 1549, 803, 814, 1546, 806, 2522, 817, - /* 2430 */ 1545, 2560, 1542, 2523, 809, 368, 2524, 780, 2526, 2527, - /* 2440 */ 775, 812, 798, 1536, 815, 818, 777, 1534, 2522, 1540, - /* 2450 */ 110, 2560, 347, 1539, 1558, 374, 2524, 780, 2526, 2527, - /* 2460 */ 775, 1538, 798, 2523, 1525, 824, 111, 78, 1554, 1423, - /* 2470 */ 834, 1537, 1458, 1455, 2541, 1454, 777, 1453, 1452, 1450, - /* 2480 */ 1448, 2523, 1447, 1484, 1446, 845, 2489, 1483, 776, 209, - /* 2490 */ 847, 1444, 1443, 1441, 777, 1442, 1440, 1439, 1438, 1480, - /* 2500 */ 1478, 1435, 1434, 1431, 2541, 1430, 1429, 1428, 2111, 867, - /* 2510 */ 2109, 869, 871, 868, 2107, 875, 2489, 2104, 776, 873, - /* 2520 */ 879, 877, 2541, 881, 872, 876, 2084, 880, 883, 1367, - /* 2530 */ 2522, 2058, 887, 2560, 2489, 1355, 776, 378, 2524, 780, - /* 2540 */ 2526, 2527, 775, 351, 798, 889, 2028, 1789, 893, 361, - /* 2550 */ 892, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, - /* 2560 */ 2522, 2028, 2523, 2560, 2028, 2028, 2028, 369, 2524, 780, - /* 2570 */ 2526, 2527, 775, 2028, 798, 777, 2028, 2028, 2522, 2028, - /* 2580 */ 2523, 2560, 2028, 2028, 2028, 379, 2524, 780, 2526, 2527, - /* 2590 */ 775, 2028, 798, 777, 2028, 2523, 2028, 2028, 2028, 2028, - /* 2600 */ 2028, 2028, 2028, 2541, 2028, 2028, 2028, 2028, 777, 2028, - /* 2610 */ 2523, 2028, 2028, 2028, 2028, 2489, 2028, 776, 2028, 2028, - /* 2620 */ 2028, 2541, 2028, 777, 2028, 2028, 2028, 2028, 2028, 2028, - /* 2630 */ 2028, 2028, 2028, 2489, 2028, 776, 2541, 2028, 2028, 2028, - /* 2640 */ 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2489, 2028, - /* 2650 */ 776, 2541, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2522, - /* 2660 */ 2028, 2028, 2560, 2489, 2028, 776, 370, 2524, 780, 2526, - /* 2670 */ 2527, 775, 2028, 798, 2028, 2028, 2028, 2522, 2028, 2028, - /* 2680 */ 2560, 2028, 2028, 2523, 380, 2524, 780, 2526, 2527, 775, - /* 2690 */ 2028, 798, 2522, 2028, 2028, 2560, 777, 2028, 2028, 371, - /* 2700 */ 2524, 780, 2526, 2527, 775, 2028, 798, 2522, 2028, 2523, - /* 2710 */ 2560, 2028, 2028, 2028, 386, 2524, 780, 2526, 2527, 775, - /* 2720 */ 2028, 798, 777, 2028, 2541, 2028, 2028, 2028, 2028, 2028, - /* 2730 */ 2028, 2523, 2028, 2028, 2028, 2028, 2489, 2028, 776, 2028, - /* 2740 */ 2028, 2028, 2028, 2028, 777, 2028, 2028, 2028, 2028, 2028, - /* 2750 */ 2541, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, - /* 2760 */ 2028, 2028, 2489, 2028, 776, 2028, 2028, 2028, 2028, 2523, - /* 2770 */ 2028, 2028, 2541, 2028, 2028, 2028, 2028, 2028, 2028, 2028, - /* 2780 */ 2522, 2028, 777, 2560, 2489, 2028, 776, 387, 2524, 780, - /* 2790 */ 2526, 2527, 775, 2028, 798, 2028, 2028, 2028, 2028, 2028, - /* 2800 */ 2028, 2028, 2028, 2028, 2028, 2028, 2522, 2028, 2028, 2560, - /* 2810 */ 2541, 2028, 2028, 2535, 2524, 780, 2526, 2527, 775, 2028, - /* 2820 */ 798, 2028, 2489, 2028, 776, 2028, 2028, 2028, 2522, 2028, - /* 2830 */ 2028, 2560, 2028, 2028, 2028, 2534, 2524, 780, 2526, 2527, - /* 2840 */ 775, 2028, 798, 2028, 2028, 2523, 2028, 2028, 2028, 2028, - /* 2850 */ 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 777, 2028, - /* 2860 */ 2028, 2028, 2028, 2028, 2028, 2028, 2522, 2028, 2028, 2560, - /* 2870 */ 2028, 2028, 2028, 2533, 2524, 780, 2526, 2527, 775, 2028, - /* 2880 */ 798, 2523, 2028, 2028, 2028, 2028, 2541, 2028, 2028, 2028, - /* 2890 */ 2028, 2028, 2028, 2028, 777, 2028, 2028, 2028, 2489, 2028, - /* 2900 */ 776, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, - /* 2910 */ 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2523, - /* 2920 */ 2028, 2028, 2541, 2028, 2028, 2028, 2028, 2028, 2028, 2028, - /* 2930 */ 2028, 2028, 777, 2028, 2489, 2028, 776, 2028, 2028, 2028, - /* 2940 */ 2028, 2028, 2522, 2028, 2028, 2560, 2028, 2028, 2028, 402, - /* 2950 */ 2524, 780, 2526, 2527, 775, 2028, 798, 2028, 2028, 2028, - /* 2960 */ 2541, 2028, 2523, 2028, 2028, 2028, 2028, 2028, 2028, 2028, - /* 2970 */ 2028, 2028, 2489, 2028, 776, 777, 2028, 2028, 2522, 2028, - /* 2980 */ 2523, 2560, 2028, 2028, 2028, 403, 2524, 780, 2526, 2527, - /* 2990 */ 775, 2028, 798, 777, 2028, 2523, 2028, 2028, 2028, 2028, - /* 3000 */ 2028, 2028, 2028, 2541, 2028, 2028, 2028, 2028, 777, 2028, - /* 3010 */ 2028, 2028, 2028, 2028, 2028, 2489, 2522, 776, 2028, 2560, - /* 3020 */ 2028, 2541, 2028, 399, 2524, 780, 2526, 2527, 775, 2028, - /* 3030 */ 798, 2028, 2028, 2489, 2028, 776, 2541, 2028, 2028, 2028, - /* 3040 */ 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2489, 2028, - /* 3050 */ 776, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2028, 2522, - /* 3060 */ 2028, 2028, 2560, 2028, 2028, 2028, 404, 2524, 780, 2526, - /* 3070 */ 2527, 775, 2028, 798, 2028, 2028, 2028, 778, 2028, 2028, - /* 3080 */ 2560, 2028, 2028, 2028, 377, 2524, 780, 2526, 2527, 775, - /* 3090 */ 2028, 798, 2522, 2028, 2028, 2560, 2028, 2028, 2028, 376, - /* 3100 */ 2524, 780, 2526, 2527, 775, 2028, 798, + /* 410 */ 1580, 1581, 307, 541, 540, 539, 538, 532, 531, 530, + /* 420 */ 446, 525, 524, 410, 2063, 62, 652, 516, 1640, 1641, + /* 430 */ 651, 803, 1857, 1867, 1659, 1766, 1826, 40, 39, 1885, + /* 440 */ 1888, 46, 44, 43, 42, 41, 838, 164, 163, 835, + /* 450 */ 834, 833, 161, 1822, 1798, 2645, 1796, 46, 44, 43, + /* 460 */ 42, 41, 29, 51, 692, 451, 450, 36, 438, 1908, + /* 470 */ 1909, 1910, 1911, 1912, 1916, 1917, 1918, 1919, 2504, 40, + /* 480 */ 39, 2642, 566, 46, 44, 43, 42, 41, 1801, 1802, + /* 490 */ 1854, 1826, 1856, 1859, 1860, 1861, 1862, 1863, 1864, 1865, + /* 500 */ 1866, 777, 801, 800, 1878, 1880, 1881, 1882, 1883, 2, + /* 510 */ 12, 47, 45, 2538, 1803, 459, 2514, 715, 1858, 440, + /* 520 */ 2711, 1797, 307, 167, 493, 831, 782, 307, 113, 1858, + /* 530 */ 1854, 2232, 459, 258, 1884, 350, 1795, 2003, 2717, 205, + /* 540 */ 173, 2518, 2538, 2712, 745, 151, 230, 1495, 2232, 181, + /* 550 */ 699, 495, 491, 2222, 2556, 759, 2205, 694, 642, 638, + /* 560 */ 634, 630, 1494, 257, 1879, 699, 1376, 2504, 2288, 781, + /* 570 */ 19, 565, 229, 667, 666, 665, 1855, 1803, 426, 2421, + /* 580 */ 657, 145, 661, 2556, 763, 1383, 660, 1855, 2520, 2523, + /* 590 */ 1797, 659, 664, 419, 418, 307, 2504, 658, 781, 803, + /* 600 */ 654, 196, 2208, 896, 97, 1795, 15, 255, 1378, 1381, + /* 610 */ 1382, 2537, 2716, 2422, 2576, 2711, 1652, 1653, 115, 2539, + /* 620 */ 785, 2541, 2542, 780, 2062, 803, 615, 2413, 150, 577, + /* 630 */ 158, 2601, 2630, 307, 2715, 154, 436, 2626, 2712, 2714, + /* 640 */ 2537, 701, 2413, 2576, 1886, 1887, 1803, 115, 2539, 785, + /* 650 */ 2541, 2542, 780, 199, 803, 2038, 201, 1827, 1826, 188, + /* 660 */ 2716, 2630, 162, 40, 39, 436, 2626, 46, 44, 43, + /* 670 */ 42, 41, 896, 43, 42, 41, 245, 1825, 2504, 756, + /* 680 */ 148, 2716, 1857, 1867, 2711, 254, 247, 1499, 2661, 1885, + /* 690 */ 1888, 2374, 252, 619, 838, 164, 163, 835, 834, 833, + /* 700 */ 161, 1541, 1498, 2715, 1798, 175, 1796, 2712, 2713, 2372, + /* 710 */ 786, 244, 1827, 2169, 622, 799, 2230, 1532, 828, 827, + /* 720 */ 826, 1536, 825, 1538, 1539, 776, 775, 1822, 1547, 774, + /* 730 */ 1549, 1550, 773, 812, 809, 210, 471, 54, 1801, 1802, + /* 740 */ 1854, 470, 1856, 1859, 1860, 1861, 1862, 1863, 1864, 1865, + /* 750 */ 1866, 777, 801, 800, 1878, 1880, 1881, 1882, 1883, 2, + /* 760 */ 47, 45, 1889, 2538, 2206, 2026, 2514, 455, 440, 579, + /* 770 */ 1797, 623, 2367, 1798, 198, 1796, 782, 1991, 2093, 2170, + /* 780 */ 240, 799, 2230, 1884, 608, 1795, 2091, 2275, 655, 715, + /* 790 */ 674, 2518, 2711, 2288, 204, 2638, 2639, 2219, 146, 2643, + /* 800 */ 445, 55, 225, 854, 2556, 686, 2191, 1801, 1802, 2286, + /* 810 */ 2717, 205, 1480, 1879, 242, 2712, 745, 2504, 608, 781, + /* 820 */ 2091, 273, 694, 200, 521, 2350, 1803, 731, 730, 1989, + /* 830 */ 1990, 1992, 1993, 1994, 840, 2538, 96, 677, 2520, 2522, + /* 840 */ 437, 685, 305, 91, 671, 669, 90, 2215, 782, 803, + /* 850 */ 2668, 270, 896, 413, 602, 48, 683, 96, 681, 272, + /* 860 */ 271, 2537, 2225, 600, 2576, 100, 596, 592, 115, 2539, + /* 870 */ 785, 2541, 2542, 780, 221, 803, 2556, 425, 2421, 1827, + /* 880 */ 2731, 1541, 2630, 2226, 527, 2350, 436, 2626, 734, 2504, + /* 890 */ 1858, 781, 71, 1886, 1887, 70, 1700, 1532, 828, 827, + /* 900 */ 826, 1536, 825, 1538, 1539, 824, 821, 2217, 1547, 818, + /* 910 */ 1549, 1550, 815, 812, 809, 89, 62, 40, 39, 2288, + /* 920 */ 2645, 46, 44, 43, 42, 41, 460, 756, 148, 799, + /* 930 */ 2230, 1857, 1867, 2537, 223, 2286, 2576, 1765, 1885, 1888, + /* 940 */ 115, 2539, 785, 2541, 2542, 780, 2641, 803, 1855, 509, + /* 950 */ 417, 416, 2731, 1798, 2630, 1796, 40, 39, 436, 2626, + /* 960 */ 46, 44, 43, 42, 41, 14, 13, 454, 453, 2213, + /* 970 */ 40, 39, 714, 2538, 46, 44, 43, 42, 41, 283, + /* 980 */ 700, 2061, 740, 735, 728, 724, 782, 1801, 1802, 1854, + /* 990 */ 2053, 1856, 1859, 1860, 1861, 1862, 1863, 1864, 1865, 1866, + /* 1000 */ 777, 801, 800, 1878, 1880, 1881, 1882, 1883, 2, 47, + /* 1010 */ 45, 2538, 2715, 503, 2556, 502, 2307, 440, 149, 1797, + /* 1020 */ 760, 2601, 415, 414, 782, 650, 2681, 2504, 1823, 781, + /* 1030 */ 799, 2230, 1884, 715, 1795, 2504, 2711, 799, 2230, 557, + /* 1040 */ 2350, 1955, 206, 2638, 2639, 501, 146, 2643, 300, 652, + /* 1050 */ 510, 2060, 2556, 651, 2717, 205, 2002, 529, 2674, 2712, + /* 1060 */ 745, 462, 1879, 315, 316, 2504, 276, 781, 314, 173, + /* 1070 */ 1974, 2537, 1927, 715, 2576, 1803, 2711, 2232, 115, 2539, + /* 1080 */ 785, 2541, 2542, 780, 275, 803, 307, 2059, 274, 228, + /* 1090 */ 2605, 12, 2630, 10, 2717, 205, 436, 2626, 851, 2712, + /* 1100 */ 745, 896, 799, 2230, 48, 2504, 2033, 60, 2445, 2537, + /* 1110 */ 2645, 2538, 2576, 799, 2230, 712, 115, 2539, 785, 2541, + /* 1120 */ 2542, 780, 542, 803, 782, 765, 726, 2602, 2731, 2058, + /* 1130 */ 2630, 799, 2230, 543, 436, 2626, 2640, 465, 464, 799, + /* 1140 */ 2230, 2504, 1886, 1887, 1385, 1725, 1726, 1811, 799, 2230, + /* 1150 */ 1821, 544, 2556, 1672, 1673, 799, 2230, 287, 99, 624, + /* 1160 */ 1884, 398, 1804, 853, 424, 2504, 687, 781, 2227, 799, + /* 1170 */ 2230, 2426, 799, 2230, 732, 278, 799, 2230, 550, 549, + /* 1180 */ 1857, 1867, 1915, 2504, 1826, 799, 2230, 1885, 1888, 286, + /* 1190 */ 1879, 767, 762, 2602, 2282, 2283, 319, 294, 1671, 1674, + /* 1200 */ 1383, 101, 1798, 1803, 1796, 796, 799, 2230, 9, 2537, + /* 1210 */ 1405, 1406, 2576, 2032, 1822, 2057, 115, 2539, 785, 2541, + /* 1220 */ 2542, 780, 2056, 803, 1381, 1382, 797, 277, 2731, 769, + /* 1230 */ 2630, 2055, 2054, 2051, 436, 2626, 1801, 1802, 1854, 2050, + /* 1240 */ 1856, 1859, 1860, 1861, 1862, 1863, 1864, 1865, 1866, 777, + /* 1250 */ 801, 800, 1878, 1880, 1881, 1882, 1883, 2, 47, 45, + /* 1260 */ 799, 2230, 799, 2230, 34, 2538, 440, 832, 1797, 2504, + /* 1270 */ 2279, 2049, 2048, 2047, 1920, 2046, 2504, 2045, 782, 107, + /* 1280 */ 346, 1884, 463, 1795, 2044, 2504, 2504, 2504, 2043, 663, + /* 1290 */ 662, 2167, 2538, 2504, 2288, 644, 643, 2288, 646, 645, + /* 1300 */ 865, 863, 2068, 891, 2223, 782, 2556, 2704, 747, 173, + /* 1310 */ 794, 1879, 836, 2287, 2333, 2279, 1954, 2233, 748, 2504, + /* 1320 */ 359, 781, 751, 2265, 1803, 2504, 2504, 2504, 141, 2504, + /* 1330 */ 1812, 2504, 1807, 2556, 837, 2650, 1947, 2279, 2504, 212, + /* 1340 */ 87, 77, 2504, 689, 263, 688, 2504, 261, 781, 265, + /* 1350 */ 896, 770, 264, 15, 2538, 267, 519, 269, 266, 155, + /* 1360 */ 268, 656, 2094, 2537, 1815, 1817, 2576, 782, 155, 2649, + /* 1370 */ 177, 2539, 785, 2541, 2542, 780, 143, 803, 801, 800, + /* 1380 */ 1878, 1880, 1881, 1882, 1883, 1478, 2035, 2036, 14, 13, + /* 1390 */ 2537, 1886, 1887, 2576, 722, 2556, 88, 115, 2539, 785, + /* 1400 */ 2541, 2542, 780, 2113, 803, 1827, 2111, 2166, 2504, 2731, + /* 1410 */ 781, 2630, 716, 2671, 889, 436, 2626, 1806, 2557, 2359, + /* 1420 */ 2084, 394, 393, 2102, 845, 668, 2538, 2100, 670, 1857, + /* 1430 */ 1867, 447, 49, 49, 1716, 1855, 1885, 1888, 189, 782, + /* 1440 */ 162, 1805, 1947, 1723, 1884, 672, 456, 64, 1457, 675, + /* 1450 */ 49, 1798, 2537, 1796, 2664, 2576, 325, 324, 729, 115, + /* 1460 */ 2539, 785, 2541, 2542, 780, 49, 803, 2556, 431, 1978, + /* 1470 */ 736, 2731, 313, 2630, 1879, 112, 76, 436, 2626, 2129, + /* 1480 */ 2504, 160, 781, 162, 109, 1801, 1802, 1854, 427, 1856, + /* 1490 */ 1859, 1860, 1861, 1862, 1863, 1864, 1865, 1866, 777, 801, + /* 1500 */ 800, 1878, 1880, 1881, 1882, 1883, 2, 1988, 1987, 327, + /* 1510 */ 326, 329, 328, 292, 788, 761, 331, 330, 469, 1905, + /* 1520 */ 333, 332, 1921, 73, 2537, 1868, 2538, 2576, 335, 334, + /* 1530 */ 2360, 115, 2539, 785, 2541, 2542, 780, 1438, 803, 782, + /* 1540 */ 1669, 337, 336, 2603, 807, 2630, 160, 317, 2276, 436, + /* 1550 */ 2626, 791, 667, 666, 665, 162, 321, 2090, 1525, 657, + /* 1560 */ 145, 661, 339, 338, 708, 660, 142, 2556, 2665, 846, + /* 1570 */ 659, 664, 419, 418, 341, 340, 658, 160, 1439, 654, + /* 1580 */ 2504, 2675, 781, 343, 342, 757, 749, 1809, 2538, 345, + /* 1590 */ 344, 302, 752, 1455, 299, 306, 2192, 5, 358, 472, + /* 1600 */ 477, 782, 485, 407, 486, 1830, 497, 214, 496, 499, + /* 1610 */ 213, 1808, 216, 353, 1788, 2538, 1764, 1820, 1693, 1554, + /* 1620 */ 513, 1562, 1821, 520, 2537, 227, 522, 2576, 782, 2556, + /* 1630 */ 1569, 115, 2539, 785, 2541, 2542, 780, 526, 803, 528, + /* 1640 */ 568, 1567, 2504, 766, 781, 2630, 449, 448, 1789, 436, + /* 1650 */ 2626, 545, 165, 533, 556, 581, 2556, 2352, 558, 580, + /* 1660 */ 564, 567, 801, 800, 1878, 1880, 1881, 1882, 1883, 2504, + /* 1670 */ 578, 781, 569, 232, 233, 583, 235, 584, 586, 588, + /* 1680 */ 1828, 603, 4, 604, 611, 1823, 2537, 612, 614, 2576, + /* 1690 */ 243, 2538, 93, 116, 2539, 785, 2541, 2542, 780, 1829, + /* 1700 */ 803, 246, 616, 617, 782, 1831, 618, 2630, 249, 620, + /* 1710 */ 1832, 2629, 2626, 2537, 2368, 251, 2576, 94, 95, 626, + /* 1720 */ 116, 2539, 785, 2541, 2542, 780, 256, 803, 2538, 647, + /* 1730 */ 118, 649, 2556, 2220, 2630, 678, 679, 2435, 768, 2626, + /* 1740 */ 260, 779, 2216, 262, 168, 2504, 385, 781, 691, 169, + /* 1750 */ 2538, 2218, 2214, 170, 171, 693, 98, 156, 2432, 279, + /* 1760 */ 354, 1824, 2414, 782, 703, 702, 284, 282, 2538, 2556, + /* 1770 */ 2431, 707, 704, 733, 2680, 719, 789, 709, 710, 2679, + /* 1780 */ 8, 782, 2504, 742, 781, 2652, 289, 717, 718, 783, + /* 1790 */ 180, 2556, 2576, 720, 291, 293, 116, 2539, 785, 2541, + /* 1800 */ 2542, 780, 297, 803, 2504, 753, 781, 432, 296, 2556, + /* 1810 */ 2630, 2710, 2734, 298, 400, 2626, 1947, 750, 295, 1825, + /* 1820 */ 147, 2646, 2504, 1952, 781, 1, 2537, 192, 308, 2576, + /* 1830 */ 2538, 157, 61, 381, 2539, 785, 2541, 2542, 780, 778, + /* 1840 */ 803, 764, 2595, 782, 1950, 2611, 355, 787, 2537, 2382, + /* 1850 */ 2538, 2576, 2381, 2380, 356, 178, 2539, 785, 2541, 2542, + /* 1860 */ 780, 792, 803, 782, 301, 208, 2537, 2231, 442, 2576, + /* 1870 */ 159, 2556, 793, 116, 2539, 785, 2541, 2542, 780, 2496, + /* 1880 */ 803, 357, 106, 2495, 2504, 2491, 781, 2630, 2490, 2482, + /* 1890 */ 2481, 2556, 2627, 2473, 2472, 2488, 108, 805, 360, 2487, + /* 1900 */ 2479, 1360, 348, 893, 2504, 890, 781, 364, 895, 746, + /* 1910 */ 2732, 166, 384, 2478, 52, 362, 372, 2456, 2455, 2467, + /* 1920 */ 383, 2466, 2485, 373, 2484, 2454, 429, 2476, 2537, 405, + /* 1930 */ 2475, 2576, 2464, 2463, 82, 177, 2539, 785, 2541, 2542, + /* 1940 */ 780, 2538, 803, 2461, 2460, 406, 2280, 2449, 2537, 474, + /* 1950 */ 475, 2576, 1748, 1749, 782, 382, 2539, 785, 2541, 2542, + /* 1960 */ 780, 211, 803, 479, 2447, 481, 482, 483, 1747, 2446, + /* 1970 */ 408, 2444, 488, 2538, 490, 2442, 492, 2441, 2672, 2443, + /* 1980 */ 494, 1736, 2556, 2418, 215, 2417, 782, 217, 1696, 83, + /* 1990 */ 2395, 1695, 2394, 2393, 506, 2504, 507, 781, 2392, 2391, + /* 2000 */ 2342, 511, 2538, 514, 2338, 1639, 2339, 2332, 518, 517, + /* 2010 */ 2329, 220, 2328, 86, 2556, 782, 2327, 430, 2326, 2331, + /* 2020 */ 2330, 2538, 222, 2325, 2324, 2322, 2321, 2504, 2320, 781, + /* 2030 */ 224, 534, 2319, 536, 779, 226, 2300, 2299, 2298, 2537, + /* 2040 */ 2317, 2316, 2576, 2556, 2315, 2314, 382, 2539, 785, 2541, + /* 2050 */ 2542, 780, 2337, 803, 2313, 2312, 2504, 2311, 781, 2335, + /* 2060 */ 2318, 2310, 2556, 2309, 2308, 2306, 2305, 2304, 2303, 2302, + /* 2070 */ 2301, 2537, 92, 2297, 2576, 2504, 2296, 781, 375, 2539, + /* 2080 */ 785, 2541, 2542, 780, 2538, 803, 2336, 2334, 2295, 2294, + /* 2090 */ 2293, 231, 2292, 1645, 571, 2291, 573, 782, 2290, 2289, + /* 2100 */ 2537, 1496, 1500, 2576, 234, 697, 396, 178, 2539, 785, + /* 2110 */ 2541, 2542, 780, 2132, 803, 1492, 2131, 2130, 236, 2537, + /* 2120 */ 2128, 2125, 2576, 899, 741, 2556, 381, 2539, 785, 2541, + /* 2130 */ 2542, 780, 397, 803, 589, 2596, 590, 237, 2504, 352, + /* 2140 */ 781, 2124, 591, 2538, 593, 594, 2117, 595, 597, 2104, + /* 2150 */ 599, 601, 598, 2079, 239, 195, 782, 79, 187, 2524, + /* 2160 */ 439, 197, 2733, 2078, 887, 883, 879, 875, 2538, 349, + /* 2170 */ 241, 1384, 609, 80, 2416, 2412, 2402, 2390, 248, 2389, + /* 2180 */ 250, 782, 2537, 253, 2556, 2576, 2366, 2209, 2127, 382, + /* 2190 */ 2539, 785, 2541, 2542, 780, 2123, 803, 2504, 1431, 781, + /* 2200 */ 629, 627, 2538, 628, 2121, 631, 632, 633, 2119, 2556, + /* 2210 */ 114, 636, 637, 322, 2116, 782, 2099, 635, 639, 441, + /* 2220 */ 640, 2097, 2504, 2098, 781, 2096, 641, 2075, 2211, 1574, + /* 2230 */ 2210, 1573, 259, 72, 1482, 1481, 1479, 1477, 1476, 1475, + /* 2240 */ 1474, 2537, 1473, 2556, 2576, 862, 864, 795, 382, 2539, + /* 2250 */ 785, 2541, 2542, 780, 1470, 803, 2504, 1469, 781, 1468, + /* 2260 */ 2114, 1467, 420, 2112, 2103, 421, 690, 422, 673, 2576, + /* 2270 */ 2101, 423, 676, 377, 2539, 785, 2541, 2542, 780, 2074, + /* 2280 */ 803, 2073, 2072, 680, 2071, 682, 2070, 684, 119, 1730, + /* 2290 */ 1732, 310, 1729, 1734, 2415, 1706, 28, 1720, 309, 281, + /* 2300 */ 2537, 67, 2411, 2576, 1702, 1704, 2401, 367, 2539, 785, + /* 2310 */ 2541, 2542, 780, 2538, 803, 56, 285, 280, 57, 705, + /* 2320 */ 706, 2388, 2387, 1681, 695, 1680, 782, 2716, 20, 711, + /* 2330 */ 172, 713, 2538, 17, 2005, 721, 30, 428, 288, 6, + /* 2340 */ 1979, 723, 7, 725, 727, 782, 21, 290, 22, 191, + /* 2350 */ 202, 65, 1986, 2525, 2556, 1973, 32, 23, 179, 24, + /* 2360 */ 304, 2538, 2025, 190, 31, 81, 18, 2504, 2020, 781, + /* 2370 */ 2026, 2019, 433, 2556, 782, 2024, 2023, 434, 58, 1944, + /* 2380 */ 1943, 182, 59, 2386, 2365, 102, 2504, 103, 781, 25, + /* 2390 */ 1896, 11, 1895, 2538, 13, 1813, 1871, 814, 1906, 1870, + /* 2400 */ 817, 183, 2556, 820, 193, 2364, 782, 1869, 1847, 784, + /* 2410 */ 823, 2537, 38, 104, 2576, 2504, 16, 781, 366, 2539, + /* 2420 */ 785, 2541, 2542, 780, 26, 803, 109, 1839, 312, 323, + /* 2430 */ 2537, 804, 27, 2576, 2556, 1981, 194, 368, 2539, 785, + /* 2440 */ 2541, 2542, 780, 318, 803, 1873, 806, 2504, 69, 781, + /* 2450 */ 790, 105, 458, 320, 2581, 347, 810, 2580, 802, 2537, + /* 2460 */ 68, 808, 2576, 813, 816, 1555, 374, 2539, 785, 2541, + /* 2470 */ 2542, 780, 1552, 803, 811, 819, 1551, 1548, 1542, 822, + /* 2480 */ 1540, 829, 2538, 110, 1531, 111, 1568, 1564, 1546, 1545, + /* 2490 */ 1544, 2537, 1543, 1429, 2576, 782, 78, 1464, 378, 2539, + /* 2500 */ 785, 2541, 2542, 780, 839, 803, 1461, 1460, 1459, 1458, + /* 2510 */ 1456, 1454, 1453, 1452, 2538, 1490, 209, 850, 1489, 1450, + /* 2520 */ 1447, 852, 1449, 2556, 1448, 1446, 1445, 782, 1444, 1486, + /* 2530 */ 1484, 1441, 1440, 1435, 1437, 2122, 2504, 1436, 781, 1434, + /* 2540 */ 872, 2538, 2120, 873, 876, 2118, 874, 878, 882, 880, + /* 2550 */ 877, 2115, 881, 884, 782, 2556, 886, 2095, 888, 885, + /* 2560 */ 1373, 2069, 1361, 892, 2039, 351, 1799, 894, 2504, 361, + /* 2570 */ 781, 897, 898, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2580 */ 2537, 2039, 2556, 2576, 2039, 2039, 2039, 369, 2539, 785, + /* 2590 */ 2541, 2542, 780, 2039, 803, 2504, 2039, 781, 2039, 2039, + /* 2600 */ 2538, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2610 */ 2039, 2039, 2537, 782, 2039, 2576, 2039, 2538, 2039, 379, + /* 2620 */ 2539, 785, 2541, 2542, 780, 2039, 803, 2039, 2039, 2039, + /* 2630 */ 782, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2537, + /* 2640 */ 2039, 2556, 2576, 2039, 2039, 2039, 370, 2539, 785, 2541, + /* 2650 */ 2542, 780, 2039, 803, 2504, 2039, 781, 2039, 2556, 2039, + /* 2660 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2670 */ 2039, 2504, 2039, 781, 2039, 2039, 2538, 2039, 2039, 2039, + /* 2680 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 782, + /* 2690 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2537, 2039, + /* 2700 */ 2039, 2576, 2039, 2039, 2039, 380, 2539, 785, 2541, 2542, + /* 2710 */ 780, 2039, 803, 2039, 2039, 2537, 2039, 2556, 2576, 2039, + /* 2720 */ 2039, 2039, 371, 2539, 785, 2541, 2542, 780, 2039, 803, + /* 2730 */ 2504, 2039, 781, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2740 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2750 */ 2039, 2039, 2538, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2760 */ 2039, 2039, 2039, 2039, 2039, 782, 2039, 2039, 2039, 2039, + /* 2770 */ 2039, 2039, 2039, 2039, 2537, 2039, 2538, 2576, 2039, 2039, + /* 2780 */ 2039, 386, 2539, 785, 2541, 2542, 780, 2039, 803, 782, + /* 2790 */ 2039, 2039, 2538, 2556, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2800 */ 2039, 2039, 2039, 2039, 2039, 782, 2504, 2039, 781, 2039, + /* 2810 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2556, 2039, 2039, + /* 2820 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2830 */ 2504, 2039, 781, 2556, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2840 */ 2039, 2039, 2039, 2039, 2039, 2039, 2504, 2039, 781, 2039, + /* 2850 */ 2537, 2039, 2039, 2576, 2538, 2039, 2039, 387, 2539, 785, + /* 2860 */ 2541, 2542, 780, 2039, 803, 2039, 2039, 782, 2039, 2039, + /* 2870 */ 2039, 2039, 2039, 2039, 2537, 2039, 2039, 2576, 2039, 2039, + /* 2880 */ 2039, 2550, 2539, 785, 2541, 2542, 780, 2039, 803, 2039, + /* 2890 */ 2537, 2039, 2039, 2576, 2039, 2556, 2039, 2549, 2539, 785, + /* 2900 */ 2541, 2542, 780, 2039, 803, 2039, 2039, 2039, 2504, 2039, + /* 2910 */ 781, 2039, 2039, 2538, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2920 */ 2039, 2039, 2039, 2039, 2039, 2039, 782, 2039, 2039, 2538, + /* 2930 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2940 */ 2039, 2039, 782, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2950 */ 2039, 2039, 2537, 2039, 2556, 2576, 2039, 2039, 2039, 2548, + /* 2960 */ 2539, 785, 2541, 2542, 780, 2039, 803, 2504, 2039, 781, + /* 2970 */ 2556, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 2980 */ 2039, 2039, 2039, 2504, 2039, 781, 2039, 2039, 2039, 2039, + /* 2990 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 3000 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 3010 */ 2039, 2537, 2039, 2538, 2576, 2039, 2039, 2039, 402, 2539, + /* 3020 */ 785, 2541, 2542, 780, 2039, 803, 782, 2537, 2039, 2039, + /* 3030 */ 2576, 2039, 2538, 2039, 403, 2539, 785, 2541, 2542, 780, + /* 3040 */ 2039, 803, 2039, 2039, 2039, 782, 2039, 2039, 2538, 2039, + /* 3050 */ 2039, 2039, 2039, 2039, 2556, 2039, 2039, 2039, 2039, 2039, + /* 3060 */ 2039, 782, 2039, 2039, 2039, 2039, 2039, 2504, 2039, 781, + /* 3070 */ 2039, 2039, 2039, 2556, 2039, 2039, 2039, 2039, 2039, 2039, + /* 3080 */ 2039, 2039, 2039, 2039, 2039, 2039, 2504, 2039, 781, 2556, + /* 3090 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 3100 */ 2039, 2039, 2504, 2039, 781, 2039, 2039, 2039, 2039, 2039, + /* 3110 */ 2039, 2537, 2039, 2039, 2576, 2039, 2039, 2039, 399, 2539, + /* 3120 */ 785, 2541, 2542, 780, 2039, 803, 2039, 2039, 2039, 2039, + /* 3130 */ 2537, 2039, 2039, 2576, 2039, 2538, 2039, 404, 2539, 785, + /* 3140 */ 2541, 2542, 780, 2039, 803, 2039, 783, 2039, 782, 2576, + /* 3150 */ 2039, 2039, 2039, 377, 2539, 785, 2541, 2542, 780, 2039, + /* 3160 */ 803, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 3170 */ 2039, 2039, 2039, 2039, 2039, 2039, 2556, 2039, 2039, 2039, + /* 3180 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2504, + /* 3190 */ 2039, 781, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 3200 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 3210 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 3220 */ 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, 2039, + /* 3230 */ 2039, 2039, 2039, 2537, 2039, 2039, 2576, 2039, 2039, 2039, + /* 3240 */ 376, 2539, 785, 2541, 2542, 780, 2039, 803, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 400, 435, 477, 478, 488, 365, 440, 491, 368, 369, - /* 10 */ 413, 391, 12, 13, 14, 401, 400, 399, 404, 399, - /* 20 */ 20, 0, 22, 370, 371, 509, 510, 407, 431, 432, - /* 30 */ 514, 515, 0, 401, 20, 35, 0, 37, 14, 421, - /* 40 */ 413, 423, 21, 358, 20, 24, 25, 26, 27, 28, - /* 50 */ 29, 30, 31, 32, 488, 428, 371, 491, 431, 432, - /* 60 */ 20, 23, 8, 9, 20, 65, 12, 13, 14, 15, - /* 70 */ 16, 71, 458, 453, 454, 509, 510, 371, 78, 20, - /* 80 */ 514, 515, 399, 469, 399, 47, 48, 8, 9, 406, - /* 90 */ 458, 12, 13, 14, 15, 16, 411, 414, 413, 365, - /* 100 */ 399, 469, 368, 369, 104, 399, 380, 107, 20, 73, - /* 110 */ 74, 75, 76, 77, 388, 79, 80, 81, 82, 83, + /* 0 */ 401, 436, 399, 404, 365, 400, 441, 368, 369, 406, + /* 10 */ 436, 400, 12, 13, 14, 370, 0, 2, 415, 408, + /* 20 */ 20, 20, 22, 8, 9, 399, 436, 12, 13, 14, + /* 30 */ 15, 16, 0, 2, 20, 35, 0, 37, 4, 8, + /* 40 */ 9, 414, 358, 12, 13, 14, 15, 16, 422, 357, + /* 50 */ 424, 359, 370, 371, 489, 371, 429, 492, 459, 432, + /* 60 */ 433, 416, 417, 489, 419, 65, 492, 51, 423, 470, + /* 70 */ 399, 71, 12, 13, 20, 510, 511, 406, 78, 489, + /* 80 */ 515, 516, 492, 399, 510, 511, 415, 8, 9, 515, + /* 90 */ 516, 12, 13, 14, 15, 16, 412, 37, 414, 365, + /* 100 */ 510, 511, 368, 369, 104, 515, 516, 107, 107, 73, + /* 110 */ 74, 75, 76, 77, 399, 79, 80, 81, 82, 83, /* 120 */ 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, - /* 130 */ 94, 95, 96, 97, 98, 99, 100, 484, 485, 486, - /* 140 */ 455, 488, 489, 458, 491, 145, 146, 462, 463, 464, - /* 150 */ 465, 466, 467, 18, 469, 454, 391, 401, 23, 474, - /* 160 */ 33, 476, 509, 510, 399, 480, 481, 514, 515, 51, - /* 170 */ 464, 488, 407, 107, 491, 40, 41, 20, 60, 44, - /* 180 */ 495, 63, 64, 183, 184, 145, 146, 108, 503, 54, - /* 190 */ 190, 191, 509, 510, 4, 107, 164, 514, 515, 69, - /* 200 */ 168, 66, 67, 68, 69, 205, 409, 207, 176, 412, - /* 210 */ 413, 8, 9, 23, 458, 12, 13, 14, 15, 16, - /* 220 */ 357, 370, 359, 21, 3, 469, 24, 25, 26, 27, - /* 230 */ 28, 29, 30, 31, 32, 108, 46, 47, 48, 239, + /* 130 */ 94, 95, 96, 97, 98, 99, 100, 370, 371, 424, + /* 140 */ 456, 107, 20, 459, 22, 145, 146, 463, 464, 465, + /* 150 */ 466, 467, 468, 18, 470, 49, 14, 390, 23, 475, + /* 160 */ 489, 477, 20, 492, 397, 481, 482, 485, 486, 487, + /* 170 */ 20, 489, 490, 33, 492, 40, 41, 55, 371, 44, + /* 180 */ 496, 510, 511, 183, 184, 45, 515, 516, 504, 54, + /* 190 */ 190, 191, 510, 511, 370, 371, 164, 515, 516, 0, + /* 200 */ 168, 66, 67, 68, 69, 205, 399, 207, 176, 370, + /* 210 */ 371, 8, 9, 107, 390, 12, 13, 14, 15, 16, + /* 220 */ 21, 397, 20, 24, 25, 26, 27, 28, 29, 30, + /* 230 */ 31, 32, 138, 139, 140, 141, 142, 143, 144, 239, /* 240 */ 240, 241, 107, 243, 244, 245, 246, 247, 248, 249, /* 250 */ 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, - /* 260 */ 260, 12, 13, 0, 386, 20, 18, 389, 20, 20, - /* 270 */ 204, 22, 206, 366, 71, 27, 370, 370, 30, 372, - /* 280 */ 370, 371, 147, 35, 35, 241, 37, 24, 25, 26, - /* 290 */ 27, 28, 29, 30, 31, 32, 445, 446, 2, 51, - /* 300 */ 390, 53, 236, 20, 8, 9, 58, 59, 12, 13, - /* 310 */ 14, 15, 16, 488, 65, 20, 491, 69, 115, 366, - /* 320 */ 71, 415, 416, 370, 418, 372, 20, 78, 422, 399, - /* 330 */ 200, 0, 197, 198, 199, 510, 406, 202, 377, 514, - /* 340 */ 515, 8, 9, 277, 414, 12, 13, 14, 15, 16, - /* 350 */ 215, 216, 107, 104, 106, 394, 107, 227, 228, 104, - /* 360 */ 14, 226, 398, 402, 229, 117, 20, 232, 233, 234, - /* 370 */ 235, 236, 399, 118, 410, 120, 121, 122, 123, 124, + /* 260 */ 260, 12, 13, 0, 185, 37, 18, 207, 20, 20, + /* 270 */ 20, 22, 465, 20, 71, 27, 489, 410, 30, 492, + /* 280 */ 413, 414, 147, 35, 35, 20, 37, 24, 25, 26, + /* 290 */ 27, 28, 29, 30, 31, 32, 391, 510, 511, 51, + /* 300 */ 70, 53, 515, 516, 399, 401, 58, 59, 0, 20, + /* 310 */ 70, 277, 407, 20, 65, 22, 22, 69, 115, 261, + /* 320 */ 71, 478, 479, 484, 485, 486, 487, 78, 489, 490, + /* 330 */ 37, 37, 197, 198, 199, 185, 21, 202, 20, 24, + /* 340 */ 25, 26, 27, 28, 29, 30, 31, 32, 55, 14, + /* 350 */ 215, 216, 107, 104, 106, 20, 107, 107, 37, 104, + /* 360 */ 14, 226, 401, 459, 229, 117, 20, 232, 233, 234, + /* 370 */ 235, 236, 78, 118, 470, 120, 121, 122, 123, 124, /* 380 */ 125, 126, 127, 128, 129, 182, 131, 132, 133, 134, - /* 390 */ 135, 136, 137, 14, 145, 146, 423, 149, 150, 20, + /* 390 */ 135, 136, 137, 69, 145, 146, 117, 149, 150, 78, /* 400 */ 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, - /* 410 */ 12, 13, 277, 165, 166, 167, 168, 169, 170, 171, - /* 420 */ 70, 173, 174, 175, 4, 370, 371, 179, 180, 181, - /* 430 */ 239, 379, 183, 184, 186, 37, 0, 8, 9, 190, - /* 440 */ 191, 12, 13, 14, 15, 16, 139, 140, 396, 20, - /* 450 */ 20, 144, 2, 117, 205, 20, 207, 405, 8, 9, - /* 460 */ 370, 371, 12, 13, 14, 15, 16, 264, 265, 266, - /* 470 */ 267, 268, 269, 270, 271, 272, 273, 274, 183, 184, - /* 480 */ 289, 290, 291, 292, 293, 294, 295, 51, 239, 240, - /* 490 */ 241, 185, 243, 244, 245, 246, 247, 248, 249, 250, + /* 410 */ 145, 146, 277, 165, 166, 167, 168, 169, 170, 171, + /* 420 */ 459, 173, 174, 175, 358, 107, 138, 179, 180, 181, + /* 430 */ 142, 470, 183, 184, 186, 207, 20, 8, 9, 190, + /* 440 */ 191, 12, 13, 14, 15, 16, 138, 139, 140, 141, + /* 450 */ 142, 143, 144, 20, 205, 462, 207, 12, 13, 14, + /* 460 */ 15, 16, 33, 107, 436, 237, 238, 264, 265, 266, + /* 470 */ 267, 268, 269, 270, 271, 272, 273, 274, 412, 8, + /* 480 */ 9, 488, 87, 12, 13, 14, 15, 16, 239, 240, + /* 490 */ 241, 20, 243, 244, 245, 246, 247, 248, 249, 250, /* 500 */ 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, - /* 510 */ 261, 12, 13, 358, 140, 20, 399, 22, 144, 20, - /* 520 */ 299, 22, 277, 406, 107, 488, 371, 107, 491, 183, - /* 530 */ 197, 414, 37, 35, 35, 13, 37, 107, 4, 484, - /* 540 */ 485, 486, 358, 488, 489, 370, 371, 510, 261, 51, - /* 550 */ 55, 514, 515, 19, 399, 371, 1, 2, 60, 61, - /* 560 */ 62, 63, 231, 65, 65, 390, 411, 22, 413, 35, - /* 570 */ 71, 107, 189, 483, 484, 485, 486, 78, 488, 489, - /* 580 */ 145, 146, 37, 399, 65, 51, 370, 241, 214, 370, - /* 590 */ 371, 217, 58, 59, 220, 411, 222, 413, 3, 65, - /* 600 */ 78, 358, 14, 104, 106, 207, 107, 109, 20, 390, - /* 610 */ 455, 37, 461, 458, 185, 20, 397, 462, 463, 464, - /* 620 */ 465, 466, 467, 78, 469, 190, 191, 472, 109, 474, - /* 630 */ 475, 476, 370, 371, 33, 480, 481, 304, 487, 455, - /* 640 */ 106, 395, 458, 109, 145, 146, 462, 463, 464, 465, - /* 650 */ 466, 467, 390, 469, 411, 370, 371, 37, 474, 397, - /* 660 */ 476, 445, 446, 108, 480, 481, 283, 284, 285, 286, - /* 670 */ 241, 370, 371, 8, 9, 390, 178, 12, 13, 14, - /* 680 */ 15, 16, 183, 184, 358, 187, 188, 503, 4, 190, - /* 690 */ 191, 390, 194, 195, 277, 21, 450, 277, 33, 20, - /* 700 */ 104, 22, 0, 108, 205, 87, 207, 277, 370, 108, - /* 710 */ 36, 213, 38, 39, 40, 70, 120, 121, 122, 123, - /* 720 */ 124, 125, 126, 127, 128, 129, 358, 131, 132, 133, - /* 730 */ 134, 135, 136, 137, 55, 370, 371, 411, 239, 240, - /* 740 */ 241, 277, 243, 244, 245, 246, 247, 248, 249, 250, + /* 510 */ 261, 12, 13, 358, 78, 391, 387, 489, 183, 20, + /* 520 */ 492, 22, 277, 399, 200, 117, 371, 277, 377, 183, + /* 530 */ 241, 407, 391, 35, 35, 34, 37, 108, 510, 511, + /* 540 */ 399, 412, 358, 515, 516, 394, 151, 22, 407, 51, + /* 550 */ 370, 227, 228, 402, 399, 371, 0, 399, 60, 61, + /* 560 */ 62, 63, 37, 65, 65, 370, 4, 412, 399, 414, + /* 570 */ 71, 176, 177, 73, 74, 75, 241, 78, 454, 455, + /* 580 */ 80, 81, 82, 399, 415, 23, 86, 241, 459, 460, + /* 590 */ 22, 91, 92, 93, 94, 277, 412, 97, 414, 470, + /* 600 */ 100, 185, 0, 104, 106, 37, 107, 109, 46, 47, + /* 610 */ 48, 456, 489, 455, 459, 492, 183, 184, 463, 464, + /* 620 */ 465, 466, 467, 468, 358, 470, 446, 447, 473, 104, + /* 630 */ 475, 476, 477, 277, 511, 33, 481, 482, 515, 516, + /* 640 */ 456, 446, 447, 459, 145, 146, 78, 463, 464, 465, + /* 650 */ 466, 467, 468, 442, 470, 355, 185, 241, 20, 475, + /* 660 */ 3, 477, 33, 8, 9, 481, 482, 12, 13, 14, + /* 670 */ 15, 16, 104, 14, 15, 16, 178, 20, 412, 370, + /* 680 */ 371, 489, 183, 184, 492, 187, 188, 22, 504, 190, + /* 690 */ 191, 414, 194, 195, 138, 139, 140, 141, 142, 143, + /* 700 */ 144, 104, 37, 511, 205, 380, 207, 515, 516, 432, + /* 710 */ 433, 213, 241, 388, 370, 370, 371, 120, 121, 122, + /* 720 */ 123, 124, 125, 126, 127, 128, 129, 20, 131, 132, + /* 730 */ 133, 134, 135, 136, 137, 390, 436, 108, 239, 240, + /* 740 */ 241, 441, 243, 244, 245, 246, 247, 248, 249, 250, /* 750 */ 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, - /* 760 */ 12, 13, 14, 358, 426, 427, 370, 371, 20, 151, - /* 770 */ 22, 183, 70, 108, 370, 371, 371, 358, 373, 411, - /* 780 */ 185, 207, 139, 35, 399, 37, 12, 13, 14, 15, - /* 790 */ 16, 406, 358, 472, 176, 177, 475, 370, 371, 414, - /* 800 */ 78, 73, 74, 75, 399, 371, 0, 373, 80, 81, - /* 810 */ 82, 237, 238, 65, 86, 419, 411, 390, 413, 91, - /* 820 */ 92, 93, 94, 419, 355, 97, 78, 207, 100, 241, - /* 830 */ 411, 22, 0, 399, 8, 9, 370, 371, 12, 13, - /* 840 */ 14, 15, 16, 182, 138, 411, 37, 413, 142, 484, - /* 850 */ 485, 486, 104, 488, 489, 107, 390, 237, 238, 358, - /* 860 */ 455, 218, 219, 458, 358, 358, 37, 462, 463, 464, - /* 870 */ 465, 466, 467, 0, 469, 370, 371, 371, 261, 474, - /* 880 */ 263, 476, 370, 371, 52, 480, 481, 78, 399, 455, - /* 890 */ 412, 413, 458, 145, 146, 390, 462, 463, 464, 465, - /* 900 */ 466, 467, 390, 469, 435, 399, 435, 78, 474, 440, - /* 910 */ 476, 117, 411, 104, 480, 481, 20, 411, 411, 413, - /* 920 */ 370, 371, 8, 9, 34, 264, 12, 13, 14, 15, - /* 930 */ 16, 183, 184, 50, 108, 274, 370, 371, 190, 191, - /* 940 */ 390, 400, 453, 454, 138, 139, 140, 141, 142, 143, - /* 950 */ 144, 56, 57, 205, 400, 207, 390, 488, 387, 488, - /* 960 */ 491, 455, 491, 279, 458, 14, 15, 16, 462, 463, - /* 970 */ 464, 465, 466, 467, 468, 469, 470, 471, 509, 510, - /* 980 */ 509, 510, 411, 514, 515, 514, 515, 239, 240, 241, - /* 990 */ 377, 243, 244, 245, 246, 247, 248, 249, 250, 251, + /* 760 */ 12, 13, 14, 358, 0, 108, 387, 37, 20, 104, + /* 770 */ 22, 427, 428, 205, 398, 207, 371, 239, 373, 388, + /* 780 */ 366, 370, 371, 35, 370, 37, 372, 411, 13, 489, + /* 790 */ 4, 412, 492, 399, 485, 486, 487, 400, 489, 490, + /* 800 */ 406, 390, 65, 386, 399, 19, 389, 239, 240, 415, + /* 810 */ 510, 511, 37, 65, 366, 515, 516, 412, 370, 414, + /* 820 */ 372, 35, 399, 185, 370, 371, 78, 289, 290, 291, + /* 830 */ 292, 293, 294, 295, 70, 358, 379, 51, 459, 460, + /* 840 */ 461, 21, 185, 106, 58, 59, 109, 400, 371, 470, + /* 850 */ 373, 65, 104, 396, 51, 107, 36, 379, 38, 39, + /* 860 */ 40, 456, 405, 60, 459, 178, 63, 64, 463, 464, + /* 870 */ 465, 466, 467, 468, 420, 470, 399, 454, 455, 241, + /* 880 */ 475, 104, 477, 405, 370, 371, 481, 482, 189, 412, + /* 890 */ 183, 414, 106, 145, 146, 109, 209, 120, 121, 122, + /* 900 */ 123, 124, 125, 126, 127, 128, 129, 400, 131, 132, + /* 910 */ 133, 134, 135, 136, 137, 178, 107, 8, 9, 399, + /* 920 */ 462, 12, 13, 14, 15, 16, 406, 370, 371, 370, + /* 930 */ 371, 183, 184, 456, 420, 415, 459, 207, 190, 191, + /* 940 */ 463, 464, 465, 466, 467, 468, 488, 470, 241, 390, + /* 950 */ 39, 40, 475, 205, 477, 207, 8, 9, 481, 482, + /* 960 */ 12, 13, 14, 15, 16, 1, 2, 237, 238, 400, + /* 970 */ 8, 9, 50, 358, 12, 13, 14, 15, 16, 400, + /* 980 */ 436, 358, 283, 284, 285, 286, 371, 239, 240, 241, + /* 990 */ 359, 243, 244, 245, 246, 247, 248, 249, 250, 251, /* 1000 */ 252, 253, 254, 255, 256, 257, 258, 259, 260, 12, - /* 1010 */ 13, 65, 358, 435, 205, 402, 207, 20, 387, 22, - /* 1020 */ 358, 370, 371, 370, 371, 371, 400, 373, 435, 458, - /* 1030 */ 459, 460, 35, 0, 37, 162, 163, 370, 371, 399, - /* 1040 */ 469, 358, 411, 390, 358, 375, 376, 407, 239, 240, - /* 1050 */ 375, 376, 106, 399, 371, 109, 373, 390, 370, 371, - /* 1060 */ 370, 371, 65, 370, 371, 411, 488, 413, 185, 491, - /* 1070 */ 419, 370, 371, 411, 408, 78, 193, 411, 390, 183, - /* 1080 */ 390, 488, 399, 390, 491, 370, 371, 509, 510, 458, - /* 1090 */ 459, 390, 514, 515, 411, 42, 413, 411, 391, 185, - /* 1100 */ 469, 104, 509, 510, 107, 390, 399, 514, 515, 455, - /* 1110 */ 461, 20, 458, 358, 407, 20, 462, 463, 464, 465, - /* 1120 */ 466, 467, 441, 469, 178, 22, 371, 20, 474, 399, - /* 1130 */ 476, 370, 371, 358, 480, 481, 487, 241, 455, 461, - /* 1140 */ 37, 458, 145, 146, 414, 462, 463, 464, 465, 466, - /* 1150 */ 467, 390, 469, 435, 399, 435, 20, 474, 473, 476, - /* 1160 */ 475, 358, 391, 480, 481, 487, 411, 473, 413, 475, - /* 1170 */ 399, 138, 139, 140, 141, 142, 143, 144, 407, 379, - /* 1180 */ 183, 184, 384, 385, 399, 22, 411, 190, 191, 39, - /* 1190 */ 40, 33, 138, 139, 140, 141, 142, 143, 144, 414, - /* 1200 */ 37, 13, 205, 45, 207, 405, 488, 104, 488, 491, - /* 1210 */ 455, 491, 358, 458, 411, 33, 358, 462, 463, 464, - /* 1220 */ 465, 466, 467, 37, 469, 37, 358, 509, 510, 509, - /* 1230 */ 510, 400, 514, 515, 514, 515, 239, 240, 241, 178, + /* 1010 */ 13, 358, 3, 204, 399, 206, 0, 20, 473, 22, + /* 1020 */ 436, 476, 111, 112, 371, 114, 373, 412, 20, 414, + /* 1030 */ 370, 371, 35, 489, 37, 412, 492, 370, 371, 370, + /* 1040 */ 371, 4, 485, 486, 487, 236, 489, 490, 519, 138, + /* 1050 */ 390, 358, 399, 142, 510, 511, 108, 390, 425, 515, + /* 1060 */ 516, 391, 65, 139, 140, 412, 139, 414, 144, 399, + /* 1070 */ 108, 456, 108, 489, 459, 78, 492, 407, 463, 464, + /* 1080 */ 465, 466, 467, 468, 140, 470, 277, 358, 144, 420, + /* 1090 */ 475, 261, 477, 263, 510, 511, 481, 482, 13, 515, + /* 1100 */ 516, 104, 370, 371, 107, 412, 197, 185, 0, 456, + /* 1110 */ 462, 358, 459, 370, 371, 193, 463, 464, 465, 466, + /* 1120 */ 467, 468, 390, 470, 371, 474, 373, 476, 475, 358, + /* 1130 */ 477, 370, 371, 390, 481, 482, 488, 12, 13, 370, + /* 1140 */ 371, 412, 145, 146, 14, 218, 219, 22, 370, 371, + /* 1150 */ 20, 390, 399, 145, 146, 370, 371, 65, 214, 390, + /* 1160 */ 35, 217, 37, 78, 220, 412, 222, 414, 390, 370, + /* 1170 */ 371, 395, 370, 371, 508, 390, 370, 371, 162, 163, + /* 1180 */ 183, 184, 182, 412, 20, 370, 371, 190, 191, 390, + /* 1190 */ 65, 474, 390, 476, 413, 414, 390, 501, 190, 191, + /* 1200 */ 23, 109, 205, 78, 207, 390, 370, 371, 42, 456, + /* 1210 */ 56, 57, 459, 304, 20, 358, 463, 464, 465, 466, + /* 1220 */ 467, 468, 358, 470, 47, 48, 390, 451, 475, 104, + /* 1230 */ 477, 358, 358, 358, 481, 482, 239, 240, 241, 358, /* 1240 */ 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, /* 1250 */ 253, 254, 255, 256, 257, 258, 259, 260, 12, 13, - /* 1260 */ 358, 111, 112, 358, 114, 411, 20, 104, 22, 411, - /* 1270 */ 209, 516, 517, 371, 358, 373, 185, 358, 0, 411, - /* 1280 */ 185, 35, 358, 37, 358, 358, 408, 399, 138, 411, - /* 1290 */ 358, 117, 142, 384, 385, 408, 392, 33, 411, 395, - /* 1300 */ 33, 399, 414, 371, 13, 373, 361, 362, 0, 275, - /* 1310 */ 276, 65, 45, 411, 110, 413, 411, 113, 110, 110, - /* 1320 */ 42, 113, 113, 110, 78, 0, 113, 411, 37, 276, - /* 1330 */ 411, 399, 241, 0, 0, 411, 241, 411, 411, 0, - /* 1340 */ 221, 33, 223, 411, 33, 413, 172, 22, 241, 33, - /* 1350 */ 104, 33, 33, 107, 400, 22, 22, 455, 49, 33, - /* 1360 */ 458, 22, 145, 146, 462, 463, 464, 465, 466, 467, - /* 1370 */ 388, 469, 108, 33, 1, 2, 474, 241, 476, 12, - /* 1380 */ 13, 71, 480, 481, 33, 33, 33, 455, 359, 22, - /* 1390 */ 458, 145, 146, 207, 462, 463, 464, 465, 466, 467, - /* 1400 */ 37, 469, 35, 33, 37, 33, 474, 33, 476, 33, - /* 1410 */ 12, 13, 480, 481, 13, 358, 107, 12, 13, 108, - /* 1420 */ 12, 13, 12, 13, 108, 424, 108, 108, 371, 183, - /* 1430 */ 184, 13, 65, 12, 13, 33, 190, 191, 37, 12, - /* 1440 */ 13, 12, 13, 107, 507, 78, 12, 13, 108, 12, - /* 1450 */ 13, 205, 116, 207, 0, 37, 399, 518, 500, 108, - /* 1460 */ 108, 108, 12, 13, 12, 13, 33, 374, 411, 33, - /* 1470 */ 413, 104, 37, 399, 387, 33, 387, 369, 108, 424, - /* 1480 */ 108, 33, 108, 301, 108, 239, 240, 241, 424, 243, + /* 1260 */ 370, 371, 370, 371, 264, 358, 20, 409, 22, 412, + /* 1270 */ 412, 358, 358, 358, 274, 358, 412, 358, 371, 377, + /* 1280 */ 390, 35, 390, 37, 358, 412, 412, 412, 358, 384, + /* 1290 */ 385, 387, 358, 412, 399, 375, 376, 399, 375, 376, + /* 1300 */ 384, 385, 361, 362, 402, 371, 399, 373, 299, 399, + /* 1310 */ 415, 65, 409, 415, 0, 412, 279, 407, 33, 412, + /* 1320 */ 392, 414, 33, 395, 78, 412, 412, 412, 33, 412, + /* 1330 */ 205, 412, 207, 399, 409, 275, 276, 412, 412, 231, + /* 1340 */ 45, 117, 412, 221, 110, 223, 412, 113, 414, 110, + /* 1350 */ 104, 71, 113, 107, 358, 110, 42, 110, 113, 33, + /* 1360 */ 113, 13, 0, 456, 239, 240, 459, 371, 33, 373, + /* 1370 */ 463, 464, 465, 466, 467, 468, 374, 470, 253, 254, + /* 1380 */ 255, 256, 257, 258, 259, 37, 145, 146, 1, 2, + /* 1390 */ 456, 145, 146, 459, 33, 399, 172, 463, 464, 465, + /* 1400 */ 466, 467, 468, 0, 470, 241, 0, 387, 412, 475, + /* 1410 */ 414, 477, 505, 506, 52, 481, 482, 37, 399, 425, + /* 1420 */ 369, 12, 13, 0, 13, 22, 358, 0, 22, 183, + /* 1430 */ 184, 22, 33, 33, 108, 241, 190, 191, 33, 371, + /* 1440 */ 33, 37, 276, 108, 35, 22, 37, 33, 37, 22, + /* 1450 */ 33, 205, 456, 207, 425, 459, 12, 13, 507, 463, + /* 1460 */ 464, 465, 466, 467, 468, 33, 470, 399, 507, 108, + /* 1470 */ 507, 475, 33, 477, 65, 107, 33, 481, 482, 0, + /* 1480 */ 412, 33, 414, 33, 116, 239, 240, 241, 435, 243, /* 1490 */ 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, - /* 1500 */ 254, 255, 256, 257, 258, 259, 260, 12, 13, 33, - /* 1510 */ 108, 506, 455, 78, 506, 458, 506, 22, 434, 462, - /* 1520 */ 463, 464, 465, 466, 467, 506, 469, 73, 74, 75, - /* 1530 */ 35, 474, 37, 476, 80, 81, 82, 480, 481, 358, - /* 1540 */ 86, 108, 374, 371, 108, 91, 92, 93, 94, 239, - /* 1550 */ 108, 97, 371, 424, 100, 410, 108, 442, 424, 424, - /* 1560 */ 65, 490, 511, 358, 482, 493, 389, 280, 436, 51, - /* 1570 */ 207, 457, 205, 42, 207, 20, 371, 456, 447, 220, - /* 1580 */ 399, 379, 452, 203, 108, 447, 379, 438, 20, 370, - /* 1590 */ 20, 371, 411, 45, 413, 420, 371, 182, 420, 358, - /* 1600 */ 417, 370, 417, 371, 399, 370, 239, 240, 417, 420, - /* 1610 */ 417, 105, 371, 383, 103, 382, 411, 370, 413, 102, - /* 1620 */ 253, 254, 255, 256, 257, 258, 259, 370, 370, 303, - /* 1630 */ 381, 370, 20, 363, 50, 367, 455, 363, 367, 458, - /* 1640 */ 399, 447, 379, 462, 463, 464, 465, 466, 467, 20, - /* 1650 */ 469, 379, 411, 413, 413, 474, 379, 476, 20, 20, - /* 1660 */ 455, 480, 481, 458, 372, 437, 20, 462, 463, 464, - /* 1670 */ 465, 466, 467, 379, 469, 372, 379, 427, 379, 474, - /* 1680 */ 379, 476, 370, 379, 363, 480, 481, 399, 399, 399, - /* 1690 */ 370, 361, 399, 361, 399, 399, 455, 399, 363, 458, - /* 1700 */ 205, 399, 207, 462, 463, 464, 465, 466, 467, 224, - /* 1710 */ 469, 411, 399, 399, 399, 107, 358, 476, 411, 377, - /* 1720 */ 451, 480, 481, 447, 449, 20, 446, 211, 411, 371, - /* 1730 */ 444, 210, 237, 238, 239, 370, 413, 377, 411, 288, - /* 1740 */ 287, 436, 499, 499, 502, 296, 358, 196, 253, 254, - /* 1750 */ 255, 256, 257, 258, 259, 501, 298, 399, 429, 371, - /* 1760 */ 429, 499, 297, 498, 281, 443, 305, 519, 302, 411, - /* 1770 */ 497, 413, 513, 436, 300, 496, 276, 371, 512, 20, - /* 1780 */ 117, 278, 107, 372, 377, 461, 377, 399, 411, 358, - /* 1790 */ 429, 429, 411, 411, 411, 411, 425, 188, 395, 411, - /* 1800 */ 494, 413, 371, 377, 411, 377, 411, 479, 411, 371, - /* 1810 */ 411, 411, 22, 455, 107, 411, 458, 403, 377, 38, - /* 1820 */ 462, 463, 464, 465, 466, 467, 439, 469, 411, 0, - /* 1830 */ 399, 411, 360, 492, 476, 411, 411, 364, 480, 481, - /* 1840 */ 363, 411, 411, 455, 413, 370, 458, 0, 356, 358, - /* 1850 */ 462, 463, 464, 465, 466, 467, 411, 469, 411, 378, - /* 1860 */ 448, 0, 371, 45, 476, 0, 411, 411, 480, 481, - /* 1870 */ 411, 358, 393, 411, 411, 411, 430, 393, 411, 411, - /* 1880 */ 411, 411, 393, 37, 371, 230, 455, 430, 37, 458, - /* 1890 */ 399, 37, 37, 462, 463, 464, 465, 466, 467, 230, - /* 1900 */ 469, 0, 411, 37, 413, 37, 230, 37, 0, 230, - /* 1910 */ 0, 37, 399, 37, 0, 22, 0, 37, 225, 0, - /* 1920 */ 0, 213, 213, 207, 411, 0, 413, 214, 205, 0, - /* 1930 */ 0, 0, 201, 200, 0, 504, 505, 0, 49, 150, - /* 1940 */ 49, 0, 37, 0, 0, 51, 455, 49, 37, 458, - /* 1950 */ 0, 358, 0, 462, 463, 464, 465, 466, 467, 0, - /* 1960 */ 469, 0, 45, 0, 371, 0, 0, 476, 455, 0, - /* 1970 */ 49, 458, 481, 168, 0, 462, 463, 464, 465, 466, - /* 1980 */ 467, 358, 469, 0, 0, 0, 37, 168, 0, 0, - /* 1990 */ 0, 0, 399, 45, 371, 0, 0, 0, 0, 358, - /* 2000 */ 0, 0, 0, 0, 411, 0, 413, 0, 0, 0, - /* 2010 */ 0, 0, 371, 0, 0, 0, 49, 0, 505, 0, - /* 2020 */ 0, 0, 399, 0, 0, 0, 433, 0, 22, 358, - /* 2030 */ 0, 150, 149, 0, 411, 148, 413, 0, 0, 0, - /* 2040 */ 399, 65, 371, 0, 22, 65, 0, 65, 455, 50, - /* 2050 */ 22, 458, 411, 0, 413, 462, 463, 464, 465, 466, - /* 2060 */ 467, 0, 469, 37, 0, 0, 50, 0, 37, 51, - /* 2070 */ 399, 42, 37, 37, 433, 196, 42, 0, 455, 37, - /* 2080 */ 33, 458, 411, 51, 413, 462, 463, 464, 465, 466, - /* 2090 */ 467, 51, 469, 42, 45, 14, 455, 42, 0, 458, - /* 2100 */ 43, 49, 42, 462, 463, 464, 465, 466, 467, 358, - /* 2110 */ 469, 49, 49, 0, 0, 0, 0, 0, 49, 0, - /* 2120 */ 42, 0, 371, 37, 51, 42, 455, 0, 358, 458, - /* 2130 */ 72, 508, 0, 462, 463, 464, 465, 466, 467, 0, - /* 2140 */ 469, 371, 51, 37, 42, 0, 358, 37, 51, 42, - /* 2150 */ 399, 0, 51, 42, 0, 37, 0, 0, 0, 371, - /* 2160 */ 0, 0, 411, 115, 413, 37, 22, 113, 0, 399, - /* 2170 */ 37, 37, 37, 37, 37, 37, 33, 37, 37, 33, - /* 2180 */ 0, 411, 0, 413, 37, 37, 22, 399, 517, 37, - /* 2190 */ 0, 22, 22, 22, 0, 53, 22, 0, 0, 411, - /* 2200 */ 37, 413, 0, 433, 37, 0, 455, 22, 1, 458, - /* 2210 */ 37, 0, 20, 462, 463, 464, 465, 466, 467, 107, - /* 2220 */ 469, 433, 471, 37, 37, 455, 19, 0, 458, 185, - /* 2230 */ 37, 107, 462, 463, 464, 465, 466, 467, 108, 469, - /* 2240 */ 118, 0, 35, 455, 119, 49, 458, 37, 358, 0, - /* 2250 */ 462, 463, 464, 465, 466, 467, 185, 469, 51, 185, - /* 2260 */ 22, 371, 212, 0, 208, 22, 0, 60, 61, 62, - /* 2270 */ 63, 358, 65, 188, 185, 185, 192, 3, 33, 192, - /* 2280 */ 108, 37, 107, 107, 371, 108, 282, 37, 107, 399, - /* 2290 */ 50, 108, 50, 105, 103, 33, 107, 33, 33, 3, - /* 2300 */ 49, 411, 107, 413, 49, 358, 33, 108, 107, 33, - /* 2310 */ 49, 108, 399, 106, 108, 107, 109, 108, 371, 37, - /* 2320 */ 37, 37, 37, 282, 411, 37, 413, 282, 37, 108, - /* 2330 */ 33, 358, 108, 0, 275, 49, 0, 107, 33, 105, - /* 2340 */ 42, 262, 2, 22, 371, 455, 399, 239, 458, 49, - /* 2350 */ 143, 358, 462, 463, 464, 465, 466, 467, 411, 469, - /* 2360 */ 413, 105, 108, 49, 371, 107, 22, 108, 455, 0, - /* 2370 */ 42, 458, 399, 242, 107, 462, 463, 464, 465, 466, - /* 2380 */ 467, 49, 469, 108, 411, 107, 413, 107, 116, 108, - /* 2390 */ 37, 37, 399, 37, 187, 108, 107, 107, 37, 107, - /* 2400 */ 187, 194, 455, 189, 411, 458, 413, 108, 107, 462, - /* 2410 */ 463, 464, 465, 466, 467, 107, 469, 107, 107, 107, - /* 2420 */ 213, 117, 37, 108, 107, 37, 108, 107, 455, 37, - /* 2430 */ 108, 458, 108, 358, 107, 462, 463, 464, 465, 466, - /* 2440 */ 467, 107, 469, 108, 107, 107, 371, 108, 455, 130, - /* 2450 */ 107, 458, 33, 130, 37, 462, 463, 464, 465, 466, - /* 2460 */ 467, 130, 469, 358, 119, 118, 107, 107, 22, 72, - /* 2470 */ 71, 130, 37, 37, 399, 37, 371, 37, 37, 37, - /* 2480 */ 37, 358, 37, 78, 37, 101, 411, 78, 413, 33, - /* 2490 */ 101, 37, 37, 22, 371, 37, 37, 37, 37, 78, - /* 2500 */ 37, 37, 37, 37, 399, 37, 22, 37, 0, 37, - /* 2510 */ 0, 42, 37, 51, 0, 37, 411, 0, 413, 42, - /* 2520 */ 37, 42, 399, 42, 51, 51, 0, 51, 37, 37, - /* 2530 */ 455, 0, 33, 458, 411, 22, 413, 462, 463, 464, - /* 2540 */ 465, 466, 467, 22, 469, 21, 520, 22, 20, 22, - /* 2550 */ 21, 520, 520, 520, 520, 520, 520, 520, 520, 520, - /* 2560 */ 455, 520, 358, 458, 520, 520, 520, 462, 463, 464, - /* 2570 */ 465, 466, 467, 520, 469, 371, 520, 520, 455, 520, - /* 2580 */ 358, 458, 520, 520, 520, 462, 463, 464, 465, 466, - /* 2590 */ 467, 520, 469, 371, 520, 358, 520, 520, 520, 520, - /* 2600 */ 520, 520, 520, 399, 520, 520, 520, 520, 371, 520, - /* 2610 */ 358, 520, 520, 520, 520, 411, 520, 413, 520, 520, - /* 2620 */ 520, 399, 520, 371, 520, 520, 520, 520, 520, 520, - /* 2630 */ 520, 520, 520, 411, 520, 413, 399, 520, 520, 520, - /* 2640 */ 520, 520, 520, 520, 520, 520, 520, 520, 411, 520, - /* 2650 */ 413, 399, 520, 520, 520, 520, 520, 520, 520, 455, - /* 2660 */ 520, 520, 458, 411, 520, 413, 462, 463, 464, 465, - /* 2670 */ 466, 467, 520, 469, 520, 520, 520, 455, 520, 520, - /* 2680 */ 458, 520, 520, 358, 462, 463, 464, 465, 466, 467, - /* 2690 */ 520, 469, 455, 520, 520, 458, 371, 520, 520, 462, - /* 2700 */ 463, 464, 465, 466, 467, 520, 469, 455, 520, 358, - /* 2710 */ 458, 520, 520, 520, 462, 463, 464, 465, 466, 467, - /* 2720 */ 520, 469, 371, 520, 399, 520, 520, 520, 520, 520, - /* 2730 */ 520, 358, 520, 520, 520, 520, 411, 520, 413, 520, - /* 2740 */ 520, 520, 520, 520, 371, 520, 520, 520, 520, 520, - /* 2750 */ 399, 520, 520, 520, 520, 520, 520, 520, 520, 520, - /* 2760 */ 520, 520, 411, 520, 413, 520, 520, 520, 520, 358, - /* 2770 */ 520, 520, 399, 520, 520, 520, 520, 520, 520, 520, - /* 2780 */ 455, 520, 371, 458, 411, 520, 413, 462, 463, 464, - /* 2790 */ 465, 466, 467, 520, 469, 520, 520, 520, 520, 520, - /* 2800 */ 520, 520, 520, 520, 520, 520, 455, 520, 520, 458, - /* 2810 */ 399, 520, 520, 462, 463, 464, 465, 466, 467, 520, - /* 2820 */ 469, 520, 411, 520, 413, 520, 520, 520, 455, 520, - /* 2830 */ 520, 458, 520, 520, 520, 462, 463, 464, 465, 466, - /* 2840 */ 467, 520, 469, 520, 520, 358, 520, 520, 520, 520, - /* 2850 */ 520, 520, 520, 520, 520, 520, 520, 520, 371, 520, - /* 2860 */ 520, 520, 520, 520, 520, 520, 455, 520, 520, 458, - /* 2870 */ 520, 520, 520, 462, 463, 464, 465, 466, 467, 520, - /* 2880 */ 469, 358, 520, 520, 520, 520, 399, 520, 520, 520, - /* 2890 */ 520, 520, 520, 520, 371, 520, 520, 520, 411, 520, - /* 2900 */ 413, 520, 520, 520, 520, 520, 520, 520, 520, 520, - /* 2910 */ 520, 520, 520, 520, 520, 520, 520, 520, 520, 358, - /* 2920 */ 520, 520, 399, 520, 520, 520, 520, 520, 520, 520, - /* 2930 */ 520, 520, 371, 520, 411, 520, 413, 520, 520, 520, - /* 2940 */ 520, 520, 455, 520, 520, 458, 520, 520, 520, 462, - /* 2950 */ 463, 464, 465, 466, 467, 520, 469, 520, 520, 520, - /* 2960 */ 399, 520, 358, 520, 520, 520, 520, 520, 520, 520, - /* 2970 */ 520, 520, 411, 520, 413, 371, 520, 520, 455, 520, - /* 2980 */ 358, 458, 520, 520, 520, 462, 463, 464, 465, 466, - /* 2990 */ 467, 520, 469, 371, 520, 358, 520, 520, 520, 520, - /* 3000 */ 520, 520, 520, 399, 520, 520, 520, 520, 371, 520, - /* 3010 */ 520, 520, 520, 520, 520, 411, 455, 413, 520, 458, - /* 3020 */ 520, 399, 520, 462, 463, 464, 465, 466, 467, 520, - /* 3030 */ 469, 520, 520, 411, 520, 413, 399, 520, 520, 520, - /* 3040 */ 520, 520, 520, 520, 520, 520, 520, 520, 411, 520, - /* 3050 */ 413, 520, 520, 520, 520, 520, 520, 520, 520, 455, - /* 3060 */ 520, 520, 458, 520, 520, 520, 462, 463, 464, 465, - /* 3070 */ 466, 467, 520, 469, 520, 520, 520, 455, 520, 520, - /* 3080 */ 458, 520, 520, 520, 462, 463, 464, 465, 466, 467, - /* 3090 */ 520, 469, 455, 520, 520, 458, 520, 520, 520, 462, - /* 3100 */ 463, 464, 465, 466, 467, 520, 469, 355, 355, 355, - /* 3110 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3120 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3130 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3140 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3150 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3160 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3170 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3180 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3190 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3200 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3210 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3220 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3230 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3240 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 1500 */ 254, 255, 256, 257, 258, 259, 260, 108, 108, 12, + /* 1510 */ 13, 12, 13, 108, 507, 108, 12, 13, 374, 239, + /* 1520 */ 12, 13, 108, 33, 456, 108, 358, 459, 12, 13, + /* 1530 */ 425, 463, 464, 465, 466, 467, 468, 37, 470, 371, + /* 1540 */ 108, 12, 13, 475, 33, 477, 33, 108, 411, 481, + /* 1550 */ 482, 108, 73, 74, 75, 33, 108, 371, 108, 80, + /* 1560 */ 81, 82, 12, 13, 443, 86, 33, 399, 425, 13, + /* 1570 */ 91, 92, 93, 94, 12, 13, 97, 33, 78, 100, + /* 1580 */ 412, 425, 414, 12, 13, 491, 301, 207, 358, 12, + /* 1590 */ 13, 512, 303, 37, 483, 494, 389, 280, 108, 437, + /* 1600 */ 51, 371, 42, 458, 457, 20, 448, 379, 220, 448, + /* 1610 */ 453, 207, 379, 439, 205, 358, 207, 20, 203, 108, + /* 1620 */ 370, 108, 20, 371, 456, 45, 421, 459, 371, 399, + /* 1630 */ 108, 463, 464, 465, 466, 467, 468, 371, 470, 421, + /* 1640 */ 182, 108, 412, 475, 414, 477, 237, 238, 239, 481, + /* 1650 */ 482, 370, 108, 418, 371, 383, 399, 370, 421, 105, + /* 1660 */ 418, 418, 253, 254, 255, 256, 257, 258, 259, 412, + /* 1670 */ 103, 414, 418, 382, 370, 102, 370, 381, 370, 370, + /* 1680 */ 20, 363, 50, 367, 363, 20, 456, 367, 448, 459, + /* 1690 */ 379, 358, 379, 463, 464, 465, 466, 467, 468, 20, + /* 1700 */ 470, 379, 414, 372, 371, 20, 438, 477, 379, 372, + /* 1710 */ 20, 481, 482, 456, 428, 379, 459, 379, 379, 370, + /* 1720 */ 463, 464, 465, 466, 467, 468, 379, 470, 358, 363, + /* 1730 */ 370, 399, 399, 399, 477, 361, 361, 412, 481, 482, + /* 1740 */ 399, 371, 399, 399, 399, 412, 363, 414, 224, 399, + /* 1750 */ 358, 399, 399, 399, 399, 452, 107, 450, 412, 377, + /* 1760 */ 448, 20, 447, 371, 211, 210, 377, 444, 358, 399, + /* 1770 */ 412, 414, 445, 288, 500, 412, 287, 437, 370, 500, + /* 1780 */ 296, 371, 412, 196, 414, 503, 430, 281, 297, 456, + /* 1790 */ 500, 399, 459, 298, 430, 502, 463, 464, 465, 466, + /* 1800 */ 467, 468, 497, 470, 412, 302, 414, 305, 498, 399, + /* 1810 */ 477, 514, 520, 437, 481, 482, 276, 300, 499, 20, + /* 1820 */ 371, 462, 412, 117, 414, 495, 456, 372, 377, 459, + /* 1830 */ 358, 377, 107, 463, 464, 465, 466, 467, 468, 469, + /* 1840 */ 470, 471, 472, 371, 278, 480, 430, 412, 456, 412, + /* 1850 */ 358, 459, 412, 412, 430, 463, 464, 465, 466, 467, + /* 1860 */ 468, 188, 470, 371, 513, 493, 456, 371, 412, 459, + /* 1870 */ 377, 399, 426, 463, 464, 465, 466, 467, 468, 412, + /* 1880 */ 470, 395, 377, 412, 412, 412, 414, 477, 412, 412, + /* 1890 */ 412, 399, 482, 412, 412, 412, 107, 403, 370, 412, + /* 1900 */ 412, 22, 377, 360, 412, 38, 414, 356, 363, 517, + /* 1910 */ 518, 364, 449, 412, 440, 378, 393, 0, 0, 412, + /* 1920 */ 393, 412, 412, 393, 412, 0, 434, 412, 456, 431, + /* 1930 */ 412, 459, 412, 412, 45, 463, 464, 465, 466, 467, + /* 1940 */ 468, 358, 470, 412, 412, 431, 412, 0, 456, 37, + /* 1950 */ 230, 459, 37, 37, 371, 463, 464, 465, 466, 467, + /* 1960 */ 468, 37, 470, 230, 0, 37, 37, 230, 37, 0, + /* 1970 */ 230, 0, 37, 358, 37, 0, 22, 0, 506, 0, + /* 1980 */ 37, 225, 399, 0, 213, 0, 371, 213, 207, 214, + /* 1990 */ 0, 205, 0, 0, 201, 412, 200, 414, 0, 0, + /* 2000 */ 150, 49, 358, 37, 0, 49, 0, 0, 51, 37, + /* 2010 */ 0, 49, 0, 45, 399, 371, 0, 434, 0, 0, + /* 2020 */ 0, 358, 49, 0, 0, 0, 0, 412, 0, 414, + /* 2030 */ 168, 37, 0, 168, 371, 49, 0, 0, 0, 456, + /* 2040 */ 0, 0, 459, 399, 0, 0, 463, 464, 465, 466, + /* 2050 */ 467, 468, 0, 470, 0, 0, 412, 0, 414, 0, + /* 2060 */ 0, 0, 399, 0, 0, 0, 0, 0, 0, 0, + /* 2070 */ 0, 456, 45, 0, 459, 412, 0, 414, 463, 464, + /* 2080 */ 465, 466, 467, 468, 358, 470, 0, 0, 0, 0, + /* 2090 */ 0, 150, 0, 22, 149, 0, 148, 371, 0, 0, + /* 2100 */ 456, 22, 22, 459, 65, 1, 50, 463, 464, 465, + /* 2110 */ 466, 467, 468, 0, 470, 37, 0, 0, 65, 456, + /* 2120 */ 0, 0, 459, 19, 509, 399, 463, 464, 465, 466, + /* 2130 */ 467, 468, 50, 470, 37, 472, 51, 65, 412, 35, + /* 2140 */ 414, 0, 42, 358, 37, 51, 0, 42, 37, 0, + /* 2150 */ 42, 37, 51, 0, 45, 51, 371, 42, 33, 49, + /* 2160 */ 434, 49, 518, 0, 60, 61, 62, 63, 358, 65, + /* 2170 */ 43, 14, 49, 42, 0, 0, 0, 0, 42, 0, + /* 2180 */ 196, 371, 456, 49, 399, 459, 0, 0, 0, 463, + /* 2190 */ 464, 465, 466, 467, 468, 0, 470, 412, 72, 414, + /* 2200 */ 42, 37, 358, 51, 0, 37, 51, 42, 0, 399, + /* 2210 */ 106, 51, 42, 109, 0, 371, 0, 37, 37, 434, + /* 2220 */ 51, 0, 412, 0, 414, 0, 42, 0, 0, 37, + /* 2230 */ 0, 22, 113, 115, 37, 37, 37, 37, 37, 37, + /* 2240 */ 37, 456, 37, 399, 459, 33, 33, 143, 463, 464, + /* 2250 */ 465, 466, 467, 468, 37, 470, 412, 37, 414, 22, + /* 2260 */ 0, 37, 22, 0, 0, 22, 456, 22, 53, 459, + /* 2270 */ 0, 22, 37, 463, 464, 465, 466, 467, 468, 0, + /* 2280 */ 470, 0, 0, 37, 0, 37, 0, 22, 20, 37, + /* 2290 */ 37, 187, 37, 108, 0, 212, 107, 119, 194, 49, + /* 2300 */ 456, 107, 0, 459, 37, 22, 0, 463, 464, 465, + /* 2310 */ 466, 467, 468, 358, 470, 185, 188, 213, 185, 22, + /* 2320 */ 185, 0, 0, 185, 118, 185, 371, 3, 33, 192, + /* 2330 */ 208, 192, 358, 282, 108, 37, 107, 37, 107, 50, + /* 2340 */ 108, 107, 50, 105, 103, 371, 33, 108, 33, 33, + /* 2350 */ 49, 3, 108, 49, 399, 108, 33, 282, 107, 33, + /* 2360 */ 49, 358, 108, 107, 107, 107, 282, 412, 37, 414, + /* 2370 */ 108, 37, 37, 399, 371, 37, 37, 37, 275, 108, + /* 2380 */ 108, 49, 33, 0, 0, 107, 412, 42, 414, 33, + /* 2390 */ 105, 262, 105, 358, 2, 22, 108, 107, 239, 108, + /* 2400 */ 107, 49, 399, 107, 49, 0, 371, 108, 22, 242, + /* 2410 */ 107, 456, 107, 42, 459, 412, 107, 414, 463, 464, + /* 2420 */ 465, 466, 467, 468, 107, 470, 116, 108, 108, 49, + /* 2430 */ 456, 117, 107, 459, 399, 108, 107, 463, 464, 465, + /* 2440 */ 466, 467, 468, 107, 470, 108, 37, 412, 107, 414, + /* 2450 */ 189, 107, 37, 187, 107, 33, 37, 107, 107, 456, + /* 2460 */ 107, 107, 459, 37, 37, 108, 463, 464, 465, 466, + /* 2470 */ 467, 468, 108, 470, 107, 37, 108, 108, 108, 37, + /* 2480 */ 108, 118, 358, 107, 119, 107, 37, 22, 130, 130, + /* 2490 */ 130, 456, 130, 72, 459, 371, 107, 37, 463, 464, + /* 2500 */ 465, 466, 467, 468, 71, 470, 37, 37, 37, 37, + /* 2510 */ 37, 37, 37, 37, 358, 78, 33, 101, 78, 37, + /* 2520 */ 22, 101, 37, 399, 37, 37, 37, 371, 37, 78, + /* 2530 */ 37, 37, 37, 22, 37, 0, 412, 37, 414, 37, + /* 2540 */ 37, 358, 0, 51, 37, 0, 42, 42, 42, 37, + /* 2550 */ 51, 0, 51, 37, 371, 399, 42, 0, 37, 51, + /* 2560 */ 37, 0, 22, 33, 521, 22, 22, 21, 412, 22, + /* 2570 */ 414, 21, 20, 521, 521, 521, 521, 521, 521, 521, + /* 2580 */ 456, 521, 399, 459, 521, 521, 521, 463, 464, 465, + /* 2590 */ 466, 467, 468, 521, 470, 412, 521, 414, 521, 521, + /* 2600 */ 358, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2610 */ 521, 521, 456, 371, 521, 459, 521, 358, 521, 463, + /* 2620 */ 464, 465, 466, 467, 468, 521, 470, 521, 521, 521, + /* 2630 */ 371, 521, 521, 521, 521, 521, 521, 521, 521, 456, + /* 2640 */ 521, 399, 459, 521, 521, 521, 463, 464, 465, 466, + /* 2650 */ 467, 468, 521, 470, 412, 521, 414, 521, 399, 521, + /* 2660 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2670 */ 521, 412, 521, 414, 521, 521, 358, 521, 521, 521, + /* 2680 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 371, + /* 2690 */ 521, 521, 521, 521, 521, 521, 521, 521, 456, 521, + /* 2700 */ 521, 459, 521, 521, 521, 463, 464, 465, 466, 467, + /* 2710 */ 468, 521, 470, 521, 521, 456, 521, 399, 459, 521, + /* 2720 */ 521, 521, 463, 464, 465, 466, 467, 468, 521, 470, + /* 2730 */ 412, 521, 414, 521, 521, 521, 521, 521, 521, 521, + /* 2740 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2750 */ 521, 521, 358, 521, 521, 521, 521, 521, 521, 521, + /* 2760 */ 521, 521, 521, 521, 521, 371, 521, 521, 521, 521, + /* 2770 */ 521, 521, 521, 521, 456, 521, 358, 459, 521, 521, + /* 2780 */ 521, 463, 464, 465, 466, 467, 468, 521, 470, 371, + /* 2790 */ 521, 521, 358, 399, 521, 521, 521, 521, 521, 521, + /* 2800 */ 521, 521, 521, 521, 521, 371, 412, 521, 414, 521, + /* 2810 */ 521, 521, 521, 521, 521, 521, 521, 399, 521, 521, + /* 2820 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2830 */ 412, 521, 414, 399, 521, 521, 521, 521, 521, 521, + /* 2840 */ 521, 521, 521, 521, 521, 521, 412, 521, 414, 521, + /* 2850 */ 456, 521, 521, 459, 358, 521, 521, 463, 464, 465, + /* 2860 */ 466, 467, 468, 521, 470, 521, 521, 371, 521, 521, + /* 2870 */ 521, 521, 521, 521, 456, 521, 521, 459, 521, 521, + /* 2880 */ 521, 463, 464, 465, 466, 467, 468, 521, 470, 521, + /* 2890 */ 456, 521, 521, 459, 521, 399, 521, 463, 464, 465, + /* 2900 */ 466, 467, 468, 521, 470, 521, 521, 521, 412, 521, + /* 2910 */ 414, 521, 521, 358, 521, 521, 521, 521, 521, 521, + /* 2920 */ 521, 521, 521, 521, 521, 521, 371, 521, 521, 358, + /* 2930 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2940 */ 521, 521, 371, 521, 521, 521, 521, 521, 521, 521, + /* 2950 */ 521, 521, 456, 521, 399, 459, 521, 521, 521, 463, + /* 2960 */ 464, 465, 466, 467, 468, 521, 470, 412, 521, 414, + /* 2970 */ 399, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 2980 */ 521, 521, 521, 412, 521, 414, 521, 521, 521, 521, + /* 2990 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3000 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3010 */ 521, 456, 521, 358, 459, 521, 521, 521, 463, 464, + /* 3020 */ 465, 466, 467, 468, 521, 470, 371, 456, 521, 521, + /* 3030 */ 459, 521, 358, 521, 463, 464, 465, 466, 467, 468, + /* 3040 */ 521, 470, 521, 521, 521, 371, 521, 521, 358, 521, + /* 3050 */ 521, 521, 521, 521, 399, 521, 521, 521, 521, 521, + /* 3060 */ 521, 371, 521, 521, 521, 521, 521, 412, 521, 414, + /* 3070 */ 521, 521, 521, 399, 521, 521, 521, 521, 521, 521, + /* 3080 */ 521, 521, 521, 521, 521, 521, 412, 521, 414, 399, + /* 3090 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3100 */ 521, 521, 412, 521, 414, 521, 521, 521, 521, 521, + /* 3110 */ 521, 456, 521, 521, 459, 521, 521, 521, 463, 464, + /* 3120 */ 465, 466, 467, 468, 521, 470, 521, 521, 521, 521, + /* 3130 */ 456, 521, 521, 459, 521, 358, 521, 463, 464, 465, + /* 3140 */ 466, 467, 468, 521, 470, 521, 456, 521, 371, 459, + /* 3150 */ 521, 521, 521, 463, 464, 465, 466, 467, 468, 521, + /* 3160 */ 470, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3170 */ 521, 521, 521, 521, 521, 521, 399, 521, 521, 521, + /* 3180 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 412, + /* 3190 */ 521, 414, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3200 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3210 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3220 */ 521, 521, 521, 521, 521, 521, 521, 521, 521, 521, + /* 3230 */ 521, 521, 521, 456, 521, 521, 459, 521, 521, 521, + /* 3240 */ 463, 464, 465, 466, 467, 468, 521, 470, 355, 355, /* 3250 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3260 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3270 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, @@ -1234,236 +1251,250 @@ static const YYCODETYPE yy_lookahead[] = { /* 3430 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3440 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, /* 3450 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, - /* 3460 */ 355, 355, + /* 3460 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3470 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3480 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3490 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3500 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3510 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3520 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3530 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3540 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3550 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3560 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3570 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3580 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3590 */ 355, 355, 355, 355, 355, 355, 355, 355, 355, 355, + /* 3600 */ 355, 355, 355, }; -#define YY_SHIFT_COUNT (894) +#define YY_SHIFT_COUNT (899) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (2531) +#define YY_SHIFT_MAX (2561) static const unsigned short int yy_shift_ofst[] = { /* 0 */ 135, 0, 249, 0, 499, 499, 499, 499, 499, 499, /* 10 */ 499, 499, 499, 499, 499, 499, 748, 997, 997, 1246, /* 20 */ 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, /* 30 */ 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, /* 40 */ 997, 997, 997, 997, 997, 997, 997, 997, 997, 997, - /* 50 */ 245, 430, 66, 88, 417, 464, 417, 417, 88, 88, - /* 60 */ 417, 1367, 417, 248, 1367, 420, 417, 14, 1495, 435, - /* 70 */ 59, 59, 1495, 1495, 190, 190, 435, 295, 40, 24, - /* 80 */ 24, 44, 59, 59, 59, 59, 59, 59, 59, 59, - /* 90 */ 59, 59, 59, 157, 283, 59, 59, 350, 14, 59, - /* 100 */ 157, 59, 14, 59, 59, 14, 59, 59, 14, 59, - /* 110 */ 14, 14, 14, 59, 645, 203, 203, 728, 202, 809, - /* 120 */ 809, 809, 809, 809, 809, 809, 809, 809, 809, 809, - /* 130 */ 809, 809, 809, 809, 809, 809, 809, 809, 1150, 595, - /* 140 */ 295, 40, 895, 895, 829, 306, 306, 306, 617, 617, - /* 150 */ 702, 522, 829, 350, 14, 336, 14, 287, 14, 14, - /* 160 */ 722, 14, 722, 722, 794, 890, 255, 596, 596, 596, - /* 170 */ 596, 596, 596, 596, 2207, 1454, 21, 429, 333, 191, - /* 180 */ 383, 495, 346, 588, 398, 398, 1091, 38, 1095, 545, - /* 190 */ 545, 545, 883, 896, 545, 679, 1107, 379, 706, 1061, - /* 200 */ 1107, 1107, 1136, 1034, 1053, 221, 1034, 1158, 684, 522, - /* 210 */ 1287, 1518, 1531, 1555, 1359, 350, 1555, 350, 1380, 1568, - /* 220 */ 1570, 1548, 1570, 1548, 1415, 1568, 1570, 1568, 1548, 1415, - /* 230 */ 1415, 1415, 1506, 1511, 1568, 1517, 1568, 1568, 1568, 1612, - /* 240 */ 1584, 1612, 1584, 1555, 350, 350, 1629, 350, 1638, 1639, - /* 250 */ 350, 1638, 350, 1646, 350, 350, 1568, 350, 1612, 14, + /* 50 */ 250, 318, 809, 1, 245, 356, 245, 245, 1, 1, + /* 60 */ 245, 1125, 245, 248, 1125, 34, 245, 14, 1409, 1008, + /* 70 */ 54, 54, 1409, 1409, 562, 562, 1008, 433, 265, 142, + /* 80 */ 142, 289, 54, 54, 54, 54, 54, 54, 54, 54, + /* 90 */ 54, 54, 54, 202, 253, 54, 54, 230, 14, 54, + /* 100 */ 202, 54, 14, 54, 54, 14, 54, 54, 14, 54, + /* 110 */ 14, 14, 14, 54, 240, 203, 203, 597, 500, 315, + /* 120 */ 568, 568, 568, 568, 568, 568, 568, 568, 568, 568, + /* 130 */ 568, 568, 568, 568, 568, 568, 568, 568, 568, 911, + /* 140 */ 657, 433, 265, 1154, 1154, 321, 150, 150, 150, 830, + /* 150 */ 830, 764, 1085, 321, 230, 14, 279, 14, 58, 14, + /* 160 */ 14, 436, 14, 436, 436, 408, 501, 255, 777, 777, + /* 170 */ 777, 777, 777, 777, 2104, 1479, 199, 471, 909, 538, + /* 180 */ 699, 293, 335, 346, 60, 60, 416, 1177, 638, 294, + /* 190 */ 294, 294, 922, 707, 294, 122, 1164, 1130, 288, 687, + /* 200 */ 1164, 1164, 1194, 1060, 1166, 1009, 1060, 140, 1037, 1085, + /* 210 */ 1317, 1549, 1560, 1585, 1388, 230, 1585, 230, 1415, 1597, + /* 220 */ 1602, 1580, 1602, 1580, 1458, 1597, 1602, 1597, 1580, 1458, + /* 230 */ 1458, 1458, 1554, 1567, 1597, 1573, 1597, 1597, 1597, 1660, + /* 240 */ 1632, 1660, 1632, 1585, 230, 230, 1665, 230, 1679, 1685, + /* 250 */ 230, 1679, 230, 1690, 230, 230, 1597, 230, 1660, 14, /* 260 */ 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, - /* 270 */ 1568, 890, 890, 1612, 722, 722, 722, 1485, 1608, 1555, - /* 280 */ 645, 1705, 1516, 1521, 1629, 645, 1287, 1568, 722, 1451, - /* 290 */ 1453, 1451, 1453, 1449, 1551, 1451, 1458, 1465, 1483, 1287, - /* 300 */ 1461, 1466, 1474, 1500, 1570, 1759, 1663, 1503, 1638, 645, - /* 310 */ 645, 1675, 1453, 722, 722, 722, 722, 1453, 722, 1609, - /* 320 */ 645, 794, 645, 1570, 722, 722, 722, 722, 722, 722, - /* 330 */ 722, 722, 722, 722, 722, 722, 722, 722, 722, 722, - /* 340 */ 722, 722, 722, 722, 722, 722, 1707, 722, 1568, 645, - /* 350 */ 1790, 1781, 1612, 3107, 3107, 3107, 3107, 3107, 3107, 3107, - /* 360 */ 3107, 3107, 36, 498, 263, 534, 665, 79, 826, 296, - /* 370 */ 450, 914, 806, 1033, 54, 54, 54, 54, 54, 54, - /* 380 */ 54, 54, 54, 1054, 374, 674, 774, 774, 130, 946, - /* 390 */ 32, 618, 118, 574, 620, 873, 1103, 1163, 643, 951, - /* 400 */ 555, 661, 951, 951, 951, 307, 307, 436, 331, 127, - /* 410 */ 1278, 1267, 1174, 1308, 1204, 1208, 1209, 1213, 1188, 1291, - /* 420 */ 1325, 1333, 1334, 1339, 1119, 601, 1264, 519, 1311, 1316, - /* 430 */ 1318, 1319, 1217, 1182, 1326, 1340, 1373, 1351, 1310, 1352, - /* 440 */ 1309, 1353, 1370, 1372, 1374, 1376, 1398, 1405, 1408, 1410, - /* 450 */ 1421, 1427, 1429, 1434, 1437, 1450, 1452, 1402, 1433, 1436, - /* 460 */ 1442, 1448, 1476, 1336, 1186, 1363, 1401, 1418, 1435, 832, - /* 470 */ 1829, 1847, 1861, 1818, 1865, 1846, 1655, 1851, 1854, 1855, - /* 480 */ 1669, 1901, 1866, 1868, 1676, 1870, 1908, 1679, 1910, 1874, - /* 490 */ 1925, 1876, 1914, 1893, 1916, 1880, 1693, 1919, 1708, 1920, - /* 500 */ 1709, 1713, 1716, 1723, 1929, 1930, 1931, 1731, 1733, 1934, - /* 510 */ 1937, 1789, 1889, 1891, 1941, 1905, 1943, 1944, 1911, 1894, - /* 520 */ 1950, 1898, 1952, 1917, 1959, 1961, 1963, 1921, 1965, 1966, - /* 530 */ 1969, 1983, 1984, 1985, 1805, 1949, 1974, 1819, 1988, 1989, - /* 540 */ 1990, 1991, 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, - /* 550 */ 2005, 2007, 2008, 2009, 2010, 2011, 2013, 1967, 2014, 1948, - /* 560 */ 2015, 2017, 2019, 2020, 2021, 2023, 2024, 2025, 2006, 2027, - /* 570 */ 1881, 2030, 1883, 2033, 1887, 2037, 2038, 2022, 1999, 2028, - /* 580 */ 2016, 2039, 1976, 2026, 2043, 1980, 2046, 1982, 2053, 2061, - /* 590 */ 2031, 2018, 2029, 2064, 2035, 2032, 2034, 2065, 2036, 2040, - /* 600 */ 2051, 2067, 2042, 2077, 2049, 2055, 2047, 2052, 2062, 2081, - /* 610 */ 2063, 2098, 2057, 2060, 2113, 2114, 2115, 2116, 2078, 1879, - /* 620 */ 2117, 2052, 2069, 2119, 2121, 2058, 2127, 2132, 2086, 2073, - /* 630 */ 2083, 2139, 2106, 2091, 2102, 2145, 2110, 2097, 2107, 2151, - /* 640 */ 2118, 2101, 2111, 2154, 2156, 2157, 2158, 2160, 2161, 2048, - /* 650 */ 2054, 2128, 2144, 2168, 2133, 2134, 2135, 2136, 2137, 2138, - /* 660 */ 2140, 2141, 2143, 2146, 2147, 2148, 2164, 2152, 2180, 2169, - /* 670 */ 2182, 2170, 2190, 2171, 2142, 2194, 2174, 2163, 2197, 2198, - /* 680 */ 2202, 2167, 2205, 2173, 2211, 2185, 2192, 2186, 2187, 2193, - /* 690 */ 2130, 2112, 2227, 2044, 2122, 2125, 2124, 2050, 2052, 2196, - /* 700 */ 2241, 2071, 2210, 2238, 2249, 2056, 2243, 2074, 2085, 2263, - /* 710 */ 2266, 2089, 2084, 2090, 2087, 2274, 2245, 2004, 2175, 2172, - /* 720 */ 2176, 2177, 2244, 2250, 2181, 2240, 2188, 2242, 2191, 2183, - /* 730 */ 2262, 2264, 2199, 2189, 2195, 2201, 2203, 2265, 2251, 2255, - /* 740 */ 2208, 2273, 2041, 2206, 2209, 2296, 2276, 2045, 2282, 2283, - /* 750 */ 2284, 2285, 2288, 2291, 2221, 2224, 2261, 2059, 2297, 2286, - /* 760 */ 2333, 2336, 2230, 2298, 2305, 2234, 2079, 2256, 2340, 2321, - /* 770 */ 2108, 2254, 2258, 2259, 2300, 2267, 2278, 2314, 2275, 2344, - /* 780 */ 2131, 2280, 2281, 2287, 2289, 2290, 2214, 2292, 2369, 2328, - /* 790 */ 2213, 2301, 2272, 2052, 2332, 2308, 2310, 2299, 2311, 2312, - /* 800 */ 2304, 2315, 2353, 2354, 2317, 2318, 2356, 2320, 2322, 2361, - /* 810 */ 2327, 2324, 2385, 2334, 2335, 2388, 2337, 2339, 2392, 2338, - /* 820 */ 2319, 2323, 2331, 2341, 2345, 2347, 2343, 2419, 2359, 2417, - /* 830 */ 2360, 2419, 2419, 2446, 2397, 2399, 2435, 2436, 2438, 2440, - /* 840 */ 2441, 2442, 2443, 2445, 2447, 2405, 2384, 2409, 2389, 2456, - /* 850 */ 2454, 2455, 2458, 2471, 2459, 2460, 2461, 2421, 2143, 2463, - /* 860 */ 2146, 2464, 2465, 2466, 2468, 2484, 2470, 2508, 2472, 2462, - /* 870 */ 2469, 2510, 2475, 2473, 2477, 2514, 2478, 2474, 2479, 2517, - /* 880 */ 2483, 2476, 2481, 2526, 2491, 2492, 2531, 2513, 2499, 2521, - /* 890 */ 2524, 2525, 2527, 2529, 2528, + /* 270 */ 1597, 501, 501, 1660, 436, 436, 436, 1524, 1649, 1585, + /* 280 */ 240, 1741, 1553, 1555, 1665, 240, 1317, 1597, 436, 1485, + /* 290 */ 1489, 1485, 1489, 1484, 1587, 1485, 1495, 1491, 1506, 1317, + /* 300 */ 1502, 1503, 1517, 1540, 1602, 1799, 1706, 1566, 1679, 240, + /* 310 */ 240, 1725, 1489, 436, 436, 436, 436, 1489, 436, 1673, + /* 320 */ 240, 408, 240, 1602, 436, 436, 436, 436, 436, 436, + /* 330 */ 436, 436, 436, 436, 436, 436, 436, 436, 436, 436, + /* 340 */ 436, 436, 436, 436, 436, 436, 1789, 436, 1597, 240, + /* 350 */ 1879, 1867, 1660, 3248, 3248, 3248, 3248, 3248, 3248, 3248, + /* 360 */ 3248, 3248, 36, 498, 263, 786, 429, 948, 962, 15, + /* 370 */ 31, 79, 308, 556, 655, 655, 655, 655, 655, 655, + /* 380 */ 655, 655, 655, 94, 944, 820, 445, 445, 324, 737, + /* 390 */ 32, 395, 803, 228, 730, 1016, 525, 665, 927, 659, + /* 400 */ 964, 1000, 659, 659, 659, 924, 924, 16, 1108, 629, + /* 410 */ 1314, 1295, 1224, 602, 1234, 1239, 1245, 1247, 775, 1348, + /* 420 */ 1403, 1406, 1423, 1427, 1122, 1326, 1335, 1092, 1361, 1399, + /* 430 */ 1400, 1405, 1241, 1285, 1289, 1407, 1387, 1414, 1280, 1417, + /* 440 */ 106, 1432, 1439, 1443, 1448, 1450, 1444, 1497, 1499, 1504, + /* 450 */ 1508, 1516, 1529, 1550, 1562, 1571, 1577, 1490, 1511, 1513, + /* 460 */ 1522, 1533, 1544, 1368, 1380, 1404, 1411, 1556, 1500, 1362, + /* 470 */ 1917, 1918, 1925, 1889, 1947, 1912, 1720, 1915, 1916, 1924, + /* 480 */ 1733, 1964, 1928, 1929, 1737, 1931, 1969, 1740, 1971, 1935, + /* 490 */ 1979, 1937, 1975, 1954, 1977, 1943, 1756, 1983, 1771, 1985, + /* 500 */ 1774, 1775, 1781, 1786, 1990, 1992, 1993, 1793, 1796, 1998, + /* 510 */ 1999, 1850, 1952, 1956, 2006, 1966, 2004, 2007, 1972, 1957, + /* 520 */ 2010, 1962, 2012, 1968, 2016, 2018, 2019, 1973, 2020, 2023, + /* 530 */ 2024, 2025, 2026, 2028, 1862, 1994, 2032, 1865, 2040, 2041, + /* 540 */ 2044, 2045, 2052, 2054, 2055, 2057, 2059, 2060, 2061, 2063, + /* 550 */ 2064, 2065, 2066, 2067, 2068, 2069, 2070, 1986, 2036, 2027, + /* 560 */ 2037, 2038, 2073, 2076, 2086, 2087, 2088, 2089, 2071, 2090, + /* 570 */ 1941, 2092, 1945, 2095, 1948, 2098, 2099, 2079, 2056, 2080, + /* 580 */ 2082, 2113, 2039, 2078, 2116, 2053, 2117, 2072, 2120, 2121, + /* 590 */ 2097, 2085, 2100, 2141, 2107, 2094, 2105, 2146, 2111, 2101, + /* 600 */ 2108, 2149, 2114, 2153, 2109, 2115, 2125, 2110, 2112, 2157, + /* 610 */ 2123, 2163, 2127, 2131, 2174, 2175, 2176, 2177, 2136, 1984, + /* 620 */ 2179, 2110, 2134, 2186, 2187, 2126, 2188, 2195, 2164, 2152, + /* 630 */ 2158, 2204, 2168, 2155, 2165, 2208, 2180, 2160, 2170, 2214, + /* 640 */ 2181, 2169, 2184, 2216, 2221, 2223, 2225, 2227, 2228, 2118, + /* 650 */ 2119, 2192, 2209, 2230, 2197, 2198, 2199, 2200, 2201, 2202, + /* 660 */ 2203, 2205, 2212, 2213, 2217, 2220, 2237, 2224, 2260, 2240, + /* 670 */ 2263, 2243, 2264, 2245, 2215, 2270, 2249, 2235, 2279, 2281, + /* 680 */ 2282, 2246, 2284, 2248, 2286, 2265, 2268, 2252, 2253, 2255, + /* 690 */ 2185, 2189, 2294, 2130, 2206, 2178, 2194, 2083, 2110, 2250, + /* 700 */ 2302, 2133, 2267, 2283, 2306, 2122, 2297, 2135, 2128, 2321, + /* 710 */ 2322, 2138, 2137, 2140, 2139, 2324, 2295, 2051, 2229, 2226, + /* 720 */ 2231, 2232, 2298, 2300, 2234, 2289, 2238, 2292, 2241, 2239, + /* 730 */ 2313, 2315, 2244, 2251, 2256, 2257, 2247, 2316, 2301, 2304, + /* 740 */ 2258, 2323, 2075, 2254, 2262, 2348, 2326, 2084, 2331, 2334, + /* 750 */ 2335, 2338, 2339, 2340, 2271, 2272, 2311, 2103, 2349, 2332, + /* 760 */ 2383, 2384, 2278, 2345, 2356, 2285, 2129, 2287, 2392, 2373, + /* 770 */ 2159, 2288, 2291, 2290, 2293, 2296, 2303, 2305, 2299, 2352, + /* 780 */ 2309, 2317, 2355, 2319, 2386, 2167, 2325, 2320, 2327, 2329, + /* 790 */ 2336, 2261, 2341, 2405, 2371, 2266, 2344, 2310, 2110, 2380, + /* 800 */ 2347, 2350, 2337, 2351, 2353, 2314, 2357, 2409, 2415, 2354, + /* 810 */ 2364, 2419, 2367, 2368, 2426, 2290, 2369, 2427, 2293, 2370, + /* 820 */ 2438, 2296, 2372, 2442, 2303, 2358, 2359, 2360, 2362, 2365, + /* 830 */ 2363, 2376, 2422, 2378, 2449, 2389, 2422, 2422, 2465, 2421, + /* 840 */ 2433, 2460, 2469, 2470, 2471, 2472, 2473, 2474, 2475, 2476, + /* 850 */ 2437, 2416, 2440, 2420, 2483, 2482, 2485, 2487, 2498, 2488, + /* 860 */ 2489, 2491, 2451, 2212, 2493, 2213, 2494, 2495, 2497, 2500, + /* 870 */ 2511, 2502, 2535, 2503, 2492, 2504, 2542, 2507, 2499, 2505, + /* 880 */ 2545, 2512, 2501, 2506, 2551, 2516, 2508, 2514, 2557, 2521, + /* 890 */ 2523, 2561, 2540, 2530, 2543, 2546, 2544, 2547, 2550, 2552, }; #define YY_REDUCE_COUNT (361) -#define YY_REDUCE_MIN (-484) -#define YY_REDUCE_MAX (2637) +#define YY_REDUCE_MIN (-435) +#define YY_REDUCE_MAX (2777) static const short yy_reduce_ofst[] = { - /* 0 */ 469, -315, 155, 184, 405, 434, 654, 683, 902, 932, - /* 10 */ 1057, 1181, 1205, 1241, 1358, 1388, 506, 1431, 755, 1491, - /* 20 */ 1513, 1593, 1641, 1623, 1671, 1751, 1770, 1788, 1890, 1913, - /* 30 */ 1947, 1973, 1993, 2075, 2105, 2123, 2204, 2222, 2237, 2252, - /* 40 */ 2325, 2351, 2373, 2411, 2487, 2523, 2561, 2604, 2622, 2637, - /* 50 */ -347, -317, -434, 90, 471, 578, 593, 718, 55, 365, - /* 60 */ 720, 571, -484, -94, 631, -175, 37, -380, -386, -373, - /* 70 */ 219, 262, -368, -244, -360, -266, -403, -382, -203, -93, - /* 80 */ -47, -294, -90, 175, 285, 301, 396, 404, 427, 466, - /* 90 */ 505, 512, 651, -149, 338, 550, 566, 52, 489, 653, - /* 100 */ 216, 667, -70, 688, 690, -235, 693, 701, 117, 715, - /* 110 */ 707, 385, 771, 761, -39, -475, -475, -274, -137, 243, - /* 120 */ 326, 368, 419, 501, 507, 662, 686, 775, 803, 854, - /* 130 */ 858, 868, 905, 916, 919, 924, 926, 927, -36, 151, - /* 140 */ -27, 478, 670, 675, 798, 151, 649, 678, 685, 694, - /* 150 */ 613, -122, 909, 800, -299, 246, 730, 321, 785, 640, - /* 160 */ 666, 888, 878, 887, 904, 945, -400, -384, 541, 554, - /* 170 */ 626, 831, 954, -400, 681, 982, 1029, 1001, 939, 937, - /* 180 */ 958, 1093, 1074, 1074, 1087, 1089, 1055, 1108, 1064, 1005, - /* 190 */ 1008, 1010, 1084, 1074, 1019, 1168, 1129, 1172, 1145, 1115, - /* 200 */ 1134, 1135, 1074, 1071, 1071, 1051, 1071, 1082, 1072, 1177, - /* 210 */ 1132, 1114, 1121, 1131, 1130, 1202, 1138, 1207, 1149, 1219, - /* 220 */ 1220, 1175, 1225, 1178, 1183, 1231, 1232, 1235, 1189, 1185, - /* 230 */ 1191, 1193, 1230, 1233, 1247, 1249, 1257, 1258, 1261, 1270, - /* 240 */ 1268, 1274, 1271, 1194, 1263, 1272, 1240, 1277, 1292, 1228, - /* 250 */ 1294, 1303, 1297, 1250, 1299, 1301, 1312, 1304, 1321, 1288, - /* 260 */ 1289, 1290, 1293, 1295, 1296, 1298, 1302, 1313, 1314, 1315, - /* 270 */ 1320, 1330, 1332, 1335, 1300, 1307, 1317, 1269, 1275, 1276, - /* 280 */ 1342, 1280, 1286, 1322, 1323, 1360, 1305, 1365, 1327, 1243, - /* 290 */ 1329, 1244, 1331, 1242, 1254, 1262, 1265, 1273, 1279, 1337, - /* 300 */ 1248, 1259, 1266, 1071, 1406, 1324, 1306, 1341, 1411, 1407, - /* 310 */ 1409, 1328, 1361, 1377, 1381, 1382, 1383, 1362, 1384, 1371, - /* 320 */ 1426, 1403, 1428, 1438, 1393, 1395, 1397, 1399, 1400, 1404, - /* 330 */ 1417, 1420, 1424, 1425, 1430, 1445, 1447, 1455, 1456, 1459, - /* 340 */ 1462, 1463, 1464, 1467, 1468, 1469, 1414, 1470, 1475, 1441, - /* 350 */ 1472, 1473, 1477, 1387, 1412, 1446, 1457, 1479, 1484, 1489, - /* 360 */ 1481, 1492, + /* 0 */ 300, -316, 155, 184, 405, 477, 653, 753, 934, 996, + /* 10 */ 615, 1068, 1168, 1230, 1257, 1333, 1370, 907, 1392, 1410, + /* 20 */ 1472, 1492, 1583, 1615, 1644, 1663, 1726, 1785, 1810, 1844, + /* 30 */ 1955, 1974, 2003, 2035, 2124, 2156, 2183, 2242, 2259, 2318, + /* 40 */ 2394, 2418, 2434, 2496, 2555, 2571, 2655, 2674, 2690, 2777, + /* 50 */ -318, -329, -435, -161, -426, -410, 28, 544, 309, 557, + /* 60 */ 584, 379, -213, -355, 129, 123, 192, 124, -401, -373, + /* 70 */ -233, -176, -96, -39, -361, -266, 277, -374, -133, 414, + /* 80 */ 448, -193, 345, 411, 559, 660, 454, 514, 667, 732, + /* 90 */ 743, 761, 669, 180, 344, 769, 778, 457, 423, 785, + /* 100 */ 195, 799, -397, 802, 806, -95, 815, 836, 394, 890, + /* 110 */ 141, 520, 670, 892, 151, -157, -157, -389, 325, -308, + /* 120 */ 66, 266, 623, 693, 729, 771, 857, 864, 873, 874, + /* 130 */ 875, 881, 913, 914, 915, 917, 919, 926, 930, 376, + /* 140 */ -7, -285, 781, 920, 923, 905, -7, 458, 648, 651, + /* 150 */ 717, 902, 417, 916, 478, 158, 776, 169, 545, 895, + /* 160 */ 910, 858, 898, 903, 925, 928, 941, -395, 397, 447, + /* 170 */ 507, 569, 579, -395, 211, 391, 631, 633, 529, 666, + /* 180 */ 696, 1002, 1019, 1019, 904, 1020, 994, 1051, 1029, 951, + /* 190 */ 961, 963, 1053, 1019, 1007, 1144, 1105, 1186, 1137, 1121, + /* 200 */ 1143, 1156, 1019, 1094, 1094, 1079, 1094, 1111, 1101, 1207, + /* 210 */ 1162, 1145, 1147, 1158, 1157, 1228, 1161, 1233, 1174, 1250, + /* 220 */ 1252, 1205, 1266, 1218, 1235, 1281, 1283, 1287, 1237, 1242, + /* 230 */ 1243, 1254, 1272, 1291, 1304, 1296, 1306, 1308, 1309, 1318, + /* 240 */ 1316, 1321, 1320, 1240, 1311, 1313, 1288, 1322, 1331, 1268, + /* 250 */ 1329, 1337, 1336, 1286, 1338, 1339, 1349, 1347, 1366, 1332, + /* 260 */ 1334, 1341, 1343, 1344, 1345, 1350, 1352, 1353, 1354, 1355, + /* 270 */ 1360, 1374, 1375, 1383, 1325, 1346, 1358, 1303, 1307, 1312, + /* 280 */ 1382, 1315, 1327, 1323, 1357, 1389, 1340, 1408, 1363, 1274, + /* 290 */ 1356, 1279, 1364, 1282, 1293, 1290, 1319, 1310, 1305, 1376, + /* 300 */ 1292, 1297, 1351, 1094, 1449, 1359, 1330, 1372, 1455, 1451, + /* 310 */ 1454, 1365, 1416, 1435, 1437, 1440, 1441, 1424, 1456, 1446, + /* 320 */ 1493, 1486, 1505, 1496, 1467, 1471, 1473, 1476, 1477, 1478, + /* 330 */ 1481, 1482, 1483, 1487, 1488, 1501, 1507, 1509, 1510, 1512, + /* 340 */ 1515, 1518, 1520, 1521, 1531, 1532, 1494, 1534, 1528, 1525, + /* 350 */ 1543, 1547, 1545, 1474, 1463, 1498, 1514, 1523, 1527, 1530, + /* 360 */ 1537, 1551, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 10 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 20 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 30 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 40 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 50 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 60 */ 2368, 2026, 2026, 2331, 2026, 2026, 2026, 2026, 2026, 2026, - /* 70 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2338, 2026, 2026, - /* 80 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 90 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2125, 2026, 2026, - /* 100 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 110 */ 2026, 2026, 2026, 2026, 2123, 2616, 2026, 2026, 2026, 2026, - /* 120 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 130 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2628, - /* 140 */ 2026, 2026, 2097, 2097, 2026, 2628, 2628, 2628, 2588, 2588, - /* 150 */ 2123, 2026, 2026, 2125, 2026, 2410, 2026, 2026, 2026, 2026, - /* 160 */ 2026, 2026, 2026, 2026, 2249, 2056, 2408, 2026, 2026, 2026, - /* 170 */ 2026, 2026, 2026, 2026, 2394, 2026, 2026, 2657, 2719, 2026, - /* 180 */ 2660, 2026, 2026, 2026, 2026, 2026, 2343, 2026, 2647, 2026, - /* 190 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2201, 2388, - /* 200 */ 2026, 2026, 2026, 2620, 2634, 2703, 2621, 2618, 2641, 2026, - /* 210 */ 2651, 2026, 2435, 2026, 2424, 2125, 2026, 2125, 2381, 2326, - /* 220 */ 2026, 2336, 2026, 2336, 2333, 2026, 2026, 2026, 2336, 2333, - /* 230 */ 2333, 2333, 2190, 2186, 2026, 2184, 2026, 2026, 2026, 2026, - /* 240 */ 2081, 2026, 2081, 2026, 2125, 2125, 2026, 2125, 2026, 2026, - /* 250 */ 2125, 2026, 2125, 2026, 2125, 2125, 2026, 2125, 2026, 2026, - /* 260 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 270 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2422, 2404, 2026, - /* 280 */ 2123, 2026, 2392, 2390, 2026, 2123, 2651, 2026, 2026, 2673, - /* 290 */ 2668, 2673, 2668, 2687, 2683, 2673, 2692, 2689, 2653, 2651, - /* 300 */ 2722, 2709, 2705, 2634, 2026, 2026, 2639, 2637, 2026, 2123, - /* 310 */ 2123, 2026, 2668, 2026, 2026, 2026, 2026, 2668, 2026, 2026, - /* 320 */ 2123, 2026, 2123, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 330 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 340 */ 2026, 2026, 2026, 2026, 2026, 2026, 2217, 2026, 2026, 2123, - /* 350 */ 2026, 2065, 2026, 2383, 2413, 2364, 2364, 2252, 2252, 2252, - /* 360 */ 2126, 2031, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 370 */ 2026, 2026, 2026, 2026, 2686, 2685, 2540, 2026, 2592, 2591, - /* 380 */ 2590, 2581, 2539, 2213, 2026, 2026, 2538, 2537, 2026, 2026, - /* 390 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2531, - /* 400 */ 2026, 2026, 2532, 2530, 2529, 2355, 2354, 2026, 2026, 2026, - /* 410 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 420 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 430 */ 2026, 2026, 2026, 2706, 2710, 2026, 2617, 2026, 2026, 2026, - /* 440 */ 2511, 2026, 2026, 2026, 2026, 2026, 2479, 2474, 2465, 2456, - /* 450 */ 2471, 2462, 2450, 2468, 2459, 2447, 2444, 2026, 2026, 2026, - /* 460 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 470 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 480 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 490 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 500 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 510 */ 2026, 2332, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 520 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 530 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 540 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 550 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 560 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 570 */ 2026, 2026, 2026, 2026, 2347, 2026, 2026, 2026, 2026, 2026, - /* 580 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 590 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 600 */ 2026, 2026, 2026, 2026, 2026, 2026, 2070, 2518, 2026, 2026, - /* 610 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 620 */ 2026, 2521, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 630 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 640 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 650 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 660 */ 2026, 2026, 2165, 2164, 2026, 2026, 2026, 2026, 2026, 2026, - /* 670 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 680 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 690 */ 2522, 2026, 2026, 2026, 2408, 2026, 2026, 2026, 2513, 2026, - /* 700 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 710 */ 2026, 2026, 2026, 2026, 2026, 2702, 2654, 2026, 2026, 2026, - /* 720 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 730 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2511, - /* 740 */ 2026, 2684, 2026, 2026, 2700, 2026, 2704, 2026, 2026, 2026, - /* 750 */ 2026, 2026, 2026, 2026, 2627, 2623, 2026, 2026, 2619, 2026, - /* 760 */ 2026, 2026, 2026, 2026, 2578, 2026, 2026, 2026, 2612, 2026, - /* 770 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2522, 2026, - /* 780 */ 2525, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 790 */ 2026, 2026, 2026, 2510, 2026, 2563, 2562, 2026, 2026, 2026, - /* 800 */ 2026, 2026, 2026, 2026, 2246, 2026, 2026, 2026, 2026, 2026, - /* 810 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 820 */ 2230, 2228, 2227, 2226, 2026, 2223, 2026, 2259, 2026, 2026, - /* 830 */ 2026, 2255, 2254, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 840 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2144, - /* 850 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2136, 2026, - /* 860 */ 2135, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 870 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, - /* 880 */ 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2026, 2055, 2026, - /* 890 */ 2026, 2026, 2026, 2026, 2026, + /* 0 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 10 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 20 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 30 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 40 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 50 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 60 */ 2383, 2037, 2037, 2346, 2037, 2037, 2037, 2037, 2037, 2037, + /* 70 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2353, 2037, 2037, + /* 80 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 90 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2136, 2037, 2037, + /* 100 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 110 */ 2037, 2037, 2037, 2037, 2134, 2632, 2037, 2037, 2037, 2037, + /* 120 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 130 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 140 */ 2644, 2037, 2037, 2108, 2108, 2037, 2644, 2644, 2644, 2604, + /* 150 */ 2604, 2134, 2037, 2037, 2136, 2037, 2425, 2037, 2037, 2037, + /* 160 */ 2037, 2037, 2037, 2037, 2037, 2264, 2067, 2423, 2037, 2037, + /* 170 */ 2037, 2037, 2037, 2037, 2409, 2037, 2037, 2673, 2735, 2037, + /* 180 */ 2676, 2037, 2037, 2037, 2037, 2037, 2358, 2037, 2663, 2037, + /* 190 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2212, 2403, + /* 200 */ 2037, 2037, 2037, 2636, 2650, 2719, 2637, 2634, 2657, 2037, + /* 210 */ 2667, 2037, 2450, 2037, 2439, 2136, 2037, 2136, 2396, 2341, + /* 220 */ 2037, 2351, 2037, 2351, 2348, 2037, 2037, 2037, 2351, 2348, + /* 230 */ 2348, 2348, 2201, 2197, 2037, 2195, 2037, 2037, 2037, 2037, + /* 240 */ 2092, 2037, 2092, 2037, 2136, 2136, 2037, 2136, 2037, 2037, + /* 250 */ 2136, 2037, 2136, 2037, 2136, 2136, 2037, 2136, 2037, 2037, + /* 260 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 270 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2437, 2419, 2037, + /* 280 */ 2134, 2037, 2407, 2405, 2037, 2134, 2667, 2037, 2037, 2689, + /* 290 */ 2684, 2689, 2684, 2703, 2699, 2689, 2708, 2705, 2669, 2667, + /* 300 */ 2738, 2725, 2721, 2650, 2037, 2037, 2655, 2653, 2037, 2134, + /* 310 */ 2134, 2037, 2684, 2037, 2037, 2037, 2037, 2684, 2037, 2037, + /* 320 */ 2134, 2037, 2134, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 330 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 340 */ 2037, 2037, 2037, 2037, 2037, 2037, 2228, 2037, 2037, 2134, + /* 350 */ 2037, 2076, 2037, 2398, 2428, 2379, 2379, 2267, 2267, 2267, + /* 360 */ 2137, 2042, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 370 */ 2037, 2037, 2037, 2037, 2702, 2701, 2555, 2037, 2608, 2607, + /* 380 */ 2606, 2597, 2554, 2224, 2037, 2037, 2553, 2552, 2037, 2037, + /* 390 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2546, + /* 400 */ 2037, 2037, 2547, 2545, 2544, 2370, 2369, 2037, 2037, 2037, + /* 410 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 420 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 430 */ 2037, 2037, 2037, 2722, 2726, 2037, 2633, 2037, 2037, 2037, + /* 440 */ 2526, 2037, 2037, 2037, 2037, 2037, 2494, 2489, 2480, 2471, + /* 450 */ 2486, 2477, 2465, 2483, 2474, 2462, 2459, 2037, 2037, 2037, + /* 460 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 470 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 480 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 490 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 500 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 510 */ 2037, 2347, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 520 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 530 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 540 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 550 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 560 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 570 */ 2037, 2037, 2037, 2037, 2362, 2037, 2037, 2037, 2037, 2037, + /* 580 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 590 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 600 */ 2037, 2037, 2037, 2037, 2037, 2037, 2081, 2533, 2037, 2037, + /* 610 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 620 */ 2037, 2536, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 630 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 640 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 650 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 660 */ 2037, 2037, 2176, 2175, 2037, 2037, 2037, 2037, 2037, 2037, + /* 670 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 680 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 690 */ 2537, 2037, 2037, 2037, 2423, 2037, 2037, 2037, 2528, 2037, + /* 700 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 710 */ 2037, 2037, 2037, 2037, 2037, 2718, 2670, 2037, 2037, 2037, + /* 720 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 730 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2526, + /* 740 */ 2037, 2700, 2037, 2037, 2716, 2037, 2720, 2037, 2037, 2037, + /* 750 */ 2037, 2037, 2037, 2037, 2643, 2639, 2037, 2037, 2635, 2037, + /* 760 */ 2037, 2037, 2037, 2037, 2594, 2037, 2037, 2037, 2628, 2037, + /* 770 */ 2037, 2037, 2037, 2263, 2262, 2261, 2260, 2037, 2037, 2037, + /* 780 */ 2037, 2037, 2037, 2537, 2037, 2540, 2037, 2037, 2037, 2037, + /* 790 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2525, 2037, + /* 800 */ 2579, 2578, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2257, + /* 810 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 820 */ 2037, 2037, 2037, 2037, 2037, 2241, 2239, 2238, 2237, 2037, + /* 830 */ 2234, 2037, 2274, 2037, 2037, 2037, 2270, 2269, 2037, 2037, + /* 840 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 850 */ 2037, 2037, 2037, 2037, 2155, 2037, 2037, 2037, 2037, 2037, + /* 860 */ 2037, 2037, 2037, 2147, 2037, 2146, 2037, 2037, 2037, 2037, + /* 870 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 880 */ 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, 2037, + /* 890 */ 2037, 2037, 2037, 2066, 2037, 2037, 2037, 2037, 2037, 2037, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1889,9 +1920,9 @@ struct yyParser { }; typedef struct yyParser yyParser; -#include #ifndef NDEBUG #include +#include static FILE *yyTraceFILE = 0; static char *yyTracePrompt = 0; #endif /* NDEBUG */ @@ -2334,118 +2365,119 @@ static const char *const yyTokenName[] = { /* 405 */ "drop_table_clause", /* 406 */ "col_name_list", /* 407 */ "column_def", - /* 408 */ "duration_list", - /* 409 */ "rollup_func_list", - /* 410 */ "alter_table_option", - /* 411 */ "duration_literal", - /* 412 */ "rollup_func_name", - /* 413 */ "function_name", - /* 414 */ "col_name", - /* 415 */ "db_kind_opt", - /* 416 */ "table_kind_db_name_cond_opt", - /* 417 */ "like_pattern_opt", - /* 418 */ "db_name_cond_opt", - /* 419 */ "table_name_cond", - /* 420 */ "from_db_opt", - /* 421 */ "tag_list_opt", - /* 422 */ "table_kind", - /* 423 */ "tag_item", - /* 424 */ "column_alias", - /* 425 */ "index_options", - /* 426 */ "full_index_name", - /* 427 */ "index_name", - /* 428 */ "func_list", - /* 429 */ "sliding_opt", - /* 430 */ "sma_stream_opt", - /* 431 */ "func", - /* 432 */ "sma_func_name", - /* 433 */ "expression_list", - /* 434 */ "with_meta", - /* 435 */ "query_or_subquery", - /* 436 */ "where_clause_opt", - /* 437 */ "cgroup_name", - /* 438 */ "analyze_opt", - /* 439 */ "explain_options", - /* 440 */ "insert_query", - /* 441 */ "or_replace_opt", - /* 442 */ "agg_func_opt", - /* 443 */ "bufsize_opt", - /* 444 */ "language_opt", - /* 445 */ "full_view_name", - /* 446 */ "view_name", - /* 447 */ "stream_name", - /* 448 */ "stream_options", - /* 449 */ "col_list_opt", - /* 450 */ "tag_def_or_ref_opt", - /* 451 */ "subtable_opt", - /* 452 */ "ignore_opt", - /* 453 */ "column_stream_def_list", - /* 454 */ "column_stream_def", - /* 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", + /* 408 */ "type_name_default_len", + /* 409 */ "duration_list", + /* 410 */ "rollup_func_list", + /* 411 */ "alter_table_option", + /* 412 */ "duration_literal", + /* 413 */ "rollup_func_name", + /* 414 */ "function_name", + /* 415 */ "col_name", + /* 416 */ "db_kind_opt", + /* 417 */ "table_kind_db_name_cond_opt", + /* 418 */ "like_pattern_opt", + /* 419 */ "db_name_cond_opt", + /* 420 */ "table_name_cond", + /* 421 */ "from_db_opt", + /* 422 */ "tag_list_opt", + /* 423 */ "table_kind", + /* 424 */ "tag_item", + /* 425 */ "column_alias", + /* 426 */ "index_options", + /* 427 */ "full_index_name", + /* 428 */ "index_name", + /* 429 */ "func_list", + /* 430 */ "sliding_opt", + /* 431 */ "sma_stream_opt", + /* 432 */ "func", + /* 433 */ "sma_func_name", + /* 434 */ "expression_list", + /* 435 */ "with_meta", + /* 436 */ "query_or_subquery", + /* 437 */ "where_clause_opt", + /* 438 */ "cgroup_name", + /* 439 */ "analyze_opt", + /* 440 */ "explain_options", + /* 441 */ "insert_query", + /* 442 */ "or_replace_opt", + /* 443 */ "agg_func_opt", + /* 444 */ "bufsize_opt", + /* 445 */ "language_opt", + /* 446 */ "full_view_name", + /* 447 */ "view_name", + /* 448 */ "stream_name", + /* 449 */ "stream_options", + /* 450 */ "col_list_opt", + /* 451 */ "tag_def_or_ref_opt", + /* 452 */ "subtable_opt", + /* 453 */ "ignore_opt", + /* 454 */ "column_stream_def_list", + /* 455 */ "column_stream_def", + /* 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) */ @@ -2673,482 +2705,487 @@ static const char *const yyRuleName[] = { /* 217 */ "type_name ::= DECIMAL", /* 218 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", /* 219 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 220 */ "tags_def_opt ::=", - /* 221 */ "tags_def_opt ::= tags_def", - /* 222 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 223 */ "table_options ::=", - /* 224 */ "table_options ::= table_options COMMENT NK_STRING", - /* 225 */ "table_options ::= table_options MAX_DELAY duration_list", - /* 226 */ "table_options ::= table_options WATERMARK duration_list", - /* 227 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", - /* 228 */ "table_options ::= table_options TTL NK_INTEGER", - /* 229 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 230 */ "table_options ::= table_options DELETE_MARK duration_list", - /* 231 */ "alter_table_options ::= alter_table_option", - /* 232 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 233 */ "alter_table_option ::= COMMENT NK_STRING", - /* 234 */ "alter_table_option ::= TTL NK_INTEGER", - /* 235 */ "duration_list ::= duration_literal", - /* 236 */ "duration_list ::= duration_list NK_COMMA duration_literal", - /* 237 */ "rollup_func_list ::= rollup_func_name", - /* 238 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", - /* 239 */ "rollup_func_name ::= function_name", - /* 240 */ "rollup_func_name ::= FIRST", - /* 241 */ "rollup_func_name ::= LAST", - /* 242 */ "col_name_list ::= col_name", - /* 243 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 244 */ "col_name ::= column_name", - /* 245 */ "cmd ::= SHOW DNODES", - /* 246 */ "cmd ::= SHOW USERS", - /* 247 */ "cmd ::= SHOW USER PRIVILEGES", - /* 248 */ "cmd ::= SHOW db_kind_opt DATABASES", - /* 249 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", - /* 250 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 251 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 252 */ "cmd ::= SHOW MNODES", - /* 253 */ "cmd ::= SHOW QNODES", - /* 254 */ "cmd ::= SHOW ARBGROUPS", - /* 255 */ "cmd ::= SHOW FUNCTIONS", - /* 256 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 257 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", - /* 258 */ "cmd ::= SHOW STREAMS", - /* 259 */ "cmd ::= SHOW ACCOUNTS", - /* 260 */ "cmd ::= SHOW APPS", - /* 261 */ "cmd ::= SHOW CONNECTIONS", - /* 262 */ "cmd ::= SHOW LICENCES", - /* 263 */ "cmd ::= SHOW GRANTS", - /* 264 */ "cmd ::= SHOW GRANTS FULL", - /* 265 */ "cmd ::= SHOW GRANTS LOGS", - /* 266 */ "cmd ::= SHOW CLUSTER MACHINES", - /* 267 */ "cmd ::= SHOW CREATE DATABASE db_name", - /* 268 */ "cmd ::= SHOW CREATE TABLE full_table_name", - /* 269 */ "cmd ::= SHOW CREATE STABLE full_table_name", - /* 270 */ "cmd ::= SHOW QUERIES", - /* 271 */ "cmd ::= SHOW SCORES", - /* 272 */ "cmd ::= SHOW TOPICS", - /* 273 */ "cmd ::= SHOW VARIABLES", - /* 274 */ "cmd ::= SHOW CLUSTER VARIABLES", - /* 275 */ "cmd ::= SHOW LOCAL VARIABLES", - /* 276 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", - /* 277 */ "cmd ::= SHOW BNODES", - /* 278 */ "cmd ::= SHOW SNODES", - /* 279 */ "cmd ::= SHOW CLUSTER", - /* 280 */ "cmd ::= SHOW TRANSACTIONS", - /* 281 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", - /* 282 */ "cmd ::= SHOW CONSUMERS", - /* 283 */ "cmd ::= SHOW SUBSCRIPTIONS", - /* 284 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", - /* 285 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", - /* 286 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", - /* 287 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", - /* 288 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", - /* 289 */ "cmd ::= SHOW VNODES", - /* 290 */ "cmd ::= SHOW db_name_cond_opt ALIVE", - /* 291 */ "cmd ::= SHOW CLUSTER ALIVE", - /* 292 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt", - /* 293 */ "cmd ::= SHOW CREATE VIEW full_table_name", - /* 294 */ "cmd ::= SHOW COMPACTS", - /* 295 */ "cmd ::= SHOW COMPACT NK_INTEGER", - /* 296 */ "table_kind_db_name_cond_opt ::=", - /* 297 */ "table_kind_db_name_cond_opt ::= table_kind", - /* 298 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", - /* 299 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", - /* 300 */ "table_kind ::= NORMAL", - /* 301 */ "table_kind ::= CHILD", - /* 302 */ "db_name_cond_opt ::=", - /* 303 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 304 */ "like_pattern_opt ::=", - /* 305 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 306 */ "table_name_cond ::= table_name", - /* 307 */ "from_db_opt ::=", - /* 308 */ "from_db_opt ::= FROM db_name", - /* 309 */ "tag_list_opt ::=", - /* 310 */ "tag_list_opt ::= tag_item", - /* 311 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", - /* 312 */ "tag_item ::= TBNAME", - /* 313 */ "tag_item ::= QTAGS", - /* 314 */ "tag_item ::= column_name", - /* 315 */ "tag_item ::= column_name column_alias", - /* 316 */ "tag_item ::= column_name AS column_alias", - /* 317 */ "db_kind_opt ::=", - /* 318 */ "db_kind_opt ::= USER", - /* 319 */ "db_kind_opt ::= SYSTEM", - /* 320 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", - /* 321 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", - /* 322 */ "cmd ::= DROP INDEX exists_opt full_index_name", - /* 323 */ "full_index_name ::= index_name", - /* 324 */ "full_index_name ::= db_name NK_DOT index_name", - /* 325 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", - /* 326 */ "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", - /* 327 */ "func_list ::= func", - /* 328 */ "func_list ::= func_list NK_COMMA func", - /* 329 */ "func ::= sma_func_name NK_LP expression_list NK_RP", - /* 330 */ "sma_func_name ::= function_name", - /* 331 */ "sma_func_name ::= COUNT", - /* 332 */ "sma_func_name ::= FIRST", - /* 333 */ "sma_func_name ::= LAST", - /* 334 */ "sma_func_name ::= LAST_ROW", - /* 335 */ "sma_stream_opt ::=", - /* 336 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", - /* 337 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", - /* 338 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", - /* 339 */ "with_meta ::= AS", - /* 340 */ "with_meta ::= WITH META AS", - /* 341 */ "with_meta ::= ONLY META AS", - /* 342 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", - /* 343 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", - /* 344 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", - /* 345 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 346 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", - /* 347 */ "cmd ::= DESC full_table_name", - /* 348 */ "cmd ::= DESCRIBE full_table_name", - /* 349 */ "cmd ::= RESET QUERY CACHE", - /* 350 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", - /* 351 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", - /* 352 */ "analyze_opt ::=", - /* 353 */ "analyze_opt ::= ANALYZE", - /* 354 */ "explain_options ::=", - /* 355 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 356 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 357 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", - /* 358 */ "cmd ::= DROP FUNCTION exists_opt function_name", - /* 359 */ "agg_func_opt ::=", - /* 360 */ "agg_func_opt ::= AGGREGATE", - /* 361 */ "bufsize_opt ::=", - /* 362 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", - /* 363 */ "language_opt ::=", - /* 364 */ "language_opt ::= LANGUAGE NK_STRING", - /* 365 */ "or_replace_opt ::=", - /* 366 */ "or_replace_opt ::= OR REPLACE", - /* 367 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", - /* 368 */ "cmd ::= DROP VIEW exists_opt full_view_name", - /* 369 */ "full_view_name ::= view_name", - /* 370 */ "full_view_name ::= db_name NK_DOT view_name", - /* 371 */ "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", - /* 372 */ "cmd ::= DROP STREAM exists_opt stream_name", - /* 373 */ "cmd ::= PAUSE STREAM exists_opt stream_name", - /* 374 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", - /* 375 */ "col_list_opt ::=", - /* 376 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP", - /* 377 */ "column_stream_def_list ::= column_stream_def", - /* 378 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def", - /* 379 */ "column_stream_def ::= column_name", - /* 380 */ "column_stream_def ::= column_name PRIMARY KEY", - /* 381 */ "tag_def_or_ref_opt ::=", - /* 382 */ "tag_def_or_ref_opt ::= tags_def", - /* 383 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP", - /* 384 */ "stream_options ::=", - /* 385 */ "stream_options ::= stream_options TRIGGER AT_ONCE", - /* 386 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", - /* 387 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", - /* 388 */ "stream_options ::= stream_options WATERMARK duration_literal", - /* 389 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", - /* 390 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", - /* 391 */ "stream_options ::= stream_options DELETE_MARK duration_literal", - /* 392 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", - /* 393 */ "subtable_opt ::=", - /* 394 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", - /* 395 */ "ignore_opt ::=", - /* 396 */ "ignore_opt ::= IGNORE UNTREATED", - /* 397 */ "cmd ::= KILL CONNECTION NK_INTEGER", - /* 398 */ "cmd ::= KILL QUERY NK_STRING", - /* 399 */ "cmd ::= KILL TRANSACTION NK_INTEGER", - /* 400 */ "cmd ::= KILL COMPACT NK_INTEGER", - /* 401 */ "cmd ::= BALANCE VGROUP", - /* 402 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", - /* 403 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", - /* 404 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", - /* 405 */ "cmd ::= SPLIT VGROUP NK_INTEGER", - /* 406 */ "on_vgroup_id ::=", - /* 407 */ "on_vgroup_id ::= ON NK_INTEGER", - /* 408 */ "dnode_list ::= DNODE NK_INTEGER", - /* 409 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", - /* 410 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", - /* 411 */ "cmd ::= query_or_subquery", - /* 412 */ "cmd ::= insert_query", - /* 413 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", - /* 414 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", - /* 415 */ "tags_literal ::= NK_INTEGER", - /* 416 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal", - /* 417 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal", - /* 418 */ "tags_literal ::= NK_PLUS NK_INTEGER", - /* 419 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal", - /* 420 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal", - /* 421 */ "tags_literal ::= NK_MINUS NK_INTEGER", - /* 422 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal", - /* 423 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal", - /* 424 */ "tags_literal ::= NK_FLOAT", - /* 425 */ "tags_literal ::= NK_PLUS NK_FLOAT", - /* 426 */ "tags_literal ::= NK_MINUS NK_FLOAT", - /* 427 */ "tags_literal ::= NK_BIN", - /* 428 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal", - /* 429 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal", - /* 430 */ "tags_literal ::= NK_PLUS NK_BIN", - /* 431 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal", - /* 432 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal", - /* 433 */ "tags_literal ::= NK_MINUS NK_BIN", - /* 434 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal", - /* 435 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal", - /* 436 */ "tags_literal ::= NK_HEX", - /* 437 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal", - /* 438 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal", - /* 439 */ "tags_literal ::= NK_PLUS NK_HEX", - /* 440 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal", - /* 441 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal", - /* 442 */ "tags_literal ::= NK_MINUS NK_HEX", - /* 443 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal", - /* 444 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal", - /* 445 */ "tags_literal ::= NK_STRING", - /* 446 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal", - /* 447 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal", - /* 448 */ "tags_literal ::= NK_BOOL", - /* 449 */ "tags_literal ::= NULL", - /* 450 */ "tags_literal ::= literal_func", - /* 451 */ "tags_literal ::= literal_func NK_PLUS duration_literal", - /* 452 */ "tags_literal ::= literal_func NK_MINUS duration_literal", - /* 453 */ "tags_literal_list ::= tags_literal", - /* 454 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal", - /* 455 */ "literal ::= NK_INTEGER", - /* 456 */ "literal ::= NK_FLOAT", - /* 457 */ "literal ::= NK_STRING", - /* 458 */ "literal ::= NK_BOOL", - /* 459 */ "literal ::= TIMESTAMP NK_STRING", - /* 460 */ "literal ::= duration_literal", - /* 461 */ "literal ::= NULL", - /* 462 */ "literal ::= NK_QUESTION", - /* 463 */ "duration_literal ::= NK_VARIABLE", - /* 464 */ "signed ::= NK_INTEGER", - /* 465 */ "signed ::= NK_PLUS NK_INTEGER", - /* 466 */ "signed ::= NK_MINUS NK_INTEGER", - /* 467 */ "signed ::= NK_FLOAT", - /* 468 */ "signed ::= NK_PLUS NK_FLOAT", - /* 469 */ "signed ::= NK_MINUS NK_FLOAT", - /* 470 */ "signed_literal ::= signed", - /* 471 */ "signed_literal ::= NK_STRING", - /* 472 */ "signed_literal ::= NK_BOOL", - /* 473 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 474 */ "signed_literal ::= duration_literal", - /* 475 */ "signed_literal ::= NULL", - /* 476 */ "signed_literal ::= literal_func", - /* 477 */ "signed_literal ::= NK_QUESTION", - /* 478 */ "literal_list ::= signed_literal", - /* 479 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 480 */ "db_name ::= NK_ID", - /* 481 */ "table_name ::= NK_ID", - /* 482 */ "column_name ::= NK_ID", - /* 483 */ "function_name ::= NK_ID", - /* 484 */ "view_name ::= NK_ID", - /* 485 */ "table_alias ::= NK_ID", - /* 486 */ "column_alias ::= NK_ID", - /* 487 */ "column_alias ::= NK_ALIAS", - /* 488 */ "user_name ::= NK_ID", - /* 489 */ "topic_name ::= NK_ID", - /* 490 */ "stream_name ::= NK_ID", - /* 491 */ "cgroup_name ::= NK_ID", - /* 492 */ "index_name ::= NK_ID", - /* 493 */ "expr_or_subquery ::= expression", - /* 494 */ "expression ::= literal", - /* 495 */ "expression ::= pseudo_column", - /* 496 */ "expression ::= column_reference", - /* 497 */ "expression ::= function_expression", - /* 498 */ "expression ::= case_when_expression", - /* 499 */ "expression ::= NK_LP expression NK_RP", - /* 500 */ "expression ::= NK_PLUS expr_or_subquery", - /* 501 */ "expression ::= NK_MINUS expr_or_subquery", - /* 502 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", - /* 503 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", - /* 504 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", - /* 505 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", - /* 506 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", - /* 507 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 508 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", - /* 509 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", - /* 510 */ "expression_list ::= expr_or_subquery", - /* 511 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", - /* 512 */ "column_reference ::= column_name", - /* 513 */ "column_reference ::= table_name NK_DOT column_name", - /* 514 */ "column_reference ::= NK_ALIAS", - /* 515 */ "column_reference ::= table_name NK_DOT NK_ALIAS", - /* 516 */ "pseudo_column ::= ROWTS", - /* 517 */ "pseudo_column ::= TBNAME", - /* 518 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 519 */ "pseudo_column ::= QSTART", - /* 520 */ "pseudo_column ::= QEND", - /* 521 */ "pseudo_column ::= QDURATION", - /* 522 */ "pseudo_column ::= WSTART", - /* 523 */ "pseudo_column ::= WEND", - /* 524 */ "pseudo_column ::= WDURATION", - /* 525 */ "pseudo_column ::= IROWTS", - /* 526 */ "pseudo_column ::= ISFILLED", - /* 527 */ "pseudo_column ::= QTAGS", - /* 528 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 529 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 530 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", - /* 531 */ "function_expression ::= literal_func", - /* 532 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 533 */ "literal_func ::= NOW", - /* 534 */ "literal_func ::= TODAY", - /* 535 */ "noarg_func ::= NOW", - /* 536 */ "noarg_func ::= TODAY", - /* 537 */ "noarg_func ::= TIMEZONE", - /* 538 */ "noarg_func ::= DATABASE", - /* 539 */ "noarg_func ::= CLIENT_VERSION", - /* 540 */ "noarg_func ::= SERVER_VERSION", - /* 541 */ "noarg_func ::= SERVER_STATUS", - /* 542 */ "noarg_func ::= CURRENT_USER", - /* 543 */ "noarg_func ::= USER", - /* 544 */ "star_func ::= COUNT", - /* 545 */ "star_func ::= FIRST", - /* 546 */ "star_func ::= LAST", - /* 547 */ "star_func ::= LAST_ROW", - /* 548 */ "star_func_para_list ::= NK_STAR", - /* 549 */ "star_func_para_list ::= other_para_list", - /* 550 */ "other_para_list ::= star_func_para", - /* 551 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 552 */ "star_func_para ::= expr_or_subquery", - /* 553 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 554 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", - /* 555 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", - /* 556 */ "when_then_list ::= when_then_expr", - /* 557 */ "when_then_list ::= when_then_list when_then_expr", - /* 558 */ "when_then_expr ::= WHEN common_expression THEN common_expression", - /* 559 */ "case_when_else_opt ::=", - /* 560 */ "case_when_else_opt ::= ELSE common_expression", - /* 561 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", - /* 562 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", - /* 563 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", - /* 564 */ "predicate ::= expr_or_subquery IS NULL", - /* 565 */ "predicate ::= expr_or_subquery IS NOT NULL", - /* 566 */ "predicate ::= expr_or_subquery in_op in_predicate_value", - /* 567 */ "compare_op ::= NK_LT", - /* 568 */ "compare_op ::= NK_GT", - /* 569 */ "compare_op ::= NK_LE", - /* 570 */ "compare_op ::= NK_GE", - /* 571 */ "compare_op ::= NK_NE", - /* 572 */ "compare_op ::= NK_EQ", - /* 573 */ "compare_op ::= LIKE", - /* 574 */ "compare_op ::= NOT LIKE", - /* 575 */ "compare_op ::= MATCH", - /* 576 */ "compare_op ::= NMATCH", - /* 577 */ "compare_op ::= CONTAINS", - /* 578 */ "in_op ::= IN", - /* 579 */ "in_op ::= NOT IN", - /* 580 */ "in_predicate_value ::= NK_LP literal_list NK_RP", - /* 581 */ "boolean_value_expression ::= boolean_primary", - /* 582 */ "boolean_value_expression ::= NOT boolean_primary", - /* 583 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 584 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 585 */ "boolean_primary ::= predicate", - /* 586 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 587 */ "common_expression ::= expr_or_subquery", - /* 588 */ "common_expression ::= boolean_value_expression", - /* 589 */ "from_clause_opt ::=", - /* 590 */ "from_clause_opt ::= FROM table_reference_list", - /* 591 */ "table_reference_list ::= table_reference", - /* 592 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 593 */ "table_reference ::= table_primary", - /* 594 */ "table_reference ::= joined_table", - /* 595 */ "table_primary ::= table_name alias_opt", - /* 596 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 597 */ "table_primary ::= subquery alias_opt", - /* 598 */ "table_primary ::= parenthesized_joined_table", - /* 599 */ "alias_opt ::=", - /* 600 */ "alias_opt ::= table_alias", - /* 601 */ "alias_opt ::= AS table_alias", - /* 602 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 603 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 604 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 605 */ "join_type ::=", - /* 606 */ "join_type ::= INNER", - /* 607 */ "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", - /* 608 */ "hint_list ::=", - /* 609 */ "hint_list ::= NK_HINT", - /* 610 */ "tag_mode_opt ::=", - /* 611 */ "tag_mode_opt ::= TAGS", - /* 612 */ "set_quantifier_opt ::=", - /* 613 */ "set_quantifier_opt ::= DISTINCT", - /* 614 */ "set_quantifier_opt ::= ALL", - /* 615 */ "select_list ::= select_item", - /* 616 */ "select_list ::= select_list NK_COMMA select_item", - /* 617 */ "select_item ::= NK_STAR", - /* 618 */ "select_item ::= common_expression", - /* 619 */ "select_item ::= common_expression column_alias", - /* 620 */ "select_item ::= common_expression AS column_alias", - /* 621 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 622 */ "where_clause_opt ::=", - /* 623 */ "where_clause_opt ::= WHERE search_condition", - /* 624 */ "partition_by_clause_opt ::=", - /* 625 */ "partition_by_clause_opt ::= PARTITION BY partition_list", - /* 626 */ "partition_list ::= partition_item", - /* 627 */ "partition_list ::= partition_list NK_COMMA partition_item", - /* 628 */ "partition_item ::= expr_or_subquery", - /* 629 */ "partition_item ::= expr_or_subquery column_alias", - /* 630 */ "partition_item ::= expr_or_subquery AS column_alias", - /* 631 */ "twindow_clause_opt ::=", - /* 632 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", - /* 633 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", - /* 634 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 635 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", - /* 636 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", - /* 637 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", - /* 638 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 639 */ "sliding_opt ::=", - /* 640 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", - /* 641 */ "interval_sliding_duration_literal ::= NK_VARIABLE", - /* 642 */ "interval_sliding_duration_literal ::= NK_STRING", - /* 643 */ "interval_sliding_duration_literal ::= NK_INTEGER", - /* 644 */ "fill_opt ::=", - /* 645 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 646 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", - /* 647 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", - /* 648 */ "fill_mode ::= NONE", - /* 649 */ "fill_mode ::= PREV", - /* 650 */ "fill_mode ::= NULL", - /* 651 */ "fill_mode ::= NULL_F", - /* 652 */ "fill_mode ::= LINEAR", - /* 653 */ "fill_mode ::= NEXT", - /* 654 */ "group_by_clause_opt ::=", - /* 655 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 656 */ "group_by_list ::= expr_or_subquery", - /* 657 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", - /* 658 */ "having_clause_opt ::=", - /* 659 */ "having_clause_opt ::= HAVING search_condition", - /* 660 */ "range_opt ::=", - /* 661 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", - /* 662 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", - /* 663 */ "every_opt ::=", - /* 664 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 665 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 666 */ "query_simple ::= query_specification", - /* 667 */ "query_simple ::= union_query_expression", - /* 668 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", - /* 669 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", - /* 670 */ "query_simple_or_subquery ::= query_simple", - /* 671 */ "query_simple_or_subquery ::= subquery", - /* 672 */ "query_or_subquery ::= query_expression", - /* 673 */ "query_or_subquery ::= subquery", - /* 674 */ "order_by_clause_opt ::=", - /* 675 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 676 */ "slimit_clause_opt ::=", - /* 677 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 678 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 679 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 680 */ "limit_clause_opt ::=", - /* 681 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 682 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 683 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 684 */ "subquery ::= NK_LP query_expression NK_RP", - /* 685 */ "subquery ::= NK_LP subquery NK_RP", - /* 686 */ "search_condition ::= common_expression", - /* 687 */ "sort_specification_list ::= sort_specification", - /* 688 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 689 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", - /* 690 */ "ordering_specification_opt ::=", - /* 691 */ "ordering_specification_opt ::= ASC", - /* 692 */ "ordering_specification_opt ::= DESC", - /* 693 */ "null_ordering_opt ::=", - /* 694 */ "null_ordering_opt ::= NULLS FIRST", - /* 695 */ "null_ordering_opt ::= NULLS LAST", + /* 220 */ "type_name_default_len ::= BINARY", + /* 221 */ "type_name_default_len ::= NCHAR", + /* 222 */ "type_name_default_len ::= VARCHAR", + /* 223 */ "type_name_default_len ::= VARBINARY", + /* 224 */ "tags_def_opt ::=", + /* 225 */ "tags_def_opt ::= tags_def", + /* 226 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 227 */ "table_options ::=", + /* 228 */ "table_options ::= table_options COMMENT NK_STRING", + /* 229 */ "table_options ::= table_options MAX_DELAY duration_list", + /* 230 */ "table_options ::= table_options WATERMARK duration_list", + /* 231 */ "table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP", + /* 232 */ "table_options ::= table_options TTL NK_INTEGER", + /* 233 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 234 */ "table_options ::= table_options DELETE_MARK duration_list", + /* 235 */ "alter_table_options ::= alter_table_option", + /* 236 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 237 */ "alter_table_option ::= COMMENT NK_STRING", + /* 238 */ "alter_table_option ::= TTL NK_INTEGER", + /* 239 */ "duration_list ::= duration_literal", + /* 240 */ "duration_list ::= duration_list NK_COMMA duration_literal", + /* 241 */ "rollup_func_list ::= rollup_func_name", + /* 242 */ "rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name", + /* 243 */ "rollup_func_name ::= function_name", + /* 244 */ "rollup_func_name ::= FIRST", + /* 245 */ "rollup_func_name ::= LAST", + /* 246 */ "col_name_list ::= col_name", + /* 247 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 248 */ "col_name ::= column_name", + /* 249 */ "cmd ::= SHOW DNODES", + /* 250 */ "cmd ::= SHOW USERS", + /* 251 */ "cmd ::= SHOW USER PRIVILEGES", + /* 252 */ "cmd ::= SHOW db_kind_opt DATABASES", + /* 253 */ "cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt", + /* 254 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 255 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 256 */ "cmd ::= SHOW MNODES", + /* 257 */ "cmd ::= SHOW QNODES", + /* 258 */ "cmd ::= SHOW ARBGROUPS", + /* 259 */ "cmd ::= SHOW FUNCTIONS", + /* 260 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 261 */ "cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name", + /* 262 */ "cmd ::= SHOW STREAMS", + /* 263 */ "cmd ::= SHOW ACCOUNTS", + /* 264 */ "cmd ::= SHOW APPS", + /* 265 */ "cmd ::= SHOW CONNECTIONS", + /* 266 */ "cmd ::= SHOW LICENCES", + /* 267 */ "cmd ::= SHOW GRANTS", + /* 268 */ "cmd ::= SHOW GRANTS FULL", + /* 269 */ "cmd ::= SHOW GRANTS LOGS", + /* 270 */ "cmd ::= SHOW CLUSTER MACHINES", + /* 271 */ "cmd ::= SHOW CREATE DATABASE db_name", + /* 272 */ "cmd ::= SHOW CREATE TABLE full_table_name", + /* 273 */ "cmd ::= SHOW CREATE STABLE full_table_name", + /* 274 */ "cmd ::= SHOW QUERIES", + /* 275 */ "cmd ::= SHOW SCORES", + /* 276 */ "cmd ::= SHOW TOPICS", + /* 277 */ "cmd ::= SHOW VARIABLES", + /* 278 */ "cmd ::= SHOW CLUSTER VARIABLES", + /* 279 */ "cmd ::= SHOW LOCAL VARIABLES", + /* 280 */ "cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt", + /* 281 */ "cmd ::= SHOW BNODES", + /* 282 */ "cmd ::= SHOW SNODES", + /* 283 */ "cmd ::= SHOW CLUSTER", + /* 284 */ "cmd ::= SHOW TRANSACTIONS", + /* 285 */ "cmd ::= SHOW TABLE DISTRIBUTED full_table_name", + /* 286 */ "cmd ::= SHOW CONSUMERS", + /* 287 */ "cmd ::= SHOW SUBSCRIPTIONS", + /* 288 */ "cmd ::= SHOW TAGS FROM table_name_cond from_db_opt", + /* 289 */ "cmd ::= SHOW TAGS FROM db_name NK_DOT table_name", + /* 290 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt", + /* 291 */ "cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name", + /* 292 */ "cmd ::= SHOW VNODES ON DNODE NK_INTEGER", + /* 293 */ "cmd ::= SHOW VNODES", + /* 294 */ "cmd ::= SHOW db_name_cond_opt ALIVE", + /* 295 */ "cmd ::= SHOW CLUSTER ALIVE", + /* 296 */ "cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt", + /* 297 */ "cmd ::= SHOW CREATE VIEW full_table_name", + /* 298 */ "cmd ::= SHOW COMPACTS", + /* 299 */ "cmd ::= SHOW COMPACT NK_INTEGER", + /* 300 */ "table_kind_db_name_cond_opt ::=", + /* 301 */ "table_kind_db_name_cond_opt ::= table_kind", + /* 302 */ "table_kind_db_name_cond_opt ::= db_name NK_DOT", + /* 303 */ "table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT", + /* 304 */ "table_kind ::= NORMAL", + /* 305 */ "table_kind ::= CHILD", + /* 306 */ "db_name_cond_opt ::=", + /* 307 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 308 */ "like_pattern_opt ::=", + /* 309 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 310 */ "table_name_cond ::= table_name", + /* 311 */ "from_db_opt ::=", + /* 312 */ "from_db_opt ::= FROM db_name", + /* 313 */ "tag_list_opt ::=", + /* 314 */ "tag_list_opt ::= tag_item", + /* 315 */ "tag_list_opt ::= tag_list_opt NK_COMMA tag_item", + /* 316 */ "tag_item ::= TBNAME", + /* 317 */ "tag_item ::= QTAGS", + /* 318 */ "tag_item ::= column_name", + /* 319 */ "tag_item ::= column_name column_alias", + /* 320 */ "tag_item ::= column_name AS column_alias", + /* 321 */ "db_kind_opt ::=", + /* 322 */ "db_kind_opt ::= USER", + /* 323 */ "db_kind_opt ::= SYSTEM", + /* 324 */ "cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options", + /* 325 */ "cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP", + /* 326 */ "cmd ::= DROP INDEX exists_opt full_index_name", + /* 327 */ "full_index_name ::= index_name", + /* 328 */ "full_index_name ::= db_name NK_DOT index_name", + /* 329 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt", + /* 330 */ "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", + /* 331 */ "func_list ::= func", + /* 332 */ "func_list ::= func_list NK_COMMA func", + /* 333 */ "func ::= sma_func_name NK_LP expression_list NK_RP", + /* 334 */ "sma_func_name ::= function_name", + /* 335 */ "sma_func_name ::= COUNT", + /* 336 */ "sma_func_name ::= FIRST", + /* 337 */ "sma_func_name ::= LAST", + /* 338 */ "sma_func_name ::= LAST_ROW", + /* 339 */ "sma_stream_opt ::=", + /* 340 */ "sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal", + /* 341 */ "sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal", + /* 342 */ "sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal", + /* 343 */ "with_meta ::= AS", + /* 344 */ "with_meta ::= WITH META AS", + /* 345 */ "with_meta ::= ONLY META AS", + /* 346 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery", + /* 347 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name", + /* 348 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt", + /* 349 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 350 */ "cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name", + /* 351 */ "cmd ::= DESC full_table_name", + /* 352 */ "cmd ::= DESCRIBE full_table_name", + /* 353 */ "cmd ::= RESET QUERY CACHE", + /* 354 */ "cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery", + /* 355 */ "cmd ::= EXPLAIN analyze_opt explain_options insert_query", + /* 356 */ "analyze_opt ::=", + /* 357 */ "analyze_opt ::= ANALYZE", + /* 358 */ "explain_options ::=", + /* 359 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 360 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 361 */ "cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt", + /* 362 */ "cmd ::= DROP FUNCTION exists_opt function_name", + /* 363 */ "agg_func_opt ::=", + /* 364 */ "agg_func_opt ::= AGGREGATE", + /* 365 */ "bufsize_opt ::=", + /* 366 */ "bufsize_opt ::= BUFSIZE NK_INTEGER", + /* 367 */ "language_opt ::=", + /* 368 */ "language_opt ::= LANGUAGE NK_STRING", + /* 369 */ "or_replace_opt ::=", + /* 370 */ "or_replace_opt ::= OR REPLACE", + /* 371 */ "cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery", + /* 372 */ "cmd ::= DROP VIEW exists_opt full_view_name", + /* 373 */ "full_view_name ::= view_name", + /* 374 */ "full_view_name ::= db_name NK_DOT view_name", + /* 375 */ "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", + /* 376 */ "cmd ::= DROP STREAM exists_opt stream_name", + /* 377 */ "cmd ::= PAUSE STREAM exists_opt stream_name", + /* 378 */ "cmd ::= RESUME STREAM exists_opt ignore_opt stream_name", + /* 379 */ "col_list_opt ::=", + /* 380 */ "col_list_opt ::= NK_LP column_stream_def_list NK_RP", + /* 381 */ "column_stream_def_list ::= column_stream_def", + /* 382 */ "column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def", + /* 383 */ "column_stream_def ::= column_name", + /* 384 */ "column_stream_def ::= column_name PRIMARY KEY", + /* 385 */ "tag_def_or_ref_opt ::=", + /* 386 */ "tag_def_or_ref_opt ::= tags_def", + /* 387 */ "tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP", + /* 388 */ "stream_options ::=", + /* 389 */ "stream_options ::= stream_options TRIGGER AT_ONCE", + /* 390 */ "stream_options ::= stream_options TRIGGER WINDOW_CLOSE", + /* 391 */ "stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal", + /* 392 */ "stream_options ::= stream_options WATERMARK duration_literal", + /* 393 */ "stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER", + /* 394 */ "stream_options ::= stream_options FILL_HISTORY NK_INTEGER", + /* 395 */ "stream_options ::= stream_options DELETE_MARK duration_literal", + /* 396 */ "stream_options ::= stream_options IGNORE UPDATE NK_INTEGER", + /* 397 */ "subtable_opt ::=", + /* 398 */ "subtable_opt ::= SUBTABLE NK_LP expression NK_RP", + /* 399 */ "ignore_opt ::=", + /* 400 */ "ignore_opt ::= IGNORE UNTREATED", + /* 401 */ "cmd ::= KILL CONNECTION NK_INTEGER", + /* 402 */ "cmd ::= KILL QUERY NK_STRING", + /* 403 */ "cmd ::= KILL TRANSACTION NK_INTEGER", + /* 404 */ "cmd ::= KILL COMPACT NK_INTEGER", + /* 405 */ "cmd ::= BALANCE VGROUP", + /* 406 */ "cmd ::= BALANCE VGROUP LEADER on_vgroup_id", + /* 407 */ "cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER", + /* 408 */ "cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list", + /* 409 */ "cmd ::= SPLIT VGROUP NK_INTEGER", + /* 410 */ "on_vgroup_id ::=", + /* 411 */ "on_vgroup_id ::= ON NK_INTEGER", + /* 412 */ "dnode_list ::= DNODE NK_INTEGER", + /* 413 */ "dnode_list ::= dnode_list DNODE NK_INTEGER", + /* 414 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", + /* 415 */ "cmd ::= query_or_subquery", + /* 416 */ "cmd ::= insert_query", + /* 417 */ "insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery", + /* 418 */ "insert_query ::= INSERT INTO full_table_name query_or_subquery", + /* 419 */ "tags_literal ::= NK_INTEGER", + /* 420 */ "tags_literal ::= NK_INTEGER NK_PLUS duration_literal", + /* 421 */ "tags_literal ::= NK_INTEGER NK_MINUS duration_literal", + /* 422 */ "tags_literal ::= NK_PLUS NK_INTEGER", + /* 423 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal", + /* 424 */ "tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal", + /* 425 */ "tags_literal ::= NK_MINUS NK_INTEGER", + /* 426 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal", + /* 427 */ "tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal", + /* 428 */ "tags_literal ::= NK_FLOAT", + /* 429 */ "tags_literal ::= NK_PLUS NK_FLOAT", + /* 430 */ "tags_literal ::= NK_MINUS NK_FLOAT", + /* 431 */ "tags_literal ::= NK_BIN", + /* 432 */ "tags_literal ::= NK_BIN NK_PLUS duration_literal", + /* 433 */ "tags_literal ::= NK_BIN NK_MINUS duration_literal", + /* 434 */ "tags_literal ::= NK_PLUS NK_BIN", + /* 435 */ "tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal", + /* 436 */ "tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal", + /* 437 */ "tags_literal ::= NK_MINUS NK_BIN", + /* 438 */ "tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal", + /* 439 */ "tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal", + /* 440 */ "tags_literal ::= NK_HEX", + /* 441 */ "tags_literal ::= NK_HEX NK_PLUS duration_literal", + /* 442 */ "tags_literal ::= NK_HEX NK_MINUS duration_literal", + /* 443 */ "tags_literal ::= NK_PLUS NK_HEX", + /* 444 */ "tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal", + /* 445 */ "tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal", + /* 446 */ "tags_literal ::= NK_MINUS NK_HEX", + /* 447 */ "tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal", + /* 448 */ "tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal", + /* 449 */ "tags_literal ::= NK_STRING", + /* 450 */ "tags_literal ::= NK_STRING NK_PLUS duration_literal", + /* 451 */ "tags_literal ::= NK_STRING NK_MINUS duration_literal", + /* 452 */ "tags_literal ::= NK_BOOL", + /* 453 */ "tags_literal ::= NULL", + /* 454 */ "tags_literal ::= literal_func", + /* 455 */ "tags_literal ::= literal_func NK_PLUS duration_literal", + /* 456 */ "tags_literal ::= literal_func NK_MINUS duration_literal", + /* 457 */ "tags_literal_list ::= tags_literal", + /* 458 */ "tags_literal_list ::= tags_literal_list NK_COMMA tags_literal", + /* 459 */ "literal ::= NK_INTEGER", + /* 460 */ "literal ::= NK_FLOAT", + /* 461 */ "literal ::= NK_STRING", + /* 462 */ "literal ::= NK_BOOL", + /* 463 */ "literal ::= TIMESTAMP NK_STRING", + /* 464 */ "literal ::= duration_literal", + /* 465 */ "literal ::= NULL", + /* 466 */ "literal ::= NK_QUESTION", + /* 467 */ "duration_literal ::= NK_VARIABLE", + /* 468 */ "signed ::= NK_INTEGER", + /* 469 */ "signed ::= NK_PLUS NK_INTEGER", + /* 470 */ "signed ::= NK_MINUS NK_INTEGER", + /* 471 */ "signed ::= NK_FLOAT", + /* 472 */ "signed ::= NK_PLUS NK_FLOAT", + /* 473 */ "signed ::= NK_MINUS NK_FLOAT", + /* 474 */ "signed_literal ::= signed", + /* 475 */ "signed_literal ::= NK_STRING", + /* 476 */ "signed_literal ::= NK_BOOL", + /* 477 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 478 */ "signed_literal ::= duration_literal", + /* 479 */ "signed_literal ::= NULL", + /* 480 */ "signed_literal ::= literal_func", + /* 481 */ "signed_literal ::= NK_QUESTION", + /* 482 */ "literal_list ::= signed_literal", + /* 483 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 484 */ "db_name ::= NK_ID", + /* 485 */ "table_name ::= NK_ID", + /* 486 */ "column_name ::= NK_ID", + /* 487 */ "function_name ::= NK_ID", + /* 488 */ "view_name ::= NK_ID", + /* 489 */ "table_alias ::= NK_ID", + /* 490 */ "column_alias ::= NK_ID", + /* 491 */ "column_alias ::= NK_ALIAS", + /* 492 */ "user_name ::= NK_ID", + /* 493 */ "topic_name ::= NK_ID", + /* 494 */ "stream_name ::= NK_ID", + /* 495 */ "cgroup_name ::= NK_ID", + /* 496 */ "index_name ::= NK_ID", + /* 497 */ "expr_or_subquery ::= expression", + /* 498 */ "expression ::= literal", + /* 499 */ "expression ::= pseudo_column", + /* 500 */ "expression ::= column_reference", + /* 501 */ "expression ::= function_expression", + /* 502 */ "expression ::= case_when_expression", + /* 503 */ "expression ::= NK_LP expression NK_RP", + /* 504 */ "expression ::= NK_PLUS expr_or_subquery", + /* 505 */ "expression ::= NK_MINUS expr_or_subquery", + /* 506 */ "expression ::= expr_or_subquery NK_PLUS expr_or_subquery", + /* 507 */ "expression ::= expr_or_subquery NK_MINUS expr_or_subquery", + /* 508 */ "expression ::= expr_or_subquery NK_STAR expr_or_subquery", + /* 509 */ "expression ::= expr_or_subquery NK_SLASH expr_or_subquery", + /* 510 */ "expression ::= expr_or_subquery NK_REM expr_or_subquery", + /* 511 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 512 */ "expression ::= expr_or_subquery NK_BITAND expr_or_subquery", + /* 513 */ "expression ::= expr_or_subquery NK_BITOR expr_or_subquery", + /* 514 */ "expression_list ::= expr_or_subquery", + /* 515 */ "expression_list ::= expression_list NK_COMMA expr_or_subquery", + /* 516 */ "column_reference ::= column_name", + /* 517 */ "column_reference ::= table_name NK_DOT column_name", + /* 518 */ "column_reference ::= NK_ALIAS", + /* 519 */ "column_reference ::= table_name NK_DOT NK_ALIAS", + /* 520 */ "pseudo_column ::= ROWTS", + /* 521 */ "pseudo_column ::= TBNAME", + /* 522 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 523 */ "pseudo_column ::= QSTART", + /* 524 */ "pseudo_column ::= QEND", + /* 525 */ "pseudo_column ::= QDURATION", + /* 526 */ "pseudo_column ::= WSTART", + /* 527 */ "pseudo_column ::= WEND", + /* 528 */ "pseudo_column ::= WDURATION", + /* 529 */ "pseudo_column ::= IROWTS", + /* 530 */ "pseudo_column ::= ISFILLED", + /* 531 */ "pseudo_column ::= QTAGS", + /* 532 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 533 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 534 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP", + /* 535 */ "function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP", + /* 536 */ "function_expression ::= literal_func", + /* 537 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 538 */ "literal_func ::= NOW", + /* 539 */ "literal_func ::= TODAY", + /* 540 */ "noarg_func ::= NOW", + /* 541 */ "noarg_func ::= TODAY", + /* 542 */ "noarg_func ::= TIMEZONE", + /* 543 */ "noarg_func ::= DATABASE", + /* 544 */ "noarg_func ::= CLIENT_VERSION", + /* 545 */ "noarg_func ::= SERVER_VERSION", + /* 546 */ "noarg_func ::= SERVER_STATUS", + /* 547 */ "noarg_func ::= CURRENT_USER", + /* 548 */ "noarg_func ::= USER", + /* 549 */ "star_func ::= COUNT", + /* 550 */ "star_func ::= FIRST", + /* 551 */ "star_func ::= LAST", + /* 552 */ "star_func ::= LAST_ROW", + /* 553 */ "star_func_para_list ::= NK_STAR", + /* 554 */ "star_func_para_list ::= other_para_list", + /* 555 */ "other_para_list ::= star_func_para", + /* 556 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 557 */ "star_func_para ::= expr_or_subquery", + /* 558 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 559 */ "case_when_expression ::= CASE when_then_list case_when_else_opt END", + /* 560 */ "case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END", + /* 561 */ "when_then_list ::= when_then_expr", + /* 562 */ "when_then_list ::= when_then_list when_then_expr", + /* 563 */ "when_then_expr ::= WHEN common_expression THEN common_expression", + /* 564 */ "case_when_else_opt ::=", + /* 565 */ "case_when_else_opt ::= ELSE common_expression", + /* 566 */ "predicate ::= expr_or_subquery compare_op expr_or_subquery", + /* 567 */ "predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery", + /* 568 */ "predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery", + /* 569 */ "predicate ::= expr_or_subquery IS NULL", + /* 570 */ "predicate ::= expr_or_subquery IS NOT NULL", + /* 571 */ "predicate ::= expr_or_subquery in_op in_predicate_value", + /* 572 */ "compare_op ::= NK_LT", + /* 573 */ "compare_op ::= NK_GT", + /* 574 */ "compare_op ::= NK_LE", + /* 575 */ "compare_op ::= NK_GE", + /* 576 */ "compare_op ::= NK_NE", + /* 577 */ "compare_op ::= NK_EQ", + /* 578 */ "compare_op ::= LIKE", + /* 579 */ "compare_op ::= NOT LIKE", + /* 580 */ "compare_op ::= MATCH", + /* 581 */ "compare_op ::= NMATCH", + /* 582 */ "compare_op ::= CONTAINS", + /* 583 */ "in_op ::= IN", + /* 584 */ "in_op ::= NOT IN", + /* 585 */ "in_predicate_value ::= NK_LP literal_list NK_RP", + /* 586 */ "boolean_value_expression ::= boolean_primary", + /* 587 */ "boolean_value_expression ::= NOT boolean_primary", + /* 588 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 589 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 590 */ "boolean_primary ::= predicate", + /* 591 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 592 */ "common_expression ::= expr_or_subquery", + /* 593 */ "common_expression ::= boolean_value_expression", + /* 594 */ "from_clause_opt ::=", + /* 595 */ "from_clause_opt ::= FROM table_reference_list", + /* 596 */ "table_reference_list ::= table_reference", + /* 597 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 598 */ "table_reference ::= table_primary", + /* 599 */ "table_reference ::= joined_table", + /* 600 */ "table_primary ::= table_name alias_opt", + /* 601 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 602 */ "table_primary ::= subquery alias_opt", + /* 603 */ "table_primary ::= parenthesized_joined_table", + /* 604 */ "alias_opt ::=", + /* 605 */ "alias_opt ::= table_alias", + /* 606 */ "alias_opt ::= AS table_alias", + /* 607 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 608 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 609 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 610 */ "join_type ::=", + /* 611 */ "join_type ::= INNER", + /* 612 */ "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", + /* 613 */ "hint_list ::=", + /* 614 */ "hint_list ::= NK_HINT", + /* 615 */ "tag_mode_opt ::=", + /* 616 */ "tag_mode_opt ::= TAGS", + /* 617 */ "set_quantifier_opt ::=", + /* 618 */ "set_quantifier_opt ::= DISTINCT", + /* 619 */ "set_quantifier_opt ::= ALL", + /* 620 */ "select_list ::= select_item", + /* 621 */ "select_list ::= select_list NK_COMMA select_item", + /* 622 */ "select_item ::= NK_STAR", + /* 623 */ "select_item ::= common_expression", + /* 624 */ "select_item ::= common_expression column_alias", + /* 625 */ "select_item ::= common_expression AS column_alias", + /* 626 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 627 */ "where_clause_opt ::=", + /* 628 */ "where_clause_opt ::= WHERE search_condition", + /* 629 */ "partition_by_clause_opt ::=", + /* 630 */ "partition_by_clause_opt ::= PARTITION BY partition_list", + /* 631 */ "partition_list ::= partition_item", + /* 632 */ "partition_list ::= partition_list NK_COMMA partition_item", + /* 633 */ "partition_item ::= expr_or_subquery", + /* 634 */ "partition_item ::= expr_or_subquery column_alias", + /* 635 */ "partition_item ::= expr_or_subquery AS column_alias", + /* 636 */ "twindow_clause_opt ::=", + /* 637 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP", + /* 638 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP", + /* 639 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 640 */ "twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt", + /* 641 */ "twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition", + /* 642 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP", + /* 643 */ "twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 644 */ "sliding_opt ::=", + /* 645 */ "sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP", + /* 646 */ "interval_sliding_duration_literal ::= NK_VARIABLE", + /* 647 */ "interval_sliding_duration_literal ::= NK_STRING", + /* 648 */ "interval_sliding_duration_literal ::= NK_INTEGER", + /* 649 */ "fill_opt ::=", + /* 650 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 651 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP", + /* 652 */ "fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP", + /* 653 */ "fill_mode ::= NONE", + /* 654 */ "fill_mode ::= PREV", + /* 655 */ "fill_mode ::= NULL", + /* 656 */ "fill_mode ::= NULL_F", + /* 657 */ "fill_mode ::= LINEAR", + /* 658 */ "fill_mode ::= NEXT", + /* 659 */ "group_by_clause_opt ::=", + /* 660 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 661 */ "group_by_list ::= expr_or_subquery", + /* 662 */ "group_by_list ::= group_by_list NK_COMMA expr_or_subquery", + /* 663 */ "having_clause_opt ::=", + /* 664 */ "having_clause_opt ::= HAVING search_condition", + /* 665 */ "range_opt ::=", + /* 666 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP", + /* 667 */ "range_opt ::= RANGE NK_LP expr_or_subquery NK_RP", + /* 668 */ "every_opt ::=", + /* 669 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 670 */ "query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 671 */ "query_simple ::= query_specification", + /* 672 */ "query_simple ::= union_query_expression", + /* 673 */ "union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery", + /* 674 */ "union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery", + /* 675 */ "query_simple_or_subquery ::= query_simple", + /* 676 */ "query_simple_or_subquery ::= subquery", + /* 677 */ "query_or_subquery ::= query_expression", + /* 678 */ "query_or_subquery ::= subquery", + /* 679 */ "order_by_clause_opt ::=", + /* 680 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 681 */ "slimit_clause_opt ::=", + /* 682 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 683 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 684 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 685 */ "limit_clause_opt ::=", + /* 686 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 687 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 688 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 689 */ "subquery ::= NK_LP query_expression NK_RP", + /* 690 */ "subquery ::= NK_LP subquery NK_RP", + /* 691 */ "search_condition ::= common_expression", + /* 692 */ "sort_specification_list ::= sort_specification", + /* 693 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 694 */ "sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt", + /* 695 */ "ordering_specification_opt ::=", + /* 696 */ "ordering_specification_opt ::= ASC", + /* 697 */ "ordering_specification_opt ::= DESC", + /* 698 */ "null_ordering_opt ::=", + /* 699 */ "null_ordering_opt ::= NULLS FIRST", + /* 700 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -3293,78 +3330,82 @@ static void yy_destructor( case 402: /* create_subtable_clause */ case 405: /* drop_table_clause */ case 407: /* column_def */ - case 411: /* duration_literal */ - case 412: /* rollup_func_name */ - case 414: /* col_name */ - case 417: /* like_pattern_opt */ - case 418: /* db_name_cond_opt */ - case 419: /* table_name_cond */ - case 420: /* from_db_opt */ - case 423: /* tag_item */ - case 425: /* index_options */ - case 426: /* full_index_name */ - case 429: /* sliding_opt */ - case 430: /* sma_stream_opt */ - case 431: /* func */ - case 435: /* query_or_subquery */ - case 436: /* where_clause_opt */ - case 439: /* explain_options */ - case 440: /* insert_query */ - case 445: /* full_view_name */ - case 448: /* stream_options */ - case 451: /* subtable_opt */ - case 454: /* column_stream_def */ - 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 412: /* duration_literal */ + case 413: /* rollup_func_name */ + case 415: /* col_name */ + case 418: /* like_pattern_opt */ + case 419: /* db_name_cond_opt */ + case 420: /* table_name_cond */ + case 421: /* from_db_opt */ + case 424: /* tag_item */ + case 426: /* index_options */ + case 427: /* full_index_name */ + case 430: /* sliding_opt */ + case 431: /* sma_stream_opt */ + case 432: /* func */ + case 436: /* query_or_subquery */ + case 437: /* where_clause_opt */ + case 440: /* explain_options */ + case 441: /* insert_query */ + case 446: /* full_view_name */ + case 449: /* stream_options */ + case 452: /* subtable_opt */ + case 455: /* column_stream_def */ + 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)); +#line 7 "sql.y" + nodesDestroyNode((yypminor->yy664)); +#line 3396 "sql.c" } break; case 356: /* account_options */ case 357: /* alter_account_options */ case 359: /* alter_account_option */ case 381: /* speed_opt */ - case 434: /* with_meta */ - case 443: /* bufsize_opt */ + case 435: /* with_meta */ + case 444: /* bufsize_opt */ { +#line 54 "sql.y" +#line 3408 "sql.c" } break; case 360: /* ip_range_list */ @@ -3381,29 +3422,31 @@ static void yy_destructor( case 403: /* specific_cols_opt */ case 404: /* tags_literal_list */ case 406: /* col_name_list */ - case 408: /* duration_list */ - case 409: /* rollup_func_list */ - case 421: /* tag_list_opt */ - case 428: /* func_list */ - case 433: /* expression_list */ - case 449: /* col_list_opt */ - case 450: /* tag_def_or_ref_opt */ - case 453: /* column_stream_def_list */ - 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 409: /* duration_list */ + case 410: /* rollup_func_list */ + case 422: /* tag_list_opt */ + case 429: /* func_list */ + case 434: /* expression_list */ + case 450: /* col_list_opt */ + case 451: /* tag_def_or_ref_opt */ + case 454: /* column_stream_def_list */ + 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)); +#line 85 "sql.y" + nodesDestroyList((yypminor->yy1006)); +#line 3449 "sql.c" } break; case 363: /* user_name */ @@ -3412,100 +3455,129 @@ static void yy_destructor( case 372: /* topic_name */ case 374: /* dnode_endpoint */ case 399: /* column_name */ - case 413: /* function_name */ - case 424: /* column_alias */ - case 427: /* index_name */ - case 432: /* sma_func_name */ - case 437: /* cgroup_name */ - case 444: /* language_opt */ - case 446: /* view_name */ - case 447: /* stream_name */ - case 456: /* on_vgroup_id */ - case 461: /* table_alias */ - case 467: /* star_func */ - case 469: /* noarg_func */ - case 487: /* alias_opt */ + case 414: /* function_name */ + case 425: /* column_alias */ + case 428: /* index_name */ + case 433: /* sma_func_name */ + case 438: /* cgroup_name */ + case 445: /* language_opt */ + case 447: /* view_name */ + case 448: /* stream_name */ + case 457: /* on_vgroup_id */ + case 462: /* table_alias */ + case 468: /* star_func */ + case 470: /* noarg_func */ + case 488: /* alias_opt */ { +#line 1028 "sql.y" +#line 3474 "sql.c" } break; case 364: /* sysinfo_opt */ { +#line 112 "sql.y" +#line 3481 "sql.c" } break; case 365: /* privileges */ case 368: /* priv_type_list */ case 369: /* priv_type */ { +#line 121 "sql.y" +#line 3490 "sql.c" } break; case 366: /* priv_level */ { +#line 138 "sql.y" +#line 3497 "sql.c" } break; case 375: /* force_opt */ case 376: /* unsafe_opt */ case 377: /* not_exists_opt */ case 379: /* exists_opt */ - case 438: /* analyze_opt */ - case 441: /* or_replace_opt */ - case 442: /* agg_func_opt */ - case 452: /* ignore_opt */ - case 493: /* set_quantifier_opt */ - case 494: /* tag_mode_opt */ + case 439: /* analyze_opt */ + case 442: /* or_replace_opt */ + case 443: /* agg_func_opt */ + case 453: /* ignore_opt */ + case 494: /* set_quantifier_opt */ + case 495: /* tag_mode_opt */ { +#line 167 "sql.y" +#line 3513 "sql.c" } break; case 388: /* alter_db_option */ - case 410: /* alter_table_option */ + case 411: /* alter_table_option */ { +#line 269 "sql.y" +#line 3521 "sql.c" } break; case 400: /* type_name */ + case 408: /* type_name_default_len */ { +#line 393 "sql.y" +#line 3529 "sql.c" } break; - case 415: /* db_kind_opt */ - case 422: /* table_kind */ + case 416: /* db_kind_opt */ + case 423: /* table_kind */ { +#line 569 "sql.y" +#line 3537 "sql.c" } break; - case 416: /* table_kind_db_name_cond_opt */ + case 417: /* table_kind_db_name_cond_opt */ { +#line 534 "sql.y" +#line 3544 "sql.c" } break; - case 477: /* compare_op */ - case 478: /* in_op */ + case 478: /* compare_op */ + case 479: /* in_op */ { +#line 1222 "sql.y" +#line 3552 "sql.c" } break; - case 490: /* join_type */ + case 491: /* join_type */ { +#line 1298 "sql.y" +#line 3559 "sql.c" } break; - case 507: /* fill_mode */ + case 508: /* fill_mode */ { +#line 1393 "sql.y" +#line 3566 "sql.c" } break; - case 518: /* ordering_specification_opt */ + case 519: /* ordering_specification_opt */ { +#line 1478 "sql.y" +#line 3573 "sql.c" } break; - case 519: /* null_ordering_opt */ + case 520: /* null_ordering_opt */ { +#line 1484 "sql.y" +#line 3580 "sql.c" } break; /********* End destructor definitions *****************************************/ @@ -4014,482 +4086,487 @@ static const YYCODETYPE yyRuleInfoLhs[] = { 400, /* (217) type_name ::= DECIMAL */ 400, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ 400, /* (219) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 392, /* (220) tags_def_opt ::= */ - 392, /* (221) tags_def_opt ::= tags_def */ - 395, /* (222) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - 393, /* (223) table_options ::= */ - 393, /* (224) table_options ::= table_options COMMENT NK_STRING */ - 393, /* (225) table_options ::= table_options MAX_DELAY duration_list */ - 393, /* (226) table_options ::= table_options WATERMARK duration_list */ - 393, /* (227) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - 393, /* (228) table_options ::= table_options TTL NK_INTEGER */ - 393, /* (229) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - 393, /* (230) table_options ::= table_options DELETE_MARK duration_list */ - 398, /* (231) alter_table_options ::= alter_table_option */ - 398, /* (232) alter_table_options ::= alter_table_options alter_table_option */ - 410, /* (233) alter_table_option ::= COMMENT NK_STRING */ - 410, /* (234) alter_table_option ::= TTL NK_INTEGER */ - 408, /* (235) duration_list ::= duration_literal */ - 408, /* (236) duration_list ::= duration_list NK_COMMA duration_literal */ - 409, /* (237) rollup_func_list ::= rollup_func_name */ - 409, /* (238) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - 412, /* (239) rollup_func_name ::= function_name */ - 412, /* (240) rollup_func_name ::= FIRST */ - 412, /* (241) rollup_func_name ::= LAST */ - 406, /* (242) col_name_list ::= col_name */ - 406, /* (243) col_name_list ::= col_name_list NK_COMMA col_name */ - 414, /* (244) col_name ::= column_name */ - 355, /* (245) cmd ::= SHOW DNODES */ - 355, /* (246) cmd ::= SHOW USERS */ - 355, /* (247) cmd ::= SHOW USER PRIVILEGES */ - 355, /* (248) cmd ::= SHOW db_kind_opt DATABASES */ - 355, /* (249) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ - 355, /* (250) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - 355, /* (251) cmd ::= SHOW db_name_cond_opt VGROUPS */ - 355, /* (252) cmd ::= SHOW MNODES */ - 355, /* (253) cmd ::= SHOW QNODES */ - 355, /* (254) cmd ::= SHOW ARBGROUPS */ - 355, /* (255) cmd ::= SHOW FUNCTIONS */ - 355, /* (256) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - 355, /* (257) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - 355, /* (258) cmd ::= SHOW STREAMS */ - 355, /* (259) cmd ::= SHOW ACCOUNTS */ - 355, /* (260) cmd ::= SHOW APPS */ - 355, /* (261) cmd ::= SHOW CONNECTIONS */ - 355, /* (262) cmd ::= SHOW LICENCES */ - 355, /* (263) cmd ::= SHOW GRANTS */ - 355, /* (264) cmd ::= SHOW GRANTS FULL */ - 355, /* (265) cmd ::= SHOW GRANTS LOGS */ - 355, /* (266) cmd ::= SHOW CLUSTER MACHINES */ - 355, /* (267) cmd ::= SHOW CREATE DATABASE db_name */ - 355, /* (268) cmd ::= SHOW CREATE TABLE full_table_name */ - 355, /* (269) cmd ::= SHOW CREATE STABLE full_table_name */ - 355, /* (270) cmd ::= SHOW QUERIES */ - 355, /* (271) cmd ::= SHOW SCORES */ - 355, /* (272) cmd ::= SHOW TOPICS */ - 355, /* (273) cmd ::= SHOW VARIABLES */ - 355, /* (274) cmd ::= SHOW CLUSTER VARIABLES */ - 355, /* (275) cmd ::= SHOW LOCAL VARIABLES */ - 355, /* (276) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - 355, /* (277) cmd ::= SHOW BNODES */ - 355, /* (278) cmd ::= SHOW SNODES */ - 355, /* (279) cmd ::= SHOW CLUSTER */ - 355, /* (280) cmd ::= SHOW TRANSACTIONS */ - 355, /* (281) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - 355, /* (282) cmd ::= SHOW CONSUMERS */ - 355, /* (283) cmd ::= SHOW SUBSCRIPTIONS */ - 355, /* (284) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - 355, /* (285) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - 355, /* (286) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - 355, /* (287) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - 355, /* (288) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ - 355, /* (289) cmd ::= SHOW VNODES */ - 355, /* (290) cmd ::= SHOW db_name_cond_opt ALIVE */ - 355, /* (291) cmd ::= SHOW CLUSTER ALIVE */ - 355, /* (292) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ - 355, /* (293) cmd ::= SHOW CREATE VIEW full_table_name */ - 355, /* (294) cmd ::= SHOW COMPACTS */ - 355, /* (295) cmd ::= SHOW COMPACT NK_INTEGER */ - 416, /* (296) table_kind_db_name_cond_opt ::= */ - 416, /* (297) table_kind_db_name_cond_opt ::= table_kind */ - 416, /* (298) table_kind_db_name_cond_opt ::= db_name NK_DOT */ - 416, /* (299) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ - 422, /* (300) table_kind ::= NORMAL */ - 422, /* (301) table_kind ::= CHILD */ - 418, /* (302) db_name_cond_opt ::= */ - 418, /* (303) db_name_cond_opt ::= db_name NK_DOT */ - 417, /* (304) like_pattern_opt ::= */ - 417, /* (305) like_pattern_opt ::= LIKE NK_STRING */ - 419, /* (306) table_name_cond ::= table_name */ - 420, /* (307) from_db_opt ::= */ - 420, /* (308) from_db_opt ::= FROM db_name */ - 421, /* (309) tag_list_opt ::= */ - 421, /* (310) tag_list_opt ::= tag_item */ - 421, /* (311) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - 423, /* (312) tag_item ::= TBNAME */ - 423, /* (313) tag_item ::= QTAGS */ - 423, /* (314) tag_item ::= column_name */ - 423, /* (315) tag_item ::= column_name column_alias */ - 423, /* (316) tag_item ::= column_name AS column_alias */ - 415, /* (317) db_kind_opt ::= */ - 415, /* (318) db_kind_opt ::= USER */ - 415, /* (319) db_kind_opt ::= SYSTEM */ - 355, /* (320) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ - 355, /* (321) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ - 355, /* (322) cmd ::= DROP INDEX exists_opt full_index_name */ - 426, /* (323) full_index_name ::= index_name */ - 426, /* (324) full_index_name ::= db_name NK_DOT index_name */ - 425, /* (325) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - 425, /* (326) 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 */ - 428, /* (327) func_list ::= func */ - 428, /* (328) func_list ::= func_list NK_COMMA func */ - 431, /* (329) func ::= sma_func_name NK_LP expression_list NK_RP */ - 432, /* (330) sma_func_name ::= function_name */ - 432, /* (331) sma_func_name ::= COUNT */ - 432, /* (332) sma_func_name ::= FIRST */ - 432, /* (333) sma_func_name ::= LAST */ - 432, /* (334) sma_func_name ::= LAST_ROW */ - 430, /* (335) sma_stream_opt ::= */ - 430, /* (336) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - 430, /* (337) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - 430, /* (338) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - 434, /* (339) with_meta ::= AS */ - 434, /* (340) with_meta ::= WITH META AS */ - 434, /* (341) with_meta ::= ONLY META AS */ - 355, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - 355, /* (343) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - 355, /* (344) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - 355, /* (345) cmd ::= DROP TOPIC exists_opt topic_name */ - 355, /* (346) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - 355, /* (347) cmd ::= DESC full_table_name */ - 355, /* (348) cmd ::= DESCRIBE full_table_name */ - 355, /* (349) cmd ::= RESET QUERY CACHE */ - 355, /* (350) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - 355, /* (351) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 438, /* (352) analyze_opt ::= */ - 438, /* (353) analyze_opt ::= ANALYZE */ - 439, /* (354) explain_options ::= */ - 439, /* (355) explain_options ::= explain_options VERBOSE NK_BOOL */ - 439, /* (356) explain_options ::= explain_options RATIO NK_FLOAT */ - 355, /* (357) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ - 355, /* (358) cmd ::= DROP FUNCTION exists_opt function_name */ - 442, /* (359) agg_func_opt ::= */ - 442, /* (360) agg_func_opt ::= AGGREGATE */ - 443, /* (361) bufsize_opt ::= */ - 443, /* (362) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 444, /* (363) language_opt ::= */ - 444, /* (364) language_opt ::= LANGUAGE NK_STRING */ - 441, /* (365) or_replace_opt ::= */ - 441, /* (366) or_replace_opt ::= OR REPLACE */ - 355, /* (367) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ - 355, /* (368) cmd ::= DROP VIEW exists_opt full_view_name */ - 445, /* (369) full_view_name ::= view_name */ - 445, /* (370) full_view_name ::= db_name NK_DOT view_name */ - 355, /* (371) 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 */ - 355, /* (372) cmd ::= DROP STREAM exists_opt stream_name */ - 355, /* (373) cmd ::= PAUSE STREAM exists_opt stream_name */ - 355, /* (374) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 449, /* (375) col_list_opt ::= */ - 449, /* (376) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ - 453, /* (377) column_stream_def_list ::= column_stream_def */ - 453, /* (378) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ - 454, /* (379) column_stream_def ::= column_name */ - 454, /* (380) column_stream_def ::= column_name PRIMARY KEY */ - 450, /* (381) tag_def_or_ref_opt ::= */ - 450, /* (382) tag_def_or_ref_opt ::= tags_def */ - 450, /* (383) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ - 448, /* (384) stream_options ::= */ - 448, /* (385) stream_options ::= stream_options TRIGGER AT_ONCE */ - 448, /* (386) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - 448, /* (387) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - 448, /* (388) stream_options ::= stream_options WATERMARK duration_literal */ - 448, /* (389) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - 448, /* (390) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - 448, /* (391) stream_options ::= stream_options DELETE_MARK duration_literal */ - 448, /* (392) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 451, /* (393) subtable_opt ::= */ - 451, /* (394) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 452, /* (395) ignore_opt ::= */ - 452, /* (396) ignore_opt ::= IGNORE UNTREATED */ - 355, /* (397) cmd ::= KILL CONNECTION NK_INTEGER */ - 355, /* (398) cmd ::= KILL QUERY NK_STRING */ - 355, /* (399) cmd ::= KILL TRANSACTION NK_INTEGER */ - 355, /* (400) cmd ::= KILL COMPACT NK_INTEGER */ - 355, /* (401) cmd ::= BALANCE VGROUP */ - 355, /* (402) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ - 355, /* (403) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - 355, /* (404) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - 355, /* (405) cmd ::= SPLIT VGROUP NK_INTEGER */ - 456, /* (406) on_vgroup_id ::= */ - 456, /* (407) on_vgroup_id ::= ON NK_INTEGER */ - 457, /* (408) dnode_list ::= DNODE NK_INTEGER */ - 457, /* (409) dnode_list ::= dnode_list DNODE NK_INTEGER */ - 355, /* (410) cmd ::= DELETE FROM full_table_name where_clause_opt */ - 355, /* (411) cmd ::= query_or_subquery */ - 355, /* (412) cmd ::= insert_query */ - 440, /* (413) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - 440, /* (414) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - 401, /* (415) tags_literal ::= NK_INTEGER */ - 401, /* (416) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - 401, /* (417) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ - 401, /* (418) tags_literal ::= NK_PLUS NK_INTEGER */ - 401, /* (419) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - 401, /* (420) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ - 401, /* (421) tags_literal ::= NK_MINUS NK_INTEGER */ - 401, /* (422) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ - 401, /* (423) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ - 401, /* (424) tags_literal ::= NK_FLOAT */ - 401, /* (425) tags_literal ::= NK_PLUS NK_FLOAT */ - 401, /* (426) tags_literal ::= NK_MINUS NK_FLOAT */ - 401, /* (427) tags_literal ::= NK_BIN */ - 401, /* (428) tags_literal ::= NK_BIN NK_PLUS duration_literal */ - 401, /* (429) tags_literal ::= NK_BIN NK_MINUS duration_literal */ - 401, /* (430) tags_literal ::= NK_PLUS NK_BIN */ - 401, /* (431) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ - 401, /* (432) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ - 401, /* (433) tags_literal ::= NK_MINUS NK_BIN */ - 401, /* (434) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ - 401, /* (435) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ - 401, /* (436) tags_literal ::= NK_HEX */ - 401, /* (437) tags_literal ::= NK_HEX NK_PLUS duration_literal */ - 401, /* (438) tags_literal ::= NK_HEX NK_MINUS duration_literal */ - 401, /* (439) tags_literal ::= NK_PLUS NK_HEX */ - 401, /* (440) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ - 401, /* (441) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ - 401, /* (442) tags_literal ::= NK_MINUS NK_HEX */ - 401, /* (443) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ - 401, /* (444) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ - 401, /* (445) tags_literal ::= NK_STRING */ - 401, /* (446) tags_literal ::= NK_STRING NK_PLUS duration_literal */ - 401, /* (447) tags_literal ::= NK_STRING NK_MINUS duration_literal */ - 401, /* (448) tags_literal ::= NK_BOOL */ - 401, /* (449) tags_literal ::= NULL */ - 401, /* (450) tags_literal ::= literal_func */ - 401, /* (451) tags_literal ::= literal_func NK_PLUS duration_literal */ - 401, /* (452) tags_literal ::= literal_func NK_MINUS duration_literal */ - 404, /* (453) tags_literal_list ::= tags_literal */ - 404, /* (454) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ - 358, /* (455) literal ::= NK_INTEGER */ - 358, /* (456) literal ::= NK_FLOAT */ - 358, /* (457) literal ::= NK_STRING */ - 358, /* (458) literal ::= NK_BOOL */ - 358, /* (459) literal ::= TIMESTAMP NK_STRING */ - 358, /* (460) literal ::= duration_literal */ - 358, /* (461) literal ::= NULL */ - 358, /* (462) literal ::= NK_QUESTION */ - 411, /* (463) duration_literal ::= NK_VARIABLE */ - 387, /* (464) signed ::= NK_INTEGER */ - 387, /* (465) signed ::= NK_PLUS NK_INTEGER */ - 387, /* (466) signed ::= NK_MINUS NK_INTEGER */ - 387, /* (467) signed ::= NK_FLOAT */ - 387, /* (468) signed ::= NK_PLUS NK_FLOAT */ - 387, /* (469) signed ::= NK_MINUS NK_FLOAT */ - 459, /* (470) signed_literal ::= signed */ - 459, /* (471) signed_literal ::= NK_STRING */ - 459, /* (472) signed_literal ::= NK_BOOL */ - 459, /* (473) signed_literal ::= TIMESTAMP NK_STRING */ - 459, /* (474) signed_literal ::= duration_literal */ - 459, /* (475) signed_literal ::= NULL */ - 459, /* (476) signed_literal ::= literal_func */ - 459, /* (477) signed_literal ::= NK_QUESTION */ - 460, /* (478) literal_list ::= signed_literal */ - 460, /* (479) literal_list ::= literal_list NK_COMMA signed_literal */ - 370, /* (480) db_name ::= NK_ID */ - 371, /* (481) table_name ::= NK_ID */ - 399, /* (482) column_name ::= NK_ID */ - 413, /* (483) function_name ::= NK_ID */ - 446, /* (484) view_name ::= NK_ID */ - 461, /* (485) table_alias ::= NK_ID */ - 424, /* (486) column_alias ::= NK_ID */ - 424, /* (487) column_alias ::= NK_ALIAS */ - 363, /* (488) user_name ::= NK_ID */ - 372, /* (489) topic_name ::= NK_ID */ - 447, /* (490) stream_name ::= NK_ID */ - 437, /* (491) cgroup_name ::= NK_ID */ - 427, /* (492) index_name ::= NK_ID */ - 462, /* (493) expr_or_subquery ::= expression */ - 455, /* (494) expression ::= literal */ - 455, /* (495) expression ::= pseudo_column */ - 455, /* (496) expression ::= column_reference */ - 455, /* (497) expression ::= function_expression */ - 455, /* (498) expression ::= case_when_expression */ - 455, /* (499) expression ::= NK_LP expression NK_RP */ - 455, /* (500) expression ::= NK_PLUS expr_or_subquery */ - 455, /* (501) expression ::= NK_MINUS expr_or_subquery */ - 455, /* (502) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - 455, /* (503) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - 455, /* (504) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - 455, /* (505) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - 455, /* (506) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - 455, /* (507) expression ::= column_reference NK_ARROW NK_STRING */ - 455, /* (508) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - 455, /* (509) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - 433, /* (510) expression_list ::= expr_or_subquery */ - 433, /* (511) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - 464, /* (512) column_reference ::= column_name */ - 464, /* (513) column_reference ::= table_name NK_DOT column_name */ - 464, /* (514) column_reference ::= NK_ALIAS */ - 464, /* (515) column_reference ::= table_name NK_DOT NK_ALIAS */ - 463, /* (516) pseudo_column ::= ROWTS */ - 463, /* (517) pseudo_column ::= TBNAME */ - 463, /* (518) pseudo_column ::= table_name NK_DOT TBNAME */ - 463, /* (519) pseudo_column ::= QSTART */ - 463, /* (520) pseudo_column ::= QEND */ - 463, /* (521) pseudo_column ::= QDURATION */ - 463, /* (522) pseudo_column ::= WSTART */ - 463, /* (523) pseudo_column ::= WEND */ - 463, /* (524) pseudo_column ::= WDURATION */ - 463, /* (525) pseudo_column ::= IROWTS */ - 463, /* (526) pseudo_column ::= ISFILLED */ - 463, /* (527) pseudo_column ::= QTAGS */ - 465, /* (528) function_expression ::= function_name NK_LP expression_list NK_RP */ - 465, /* (529) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - 465, /* (530) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - 465, /* (531) function_expression ::= literal_func */ - 458, /* (532) literal_func ::= noarg_func NK_LP NK_RP */ - 458, /* (533) literal_func ::= NOW */ - 458, /* (534) literal_func ::= TODAY */ - 469, /* (535) noarg_func ::= NOW */ - 469, /* (536) noarg_func ::= TODAY */ - 469, /* (537) noarg_func ::= TIMEZONE */ - 469, /* (538) noarg_func ::= DATABASE */ - 469, /* (539) noarg_func ::= CLIENT_VERSION */ - 469, /* (540) noarg_func ::= SERVER_VERSION */ - 469, /* (541) noarg_func ::= SERVER_STATUS */ - 469, /* (542) noarg_func ::= CURRENT_USER */ - 469, /* (543) noarg_func ::= USER */ - 467, /* (544) star_func ::= COUNT */ - 467, /* (545) star_func ::= FIRST */ - 467, /* (546) star_func ::= LAST */ - 467, /* (547) star_func ::= LAST_ROW */ - 468, /* (548) star_func_para_list ::= NK_STAR */ - 468, /* (549) star_func_para_list ::= other_para_list */ - 470, /* (550) other_para_list ::= star_func_para */ - 470, /* (551) other_para_list ::= other_para_list NK_COMMA star_func_para */ - 471, /* (552) star_func_para ::= expr_or_subquery */ - 471, /* (553) star_func_para ::= table_name NK_DOT NK_STAR */ - 466, /* (554) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - 466, /* (555) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - 472, /* (556) when_then_list ::= when_then_expr */ - 472, /* (557) when_then_list ::= when_then_list when_then_expr */ - 475, /* (558) when_then_expr ::= WHEN common_expression THEN common_expression */ - 473, /* (559) case_when_else_opt ::= */ - 473, /* (560) case_when_else_opt ::= ELSE common_expression */ - 476, /* (561) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - 476, /* (562) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - 476, /* (563) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - 476, /* (564) predicate ::= expr_or_subquery IS NULL */ - 476, /* (565) predicate ::= expr_or_subquery IS NOT NULL */ - 476, /* (566) predicate ::= expr_or_subquery in_op in_predicate_value */ - 477, /* (567) compare_op ::= NK_LT */ - 477, /* (568) compare_op ::= NK_GT */ - 477, /* (569) compare_op ::= NK_LE */ - 477, /* (570) compare_op ::= NK_GE */ - 477, /* (571) compare_op ::= NK_NE */ - 477, /* (572) compare_op ::= NK_EQ */ - 477, /* (573) compare_op ::= LIKE */ - 477, /* (574) compare_op ::= NOT LIKE */ - 477, /* (575) compare_op ::= MATCH */ - 477, /* (576) compare_op ::= NMATCH */ - 477, /* (577) compare_op ::= CONTAINS */ - 478, /* (578) in_op ::= IN */ - 478, /* (579) in_op ::= NOT IN */ - 479, /* (580) in_predicate_value ::= NK_LP literal_list NK_RP */ - 480, /* (581) boolean_value_expression ::= boolean_primary */ - 480, /* (582) boolean_value_expression ::= NOT boolean_primary */ - 480, /* (583) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - 480, /* (584) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - 481, /* (585) boolean_primary ::= predicate */ - 481, /* (586) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - 474, /* (587) common_expression ::= expr_or_subquery */ - 474, /* (588) common_expression ::= boolean_value_expression */ - 482, /* (589) from_clause_opt ::= */ - 482, /* (590) from_clause_opt ::= FROM table_reference_list */ - 483, /* (591) table_reference_list ::= table_reference */ - 483, /* (592) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - 484, /* (593) table_reference ::= table_primary */ - 484, /* (594) table_reference ::= joined_table */ - 485, /* (595) table_primary ::= table_name alias_opt */ - 485, /* (596) table_primary ::= db_name NK_DOT table_name alias_opt */ - 485, /* (597) table_primary ::= subquery alias_opt */ - 485, /* (598) table_primary ::= parenthesized_joined_table */ - 487, /* (599) alias_opt ::= */ - 487, /* (600) alias_opt ::= table_alias */ - 487, /* (601) alias_opt ::= AS table_alias */ - 489, /* (602) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - 489, /* (603) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - 486, /* (604) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - 490, /* (605) join_type ::= */ - 490, /* (606) join_type ::= INNER */ - 491, /* (607) 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, /* (608) hint_list ::= */ - 492, /* (609) hint_list ::= NK_HINT */ - 494, /* (610) tag_mode_opt ::= */ - 494, /* (611) tag_mode_opt ::= TAGS */ - 493, /* (612) set_quantifier_opt ::= */ - 493, /* (613) set_quantifier_opt ::= DISTINCT */ - 493, /* (614) set_quantifier_opt ::= ALL */ - 495, /* (615) select_list ::= select_item */ - 495, /* (616) select_list ::= select_list NK_COMMA select_item */ - 503, /* (617) select_item ::= NK_STAR */ - 503, /* (618) select_item ::= common_expression */ - 503, /* (619) select_item ::= common_expression column_alias */ - 503, /* (620) select_item ::= common_expression AS column_alias */ - 503, /* (621) select_item ::= table_name NK_DOT NK_STAR */ - 436, /* (622) where_clause_opt ::= */ - 436, /* (623) where_clause_opt ::= WHERE search_condition */ - 496, /* (624) partition_by_clause_opt ::= */ - 496, /* (625) partition_by_clause_opt ::= PARTITION BY partition_list */ - 504, /* (626) partition_list ::= partition_item */ - 504, /* (627) partition_list ::= partition_list NK_COMMA partition_item */ - 505, /* (628) partition_item ::= expr_or_subquery */ - 505, /* (629) partition_item ::= expr_or_subquery column_alias */ - 505, /* (630) partition_item ::= expr_or_subquery AS column_alias */ - 500, /* (631) twindow_clause_opt ::= */ - 500, /* (632) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ - 500, /* (633) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - 500, /* (634) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - 500, /* (635) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - 500, /* (636) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - 500, /* (637) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ - 500, /* (638) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 429, /* (639) sliding_opt ::= */ - 429, /* (640) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ - 506, /* (641) interval_sliding_duration_literal ::= NK_VARIABLE */ - 506, /* (642) interval_sliding_duration_literal ::= NK_STRING */ - 506, /* (643) interval_sliding_duration_literal ::= NK_INTEGER */ - 499, /* (644) fill_opt ::= */ - 499, /* (645) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - 499, /* (646) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - 499, /* (647) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - 507, /* (648) fill_mode ::= NONE */ - 507, /* (649) fill_mode ::= PREV */ - 507, /* (650) fill_mode ::= NULL */ - 507, /* (651) fill_mode ::= NULL_F */ - 507, /* (652) fill_mode ::= LINEAR */ - 507, /* (653) fill_mode ::= NEXT */ - 501, /* (654) group_by_clause_opt ::= */ - 501, /* (655) group_by_clause_opt ::= GROUP BY group_by_list */ - 508, /* (656) group_by_list ::= expr_or_subquery */ - 508, /* (657) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 502, /* (658) having_clause_opt ::= */ - 502, /* (659) having_clause_opt ::= HAVING search_condition */ - 497, /* (660) range_opt ::= */ - 497, /* (661) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - 497, /* (662) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 498, /* (663) every_opt ::= */ - 498, /* (664) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - 509, /* (665) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - 510, /* (666) query_simple ::= query_specification */ - 510, /* (667) query_simple ::= union_query_expression */ - 514, /* (668) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - 514, /* (669) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - 515, /* (670) query_simple_or_subquery ::= query_simple */ - 515, /* (671) query_simple_or_subquery ::= subquery */ - 435, /* (672) query_or_subquery ::= query_expression */ - 435, /* (673) query_or_subquery ::= subquery */ - 511, /* (674) order_by_clause_opt ::= */ - 511, /* (675) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 512, /* (676) slimit_clause_opt ::= */ - 512, /* (677) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - 512, /* (678) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - 512, /* (679) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 513, /* (680) limit_clause_opt ::= */ - 513, /* (681) limit_clause_opt ::= LIMIT NK_INTEGER */ - 513, /* (682) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - 513, /* (683) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 488, /* (684) subquery ::= NK_LP query_expression NK_RP */ - 488, /* (685) subquery ::= NK_LP subquery NK_RP */ - 373, /* (686) search_condition ::= common_expression */ - 516, /* (687) sort_specification_list ::= sort_specification */ - 516, /* (688) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - 517, /* (689) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 518, /* (690) ordering_specification_opt ::= */ - 518, /* (691) ordering_specification_opt ::= ASC */ - 518, /* (692) ordering_specification_opt ::= DESC */ - 519, /* (693) null_ordering_opt ::= */ - 519, /* (694) null_ordering_opt ::= NULLS FIRST */ - 519, /* (695) null_ordering_opt ::= NULLS LAST */ + 408, /* (220) type_name_default_len ::= BINARY */ + 408, /* (221) type_name_default_len ::= NCHAR */ + 408, /* (222) type_name_default_len ::= VARCHAR */ + 408, /* (223) type_name_default_len ::= VARBINARY */ + 392, /* (224) tags_def_opt ::= */ + 392, /* (225) tags_def_opt ::= tags_def */ + 395, /* (226) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + 393, /* (227) table_options ::= */ + 393, /* (228) table_options ::= table_options COMMENT NK_STRING */ + 393, /* (229) table_options ::= table_options MAX_DELAY duration_list */ + 393, /* (230) table_options ::= table_options WATERMARK duration_list */ + 393, /* (231) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + 393, /* (232) table_options ::= table_options TTL NK_INTEGER */ + 393, /* (233) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + 393, /* (234) table_options ::= table_options DELETE_MARK duration_list */ + 398, /* (235) alter_table_options ::= alter_table_option */ + 398, /* (236) alter_table_options ::= alter_table_options alter_table_option */ + 411, /* (237) alter_table_option ::= COMMENT NK_STRING */ + 411, /* (238) alter_table_option ::= TTL NK_INTEGER */ + 409, /* (239) duration_list ::= duration_literal */ + 409, /* (240) duration_list ::= duration_list NK_COMMA duration_literal */ + 410, /* (241) rollup_func_list ::= rollup_func_name */ + 410, /* (242) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + 413, /* (243) rollup_func_name ::= function_name */ + 413, /* (244) rollup_func_name ::= FIRST */ + 413, /* (245) rollup_func_name ::= LAST */ + 406, /* (246) col_name_list ::= col_name */ + 406, /* (247) col_name_list ::= col_name_list NK_COMMA col_name */ + 415, /* (248) col_name ::= column_name */ + 355, /* (249) cmd ::= SHOW DNODES */ + 355, /* (250) cmd ::= SHOW USERS */ + 355, /* (251) cmd ::= SHOW USER PRIVILEGES */ + 355, /* (252) cmd ::= SHOW db_kind_opt DATABASES */ + 355, /* (253) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + 355, /* (254) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + 355, /* (255) cmd ::= SHOW db_name_cond_opt VGROUPS */ + 355, /* (256) cmd ::= SHOW MNODES */ + 355, /* (257) cmd ::= SHOW QNODES */ + 355, /* (258) cmd ::= SHOW ARBGROUPS */ + 355, /* (259) cmd ::= SHOW FUNCTIONS */ + 355, /* (260) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + 355, /* (261) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + 355, /* (262) cmd ::= SHOW STREAMS */ + 355, /* (263) cmd ::= SHOW ACCOUNTS */ + 355, /* (264) cmd ::= SHOW APPS */ + 355, /* (265) cmd ::= SHOW CONNECTIONS */ + 355, /* (266) cmd ::= SHOW LICENCES */ + 355, /* (267) cmd ::= SHOW GRANTS */ + 355, /* (268) cmd ::= SHOW GRANTS FULL */ + 355, /* (269) cmd ::= SHOW GRANTS LOGS */ + 355, /* (270) cmd ::= SHOW CLUSTER MACHINES */ + 355, /* (271) cmd ::= SHOW CREATE DATABASE db_name */ + 355, /* (272) cmd ::= SHOW CREATE TABLE full_table_name */ + 355, /* (273) cmd ::= SHOW CREATE STABLE full_table_name */ + 355, /* (274) cmd ::= SHOW QUERIES */ + 355, /* (275) cmd ::= SHOW SCORES */ + 355, /* (276) cmd ::= SHOW TOPICS */ + 355, /* (277) cmd ::= SHOW VARIABLES */ + 355, /* (278) cmd ::= SHOW CLUSTER VARIABLES */ + 355, /* (279) cmd ::= SHOW LOCAL VARIABLES */ + 355, /* (280) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + 355, /* (281) cmd ::= SHOW BNODES */ + 355, /* (282) cmd ::= SHOW SNODES */ + 355, /* (283) cmd ::= SHOW CLUSTER */ + 355, /* (284) cmd ::= SHOW TRANSACTIONS */ + 355, /* (285) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + 355, /* (286) cmd ::= SHOW CONSUMERS */ + 355, /* (287) cmd ::= SHOW SUBSCRIPTIONS */ + 355, /* (288) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + 355, /* (289) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + 355, /* (290) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + 355, /* (291) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + 355, /* (292) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + 355, /* (293) cmd ::= SHOW VNODES */ + 355, /* (294) cmd ::= SHOW db_name_cond_opt ALIVE */ + 355, /* (295) cmd ::= SHOW CLUSTER ALIVE */ + 355, /* (296) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ + 355, /* (297) cmd ::= SHOW CREATE VIEW full_table_name */ + 355, /* (298) cmd ::= SHOW COMPACTS */ + 355, /* (299) cmd ::= SHOW COMPACT NK_INTEGER */ + 417, /* (300) table_kind_db_name_cond_opt ::= */ + 417, /* (301) table_kind_db_name_cond_opt ::= table_kind */ + 417, /* (302) table_kind_db_name_cond_opt ::= db_name NK_DOT */ + 417, /* (303) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ + 423, /* (304) table_kind ::= NORMAL */ + 423, /* (305) table_kind ::= CHILD */ + 419, /* (306) db_name_cond_opt ::= */ + 419, /* (307) db_name_cond_opt ::= db_name NK_DOT */ + 418, /* (308) like_pattern_opt ::= */ + 418, /* (309) like_pattern_opt ::= LIKE NK_STRING */ + 420, /* (310) table_name_cond ::= table_name */ + 421, /* (311) from_db_opt ::= */ + 421, /* (312) from_db_opt ::= FROM db_name */ + 422, /* (313) tag_list_opt ::= */ + 422, /* (314) tag_list_opt ::= tag_item */ + 422, /* (315) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + 424, /* (316) tag_item ::= TBNAME */ + 424, /* (317) tag_item ::= QTAGS */ + 424, /* (318) tag_item ::= column_name */ + 424, /* (319) tag_item ::= column_name column_alias */ + 424, /* (320) tag_item ::= column_name AS column_alias */ + 416, /* (321) db_kind_opt ::= */ + 416, /* (322) db_kind_opt ::= USER */ + 416, /* (323) db_kind_opt ::= SYSTEM */ + 355, /* (324) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + 355, /* (325) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ + 355, /* (326) cmd ::= DROP INDEX exists_opt full_index_name */ + 427, /* (327) full_index_name ::= index_name */ + 427, /* (328) full_index_name ::= db_name NK_DOT index_name */ + 426, /* (329) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + 426, /* (330) 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 */ + 429, /* (331) func_list ::= func */ + 429, /* (332) func_list ::= func_list NK_COMMA func */ + 432, /* (333) func ::= sma_func_name NK_LP expression_list NK_RP */ + 433, /* (334) sma_func_name ::= function_name */ + 433, /* (335) sma_func_name ::= COUNT */ + 433, /* (336) sma_func_name ::= FIRST */ + 433, /* (337) sma_func_name ::= LAST */ + 433, /* (338) sma_func_name ::= LAST_ROW */ + 431, /* (339) sma_stream_opt ::= */ + 431, /* (340) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + 431, /* (341) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + 431, /* (342) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + 435, /* (343) with_meta ::= AS */ + 435, /* (344) with_meta ::= WITH META AS */ + 435, /* (345) with_meta ::= ONLY META AS */ + 355, /* (346) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + 355, /* (347) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + 355, /* (348) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + 355, /* (349) cmd ::= DROP TOPIC exists_opt topic_name */ + 355, /* (350) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + 355, /* (351) cmd ::= DESC full_table_name */ + 355, /* (352) cmd ::= DESCRIBE full_table_name */ + 355, /* (353) cmd ::= RESET QUERY CACHE */ + 355, /* (354) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + 355, /* (355) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 439, /* (356) analyze_opt ::= */ + 439, /* (357) analyze_opt ::= ANALYZE */ + 440, /* (358) explain_options ::= */ + 440, /* (359) explain_options ::= explain_options VERBOSE NK_BOOL */ + 440, /* (360) explain_options ::= explain_options RATIO NK_FLOAT */ + 355, /* (361) cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ + 355, /* (362) cmd ::= DROP FUNCTION exists_opt function_name */ + 443, /* (363) agg_func_opt ::= */ + 443, /* (364) agg_func_opt ::= AGGREGATE */ + 444, /* (365) bufsize_opt ::= */ + 444, /* (366) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 445, /* (367) language_opt ::= */ + 445, /* (368) language_opt ::= LANGUAGE NK_STRING */ + 442, /* (369) or_replace_opt ::= */ + 442, /* (370) or_replace_opt ::= OR REPLACE */ + 355, /* (371) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ + 355, /* (372) cmd ::= DROP VIEW exists_opt full_view_name */ + 446, /* (373) full_view_name ::= view_name */ + 446, /* (374) full_view_name ::= db_name NK_DOT view_name */ + 355, /* (375) 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 */ + 355, /* (376) cmd ::= DROP STREAM exists_opt stream_name */ + 355, /* (377) cmd ::= PAUSE STREAM exists_opt stream_name */ + 355, /* (378) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 450, /* (379) col_list_opt ::= */ + 450, /* (380) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ + 454, /* (381) column_stream_def_list ::= column_stream_def */ + 454, /* (382) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ + 455, /* (383) column_stream_def ::= column_name */ + 455, /* (384) column_stream_def ::= column_name PRIMARY KEY */ + 451, /* (385) tag_def_or_ref_opt ::= */ + 451, /* (386) tag_def_or_ref_opt ::= tags_def */ + 451, /* (387) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ + 449, /* (388) stream_options ::= */ + 449, /* (389) stream_options ::= stream_options TRIGGER AT_ONCE */ + 449, /* (390) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + 449, /* (391) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + 449, /* (392) stream_options ::= stream_options WATERMARK duration_literal */ + 449, /* (393) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + 449, /* (394) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + 449, /* (395) stream_options ::= stream_options DELETE_MARK duration_literal */ + 449, /* (396) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 452, /* (397) subtable_opt ::= */ + 452, /* (398) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 453, /* (399) ignore_opt ::= */ + 453, /* (400) ignore_opt ::= IGNORE UNTREATED */ + 355, /* (401) cmd ::= KILL CONNECTION NK_INTEGER */ + 355, /* (402) cmd ::= KILL QUERY NK_STRING */ + 355, /* (403) cmd ::= KILL TRANSACTION NK_INTEGER */ + 355, /* (404) cmd ::= KILL COMPACT NK_INTEGER */ + 355, /* (405) cmd ::= BALANCE VGROUP */ + 355, /* (406) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ + 355, /* (407) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + 355, /* (408) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + 355, /* (409) cmd ::= SPLIT VGROUP NK_INTEGER */ + 457, /* (410) on_vgroup_id ::= */ + 457, /* (411) on_vgroup_id ::= ON NK_INTEGER */ + 458, /* (412) dnode_list ::= DNODE NK_INTEGER */ + 458, /* (413) dnode_list ::= dnode_list DNODE NK_INTEGER */ + 355, /* (414) cmd ::= DELETE FROM full_table_name where_clause_opt */ + 355, /* (415) cmd ::= query_or_subquery */ + 355, /* (416) cmd ::= insert_query */ + 441, /* (417) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + 441, /* (418) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + 401, /* (419) tags_literal ::= NK_INTEGER */ + 401, /* (420) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + 401, /* (421) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ + 401, /* (422) tags_literal ::= NK_PLUS NK_INTEGER */ + 401, /* (423) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + 401, /* (424) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ + 401, /* (425) tags_literal ::= NK_MINUS NK_INTEGER */ + 401, /* (426) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ + 401, /* (427) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ + 401, /* (428) tags_literal ::= NK_FLOAT */ + 401, /* (429) tags_literal ::= NK_PLUS NK_FLOAT */ + 401, /* (430) tags_literal ::= NK_MINUS NK_FLOAT */ + 401, /* (431) tags_literal ::= NK_BIN */ + 401, /* (432) tags_literal ::= NK_BIN NK_PLUS duration_literal */ + 401, /* (433) tags_literal ::= NK_BIN NK_MINUS duration_literal */ + 401, /* (434) tags_literal ::= NK_PLUS NK_BIN */ + 401, /* (435) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ + 401, /* (436) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ + 401, /* (437) tags_literal ::= NK_MINUS NK_BIN */ + 401, /* (438) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ + 401, /* (439) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ + 401, /* (440) tags_literal ::= NK_HEX */ + 401, /* (441) tags_literal ::= NK_HEX NK_PLUS duration_literal */ + 401, /* (442) tags_literal ::= NK_HEX NK_MINUS duration_literal */ + 401, /* (443) tags_literal ::= NK_PLUS NK_HEX */ + 401, /* (444) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ + 401, /* (445) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ + 401, /* (446) tags_literal ::= NK_MINUS NK_HEX */ + 401, /* (447) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ + 401, /* (448) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ + 401, /* (449) tags_literal ::= NK_STRING */ + 401, /* (450) tags_literal ::= NK_STRING NK_PLUS duration_literal */ + 401, /* (451) tags_literal ::= NK_STRING NK_MINUS duration_literal */ + 401, /* (452) tags_literal ::= NK_BOOL */ + 401, /* (453) tags_literal ::= NULL */ + 401, /* (454) tags_literal ::= literal_func */ + 401, /* (455) tags_literal ::= literal_func NK_PLUS duration_literal */ + 401, /* (456) tags_literal ::= literal_func NK_MINUS duration_literal */ + 404, /* (457) tags_literal_list ::= tags_literal */ + 404, /* (458) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ + 358, /* (459) literal ::= NK_INTEGER */ + 358, /* (460) literal ::= NK_FLOAT */ + 358, /* (461) literal ::= NK_STRING */ + 358, /* (462) literal ::= NK_BOOL */ + 358, /* (463) literal ::= TIMESTAMP NK_STRING */ + 358, /* (464) literal ::= duration_literal */ + 358, /* (465) literal ::= NULL */ + 358, /* (466) literal ::= NK_QUESTION */ + 412, /* (467) duration_literal ::= NK_VARIABLE */ + 387, /* (468) signed ::= NK_INTEGER */ + 387, /* (469) signed ::= NK_PLUS NK_INTEGER */ + 387, /* (470) signed ::= NK_MINUS NK_INTEGER */ + 387, /* (471) signed ::= NK_FLOAT */ + 387, /* (472) signed ::= NK_PLUS NK_FLOAT */ + 387, /* (473) signed ::= NK_MINUS NK_FLOAT */ + 460, /* (474) signed_literal ::= signed */ + 460, /* (475) signed_literal ::= NK_STRING */ + 460, /* (476) signed_literal ::= NK_BOOL */ + 460, /* (477) signed_literal ::= TIMESTAMP NK_STRING */ + 460, /* (478) signed_literal ::= duration_literal */ + 460, /* (479) signed_literal ::= NULL */ + 460, /* (480) signed_literal ::= literal_func */ + 460, /* (481) signed_literal ::= NK_QUESTION */ + 461, /* (482) literal_list ::= signed_literal */ + 461, /* (483) literal_list ::= literal_list NK_COMMA signed_literal */ + 370, /* (484) db_name ::= NK_ID */ + 371, /* (485) table_name ::= NK_ID */ + 399, /* (486) column_name ::= NK_ID */ + 414, /* (487) function_name ::= NK_ID */ + 447, /* (488) view_name ::= NK_ID */ + 462, /* (489) table_alias ::= NK_ID */ + 425, /* (490) column_alias ::= NK_ID */ + 425, /* (491) column_alias ::= NK_ALIAS */ + 363, /* (492) user_name ::= NK_ID */ + 372, /* (493) topic_name ::= NK_ID */ + 448, /* (494) stream_name ::= NK_ID */ + 438, /* (495) cgroup_name ::= NK_ID */ + 428, /* (496) index_name ::= NK_ID */ + 463, /* (497) expr_or_subquery ::= expression */ + 456, /* (498) expression ::= literal */ + 456, /* (499) expression ::= pseudo_column */ + 456, /* (500) expression ::= column_reference */ + 456, /* (501) expression ::= function_expression */ + 456, /* (502) expression ::= case_when_expression */ + 456, /* (503) expression ::= NK_LP expression NK_RP */ + 456, /* (504) expression ::= NK_PLUS expr_or_subquery */ + 456, /* (505) expression ::= NK_MINUS expr_or_subquery */ + 456, /* (506) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + 456, /* (507) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + 456, /* (508) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + 456, /* (509) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + 456, /* (510) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + 456, /* (511) expression ::= column_reference NK_ARROW NK_STRING */ + 456, /* (512) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + 456, /* (513) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + 434, /* (514) expression_list ::= expr_or_subquery */ + 434, /* (515) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + 465, /* (516) column_reference ::= column_name */ + 465, /* (517) column_reference ::= table_name NK_DOT column_name */ + 465, /* (518) column_reference ::= NK_ALIAS */ + 465, /* (519) column_reference ::= table_name NK_DOT NK_ALIAS */ + 464, /* (520) pseudo_column ::= ROWTS */ + 464, /* (521) pseudo_column ::= TBNAME */ + 464, /* (522) pseudo_column ::= table_name NK_DOT TBNAME */ + 464, /* (523) pseudo_column ::= QSTART */ + 464, /* (524) pseudo_column ::= QEND */ + 464, /* (525) pseudo_column ::= QDURATION */ + 464, /* (526) pseudo_column ::= WSTART */ + 464, /* (527) pseudo_column ::= WEND */ + 464, /* (528) pseudo_column ::= WDURATION */ + 464, /* (529) pseudo_column ::= IROWTS */ + 464, /* (530) pseudo_column ::= ISFILLED */ + 464, /* (531) pseudo_column ::= QTAGS */ + 466, /* (532) function_expression ::= function_name NK_LP expression_list NK_RP */ + 466, /* (533) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + 466, /* (534) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + 466, /* (535) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ + 466, /* (536) function_expression ::= literal_func */ + 459, /* (537) literal_func ::= noarg_func NK_LP NK_RP */ + 459, /* (538) literal_func ::= NOW */ + 459, /* (539) literal_func ::= TODAY */ + 470, /* (540) noarg_func ::= NOW */ + 470, /* (541) noarg_func ::= TODAY */ + 470, /* (542) noarg_func ::= TIMEZONE */ + 470, /* (543) noarg_func ::= DATABASE */ + 470, /* (544) noarg_func ::= CLIENT_VERSION */ + 470, /* (545) noarg_func ::= SERVER_VERSION */ + 470, /* (546) noarg_func ::= SERVER_STATUS */ + 470, /* (547) noarg_func ::= CURRENT_USER */ + 470, /* (548) noarg_func ::= USER */ + 468, /* (549) star_func ::= COUNT */ + 468, /* (550) star_func ::= FIRST */ + 468, /* (551) star_func ::= LAST */ + 468, /* (552) star_func ::= LAST_ROW */ + 469, /* (553) star_func_para_list ::= NK_STAR */ + 469, /* (554) star_func_para_list ::= other_para_list */ + 471, /* (555) other_para_list ::= star_func_para */ + 471, /* (556) other_para_list ::= other_para_list NK_COMMA star_func_para */ + 472, /* (557) star_func_para ::= expr_or_subquery */ + 472, /* (558) star_func_para ::= table_name NK_DOT NK_STAR */ + 467, /* (559) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + 467, /* (560) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + 473, /* (561) when_then_list ::= when_then_expr */ + 473, /* (562) when_then_list ::= when_then_list when_then_expr */ + 476, /* (563) when_then_expr ::= WHEN common_expression THEN common_expression */ + 474, /* (564) case_when_else_opt ::= */ + 474, /* (565) case_when_else_opt ::= ELSE common_expression */ + 477, /* (566) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + 477, /* (567) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + 477, /* (568) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + 477, /* (569) predicate ::= expr_or_subquery IS NULL */ + 477, /* (570) predicate ::= expr_or_subquery IS NOT NULL */ + 477, /* (571) predicate ::= expr_or_subquery in_op in_predicate_value */ + 478, /* (572) compare_op ::= NK_LT */ + 478, /* (573) compare_op ::= NK_GT */ + 478, /* (574) compare_op ::= NK_LE */ + 478, /* (575) compare_op ::= NK_GE */ + 478, /* (576) compare_op ::= NK_NE */ + 478, /* (577) compare_op ::= NK_EQ */ + 478, /* (578) compare_op ::= LIKE */ + 478, /* (579) compare_op ::= NOT LIKE */ + 478, /* (580) compare_op ::= MATCH */ + 478, /* (581) compare_op ::= NMATCH */ + 478, /* (582) compare_op ::= CONTAINS */ + 479, /* (583) in_op ::= IN */ + 479, /* (584) in_op ::= NOT IN */ + 480, /* (585) in_predicate_value ::= NK_LP literal_list NK_RP */ + 481, /* (586) boolean_value_expression ::= boolean_primary */ + 481, /* (587) boolean_value_expression ::= NOT boolean_primary */ + 481, /* (588) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + 481, /* (589) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + 482, /* (590) boolean_primary ::= predicate */ + 482, /* (591) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + 475, /* (592) common_expression ::= expr_or_subquery */ + 475, /* (593) common_expression ::= boolean_value_expression */ + 483, /* (594) from_clause_opt ::= */ + 483, /* (595) from_clause_opt ::= FROM table_reference_list */ + 484, /* (596) table_reference_list ::= table_reference */ + 484, /* (597) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + 485, /* (598) table_reference ::= table_primary */ + 485, /* (599) table_reference ::= joined_table */ + 486, /* (600) table_primary ::= table_name alias_opt */ + 486, /* (601) table_primary ::= db_name NK_DOT table_name alias_opt */ + 486, /* (602) table_primary ::= subquery alias_opt */ + 486, /* (603) table_primary ::= parenthesized_joined_table */ + 488, /* (604) alias_opt ::= */ + 488, /* (605) alias_opt ::= table_alias */ + 488, /* (606) alias_opt ::= AS table_alias */ + 490, /* (607) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + 490, /* (608) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + 487, /* (609) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + 491, /* (610) join_type ::= */ + 491, /* (611) join_type ::= INNER */ + 492, /* (612) 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, /* (613) hint_list ::= */ + 493, /* (614) hint_list ::= NK_HINT */ + 495, /* (615) tag_mode_opt ::= */ + 495, /* (616) tag_mode_opt ::= TAGS */ + 494, /* (617) set_quantifier_opt ::= */ + 494, /* (618) set_quantifier_opt ::= DISTINCT */ + 494, /* (619) set_quantifier_opt ::= ALL */ + 496, /* (620) select_list ::= select_item */ + 496, /* (621) select_list ::= select_list NK_COMMA select_item */ + 504, /* (622) select_item ::= NK_STAR */ + 504, /* (623) select_item ::= common_expression */ + 504, /* (624) select_item ::= common_expression column_alias */ + 504, /* (625) select_item ::= common_expression AS column_alias */ + 504, /* (626) select_item ::= table_name NK_DOT NK_STAR */ + 437, /* (627) where_clause_opt ::= */ + 437, /* (628) where_clause_opt ::= WHERE search_condition */ + 497, /* (629) partition_by_clause_opt ::= */ + 497, /* (630) partition_by_clause_opt ::= PARTITION BY partition_list */ + 505, /* (631) partition_list ::= partition_item */ + 505, /* (632) partition_list ::= partition_list NK_COMMA partition_item */ + 506, /* (633) partition_item ::= expr_or_subquery */ + 506, /* (634) partition_item ::= expr_or_subquery column_alias */ + 506, /* (635) partition_item ::= expr_or_subquery AS column_alias */ + 501, /* (636) twindow_clause_opt ::= */ + 501, /* (637) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ + 501, /* (638) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + 501, /* (639) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + 501, /* (640) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + 501, /* (641) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + 501, /* (642) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ + 501, /* (643) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 430, /* (644) sliding_opt ::= */ + 430, /* (645) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ + 507, /* (646) interval_sliding_duration_literal ::= NK_VARIABLE */ + 507, /* (647) interval_sliding_duration_literal ::= NK_STRING */ + 507, /* (648) interval_sliding_duration_literal ::= NK_INTEGER */ + 500, /* (649) fill_opt ::= */ + 500, /* (650) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + 500, /* (651) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + 500, /* (652) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + 508, /* (653) fill_mode ::= NONE */ + 508, /* (654) fill_mode ::= PREV */ + 508, /* (655) fill_mode ::= NULL */ + 508, /* (656) fill_mode ::= NULL_F */ + 508, /* (657) fill_mode ::= LINEAR */ + 508, /* (658) fill_mode ::= NEXT */ + 502, /* (659) group_by_clause_opt ::= */ + 502, /* (660) group_by_clause_opt ::= GROUP BY group_by_list */ + 509, /* (661) group_by_list ::= expr_or_subquery */ + 509, /* (662) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 503, /* (663) having_clause_opt ::= */ + 503, /* (664) having_clause_opt ::= HAVING search_condition */ + 498, /* (665) range_opt ::= */ + 498, /* (666) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + 498, /* (667) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 499, /* (668) every_opt ::= */ + 499, /* (669) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + 510, /* (670) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + 511, /* (671) query_simple ::= query_specification */ + 511, /* (672) query_simple ::= union_query_expression */ + 515, /* (673) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + 515, /* (674) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + 516, /* (675) query_simple_or_subquery ::= query_simple */ + 516, /* (676) query_simple_or_subquery ::= subquery */ + 436, /* (677) query_or_subquery ::= query_expression */ + 436, /* (678) query_or_subquery ::= subquery */ + 512, /* (679) order_by_clause_opt ::= */ + 512, /* (680) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 513, /* (681) slimit_clause_opt ::= */ + 513, /* (682) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + 513, /* (683) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + 513, /* (684) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 514, /* (685) limit_clause_opt ::= */ + 514, /* (686) limit_clause_opt ::= LIMIT NK_INTEGER */ + 514, /* (687) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + 514, /* (688) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 489, /* (689) subquery ::= NK_LP query_expression NK_RP */ + 489, /* (690) subquery ::= NK_LP subquery NK_RP */ + 373, /* (691) search_condition ::= common_expression */ + 517, /* (692) sort_specification_list ::= sort_specification */ + 517, /* (693) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + 518, /* (694) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 519, /* (695) ordering_specification_opt ::= */ + 519, /* (696) ordering_specification_opt ::= ASC */ + 519, /* (697) ordering_specification_opt ::= DESC */ + 520, /* (698) null_ordering_opt ::= */ + 520, /* (699) null_ordering_opt ::= NULLS FIRST */ + 520, /* (700) null_ordering_opt ::= NULLS LAST */ }; /* For rule J, yyRuleInfoNRhs[J] contains the negative of the number @@ -4715,482 +4792,487 @@ static const signed char yyRuleInfoNRhs[] = { -1, /* (217) type_name ::= DECIMAL */ -4, /* (218) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -6, /* (219) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 0, /* (220) tags_def_opt ::= */ - -1, /* (221) tags_def_opt ::= tags_def */ - -4, /* (222) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - 0, /* (223) table_options ::= */ - -3, /* (224) table_options ::= table_options COMMENT NK_STRING */ - -3, /* (225) table_options ::= table_options MAX_DELAY duration_list */ - -3, /* (226) table_options ::= table_options WATERMARK duration_list */ - -5, /* (227) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ - -3, /* (228) table_options ::= table_options TTL NK_INTEGER */ - -5, /* (229) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - -3, /* (230) table_options ::= table_options DELETE_MARK duration_list */ - -1, /* (231) alter_table_options ::= alter_table_option */ - -2, /* (232) alter_table_options ::= alter_table_options alter_table_option */ - -2, /* (233) alter_table_option ::= COMMENT NK_STRING */ - -2, /* (234) alter_table_option ::= TTL NK_INTEGER */ - -1, /* (235) duration_list ::= duration_literal */ - -3, /* (236) duration_list ::= duration_list NK_COMMA duration_literal */ - -1, /* (237) rollup_func_list ::= rollup_func_name */ - -3, /* (238) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ - -1, /* (239) rollup_func_name ::= function_name */ - -1, /* (240) rollup_func_name ::= FIRST */ - -1, /* (241) rollup_func_name ::= LAST */ - -1, /* (242) col_name_list ::= col_name */ - -3, /* (243) col_name_list ::= col_name_list NK_COMMA col_name */ - -1, /* (244) col_name ::= column_name */ - -2, /* (245) cmd ::= SHOW DNODES */ - -2, /* (246) cmd ::= SHOW USERS */ - -3, /* (247) cmd ::= SHOW USER PRIVILEGES */ - -3, /* (248) cmd ::= SHOW db_kind_opt DATABASES */ - -4, /* (249) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ - -4, /* (250) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - -3, /* (251) cmd ::= SHOW db_name_cond_opt VGROUPS */ - -2, /* (252) cmd ::= SHOW MNODES */ - -2, /* (253) cmd ::= SHOW QNODES */ - -2, /* (254) cmd ::= SHOW ARBGROUPS */ - -2, /* (255) cmd ::= SHOW FUNCTIONS */ - -5, /* (256) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - -6, /* (257) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ - -2, /* (258) cmd ::= SHOW STREAMS */ - -2, /* (259) cmd ::= SHOW ACCOUNTS */ - -2, /* (260) cmd ::= SHOW APPS */ - -2, /* (261) cmd ::= SHOW CONNECTIONS */ - -2, /* (262) cmd ::= SHOW LICENCES */ - -2, /* (263) cmd ::= SHOW GRANTS */ - -3, /* (264) cmd ::= SHOW GRANTS FULL */ - -3, /* (265) cmd ::= SHOW GRANTS LOGS */ - -3, /* (266) cmd ::= SHOW CLUSTER MACHINES */ - -4, /* (267) cmd ::= SHOW CREATE DATABASE db_name */ - -4, /* (268) cmd ::= SHOW CREATE TABLE full_table_name */ - -4, /* (269) cmd ::= SHOW CREATE STABLE full_table_name */ - -2, /* (270) cmd ::= SHOW QUERIES */ - -2, /* (271) cmd ::= SHOW SCORES */ - -2, /* (272) cmd ::= SHOW TOPICS */ - -2, /* (273) cmd ::= SHOW VARIABLES */ - -3, /* (274) cmd ::= SHOW CLUSTER VARIABLES */ - -3, /* (275) cmd ::= SHOW LOCAL VARIABLES */ - -5, /* (276) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ - -2, /* (277) cmd ::= SHOW BNODES */ - -2, /* (278) cmd ::= SHOW SNODES */ - -2, /* (279) cmd ::= SHOW CLUSTER */ - -2, /* (280) cmd ::= SHOW TRANSACTIONS */ - -4, /* (281) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ - -2, /* (282) cmd ::= SHOW CONSUMERS */ - -2, /* (283) cmd ::= SHOW SUBSCRIPTIONS */ - -5, /* (284) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ - -6, /* (285) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ - -7, /* (286) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ - -8, /* (287) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ - -5, /* (288) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ - -2, /* (289) cmd ::= SHOW VNODES */ - -3, /* (290) cmd ::= SHOW db_name_cond_opt ALIVE */ - -3, /* (291) cmd ::= SHOW CLUSTER ALIVE */ - -4, /* (292) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ - -4, /* (293) cmd ::= SHOW CREATE VIEW full_table_name */ - -2, /* (294) cmd ::= SHOW COMPACTS */ - -3, /* (295) cmd ::= SHOW COMPACT NK_INTEGER */ - 0, /* (296) table_kind_db_name_cond_opt ::= */ - -1, /* (297) table_kind_db_name_cond_opt ::= table_kind */ - -2, /* (298) table_kind_db_name_cond_opt ::= db_name NK_DOT */ - -3, /* (299) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ - -1, /* (300) table_kind ::= NORMAL */ - -1, /* (301) table_kind ::= CHILD */ - 0, /* (302) db_name_cond_opt ::= */ - -2, /* (303) db_name_cond_opt ::= db_name NK_DOT */ - 0, /* (304) like_pattern_opt ::= */ - -2, /* (305) like_pattern_opt ::= LIKE NK_STRING */ - -1, /* (306) table_name_cond ::= table_name */ - 0, /* (307) from_db_opt ::= */ - -2, /* (308) from_db_opt ::= FROM db_name */ - 0, /* (309) tag_list_opt ::= */ - -1, /* (310) tag_list_opt ::= tag_item */ - -3, /* (311) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ - -1, /* (312) tag_item ::= TBNAME */ - -1, /* (313) tag_item ::= QTAGS */ - -1, /* (314) tag_item ::= column_name */ - -2, /* (315) tag_item ::= column_name column_alias */ - -3, /* (316) tag_item ::= column_name AS column_alias */ - 0, /* (317) db_kind_opt ::= */ - -1, /* (318) db_kind_opt ::= USER */ - -1, /* (319) db_kind_opt ::= SYSTEM */ - -8, /* (320) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ - -9, /* (321) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ - -4, /* (322) cmd ::= DROP INDEX exists_opt full_index_name */ - -1, /* (323) full_index_name ::= index_name */ - -3, /* (324) full_index_name ::= db_name NK_DOT index_name */ - -10, /* (325) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ - -12, /* (326) 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, /* (327) func_list ::= func */ - -3, /* (328) func_list ::= func_list NK_COMMA func */ - -4, /* (329) func ::= sma_func_name NK_LP expression_list NK_RP */ - -1, /* (330) sma_func_name ::= function_name */ - -1, /* (331) sma_func_name ::= COUNT */ - -1, /* (332) sma_func_name ::= FIRST */ - -1, /* (333) sma_func_name ::= LAST */ - -1, /* (334) sma_func_name ::= LAST_ROW */ - 0, /* (335) sma_stream_opt ::= */ - -3, /* (336) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ - -3, /* (337) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ - -3, /* (338) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ - -1, /* (339) with_meta ::= AS */ - -3, /* (340) with_meta ::= WITH META AS */ - -3, /* (341) with_meta ::= ONLY META AS */ - -6, /* (342) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ - -7, /* (343) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ - -8, /* (344) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ - -4, /* (345) cmd ::= DROP TOPIC exists_opt topic_name */ - -7, /* (346) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ - -2, /* (347) cmd ::= DESC full_table_name */ - -2, /* (348) cmd ::= DESCRIBE full_table_name */ - -3, /* (349) cmd ::= RESET QUERY CACHE */ - -4, /* (350) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - -4, /* (351) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ - 0, /* (352) analyze_opt ::= */ - -1, /* (353) analyze_opt ::= ANALYZE */ - 0, /* (354) explain_options ::= */ - -3, /* (355) explain_options ::= explain_options VERBOSE NK_BOOL */ - -3, /* (356) explain_options ::= explain_options RATIO NK_FLOAT */ - -12, /* (357) 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, /* (358) cmd ::= DROP FUNCTION exists_opt function_name */ - 0, /* (359) agg_func_opt ::= */ - -1, /* (360) agg_func_opt ::= AGGREGATE */ - 0, /* (361) bufsize_opt ::= */ - -2, /* (362) bufsize_opt ::= BUFSIZE NK_INTEGER */ - 0, /* (363) language_opt ::= */ - -2, /* (364) language_opt ::= LANGUAGE NK_STRING */ - 0, /* (365) or_replace_opt ::= */ - -2, /* (366) or_replace_opt ::= OR REPLACE */ - -6, /* (367) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ - -4, /* (368) cmd ::= DROP VIEW exists_opt full_view_name */ - -1, /* (369) full_view_name ::= view_name */ - -3, /* (370) full_view_name ::= db_name NK_DOT view_name */ - -12, /* (371) 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, /* (372) cmd ::= DROP STREAM exists_opt stream_name */ - -4, /* (373) cmd ::= PAUSE STREAM exists_opt stream_name */ - -5, /* (374) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ - 0, /* (375) col_list_opt ::= */ - -3, /* (376) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ - -1, /* (377) column_stream_def_list ::= column_stream_def */ - -3, /* (378) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ - -1, /* (379) column_stream_def ::= column_name */ - -3, /* (380) column_stream_def ::= column_name PRIMARY KEY */ - 0, /* (381) tag_def_or_ref_opt ::= */ - -1, /* (382) tag_def_or_ref_opt ::= tags_def */ - -4, /* (383) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ - 0, /* (384) stream_options ::= */ - -3, /* (385) stream_options ::= stream_options TRIGGER AT_ONCE */ - -3, /* (386) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ - -4, /* (387) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ - -3, /* (388) stream_options ::= stream_options WATERMARK duration_literal */ - -4, /* (389) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ - -3, /* (390) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ - -3, /* (391) stream_options ::= stream_options DELETE_MARK duration_literal */ - -4, /* (392) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ - 0, /* (393) subtable_opt ::= */ - -4, /* (394) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - 0, /* (395) ignore_opt ::= */ - -2, /* (396) ignore_opt ::= IGNORE UNTREATED */ - -3, /* (397) cmd ::= KILL CONNECTION NK_INTEGER */ - -3, /* (398) cmd ::= KILL QUERY NK_STRING */ - -3, /* (399) cmd ::= KILL TRANSACTION NK_INTEGER */ - -3, /* (400) cmd ::= KILL COMPACT NK_INTEGER */ - -2, /* (401) cmd ::= BALANCE VGROUP */ - -4, /* (402) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ - -4, /* (403) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ - -4, /* (404) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ - -3, /* (405) cmd ::= SPLIT VGROUP NK_INTEGER */ - 0, /* (406) on_vgroup_id ::= */ - -2, /* (407) on_vgroup_id ::= ON NK_INTEGER */ - -2, /* (408) dnode_list ::= DNODE NK_INTEGER */ - -3, /* (409) dnode_list ::= dnode_list DNODE NK_INTEGER */ - -4, /* (410) cmd ::= DELETE FROM full_table_name where_clause_opt */ - -1, /* (411) cmd ::= query_or_subquery */ - -1, /* (412) cmd ::= insert_query */ - -7, /* (413) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ - -4, /* (414) insert_query ::= INSERT INTO full_table_name query_or_subquery */ - -1, /* (415) tags_literal ::= NK_INTEGER */ - -3, /* (416) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - -3, /* (417) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ - -2, /* (418) tags_literal ::= NK_PLUS NK_INTEGER */ - -4, /* (419) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - -4, /* (420) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ - -2, /* (421) tags_literal ::= NK_MINUS NK_INTEGER */ - -4, /* (422) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ - -4, /* (423) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ - -1, /* (424) tags_literal ::= NK_FLOAT */ - -2, /* (425) tags_literal ::= NK_PLUS NK_FLOAT */ - -2, /* (426) tags_literal ::= NK_MINUS NK_FLOAT */ - -1, /* (427) tags_literal ::= NK_BIN */ - -3, /* (428) tags_literal ::= NK_BIN NK_PLUS duration_literal */ - -3, /* (429) tags_literal ::= NK_BIN NK_MINUS duration_literal */ - -2, /* (430) tags_literal ::= NK_PLUS NK_BIN */ - -4, /* (431) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ - -4, /* (432) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ - -2, /* (433) tags_literal ::= NK_MINUS NK_BIN */ - -4, /* (434) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ - -4, /* (435) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ - -1, /* (436) tags_literal ::= NK_HEX */ - -3, /* (437) tags_literal ::= NK_HEX NK_PLUS duration_literal */ - -3, /* (438) tags_literal ::= NK_HEX NK_MINUS duration_literal */ - -2, /* (439) tags_literal ::= NK_PLUS NK_HEX */ - -4, /* (440) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ - -4, /* (441) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ - -2, /* (442) tags_literal ::= NK_MINUS NK_HEX */ - -4, /* (443) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ - -4, /* (444) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ - -1, /* (445) tags_literal ::= NK_STRING */ - -3, /* (446) tags_literal ::= NK_STRING NK_PLUS duration_literal */ - -3, /* (447) tags_literal ::= NK_STRING NK_MINUS duration_literal */ - -1, /* (448) tags_literal ::= NK_BOOL */ - -1, /* (449) tags_literal ::= NULL */ - -1, /* (450) tags_literal ::= literal_func */ - -3, /* (451) tags_literal ::= literal_func NK_PLUS duration_literal */ - -3, /* (452) tags_literal ::= literal_func NK_MINUS duration_literal */ - -1, /* (453) tags_literal_list ::= tags_literal */ - -3, /* (454) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ - -1, /* (455) literal ::= NK_INTEGER */ - -1, /* (456) literal ::= NK_FLOAT */ - -1, /* (457) literal ::= NK_STRING */ - -1, /* (458) literal ::= NK_BOOL */ - -2, /* (459) literal ::= TIMESTAMP NK_STRING */ - -1, /* (460) literal ::= duration_literal */ - -1, /* (461) literal ::= NULL */ - -1, /* (462) literal ::= NK_QUESTION */ - -1, /* (463) duration_literal ::= NK_VARIABLE */ - -1, /* (464) signed ::= NK_INTEGER */ - -2, /* (465) signed ::= NK_PLUS NK_INTEGER */ - -2, /* (466) signed ::= NK_MINUS NK_INTEGER */ - -1, /* (467) signed ::= NK_FLOAT */ - -2, /* (468) signed ::= NK_PLUS NK_FLOAT */ - -2, /* (469) signed ::= NK_MINUS NK_FLOAT */ - -1, /* (470) signed_literal ::= signed */ - -1, /* (471) signed_literal ::= NK_STRING */ - -1, /* (472) signed_literal ::= NK_BOOL */ - -2, /* (473) signed_literal ::= TIMESTAMP NK_STRING */ - -1, /* (474) signed_literal ::= duration_literal */ - -1, /* (475) signed_literal ::= NULL */ - -1, /* (476) signed_literal ::= literal_func */ - -1, /* (477) signed_literal ::= NK_QUESTION */ - -1, /* (478) literal_list ::= signed_literal */ - -3, /* (479) literal_list ::= literal_list NK_COMMA signed_literal */ - -1, /* (480) db_name ::= NK_ID */ - -1, /* (481) table_name ::= NK_ID */ - -1, /* (482) column_name ::= NK_ID */ - -1, /* (483) function_name ::= NK_ID */ - -1, /* (484) view_name ::= NK_ID */ - -1, /* (485) table_alias ::= NK_ID */ - -1, /* (486) column_alias ::= NK_ID */ - -1, /* (487) column_alias ::= NK_ALIAS */ - -1, /* (488) user_name ::= NK_ID */ - -1, /* (489) topic_name ::= NK_ID */ - -1, /* (490) stream_name ::= NK_ID */ - -1, /* (491) cgroup_name ::= NK_ID */ - -1, /* (492) index_name ::= NK_ID */ - -1, /* (493) expr_or_subquery ::= expression */ - -1, /* (494) expression ::= literal */ - -1, /* (495) expression ::= pseudo_column */ - -1, /* (496) expression ::= column_reference */ - -1, /* (497) expression ::= function_expression */ - -1, /* (498) expression ::= case_when_expression */ - -3, /* (499) expression ::= NK_LP expression NK_RP */ - -2, /* (500) expression ::= NK_PLUS expr_or_subquery */ - -2, /* (501) expression ::= NK_MINUS expr_or_subquery */ - -3, /* (502) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ - -3, /* (503) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ - -3, /* (504) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ - -3, /* (505) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ - -3, /* (506) expression ::= expr_or_subquery NK_REM expr_or_subquery */ - -3, /* (507) expression ::= column_reference NK_ARROW NK_STRING */ - -3, /* (508) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ - -3, /* (509) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ - -1, /* (510) expression_list ::= expr_or_subquery */ - -3, /* (511) expression_list ::= expression_list NK_COMMA expr_or_subquery */ - -1, /* (512) column_reference ::= column_name */ - -3, /* (513) column_reference ::= table_name NK_DOT column_name */ - -1, /* (514) column_reference ::= NK_ALIAS */ - -3, /* (515) column_reference ::= table_name NK_DOT NK_ALIAS */ - -1, /* (516) pseudo_column ::= ROWTS */ - -1, /* (517) pseudo_column ::= TBNAME */ - -3, /* (518) pseudo_column ::= table_name NK_DOT TBNAME */ - -1, /* (519) pseudo_column ::= QSTART */ - -1, /* (520) pseudo_column ::= QEND */ - -1, /* (521) pseudo_column ::= QDURATION */ - -1, /* (522) pseudo_column ::= WSTART */ - -1, /* (523) pseudo_column ::= WEND */ - -1, /* (524) pseudo_column ::= WDURATION */ - -1, /* (525) pseudo_column ::= IROWTS */ - -1, /* (526) pseudo_column ::= ISFILLED */ - -1, /* (527) pseudo_column ::= QTAGS */ - -4, /* (528) function_expression ::= function_name NK_LP expression_list NK_RP */ - -4, /* (529) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - -6, /* (530) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ - -1, /* (531) function_expression ::= literal_func */ - -3, /* (532) literal_func ::= noarg_func NK_LP NK_RP */ - -1, /* (533) literal_func ::= NOW */ - -1, /* (534) literal_func ::= TODAY */ - -1, /* (535) noarg_func ::= NOW */ - -1, /* (536) noarg_func ::= TODAY */ - -1, /* (537) noarg_func ::= TIMEZONE */ - -1, /* (538) noarg_func ::= DATABASE */ - -1, /* (539) noarg_func ::= CLIENT_VERSION */ - -1, /* (540) noarg_func ::= SERVER_VERSION */ - -1, /* (541) noarg_func ::= SERVER_STATUS */ - -1, /* (542) noarg_func ::= CURRENT_USER */ - -1, /* (543) noarg_func ::= USER */ - -1, /* (544) star_func ::= COUNT */ - -1, /* (545) star_func ::= FIRST */ - -1, /* (546) star_func ::= LAST */ - -1, /* (547) star_func ::= LAST_ROW */ - -1, /* (548) star_func_para_list ::= NK_STAR */ - -1, /* (549) star_func_para_list ::= other_para_list */ - -1, /* (550) other_para_list ::= star_func_para */ - -3, /* (551) other_para_list ::= other_para_list NK_COMMA star_func_para */ - -1, /* (552) star_func_para ::= expr_or_subquery */ - -3, /* (553) star_func_para ::= table_name NK_DOT NK_STAR */ - -4, /* (554) case_when_expression ::= CASE when_then_list case_when_else_opt END */ - -5, /* (555) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ - -1, /* (556) when_then_list ::= when_then_expr */ - -2, /* (557) when_then_list ::= when_then_list when_then_expr */ - -4, /* (558) when_then_expr ::= WHEN common_expression THEN common_expression */ - 0, /* (559) case_when_else_opt ::= */ - -2, /* (560) case_when_else_opt ::= ELSE common_expression */ - -3, /* (561) predicate ::= expr_or_subquery compare_op expr_or_subquery */ - -5, /* (562) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ - -6, /* (563) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ - -3, /* (564) predicate ::= expr_or_subquery IS NULL */ - -4, /* (565) predicate ::= expr_or_subquery IS NOT NULL */ - -3, /* (566) predicate ::= expr_or_subquery in_op in_predicate_value */ - -1, /* (567) compare_op ::= NK_LT */ - -1, /* (568) compare_op ::= NK_GT */ - -1, /* (569) compare_op ::= NK_LE */ - -1, /* (570) compare_op ::= NK_GE */ - -1, /* (571) compare_op ::= NK_NE */ - -1, /* (572) compare_op ::= NK_EQ */ - -1, /* (573) compare_op ::= LIKE */ - -2, /* (574) compare_op ::= NOT LIKE */ - -1, /* (575) compare_op ::= MATCH */ - -1, /* (576) compare_op ::= NMATCH */ - -1, /* (577) compare_op ::= CONTAINS */ - -1, /* (578) in_op ::= IN */ - -2, /* (579) in_op ::= NOT IN */ - -3, /* (580) in_predicate_value ::= NK_LP literal_list NK_RP */ - -1, /* (581) boolean_value_expression ::= boolean_primary */ - -2, /* (582) boolean_value_expression ::= NOT boolean_primary */ - -3, /* (583) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - -3, /* (584) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - -1, /* (585) boolean_primary ::= predicate */ - -3, /* (586) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - -1, /* (587) common_expression ::= expr_or_subquery */ - -1, /* (588) common_expression ::= boolean_value_expression */ - 0, /* (589) from_clause_opt ::= */ - -2, /* (590) from_clause_opt ::= FROM table_reference_list */ - -1, /* (591) table_reference_list ::= table_reference */ - -3, /* (592) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - -1, /* (593) table_reference ::= table_primary */ - -1, /* (594) table_reference ::= joined_table */ - -2, /* (595) table_primary ::= table_name alias_opt */ - -4, /* (596) table_primary ::= db_name NK_DOT table_name alias_opt */ - -2, /* (597) table_primary ::= subquery alias_opt */ - -1, /* (598) table_primary ::= parenthesized_joined_table */ - 0, /* (599) alias_opt ::= */ - -1, /* (600) alias_opt ::= table_alias */ - -2, /* (601) alias_opt ::= AS table_alias */ - -3, /* (602) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - -3, /* (603) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - -6, /* (604) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - 0, /* (605) join_type ::= */ - -1, /* (606) join_type ::= INNER */ - -14, /* (607) 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, /* (608) hint_list ::= */ - -1, /* (609) hint_list ::= NK_HINT */ - 0, /* (610) tag_mode_opt ::= */ - -1, /* (611) tag_mode_opt ::= TAGS */ - 0, /* (612) set_quantifier_opt ::= */ - -1, /* (613) set_quantifier_opt ::= DISTINCT */ - -1, /* (614) set_quantifier_opt ::= ALL */ - -1, /* (615) select_list ::= select_item */ - -3, /* (616) select_list ::= select_list NK_COMMA select_item */ - -1, /* (617) select_item ::= NK_STAR */ - -1, /* (618) select_item ::= common_expression */ - -2, /* (619) select_item ::= common_expression column_alias */ - -3, /* (620) select_item ::= common_expression AS column_alias */ - -3, /* (621) select_item ::= table_name NK_DOT NK_STAR */ - 0, /* (622) where_clause_opt ::= */ - -2, /* (623) where_clause_opt ::= WHERE search_condition */ - 0, /* (624) partition_by_clause_opt ::= */ - -3, /* (625) partition_by_clause_opt ::= PARTITION BY partition_list */ - -1, /* (626) partition_list ::= partition_item */ - -3, /* (627) partition_list ::= partition_list NK_COMMA partition_item */ - -1, /* (628) partition_item ::= expr_or_subquery */ - -2, /* (629) partition_item ::= expr_or_subquery column_alias */ - -3, /* (630) partition_item ::= expr_or_subquery AS column_alias */ - 0, /* (631) twindow_clause_opt ::= */ - -6, /* (632) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ - -4, /* (633) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ - -6, /* (634) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - -8, /* (635) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ - -7, /* (636) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ - -4, /* (637) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ - -6, /* (638) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - 0, /* (639) sliding_opt ::= */ - -4, /* (640) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ - -1, /* (641) interval_sliding_duration_literal ::= NK_VARIABLE */ - -1, /* (642) interval_sliding_duration_literal ::= NK_STRING */ - -1, /* (643) interval_sliding_duration_literal ::= NK_INTEGER */ - 0, /* (644) fill_opt ::= */ - -4, /* (645) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - -6, /* (646) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ - -6, /* (647) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ - -1, /* (648) fill_mode ::= NONE */ - -1, /* (649) fill_mode ::= PREV */ - -1, /* (650) fill_mode ::= NULL */ - -1, /* (651) fill_mode ::= NULL_F */ - -1, /* (652) fill_mode ::= LINEAR */ - -1, /* (653) fill_mode ::= NEXT */ - 0, /* (654) group_by_clause_opt ::= */ - -3, /* (655) group_by_clause_opt ::= GROUP BY group_by_list */ - -1, /* (656) group_by_list ::= expr_or_subquery */ - -3, /* (657) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ - 0, /* (658) having_clause_opt ::= */ - -2, /* (659) having_clause_opt ::= HAVING search_condition */ - 0, /* (660) range_opt ::= */ - -6, /* (661) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ - -4, /* (662) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ - 0, /* (663) every_opt ::= */ - -4, /* (664) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - -4, /* (665) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ - -1, /* (666) query_simple ::= query_specification */ - -1, /* (667) query_simple ::= union_query_expression */ - -4, /* (668) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ - -3, /* (669) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ - -1, /* (670) query_simple_or_subquery ::= query_simple */ - -1, /* (671) query_simple_or_subquery ::= subquery */ - -1, /* (672) query_or_subquery ::= query_expression */ - -1, /* (673) query_or_subquery ::= subquery */ - 0, /* (674) order_by_clause_opt ::= */ - -3, /* (675) order_by_clause_opt ::= ORDER BY sort_specification_list */ - 0, /* (676) slimit_clause_opt ::= */ - -2, /* (677) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - -4, /* (678) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - -4, /* (679) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - 0, /* (680) limit_clause_opt ::= */ - -2, /* (681) limit_clause_opt ::= LIMIT NK_INTEGER */ - -4, /* (682) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - -4, /* (683) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - -3, /* (684) subquery ::= NK_LP query_expression NK_RP */ - -3, /* (685) subquery ::= NK_LP subquery NK_RP */ - -1, /* (686) search_condition ::= common_expression */ - -1, /* (687) sort_specification_list ::= sort_specification */ - -3, /* (688) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - -3, /* (689) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ - 0, /* (690) ordering_specification_opt ::= */ - -1, /* (691) ordering_specification_opt ::= ASC */ - -1, /* (692) ordering_specification_opt ::= DESC */ - 0, /* (693) null_ordering_opt ::= */ - -2, /* (694) null_ordering_opt ::= NULLS FIRST */ - -2, /* (695) null_ordering_opt ::= NULLS LAST */ + -1, /* (220) type_name_default_len ::= BINARY */ + -1, /* (221) type_name_default_len ::= NCHAR */ + -1, /* (222) type_name_default_len ::= VARCHAR */ + -1, /* (223) type_name_default_len ::= VARBINARY */ + 0, /* (224) tags_def_opt ::= */ + -1, /* (225) tags_def_opt ::= tags_def */ + -4, /* (226) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + 0, /* (227) table_options ::= */ + -3, /* (228) table_options ::= table_options COMMENT NK_STRING */ + -3, /* (229) table_options ::= table_options MAX_DELAY duration_list */ + -3, /* (230) table_options ::= table_options WATERMARK duration_list */ + -5, /* (231) table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ + -3, /* (232) table_options ::= table_options TTL NK_INTEGER */ + -5, /* (233) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + -3, /* (234) table_options ::= table_options DELETE_MARK duration_list */ + -1, /* (235) alter_table_options ::= alter_table_option */ + -2, /* (236) alter_table_options ::= alter_table_options alter_table_option */ + -2, /* (237) alter_table_option ::= COMMENT NK_STRING */ + -2, /* (238) alter_table_option ::= TTL NK_INTEGER */ + -1, /* (239) duration_list ::= duration_literal */ + -3, /* (240) duration_list ::= duration_list NK_COMMA duration_literal */ + -1, /* (241) rollup_func_list ::= rollup_func_name */ + -3, /* (242) rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ + -1, /* (243) rollup_func_name ::= function_name */ + -1, /* (244) rollup_func_name ::= FIRST */ + -1, /* (245) rollup_func_name ::= LAST */ + -1, /* (246) col_name_list ::= col_name */ + -3, /* (247) col_name_list ::= col_name_list NK_COMMA col_name */ + -1, /* (248) col_name ::= column_name */ + -2, /* (249) cmd ::= SHOW DNODES */ + -2, /* (250) cmd ::= SHOW USERS */ + -3, /* (251) cmd ::= SHOW USER PRIVILEGES */ + -3, /* (252) cmd ::= SHOW db_kind_opt DATABASES */ + -4, /* (253) cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + -4, /* (254) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + -3, /* (255) cmd ::= SHOW db_name_cond_opt VGROUPS */ + -2, /* (256) cmd ::= SHOW MNODES */ + -2, /* (257) cmd ::= SHOW QNODES */ + -2, /* (258) cmd ::= SHOW ARBGROUPS */ + -2, /* (259) cmd ::= SHOW FUNCTIONS */ + -5, /* (260) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + -6, /* (261) cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ + -2, /* (262) cmd ::= SHOW STREAMS */ + -2, /* (263) cmd ::= SHOW ACCOUNTS */ + -2, /* (264) cmd ::= SHOW APPS */ + -2, /* (265) cmd ::= SHOW CONNECTIONS */ + -2, /* (266) cmd ::= SHOW LICENCES */ + -2, /* (267) cmd ::= SHOW GRANTS */ + -3, /* (268) cmd ::= SHOW GRANTS FULL */ + -3, /* (269) cmd ::= SHOW GRANTS LOGS */ + -3, /* (270) cmd ::= SHOW CLUSTER MACHINES */ + -4, /* (271) cmd ::= SHOW CREATE DATABASE db_name */ + -4, /* (272) cmd ::= SHOW CREATE TABLE full_table_name */ + -4, /* (273) cmd ::= SHOW CREATE STABLE full_table_name */ + -2, /* (274) cmd ::= SHOW QUERIES */ + -2, /* (275) cmd ::= SHOW SCORES */ + -2, /* (276) cmd ::= SHOW TOPICS */ + -2, /* (277) cmd ::= SHOW VARIABLES */ + -3, /* (278) cmd ::= SHOW CLUSTER VARIABLES */ + -3, /* (279) cmd ::= SHOW LOCAL VARIABLES */ + -5, /* (280) cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ + -2, /* (281) cmd ::= SHOW BNODES */ + -2, /* (282) cmd ::= SHOW SNODES */ + -2, /* (283) cmd ::= SHOW CLUSTER */ + -2, /* (284) cmd ::= SHOW TRANSACTIONS */ + -4, /* (285) cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ + -2, /* (286) cmd ::= SHOW CONSUMERS */ + -2, /* (287) cmd ::= SHOW SUBSCRIPTIONS */ + -5, /* (288) cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ + -6, /* (289) cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ + -7, /* (290) cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ + -8, /* (291) cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ + -5, /* (292) cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + -2, /* (293) cmd ::= SHOW VNODES */ + -3, /* (294) cmd ::= SHOW db_name_cond_opt ALIVE */ + -3, /* (295) cmd ::= SHOW CLUSTER ALIVE */ + -4, /* (296) cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ + -4, /* (297) cmd ::= SHOW CREATE VIEW full_table_name */ + -2, /* (298) cmd ::= SHOW COMPACTS */ + -3, /* (299) cmd ::= SHOW COMPACT NK_INTEGER */ + 0, /* (300) table_kind_db_name_cond_opt ::= */ + -1, /* (301) table_kind_db_name_cond_opt ::= table_kind */ + -2, /* (302) table_kind_db_name_cond_opt ::= db_name NK_DOT */ + -3, /* (303) table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ + -1, /* (304) table_kind ::= NORMAL */ + -1, /* (305) table_kind ::= CHILD */ + 0, /* (306) db_name_cond_opt ::= */ + -2, /* (307) db_name_cond_opt ::= db_name NK_DOT */ + 0, /* (308) like_pattern_opt ::= */ + -2, /* (309) like_pattern_opt ::= LIKE NK_STRING */ + -1, /* (310) table_name_cond ::= table_name */ + 0, /* (311) from_db_opt ::= */ + -2, /* (312) from_db_opt ::= FROM db_name */ + 0, /* (313) tag_list_opt ::= */ + -1, /* (314) tag_list_opt ::= tag_item */ + -3, /* (315) tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ + -1, /* (316) tag_item ::= TBNAME */ + -1, /* (317) tag_item ::= QTAGS */ + -1, /* (318) tag_item ::= column_name */ + -2, /* (319) tag_item ::= column_name column_alias */ + -3, /* (320) tag_item ::= column_name AS column_alias */ + 0, /* (321) db_kind_opt ::= */ + -1, /* (322) db_kind_opt ::= USER */ + -1, /* (323) db_kind_opt ::= SYSTEM */ + -8, /* (324) cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ + -9, /* (325) cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ + -4, /* (326) cmd ::= DROP INDEX exists_opt full_index_name */ + -1, /* (327) full_index_name ::= index_name */ + -3, /* (328) full_index_name ::= db_name NK_DOT index_name */ + -10, /* (329) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ + -12, /* (330) 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, /* (331) func_list ::= func */ + -3, /* (332) func_list ::= func_list NK_COMMA func */ + -4, /* (333) func ::= sma_func_name NK_LP expression_list NK_RP */ + -1, /* (334) sma_func_name ::= function_name */ + -1, /* (335) sma_func_name ::= COUNT */ + -1, /* (336) sma_func_name ::= FIRST */ + -1, /* (337) sma_func_name ::= LAST */ + -1, /* (338) sma_func_name ::= LAST_ROW */ + 0, /* (339) sma_stream_opt ::= */ + -3, /* (340) sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ + -3, /* (341) sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ + -3, /* (342) sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ + -1, /* (343) with_meta ::= AS */ + -3, /* (344) with_meta ::= WITH META AS */ + -3, /* (345) with_meta ::= ONLY META AS */ + -6, /* (346) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ + -7, /* (347) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ + -8, /* (348) cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ + -4, /* (349) cmd ::= DROP TOPIC exists_opt topic_name */ + -7, /* (350) cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ + -2, /* (351) cmd ::= DESC full_table_name */ + -2, /* (352) cmd ::= DESCRIBE full_table_name */ + -3, /* (353) cmd ::= RESET QUERY CACHE */ + -4, /* (354) cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + -4, /* (355) cmd ::= EXPLAIN analyze_opt explain_options insert_query */ + 0, /* (356) analyze_opt ::= */ + -1, /* (357) analyze_opt ::= ANALYZE */ + 0, /* (358) explain_options ::= */ + -3, /* (359) explain_options ::= explain_options VERBOSE NK_BOOL */ + -3, /* (360) explain_options ::= explain_options RATIO NK_FLOAT */ + -12, /* (361) 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, /* (362) cmd ::= DROP FUNCTION exists_opt function_name */ + 0, /* (363) agg_func_opt ::= */ + -1, /* (364) agg_func_opt ::= AGGREGATE */ + 0, /* (365) bufsize_opt ::= */ + -2, /* (366) bufsize_opt ::= BUFSIZE NK_INTEGER */ + 0, /* (367) language_opt ::= */ + -2, /* (368) language_opt ::= LANGUAGE NK_STRING */ + 0, /* (369) or_replace_opt ::= */ + -2, /* (370) or_replace_opt ::= OR REPLACE */ + -6, /* (371) cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ + -4, /* (372) cmd ::= DROP VIEW exists_opt full_view_name */ + -1, /* (373) full_view_name ::= view_name */ + -3, /* (374) full_view_name ::= db_name NK_DOT view_name */ + -12, /* (375) 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, /* (376) cmd ::= DROP STREAM exists_opt stream_name */ + -4, /* (377) cmd ::= PAUSE STREAM exists_opt stream_name */ + -5, /* (378) cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ + 0, /* (379) col_list_opt ::= */ + -3, /* (380) col_list_opt ::= NK_LP column_stream_def_list NK_RP */ + -1, /* (381) column_stream_def_list ::= column_stream_def */ + -3, /* (382) column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ + -1, /* (383) column_stream_def ::= column_name */ + -3, /* (384) column_stream_def ::= column_name PRIMARY KEY */ + 0, /* (385) tag_def_or_ref_opt ::= */ + -1, /* (386) tag_def_or_ref_opt ::= tags_def */ + -4, /* (387) tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ + 0, /* (388) stream_options ::= */ + -3, /* (389) stream_options ::= stream_options TRIGGER AT_ONCE */ + -3, /* (390) stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ + -4, /* (391) stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ + -3, /* (392) stream_options ::= stream_options WATERMARK duration_literal */ + -4, /* (393) stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ + -3, /* (394) stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ + -3, /* (395) stream_options ::= stream_options DELETE_MARK duration_literal */ + -4, /* (396) stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ + 0, /* (397) subtable_opt ::= */ + -4, /* (398) subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + 0, /* (399) ignore_opt ::= */ + -2, /* (400) ignore_opt ::= IGNORE UNTREATED */ + -3, /* (401) cmd ::= KILL CONNECTION NK_INTEGER */ + -3, /* (402) cmd ::= KILL QUERY NK_STRING */ + -3, /* (403) cmd ::= KILL TRANSACTION NK_INTEGER */ + -3, /* (404) cmd ::= KILL COMPACT NK_INTEGER */ + -2, /* (405) cmd ::= BALANCE VGROUP */ + -4, /* (406) cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ + -4, /* (407) cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + -4, /* (408) cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ + -3, /* (409) cmd ::= SPLIT VGROUP NK_INTEGER */ + 0, /* (410) on_vgroup_id ::= */ + -2, /* (411) on_vgroup_id ::= ON NK_INTEGER */ + -2, /* (412) dnode_list ::= DNODE NK_INTEGER */ + -3, /* (413) dnode_list ::= dnode_list DNODE NK_INTEGER */ + -4, /* (414) cmd ::= DELETE FROM full_table_name where_clause_opt */ + -1, /* (415) cmd ::= query_or_subquery */ + -1, /* (416) cmd ::= insert_query */ + -7, /* (417) insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ + -4, /* (418) insert_query ::= INSERT INTO full_table_name query_or_subquery */ + -1, /* (419) tags_literal ::= NK_INTEGER */ + -3, /* (420) tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + -3, /* (421) tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ + -2, /* (422) tags_literal ::= NK_PLUS NK_INTEGER */ + -4, /* (423) tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + -4, /* (424) tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ + -2, /* (425) tags_literal ::= NK_MINUS NK_INTEGER */ + -4, /* (426) tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ + -4, /* (427) tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ + -1, /* (428) tags_literal ::= NK_FLOAT */ + -2, /* (429) tags_literal ::= NK_PLUS NK_FLOAT */ + -2, /* (430) tags_literal ::= NK_MINUS NK_FLOAT */ + -1, /* (431) tags_literal ::= NK_BIN */ + -3, /* (432) tags_literal ::= NK_BIN NK_PLUS duration_literal */ + -3, /* (433) tags_literal ::= NK_BIN NK_MINUS duration_literal */ + -2, /* (434) tags_literal ::= NK_PLUS NK_BIN */ + -4, /* (435) tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ + -4, /* (436) tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ + -2, /* (437) tags_literal ::= NK_MINUS NK_BIN */ + -4, /* (438) tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ + -4, /* (439) tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ + -1, /* (440) tags_literal ::= NK_HEX */ + -3, /* (441) tags_literal ::= NK_HEX NK_PLUS duration_literal */ + -3, /* (442) tags_literal ::= NK_HEX NK_MINUS duration_literal */ + -2, /* (443) tags_literal ::= NK_PLUS NK_HEX */ + -4, /* (444) tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ + -4, /* (445) tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ + -2, /* (446) tags_literal ::= NK_MINUS NK_HEX */ + -4, /* (447) tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ + -4, /* (448) tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ + -1, /* (449) tags_literal ::= NK_STRING */ + -3, /* (450) tags_literal ::= NK_STRING NK_PLUS duration_literal */ + -3, /* (451) tags_literal ::= NK_STRING NK_MINUS duration_literal */ + -1, /* (452) tags_literal ::= NK_BOOL */ + -1, /* (453) tags_literal ::= NULL */ + -1, /* (454) tags_literal ::= literal_func */ + -3, /* (455) tags_literal ::= literal_func NK_PLUS duration_literal */ + -3, /* (456) tags_literal ::= literal_func NK_MINUS duration_literal */ + -1, /* (457) tags_literal_list ::= tags_literal */ + -3, /* (458) tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ + -1, /* (459) literal ::= NK_INTEGER */ + -1, /* (460) literal ::= NK_FLOAT */ + -1, /* (461) literal ::= NK_STRING */ + -1, /* (462) literal ::= NK_BOOL */ + -2, /* (463) literal ::= TIMESTAMP NK_STRING */ + -1, /* (464) literal ::= duration_literal */ + -1, /* (465) literal ::= NULL */ + -1, /* (466) literal ::= NK_QUESTION */ + -1, /* (467) duration_literal ::= NK_VARIABLE */ + -1, /* (468) signed ::= NK_INTEGER */ + -2, /* (469) signed ::= NK_PLUS NK_INTEGER */ + -2, /* (470) signed ::= NK_MINUS NK_INTEGER */ + -1, /* (471) signed ::= NK_FLOAT */ + -2, /* (472) signed ::= NK_PLUS NK_FLOAT */ + -2, /* (473) signed ::= NK_MINUS NK_FLOAT */ + -1, /* (474) signed_literal ::= signed */ + -1, /* (475) signed_literal ::= NK_STRING */ + -1, /* (476) signed_literal ::= NK_BOOL */ + -2, /* (477) signed_literal ::= TIMESTAMP NK_STRING */ + -1, /* (478) signed_literal ::= duration_literal */ + -1, /* (479) signed_literal ::= NULL */ + -1, /* (480) signed_literal ::= literal_func */ + -1, /* (481) signed_literal ::= NK_QUESTION */ + -1, /* (482) literal_list ::= signed_literal */ + -3, /* (483) literal_list ::= literal_list NK_COMMA signed_literal */ + -1, /* (484) db_name ::= NK_ID */ + -1, /* (485) table_name ::= NK_ID */ + -1, /* (486) column_name ::= NK_ID */ + -1, /* (487) function_name ::= NK_ID */ + -1, /* (488) view_name ::= NK_ID */ + -1, /* (489) table_alias ::= NK_ID */ + -1, /* (490) column_alias ::= NK_ID */ + -1, /* (491) column_alias ::= NK_ALIAS */ + -1, /* (492) user_name ::= NK_ID */ + -1, /* (493) topic_name ::= NK_ID */ + -1, /* (494) stream_name ::= NK_ID */ + -1, /* (495) cgroup_name ::= NK_ID */ + -1, /* (496) index_name ::= NK_ID */ + -1, /* (497) expr_or_subquery ::= expression */ + -1, /* (498) expression ::= literal */ + -1, /* (499) expression ::= pseudo_column */ + -1, /* (500) expression ::= column_reference */ + -1, /* (501) expression ::= function_expression */ + -1, /* (502) expression ::= case_when_expression */ + -3, /* (503) expression ::= NK_LP expression NK_RP */ + -2, /* (504) expression ::= NK_PLUS expr_or_subquery */ + -2, /* (505) expression ::= NK_MINUS expr_or_subquery */ + -3, /* (506) expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + -3, /* (507) expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + -3, /* (508) expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + -3, /* (509) expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + -3, /* (510) expression ::= expr_or_subquery NK_REM expr_or_subquery */ + -3, /* (511) expression ::= column_reference NK_ARROW NK_STRING */ + -3, /* (512) expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + -3, /* (513) expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + -1, /* (514) expression_list ::= expr_or_subquery */ + -3, /* (515) expression_list ::= expression_list NK_COMMA expr_or_subquery */ + -1, /* (516) column_reference ::= column_name */ + -3, /* (517) column_reference ::= table_name NK_DOT column_name */ + -1, /* (518) column_reference ::= NK_ALIAS */ + -3, /* (519) column_reference ::= table_name NK_DOT NK_ALIAS */ + -1, /* (520) pseudo_column ::= ROWTS */ + -1, /* (521) pseudo_column ::= TBNAME */ + -3, /* (522) pseudo_column ::= table_name NK_DOT TBNAME */ + -1, /* (523) pseudo_column ::= QSTART */ + -1, /* (524) pseudo_column ::= QEND */ + -1, /* (525) pseudo_column ::= QDURATION */ + -1, /* (526) pseudo_column ::= WSTART */ + -1, /* (527) pseudo_column ::= WEND */ + -1, /* (528) pseudo_column ::= WDURATION */ + -1, /* (529) pseudo_column ::= IROWTS */ + -1, /* (530) pseudo_column ::= ISFILLED */ + -1, /* (531) pseudo_column ::= QTAGS */ + -4, /* (532) function_expression ::= function_name NK_LP expression_list NK_RP */ + -4, /* (533) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + -6, /* (534) function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + -6, /* (535) function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ + -1, /* (536) function_expression ::= literal_func */ + -3, /* (537) literal_func ::= noarg_func NK_LP NK_RP */ + -1, /* (538) literal_func ::= NOW */ + -1, /* (539) literal_func ::= TODAY */ + -1, /* (540) noarg_func ::= NOW */ + -1, /* (541) noarg_func ::= TODAY */ + -1, /* (542) noarg_func ::= TIMEZONE */ + -1, /* (543) noarg_func ::= DATABASE */ + -1, /* (544) noarg_func ::= CLIENT_VERSION */ + -1, /* (545) noarg_func ::= SERVER_VERSION */ + -1, /* (546) noarg_func ::= SERVER_STATUS */ + -1, /* (547) noarg_func ::= CURRENT_USER */ + -1, /* (548) noarg_func ::= USER */ + -1, /* (549) star_func ::= COUNT */ + -1, /* (550) star_func ::= FIRST */ + -1, /* (551) star_func ::= LAST */ + -1, /* (552) star_func ::= LAST_ROW */ + -1, /* (553) star_func_para_list ::= NK_STAR */ + -1, /* (554) star_func_para_list ::= other_para_list */ + -1, /* (555) other_para_list ::= star_func_para */ + -3, /* (556) other_para_list ::= other_para_list NK_COMMA star_func_para */ + -1, /* (557) star_func_para ::= expr_or_subquery */ + -3, /* (558) star_func_para ::= table_name NK_DOT NK_STAR */ + -4, /* (559) case_when_expression ::= CASE when_then_list case_when_else_opt END */ + -5, /* (560) case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ + -1, /* (561) when_then_list ::= when_then_expr */ + -2, /* (562) when_then_list ::= when_then_list when_then_expr */ + -4, /* (563) when_then_expr ::= WHEN common_expression THEN common_expression */ + 0, /* (564) case_when_else_opt ::= */ + -2, /* (565) case_when_else_opt ::= ELSE common_expression */ + -3, /* (566) predicate ::= expr_or_subquery compare_op expr_or_subquery */ + -5, /* (567) predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + -6, /* (568) predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + -3, /* (569) predicate ::= expr_or_subquery IS NULL */ + -4, /* (570) predicate ::= expr_or_subquery IS NOT NULL */ + -3, /* (571) predicate ::= expr_or_subquery in_op in_predicate_value */ + -1, /* (572) compare_op ::= NK_LT */ + -1, /* (573) compare_op ::= NK_GT */ + -1, /* (574) compare_op ::= NK_LE */ + -1, /* (575) compare_op ::= NK_GE */ + -1, /* (576) compare_op ::= NK_NE */ + -1, /* (577) compare_op ::= NK_EQ */ + -1, /* (578) compare_op ::= LIKE */ + -2, /* (579) compare_op ::= NOT LIKE */ + -1, /* (580) compare_op ::= MATCH */ + -1, /* (581) compare_op ::= NMATCH */ + -1, /* (582) compare_op ::= CONTAINS */ + -1, /* (583) in_op ::= IN */ + -2, /* (584) in_op ::= NOT IN */ + -3, /* (585) in_predicate_value ::= NK_LP literal_list NK_RP */ + -1, /* (586) boolean_value_expression ::= boolean_primary */ + -2, /* (587) boolean_value_expression ::= NOT boolean_primary */ + -3, /* (588) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + -3, /* (589) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + -1, /* (590) boolean_primary ::= predicate */ + -3, /* (591) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + -1, /* (592) common_expression ::= expr_or_subquery */ + -1, /* (593) common_expression ::= boolean_value_expression */ + 0, /* (594) from_clause_opt ::= */ + -2, /* (595) from_clause_opt ::= FROM table_reference_list */ + -1, /* (596) table_reference_list ::= table_reference */ + -3, /* (597) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + -1, /* (598) table_reference ::= table_primary */ + -1, /* (599) table_reference ::= joined_table */ + -2, /* (600) table_primary ::= table_name alias_opt */ + -4, /* (601) table_primary ::= db_name NK_DOT table_name alias_opt */ + -2, /* (602) table_primary ::= subquery alias_opt */ + -1, /* (603) table_primary ::= parenthesized_joined_table */ + 0, /* (604) alias_opt ::= */ + -1, /* (605) alias_opt ::= table_alias */ + -2, /* (606) alias_opt ::= AS table_alias */ + -3, /* (607) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + -3, /* (608) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + -6, /* (609) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + 0, /* (610) join_type ::= */ + -1, /* (611) join_type ::= INNER */ + -14, /* (612) 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, /* (613) hint_list ::= */ + -1, /* (614) hint_list ::= NK_HINT */ + 0, /* (615) tag_mode_opt ::= */ + -1, /* (616) tag_mode_opt ::= TAGS */ + 0, /* (617) set_quantifier_opt ::= */ + -1, /* (618) set_quantifier_opt ::= DISTINCT */ + -1, /* (619) set_quantifier_opt ::= ALL */ + -1, /* (620) select_list ::= select_item */ + -3, /* (621) select_list ::= select_list NK_COMMA select_item */ + -1, /* (622) select_item ::= NK_STAR */ + -1, /* (623) select_item ::= common_expression */ + -2, /* (624) select_item ::= common_expression column_alias */ + -3, /* (625) select_item ::= common_expression AS column_alias */ + -3, /* (626) select_item ::= table_name NK_DOT NK_STAR */ + 0, /* (627) where_clause_opt ::= */ + -2, /* (628) where_clause_opt ::= WHERE search_condition */ + 0, /* (629) partition_by_clause_opt ::= */ + -3, /* (630) partition_by_clause_opt ::= PARTITION BY partition_list */ + -1, /* (631) partition_list ::= partition_item */ + -3, /* (632) partition_list ::= partition_list NK_COMMA partition_item */ + -1, /* (633) partition_item ::= expr_or_subquery */ + -2, /* (634) partition_item ::= expr_or_subquery column_alias */ + -3, /* (635) partition_item ::= expr_or_subquery AS column_alias */ + 0, /* (636) twindow_clause_opt ::= */ + -6, /* (637) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ + -4, /* (638) twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ + -6, /* (639) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + -8, /* (640) twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ + -7, /* (641) twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ + -4, /* (642) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ + -6, /* (643) twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + 0, /* (644) sliding_opt ::= */ + -4, /* (645) sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ + -1, /* (646) interval_sliding_duration_literal ::= NK_VARIABLE */ + -1, /* (647) interval_sliding_duration_literal ::= NK_STRING */ + -1, /* (648) interval_sliding_duration_literal ::= NK_INTEGER */ + 0, /* (649) fill_opt ::= */ + -4, /* (650) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + -6, /* (651) fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ + -6, /* (652) fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ + -1, /* (653) fill_mode ::= NONE */ + -1, /* (654) fill_mode ::= PREV */ + -1, /* (655) fill_mode ::= NULL */ + -1, /* (656) fill_mode ::= NULL_F */ + -1, /* (657) fill_mode ::= LINEAR */ + -1, /* (658) fill_mode ::= NEXT */ + 0, /* (659) group_by_clause_opt ::= */ + -3, /* (660) group_by_clause_opt ::= GROUP BY group_by_list */ + -1, /* (661) group_by_list ::= expr_or_subquery */ + -3, /* (662) group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ + 0, /* (663) having_clause_opt ::= */ + -2, /* (664) having_clause_opt ::= HAVING search_condition */ + 0, /* (665) range_opt ::= */ + -6, /* (666) range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ + -4, /* (667) range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ + 0, /* (668) every_opt ::= */ + -4, /* (669) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + -4, /* (670) query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + -1, /* (671) query_simple ::= query_specification */ + -1, /* (672) query_simple ::= union_query_expression */ + -4, /* (673) union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ + -3, /* (674) union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ + -1, /* (675) query_simple_or_subquery ::= query_simple */ + -1, /* (676) query_simple_or_subquery ::= subquery */ + -1, /* (677) query_or_subquery ::= query_expression */ + -1, /* (678) query_or_subquery ::= subquery */ + 0, /* (679) order_by_clause_opt ::= */ + -3, /* (680) order_by_clause_opt ::= ORDER BY sort_specification_list */ + 0, /* (681) slimit_clause_opt ::= */ + -2, /* (682) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + -4, /* (683) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + -4, /* (684) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + 0, /* (685) limit_clause_opt ::= */ + -2, /* (686) limit_clause_opt ::= LIMIT NK_INTEGER */ + -4, /* (687) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + -4, /* (688) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + -3, /* (689) subquery ::= NK_LP query_expression NK_RP */ + -3, /* (690) subquery ::= NK_LP subquery NK_RP */ + -1, /* (691) search_condition ::= common_expression */ + -1, /* (692) sort_specification_list ::= sort_specification */ + -3, /* (693) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + -3, /* (694) sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ + 0, /* (695) ordering_specification_opt ::= */ + -1, /* (696) ordering_specification_opt ::= ASC */ + -1, /* (697) ordering_specification_opt ::= DESC */ + 0, /* (698) null_ordering_opt ::= */ + -2, /* (699) null_ordering_opt ::= NULLS FIRST */ + -2, /* (700) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -5220,6 +5302,55 @@ static YYACTIONTYPE yy_reduce( (void)yyLookahead; (void)yyLookaheadToken; yymsp = yypParser->yytos; + assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ); +#ifndef NDEBUG + if( yyTraceFILE ){ + yysize = yyRuleInfoNRhs[yyruleno]; + if( yysize ){ + fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", + yyTracePrompt, + yyruleno, yyRuleName[yyruleno], + yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){ + yypParser->yyhwm++; + assert( yypParser->yyhwm == (int)(yypParser->yytos - yypParser->yystack)); + } +#endif +#if YYSTACKDEPTH>0 + if( yypParser->yytos>=yypParser->yystackEnd ){ + yyStackOverflow(yypParser); + /* The call to yyStackOverflow() above pops the stack until it is + ** empty, causing the main parser loop to exit. So the return value + ** is never used and does not matter. */ + return 0; + } +#else + if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){ + if( yyGrowStack(yypParser) ){ + yyStackOverflow(yypParser); + /* The call to yyStackOverflow() above pops the stack until it is + ** empty, causing the main parser loop to exit. So the return value + ** is never used and does not matter. */ + return 0; + } + yymsp = yypParser->yytos; + } +#endif + } switch( yyruleno ){ /* Beginning here are the reduction cases. A typical example @@ -5233,15 +5364,21 @@ static YYACTIONTYPE yy_reduce( /********** Begin reduce actions **********************************************/ YYMINORTYPE yylhsminor; case 0: /* cmd ::= CREATE ACCOUNT NK_ID PASS NK_STRING account_options */ +#line 50 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } +#line 5369 "sql.c" yy_destructor(yypParser,356,&yymsp[0].minor); break; case 1: /* cmd ::= ALTER ACCOUNT NK_ID alter_account_options */ +#line 51 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } +#line 5375 "sql.c" yy_destructor(yypParser,357,&yymsp[0].minor); break; case 2: /* account_options ::= */ +#line 55 "sql.y" { } +#line 5381 "sql.c" break; case 3: /* account_options ::= account_options PPS literal */ case 4: /* account_options ::= account_options TSERIES literal */ yytestcase(yyruleno==4); @@ -5253,18 +5390,24 @@ static YYACTIONTYPE yy_reduce( case 10: /* account_options ::= account_options CONNS literal */ yytestcase(yyruleno==10); case 11: /* account_options ::= account_options STATE literal */ yytestcase(yyruleno==11); { yy_destructor(yypParser,356,&yymsp[-2].minor); +#line 56 "sql.y" { } +#line 5395 "sql.c" yy_destructor(yypParser,358,&yymsp[0].minor); } break; case 12: /* alter_account_options ::= alter_account_option */ { yy_destructor(yypParser,359,&yymsp[0].minor); +#line 68 "sql.y" { } +#line 5403 "sql.c" } break; case 13: /* alter_account_options ::= alter_account_options alter_account_option */ { yy_destructor(yypParser,357,&yymsp[-1].minor); +#line 69 "sql.y" { } +#line 5410 "sql.c" yy_destructor(yypParser,359,&yymsp[0].minor); } break; @@ -5278,1906 +5421,2833 @@ static YYACTIONTYPE yy_reduce( case 21: /* alter_account_option ::= USERS literal */ yytestcase(yyruleno==21); case 22: /* alter_account_option ::= CONNS literal */ yytestcase(yyruleno==22); case 23: /* alter_account_option ::= STATE literal */ yytestcase(yyruleno==23); +#line 73 "sql.y" { } +#line 5426 "sql.c" yy_destructor(yypParser,358,&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; +#line 86 "sql.y" +{ yylhsminor.yy1006 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } +#line 5432 "sql.c" + 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; +#line 87 "sql.y" +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } +#line 5438 "sql.c" + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; case 26: /* white_list ::= HOST ip_range_list */ -{ yymsp[-1].minor.yy184 = yymsp[0].minor.yy184; } +#line 91 "sql.y" +{ yymsp[-1].minor.yy1006 = yymsp[0].minor.yy1006; } +#line 5444 "sql.c" break; case 27: /* white_list_opt ::= */ case 188: /* specific_cols_opt ::= */ yytestcase(yyruleno==188); - case 220: /* tags_def_opt ::= */ yytestcase(yyruleno==220); - case 309: /* tag_list_opt ::= */ yytestcase(yyruleno==309); - case 375: /* col_list_opt ::= */ yytestcase(yyruleno==375); - case 381: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==381); - case 624: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==624); - case 654: /* group_by_clause_opt ::= */ yytestcase(yyruleno==654); - case 674: /* order_by_clause_opt ::= */ yytestcase(yyruleno==674); -{ yymsp[1].minor.yy184 = NULL; } + case 224: /* tags_def_opt ::= */ yytestcase(yyruleno==224); + case 313: /* tag_list_opt ::= */ yytestcase(yyruleno==313); + case 379: /* col_list_opt ::= */ yytestcase(yyruleno==379); + case 385: /* tag_def_or_ref_opt ::= */ yytestcase(yyruleno==385); + case 629: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==629); + case 659: /* group_by_clause_opt ::= */ yytestcase(yyruleno==659); + case 679: /* order_by_clause_opt ::= */ yytestcase(yyruleno==679); +#line 95 "sql.y" +{ yymsp[1].minor.yy1006 = NULL; } +#line 5457 "sql.c" break; case 28: /* white_list_opt ::= white_list */ - case 221: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==221); - case 382: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==382); - case 549: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==549); -{ yylhsminor.yy184 = yymsp[0].minor.yy184; } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 225: /* tags_def_opt ::= tags_def */ yytestcase(yyruleno==225); + case 386: /* tag_def_or_ref_opt ::= tags_def */ yytestcase(yyruleno==386); + case 554: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==554); +#line 96 "sql.y" +{ yylhsminor.yy1006 = yymsp[0].minor.yy1006; } +#line 5465 "sql.c" + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; case 29: /* cmd ::= CREATE USER user_name PASS NK_STRING sysinfo_opt white_list_opt */ +#line 100 "sql.y" { - pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-4].minor.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); } +#line 5474 "sql.c" 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); } +#line 104 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +#line 5479 "sql.c" 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); } +#line 105 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_ENABLE, &yymsp[0].minor.yy0); } +#line 5484 "sql.c" 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); } +#line 106 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_SYSINFO, &yymsp[0].minor.yy0); } +#line 5489 "sql.c" 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); } +#line 107 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_ADD_WHITE_LIST, yymsp[0].minor.yy1006); } +#line 5494 "sql.c" 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); } +#line 108 "sql.y" +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy213, TSDB_ALTER_USER_DROP_WHITE_LIST, yymsp[0].minor.yy1006); } +#line 5499 "sql.c" break; case 35: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy369); } +#line 109 "sql.y" +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy213); } +#line 5504 "sql.c" break; case 36: /* sysinfo_opt ::= */ -{ yymsp[1].minor.yy743 = 1; } +#line 113 "sql.y" +{ yymsp[1].minor.yy379 = 1; } +#line 5509 "sql.c" break; case 37: /* sysinfo_opt ::= SYSINFO NK_INTEGER */ -{ yymsp[-1].minor.yy743 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +#line 114 "sql.y" +{ yymsp[-1].minor.yy379 = taosStr2Int8(yymsp[0].minor.yy0.z, NULL, 10); } +#line 5514 "sql.c" 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); } +#line 117 "sql.y" +{ pCxt->pRootNode = createGrantStmt(pCxt, yymsp[-5].minor.yy337, &yymsp[-3].minor.yy285, &yymsp[0].minor.yy213, yymsp[-2].minor.yy664); } +#line 5519 "sql.c" 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); } +#line 118 "sql.y" +{ pCxt->pRootNode = createRevokeStmt(pCxt, yymsp[-5].minor.yy337, &yymsp[-3].minor.yy285, &yymsp[0].minor.yy213, yymsp[-2].minor.yy664); } +#line 5524 "sql.c" break; case 40: /* privileges ::= ALL */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALL; } +#line 122 "sql.y" +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_ALL; } +#line 5529 "sql.c" 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; +#line 123 "sql.y" +{ yylhsminor.yy337 = yymsp[0].minor.yy337; } +#line 5535 "sql.c" + yymsp[0].minor.yy337 = yylhsminor.yy337; break; case 42: /* privileges ::= SUBSCRIBE */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_SUBSCRIBE; } +#line 124 "sql.y" +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_SUBSCRIBE; } +#line 5541 "sql.c" 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; +#line 129 "sql.y" +{ yylhsminor.yy337 = yymsp[-2].minor.yy337 | yymsp[0].minor.yy337; } +#line 5546 "sql.c" + yymsp[-2].minor.yy337 = yylhsminor.yy337; break; case 45: /* priv_type ::= READ */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_READ; } +#line 133 "sql.y" +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_READ; } +#line 5552 "sql.c" break; case 46: /* priv_type ::= WRITE */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_WRITE; } +#line 134 "sql.y" +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_WRITE; } +#line 5557 "sql.c" break; case 47: /* priv_type ::= ALTER */ -{ yymsp[0].minor.yy909 = PRIVILEGE_TYPE_ALTER; } +#line 135 "sql.y" +{ yymsp[0].minor.yy337 = PRIVILEGE_TYPE_ALTER; } +#line 5562 "sql.c" 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; +#line 139 "sql.y" +{ yylhsminor.yy285.first = yymsp[-2].minor.yy0; yylhsminor.yy285.second = yymsp[0].minor.yy0; } +#line 5567 "sql.c" + 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; +#line 140 "sql.y" +{ yylhsminor.yy285.first = yymsp[-2].minor.yy213; yylhsminor.yy285.second = yymsp[0].minor.yy0; } +#line 5573 "sql.c" + 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; +#line 141 "sql.y" +{ yylhsminor.yy285.first = yymsp[-2].minor.yy213; yylhsminor.yy285.second = yymsp[0].minor.yy213; } +#line 5579 "sql.c" + 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; +#line 142 "sql.y" +{ yylhsminor.yy285.first = yymsp[0].minor.yy213; yylhsminor.yy285.second = nil_token; } +#line 5585 "sql.c" + yymsp[0].minor.yy285 = yylhsminor.yy285; break; case 52: /* with_opt ::= */ case 157: /* start_opt ::= */ yytestcase(yyruleno==157); case 161: /* end_opt ::= */ yytestcase(yyruleno==161); - case 304: /* like_pattern_opt ::= */ yytestcase(yyruleno==304); - case 393: /* subtable_opt ::= */ yytestcase(yyruleno==393); - case 559: /* case_when_else_opt ::= */ yytestcase(yyruleno==559); - case 589: /* from_clause_opt ::= */ yytestcase(yyruleno==589); - case 622: /* where_clause_opt ::= */ yytestcase(yyruleno==622); - case 631: /* twindow_clause_opt ::= */ yytestcase(yyruleno==631); - case 639: /* sliding_opt ::= */ yytestcase(yyruleno==639); - case 644: /* fill_opt ::= */ yytestcase(yyruleno==644); - case 658: /* having_clause_opt ::= */ yytestcase(yyruleno==658); - case 660: /* range_opt ::= */ yytestcase(yyruleno==660); - case 663: /* every_opt ::= */ yytestcase(yyruleno==663); - case 676: /* slimit_clause_opt ::= */ yytestcase(yyruleno==676); - case 680: /* limit_clause_opt ::= */ yytestcase(yyruleno==680); -{ yymsp[1].minor.yy392 = NULL; } + case 308: /* like_pattern_opt ::= */ yytestcase(yyruleno==308); + case 397: /* subtable_opt ::= */ yytestcase(yyruleno==397); + case 564: /* case_when_else_opt ::= */ yytestcase(yyruleno==564); + case 594: /* from_clause_opt ::= */ yytestcase(yyruleno==594); + case 627: /* where_clause_opt ::= */ yytestcase(yyruleno==627); + case 636: /* twindow_clause_opt ::= */ yytestcase(yyruleno==636); + case 644: /* sliding_opt ::= */ yytestcase(yyruleno==644); + case 649: /* fill_opt ::= */ yytestcase(yyruleno==649); + case 663: /* having_clause_opt ::= */ yytestcase(yyruleno==663); + case 665: /* range_opt ::= */ yytestcase(yyruleno==665); + case 668: /* every_opt ::= */ yytestcase(yyruleno==668); + case 681: /* slimit_clause_opt ::= */ yytestcase(yyruleno==681); + case 685: /* limit_clause_opt ::= */ yytestcase(yyruleno==685); +#line 144 "sql.y" +{ yymsp[1].minor.yy664 = NULL; } +#line 5606 "sql.c" break; case 53: /* with_opt ::= WITH search_condition */ - case 590: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==590); - case 623: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==623); - case 659: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==659); -{ yymsp[-1].minor.yy392 = yymsp[0].minor.yy392; } + case 595: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==595); + case 628: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==628); + case 664: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==664); +#line 145 "sql.y" +{ yymsp[-1].minor.yy664 = yymsp[0].minor.yy664; } +#line 5614 "sql.c" break; case 54: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy369, NULL); } +#line 148 "sql.y" +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy213, NULL); } +#line 5619 "sql.c" break; case 55: /* cmd ::= CREATE DNODE dnode_endpoint PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0); } +#line 149 "sql.y" +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0); } +#line 5624 "sql.c" break; case 56: /* cmd ::= DROP DNODE NK_INTEGER force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy377, false); } +#line 150 "sql.y" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy885, false); } +#line 5629 "sql.c" break; case 57: /* cmd ::= DROP DNODE dnode_endpoint force_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy377, false); } +#line 151 "sql.y" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy885, false); } +#line 5634 "sql.c" break; case 58: /* cmd ::= DROP DNODE NK_INTEGER unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy377); } +#line 152 "sql.y" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy0, false, yymsp[0].minor.yy885); } +#line 5639 "sql.c" break; case 59: /* cmd ::= DROP DNODE dnode_endpoint unsafe_opt */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy369, false, yymsp[0].minor.yy377); } +#line 153 "sql.y" +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[-1].minor.yy213, false, yymsp[0].minor.yy885); } +#line 5644 "sql.c" break; case 60: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ +#line 154 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } +#line 5649 "sql.c" break; case 61: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING NK_STRING */ +#line 155 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-2].minor.yy0, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 5654 "sql.c" break; case 62: /* cmd ::= ALTER ALL DNODES NK_STRING */ +#line 156 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[0].minor.yy0, NULL); } +#line 5659 "sql.c" break; case 63: /* cmd ::= ALTER ALL DNODES NK_STRING NK_STRING */ +#line 157 "sql.y" { pCxt->pRootNode = createAlterDnodeStmt(pCxt, NULL, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 5664 "sql.c" break; case 64: /* cmd ::= RESTORE DNODE NK_INTEGER */ +#line 158 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_DNODE_STMT, &yymsp[0].minor.yy0); } +#line 5669 "sql.c" break; case 65: /* dnode_endpoint ::= NK_STRING */ case 66: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==66); case 67: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==67); - case 331: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==331); - case 332: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==332); - case 333: /* sma_func_name ::= LAST */ yytestcase(yyruleno==333); - case 334: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==334); - case 480: /* db_name ::= NK_ID */ yytestcase(yyruleno==480); - case 481: /* table_name ::= NK_ID */ yytestcase(yyruleno==481); - case 482: /* column_name ::= NK_ID */ yytestcase(yyruleno==482); - case 483: /* function_name ::= NK_ID */ yytestcase(yyruleno==483); - case 484: /* view_name ::= NK_ID */ yytestcase(yyruleno==484); - case 485: /* table_alias ::= NK_ID */ yytestcase(yyruleno==485); - case 486: /* column_alias ::= NK_ID */ yytestcase(yyruleno==486); - case 487: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==487); - case 488: /* user_name ::= NK_ID */ yytestcase(yyruleno==488); - case 489: /* topic_name ::= NK_ID */ yytestcase(yyruleno==489); - case 490: /* stream_name ::= NK_ID */ yytestcase(yyruleno==490); - case 491: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==491); - case 492: /* index_name ::= NK_ID */ yytestcase(yyruleno==492); - case 535: /* noarg_func ::= NOW */ yytestcase(yyruleno==535); - case 536: /* noarg_func ::= TODAY */ yytestcase(yyruleno==536); - case 537: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==537); - case 538: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==538); - case 539: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==539); - case 540: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==540); - case 541: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==541); - case 542: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==542); - case 543: /* noarg_func ::= USER */ yytestcase(yyruleno==543); - case 544: /* star_func ::= COUNT */ yytestcase(yyruleno==544); - case 545: /* star_func ::= FIRST */ yytestcase(yyruleno==545); - case 546: /* star_func ::= LAST */ yytestcase(yyruleno==546); - case 547: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==547); -{ yylhsminor.yy369 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy369 = yylhsminor.yy369; + case 335: /* sma_func_name ::= COUNT */ yytestcase(yyruleno==335); + case 336: /* sma_func_name ::= FIRST */ yytestcase(yyruleno==336); + case 337: /* sma_func_name ::= LAST */ yytestcase(yyruleno==337); + case 338: /* sma_func_name ::= LAST_ROW */ yytestcase(yyruleno==338); + case 484: /* db_name ::= NK_ID */ yytestcase(yyruleno==484); + case 485: /* table_name ::= NK_ID */ yytestcase(yyruleno==485); + case 486: /* column_name ::= NK_ID */ yytestcase(yyruleno==486); + case 487: /* function_name ::= NK_ID */ yytestcase(yyruleno==487); + case 488: /* view_name ::= NK_ID */ yytestcase(yyruleno==488); + case 489: /* table_alias ::= NK_ID */ yytestcase(yyruleno==489); + case 490: /* column_alias ::= NK_ID */ yytestcase(yyruleno==490); + case 491: /* column_alias ::= NK_ALIAS */ yytestcase(yyruleno==491); + case 492: /* user_name ::= NK_ID */ yytestcase(yyruleno==492); + case 493: /* topic_name ::= NK_ID */ yytestcase(yyruleno==493); + case 494: /* stream_name ::= NK_ID */ yytestcase(yyruleno==494); + case 495: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==495); + case 496: /* index_name ::= NK_ID */ yytestcase(yyruleno==496); + case 540: /* noarg_func ::= NOW */ yytestcase(yyruleno==540); + case 541: /* noarg_func ::= TODAY */ yytestcase(yyruleno==541); + case 542: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==542); + case 543: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==543); + case 544: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==544); + case 545: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==545); + case 546: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==546); + case 547: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==547); + case 548: /* noarg_func ::= USER */ yytestcase(yyruleno==548); + case 549: /* star_func ::= COUNT */ yytestcase(yyruleno==549); + case 550: /* star_func ::= FIRST */ yytestcase(yyruleno==550); + case 551: /* star_func ::= LAST */ yytestcase(yyruleno==551); + case 552: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==552); +#line 162 "sql.y" +{ yylhsminor.yy213 = yymsp[0].minor.yy0; } +#line 5706 "sql.c" + yymsp[0].minor.yy213 = yylhsminor.yy213; break; case 68: /* force_opt ::= */ case 94: /* not_exists_opt ::= */ yytestcase(yyruleno==94); case 96: /* exists_opt ::= */ yytestcase(yyruleno==96); - case 352: /* analyze_opt ::= */ yytestcase(yyruleno==352); - case 359: /* agg_func_opt ::= */ yytestcase(yyruleno==359); - case 365: /* or_replace_opt ::= */ yytestcase(yyruleno==365); - case 395: /* ignore_opt ::= */ yytestcase(yyruleno==395); - case 610: /* tag_mode_opt ::= */ yytestcase(yyruleno==610); - case 612: /* set_quantifier_opt ::= */ yytestcase(yyruleno==612); -{ yymsp[1].minor.yy377 = false; } + case 356: /* analyze_opt ::= */ yytestcase(yyruleno==356); + case 363: /* agg_func_opt ::= */ yytestcase(yyruleno==363); + case 369: /* or_replace_opt ::= */ yytestcase(yyruleno==369); + case 399: /* ignore_opt ::= */ yytestcase(yyruleno==399); + case 615: /* tag_mode_opt ::= */ yytestcase(yyruleno==615); + case 617: /* set_quantifier_opt ::= */ yytestcase(yyruleno==617); +#line 168 "sql.y" +{ yymsp[1].minor.yy885 = false; } +#line 5720 "sql.c" break; case 69: /* force_opt ::= FORCE */ case 70: /* unsafe_opt ::= UNSAFE */ yytestcase(yyruleno==70); - case 353: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==353); - case 360: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==360); - case 611: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==611); - case 613: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==613); -{ yymsp[0].minor.yy377 = true; } + case 357: /* analyze_opt ::= ANALYZE */ yytestcase(yyruleno==357); + case 364: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==364); + case 616: /* tag_mode_opt ::= TAGS */ yytestcase(yyruleno==616); + case 618: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==618); +#line 169 "sql.y" +{ yymsp[0].minor.yy885 = true; } +#line 5730 "sql.c" break; case 71: /* cmd ::= ALTER CLUSTER NK_STRING */ +#line 176 "sql.y" { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[0].minor.yy0, NULL); } +#line 5735 "sql.c" break; case 72: /* cmd ::= ALTER CLUSTER NK_STRING NK_STRING */ +#line 177 "sql.y" { pCxt->pRootNode = createAlterClusterStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 5740 "sql.c" break; case 73: /* cmd ::= ALTER LOCAL NK_STRING */ +#line 180 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } +#line 5745 "sql.c" break; case 74: /* cmd ::= ALTER LOCAL NK_STRING NK_STRING */ +#line 181 "sql.y" { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 5750 "sql.c" break; case 75: /* cmd ::= CREATE QNODE ON DNODE NK_INTEGER */ +#line 184 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_QNODE_STMT, &yymsp[0].minor.yy0); } +#line 5755 "sql.c" break; case 76: /* cmd ::= DROP QNODE ON DNODE NK_INTEGER */ +#line 185 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_QNODE_STMT, &yymsp[0].minor.yy0); } +#line 5760 "sql.c" break; case 77: /* cmd ::= RESTORE QNODE ON DNODE NK_INTEGER */ +#line 186 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_QNODE_STMT, &yymsp[0].minor.yy0); } +#line 5765 "sql.c" break; case 78: /* cmd ::= CREATE BNODE ON DNODE NK_INTEGER */ +#line 189 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_BNODE_STMT, &yymsp[0].minor.yy0); } +#line 5770 "sql.c" break; case 79: /* cmd ::= DROP BNODE ON DNODE NK_INTEGER */ +#line 190 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_BNODE_STMT, &yymsp[0].minor.yy0); } +#line 5775 "sql.c" break; case 80: /* cmd ::= CREATE SNODE ON DNODE NK_INTEGER */ +#line 193 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_SNODE_STMT, &yymsp[0].minor.yy0); } +#line 5780 "sql.c" break; case 81: /* cmd ::= DROP SNODE ON DNODE NK_INTEGER */ +#line 194 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_SNODE_STMT, &yymsp[0].minor.yy0); } +#line 5785 "sql.c" break; case 82: /* cmd ::= CREATE MNODE ON DNODE NK_INTEGER */ +#line 197 "sql.y" { pCxt->pRootNode = createCreateComponentNodeStmt(pCxt, QUERY_NODE_CREATE_MNODE_STMT, &yymsp[0].minor.yy0); } +#line 5790 "sql.c" break; case 83: /* cmd ::= DROP MNODE ON DNODE NK_INTEGER */ +#line 198 "sql.y" { pCxt->pRootNode = createDropComponentNodeStmt(pCxt, QUERY_NODE_DROP_MNODE_STMT, &yymsp[0].minor.yy0); } +#line 5795 "sql.c" break; case 84: /* cmd ::= RESTORE MNODE ON DNODE NK_INTEGER */ +#line 199 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_MNODE_STMT, &yymsp[0].minor.yy0); } +#line 5800 "sql.c" break; case 85: /* cmd ::= RESTORE VNODE ON DNODE NK_INTEGER */ +#line 202 "sql.y" { pCxt->pRootNode = createRestoreComponentNodeStmt(pCxt, QUERY_NODE_RESTORE_VNODE_STMT, &yymsp[0].minor.yy0); } +#line 5805 "sql.c" break; case 86: /* 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); } +#line 205 "sql.y" +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy885, &yymsp[-1].minor.yy213, yymsp[0].minor.yy664); } +#line 5810 "sql.c" break; case 87: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } +#line 206 "sql.y" +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } +#line 5815 "sql.c" break; case 88: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy369); } +#line 207 "sql.y" +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy213); } +#line 5820 "sql.c" break; case 89: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy392); } +#line 208 "sql.y" +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy664); } +#line 5825 "sql.c" break; case 90: /* cmd ::= FLUSH DATABASE db_name */ -{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy369); } +#line 209 "sql.y" +{ pCxt->pRootNode = createFlushDatabaseStmt(pCxt, &yymsp[0].minor.yy213); } +#line 5830 "sql.c" break; case 91: /* cmd ::= TRIM DATABASE db_name speed_opt */ -{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy20); } +#line 210 "sql.y" +{ pCxt->pRootNode = createTrimDatabaseStmt(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy316); } +#line 5835 "sql.c" break; case 92: /* 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); } +#line 211 "sql.y" +{ pCxt->pRootNode = createCompactStmt(pCxt, &yymsp[-2].minor.yy213, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } +#line 5840 "sql.c" break; case 93: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy377 = true; } +#line 215 "sql.y" +{ yymsp[-2].minor.yy885 = true; } +#line 5845 "sql.c" break; case 95: /* exists_opt ::= IF EXISTS */ - case 366: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==366); - case 396: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==396); -{ yymsp[-1].minor.yy377 = true; } + case 370: /* or_replace_opt ::= OR REPLACE */ yytestcase(yyruleno==370); + case 400: /* ignore_opt ::= IGNORE UNTREATED */ yytestcase(yyruleno==400); +#line 220 "sql.y" +{ yymsp[-1].minor.yy885 = true; } +#line 5852 "sql.c" break; case 97: /* db_options ::= */ -{ yymsp[1].minor.yy392 = createDefaultDatabaseOptions(pCxt); } +#line 223 "sql.y" +{ yymsp[1].minor.yy664 = createDefaultDatabaseOptions(pCxt); } +#line 5857 "sql.c" break; case 98: /* 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; +#line 224 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_BUFFER, &yymsp[0].minor.yy0); } +#line 5862 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 99: /* 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; +#line 225 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_CACHEMODEL, &yymsp[0].minor.yy0); } +#line 5868 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 100: /* 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; +#line 226 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_CACHESIZE, &yymsp[0].minor.yy0); } +#line 5874 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 101: /* 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; +#line 227 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_COMP, &yymsp[0].minor.yy0); } +#line 5880 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 102: /* db_options ::= db_options DURATION NK_INTEGER */ case 103: /* db_options ::= db_options DURATION NK_VARIABLE */ yytestcase(yyruleno==103); -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +#line 228 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } +#line 5887 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 104: /* 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; +#line 230 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } +#line 5893 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 105: /* 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; +#line 231 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } +#line 5899 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 106: /* db_options ::= db_options KEEP integer_list */ case 107: /* db_options ::= db_options KEEP variable_list */ yytestcase(yyruleno==107); -{ yylhsminor.yy392 = setDatabaseOption(pCxt, yymsp[-2].minor.yy392, DB_OPTION_KEEP, yymsp[0].minor.yy184); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +#line 232 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_KEEP, yymsp[0].minor.yy1006); } +#line 5906 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 108: /* 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; +#line 234 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_PAGES, &yymsp[0].minor.yy0); } +#line 5912 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 109: /* 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; +#line 235 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_PAGESIZE, &yymsp[0].minor.yy0); } +#line 5918 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 110: /* 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; +#line 236 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_TSDB_PAGESIZE, &yymsp[0].minor.yy0); } +#line 5924 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 111: /* 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; +#line 237 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } +#line 5930 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 112: /* 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; +#line 238 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } +#line 5936 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 113: /* 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; +#line 240 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } +#line 5942 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 114: /* 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; +#line 241 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } +#line 5948 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 115: /* 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; +#line 242 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_RETENTIONS, yymsp[0].minor.yy1006); } +#line 5954 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 116: /* 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; +#line 243 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_SCHEMALESS, &yymsp[0].minor.yy0); } +#line 5960 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 117: /* 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; +#line 244 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL, &yymsp[0].minor.yy0); } +#line 5966 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 118: /* 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; +#line 245 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } +#line 5972 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 119: /* 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; +#line 246 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_RETENTION_PERIOD, &yymsp[0].minor.yy0); } +#line 5978 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 120: /* db_options ::= db_options WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ +#line 247 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.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; +#line 5988 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; case 121: /* 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; +#line 252 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_RETENTION_SIZE, &yymsp[0].minor.yy0); } +#line 5994 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 122: /* db_options ::= db_options WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ +#line 253 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.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; +#line 6004 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; case 123: /* 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; +#line 258 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_ROLL_PERIOD, &yymsp[0].minor.yy0); } +#line 6010 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 124: /* 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; +#line 259 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_WAL_SEGMENT_SIZE, &yymsp[0].minor.yy0); } +#line 6016 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 125: /* 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; +#line 260 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_STT_TRIGGER, &yymsp[0].minor.yy0); } +#line 6022 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 126: /* 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; +#line 261 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_TABLE_PREFIX, yymsp[0].minor.yy664); } +#line 6028 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 127: /* 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; +#line 262 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_TABLE_SUFFIX, yymsp[0].minor.yy664); } +#line 6034 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 128: /* 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; +#line 263 "sql.y" +{ yylhsminor.yy664 = setDatabaseOption(pCxt, yymsp[-2].minor.yy664, DB_OPTION_KEEP_TIME_OFFSET, &yymsp[0].minor.yy0); } +#line 6040 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 129: /* 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; +#line 265 "sql.y" +{ yylhsminor.yy664 = createAlterDatabaseOptions(pCxt); yylhsminor.yy664 = setAlterDatabaseOption(pCxt, yylhsminor.yy664, &yymsp[0].minor.yy549); } +#line 6046 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; case 130: /* 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; +#line 266 "sql.y" +{ yylhsminor.yy664 = setAlterDatabaseOption(pCxt, yymsp[-1].minor.yy664, &yymsp[0].minor.yy549); } +#line 6052 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; case 131: /* alter_db_option ::= BUFFER NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +#line 270 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_BUFFER; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6058 "sql.c" break; case 132: /* alter_db_option ::= CACHEMODEL NK_STRING */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +#line 271 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_CACHEMODEL; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6063 "sql.c" break; case 133: /* alter_db_option ::= CACHESIZE NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +#line 272 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_CACHESIZE; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6068 "sql.c" break; case 134: /* 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; } +#line 273 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6073 "sql.c" break; case 135: /* alter_db_option ::= KEEP integer_list */ case 136: /* alter_db_option ::= KEEP variable_list */ yytestcase(yyruleno==136); -{ yymsp[-1].minor.yy845.type = DB_OPTION_KEEP; yymsp[-1].minor.yy845.pList = yymsp[0].minor.yy184; } +#line 274 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_KEEP; yymsp[-1].minor.yy549.pList = yymsp[0].minor.yy1006; } +#line 6079 "sql.c" break; case 137: /* alter_db_option ::= PAGES NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_PAGES; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +#line 276 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_PAGES; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6084 "sql.c" break; case 138: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +#line 277 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6089 "sql.c" break; case 139: /* alter_db_option ::= WAL_LEVEL NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_WAL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +#line 279 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_WAL; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6094 "sql.c" break; case 140: /* 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; } +#line 280 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_STT_TRIGGER; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6099 "sql.c" break; case 141: /* alter_db_option ::= MINROWS NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } +#line 281 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_MINROWS; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6104 "sql.c" break; case 142: /* 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; } +#line 282 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_WAL_RETENTION_PERIOD; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6109 "sql.c" break; case 143: /* alter_db_option ::= WAL_RETENTION_PERIOD NK_MINUS NK_INTEGER */ +#line 283 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.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; } +#line 6118 "sql.c" break; case 144: /* 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; } +#line 288 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_WAL_RETENTION_SIZE; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6123 "sql.c" break; case 145: /* alter_db_option ::= WAL_RETENTION_SIZE NK_MINUS NK_INTEGER */ +#line 289 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yymsp[-2].minor.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; } +#line 6132 "sql.c" break; case 146: /* 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; } +#line 294 "sql.y" +{ yymsp[-1].minor.yy549.type = DB_OPTION_KEEP_TIME_OFFSET; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6137 "sql.c" break; case 147: /* integer_list ::= NK_INTEGER */ -{ yylhsminor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy184 = yylhsminor.yy184; +#line 298 "sql.y" +{ yylhsminor.yy1006 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 6142 "sql.c" + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; case 148: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ - case 409: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==409); -{ 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 413: /* dnode_list ::= dnode_list DNODE NK_INTEGER */ yytestcase(yyruleno==413); +#line 299 "sql.y" +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 6149 "sql.c" + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; case 149: /* variable_list ::= NK_VARIABLE */ -{ yylhsminor.yy184 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy184 = yylhsminor.yy184; +#line 303 "sql.y" +{ yylhsminor.yy1006 = createNodeList(pCxt, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 6155 "sql.c" + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; case 150: /* 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; +#line 304 "sql.y" +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 6161 "sql.c" + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; case 151: /* retention_list ::= retention */ case 182: /* multi_create_clause ::= create_subtable_clause */ yytestcase(yyruleno==182); case 185: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==185); case 192: /* column_def_list ::= column_def */ yytestcase(yyruleno==192); - case 237: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==237); - case 242: /* col_name_list ::= col_name */ yytestcase(yyruleno==242); - case 310: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==310); - case 327: /* func_list ::= func */ yytestcase(yyruleno==327); - case 377: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==377); - case 453: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==453); - case 478: /* literal_list ::= signed_literal */ yytestcase(yyruleno==478); - case 550: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==550); - case 556: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==556); - case 615: /* select_list ::= select_item */ yytestcase(yyruleno==615); - case 626: /* partition_list ::= partition_item */ yytestcase(yyruleno==626); - case 687: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==687); -{ yylhsminor.yy184 = createNodeList(pCxt, yymsp[0].minor.yy392); } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 241: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==241); + case 246: /* col_name_list ::= col_name */ yytestcase(yyruleno==246); + case 314: /* tag_list_opt ::= tag_item */ yytestcase(yyruleno==314); + case 331: /* func_list ::= func */ yytestcase(yyruleno==331); + case 381: /* column_stream_def_list ::= column_stream_def */ yytestcase(yyruleno==381); + case 457: /* tags_literal_list ::= tags_literal */ yytestcase(yyruleno==457); + case 482: /* literal_list ::= signed_literal */ yytestcase(yyruleno==482); + case 555: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==555); + case 561: /* when_then_list ::= when_then_expr */ yytestcase(yyruleno==561); + case 620: /* select_list ::= select_item */ yytestcase(yyruleno==620); + case 631: /* partition_list ::= partition_item */ yytestcase(yyruleno==631); + case 692: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==692); +#line 308 "sql.y" +{ yylhsminor.yy1006 = createNodeList(pCxt, yymsp[0].minor.yy664); } +#line 6182 "sql.c" + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; case 152: /* retention_list ::= retention_list NK_COMMA retention */ case 186: /* multi_drop_clause ::= multi_drop_clause NK_COMMA drop_table_clause */ yytestcase(yyruleno==186); case 193: /* column_def_list ::= column_def_list NK_COMMA column_def */ yytestcase(yyruleno==193); - case 238: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==238); - case 243: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==243); - case 311: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==311); - case 328: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==328); - case 378: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==378); - case 454: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==454); - case 479: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==479); - case 551: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==551); - case 616: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==616); - case 627: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==627); - case 688: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==688); -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, yymsp[0].minor.yy392); } - yymsp[-2].minor.yy184 = yylhsminor.yy184; + case 242: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==242); + case 247: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==247); + case 315: /* tag_list_opt ::= tag_list_opt NK_COMMA tag_item */ yytestcase(yyruleno==315); + case 332: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==332); + case 382: /* column_stream_def_list ::= column_stream_def_list NK_COMMA column_stream_def */ yytestcase(yyruleno==382); + case 458: /* tags_literal_list ::= tags_literal_list NK_COMMA tags_literal */ yytestcase(yyruleno==458); + case 483: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==483); + case 556: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==556); + case 621: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==621); + case 632: /* partition_list ::= partition_list NK_COMMA partition_item */ yytestcase(yyruleno==632); + case 693: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==693); +#line 309 "sql.y" +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, yymsp[0].minor.yy664); } +#line 6201 "sql.c" + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; case 153: /* retention ::= NK_VARIABLE NK_COLON NK_VARIABLE */ case 154: /* retention ::= NK_MINUS NK_COLON NK_VARIABLE */ yytestcase(yyruleno==154); -{ yylhsminor.yy392 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; +#line 311 "sql.y" +{ yylhsminor.yy664 = createNodeListNodeEx(pCxt, createDurationValueNode(pCxt, &yymsp[-2].minor.yy0), createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 6208 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 155: /* speed_opt ::= */ - case 361: /* bufsize_opt ::= */ yytestcase(yyruleno==361); -{ yymsp[1].minor.yy20 = 0; } + case 365: /* bufsize_opt ::= */ yytestcase(yyruleno==365); +#line 316 "sql.y" +{ yymsp[1].minor.yy316 = 0; } +#line 6215 "sql.c" break; case 156: /* speed_opt ::= BWLIMIT NK_INTEGER */ - case 362: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==362); -{ yymsp[-1].minor.yy20 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } + case 366: /* bufsize_opt ::= BUFSIZE NK_INTEGER */ yytestcase(yyruleno==366); +#line 317 "sql.y" +{ yymsp[-1].minor.yy316 = taosStr2Int32(yymsp[0].minor.yy0.z, NULL, 10); } +#line 6221 "sql.c" break; case 158: /* start_opt ::= START WITH NK_INTEGER */ case 162: /* end_opt ::= END WITH NK_INTEGER */ yytestcase(yyruleno==162); -{ yymsp[-2].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +#line 320 "sql.y" +{ yymsp[-2].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } +#line 6227 "sql.c" break; case 159: /* start_opt ::= START WITH NK_STRING */ case 163: /* end_opt ::= END WITH NK_STRING */ yytestcase(yyruleno==163); -{ yymsp[-2].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 321 "sql.y" +{ yymsp[-2].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 6233 "sql.c" break; case 160: /* start_opt ::= START WITH TIMESTAMP NK_STRING */ case 164: /* end_opt ::= END WITH TIMESTAMP NK_STRING */ yytestcase(yyruleno==164); -{ yymsp[-3].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 322 "sql.y" +{ yymsp[-3].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 6239 "sql.c" break; case 165: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ case 167: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==167); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy377, yymsp[-5].minor.yy392, yymsp[-3].minor.yy184, yymsp[-1].minor.yy184, yymsp[0].minor.yy392); } +#line 331 "sql.y" +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy885, yymsp[-5].minor.yy664, yymsp[-3].minor.yy1006, yymsp[-1].minor.yy1006, yymsp[0].minor.yy664); } +#line 6245 "sql.c" break; case 166: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy184); } +#line 332 "sql.y" +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy1006); } +#line 6250 "sql.c" break; case 168: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy184); } +#line 335 "sql.y" +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy1006); } +#line 6255 "sql.c" break; case 169: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } +#line 336 "sql.y" +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); } +#line 6260 "sql.c" break; case 170: /* cmd ::= ALTER TABLE alter_table_clause */ - case 411: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==411); - case 412: /* cmd ::= insert_query */ yytestcase(yyruleno==412); -{ pCxt->pRootNode = yymsp[0].minor.yy392; } + case 415: /* cmd ::= query_or_subquery */ yytestcase(yyruleno==415); + case 416: /* cmd ::= insert_query */ yytestcase(yyruleno==416); +#line 338 "sql.y" +{ pCxt->pRootNode = yymsp[0].minor.yy664; } +#line 6267 "sql.c" break; case 171: /* cmd ::= ALTER STABLE alter_table_clause */ -{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy392); } +#line 339 "sql.y" +{ pCxt->pRootNode = setAlterSuperTableType(yymsp[0].minor.yy664); } +#line 6272 "sql.c" break; case 172: /* 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; +#line 341 "sql.y" +{ yylhsminor.yy664 = createAlterTableModifyOptions(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } +#line 6277 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; case 173: /* 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; +#line 343 "sql.y" +{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); } +#line 6283 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 174: /* 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; +#line 344 "sql.y" +{ yylhsminor.yy664 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy664, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy213); } +#line 6289 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; case 175: /* 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; +#line 346 "sql.y" +{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); } +#line 6295 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 176: /* 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; +#line 348 "sql.y" +{ yylhsminor.yy664 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); } +#line 6301 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 177: /* 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; +#line 350 "sql.y" +{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); } +#line 6307 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 178: /* 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; +#line 351 "sql.y" +{ yylhsminor.yy664 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy664, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy213); } +#line 6313 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; case 179: /* 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; +#line 353 "sql.y" +{ yylhsminor.yy664 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892); } +#line 6319 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 180: /* 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; +#line 355 "sql.y" +{ yylhsminor.yy664 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy664, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); } +#line 6325 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; case 181: /* 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; +#line 357 "sql.y" +{ yylhsminor.yy664 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy664, &yymsp[-2].minor.yy213, yymsp[0].minor.yy664); } +#line 6331 "sql.c" + yymsp[-5].minor.yy664 = yylhsminor.yy664; break; case 183: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 557: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==557); -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-1].minor.yy184, yymsp[0].minor.yy392); } - yymsp[-1].minor.yy184 = yylhsminor.yy184; + case 562: /* when_then_list ::= when_then_list when_then_expr */ yytestcase(yyruleno==562); +#line 362 "sql.y" +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-1].minor.yy1006, yymsp[0].minor.yy664); } +#line 6338 "sql.c" + yymsp[-1].minor.yy1006 = yylhsminor.yy1006; break; case 184: /* 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; +#line 366 "sql.y" +{ 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); } +#line 6344 "sql.c" + yymsp[-9].minor.yy664 = yylhsminor.yy664; break; case 187: /* 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; +#line 373 "sql.y" +{ yylhsminor.yy664 = createDropTableClause(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); } +#line 6350 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; case 189: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ - case 376: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==376); -{ yymsp[-2].minor.yy184 = yymsp[-1].minor.yy184; } + case 380: /* col_list_opt ::= NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==380); +#line 378 "sql.y" +{ yymsp[-2].minor.yy1006 = yymsp[-1].minor.yy1006; } +#line 6357 "sql.c" break; case 190: /* full_table_name ::= table_name */ -{ yylhsminor.yy392 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy369, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; +#line 380 "sql.y" +{ yylhsminor.yy664 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy213, NULL); } +#line 6362 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; case 191: /* 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; +#line 381 "sql.y" +{ yylhsminor.yy664 = createRealTableNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213, NULL); } +#line 6368 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; case 194: /* column_def ::= column_name type_name */ -{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy369, yymsp[0].minor.yy864, NULL, false); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; +#line 388 "sql.y" +{ yylhsminor.yy664 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy213, yymsp[0].minor.yy892, NULL, false); } +#line 6374 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; case 195: /* column_def ::= column_name type_name PRIMARY KEY */ -{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy369, yymsp[-2].minor.yy864, NULL, true); } - yymsp[-3].minor.yy392 = yylhsminor.yy392; +#line 389 "sql.y" +{ yylhsminor.yy664 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy213, yymsp[-2].minor.yy892, NULL, true); } +#line 6380 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; case 196: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BOOL); } +#line 394 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_BOOL); } +#line 6386 "sql.c" break; case 197: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_TINYINT); } +#line 395 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_TINYINT); } +#line 6391 "sql.c" break; case 198: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +#line 396 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_SMALLINT); } +#line 6396 "sql.c" break; case 199: /* type_name ::= INT */ case 200: /* type_name ::= INTEGER */ yytestcase(yyruleno==200); -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_INT); } +#line 397 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_INT); } +#line 6402 "sql.c" break; case 201: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BIGINT); } +#line 399 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_BIGINT); } +#line 6407 "sql.c" break; case 202: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_FLOAT); } +#line 400 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_FLOAT); } +#line 6412 "sql.c" break; case 203: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +#line 401 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_DOUBLE); } +#line 6417 "sql.c" break; case 204: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +#line 402 "sql.y" +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } +#line 6422 "sql.c" break; case 205: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +#line 403 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } +#line 6427 "sql.c" break; case 206: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +#line 404 "sql.y" +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } +#line 6432 "sql.c" break; case 207: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +#line 405 "sql.y" +{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_UTINYINT); } +#line 6437 "sql.c" break; case 208: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +#line 406 "sql.y" +{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_USMALLINT); } +#line 6442 "sql.c" break; case 209: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UINT); } +#line 407 "sql.y" +{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_UINT); } +#line 6447 "sql.c" break; case 210: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy864 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +#line 408 "sql.y" +{ yymsp[-1].minor.yy892 = createDataType(TSDB_DATA_TYPE_UBIGINT); } +#line 6452 "sql.c" break; case 211: /* type_name ::= JSON */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_JSON); } +#line 409 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_JSON); } +#line 6457 "sql.c" break; case 212: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +#line 410 "sql.y" +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } +#line 6462 "sql.c" break; case 213: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +#line 411 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } +#line 6467 "sql.c" break; case 214: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_BLOB); } +#line 412 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_BLOB); } +#line 6472 "sql.c" break; case 215: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +#line 413 "sql.y" +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } +#line 6477 "sql.c" break; case 216: /* type_name ::= GEOMETRY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } +#line 414 "sql.y" +{ yymsp[-3].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_GEOMETRY, &yymsp[-1].minor.yy0); } +#line 6482 "sql.c" break; case 217: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 415 "sql.y" +{ yymsp[0].minor.yy892 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 6487 "sql.c" break; case 218: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 416 "sql.y" +{ yymsp[-3].minor.yy892 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 6492 "sql.c" break; case 219: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy864 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 417 "sql.y" +{ yymsp[-5].minor.yy892 = createDataType(TSDB_DATA_TYPE_DECIMAL); } +#line 6497 "sql.c" break; - case 222: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ - case 383: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==383); -{ yymsp[-3].minor.yy184 = yymsp[-1].minor.yy184; } + case 220: /* type_name_default_len ::= BINARY */ +#line 421 "sql.y" +{ yymsp[0].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, NULL); } +#line 6502 "sql.c" break; - case 223: /* table_options ::= */ -{ yymsp[1].minor.yy392 = createDefaultTableOptions(pCxt); } + case 221: /* type_name_default_len ::= NCHAR */ +#line 422 "sql.y" +{ yymsp[0].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, NULL); } +#line 6507 "sql.c" break; - case 224: /* 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 222: /* type_name_default_len ::= VARCHAR */ +#line 423 "sql.y" +{ yymsp[0].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, NULL); } +#line 6512 "sql.c" break; - case 225: /* 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 223: /* type_name_default_len ::= VARBINARY */ +#line 424 "sql.y" +{ yymsp[0].minor.yy892 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, NULL); } +#line 6517 "sql.c" break; - case 226: /* 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 226: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ + case 387: /* tag_def_or_ref_opt ::= TAGS NK_LP column_stream_def_list NK_RP */ yytestcase(yyruleno==387); +#line 433 "sql.y" +{ yymsp[-3].minor.yy1006 = yymsp[-1].minor.yy1006; } +#line 6523 "sql.c" break; - case 227: /* 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 227: /* table_options ::= */ +#line 435 "sql.y" +{ yymsp[1].minor.yy664 = createDefaultTableOptions(pCxt); } +#line 6528 "sql.c" break; - case 228: /* 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 228: /* table_options ::= table_options COMMENT NK_STRING */ +#line 436 "sql.y" +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } +#line 6533 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 229: /* 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 229: /* table_options ::= table_options MAX_DELAY duration_list */ +#line 437 "sql.y" +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_MAXDELAY, yymsp[0].minor.yy1006); } +#line 6539 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 230: /* 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 230: /* table_options ::= table_options WATERMARK duration_list */ +#line 438 "sql.y" +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_WATERMARK, yymsp[0].minor.yy1006); } +#line 6545 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 231: /* 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 231: /* table_options ::= table_options ROLLUP NK_LP rollup_func_list NK_RP */ +#line 439 "sql.y" +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-4].minor.yy664, TABLE_OPTION_ROLLUP, yymsp[-1].minor.yy1006); } +#line 6551 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; - case 232: /* 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 232: /* table_options ::= table_options TTL NK_INTEGER */ +#line 440 "sql.y" +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } +#line 6557 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 233: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy845.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } + case 233: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +#line 441 "sql.y" +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-4].minor.yy664, TABLE_OPTION_SMA, yymsp[-1].minor.yy1006); } +#line 6563 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; - case 234: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy845.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy845.val = yymsp[0].minor.yy0; } + case 234: /* table_options ::= table_options DELETE_MARK duration_list */ +#line 442 "sql.y" +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-2].minor.yy664, TABLE_OPTION_DELETE_MARK, yymsp[0].minor.yy1006); } +#line 6569 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 235: /* duration_list ::= duration_literal */ - case 510: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==510); -{ yylhsminor.yy184 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 235: /* alter_table_options ::= alter_table_option */ +#line 444 "sql.y" +{ yylhsminor.yy664 = createAlterTableOptions(pCxt); yylhsminor.yy664 = setTableOption(pCxt, yylhsminor.yy664, yymsp[0].minor.yy549.type, &yymsp[0].minor.yy549.val); } +#line 6575 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 236: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 511: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==511); -{ yylhsminor.yy184 = addNodeToList(pCxt, yymsp[-2].minor.yy184, releaseRawExprNode(pCxt, yymsp[0].minor.yy392)); } - yymsp[-2].minor.yy184 = yylhsminor.yy184; + case 236: /* alter_table_options ::= alter_table_options alter_table_option */ +#line 445 "sql.y" +{ yylhsminor.yy664 = setTableOption(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy549.type, &yymsp[0].minor.yy549.val); } +#line 6581 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 239: /* rollup_func_name ::= function_name */ -{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy369, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 237: /* alter_table_option ::= COMMENT NK_STRING */ +#line 449 "sql.y" +{ yymsp[-1].minor.yy549.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6587 "sql.c" break; - case 240: /* rollup_func_name ::= FIRST */ - case 241: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==241); - case 313: /* tag_item ::= QTAGS */ yytestcase(yyruleno==313); -{ yylhsminor.yy392 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 238: /* alter_table_option ::= TTL NK_INTEGER */ +#line 450 "sql.y" +{ yymsp[-1].minor.yy549.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy549.val = yymsp[0].minor.yy0; } +#line 6592 "sql.c" break; - case 244: /* col_name ::= column_name */ - case 314: /* tag_item ::= column_name */ yytestcase(yyruleno==314); -{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy369); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 239: /* duration_list ::= duration_literal */ + case 514: /* expression_list ::= expr_or_subquery */ yytestcase(yyruleno==514); +#line 454 "sql.y" +{ yylhsminor.yy1006 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } +#line 6598 "sql.c" + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; - case 245: /* cmd ::= SHOW DNODES */ + case 240: /* duration_list ::= duration_list NK_COMMA duration_literal */ + case 515: /* expression_list ::= expression_list NK_COMMA expr_or_subquery */ yytestcase(yyruleno==515); +#line 455 "sql.y" +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } +#line 6605 "sql.c" + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; + break; + case 243: /* rollup_func_name ::= function_name */ +#line 462 "sql.y" +{ yylhsminor.yy664 = createFunctionNode(pCxt, &yymsp[0].minor.yy213, NULL); } +#line 6611 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; + break; + case 244: /* rollup_func_name ::= FIRST */ + case 245: /* rollup_func_name ::= LAST */ yytestcase(yyruleno==245); + case 317: /* tag_item ::= QTAGS */ yytestcase(yyruleno==317); +#line 463 "sql.y" +{ yylhsminor.yy664 = createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL); } +#line 6619 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; + break; + case 248: /* col_name ::= column_name */ + case 318: /* tag_item ::= column_name */ yytestcase(yyruleno==318); +#line 471 "sql.y" +{ yylhsminor.yy664 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy213); } +#line 6626 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; + break; + case 249: /* cmd ::= SHOW DNODES */ +#line 474 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT); } +#line 6632 "sql.c" break; - case 246: /* cmd ::= SHOW USERS */ + case 250: /* cmd ::= SHOW USERS */ +#line 475 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT); } +#line 6637 "sql.c" break; - case 247: /* cmd ::= SHOW USER PRIVILEGES */ + case 251: /* cmd ::= SHOW USER PRIVILEGES */ +#line 476 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USER_PRIVILEGES_STMT); } +#line 6642 "sql.c" break; - case 248: /* cmd ::= SHOW db_kind_opt DATABASES */ + case 252: /* cmd ::= SHOW db_kind_opt DATABASES */ +#line 477 "sql.y" { 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); } +#line 6650 "sql.c" break; - case 249: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ + case 253: /* cmd ::= SHOW table_kind_db_name_cond_opt TABLES like_pattern_opt */ +#line 481 "sql.y" { - 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); } +#line 6657 "sql.c" break; - case 250: /* 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 254: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +#line 484 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, OP_TYPE_LIKE); } +#line 6662 "sql.c" break; - case 251: /* 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 255: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +#line 485 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy664, NULL, OP_TYPE_LIKE); } +#line 6667 "sql.c" break; - case 252: /* cmd ::= SHOW MNODES */ + case 256: /* cmd ::= SHOW MNODES */ +#line 486 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT); } +#line 6672 "sql.c" break; - case 253: /* cmd ::= SHOW QNODES */ + case 257: /* cmd ::= SHOW QNODES */ +#line 488 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT); } +#line 6677 "sql.c" break; - case 254: /* cmd ::= SHOW ARBGROUPS */ + case 258: /* cmd ::= SHOW ARBGROUPS */ +#line 489 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_ARBGROUPS_STMT); } +#line 6682 "sql.c" break; - case 255: /* cmd ::= SHOW FUNCTIONS */ + case 259: /* cmd ::= SHOW FUNCTIONS */ +#line 490 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT); } +#line 6687 "sql.c" break; - case 256: /* 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 260: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +#line 491 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[0].minor.yy664, yymsp[-1].minor.yy664, OP_TYPE_EQUAL); } +#line 6692 "sql.c" break; - case 257: /* 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 261: /* cmd ::= SHOW INDEXES FROM db_name NK_DOT table_name */ +#line 492 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy213), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213), OP_TYPE_EQUAL); } +#line 6697 "sql.c" break; - case 258: /* cmd ::= SHOW STREAMS */ + case 262: /* cmd ::= SHOW STREAMS */ +#line 493 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT); } +#line 6702 "sql.c" break; - case 259: /* cmd ::= SHOW ACCOUNTS */ + case 263: /* cmd ::= SHOW ACCOUNTS */ +#line 494 "sql.y" { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_EXPRIE_STATEMENT); } +#line 6707 "sql.c" break; - case 260: /* cmd ::= SHOW APPS */ + case 264: /* cmd ::= SHOW APPS */ +#line 495 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_APPS_STMT); } +#line 6712 "sql.c" break; - case 261: /* cmd ::= SHOW CONNECTIONS */ + case 265: /* cmd ::= SHOW CONNECTIONS */ +#line 496 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONNECTIONS_STMT); } +#line 6717 "sql.c" break; - case 262: /* cmd ::= SHOW LICENCES */ - case 263: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==263); + case 266: /* cmd ::= SHOW LICENCES */ + case 267: /* cmd ::= SHOW GRANTS */ yytestcase(yyruleno==267); +#line 497 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LICENCES_STMT); } +#line 6723 "sql.c" break; - case 264: /* cmd ::= SHOW GRANTS FULL */ + case 268: /* cmd ::= SHOW GRANTS FULL */ +#line 499 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_FULL_STMT); } +#line 6728 "sql.c" break; - case 265: /* cmd ::= SHOW GRANTS LOGS */ + case 269: /* cmd ::= SHOW GRANTS LOGS */ +#line 500 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_GRANTS_LOGS_STMT); } +#line 6733 "sql.c" break; - case 266: /* cmd ::= SHOW CLUSTER MACHINES */ + case 270: /* cmd ::= SHOW CLUSTER MACHINES */ +#line 501 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_MACHINES_STMT); } +#line 6738 "sql.c" break; - case 267: /* cmd ::= SHOW CREATE DATABASE db_name */ -{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy369); } + case 271: /* cmd ::= SHOW CREATE DATABASE db_name */ +#line 502 "sql.y" +{ pCxt->pRootNode = createShowCreateDatabaseStmt(pCxt, &yymsp[0].minor.yy213); } +#line 6743 "sql.c" break; - case 268: /* cmd ::= SHOW CREATE TABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy392); } + case 272: /* cmd ::= SHOW CREATE TABLE full_table_name */ +#line 503 "sql.y" +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_TABLE_STMT, yymsp[0].minor.yy664); } +#line 6748 "sql.c" break; - case 269: /* cmd ::= SHOW CREATE STABLE full_table_name */ -{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy392); } + case 273: /* cmd ::= SHOW CREATE STABLE full_table_name */ +#line 504 "sql.y" +{ pCxt->pRootNode = createShowCreateTableStmt(pCxt, QUERY_NODE_SHOW_CREATE_STABLE_STMT, yymsp[0].minor.yy664); } +#line 6753 "sql.c" break; - case 270: /* cmd ::= SHOW QUERIES */ + case 274: /* cmd ::= SHOW QUERIES */ +#line 505 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QUERIES_STMT); } +#line 6758 "sql.c" break; - case 271: /* cmd ::= SHOW SCORES */ + case 275: /* cmd ::= SHOW SCORES */ +#line 506 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SCORES_STMT); } +#line 6763 "sql.c" break; - case 272: /* cmd ::= SHOW TOPICS */ + case 276: /* cmd ::= SHOW TOPICS */ +#line 507 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TOPICS_STMT); } +#line 6768 "sql.c" break; - case 273: /* cmd ::= SHOW VARIABLES */ - case 274: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==274); + case 277: /* cmd ::= SHOW VARIABLES */ + case 278: /* cmd ::= SHOW CLUSTER VARIABLES */ yytestcase(yyruleno==278); +#line 508 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VARIABLES_STMT); } +#line 6774 "sql.c" break; - case 275: /* cmd ::= SHOW LOCAL VARIABLES */ + case 279: /* cmd ::= SHOW LOCAL VARIABLES */ +#line 510 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_LOCAL_VARIABLES_STMT); } +#line 6779 "sql.c" break; - case 276: /* 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 280: /* cmd ::= SHOW DNODE NK_INTEGER VARIABLES like_pattern_opt */ +#line 511 "sql.y" +{ pCxt->pRootNode = createShowDnodeVariablesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[-2].minor.yy0), yymsp[0].minor.yy664); } +#line 6784 "sql.c" break; - case 277: /* cmd ::= SHOW BNODES */ + case 281: /* cmd ::= SHOW BNODES */ +#line 512 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_BNODES_STMT); } +#line 6789 "sql.c" break; - case 278: /* cmd ::= SHOW SNODES */ + case 282: /* cmd ::= SHOW SNODES */ +#line 513 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SNODES_STMT); } +#line 6794 "sql.c" break; - case 279: /* cmd ::= SHOW CLUSTER */ + case 283: /* cmd ::= SHOW CLUSTER */ +#line 514 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CLUSTER_STMT); } +#line 6799 "sql.c" break; - case 280: /* cmd ::= SHOW TRANSACTIONS */ + case 284: /* cmd ::= SHOW TRANSACTIONS */ +#line 515 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TRANSACTIONS_STMT); } +#line 6804 "sql.c" break; - case 281: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ -{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy392); } + case 285: /* cmd ::= SHOW TABLE DISTRIBUTED full_table_name */ +#line 516 "sql.y" +{ pCxt->pRootNode = createShowTableDistributedStmt(pCxt, yymsp[0].minor.yy664); } +#line 6809 "sql.c" break; - case 282: /* cmd ::= SHOW CONSUMERS */ + case 286: /* cmd ::= SHOW CONSUMERS */ +#line 517 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_CONSUMERS_STMT); } +#line 6814 "sql.c" break; - case 283: /* cmd ::= SHOW SUBSCRIPTIONS */ + case 287: /* cmd ::= SHOW SUBSCRIPTIONS */ +#line 518 "sql.y" { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT); } +#line 6819 "sql.c" break; - case 284: /* 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 288: /* cmd ::= SHOW TAGS FROM table_name_cond from_db_opt */ +#line 519 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, yymsp[0].minor.yy664, yymsp[-1].minor.yy664, OP_TYPE_EQUAL); } +#line 6824 "sql.c" break; - case 285: /* 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 289: /* cmd ::= SHOW TAGS FROM db_name NK_DOT table_name */ +#line 520 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_TAGS_STMT, createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy213), createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213), OP_TYPE_EQUAL); } +#line 6829 "sql.c" break; - case 286: /* 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 290: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM table_name_cond from_db_opt */ +#line 521 "sql.y" +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy664, yymsp[-3].minor.yy1006); } +#line 6834 "sql.c" break; - case 287: /* 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 291: /* cmd ::= SHOW TABLE TAGS tag_list_opt FROM db_name NK_DOT table_name */ +#line 522 "sql.y" +{ pCxt->pRootNode = createShowTableTagsStmt(pCxt, createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213), createIdentifierValueNode(pCxt, &yymsp[-2].minor.yy213), yymsp[-4].minor.yy1006); } +#line 6839 "sql.c" break; - case 288: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ + case 292: /* cmd ::= SHOW VNODES ON DNODE NK_INTEGER */ +#line 523 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0), NULL); } +#line 6844 "sql.c" break; - case 289: /* cmd ::= SHOW VNODES */ + case 293: /* cmd ::= SHOW VNODES */ +#line 524 "sql.y" { pCxt->pRootNode = createShowVnodesStmt(pCxt, NULL, NULL); } +#line 6849 "sql.c" break; - case 290: /* cmd ::= SHOW db_name_cond_opt ALIVE */ -{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy392, QUERY_NODE_SHOW_DB_ALIVE_STMT); } + case 294: /* cmd ::= SHOW db_name_cond_opt ALIVE */ +#line 526 "sql.y" +{ pCxt->pRootNode = createShowAliveStmt(pCxt, yymsp[-1].minor.yy664, QUERY_NODE_SHOW_DB_ALIVE_STMT); } +#line 6854 "sql.c" break; - case 291: /* cmd ::= SHOW CLUSTER ALIVE */ + case 295: /* cmd ::= SHOW CLUSTER ALIVE */ +#line 527 "sql.y" { pCxt->pRootNode = createShowAliveStmt(pCxt, NULL, QUERY_NODE_SHOW_CLUSTER_ALIVE_STMT); } +#line 6859 "sql.c" break; - case 292: /* 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 296: /* cmd ::= SHOW db_name_cond_opt VIEWS like_pattern_opt */ +#line 528 "sql.y" +{ pCxt->pRootNode = createShowStmtWithCond(pCxt, QUERY_NODE_SHOW_VIEWS_STMT, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, OP_TYPE_LIKE); } +#line 6864 "sql.c" break; - case 293: /* cmd ::= SHOW CREATE VIEW full_table_name */ -{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy392); } + case 297: /* cmd ::= SHOW CREATE VIEW full_table_name */ +#line 529 "sql.y" +{ pCxt->pRootNode = createShowCreateViewStmt(pCxt, QUERY_NODE_SHOW_CREATE_VIEW_STMT, yymsp[0].minor.yy664); } +#line 6869 "sql.c" break; - case 294: /* cmd ::= SHOW COMPACTS */ + case 298: /* cmd ::= SHOW COMPACTS */ +#line 530 "sql.y" { pCxt->pRootNode = createShowCompactsStmt(pCxt, QUERY_NODE_SHOW_COMPACTS_STMT); } +#line 6874 "sql.c" break; - case 295: /* cmd ::= SHOW COMPACT NK_INTEGER */ + case 299: /* cmd ::= SHOW COMPACT NK_INTEGER */ +#line 531 "sql.y" { pCxt->pRootNode = createShowCompactDetailsStmt(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 6879 "sql.c" break; - case 296: /* table_kind_db_name_cond_opt ::= */ -{ yymsp[1].minor.yy397.kind = SHOW_KIND_ALL; yymsp[1].minor.yy397.dbName = nil_token; } + case 300: /* table_kind_db_name_cond_opt ::= */ +#line 535 "sql.y" +{ yymsp[1].minor.yy943.kind = SHOW_KIND_ALL; yymsp[1].minor.yy943.dbName = nil_token; } +#line 6884 "sql.c" break; - case 297: /* 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 301: /* table_kind_db_name_cond_opt ::= table_kind */ +#line 536 "sql.y" +{ yylhsminor.yy943.kind = yymsp[0].minor.yy217; yylhsminor.yy943.dbName = nil_token; } +#line 6889 "sql.c" + yymsp[0].minor.yy943 = yylhsminor.yy943; break; - case 298: /* 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 302: /* table_kind_db_name_cond_opt ::= db_name NK_DOT */ +#line 537 "sql.y" +{ yylhsminor.yy943.kind = SHOW_KIND_ALL; yylhsminor.yy943.dbName = yymsp[-1].minor.yy213; } +#line 6895 "sql.c" + yymsp[-1].minor.yy943 = yylhsminor.yy943; break; - case 299: /* 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 303: /* table_kind_db_name_cond_opt ::= table_kind db_name NK_DOT */ +#line 538 "sql.y" +{ yylhsminor.yy943.kind = yymsp[-2].minor.yy217; yylhsminor.yy943.dbName = yymsp[-1].minor.yy213; } +#line 6901 "sql.c" + yymsp[-2].minor.yy943 = yylhsminor.yy943; break; - case 300: /* table_kind ::= NORMAL */ -{ yymsp[0].minor.yy849 = SHOW_KIND_TABLES_NORMAL; } + case 304: /* table_kind ::= NORMAL */ +#line 542 "sql.y" +{ yymsp[0].minor.yy217 = SHOW_KIND_TABLES_NORMAL; } +#line 6907 "sql.c" break; - case 301: /* table_kind ::= CHILD */ -{ yymsp[0].minor.yy849 = SHOW_KIND_TABLES_CHILD; } + case 305: /* table_kind ::= CHILD */ +#line 543 "sql.y" +{ yymsp[0].minor.yy217 = SHOW_KIND_TABLES_CHILD; } +#line 6912 "sql.c" break; - case 302: /* db_name_cond_opt ::= */ - case 307: /* from_db_opt ::= */ yytestcase(yyruleno==307); -{ yymsp[1].minor.yy392 = createDefaultDatabaseCondValue(pCxt); } + case 306: /* db_name_cond_opt ::= */ + case 311: /* from_db_opt ::= */ yytestcase(yyruleno==311); +#line 545 "sql.y" +{ yymsp[1].minor.yy664 = createDefaultDatabaseCondValue(pCxt); } +#line 6918 "sql.c" break; - case 303: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy392 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy369); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 307: /* db_name_cond_opt ::= db_name NK_DOT */ +#line 546 "sql.y" +{ yylhsminor.yy664 = createIdentifierValueNode(pCxt, &yymsp[-1].minor.yy213); } +#line 6923 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 305: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 309: /* like_pattern_opt ::= LIKE NK_STRING */ +#line 549 "sql.y" +{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +#line 6929 "sql.c" break; - case 306: /* table_name_cond ::= table_name */ -{ yylhsminor.yy392 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 310: /* table_name_cond ::= table_name */ +#line 551 "sql.y" +{ yylhsminor.yy664 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213); } +#line 6934 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 308: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy392 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy369); } + case 312: /* from_db_opt ::= FROM db_name */ +#line 554 "sql.y" +{ yymsp[-1].minor.yy664 = createIdentifierValueNode(pCxt, &yymsp[0].minor.yy213); } +#line 6940 "sql.c" break; - case 312: /* 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 316: /* tag_item ::= TBNAME */ +#line 562 "sql.y" +{ yylhsminor.yy664 = setProjectionAlias(pCxt, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL), &yymsp[0].minor.yy0); } +#line 6945 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 315: /* 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 319: /* tag_item ::= column_name column_alias */ +#line 565 "sql.y" +{ yylhsminor.yy664 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy213), &yymsp[0].minor.yy213); } +#line 6951 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 316: /* 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 320: /* tag_item ::= column_name AS column_alias */ +#line 566 "sql.y" +{ yylhsminor.yy664 = setProjectionAlias(pCxt, createColumnNode(pCxt, NULL, &yymsp[-2].minor.yy213), &yymsp[0].minor.yy213); } +#line 6957 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 317: /* db_kind_opt ::= */ -{ yymsp[1].minor.yy849 = SHOW_KIND_ALL; } + case 321: /* db_kind_opt ::= */ +#line 570 "sql.y" +{ yymsp[1].minor.yy217 = SHOW_KIND_ALL; } +#line 6963 "sql.c" break; - case 318: /* db_kind_opt ::= USER */ -{ yymsp[0].minor.yy849 = SHOW_KIND_DATABASES_USER; } + case 322: /* db_kind_opt ::= USER */ +#line 571 "sql.y" +{ yymsp[0].minor.yy217 = SHOW_KIND_DATABASES_USER; } +#line 6968 "sql.c" break; - case 319: /* db_kind_opt ::= SYSTEM */ -{ yymsp[0].minor.yy849 = SHOW_KIND_DATABASES_SYSTEM; } + case 323: /* db_kind_opt ::= SYSTEM */ +#line 572 "sql.y" +{ yymsp[0].minor.yy217 = SHOW_KIND_DATABASES_SYSTEM; } +#line 6973 "sql.c" break; - case 320: /* 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 324: /* cmd ::= CREATE SMA INDEX not_exists_opt col_name ON full_table_name index_options */ +#line 576 "sql.y" +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy885, yymsp[-3].minor.yy664, yymsp[-1].minor.yy664, NULL, yymsp[0].minor.yy664); } +#line 6978 "sql.c" break; - case 321: /* 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 325: /* cmd ::= CREATE INDEX not_exists_opt col_name ON full_table_name NK_LP col_name_list NK_RP */ +#line 578 "sql.y" +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_NORMAL, yymsp[-6].minor.yy885, yymsp[-5].minor.yy664, yymsp[-3].minor.yy664, yymsp[-1].minor.yy1006, NULL); } +#line 6983 "sql.c" break; - case 322: /* cmd ::= DROP INDEX exists_opt full_index_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } + case 326: /* cmd ::= DROP INDEX exists_opt full_index_name */ +#line 579 "sql.y" +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); } +#line 6988 "sql.c" break; - case 323: /* full_index_name ::= index_name */ -{ yylhsminor.yy392 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy369); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 327: /* full_index_name ::= index_name */ +#line 581 "sql.y" +{ yylhsminor.yy664 = createRealTableNodeForIndexName(pCxt, NULL, &yymsp[0].minor.yy213); } +#line 6993 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 324: /* 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 328: /* full_index_name ::= db_name NK_DOT index_name */ +#line 582 "sql.y" +{ yylhsminor.yy664 = createRealTableNodeForIndexName(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213); } +#line 6999 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 325: /* 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 329: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt sma_stream_opt */ +#line 585 "sql.y" +{ 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); } +#line 7005 "sql.c" break; - case 326: /* 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 330: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt sma_stream_opt */ +#line 588 "sql.y" +{ 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); } +#line 7010 "sql.c" break; - case 329: /* 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 333: /* func ::= sma_func_name NK_LP expression_list NK_RP */ +#line 595 "sql.y" +{ yylhsminor.yy664 = createFunctionNode(pCxt, &yymsp[-3].minor.yy213, yymsp[-1].minor.yy1006); } +#line 7015 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 330: /* sma_func_name ::= function_name */ - case 600: /* alias_opt ::= table_alias */ yytestcase(yyruleno==600); -{ yylhsminor.yy369 = yymsp[0].minor.yy369; } - yymsp[0].minor.yy369 = yylhsminor.yy369; + case 334: /* sma_func_name ::= function_name */ + case 605: /* alias_opt ::= table_alias */ yytestcase(yyruleno==605); +#line 599 "sql.y" +{ yylhsminor.yy213 = yymsp[0].minor.yy213; } +#line 7022 "sql.c" + yymsp[0].minor.yy213 = yylhsminor.yy213; break; - case 335: /* sma_stream_opt ::= */ - case 384: /* stream_options ::= */ yytestcase(yyruleno==384); -{ yymsp[1].minor.yy392 = createStreamOptions(pCxt); } + case 339: /* sma_stream_opt ::= */ + case 388: /* stream_options ::= */ yytestcase(yyruleno==388); +#line 605 "sql.y" +{ yymsp[1].minor.yy664 = createStreamOptions(pCxt); } +#line 7029 "sql.c" break; - case 336: /* 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 340: /* sma_stream_opt ::= sma_stream_opt WATERMARK duration_literal */ +#line 606 "sql.y" +{ ((SStreamOptions*)yymsp[-2].minor.yy664)->pWatermark = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); yylhsminor.yy664 = yymsp[-2].minor.yy664; } +#line 7034 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 337: /* 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 341: /* sma_stream_opt ::= sma_stream_opt MAX_DELAY duration_literal */ +#line 607 "sql.y" +{ ((SStreamOptions*)yymsp[-2].minor.yy664)->pDelay = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); yylhsminor.yy664 = yymsp[-2].minor.yy664; } +#line 7040 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 338: /* 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 342: /* sma_stream_opt ::= sma_stream_opt DELETE_MARK duration_literal */ +#line 608 "sql.y" +{ ((SStreamOptions*)yymsp[-2].minor.yy664)->pDeleteMark = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); yylhsminor.yy664 = yymsp[-2].minor.yy664; } +#line 7046 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 339: /* with_meta ::= AS */ -{ yymsp[0].minor.yy20 = 0; } + case 343: /* with_meta ::= AS */ +#line 613 "sql.y" +{ yymsp[0].minor.yy316 = 0; } +#line 7052 "sql.c" break; - case 340: /* with_meta ::= WITH META AS */ -{ yymsp[-2].minor.yy20 = 1; } + case 344: /* with_meta ::= WITH META AS */ +#line 614 "sql.y" +{ yymsp[-2].minor.yy316 = 1; } +#line 7057 "sql.c" break; - case 341: /* with_meta ::= ONLY META AS */ -{ yymsp[-2].minor.yy20 = 2; } + case 345: /* with_meta ::= ONLY META AS */ +#line 615 "sql.y" +{ yymsp[-2].minor.yy316 = 2; } +#line 7062 "sql.c" break; - case 342: /* 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 346: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_or_subquery */ +#line 617 "sql.y" +{ pCxt->pRootNode = createCreateTopicStmtUseQuery(pCxt, yymsp[-3].minor.yy885, &yymsp[-2].minor.yy213, yymsp[0].minor.yy664); } +#line 7067 "sql.c" break; - case 343: /* 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 347: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta DATABASE db_name */ +#line 619 "sql.y" +{ pCxt->pRootNode = createCreateTopicStmtUseDb(pCxt, yymsp[-4].minor.yy885, &yymsp[-3].minor.yy213, &yymsp[0].minor.yy213, yymsp[-2].minor.yy316); } +#line 7072 "sql.c" break; - case 344: /* 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 348: /* cmd ::= CREATE TOPIC not_exists_opt topic_name with_meta STABLE full_table_name where_clause_opt */ +#line 621 "sql.y" +{ pCxt->pRootNode = createCreateTopicStmtUseTable(pCxt, yymsp[-5].minor.yy885, &yymsp[-4].minor.yy213, yymsp[-1].minor.yy664, yymsp[-3].minor.yy316, yymsp[0].minor.yy664); } +#line 7077 "sql.c" break; - case 345: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } + case 349: /* cmd ::= DROP TOPIC exists_opt topic_name */ +#line 623 "sql.y" +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } +#line 7082 "sql.c" break; - case 346: /* 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 350: /* cmd ::= DROP CONSUMER GROUP exists_opt cgroup_name ON topic_name */ +#line 624 "sql.y" +{ pCxt->pRootNode = createDropCGroupStmt(pCxt, yymsp[-3].minor.yy885, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213); } +#line 7087 "sql.c" break; - case 347: /* cmd ::= DESC full_table_name */ - case 348: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==348); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy392); } + case 351: /* cmd ::= DESC full_table_name */ + case 352: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==352); +#line 627 "sql.y" +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy664); } +#line 7093 "sql.c" break; - case 349: /* cmd ::= RESET QUERY CACHE */ + case 353: /* cmd ::= RESET QUERY CACHE */ +#line 631 "sql.y" { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } +#line 7098 "sql.c" break; - case 350: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ - case 351: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==351); -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy377, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 354: /* cmd ::= EXPLAIN analyze_opt explain_options query_or_subquery */ + case 355: /* cmd ::= EXPLAIN analyze_opt explain_options insert_query */ yytestcase(yyruleno==355); +#line 634 "sql.y" +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy885, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } +#line 7104 "sql.c" break; - case 354: /* explain_options ::= */ -{ yymsp[1].minor.yy392 = createDefaultExplainOptions(pCxt); } + case 358: /* explain_options ::= */ +#line 642 "sql.y" +{ yymsp[1].minor.yy664 = createDefaultExplainOptions(pCxt); } +#line 7109 "sql.c" break; - case 355: /* 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 359: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +#line 643 "sql.y" +{ yylhsminor.yy664 = setExplainVerbose(pCxt, yymsp[-2].minor.yy664, &yymsp[0].minor.yy0); } +#line 7114 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 356: /* 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 360: /* explain_options ::= explain_options RATIO NK_FLOAT */ +#line 644 "sql.y" +{ yylhsminor.yy664 = setExplainRatio(pCxt, yymsp[-2].minor.yy664, &yymsp[0].minor.yy0); } +#line 7120 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 357: /* 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 361: /* cmd ::= CREATE or_replace_opt agg_func_opt FUNCTION not_exists_opt function_name AS NK_STRING OUTPUTTYPE type_name bufsize_opt language_opt */ +#line 649 "sql.y" +{ 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); } +#line 7126 "sql.c" break; - case 358: /* cmd ::= DROP FUNCTION exists_opt function_name */ -{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } + case 362: /* cmd ::= DROP FUNCTION exists_opt function_name */ +#line 650 "sql.y" +{ pCxt->pRootNode = createDropFunctionStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } +#line 7131 "sql.c" break; - case 363: /* language_opt ::= */ - case 406: /* on_vgroup_id ::= */ yytestcase(yyruleno==406); -{ yymsp[1].minor.yy369 = nil_token; } + case 367: /* language_opt ::= */ + case 410: /* on_vgroup_id ::= */ yytestcase(yyruleno==410); +#line 664 "sql.y" +{ yymsp[1].minor.yy213 = nil_token; } +#line 7137 "sql.c" break; - case 364: /* language_opt ::= LANGUAGE NK_STRING */ - case 407: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==407); -{ yymsp[-1].minor.yy369 = yymsp[0].minor.yy0; } + case 368: /* language_opt ::= LANGUAGE NK_STRING */ + case 411: /* on_vgroup_id ::= ON NK_INTEGER */ yytestcase(yyruleno==411); +#line 665 "sql.y" +{ yymsp[-1].minor.yy213 = yymsp[0].minor.yy0; } +#line 7143 "sql.c" break; - case 367: /* 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 371: /* cmd ::= CREATE or_replace_opt VIEW full_view_name AS query_or_subquery */ +#line 674 "sql.y" +{ pCxt->pRootNode = createCreateViewStmt(pCxt, yymsp[-4].minor.yy885, yymsp[-2].minor.yy664, &yymsp[-1].minor.yy0, yymsp[0].minor.yy664); } +#line 7148 "sql.c" break; - case 368: /* cmd ::= DROP VIEW exists_opt full_view_name */ -{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy377, yymsp[0].minor.yy392); } + case 372: /* cmd ::= DROP VIEW exists_opt full_view_name */ +#line 675 "sql.y" +{ pCxt->pRootNode = createDropViewStmt(pCxt, yymsp[-1].minor.yy885, yymsp[0].minor.yy664); } +#line 7153 "sql.c" break; - case 369: /* full_view_name ::= view_name */ -{ yylhsminor.yy392 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy369); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 373: /* full_view_name ::= view_name */ +#line 677 "sql.y" +{ yylhsminor.yy664 = createViewNode(pCxt, NULL, &yymsp[0].minor.yy213); } +#line 7158 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 370: /* 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 374: /* full_view_name ::= db_name NK_DOT view_name */ +#line 678 "sql.y" +{ yylhsminor.yy664 = createViewNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213); } +#line 7164 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 371: /* 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 375: /* cmd ::= CREATE STREAM not_exists_opt stream_name stream_options INTO full_table_name col_list_opt tag_def_or_ref_opt subtable_opt AS query_or_subquery */ +#line 683 "sql.y" +{ 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); } +#line 7170 "sql.c" break; - case 372: /* cmd ::= DROP STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } + case 376: /* cmd ::= DROP STREAM exists_opt stream_name */ +#line 684 "sql.y" +{ pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } +#line 7175 "sql.c" break; - case 373: /* cmd ::= PAUSE STREAM exists_opt stream_name */ -{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy377, &yymsp[0].minor.yy369); } + case 377: /* cmd ::= PAUSE STREAM exists_opt stream_name */ +#line 685 "sql.y" +{ pCxt->pRootNode = createPauseStreamStmt(pCxt, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } +#line 7180 "sql.c" break; - case 374: /* 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 378: /* cmd ::= RESUME STREAM exists_opt ignore_opt stream_name */ +#line 686 "sql.y" +{ pCxt->pRootNode = createResumeStreamStmt(pCxt, yymsp[-2].minor.yy885, yymsp[-1].minor.yy885, &yymsp[0].minor.yy213); } +#line 7185 "sql.c" break; - case 379: /* column_stream_def ::= column_name */ -{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[0].minor.yy369, createDataType(TSDB_DATA_TYPE_NULL), NULL, false); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 383: /* column_stream_def ::= column_name */ +#line 699 "sql.y" +{ yylhsminor.yy664 = createColumnDefNode(pCxt, &yymsp[0].minor.yy213, createDataType(TSDB_DATA_TYPE_NULL), NULL, false); } +#line 7190 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 380: /* column_stream_def ::= column_name PRIMARY KEY */ -{ yylhsminor.yy392 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy369, createDataType(TSDB_DATA_TYPE_NULL), NULL, true); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 384: /* column_stream_def ::= column_name PRIMARY KEY */ +#line 700 "sql.y" +{ yylhsminor.yy664 = createColumnDefNode(pCxt, &yymsp[-2].minor.yy213, createDataType(TSDB_DATA_TYPE_NULL), NULL, true); } +#line 7196 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 385: /* stream_options ::= stream_options TRIGGER AT_ONCE */ - case 386: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==386); -{ yylhsminor.yy392 = setStreamOptions(pCxt, yymsp[-2].minor.yy392, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 389: /* stream_options ::= stream_options TRIGGER AT_ONCE */ + case 390: /* stream_options ::= stream_options TRIGGER WINDOW_CLOSE */ yytestcase(yyruleno==390); +#line 710 "sql.y" +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_TRIGGER_TYPE_SET, &yymsp[0].minor.yy0, NULL); } +#line 7203 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 387: /* 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 391: /* stream_options ::= stream_options TRIGGER MAX_DELAY duration_literal */ +#line 712 "sql.y" +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-3].minor.yy664, SOPT_TRIGGER_TYPE_SET, &yymsp[-1].minor.yy0, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } +#line 7209 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 388: /* 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 392: /* stream_options ::= stream_options WATERMARK duration_literal */ +#line 713 "sql.y" +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_WATERMARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } +#line 7215 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 389: /* 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 393: /* stream_options ::= stream_options IGNORE EXPIRED NK_INTEGER */ +#line 714 "sql.y" +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-3].minor.yy664, SOPT_IGNORE_EXPIRED_SET, &yymsp[0].minor.yy0, NULL); } +#line 7221 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 390: /* 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 394: /* stream_options ::= stream_options FILL_HISTORY NK_INTEGER */ +#line 715 "sql.y" +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_FILL_HISTORY_SET, &yymsp[0].minor.yy0, NULL); } +#line 7227 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 391: /* 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 395: /* stream_options ::= stream_options DELETE_MARK duration_literal */ +#line 716 "sql.y" +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-2].minor.yy664, SOPT_DELETE_MARK_SET, NULL, releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } +#line 7233 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 392: /* 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 396: /* stream_options ::= stream_options IGNORE UPDATE NK_INTEGER */ +#line 717 "sql.y" +{ yylhsminor.yy664 = setStreamOptions(pCxt, yymsp[-3].minor.yy664, SOPT_IGNORE_UPDATE_SET, &yymsp[0].minor.yy0, NULL); } +#line 7239 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 394: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ - case 640: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==640); - case 664: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==664); -{ yymsp[-3].minor.yy392 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy392); } + case 398: /* subtable_opt ::= SUBTABLE NK_LP expression NK_RP */ + case 645: /* sliding_opt ::= SLIDING NK_LP interval_sliding_duration_literal NK_RP */ yytestcase(yyruleno==645); + case 669: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==669); +#line 720 "sql.y" +{ yymsp[-3].minor.yy664 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy664); } +#line 7247 "sql.c" break; - case 397: /* cmd ::= KILL CONNECTION NK_INTEGER */ + case 401: /* cmd ::= KILL CONNECTION NK_INTEGER */ +#line 728 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_CONNECTION_STMT, &yymsp[0].minor.yy0); } +#line 7252 "sql.c" break; - case 398: /* cmd ::= KILL QUERY NK_STRING */ + case 402: /* cmd ::= KILL QUERY NK_STRING */ +#line 729 "sql.y" { pCxt->pRootNode = createKillQueryStmt(pCxt, &yymsp[0].minor.yy0); } +#line 7257 "sql.c" break; - case 399: /* cmd ::= KILL TRANSACTION NK_INTEGER */ + case 403: /* cmd ::= KILL TRANSACTION NK_INTEGER */ +#line 730 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_TRANSACTION_STMT, &yymsp[0].minor.yy0); } +#line 7262 "sql.c" break; - case 400: /* cmd ::= KILL COMPACT NK_INTEGER */ + case 404: /* cmd ::= KILL COMPACT NK_INTEGER */ +#line 731 "sql.y" { pCxt->pRootNode = createKillStmt(pCxt, QUERY_NODE_KILL_COMPACT_STMT, &yymsp[0].minor.yy0); } +#line 7267 "sql.c" break; - case 401: /* cmd ::= BALANCE VGROUP */ + case 405: /* cmd ::= BALANCE VGROUP */ +#line 734 "sql.y" { pCxt->pRootNode = createBalanceVgroupStmt(pCxt); } +#line 7272 "sql.c" break; - case 402: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ -{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy369); } + case 406: /* cmd ::= BALANCE VGROUP LEADER on_vgroup_id */ +#line 735 "sql.y" +{ pCxt->pRootNode = createBalanceVgroupLeaderStmt(pCxt, &yymsp[0].minor.yy213); } +#line 7277 "sql.c" break; - case 403: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ + case 407: /* cmd ::= MERGE VGROUP NK_INTEGER NK_INTEGER */ +#line 736 "sql.y" { pCxt->pRootNode = createMergeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0); } +#line 7282 "sql.c" break; - case 404: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ -{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy184); } + case 408: /* cmd ::= REDISTRIBUTE VGROUP NK_INTEGER dnode_list */ +#line 737 "sql.y" +{ pCxt->pRootNode = createRedistributeVgroupStmt(pCxt, &yymsp[-1].minor.yy0, yymsp[0].minor.yy1006); } +#line 7287 "sql.c" break; - case 405: /* cmd ::= SPLIT VGROUP NK_INTEGER */ + case 409: /* cmd ::= SPLIT VGROUP NK_INTEGER */ +#line 738 "sql.y" { pCxt->pRootNode = createSplitVgroupStmt(pCxt, &yymsp[0].minor.yy0); } +#line 7292 "sql.c" break; - case 408: /* dnode_list ::= DNODE NK_INTEGER */ -{ yymsp[-1].minor.yy184 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + case 412: /* dnode_list ::= DNODE NK_INTEGER */ +#line 747 "sql.y" +{ yymsp[-1].minor.yy1006 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } +#line 7297 "sql.c" break; - case 410: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ -{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy392, yymsp[0].minor.yy392); } + case 414: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ +#line 754 "sql.y" +{ pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } +#line 7302 "sql.c" break; - case 413: /* 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 417: /* insert_query ::= INSERT INTO full_table_name NK_LP col_name_list NK_RP query_or_subquery */ +#line 763 "sql.y" +{ yymsp[-6].minor.yy664 = createInsertStmt(pCxt, yymsp[-4].minor.yy664, yymsp[-2].minor.yy1006, yymsp[0].minor.yy664); } +#line 7307 "sql.c" break; - case 414: /* 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 418: /* insert_query ::= INSERT INTO full_table_name query_or_subquery */ +#line 764 "sql.y" +{ yymsp[-3].minor.yy664 = createInsertStmt(pCxt, yymsp[-1].minor.yy664, NULL, yymsp[0].minor.yy664); } +#line 7312 "sql.c" break; - case 415: /* tags_literal ::= NK_INTEGER */ - case 427: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==427); - case 436: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==436); -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 419: /* tags_literal ::= NK_INTEGER */ + case 431: /* tags_literal ::= NK_BIN */ yytestcase(yyruleno==431); + case 440: /* tags_literal ::= NK_HEX */ yytestcase(yyruleno==440); +#line 767 "sql.y" +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0, NULL); } +#line 7319 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 416: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ - case 417: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==417); - case 428: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==428); - case 429: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==429); - case 437: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==437); - case 438: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==438); - case 446: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==446); - case 447: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==447); + case 420: /* tags_literal ::= NK_INTEGER NK_PLUS duration_literal */ + case 421: /* tags_literal ::= NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==421); + case 432: /* tags_literal ::= NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==432); + case 433: /* tags_literal ::= NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==433); + case 441: /* tags_literal ::= NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==441); + case 442: /* tags_literal ::= NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==442); + case 450: /* tags_literal ::= NK_STRING NK_PLUS duration_literal */ yytestcase(yyruleno==450); + case 451: /* tags_literal ::= NK_STRING NK_MINUS duration_literal */ yytestcase(yyruleno==451); +#line 768 "sql.y" { 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; +#line 7337 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 418: /* tags_literal ::= NK_PLUS NK_INTEGER */ - case 421: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==421); - case 430: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==430); - case 433: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==433); - case 439: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==439); - case 442: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==442); + case 422: /* tags_literal ::= NK_PLUS NK_INTEGER */ + case 425: /* tags_literal ::= NK_MINUS NK_INTEGER */ yytestcase(yyruleno==425); + case 434: /* tags_literal ::= NK_PLUS NK_BIN */ yytestcase(yyruleno==434); + case 437: /* tags_literal ::= NK_MINUS NK_BIN */ yytestcase(yyruleno==437); + case 443: /* tags_literal ::= NK_PLUS NK_HEX */ yytestcase(yyruleno==443); + case 446: /* tags_literal ::= NK_MINUS NK_HEX */ yytestcase(yyruleno==446); +#line 780 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.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; +#line 7352 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 419: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ - case 420: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==420); - case 422: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==422); - case 423: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==423); - case 431: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==431); - case 432: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==432); - case 434: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==434); - case 435: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==435); - case 440: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==440); - case 441: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==441); - case 443: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==443); - case 444: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==444); + case 423: /* tags_literal ::= NK_PLUS NK_INTEGER NK_PLUS duration_literal */ + case 424: /* tags_literal ::= NK_PLUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==424); + case 426: /* tags_literal ::= NK_MINUS NK_INTEGER NK_PLUS duration_literal */ yytestcase(yyruleno==426); + case 427: /* tags_literal ::= NK_MINUS NK_INTEGER NK_MINUS duration_literal */ yytestcase(yyruleno==427); + case 435: /* tags_literal ::= NK_PLUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==435); + case 436: /* tags_literal ::= NK_PLUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==436); + case 438: /* tags_literal ::= NK_MINUS NK_BIN NK_PLUS duration_literal */ yytestcase(yyruleno==438); + case 439: /* tags_literal ::= NK_MINUS NK_BIN NK_MINUS duration_literal */ yytestcase(yyruleno==439); + case 444: /* tags_literal ::= NK_PLUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==444); + case 445: /* tags_literal ::= NK_PLUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==445); + case 447: /* tags_literal ::= NK_MINUS NK_HEX NK_PLUS duration_literal */ yytestcase(yyruleno==447); + case 448: /* tags_literal ::= NK_MINUS NK_HEX NK_MINUS duration_literal */ yytestcase(yyruleno==448); +#line 785 "sql.y" { 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; +#line 7374 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 424: /* tags_literal ::= NK_FLOAT */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 428: /* tags_literal ::= NK_FLOAT */ +#line 814 "sql.y" +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0, NULL); } +#line 7380 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 425: /* tags_literal ::= NK_PLUS NK_FLOAT */ - case 426: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==426); + case 429: /* tags_literal ::= NK_PLUS NK_FLOAT */ + case 430: /* tags_literal ::= NK_MINUS NK_FLOAT */ yytestcase(yyruleno==430); +#line 815 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.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; +#line 7391 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 445: /* tags_literal ::= NK_STRING */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 449: /* tags_literal ::= NK_STRING */ +#line 921 "sql.y" +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0, NULL); } +#line 7397 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 448: /* tags_literal ::= NK_BOOL */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 452: /* tags_literal ::= NK_BOOL */ +#line 934 "sql.y" +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0, NULL); } +#line 7403 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 449: /* tags_literal ::= NULL */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 453: /* tags_literal ::= NULL */ +#line 935 "sql.y" +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0, NULL); } +#line 7409 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 450: /* tags_literal ::= literal_func */ -{ yylhsminor.yy392 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy392); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 454: /* tags_literal ::= literal_func */ +#line 937 "sql.y" +{ yylhsminor.yy664 = createRawValueNode(pCxt, TSDB_DATA_TYPE_BINARY, NULL, yymsp[0].minor.yy664); } +#line 7415 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 451: /* tags_literal ::= literal_func NK_PLUS duration_literal */ - case 452: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==452); + case 455: /* tags_literal ::= literal_func NK_PLUS duration_literal */ + case 456: /* tags_literal ::= literal_func NK_MINUS duration_literal */ yytestcase(yyruleno==456); +#line 938 "sql.y" { - 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; +#line 7427 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 455: /* 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 459: /* literal ::= NK_INTEGER */ +#line 957 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0)); } +#line 7433 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 456: /* 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 460: /* literal ::= NK_FLOAT */ +#line 958 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } +#line 7439 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 457: /* 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 461: /* literal ::= NK_STRING */ +#line 959 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } +#line 7445 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 458: /* 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 462: /* literal ::= NK_BOOL */ +#line 960 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } +#line 7451 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 459: /* 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 463: /* literal ::= TIMESTAMP NK_STRING */ +#line 961 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } +#line 7457 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 460: /* literal ::= duration_literal */ - case 470: /* signed_literal ::= signed */ yytestcase(yyruleno==470); - case 493: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==493); - case 494: /* expression ::= literal */ yytestcase(yyruleno==494); - case 496: /* expression ::= column_reference */ yytestcase(yyruleno==496); - case 497: /* expression ::= function_expression */ yytestcase(yyruleno==497); - case 498: /* expression ::= case_when_expression */ yytestcase(yyruleno==498); - case 531: /* function_expression ::= literal_func */ yytestcase(yyruleno==531); - case 581: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==581); - case 585: /* boolean_primary ::= predicate */ yytestcase(yyruleno==585); - case 587: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==587); - case 588: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==588); - case 591: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==591); - case 593: /* table_reference ::= table_primary */ yytestcase(yyruleno==593); - case 594: /* table_reference ::= joined_table */ yytestcase(yyruleno==594); - case 598: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==598); - case 666: /* query_simple ::= query_specification */ yytestcase(yyruleno==666); - case 667: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==667); - case 670: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==670); - case 672: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==672); -{ yylhsminor.yy392 = yymsp[0].minor.yy392; } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 464: /* literal ::= duration_literal */ + case 474: /* signed_literal ::= signed */ yytestcase(yyruleno==474); + case 497: /* expr_or_subquery ::= expression */ yytestcase(yyruleno==497); + case 498: /* expression ::= literal */ yytestcase(yyruleno==498); + case 500: /* expression ::= column_reference */ yytestcase(yyruleno==500); + case 501: /* expression ::= function_expression */ yytestcase(yyruleno==501); + case 502: /* expression ::= case_when_expression */ yytestcase(yyruleno==502); + case 536: /* function_expression ::= literal_func */ yytestcase(yyruleno==536); + case 586: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==586); + case 590: /* boolean_primary ::= predicate */ yytestcase(yyruleno==590); + case 592: /* common_expression ::= expr_or_subquery */ yytestcase(yyruleno==592); + case 593: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==593); + case 596: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==596); + case 598: /* table_reference ::= table_primary */ yytestcase(yyruleno==598); + case 599: /* table_reference ::= joined_table */ yytestcase(yyruleno==599); + case 603: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==603); + case 671: /* query_simple ::= query_specification */ yytestcase(yyruleno==671); + case 672: /* query_simple ::= union_query_expression */ yytestcase(yyruleno==672); + case 675: /* query_simple_or_subquery ::= query_simple */ yytestcase(yyruleno==675); + case 677: /* query_or_subquery ::= query_expression */ yytestcase(yyruleno==677); +#line 962 "sql.y" +{ yylhsminor.yy664 = yymsp[0].minor.yy664; } +#line 7482 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 461: /* 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 465: /* literal ::= NULL */ +#line 963 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } +#line 7488 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 462: /* literal ::= NK_QUESTION */ -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 466: /* literal ::= NK_QUESTION */ +#line 964 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 7494 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 463: /* duration_literal ::= NK_VARIABLE */ - case 641: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==641); - case 642: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==642); - case 643: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==643); -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 467: /* duration_literal ::= NK_VARIABLE */ + case 646: /* interval_sliding_duration_literal ::= NK_VARIABLE */ yytestcase(yyruleno==646); + case 647: /* interval_sliding_duration_literal ::= NK_STRING */ yytestcase(yyruleno==647); + case 648: /* interval_sliding_duration_literal ::= NK_INTEGER */ yytestcase(yyruleno==648); +#line 966 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } +#line 7503 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 464: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 468: /* signed ::= NK_INTEGER */ +#line 968 "sql.y" +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } +#line 7509 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 465: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } + case 469: /* signed ::= NK_PLUS NK_INTEGER */ +#line 969 "sql.y" +{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_UBIGINT, &yymsp[0].minor.yy0); } +#line 7515 "sql.c" break; - case 466: /* signed ::= NK_MINUS NK_INTEGER */ + case 470: /* signed ::= NK_MINUS NK_INTEGER */ +#line 970 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; +#line 7524 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 467: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 471: /* signed ::= NK_FLOAT */ +#line 975 "sql.y" +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +#line 7530 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 468: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 472: /* signed ::= NK_PLUS NK_FLOAT */ +#line 976 "sql.y" +{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } +#line 7536 "sql.c" break; - case 469: /* signed ::= NK_MINUS NK_FLOAT */ + case 473: /* signed ::= NK_MINUS NK_FLOAT */ +#line 977 "sql.y" { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; +#line 7545 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 471: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 475: /* signed_literal ::= NK_STRING */ +#line 984 "sql.y" +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } +#line 7551 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 472: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 476: /* signed_literal ::= NK_BOOL */ +#line 985 "sql.y" +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } +#line 7557 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 473: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 477: /* signed_literal ::= TIMESTAMP NK_STRING */ +#line 986 "sql.y" +{ yymsp[-1].minor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } +#line 7563 "sql.c" break; - case 474: /* signed_literal ::= duration_literal */ - case 476: /* signed_literal ::= literal_func */ yytestcase(yyruleno==476); - case 552: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==552); - case 618: /* select_item ::= common_expression */ yytestcase(yyruleno==618); - case 628: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==628); - case 671: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==671); - case 673: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==673); - case 686: /* search_condition ::= common_expression */ yytestcase(yyruleno==686); -{ yylhsminor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 478: /* signed_literal ::= duration_literal */ + case 480: /* signed_literal ::= literal_func */ yytestcase(yyruleno==480); + case 557: /* star_func_para ::= expr_or_subquery */ yytestcase(yyruleno==557); + case 623: /* select_item ::= common_expression */ yytestcase(yyruleno==623); + case 633: /* partition_item ::= expr_or_subquery */ yytestcase(yyruleno==633); + case 676: /* query_simple_or_subquery ::= subquery */ yytestcase(yyruleno==676); + case 678: /* query_or_subquery ::= subquery */ yytestcase(yyruleno==678); + case 691: /* search_condition ::= common_expression */ yytestcase(yyruleno==691); +#line 987 "sql.y" +{ yylhsminor.yy664 = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); } +#line 7575 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 475: /* signed_literal ::= NULL */ -{ yylhsminor.yy392 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 479: /* signed_literal ::= NULL */ +#line 988 "sql.y" +{ yylhsminor.yy664 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } +#line 7581 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 477: /* signed_literal ::= NK_QUESTION */ -{ yylhsminor.yy392 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 481: /* signed_literal ::= NK_QUESTION */ +#line 990 "sql.y" +{ yylhsminor.yy664 = createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0); } +#line 7587 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 495: /* expression ::= pseudo_column */ -{ yylhsminor.yy392 = yymsp[0].minor.yy392; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy392, true); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 499: /* expression ::= pseudo_column */ +#line 1052 "sql.y" +{ yylhsminor.yy664 = yymsp[0].minor.yy664; setRawExprNodeIsPseudoColumn(pCxt, yylhsminor.yy664, true); } +#line 7593 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 499: /* expression ::= NK_LP expression NK_RP */ - case 586: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==586); - case 685: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==685); -{ 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 503: /* expression ::= NK_LP expression NK_RP */ + case 591: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==591); + case 690: /* subquery ::= NK_LP subquery NK_RP */ yytestcase(yyruleno==690); +#line 1056 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } +#line 7601 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 500: /* expression ::= NK_PLUS expr_or_subquery */ + case 504: /* expression ::= NK_PLUS expr_or_subquery */ +#line 1057 "sql.y" { - 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; +#line 7610 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 501: /* expression ::= NK_MINUS expr_or_subquery */ + case 505: /* expression ::= NK_MINUS expr_or_subquery */ +#line 1061 "sql.y" { - 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; +#line 7619 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 502: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ + case 506: /* expression ::= expr_or_subquery NK_PLUS expr_or_subquery */ +#line 1065 "sql.y" { - 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; +#line 7629 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 503: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ + case 507: /* expression ::= expr_or_subquery NK_MINUS expr_or_subquery */ +#line 1070 "sql.y" { - 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; +#line 7639 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 504: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ + case 508: /* expression ::= expr_or_subquery NK_STAR expr_or_subquery */ +#line 1075 "sql.y" { - 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; +#line 7649 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 505: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ + case 509: /* expression ::= expr_or_subquery NK_SLASH expr_or_subquery */ +#line 1080 "sql.y" { - 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; +#line 7659 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 506: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ + case 510: /* expression ::= expr_or_subquery NK_REM expr_or_subquery */ +#line 1085 "sql.y" { - 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; +#line 7669 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 507: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 511: /* expression ::= column_reference NK_ARROW NK_STRING */ +#line 1090 "sql.y" { - 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; +#line 7678 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 508: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ + case 512: /* expression ::= expr_or_subquery NK_BITAND expr_or_subquery */ +#line 1094 "sql.y" { - 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; +#line 7688 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 509: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ + case 513: /* expression ::= expr_or_subquery NK_BITOR expr_or_subquery */ +#line 1099 "sql.y" { - 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; +#line 7698 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 512: /* 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 516: /* column_reference ::= column_name */ +#line 1110 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy213, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy213)); } +#line 7704 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 513: /* 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 517: /* column_reference ::= table_name NK_DOT column_name */ +#line 1111 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213, createColumnNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy213)); } +#line 7710 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 514: /* 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 518: /* column_reference ::= NK_ALIAS */ +#line 1112 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } +#line 7716 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 515: /* 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 519: /* column_reference ::= table_name NK_DOT NK_ALIAS */ +#line 1113 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0, createColumnNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0)); } +#line 7722 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 516: /* pseudo_column ::= ROWTS */ - case 517: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==517); - case 519: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==519); - case 520: /* pseudo_column ::= QEND */ yytestcase(yyruleno==520); - case 521: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==521); - case 522: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==522); - case 523: /* pseudo_column ::= WEND */ yytestcase(yyruleno==523); - case 524: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==524); - case 525: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==525); - case 526: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==526); - case 527: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==527); - case 533: /* literal_func ::= NOW */ yytestcase(yyruleno==533); - case 534: /* literal_func ::= TODAY */ yytestcase(yyruleno==534); -{ yylhsminor.yy392 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 520: /* pseudo_column ::= ROWTS */ + case 521: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==521); + case 523: /* pseudo_column ::= QSTART */ yytestcase(yyruleno==523); + case 524: /* pseudo_column ::= QEND */ yytestcase(yyruleno==524); + case 525: /* pseudo_column ::= QDURATION */ yytestcase(yyruleno==525); + case 526: /* pseudo_column ::= WSTART */ yytestcase(yyruleno==526); + case 527: /* pseudo_column ::= WEND */ yytestcase(yyruleno==527); + case 528: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==528); + case 529: /* pseudo_column ::= IROWTS */ yytestcase(yyruleno==529); + case 530: /* pseudo_column ::= ISFILLED */ yytestcase(yyruleno==530); + case 531: /* pseudo_column ::= QTAGS */ yytestcase(yyruleno==531); + case 538: /* literal_func ::= NOW */ yytestcase(yyruleno==538); + case 539: /* literal_func ::= TODAY */ yytestcase(yyruleno==539); +#line 1115 "sql.y" +{ yylhsminor.yy664 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } +#line 7740 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 518: /* 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 522: /* pseudo_column ::= table_name NK_DOT TBNAME */ +#line 1117 "sql.y" +{ 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)))); } +#line 7746 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 528: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 529: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==529); -{ 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 532: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 533: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==533); +#line 1128 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy213, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy213, yymsp[-1].minor.yy1006)); } +#line 7753 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 530: /* 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 534: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name NK_RP */ + case 535: /* function_expression ::= CAST NK_LP expr_or_subquery AS type_name_default_len NK_RP */ yytestcase(yyruleno==535); +#line 1131 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), yymsp[-1].minor.yy892)); } +#line 7760 "sql.c" + yymsp[-5].minor.yy664 = yylhsminor.yy664; break; - case 532: /* 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 537: /* literal_func ::= noarg_func NK_LP NK_RP */ +#line 1137 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy213, NULL)); } +#line 7766 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 548: /* star_func_para_list ::= NK_STAR */ -{ yylhsminor.yy184 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 553: /* star_func_para_list ::= NK_STAR */ +#line 1162 "sql.y" +{ yylhsminor.yy1006 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } +#line 7772 "sql.c" + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; - case 553: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 621: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==621); -{ yylhsminor.yy392 = createColumnNode(pCxt, &yymsp[-2].minor.yy369, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 558: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 626: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==626); +#line 1171 "sql.y" +{ yylhsminor.yy664 = createColumnNode(pCxt, &yymsp[-2].minor.yy213, &yymsp[0].minor.yy0); } +#line 7779 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 554: /* 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 559: /* case_when_expression ::= CASE when_then_list case_when_else_opt END */ +#line 1174 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy0, &yymsp[0].minor.yy0, createCaseWhenNode(pCxt, NULL, yymsp[-2].minor.yy1006, yymsp[-1].minor.yy664)); } +#line 7785 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 555: /* 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 560: /* case_when_expression ::= CASE common_expression when_then_list case_when_else_opt END */ +#line 1176 "sql.y" +{ 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)); } +#line 7791 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; - case 558: /* 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 563: /* when_then_expr ::= WHEN common_expression THEN common_expression */ +#line 1183 "sql.y" +{ yymsp[-3].minor.yy664 = createWhenThenNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), releaseRawExprNode(pCxt, yymsp[0].minor.yy664)); } +#line 7797 "sql.c" break; - case 560: /* case_when_else_opt ::= ELSE common_expression */ -{ yymsp[-1].minor.yy392 = releaseRawExprNode(pCxt, yymsp[0].minor.yy392); } + case 565: /* case_when_else_opt ::= ELSE common_expression */ +#line 1186 "sql.y" +{ yymsp[-1].minor.yy664 = releaseRawExprNode(pCxt, yymsp[0].minor.yy664); } +#line 7802 "sql.c" break; - case 561: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ - case 566: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==566); + case 566: /* predicate ::= expr_or_subquery compare_op expr_or_subquery */ + case 571: /* predicate ::= expr_or_subquery in_op in_predicate_value */ yytestcase(yyruleno==571); +#line 1189 "sql.y" { - 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; +#line 7812 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 562: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ + case 567: /* predicate ::= expr_or_subquery BETWEEN expr_or_subquery AND expr_or_subquery */ +#line 1196 "sql.y" { - 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; +#line 7822 "sql.c" + yymsp[-4].minor.yy664 = yylhsminor.yy664; break; - case 563: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ + case 568: /* predicate ::= expr_or_subquery NOT BETWEEN expr_or_subquery AND expr_or_subquery */ +#line 1202 "sql.y" { - 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; +#line 7832 "sql.c" + yymsp[-5].minor.yy664 = yylhsminor.yy664; break; - case 564: /* predicate ::= expr_or_subquery IS NULL */ + case 569: /* predicate ::= expr_or_subquery IS NULL */ +#line 1207 "sql.y" { - 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; +#line 7841 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 565: /* predicate ::= expr_or_subquery IS NOT NULL */ + case 570: /* predicate ::= expr_or_subquery IS NOT NULL */ +#line 1211 "sql.y" { - 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; +#line 7850 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 567: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy220 = OP_TYPE_LOWER_THAN; } + case 572: /* compare_op ::= NK_LT */ +#line 1223 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_LOWER_THAN; } +#line 7856 "sql.c" break; - case 568: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy220 = OP_TYPE_GREATER_THAN; } + case 573: /* compare_op ::= NK_GT */ +#line 1224 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_GREATER_THAN; } +#line 7861 "sql.c" break; - case 569: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy220 = OP_TYPE_LOWER_EQUAL; } + case 574: /* compare_op ::= NK_LE */ +#line 1225 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_LOWER_EQUAL; } +#line 7866 "sql.c" break; - case 570: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy220 = OP_TYPE_GREATER_EQUAL; } + case 575: /* compare_op ::= NK_GE */ +#line 1226 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_GREATER_EQUAL; } +#line 7871 "sql.c" break; - case 571: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy220 = OP_TYPE_NOT_EQUAL; } + case 576: /* compare_op ::= NK_NE */ +#line 1227 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_NOT_EQUAL; } +#line 7876 "sql.c" break; - case 572: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy220 = OP_TYPE_EQUAL; } + case 577: /* compare_op ::= NK_EQ */ +#line 1228 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_EQUAL; } +#line 7881 "sql.c" break; - case 573: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy220 = OP_TYPE_LIKE; } + case 578: /* compare_op ::= LIKE */ +#line 1229 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_LIKE; } +#line 7886 "sql.c" break; - case 574: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy220 = OP_TYPE_NOT_LIKE; } + case 579: /* compare_op ::= NOT LIKE */ +#line 1230 "sql.y" +{ yymsp[-1].minor.yy484 = OP_TYPE_NOT_LIKE; } +#line 7891 "sql.c" break; - case 575: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy220 = OP_TYPE_MATCH; } + case 580: /* compare_op ::= MATCH */ +#line 1231 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_MATCH; } +#line 7896 "sql.c" break; - case 576: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy220 = OP_TYPE_NMATCH; } + case 581: /* compare_op ::= NMATCH */ +#line 1232 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_NMATCH; } +#line 7901 "sql.c" break; - case 577: /* compare_op ::= CONTAINS */ -{ yymsp[0].minor.yy220 = OP_TYPE_JSON_CONTAINS; } + case 582: /* compare_op ::= CONTAINS */ +#line 1233 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_JSON_CONTAINS; } +#line 7906 "sql.c" break; - case 578: /* in_op ::= IN */ -{ yymsp[0].minor.yy220 = OP_TYPE_IN; } + case 583: /* in_op ::= IN */ +#line 1237 "sql.y" +{ yymsp[0].minor.yy484 = OP_TYPE_IN; } +#line 7911 "sql.c" break; - case 579: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy220 = OP_TYPE_NOT_IN; } + case 584: /* in_op ::= NOT IN */ +#line 1238 "sql.y" +{ yymsp[-1].minor.yy484 = OP_TYPE_NOT_IN; } +#line 7916 "sql.c" break; - case 580: /* 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 585: /* in_predicate_value ::= NK_LP literal_list NK_RP */ +#line 1240 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy1006)); } +#line 7921 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 582: /* boolean_value_expression ::= NOT boolean_primary */ + case 587: /* boolean_value_expression ::= NOT boolean_primary */ +#line 1244 "sql.y" { - 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; +#line 7930 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 583: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 588: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ +#line 1249 "sql.y" { - 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; +#line 7940 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 584: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 589: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ +#line 1255 "sql.y" { - 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; +#line 7950 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 592: /* 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 597: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +#line 1273 "sql.y" +{ yylhsminor.yy664 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy664, yymsp[0].minor.yy664, NULL); } +#line 7956 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 595: /* 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 600: /* table_primary ::= table_name alias_opt */ +#line 1279 "sql.y" +{ yylhsminor.yy664 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); } +#line 7962 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 596: /* 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 601: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +#line 1280 "sql.y" +{ yylhsminor.yy664 = createRealTableNode(pCxt, &yymsp[-3].minor.yy213, &yymsp[-1].minor.yy213, &yymsp[0].minor.yy213); } +#line 7968 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 597: /* 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 602: /* table_primary ::= subquery alias_opt */ +#line 1281 "sql.y" +{ yylhsminor.yy664 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664), &yymsp[0].minor.yy213); } +#line 7974 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 599: /* alias_opt ::= */ -{ yymsp[1].minor.yy369 = nil_token; } + case 604: /* alias_opt ::= */ +#line 1286 "sql.y" +{ yymsp[1].minor.yy213 = nil_token; } +#line 7980 "sql.c" break; - case 601: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy369 = yymsp[0].minor.yy369; } + case 606: /* alias_opt ::= AS table_alias */ +#line 1288 "sql.y" +{ yymsp[-1].minor.yy213 = yymsp[0].minor.yy213; } +#line 7985 "sql.c" break; - case 602: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 603: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==603); -{ yymsp[-2].minor.yy392 = yymsp[-1].minor.yy392; } + case 607: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 608: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==608); +#line 1290 "sql.y" +{ yymsp[-2].minor.yy664 = yymsp[-1].minor.yy664; } +#line 7991 "sql.c" break; - case 604: /* 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 609: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +#line 1295 "sql.y" +{ yylhsminor.yy664 = createJoinTableNode(pCxt, yymsp[-4].minor.yy310, yymsp[-5].minor.yy664, yymsp[-2].minor.yy664, yymsp[0].minor.yy664); } +#line 7996 "sql.c" + yymsp[-5].minor.yy664 = yylhsminor.yy664; break; - case 605: /* join_type ::= */ -{ yymsp[1].minor.yy932 = JOIN_TYPE_INNER; } + case 610: /* join_type ::= */ +#line 1299 "sql.y" +{ yymsp[1].minor.yy310 = JOIN_TYPE_INNER; } +#line 8002 "sql.c" break; - case 606: /* join_type ::= INNER */ -{ yymsp[0].minor.yy932 = JOIN_TYPE_INNER; } + case 611: /* join_type ::= INNER */ +#line 1300 "sql.y" +{ yymsp[0].minor.yy310 = JOIN_TYPE_INNER; } +#line 8007 "sql.c" break; - case 607: /* 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 612: /* query_specification ::= SELECT hint_list set_quantifier_opt tag_mode_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ +#line 1306 "sql.y" { - 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); } +#line 8023 "sql.c" break; - case 608: /* hint_list ::= */ -{ yymsp[1].minor.yy184 = createHintNodeList(pCxt, NULL); } + case 613: /* hint_list ::= */ +#line 1321 "sql.y" +{ yymsp[1].minor.yy1006 = createHintNodeList(pCxt, NULL); } +#line 8028 "sql.c" break; - case 609: /* hint_list ::= NK_HINT */ -{ yylhsminor.yy184 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy184 = yylhsminor.yy184; + case 614: /* hint_list ::= NK_HINT */ +#line 1322 "sql.y" +{ yylhsminor.yy1006 = createHintNodeList(pCxt, &yymsp[0].minor.yy0); } +#line 8033 "sql.c" + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; - case 614: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy377 = false; } + case 619: /* set_quantifier_opt ::= ALL */ +#line 1333 "sql.y" +{ yymsp[0].minor.yy885 = false; } +#line 8039 "sql.c" break; - case 617: /* select_item ::= NK_STAR */ -{ yylhsminor.yy392 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy392 = yylhsminor.yy392; + case 622: /* select_item ::= NK_STAR */ +#line 1340 "sql.y" +{ yylhsminor.yy664 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } +#line 8044 "sql.c" + yymsp[0].minor.yy664 = yylhsminor.yy664; break; - case 619: /* select_item ::= common_expression column_alias */ - case 629: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==629); -{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392), &yymsp[0].minor.yy369); } - yymsp[-1].minor.yy392 = yylhsminor.yy392; + case 624: /* select_item ::= common_expression column_alias */ + case 634: /* partition_item ::= expr_or_subquery column_alias */ yytestcase(yyruleno==634); +#line 1342 "sql.y" +{ yylhsminor.yy664 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664), &yymsp[0].minor.yy213); } +#line 8051 "sql.c" + yymsp[-1].minor.yy664 = yylhsminor.yy664; break; - case 620: /* select_item ::= common_expression AS column_alias */ - case 630: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==630); -{ yylhsminor.yy392 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy392), &yymsp[0].minor.yy369); } - yymsp[-2].minor.yy392 = yylhsminor.yy392; + case 625: /* select_item ::= common_expression AS column_alias */ + case 635: /* partition_item ::= expr_or_subquery AS column_alias */ yytestcase(yyruleno==635); +#line 1343 "sql.y" +{ yylhsminor.yy664 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), &yymsp[0].minor.yy213); } +#line 8058 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 625: /* partition_by_clause_opt ::= PARTITION BY partition_list */ - case 655: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==655); - case 675: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==675); -{ yymsp[-2].minor.yy184 = yymsp[0].minor.yy184; } + case 630: /* partition_by_clause_opt ::= PARTITION BY partition_list */ + case 660: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==660); + case 680: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==680); +#line 1352 "sql.y" +{ yymsp[-2].minor.yy1006 = yymsp[0].minor.yy1006; } +#line 8066 "sql.c" break; - case 632: /* 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 637: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA interval_sliding_duration_literal NK_RP */ +#line 1365 "sql.y" +{ yymsp[-5].minor.yy664 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } +#line 8071 "sql.c" break; - case 633: /* 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 638: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expr_or_subquery NK_RP */ +#line 1366 "sql.y" +{ yymsp[-3].minor.yy664 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } +#line 8076 "sql.c" break; - case 634: /* 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 639: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ +#line 1368 "sql.y" +{ yymsp[-5].minor.yy664 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), NULL, yymsp[-1].minor.yy664, yymsp[0].minor.yy664); } +#line 8081 "sql.c" break; - case 635: /* 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 640: /* twindow_clause_opt ::= INTERVAL NK_LP interval_sliding_duration_literal NK_COMMA interval_sliding_duration_literal NK_RP sliding_opt fill_opt */ +#line 1372 "sql.y" +{ 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); } +#line 8086 "sql.c" break; - case 636: /* 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 641: /* twindow_clause_opt ::= EVENT_WINDOW START WITH search_condition END WITH search_condition */ +#line 1374 "sql.y" +{ yymsp[-6].minor.yy664 = createEventWindowNode(pCxt, yymsp[-3].minor.yy664, yymsp[0].minor.yy664); } +#line 8091 "sql.c" break; - case 637: /* 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 642: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_RP */ +#line 1376 "sql.y" +{ yymsp[-3].minor.yy664 = createCountWindowNode(pCxt, &yymsp[-1].minor.yy0, &yymsp[-1].minor.yy0); } +#line 8096 "sql.c" break; - case 638: /* 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 643: /* twindow_clause_opt ::= COUNT_WINDOW NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +#line 1378 "sql.y" +{ yymsp[-5].minor.yy664 = createCountWindowNode(pCxt, &yymsp[-3].minor.yy0, &yymsp[-1].minor.yy0); } +#line 8101 "sql.c" break; - case 645: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy392 = createFillNode(pCxt, yymsp[-1].minor.yy374, NULL); } + case 650: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +#line 1388 "sql.y" +{ yymsp[-3].minor.yy664 = createFillNode(pCxt, yymsp[-1].minor.yy992, NULL); } +#line 8106 "sql.c" break; - case 646: /* 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 651: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA expression_list NK_RP */ +#line 1389 "sql.y" +{ yymsp[-5].minor.yy664 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy1006)); } +#line 8111 "sql.c" break; - case 647: /* 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 652: /* fill_opt ::= FILL NK_LP VALUE_F NK_COMMA expression_list NK_RP */ +#line 1390 "sql.y" +{ yymsp[-5].minor.yy664 = createFillNode(pCxt, FILL_MODE_VALUE_F, createNodeListNode(pCxt, yymsp[-1].minor.yy1006)); } +#line 8116 "sql.c" break; - case 648: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy374 = FILL_MODE_NONE; } + case 653: /* fill_mode ::= NONE */ +#line 1394 "sql.y" +{ yymsp[0].minor.yy992 = FILL_MODE_NONE; } +#line 8121 "sql.c" break; - case 649: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy374 = FILL_MODE_PREV; } + case 654: /* fill_mode ::= PREV */ +#line 1395 "sql.y" +{ yymsp[0].minor.yy992 = FILL_MODE_PREV; } +#line 8126 "sql.c" break; - case 650: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy374 = FILL_MODE_NULL; } + case 655: /* fill_mode ::= NULL */ +#line 1396 "sql.y" +{ yymsp[0].minor.yy992 = FILL_MODE_NULL; } +#line 8131 "sql.c" break; - case 651: /* fill_mode ::= NULL_F */ -{ yymsp[0].minor.yy374 = FILL_MODE_NULL_F; } + case 656: /* fill_mode ::= NULL_F */ +#line 1397 "sql.y" +{ yymsp[0].minor.yy992 = FILL_MODE_NULL_F; } +#line 8136 "sql.c" break; - case 652: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy374 = FILL_MODE_LINEAR; } + case 657: /* fill_mode ::= LINEAR */ +#line 1398 "sql.y" +{ yymsp[0].minor.yy992 = FILL_MODE_LINEAR; } +#line 8141 "sql.c" break; - case 653: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy374 = FILL_MODE_NEXT; } + case 658: /* fill_mode ::= NEXT */ +#line 1399 "sql.y" +{ yymsp[0].minor.yy992 = FILL_MODE_NEXT; } +#line 8146 "sql.c" break; - case 656: /* 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 661: /* group_by_list ::= expr_or_subquery */ +#line 1408 "sql.y" +{ yylhsminor.yy1006 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } +#line 8151 "sql.c" + yymsp[0].minor.yy1006 = yylhsminor.yy1006; break; - case 657: /* 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 662: /* group_by_list ::= group_by_list NK_COMMA expr_or_subquery */ +#line 1409 "sql.y" +{ yylhsminor.yy1006 = addNodeToList(pCxt, yymsp[-2].minor.yy1006, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy664))); } +#line 8157 "sql.c" + yymsp[-2].minor.yy1006 = yylhsminor.yy1006; break; - case 661: /* 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 666: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_COMMA expr_or_subquery NK_RP */ +#line 1416 "sql.y" +{ yymsp[-5].minor.yy664 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy664), releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } +#line 8163 "sql.c" break; - case 662: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ -{ yymsp[-3].minor.yy392 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy392)); } + case 667: /* range_opt ::= RANGE NK_LP expr_or_subquery NK_RP */ +#line 1418 "sql.y" +{ yymsp[-3].minor.yy664 = createInterpTimePoint(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy664)); } +#line 8168 "sql.c" break; - case 665: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 670: /* query_expression ::= query_simple order_by_clause_opt slimit_clause_opt limit_clause_opt */ +#line 1425 "sql.y" { - 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; +#line 8177 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 668: /* 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 673: /* union_query_expression ::= query_simple_or_subquery UNION ALL query_simple_or_subquery */ +#line 1435 "sql.y" +{ yylhsminor.yy664 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy664, yymsp[0].minor.yy664); } +#line 8183 "sql.c" + yymsp[-3].minor.yy664 = yylhsminor.yy664; break; - case 669: /* 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 674: /* union_query_expression ::= query_simple_or_subquery UNION query_simple_or_subquery */ +#line 1437 "sql.y" +{ yylhsminor.yy664 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy664, yymsp[0].minor.yy664); } +#line 8189 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 677: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 681: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==681); -{ yymsp[-1].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 682: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 686: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==686); +#line 1451 "sql.y" +{ yymsp[-1].minor.yy664 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } +#line 8196 "sql.c" break; - case 678: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 682: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==682); -{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 683: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 687: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==687); +#line 1452 "sql.y" +{ yymsp[-3].minor.yy664 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } +#line 8202 "sql.c" break; - case 679: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 683: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==683); -{ yymsp[-3].minor.yy392 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 684: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 688: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==688); +#line 1453 "sql.y" +{ yymsp[-3].minor.yy664 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } +#line 8208 "sql.c" break; - case 684: /* 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 689: /* subquery ::= NK_LP query_expression NK_RP */ +#line 1461 "sql.y" +{ yylhsminor.yy664 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy664); } +#line 8213 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 689: /* 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 694: /* sort_specification ::= expr_or_subquery ordering_specification_opt null_ordering_opt */ +#line 1475 "sql.y" +{ yylhsminor.yy664 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy664), yymsp[-1].minor.yy798, yymsp[0].minor.yy371); } +#line 8219 "sql.c" + yymsp[-2].minor.yy664 = yylhsminor.yy664; break; - case 690: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy578 = ORDER_ASC; } + case 695: /* ordering_specification_opt ::= */ +#line 1479 "sql.y" +{ yymsp[1].minor.yy798 = ORDER_ASC; } +#line 8225 "sql.c" break; - case 691: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy578 = ORDER_ASC; } + case 696: /* ordering_specification_opt ::= ASC */ +#line 1480 "sql.y" +{ yymsp[0].minor.yy798 = ORDER_ASC; } +#line 8230 "sql.c" break; - case 692: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy578 = ORDER_DESC; } + case 697: /* ordering_specification_opt ::= DESC */ +#line 1481 "sql.y" +{ yymsp[0].minor.yy798 = ORDER_DESC; } +#line 8235 "sql.c" break; - case 693: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy217 = NULL_ORDER_DEFAULT; } + case 698: /* null_ordering_opt ::= */ +#line 1485 "sql.y" +{ yymsp[1].minor.yy371 = NULL_ORDER_DEFAULT; } +#line 8240 "sql.c" break; - case 694: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_FIRST; } + case 699: /* null_ordering_opt ::= NULLS FIRST */ +#line 1486 "sql.y" +{ yymsp[-1].minor.yy371 = NULL_ORDER_FIRST; } +#line 8245 "sql.c" break; - case 695: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy217 = NULL_ORDER_LAST; } + case 700: /* null_ordering_opt ::= NULLS LAST */ +#line 1487 "sql.y" +{ yymsp[-1].minor.yy371 = NULL_ORDER_LAST; } +#line 8250 "sql.c" break; default: break; @@ -7239,6 +8309,7 @@ static void yy_syntax_error( ParseCTX_FETCH #define TOKEN yyminor /************ Begin %syntax_error code ****************************************/ +#line 29 "sql.y" if (TSDB_CODE_SUCCESS == pCxt->errCode) { if(TOKEN.z) { @@ -7249,6 +8320,7 @@ static void yy_syntax_error( } else if (TSDB_CODE_PAR_DB_NOT_SPECIFIED == pCxt->errCode && TK_NK_FLOAT == TOKEN.type) { pCxt->errCode = generateSyntaxErrMsg(&pCxt->msgBuf, TSDB_CODE_PAR_SYNTAX_ERROR, TOKEN.z); } +#line 8323 "sql.c" /************ End %syntax_error code ******************************************/ ParseARG_STORE /* Suppress warning about unused %extra_argument variable */ ParseCTX_STORE @@ -7334,56 +8406,12 @@ void Parse( } #endif - while(1){ /* Exit by "break" */ - assert( yypParser->yytos>=yypParser->yystack ); + do{ assert( yyact==yypParser->yytos->stateno ); yyact = yy_find_shift_action((YYCODETYPE)yymajor,yyact); if( yyact >= YY_MIN_REDUCE ){ - unsigned int yyruleno = yyact - YY_MIN_REDUCE; /* Reduce by this rule */ -#ifndef NDEBUG - assert( yyruleno<(int)(sizeof(yyRuleName)/sizeof(yyRuleName[0])) ); - if( yyTraceFILE ){ - int yysize = yyRuleInfoNRhs[yyruleno]; - if( yysize ){ - fprintf(yyTraceFILE, "%sReduce %d [%s]%s, pop back to state %d.\n", - yyTracePrompt, - yyruleno, yyRuleName[yyruleno], - yyrulenoyytos[yysize].stateno); - }else{ - fprintf(yyTraceFILE, "%sReduce %d [%s]%s.\n", - yyTracePrompt, yyruleno, yyRuleName[yyruleno], - yyrulenoyytos - yypParser->yystack)>yypParser->yyhwm ){ - yypParser->yyhwm++; - assert( yypParser->yyhwm == - (int)(yypParser->yytos - yypParser->yystack)); - } -#endif -#if YYSTACKDEPTH>0 - if( yypParser->yytos>=yypParser->yystackEnd ){ - yyStackOverflow(yypParser); - break; - } -#else - if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz-1] ){ - if( yyGrowStack(yypParser) ){ - yyStackOverflow(yypParser); - break; - } - } -#endif - } - yyact = yy_reduce(yypParser,yyruleno,yymajor,yyminor ParseCTX_PARAM); + yyact = yy_reduce(yypParser,yyact-YY_MIN_REDUCE,yymajor, + yyminor ParseCTX_PARAM); }else if( yyact <= YY_MAX_SHIFTREDUCE ){ yy_shift(yypParser,yyact,(YYCODETYPE)yymajor,yyminor); #ifndef YYNOERRORRECOVERY @@ -7439,13 +8467,14 @@ void Parse( yy_destructor(yypParser, (YYCODETYPE)yymajor, &yyminorunion); yymajor = YYNOCODE; }else{ - while( yypParser->yytos > yypParser->yystack ){ - yyact = yy_find_reduce_action(yypParser->yytos->stateno, - YYERRORSYMBOL); - if( yyact<=YY_MAX_SHIFTREDUCE ) break; + while( yypParser->yytos >= yypParser->yystack + && (yyact = yy_find_reduce_action( + yypParser->yytos->stateno, + YYERRORSYMBOL)) > YY_MAX_SHIFTREDUCE + ){ yy_pop_parser_stack(yypParser); } - if( yypParser->yytos <= yypParser->yystack || yymajor==0 ){ + if( yypParser->yytos < yypParser->yystack || yymajor==0 ){ yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion); yy_parse_failed(yypParser); #ifndef YYNOERRORRECOVERY @@ -7495,7 +8524,7 @@ void Parse( break; #endif } - } + }while( yypParser->yytos>yypParser->yystack ); #ifndef NDEBUG if( yyTraceFILE ){ yyStackEntry *i; diff --git a/source/libs/planner/src/planLogicCreater.c b/source/libs/planner/src/planLogicCreater.c index 100251b565..e90b1eafee 100644 --- a/source/libs/planner/src/planLogicCreater.c +++ b/source/libs/planner/src/planLogicCreater.c @@ -522,6 +522,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/planner/src/planOptimizer.c b/source/libs/planner/src/planOptimizer.c index f52fd4d51c..b3f50b540b 100644 --- a/source/libs/planner/src/planOptimizer.c +++ b/source/libs/planner/src/planOptimizer.c @@ -2999,7 +2999,7 @@ static int32_t lastRowScanOptimize(SOptimizeContext* pCxt, SLogicSubplan* pLogic nodesListErase(pFunc->pParameterList, nodesListGetCell(pFunc->pParameterList, 1)); if (pFunc->hasPk) { if (LIST_LENGTH(pFunc->pParameterList) != 2) { - planError("last func which has pk but its parameter list length is not 2"); + planError("last func which has pk but its parameter list length is not %d", 2); nodesClearList(cxt.pLastCols); taosArrayDestroy(isDuplicateCol); return TSDB_CODE_PLAN_INTERNAL_ERROR; 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/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/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/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/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())