From 689fb267089cfe1b32a90583981ffbdc07579a00 Mon Sep 17 00:00:00 2001 From: Xiaoyu Wang Date: Thu, 31 Mar 2022 07:38:17 -0400 Subject: [PATCH] db or table option keep implement --- include/libs/nodes/cmdnodes.h | 8 +- include/util/tdef.h | 6 +- source/dnode/mnode/impl/src/mndDb.c | 4 +- source/dnode/mnode/impl/src/mndInfoSchema.c | 2 +- source/libs/parser/inc/parAst.h | 5 + source/libs/parser/inc/sql.y | 21 +- source/libs/parser/src/parAstCreater.c | 98 +- source/libs/parser/src/parTranslater.c | 12 +- source/libs/parser/src/sql.c | 3734 ++++++++++--------- tests/script/tsim/db/alter_option.sim | 8 +- 10 files changed, 1982 insertions(+), 1916 deletions(-) diff --git a/include/libs/nodes/cmdnodes.h b/include/libs/nodes/cmdnodes.h index 1c812d40ca..b7131716f3 100644 --- a/include/libs/nodes/cmdnodes.h +++ b/include/libs/nodes/cmdnodes.h @@ -38,7 +38,9 @@ typedef struct SDatabaseOptions { int32_t fsyncPeriod; int32_t maxRowsPerBlock; int32_t minRowsPerBlock; - int32_t keep; + int32_t keep0; + int32_t keep1; + int32_t keep2; int32_t precision; int32_t quorum; int32_t replica; @@ -76,7 +78,9 @@ typedef struct SAlterDatabaseStmt { typedef struct STableOptions { ENodeType type; - int32_t keep; + int32_t keep0; + int32_t keep1; + int32_t keep2; int32_t ttl; char comments[TSDB_STB_COMMENT_LEN]; SNodeList* pSma; diff --git a/include/util/tdef.h b/include/util/tdef.h index fb1075d74f..c5b557a2b5 100644 --- a/include/util/tdef.h +++ b/include/util/tdef.h @@ -307,9 +307,9 @@ typedef enum ELogicConditionType { #define TSDB_MAX_DAYS_PER_FILE (3650 * 1440) #define TSDB_DEFAULT_DAYS_PER_FILE (10 * 1440) -#define TSDB_MIN_KEEP 1 // data in db to be reserved. -#define TSDB_MAX_KEEP 365000 // data in db to be reserved. -#define TSDB_DEFAULT_KEEP 3650 // ten years +#define TSDB_MIN_KEEP (1 * 1440) // data in db to be reserved. unit minute +#define TSDB_MAX_KEEP (365000 * 1440) // data in db to be reserved. +#define TSDB_DEFAULT_KEEP (3650 * 1440) // ten years #define TSDB_MIN_MIN_ROW_FBLOCK 10 #define TSDB_MAX_MIN_ROW_FBLOCK 1000 diff --git a/source/dnode/mnode/impl/src/mndDb.c b/source/dnode/mnode/impl/src/mndDb.c index bd66bdeae9..462f0eb85a 100644 --- a/source/dnode/mnode/impl/src/mndDb.c +++ b/source/dnode/mnode/impl/src/mndDb.c @@ -1309,7 +1309,7 @@ static int32_t mndGetDbMeta(SNodeMsg *pReq, SShowObj *pShow, STableMetaRsp *pMet cols++; pShow->bytes[cols] = 2; - pSchema[cols].type = TSDB_DATA_TYPE_SMALLINT; + pSchema[cols].type = TSDB_DATA_TYPE_INT; strcpy(pSchema[cols].name, "days"); pSchema[cols].bytes = pShow->bytes[cols]; cols++; @@ -1444,7 +1444,7 @@ static void dumpDbInfoToPayload(char *data, SDbObj *pDb, SShowObj *pShow, int32_ cols++; pWrite = getDataPosition(data, pShow, cols, rows, rowCapacity); - *(int16_t *)pWrite = pDb->cfg.daysPerFile; + *(int32_t *)pWrite = pDb->cfg.daysPerFile; cols++; pWrite = getDataPosition(data, pShow, cols, rows, rowCapacity); diff --git a/source/dnode/mnode/impl/src/mndInfoSchema.c b/source/dnode/mnode/impl/src/mndInfoSchema.c index ce08dfaaa3..fbea1b04e5 100644 --- a/source/dnode/mnode/impl/src/mndInfoSchema.c +++ b/source/dnode/mnode/impl/src/mndInfoSchema.c @@ -53,7 +53,7 @@ static const SInfosTableSchema userDBSchema[] = { {.name = "ntables", .bytes = 8, .type = TSDB_DATA_TYPE_BIGINT}, {.name = "replica", .bytes = 2, .type = TSDB_DATA_TYPE_SMALLINT}, {.name = "quorum", .bytes = 2, .type = TSDB_DATA_TYPE_SMALLINT}, - {.name = "days", .bytes = 2, .type = TSDB_DATA_TYPE_SMALLINT}, + {.name = "days", .bytes = 4, .type = TSDB_DATA_TYPE_INT}, {.name = "keep", .bytes = 24 + VARSTR_HEADER_SIZE, .type = TSDB_DATA_TYPE_BINARY}, {.name = "cache", .bytes = 4, .type = TSDB_DATA_TYPE_INT}, {.name = "blocks", .bytes = 4, .type = TSDB_DATA_TYPE_INT}, diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 9ad089f38e..f8880eac72 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -71,6 +71,7 @@ typedef enum ETableOptionType { typedef struct SAlterOption { int32_t type; SToken val; + SNodeList* pKeep; } SAlterOption; extern SToken nil_token; @@ -121,6 +122,8 @@ SNode* createSetOperator(SAstCreateContext* pCxt, ESetOperatorType type, SNode* SNode* createDefaultDatabaseOptions(SAstCreateContext* pCxt); SNode* createDefaultAlterDatabaseOptions(SAstCreateContext* pCxt); SNode* setDatabaseOption(SAstCreateContext* pCxt, SNode* pOptions, EDatabaseOptionType type, const SToken* pVal); +SNode* setDatabaseKeepOption(SAstCreateContext* pCxt, SNode* pOptions, SNodeList* pKeep); +SNode* setDatabaseAlterOption(SAstCreateContext* pCxt, SNode* pOptions, SAlterOption* pAlterOption); SNode* createCreateDatabaseStmt(SAstCreateContext* pCxt, bool ignoreExists, SToken* pDbName, SNode* pOptions); SNode* createDropDatabaseStmt(SAstCreateContext* pCxt, bool ignoreNotExists, SToken* pDbName); SNode* createAlterDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName, SNode* pOptions); @@ -129,6 +132,8 @@ SNode* createDefaultAlterTableOptions(SAstCreateContext* pCxt); SNode* setTableOption(SAstCreateContext* pCxt, SNode* pOptions, ETableOptionType type, const SToken* pVal); SNode* setTableSmaOption(SAstCreateContext* pCxt, SNode* pOptions, SNodeList* pSma); SNode* setTableRollupOption(SAstCreateContext* pCxt, SNode* pOptions, SNodeList* pFuncs); +SNode* setTableKeepOption(SAstCreateContext* pCxt, SNode* pOptions, SNodeList* pKeep); +SNode* setTableAlterOption(SAstCreateContext* pCxt, SNode* pOptions, SAlterOption* pAlterOption); SNode* createColumnDefNode(SAstCreateContext* pCxt, const SToken* pColName, SDataType dataType, const SToken* pComment); SDataType createDataType(uint8_t type); SDataType createVarLenDataType(uint8_t type, const SToken* pLen); diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index b8e5df8708..e2b96b4a50 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -137,7 +137,7 @@ db_options(A) ::= db_options(B) DAYS NK_INTEGER(C). db_options(A) ::= db_options(B) FSYNC NK_INTEGER(C). { A = setDatabaseOption(pCxt, B, DB_OPTION_FSYNC, &C); } db_options(A) ::= db_options(B) MAXROWS NK_INTEGER(C). { A = setDatabaseOption(pCxt, B, DB_OPTION_MAXROWS, &C); } db_options(A) ::= db_options(B) MINROWS NK_INTEGER(C). { A = setDatabaseOption(pCxt, B, DB_OPTION_MINROWS, &C); } -db_options(A) ::= db_options(B) KEEP NK_INTEGER(C). { A = setDatabaseOption(pCxt, B, DB_OPTION_KEEP, &C); } +db_options(A) ::= db_options(B) KEEP integer_list(C). { A = setDatabaseKeepOption(pCxt, B, C); } db_options(A) ::= db_options(B) PRECISION NK_STRING(C). { A = setDatabaseOption(pCxt, B, DB_OPTION_PRECISION, &C); } db_options(A) ::= db_options(B) QUORUM NK_INTEGER(C). { A = setDatabaseOption(pCxt, B, DB_OPTION_QUORUM, &C); } db_options(A) ::= db_options(B) REPLICA NK_INTEGER(C). { A = setDatabaseOption(pCxt, B, DB_OPTION_REPLICA, &C); } @@ -148,19 +148,24 @@ db_options(A) ::= db_options(B) SINGLE_STABLE NK_INTEGER(C). db_options(A) ::= db_options(B) STREAM_MODE NK_INTEGER(C). { A = setDatabaseOption(pCxt, B, DB_OPTION_STREAM_MODE, &C); } db_options(A) ::= db_options(B) RETENTIONS NK_STRING(C). { A = setDatabaseOption(pCxt, B, DB_OPTION_RETENTIONS, &C); } -alter_db_options(A) ::= alter_db_option(B). { A = createDefaultAlterDatabaseOptions(pCxt); A = setDatabaseOption(pCxt, A, B.type, &B.val); } -alter_db_options(A) ::= alter_db_options(B) alter_db_option(C). { A = setDatabaseOption(pCxt, B, C.type, &C.val); } +alter_db_options(A) ::= alter_db_option(B). { A = createDefaultAlterDatabaseOptions(pCxt); A = setDatabaseAlterOption(pCxt, A, &B); } +alter_db_options(A) ::= alter_db_options(B) alter_db_option(C). { A = setDatabaseAlterOption(pCxt, B, &C); } %type alter_db_option { SAlterOption } %destructor alter_db_option { } alter_db_option(A) ::= BLOCKS NK_INTEGER(B). { A.type = DB_OPTION_BLOCKS; A.val = B; } alter_db_option(A) ::= FSYNC NK_INTEGER(B). { A.type = DB_OPTION_FSYNC; A.val = B; } -alter_db_option(A) ::= KEEP NK_INTEGER(B). { A.type = DB_OPTION_KEEP; A.val = B; } +alter_db_option(A) ::= KEEP integer_list(B). { A.type = DB_OPTION_KEEP; A.pKeep = B; } alter_db_option(A) ::= WAL NK_INTEGER(B). { A.type = DB_OPTION_WAL; A.val = B; } alter_db_option(A) ::= QUORUM NK_INTEGER(B). { A.type = DB_OPTION_QUORUM; A.val = B; } alter_db_option(A) ::= CACHELAST NK_INTEGER(B). { A.type = DB_OPTION_CACHELAST; A.val = B; } alter_db_option(A) ::= REPLICA NK_INTEGER(B). { A.type = DB_OPTION_REPLICA; A.val = B; } +%type integer_list { SNodeList* } +%destructor integer_list { nodesDestroyList($$); } +integer_list(A) ::= NK_INTEGER(B). { A = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &B)); } +integer_list(A) ::= integer_list(B) NK_COMMA NK_INTEGER(C). { A = addNodeToList(pCxt, B, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &C)); } + /************************************************ create/drop table/stable ********************************************/ cmd ::= CREATE TABLE not_exists_opt(A) full_table_name(B) NK_LP column_def_list(C) NK_RP tags_def_opt(D) table_options(E). { pCxt->pRootNode = createCreateTableStmt(pCxt, A, B, C, D, E); } @@ -260,20 +265,20 @@ tags_def(A) ::= TAGS NK_LP column_def_list(B) NK_RP. table_options(A) ::= . { A = createDefaultTableOptions(pCxt); } table_options(A) ::= table_options(B) COMMENT NK_STRING(C). { A = setTableOption(pCxt, B, TABLE_OPTION_COMMENT, &C); } -table_options(A) ::= table_options(B) KEEP NK_INTEGER(C). { A = setTableOption(pCxt, B, TABLE_OPTION_KEEP, &C); } +table_options(A) ::= table_options(B) KEEP integer_list(C). { A = setTableKeepOption(pCxt, B, C); } table_options(A) ::= table_options(B) TTL NK_INTEGER(C). { A = setTableOption(pCxt, B, TABLE_OPTION_TTL, &C); } table_options(A) ::= table_options(B) SMA NK_LP col_name_list(C) NK_RP. { A = setTableSmaOption(pCxt, B, C); } table_options(A) ::= table_options(B) ROLLUP NK_LP func_name_list(C) NK_RP. { A = setTableRollupOption(pCxt, B, C); } table_options(A) ::= table_options(B) FILE_FACTOR NK_FLOAT(C). { A = setTableOption(pCxt, B, TABLE_OPTION_FILE_FACTOR, &C); } table_options(A) ::= table_options(B) DELAY NK_INTEGER(C). { A = setTableOption(pCxt, B, TABLE_OPTION_DELAY, &C); } -alter_table_options(A) ::= alter_table_option(B). { A = createDefaultAlterTableOptions(pCxt); A = setTableOption(pCxt, A, B.type, &B.val); } -alter_table_options(A) ::= alter_table_options(B) alter_table_option(C). { A = setTableOption(pCxt, B, C.type, &C.val); } +alter_table_options(A) ::= alter_table_option(B). { A = createDefaultAlterTableOptions(pCxt); A = setTableAlterOption(pCxt, A, &B); } +alter_table_options(A) ::= alter_table_options(B) alter_table_option(C). { A = setTableAlterOption(pCxt, B, &C); } %type alter_table_option { SAlterOption } %destructor alter_table_option { } alter_table_option(A) ::= COMMENT NK_STRING(B). { A.type = TABLE_OPTION_COMMENT; A.val = B; } -alter_table_option(A) ::= KEEP NK_INTEGER(B). { A.type = TABLE_OPTION_KEEP; A.val = B; } +alter_table_option(A) ::= KEEP integer_list(B). { A.type = TABLE_OPTION_KEEP; A.pKeep = B; } alter_table_option(A) ::= TTL NK_INTEGER(B). { A.type = TABLE_OPTION_TTL; A.val = B; } %type col_name_list { SNodeList* } diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index dd03a63759..0ebda70bbe 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -138,18 +138,6 @@ static SDatabaseOptions* setDbMinRows(SAstCreateContext* pCxt, SDatabaseOptions* return pOptions; } -static SDatabaseOptions* setDbKeep(SAstCreateContext* pCxt, SDatabaseOptions* pOptions, const SToken* pVal) { - int64_t val = strtol(pVal->z, NULL, 10); - if (val < TSDB_MIN_KEEP || val > TSDB_MAX_KEEP) { - snprintf(pCxt->pQueryCxt->pMsg, pCxt->pQueryCxt->msgLen, - "invalid db option keep: %"PRId64" valid range: [%d, %d]", val, TSDB_MIN_KEEP, TSDB_MAX_KEEP); - pCxt->valid = false; - return pOptions; - } - pOptions->keep = val; - return pOptions; -} - static SDatabaseOptions* setDbPrecision(SAstCreateContext* pCxt, SDatabaseOptions* pOptions, const SToken* pVal) { char val[10] = {0}; trimString(pVal->z, pVal->n, val, sizeof(val)); @@ -291,7 +279,6 @@ static void initSetDatabaseOptionFp() { setDbOptionFuncs[DB_OPTION_FSYNC] = setDbFsync; setDbOptionFuncs[DB_OPTION_MAXROWS] = setDbMaxRows; setDbOptionFuncs[DB_OPTION_MINROWS] = setDbMinRows; - setDbOptionFuncs[DB_OPTION_KEEP] = setDbKeep; setDbOptionFuncs[DB_OPTION_PRECISION] = setDbPrecision; setDbOptionFuncs[DB_OPTION_QUORUM] = setDbQuorum; setDbOptionFuncs[DB_OPTION_REPLICA] = setDbReplica; @@ -303,18 +290,6 @@ static void initSetDatabaseOptionFp() { setDbOptionFuncs[DB_OPTION_RETENTIONS] = setDbRetentions; } -static STableOptions* setTableKeep(SAstCreateContext* pCxt, STableOptions* pOptions, const SToken* pVal) { - int64_t val = strtol(pVal->z, NULL, 10); - if (val < TSDB_MIN_KEEP || val > TSDB_MAX_KEEP) { - snprintf(pCxt->pQueryCxt->pMsg, pCxt->pQueryCxt->msgLen, - "invalid table option keep: %"PRId64" valid range: [%d, %d]", val, TSDB_MIN_KEEP, TSDB_MAX_KEEP); - pCxt->valid = false; - return pOptions; - } - pOptions->keep = val; - return pOptions; -} - static STableOptions* setTableTtl(SAstCreateContext* pCxt, STableOptions* pOptions, const SToken* pVal) { int64_t val = strtol(pVal->z, NULL, 10); if (val < TSDB_MIN_DB_TTL_OPTION) { @@ -363,7 +338,6 @@ static STableOptions* setTableDelay(SAstCreateContext* pCxt, STableOptions* pOpt } static void initSetTableOptionFp() { - setTableOptionFuncs[TABLE_OPTION_KEEP] = setTableKeep; setTableOptionFuncs[TABLE_OPTION_TTL] = setTableTtl; setTableOptionFuncs[TABLE_OPTION_COMMENT] = setTableComment; setTableOptionFuncs[TABLE_OPTION_FILE_FACTOR] = setTableFileFactor; @@ -892,7 +866,9 @@ SNode* createDefaultDatabaseOptions(SAstCreateContext* pCxt) { pOptions->fsyncPeriod = TSDB_DEFAULT_FSYNC_PERIOD; pOptions->maxRowsPerBlock = TSDB_DEFAULT_MAX_ROW_FBLOCK; pOptions->minRowsPerBlock = TSDB_DEFAULT_MIN_ROW_FBLOCK; - pOptions->keep = TSDB_DEFAULT_KEEP; + pOptions->keep0 = TSDB_DEFAULT_KEEP; + pOptions->keep1 = TSDB_DEFAULT_KEEP; + pOptions->keep2 = TSDB_DEFAULT_KEEP; pOptions->precision = TSDB_TIME_PRECISION_MILLI; pOptions->quorum = TSDB_DEFAULT_DB_QUORUM_OPTION; pOptions->replica = TSDB_DEFAULT_DB_REPLICA_OPTION; @@ -915,7 +891,9 @@ SNode* createDefaultAlterDatabaseOptions(SAstCreateContext* pCxt) { pOptions->fsyncPeriod = -1; pOptions->maxRowsPerBlock = -1; pOptions->minRowsPerBlock = -1; - pOptions->keep = -1; + pOptions->keep0 = -1; + pOptions->keep1 = -1; + pOptions->keep2= -1; pOptions->precision = -1; pOptions->quorum = -1; pOptions->replica = -1; @@ -931,6 +909,48 @@ SNode* setDatabaseOption(SAstCreateContext* pCxt, SNode* pOptions, EDatabaseOpti return (SNode*)setDbOptionFuncs[type](pCxt, (SDatabaseOptions*)pOptions, pVal); } +static bool checkAndSetKeepOption(SAstCreateContext* pCxt, SNodeList* pKeep, int32_t* pKeep0, int32_t* pKeep1, int32_t* pKeep2) { + int32_t numOfKeep = LIST_LENGTH(pKeep); + if (numOfKeep > 3 || numOfKeep < 1) { + snprintf(pCxt->pQueryCxt->pMsg, pCxt->pQueryCxt->msgLen, "invalid number of keep options"); + return false; + } + + int32_t daysToKeep0 = strtol(((SValueNode*)nodesListGetNode(pKeep, 0))->literal, NULL, 10); + int32_t daysToKeep1 = numOfKeep > 1 ? strtol(((SValueNode*)nodesListGetNode(pKeep, 1))->literal, NULL, 10) : daysToKeep0; + int32_t daysToKeep2 = numOfKeep > 2 ? strtol(((SValueNode*)nodesListGetNode(pKeep, 2))->literal, NULL, 10) : daysToKeep1; + if (daysToKeep0 < TSDB_MIN_KEEP || daysToKeep1 < TSDB_MIN_KEEP || daysToKeep2 < TSDB_MIN_KEEP || + daysToKeep0 > TSDB_MAX_KEEP || daysToKeep1 > TSDB_MAX_KEEP || daysToKeep2 > TSDB_MAX_KEEP) { + snprintf(pCxt->pQueryCxt->pMsg, pCxt->pQueryCxt->msgLen, + "invalid option keep: %"PRId64", %"PRId64", %"PRId64" valid range: [%d, %d]", daysToKeep0, daysToKeep1, daysToKeep2, TSDB_MIN_KEEP, TSDB_MAX_KEEP); + return false; + } + + if (!((daysToKeep0 <= daysToKeep1) && (daysToKeep1 <= daysToKeep2))) { + snprintf(pCxt->pQueryCxt->pMsg, pCxt->pQueryCxt->msgLen, "invalid keep value, should be keep0 <= keep1 <= keep2"); + return false; + } + + *pKeep0 = daysToKeep0; + *pKeep1 = daysToKeep1; + *pKeep2 = daysToKeep2; + return true; +} + +SNode* setDatabaseKeepOption(SAstCreateContext* pCxt, SNode* pOptions, SNodeList* pKeep) { + SDatabaseOptions* pOp = (SDatabaseOptions*)pOptions; + pCxt->valid = checkAndSetKeepOption(pCxt, pKeep, &pOp->keep0, &pOp->keep1, &pOp->keep2); + return pOptions; +} + +SNode* setDatabaseAlterOption(SAstCreateContext* pCxt, SNode* pOptions, SAlterOption* pAlterOption) { + if (DB_OPTION_KEEP == pAlterOption->type) { + return setDatabaseKeepOption(pCxt, pOptions, pAlterOption->pKeep); + } else { + return setDatabaseOption(pCxt, pOptions, pAlterOption->type, &pAlterOption->val); + } +} + SNode* createCreateDatabaseStmt(SAstCreateContext* pCxt, bool ignoreExists, SToken* pDbName, SNode* pOptions) { if (!checkDbName(pCxt, pDbName, false)) { return NULL; @@ -968,7 +988,9 @@ SNode* createAlterDatabaseStmt(SAstCreateContext* pCxt, SToken* pDbName, SNode* SNode* createDefaultTableOptions(SAstCreateContext* pCxt) { STableOptions* pOptions = nodesMakeNode(QUERY_NODE_TABLE_OPTIONS); CHECK_OUT_OF_MEM(pOptions); - pOptions->keep = TSDB_DEFAULT_KEEP; + pOptions->keep0 = TSDB_DEFAULT_KEEP; + pOptions->keep1 = TSDB_DEFAULT_KEEP; + pOptions->keep2 = TSDB_DEFAULT_KEEP; pOptions->ttl = TSDB_DEFAULT_DB_TTL_OPTION; pOptions->filesFactor = TSDB_DEFAULT_DB_FILE_FACTOR; pOptions->delay = TSDB_DEFAULT_DB_DELAY; @@ -978,7 +1000,9 @@ SNode* createDefaultTableOptions(SAstCreateContext* pCxt) { SNode* createDefaultAlterTableOptions(SAstCreateContext* pCxt) { STableOptions* pOptions = nodesMakeNode(QUERY_NODE_TABLE_OPTIONS); CHECK_OUT_OF_MEM(pOptions); - pOptions->keep = -1; + pOptions->keep0 = -1; + pOptions->keep1 = -1; + pOptions->keep2 = -1; pOptions->ttl = -1; pOptions->filesFactor = -1; pOptions->delay = -1; @@ -1004,6 +1028,20 @@ SNode* setTableRollupOption(SAstCreateContext* pCxt, SNode* pOptions, SNodeList* return pOptions; } +SNode* setTableKeepOption(SAstCreateContext* pCxt, SNode* pOptions, SNodeList* pKeep) { + STableOptions* pOp = (STableOptions*)pOptions; + pCxt->valid = checkAndSetKeepOption(pCxt, pKeep, &pOp->keep0, &pOp->keep1, &pOp->keep2); + return pOptions; +} + +SNode* setTableAlterOption(SAstCreateContext* pCxt, SNode* pOptions, SAlterOption* pAlterOption) { + if (TABLE_OPTION_KEEP == pAlterOption->type) { + return setTableKeepOption(pCxt, pOptions, pAlterOption->pKeep); + } else { + return setTableOption(pCxt, pOptions, pAlterOption->type, &pAlterOption->val); + } +} + SNode* createColumnDefNode(SAstCreateContext* pCxt, const SToken* pColName, SDataType dataType, const SToken* pComment) { SColumnDefNode* pCol = (SColumnDefNode*)nodesMakeNode(QUERY_NODE_COLUMN_DEF); CHECK_OUT_OF_MEM(pCol); diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 0ea865882a..2a5fa5fdfe 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -956,9 +956,9 @@ static int32_t buildCreateDbReq(STranslateContext* pCxt, SCreateDatabaseStmt* pS pReq->cacheBlockSize = pStmt->pOptions->cacheBlockSize; pReq->totalBlocks = pStmt->pOptions->numOfBlocks; pReq->daysPerFile = pStmt->pOptions->daysPerFile; - pReq->daysToKeep0 = pStmt->pOptions->keep; - pReq->daysToKeep1 = -1; - pReq->daysToKeep2 = -1; + pReq->daysToKeep0 = pStmt->pOptions->keep0; + pReq->daysToKeep1 = pStmt->pOptions->keep1; + pReq->daysToKeep2 = pStmt->pOptions->keep2; pReq->minRows = pStmt->pOptions->minRowsPerBlock; pReq->maxRows = pStmt->pOptions->maxRowsPerBlock; pReq->commitTime = -1; @@ -1041,9 +1041,9 @@ static void buildAlterDbReq(STranslateContext* pCxt, SAlterDatabaseStmt* pStmt, tNameSetDbName(&name, pCxt->pParseCxt->acctId, pStmt->dbName, strlen(pStmt->dbName)); tNameGetFullDbName(&name, pReq->db); pReq->totalBlocks = pStmt->pOptions->numOfBlocks; - pReq->daysToKeep0 = pStmt->pOptions->keep; - pReq->daysToKeep1 = -1; - pReq->daysToKeep2 = -1; + pReq->daysToKeep0 = pStmt->pOptions->keep0; + pReq->daysToKeep1 = pStmt->pOptions->keep1; + pReq->daysToKeep2 = pStmt->pOptions->keep2; pReq->fsyncPeriod = pStmt->pOptions->fsyncPeriod; pReq->walLevel = pStmt->pOptions->walLevel; pReq->quorum = pStmt->pOptions->quorum; diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index e94ef34783..1252943f6e 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -100,24 +100,24 @@ #endif /************* Begin control #defines *****************************************/ #define YYCODETYPE unsigned short int -#define YYNOCODE 277 +#define YYNOCODE 278 #define YYACTIONTYPE unsigned short int #define ParseTOKENTYPE SToken typedef union { int yyinit; ParseTOKENTYPE yy0; - EFillMode yy6; - EJoinType yy10; - SNode* yy46; - SToken yy95; - SAlterOption yy145; - bool yy151; - SNodeList* yy194; - int32_t yy202; - ENullOrder yy273; - EOperatorType yy292; - SDataType yy400; - EOrder yy456; + SNode* yy24; + EOperatorType yy36; + ENullOrder yy45; + int32_t yy104; + SDataType yy212; + bool yy265; + EJoinType yy320; + SToken yy337; + EOrder yy346; + SNodeList* yy504; + EFillMode yy550; + SAlterOption yy553; } YYMINORTYPE; #ifndef YYSTACKDEPTH #define YYSTACKDEPTH 100 @@ -132,17 +132,17 @@ typedef union { #define ParseCTX_PARAM #define ParseCTX_FETCH #define ParseCTX_STORE -#define YYNSTATE 446 -#define YYNRULE 358 +#define YYNSTATE 451 +#define YYNRULE 360 #define YYNTOKEN 179 -#define YY_MAX_SHIFT 445 -#define YY_MIN_SHIFTREDUCE 693 -#define YY_MAX_SHIFTREDUCE 1050 -#define YY_ERROR_ACTION 1051 -#define YY_ACCEPT_ACTION 1052 -#define YY_NO_ACTION 1053 -#define YY_MIN_REDUCE 1054 -#define YY_MAX_REDUCE 1411 +#define YY_MAX_SHIFT 450 +#define YY_MIN_SHIFTREDUCE 696 +#define YY_MAX_SHIFTREDUCE 1055 +#define YY_ERROR_ACTION 1056 +#define YY_ACCEPT_ACTION 1057 +#define YY_NO_ACTION 1058 +#define YY_MIN_REDUCE 1059 +#define YY_MAX_REDUCE 1418 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -209,417 +209,417 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (1331) +#define YY_ACTTAB_COUNT (1316) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 1268, 345, 24, 174, 364, 364, 258, 243, 1264, 1271, - /* 10 */ 1234, 1235, 31, 29, 27, 26, 25, 1281, 377, 377, - /* 20 */ 9, 8, 95, 69, 69, 31, 29, 27, 26, 25, - /* 30 */ 293, 299, 345, 1390, 108, 62, 1066, 1297, 377, 1158, - /* 40 */ 1158, 349, 1149, 262, 361, 96, 120, 217, 1097, 251, - /* 50 */ 1388, 93, 1150, 95, 363, 376, 1225, 1227, 1255, 1158, - /* 60 */ 217, 167, 1336, 344, 112, 343, 1100, 46, 1390, 926, - /* 70 */ 65, 1282, 1283, 1286, 1329, 1198, 92, 956, 233, 1325, - /* 80 */ 1402, 120, 93, 1255, 1153, 1388, 109, 1124, 969, 1363, - /* 90 */ 956, 347, 116, 1336, 1337, 272, 1341, 430, 429, 428, - /* 100 */ 427, 426, 425, 424, 423, 422, 421, 420, 419, 418, - /* 110 */ 417, 416, 415, 414, 413, 306, 957, 301, 376, 730, - /* 120 */ 305, 729, 911, 304, 1052, 302, 300, 81, 303, 957, - /* 130 */ 80, 79, 78, 77, 76, 75, 74, 73, 72, 731, - /* 140 */ 126, 125, 23, 238, 951, 952, 953, 954, 955, 959, - /* 150 */ 960, 961, 27, 26, 25, 23, 238, 951, 952, 953, - /* 160 */ 954, 955, 959, 960, 961, 1281, 12, 284, 31, 29, - /* 170 */ 27, 26, 25, 255, 803, 400, 399, 398, 807, 397, - /* 180 */ 809, 810, 396, 812, 393, 1297, 818, 390, 820, 821, - /* 190 */ 387, 384, 361, 31, 29, 27, 26, 25, 231, 1205, - /* 200 */ 1390, 352, 363, 1077, 30, 28, 1255, 257, 1281, 256, - /* 210 */ 1226, 349, 240, 120, 891, 1268, 1390, 1388, 64, 1282, - /* 220 */ 1283, 1286, 1329, 1264, 1270, 926, 216, 1325, 1297, 1389, - /* 230 */ 889, 46, 121, 1388, 376, 348, 334, 377, 1390, 11, - /* 240 */ 247, 246, 263, 297, 1255, 363, 1222, 296, 1154, 1255, - /* 250 */ 904, 120, 121, 124, 1281, 1388, 121, 1076, 1158, 913, - /* 260 */ 1, 65, 1282, 1283, 1286, 1329, 897, 377, 298, 233, - /* 270 */ 1325, 115, 283, 264, 1297, 340, 336, 30, 28, 993, - /* 280 */ 248, 361, 12, 170, 442, 240, 6, 891, 1158, 327, - /* 290 */ 1356, 363, 30, 28, 1297, 1255, 890, 1268, 1255, 215, - /* 300 */ 240, 361, 891, 889, 1047, 1264, 1270, 66, 1282, 1283, - /* 310 */ 1286, 1329, 11, 1055, 1075, 1328, 1325, 339, 889, 1017, - /* 320 */ 378, 915, 892, 320, 895, 896, 206, 11, 939, 335, - /* 330 */ 1074, 121, 900, 1, 81, 438, 437, 80, 79, 78, - /* 340 */ 77, 76, 75, 74, 73, 72, 121, 1136, 1, 1054, - /* 350 */ 331, 1015, 1016, 1018, 1019, 1255, 1046, 442, 905, 1297, - /* 360 */ 908, 896, 377, 321, 1073, 1281, 361, 1155, 351, 890, - /* 370 */ 914, 1255, 442, 90, 89, 88, 87, 86, 85, 84, - /* 380 */ 83, 82, 1343, 1158, 890, 1297, 1343, 1134, 1281, 412, - /* 390 */ 1390, 1072, 348, 284, 338, 892, 988, 895, 896, 206, - /* 400 */ 1340, 939, 363, 120, 1339, 1255, 1255, 1388, 1297, 912, - /* 410 */ 892, 1281, 895, 896, 206, 361, 939, 1071, 65, 1282, - /* 420 */ 1283, 1286, 1329, 169, 1205, 363, 233, 1325, 115, 1255, - /* 430 */ 230, 1297, 1255, 412, 345, 1203, 1343, 729, 361, 992, - /* 440 */ 1070, 65, 1282, 1283, 1286, 1329, 55, 1357, 363, 233, - /* 450 */ 1325, 1402, 1255, 291, 1338, 95, 958, 916, 1255, 356, - /* 460 */ 1386, 30, 28, 1151, 65, 1282, 1283, 1286, 1329, 240, - /* 470 */ 1281, 891, 233, 1325, 1402, 1135, 318, 107, 30, 28, - /* 480 */ 362, 1255, 21, 1347, 93, 1161, 240, 889, 891, 316, - /* 490 */ 1297, 962, 30, 28, 117, 1336, 1337, 361, 1341, 403, - /* 500 */ 240, 1069, 891, 194, 889, 244, 1188, 363, 1068, 377, - /* 510 */ 1065, 1255, 141, 107, 374, 139, 349, 7, 889, 143, - /* 520 */ 1064, 1160, 142, 207, 1282, 1283, 1286, 323, 224, 1205, - /* 530 */ 1158, 1067, 409, 1063, 7, 245, 408, 30, 28, 101, - /* 540 */ 1203, 442, 1255, 1390, 1205, 240, 1125, 891, 7, 1255, - /* 550 */ 297, 1255, 357, 890, 296, 1204, 120, 410, 442, 155, - /* 560 */ 1388, 1255, 1147, 889, 225, 1000, 223, 222, 1281, 295, - /* 570 */ 890, 913, 442, 1143, 1255, 298, 407, 406, 405, 892, - /* 580 */ 404, 895, 896, 206, 890, 939, 145, 377, 1297, 144, - /* 590 */ 991, 1281, 375, 1, 353, 361, 892, 1145, 895, 896, - /* 600 */ 206, 147, 939, 121, 146, 363, 1348, 988, 1158, 1255, - /* 610 */ 892, 1297, 895, 896, 206, 377, 939, 442, 361, 250, - /* 620 */ 188, 66, 1282, 1283, 1286, 1329, 1141, 107, 363, 890, - /* 630 */ 1326, 1205, 1255, 199, 1062, 1160, 1158, 252, 201, 9, - /* 640 */ 8, 1061, 1203, 1281, 66, 1282, 1283, 1286, 1329, 1281, - /* 650 */ 200, 345, 359, 1325, 1281, 892, 402, 895, 896, 206, - /* 660 */ 127, 939, 938, 1297, 940, 941, 942, 943, 944, 1297, - /* 670 */ 361, 1014, 95, 377, 1297, 1255, 361, 1060, 254, 899, - /* 680 */ 363, 361, 1255, 42, 1255, 354, 363, 1059, 1058, 171, - /* 690 */ 1255, 363, 1093, 239, 1158, 1255, 110, 1282, 1283, 1286, - /* 700 */ 1281, 93, 211, 1282, 1283, 1286, 1281, 110, 1282, 1283, - /* 710 */ 1286, 118, 1336, 1337, 307, 1341, 253, 1057, 1255, 160, - /* 720 */ 1297, 67, 1049, 1050, 107, 360, 1297, 361, 1255, 1255, - /* 730 */ 1281, 158, 1160, 361, 350, 1403, 891, 363, 44, 43, - /* 740 */ 261, 1255, 122, 363, 328, 902, 1404, 1255, 332, 1199, - /* 750 */ 1297, 164, 889, 211, 1282, 1283, 1286, 361, 1255, 210, - /* 760 */ 1282, 1283, 1286, 911, 963, 923, 1275, 363, 1281, 121, - /* 770 */ 265, 1255, 1088, 277, 237, 898, 32, 32, 1273, 445, - /* 780 */ 875, 290, 278, 211, 1282, 1283, 1286, 20, 1297, 1359, - /* 790 */ 1298, 341, 32, 191, 309, 361, 91, 31, 29, 27, - /* 800 */ 26, 25, 434, 22, 190, 363, 442, 1086, 179, 1255, - /* 810 */ 948, 1281, 241, 31, 29, 27, 26, 25, 890, 346, - /* 820 */ 177, 211, 1282, 1283, 1286, 369, 61, 63, 185, 312, - /* 830 */ 186, 1297, 173, 796, 2, 884, 57, 98, 361, 791, - /* 840 */ 99, 901, 1281, 192, 892, 101, 895, 896, 363, 911, - /* 850 */ 276, 42, 1255, 271, 270, 269, 268, 267, 824, 1224, - /* 860 */ 123, 373, 1297, 828, 209, 1282, 1283, 1286, 834, 361, - /* 870 */ 382, 266, 833, 1281, 273, 99, 275, 279, 326, 363, - /* 880 */ 100, 151, 1281, 1255, 101, 919, 31, 29, 27, 26, - /* 890 */ 25, 102, 274, 1297, 280, 212, 1282, 1283, 1286, 128, - /* 900 */ 361, 918, 1297, 99, 1281, 282, 281, 131, 45, 361, - /* 910 */ 363, 285, 917, 1281, 1255, 134, 292, 294, 1148, 363, - /* 920 */ 229, 138, 1144, 1255, 1297, 150, 204, 1282, 1283, 1286, - /* 930 */ 140, 361, 103, 1297, 1133, 213, 1282, 1283, 1286, 71, - /* 940 */ 361, 363, 104, 1281, 1146, 1255, 1142, 325, 105, 106, - /* 950 */ 363, 1281, 153, 322, 1255, 916, 367, 205, 1282, 1283, - /* 960 */ 1286, 324, 333, 1297, 1370, 896, 214, 1282, 1283, 1286, - /* 970 */ 361, 1297, 156, 330, 1281, 1360, 232, 1369, 361, 159, - /* 980 */ 363, 5, 342, 1350, 1255, 337, 94, 329, 363, 4, - /* 990 */ 163, 409, 1255, 113, 1297, 408, 1294, 1282, 1283, 1286, - /* 1000 */ 988, 361, 915, 33, 1293, 1282, 1283, 1286, 1344, 166, - /* 1010 */ 234, 363, 165, 1281, 358, 1255, 410, 355, 17, 365, - /* 1020 */ 1311, 1281, 1233, 370, 181, 1405, 1232, 1292, 1282, 1283, - /* 1030 */ 1286, 366, 242, 1297, 371, 407, 406, 405, 1387, 404, - /* 1040 */ 361, 1297, 183, 172, 1281, 372, 193, 54, 361, 1159, - /* 1050 */ 363, 56, 1281, 189, 1255, 311, 380, 195, 363, 441, - /* 1060 */ 202, 197, 1255, 203, 1297, 39, 220, 1282, 1283, 1286, - /* 1070 */ 319, 361, 1297, 198, 219, 1282, 1283, 1286, 1249, 361, - /* 1080 */ 887, 363, 886, 1281, 149, 1255, 259, 314, 1243, 363, - /* 1090 */ 1242, 260, 308, 1255, 1241, 148, 1240, 221, 1282, 1283, - /* 1100 */ 1286, 858, 1217, 1297, 1216, 218, 1282, 1283, 1286, 97, - /* 1110 */ 361, 1215, 1214, 1213, 1212, 1211, 1210, 860, 41, 136, - /* 1120 */ 363, 40, 114, 1209, 1255, 1208, 1207, 1206, 289, 1099, - /* 1130 */ 135, 1239, 1230, 1137, 130, 742, 208, 1282, 1283, 1286, - /* 1140 */ 1098, 1096, 287, 286, 288, 1085, 1084, 306, 1081, 301, - /* 1150 */ 1139, 70, 305, 47, 137, 304, 133, 302, 300, 841, - /* 1160 */ 303, 839, 840, 1138, 1094, 226, 771, 1089, 770, 227, - /* 1170 */ 1087, 228, 769, 768, 767, 766, 765, 1080, 315, 1079, - /* 1180 */ 317, 310, 313, 1238, 1237, 68, 36, 1229, 48, 154, - /* 1190 */ 3, 32, 14, 15, 152, 34, 10, 51, 37, 162, - /* 1200 */ 19, 8, 1273, 132, 368, 949, 1228, 129, 1053, 184, - /* 1210 */ 1053, 835, 1035, 1034, 235, 1053, 1039, 1053, 1038, 236, - /* 1220 */ 1053, 157, 1013, 111, 906, 161, 1053, 1053, 1007, 49, - /* 1230 */ 1053, 1006, 1053, 1053, 50, 35, 1053, 985, 984, 1053, - /* 1240 */ 168, 1040, 1053, 182, 1053, 381, 249, 1053, 1053, 1053, - /* 1250 */ 832, 119, 385, 13, 16, 924, 18, 388, 176, 1011, - /* 1260 */ 178, 391, 175, 180, 52, 53, 802, 394, 1095, 57, - /* 1270 */ 1053, 38, 1053, 825, 1272, 830, 444, 836, 187, 822, - /* 1280 */ 379, 383, 762, 386, 831, 754, 819, 1083, 389, 761, - /* 1290 */ 760, 813, 392, 759, 811, 740, 758, 757, 395, 817, - /* 1300 */ 756, 411, 755, 753, 752, 751, 58, 431, 750, 59, - /* 1310 */ 60, 1082, 749, 748, 747, 433, 746, 745, 401, 432, - /* 1320 */ 816, 1078, 435, 436, 439, 440, 815, 893, 196, 814, - /* 1330 */ 443, + /* 0 */ 1275, 368, 1288, 1154, 247, 1397, 46, 1241, 1271, 1278, + /* 10 */ 1304, 1288, 31, 29, 27, 26, 25, 365, 1396, 108, + /* 20 */ 349, 1071, 1395, 1304, 1161, 31, 29, 27, 26, 25, + /* 30 */ 365, 380, 1304, 31, 29, 27, 26, 25, 235, 352, + /* 40 */ 367, 1150, 95, 380, 1262, 339, 732, 221, 1102, 367, + /* 50 */ 27, 26, 25, 1262, 1304, 1275, 214, 1289, 1290, 1293, + /* 60 */ 221, 365, 295, 1271, 1277, 65, 1289, 1290, 1293, 1336, + /* 70 */ 931, 93, 920, 237, 1332, 115, 24, 176, 961, 1105, + /* 80 */ 351, 116, 1343, 1344, 1212, 1348, 61, 172, 345, 342, + /* 90 */ 234, 961, 12, 331, 1363, 1210, 57, 435, 434, 433, + /* 100 */ 432, 431, 430, 429, 428, 192, 425, 424, 423, 422, + /* 110 */ 421, 420, 419, 418, 417, 81, 962, 46, 80, 79, + /* 120 */ 78, 77, 76, 75, 74, 73, 72, 92, 310, 962, + /* 130 */ 305, 381, 733, 309, 732, 1160, 149, 266, 306, 304, + /* 140 */ 268, 307, 23, 242, 956, 957, 958, 959, 960, 964, + /* 150 */ 965, 966, 734, 1165, 1156, 23, 242, 956, 957, 958, + /* 160 */ 959, 960, 964, 965, 966, 1288, 916, 219, 1057, 31, + /* 170 */ 29, 27, 26, 25, 171, 808, 404, 403, 402, 812, + /* 180 */ 401, 814, 815, 400, 817, 397, 1304, 823, 394, 825, + /* 190 */ 826, 391, 388, 365, 112, 1143, 1262, 380, 30, 28, + /* 200 */ 261, 1082, 260, 367, 381, 1205, 244, 1262, 896, 1288, + /* 210 */ 267, 943, 353, 945, 946, 947, 948, 949, 259, 64, + /* 220 */ 1289, 1290, 1293, 1336, 894, 121, 1165, 220, 1332, 109, + /* 230 */ 1304, 1129, 248, 11, 30, 28, 998, 352, 918, 1397, + /* 240 */ 107, 288, 244, 1262, 896, 1397, 12, 367, 1167, 30, + /* 250 */ 28, 1262, 120, 107, 1022, 1, 1395, 244, 120, 896, + /* 260 */ 894, 1168, 1395, 65, 1289, 1290, 1293, 1336, 1212, 11, + /* 270 */ 1212, 237, 1332, 115, 249, 894, 256, 1350, 447, 1210, + /* 280 */ 1052, 1210, 252, 349, 11, 335, 1020, 1021, 1023, 1024, + /* 290 */ 895, 1, 1364, 1081, 916, 1347, 315, 1355, 993, 1275, + /* 300 */ 121, 269, 255, 262, 281, 95, 1, 1271, 1277, 1232, + /* 310 */ 1234, 323, 6, 282, 447, 381, 897, 381, 900, 901, + /* 320 */ 210, 287, 944, 1162, 353, 151, 895, 963, 318, 447, + /* 330 */ 1397, 121, 1051, 312, 93, 1262, 150, 1165, 1288, 1165, + /* 340 */ 121, 895, 288, 120, 169, 1343, 348, 1395, 347, 254, + /* 350 */ 921, 1397, 897, 21, 900, 901, 210, 107, 944, 1304, + /* 360 */ 41, 1288, 967, 40, 120, 1167, 365, 897, 1395, 900, + /* 370 */ 901, 210, 324, 944, 343, 257, 367, 9, 8, 62, + /* 380 */ 1262, 280, 1304, 107, 275, 274, 273, 272, 271, 365, + /* 390 */ 96, 1167, 65, 1289, 1290, 1293, 1336, 1157, 381, 367, + /* 400 */ 237, 1332, 1409, 1262, 378, 1288, 148, 357, 381, 1080, + /* 410 */ 300, 1370, 1141, 325, 69, 65, 1289, 1290, 1293, 1336, + /* 420 */ 1165, 297, 993, 237, 1332, 1409, 1304, 1350, 30, 28, + /* 430 */ 1165, 302, 338, 365, 1393, 368, 244, 1079, 896, 121, + /* 440 */ 1397, 1242, 1078, 367, 381, 1346, 974, 1262, 1077, 1288, + /* 450 */ 379, 1262, 157, 120, 894, 1076, 276, 1395, 416, 65, + /* 460 */ 1289, 1290, 1293, 1336, 349, 1075, 1165, 237, 1332, 1409, + /* 470 */ 1304, 344, 340, 30, 28, 366, 381, 365, 1354, 1262, + /* 480 */ 356, 244, 69, 896, 1262, 7, 95, 367, 1229, 303, + /* 490 */ 1262, 1262, 443, 442, 381, 124, 353, 1262, 1165, 894, + /* 500 */ 190, 126, 125, 211, 1289, 1290, 1293, 1262, 447, 30, + /* 510 */ 28, 997, 358, 1074, 1073, 93, 1165, 244, 1070, 896, + /* 520 */ 895, 1069, 349, 1397, 1350, 117, 1343, 1344, 416, 1348, + /* 530 */ 7, 919, 1068, 30, 28, 894, 120, 1067, 1066, 55, + /* 540 */ 1395, 244, 1345, 896, 95, 381, 897, 1212, 900, 901, + /* 550 */ 210, 258, 944, 447, 1288, 1262, 1262, 1158, 1233, 894, + /* 560 */ 1262, 1065, 1064, 1262, 1063, 895, 7, 1165, 917, 198, + /* 570 */ 121, 203, 1195, 93, 1262, 1304, 205, 1062, 141, 1262, + /* 580 */ 1262, 139, 365, 118, 1343, 1344, 1288, 1348, 204, 447, + /* 590 */ 1, 897, 367, 900, 901, 210, 1262, 944, 127, 1005, + /* 600 */ 1098, 895, 407, 1262, 1262, 918, 1262, 1304, 66, 1289, + /* 610 */ 1290, 1293, 1336, 447, 365, 143, 1335, 1332, 142, 1262, + /* 620 */ 145, 1212, 311, 144, 367, 895, 360, 897, 1262, 900, + /* 630 */ 901, 210, 1211, 944, 1093, 147, 1152, 1288, 146, 1091, + /* 640 */ 66, 1289, 1290, 1293, 1336, 1288, 1148, 355, 363, 1332, + /* 650 */ 322, 897, 364, 900, 901, 210, 313, 944, 1304, 67, + /* 660 */ 406, 316, 996, 320, 101, 365, 1304, 327, 896, 42, + /* 670 */ 904, 160, 1019, 365, 162, 367, 44, 43, 265, 1262, + /* 680 */ 122, 9, 8, 367, 894, 1054, 1055, 1262, 1060, 903, + /* 690 */ 173, 110, 1289, 1290, 1293, 32, 1072, 1130, 968, 66, + /* 700 */ 1289, 1290, 1293, 1336, 336, 1206, 1288, 121, 1333, 81, + /* 710 */ 166, 20, 80, 79, 78, 77, 76, 75, 74, 73, + /* 720 */ 72, 31, 29, 27, 26, 25, 1288, 1304, 294, 354, + /* 730 */ 1410, 1288, 32, 361, 365, 928, 907, 953, 447, 31, + /* 740 */ 29, 27, 26, 25, 367, 1282, 32, 1304, 1262, 880, + /* 750 */ 895, 243, 1304, 179, 365, 906, 181, 1280, 1366, 365, + /* 760 */ 215, 1289, 1290, 1293, 367, 251, 250, 98, 1262, 367, + /* 770 */ 373, 332, 1288, 1262, 350, 909, 897, 1288, 900, 901, + /* 780 */ 215, 1289, 1290, 1293, 1305, 110, 1289, 1290, 1293, 99, + /* 790 */ 2, 902, 187, 1304, 889, 175, 196, 931, 1304, 101, + /* 800 */ 365, 42, 801, 386, 796, 365, 829, 916, 1231, 99, + /* 810 */ 367, 1059, 833, 100, 1262, 367, 839, 241, 101, 1262, + /* 820 */ 123, 838, 245, 278, 1411, 270, 215, 1289, 1290, 1293, + /* 830 */ 277, 215, 1289, 1290, 1293, 90, 89, 88, 87, 86, + /* 840 */ 85, 84, 83, 82, 450, 382, 279, 99, 283, 1288, + /* 850 */ 102, 924, 22, 284, 128, 285, 923, 905, 195, 286, + /* 860 */ 1288, 91, 31, 29, 27, 26, 25, 439, 922, 194, + /* 870 */ 1304, 131, 45, 289, 134, 296, 298, 365, 1155, 775, + /* 880 */ 138, 1304, 301, 910, 326, 913, 901, 367, 365, 71, + /* 890 */ 1151, 1262, 140, 63, 308, 103, 188, 1288, 367, 104, + /* 900 */ 1153, 1149, 1262, 213, 1289, 1290, 1293, 105, 233, 106, + /* 910 */ 152, 921, 155, 328, 216, 1289, 1290, 1293, 1304, 228, + /* 920 */ 329, 337, 371, 1377, 901, 365, 377, 1288, 1367, 1376, + /* 930 */ 165, 5, 1357, 158, 334, 367, 161, 236, 341, 1262, + /* 940 */ 346, 148, 333, 330, 920, 300, 153, 1288, 1304, 4, + /* 950 */ 993, 208, 1289, 1290, 1293, 365, 229, 94, 227, 226, + /* 960 */ 1351, 299, 1142, 168, 33, 367, 302, 362, 1304, 1262, + /* 970 */ 1288, 238, 113, 359, 17, 365, 167, 1240, 1318, 369, + /* 980 */ 370, 217, 1289, 1290, 1293, 367, 374, 183, 1239, 1262, + /* 990 */ 174, 1304, 1394, 246, 1288, 1412, 375, 376, 365, 197, + /* 1000 */ 1288, 209, 1289, 1290, 1293, 56, 185, 54, 367, 1166, + /* 1010 */ 384, 199, 1262, 413, 427, 1304, 193, 446, 202, 191, + /* 1020 */ 39, 1304, 365, 412, 218, 1289, 1290, 1293, 365, 206, + /* 1030 */ 1256, 207, 367, 201, 892, 1250, 1262, 1249, 367, 891, + /* 1040 */ 263, 1288, 1262, 264, 414, 1248, 1247, 863, 1301, 1289, + /* 1050 */ 1290, 1293, 1288, 1224, 1300, 1289, 1290, 1293, 1140, 1223, + /* 1060 */ 97, 1222, 1304, 411, 410, 409, 1221, 408, 1220, 365, + /* 1070 */ 1219, 1218, 1217, 1304, 865, 1216, 1215, 1214, 1213, 367, + /* 1080 */ 365, 1104, 1246, 1262, 1237, 130, 1144, 745, 1103, 1288, + /* 1090 */ 367, 1101, 290, 291, 1262, 1299, 1289, 1290, 1293, 292, + /* 1100 */ 1288, 1090, 1089, 1086, 1146, 70, 224, 1289, 1290, 1293, + /* 1110 */ 1304, 846, 137, 1145, 426, 191, 844, 365, 774, 412, + /* 1120 */ 1099, 1304, 230, 773, 1094, 772, 1092, 367, 365, 231, + /* 1130 */ 1288, 1262, 314, 771, 769, 768, 232, 317, 367, 1085, + /* 1140 */ 414, 319, 1262, 223, 1289, 1290, 1293, 1084, 68, 321, + /* 1150 */ 1245, 1304, 1288, 1244, 225, 1289, 1290, 1293, 365, 411, + /* 1160 */ 410, 409, 36, 408, 1236, 154, 156, 48, 367, 14, + /* 1170 */ 1280, 15, 1262, 1304, 111, 3, 32, 37, 34, 10, + /* 1180 */ 365, 159, 1018, 164, 222, 1289, 1290, 1293, 136, 51, + /* 1190 */ 367, 114, 163, 8, 1262, 1012, 170, 293, 49, 135, + /* 1200 */ 1011, 50, 19, 990, 989, 35, 212, 1289, 1290, 1293, + /* 1210 */ 1045, 310, 119, 305, 1040, 16, 309, 1039, 239, 149, + /* 1220 */ 1044, 306, 304, 47, 307, 1043, 133, 240, 929, 13, + /* 1230 */ 177, 178, 18, 1235, 186, 1016, 180, 182, 954, 52, + /* 1240 */ 184, 372, 53, 911, 38, 57, 385, 830, 253, 389, + /* 1250 */ 1279, 827, 189, 387, 383, 390, 392, 395, 824, 393, + /* 1260 */ 398, 807, 818, 396, 841, 816, 822, 399, 837, 58, + /* 1270 */ 59, 60, 132, 835, 765, 743, 129, 821, 415, 764, + /* 1280 */ 763, 405, 840, 762, 761, 760, 759, 820, 758, 757, + /* 1290 */ 819, 776, 755, 754, 753, 752, 751, 750, 749, 748, + /* 1300 */ 1100, 436, 437, 1088, 1087, 438, 440, 441, 1083, 444, + /* 1310 */ 445, 1058, 898, 200, 448, 449, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 223, 188, 240, 241, 219, 219, 228, 222, 231, 232, - /* 10 */ 225, 225, 12, 13, 14, 15, 16, 182, 188, 188, - /* 20 */ 1, 2, 209, 193, 193, 12, 13, 14, 15, 16, - /* 30 */ 200, 200, 188, 255, 181, 187, 183, 202, 188, 209, - /* 40 */ 209, 228, 182, 193, 209, 197, 268, 47, 0, 211, - /* 50 */ 272, 238, 204, 209, 219, 20, 218, 219, 223, 209, - /* 60 */ 47, 248, 249, 250, 201, 252, 0, 190, 255, 69, - /* 70 */ 235, 236, 237, 238, 239, 212, 199, 77, 243, 244, - /* 80 */ 245, 268, 238, 223, 207, 272, 191, 192, 69, 254, - /* 90 */ 77, 247, 248, 249, 250, 63, 252, 49, 50, 51, + /* 0 */ 224, 220, 182, 204, 223, 256, 190, 226, 232, 233, + /* 10 */ 203, 182, 12, 13, 14, 15, 16, 210, 269, 181, + /* 20 */ 188, 183, 273, 203, 208, 12, 13, 14, 15, 16, + /* 30 */ 210, 20, 203, 12, 13, 14, 15, 16, 207, 210, + /* 40 */ 220, 204, 210, 20, 224, 238, 22, 47, 0, 220, + /* 50 */ 14, 15, 16, 224, 203, 224, 236, 237, 238, 239, + /* 60 */ 47, 210, 38, 232, 233, 236, 237, 238, 239, 240, + /* 70 */ 70, 239, 20, 244, 245, 246, 241, 242, 78, 0, + /* 80 */ 248, 249, 250, 251, 203, 253, 69, 258, 268, 238, + /* 90 */ 209, 78, 69, 264, 265, 214, 79, 49, 50, 51, /* 100 */ 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, - /* 110 */ 62, 63, 64, 65, 66, 49, 116, 51, 20, 20, - /* 120 */ 54, 22, 20, 57, 179, 59, 60, 21, 62, 116, - /* 130 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 40, - /* 140 */ 108, 109, 142, 143, 144, 145, 146, 147, 148, 149, - /* 150 */ 150, 151, 14, 15, 16, 142, 143, 144, 145, 146, - /* 160 */ 147, 148, 149, 150, 151, 182, 68, 46, 12, 13, - /* 170 */ 14, 15, 16, 228, 83, 84, 85, 86, 87, 88, - /* 180 */ 89, 90, 91, 92, 93, 202, 95, 96, 97, 98, - /* 190 */ 99, 100, 209, 12, 13, 14, 15, 16, 206, 202, - /* 200 */ 255, 3, 219, 182, 12, 13, 223, 129, 182, 131, - /* 210 */ 213, 228, 20, 268, 22, 223, 255, 272, 235, 236, - /* 220 */ 237, 238, 239, 231, 232, 69, 243, 244, 202, 268, - /* 230 */ 38, 190, 154, 272, 20, 209, 120, 188, 255, 47, - /* 240 */ 12, 13, 193, 57, 223, 219, 209, 61, 207, 223, - /* 250 */ 22, 268, 154, 216, 182, 272, 154, 182, 209, 20, - /* 260 */ 68, 235, 236, 237, 238, 239, 38, 188, 82, 243, - /* 270 */ 244, 245, 193, 188, 202, 159, 160, 12, 13, 14, - /* 280 */ 206, 209, 68, 257, 92, 20, 43, 22, 209, 263, - /* 290 */ 264, 219, 12, 13, 202, 223, 104, 223, 223, 214, - /* 300 */ 20, 209, 22, 38, 123, 231, 232, 235, 236, 237, - /* 310 */ 238, 239, 47, 0, 182, 243, 244, 20, 38, 132, - /* 320 */ 92, 20, 130, 188, 132, 133, 134, 47, 136, 237, - /* 330 */ 182, 154, 104, 68, 21, 185, 186, 24, 25, 26, - /* 340 */ 27, 28, 29, 30, 31, 32, 154, 0, 68, 0, - /* 350 */ 163, 164, 165, 166, 167, 223, 175, 92, 130, 202, - /* 360 */ 132, 133, 188, 228, 182, 182, 209, 193, 170, 104, - /* 370 */ 20, 223, 92, 24, 25, 26, 27, 28, 29, 30, - /* 380 */ 31, 32, 233, 209, 104, 202, 233, 0, 182, 46, - /* 390 */ 255, 182, 209, 46, 237, 130, 153, 132, 133, 134, - /* 400 */ 251, 136, 219, 268, 251, 223, 223, 272, 202, 20, - /* 410 */ 130, 182, 132, 133, 134, 209, 136, 182, 235, 236, - /* 420 */ 237, 238, 239, 122, 202, 219, 243, 244, 245, 223, - /* 430 */ 208, 202, 223, 46, 188, 213, 233, 22, 209, 4, - /* 440 */ 182, 235, 236, 237, 238, 239, 187, 264, 219, 243, - /* 450 */ 244, 245, 223, 38, 251, 209, 116, 20, 223, 81, - /* 460 */ 254, 12, 13, 204, 235, 236, 237, 238, 239, 20, - /* 470 */ 182, 22, 243, 244, 245, 0, 21, 202, 12, 13, - /* 480 */ 14, 223, 142, 254, 238, 210, 20, 38, 22, 34, - /* 490 */ 202, 151, 12, 13, 248, 249, 250, 209, 252, 79, - /* 500 */ 20, 182, 22, 195, 38, 194, 198, 219, 182, 188, - /* 510 */ 182, 223, 72, 202, 193, 75, 228, 68, 38, 72, - /* 520 */ 182, 210, 75, 235, 236, 237, 238, 69, 35, 202, - /* 530 */ 209, 183, 57, 182, 68, 208, 61, 12, 13, 81, - /* 540 */ 213, 92, 223, 255, 202, 20, 192, 22, 68, 223, - /* 550 */ 57, 223, 174, 104, 61, 213, 268, 82, 92, 122, - /* 560 */ 272, 223, 203, 38, 71, 14, 73, 74, 182, 76, - /* 570 */ 104, 20, 92, 203, 223, 82, 101, 102, 103, 130, - /* 580 */ 105, 132, 133, 134, 104, 136, 72, 188, 202, 75, - /* 590 */ 155, 182, 193, 68, 81, 209, 130, 203, 132, 133, - /* 600 */ 134, 72, 136, 154, 75, 219, 152, 153, 209, 223, - /* 610 */ 130, 202, 132, 133, 134, 188, 136, 92, 209, 194, - /* 620 */ 193, 235, 236, 237, 238, 239, 203, 202, 219, 104, - /* 630 */ 244, 202, 223, 18, 182, 210, 209, 208, 23, 1, - /* 640 */ 2, 182, 213, 182, 235, 236, 237, 238, 239, 182, - /* 650 */ 35, 188, 243, 244, 182, 130, 203, 132, 133, 134, - /* 660 */ 45, 136, 135, 202, 137, 138, 139, 140, 141, 202, - /* 670 */ 209, 69, 209, 188, 202, 223, 209, 182, 193, 38, - /* 680 */ 219, 209, 223, 81, 223, 172, 219, 182, 182, 275, - /* 690 */ 223, 219, 0, 226, 209, 223, 235, 236, 237, 238, - /* 700 */ 182, 238, 235, 236, 237, 238, 182, 235, 236, 237, - /* 710 */ 238, 248, 249, 250, 22, 252, 194, 182, 223, 69, - /* 720 */ 202, 106, 177, 178, 202, 47, 202, 209, 223, 223, - /* 730 */ 182, 81, 210, 209, 273, 274, 22, 219, 123, 124, - /* 740 */ 125, 223, 127, 219, 226, 104, 274, 223, 266, 212, - /* 750 */ 202, 260, 38, 235, 236, 237, 238, 209, 223, 235, - /* 760 */ 236, 237, 238, 20, 69, 69, 68, 219, 182, 154, - /* 770 */ 27, 223, 0, 30, 226, 38, 81, 81, 80, 19, - /* 780 */ 69, 185, 39, 235, 236, 237, 238, 2, 202, 234, - /* 790 */ 202, 267, 81, 33, 22, 209, 36, 12, 13, 14, - /* 800 */ 15, 16, 42, 2, 44, 219, 92, 0, 69, 223, - /* 810 */ 132, 182, 226, 12, 13, 14, 15, 16, 104, 253, - /* 820 */ 81, 235, 236, 237, 238, 69, 68, 67, 69, 22, - /* 830 */ 70, 202, 269, 69, 256, 128, 78, 81, 209, 69, - /* 840 */ 81, 104, 182, 229, 130, 81, 132, 133, 219, 20, - /* 850 */ 107, 81, 223, 110, 111, 112, 113, 114, 69, 188, - /* 860 */ 115, 101, 202, 69, 235, 236, 237, 238, 69, 209, - /* 870 */ 81, 217, 69, 182, 215, 81, 215, 188, 118, 219, - /* 880 */ 81, 121, 182, 223, 81, 20, 12, 13, 14, 15, - /* 890 */ 16, 69, 116, 202, 227, 235, 236, 237, 238, 190, - /* 900 */ 209, 20, 202, 81, 182, 220, 209, 190, 190, 209, - /* 910 */ 219, 188, 20, 182, 223, 190, 184, 202, 202, 219, - /* 920 */ 184, 202, 202, 223, 202, 187, 235, 236, 237, 238, - /* 930 */ 202, 209, 202, 202, 0, 235, 236, 237, 238, 188, - /* 940 */ 209, 219, 202, 182, 202, 223, 202, 220, 202, 202, - /* 950 */ 219, 182, 187, 227, 223, 20, 161, 235, 236, 237, - /* 960 */ 238, 209, 162, 202, 265, 133, 235, 236, 237, 238, - /* 970 */ 209, 202, 224, 223, 182, 234, 223, 265, 209, 224, - /* 980 */ 219, 169, 168, 262, 223, 223, 209, 157, 219, 156, - /* 990 */ 261, 57, 223, 259, 202, 61, 235, 236, 237, 238, - /* 1000 */ 153, 209, 20, 115, 235, 236, 237, 238, 233, 246, - /* 1010 */ 176, 219, 258, 182, 173, 223, 82, 171, 68, 223, - /* 1020 */ 242, 182, 224, 119, 209, 276, 224, 235, 236, 237, - /* 1030 */ 238, 223, 223, 202, 221, 101, 102, 103, 271, 105, - /* 1040 */ 209, 202, 187, 270, 182, 220, 198, 187, 209, 209, - /* 1050 */ 219, 68, 182, 187, 223, 4, 205, 188, 219, 184, - /* 1060 */ 196, 189, 223, 196, 202, 230, 235, 236, 237, 238, - /* 1070 */ 19, 209, 202, 180, 235, 236, 237, 238, 0, 209, - /* 1080 */ 104, 219, 130, 182, 33, 223, 50, 36, 0, 219, - /* 1090 */ 0, 126, 41, 223, 0, 44, 0, 235, 236, 237, - /* 1100 */ 238, 80, 0, 202, 0, 235, 236, 237, 238, 115, - /* 1110 */ 209, 0, 0, 0, 0, 0, 0, 22, 67, 33, - /* 1120 */ 219, 70, 36, 0, 223, 0, 0, 0, 42, 0, - /* 1130 */ 44, 0, 0, 0, 43, 48, 235, 236, 237, 238, - /* 1140 */ 0, 0, 36, 38, 43, 0, 0, 49, 0, 51, - /* 1150 */ 0, 77, 54, 67, 75, 57, 70, 59, 60, 38, - /* 1160 */ 62, 22, 38, 0, 0, 22, 38, 0, 38, 22, - /* 1170 */ 0, 22, 38, 38, 38, 38, 38, 0, 22, 0, - /* 1180 */ 22, 39, 38, 0, 0, 20, 122, 0, 68, 117, - /* 1190 */ 81, 81, 158, 158, 43, 152, 158, 4, 81, 81, - /* 1200 */ 81, 2, 80, 117, 120, 132, 0, 121, 277, 117, - /* 1210 */ 277, 104, 38, 38, 38, 277, 38, 277, 38, 38, - /* 1220 */ 277, 69, 69, 68, 22, 68, 277, 277, 69, 68, - /* 1230 */ 277, 69, 277, 277, 68, 81, 277, 69, 69, 277, - /* 1240 */ 80, 69, 277, 43, 277, 38, 38, 277, 277, 277, - /* 1250 */ 38, 80, 38, 68, 81, 69, 68, 38, 69, 69, - /* 1260 */ 68, 38, 80, 68, 68, 68, 22, 38, 0, 78, - /* 1270 */ 277, 68, 277, 69, 80, 22, 20, 38, 80, 69, - /* 1280 */ 79, 68, 22, 68, 38, 22, 69, 0, 68, 38, - /* 1290 */ 38, 69, 68, 38, 69, 48, 38, 38, 68, 94, - /* 1300 */ 38, 47, 38, 38, 38, 38, 68, 38, 38, 68, - /* 1310 */ 68, 0, 38, 38, 38, 43, 38, 38, 82, 36, - /* 1320 */ 94, 0, 38, 37, 22, 21, 94, 22, 22, 94, - /* 1330 */ 21, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1340 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1350 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1360 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1370 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1380 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1390 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1400 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1410 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1420 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1430 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1440 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1450 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1460 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1470 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1480 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1490 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, - /* 1500 */ 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, + /* 110 */ 62, 63, 64, 65, 66, 21, 116, 190, 24, 25, + /* 120 */ 26, 27, 28, 29, 30, 31, 32, 200, 49, 116, + /* 130 */ 51, 188, 20, 54, 22, 208, 57, 194, 59, 60, + /* 140 */ 188, 62, 142, 143, 144, 145, 146, 147, 148, 149, + /* 150 */ 150, 151, 40, 210, 182, 142, 143, 144, 145, 146, + /* 160 */ 147, 148, 149, 150, 151, 182, 20, 215, 179, 12, + /* 170 */ 13, 14, 15, 16, 122, 83, 84, 85, 86, 87, + /* 180 */ 88, 89, 90, 91, 92, 93, 203, 95, 96, 97, + /* 190 */ 98, 99, 100, 210, 202, 0, 224, 20, 12, 13, + /* 200 */ 129, 182, 131, 220, 188, 213, 20, 224, 22, 182, + /* 210 */ 194, 135, 229, 137, 138, 139, 140, 141, 229, 236, + /* 220 */ 237, 238, 239, 240, 38, 154, 210, 244, 245, 191, + /* 230 */ 203, 193, 195, 47, 12, 13, 14, 210, 20, 256, + /* 240 */ 203, 46, 20, 224, 22, 256, 69, 220, 211, 12, + /* 250 */ 13, 224, 269, 203, 132, 69, 273, 20, 269, 22, + /* 260 */ 38, 211, 273, 236, 237, 238, 239, 240, 203, 47, + /* 270 */ 203, 244, 245, 246, 209, 38, 209, 234, 92, 214, + /* 280 */ 123, 214, 207, 188, 47, 163, 164, 165, 166, 167, + /* 290 */ 104, 69, 265, 182, 20, 252, 4, 152, 153, 224, + /* 300 */ 154, 27, 212, 229, 30, 210, 69, 232, 233, 219, + /* 310 */ 220, 19, 43, 39, 92, 188, 130, 188, 132, 133, + /* 320 */ 134, 194, 136, 194, 229, 33, 104, 116, 36, 92, + /* 330 */ 256, 154, 175, 41, 239, 224, 44, 210, 182, 210, + /* 340 */ 154, 104, 46, 269, 249, 250, 251, 273, 253, 195, + /* 350 */ 20, 256, 130, 142, 132, 133, 134, 203, 136, 203, + /* 360 */ 68, 182, 151, 71, 269, 211, 210, 130, 273, 132, + /* 370 */ 133, 134, 188, 136, 20, 195, 220, 1, 2, 187, + /* 380 */ 224, 107, 203, 203, 110, 111, 112, 113, 114, 210, + /* 390 */ 198, 211, 236, 237, 238, 239, 240, 205, 188, 220, + /* 400 */ 244, 245, 246, 224, 194, 182, 57, 67, 188, 182, + /* 410 */ 61, 255, 0, 229, 194, 236, 237, 238, 239, 240, + /* 420 */ 210, 201, 153, 244, 245, 246, 203, 234, 12, 13, + /* 430 */ 210, 82, 120, 210, 255, 220, 20, 182, 22, 154, + /* 440 */ 256, 226, 182, 220, 188, 252, 70, 224, 182, 182, + /* 450 */ 194, 224, 122, 269, 38, 182, 63, 273, 46, 236, + /* 460 */ 237, 238, 239, 240, 188, 182, 210, 244, 245, 246, + /* 470 */ 203, 159, 160, 12, 13, 14, 188, 210, 255, 224, + /* 480 */ 3, 20, 194, 22, 224, 69, 210, 220, 210, 201, + /* 490 */ 224, 224, 185, 186, 188, 217, 229, 224, 210, 38, + /* 500 */ 194, 108, 109, 236, 237, 238, 239, 224, 92, 12, + /* 510 */ 13, 4, 172, 182, 182, 239, 210, 20, 182, 22, + /* 520 */ 104, 182, 188, 256, 234, 249, 250, 251, 46, 253, + /* 530 */ 69, 20, 182, 12, 13, 38, 269, 182, 182, 187, + /* 540 */ 273, 20, 252, 22, 210, 188, 130, 203, 132, 133, + /* 550 */ 134, 194, 136, 92, 182, 224, 224, 205, 214, 38, + /* 560 */ 224, 182, 182, 224, 182, 104, 69, 210, 20, 196, + /* 570 */ 154, 18, 199, 239, 224, 203, 23, 182, 73, 224, + /* 580 */ 224, 76, 210, 249, 250, 251, 182, 253, 35, 92, + /* 590 */ 69, 130, 220, 132, 133, 134, 224, 136, 45, 14, + /* 600 */ 0, 104, 80, 224, 224, 20, 224, 203, 236, 237, + /* 610 */ 238, 239, 240, 92, 210, 73, 244, 245, 76, 224, + /* 620 */ 73, 203, 22, 76, 220, 104, 67, 130, 224, 132, + /* 630 */ 133, 134, 214, 136, 0, 73, 204, 182, 76, 0, + /* 640 */ 236, 237, 238, 239, 240, 182, 204, 170, 244, 245, + /* 650 */ 21, 130, 47, 132, 133, 134, 22, 136, 203, 106, + /* 660 */ 204, 22, 155, 34, 67, 210, 203, 70, 22, 67, + /* 670 */ 38, 67, 70, 210, 70, 220, 123, 124, 125, 224, + /* 680 */ 127, 1, 2, 220, 38, 177, 178, 224, 0, 38, + /* 690 */ 276, 236, 237, 238, 239, 67, 183, 193, 70, 236, + /* 700 */ 237, 238, 239, 240, 267, 213, 182, 154, 245, 21, + /* 710 */ 261, 2, 24, 25, 26, 27, 28, 29, 30, 31, + /* 720 */ 32, 12, 13, 14, 15, 16, 182, 203, 185, 274, + /* 730 */ 275, 182, 67, 174, 210, 70, 104, 132, 92, 12, + /* 740 */ 13, 14, 15, 16, 220, 69, 67, 203, 224, 70, + /* 750 */ 104, 227, 203, 67, 210, 104, 70, 81, 235, 210, + /* 760 */ 236, 237, 238, 239, 220, 12, 13, 67, 224, 220, + /* 770 */ 70, 227, 182, 224, 254, 22, 130, 182, 132, 133, + /* 780 */ 236, 237, 238, 239, 203, 236, 237, 238, 239, 67, + /* 790 */ 257, 38, 70, 203, 128, 270, 230, 70, 203, 67, + /* 800 */ 210, 67, 70, 67, 70, 210, 70, 20, 188, 67, + /* 810 */ 220, 0, 70, 67, 224, 220, 70, 227, 67, 224, + /* 820 */ 115, 70, 227, 116, 275, 218, 236, 237, 238, 239, + /* 830 */ 216, 236, 237, 238, 239, 24, 25, 26, 27, 28, + /* 840 */ 29, 30, 31, 32, 19, 92, 216, 67, 188, 182, + /* 850 */ 70, 20, 2, 228, 190, 210, 20, 104, 33, 221, + /* 860 */ 182, 36, 12, 13, 14, 15, 16, 42, 20, 44, + /* 870 */ 203, 190, 190, 188, 190, 184, 203, 210, 203, 38, + /* 880 */ 203, 203, 192, 130, 228, 132, 133, 220, 210, 188, + /* 890 */ 203, 224, 203, 68, 192, 203, 71, 182, 220, 203, + /* 900 */ 203, 203, 224, 236, 237, 238, 239, 203, 184, 203, + /* 910 */ 187, 20, 187, 210, 236, 237, 238, 239, 203, 35, + /* 920 */ 221, 162, 161, 266, 133, 210, 101, 182, 235, 266, + /* 930 */ 262, 169, 263, 225, 224, 220, 225, 224, 224, 224, + /* 940 */ 168, 57, 157, 118, 20, 61, 121, 182, 203, 156, + /* 950 */ 153, 236, 237, 238, 239, 210, 72, 210, 74, 75, + /* 960 */ 234, 77, 0, 247, 115, 220, 82, 173, 203, 224, + /* 970 */ 182, 176, 260, 171, 69, 210, 259, 225, 243, 224, + /* 980 */ 224, 236, 237, 238, 239, 220, 119, 210, 225, 224, + /* 990 */ 271, 203, 272, 224, 182, 277, 222, 221, 210, 199, + /* 1000 */ 182, 236, 237, 238, 239, 69, 187, 187, 220, 210, + /* 1010 */ 206, 188, 224, 192, 192, 203, 187, 184, 180, 57, + /* 1020 */ 231, 203, 210, 61, 236, 237, 238, 239, 210, 197, + /* 1030 */ 0, 197, 220, 189, 104, 0, 224, 0, 220, 130, + /* 1040 */ 50, 182, 224, 126, 82, 0, 0, 81, 236, 237, + /* 1050 */ 238, 239, 182, 0, 236, 237, 238, 239, 0, 0, + /* 1060 */ 115, 0, 203, 101, 102, 103, 0, 105, 0, 210, + /* 1070 */ 0, 0, 0, 203, 22, 0, 0, 0, 0, 220, + /* 1080 */ 210, 0, 0, 224, 0, 43, 0, 48, 0, 182, + /* 1090 */ 220, 0, 38, 36, 224, 236, 237, 238, 239, 43, + /* 1100 */ 182, 0, 0, 0, 0, 78, 236, 237, 238, 239, + /* 1110 */ 203, 38, 76, 0, 67, 57, 22, 210, 38, 61, + /* 1120 */ 0, 203, 22, 38, 0, 38, 0, 220, 210, 22, + /* 1130 */ 182, 224, 39, 38, 38, 38, 22, 38, 220, 0, + /* 1140 */ 82, 22, 224, 236, 237, 238, 239, 0, 20, 22, + /* 1150 */ 0, 203, 182, 0, 236, 237, 238, 239, 210, 101, + /* 1160 */ 102, 103, 122, 105, 0, 43, 117, 69, 220, 158, + /* 1170 */ 81, 158, 224, 203, 69, 67, 67, 67, 152, 158, + /* 1180 */ 210, 70, 70, 67, 236, 237, 238, 239, 33, 4, + /* 1190 */ 220, 36, 69, 2, 224, 70, 81, 42, 69, 44, + /* 1200 */ 70, 69, 67, 70, 70, 67, 236, 237, 238, 239, + /* 1210 */ 70, 49, 81, 51, 38, 67, 54, 38, 38, 57, + /* 1220 */ 38, 59, 60, 68, 62, 38, 71, 38, 70, 69, + /* 1230 */ 81, 70, 69, 0, 117, 70, 69, 69, 132, 69, + /* 1240 */ 43, 120, 69, 22, 69, 79, 38, 70, 38, 38, + /* 1250 */ 81, 70, 81, 69, 80, 69, 38, 38, 70, 69, + /* 1260 */ 38, 22, 70, 69, 38, 70, 94, 69, 38, 69, + /* 1270 */ 69, 69, 117, 22, 22, 48, 121, 94, 47, 38, + /* 1280 */ 38, 82, 104, 38, 38, 38, 38, 94, 38, 22, + /* 1290 */ 94, 38, 38, 38, 38, 38, 38, 38, 38, 38, + /* 1300 */ 0, 38, 36, 0, 0, 43, 38, 37, 0, 22, + /* 1310 */ 21, 278, 22, 22, 21, 20, 278, 278, 278, 278, + /* 1320 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1330 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1340 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1350 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1360 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1370 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1380 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1390 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1400 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1410 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1420 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1430 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1440 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1450 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1460 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1470 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1480 */ 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, + /* 1490 */ 278, 278, 278, 278, 278, }; -#define YY_SHIFT_COUNT (445) +#define YY_SHIFT_COUNT (450) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1321) +#define YY_SHIFT_MAX (1308) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 615, 192, 265, 280, 280, 280, 280, 449, 280, 280, - /* 10 */ 480, 525, 98, 466, 480, 480, 480, 480, 480, 480, - /* 20 */ 480, 480, 480, 480, 480, 480, 480, 480, 480, 480, - /* 30 */ 480, 480, 480, 214, 214, 214, 102, 228, 228, 78, - /* 40 */ 35, 35, 228, 35, 35, 35, 35, 121, 239, 297, - /* 50 */ 297, 177, 350, 239, 35, 35, 239, 35, 239, 350, - /* 60 */ 239, 239, 35, 343, 0, 13, 13, 743, 106, 493, - /* 70 */ 714, 1098, 714, 714, 714, 714, 714, 714, 714, 714, - /* 80 */ 714, 714, 714, 714, 714, 714, 714, 714, 714, 714, - /* 90 */ 714, 99, 347, 301, 301, 301, 387, 389, 350, 239, - /* 100 */ 239, 239, 420, 91, 91, 91, 91, 91, 313, 66, - /* 110 */ 181, 187, 186, 116, 415, 437, 454, 243, 454, 551, - /* 120 */ 198, 435, 707, 829, 745, 776, 776, 829, 865, 121, - /* 130 */ 389, 881, 121, 121, 829, 121, 892, 239, 239, 239, - /* 140 */ 239, 239, 239, 239, 239, 239, 239, 239, 829, 892, - /* 150 */ 865, 343, 389, 881, 343, 935, 800, 795, 832, 800, - /* 160 */ 795, 832, 832, 812, 814, 830, 833, 847, 389, 982, - /* 170 */ 888, 834, 841, 846, 950, 239, 795, 832, 832, 795, - /* 180 */ 832, 904, 389, 881, 343, 420, 343, 389, 983, 829, - /* 190 */ 343, 892, 1331, 1331, 1331, 1331, 1331, 48, 349, 760, - /* 200 */ 1086, 1051, 475, 934, 785, 801, 527, 156, 874, 874, - /* 210 */ 874, 874, 874, 874, 874, 32, 19, 340, 138, 138, - /* 220 */ 138, 138, 440, 447, 514, 529, 692, 772, 807, 455, - /* 230 */ 458, 602, 650, 638, 545, 513, 378, 695, 678, 696, - /* 240 */ 698, 711, 739, 756, 759, 764, 641, 737, 770, 789, - /* 250 */ 794, 799, 803, 822, 758, 1078, 976, 952, 1088, 1090, - /* 260 */ 1036, 965, 1094, 1096, 1021, 1102, 1104, 994, 1111, 1112, - /* 270 */ 1113, 1114, 1115, 1116, 1095, 1123, 1125, 1126, 1127, 1129, - /* 280 */ 1131, 1132, 1091, 1133, 1087, 1140, 1141, 1105, 1106, 1101, - /* 290 */ 1145, 1146, 1148, 1150, 1074, 1079, 1121, 1124, 1139, 1163, - /* 300 */ 1128, 1130, 1134, 1135, 1136, 1137, 1138, 1164, 1143, 1167, - /* 310 */ 1147, 1142, 1170, 1149, 1144, 1177, 1156, 1179, 1158, 1165, - /* 320 */ 1183, 1184, 1064, 1187, 1120, 1151, 1072, 1109, 1110, 1034, - /* 330 */ 1152, 1117, 1153, 1155, 1157, 1159, 1161, 1162, 1118, 1122, - /* 340 */ 1166, 1119, 1035, 1168, 1169, 1160, 1043, 1154, 1171, 1172, - /* 350 */ 1173, 1038, 1193, 1174, 1175, 1176, 1178, 1180, 1181, 1199, - /* 360 */ 1073, 1182, 1186, 1185, 1188, 1189, 1190, 1192, 1195, 1084, - /* 370 */ 1196, 1206, 1200, 1092, 1197, 1191, 1194, 1198, 1202, 1203, - /* 380 */ 1201, 1204, 1207, 1208, 1213, 1210, 1214, 1215, 1217, 1219, - /* 390 */ 1220, 1222, 1223, 1224, 1225, 1229, 1230, 1205, 1226, 1232, - /* 400 */ 1235, 1244, 1236, 1238, 1239, 1107, 1241, 1242, 1212, 1246, - /* 410 */ 1253, 1247, 1254, 1260, 1251, 1252, 1255, 1258, 1259, 1262, - /* 420 */ 1264, 1263, 1265, 1266, 1267, 1270, 1274, 1275, 1276, 1278, - /* 430 */ 1279, 1268, 1269, 1283, 1272, 1287, 1284, 1286, 1311, 1321, - /* 440 */ 1302, 1304, 1305, 1306, 1309, 1256, + /* 0 */ 553, 186, 222, 237, 237, 237, 237, 416, 237, 237, + /* 10 */ 497, 521, 177, 461, 497, 497, 497, 497, 497, 497, + /* 20 */ 497, 497, 497, 497, 497, 497, 497, 497, 497, 497, + /* 30 */ 497, 497, 497, 23, 23, 23, 146, 753, 753, 71, + /* 40 */ 11, 11, 753, 11, 11, 11, 11, 296, 218, 354, + /* 50 */ 354, 285, 511, 218, 11, 11, 218, 11, 218, 511, + /* 60 */ 218, 218, 11, 482, 0, 13, 13, 274, 94, 884, + /* 70 */ 646, 1162, 646, 646, 646, 646, 646, 646, 646, 646, + /* 80 */ 646, 646, 646, 646, 646, 646, 646, 646, 646, 646, + /* 90 */ 646, 112, 195, 52, 52, 52, 412, 548, 511, 218, + /* 100 */ 218, 218, 522, 92, 92, 92, 92, 92, 688, 79, + /* 110 */ 157, 122, 349, 312, 24, 330, 145, 269, 145, 585, + /* 120 */ 477, 507, 666, 787, 705, 707, 707, 787, 831, 296, + /* 130 */ 548, 836, 296, 296, 787, 296, 848, 218, 218, 218, + /* 140 */ 218, 218, 218, 218, 218, 218, 218, 218, 841, 841, + /* 150 */ 787, 848, 831, 482, 548, 836, 482, 891, 759, 761, + /* 160 */ 791, 759, 761, 791, 791, 762, 772, 785, 793, 797, + /* 170 */ 548, 924, 849, 795, 794, 802, 905, 218, 761, 791, + /* 180 */ 791, 761, 791, 867, 548, 836, 482, 522, 482, 548, + /* 190 */ 936, 841, 841, 787, 482, 848, 1316, 1316, 1316, 1316, + /* 200 */ 1316, 48, 811, 825, 1155, 292, 962, 1058, 709, 850, + /* 210 */ 76, 727, 21, 21, 21, 21, 21, 21, 21, 393, + /* 220 */ 376, 211, 36, 36, 36, 36, 505, 542, 547, 562, + /* 230 */ 600, 634, 639, 629, 597, 602, 604, 680, 508, 340, + /* 240 */ 559, 628, 605, 665, 676, 679, 686, 700, 722, 732, + /* 250 */ 632, 651, 734, 736, 742, 746, 751, 780, 17, 1030, + /* 260 */ 930, 909, 1035, 1037, 990, 917, 1045, 1046, 966, 1053, + /* 270 */ 1059, 945, 1061, 1066, 1068, 1070, 1071, 1072, 1052, 1075, + /* 280 */ 1076, 1077, 1078, 1081, 1082, 1084, 1042, 1086, 1039, 1088, + /* 290 */ 1091, 1054, 1057, 1056, 1101, 1102, 1103, 1104, 1027, 1036, + /* 300 */ 1073, 1047, 1094, 1113, 1080, 1085, 1087, 1095, 1047, 1096, + /* 310 */ 1097, 1120, 1100, 1124, 1107, 1093, 1126, 1114, 1099, 1139, + /* 320 */ 1119, 1147, 1127, 1128, 1150, 1153, 1040, 1164, 1098, 1122, + /* 330 */ 1049, 1108, 1109, 1011, 1111, 1110, 1112, 1105, 1123, 1125, + /* 340 */ 1129, 1130, 1116, 1089, 1132, 1135, 1013, 1133, 1134, 1115, + /* 350 */ 1026, 1138, 1131, 1140, 1148, 1021, 1185, 1176, 1179, 1180, + /* 360 */ 1182, 1187, 1189, 1191, 1106, 1149, 1158, 1160, 1163, 1161, + /* 370 */ 1165, 1167, 1168, 1121, 1170, 1233, 1197, 1117, 1173, 1166, + /* 380 */ 1169, 1171, 1221, 1175, 1174, 1177, 1208, 1210, 1184, 1181, + /* 390 */ 1211, 1186, 1188, 1218, 1190, 1192, 1219, 1194, 1195, 1222, + /* 400 */ 1198, 1172, 1183, 1193, 1196, 1239, 1199, 1200, 1226, 1178, + /* 410 */ 1201, 1202, 1230, 1047, 1251, 1227, 1231, 1252, 1241, 1242, + /* 420 */ 1245, 1246, 1247, 1248, 1250, 1267, 1253, 1047, 1254, 1255, + /* 430 */ 1256, 1257, 1258, 1259, 1260, 1261, 1300, 1263, 1266, 1262, + /* 440 */ 1303, 1268, 1270, 1304, 1308, 1287, 1289, 1290, 1291, 1293, + /* 450 */ 1295, }; -#define YY_REDUCE_COUNT (196) -#define YY_REDUCE_MIN (-238) -#define YY_REDUCE_MAX (901) +#define YY_REDUCE_COUNT (200) +#define YY_REDUCE_MIN (-251) +#define YY_REDUCE_MAX (970) static const short yy_reduce_ofst[] = { - /* 0 */ -55, -17, 26, 183, -165, 206, 229, 288, 72, 409, - /* 10 */ 461, 386, -187, 467, 518, 524, 472, 548, 586, 629, - /* 20 */ 660, 691, 700, 722, 731, 761, 769, 792, 831, 839, - /* 30 */ 862, 870, 901, -156, 246, 463, 135, -8, 74, -222, - /* 40 */ -170, -169, -223, -150, 49, 79, 174, -123, 222, 92, - /* 50 */ 157, -39, -215, 311, 321, 399, 327, 427, 425, -162, - /* 60 */ 429, 522, 485, -152, -238, -238, -238, 85, -147, -137, - /* 70 */ -140, -105, 21, 75, 132, 148, 182, 209, 235, 258, - /* 80 */ 319, 326, 328, 338, 351, 452, 459, 495, 505, 506, - /* 90 */ 535, 150, 41, 149, 153, 203, 259, 37, -214, 275, - /* 100 */ -3, 342, 308, 359, 370, 394, 423, 453, 348, 354, - /* 110 */ 414, 482, 537, 491, 596, 555, 566, 566, 566, 588, - /* 120 */ 563, 578, 614, 671, 654, 659, 661, 689, 667, 709, - /* 130 */ 697, 685, 717, 718, 723, 725, 732, 715, 716, 719, - /* 140 */ 720, 728, 730, 740, 742, 744, 746, 747, 751, 736, - /* 150 */ 726, 738, 752, 727, 765, 741, 699, 748, 750, 712, - /* 160 */ 755, 753, 762, 721, 729, 734, 754, 566, 777, 775, - /* 170 */ 763, 749, 767, 773, 778, 588, 798, 796, 808, 802, - /* 180 */ 809, 813, 815, 825, 855, 848, 860, 840, 851, 869, - /* 190 */ 866, 875, 835, 864, 867, 872, 893, + /* 0 */ -11, -17, -171, 27, 156, 179, 223, 267, 372, 404, + /* 10 */ 455, 463, 95, 524, 544, -180, 549, 590, 595, 667, + /* 20 */ 678, 715, 745, 765, 788, 812, 818, 859, 870, 907, + /* 30 */ 918, 948, 970, -168, 276, 334, 184, -169, 75, 74, + /* 40 */ 220, 288, -224, -57, 16, 127, 129, -73, -119, -193, + /* 50 */ -149, -251, -219, 37, 210, 256, 65, 306, 154, 90, + /* 60 */ 67, 180, 357, 192, -165, -165, -165, -48, -162, -8, + /* 70 */ -28, 38, 19, 111, 227, 255, 260, 266, 273, 283, + /* 80 */ 331, 332, 336, 339, 350, 355, 356, 379, 380, 382, + /* 90 */ 395, 307, -184, 43, 193, 290, 352, 278, 215, 50, + /* 100 */ 344, 418, 373, -201, -163, 432, 442, 456, 513, 504, + /* 110 */ 414, 437, 492, 449, 543, 523, 520, 520, 520, 581, + /* 120 */ 525, 533, 566, 620, 607, 614, 630, 660, 625, 664, + /* 130 */ 645, 638, 681, 682, 685, 684, 691, 673, 675, 677, + /* 140 */ 687, 689, 692, 696, 697, 698, 704, 706, 690, 702, + /* 150 */ 701, 724, 656, 723, 703, 699, 725, 693, 657, 708, + /* 160 */ 710, 663, 711, 713, 714, 669, 668, 712, 717, 520, + /* 170 */ 747, 726, 716, 718, 720, 719, 735, 581, 752, 755, + /* 180 */ 756, 763, 769, 774, 777, 776, 819, 800, 820, 799, + /* 190 */ 804, 821, 822, 823, 829, 833, 789, 832, 834, 844, + /* 200 */ 838, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 10 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 20 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 30 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 40 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1104, 1051, 1051, - /* 50 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 60 */ 1051, 1051, 1051, 1102, 1051, 1331, 1051, 1218, 1051, 1051, - /* 70 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 80 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 90 */ 1051, 1051, 1104, 1342, 1342, 1342, 1102, 1051, 1051, 1051, - /* 100 */ 1051, 1051, 1187, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 110 */ 1406, 1051, 1140, 1366, 1051, 1358, 1334, 1348, 1335, 1051, - /* 120 */ 1391, 1351, 1244, 1051, 1223, 1220, 1220, 1051, 1051, 1104, - /* 130 */ 1051, 1051, 1104, 1104, 1051, 1104, 1051, 1051, 1051, 1051, - /* 140 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 150 */ 1051, 1102, 1051, 1051, 1102, 1051, 1373, 1371, 1051, 1373, - /* 160 */ 1371, 1051, 1051, 1385, 1381, 1364, 1362, 1348, 1051, 1051, - /* 170 */ 1051, 1409, 1397, 1393, 1051, 1051, 1371, 1051, 1051, 1371, - /* 180 */ 1051, 1231, 1051, 1051, 1102, 1051, 1102, 1051, 1156, 1051, - /* 190 */ 1102, 1051, 1246, 1190, 1190, 1105, 1056, 1051, 1051, 1051, - /* 200 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1296, 1384, - /* 210 */ 1383, 1295, 1308, 1307, 1306, 1051, 1051, 1051, 1290, 1291, - /* 220 */ 1289, 1288, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 230 */ 1051, 1051, 1051, 1332, 1051, 1394, 1398, 1051, 1051, 1051, - /* 240 */ 1274, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 250 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 260 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 270 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 280 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 290 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 300 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 310 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 320 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1355, 1365, 1051, - /* 330 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1274, - /* 340 */ 1051, 1382, 1051, 1341, 1337, 1051, 1051, 1333, 1051, 1051, - /* 350 */ 1392, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1327, - /* 360 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 370 */ 1051, 1051, 1051, 1051, 1051, 1051, 1273, 1051, 1051, 1051, - /* 380 */ 1051, 1051, 1051, 1051, 1184, 1051, 1051, 1051, 1051, 1051, - /* 390 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1169, 1167, 1166, - /* 400 */ 1165, 1051, 1162, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 410 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 420 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 430 */ 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, 1051, - /* 440 */ 1051, 1051, 1051, 1051, 1051, 1051, + /* 0 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 10 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 20 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 30 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 40 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1109, 1056, 1056, + /* 50 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 60 */ 1056, 1056, 1056, 1107, 1056, 1338, 1056, 1225, 1056, 1056, + /* 70 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 80 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 90 */ 1056, 1056, 1109, 1349, 1349, 1349, 1107, 1056, 1056, 1056, + /* 100 */ 1056, 1056, 1194, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 110 */ 1413, 1056, 1147, 1373, 1056, 1365, 1341, 1355, 1342, 1056, + /* 120 */ 1398, 1358, 1251, 1056, 1230, 1227, 1227, 1056, 1056, 1109, + /* 130 */ 1056, 1056, 1109, 1109, 1056, 1109, 1056, 1056, 1056, 1056, + /* 140 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 150 */ 1056, 1056, 1056, 1107, 1056, 1056, 1107, 1056, 1380, 1378, + /* 160 */ 1056, 1380, 1378, 1056, 1056, 1392, 1388, 1371, 1369, 1355, + /* 170 */ 1056, 1056, 1056, 1416, 1404, 1400, 1056, 1056, 1378, 1056, + /* 180 */ 1056, 1378, 1056, 1238, 1056, 1056, 1107, 1056, 1107, 1056, + /* 190 */ 1163, 1056, 1056, 1056, 1107, 1056, 1253, 1197, 1197, 1110, + /* 200 */ 1061, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 210 */ 1056, 1056, 1303, 1391, 1390, 1302, 1315, 1314, 1313, 1056, + /* 220 */ 1056, 1056, 1297, 1298, 1296, 1295, 1056, 1056, 1056, 1056, + /* 230 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1339, 1056, 1401, + /* 240 */ 1405, 1056, 1056, 1056, 1281, 1056, 1056, 1056, 1056, 1056, + /* 250 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 260 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 270 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 280 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 290 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 300 */ 1056, 1208, 1056, 1056, 1056, 1056, 1056, 1056, 1133, 1056, + /* 310 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 320 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 330 */ 1056, 1362, 1372, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 340 */ 1056, 1056, 1056, 1281, 1056, 1389, 1056, 1348, 1344, 1056, + /* 350 */ 1056, 1340, 1056, 1056, 1399, 1056, 1056, 1056, 1056, 1056, + /* 360 */ 1056, 1056, 1056, 1334, 1056, 1056, 1056, 1056, 1056, 1056, + /* 370 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 380 */ 1280, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1191, 1056, + /* 390 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 400 */ 1056, 1176, 1174, 1173, 1172, 1056, 1169, 1056, 1056, 1056, + /* 410 */ 1056, 1056, 1056, 1199, 1056, 1056, 1056, 1056, 1056, 1056, + /* 420 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1119, 1056, 1056, + /* 430 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 440 */ 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, + /* 450 */ 1056, }; /********** End of lemon-generated parsing tables *****************************/ @@ -793,21 +793,21 @@ static const char *const yyTokenName[] = { /* 64 */ "SINGLE_STABLE", /* 65 */ "STREAM_MODE", /* 66 */ "RETENTIONS", - /* 67 */ "TABLE", - /* 68 */ "NK_LP", - /* 69 */ "NK_RP", - /* 70 */ "STABLE", - /* 71 */ "ADD", - /* 72 */ "COLUMN", - /* 73 */ "MODIFY", - /* 74 */ "RENAME", - /* 75 */ "TAG", - /* 76 */ "SET", - /* 77 */ "NK_EQ", - /* 78 */ "USING", - /* 79 */ "TAGS", - /* 80 */ "NK_DOT", - /* 81 */ "NK_COMMA", + /* 67 */ "NK_COMMA", + /* 68 */ "TABLE", + /* 69 */ "NK_LP", + /* 70 */ "NK_RP", + /* 71 */ "STABLE", + /* 72 */ "ADD", + /* 73 */ "COLUMN", + /* 74 */ "MODIFY", + /* 75 */ "RENAME", + /* 76 */ "TAG", + /* 77 */ "SET", + /* 78 */ "NK_EQ", + /* 79 */ "USING", + /* 80 */ "TAGS", + /* 81 */ "NK_DOT", /* 82 */ "COMMENT", /* 83 */ "BOOL", /* 84 */ "TINYINT", @@ -918,91 +918,92 @@ static const char *const yyTokenName[] = { /* 189 */ "db_options", /* 190 */ "exists_opt", /* 191 */ "alter_db_options", - /* 192 */ "alter_db_option", - /* 193 */ "full_table_name", - /* 194 */ "column_def_list", - /* 195 */ "tags_def_opt", - /* 196 */ "table_options", - /* 197 */ "multi_create_clause", - /* 198 */ "tags_def", - /* 199 */ "multi_drop_clause", - /* 200 */ "alter_table_clause", - /* 201 */ "alter_table_options", - /* 202 */ "column_name", - /* 203 */ "type_name", - /* 204 */ "create_subtable_clause", - /* 205 */ "specific_tags_opt", - /* 206 */ "literal_list", - /* 207 */ "drop_table_clause", - /* 208 */ "col_name_list", - /* 209 */ "table_name", - /* 210 */ "column_def", - /* 211 */ "func_name_list", - /* 212 */ "alter_table_option", - /* 213 */ "col_name", - /* 214 */ "db_name_cond_opt", - /* 215 */ "like_pattern_opt", - /* 216 */ "table_name_cond", - /* 217 */ "from_db_opt", - /* 218 */ "func_name", - /* 219 */ "function_name", - /* 220 */ "index_name", - /* 221 */ "index_options", - /* 222 */ "func_list", - /* 223 */ "duration_literal", - /* 224 */ "sliding_opt", - /* 225 */ "func", - /* 226 */ "expression_list", - /* 227 */ "topic_name", - /* 228 */ "query_expression", - /* 229 */ "analyze_opt", - /* 230 */ "explain_options", - /* 231 */ "signed", - /* 232 */ "signed_literal", - /* 233 */ "table_alias", - /* 234 */ "column_alias", - /* 235 */ "expression", - /* 236 */ "pseudo_column", - /* 237 */ "column_reference", - /* 238 */ "subquery", - /* 239 */ "predicate", - /* 240 */ "compare_op", - /* 241 */ "in_op", - /* 242 */ "in_predicate_value", - /* 243 */ "boolean_value_expression", - /* 244 */ "boolean_primary", - /* 245 */ "common_expression", - /* 246 */ "from_clause", - /* 247 */ "table_reference_list", - /* 248 */ "table_reference", - /* 249 */ "table_primary", - /* 250 */ "joined_table", - /* 251 */ "alias_opt", - /* 252 */ "parenthesized_joined_table", - /* 253 */ "join_type", - /* 254 */ "search_condition", - /* 255 */ "query_specification", - /* 256 */ "set_quantifier_opt", - /* 257 */ "select_list", - /* 258 */ "where_clause_opt", - /* 259 */ "partition_by_clause_opt", - /* 260 */ "twindow_clause_opt", - /* 261 */ "group_by_clause_opt", - /* 262 */ "having_clause_opt", - /* 263 */ "select_sublist", - /* 264 */ "select_item", - /* 265 */ "fill_opt", - /* 266 */ "fill_mode", - /* 267 */ "group_by_list", - /* 268 */ "query_expression_body", - /* 269 */ "order_by_clause_opt", - /* 270 */ "slimit_clause_opt", - /* 271 */ "limit_clause_opt", - /* 272 */ "query_primary", - /* 273 */ "sort_specification_list", - /* 274 */ "sort_specification", - /* 275 */ "ordering_specification_opt", - /* 276 */ "null_ordering_opt", + /* 192 */ "integer_list", + /* 193 */ "alter_db_option", + /* 194 */ "full_table_name", + /* 195 */ "column_def_list", + /* 196 */ "tags_def_opt", + /* 197 */ "table_options", + /* 198 */ "multi_create_clause", + /* 199 */ "tags_def", + /* 200 */ "multi_drop_clause", + /* 201 */ "alter_table_clause", + /* 202 */ "alter_table_options", + /* 203 */ "column_name", + /* 204 */ "type_name", + /* 205 */ "create_subtable_clause", + /* 206 */ "specific_tags_opt", + /* 207 */ "literal_list", + /* 208 */ "drop_table_clause", + /* 209 */ "col_name_list", + /* 210 */ "table_name", + /* 211 */ "column_def", + /* 212 */ "func_name_list", + /* 213 */ "alter_table_option", + /* 214 */ "col_name", + /* 215 */ "db_name_cond_opt", + /* 216 */ "like_pattern_opt", + /* 217 */ "table_name_cond", + /* 218 */ "from_db_opt", + /* 219 */ "func_name", + /* 220 */ "function_name", + /* 221 */ "index_name", + /* 222 */ "index_options", + /* 223 */ "func_list", + /* 224 */ "duration_literal", + /* 225 */ "sliding_opt", + /* 226 */ "func", + /* 227 */ "expression_list", + /* 228 */ "topic_name", + /* 229 */ "query_expression", + /* 230 */ "analyze_opt", + /* 231 */ "explain_options", + /* 232 */ "signed", + /* 233 */ "signed_literal", + /* 234 */ "table_alias", + /* 235 */ "column_alias", + /* 236 */ "expression", + /* 237 */ "pseudo_column", + /* 238 */ "column_reference", + /* 239 */ "subquery", + /* 240 */ "predicate", + /* 241 */ "compare_op", + /* 242 */ "in_op", + /* 243 */ "in_predicate_value", + /* 244 */ "boolean_value_expression", + /* 245 */ "boolean_primary", + /* 246 */ "common_expression", + /* 247 */ "from_clause", + /* 248 */ "table_reference_list", + /* 249 */ "table_reference", + /* 250 */ "table_primary", + /* 251 */ "joined_table", + /* 252 */ "alias_opt", + /* 253 */ "parenthesized_joined_table", + /* 254 */ "join_type", + /* 255 */ "search_condition", + /* 256 */ "query_specification", + /* 257 */ "set_quantifier_opt", + /* 258 */ "select_list", + /* 259 */ "where_clause_opt", + /* 260 */ "partition_by_clause_opt", + /* 261 */ "twindow_clause_opt", + /* 262 */ "group_by_clause_opt", + /* 263 */ "having_clause_opt", + /* 264 */ "select_sublist", + /* 265 */ "select_item", + /* 266 */ "fill_opt", + /* 267 */ "fill_mode", + /* 268 */ "group_by_list", + /* 269 */ "query_expression_body", + /* 270 */ "order_by_clause_opt", + /* 271 */ "slimit_clause_opt", + /* 272 */ "limit_clause_opt", + /* 273 */ "query_primary", + /* 274 */ "sort_specification_list", + /* 275 */ "sort_specification", + /* 276 */ "ordering_specification_opt", + /* 277 */ "null_ordering_opt", }; #endif /* defined(YYCOVERAGE) || !defined(NDEBUG) */ @@ -1070,7 +1071,7 @@ static const char *const yyRuleName[] = { /* 57 */ "db_options ::= db_options FSYNC NK_INTEGER", /* 58 */ "db_options ::= db_options MAXROWS NK_INTEGER", /* 59 */ "db_options ::= db_options MINROWS NK_INTEGER", - /* 60 */ "db_options ::= db_options KEEP NK_INTEGER", + /* 60 */ "db_options ::= db_options KEEP integer_list", /* 61 */ "db_options ::= db_options PRECISION NK_STRING", /* 62 */ "db_options ::= db_options QUORUM NK_INTEGER", /* 63 */ "db_options ::= db_options REPLICA NK_INTEGER", @@ -1084,290 +1085,292 @@ static const char *const yyRuleName[] = { /* 71 */ "alter_db_options ::= alter_db_options alter_db_option", /* 72 */ "alter_db_option ::= BLOCKS NK_INTEGER", /* 73 */ "alter_db_option ::= FSYNC NK_INTEGER", - /* 74 */ "alter_db_option ::= KEEP NK_INTEGER", + /* 74 */ "alter_db_option ::= KEEP integer_list", /* 75 */ "alter_db_option ::= WAL NK_INTEGER", /* 76 */ "alter_db_option ::= QUORUM NK_INTEGER", /* 77 */ "alter_db_option ::= CACHELAST NK_INTEGER", /* 78 */ "alter_db_option ::= REPLICA NK_INTEGER", - /* 79 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", - /* 80 */ "cmd ::= CREATE TABLE multi_create_clause", - /* 81 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", - /* 82 */ "cmd ::= DROP TABLE multi_drop_clause", - /* 83 */ "cmd ::= DROP STABLE exists_opt full_table_name", - /* 84 */ "cmd ::= ALTER TABLE alter_table_clause", - /* 85 */ "cmd ::= ALTER STABLE alter_table_clause", - /* 86 */ "alter_table_clause ::= full_table_name alter_table_options", - /* 87 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", - /* 88 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", - /* 89 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", - /* 90 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", - /* 91 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", - /* 92 */ "alter_table_clause ::= full_table_name DROP TAG column_name", - /* 93 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", - /* 94 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", - /* 95 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", - /* 96 */ "multi_create_clause ::= create_subtable_clause", - /* 97 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 98 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", - /* 99 */ "multi_drop_clause ::= drop_table_clause", - /* 100 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", - /* 101 */ "drop_table_clause ::= exists_opt full_table_name", - /* 102 */ "specific_tags_opt ::=", - /* 103 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", - /* 104 */ "full_table_name ::= table_name", - /* 105 */ "full_table_name ::= db_name NK_DOT table_name", - /* 106 */ "column_def_list ::= column_def", - /* 107 */ "column_def_list ::= column_def_list NK_COMMA column_def", - /* 108 */ "column_def ::= column_name type_name", - /* 109 */ "column_def ::= column_name type_name COMMENT NK_STRING", - /* 110 */ "type_name ::= BOOL", - /* 111 */ "type_name ::= TINYINT", - /* 112 */ "type_name ::= SMALLINT", - /* 113 */ "type_name ::= INT", - /* 114 */ "type_name ::= INTEGER", - /* 115 */ "type_name ::= BIGINT", - /* 116 */ "type_name ::= FLOAT", - /* 117 */ "type_name ::= DOUBLE", - /* 118 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", - /* 119 */ "type_name ::= TIMESTAMP", - /* 120 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", - /* 121 */ "type_name ::= TINYINT UNSIGNED", - /* 122 */ "type_name ::= SMALLINT UNSIGNED", - /* 123 */ "type_name ::= INT UNSIGNED", - /* 124 */ "type_name ::= BIGINT UNSIGNED", - /* 125 */ "type_name ::= JSON", - /* 126 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", - /* 127 */ "type_name ::= MEDIUMBLOB", - /* 128 */ "type_name ::= BLOB", - /* 129 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", - /* 130 */ "type_name ::= DECIMAL", - /* 131 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", - /* 132 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", - /* 133 */ "tags_def_opt ::=", - /* 134 */ "tags_def_opt ::= tags_def", - /* 135 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", - /* 136 */ "table_options ::=", - /* 137 */ "table_options ::= table_options COMMENT NK_STRING", - /* 138 */ "table_options ::= table_options KEEP NK_INTEGER", - /* 139 */ "table_options ::= table_options TTL NK_INTEGER", - /* 140 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", - /* 141 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", - /* 142 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT", - /* 143 */ "table_options ::= table_options DELAY NK_INTEGER", - /* 144 */ "alter_table_options ::= alter_table_option", - /* 145 */ "alter_table_options ::= alter_table_options alter_table_option", - /* 146 */ "alter_table_option ::= COMMENT NK_STRING", - /* 147 */ "alter_table_option ::= KEEP NK_INTEGER", - /* 148 */ "alter_table_option ::= TTL NK_INTEGER", - /* 149 */ "col_name_list ::= col_name", - /* 150 */ "col_name_list ::= col_name_list NK_COMMA col_name", - /* 151 */ "col_name ::= column_name", - /* 152 */ "cmd ::= SHOW DNODES", - /* 153 */ "cmd ::= SHOW USERS", - /* 154 */ "cmd ::= SHOW DATABASES", - /* 155 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", - /* 156 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", - /* 157 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", - /* 158 */ "cmd ::= SHOW MNODES", - /* 159 */ "cmd ::= SHOW MODULES", - /* 160 */ "cmd ::= SHOW QNODES", - /* 161 */ "cmd ::= SHOW FUNCTIONS", - /* 162 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", - /* 163 */ "cmd ::= SHOW STREAMS", - /* 164 */ "db_name_cond_opt ::=", - /* 165 */ "db_name_cond_opt ::= db_name NK_DOT", - /* 166 */ "like_pattern_opt ::=", - /* 167 */ "like_pattern_opt ::= LIKE NK_STRING", - /* 168 */ "table_name_cond ::= table_name", - /* 169 */ "from_db_opt ::=", - /* 170 */ "from_db_opt ::= FROM db_name", - /* 171 */ "func_name_list ::= func_name", - /* 172 */ "func_name_list ::= func_name_list NK_COMMA col_name", - /* 173 */ "func_name ::= function_name", - /* 174 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", - /* 175 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", - /* 176 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", - /* 177 */ "index_options ::=", - /* 178 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", - /* 179 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", - /* 180 */ "func_list ::= func", - /* 181 */ "func_list ::= func_list NK_COMMA func", - /* 182 */ "func ::= function_name NK_LP expression_list NK_RP", - /* 183 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", - /* 184 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", - /* 185 */ "cmd ::= DROP TOPIC exists_opt topic_name", - /* 186 */ "cmd ::= DESC full_table_name", - /* 187 */ "cmd ::= DESCRIBE full_table_name", - /* 188 */ "cmd ::= RESET QUERY CACHE", - /* 189 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", - /* 190 */ "analyze_opt ::=", - /* 191 */ "analyze_opt ::= ANALYZE", - /* 192 */ "explain_options ::=", - /* 193 */ "explain_options ::= explain_options VERBOSE NK_BOOL", - /* 194 */ "explain_options ::= explain_options RATIO NK_FLOAT", - /* 195 */ "cmd ::= query_expression", - /* 196 */ "literal ::= NK_INTEGER", - /* 197 */ "literal ::= NK_FLOAT", - /* 198 */ "literal ::= NK_STRING", - /* 199 */ "literal ::= NK_BOOL", - /* 200 */ "literal ::= TIMESTAMP NK_STRING", - /* 201 */ "literal ::= duration_literal", - /* 202 */ "literal ::= NULL", - /* 203 */ "duration_literal ::= NK_VARIABLE", - /* 204 */ "signed ::= NK_INTEGER", - /* 205 */ "signed ::= NK_PLUS NK_INTEGER", - /* 206 */ "signed ::= NK_MINUS NK_INTEGER", - /* 207 */ "signed ::= NK_FLOAT", - /* 208 */ "signed ::= NK_PLUS NK_FLOAT", - /* 209 */ "signed ::= NK_MINUS NK_FLOAT", - /* 210 */ "signed_literal ::= signed", - /* 211 */ "signed_literal ::= NK_STRING", - /* 212 */ "signed_literal ::= NK_BOOL", - /* 213 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 214 */ "signed_literal ::= duration_literal", - /* 215 */ "signed_literal ::= NULL", - /* 216 */ "literal_list ::= signed_literal", - /* 217 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 218 */ "db_name ::= NK_ID", - /* 219 */ "table_name ::= NK_ID", - /* 220 */ "column_name ::= NK_ID", - /* 221 */ "function_name ::= NK_ID", - /* 222 */ "table_alias ::= NK_ID", - /* 223 */ "column_alias ::= NK_ID", - /* 224 */ "user_name ::= NK_ID", - /* 225 */ "index_name ::= NK_ID", - /* 226 */ "topic_name ::= NK_ID", - /* 227 */ "expression ::= literal", - /* 228 */ "expression ::= pseudo_column", - /* 229 */ "expression ::= column_reference", - /* 230 */ "expression ::= function_name NK_LP expression_list NK_RP", - /* 231 */ "expression ::= function_name NK_LP NK_STAR NK_RP", - /* 232 */ "expression ::= subquery", - /* 233 */ "expression ::= NK_LP expression NK_RP", - /* 234 */ "expression ::= NK_PLUS expression", - /* 235 */ "expression ::= NK_MINUS expression", - /* 236 */ "expression ::= expression NK_PLUS expression", - /* 237 */ "expression ::= expression NK_MINUS expression", - /* 238 */ "expression ::= expression NK_STAR expression", - /* 239 */ "expression ::= expression NK_SLASH expression", - /* 240 */ "expression ::= expression NK_REM expression", - /* 241 */ "expression_list ::= expression", - /* 242 */ "expression_list ::= expression_list NK_COMMA expression", - /* 243 */ "column_reference ::= column_name", - /* 244 */ "column_reference ::= table_name NK_DOT column_name", - /* 245 */ "pseudo_column ::= NK_UNDERLINE ROWTS", - /* 246 */ "pseudo_column ::= TBNAME", - /* 247 */ "pseudo_column ::= NK_UNDERLINE QSTARTTS", - /* 248 */ "pseudo_column ::= NK_UNDERLINE QENDTS", - /* 249 */ "pseudo_column ::= NK_UNDERLINE WSTARTTS", - /* 250 */ "pseudo_column ::= NK_UNDERLINE WENDTS", - /* 251 */ "pseudo_column ::= NK_UNDERLINE WDURATION", - /* 252 */ "predicate ::= expression compare_op expression", - /* 253 */ "predicate ::= expression BETWEEN expression AND expression", - /* 254 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 255 */ "predicate ::= expression IS NULL", - /* 256 */ "predicate ::= expression IS NOT NULL", - /* 257 */ "predicate ::= expression in_op in_predicate_value", - /* 258 */ "compare_op ::= NK_LT", - /* 259 */ "compare_op ::= NK_GT", - /* 260 */ "compare_op ::= NK_LE", - /* 261 */ "compare_op ::= NK_GE", - /* 262 */ "compare_op ::= NK_NE", - /* 263 */ "compare_op ::= NK_EQ", - /* 264 */ "compare_op ::= LIKE", - /* 265 */ "compare_op ::= NOT LIKE", - /* 266 */ "compare_op ::= MATCH", - /* 267 */ "compare_op ::= NMATCH", - /* 268 */ "in_op ::= IN", - /* 269 */ "in_op ::= NOT IN", - /* 270 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 271 */ "boolean_value_expression ::= boolean_primary", - /* 272 */ "boolean_value_expression ::= NOT boolean_primary", - /* 273 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 274 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 275 */ "boolean_primary ::= predicate", - /* 276 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 277 */ "common_expression ::= expression", - /* 278 */ "common_expression ::= boolean_value_expression", - /* 279 */ "from_clause ::= FROM table_reference_list", - /* 280 */ "table_reference_list ::= table_reference", - /* 281 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 282 */ "table_reference ::= table_primary", - /* 283 */ "table_reference ::= joined_table", - /* 284 */ "table_primary ::= table_name alias_opt", - /* 285 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 286 */ "table_primary ::= subquery alias_opt", - /* 287 */ "table_primary ::= parenthesized_joined_table", - /* 288 */ "alias_opt ::=", - /* 289 */ "alias_opt ::= table_alias", - /* 290 */ "alias_opt ::= AS table_alias", - /* 291 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 292 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 293 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 294 */ "join_type ::=", - /* 295 */ "join_type ::= INNER", - /* 296 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 297 */ "set_quantifier_opt ::=", - /* 298 */ "set_quantifier_opt ::= DISTINCT", - /* 299 */ "set_quantifier_opt ::= ALL", - /* 300 */ "select_list ::= NK_STAR", - /* 301 */ "select_list ::= select_sublist", - /* 302 */ "select_sublist ::= select_item", - /* 303 */ "select_sublist ::= select_sublist NK_COMMA select_item", - /* 304 */ "select_item ::= common_expression", - /* 305 */ "select_item ::= common_expression column_alias", - /* 306 */ "select_item ::= common_expression AS column_alias", - /* 307 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 308 */ "where_clause_opt ::=", - /* 309 */ "where_clause_opt ::= WHERE search_condition", - /* 310 */ "partition_by_clause_opt ::=", - /* 311 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 312 */ "twindow_clause_opt ::=", - /* 313 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 314 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", - /* 315 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 316 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 317 */ "sliding_opt ::=", - /* 318 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 319 */ "fill_opt ::=", - /* 320 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 321 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 322 */ "fill_mode ::= NONE", - /* 323 */ "fill_mode ::= PREV", - /* 324 */ "fill_mode ::= NULL", - /* 325 */ "fill_mode ::= LINEAR", - /* 326 */ "fill_mode ::= NEXT", - /* 327 */ "group_by_clause_opt ::=", - /* 328 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 329 */ "group_by_list ::= expression", - /* 330 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 331 */ "having_clause_opt ::=", - /* 332 */ "having_clause_opt ::= HAVING search_condition", - /* 333 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 334 */ "query_expression_body ::= query_primary", - /* 335 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 336 */ "query_primary ::= query_specification", - /* 337 */ "order_by_clause_opt ::=", - /* 338 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 339 */ "slimit_clause_opt ::=", - /* 340 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 341 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 342 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 343 */ "limit_clause_opt ::=", - /* 344 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 345 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 346 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 347 */ "subquery ::= NK_LP query_expression NK_RP", - /* 348 */ "search_condition ::= common_expression", - /* 349 */ "sort_specification_list ::= sort_specification", - /* 350 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 351 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 352 */ "ordering_specification_opt ::=", - /* 353 */ "ordering_specification_opt ::= ASC", - /* 354 */ "ordering_specification_opt ::= DESC", - /* 355 */ "null_ordering_opt ::=", - /* 356 */ "null_ordering_opt ::= NULLS FIRST", - /* 357 */ "null_ordering_opt ::= NULLS LAST", + /* 79 */ "integer_list ::= NK_INTEGER", + /* 80 */ "integer_list ::= integer_list NK_COMMA NK_INTEGER", + /* 81 */ "cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options", + /* 82 */ "cmd ::= CREATE TABLE multi_create_clause", + /* 83 */ "cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options", + /* 84 */ "cmd ::= DROP TABLE multi_drop_clause", + /* 85 */ "cmd ::= DROP STABLE exists_opt full_table_name", + /* 86 */ "cmd ::= ALTER TABLE alter_table_clause", + /* 87 */ "cmd ::= ALTER STABLE alter_table_clause", + /* 88 */ "alter_table_clause ::= full_table_name alter_table_options", + /* 89 */ "alter_table_clause ::= full_table_name ADD COLUMN column_name type_name", + /* 90 */ "alter_table_clause ::= full_table_name DROP COLUMN column_name", + /* 91 */ "alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name", + /* 92 */ "alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name", + /* 93 */ "alter_table_clause ::= full_table_name ADD TAG column_name type_name", + /* 94 */ "alter_table_clause ::= full_table_name DROP TAG column_name", + /* 95 */ "alter_table_clause ::= full_table_name MODIFY TAG column_name type_name", + /* 96 */ "alter_table_clause ::= full_table_name RENAME TAG column_name column_name", + /* 97 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal", + /* 98 */ "multi_create_clause ::= create_subtable_clause", + /* 99 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", + /* 100 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP", + /* 101 */ "multi_drop_clause ::= drop_table_clause", + /* 102 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", + /* 103 */ "drop_table_clause ::= exists_opt full_table_name", + /* 104 */ "specific_tags_opt ::=", + /* 105 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 106 */ "full_table_name ::= table_name", + /* 107 */ "full_table_name ::= db_name NK_DOT table_name", + /* 108 */ "column_def_list ::= column_def", + /* 109 */ "column_def_list ::= column_def_list NK_COMMA column_def", + /* 110 */ "column_def ::= column_name type_name", + /* 111 */ "column_def ::= column_name type_name COMMENT NK_STRING", + /* 112 */ "type_name ::= BOOL", + /* 113 */ "type_name ::= TINYINT", + /* 114 */ "type_name ::= SMALLINT", + /* 115 */ "type_name ::= INT", + /* 116 */ "type_name ::= INTEGER", + /* 117 */ "type_name ::= BIGINT", + /* 118 */ "type_name ::= FLOAT", + /* 119 */ "type_name ::= DOUBLE", + /* 120 */ "type_name ::= BINARY NK_LP NK_INTEGER NK_RP", + /* 121 */ "type_name ::= TIMESTAMP", + /* 122 */ "type_name ::= NCHAR NK_LP NK_INTEGER NK_RP", + /* 123 */ "type_name ::= TINYINT UNSIGNED", + /* 124 */ "type_name ::= SMALLINT UNSIGNED", + /* 125 */ "type_name ::= INT UNSIGNED", + /* 126 */ "type_name ::= BIGINT UNSIGNED", + /* 127 */ "type_name ::= JSON", + /* 128 */ "type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP", + /* 129 */ "type_name ::= MEDIUMBLOB", + /* 130 */ "type_name ::= BLOB", + /* 131 */ "type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP", + /* 132 */ "type_name ::= DECIMAL", + /* 133 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP", + /* 134 */ "type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP", + /* 135 */ "tags_def_opt ::=", + /* 136 */ "tags_def_opt ::= tags_def", + /* 137 */ "tags_def ::= TAGS NK_LP column_def_list NK_RP", + /* 138 */ "table_options ::=", + /* 139 */ "table_options ::= table_options COMMENT NK_STRING", + /* 140 */ "table_options ::= table_options KEEP integer_list", + /* 141 */ "table_options ::= table_options TTL NK_INTEGER", + /* 142 */ "table_options ::= table_options SMA NK_LP col_name_list NK_RP", + /* 143 */ "table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP", + /* 144 */ "table_options ::= table_options FILE_FACTOR NK_FLOAT", + /* 145 */ "table_options ::= table_options DELAY NK_INTEGER", + /* 146 */ "alter_table_options ::= alter_table_option", + /* 147 */ "alter_table_options ::= alter_table_options alter_table_option", + /* 148 */ "alter_table_option ::= COMMENT NK_STRING", + /* 149 */ "alter_table_option ::= KEEP integer_list", + /* 150 */ "alter_table_option ::= TTL NK_INTEGER", + /* 151 */ "col_name_list ::= col_name", + /* 152 */ "col_name_list ::= col_name_list NK_COMMA col_name", + /* 153 */ "col_name ::= column_name", + /* 154 */ "cmd ::= SHOW DNODES", + /* 155 */ "cmd ::= SHOW USERS", + /* 156 */ "cmd ::= SHOW DATABASES", + /* 157 */ "cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt", + /* 158 */ "cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt", + /* 159 */ "cmd ::= SHOW db_name_cond_opt VGROUPS", + /* 160 */ "cmd ::= SHOW MNODES", + /* 161 */ "cmd ::= SHOW MODULES", + /* 162 */ "cmd ::= SHOW QNODES", + /* 163 */ "cmd ::= SHOW FUNCTIONS", + /* 164 */ "cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt", + /* 165 */ "cmd ::= SHOW STREAMS", + /* 166 */ "db_name_cond_opt ::=", + /* 167 */ "db_name_cond_opt ::= db_name NK_DOT", + /* 168 */ "like_pattern_opt ::=", + /* 169 */ "like_pattern_opt ::= LIKE NK_STRING", + /* 170 */ "table_name_cond ::= table_name", + /* 171 */ "from_db_opt ::=", + /* 172 */ "from_db_opt ::= FROM db_name", + /* 173 */ "func_name_list ::= func_name", + /* 174 */ "func_name_list ::= func_name_list NK_COMMA col_name", + /* 175 */ "func_name ::= function_name", + /* 176 */ "cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options", + /* 177 */ "cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP", + /* 178 */ "cmd ::= DROP INDEX exists_opt index_name ON table_name", + /* 179 */ "index_options ::=", + /* 180 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt", + /* 181 */ "index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt", + /* 182 */ "func_list ::= func", + /* 183 */ "func_list ::= func_list NK_COMMA func", + /* 184 */ "func ::= function_name NK_LP expression_list NK_RP", + /* 185 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression", + /* 186 */ "cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name", + /* 187 */ "cmd ::= DROP TOPIC exists_opt topic_name", + /* 188 */ "cmd ::= DESC full_table_name", + /* 189 */ "cmd ::= DESCRIBE full_table_name", + /* 190 */ "cmd ::= RESET QUERY CACHE", + /* 191 */ "cmd ::= EXPLAIN analyze_opt explain_options query_expression", + /* 192 */ "analyze_opt ::=", + /* 193 */ "analyze_opt ::= ANALYZE", + /* 194 */ "explain_options ::=", + /* 195 */ "explain_options ::= explain_options VERBOSE NK_BOOL", + /* 196 */ "explain_options ::= explain_options RATIO NK_FLOAT", + /* 197 */ "cmd ::= query_expression", + /* 198 */ "literal ::= NK_INTEGER", + /* 199 */ "literal ::= NK_FLOAT", + /* 200 */ "literal ::= NK_STRING", + /* 201 */ "literal ::= NK_BOOL", + /* 202 */ "literal ::= TIMESTAMP NK_STRING", + /* 203 */ "literal ::= duration_literal", + /* 204 */ "literal ::= NULL", + /* 205 */ "duration_literal ::= NK_VARIABLE", + /* 206 */ "signed ::= NK_INTEGER", + /* 207 */ "signed ::= NK_PLUS NK_INTEGER", + /* 208 */ "signed ::= NK_MINUS NK_INTEGER", + /* 209 */ "signed ::= NK_FLOAT", + /* 210 */ "signed ::= NK_PLUS NK_FLOAT", + /* 211 */ "signed ::= NK_MINUS NK_FLOAT", + /* 212 */ "signed_literal ::= signed", + /* 213 */ "signed_literal ::= NK_STRING", + /* 214 */ "signed_literal ::= NK_BOOL", + /* 215 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 216 */ "signed_literal ::= duration_literal", + /* 217 */ "signed_literal ::= NULL", + /* 218 */ "literal_list ::= signed_literal", + /* 219 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 220 */ "db_name ::= NK_ID", + /* 221 */ "table_name ::= NK_ID", + /* 222 */ "column_name ::= NK_ID", + /* 223 */ "function_name ::= NK_ID", + /* 224 */ "table_alias ::= NK_ID", + /* 225 */ "column_alias ::= NK_ID", + /* 226 */ "user_name ::= NK_ID", + /* 227 */ "index_name ::= NK_ID", + /* 228 */ "topic_name ::= NK_ID", + /* 229 */ "expression ::= literal", + /* 230 */ "expression ::= pseudo_column", + /* 231 */ "expression ::= column_reference", + /* 232 */ "expression ::= function_name NK_LP expression_list NK_RP", + /* 233 */ "expression ::= function_name NK_LP NK_STAR NK_RP", + /* 234 */ "expression ::= subquery", + /* 235 */ "expression ::= NK_LP expression NK_RP", + /* 236 */ "expression ::= NK_PLUS expression", + /* 237 */ "expression ::= NK_MINUS expression", + /* 238 */ "expression ::= expression NK_PLUS expression", + /* 239 */ "expression ::= expression NK_MINUS expression", + /* 240 */ "expression ::= expression NK_STAR expression", + /* 241 */ "expression ::= expression NK_SLASH expression", + /* 242 */ "expression ::= expression NK_REM expression", + /* 243 */ "expression_list ::= expression", + /* 244 */ "expression_list ::= expression_list NK_COMMA expression", + /* 245 */ "column_reference ::= column_name", + /* 246 */ "column_reference ::= table_name NK_DOT column_name", + /* 247 */ "pseudo_column ::= NK_UNDERLINE ROWTS", + /* 248 */ "pseudo_column ::= TBNAME", + /* 249 */ "pseudo_column ::= NK_UNDERLINE QSTARTTS", + /* 250 */ "pseudo_column ::= NK_UNDERLINE QENDTS", + /* 251 */ "pseudo_column ::= NK_UNDERLINE WSTARTTS", + /* 252 */ "pseudo_column ::= NK_UNDERLINE WENDTS", + /* 253 */ "pseudo_column ::= NK_UNDERLINE WDURATION", + /* 254 */ "predicate ::= expression compare_op expression", + /* 255 */ "predicate ::= expression BETWEEN expression AND expression", + /* 256 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 257 */ "predicate ::= expression IS NULL", + /* 258 */ "predicate ::= expression IS NOT NULL", + /* 259 */ "predicate ::= expression in_op in_predicate_value", + /* 260 */ "compare_op ::= NK_LT", + /* 261 */ "compare_op ::= NK_GT", + /* 262 */ "compare_op ::= NK_LE", + /* 263 */ "compare_op ::= NK_GE", + /* 264 */ "compare_op ::= NK_NE", + /* 265 */ "compare_op ::= NK_EQ", + /* 266 */ "compare_op ::= LIKE", + /* 267 */ "compare_op ::= NOT LIKE", + /* 268 */ "compare_op ::= MATCH", + /* 269 */ "compare_op ::= NMATCH", + /* 270 */ "in_op ::= IN", + /* 271 */ "in_op ::= NOT IN", + /* 272 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 273 */ "boolean_value_expression ::= boolean_primary", + /* 274 */ "boolean_value_expression ::= NOT boolean_primary", + /* 275 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 276 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 277 */ "boolean_primary ::= predicate", + /* 278 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 279 */ "common_expression ::= expression", + /* 280 */ "common_expression ::= boolean_value_expression", + /* 281 */ "from_clause ::= FROM table_reference_list", + /* 282 */ "table_reference_list ::= table_reference", + /* 283 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 284 */ "table_reference ::= table_primary", + /* 285 */ "table_reference ::= joined_table", + /* 286 */ "table_primary ::= table_name alias_opt", + /* 287 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 288 */ "table_primary ::= subquery alias_opt", + /* 289 */ "table_primary ::= parenthesized_joined_table", + /* 290 */ "alias_opt ::=", + /* 291 */ "alias_opt ::= table_alias", + /* 292 */ "alias_opt ::= AS table_alias", + /* 293 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 294 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 295 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 296 */ "join_type ::=", + /* 297 */ "join_type ::= INNER", + /* 298 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 299 */ "set_quantifier_opt ::=", + /* 300 */ "set_quantifier_opt ::= DISTINCT", + /* 301 */ "set_quantifier_opt ::= ALL", + /* 302 */ "select_list ::= NK_STAR", + /* 303 */ "select_list ::= select_sublist", + /* 304 */ "select_sublist ::= select_item", + /* 305 */ "select_sublist ::= select_sublist NK_COMMA select_item", + /* 306 */ "select_item ::= common_expression", + /* 307 */ "select_item ::= common_expression column_alias", + /* 308 */ "select_item ::= common_expression AS column_alias", + /* 309 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 310 */ "where_clause_opt ::=", + /* 311 */ "where_clause_opt ::= WHERE search_condition", + /* 312 */ "partition_by_clause_opt ::=", + /* 313 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 314 */ "twindow_clause_opt ::=", + /* 315 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 316 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP", + /* 317 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 318 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 319 */ "sliding_opt ::=", + /* 320 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 321 */ "fill_opt ::=", + /* 322 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 323 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 324 */ "fill_mode ::= NONE", + /* 325 */ "fill_mode ::= PREV", + /* 326 */ "fill_mode ::= NULL", + /* 327 */ "fill_mode ::= LINEAR", + /* 328 */ "fill_mode ::= NEXT", + /* 329 */ "group_by_clause_opt ::=", + /* 330 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 331 */ "group_by_list ::= expression", + /* 332 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 333 */ "having_clause_opt ::=", + /* 334 */ "having_clause_opt ::= HAVING search_condition", + /* 335 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 336 */ "query_expression_body ::= query_primary", + /* 337 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 338 */ "query_primary ::= query_specification", + /* 339 */ "order_by_clause_opt ::=", + /* 340 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 341 */ "slimit_clause_opt ::=", + /* 342 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 343 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 344 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 345 */ "limit_clause_opt ::=", + /* 346 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 347 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 348 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 349 */ "subquery ::= NK_LP query_expression NK_RP", + /* 350 */ "search_condition ::= common_expression", + /* 351 */ "sort_specification_list ::= sort_specification", + /* 352 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 353 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 354 */ "ordering_specification_opt ::=", + /* 355 */ "ordering_specification_opt ::= ASC", + /* 356 */ "ordering_specification_opt ::= DESC", + /* 357 */ "null_ordering_opt ::=", + /* 358 */ "null_ordering_opt ::= NULLS FIRST", + /* 359 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -1498,56 +1501,56 @@ static void yy_destructor( case 182: /* literal */ case 189: /* db_options */ case 191: /* alter_db_options */ - case 193: /* full_table_name */ - case 196: /* table_options */ - case 200: /* alter_table_clause */ - case 201: /* alter_table_options */ - case 204: /* create_subtable_clause */ - case 207: /* drop_table_clause */ - case 210: /* column_def */ - case 213: /* col_name */ - case 214: /* db_name_cond_opt */ - case 215: /* like_pattern_opt */ - case 216: /* table_name_cond */ - case 217: /* from_db_opt */ - case 218: /* func_name */ - case 221: /* index_options */ - case 223: /* duration_literal */ - case 224: /* sliding_opt */ - case 225: /* func */ - case 228: /* query_expression */ - case 230: /* explain_options */ - case 231: /* signed */ - case 232: /* signed_literal */ - case 235: /* expression */ - case 236: /* pseudo_column */ - case 237: /* column_reference */ - case 238: /* subquery */ - case 239: /* predicate */ - case 242: /* in_predicate_value */ - case 243: /* boolean_value_expression */ - case 244: /* boolean_primary */ - case 245: /* common_expression */ - case 246: /* from_clause */ - case 247: /* table_reference_list */ - case 248: /* table_reference */ - case 249: /* table_primary */ - case 250: /* joined_table */ - case 252: /* parenthesized_joined_table */ - case 254: /* search_condition */ - case 255: /* query_specification */ - case 258: /* where_clause_opt */ - case 260: /* twindow_clause_opt */ - case 262: /* having_clause_opt */ - case 264: /* select_item */ - case 265: /* fill_opt */ - case 268: /* query_expression_body */ - case 270: /* slimit_clause_opt */ - case 271: /* limit_clause_opt */ - case 272: /* query_primary */ - case 274: /* sort_specification */ + case 194: /* full_table_name */ + case 197: /* table_options */ + case 201: /* alter_table_clause */ + case 202: /* alter_table_options */ + case 205: /* create_subtable_clause */ + case 208: /* drop_table_clause */ + case 211: /* column_def */ + case 214: /* col_name */ + case 215: /* db_name_cond_opt */ + case 216: /* like_pattern_opt */ + case 217: /* table_name_cond */ + case 218: /* from_db_opt */ + case 219: /* func_name */ + case 222: /* index_options */ + case 224: /* duration_literal */ + case 225: /* sliding_opt */ + case 226: /* func */ + case 229: /* query_expression */ + case 231: /* explain_options */ + case 232: /* signed */ + case 233: /* signed_literal */ + case 236: /* expression */ + case 237: /* pseudo_column */ + case 238: /* column_reference */ + case 239: /* subquery */ + case 240: /* predicate */ + case 243: /* in_predicate_value */ + case 244: /* boolean_value_expression */ + case 245: /* boolean_primary */ + case 246: /* common_expression */ + case 247: /* from_clause */ + case 248: /* table_reference_list */ + case 249: /* table_reference */ + case 250: /* table_primary */ + case 251: /* joined_table */ + case 253: /* parenthesized_joined_table */ + case 255: /* search_condition */ + case 256: /* query_specification */ + case 259: /* where_clause_opt */ + case 261: /* twindow_clause_opt */ + case 263: /* having_clause_opt */ + case 265: /* select_item */ + case 266: /* fill_opt */ + case 269: /* query_expression_body */ + case 271: /* slimit_clause_opt */ + case 272: /* limit_clause_opt */ + case 273: /* query_primary */ + case 275: /* sort_specification */ { - nodesDestroyNode((yypminor->yy46)); + nodesDestroyNode((yypminor->yy24)); } break; case 180: /* account_options */ @@ -1561,81 +1564,82 @@ static void yy_destructor( case 185: /* dnode_endpoint */ case 186: /* dnode_host_name */ case 188: /* db_name */ - case 202: /* column_name */ - case 209: /* table_name */ - case 219: /* function_name */ - case 220: /* index_name */ - case 227: /* topic_name */ - case 233: /* table_alias */ - case 234: /* column_alias */ - case 251: /* alias_opt */ + case 203: /* column_name */ + case 210: /* table_name */ + case 220: /* function_name */ + case 221: /* index_name */ + case 228: /* topic_name */ + case 234: /* table_alias */ + case 235: /* column_alias */ + case 252: /* alias_opt */ { } break; case 187: /* not_exists_opt */ case 190: /* exists_opt */ - case 229: /* analyze_opt */ - case 256: /* set_quantifier_opt */ + case 230: /* analyze_opt */ + case 257: /* set_quantifier_opt */ { } break; - case 192: /* alter_db_option */ - case 212: /* alter_table_option */ + case 192: /* integer_list */ + case 195: /* column_def_list */ + case 196: /* tags_def_opt */ + case 198: /* multi_create_clause */ + case 199: /* tags_def */ + case 200: /* multi_drop_clause */ + case 206: /* specific_tags_opt */ + case 207: /* literal_list */ + case 209: /* col_name_list */ + case 212: /* func_name_list */ + case 223: /* func_list */ + case 227: /* expression_list */ + case 258: /* select_list */ + case 260: /* partition_by_clause_opt */ + case 262: /* group_by_clause_opt */ + case 264: /* select_sublist */ + case 268: /* group_by_list */ + case 270: /* order_by_clause_opt */ + case 274: /* sort_specification_list */ +{ + nodesDestroyList((yypminor->yy504)); +} + break; + case 193: /* alter_db_option */ + case 213: /* alter_table_option */ { } break; - case 194: /* column_def_list */ - case 195: /* tags_def_opt */ - case 197: /* multi_create_clause */ - case 198: /* tags_def */ - case 199: /* multi_drop_clause */ - case 205: /* specific_tags_opt */ - case 206: /* literal_list */ - case 208: /* col_name_list */ - case 211: /* func_name_list */ - case 222: /* func_list */ - case 226: /* expression_list */ - case 257: /* select_list */ - case 259: /* partition_by_clause_opt */ - case 261: /* group_by_clause_opt */ - case 263: /* select_sublist */ - case 267: /* group_by_list */ - case 269: /* order_by_clause_opt */ - case 273: /* sort_specification_list */ -{ - nodesDestroyList((yypminor->yy194)); -} - break; - case 203: /* type_name */ + case 204: /* type_name */ { } break; - case 240: /* compare_op */ - case 241: /* in_op */ + case 241: /* compare_op */ + case 242: /* in_op */ { } break; - case 253: /* join_type */ + case 254: /* join_type */ { } break; - case 266: /* fill_mode */ + case 267: /* fill_mode */ { } break; - case 275: /* ordering_specification_opt */ + case 276: /* ordering_specification_opt */ { } break; - case 276: /* null_ordering_opt */ + case 277: /* null_ordering_opt */ { } @@ -1994,7 +1998,7 @@ static const struct { { 189, -3 }, /* (57) db_options ::= db_options FSYNC NK_INTEGER */ { 189, -3 }, /* (58) db_options ::= db_options MAXROWS NK_INTEGER */ { 189, -3 }, /* (59) db_options ::= db_options MINROWS NK_INTEGER */ - { 189, -3 }, /* (60) db_options ::= db_options KEEP NK_INTEGER */ + { 189, -3 }, /* (60) db_options ::= db_options KEEP integer_list */ { 189, -3 }, /* (61) db_options ::= db_options PRECISION NK_STRING */ { 189, -3 }, /* (62) db_options ::= db_options QUORUM NK_INTEGER */ { 189, -3 }, /* (63) db_options ::= db_options REPLICA NK_INTEGER */ @@ -2006,292 +2010,294 @@ static const struct { { 189, -3 }, /* (69) db_options ::= db_options RETENTIONS NK_STRING */ { 191, -1 }, /* (70) alter_db_options ::= alter_db_option */ { 191, -2 }, /* (71) alter_db_options ::= alter_db_options alter_db_option */ - { 192, -2 }, /* (72) alter_db_option ::= BLOCKS NK_INTEGER */ - { 192, -2 }, /* (73) alter_db_option ::= FSYNC NK_INTEGER */ - { 192, -2 }, /* (74) alter_db_option ::= KEEP NK_INTEGER */ - { 192, -2 }, /* (75) alter_db_option ::= WAL NK_INTEGER */ - { 192, -2 }, /* (76) alter_db_option ::= QUORUM NK_INTEGER */ - { 192, -2 }, /* (77) alter_db_option ::= CACHELAST NK_INTEGER */ - { 192, -2 }, /* (78) alter_db_option ::= REPLICA NK_INTEGER */ - { 179, -9 }, /* (79) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - { 179, -3 }, /* (80) cmd ::= CREATE TABLE multi_create_clause */ - { 179, -9 }, /* (81) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ - { 179, -3 }, /* (82) cmd ::= DROP TABLE multi_drop_clause */ - { 179, -4 }, /* (83) cmd ::= DROP STABLE exists_opt full_table_name */ - { 179, -3 }, /* (84) cmd ::= ALTER TABLE alter_table_clause */ - { 179, -3 }, /* (85) cmd ::= ALTER STABLE alter_table_clause */ - { 200, -2 }, /* (86) alter_table_clause ::= full_table_name alter_table_options */ - { 200, -5 }, /* (87) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ - { 200, -4 }, /* (88) alter_table_clause ::= full_table_name DROP COLUMN column_name */ - { 200, -5 }, /* (89) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ - { 200, -5 }, /* (90) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ - { 200, -5 }, /* (91) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ - { 200, -4 }, /* (92) alter_table_clause ::= full_table_name DROP TAG column_name */ - { 200, -5 }, /* (93) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ - { 200, -5 }, /* (94) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ - { 200, -6 }, /* (95) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ - { 197, -1 }, /* (96) multi_create_clause ::= create_subtable_clause */ - { 197, -2 }, /* (97) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 204, -9 }, /* (98) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ - { 199, -1 }, /* (99) multi_drop_clause ::= drop_table_clause */ - { 199, -2 }, /* (100) multi_drop_clause ::= multi_drop_clause drop_table_clause */ - { 207, -2 }, /* (101) drop_table_clause ::= exists_opt full_table_name */ - { 205, 0 }, /* (102) specific_tags_opt ::= */ - { 205, -3 }, /* (103) specific_tags_opt ::= NK_LP col_name_list NK_RP */ - { 193, -1 }, /* (104) full_table_name ::= table_name */ - { 193, -3 }, /* (105) full_table_name ::= db_name NK_DOT table_name */ - { 194, -1 }, /* (106) column_def_list ::= column_def */ - { 194, -3 }, /* (107) column_def_list ::= column_def_list NK_COMMA column_def */ - { 210, -2 }, /* (108) column_def ::= column_name type_name */ - { 210, -4 }, /* (109) column_def ::= column_name type_name COMMENT NK_STRING */ - { 203, -1 }, /* (110) type_name ::= BOOL */ - { 203, -1 }, /* (111) type_name ::= TINYINT */ - { 203, -1 }, /* (112) type_name ::= SMALLINT */ - { 203, -1 }, /* (113) type_name ::= INT */ - { 203, -1 }, /* (114) type_name ::= INTEGER */ - { 203, -1 }, /* (115) type_name ::= BIGINT */ - { 203, -1 }, /* (116) type_name ::= FLOAT */ - { 203, -1 }, /* (117) type_name ::= DOUBLE */ - { 203, -4 }, /* (118) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ - { 203, -1 }, /* (119) type_name ::= TIMESTAMP */ - { 203, -4 }, /* (120) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ - { 203, -2 }, /* (121) type_name ::= TINYINT UNSIGNED */ - { 203, -2 }, /* (122) type_name ::= SMALLINT UNSIGNED */ - { 203, -2 }, /* (123) type_name ::= INT UNSIGNED */ - { 203, -2 }, /* (124) type_name ::= BIGINT UNSIGNED */ - { 203, -1 }, /* (125) type_name ::= JSON */ - { 203, -4 }, /* (126) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ - { 203, -1 }, /* (127) type_name ::= MEDIUMBLOB */ - { 203, -1 }, /* (128) type_name ::= BLOB */ - { 203, -4 }, /* (129) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ - { 203, -1 }, /* (130) type_name ::= DECIMAL */ - { 203, -4 }, /* (131) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ - { 203, -6 }, /* (132) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ - { 195, 0 }, /* (133) tags_def_opt ::= */ - { 195, -1 }, /* (134) tags_def_opt ::= tags_def */ - { 198, -4 }, /* (135) tags_def ::= TAGS NK_LP column_def_list NK_RP */ - { 196, 0 }, /* (136) table_options ::= */ - { 196, -3 }, /* (137) table_options ::= table_options COMMENT NK_STRING */ - { 196, -3 }, /* (138) table_options ::= table_options KEEP NK_INTEGER */ - { 196, -3 }, /* (139) table_options ::= table_options TTL NK_INTEGER */ - { 196, -5 }, /* (140) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ - { 196, -5 }, /* (141) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ - { 196, -3 }, /* (142) table_options ::= table_options FILE_FACTOR NK_FLOAT */ - { 196, -3 }, /* (143) table_options ::= table_options DELAY NK_INTEGER */ - { 201, -1 }, /* (144) alter_table_options ::= alter_table_option */ - { 201, -2 }, /* (145) alter_table_options ::= alter_table_options alter_table_option */ - { 212, -2 }, /* (146) alter_table_option ::= COMMENT NK_STRING */ - { 212, -2 }, /* (147) alter_table_option ::= KEEP NK_INTEGER */ - { 212, -2 }, /* (148) alter_table_option ::= TTL NK_INTEGER */ - { 208, -1 }, /* (149) col_name_list ::= col_name */ - { 208, -3 }, /* (150) col_name_list ::= col_name_list NK_COMMA col_name */ - { 213, -1 }, /* (151) col_name ::= column_name */ - { 179, -2 }, /* (152) cmd ::= SHOW DNODES */ - { 179, -2 }, /* (153) cmd ::= SHOW USERS */ - { 179, -2 }, /* (154) cmd ::= SHOW DATABASES */ - { 179, -4 }, /* (155) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ - { 179, -4 }, /* (156) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ - { 179, -3 }, /* (157) cmd ::= SHOW db_name_cond_opt VGROUPS */ - { 179, -2 }, /* (158) cmd ::= SHOW MNODES */ - { 179, -2 }, /* (159) cmd ::= SHOW MODULES */ - { 179, -2 }, /* (160) cmd ::= SHOW QNODES */ - { 179, -2 }, /* (161) cmd ::= SHOW FUNCTIONS */ - { 179, -5 }, /* (162) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ - { 179, -2 }, /* (163) cmd ::= SHOW STREAMS */ - { 214, 0 }, /* (164) db_name_cond_opt ::= */ - { 214, -2 }, /* (165) db_name_cond_opt ::= db_name NK_DOT */ - { 215, 0 }, /* (166) like_pattern_opt ::= */ - { 215, -2 }, /* (167) like_pattern_opt ::= LIKE NK_STRING */ - { 216, -1 }, /* (168) table_name_cond ::= table_name */ - { 217, 0 }, /* (169) from_db_opt ::= */ - { 217, -2 }, /* (170) from_db_opt ::= FROM db_name */ - { 211, -1 }, /* (171) func_name_list ::= func_name */ - { 211, -3 }, /* (172) func_name_list ::= func_name_list NK_COMMA col_name */ - { 218, -1 }, /* (173) func_name ::= function_name */ - { 179, -8 }, /* (174) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ - { 179, -10 }, /* (175) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ - { 179, -6 }, /* (176) cmd ::= DROP INDEX exists_opt index_name ON table_name */ - { 221, 0 }, /* (177) index_options ::= */ - { 221, -9 }, /* (178) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ - { 221, -11 }, /* (179) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ - { 222, -1 }, /* (180) func_list ::= func */ - { 222, -3 }, /* (181) func_list ::= func_list NK_COMMA func */ - { 225, -4 }, /* (182) func ::= function_name NK_LP expression_list NK_RP */ - { 179, -6 }, /* (183) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ - { 179, -6 }, /* (184) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ - { 179, -4 }, /* (185) cmd ::= DROP TOPIC exists_opt topic_name */ - { 179, -2 }, /* (186) cmd ::= DESC full_table_name */ - { 179, -2 }, /* (187) cmd ::= DESCRIBE full_table_name */ - { 179, -3 }, /* (188) cmd ::= RESET QUERY CACHE */ - { 179, -4 }, /* (189) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ - { 229, 0 }, /* (190) analyze_opt ::= */ - { 229, -1 }, /* (191) analyze_opt ::= ANALYZE */ - { 230, 0 }, /* (192) explain_options ::= */ - { 230, -3 }, /* (193) explain_options ::= explain_options VERBOSE NK_BOOL */ - { 230, -3 }, /* (194) explain_options ::= explain_options RATIO NK_FLOAT */ - { 179, -1 }, /* (195) cmd ::= query_expression */ - { 182, -1 }, /* (196) literal ::= NK_INTEGER */ - { 182, -1 }, /* (197) literal ::= NK_FLOAT */ - { 182, -1 }, /* (198) literal ::= NK_STRING */ - { 182, -1 }, /* (199) literal ::= NK_BOOL */ - { 182, -2 }, /* (200) literal ::= TIMESTAMP NK_STRING */ - { 182, -1 }, /* (201) literal ::= duration_literal */ - { 182, -1 }, /* (202) literal ::= NULL */ - { 223, -1 }, /* (203) duration_literal ::= NK_VARIABLE */ - { 231, -1 }, /* (204) signed ::= NK_INTEGER */ - { 231, -2 }, /* (205) signed ::= NK_PLUS NK_INTEGER */ - { 231, -2 }, /* (206) signed ::= NK_MINUS NK_INTEGER */ - { 231, -1 }, /* (207) signed ::= NK_FLOAT */ - { 231, -2 }, /* (208) signed ::= NK_PLUS NK_FLOAT */ - { 231, -2 }, /* (209) signed ::= NK_MINUS NK_FLOAT */ - { 232, -1 }, /* (210) signed_literal ::= signed */ - { 232, -1 }, /* (211) signed_literal ::= NK_STRING */ - { 232, -1 }, /* (212) signed_literal ::= NK_BOOL */ - { 232, -2 }, /* (213) signed_literal ::= TIMESTAMP NK_STRING */ - { 232, -1 }, /* (214) signed_literal ::= duration_literal */ - { 232, -1 }, /* (215) signed_literal ::= NULL */ - { 206, -1 }, /* (216) literal_list ::= signed_literal */ - { 206, -3 }, /* (217) literal_list ::= literal_list NK_COMMA signed_literal */ - { 188, -1 }, /* (218) db_name ::= NK_ID */ - { 209, -1 }, /* (219) table_name ::= NK_ID */ - { 202, -1 }, /* (220) column_name ::= NK_ID */ - { 219, -1 }, /* (221) function_name ::= NK_ID */ - { 233, -1 }, /* (222) table_alias ::= NK_ID */ - { 234, -1 }, /* (223) column_alias ::= NK_ID */ - { 184, -1 }, /* (224) user_name ::= NK_ID */ - { 220, -1 }, /* (225) index_name ::= NK_ID */ - { 227, -1 }, /* (226) topic_name ::= NK_ID */ - { 235, -1 }, /* (227) expression ::= literal */ - { 235, -1 }, /* (228) expression ::= pseudo_column */ - { 235, -1 }, /* (229) expression ::= column_reference */ - { 235, -4 }, /* (230) expression ::= function_name NK_LP expression_list NK_RP */ - { 235, -4 }, /* (231) expression ::= function_name NK_LP NK_STAR NK_RP */ - { 235, -1 }, /* (232) expression ::= subquery */ - { 235, -3 }, /* (233) expression ::= NK_LP expression NK_RP */ - { 235, -2 }, /* (234) expression ::= NK_PLUS expression */ - { 235, -2 }, /* (235) expression ::= NK_MINUS expression */ - { 235, -3 }, /* (236) expression ::= expression NK_PLUS expression */ - { 235, -3 }, /* (237) expression ::= expression NK_MINUS expression */ - { 235, -3 }, /* (238) expression ::= expression NK_STAR expression */ - { 235, -3 }, /* (239) expression ::= expression NK_SLASH expression */ - { 235, -3 }, /* (240) expression ::= expression NK_REM expression */ - { 226, -1 }, /* (241) expression_list ::= expression */ - { 226, -3 }, /* (242) expression_list ::= expression_list NK_COMMA expression */ - { 237, -1 }, /* (243) column_reference ::= column_name */ - { 237, -3 }, /* (244) column_reference ::= table_name NK_DOT column_name */ - { 236, -2 }, /* (245) pseudo_column ::= NK_UNDERLINE ROWTS */ - { 236, -1 }, /* (246) pseudo_column ::= TBNAME */ - { 236, -2 }, /* (247) pseudo_column ::= NK_UNDERLINE QSTARTTS */ - { 236, -2 }, /* (248) pseudo_column ::= NK_UNDERLINE QENDTS */ - { 236, -2 }, /* (249) pseudo_column ::= NK_UNDERLINE WSTARTTS */ - { 236, -2 }, /* (250) pseudo_column ::= NK_UNDERLINE WENDTS */ - { 236, -2 }, /* (251) pseudo_column ::= NK_UNDERLINE WDURATION */ - { 239, -3 }, /* (252) predicate ::= expression compare_op expression */ - { 239, -5 }, /* (253) predicate ::= expression BETWEEN expression AND expression */ - { 239, -6 }, /* (254) predicate ::= expression NOT BETWEEN expression AND expression */ - { 239, -3 }, /* (255) predicate ::= expression IS NULL */ - { 239, -4 }, /* (256) predicate ::= expression IS NOT NULL */ - { 239, -3 }, /* (257) predicate ::= expression in_op in_predicate_value */ - { 240, -1 }, /* (258) compare_op ::= NK_LT */ - { 240, -1 }, /* (259) compare_op ::= NK_GT */ - { 240, -1 }, /* (260) compare_op ::= NK_LE */ - { 240, -1 }, /* (261) compare_op ::= NK_GE */ - { 240, -1 }, /* (262) compare_op ::= NK_NE */ - { 240, -1 }, /* (263) compare_op ::= NK_EQ */ - { 240, -1 }, /* (264) compare_op ::= LIKE */ - { 240, -2 }, /* (265) compare_op ::= NOT LIKE */ - { 240, -1 }, /* (266) compare_op ::= MATCH */ - { 240, -1 }, /* (267) compare_op ::= NMATCH */ - { 241, -1 }, /* (268) in_op ::= IN */ - { 241, -2 }, /* (269) in_op ::= NOT IN */ - { 242, -3 }, /* (270) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 243, -1 }, /* (271) boolean_value_expression ::= boolean_primary */ - { 243, -2 }, /* (272) boolean_value_expression ::= NOT boolean_primary */ - { 243, -3 }, /* (273) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 243, -3 }, /* (274) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 244, -1 }, /* (275) boolean_primary ::= predicate */ - { 244, -3 }, /* (276) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 245, -1 }, /* (277) common_expression ::= expression */ - { 245, -1 }, /* (278) common_expression ::= boolean_value_expression */ - { 246, -2 }, /* (279) from_clause ::= FROM table_reference_list */ - { 247, -1 }, /* (280) table_reference_list ::= table_reference */ - { 247, -3 }, /* (281) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 248, -1 }, /* (282) table_reference ::= table_primary */ - { 248, -1 }, /* (283) table_reference ::= joined_table */ - { 249, -2 }, /* (284) table_primary ::= table_name alias_opt */ - { 249, -4 }, /* (285) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 249, -2 }, /* (286) table_primary ::= subquery alias_opt */ - { 249, -1 }, /* (287) table_primary ::= parenthesized_joined_table */ - { 251, 0 }, /* (288) alias_opt ::= */ - { 251, -1 }, /* (289) alias_opt ::= table_alias */ - { 251, -2 }, /* (290) alias_opt ::= AS table_alias */ - { 252, -3 }, /* (291) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 252, -3 }, /* (292) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 250, -6 }, /* (293) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 253, 0 }, /* (294) join_type ::= */ - { 253, -1 }, /* (295) join_type ::= INNER */ - { 255, -9 }, /* (296) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 256, 0 }, /* (297) set_quantifier_opt ::= */ - { 256, -1 }, /* (298) set_quantifier_opt ::= DISTINCT */ - { 256, -1 }, /* (299) set_quantifier_opt ::= ALL */ - { 257, -1 }, /* (300) select_list ::= NK_STAR */ - { 257, -1 }, /* (301) select_list ::= select_sublist */ - { 263, -1 }, /* (302) select_sublist ::= select_item */ - { 263, -3 }, /* (303) select_sublist ::= select_sublist NK_COMMA select_item */ - { 264, -1 }, /* (304) select_item ::= common_expression */ - { 264, -2 }, /* (305) select_item ::= common_expression column_alias */ - { 264, -3 }, /* (306) select_item ::= common_expression AS column_alias */ - { 264, -3 }, /* (307) select_item ::= table_name NK_DOT NK_STAR */ - { 258, 0 }, /* (308) where_clause_opt ::= */ - { 258, -2 }, /* (309) where_clause_opt ::= WHERE search_condition */ - { 259, 0 }, /* (310) partition_by_clause_opt ::= */ - { 259, -3 }, /* (311) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 260, 0 }, /* (312) twindow_clause_opt ::= */ - { 260, -6 }, /* (313) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 260, -4 }, /* (314) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ - { 260, -6 }, /* (315) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 260, -8 }, /* (316) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 224, 0 }, /* (317) sliding_opt ::= */ - { 224, -4 }, /* (318) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 265, 0 }, /* (319) fill_opt ::= */ - { 265, -4 }, /* (320) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 265, -6 }, /* (321) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 266, -1 }, /* (322) fill_mode ::= NONE */ - { 266, -1 }, /* (323) fill_mode ::= PREV */ - { 266, -1 }, /* (324) fill_mode ::= NULL */ - { 266, -1 }, /* (325) fill_mode ::= LINEAR */ - { 266, -1 }, /* (326) fill_mode ::= NEXT */ - { 261, 0 }, /* (327) group_by_clause_opt ::= */ - { 261, -3 }, /* (328) group_by_clause_opt ::= GROUP BY group_by_list */ - { 267, -1 }, /* (329) group_by_list ::= expression */ - { 267, -3 }, /* (330) group_by_list ::= group_by_list NK_COMMA expression */ - { 262, 0 }, /* (331) having_clause_opt ::= */ - { 262, -2 }, /* (332) having_clause_opt ::= HAVING search_condition */ - { 228, -4 }, /* (333) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 268, -1 }, /* (334) query_expression_body ::= query_primary */ - { 268, -4 }, /* (335) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 272, -1 }, /* (336) query_primary ::= query_specification */ - { 269, 0 }, /* (337) order_by_clause_opt ::= */ - { 269, -3 }, /* (338) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 270, 0 }, /* (339) slimit_clause_opt ::= */ - { 270, -2 }, /* (340) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 270, -4 }, /* (341) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 270, -4 }, /* (342) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 271, 0 }, /* (343) limit_clause_opt ::= */ - { 271, -2 }, /* (344) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 271, -4 }, /* (345) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 271, -4 }, /* (346) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 238, -3 }, /* (347) subquery ::= NK_LP query_expression NK_RP */ - { 254, -1 }, /* (348) search_condition ::= common_expression */ - { 273, -1 }, /* (349) sort_specification_list ::= sort_specification */ - { 273, -3 }, /* (350) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 274, -3 }, /* (351) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 275, 0 }, /* (352) ordering_specification_opt ::= */ - { 275, -1 }, /* (353) ordering_specification_opt ::= ASC */ - { 275, -1 }, /* (354) ordering_specification_opt ::= DESC */ - { 276, 0 }, /* (355) null_ordering_opt ::= */ - { 276, -2 }, /* (356) null_ordering_opt ::= NULLS FIRST */ - { 276, -2 }, /* (357) null_ordering_opt ::= NULLS LAST */ + { 193, -2 }, /* (72) alter_db_option ::= BLOCKS NK_INTEGER */ + { 193, -2 }, /* (73) alter_db_option ::= FSYNC NK_INTEGER */ + { 193, -2 }, /* (74) alter_db_option ::= KEEP integer_list */ + { 193, -2 }, /* (75) alter_db_option ::= WAL NK_INTEGER */ + { 193, -2 }, /* (76) alter_db_option ::= QUORUM NK_INTEGER */ + { 193, -2 }, /* (77) alter_db_option ::= CACHELAST NK_INTEGER */ + { 193, -2 }, /* (78) alter_db_option ::= REPLICA NK_INTEGER */ + { 192, -1 }, /* (79) integer_list ::= NK_INTEGER */ + { 192, -3 }, /* (80) integer_list ::= integer_list NK_COMMA NK_INTEGER */ + { 179, -9 }, /* (81) cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + { 179, -3 }, /* (82) cmd ::= CREATE TABLE multi_create_clause */ + { 179, -9 }, /* (83) cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ + { 179, -3 }, /* (84) cmd ::= DROP TABLE multi_drop_clause */ + { 179, -4 }, /* (85) cmd ::= DROP STABLE exists_opt full_table_name */ + { 179, -3 }, /* (86) cmd ::= ALTER TABLE alter_table_clause */ + { 179, -3 }, /* (87) cmd ::= ALTER STABLE alter_table_clause */ + { 201, -2 }, /* (88) alter_table_clause ::= full_table_name alter_table_options */ + { 201, -5 }, /* (89) alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ + { 201, -4 }, /* (90) alter_table_clause ::= full_table_name DROP COLUMN column_name */ + { 201, -5 }, /* (91) alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ + { 201, -5 }, /* (92) alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ + { 201, -5 }, /* (93) alter_table_clause ::= full_table_name ADD TAG column_name type_name */ + { 201, -4 }, /* (94) alter_table_clause ::= full_table_name DROP TAG column_name */ + { 201, -5 }, /* (95) alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ + { 201, -5 }, /* (96) alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ + { 201, -6 }, /* (97) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ + { 198, -1 }, /* (98) multi_create_clause ::= create_subtable_clause */ + { 198, -2 }, /* (99) multi_create_clause ::= multi_create_clause create_subtable_clause */ + { 205, -9 }, /* (100) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ + { 200, -1 }, /* (101) multi_drop_clause ::= drop_table_clause */ + { 200, -2 }, /* (102) multi_drop_clause ::= multi_drop_clause drop_table_clause */ + { 208, -2 }, /* (103) drop_table_clause ::= exists_opt full_table_name */ + { 206, 0 }, /* (104) specific_tags_opt ::= */ + { 206, -3 }, /* (105) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 194, -1 }, /* (106) full_table_name ::= table_name */ + { 194, -3 }, /* (107) full_table_name ::= db_name NK_DOT table_name */ + { 195, -1 }, /* (108) column_def_list ::= column_def */ + { 195, -3 }, /* (109) column_def_list ::= column_def_list NK_COMMA column_def */ + { 211, -2 }, /* (110) column_def ::= column_name type_name */ + { 211, -4 }, /* (111) column_def ::= column_name type_name COMMENT NK_STRING */ + { 204, -1 }, /* (112) type_name ::= BOOL */ + { 204, -1 }, /* (113) type_name ::= TINYINT */ + { 204, -1 }, /* (114) type_name ::= SMALLINT */ + { 204, -1 }, /* (115) type_name ::= INT */ + { 204, -1 }, /* (116) type_name ::= INTEGER */ + { 204, -1 }, /* (117) type_name ::= BIGINT */ + { 204, -1 }, /* (118) type_name ::= FLOAT */ + { 204, -1 }, /* (119) type_name ::= DOUBLE */ + { 204, -4 }, /* (120) type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ + { 204, -1 }, /* (121) type_name ::= TIMESTAMP */ + { 204, -4 }, /* (122) type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ + { 204, -2 }, /* (123) type_name ::= TINYINT UNSIGNED */ + { 204, -2 }, /* (124) type_name ::= SMALLINT UNSIGNED */ + { 204, -2 }, /* (125) type_name ::= INT UNSIGNED */ + { 204, -2 }, /* (126) type_name ::= BIGINT UNSIGNED */ + { 204, -1 }, /* (127) type_name ::= JSON */ + { 204, -4 }, /* (128) type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ + { 204, -1 }, /* (129) type_name ::= MEDIUMBLOB */ + { 204, -1 }, /* (130) type_name ::= BLOB */ + { 204, -4 }, /* (131) type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ + { 204, -1 }, /* (132) type_name ::= DECIMAL */ + { 204, -4 }, /* (133) type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ + { 204, -6 }, /* (134) type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ + { 196, 0 }, /* (135) tags_def_opt ::= */ + { 196, -1 }, /* (136) tags_def_opt ::= tags_def */ + { 199, -4 }, /* (137) tags_def ::= TAGS NK_LP column_def_list NK_RP */ + { 197, 0 }, /* (138) table_options ::= */ + { 197, -3 }, /* (139) table_options ::= table_options COMMENT NK_STRING */ + { 197, -3 }, /* (140) table_options ::= table_options KEEP integer_list */ + { 197, -3 }, /* (141) table_options ::= table_options TTL NK_INTEGER */ + { 197, -5 }, /* (142) table_options ::= table_options SMA NK_LP col_name_list NK_RP */ + { 197, -5 }, /* (143) table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ + { 197, -3 }, /* (144) table_options ::= table_options FILE_FACTOR NK_FLOAT */ + { 197, -3 }, /* (145) table_options ::= table_options DELAY NK_INTEGER */ + { 202, -1 }, /* (146) alter_table_options ::= alter_table_option */ + { 202, -2 }, /* (147) alter_table_options ::= alter_table_options alter_table_option */ + { 213, -2 }, /* (148) alter_table_option ::= COMMENT NK_STRING */ + { 213, -2 }, /* (149) alter_table_option ::= KEEP integer_list */ + { 213, -2 }, /* (150) alter_table_option ::= TTL NK_INTEGER */ + { 209, -1 }, /* (151) col_name_list ::= col_name */ + { 209, -3 }, /* (152) col_name_list ::= col_name_list NK_COMMA col_name */ + { 214, -1 }, /* (153) col_name ::= column_name */ + { 179, -2 }, /* (154) cmd ::= SHOW DNODES */ + { 179, -2 }, /* (155) cmd ::= SHOW USERS */ + { 179, -2 }, /* (156) cmd ::= SHOW DATABASES */ + { 179, -4 }, /* (157) cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ + { 179, -4 }, /* (158) cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ + { 179, -3 }, /* (159) cmd ::= SHOW db_name_cond_opt VGROUPS */ + { 179, -2 }, /* (160) cmd ::= SHOW MNODES */ + { 179, -2 }, /* (161) cmd ::= SHOW MODULES */ + { 179, -2 }, /* (162) cmd ::= SHOW QNODES */ + { 179, -2 }, /* (163) cmd ::= SHOW FUNCTIONS */ + { 179, -5 }, /* (164) cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ + { 179, -2 }, /* (165) cmd ::= SHOW STREAMS */ + { 215, 0 }, /* (166) db_name_cond_opt ::= */ + { 215, -2 }, /* (167) db_name_cond_opt ::= db_name NK_DOT */ + { 216, 0 }, /* (168) like_pattern_opt ::= */ + { 216, -2 }, /* (169) like_pattern_opt ::= LIKE NK_STRING */ + { 217, -1 }, /* (170) table_name_cond ::= table_name */ + { 218, 0 }, /* (171) from_db_opt ::= */ + { 218, -2 }, /* (172) from_db_opt ::= FROM db_name */ + { 212, -1 }, /* (173) func_name_list ::= func_name */ + { 212, -3 }, /* (174) func_name_list ::= func_name_list NK_COMMA col_name */ + { 219, -1 }, /* (175) func_name ::= function_name */ + { 179, -8 }, /* (176) cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ + { 179, -10 }, /* (177) cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ + { 179, -6 }, /* (178) cmd ::= DROP INDEX exists_opt index_name ON table_name */ + { 222, 0 }, /* (179) index_options ::= */ + { 222, -9 }, /* (180) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ + { 222, -11 }, /* (181) index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ + { 223, -1 }, /* (182) func_list ::= func */ + { 223, -3 }, /* (183) func_list ::= func_list NK_COMMA func */ + { 226, -4 }, /* (184) func ::= function_name NK_LP expression_list NK_RP */ + { 179, -6 }, /* (185) cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ + { 179, -6 }, /* (186) cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ + { 179, -4 }, /* (187) cmd ::= DROP TOPIC exists_opt topic_name */ + { 179, -2 }, /* (188) cmd ::= DESC full_table_name */ + { 179, -2 }, /* (189) cmd ::= DESCRIBE full_table_name */ + { 179, -3 }, /* (190) cmd ::= RESET QUERY CACHE */ + { 179, -4 }, /* (191) cmd ::= EXPLAIN analyze_opt explain_options query_expression */ + { 230, 0 }, /* (192) analyze_opt ::= */ + { 230, -1 }, /* (193) analyze_opt ::= ANALYZE */ + { 231, 0 }, /* (194) explain_options ::= */ + { 231, -3 }, /* (195) explain_options ::= explain_options VERBOSE NK_BOOL */ + { 231, -3 }, /* (196) explain_options ::= explain_options RATIO NK_FLOAT */ + { 179, -1 }, /* (197) cmd ::= query_expression */ + { 182, -1 }, /* (198) literal ::= NK_INTEGER */ + { 182, -1 }, /* (199) literal ::= NK_FLOAT */ + { 182, -1 }, /* (200) literal ::= NK_STRING */ + { 182, -1 }, /* (201) literal ::= NK_BOOL */ + { 182, -2 }, /* (202) literal ::= TIMESTAMP NK_STRING */ + { 182, -1 }, /* (203) literal ::= duration_literal */ + { 182, -1 }, /* (204) literal ::= NULL */ + { 224, -1 }, /* (205) duration_literal ::= NK_VARIABLE */ + { 232, -1 }, /* (206) signed ::= NK_INTEGER */ + { 232, -2 }, /* (207) signed ::= NK_PLUS NK_INTEGER */ + { 232, -2 }, /* (208) signed ::= NK_MINUS NK_INTEGER */ + { 232, -1 }, /* (209) signed ::= NK_FLOAT */ + { 232, -2 }, /* (210) signed ::= NK_PLUS NK_FLOAT */ + { 232, -2 }, /* (211) signed ::= NK_MINUS NK_FLOAT */ + { 233, -1 }, /* (212) signed_literal ::= signed */ + { 233, -1 }, /* (213) signed_literal ::= NK_STRING */ + { 233, -1 }, /* (214) signed_literal ::= NK_BOOL */ + { 233, -2 }, /* (215) signed_literal ::= TIMESTAMP NK_STRING */ + { 233, -1 }, /* (216) signed_literal ::= duration_literal */ + { 233, -1 }, /* (217) signed_literal ::= NULL */ + { 207, -1 }, /* (218) literal_list ::= signed_literal */ + { 207, -3 }, /* (219) literal_list ::= literal_list NK_COMMA signed_literal */ + { 188, -1 }, /* (220) db_name ::= NK_ID */ + { 210, -1 }, /* (221) table_name ::= NK_ID */ + { 203, -1 }, /* (222) column_name ::= NK_ID */ + { 220, -1 }, /* (223) function_name ::= NK_ID */ + { 234, -1 }, /* (224) table_alias ::= NK_ID */ + { 235, -1 }, /* (225) column_alias ::= NK_ID */ + { 184, -1 }, /* (226) user_name ::= NK_ID */ + { 221, -1 }, /* (227) index_name ::= NK_ID */ + { 228, -1 }, /* (228) topic_name ::= NK_ID */ + { 236, -1 }, /* (229) expression ::= literal */ + { 236, -1 }, /* (230) expression ::= pseudo_column */ + { 236, -1 }, /* (231) expression ::= column_reference */ + { 236, -4 }, /* (232) expression ::= function_name NK_LP expression_list NK_RP */ + { 236, -4 }, /* (233) expression ::= function_name NK_LP NK_STAR NK_RP */ + { 236, -1 }, /* (234) expression ::= subquery */ + { 236, -3 }, /* (235) expression ::= NK_LP expression NK_RP */ + { 236, -2 }, /* (236) expression ::= NK_PLUS expression */ + { 236, -2 }, /* (237) expression ::= NK_MINUS expression */ + { 236, -3 }, /* (238) expression ::= expression NK_PLUS expression */ + { 236, -3 }, /* (239) expression ::= expression NK_MINUS expression */ + { 236, -3 }, /* (240) expression ::= expression NK_STAR expression */ + { 236, -3 }, /* (241) expression ::= expression NK_SLASH expression */ + { 236, -3 }, /* (242) expression ::= expression NK_REM expression */ + { 227, -1 }, /* (243) expression_list ::= expression */ + { 227, -3 }, /* (244) expression_list ::= expression_list NK_COMMA expression */ + { 238, -1 }, /* (245) column_reference ::= column_name */ + { 238, -3 }, /* (246) column_reference ::= table_name NK_DOT column_name */ + { 237, -2 }, /* (247) pseudo_column ::= NK_UNDERLINE ROWTS */ + { 237, -1 }, /* (248) pseudo_column ::= TBNAME */ + { 237, -2 }, /* (249) pseudo_column ::= NK_UNDERLINE QSTARTTS */ + { 237, -2 }, /* (250) pseudo_column ::= NK_UNDERLINE QENDTS */ + { 237, -2 }, /* (251) pseudo_column ::= NK_UNDERLINE WSTARTTS */ + { 237, -2 }, /* (252) pseudo_column ::= NK_UNDERLINE WENDTS */ + { 237, -2 }, /* (253) pseudo_column ::= NK_UNDERLINE WDURATION */ + { 240, -3 }, /* (254) predicate ::= expression compare_op expression */ + { 240, -5 }, /* (255) predicate ::= expression BETWEEN expression AND expression */ + { 240, -6 }, /* (256) predicate ::= expression NOT BETWEEN expression AND expression */ + { 240, -3 }, /* (257) predicate ::= expression IS NULL */ + { 240, -4 }, /* (258) predicate ::= expression IS NOT NULL */ + { 240, -3 }, /* (259) predicate ::= expression in_op in_predicate_value */ + { 241, -1 }, /* (260) compare_op ::= NK_LT */ + { 241, -1 }, /* (261) compare_op ::= NK_GT */ + { 241, -1 }, /* (262) compare_op ::= NK_LE */ + { 241, -1 }, /* (263) compare_op ::= NK_GE */ + { 241, -1 }, /* (264) compare_op ::= NK_NE */ + { 241, -1 }, /* (265) compare_op ::= NK_EQ */ + { 241, -1 }, /* (266) compare_op ::= LIKE */ + { 241, -2 }, /* (267) compare_op ::= NOT LIKE */ + { 241, -1 }, /* (268) compare_op ::= MATCH */ + { 241, -1 }, /* (269) compare_op ::= NMATCH */ + { 242, -1 }, /* (270) in_op ::= IN */ + { 242, -2 }, /* (271) in_op ::= NOT IN */ + { 243, -3 }, /* (272) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 244, -1 }, /* (273) boolean_value_expression ::= boolean_primary */ + { 244, -2 }, /* (274) boolean_value_expression ::= NOT boolean_primary */ + { 244, -3 }, /* (275) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 244, -3 }, /* (276) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 245, -1 }, /* (277) boolean_primary ::= predicate */ + { 245, -3 }, /* (278) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 246, -1 }, /* (279) common_expression ::= expression */ + { 246, -1 }, /* (280) common_expression ::= boolean_value_expression */ + { 247, -2 }, /* (281) from_clause ::= FROM table_reference_list */ + { 248, -1 }, /* (282) table_reference_list ::= table_reference */ + { 248, -3 }, /* (283) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 249, -1 }, /* (284) table_reference ::= table_primary */ + { 249, -1 }, /* (285) table_reference ::= joined_table */ + { 250, -2 }, /* (286) table_primary ::= table_name alias_opt */ + { 250, -4 }, /* (287) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 250, -2 }, /* (288) table_primary ::= subquery alias_opt */ + { 250, -1 }, /* (289) table_primary ::= parenthesized_joined_table */ + { 252, 0 }, /* (290) alias_opt ::= */ + { 252, -1 }, /* (291) alias_opt ::= table_alias */ + { 252, -2 }, /* (292) alias_opt ::= AS table_alias */ + { 253, -3 }, /* (293) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 253, -3 }, /* (294) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 251, -6 }, /* (295) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 254, 0 }, /* (296) join_type ::= */ + { 254, -1 }, /* (297) join_type ::= INNER */ + { 256, -9 }, /* (298) query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 257, 0 }, /* (299) set_quantifier_opt ::= */ + { 257, -1 }, /* (300) set_quantifier_opt ::= DISTINCT */ + { 257, -1 }, /* (301) set_quantifier_opt ::= ALL */ + { 258, -1 }, /* (302) select_list ::= NK_STAR */ + { 258, -1 }, /* (303) select_list ::= select_sublist */ + { 264, -1 }, /* (304) select_sublist ::= select_item */ + { 264, -3 }, /* (305) select_sublist ::= select_sublist NK_COMMA select_item */ + { 265, -1 }, /* (306) select_item ::= common_expression */ + { 265, -2 }, /* (307) select_item ::= common_expression column_alias */ + { 265, -3 }, /* (308) select_item ::= common_expression AS column_alias */ + { 265, -3 }, /* (309) select_item ::= table_name NK_DOT NK_STAR */ + { 259, 0 }, /* (310) where_clause_opt ::= */ + { 259, -2 }, /* (311) where_clause_opt ::= WHERE search_condition */ + { 260, 0 }, /* (312) partition_by_clause_opt ::= */ + { 260, -3 }, /* (313) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 261, 0 }, /* (314) twindow_clause_opt ::= */ + { 261, -6 }, /* (315) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 261, -4 }, /* (316) twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ + { 261, -6 }, /* (317) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 261, -8 }, /* (318) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 225, 0 }, /* (319) sliding_opt ::= */ + { 225, -4 }, /* (320) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 266, 0 }, /* (321) fill_opt ::= */ + { 266, -4 }, /* (322) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 266, -6 }, /* (323) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 267, -1 }, /* (324) fill_mode ::= NONE */ + { 267, -1 }, /* (325) fill_mode ::= PREV */ + { 267, -1 }, /* (326) fill_mode ::= NULL */ + { 267, -1 }, /* (327) fill_mode ::= LINEAR */ + { 267, -1 }, /* (328) fill_mode ::= NEXT */ + { 262, 0 }, /* (329) group_by_clause_opt ::= */ + { 262, -3 }, /* (330) group_by_clause_opt ::= GROUP BY group_by_list */ + { 268, -1 }, /* (331) group_by_list ::= expression */ + { 268, -3 }, /* (332) group_by_list ::= group_by_list NK_COMMA expression */ + { 263, 0 }, /* (333) having_clause_opt ::= */ + { 263, -2 }, /* (334) having_clause_opt ::= HAVING search_condition */ + { 229, -4 }, /* (335) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 269, -1 }, /* (336) query_expression_body ::= query_primary */ + { 269, -4 }, /* (337) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 273, -1 }, /* (338) query_primary ::= query_specification */ + { 270, 0 }, /* (339) order_by_clause_opt ::= */ + { 270, -3 }, /* (340) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 271, 0 }, /* (341) slimit_clause_opt ::= */ + { 271, -2 }, /* (342) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 271, -4 }, /* (343) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 271, -4 }, /* (344) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 272, 0 }, /* (345) limit_clause_opt ::= */ + { 272, -2 }, /* (346) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 272, -4 }, /* (347) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 272, -4 }, /* (348) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 239, -3 }, /* (349) subquery ::= NK_LP query_expression NK_RP */ + { 255, -1 }, /* (350) search_condition ::= common_expression */ + { 274, -1 }, /* (351) sort_specification_list ::= sort_specification */ + { 274, -3 }, /* (352) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 275, -3 }, /* (353) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 276, 0 }, /* (354) ordering_specification_opt ::= */ + { 276, -1 }, /* (355) ordering_specification_opt ::= ASC */ + { 276, -1 }, /* (356) ordering_specification_opt ::= DESC */ + { 277, 0 }, /* (357) null_ordering_opt ::= */ + { 277, -2 }, /* (358) null_ordering_opt ::= NULLS FIRST */ + { 277, -2 }, /* (359) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -2428,28 +2434,28 @@ static YYACTIONTYPE yy_reduce( yy_destructor(yypParser,182,&yymsp[0].minor); break; case 24: /* cmd ::= CREATE USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateUserStmt(pCxt, &yymsp[-2].minor.yy337, &yymsp[0].minor.yy0); } break; case 25: /* cmd ::= ALTER USER user_name PASS NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy95, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy337, TSDB_ALTER_USER_PASSWD, &yymsp[0].minor.yy0); } break; case 26: /* cmd ::= ALTER USER user_name PRIVILEGE NK_STRING */ -{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy95, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createAlterUserStmt(pCxt, &yymsp[-2].minor.yy337, TSDB_ALTER_USER_PRIVILEGES, &yymsp[0].minor.yy0); } break; case 27: /* cmd ::= DROP USER user_name */ -{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy95); } +{ pCxt->pRootNode = createDropUserStmt(pCxt, &yymsp[0].minor.yy337); } break; case 28: /* cmd ::= CREATE DNODE dnode_endpoint */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy95, NULL); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[0].minor.yy337, NULL); } break; case 29: /* cmd ::= CREATE DNODE dnode_host_name PORT NK_INTEGER */ -{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy0); } +{ pCxt->pRootNode = createCreateDnodeStmt(pCxt, &yymsp[-2].minor.yy337, &yymsp[0].minor.yy0); } break; case 30: /* cmd ::= DROP DNODE NK_INTEGER */ { pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 31: /* cmd ::= DROP DNODE dnode_endpoint */ -{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy95); } +{ pCxt->pRootNode = createDropDnodeStmt(pCxt, &yymsp[0].minor.yy337); } break; case 32: /* cmd ::= ALTER DNODE NK_INTEGER NK_STRING */ { pCxt->pRootNode = createAlterDnodeStmt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, NULL); } @@ -2466,17 +2472,17 @@ static YYACTIONTYPE yy_reduce( case 36: /* dnode_endpoint ::= NK_STRING */ case 37: /* dnode_host_name ::= NK_ID */ yytestcase(yyruleno==37); case 38: /* dnode_host_name ::= NK_IPTOKEN */ yytestcase(yyruleno==38); - case 218: /* db_name ::= NK_ID */ yytestcase(yyruleno==218); - case 219: /* table_name ::= NK_ID */ yytestcase(yyruleno==219); - case 220: /* column_name ::= NK_ID */ yytestcase(yyruleno==220); - case 221: /* function_name ::= NK_ID */ yytestcase(yyruleno==221); - case 222: /* table_alias ::= NK_ID */ yytestcase(yyruleno==222); - case 223: /* column_alias ::= NK_ID */ yytestcase(yyruleno==223); - case 224: /* user_name ::= NK_ID */ yytestcase(yyruleno==224); - case 225: /* index_name ::= NK_ID */ yytestcase(yyruleno==225); - case 226: /* topic_name ::= NK_ID */ yytestcase(yyruleno==226); -{ yylhsminor.yy95 = yymsp[0].minor.yy0; } - yymsp[0].minor.yy95 = yylhsminor.yy95; + case 220: /* db_name ::= NK_ID */ yytestcase(yyruleno==220); + case 221: /* table_name ::= NK_ID */ yytestcase(yyruleno==221); + case 222: /* column_name ::= NK_ID */ yytestcase(yyruleno==222); + case 223: /* function_name ::= NK_ID */ yytestcase(yyruleno==223); + case 224: /* table_alias ::= NK_ID */ yytestcase(yyruleno==224); + case 225: /* column_alias ::= NK_ID */ yytestcase(yyruleno==225); + case 226: /* user_name ::= NK_ID */ yytestcase(yyruleno==226); + case 227: /* index_name ::= NK_ID */ yytestcase(yyruleno==227); + case 228: /* topic_name ::= NK_ID */ yytestcase(yyruleno==228); +{ yylhsminor.yy337 = yymsp[0].minor.yy0; } + yymsp[0].minor.yy337 = yylhsminor.yy337; break; case 39: /* cmd ::= ALTER LOCAL NK_STRING */ { pCxt->pRootNode = createAlterLocalStmt(pCxt, &yymsp[0].minor.yy0, NULL); } @@ -2491,977 +2497,985 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createDropQnodeStmt(pCxt, &yymsp[0].minor.yy0); } break; case 43: /* cmd ::= CREATE DATABASE not_exists_opt db_name db_options */ -{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy151, &yymsp[-1].minor.yy95, yymsp[0].minor.yy46); } +{ pCxt->pRootNode = createCreateDatabaseStmt(pCxt, yymsp[-2].minor.yy265, &yymsp[-1].minor.yy337, yymsp[0].minor.yy24); } break; case 44: /* cmd ::= DROP DATABASE exists_opt db_name */ -{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy151, &yymsp[0].minor.yy95); } +{ pCxt->pRootNode = createDropDatabaseStmt(pCxt, yymsp[-1].minor.yy265, &yymsp[0].minor.yy337); } break; case 45: /* cmd ::= USE db_name */ -{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy95); } +{ pCxt->pRootNode = createUseDatabaseStmt(pCxt, &yymsp[0].minor.yy337); } break; case 46: /* cmd ::= ALTER DATABASE db_name alter_db_options */ -{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy95, yymsp[0].minor.yy46); } +{ pCxt->pRootNode = createAlterDatabaseStmt(pCxt, &yymsp[-1].minor.yy337, yymsp[0].minor.yy24); } break; case 47: /* not_exists_opt ::= IF NOT EXISTS */ -{ yymsp[-2].minor.yy151 = true; } +{ yymsp[-2].minor.yy265 = true; } break; case 48: /* not_exists_opt ::= */ case 50: /* exists_opt ::= */ yytestcase(yyruleno==50); - case 190: /* analyze_opt ::= */ yytestcase(yyruleno==190); - case 297: /* set_quantifier_opt ::= */ yytestcase(yyruleno==297); -{ yymsp[1].minor.yy151 = false; } + case 192: /* analyze_opt ::= */ yytestcase(yyruleno==192); + case 299: /* set_quantifier_opt ::= */ yytestcase(yyruleno==299); +{ yymsp[1].minor.yy265 = false; } break; case 49: /* exists_opt ::= IF EXISTS */ -{ yymsp[-1].minor.yy151 = true; } +{ yymsp[-1].minor.yy265 = true; } break; case 51: /* db_options ::= */ -{ yymsp[1].minor.yy46 = createDefaultDatabaseOptions(pCxt); } +{ yymsp[1].minor.yy24 = createDefaultDatabaseOptions(pCxt); } break; case 52: /* db_options ::= db_options BLOCKS NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_BLOCKS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_BLOCKS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 53: /* db_options ::= db_options CACHE NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_CACHE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_CACHE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 54: /* db_options ::= db_options CACHELAST NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_CACHELAST, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 55: /* db_options ::= db_options COMP NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_COMP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_COMP, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 56: /* db_options ::= db_options DAYS NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_DAYS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 57: /* db_options ::= db_options FSYNC NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_FSYNC, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 58: /* db_options ::= db_options MAXROWS NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_MAXROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 59: /* db_options ::= db_options MINROWS NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_MINROWS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 60: /* db_options ::= db_options KEEP NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_KEEP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 60: /* db_options ::= db_options KEEP integer_list */ +{ yylhsminor.yy24 = setDatabaseKeepOption(pCxt, yymsp[-2].minor.yy24, yymsp[0].minor.yy504); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 61: /* db_options ::= db_options PRECISION NK_STRING */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_PRECISION, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 62: /* db_options ::= db_options QUORUM NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_QUORUM, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_QUORUM, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 63: /* db_options ::= db_options REPLICA NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_REPLICA, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 64: /* db_options ::= db_options TTL NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 65: /* db_options ::= db_options WAL NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_WAL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_WAL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 66: /* db_options ::= db_options VGROUPS NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_VGROUPS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 67: /* db_options ::= db_options SINGLE_STABLE NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_SINGLE_STABLE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 68: /* db_options ::= db_options STREAM_MODE NK_INTEGER */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_STREAM_MODE, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_STREAM_MODE, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 69: /* db_options ::= db_options RETENTIONS NK_STRING */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-2].minor.yy46, DB_OPTION_RETENTIONS, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseOption(pCxt, yymsp[-2].minor.yy24, DB_OPTION_RETENTIONS, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; case 70: /* alter_db_options ::= alter_db_option */ -{ yylhsminor.yy46 = createDefaultAlterDatabaseOptions(pCxt); yylhsminor.yy46 = setDatabaseOption(pCxt, yylhsminor.yy46, yymsp[0].minor.yy145.type, &yymsp[0].minor.yy145.val); } - yymsp[0].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = createDefaultAlterDatabaseOptions(pCxt); yylhsminor.yy24 = setDatabaseAlterOption(pCxt, yylhsminor.yy24, &yymsp[0].minor.yy553); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; case 71: /* alter_db_options ::= alter_db_options alter_db_option */ -{ yylhsminor.yy46 = setDatabaseOption(pCxt, yymsp[-1].minor.yy46, yymsp[0].minor.yy145.type, &yymsp[0].minor.yy145.val); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; +{ yylhsminor.yy24 = setDatabaseAlterOption(pCxt, yymsp[-1].minor.yy24, &yymsp[0].minor.yy553); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; case 72: /* alter_db_option ::= BLOCKS NK_INTEGER */ -{ yymsp[-1].minor.yy145.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy553.type = DB_OPTION_BLOCKS; yymsp[-1].minor.yy553.val = yymsp[0].minor.yy0; } break; case 73: /* alter_db_option ::= FSYNC NK_INTEGER */ -{ yymsp[-1].minor.yy145.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy553.type = DB_OPTION_FSYNC; yymsp[-1].minor.yy553.val = yymsp[0].minor.yy0; } break; - case 74: /* alter_db_option ::= KEEP NK_INTEGER */ -{ yymsp[-1].minor.yy145.type = DB_OPTION_KEEP; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } + case 74: /* alter_db_option ::= KEEP integer_list */ +{ yymsp[-1].minor.yy553.type = DB_OPTION_KEEP; yymsp[-1].minor.yy553.pKeep = yymsp[0].minor.yy504; } break; case 75: /* alter_db_option ::= WAL NK_INTEGER */ -{ yymsp[-1].minor.yy145.type = DB_OPTION_WAL; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy553.type = DB_OPTION_WAL; yymsp[-1].minor.yy553.val = yymsp[0].minor.yy0; } break; case 76: /* alter_db_option ::= QUORUM NK_INTEGER */ -{ yymsp[-1].minor.yy145.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy553.type = DB_OPTION_QUORUM; yymsp[-1].minor.yy553.val = yymsp[0].minor.yy0; } break; case 77: /* alter_db_option ::= CACHELAST NK_INTEGER */ -{ yymsp[-1].minor.yy145.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } +{ yymsp[-1].minor.yy553.type = DB_OPTION_CACHELAST; yymsp[-1].minor.yy553.val = yymsp[0].minor.yy0; } break; case 78: /* alter_db_option ::= REPLICA NK_INTEGER */ -{ yymsp[-1].minor.yy145.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } - break; - case 79: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ - case 81: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==81); -{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy151, yymsp[-5].minor.yy46, yymsp[-3].minor.yy194, yymsp[-1].minor.yy194, yymsp[0].minor.yy46); } - break; - case 80: /* cmd ::= CREATE TABLE multi_create_clause */ -{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy194); } - break; - case 82: /* cmd ::= DROP TABLE multi_drop_clause */ -{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy194); } - break; - case 83: /* cmd ::= DROP STABLE exists_opt full_table_name */ -{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy151, yymsp[0].minor.yy46); } - break; - case 84: /* cmd ::= ALTER TABLE alter_table_clause */ - case 85: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==85); - case 195: /* cmd ::= query_expression */ yytestcase(yyruleno==195); -{ pCxt->pRootNode = yymsp[0].minor.yy46; } - break; - case 86: /* alter_table_clause ::= full_table_name alter_table_options */ -{ yylhsminor.yy46 = createAlterTableOption(pCxt, yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; - break; - case 87: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ -{ yylhsminor.yy46 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400); } - yymsp[-4].minor.yy46 = yylhsminor.yy46; - break; - case 88: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ -{ yylhsminor.yy46 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy46, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy95); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; - break; - case 89: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ -{ yylhsminor.yy46 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400); } - yymsp[-4].minor.yy46 = yylhsminor.yy46; - break; - case 90: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ -{ yylhsminor.yy46 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy95, &yymsp[0].minor.yy95); } - yymsp[-4].minor.yy46 = yylhsminor.yy46; - break; - case 91: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ -{ yylhsminor.yy46 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400); } - yymsp[-4].minor.yy46 = yylhsminor.yy46; - break; - case 92: /* alter_table_clause ::= full_table_name DROP TAG column_name */ -{ yylhsminor.yy46 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy46, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy95); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; - break; - case 93: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ -{ yylhsminor.yy46 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400); } - yymsp[-4].minor.yy46 = yylhsminor.yy46; - break; - case 94: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ -{ yylhsminor.yy46 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy46, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy95, &yymsp[0].minor.yy95); } - yymsp[-4].minor.yy46 = yylhsminor.yy46; - break; - case 95: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ -{ yylhsminor.yy46 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy46, &yymsp[-2].minor.yy95, yymsp[0].minor.yy46); } - yymsp[-5].minor.yy46 = yylhsminor.yy46; - break; - case 96: /* multi_create_clause ::= create_subtable_clause */ - case 99: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==99); - case 106: /* column_def_list ::= column_def */ yytestcase(yyruleno==106); - case 149: /* col_name_list ::= col_name */ yytestcase(yyruleno==149); - case 171: /* func_name_list ::= func_name */ yytestcase(yyruleno==171); - case 180: /* func_list ::= func */ yytestcase(yyruleno==180); - case 216: /* literal_list ::= signed_literal */ yytestcase(yyruleno==216); - case 302: /* select_sublist ::= select_item */ yytestcase(yyruleno==302); - case 349: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==349); -{ yylhsminor.yy194 = createNodeList(pCxt, yymsp[0].minor.yy46); } - yymsp[0].minor.yy194 = yylhsminor.yy194; +{ yymsp[-1].minor.yy553.type = DB_OPTION_REPLICA; yymsp[-1].minor.yy553.val = yymsp[0].minor.yy0; } + break; + case 79: /* integer_list ::= NK_INTEGER */ +{ yylhsminor.yy504 = createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy504 = yylhsminor.yy504; + break; + case 80: /* integer_list ::= integer_list NK_COMMA NK_INTEGER */ +{ yylhsminor.yy504 = addNodeToList(pCxt, yymsp[-2].minor.yy504, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[-2].minor.yy504 = yylhsminor.yy504; + break; + case 81: /* cmd ::= CREATE TABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def_opt table_options */ + case 83: /* cmd ::= CREATE STABLE not_exists_opt full_table_name NK_LP column_def_list NK_RP tags_def table_options */ yytestcase(yyruleno==83); +{ pCxt->pRootNode = createCreateTableStmt(pCxt, yymsp[-6].minor.yy265, yymsp[-5].minor.yy24, yymsp[-3].minor.yy504, yymsp[-1].minor.yy504, yymsp[0].minor.yy24); } + break; + case 82: /* cmd ::= CREATE TABLE multi_create_clause */ +{ pCxt->pRootNode = createCreateMultiTableStmt(pCxt, yymsp[0].minor.yy504); } + break; + case 84: /* cmd ::= DROP TABLE multi_drop_clause */ +{ pCxt->pRootNode = createDropTableStmt(pCxt, yymsp[0].minor.yy504); } + break; + case 85: /* cmd ::= DROP STABLE exists_opt full_table_name */ +{ pCxt->pRootNode = createDropSuperTableStmt(pCxt, yymsp[-1].minor.yy265, yymsp[0].minor.yy24); } + break; + case 86: /* cmd ::= ALTER TABLE alter_table_clause */ + case 87: /* cmd ::= ALTER STABLE alter_table_clause */ yytestcase(yyruleno==87); + case 197: /* cmd ::= query_expression */ yytestcase(yyruleno==197); +{ pCxt->pRootNode = yymsp[0].minor.yy24; } + break; + case 88: /* alter_table_clause ::= full_table_name alter_table_options */ +{ yylhsminor.yy24 = createAlterTableOption(pCxt, yymsp[-1].minor.yy24, yymsp[0].minor.yy24); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; + break; + case 89: /* alter_table_clause ::= full_table_name ADD COLUMN column_name type_name */ +{ yylhsminor.yy24 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy24, TSDB_ALTER_TABLE_ADD_COLUMN, &yymsp[-1].minor.yy337, yymsp[0].minor.yy212); } + yymsp[-4].minor.yy24 = yylhsminor.yy24; + break; + case 90: /* alter_table_clause ::= full_table_name DROP COLUMN column_name */ +{ yylhsminor.yy24 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy24, TSDB_ALTER_TABLE_DROP_COLUMN, &yymsp[0].minor.yy337); } + yymsp[-3].minor.yy24 = yylhsminor.yy24; + break; + case 91: /* alter_table_clause ::= full_table_name MODIFY COLUMN column_name type_name */ +{ yylhsminor.yy24 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy24, TSDB_ALTER_TABLE_UPDATE_COLUMN_BYTES, &yymsp[-1].minor.yy337, yymsp[0].minor.yy212); } + yymsp[-4].minor.yy24 = yylhsminor.yy24; + break; + case 92: /* alter_table_clause ::= full_table_name RENAME COLUMN column_name column_name */ +{ yylhsminor.yy24 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy24, TSDB_ALTER_TABLE_UPDATE_COLUMN_NAME, &yymsp[-1].minor.yy337, &yymsp[0].minor.yy337); } + yymsp[-4].minor.yy24 = yylhsminor.yy24; + break; + case 93: /* alter_table_clause ::= full_table_name ADD TAG column_name type_name */ +{ yylhsminor.yy24 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy24, TSDB_ALTER_TABLE_ADD_TAG, &yymsp[-1].minor.yy337, yymsp[0].minor.yy212); } + yymsp[-4].minor.yy24 = yylhsminor.yy24; + break; + case 94: /* alter_table_clause ::= full_table_name DROP TAG column_name */ +{ yylhsminor.yy24 = createAlterTableDropCol(pCxt, yymsp[-3].minor.yy24, TSDB_ALTER_TABLE_DROP_TAG, &yymsp[0].minor.yy337); } + yymsp[-3].minor.yy24 = yylhsminor.yy24; + break; + case 95: /* alter_table_clause ::= full_table_name MODIFY TAG column_name type_name */ +{ yylhsminor.yy24 = createAlterTableAddModifyCol(pCxt, yymsp[-4].minor.yy24, TSDB_ALTER_TABLE_UPDATE_TAG_BYTES, &yymsp[-1].minor.yy337, yymsp[0].minor.yy212); } + yymsp[-4].minor.yy24 = yylhsminor.yy24; + break; + case 96: /* alter_table_clause ::= full_table_name RENAME TAG column_name column_name */ +{ yylhsminor.yy24 = createAlterTableRenameCol(pCxt, yymsp[-4].minor.yy24, TSDB_ALTER_TABLE_UPDATE_TAG_NAME, &yymsp[-1].minor.yy337, &yymsp[0].minor.yy337); } + yymsp[-4].minor.yy24 = yylhsminor.yy24; + break; + case 97: /* alter_table_clause ::= full_table_name SET TAG column_name NK_EQ literal */ +{ yylhsminor.yy24 = createAlterTableSetTag(pCxt, yymsp[-5].minor.yy24, &yymsp[-2].minor.yy337, yymsp[0].minor.yy24); } + yymsp[-5].minor.yy24 = yylhsminor.yy24; + break; + case 98: /* multi_create_clause ::= create_subtable_clause */ + case 101: /* multi_drop_clause ::= drop_table_clause */ yytestcase(yyruleno==101); + case 108: /* column_def_list ::= column_def */ yytestcase(yyruleno==108); + case 151: /* col_name_list ::= col_name */ yytestcase(yyruleno==151); + case 173: /* func_name_list ::= func_name */ yytestcase(yyruleno==173); + case 182: /* func_list ::= func */ yytestcase(yyruleno==182); + case 218: /* literal_list ::= signed_literal */ yytestcase(yyruleno==218); + case 304: /* select_sublist ::= select_item */ yytestcase(yyruleno==304); + case 351: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==351); +{ yylhsminor.yy504 = createNodeList(pCxt, yymsp[0].minor.yy24); } + yymsp[0].minor.yy504 = yylhsminor.yy504; break; - case 97: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ - case 100: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==100); -{ yylhsminor.yy194 = addNodeToList(pCxt, yymsp[-1].minor.yy194, yymsp[0].minor.yy46); } - yymsp[-1].minor.yy194 = yylhsminor.yy194; + case 99: /* multi_create_clause ::= multi_create_clause create_subtable_clause */ + case 102: /* multi_drop_clause ::= multi_drop_clause drop_table_clause */ yytestcase(yyruleno==102); +{ yylhsminor.yy504 = addNodeToList(pCxt, yymsp[-1].minor.yy504, yymsp[0].minor.yy24); } + yymsp[-1].minor.yy504 = yylhsminor.yy504; break; - case 98: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ -{ yylhsminor.yy46 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy151, yymsp[-7].minor.yy46, yymsp[-5].minor.yy46, yymsp[-4].minor.yy194, yymsp[-1].minor.yy194); } - yymsp[-8].minor.yy46 = yylhsminor.yy46; + case 100: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP literal_list NK_RP */ +{ yylhsminor.yy24 = createCreateSubTableClause(pCxt, yymsp[-8].minor.yy265, yymsp[-7].minor.yy24, yymsp[-5].minor.yy24, yymsp[-4].minor.yy504, yymsp[-1].minor.yy504); } + yymsp[-8].minor.yy24 = yylhsminor.yy24; break; - case 101: /* drop_table_clause ::= exists_opt full_table_name */ -{ yylhsminor.yy46 = createDropTableClause(pCxt, yymsp[-1].minor.yy151, yymsp[0].minor.yy46); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + case 103: /* drop_table_clause ::= exists_opt full_table_name */ +{ yylhsminor.yy24 = createDropTableClause(pCxt, yymsp[-1].minor.yy265, yymsp[0].minor.yy24); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 102: /* specific_tags_opt ::= */ - case 133: /* tags_def_opt ::= */ yytestcase(yyruleno==133); - case 310: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==310); - case 327: /* group_by_clause_opt ::= */ yytestcase(yyruleno==327); - case 337: /* order_by_clause_opt ::= */ yytestcase(yyruleno==337); -{ yymsp[1].minor.yy194 = NULL; } + case 104: /* specific_tags_opt ::= */ + case 135: /* tags_def_opt ::= */ yytestcase(yyruleno==135); + case 312: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==312); + case 329: /* group_by_clause_opt ::= */ yytestcase(yyruleno==329); + case 339: /* order_by_clause_opt ::= */ yytestcase(yyruleno==339); +{ yymsp[1].minor.yy504 = NULL; } break; - case 103: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ -{ yymsp[-2].minor.yy194 = yymsp[-1].minor.yy194; } + case 105: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ +{ yymsp[-2].minor.yy504 = yymsp[-1].minor.yy504; } break; - case 104: /* full_table_name ::= table_name */ -{ yylhsminor.yy46 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy95, NULL); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 106: /* full_table_name ::= table_name */ +{ yylhsminor.yy24 = createRealTableNode(pCxt, NULL, &yymsp[0].minor.yy337, NULL); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 105: /* full_table_name ::= db_name NK_DOT table_name */ -{ yylhsminor.yy46 = createRealTableNode(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy95, NULL); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 107: /* full_table_name ::= db_name NK_DOT table_name */ +{ yylhsminor.yy24 = createRealTableNode(pCxt, &yymsp[-2].minor.yy337, &yymsp[0].minor.yy337, NULL); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 107: /* column_def_list ::= column_def_list NK_COMMA column_def */ - case 150: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==150); - case 172: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==172); - case 181: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==181); - case 217: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==217); - case 303: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==303); - case 350: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==350); -{ yylhsminor.yy194 = addNodeToList(pCxt, yymsp[-2].minor.yy194, yymsp[0].minor.yy46); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 109: /* column_def_list ::= column_def_list NK_COMMA column_def */ + case 152: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==152); + case 174: /* func_name_list ::= func_name_list NK_COMMA col_name */ yytestcase(yyruleno==174); + case 183: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==183); + case 219: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==219); + case 305: /* select_sublist ::= select_sublist NK_COMMA select_item */ yytestcase(yyruleno==305); + case 352: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==352); +{ yylhsminor.yy504 = addNodeToList(pCxt, yymsp[-2].minor.yy504, yymsp[0].minor.yy24); } + yymsp[-2].minor.yy504 = yylhsminor.yy504; break; - case 108: /* column_def ::= column_name type_name */ -{ yylhsminor.yy46 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy95, yymsp[0].minor.yy400, NULL); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + case 110: /* column_def ::= column_name type_name */ +{ yylhsminor.yy24 = createColumnDefNode(pCxt, &yymsp[-1].minor.yy337, yymsp[0].minor.yy212, NULL); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 109: /* column_def ::= column_name type_name COMMENT NK_STRING */ -{ yylhsminor.yy46 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy95, yymsp[-2].minor.yy400, &yymsp[0].minor.yy0); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; + case 111: /* column_def ::= column_name type_name COMMENT NK_STRING */ +{ yylhsminor.yy24 = createColumnDefNode(pCxt, &yymsp[-3].minor.yy337, yymsp[-2].minor.yy212, &yymsp[0].minor.yy0); } + yymsp[-3].minor.yy24 = yylhsminor.yy24; break; - case 110: /* type_name ::= BOOL */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BOOL); } + case 112: /* type_name ::= BOOL */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_BOOL); } break; - case 111: /* type_name ::= TINYINT */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TINYINT); } + case 113: /* type_name ::= TINYINT */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_TINYINT); } break; - case 112: /* type_name ::= SMALLINT */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_SMALLINT); } + case 114: /* type_name ::= SMALLINT */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_SMALLINT); } break; - case 113: /* type_name ::= INT */ - case 114: /* type_name ::= INTEGER */ yytestcase(yyruleno==114); -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_INT); } + case 115: /* type_name ::= INT */ + case 116: /* type_name ::= INTEGER */ yytestcase(yyruleno==116); +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_INT); } break; - case 115: /* type_name ::= BIGINT */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BIGINT); } + case 117: /* type_name ::= BIGINT */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_BIGINT); } break; - case 116: /* type_name ::= FLOAT */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_FLOAT); } + case 118: /* type_name ::= FLOAT */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_FLOAT); } break; - case 117: /* type_name ::= DOUBLE */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DOUBLE); } + case 119: /* type_name ::= DOUBLE */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_DOUBLE); } break; - case 118: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } + case 120: /* type_name ::= BINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy212 = createVarLenDataType(TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy0); } break; - case 119: /* type_name ::= TIMESTAMP */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } + case 121: /* type_name ::= TIMESTAMP */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_TIMESTAMP); } break; - case 120: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } + case 122: /* type_name ::= NCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy212 = createVarLenDataType(TSDB_DATA_TYPE_NCHAR, &yymsp[-1].minor.yy0); } break; - case 121: /* type_name ::= TINYINT UNSIGNED */ -{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UTINYINT); } + case 123: /* type_name ::= TINYINT UNSIGNED */ +{ yymsp[-1].minor.yy212 = createDataType(TSDB_DATA_TYPE_UTINYINT); } break; - case 122: /* type_name ::= SMALLINT UNSIGNED */ -{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_USMALLINT); } + case 124: /* type_name ::= SMALLINT UNSIGNED */ +{ yymsp[-1].minor.yy212 = createDataType(TSDB_DATA_TYPE_USMALLINT); } break; - case 123: /* type_name ::= INT UNSIGNED */ -{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UINT); } + case 125: /* type_name ::= INT UNSIGNED */ +{ yymsp[-1].minor.yy212 = createDataType(TSDB_DATA_TYPE_UINT); } break; - case 124: /* type_name ::= BIGINT UNSIGNED */ -{ yymsp[-1].minor.yy400 = createDataType(TSDB_DATA_TYPE_UBIGINT); } + case 126: /* type_name ::= BIGINT UNSIGNED */ +{ yymsp[-1].minor.yy212 = createDataType(TSDB_DATA_TYPE_UBIGINT); } break; - case 125: /* type_name ::= JSON */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_JSON); } + case 127: /* type_name ::= JSON */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_JSON); } break; - case 126: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } + case 128: /* type_name ::= VARCHAR NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy212 = createVarLenDataType(TSDB_DATA_TYPE_VARCHAR, &yymsp[-1].minor.yy0); } break; - case 127: /* type_name ::= MEDIUMBLOB */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } + case 129: /* type_name ::= MEDIUMBLOB */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_MEDIUMBLOB); } break; - case 128: /* type_name ::= BLOB */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_BLOB); } + case 130: /* type_name ::= BLOB */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_BLOB); } break; - case 129: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy400 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } + case 131: /* type_name ::= VARBINARY NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy212 = createVarLenDataType(TSDB_DATA_TYPE_VARBINARY, &yymsp[-1].minor.yy0); } break; - case 130: /* type_name ::= DECIMAL */ -{ yymsp[0].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 132: /* type_name ::= DECIMAL */ +{ yymsp[0].minor.yy212 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 131: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ -{ yymsp[-3].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 133: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_RP */ +{ yymsp[-3].minor.yy212 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 132: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ -{ yymsp[-5].minor.yy400 = createDataType(TSDB_DATA_TYPE_DECIMAL); } + case 134: /* type_name ::= DECIMAL NK_LP NK_INTEGER NK_COMMA NK_INTEGER NK_RP */ +{ yymsp[-5].minor.yy212 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; - case 134: /* tags_def_opt ::= tags_def */ - case 301: /* select_list ::= select_sublist */ yytestcase(yyruleno==301); -{ yylhsminor.yy194 = yymsp[0].minor.yy194; } - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 136: /* tags_def_opt ::= tags_def */ + case 303: /* select_list ::= select_sublist */ yytestcase(yyruleno==303); +{ yylhsminor.yy504 = yymsp[0].minor.yy504; } + yymsp[0].minor.yy504 = yylhsminor.yy504; break; - case 135: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ -{ yymsp[-3].minor.yy194 = yymsp[-1].minor.yy194; } + case 137: /* tags_def ::= TAGS NK_LP column_def_list NK_RP */ +{ yymsp[-3].minor.yy504 = yymsp[-1].minor.yy504; } break; - case 136: /* table_options ::= */ -{ yymsp[1].minor.yy46 = createDefaultTableOptions(pCxt); } + case 138: /* table_options ::= */ +{ yymsp[1].minor.yy24 = createDefaultTableOptions(pCxt); } break; - case 137: /* table_options ::= table_options COMMENT NK_STRING */ -{ yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 139: /* table_options ::= table_options COMMENT NK_STRING */ +{ yylhsminor.yy24 = setTableOption(pCxt, yymsp[-2].minor.yy24, TABLE_OPTION_COMMENT, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 138: /* table_options ::= table_options KEEP NK_INTEGER */ -{ yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_KEEP, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 140: /* table_options ::= table_options KEEP integer_list */ +{ yylhsminor.yy24 = setTableKeepOption(pCxt, yymsp[-2].minor.yy24, yymsp[0].minor.yy504); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 139: /* table_options ::= table_options TTL NK_INTEGER */ -{ yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 141: /* table_options ::= table_options TTL NK_INTEGER */ +{ yylhsminor.yy24 = setTableOption(pCxt, yymsp[-2].minor.yy24, TABLE_OPTION_TTL, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 140: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ -{ yylhsminor.yy46 = setTableSmaOption(pCxt, yymsp[-4].minor.yy46, yymsp[-1].minor.yy194); } - yymsp[-4].minor.yy46 = yylhsminor.yy46; + case 142: /* table_options ::= table_options SMA NK_LP col_name_list NK_RP */ +{ yylhsminor.yy24 = setTableSmaOption(pCxt, yymsp[-4].minor.yy24, yymsp[-1].minor.yy504); } + yymsp[-4].minor.yy24 = yylhsminor.yy24; break; - case 141: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ -{ yylhsminor.yy46 = setTableRollupOption(pCxt, yymsp[-4].minor.yy46, yymsp[-1].minor.yy194); } - yymsp[-4].minor.yy46 = yylhsminor.yy46; + case 143: /* table_options ::= table_options ROLLUP NK_LP func_name_list NK_RP */ +{ yylhsminor.yy24 = setTableRollupOption(pCxt, yymsp[-4].minor.yy24, yymsp[-1].minor.yy504); } + yymsp[-4].minor.yy24 = yylhsminor.yy24; break; - case 142: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ -{ yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 144: /* table_options ::= table_options FILE_FACTOR NK_FLOAT */ +{ yylhsminor.yy24 = setTableOption(pCxt, yymsp[-2].minor.yy24, TABLE_OPTION_FILE_FACTOR, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 143: /* table_options ::= table_options DELAY NK_INTEGER */ -{ yylhsminor.yy46 = setTableOption(pCxt, yymsp[-2].minor.yy46, TABLE_OPTION_DELAY, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 145: /* table_options ::= table_options DELAY NK_INTEGER */ +{ yylhsminor.yy24 = setTableOption(pCxt, yymsp[-2].minor.yy24, TABLE_OPTION_DELAY, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 144: /* alter_table_options ::= alter_table_option */ -{ yylhsminor.yy46 = createDefaultAlterTableOptions(pCxt); yylhsminor.yy46 = setTableOption(pCxt, yylhsminor.yy46, yymsp[0].minor.yy145.type, &yymsp[0].minor.yy145.val); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 146: /* alter_table_options ::= alter_table_option */ +{ yylhsminor.yy24 = createDefaultAlterTableOptions(pCxt); yylhsminor.yy24 = setTableAlterOption(pCxt, yylhsminor.yy24, &yymsp[0].minor.yy553); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 145: /* alter_table_options ::= alter_table_options alter_table_option */ -{ yylhsminor.yy46 = setTableOption(pCxt, yymsp[-1].minor.yy46, yymsp[0].minor.yy145.type, &yymsp[0].minor.yy145.val); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + case 147: /* alter_table_options ::= alter_table_options alter_table_option */ +{ yylhsminor.yy24 = setTableAlterOption(pCxt, yymsp[-1].minor.yy24, &yymsp[0].minor.yy553); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 146: /* alter_table_option ::= COMMENT NK_STRING */ -{ yymsp[-1].minor.yy145.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } + case 148: /* alter_table_option ::= COMMENT NK_STRING */ +{ yymsp[-1].minor.yy553.type = TABLE_OPTION_COMMENT; yymsp[-1].minor.yy553.val = yymsp[0].minor.yy0; } break; - case 147: /* alter_table_option ::= KEEP NK_INTEGER */ -{ yymsp[-1].minor.yy145.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } + case 149: /* alter_table_option ::= KEEP integer_list */ +{ yymsp[-1].minor.yy553.type = TABLE_OPTION_KEEP; yymsp[-1].minor.yy553.pKeep = yymsp[0].minor.yy504; } break; - case 148: /* alter_table_option ::= TTL NK_INTEGER */ -{ yymsp[-1].minor.yy145.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy145.val = yymsp[0].minor.yy0; } + case 150: /* alter_table_option ::= TTL NK_INTEGER */ +{ yymsp[-1].minor.yy553.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy553.val = yymsp[0].minor.yy0; } break; - case 151: /* col_name ::= column_name */ -{ yylhsminor.yy46 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy95); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 153: /* col_name ::= column_name */ +{ yylhsminor.yy24 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy337); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 152: /* cmd ::= SHOW DNODES */ + case 154: /* cmd ::= SHOW DNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DNODES_STMT, NULL, NULL); } break; - case 153: /* cmd ::= SHOW USERS */ + case 155: /* cmd ::= SHOW USERS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_USERS_STMT, NULL, NULL); } break; - case 154: /* cmd ::= SHOW DATABASES */ + case 156: /* cmd ::= SHOW DATABASES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_DATABASES_STMT, NULL, NULL); } break; - case 155: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy46, yymsp[0].minor.yy46); } + case 157: /* cmd ::= SHOW db_name_cond_opt TABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_TABLES_STMT, yymsp[-2].minor.yy24, yymsp[0].minor.yy24); } break; - case 156: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy46, yymsp[0].minor.yy46); } + case 158: /* cmd ::= SHOW db_name_cond_opt STABLES like_pattern_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STABLES_STMT, yymsp[-2].minor.yy24, yymsp[0].minor.yy24); } break; - case 157: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy46, NULL); } + case 159: /* cmd ::= SHOW db_name_cond_opt VGROUPS */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_VGROUPS_STMT, yymsp[-1].minor.yy24, NULL); } break; - case 158: /* cmd ::= SHOW MNODES */ + case 160: /* cmd ::= SHOW MNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MNODES_STMT, NULL, NULL); } break; - case 159: /* cmd ::= SHOW MODULES */ + case 161: /* cmd ::= SHOW MODULES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_MODULES_STMT, NULL, NULL); } break; - case 160: /* cmd ::= SHOW QNODES */ + case 162: /* cmd ::= SHOW QNODES */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_QNODES_STMT, NULL, NULL); } break; - case 161: /* cmd ::= SHOW FUNCTIONS */ + case 163: /* cmd ::= SHOW FUNCTIONS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_FUNCTIONS_STMT, NULL, NULL); } break; - case 162: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ -{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } + case 164: /* cmd ::= SHOW INDEXES FROM table_name_cond from_db_opt */ +{ pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_INDEXES_STMT, yymsp[-1].minor.yy24, yymsp[0].minor.yy24); } break; - case 163: /* cmd ::= SHOW STREAMS */ + case 165: /* cmd ::= SHOW STREAMS */ { pCxt->pRootNode = createShowStmt(pCxt, QUERY_NODE_SHOW_STREAMS_STMT, NULL, NULL); } break; - case 164: /* db_name_cond_opt ::= */ - case 169: /* from_db_opt ::= */ yytestcase(yyruleno==169); -{ yymsp[1].minor.yy46 = createDefaultDatabaseCondValue(pCxt); } + case 166: /* db_name_cond_opt ::= */ + case 171: /* from_db_opt ::= */ yytestcase(yyruleno==171); +{ yymsp[1].minor.yy24 = createDefaultDatabaseCondValue(pCxt); } break; - case 165: /* db_name_cond_opt ::= db_name NK_DOT */ -{ yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy95); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + case 167: /* db_name_cond_opt ::= db_name NK_DOT */ +{ yylhsminor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-1].minor.yy337); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 166: /* like_pattern_opt ::= */ - case 177: /* index_options ::= */ yytestcase(yyruleno==177); - case 308: /* where_clause_opt ::= */ yytestcase(yyruleno==308); - case 312: /* twindow_clause_opt ::= */ yytestcase(yyruleno==312); - case 317: /* sliding_opt ::= */ yytestcase(yyruleno==317); - case 319: /* fill_opt ::= */ yytestcase(yyruleno==319); - case 331: /* having_clause_opt ::= */ yytestcase(yyruleno==331); - case 339: /* slimit_clause_opt ::= */ yytestcase(yyruleno==339); - case 343: /* limit_clause_opt ::= */ yytestcase(yyruleno==343); -{ yymsp[1].minor.yy46 = NULL; } + case 168: /* like_pattern_opt ::= */ + case 179: /* index_options ::= */ yytestcase(yyruleno==179); + case 310: /* where_clause_opt ::= */ yytestcase(yyruleno==310); + case 314: /* twindow_clause_opt ::= */ yytestcase(yyruleno==314); + case 319: /* sliding_opt ::= */ yytestcase(yyruleno==319); + case 321: /* fill_opt ::= */ yytestcase(yyruleno==321); + case 333: /* having_clause_opt ::= */ yytestcase(yyruleno==333); + case 341: /* slimit_clause_opt ::= */ yytestcase(yyruleno==341); + case 345: /* limit_clause_opt ::= */ yytestcase(yyruleno==345); +{ yymsp[1].minor.yy24 = NULL; } break; - case 167: /* like_pattern_opt ::= LIKE NK_STRING */ -{ yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + case 169: /* like_pattern_opt ::= LIKE NK_STRING */ +{ yymsp[-1].minor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } break; - case 168: /* table_name_cond ::= table_name */ -{ yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy95); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 170: /* table_name_cond ::= table_name */ +{ yylhsminor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy337); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 170: /* from_db_opt ::= FROM db_name */ -{ yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy95); } + case 172: /* from_db_opt ::= FROM db_name */ +{ yymsp[-1].minor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy337); } break; - case 173: /* func_name ::= function_name */ -{ yylhsminor.yy46 = createFunctionNode(pCxt, &yymsp[0].minor.yy95, NULL); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 175: /* func_name ::= function_name */ +{ yylhsminor.yy24 = createFunctionNode(pCxt, &yymsp[0].minor.yy337, NULL); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 174: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy151, &yymsp[-3].minor.yy95, &yymsp[-1].minor.yy95, NULL, yymsp[0].minor.yy46); } + case 176: /* cmd ::= CREATE SMA INDEX not_exists_opt index_name ON table_name index_options */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_SMA, yymsp[-4].minor.yy265, &yymsp[-3].minor.yy337, &yymsp[-1].minor.yy337, NULL, yymsp[0].minor.yy24); } break; - case 175: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ -{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy151, &yymsp[-5].minor.yy95, &yymsp[-3].minor.yy95, yymsp[-1].minor.yy194, NULL); } + case 177: /* cmd ::= CREATE FULLTEXT INDEX not_exists_opt index_name ON table_name NK_LP col_name_list NK_RP */ +{ pCxt->pRootNode = createCreateIndexStmt(pCxt, INDEX_TYPE_FULLTEXT, yymsp[-6].minor.yy265, &yymsp[-5].minor.yy337, &yymsp[-3].minor.yy337, yymsp[-1].minor.yy504, NULL); } break; - case 176: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ -{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy151, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy95); } + case 178: /* cmd ::= DROP INDEX exists_opt index_name ON table_name */ +{ pCxt->pRootNode = createDropIndexStmt(pCxt, yymsp[-3].minor.yy265, &yymsp[-2].minor.yy337, &yymsp[0].minor.yy337); } break; - case 178: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ -{ yymsp[-8].minor.yy46 = createIndexOption(pCxt, yymsp[-6].minor.yy194, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), NULL, yymsp[0].minor.yy46); } + case 180: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_RP sliding_opt */ +{ yymsp[-8].minor.yy24 = createIndexOption(pCxt, yymsp[-6].minor.yy504, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), NULL, yymsp[0].minor.yy24); } break; - case 179: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ -{ yymsp[-10].minor.yy46 = createIndexOption(pCxt, yymsp[-8].minor.yy194, releaseRawExprNode(pCxt, yymsp[-4].minor.yy46), releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), yymsp[0].minor.yy46); } + case 181: /* index_options ::= FUNCTION NK_LP func_list NK_RP INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt */ +{ yymsp[-10].minor.yy24 = createIndexOption(pCxt, yymsp[-8].minor.yy504, releaseRawExprNode(pCxt, yymsp[-4].minor.yy24), releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), yymsp[0].minor.yy24); } break; - case 182: /* func ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy46 = createFunctionNode(pCxt, &yymsp[-3].minor.yy95, yymsp[-1].minor.yy194); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; + case 184: /* func ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy24 = createFunctionNode(pCxt, &yymsp[-3].minor.yy337, yymsp[-1].minor.yy504); } + yymsp[-3].minor.yy24 = yylhsminor.yy24; break; - case 183: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy151, &yymsp[-2].minor.yy95, yymsp[0].minor.yy46, NULL); } + case 185: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS query_expression */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy265, &yymsp[-2].minor.yy337, yymsp[0].minor.yy24, NULL); } break; - case 184: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ -{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy151, &yymsp[-2].minor.yy95, NULL, &yymsp[0].minor.yy95); } + case 186: /* cmd ::= CREATE TOPIC not_exists_opt topic_name AS db_name */ +{ pCxt->pRootNode = createCreateTopicStmt(pCxt, yymsp[-3].minor.yy265, &yymsp[-2].minor.yy337, NULL, &yymsp[0].minor.yy337); } break; - case 185: /* cmd ::= DROP TOPIC exists_opt topic_name */ -{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy151, &yymsp[0].minor.yy95); } + case 187: /* cmd ::= DROP TOPIC exists_opt topic_name */ +{ pCxt->pRootNode = createDropTopicStmt(pCxt, yymsp[-1].minor.yy265, &yymsp[0].minor.yy337); } break; - case 186: /* cmd ::= DESC full_table_name */ - case 187: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==187); -{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy46); } + case 188: /* cmd ::= DESC full_table_name */ + case 189: /* cmd ::= DESCRIBE full_table_name */ yytestcase(yyruleno==189); +{ pCxt->pRootNode = createDescribeStmt(pCxt, yymsp[0].minor.yy24); } break; - case 188: /* cmd ::= RESET QUERY CACHE */ + case 190: /* cmd ::= RESET QUERY CACHE */ { pCxt->pRootNode = createResetQueryCacheStmt(pCxt); } break; - case 189: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ -{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy151, yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } + case 191: /* cmd ::= EXPLAIN analyze_opt explain_options query_expression */ +{ pCxt->pRootNode = createExplainStmt(pCxt, yymsp[-2].minor.yy265, yymsp[-1].minor.yy24, yymsp[0].minor.yy24); } break; - case 191: /* analyze_opt ::= ANALYZE */ - case 298: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==298); -{ yymsp[0].minor.yy151 = true; } + case 193: /* analyze_opt ::= ANALYZE */ + case 300: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==300); +{ yymsp[0].minor.yy265 = true; } break; - case 192: /* explain_options ::= */ -{ yymsp[1].minor.yy46 = createDefaultExplainOptions(pCxt); } + case 194: /* explain_options ::= */ +{ yymsp[1].minor.yy24 = createDefaultExplainOptions(pCxt); } break; - case 193: /* explain_options ::= explain_options VERBOSE NK_BOOL */ -{ yylhsminor.yy46 = setExplainVerbose(pCxt, yymsp[-2].minor.yy46, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 195: /* explain_options ::= explain_options VERBOSE NK_BOOL */ +{ yylhsminor.yy24 = setExplainVerbose(pCxt, yymsp[-2].minor.yy24, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 194: /* explain_options ::= explain_options RATIO NK_FLOAT */ -{ yylhsminor.yy46 = setExplainRatio(pCxt, yymsp[-2].minor.yy46, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 196: /* explain_options ::= explain_options RATIO NK_FLOAT */ +{ yylhsminor.yy24 = setExplainRatio(pCxt, yymsp[-2].minor.yy24, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 196: /* literal ::= NK_INTEGER */ -{ yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 198: /* literal ::= NK_INTEGER */ +{ yylhsminor.yy24 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 197: /* literal ::= NK_FLOAT */ -{ yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 199: /* literal ::= NK_FLOAT */ +{ yylhsminor.yy24 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 198: /* literal ::= NK_STRING */ -{ yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 200: /* literal ::= NK_STRING */ +{ yylhsminor.yy24 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 199: /* literal ::= NK_BOOL */ -{ yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 201: /* literal ::= NK_BOOL */ +{ yylhsminor.yy24 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 200: /* literal ::= TIMESTAMP NK_STRING */ -{ yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + case 202: /* literal ::= TIMESTAMP NK_STRING */ +{ yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 201: /* literal ::= duration_literal */ - case 210: /* signed_literal ::= signed */ yytestcase(yyruleno==210); - case 227: /* expression ::= literal */ yytestcase(yyruleno==227); - case 228: /* expression ::= pseudo_column */ yytestcase(yyruleno==228); - case 229: /* expression ::= column_reference */ yytestcase(yyruleno==229); - case 232: /* expression ::= subquery */ yytestcase(yyruleno==232); - case 271: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==271); - case 275: /* boolean_primary ::= predicate */ yytestcase(yyruleno==275); - case 277: /* common_expression ::= expression */ yytestcase(yyruleno==277); - case 278: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==278); - case 280: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==280); - case 282: /* table_reference ::= table_primary */ yytestcase(yyruleno==282); - case 283: /* table_reference ::= joined_table */ yytestcase(yyruleno==283); - case 287: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==287); - case 334: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==334); - case 336: /* query_primary ::= query_specification */ yytestcase(yyruleno==336); -{ yylhsminor.yy46 = yymsp[0].minor.yy46; } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 203: /* literal ::= duration_literal */ + case 212: /* signed_literal ::= signed */ yytestcase(yyruleno==212); + case 229: /* expression ::= literal */ yytestcase(yyruleno==229); + case 230: /* expression ::= pseudo_column */ yytestcase(yyruleno==230); + case 231: /* expression ::= column_reference */ yytestcase(yyruleno==231); + case 234: /* expression ::= subquery */ yytestcase(yyruleno==234); + case 273: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==273); + case 277: /* boolean_primary ::= predicate */ yytestcase(yyruleno==277); + case 279: /* common_expression ::= expression */ yytestcase(yyruleno==279); + case 280: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==280); + case 282: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==282); + case 284: /* table_reference ::= table_primary */ yytestcase(yyruleno==284); + case 285: /* table_reference ::= joined_table */ yytestcase(yyruleno==285); + case 289: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==289); + case 336: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==336); + case 338: /* query_primary ::= query_specification */ yytestcase(yyruleno==338); +{ yylhsminor.yy24 = yymsp[0].minor.yy24; } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 202: /* literal ::= NULL */ -{ yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL)); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 204: /* literal ::= NULL */ +{ yylhsminor.yy24 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL)); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 203: /* duration_literal ::= NK_VARIABLE */ -{ yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 205: /* duration_literal ::= NK_VARIABLE */ +{ yylhsminor.yy24 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 204: /* signed ::= NK_INTEGER */ -{ yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 206: /* signed ::= NK_INTEGER */ +{ yylhsminor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 205: /* signed ::= NK_PLUS NK_INTEGER */ -{ yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } + case 207: /* signed ::= NK_PLUS NK_INTEGER */ +{ yymsp[-1].minor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; - case 206: /* signed ::= NK_MINUS NK_INTEGER */ + case 208: /* signed ::= NK_MINUS NK_INTEGER */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); + yylhsminor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &t); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 207: /* signed ::= NK_FLOAT */ -{ yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 209: /* signed ::= NK_FLOAT */ +{ yylhsminor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 208: /* signed ::= NK_PLUS NK_FLOAT */ -{ yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } + case 210: /* signed ::= NK_PLUS NK_FLOAT */ +{ yymsp[-1].minor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 209: /* signed ::= NK_MINUS NK_FLOAT */ + case 211: /* signed ::= NK_MINUS NK_FLOAT */ { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); + yylhsminor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &t); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 211: /* signed_literal ::= NK_STRING */ -{ yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 213: /* signed_literal ::= NK_STRING */ +{ yylhsminor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 212: /* signed_literal ::= NK_BOOL */ -{ yylhsminor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 214: /* signed_literal ::= NK_BOOL */ +{ yylhsminor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 213: /* signed_literal ::= TIMESTAMP NK_STRING */ -{ yymsp[-1].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } + case 215: /* signed_literal ::= TIMESTAMP NK_STRING */ +{ yymsp[-1].minor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 214: /* signed_literal ::= duration_literal */ - case 348: /* search_condition ::= common_expression */ yytestcase(yyruleno==348); -{ yylhsminor.yy46 = releaseRawExprNode(pCxt, yymsp[0].minor.yy46); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 216: /* signed_literal ::= duration_literal */ + case 350: /* search_condition ::= common_expression */ yytestcase(yyruleno==350); +{ yylhsminor.yy24 = releaseRawExprNode(pCxt, yymsp[0].minor.yy24); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 215: /* signed_literal ::= NULL */ -{ yymsp[0].minor.yy46 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } + case 217: /* signed_literal ::= NULL */ +{ yymsp[0].minor.yy24 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, NULL); } break; - case 230: /* expression ::= function_name NK_LP expression_list NK_RP */ -{ yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy95, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy95, yymsp[-1].minor.yy194)); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; + case 232: /* expression ::= function_name NK_LP expression_list NK_RP */ +{ yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy337, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy337, yymsp[-1].minor.yy504)); } + yymsp[-3].minor.yy24 = yylhsminor.yy24; break; - case 231: /* expression ::= function_name NK_LP NK_STAR NK_RP */ -{ yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy95, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy95, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; + case 233: /* expression ::= function_name NK_LP NK_STAR NK_RP */ +{ yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy337, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy337, createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[-1].minor.yy0)))); } + yymsp[-3].minor.yy24 = yylhsminor.yy24; break; - case 233: /* expression ::= NK_LP expression NK_RP */ - case 276: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==276); -{ yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy46)); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 235: /* expression ::= NK_LP expression NK_RP */ + case 278: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==278); +{ yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy24)); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 234: /* expression ::= NK_PLUS expression */ + case 236: /* expression ::= NK_PLUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy46)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy24)); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 235: /* expression ::= NK_MINUS expression */ + case 237: /* expression ::= NK_MINUS expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[0].minor.yy46), NULL)); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[0].minor.yy24), NULL)); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 236: /* expression ::= expression NK_PLUS expression */ + case 238: /* expression ::= expression NK_PLUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_ADD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 237: /* expression ::= expression NK_MINUS expression */ + case 239: /* expression ::= expression NK_MINUS expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_SUB, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 238: /* expression ::= expression NK_STAR expression */ + case 240: /* expression ::= expression NK_STAR expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MULTI, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 239: /* expression ::= expression NK_SLASH expression */ + case 241: /* expression ::= expression NK_SLASH expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_DIV, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 240: /* expression ::= expression NK_REM expression */ + case 242: /* expression ::= expression NK_REM expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, OP_TYPE_MOD, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 241: /* expression_list ::= expression */ -{ yylhsminor.yy194 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy46)); } - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 243: /* expression_list ::= expression */ +{ yylhsminor.yy504 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy24)); } + yymsp[0].minor.yy504 = yylhsminor.yy504; break; - case 242: /* expression_list ::= expression_list NK_COMMA expression */ -{ yylhsminor.yy194 = addNodeToList(pCxt, yymsp[-2].minor.yy194, releaseRawExprNode(pCxt, yymsp[0].minor.yy46)); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 244: /* expression_list ::= expression_list NK_COMMA expression */ +{ yylhsminor.yy504 = addNodeToList(pCxt, yymsp[-2].minor.yy504, releaseRawExprNode(pCxt, yymsp[0].minor.yy24)); } + yymsp[-2].minor.yy504 = yylhsminor.yy504; break; - case 243: /* column_reference ::= column_name */ -{ yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy95, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy95)); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 245: /* column_reference ::= column_name */ +{ yylhsminor.yy24 = createRawExprNode(pCxt, &yymsp[0].minor.yy337, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy337)); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 244: /* column_reference ::= table_name NK_DOT column_name */ -{ yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy95, createColumnNode(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy95)); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 246: /* column_reference ::= table_name NK_DOT column_name */ +{ yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy337, &yymsp[0].minor.yy337, createColumnNode(pCxt, &yymsp[-2].minor.yy337, &yymsp[0].minor.yy337)); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 245: /* pseudo_column ::= NK_UNDERLINE ROWTS */ - case 247: /* pseudo_column ::= NK_UNDERLINE QSTARTTS */ yytestcase(yyruleno==247); - case 248: /* pseudo_column ::= NK_UNDERLINE QENDTS */ yytestcase(yyruleno==248); - case 249: /* pseudo_column ::= NK_UNDERLINE WSTARTTS */ yytestcase(yyruleno==249); - case 250: /* pseudo_column ::= NK_UNDERLINE WENDTS */ yytestcase(yyruleno==250); - case 251: /* pseudo_column ::= NK_UNDERLINE WDURATION */ yytestcase(yyruleno==251); + case 247: /* pseudo_column ::= NK_UNDERLINE ROWTS */ + case 249: /* pseudo_column ::= NK_UNDERLINE QSTARTTS */ yytestcase(yyruleno==249); + case 250: /* pseudo_column ::= NK_UNDERLINE QENDTS */ yytestcase(yyruleno==250); + case 251: /* pseudo_column ::= NK_UNDERLINE WSTARTTS */ yytestcase(yyruleno==251); + case 252: /* pseudo_column ::= NK_UNDERLINE WENDTS */ yytestcase(yyruleno==252); + case 253: /* pseudo_column ::= NK_UNDERLINE WDURATION */ yytestcase(yyruleno==253); { SToken t = yymsp[-1].minor.yy0; t.n = (yymsp[0].minor.yy0.z + yymsp[0].minor.yy0.n) - yymsp[-1].minor.yy0.z; - yylhsminor.yy46 = createRawExprNode(pCxt, &t, createFunctionNode(pCxt, &t, NULL)); + yylhsminor.yy24 = createRawExprNode(pCxt, &t, createFunctionNode(pCxt, &t, NULL)); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 246: /* pseudo_column ::= TBNAME */ -{ yylhsminor.yy46 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + case 248: /* pseudo_column ::= TBNAME */ +{ yylhsminor.yy24 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 252: /* predicate ::= expression compare_op expression */ - case 257: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==257); + case 254: /* predicate ::= expression compare_op expression */ + case 259: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==259); { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy292, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createOperatorNode(pCxt, yymsp[-1].minor.yy36, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 253: /* predicate ::= expression BETWEEN expression AND expression */ + case 255: /* predicate ::= expression BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy46), releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-4].minor.yy24), releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-4].minor.yy46 = yylhsminor.yy46; + yymsp[-4].minor.yy24 = yylhsminor.yy24; break; - case 254: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 256: /* predicate ::= expression NOT BETWEEN expression AND expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[-5].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createNotBetweenAnd(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[-5].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-5].minor.yy46 = yylhsminor.yy46; + yymsp[-5].minor.yy24 = yylhsminor.yy24; break; - case 255: /* predicate ::= expression IS NULL */ + case 257: /* predicate ::= expression IS NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), NULL)); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 256: /* predicate ::= expression IS NOT NULL */ + case 258: /* predicate ::= expression IS NOT NULL */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy46), NULL)); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy24), NULL)); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; + yymsp[-3].minor.yy24 = yylhsminor.yy24; break; - case 258: /* compare_op ::= NK_LT */ -{ yymsp[0].minor.yy292 = OP_TYPE_LOWER_THAN; } + case 260: /* compare_op ::= NK_LT */ +{ yymsp[0].minor.yy36 = OP_TYPE_LOWER_THAN; } break; - case 259: /* compare_op ::= NK_GT */ -{ yymsp[0].minor.yy292 = OP_TYPE_GREATER_THAN; } + case 261: /* compare_op ::= NK_GT */ +{ yymsp[0].minor.yy36 = OP_TYPE_GREATER_THAN; } break; - case 260: /* compare_op ::= NK_LE */ -{ yymsp[0].minor.yy292 = OP_TYPE_LOWER_EQUAL; } + case 262: /* compare_op ::= NK_LE */ +{ yymsp[0].minor.yy36 = OP_TYPE_LOWER_EQUAL; } break; - case 261: /* compare_op ::= NK_GE */ -{ yymsp[0].minor.yy292 = OP_TYPE_GREATER_EQUAL; } + case 263: /* compare_op ::= NK_GE */ +{ yymsp[0].minor.yy36 = OP_TYPE_GREATER_EQUAL; } break; - case 262: /* compare_op ::= NK_NE */ -{ yymsp[0].minor.yy292 = OP_TYPE_NOT_EQUAL; } + case 264: /* compare_op ::= NK_NE */ +{ yymsp[0].minor.yy36 = OP_TYPE_NOT_EQUAL; } break; - case 263: /* compare_op ::= NK_EQ */ -{ yymsp[0].minor.yy292 = OP_TYPE_EQUAL; } + case 265: /* compare_op ::= NK_EQ */ +{ yymsp[0].minor.yy36 = OP_TYPE_EQUAL; } break; - case 264: /* compare_op ::= LIKE */ -{ yymsp[0].minor.yy292 = OP_TYPE_LIKE; } + case 266: /* compare_op ::= LIKE */ +{ yymsp[0].minor.yy36 = OP_TYPE_LIKE; } break; - case 265: /* compare_op ::= NOT LIKE */ -{ yymsp[-1].minor.yy292 = OP_TYPE_NOT_LIKE; } + case 267: /* compare_op ::= NOT LIKE */ +{ yymsp[-1].minor.yy36 = OP_TYPE_NOT_LIKE; } break; - case 266: /* compare_op ::= MATCH */ -{ yymsp[0].minor.yy292 = OP_TYPE_MATCH; } + case 268: /* compare_op ::= MATCH */ +{ yymsp[0].minor.yy36 = OP_TYPE_MATCH; } break; - case 267: /* compare_op ::= NMATCH */ -{ yymsp[0].minor.yy292 = OP_TYPE_NMATCH; } + case 269: /* compare_op ::= NMATCH */ +{ yymsp[0].minor.yy36 = OP_TYPE_NMATCH; } break; - case 268: /* in_op ::= IN */ -{ yymsp[0].minor.yy292 = OP_TYPE_IN; } + case 270: /* in_op ::= IN */ +{ yymsp[0].minor.yy36 = OP_TYPE_IN; } break; - case 269: /* in_op ::= NOT IN */ -{ yymsp[-1].minor.yy292 = OP_TYPE_NOT_IN; } + case 271: /* in_op ::= NOT IN */ +{ yymsp[-1].minor.yy36 = OP_TYPE_NOT_IN; } break; - case 270: /* in_predicate_value ::= NK_LP expression_list NK_RP */ -{ yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy194)); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 272: /* in_predicate_value ::= NK_LP expression_list NK_RP */ +{ yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy504)); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 272: /* boolean_value_expression ::= NOT boolean_primary */ + case 274: /* boolean_value_expression ::= NOT boolean_primary */ { - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy46), NULL)); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy24), NULL)); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 273: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 275: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_OR, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 274: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 276: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { - SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy46); - SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); + SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy24); + SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = createRawExprNodeExt(pCxt, &s, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_AND, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 279: /* from_clause ::= FROM table_reference_list */ - case 309: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==309); - case 332: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==332); -{ yymsp[-1].minor.yy46 = yymsp[0].minor.yy46; } + case 281: /* from_clause ::= FROM table_reference_list */ + case 311: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==311); + case 334: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==334); +{ yymsp[-1].minor.yy24 = yymsp[0].minor.yy24; } break; - case 281: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ -{ yylhsminor.yy46 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy46, yymsp[0].minor.yy46, NULL); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 283: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ +{ yylhsminor.yy24 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy24, yymsp[0].minor.yy24, NULL); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 284: /* table_primary ::= table_name alias_opt */ -{ yylhsminor.yy46 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy95, &yymsp[0].minor.yy95); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + case 286: /* table_primary ::= table_name alias_opt */ +{ yylhsminor.yy24 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy337, &yymsp[0].minor.yy337); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 285: /* table_primary ::= db_name NK_DOT table_name alias_opt */ -{ yylhsminor.yy46 = createRealTableNode(pCxt, &yymsp[-3].minor.yy95, &yymsp[-1].minor.yy95, &yymsp[0].minor.yy95); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; + case 287: /* table_primary ::= db_name NK_DOT table_name alias_opt */ +{ yylhsminor.yy24 = createRealTableNode(pCxt, &yymsp[-3].minor.yy337, &yymsp[-1].minor.yy337, &yymsp[0].minor.yy337); } + yymsp[-3].minor.yy24 = yylhsminor.yy24; break; - case 286: /* table_primary ::= subquery alias_opt */ -{ yylhsminor.yy46 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy46), &yymsp[0].minor.yy95); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + case 288: /* table_primary ::= subquery alias_opt */ +{ yylhsminor.yy24 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy24), &yymsp[0].minor.yy337); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 288: /* alias_opt ::= */ -{ yymsp[1].minor.yy95 = nil_token; } + case 290: /* alias_opt ::= */ +{ yymsp[1].minor.yy337 = nil_token; } break; - case 289: /* alias_opt ::= table_alias */ -{ yylhsminor.yy95 = yymsp[0].minor.yy95; } - yymsp[0].minor.yy95 = yylhsminor.yy95; + case 291: /* alias_opt ::= table_alias */ +{ yylhsminor.yy337 = yymsp[0].minor.yy337; } + yymsp[0].minor.yy337 = yylhsminor.yy337; break; - case 290: /* alias_opt ::= AS table_alias */ -{ yymsp[-1].minor.yy95 = yymsp[0].minor.yy95; } + case 292: /* alias_opt ::= AS table_alias */ +{ yymsp[-1].minor.yy337 = yymsp[0].minor.yy337; } break; - case 291: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 292: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==292); -{ yymsp[-2].minor.yy46 = yymsp[-1].minor.yy46; } + case 293: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 294: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==294); +{ yymsp[-2].minor.yy24 = yymsp[-1].minor.yy24; } break; - case 293: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ -{ yylhsminor.yy46 = createJoinTableNode(pCxt, yymsp[-4].minor.yy10, yymsp[-5].minor.yy46, yymsp[-2].minor.yy46, yymsp[0].minor.yy46); } - yymsp[-5].minor.yy46 = yylhsminor.yy46; + case 295: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ +{ yylhsminor.yy24 = createJoinTableNode(pCxt, yymsp[-4].minor.yy320, yymsp[-5].minor.yy24, yymsp[-2].minor.yy24, yymsp[0].minor.yy24); } + yymsp[-5].minor.yy24 = yylhsminor.yy24; break; - case 294: /* join_type ::= */ -{ yymsp[1].minor.yy10 = JOIN_TYPE_INNER; } + case 296: /* join_type ::= */ +{ yymsp[1].minor.yy320 = JOIN_TYPE_INNER; } break; - case 295: /* join_type ::= INNER */ -{ yymsp[0].minor.yy10 = JOIN_TYPE_INNER; } + case 297: /* join_type ::= INNER */ +{ yymsp[0].minor.yy320 = JOIN_TYPE_INNER; } break; - case 296: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 298: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause where_clause_opt partition_by_clause_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { - yymsp[-8].minor.yy46 = createSelectStmt(pCxt, yymsp[-7].minor.yy151, yymsp[-6].minor.yy194, yymsp[-5].minor.yy46); - yymsp[-8].minor.yy46 = addWhereClause(pCxt, yymsp[-8].minor.yy46, yymsp[-4].minor.yy46); - yymsp[-8].minor.yy46 = addPartitionByClause(pCxt, yymsp[-8].minor.yy46, yymsp[-3].minor.yy194); - yymsp[-8].minor.yy46 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy46, yymsp[-2].minor.yy46); - yymsp[-8].minor.yy46 = addGroupByClause(pCxt, yymsp[-8].minor.yy46, yymsp[-1].minor.yy194); - yymsp[-8].minor.yy46 = addHavingClause(pCxt, yymsp[-8].minor.yy46, yymsp[0].minor.yy46); + yymsp[-8].minor.yy24 = createSelectStmt(pCxt, yymsp[-7].minor.yy265, yymsp[-6].minor.yy504, yymsp[-5].minor.yy24); + yymsp[-8].minor.yy24 = addWhereClause(pCxt, yymsp[-8].minor.yy24, yymsp[-4].minor.yy24); + yymsp[-8].minor.yy24 = addPartitionByClause(pCxt, yymsp[-8].minor.yy24, yymsp[-3].minor.yy504); + yymsp[-8].minor.yy24 = addWindowClauseClause(pCxt, yymsp[-8].minor.yy24, yymsp[-2].minor.yy24); + yymsp[-8].minor.yy24 = addGroupByClause(pCxt, yymsp[-8].minor.yy24, yymsp[-1].minor.yy504); + yymsp[-8].minor.yy24 = addHavingClause(pCxt, yymsp[-8].minor.yy24, yymsp[0].minor.yy24); } break; - case 299: /* set_quantifier_opt ::= ALL */ -{ yymsp[0].minor.yy151 = false; } + case 301: /* set_quantifier_opt ::= ALL */ +{ yymsp[0].minor.yy265 = false; } break; - case 300: /* select_list ::= NK_STAR */ -{ yymsp[0].minor.yy194 = NULL; } + case 302: /* select_list ::= NK_STAR */ +{ yymsp[0].minor.yy504 = NULL; } break; - case 304: /* select_item ::= common_expression */ + case 306: /* select_item ::= common_expression */ { - SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy46); - yylhsminor.yy46 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy46), &t); + SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy24); + yylhsminor.yy24 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy24), &t); } - yymsp[0].minor.yy46 = yylhsminor.yy46; + yymsp[0].minor.yy24 = yylhsminor.yy24; break; - case 305: /* select_item ::= common_expression column_alias */ -{ yylhsminor.yy46 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy46), &yymsp[0].minor.yy95); } - yymsp[-1].minor.yy46 = yylhsminor.yy46; + case 307: /* select_item ::= common_expression column_alias */ +{ yylhsminor.yy24 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy24), &yymsp[0].minor.yy337); } + yymsp[-1].minor.yy24 = yylhsminor.yy24; break; - case 306: /* select_item ::= common_expression AS column_alias */ -{ yylhsminor.yy46 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), &yymsp[0].minor.yy95); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 308: /* select_item ::= common_expression AS column_alias */ +{ yylhsminor.yy24 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), &yymsp[0].minor.yy337); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 307: /* select_item ::= table_name NK_DOT NK_STAR */ -{ yylhsminor.yy46 = createColumnNode(pCxt, &yymsp[-2].minor.yy95, &yymsp[0].minor.yy0); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 309: /* select_item ::= table_name NK_DOT NK_STAR */ +{ yylhsminor.yy24 = createColumnNode(pCxt, &yymsp[-2].minor.yy337, &yymsp[0].minor.yy0); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 311: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 328: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==328); - case 338: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==338); -{ yymsp[-2].minor.yy194 = yymsp[0].minor.yy194; } + case 313: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 330: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==330); + case 340: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==340); +{ yymsp[-2].minor.yy504 = yymsp[0].minor.yy504; } break; - case 313: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ -{ yymsp[-5].minor.yy46 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy46), releaseRawExprNode(pCxt, yymsp[-1].minor.yy46)); } + case 315: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ +{ yymsp[-5].minor.yy24 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy24), releaseRawExprNode(pCxt, yymsp[-1].minor.yy24)); } break; - case 314: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ -{ yymsp[-3].minor.yy46 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy46)); } + case 316: /* twindow_clause_opt ::= STATE_WINDOW NK_LP column_reference NK_RP */ +{ yymsp[-3].minor.yy24 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy24)); } break; - case 315: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-5].minor.yy46 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy46), NULL, yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } + case 317: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-5].minor.yy24 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy24), NULL, yymsp[-1].minor.yy24, yymsp[0].minor.yy24); } break; - case 316: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ -{ yymsp[-7].minor.yy46 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy46), releaseRawExprNode(pCxt, yymsp[-3].minor.yy46), yymsp[-1].minor.yy46, yymsp[0].minor.yy46); } + case 318: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ +{ yymsp[-7].minor.yy24 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy24), releaseRawExprNode(pCxt, yymsp[-3].minor.yy24), yymsp[-1].minor.yy24, yymsp[0].minor.yy24); } break; - case 318: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ -{ yymsp[-3].minor.yy46 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy46); } + case 320: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ +{ yymsp[-3].minor.yy24 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy24); } break; - case 320: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ -{ yymsp[-3].minor.yy46 = createFillNode(pCxt, yymsp[-1].minor.yy6, NULL); } + case 322: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ +{ yymsp[-3].minor.yy24 = createFillNode(pCxt, yymsp[-1].minor.yy550, NULL); } break; - case 321: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ -{ yymsp[-5].minor.yy46 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy194)); } + case 323: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ +{ yymsp[-5].minor.yy24 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy504)); } break; - case 322: /* fill_mode ::= NONE */ -{ yymsp[0].minor.yy6 = FILL_MODE_NONE; } + case 324: /* fill_mode ::= NONE */ +{ yymsp[0].minor.yy550 = FILL_MODE_NONE; } break; - case 323: /* fill_mode ::= PREV */ -{ yymsp[0].minor.yy6 = FILL_MODE_PREV; } + case 325: /* fill_mode ::= PREV */ +{ yymsp[0].minor.yy550 = FILL_MODE_PREV; } break; - case 324: /* fill_mode ::= NULL */ -{ yymsp[0].minor.yy6 = FILL_MODE_NULL; } + case 326: /* fill_mode ::= NULL */ +{ yymsp[0].minor.yy550 = FILL_MODE_NULL; } break; - case 325: /* fill_mode ::= LINEAR */ -{ yymsp[0].minor.yy6 = FILL_MODE_LINEAR; } + case 327: /* fill_mode ::= LINEAR */ +{ yymsp[0].minor.yy550 = FILL_MODE_LINEAR; } break; - case 326: /* fill_mode ::= NEXT */ -{ yymsp[0].minor.yy6 = FILL_MODE_NEXT; } + case 328: /* fill_mode ::= NEXT */ +{ yymsp[0].minor.yy550 = FILL_MODE_NEXT; } break; - case 329: /* group_by_list ::= expression */ -{ yylhsminor.yy194 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); } - yymsp[0].minor.yy194 = yylhsminor.yy194; + case 331: /* group_by_list ::= expression */ +{ yylhsminor.yy504 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } + yymsp[0].minor.yy504 = yylhsminor.yy504; break; - case 330: /* group_by_list ::= group_by_list NK_COMMA expression */ -{ yylhsminor.yy194 = addNodeToList(pCxt, yymsp[-2].minor.yy194, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy46))); } - yymsp[-2].minor.yy194 = yylhsminor.yy194; + case 332: /* group_by_list ::= group_by_list NK_COMMA expression */ +{ yylhsminor.yy504 = addNodeToList(pCxt, yymsp[-2].minor.yy504, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy24))); } + yymsp[-2].minor.yy504 = yylhsminor.yy504; break; - case 333: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 335: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { - yylhsminor.yy46 = addOrderByClause(pCxt, yymsp[-3].minor.yy46, yymsp[-2].minor.yy194); - yylhsminor.yy46 = addSlimitClause(pCxt, yylhsminor.yy46, yymsp[-1].minor.yy46); - yylhsminor.yy46 = addLimitClause(pCxt, yylhsminor.yy46, yymsp[0].minor.yy46); + yylhsminor.yy24 = addOrderByClause(pCxt, yymsp[-3].minor.yy24, yymsp[-2].minor.yy504); + yylhsminor.yy24 = addSlimitClause(pCxt, yylhsminor.yy24, yymsp[-1].minor.yy24); + yylhsminor.yy24 = addLimitClause(pCxt, yylhsminor.yy24, yymsp[0].minor.yy24); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; + yymsp[-3].minor.yy24 = yylhsminor.yy24; break; - case 335: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ -{ yylhsminor.yy46 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy46, yymsp[0].minor.yy46); } - yymsp[-3].minor.yy46 = yylhsminor.yy46; + case 337: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ +{ yylhsminor.yy24 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy24, yymsp[0].minor.yy24); } + yymsp[-3].minor.yy24 = yylhsminor.yy24; break; - case 340: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 344: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==344); -{ yymsp[-1].minor.yy46 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } + case 342: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 346: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==346); +{ yymsp[-1].minor.yy24 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 341: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 345: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==345); -{ yymsp[-3].minor.yy46 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } + case 343: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 347: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==347); +{ yymsp[-3].minor.yy24 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 342: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 346: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==346); -{ yymsp[-3].minor.yy46 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } + case 344: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 348: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==348); +{ yymsp[-3].minor.yy24 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 347: /* subquery ::= NK_LP query_expression NK_RP */ -{ yylhsminor.yy46 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy46); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 349: /* subquery ::= NK_LP query_expression NK_RP */ +{ yylhsminor.yy24 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy24); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 351: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ -{ yylhsminor.yy46 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy46), yymsp[-1].minor.yy456, yymsp[0].minor.yy273); } - yymsp[-2].minor.yy46 = yylhsminor.yy46; + case 353: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ +{ yylhsminor.yy24 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy24), yymsp[-1].minor.yy346, yymsp[0].minor.yy45); } + yymsp[-2].minor.yy24 = yylhsminor.yy24; break; - case 352: /* ordering_specification_opt ::= */ -{ yymsp[1].minor.yy456 = ORDER_ASC; } + case 354: /* ordering_specification_opt ::= */ +{ yymsp[1].minor.yy346 = ORDER_ASC; } break; - case 353: /* ordering_specification_opt ::= ASC */ -{ yymsp[0].minor.yy456 = ORDER_ASC; } + case 355: /* ordering_specification_opt ::= ASC */ +{ yymsp[0].minor.yy346 = ORDER_ASC; } break; - case 354: /* ordering_specification_opt ::= DESC */ -{ yymsp[0].minor.yy456 = ORDER_DESC; } + case 356: /* ordering_specification_opt ::= DESC */ +{ yymsp[0].minor.yy346 = ORDER_DESC; } break; - case 355: /* null_ordering_opt ::= */ -{ yymsp[1].minor.yy273 = NULL_ORDER_DEFAULT; } + case 357: /* null_ordering_opt ::= */ +{ yymsp[1].minor.yy45 = NULL_ORDER_DEFAULT; } break; - case 356: /* null_ordering_opt ::= NULLS FIRST */ -{ yymsp[-1].minor.yy273 = NULL_ORDER_FIRST; } + case 358: /* null_ordering_opt ::= NULLS FIRST */ +{ yymsp[-1].minor.yy45 = NULL_ORDER_FIRST; } break; - case 357: /* null_ordering_opt ::= NULLS LAST */ -{ yymsp[-1].minor.yy273 = NULL_ORDER_LAST; } + case 359: /* null_ordering_opt ::= NULLS LAST */ +{ yymsp[-1].minor.yy45 = NULL_ORDER_LAST; } break; default: break; diff --git a/tests/script/tsim/db/alter_option.sim b/tests/script/tsim/db/alter_option.sim index 0fc7175cb1..234eb16744 100644 --- a/tests/script/tsim/db/alter_option.sim +++ b/tests/script/tsim/db/alter_option.sim @@ -66,7 +66,7 @@ print ============= create database # | REPLICA value [1 | 3] # | WAL value [1 | 2] -sql create database db BLOCKS 7 CACHE 3 CACHELAST 3 COMP 0 DAYS 240 FSYNC 1000 MAXROWS 8000 MINROWS 10 KEEP 1000 PRECISION 'ns' QUORUM 1 REPLICA 3 TTL 7 WAL 2 VGROUPS 6 SINGLE_STABLE 1 STREAM_MODE 1 +sql create database db BLOCKS 7 CACHE 3 CACHELAST 3 COMP 0 DAYS 345600 FSYNC 1000 MAXROWS 8000 MINROWS 10 KEEP 1440000 PRECISION 'ns' QUORUM 1 REPLICA 3 TTL 7 WAL 2 VGROUPS 6 SINGLE_STABLE 1 STREAM_MODE 1 sql show databases print rows: $rows print $data00 $data01 $data02 $data03 $data04 $data05 $data06 $data07 $data08 $data09 @@ -92,10 +92,10 @@ endi if $data5_db != 1 then # quorum return -1 endi -if $data6_db != 240 then # days +if $data6_db != 345600 then # days return -1 endi -if $data7_db != 1000,1000,1000 then # keep +if $data7_db != 1440000,1440000,1440000 then # keep return -1 endi if $data8_db != 3 then # cache @@ -186,7 +186,7 @@ print ============== modify keep sql alter database db keep 2000 sql show databases print keep $data7_db -if $data7_db != 1000,1000,2000 then +if $data7_db != 2000,2000,2000 then return -1 endi