diff --git a/include/common/ttokendef.h b/include/common/ttokendef.h index bd73e047465d40275e2e3c1449686e5f73ba76a7..77a26fdf36034058c272711a4320b8ee664dda2f 100644 --- a/include/common/ttokendef.h +++ b/include/common/ttokendef.h @@ -204,65 +204,65 @@ #define TK_SPLIT 186 #define TK_SYNCDB 187 #define TK_DELETE 188 -#define TK_NULL 189 -#define TK_NK_QUESTION 190 -#define TK_NK_ARROW 191 -#define TK_ROWTS 192 -#define TK_TBNAME 193 -#define TK_QSTARTTS 194 -#define TK_QENDTS 195 -#define TK_WSTARTTS 196 -#define TK_WENDTS 197 -#define TK_WDURATION 198 -#define TK_CAST 199 -#define TK_NOW 200 -#define TK_TODAY 201 -#define TK_TIMEZONE 202 -#define TK_CLIENT_VERSION 203 -#define TK_SERVER_VERSION 204 -#define TK_SERVER_STATUS 205 -#define TK_CURRENT_USER 206 -#define TK_COUNT 207 -#define TK_LAST_ROW 208 -#define TK_BETWEEN 209 -#define TK_IS 210 -#define TK_NK_LT 211 -#define TK_NK_GT 212 -#define TK_NK_LE 213 -#define TK_NK_GE 214 -#define TK_NK_NE 215 -#define TK_MATCH 216 -#define TK_NMATCH 217 -#define TK_CONTAINS 218 -#define TK_JOIN 219 -#define TK_INNER 220 -#define TK_SELECT 221 -#define TK_DISTINCT 222 -#define TK_WHERE 223 -#define TK_PARTITION 224 -#define TK_BY 225 -#define TK_SESSION 226 -#define TK_STATE_WINDOW 227 -#define TK_SLIDING 228 -#define TK_FILL 229 -#define TK_VALUE 230 -#define TK_NONE 231 -#define TK_PREV 232 -#define TK_LINEAR 233 -#define TK_NEXT 234 -#define TK_HAVING 235 -#define TK_RANGE 236 -#define TK_EVERY 237 -#define TK_ORDER 238 -#define TK_SLIMIT 239 -#define TK_SOFFSET 240 -#define TK_LIMIT 241 -#define TK_OFFSET 242 -#define TK_ASC 243 -#define TK_NULLS 244 -#define TK_ID 245 -#define TK_NK_BITNOT 246 -#define TK_INSERT 247 +#define TK_INSERT 189 +#define TK_NULL 190 +#define TK_NK_QUESTION 191 +#define TK_NK_ARROW 192 +#define TK_ROWTS 193 +#define TK_TBNAME 194 +#define TK_QSTARTTS 195 +#define TK_QENDTS 196 +#define TK_WSTARTTS 197 +#define TK_WENDTS 198 +#define TK_WDURATION 199 +#define TK_CAST 200 +#define TK_NOW 201 +#define TK_TODAY 202 +#define TK_TIMEZONE 203 +#define TK_CLIENT_VERSION 204 +#define TK_SERVER_VERSION 205 +#define TK_SERVER_STATUS 206 +#define TK_CURRENT_USER 207 +#define TK_COUNT 208 +#define TK_LAST_ROW 209 +#define TK_BETWEEN 210 +#define TK_IS 211 +#define TK_NK_LT 212 +#define TK_NK_GT 213 +#define TK_NK_LE 214 +#define TK_NK_GE 215 +#define TK_NK_NE 216 +#define TK_MATCH 217 +#define TK_NMATCH 218 +#define TK_CONTAINS 219 +#define TK_JOIN 220 +#define TK_INNER 221 +#define TK_SELECT 222 +#define TK_DISTINCT 223 +#define TK_WHERE 224 +#define TK_PARTITION 225 +#define TK_BY 226 +#define TK_SESSION 227 +#define TK_STATE_WINDOW 228 +#define TK_SLIDING 229 +#define TK_FILL 230 +#define TK_VALUE 231 +#define TK_NONE 232 +#define TK_PREV 233 +#define TK_LINEAR 234 +#define TK_NEXT 235 +#define TK_HAVING 236 +#define TK_RANGE 237 +#define TK_EVERY 238 +#define TK_ORDER 239 +#define TK_SLIMIT 240 +#define TK_SOFFSET 241 +#define TK_LIMIT 242 +#define TK_OFFSET 243 +#define TK_ASC 244 +#define TK_NULLS 245 +#define TK_ID 246 +#define TK_NK_BITNOT 247 #define TK_VALUES 248 #define TK_IMPORT 249 #define TK_NK_SEMI 250 diff --git a/include/libs/nodes/nodes.h b/include/libs/nodes/nodes.h index a8637228e451e6b4491452f9eb304ce283ef21c2..88ff0f3b98e6f5c99a79780810695293f6a8fca6 100644 --- a/include/libs/nodes/nodes.h +++ b/include/libs/nodes/nodes.h @@ -194,6 +194,7 @@ typedef enum ENodeType { QUERY_NODE_KILL_QUERY_STMT, QUERY_NODE_KILL_TRANSACTION_STMT, QUERY_NODE_DELETE_STMT, + QUERY_NODE_INSERT_STMT, QUERY_NODE_QUERY, // logic plan node @@ -247,6 +248,7 @@ typedef enum ENodeType { QUERY_NODE_PHYSICAL_PLAN_INTERP_FUNC, QUERY_NODE_PHYSICAL_PLAN_DISPATCH, QUERY_NODE_PHYSICAL_PLAN_INSERT, + QUERY_NODE_PHYSICAL_PLAN_QUERY_INSERT, QUERY_NODE_PHYSICAL_PLAN_DELETE, QUERY_NODE_PHYSICAL_SUBPLAN, QUERY_NODE_PHYSICAL_PLAN diff --git a/include/libs/nodes/plannodes.h b/include/libs/nodes/plannodes.h index debfce5f2de31b127aa078c5bb19702dde4b1985..e3d26edf3045a166381d7b79be4a910bc30086c9 100644 --- a/include/libs/nodes/plannodes.h +++ b/include/libs/nodes/plannodes.h @@ -131,6 +131,7 @@ typedef struct SVnodeModifyLogicNode { int8_t tableType; // table type char tableFName[TSDB_TABLE_FNAME_LEN]; STimeWindow deleteTimeRange; + SVgroupsInfo* pVgroupList; } SVnodeModifyLogicNode; typedef struct SExchangeLogicNode { @@ -456,6 +457,15 @@ typedef struct SDataInserterNode { char* pData; } SDataInserterNode; +typedef struct SQueryInserterNode { + SDataSinkNode sink; + uint64_t tableId; + int8_t tableType; // table type + char tableFName[TSDB_TABLE_FNAME_LEN]; + int32_t vgId; + SEpSet epSet; +} SQueryInserterNode; + typedef struct SDataDeleterNode { SDataSinkNode sink; uint64_t tableId; diff --git a/include/libs/nodes/querynodes.h b/include/libs/nodes/querynodes.h index dd337bcee0c200ec42372638a29e98586cb0cce3..b9a0b90a9a8bdca9a912719c61b81b051c4959df 100644 --- a/include/libs/nodes/querynodes.h +++ b/include/libs/nodes/querynodes.h @@ -302,6 +302,14 @@ typedef struct SDeleteStmt { bool deleteZeroRows; } SDeleteStmt; +typedef struct SInsertStmt { + ENodeType type; // QUERY_NODE_INSERT_STMT + SNode* pTable; + SNodeList* pCols; + SNode* pQuery; + uint8_t precision; +} SInsertStmt; + typedef enum { PAYLOAD_TYPE_KV = 0, PAYLOAD_TYPE_RAW = 1, diff --git a/include/libs/parser/parser.h b/include/libs/parser/parser.h index 6c2a9bb374c019040b246dac6bb3e8f44da93a57..c3007306aecc7772a39435b4d77508fc33c645ae 100644 --- a/include/libs/parser/parser.h +++ b/include/libs/parser/parser.h @@ -56,7 +56,7 @@ typedef struct SParseContext { } SParseContext; int32_t qParseSql(SParseContext* pCxt, SQuery** pQuery); -bool qIsInsertSql(const char* pStr, size_t length); +bool qIsInsertValuesSql(const char* pStr, size_t length); // for async mode int32_t qParseSqlSyntax(SParseContext* pCxt, SQuery** pQuery, struct SCatalogReq* pCatalogReq); diff --git a/source/client/src/clientStmt.c b/source/client/src/clientStmt.c index 1c0caec8102b5b0311c4cfd7240ea78270163628..a1c8eb07108668652c7b39c10710bf2784864668 100644 --- a/source/client/src/clientStmt.c +++ b/source/client/src/clientStmt.c @@ -324,9 +324,9 @@ int32_t stmtCleanSQLInfo(STscStmt* pStmt) { } int32_t stmtRebuildDataBlock(STscStmt* pStmt, STableDataBlocks* pDataBlock, STableDataBlocks** newBlock, uint64_t uid) { - SEpSet ep = getEpSet_s(&pStmt->taos->pAppInfo->mgmtEp); - SVgroupInfo vgInfo = {0}; - SRequestConnInfo conn = {.pTrans = pStmt->taos->pAppInfo->pTransporter, + SEpSet ep = getEpSet_s(&pStmt->taos->pAppInfo->mgmtEp); + SVgroupInfo vgInfo = {0}; + SRequestConnInfo conn = {.pTrans = pStmt->taos->pAppInfo->pTransporter, .requestId = pStmt->exec.pRequest->requestId, .requestObjRefId = pStmt->exec.pRequest->self, .mgmtEps = getEpSet_s(&pStmt->taos->pAppInfo->mgmtEp)}; @@ -391,13 +391,12 @@ int32_t stmtGetFromCache(STscStmt* pStmt) { STMT_RET(stmtCleanBindInfo(pStmt)); } - STableMeta* pTableMeta = NULL; - SRequestConnInfo conn = {.pTrans = pStmt->taos->pAppInfo->pTransporter, + STableMeta* pTableMeta = NULL; + SRequestConnInfo conn = {.pTrans = pStmt->taos->pAppInfo->pTransporter, .requestId = pStmt->exec.pRequest->requestId, .requestObjRefId = pStmt->exec.pRequest->self, .mgmtEps = getEpSet_s(&pStmt->taos->pAppInfo->mgmtEp)}; - int32_t code = - catalogGetTableMeta(pStmt->pCatalog, &conn, &pStmt->bInfo.sname, &pTableMeta); + int32_t code = catalogGetTableMeta(pStmt->pCatalog, &conn, &pStmt->bInfo.sname, &pTableMeta); if (TSDB_CODE_PAR_TABLE_NOT_EXIST == code) { STMT_ERR_RET(stmtCleanBindInfo(pStmt)); @@ -849,7 +848,7 @@ int stmtIsInsert(TAOS_STMT* stmt, int* insert) { if (pStmt->sql.type) { *insert = (STMT_TYPE_INSERT == pStmt->sql.type || STMT_TYPE_MULTI_INSERT == pStmt->sql.type); } else { - *insert = qIsInsertSql(pStmt->sql.sqlStr, 0); + *insert = qIsInsertValuesSql(pStmt->sql.sqlStr, 0); } return TSDB_CODE_SUCCESS; @@ -861,7 +860,7 @@ int stmtGetTagFields(TAOS_STMT* stmt, int* nums, TAOS_FIELD_E** fields) { if (STMT_TYPE_QUERY == pStmt->sql.type) { STMT_RET(TSDB_CODE_TSC_STMT_API_ERROR); } - + STMT_ERR_RET(stmtSwitchStatus(pStmt, STMT_FETCH_FIELDS)); if (pStmt->bInfo.needParse && pStmt->sql.runTimes && pStmt->sql.type > 0 && @@ -893,7 +892,7 @@ int stmtGetColFields(TAOS_STMT* stmt, int* nums, TAOS_FIELD_E** fields) { if (STMT_TYPE_QUERY == pStmt->sql.type) { STMT_RET(TSDB_CODE_TSC_STMT_API_ERROR); } - + STMT_ERR_RET(stmtSwitchStatus(pStmt, STMT_FETCH_FIELDS)); if (pStmt->bInfo.needParse && pStmt->sql.runTimes && pStmt->sql.type > 0 && @@ -919,7 +918,6 @@ int stmtGetColFields(TAOS_STMT* stmt, int* nums, TAOS_FIELD_E** fields) { return TSDB_CODE_SUCCESS; } - int stmtGetParamNum(TAOS_STMT* stmt, int* nums) { STscStmt* pStmt = (STscStmt*)stmt; @@ -952,13 +950,13 @@ int stmtGetParamNum(TAOS_STMT* stmt, int* nums) { return TSDB_CODE_SUCCESS; } -int stmtGetParam(TAOS_STMT *stmt, int idx, int *type, int *bytes) { +int stmtGetParam(TAOS_STMT* stmt, int idx, int* type, int* bytes) { STscStmt* pStmt = (STscStmt*)stmt; if (STMT_TYPE_QUERY == pStmt->sql.type) { STMT_RET(TSDB_CODE_TSC_STMT_API_ERROR); } - + STMT_ERR_RET(stmtSwitchStatus(pStmt, STMT_FETCH_FIELDS)); if (pStmt->bInfo.needParse && pStmt->sql.runTimes && pStmt->sql.type > 0 && @@ -979,8 +977,8 @@ int stmtGetParam(TAOS_STMT *stmt, int idx, int *type, int *bytes) { STMT_ERR_RET(stmtParseSql(pStmt)); } - int32_t nums = 0; - TAOS_FIELD_E *pField = NULL; + int32_t nums = 0; + TAOS_FIELD_E* pField = NULL; STMT_ERR_RET(stmtFetchColFields(stmt, &nums, &pField)); if (idx >= nums) { tscError("idx %d is too big", idx); diff --git a/source/libs/nodes/src/nodesCodeFuncs.c b/source/libs/nodes/src/nodesCodeFuncs.c index 34f92dac0b0fb099228df512d07237b93f528121..cd0743bda1163edad14c5ea5d916dfc01d653ced 100644 --- a/source/libs/nodes/src/nodesCodeFuncs.c +++ b/source/libs/nodes/src/nodesCodeFuncs.c @@ -19,8 +19,8 @@ #include "query.h" #include "querynodes.h" #include "taoserror.h" -#include "tjson.h" #include "tdatablock.h" +#include "tjson.h" static int32_t nodeToJson(const void* pObj, SJson* pJson); static int32_t jsonToNode(const SJson* pJson, void* pObj); @@ -179,6 +179,8 @@ const char* nodesNodeName(ENodeType type) { return "ShowVnodeStmt"; case QUERY_NODE_DELETE_STMT: return "DeleteStmt"; + case QUERY_NODE_INSERT_STMT: + return "InsertStmt"; case QUERY_NODE_LOGIC_PLAN_SCAN: return "LogicScan"; case QUERY_NODE_LOGIC_PLAN_JOIN: @@ -2641,9 +2643,9 @@ static int32_t datumToJson(const void* pObj, SJson* pJson) { case TSDB_DATA_TYPE_VARBINARY: code = tjsonAddStringToObject(pJson, jkValueDatum, varDataVal(pNode->datum.p)); break; - case TSDB_DATA_TYPE_JSON:{ + case TSDB_DATA_TYPE_JSON: { int32_t len = getJsonValueLen(pNode->datum.p); - char* buf = taosMemoryCalloc( len * 2 + 1, sizeof(char)); + char* buf = taosMemoryCalloc(len * 2 + 1, sizeof(char)); code = taosHexEncode(pNode->datum.p, buf, len); if (code != TSDB_CODE_SUCCESS) { taosMemoryFree(buf); @@ -2775,7 +2777,7 @@ static int32_t jsonToDatum(const SJson* pJson, void* pObj) { } break; } - case TSDB_DATA_TYPE_JSON:{ + case TSDB_DATA_TYPE_JSON: { pNode->datum.p = taosMemoryCalloc(1, pNode->node.resType.bytes); if (NULL == pNode->datum.p) { code = TSDB_CODE_OUT_OF_MEMORY; diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 118cd808075e9ba091f677539350a43e340c6829..0c9cb764a5b5abf35479d07c15d0a473936a6e72 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -229,6 +229,8 @@ SNode* nodesMakeNode(ENodeType type) { return makeNode(type, sizeof(SKillStmt)); case QUERY_NODE_DELETE_STMT: return makeNode(type, sizeof(SDeleteStmt)); + case QUERY_NODE_INSERT_STMT: + return makeNode(type, sizeof(SInsertStmt)); case QUERY_NODE_QUERY: return makeNode(type, sizeof(SQuery)); case QUERY_NODE_LOGIC_PLAN_SCAN: @@ -690,6 +692,13 @@ void nodesDestroyNode(SNode* pNode) { nodesDestroyNode(pStmt->pTagCond); break; } + case QUERY_NODE_INSERT_STMT: { + SInsertStmt* pStmt = (SInsertStmt*)pNode; + nodesDestroyNode(pStmt->pTable); + nodesDestroyList(pStmt->pCols); + nodesDestroyNode(pStmt->pQuery); + break; + } case QUERY_NODE_QUERY: { SQuery* pQuery = (SQuery*)pNode; nodesDestroyNode(pQuery->pRoot); @@ -1524,7 +1533,6 @@ int32_t nodesCollectColumnsFromNode(SNode* node, const char* pTableAlias, EColle } return TSDB_CODE_SUCCESS; - } typedef struct SCollectFuncsCxt { diff --git a/source/libs/parser/inc/parAst.h b/source/libs/parser/inc/parAst.h index 0c9156fc4c96f81e3308c331573b8443018b2557..5c2dcadd4a8f1e00efb210caa00168f402a6e585 100644 --- a/source/libs/parser/inc/parAst.h +++ b/source/libs/parser/inc/parAst.h @@ -210,6 +210,7 @@ SNode* createSyncdbStmt(SAstCreateContext* pCxt, const SToken* pDbName); SNode* createGrantStmt(SAstCreateContext* pCxt, int64_t privileges, SToken* pDbName, SToken* pUserName); SNode* createRevokeStmt(SAstCreateContext* pCxt, int64_t privileges, SToken* pDbName, SToken* pUserName); SNode* createDeleteStmt(SAstCreateContext* pCxt, SNode* pTable, SNode* pWhere); +SNode* createInsertStmt(SAstCreateContext* pCxt, SNode* pTable, SNodeList* pCols, SNode* pQuery); #ifdef __cplusplus } diff --git a/source/libs/parser/inc/sql.y b/source/libs/parser/inc/sql.y index 19b327f8c6cf689081971d196592a32e80cd3c4d..7d919874d52670ced72a97448b85e9389d07cf27 100644 --- a/source/libs/parser/inc/sql.y +++ b/source/libs/parser/inc/sql.y @@ -259,7 +259,7 @@ multi_create_clause(A) ::= multi_create_clause(B) create_subtable_clause(C). create_subtable_clause(A) ::= not_exists_opt(B) full_table_name(C) USING full_table_name(D) - specific_tags_opt(E) TAGS NK_LP expression_list(F) NK_RP table_options(G). { A = createCreateSubTableClause(pCxt, B, C, D, E, F, G); } + specific_cols_opt(E) TAGS NK_LP expression_list(F) NK_RP table_options(G). { A = createCreateSubTableClause(pCxt, B, C, D, E, F, G); } %type multi_drop_clause { SNodeList* } %destructor multi_drop_clause { nodesDestroyList($$); } @@ -268,10 +268,10 @@ multi_drop_clause(A) ::= multi_drop_clause(B) drop_table_clause(C). drop_table_clause(A) ::= exists_opt(B) full_table_name(C). { A = createDropTableClause(pCxt, B, C); } -%type specific_tags_opt { SNodeList* } -%destructor specific_tags_opt { nodesDestroyList($$); } -specific_tags_opt(A) ::= . { A = NULL; } -specific_tags_opt(A) ::= NK_LP col_name_list(B) NK_RP. { A = B; } +%type specific_cols_opt { SNodeList* } +%destructor specific_cols_opt { nodesDestroyList($$); } +specific_cols_opt(A) ::= . { A = NULL; } +specific_cols_opt(A) ::= NK_LP col_name_list(B) NK_RP. { A = B; } full_table_name(A) ::= table_name(B). { A = createRealTableNode(pCxt, NULL, &B, NULL); } full_table_name(A) ::= db_name(B) NK_DOT table_name(C). { A = createRealTableNode(pCxt, &B, &C, NULL); } @@ -515,6 +515,9 @@ cmd ::= DELETE FROM full_table_name(A) where_clause_opt(B). /************************************************ select **************************************************************/ cmd ::= query_expression(A). { pCxt->pRootNode = A; } +/************************************************ insert **************************************************************/ +cmd ::= INSERT INTO full_table_name(A) specific_cols_opt(B) query_expression(C). { pCxt->pRootNode = createInsertStmt(pCxt, A, B, C); } + /************************************************ literal *************************************************************/ literal(A) ::= NK_INTEGER(B). { A = createRawExprNode(pCxt, &B, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &B)); } literal(A) ::= NK_FLOAT(B). { A = createRawExprNode(pCxt, &B, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &B)); } @@ -973,4 +976,4 @@ null_ordering_opt(A) ::= . null_ordering_opt(A) ::= NULLS FIRST. { A = NULL_ORDER_FIRST; } null_ordering_opt(A) ::= NULLS LAST. { A = NULL_ORDER_LAST; } -%fallback ID NK_BITNOT INSERT VALUES IMPORT NK_SEMI FILE. +%fallback ID NK_BITNOT VALUES IMPORT NK_SEMI FILE. diff --git a/source/libs/parser/src/parAstCreater.c b/source/libs/parser/src/parAstCreater.c index 104241197409bbd47a4d3bce25128be8c20b8d7d..a1a9532acebc1cf93d2ffc4cae9b88e8ed4ef977 100644 --- a/source/libs/parser/src/parAstCreater.c +++ b/source/libs/parser/src/parAstCreater.c @@ -1662,3 +1662,13 @@ SNode* createDeleteStmt(SAstCreateContext* pCxt, SNode* pTable, SNode* pWhere) { } return (SNode*)pStmt; } + +SNode* createInsertStmt(SAstCreateContext* pCxt, SNode* pTable, SNodeList* pCols, SNode* pQuery) { + CHECK_PARSER_STATUS(pCxt); + SInsertStmt* pStmt = (SInsertStmt*)nodesMakeNode(QUERY_NODE_INSERT_STMT); + CHECK_OUT_OF_MEM(pStmt); + pStmt->pTable = pTable; + pStmt->pCols = pCols; + pStmt->pQuery = pQuery; + return (SNode*)pStmt; +} diff --git a/source/libs/parser/src/parAstParser.c b/source/libs/parser/src/parAstParser.c index 9cc822ee38e7ff37deb6c3eb962a6060914245a5..8a1b072105d65a6e0e196d8ff99a1057e87fea10 100644 --- a/source/libs/parser/src/parAstParser.c +++ b/source/libs/parser/src/parAstParser.c @@ -447,6 +447,14 @@ static int32_t collectMetaKeyFromDelete(SCollectMetaKeyCxt* pCxt, SDeleteStmt* p return collectMetaKeyFromRealTableImpl(pCxt, (SRealTableNode*)pStmt->pFromTable, AUTH_TYPE_WRITE); } +static int32_t collectMetaKeyFromInsert(SCollectMetaKeyCxt* pCxt, SInsertStmt* pStmt) { + int32_t code = collectMetaKeyFromRealTableImpl(pCxt, (SRealTableNode*)pStmt->pTable, AUTH_TYPE_WRITE); + if (TSDB_CODE_SUCCESS == code) { + code = collectMetaKeyFromQuery(pCxt, pStmt->pQuery); + } + return code; +} + static int32_t collectMetaKeyFromShowBlockDist(SCollectMetaKeyCxt* pCxt, SShowTableDistributedStmt* pStmt) { SName name = {.type = TSDB_TABLE_NAME_T, .acctId = pCxt->pParseCxt->acctId}; strcpy(name.dbname, pStmt->dbName); @@ -554,6 +562,8 @@ static int32_t collectMetaKeyFromQuery(SCollectMetaKeyCxt* pCxt, SNode* pStmt) { return collectMetaKeyFromShowTransactions(pCxt, (SShowStmt*)pStmt); case QUERY_NODE_DELETE_STMT: return collectMetaKeyFromDelete(pCxt, (SDeleteStmt*)pStmt); + case QUERY_NODE_INSERT_STMT: + return collectMetaKeyFromInsert(pCxt, (SInsertStmt*)pStmt); case QUERY_NODE_SHOW_TABLE_DISTRIBUTED_STMT: return collectMetaKeyFromShowBlockDist(pCxt, (SShowTableDistributedStmt*)pStmt); case QUERY_NODE_SHOW_SUBSCRIPTIONS_STMT: diff --git a/source/libs/parser/src/parAuthenticator.c b/source/libs/parser/src/parAuthenticator.c index 068ac4c94d2fb84e5a5992b5744d13f876cc5d75..befc822808c7b50eeaea5753a61bb10ffef81523 100644 --- a/source/libs/parser/src/parAuthenticator.c +++ b/source/libs/parser/src/parAuthenticator.c @@ -39,7 +39,7 @@ static int32_t checkAuth(SAuthCxt* pCxt, const char* pDbName, AUTH_TYPE type) { if (NULL != pCxt->pMetaCache) { code = getUserAuthFromCache(pCxt->pMetaCache, pParseCxt->pUser, dbFname, type, &pass); } else { - SRequestConnInfo conn = {.pTrans = pParseCxt->pTransporter, + SRequestConnInfo conn = {.pTrans = pParseCxt->pTransporter, .requestId = pParseCxt->requestId, .requestObjRefId = pParseCxt->requestRid, .mgmtEps = pParseCxt->mgmtEpSet}; @@ -88,6 +88,14 @@ static int32_t authDelete(SAuthCxt* pCxt, SDeleteStmt* pDelete) { return checkAuth(pCxt, ((SRealTableNode*)pDelete->pFromTable)->table.dbName, AUTH_TYPE_WRITE); } +static int32_t authInsert(SAuthCxt* pCxt, SInsertStmt* pInsert) { + int32_t code = checkAuth(pCxt, ((SRealTableNode*)pInsert->pTable)->table.dbName, AUTH_TYPE_WRITE); + if (TSDB_CODE_SUCCESS == code) { + code = authQuery(pCxt, pInsert->pQuery); + } + return code; +} + static int32_t authQuery(SAuthCxt* pCxt, SNode* pStmt) { switch (nodeType(pStmt)) { case QUERY_NODE_SET_OPERATOR: @@ -98,6 +106,8 @@ static int32_t authQuery(SAuthCxt* pCxt, SNode* pStmt) { return authDropUser(pCxt, (SDropUserStmt*)pStmt); case QUERY_NODE_DELETE_STMT: return authDelete(pCxt, (SDeleteStmt*)pStmt); + case QUERY_NODE_INSERT_STMT: + return authInsert(pCxt, (SInsertStmt*)pStmt); default: break; } diff --git a/source/libs/parser/src/parCalcConst.c b/source/libs/parser/src/parCalcConst.c index dcdf73630f5325a198c8cf3e2ee6d0c9d3f9d0a4..6c670b3f01502104ca5d347e04bb1456b74aad13 100644 --- a/source/libs/parser/src/parCalcConst.c +++ b/source/libs/parser/src/parCalcConst.c @@ -300,6 +300,14 @@ static int32_t calcConstDelete(SCalcConstContext* pCxt, SDeleteStmt* pDelete) { return code; } +static int32_t calcConstInsert(SCalcConstContext* pCxt, SInsertStmt* pInsert) { + int32_t code = calcConstFromTable(pCxt, pInsert->pTable); + if (TSDB_CODE_SUCCESS == code) { + code = calcConstQuery(pCxt, pInsert->pQuery, false); + } + return code; +} + static int32_t calcConstQuery(SCalcConstContext* pCxt, SNode* pStmt, bool subquery) { int32_t code = TSDB_CODE_SUCCESS; switch (nodeType(pStmt)) { @@ -320,6 +328,9 @@ static int32_t calcConstQuery(SCalcConstContext* pCxt, SNode* pStmt, bool subque case QUERY_NODE_DELETE_STMT: code = calcConstDelete(pCxt, (SDeleteStmt*)pStmt); break; + case QUERY_NODE_INSERT_STMT: + code = calcConstInsert(pCxt, (SInsertStmt*)pStmt); + break; default: break; } diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 4bccb75dcffa44416dc7f08c83058f588b382020..c2beb8a743853f5753cea4e6455fdd5a5a5a090c 100644 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2839,6 +2839,18 @@ static int32_t translateDelete(STranslateContext* pCxt, SDeleteStmt* pDelete) { return code; } +static int32_t translateInsert(STranslateContext* pCxt, SInsertStmt* pInsert) { + pCxt->pCurrStmt = (SNode*)pInsert; + int32_t code = translateFrom(pCxt, pInsert->pTable); + if (TSDB_CODE_SUCCESS == code) { + code = translateExprList(pCxt, pInsert->pCols); + } + if (TSDB_CODE_SUCCESS == code) { + code = translateQuery(pCxt, pInsert->pQuery); + } + return code; +} + static int64_t getUnitPerMinute(uint8_t precision) { switch (precision) { case TSDB_TIME_PRECISION_MILLI: @@ -4608,6 +4620,9 @@ static int32_t translateQuery(STranslateContext* pCxt, SNode* pNode) { case QUERY_NODE_DELETE_STMT: code = translateDelete(pCxt, (SDeleteStmt*)pNode); break; + case QUERY_NODE_INSERT_STMT: + code = translateInsert(pCxt, (SInsertStmt*)pNode); + break; case QUERY_NODE_CREATE_DATABASE_STMT: code = translateCreateDatabase(pCxt, (SCreateDatabaseStmt*)pNode); break; @@ -6224,6 +6239,10 @@ static int32_t setQuery(STranslateContext* pCxt, SQuery* pQuery) { pQuery->execMode = QUERY_EXEC_MODE_SCHEDULE; pQuery->msgType = TDMT_VND_DELETE; break; + case QUERY_NODE_INSERT_STMT: + pQuery->execMode = QUERY_EXEC_MODE_SCHEDULE; + pQuery->msgType = TDMT_VND_SUBMIT; + break; case QUERY_NODE_VNODE_MODIF_STMT: pQuery->execMode = QUERY_EXEC_MODE_SCHEDULE; pQuery->msgType = toMsgType(((SVnodeModifOpStmt*)pQuery->pRoot)->sqlNodeType); diff --git a/source/libs/parser/src/parser.c b/source/libs/parser/src/parser.c index 538404798d699b98ab5e91e5aa725fac147dc4c1..777927576a60396e2bb1510e577f8162ae5815b3 100644 --- a/source/libs/parser/src/parser.c +++ b/source/libs/parser/src/parser.c @@ -19,19 +19,27 @@ #include "parInt.h" #include "parToken.h" -bool qIsInsertSql(const char* pStr, size_t length) { +bool qIsInsertValuesSql(const char* pStr, size_t length) { if (NULL == pStr) { return false; } + const char* pSql = pStr; + int32_t index = 0; + SToken t = tStrGetToken((char*)pStr, &index, false); + if (TK_INSERT != t.type && TK_IMPORT != t.type) { + return false; + } do { - SToken t0 = tStrGetToken((char*)pStr, &index, false); - if (t0.type != TK_NK_LP) { - return t0.type == TK_INSERT || t0.type == TK_IMPORT; + pStr += index; + t = tStrGetToken((char*)pStr, &index, false); + if (TK_USING == t.type || TK_VALUES == t.type) { + return true; } - } while (1); + } while (pStr - pSql < length); + return false; } static int32_t analyseSemantic(SParseContext* pCxt, SQuery* pQuery, SParseMetaCache* pMetaCache) { @@ -148,7 +156,7 @@ static void rewriteExprAlias(SNode* pRoot) { int32_t qParseSql(SParseContext* pCxt, SQuery** pQuery) { int32_t code = TSDB_CODE_SUCCESS; - if (qIsInsertSql(pCxt->pSql, pCxt->sqlLen)) { + if (qIsInsertValuesSql(pCxt->pSql, pCxt->sqlLen)) { code = parseInsertSql(pCxt, pQuery, NULL); } else { code = parseSqlIntoAst(pCxt, pQuery); @@ -160,7 +168,7 @@ int32_t qParseSql(SParseContext* pCxt, SQuery** pQuery) { int32_t qParseSqlSyntax(SParseContext* pCxt, SQuery** pQuery, struct SCatalogReq* pCatalogReq) { SParseMetaCache metaCache = {0}; int32_t code = TSDB_CODE_SUCCESS; - if (qIsInsertSql(pCxt->pSql, pCxt->sqlLen)) { + if (qIsInsertValuesSql(pCxt->pSql, pCxt->sqlLen)) { code = parseInsertSyntax(pCxt, pQuery, &metaCache); } else { code = parseSqlSyntax(pCxt, pQuery, &metaCache); diff --git a/source/libs/parser/src/sql.c b/source/libs/parser/src/sql.c index fe6e36bf5b5eaa203abf2fa09c501e841b1d68b5..84ce6acf6deac71956067e96c347ca17b43c2879 100644 --- a/source/libs/parser/src/sql.c +++ b/source/libs/parser/src/sql.c @@ -139,17 +139,17 @@ typedef union { #define ParseCTX_FETCH #define ParseCTX_STORE #define YYFALLBACK 1 -#define YYNSTATE 653 -#define YYNRULE 483 +#define YYNSTATE 658 +#define YYNRULE 484 #define YYNTOKEN 252 -#define YY_MAX_SHIFT 652 -#define YY_MIN_SHIFTREDUCE 954 -#define YY_MAX_SHIFTREDUCE 1436 -#define YY_ERROR_ACTION 1437 -#define YY_ACCEPT_ACTION 1438 -#define YY_NO_ACTION 1439 -#define YY_MIN_REDUCE 1440 -#define YY_MAX_REDUCE 1922 +#define YY_MAX_SHIFT 657 +#define YY_MIN_SHIFTREDUCE 959 +#define YY_MAX_SHIFTREDUCE 1442 +#define YY_ERROR_ACTION 1443 +#define YY_ACCEPT_ACTION 1444 +#define YY_NO_ACTION 1445 +#define YY_MIN_REDUCE 1446 +#define YY_MAX_REDUCE 1929 /************* End control #defines *******************************************/ #define YY_NLOOKAHEAD ((int)(sizeof(yy_lookahead)/sizeof(yy_lookahead[0]))) @@ -216,703 +216,654 @@ typedef union { ** yy_default[] Default action for each state. ** *********** Begin parsing tables **********************************************/ -#define YY_ACTTAB_COUNT (2609) +#define YY_ACTTAB_COUNT (2354) static const YYACTIONTYPE yy_action[] = { - /* 0 */ 422, 1563, 423, 1475, 1900, 430, 1438, 423, 1475, 69, - /* 10 */ 69, 379, 40, 38, 1744, 141, 1775, 1899, 541, 1531, - /* 20 */ 333, 1897, 1238, 115, 534, 1741, 41, 39, 37, 36, - /* 30 */ 35, 1570, 1569, 1313, 101, 1236, 1565, 100, 99, 98, - /* 40 */ 97, 96, 95, 94, 93, 92, 120, 1741, 297, 544, - /* 50 */ 1745, 1737, 1743, 322, 338, 1757, 1308, 1619, 1621, 14, - /* 60 */ 544, 1741, 533, 562, 439, 1244, 343, 546, 1263, 40, - /* 70 */ 38, 1376, 541, 1737, 1743, 1552, 1900, 333, 140, 1238, - /* 80 */ 1452, 167, 1, 1775, 544, 562, 118, 1737, 1743, 158, - /* 90 */ 1313, 569, 1236, 1897, 373, 464, 1727, 1900, 568, 562, - /* 100 */ 120, 245, 1842, 540, 649, 539, 67, 1900, 1900, 66, - /* 110 */ 1898, 44, 546, 1308, 1897, 1056, 14, 463, 1315, 1316, - /* 120 */ 157, 159, 1244, 1788, 1897, 1897, 1263, 87, 1758, 571, - /* 130 */ 1760, 1761, 567, 439, 562, 1900, 60, 1834, 1380, 2, - /* 140 */ 118, 300, 1830, 541, 1262, 1058, 43, 1262, 157, 151, - /* 150 */ 652, 210, 1897, 1900, 543, 153, 1842, 1843, 1004, 1847, - /* 160 */ 1003, 649, 1613, 1239, 262, 1237, 159, 31, 255, 987, - /* 170 */ 1897, 120, 535, 458, 320, 1315, 1316, 60, 149, 73, - /* 180 */ 604, 203, 138, 642, 638, 634, 630, 260, 1005, 1242, - /* 190 */ 1243, 1576, 1291, 1292, 1294, 1295, 1296, 1297, 1298, 564, - /* 200 */ 560, 1306, 1307, 1309, 1310, 1311, 1312, 1314, 1317, 991, - /* 210 */ 992, 118, 85, 1323, 421, 225, 372, 425, 371, 1262, - /* 220 */ 1239, 160, 1237, 412, 1136, 1137, 154, 1842, 1843, 1261, - /* 230 */ 1847, 34, 33, 310, 505, 41, 39, 37, 36, 35, - /* 240 */ 71, 299, 319, 541, 507, 1671, 1242, 1243, 514, 1291, - /* 250 */ 1292, 1294, 1295, 1296, 1297, 1298, 564, 560, 1306, 1307, - /* 260 */ 1309, 1310, 1311, 1312, 1314, 1317, 40, 38, 1440, 171, - /* 270 */ 170, 120, 1626, 1674, 333, 160, 1238, 216, 217, 321, - /* 280 */ 212, 311, 301, 309, 308, 160, 462, 1313, 1624, 1236, - /* 290 */ 464, 530, 110, 109, 108, 107, 106, 105, 104, 103, - /* 300 */ 102, 1211, 1463, 205, 517, 429, 1276, 517, 425, 517, - /* 310 */ 1308, 118, 463, 14, 1335, 111, 160, 1293, 111, 1244, - /* 320 */ 162, 61, 460, 40, 38, 465, 155, 1842, 1843, 60, - /* 330 */ 1847, 333, 1574, 1238, 1502, 1574, 2, 1574, 299, 427, - /* 340 */ 1462, 507, 1244, 1727, 1313, 1260, 1236, 1094, 593, 592, - /* 350 */ 591, 1098, 590, 1100, 1101, 589, 1103, 586, 649, 1109, - /* 360 */ 583, 1111, 1112, 580, 577, 1550, 517, 1308, 1336, 536, - /* 370 */ 531, 600, 1315, 1316, 1617, 1461, 1244, 377, 37, 36, - /* 380 */ 35, 1727, 34, 33, 1620, 1621, 41, 39, 37, 36, - /* 390 */ 35, 1341, 1293, 8, 1574, 626, 625, 624, 341, 60, - /* 400 */ 623, 622, 621, 121, 616, 615, 614, 613, 612, 611, - /* 410 */ 610, 609, 131, 605, 596, 649, 1727, 1239, 1849, 1237, - /* 420 */ 34, 33, 1397, 604, 41, 39, 37, 36, 35, 1315, - /* 430 */ 1316, 1551, 30, 331, 1330, 1331, 1332, 1333, 1334, 1338, - /* 440 */ 1339, 1340, 1846, 1242, 1243, 607, 1291, 1292, 1294, 1295, - /* 450 */ 1296, 1297, 1298, 564, 560, 1306, 1307, 1309, 1310, 1311, - /* 460 */ 1312, 1314, 1317, 527, 1395, 1396, 1398, 1399, 160, 517, - /* 470 */ 474, 473, 471, 470, 1239, 472, 1237, 1559, 116, 469, - /* 480 */ 378, 84, 468, 467, 466, 34, 33, 11, 10, 41, - /* 490 */ 39, 37, 36, 35, 117, 1407, 1004, 1574, 1003, 209, - /* 500 */ 1242, 1243, 1566, 1291, 1292, 1294, 1295, 1296, 1297, 1298, - /* 510 */ 564, 560, 1306, 1307, 1309, 1310, 1311, 1312, 1314, 1317, - /* 520 */ 40, 38, 1318, 336, 479, 602, 1005, 72, 333, 1433, - /* 530 */ 1238, 138, 160, 1505, 504, 189, 301, 1561, 160, 489, - /* 540 */ 1576, 1313, 339, 1236, 129, 128, 599, 598, 597, 144, - /* 550 */ 138, 517, 497, 202, 456, 452, 448, 444, 188, 1576, - /* 560 */ 77, 517, 382, 517, 1308, 620, 618, 482, 1335, 1349, - /* 570 */ 490, 476, 397, 1244, 398, 1900, 201, 40, 38, 1574, - /* 580 */ 1626, 1567, 517, 70, 58, 333, 186, 1238, 157, 1574, - /* 590 */ 9, 1574, 1897, 438, 474, 473, 1625, 364, 1313, 472, - /* 600 */ 1236, 55, 116, 469, 54, 517, 468, 467, 466, 7, - /* 610 */ 1574, 1900, 649, 1670, 517, 294, 1571, 1432, 517, 366, - /* 620 */ 362, 1308, 1336, 1373, 157, 1703, 1315, 1316, 1897, 498, - /* 630 */ 1244, 34, 33, 1574, 1460, 41, 39, 37, 36, 35, - /* 640 */ 991, 992, 1574, 1626, 1459, 1341, 1574, 9, 185, 178, - /* 650 */ 337, 183, 1849, 1264, 517, 435, 34, 33, 1458, 1624, - /* 660 */ 41, 39, 37, 36, 35, 502, 23, 1664, 517, 649, - /* 670 */ 1669, 1239, 294, 1237, 176, 1727, 1845, 215, 169, 515, - /* 680 */ 1457, 550, 1574, 1315, 1316, 1727, 30, 331, 1330, 1331, - /* 690 */ 1332, 1333, 1334, 1338, 1339, 1340, 1574, 1242, 1243, 1727, - /* 700 */ 1291, 1292, 1294, 1295, 1296, 1297, 1298, 564, 560, 1306, - /* 710 */ 1307, 1309, 1310, 1311, 1312, 1314, 1317, 1441, 34, 33, - /* 720 */ 488, 1727, 41, 39, 37, 36, 35, 1849, 1239, 601, - /* 730 */ 1237, 1387, 1617, 486, 267, 484, 1456, 1604, 101, 1219, - /* 740 */ 1220, 100, 99, 98, 97, 96, 95, 94, 93, 92, - /* 750 */ 608, 1844, 1546, 541, 1242, 1243, 1715, 1291, 1292, 1294, - /* 760 */ 1295, 1296, 1297, 1298, 564, 560, 1306, 1307, 1309, 1310, - /* 770 */ 1311, 1312, 1314, 1317, 40, 38, 296, 1727, 1260, 553, - /* 780 */ 517, 120, 333, 247, 1238, 405, 1453, 1455, 417, 517, - /* 790 */ 1369, 516, 602, 1276, 1454, 1313, 1265, 1236, 1557, 505, - /* 800 */ 256, 1337, 546, 352, 1451, 390, 1262, 418, 1574, 392, - /* 810 */ 1672, 129, 128, 599, 598, 597, 1247, 1574, 1308, 548, - /* 820 */ 517, 118, 1854, 1369, 1342, 45, 4, 1244, 1727, 52, - /* 830 */ 501, 340, 1450, 138, 1449, 1727, 245, 1842, 540, 383, - /* 840 */ 539, 1372, 1577, 1900, 2, 1727, 34, 33, 1574, 528, - /* 850 */ 41, 39, 37, 36, 35, 194, 157, 206, 192, 1448, - /* 860 */ 1897, 1238, 1447, 34, 33, 28, 649, 41, 39, 37, - /* 870 */ 36, 35, 1446, 1727, 1236, 1727, 563, 1246, 551, 416, - /* 880 */ 1315, 1316, 411, 410, 409, 408, 407, 404, 403, 402, - /* 890 */ 401, 400, 396, 395, 394, 393, 387, 386, 385, 384, - /* 900 */ 1727, 381, 380, 1727, 1244, 27, 1445, 11, 10, 139, - /* 910 */ 619, 34, 33, 1727, 273, 41, 39, 37, 36, 35, - /* 920 */ 1549, 196, 1435, 1436, 195, 1239, 227, 1237, 271, 57, - /* 930 */ 1444, 1492, 56, 1443, 198, 200, 42, 197, 199, 558, - /* 940 */ 1532, 1747, 214, 649, 1757, 595, 1250, 1727, 172, 250, - /* 950 */ 367, 1242, 1243, 475, 1291, 1292, 1294, 1295, 1296, 1297, - /* 960 */ 1298, 564, 560, 1306, 1307, 1309, 1310, 1311, 1312, 1314, - /* 970 */ 1317, 1727, 1775, 60, 1727, 123, 1187, 1749, 554, 1293, - /* 980 */ 569, 491, 218, 29, 1487, 1727, 1485, 568, 137, 34, - /* 990 */ 33, 457, 126, 41, 39, 37, 36, 35, 127, 50, - /* 1000 */ 231, 546, 1239, 42, 1237, 42, 477, 1249, 480, 42, - /* 1010 */ 239, 86, 1788, 575, 602, 510, 87, 1758, 571, 1760, - /* 1020 */ 1761, 567, 1757, 562, 1481, 1776, 1834, 342, 1242, 1243, - /* 1030 */ 300, 1830, 224, 129, 128, 599, 598, 597, 1087, 1394, - /* 1040 */ 234, 126, 1900, 1343, 127, 1299, 64, 63, 376, 266, - /* 1050 */ 1775, 166, 112, 1115, 83, 157, 1028, 370, 545, 1897, - /* 1060 */ 1476, 1614, 126, 1727, 80, 568, 1864, 542, 244, 1327, - /* 1070 */ 295, 249, 644, 360, 252, 358, 354, 350, 163, 345, - /* 1080 */ 254, 1119, 3, 1757, 1126, 5, 1029, 1260, 347, 344, - /* 1090 */ 1788, 351, 1124, 306, 88, 1758, 571, 1760, 1761, 567, - /* 1100 */ 1757, 562, 130, 1056, 1834, 307, 1203, 263, 326, 1830, - /* 1110 */ 152, 1775, 160, 399, 1666, 168, 406, 413, 414, 545, - /* 1120 */ 415, 419, 156, 1266, 1727, 420, 568, 428, 1775, 1269, - /* 1130 */ 1860, 175, 431, 177, 1268, 432, 569, 433, 1270, 180, - /* 1140 */ 434, 1727, 436, 568, 182, 1267, 184, 437, 68, 440, - /* 1150 */ 187, 1788, 461, 1757, 459, 88, 1758, 571, 1760, 1761, - /* 1160 */ 567, 1564, 562, 492, 264, 1834, 124, 191, 1788, 326, - /* 1170 */ 1830, 152, 88, 1758, 571, 1760, 1761, 567, 298, 562, - /* 1180 */ 91, 1775, 1834, 1560, 193, 132, 326, 1830, 1913, 569, - /* 1190 */ 133, 1861, 1562, 1558, 1727, 134, 568, 1868, 135, 324, - /* 1200 */ 323, 1708, 204, 207, 493, 499, 496, 503, 1757, 1252, - /* 1210 */ 525, 211, 506, 511, 1707, 316, 512, 220, 1676, 508, - /* 1220 */ 1313, 1788, 1245, 318, 222, 88, 1758, 571, 1760, 1761, - /* 1230 */ 567, 125, 562, 513, 76, 1834, 1775, 265, 1575, 326, - /* 1240 */ 1830, 1913, 1265, 1308, 569, 1865, 521, 529, 1875, 1727, - /* 1250 */ 1891, 568, 1244, 1874, 1856, 229, 538, 523, 233, 524, - /* 1260 */ 325, 532, 6, 522, 520, 519, 1369, 119, 1264, 552, - /* 1270 */ 555, 19, 1757, 146, 238, 243, 1788, 1850, 327, 78, - /* 1280 */ 88, 1758, 571, 1760, 1761, 567, 1757, 562, 240, 242, - /* 1290 */ 1834, 526, 241, 248, 326, 1830, 1913, 1896, 1757, 573, - /* 1300 */ 1775, 1618, 268, 549, 645, 1853, 1547, 251, 569, 556, - /* 1310 */ 1916, 253, 259, 1727, 1775, 568, 646, 1815, 648, 51, - /* 1320 */ 145, 270, 569, 272, 1721, 281, 1775, 1727, 291, 568, - /* 1330 */ 290, 1720, 62, 1719, 569, 346, 1716, 348, 349, 1727, - /* 1340 */ 1788, 568, 1231, 546, 284, 1758, 571, 1760, 1761, 567, - /* 1350 */ 1253, 562, 1248, 1232, 1788, 546, 164, 353, 280, 1758, - /* 1360 */ 571, 1760, 1761, 567, 1714, 562, 1788, 1757, 357, 355, - /* 1370 */ 280, 1758, 571, 1760, 1761, 567, 1256, 562, 356, 1713, - /* 1380 */ 1712, 359, 537, 361, 1900, 1711, 1710, 560, 1306, 1307, - /* 1390 */ 1309, 1310, 1311, 1312, 363, 1775, 1900, 159, 365, 1693, - /* 1400 */ 368, 1897, 165, 569, 369, 1206, 1205, 1687, 1727, 157, - /* 1410 */ 568, 1686, 374, 1897, 375, 1685, 1684, 1175, 1659, 1658, - /* 1420 */ 1657, 65, 1656, 1655, 1757, 1654, 1653, 1652, 388, 389, - /* 1430 */ 1651, 391, 1650, 1649, 1648, 1788, 1647, 1646, 1645, 89, - /* 1440 */ 1758, 571, 1760, 1761, 567, 1757, 562, 1644, 1643, 1834, - /* 1450 */ 1642, 1641, 1775, 1833, 1830, 1640, 1639, 1638, 1637, 122, - /* 1460 */ 569, 1636, 1635, 1634, 1633, 1727, 1632, 568, 1631, 1630, - /* 1470 */ 1629, 1177, 1628, 1775, 150, 424, 1471, 173, 113, 994, - /* 1480 */ 174, 566, 1627, 1504, 1472, 993, 1727, 426, 568, 1701, - /* 1490 */ 1695, 114, 1788, 179, 181, 1682, 89, 1758, 571, 1760, - /* 1500 */ 1761, 567, 1683, 562, 1668, 1757, 1834, 1553, 1503, 1501, - /* 1510 */ 557, 1830, 441, 1788, 443, 1499, 1497, 288, 1758, 571, - /* 1520 */ 1760, 1761, 567, 565, 562, 559, 1806, 1022, 442, 445, - /* 1530 */ 447, 449, 446, 1775, 450, 1495, 451, 455, 453, 454, - /* 1540 */ 1484, 569, 1483, 1468, 1555, 1130, 1727, 1129, 568, 190, - /* 1550 */ 49, 1554, 1055, 1054, 1053, 1052, 617, 619, 1049, 1048, - /* 1560 */ 1493, 1757, 1047, 312, 1488, 1486, 481, 313, 314, 1467, - /* 1570 */ 478, 483, 1466, 1788, 485, 1465, 487, 142, 1758, 571, - /* 1580 */ 1760, 1761, 567, 1757, 562, 1700, 90, 1213, 1694, 1775, - /* 1590 */ 136, 1681, 53, 494, 495, 1679, 315, 569, 1680, 1678, - /* 1600 */ 208, 1677, 1727, 1675, 568, 213, 1223, 1667, 15, 221, - /* 1610 */ 219, 1775, 74, 226, 75, 16, 317, 42, 1254, 569, - /* 1620 */ 1409, 547, 1914, 48, 1727, 500, 568, 509, 17, 1788, - /* 1630 */ 80, 24, 223, 89, 1758, 571, 1760, 1761, 567, 228, - /* 1640 */ 562, 230, 1391, 1834, 1757, 232, 237, 236, 1831, 13, - /* 1650 */ 143, 1788, 1747, 26, 246, 289, 1758, 571, 1760, 1761, - /* 1660 */ 567, 235, 562, 25, 1757, 1393, 1386, 1366, 79, 47, - /* 1670 */ 1365, 1746, 1775, 147, 18, 1426, 1415, 518, 1421, 10, - /* 1680 */ 569, 1420, 328, 1425, 1424, 1727, 329, 568, 1328, 1284, - /* 1690 */ 572, 1791, 1775, 20, 1303, 561, 32, 46, 1301, 1300, - /* 1700 */ 569, 148, 161, 12, 21, 1727, 22, 568, 574, 335, - /* 1710 */ 578, 1116, 1788, 1113, 576, 579, 289, 1758, 571, 1760, - /* 1720 */ 1761, 567, 1110, 562, 570, 581, 584, 582, 587, 1757, - /* 1730 */ 1093, 594, 1788, 1125, 1121, 1104, 142, 1758, 571, 1760, - /* 1740 */ 1761, 567, 585, 562, 1102, 588, 1108, 1107, 1757, 1020, - /* 1750 */ 81, 82, 59, 257, 603, 1044, 606, 1775, 258, 1106, - /* 1760 */ 1105, 1062, 330, 1042, 1041, 569, 1040, 1039, 1038, 1037, - /* 1770 */ 1727, 1036, 568, 1035, 1059, 1057, 1775, 1032, 1031, 1030, - /* 1780 */ 1027, 1915, 1500, 1026, 566, 1025, 627, 1498, 628, 1727, - /* 1790 */ 631, 568, 629, 632, 1496, 633, 635, 1788, 637, 636, - /* 1800 */ 1494, 289, 1758, 571, 1760, 1761, 567, 639, 562, 640, - /* 1810 */ 641, 1482, 643, 984, 1464, 261, 1788, 1757, 647, 650, - /* 1820 */ 288, 1758, 571, 1760, 1761, 567, 1240, 562, 269, 1807, - /* 1830 */ 651, 1439, 1439, 1757, 1439, 1439, 1439, 1439, 1439, 1439, - /* 1840 */ 1439, 1439, 1439, 1439, 1439, 1775, 1439, 1439, 1439, 1439, - /* 1850 */ 332, 1439, 1439, 569, 1439, 1439, 1439, 1439, 1727, 1439, - /* 1860 */ 568, 1775, 1439, 1439, 1439, 1439, 334, 1439, 1439, 569, - /* 1870 */ 1439, 1439, 1439, 1439, 1727, 1757, 568, 1439, 1439, 1439, - /* 1880 */ 1439, 1439, 1439, 1439, 1439, 1788, 1439, 1439, 1439, 289, - /* 1890 */ 1758, 571, 1760, 1761, 567, 1439, 562, 1439, 1439, 1757, - /* 1900 */ 1439, 1788, 1439, 1775, 1439, 289, 1758, 571, 1760, 1761, - /* 1910 */ 567, 569, 562, 1439, 1439, 1439, 1727, 1439, 568, 1439, - /* 1920 */ 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1775, 1439, 1439, - /* 1930 */ 1439, 1439, 1439, 1439, 1439, 569, 1439, 1439, 1439, 1439, - /* 1940 */ 1727, 1757, 568, 1788, 1439, 1439, 1439, 274, 1758, 571, - /* 1950 */ 1760, 1761, 567, 1439, 562, 1439, 1439, 1439, 1439, 1439, - /* 1960 */ 1439, 1757, 1439, 1439, 1439, 1439, 1439, 1788, 1439, 1775, - /* 1970 */ 1439, 275, 1758, 571, 1760, 1761, 567, 569, 562, 1439, - /* 1980 */ 1439, 1439, 1727, 1439, 568, 1439, 1439, 1439, 1439, 1775, - /* 1990 */ 1439, 1439, 1439, 1439, 1439, 1439, 1439, 569, 1439, 1439, - /* 2000 */ 1439, 1439, 1727, 1439, 568, 1439, 1439, 1439, 1439, 1788, - /* 2010 */ 1439, 1439, 1439, 276, 1758, 571, 1760, 1761, 567, 1439, - /* 2020 */ 562, 1757, 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1788, - /* 2030 */ 1439, 1439, 1439, 283, 1758, 571, 1760, 1761, 567, 1439, - /* 2040 */ 562, 1439, 1439, 1439, 1439, 1757, 1439, 1439, 1439, 1775, - /* 2050 */ 1439, 1439, 1439, 1439, 1439, 1439, 1439, 569, 1439, 1439, - /* 2060 */ 1439, 1439, 1727, 1439, 568, 1439, 1439, 1439, 1439, 1439, - /* 2070 */ 1439, 1439, 1439, 1775, 1439, 1439, 1439, 1439, 1439, 1439, - /* 2080 */ 1439, 569, 1439, 1439, 1439, 1439, 1727, 1439, 568, 1788, - /* 2090 */ 1439, 1439, 1439, 285, 1758, 571, 1760, 1761, 567, 1439, - /* 2100 */ 562, 1757, 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1439, - /* 2110 */ 1439, 1439, 1439, 1788, 1439, 1439, 1439, 277, 1758, 571, - /* 2120 */ 1760, 1761, 567, 1439, 562, 1757, 1439, 1439, 1439, 1775, - /* 2130 */ 1439, 1439, 1439, 1439, 1439, 1439, 1439, 569, 1439, 1439, - /* 2140 */ 1439, 1439, 1727, 1439, 568, 1439, 1439, 1439, 1439, 1439, - /* 2150 */ 1439, 1439, 1439, 1775, 1439, 1439, 1439, 1439, 1439, 1439, - /* 2160 */ 1439, 569, 1439, 1439, 1439, 1439, 1727, 1757, 568, 1788, - /* 2170 */ 1439, 1439, 1439, 286, 1758, 571, 1760, 1761, 567, 1439, - /* 2180 */ 562, 1439, 1439, 1757, 1439, 1439, 1439, 1439, 1439, 1439, - /* 2190 */ 1439, 1439, 1439, 1788, 1439, 1775, 1439, 278, 1758, 571, - /* 2200 */ 1760, 1761, 567, 569, 562, 1439, 1439, 1439, 1727, 1439, - /* 2210 */ 568, 1775, 1439, 1439, 1439, 1439, 1439, 1439, 1439, 569, - /* 2220 */ 1439, 1439, 1439, 1439, 1727, 1757, 568, 1439, 1439, 1439, - /* 2230 */ 1439, 1439, 1439, 1439, 1439, 1788, 1439, 1439, 1439, 287, - /* 2240 */ 1758, 571, 1760, 1761, 567, 1757, 562, 1439, 1439, 1439, - /* 2250 */ 1439, 1788, 1439, 1775, 1439, 279, 1758, 571, 1760, 1761, - /* 2260 */ 567, 569, 562, 1439, 1439, 1439, 1727, 1439, 568, 1439, - /* 2270 */ 1439, 1439, 1439, 1775, 1439, 1439, 1439, 1439, 1439, 1439, - /* 2280 */ 1439, 569, 1439, 1439, 1439, 1439, 1727, 1439, 568, 1439, - /* 2290 */ 1439, 1439, 1439, 1788, 1439, 1439, 1439, 292, 1758, 571, - /* 2300 */ 1760, 1761, 567, 1439, 562, 1757, 1439, 1439, 1439, 1439, - /* 2310 */ 1439, 1439, 1439, 1788, 1439, 1439, 1439, 293, 1758, 571, - /* 2320 */ 1760, 1761, 567, 1439, 562, 1439, 1439, 1439, 1439, 1757, - /* 2330 */ 1439, 1439, 1439, 1775, 1439, 1439, 1439, 1439, 1439, 1439, - /* 2340 */ 1439, 569, 1439, 1439, 1439, 1439, 1727, 1439, 568, 1439, - /* 2350 */ 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1775, 1439, 1439, - /* 2360 */ 1439, 1439, 1439, 1439, 1439, 569, 1439, 1439, 1439, 1439, - /* 2370 */ 1727, 1439, 568, 1788, 1439, 1439, 1439, 1769, 1758, 571, - /* 2380 */ 1760, 1761, 567, 1439, 562, 1757, 1439, 1439, 1439, 1439, - /* 2390 */ 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1788, 1439, 1439, - /* 2400 */ 1439, 1768, 1758, 571, 1760, 1761, 567, 1439, 562, 1757, - /* 2410 */ 1439, 1439, 1439, 1775, 1439, 1439, 1439, 1439, 1439, 1439, - /* 2420 */ 1439, 569, 1439, 1439, 1439, 1439, 1727, 1439, 568, 1439, - /* 2430 */ 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1775, 1439, 1439, - /* 2440 */ 1439, 1439, 1439, 1439, 1439, 569, 1439, 1439, 1439, 1439, - /* 2450 */ 1727, 1757, 568, 1788, 1439, 1439, 1439, 1767, 1758, 571, - /* 2460 */ 1760, 1761, 567, 1439, 562, 1439, 1439, 1757, 1439, 1439, - /* 2470 */ 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1788, 1439, 1775, - /* 2480 */ 1439, 304, 1758, 571, 1760, 1761, 567, 569, 562, 1439, - /* 2490 */ 1439, 1439, 1727, 1439, 568, 1775, 1439, 1439, 1439, 1439, - /* 2500 */ 1439, 1439, 1439, 569, 1439, 1439, 1439, 1439, 1727, 1757, - /* 2510 */ 568, 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1788, - /* 2520 */ 1439, 1439, 1439, 303, 1758, 571, 1760, 1761, 567, 1757, - /* 2530 */ 562, 1439, 1439, 1439, 1439, 1788, 1439, 1775, 1439, 305, - /* 2540 */ 1758, 571, 1760, 1761, 567, 569, 562, 1439, 1439, 1439, - /* 2550 */ 1727, 1439, 568, 1439, 1439, 1439, 1439, 1775, 1439, 1439, - /* 2560 */ 1439, 1439, 1439, 1439, 1439, 569, 1439, 1439, 1439, 1439, - /* 2570 */ 1727, 1439, 568, 1439, 1439, 1439, 1439, 1788, 1439, 1439, - /* 2580 */ 1439, 302, 1758, 571, 1760, 1761, 567, 1439, 562, 1439, - /* 2590 */ 1439, 1439, 1439, 1439, 1439, 1439, 1439, 1788, 1439, 1439, - /* 2600 */ 1439, 282, 1758, 571, 1760, 1761, 567, 1439, 562, + /* 0 */ 378, 1907, 427, 509, 428, 1481, 435, 341, 428, 1481, + /* 10 */ 1625, 1627, 40, 38, 1906, 140, 1444, 71, 1904, 79, + /* 20 */ 336, 1447, 1244, 1511, 1583, 41, 39, 37, 36, 35, + /* 30 */ 117, 992, 522, 1319, 1764, 1242, 62, 31, 258, 1575, + /* 40 */ 1573, 1907, 103, 164, 1907, 102, 101, 100, 99, 98, + /* 50 */ 97, 96, 95, 94, 159, 546, 1314, 159, 1904, 14, + /* 60 */ 1580, 1904, 1782, 549, 549, 1250, 1782, 142, 1269, 1458, + /* 70 */ 574, 996, 997, 323, 539, 1734, 348, 573, 40, 38, + /* 80 */ 1382, 140, 1, 122, 479, 478, 336, 1632, 1244, 477, + /* 90 */ 1582, 551, 118, 474, 324, 444, 473, 472, 471, 1319, + /* 100 */ 1764, 1242, 1795, 1630, 654, 1469, 89, 1765, 576, 1767, + /* 110 */ 1768, 572, 538, 567, 61, 61, 1841, 1907, 1321, 1322, + /* 120 */ 303, 1837, 1314, 120, 624, 14, 44, 339, 1782, 143, + /* 130 */ 159, 1250, 1907, 1537, 1904, 140, 574, 548, 155, 1849, + /* 140 */ 1850, 1734, 1854, 573, 1582, 161, 1734, 103, 2, 1904, + /* 150 */ 102, 101, 100, 99, 98, 97, 96, 95, 94, 426, + /* 160 */ 219, 220, 430, 1245, 372, 1243, 1141, 1142, 1795, 346, + /* 170 */ 654, 1508, 91, 1765, 576, 1767, 1768, 572, 1269, 567, + /* 180 */ 434, 510, 1841, 430, 1321, 1322, 1840, 1837, 1446, 322, + /* 190 */ 1248, 1249, 1677, 1297, 1298, 1300, 1301, 1302, 1303, 1304, + /* 200 */ 569, 565, 1312, 1313, 1315, 1316, 1317, 1318, 1320, 1323, + /* 210 */ 1907, 535, 112, 111, 110, 109, 108, 107, 106, 105, + /* 220 */ 104, 302, 162, 159, 512, 213, 1676, 1904, 297, 1245, + /* 230 */ 71, 1243, 631, 630, 629, 344, 549, 628, 627, 626, + /* 240 */ 123, 621, 620, 619, 618, 617, 616, 615, 614, 133, + /* 250 */ 610, 61, 1576, 75, 162, 162, 1248, 1249, 61, 1297, + /* 260 */ 1298, 1300, 1301, 1302, 1303, 1304, 569, 565, 1312, 1313, + /* 270 */ 1315, 1316, 1317, 1318, 1320, 1323, 40, 38, 555, 342, + /* 280 */ 479, 478, 384, 1403, 336, 477, 1244, 140, 118, 474, + /* 290 */ 541, 536, 473, 472, 471, 495, 1582, 1319, 43, 1242, + /* 300 */ 1099, 598, 597, 596, 1103, 595, 1105, 1106, 594, 1108, + /* 310 */ 591, 1268, 1114, 588, 1116, 1117, 585, 582, 1907, 300, + /* 320 */ 1314, 1751, 484, 14, 532, 1401, 1402, 1404, 1405, 1250, + /* 330 */ 1468, 160, 1748, 40, 38, 1904, 1907, 494, 377, 522, + /* 340 */ 376, 336, 86, 1244, 1764, 1632, 2, 206, 1061, 159, + /* 350 */ 113, 205, 340, 1904, 1319, 119, 1242, 465, 1744, 1750, + /* 360 */ 325, 1630, 540, 1572, 1467, 487, 1244, 1580, 654, 481, + /* 370 */ 567, 1734, 1782, 522, 204, 1907, 1558, 1314, 1063, 1242, + /* 380 */ 550, 1267, 1321, 1322, 165, 1734, 1250, 573, 1905, 34, + /* 390 */ 33, 162, 1904, 41, 39, 37, 36, 35, 162, 56, + /* 400 */ 522, 1580, 55, 8, 1571, 1734, 73, 302, 432, 1250, + /* 410 */ 512, 382, 1795, 369, 1266, 1748, 90, 1765, 576, 1767, + /* 420 */ 1768, 572, 522, 567, 153, 654, 1841, 1245, 1580, 1243, + /* 430 */ 329, 1837, 154, 383, 444, 371, 367, 1619, 162, 1321, + /* 440 */ 1322, 1744, 1750, 218, 158, 1626, 1627, 1009, 654, 1008, + /* 450 */ 1580, 609, 1867, 567, 1248, 1249, 1680, 1297, 1298, 1300, + /* 460 */ 1301, 1302, 1303, 1304, 569, 565, 1312, 1313, 1315, 1316, + /* 470 */ 1317, 1318, 1320, 1323, 34, 33, 556, 1010, 41, 39, + /* 480 */ 37, 36, 35, 1009, 1245, 1008, 1243, 34, 33, 1556, + /* 490 */ 27, 41, 39, 37, 36, 35, 34, 33, 463, 1670, + /* 500 */ 41, 39, 37, 36, 35, 1224, 1225, 1245, 563, 1243, + /* 510 */ 172, 1248, 1249, 1010, 1297, 1298, 1300, 1301, 1302, 1303, + /* 520 */ 1304, 569, 565, 1312, 1313, 1315, 1316, 1317, 1318, 1320, + /* 530 */ 1323, 40, 38, 1324, 1248, 1249, 1439, 476, 475, 336, + /* 540 */ 417, 1244, 1764, 162, 1569, 522, 192, 609, 522, 1413, + /* 550 */ 1856, 1386, 1319, 522, 1242, 313, 387, 1268, 1270, 402, + /* 560 */ 146, 510, 1393, 546, 113, 461, 457, 453, 449, 191, + /* 570 */ 1782, 470, 1678, 1580, 1853, 1314, 1580, 1343, 574, 522, + /* 580 */ 1675, 1580, 297, 1734, 1250, 573, 174, 173, 40, 38, + /* 590 */ 403, 122, 625, 623, 72, 42, 336, 189, 1244, 551, + /* 600 */ 1348, 9, 522, 314, 469, 312, 311, 1580, 467, 1319, + /* 610 */ 1795, 1242, 469, 443, 89, 1765, 576, 1767, 1768, 572, + /* 620 */ 613, 567, 1552, 654, 1841, 1438, 468, 170, 303, 1837, + /* 630 */ 1580, 120, 1314, 522, 468, 1192, 493, 1321, 1322, 1333, + /* 640 */ 1907, 1250, 28, 1379, 1577, 1466, 156, 1849, 1850, 491, + /* 650 */ 1854, 489, 69, 159, 1752, 68, 1250, 1904, 9, 188, + /* 660 */ 181, 1580, 186, 11, 10, 1748, 440, 34, 33, 996, + /* 670 */ 997, 41, 39, 37, 36, 35, 546, 7, 607, 522, + /* 680 */ 654, 1329, 1245, 59, 1243, 179, 1734, 1268, 250, 601, + /* 690 */ 1709, 1744, 1750, 605, 1321, 1322, 1623, 131, 130, 604, + /* 700 */ 603, 602, 23, 567, 122, 1465, 1464, 1580, 1856, 1248, + /* 710 */ 1249, 1268, 1297, 1298, 1300, 1301, 1302, 1303, 1304, 569, + /* 720 */ 565, 1312, 1313, 1315, 1316, 1317, 1318, 1320, 1323, 34, + /* 730 */ 33, 1299, 1852, 41, 39, 37, 36, 35, 1033, 1245, + /* 740 */ 1856, 1243, 29, 1271, 120, 1355, 1734, 1734, 34, 33, + /* 750 */ 1463, 612, 41, 39, 37, 36, 35, 1462, 1461, 157, + /* 760 */ 1849, 1850, 606, 1854, 1851, 1623, 1248, 1249, 1034, 1297, + /* 770 */ 1298, 1300, 1301, 1302, 1303, 1304, 569, 565, 1312, 1313, + /* 780 */ 1315, 1316, 1317, 1318, 1320, 1323, 40, 38, 299, 1498, + /* 790 */ 1266, 1734, 657, 1565, 336, 1764, 1244, 410, 1734, 1734, + /* 800 */ 422, 37, 36, 35, 1282, 522, 265, 1319, 1460, 1242, + /* 810 */ 270, 480, 1457, 1610, 1861, 1375, 503, 395, 1557, 423, + /* 820 */ 151, 397, 212, 1782, 522, 647, 643, 639, 635, 263, + /* 830 */ 1314, 574, 522, 1580, 1456, 507, 1734, 502, 573, 1250, + /* 840 */ 34, 33, 1632, 520, 41, 39, 37, 36, 35, 1734, + /* 850 */ 74, 388, 1580, 1734, 87, 522, 2, 228, 1631, 1375, + /* 860 */ 1580, 1299, 1378, 1795, 45, 4, 521, 91, 1765, 576, + /* 870 */ 1767, 1768, 572, 230, 567, 1734, 1721, 1841, 654, 1455, + /* 880 */ 558, 562, 1837, 1580, 1454, 1299, 1453, 1452, 1451, 1450, + /* 890 */ 519, 421, 1321, 1322, 416, 415, 414, 413, 412, 409, + /* 900 */ 408, 407, 406, 405, 401, 400, 399, 398, 392, 391, + /* 910 */ 390, 389, 607, 386, 385, 1449, 1538, 52, 506, 553, + /* 920 */ 1734, 141, 215, 357, 1253, 1734, 276, 1734, 1734, 1734, + /* 930 */ 1734, 131, 130, 604, 603, 602, 1555, 1245, 522, 1243, + /* 940 */ 274, 58, 1487, 1216, 57, 208, 34, 33, 1252, 259, + /* 950 */ 41, 39, 37, 36, 35, 1567, 1734, 1563, 546, 197, + /* 960 */ 175, 209, 195, 217, 1248, 1249, 1580, 1297, 1298, 1300, + /* 970 */ 1301, 1302, 1303, 1304, 569, 565, 1312, 1313, 1315, 1316, + /* 980 */ 1317, 1318, 1320, 1323, 1493, 61, 122, 34, 33, 522, + /* 990 */ 649, 41, 39, 37, 36, 35, 199, 304, 201, 198, + /* 1000 */ 343, 200, 1491, 221, 34, 33, 482, 551, 41, 39, + /* 1010 */ 37, 36, 35, 203, 568, 125, 202, 1580, 11, 10, + /* 1020 */ 1754, 1282, 85, 88, 485, 600, 120, 1459, 128, 1341, + /* 1030 */ 607, 129, 82, 50, 253, 234, 1764, 496, 304, 1441, + /* 1040 */ 1442, 248, 1849, 545, 42, 544, 42, 533, 1907, 131, + /* 1050 */ 130, 604, 603, 602, 1256, 515, 1756, 42, 66, 65, + /* 1060 */ 381, 161, 580, 169, 1782, 1904, 462, 128, 227, 375, + /* 1070 */ 1341, 1092, 571, 1400, 242, 237, 1783, 1734, 1255, 573, + /* 1080 */ 559, 345, 298, 1342, 1349, 365, 1305, 363, 359, 355, + /* 1090 */ 166, 350, 347, 129, 114, 1764, 1482, 269, 1620, 128, + /* 1100 */ 547, 1871, 1120, 247, 1795, 252, 1347, 1124, 291, 1765, + /* 1110 */ 576, 1767, 1768, 572, 570, 567, 564, 1813, 255, 257, + /* 1120 */ 80, 5, 3, 1782, 1342, 162, 53, 349, 1266, 352, + /* 1130 */ 356, 550, 309, 1131, 1129, 1061, 1734, 1764, 573, 132, + /* 1140 */ 310, 1208, 266, 404, 1672, 171, 139, 1347, 30, 334, + /* 1150 */ 1336, 1337, 1338, 1339, 1340, 1344, 1345, 1346, 411, 418, + /* 1160 */ 419, 420, 424, 1795, 1272, 1782, 425, 90, 1765, 576, + /* 1170 */ 1767, 1768, 572, 574, 567, 433, 1275, 1841, 1734, 436, + /* 1180 */ 573, 329, 1837, 154, 178, 437, 180, 1274, 438, 30, + /* 1190 */ 334, 1336, 1337, 1338, 1339, 1340, 1344, 1345, 1346, 1276, + /* 1200 */ 1764, 439, 183, 1868, 441, 1795, 185, 1273, 442, 91, + /* 1210 */ 1765, 576, 1767, 1768, 572, 187, 567, 70, 445, 1841, + /* 1220 */ 190, 464, 301, 93, 1838, 1714, 1764, 466, 1782, 1570, + /* 1230 */ 194, 207, 1566, 267, 196, 134, 574, 135, 497, 1568, + /* 1240 */ 1564, 1734, 136, 573, 137, 498, 210, 214, 319, 504, + /* 1250 */ 508, 530, 516, 1271, 1782, 534, 501, 268, 511, 225, + /* 1260 */ 78, 1882, 574, 1713, 1682, 513, 321, 1734, 1795, 573, + /* 1270 */ 126, 526, 90, 1765, 576, 1767, 1768, 572, 6, 567, + /* 1280 */ 127, 517, 1841, 1881, 223, 1863, 329, 1837, 1920, 1581, + /* 1290 */ 543, 241, 148, 518, 1795, 528, 529, 1875, 90, 1765, + /* 1300 */ 576, 1767, 1768, 572, 232, 567, 328, 537, 1841, 1872, + /* 1310 */ 527, 236, 329, 1837, 1920, 1764, 327, 326, 525, 524, + /* 1320 */ 1375, 121, 1270, 1898, 560, 557, 1258, 246, 19, 330, + /* 1330 */ 578, 1624, 1857, 271, 1553, 243, 546, 1319, 651, 1251, + /* 1340 */ 262, 650, 51, 1782, 653, 284, 147, 1728, 244, 275, + /* 1350 */ 63, 574, 273, 294, 293, 1727, 1734, 1726, 573, 64, + /* 1360 */ 1314, 245, 1725, 1822, 122, 351, 1722, 353, 354, 1250, + /* 1370 */ 1236, 1237, 167, 1720, 358, 360, 361, 1903, 554, 362, + /* 1380 */ 251, 1764, 561, 1795, 254, 551, 256, 90, 1765, 576, + /* 1390 */ 1767, 1768, 572, 1719, 567, 1923, 364, 1841, 1718, 366, + /* 1400 */ 1717, 329, 1837, 1920, 120, 368, 1716, 370, 531, 1782, + /* 1410 */ 1699, 168, 1860, 373, 374, 1211, 1210, 574, 1693, 248, + /* 1420 */ 1849, 545, 1734, 544, 573, 379, 1907, 1692, 380, 1691, + /* 1430 */ 1690, 1180, 1665, 1664, 1663, 67, 1662, 1661, 551, 159, + /* 1440 */ 1660, 1659, 1658, 1904, 393, 1764, 394, 1657, 396, 1795, + /* 1450 */ 1656, 1655, 1654, 283, 1765, 576, 1767, 1768, 572, 1653, + /* 1460 */ 567, 1652, 1651, 1650, 1649, 1648, 1647, 1259, 1646, 1254, + /* 1470 */ 1645, 1644, 1643, 1782, 1642, 1641, 1640, 124, 1639, 1907, + /* 1480 */ 1638, 574, 1637, 1636, 1635, 1634, 1734, 1633, 573, 1182, + /* 1490 */ 1510, 1478, 161, 115, 1262, 176, 1904, 1764, 152, 1477, + /* 1500 */ 999, 1707, 551, 429, 431, 565, 1312, 1313, 1315, 1316, + /* 1510 */ 1317, 1318, 998, 1795, 1701, 1689, 116, 283, 1765, 576, + /* 1520 */ 1767, 1768, 572, 184, 567, 1782, 1688, 1674, 177, 1559, + /* 1530 */ 1509, 182, 1507, 574, 1505, 446, 447, 1503, 1734, 1027, + /* 1540 */ 573, 448, 450, 1907, 451, 452, 454, 456, 1501, 1490, + /* 1550 */ 1764, 455, 458, 1489, 1474, 460, 159, 459, 1561, 1135, + /* 1560 */ 1904, 1134, 193, 1560, 1764, 1795, 1060, 1499, 1059, 144, + /* 1570 */ 1765, 576, 1767, 1768, 572, 1058, 567, 1057, 1782, 622, + /* 1580 */ 1054, 624, 1053, 320, 49, 1052, 574, 315, 1494, 1492, + /* 1590 */ 316, 1734, 1782, 573, 317, 483, 1473, 523, 1472, 486, + /* 1600 */ 574, 488, 1471, 492, 490, 1734, 92, 573, 1706, 1218, + /* 1610 */ 54, 1700, 138, 552, 1921, 499, 1764, 1687, 1795, 500, + /* 1620 */ 1685, 1686, 292, 1765, 576, 1767, 1768, 572, 211, 567, + /* 1630 */ 1684, 1683, 1795, 15, 1228, 216, 292, 1765, 576, 1767, + /* 1640 */ 1768, 572, 1681, 567, 1782, 1673, 318, 82, 224, 229, + /* 1650 */ 42, 226, 574, 222, 16, 505, 1260, 1734, 76, 573, + /* 1660 */ 514, 77, 24, 10, 240, 1415, 231, 235, 1764, 48, + /* 1670 */ 233, 239, 26, 1397, 1399, 1392, 145, 238, 1754, 25, + /* 1680 */ 1764, 81, 249, 1372, 1795, 1427, 47, 1371, 287, 1765, + /* 1690 */ 576, 1767, 1768, 572, 1764, 567, 1782, 1753, 149, 1432, + /* 1700 */ 18, 1426, 1421, 331, 574, 1431, 1430, 332, 1782, 1734, + /* 1710 */ 20, 573, 1334, 333, 1290, 1798, 574, 575, 1309, 566, + /* 1720 */ 17, 1734, 1782, 573, 1307, 150, 542, 1306, 32, 12, + /* 1730 */ 571, 21, 163, 46, 579, 1734, 1795, 573, 22, 338, + /* 1740 */ 144, 1765, 576, 1767, 1768, 572, 13, 567, 1795, 583, + /* 1750 */ 1764, 577, 292, 1765, 576, 1767, 1768, 572, 1121, 567, + /* 1760 */ 581, 586, 1795, 1118, 1764, 584, 291, 1765, 576, 1767, + /* 1770 */ 1768, 572, 1115, 567, 1764, 1814, 587, 589, 1782, 1109, + /* 1780 */ 590, 592, 593, 335, 1107, 1922, 574, 599, 1113, 1098, + /* 1790 */ 1112, 1734, 1782, 573, 1111, 83, 1110, 337, 84, 1130, + /* 1800 */ 574, 60, 1782, 260, 1126, 1734, 608, 573, 1025, 1049, + /* 1810 */ 574, 611, 261, 1047, 1067, 1734, 1764, 573, 1795, 1046, + /* 1820 */ 1045, 1044, 292, 1765, 576, 1767, 1768, 572, 1764, 567, + /* 1830 */ 1043, 1042, 1795, 1041, 1040, 1064, 292, 1765, 576, 1767, + /* 1840 */ 1768, 572, 1795, 567, 1782, 1062, 277, 1765, 576, 1767, + /* 1850 */ 1768, 572, 574, 567, 1037, 1036, 1782, 1734, 1035, 573, + /* 1860 */ 1032, 1031, 1030, 1506, 574, 632, 1504, 634, 633, 1734, + /* 1870 */ 1764, 573, 636, 638, 1502, 640, 1500, 642, 637, 641, + /* 1880 */ 1764, 644, 645, 646, 1795, 1488, 648, 989, 278, 1765, + /* 1890 */ 576, 1767, 1768, 572, 1764, 567, 1795, 1470, 1782, 264, + /* 1900 */ 279, 1765, 576, 1767, 1768, 572, 574, 567, 1782, 652, + /* 1910 */ 655, 1734, 1246, 573, 272, 1445, 574, 1445, 656, 1445, + /* 1920 */ 1445, 1734, 1782, 573, 1445, 1445, 1445, 1445, 1445, 1445, + /* 1930 */ 574, 1445, 1445, 1445, 1445, 1734, 1764, 573, 1795, 1445, + /* 1940 */ 1445, 1445, 286, 1765, 576, 1767, 1768, 572, 1795, 567, + /* 1950 */ 1764, 1445, 288, 1765, 576, 1767, 1768, 572, 1445, 567, + /* 1960 */ 1764, 1445, 1795, 1445, 1782, 1445, 280, 1765, 576, 1767, + /* 1970 */ 1768, 572, 574, 567, 1445, 1445, 1445, 1734, 1782, 573, + /* 1980 */ 1445, 1445, 1445, 1445, 1445, 1445, 574, 1445, 1782, 1445, + /* 1990 */ 1445, 1734, 1445, 573, 1445, 1445, 574, 1445, 1445, 1445, + /* 2000 */ 1445, 1734, 1445, 573, 1795, 1445, 1445, 1445, 289, 1765, + /* 2010 */ 576, 1767, 1768, 572, 1445, 567, 1445, 1445, 1795, 1445, + /* 2020 */ 1764, 1445, 281, 1765, 576, 1767, 1768, 572, 1795, 567, + /* 2030 */ 1764, 1445, 290, 1765, 576, 1767, 1768, 572, 1445, 567, + /* 2040 */ 1445, 1445, 1764, 1445, 1445, 1445, 1445, 1445, 1782, 1445, + /* 2050 */ 1445, 1445, 1445, 1445, 1445, 1445, 574, 1445, 1782, 1445, + /* 2060 */ 1445, 1734, 1445, 573, 1445, 1445, 574, 1445, 1445, 1445, + /* 2070 */ 1782, 1734, 1445, 573, 1445, 1445, 1445, 1445, 574, 1445, + /* 2080 */ 1445, 1445, 1445, 1734, 1764, 573, 1445, 1445, 1795, 1445, + /* 2090 */ 1445, 1445, 282, 1765, 576, 1767, 1768, 572, 1795, 567, + /* 2100 */ 1764, 1445, 295, 1765, 576, 1767, 1768, 572, 1445, 567, + /* 2110 */ 1795, 1445, 1782, 1445, 296, 1765, 576, 1767, 1768, 572, + /* 2120 */ 574, 567, 1445, 1445, 1445, 1734, 1764, 573, 1782, 1445, + /* 2130 */ 1445, 1445, 1445, 1445, 1445, 1445, 574, 1445, 1445, 1445, + /* 2140 */ 1445, 1734, 1445, 573, 1445, 1445, 1445, 1445, 1445, 1445, + /* 2150 */ 1764, 1445, 1795, 1445, 1782, 1445, 1776, 1765, 576, 1767, + /* 2160 */ 1768, 572, 574, 567, 1445, 1445, 1445, 1734, 1795, 573, + /* 2170 */ 1445, 1445, 1775, 1765, 576, 1767, 1768, 572, 1782, 567, + /* 2180 */ 1445, 1445, 1445, 1445, 1445, 1445, 574, 1445, 1445, 1445, + /* 2190 */ 1445, 1734, 1764, 573, 1795, 1445, 1445, 1445, 1774, 1765, + /* 2200 */ 576, 1767, 1768, 572, 1764, 567, 1445, 1445, 1445, 1445, + /* 2210 */ 1445, 1445, 1445, 1445, 1445, 1445, 1764, 1445, 1795, 1445, + /* 2220 */ 1782, 1445, 307, 1765, 576, 1767, 1768, 572, 574, 567, + /* 2230 */ 1445, 1445, 1782, 1734, 1445, 573, 1445, 1445, 1445, 1445, + /* 2240 */ 574, 1445, 1445, 1445, 1782, 1734, 1445, 573, 1445, 1445, + /* 2250 */ 1445, 1445, 574, 1445, 1445, 1445, 1445, 1734, 1445, 573, + /* 2260 */ 1795, 1445, 1445, 1445, 306, 1765, 576, 1767, 1768, 572, + /* 2270 */ 1445, 567, 1795, 1445, 1764, 1445, 308, 1765, 576, 1767, + /* 2280 */ 1768, 572, 1445, 567, 1795, 1445, 1445, 1445, 305, 1765, + /* 2290 */ 576, 1767, 1768, 572, 1445, 567, 1445, 1445, 1445, 1445, + /* 2300 */ 1445, 1445, 1782, 1445, 1445, 1445, 1445, 1445, 1445, 1445, + /* 2310 */ 574, 1445, 1445, 1445, 1445, 1734, 1445, 573, 1445, 1445, + /* 2320 */ 1445, 1445, 1445, 1445, 1445, 1445, 1445, 1445, 1445, 1445, + /* 2330 */ 1445, 1445, 1445, 1445, 1445, 1445, 1445, 1445, 1445, 1445, + /* 2340 */ 1445, 1445, 1795, 1445, 1445, 1445, 285, 1765, 576, 1767, + /* 2350 */ 1768, 572, 1445, 567, }; static const YYCODETYPE yy_lookahead[] = { - /* 0 */ 259, 284, 261, 262, 353, 259, 252, 261, 262, 267, - /* 10 */ 267, 263, 12, 13, 285, 268, 283, 366, 263, 272, - /* 20 */ 20, 370, 22, 280, 291, 296, 12, 13, 14, 15, - /* 30 */ 16, 289, 289, 33, 21, 35, 285, 24, 25, 26, - /* 40 */ 27, 28, 29, 30, 31, 32, 291, 296, 300, 20, - /* 50 */ 285, 322, 323, 324, 294, 255, 56, 297, 298, 59, - /* 60 */ 20, 296, 329, 334, 58, 65, 312, 312, 20, 12, - /* 70 */ 13, 14, 263, 322, 323, 0, 353, 20, 254, 22, - /* 80 */ 256, 56, 82, 283, 20, 334, 331, 322, 323, 366, - /* 90 */ 33, 291, 35, 370, 312, 94, 296, 353, 298, 334, - /* 100 */ 291, 346, 347, 348, 104, 350, 81, 353, 353, 84, - /* 110 */ 366, 82, 312, 56, 370, 35, 59, 116, 118, 119, - /* 120 */ 366, 366, 65, 323, 370, 370, 20, 327, 328, 329, - /* 130 */ 330, 331, 332, 58, 334, 353, 82, 337, 14, 82, - /* 140 */ 331, 341, 342, 263, 20, 65, 82, 20, 366, 282, - /* 150 */ 19, 56, 370, 353, 345, 346, 347, 348, 20, 350, - /* 160 */ 22, 104, 295, 163, 33, 165, 366, 338, 339, 4, - /* 170 */ 370, 291, 20, 35, 275, 118, 119, 82, 47, 84, - /* 180 */ 58, 114, 283, 52, 53, 54, 55, 56, 50, 189, - /* 190 */ 190, 292, 192, 193, 194, 195, 196, 197, 198, 199, - /* 200 */ 200, 201, 202, 203, 204, 205, 206, 207, 208, 44, - /* 210 */ 45, 331, 81, 14, 260, 84, 162, 263, 164, 20, - /* 220 */ 163, 221, 165, 76, 118, 119, 346, 347, 348, 20, - /* 230 */ 350, 8, 9, 37, 298, 12, 13, 14, 15, 16, - /* 240 */ 173, 174, 306, 263, 177, 309, 189, 190, 117, 192, - /* 250 */ 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, - /* 260 */ 203, 204, 205, 206, 207, 208, 12, 13, 0, 122, - /* 270 */ 123, 291, 283, 0, 20, 221, 22, 113, 114, 290, - /* 280 */ 149, 85, 59, 87, 88, 221, 90, 33, 299, 35, - /* 290 */ 94, 148, 24, 25, 26, 27, 28, 29, 30, 31, - /* 300 */ 32, 170, 255, 172, 263, 260, 83, 263, 263, 263, - /* 310 */ 56, 331, 116, 59, 91, 274, 221, 193, 274, 65, - /* 320 */ 274, 4, 281, 12, 13, 281, 346, 347, 348, 82, - /* 330 */ 350, 20, 291, 22, 0, 291, 82, 291, 174, 14, - /* 340 */ 255, 177, 65, 296, 33, 20, 35, 95, 96, 97, - /* 350 */ 98, 99, 100, 101, 102, 103, 104, 105, 104, 107, - /* 360 */ 108, 109, 110, 111, 112, 0, 263, 56, 145, 226, - /* 370 */ 227, 293, 118, 119, 296, 255, 65, 274, 14, 15, - /* 380 */ 16, 296, 8, 9, 297, 298, 12, 13, 14, 15, - /* 390 */ 16, 168, 193, 82, 291, 61, 62, 63, 64, 82, - /* 400 */ 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, - /* 410 */ 76, 77, 78, 79, 93, 104, 296, 163, 325, 165, - /* 420 */ 8, 9, 189, 58, 12, 13, 14, 15, 16, 118, - /* 430 */ 119, 0, 209, 210, 211, 212, 213, 214, 215, 216, - /* 440 */ 217, 218, 349, 189, 190, 65, 192, 193, 194, 195, - /* 450 */ 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, - /* 460 */ 206, 207, 208, 230, 231, 232, 233, 234, 221, 263, - /* 470 */ 61, 62, 269, 270, 163, 66, 165, 284, 69, 70, - /* 480 */ 274, 265, 73, 74, 75, 8, 9, 1, 2, 12, - /* 490 */ 13, 14, 15, 16, 278, 83, 20, 291, 22, 56, - /* 500 */ 189, 190, 286, 192, 193, 194, 195, 196, 197, 198, - /* 510 */ 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, - /* 520 */ 12, 13, 14, 275, 4, 94, 50, 84, 20, 155, - /* 530 */ 22, 283, 221, 0, 312, 33, 59, 284, 221, 19, - /* 540 */ 292, 33, 275, 35, 113, 114, 115, 116, 117, 47, - /* 550 */ 283, 263, 316, 33, 52, 53, 54, 55, 56, 292, - /* 560 */ 265, 263, 274, 263, 56, 269, 270, 47, 91, 83, - /* 570 */ 312, 51, 274, 65, 274, 353, 56, 12, 13, 291, - /* 580 */ 283, 286, 263, 81, 3, 20, 84, 22, 366, 291, - /* 590 */ 82, 291, 370, 274, 61, 62, 299, 158, 33, 66, - /* 600 */ 35, 81, 69, 70, 84, 263, 73, 74, 75, 39, - /* 610 */ 291, 353, 104, 308, 263, 310, 274, 243, 263, 180, - /* 620 */ 181, 56, 145, 4, 366, 274, 118, 119, 370, 274, - /* 630 */ 65, 8, 9, 291, 255, 12, 13, 14, 15, 16, - /* 640 */ 44, 45, 291, 283, 255, 168, 291, 82, 146, 147, - /* 650 */ 290, 149, 325, 20, 263, 153, 8, 9, 255, 299, - /* 660 */ 12, 13, 14, 15, 16, 274, 43, 291, 263, 104, - /* 670 */ 308, 163, 310, 165, 172, 296, 349, 113, 302, 274, - /* 680 */ 255, 43, 291, 118, 119, 296, 209, 210, 211, 212, - /* 690 */ 213, 214, 215, 216, 217, 218, 291, 189, 190, 296, - /* 700 */ 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, - /* 710 */ 202, 203, 204, 205, 206, 207, 208, 0, 8, 9, - /* 720 */ 21, 296, 12, 13, 14, 15, 16, 325, 163, 293, - /* 730 */ 165, 83, 296, 34, 276, 36, 255, 279, 21, 175, - /* 740 */ 176, 24, 25, 26, 27, 28, 29, 30, 31, 32, - /* 750 */ 271, 349, 273, 263, 189, 190, 0, 192, 193, 194, - /* 760 */ 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, - /* 770 */ 205, 206, 207, 208, 12, 13, 18, 296, 20, 43, - /* 780 */ 263, 291, 20, 150, 22, 27, 256, 255, 30, 263, - /* 790 */ 220, 274, 94, 83, 255, 33, 20, 35, 284, 298, - /* 800 */ 274, 145, 312, 47, 255, 47, 20, 49, 291, 51, - /* 810 */ 309, 113, 114, 115, 116, 117, 35, 291, 56, 238, - /* 820 */ 263, 331, 219, 220, 168, 42, 43, 65, 296, 150, - /* 830 */ 151, 274, 255, 283, 255, 296, 346, 347, 348, 81, - /* 840 */ 350, 222, 292, 353, 82, 296, 8, 9, 291, 364, - /* 850 */ 12, 13, 14, 15, 16, 86, 366, 284, 89, 255, - /* 860 */ 370, 22, 255, 8, 9, 209, 104, 12, 13, 14, - /* 870 */ 15, 16, 255, 296, 35, 296, 284, 35, 240, 121, - /* 880 */ 118, 119, 124, 125, 126, 127, 128, 129, 130, 131, - /* 890 */ 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, - /* 900 */ 296, 143, 144, 296, 65, 2, 255, 1, 2, 18, - /* 910 */ 43, 8, 9, 296, 23, 12, 13, 14, 15, 16, - /* 920 */ 0, 86, 118, 119, 89, 163, 150, 165, 37, 38, - /* 930 */ 255, 0, 41, 255, 86, 86, 43, 89, 89, 59, - /* 940 */ 272, 46, 43, 104, 255, 284, 165, 296, 57, 373, - /* 950 */ 83, 189, 190, 22, 192, 193, 194, 195, 196, 197, - /* 960 */ 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, - /* 970 */ 208, 296, 283, 82, 296, 43, 83, 82, 242, 193, - /* 980 */ 291, 319, 83, 2, 0, 296, 0, 298, 150, 8, - /* 990 */ 9, 264, 43, 12, 13, 14, 15, 16, 43, 43, - /* 1000 */ 43, 312, 163, 43, 165, 43, 22, 165, 22, 43, - /* 1010 */ 360, 120, 323, 43, 94, 83, 327, 328, 329, 330, - /* 1020 */ 331, 332, 255, 334, 0, 283, 337, 264, 189, 190, - /* 1030 */ 341, 342, 83, 113, 114, 115, 116, 117, 83, 83, - /* 1040 */ 83, 43, 353, 83, 43, 83, 155, 156, 157, 83, - /* 1050 */ 283, 160, 43, 83, 82, 366, 35, 166, 291, 370, - /* 1060 */ 262, 295, 43, 296, 92, 298, 326, 351, 344, 189, - /* 1070 */ 179, 367, 48, 182, 367, 184, 185, 186, 187, 188, - /* 1080 */ 367, 83, 354, 255, 83, 223, 65, 20, 263, 321, - /* 1090 */ 323, 47, 83, 320, 327, 328, 329, 330, 331, 332, - /* 1100 */ 255, 334, 83, 35, 337, 269, 161, 314, 341, 342, - /* 1110 */ 343, 283, 221, 263, 263, 42, 303, 301, 145, 291, - /* 1120 */ 301, 263, 355, 20, 296, 257, 298, 257, 283, 20, - /* 1130 */ 363, 267, 318, 267, 20, 298, 291, 311, 20, 267, - /* 1140 */ 313, 296, 311, 298, 267, 20, 267, 304, 267, 263, - /* 1150 */ 267, 323, 283, 255, 257, 327, 328, 329, 330, 331, - /* 1160 */ 332, 283, 334, 171, 318, 337, 307, 283, 323, 341, - /* 1170 */ 342, 343, 327, 328, 329, 330, 331, 332, 257, 334, - /* 1180 */ 263, 283, 337, 283, 283, 283, 341, 342, 343, 291, - /* 1190 */ 283, 363, 283, 283, 296, 283, 298, 352, 283, 12, - /* 1200 */ 13, 296, 265, 265, 317, 263, 298, 263, 255, 22, - /* 1210 */ 228, 265, 296, 147, 296, 311, 305, 291, 296, 296, - /* 1220 */ 33, 323, 35, 296, 265, 327, 328, 329, 330, 331, - /* 1230 */ 332, 307, 334, 304, 265, 337, 283, 279, 291, 341, - /* 1240 */ 342, 343, 20, 56, 291, 326, 296, 229, 359, 296, - /* 1250 */ 352, 298, 65, 359, 362, 307, 154, 296, 307, 296, - /* 1260 */ 296, 296, 235, 237, 236, 224, 220, 291, 20, 239, - /* 1270 */ 241, 82, 255, 359, 361, 321, 323, 325, 244, 82, - /* 1280 */ 327, 328, 329, 330, 331, 332, 255, 334, 358, 356, - /* 1290 */ 337, 104, 357, 368, 341, 342, 343, 369, 255, 287, - /* 1300 */ 283, 296, 263, 369, 36, 352, 273, 368, 291, 369, - /* 1310 */ 374, 368, 265, 296, 283, 298, 258, 340, 257, 315, - /* 1320 */ 310, 266, 291, 253, 0, 277, 283, 296, 277, 298, - /* 1330 */ 277, 0, 42, 0, 291, 73, 0, 35, 183, 296, - /* 1340 */ 323, 298, 35, 312, 327, 328, 329, 330, 331, 332, - /* 1350 */ 163, 334, 165, 35, 323, 312, 35, 183, 327, 328, - /* 1360 */ 329, 330, 331, 332, 0, 334, 323, 255, 183, 35, - /* 1370 */ 327, 328, 329, 330, 331, 332, 189, 334, 35, 0, - /* 1380 */ 0, 183, 365, 35, 353, 0, 0, 200, 201, 202, - /* 1390 */ 203, 204, 205, 206, 22, 283, 353, 366, 35, 0, - /* 1400 */ 168, 370, 82, 291, 167, 165, 163, 0, 296, 366, - /* 1410 */ 298, 0, 159, 370, 158, 0, 0, 46, 0, 0, - /* 1420 */ 0, 142, 0, 0, 255, 0, 0, 0, 137, 35, - /* 1430 */ 0, 137, 0, 0, 0, 323, 0, 0, 0, 327, - /* 1440 */ 328, 329, 330, 331, 332, 255, 334, 0, 0, 337, - /* 1450 */ 0, 0, 283, 341, 342, 0, 0, 0, 0, 42, - /* 1460 */ 291, 0, 0, 0, 0, 296, 0, 298, 0, 0, - /* 1470 */ 0, 22, 0, 283, 43, 46, 0, 42, 39, 14, - /* 1480 */ 40, 291, 0, 0, 0, 14, 296, 46, 298, 0, - /* 1490 */ 0, 39, 323, 39, 154, 0, 327, 328, 329, 330, - /* 1500 */ 331, 332, 0, 334, 0, 255, 337, 0, 0, 0, - /* 1510 */ 341, 342, 35, 323, 39, 0, 0, 327, 328, 329, - /* 1520 */ 330, 331, 332, 333, 334, 335, 336, 60, 47, 35, - /* 1530 */ 39, 35, 47, 283, 47, 0, 39, 39, 35, 47, - /* 1540 */ 0, 291, 0, 0, 0, 35, 296, 22, 298, 89, - /* 1550 */ 91, 0, 35, 35, 35, 35, 43, 43, 35, 35, - /* 1560 */ 0, 255, 35, 22, 0, 0, 35, 22, 22, 0, - /* 1570 */ 49, 35, 0, 323, 35, 0, 22, 327, 328, 329, - /* 1580 */ 330, 331, 332, 255, 334, 0, 20, 35, 0, 283, - /* 1590 */ 169, 0, 150, 22, 150, 0, 150, 291, 0, 0, - /* 1600 */ 147, 0, 296, 0, 298, 83, 178, 0, 82, 39, - /* 1610 */ 82, 283, 82, 46, 82, 225, 288, 43, 22, 291, - /* 1620 */ 83, 371, 372, 43, 296, 152, 298, 148, 225, 323, - /* 1630 */ 92, 82, 146, 327, 328, 329, 330, 331, 332, 82, - /* 1640 */ 334, 83, 83, 337, 255, 82, 46, 43, 342, 225, - /* 1650 */ 82, 323, 46, 43, 46, 327, 328, 329, 330, 331, - /* 1660 */ 332, 82, 334, 82, 255, 83, 83, 83, 82, 43, - /* 1670 */ 83, 46, 283, 46, 43, 83, 83, 288, 35, 2, - /* 1680 */ 291, 35, 35, 35, 35, 296, 35, 298, 189, 22, - /* 1690 */ 93, 82, 283, 43, 83, 82, 82, 219, 83, 83, - /* 1700 */ 291, 46, 46, 82, 82, 296, 82, 298, 35, 35, - /* 1710 */ 35, 83, 323, 83, 82, 82, 327, 328, 329, 330, - /* 1720 */ 331, 332, 83, 334, 191, 35, 35, 82, 35, 255, - /* 1730 */ 22, 94, 323, 35, 22, 83, 327, 328, 329, 330, - /* 1740 */ 331, 332, 82, 334, 83, 82, 106, 106, 255, 60, - /* 1750 */ 82, 82, 82, 43, 59, 35, 80, 283, 43, 106, - /* 1760 */ 106, 65, 288, 35, 35, 291, 35, 35, 35, 22, - /* 1770 */ 296, 35, 298, 35, 65, 35, 283, 35, 35, 35, - /* 1780 */ 35, 372, 0, 35, 291, 35, 35, 0, 47, 296, - /* 1790 */ 35, 298, 39, 47, 0, 39, 35, 323, 39, 47, - /* 1800 */ 0, 327, 328, 329, 330, 331, 332, 35, 334, 47, - /* 1810 */ 39, 0, 35, 35, 0, 22, 323, 255, 21, 21, - /* 1820 */ 327, 328, 329, 330, 331, 332, 22, 334, 22, 336, - /* 1830 */ 20, 375, 375, 255, 375, 375, 375, 375, 375, 375, - /* 1840 */ 375, 375, 375, 375, 375, 283, 375, 375, 375, 375, - /* 1850 */ 288, 375, 375, 291, 375, 375, 375, 375, 296, 375, - /* 1860 */ 298, 283, 375, 375, 375, 375, 288, 375, 375, 291, - /* 1870 */ 375, 375, 375, 375, 296, 255, 298, 375, 375, 375, - /* 1880 */ 375, 375, 375, 375, 375, 323, 375, 375, 375, 327, - /* 1890 */ 328, 329, 330, 331, 332, 375, 334, 375, 375, 255, - /* 1900 */ 375, 323, 375, 283, 375, 327, 328, 329, 330, 331, - /* 1910 */ 332, 291, 334, 375, 375, 375, 296, 375, 298, 375, - /* 1920 */ 375, 375, 375, 375, 375, 375, 375, 283, 375, 375, - /* 1930 */ 375, 375, 375, 375, 375, 291, 375, 375, 375, 375, - /* 1940 */ 296, 255, 298, 323, 375, 375, 375, 327, 328, 329, - /* 1950 */ 330, 331, 332, 375, 334, 375, 375, 375, 375, 375, - /* 1960 */ 375, 255, 375, 375, 375, 375, 375, 323, 375, 283, - /* 1970 */ 375, 327, 328, 329, 330, 331, 332, 291, 334, 375, - /* 1980 */ 375, 375, 296, 375, 298, 375, 375, 375, 375, 283, - /* 1990 */ 375, 375, 375, 375, 375, 375, 375, 291, 375, 375, - /* 2000 */ 375, 375, 296, 375, 298, 375, 375, 375, 375, 323, - /* 2010 */ 375, 375, 375, 327, 328, 329, 330, 331, 332, 375, - /* 2020 */ 334, 255, 375, 375, 375, 375, 375, 375, 375, 323, - /* 2030 */ 375, 375, 375, 327, 328, 329, 330, 331, 332, 375, - /* 2040 */ 334, 375, 375, 375, 375, 255, 375, 375, 375, 283, - /* 2050 */ 375, 375, 375, 375, 375, 375, 375, 291, 375, 375, - /* 2060 */ 375, 375, 296, 375, 298, 375, 375, 375, 375, 375, - /* 2070 */ 375, 375, 375, 283, 375, 375, 375, 375, 375, 375, - /* 2080 */ 375, 291, 375, 375, 375, 375, 296, 375, 298, 323, - /* 2090 */ 375, 375, 375, 327, 328, 329, 330, 331, 332, 375, - /* 2100 */ 334, 255, 375, 375, 375, 375, 375, 375, 375, 375, - /* 2110 */ 375, 375, 375, 323, 375, 375, 375, 327, 328, 329, - /* 2120 */ 330, 331, 332, 375, 334, 255, 375, 375, 375, 283, - /* 2130 */ 375, 375, 375, 375, 375, 375, 375, 291, 375, 375, - /* 2140 */ 375, 375, 296, 375, 298, 375, 375, 375, 375, 375, - /* 2150 */ 375, 375, 375, 283, 375, 375, 375, 375, 375, 375, - /* 2160 */ 375, 291, 375, 375, 375, 375, 296, 255, 298, 323, - /* 2170 */ 375, 375, 375, 327, 328, 329, 330, 331, 332, 375, - /* 2180 */ 334, 375, 375, 255, 375, 375, 375, 375, 375, 375, - /* 2190 */ 375, 375, 375, 323, 375, 283, 375, 327, 328, 329, - /* 2200 */ 330, 331, 332, 291, 334, 375, 375, 375, 296, 375, - /* 2210 */ 298, 283, 375, 375, 375, 375, 375, 375, 375, 291, - /* 2220 */ 375, 375, 375, 375, 296, 255, 298, 375, 375, 375, - /* 2230 */ 375, 375, 375, 375, 375, 323, 375, 375, 375, 327, - /* 2240 */ 328, 329, 330, 331, 332, 255, 334, 375, 375, 375, - /* 2250 */ 375, 323, 375, 283, 375, 327, 328, 329, 330, 331, - /* 2260 */ 332, 291, 334, 375, 375, 375, 296, 375, 298, 375, - /* 2270 */ 375, 375, 375, 283, 375, 375, 375, 375, 375, 375, - /* 2280 */ 375, 291, 375, 375, 375, 375, 296, 375, 298, 375, - /* 2290 */ 375, 375, 375, 323, 375, 375, 375, 327, 328, 329, - /* 2300 */ 330, 331, 332, 375, 334, 255, 375, 375, 375, 375, - /* 2310 */ 375, 375, 375, 323, 375, 375, 375, 327, 328, 329, - /* 2320 */ 330, 331, 332, 375, 334, 375, 375, 375, 375, 255, - /* 2330 */ 375, 375, 375, 283, 375, 375, 375, 375, 375, 375, - /* 2340 */ 375, 291, 375, 375, 375, 375, 296, 375, 298, 375, - /* 2350 */ 375, 375, 375, 375, 375, 375, 375, 283, 375, 375, - /* 2360 */ 375, 375, 375, 375, 375, 291, 375, 375, 375, 375, - /* 2370 */ 296, 375, 298, 323, 375, 375, 375, 327, 328, 329, - /* 2380 */ 330, 331, 332, 375, 334, 255, 375, 375, 375, 375, - /* 2390 */ 375, 375, 375, 375, 375, 375, 375, 323, 375, 375, - /* 2400 */ 375, 327, 328, 329, 330, 331, 332, 375, 334, 255, - /* 2410 */ 375, 375, 375, 283, 375, 375, 375, 375, 375, 375, - /* 2420 */ 375, 291, 375, 375, 375, 375, 296, 375, 298, 375, - /* 2430 */ 375, 375, 375, 375, 375, 375, 375, 283, 375, 375, - /* 2440 */ 375, 375, 375, 375, 375, 291, 375, 375, 375, 375, - /* 2450 */ 296, 255, 298, 323, 375, 375, 375, 327, 328, 329, - /* 2460 */ 330, 331, 332, 375, 334, 375, 375, 255, 375, 375, - /* 2470 */ 375, 375, 375, 375, 375, 375, 375, 323, 375, 283, - /* 2480 */ 375, 327, 328, 329, 330, 331, 332, 291, 334, 375, - /* 2490 */ 375, 375, 296, 375, 298, 283, 375, 375, 375, 375, - /* 2500 */ 375, 375, 375, 291, 375, 375, 375, 375, 296, 255, - /* 2510 */ 298, 375, 375, 375, 375, 375, 375, 375, 375, 323, - /* 2520 */ 375, 375, 375, 327, 328, 329, 330, 331, 332, 255, - /* 2530 */ 334, 375, 375, 375, 375, 323, 375, 283, 375, 327, - /* 2540 */ 328, 329, 330, 331, 332, 291, 334, 375, 375, 375, - /* 2550 */ 296, 375, 298, 375, 375, 375, 375, 283, 375, 375, - /* 2560 */ 375, 375, 375, 375, 375, 291, 375, 375, 375, 375, - /* 2570 */ 296, 375, 298, 375, 375, 375, 375, 323, 375, 375, - /* 2580 */ 375, 327, 328, 329, 330, 331, 332, 375, 334, 375, - /* 2590 */ 375, 375, 375, 375, 375, 375, 375, 323, 375, 375, - /* 2600 */ 375, 327, 328, 329, 330, 331, 332, 375, 334, + /* 0 */ 312, 353, 259, 312, 261, 262, 259, 294, 261, 262, + /* 10 */ 297, 298, 12, 13, 366, 283, 252, 267, 370, 265, + /* 20 */ 20, 0, 22, 0, 292, 12, 13, 14, 15, 16, + /* 30 */ 280, 4, 263, 33, 255, 35, 4, 338, 339, 289, + /* 40 */ 286, 353, 21, 274, 353, 24, 25, 26, 27, 28, + /* 50 */ 29, 30, 31, 32, 366, 263, 56, 366, 370, 59, + /* 60 */ 291, 370, 283, 20, 20, 65, 283, 254, 20, 256, + /* 70 */ 291, 44, 45, 275, 291, 296, 312, 298, 12, 13, + /* 80 */ 14, 283, 82, 291, 61, 62, 20, 283, 22, 66, + /* 90 */ 292, 312, 69, 70, 290, 58, 73, 74, 75, 33, + /* 100 */ 255, 35, 323, 299, 104, 255, 327, 328, 329, 330, + /* 110 */ 331, 332, 329, 334, 82, 82, 337, 353, 118, 119, + /* 120 */ 341, 342, 56, 331, 43, 59, 82, 275, 283, 268, + /* 130 */ 366, 65, 353, 272, 370, 283, 291, 345, 346, 347, + /* 140 */ 348, 296, 350, 298, 292, 366, 296, 21, 82, 370, + /* 150 */ 24, 25, 26, 27, 28, 29, 30, 31, 32, 260, + /* 160 */ 113, 114, 263, 163, 83, 165, 118, 119, 323, 312, + /* 170 */ 104, 0, 327, 328, 329, 330, 331, 332, 20, 334, + /* 180 */ 260, 298, 337, 263, 118, 119, 341, 342, 0, 306, + /* 190 */ 190, 191, 309, 193, 194, 195, 196, 197, 198, 199, + /* 200 */ 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, + /* 210 */ 353, 148, 24, 25, 26, 27, 28, 29, 30, 31, + /* 220 */ 32, 174, 222, 366, 177, 56, 308, 370, 310, 163, + /* 230 */ 267, 165, 61, 62, 63, 64, 20, 66, 67, 68, + /* 240 */ 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, + /* 250 */ 79, 82, 289, 84, 222, 222, 190, 191, 82, 193, + /* 260 */ 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, + /* 270 */ 204, 205, 206, 207, 208, 209, 12, 13, 43, 275, + /* 280 */ 61, 62, 263, 190, 20, 66, 22, 283, 69, 70, + /* 290 */ 227, 228, 73, 74, 75, 312, 292, 33, 82, 35, + /* 300 */ 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, + /* 310 */ 105, 20, 107, 108, 109, 110, 111, 112, 353, 300, + /* 320 */ 56, 285, 4, 59, 231, 232, 233, 234, 235, 65, + /* 330 */ 255, 366, 296, 12, 13, 370, 353, 19, 162, 263, + /* 340 */ 164, 20, 265, 22, 255, 283, 82, 114, 35, 366, + /* 350 */ 274, 33, 290, 370, 33, 278, 35, 281, 322, 323, + /* 360 */ 324, 299, 20, 286, 255, 47, 22, 291, 104, 51, + /* 370 */ 334, 296, 283, 263, 56, 353, 0, 56, 65, 35, + /* 380 */ 291, 20, 118, 119, 274, 296, 65, 298, 366, 8, + /* 390 */ 9, 222, 370, 12, 13, 14, 15, 16, 222, 81, + /* 400 */ 263, 291, 84, 82, 285, 296, 173, 174, 14, 65, + /* 410 */ 177, 274, 323, 158, 20, 296, 327, 328, 329, 330, + /* 420 */ 331, 332, 263, 334, 282, 104, 337, 163, 291, 165, + /* 430 */ 341, 342, 343, 274, 58, 180, 181, 295, 222, 118, + /* 440 */ 119, 322, 323, 113, 355, 297, 298, 20, 104, 22, + /* 450 */ 291, 58, 363, 334, 190, 191, 0, 193, 194, 195, + /* 460 */ 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, + /* 470 */ 206, 207, 208, 209, 8, 9, 241, 50, 12, 13, + /* 480 */ 14, 15, 16, 20, 163, 22, 165, 8, 9, 0, + /* 490 */ 2, 12, 13, 14, 15, 16, 8, 9, 35, 291, + /* 500 */ 12, 13, 14, 15, 16, 175, 176, 163, 59, 165, + /* 510 */ 302, 190, 191, 50, 193, 194, 195, 196, 197, 198, + /* 520 */ 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, + /* 530 */ 209, 12, 13, 14, 190, 191, 155, 269, 270, 20, + /* 540 */ 76, 22, 255, 222, 284, 263, 33, 58, 263, 83, + /* 550 */ 325, 14, 33, 263, 35, 37, 274, 20, 20, 274, + /* 560 */ 47, 298, 83, 263, 274, 52, 53, 54, 55, 56, + /* 570 */ 283, 281, 309, 291, 349, 56, 291, 145, 291, 263, + /* 580 */ 308, 291, 310, 296, 65, 298, 122, 123, 12, 13, + /* 590 */ 274, 291, 269, 270, 81, 43, 20, 84, 22, 312, + /* 600 */ 168, 82, 263, 85, 94, 87, 88, 291, 90, 33, + /* 610 */ 323, 35, 94, 274, 327, 328, 329, 330, 331, 332, + /* 620 */ 271, 334, 273, 104, 337, 244, 116, 56, 341, 342, + /* 630 */ 291, 331, 56, 263, 116, 83, 21, 118, 119, 190, + /* 640 */ 353, 65, 210, 4, 274, 255, 346, 347, 348, 34, + /* 650 */ 350, 36, 81, 366, 285, 84, 65, 370, 82, 146, + /* 660 */ 147, 291, 149, 1, 2, 296, 153, 8, 9, 44, + /* 670 */ 45, 12, 13, 14, 15, 16, 263, 39, 94, 263, + /* 680 */ 104, 14, 163, 3, 165, 172, 296, 20, 150, 93, + /* 690 */ 274, 322, 323, 293, 118, 119, 296, 113, 114, 115, + /* 700 */ 116, 117, 43, 334, 291, 255, 255, 291, 325, 190, + /* 710 */ 191, 20, 193, 194, 195, 196, 197, 198, 199, 200, + /* 720 */ 201, 202, 203, 204, 205, 206, 207, 208, 209, 8, + /* 730 */ 9, 194, 349, 12, 13, 14, 15, 16, 35, 163, + /* 740 */ 325, 165, 2, 20, 331, 83, 296, 296, 8, 9, + /* 750 */ 255, 65, 12, 13, 14, 15, 16, 255, 255, 346, + /* 760 */ 347, 348, 293, 350, 349, 296, 190, 191, 65, 193, + /* 770 */ 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, + /* 780 */ 204, 205, 206, 207, 208, 209, 12, 13, 18, 0, + /* 790 */ 20, 296, 19, 284, 20, 255, 22, 27, 296, 296, + /* 800 */ 30, 14, 15, 16, 83, 263, 33, 33, 255, 35, + /* 810 */ 276, 22, 255, 279, 220, 221, 274, 47, 0, 49, + /* 820 */ 47, 51, 56, 283, 263, 52, 53, 54, 55, 56, + /* 830 */ 56, 291, 263, 291, 255, 274, 296, 316, 298, 65, + /* 840 */ 8, 9, 283, 274, 12, 13, 14, 15, 16, 296, + /* 850 */ 84, 81, 291, 296, 81, 263, 82, 84, 299, 221, + /* 860 */ 291, 194, 223, 323, 42, 43, 274, 327, 328, 329, + /* 870 */ 330, 331, 332, 150, 334, 296, 0, 337, 104, 255, + /* 880 */ 43, 341, 342, 291, 255, 194, 255, 255, 255, 255, + /* 890 */ 117, 121, 118, 119, 124, 125, 126, 127, 128, 129, + /* 900 */ 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, + /* 910 */ 140, 141, 94, 143, 144, 255, 272, 150, 151, 239, + /* 920 */ 296, 18, 149, 47, 35, 296, 23, 296, 296, 296, + /* 930 */ 296, 113, 114, 115, 116, 117, 0, 163, 263, 165, + /* 940 */ 37, 38, 0, 170, 41, 172, 8, 9, 35, 274, + /* 950 */ 12, 13, 14, 15, 16, 284, 296, 284, 263, 86, + /* 960 */ 57, 284, 89, 43, 190, 191, 291, 193, 194, 195, + /* 970 */ 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, + /* 980 */ 206, 207, 208, 209, 0, 82, 291, 8, 9, 263, + /* 990 */ 48, 12, 13, 14, 15, 16, 86, 59, 86, 89, + /* 1000 */ 274, 89, 0, 83, 8, 9, 22, 312, 12, 13, + /* 1010 */ 14, 15, 16, 86, 284, 43, 89, 291, 1, 2, + /* 1020 */ 46, 83, 82, 120, 22, 284, 331, 256, 43, 91, + /* 1030 */ 94, 43, 92, 43, 373, 43, 255, 319, 59, 118, + /* 1040 */ 119, 346, 347, 348, 43, 350, 43, 364, 353, 113, + /* 1050 */ 114, 115, 116, 117, 165, 83, 82, 43, 155, 156, + /* 1060 */ 157, 366, 43, 160, 283, 370, 264, 43, 83, 166, + /* 1070 */ 91, 83, 291, 83, 360, 83, 283, 296, 165, 298, + /* 1080 */ 243, 264, 179, 145, 83, 182, 83, 184, 185, 186, + /* 1090 */ 187, 188, 189, 43, 43, 255, 262, 83, 295, 43, + /* 1100 */ 351, 326, 83, 344, 323, 367, 168, 83, 327, 328, + /* 1110 */ 329, 330, 331, 332, 333, 334, 335, 336, 367, 367, + /* 1120 */ 82, 224, 354, 283, 145, 222, 287, 321, 20, 263, + /* 1130 */ 47, 291, 320, 83, 83, 35, 296, 255, 298, 83, + /* 1140 */ 269, 161, 314, 263, 263, 42, 150, 168, 210, 211, + /* 1150 */ 212, 213, 214, 215, 216, 217, 218, 219, 303, 301, + /* 1160 */ 145, 301, 263, 323, 20, 283, 257, 327, 328, 329, + /* 1170 */ 330, 331, 332, 291, 334, 257, 20, 337, 296, 318, + /* 1180 */ 298, 341, 342, 343, 267, 298, 267, 20, 311, 210, + /* 1190 */ 211, 212, 213, 214, 215, 216, 217, 218, 219, 20, + /* 1200 */ 255, 313, 267, 363, 311, 323, 267, 20, 304, 327, + /* 1210 */ 328, 329, 330, 331, 332, 267, 334, 267, 263, 337, + /* 1220 */ 267, 257, 257, 263, 342, 296, 255, 283, 283, 283, + /* 1230 */ 283, 265, 283, 318, 283, 283, 291, 283, 171, 283, + /* 1240 */ 283, 296, 283, 298, 283, 317, 265, 265, 311, 263, + /* 1250 */ 263, 229, 147, 20, 283, 230, 298, 279, 296, 265, + /* 1260 */ 265, 359, 291, 296, 296, 296, 296, 296, 323, 298, + /* 1270 */ 307, 296, 327, 328, 329, 330, 331, 332, 236, 334, + /* 1280 */ 307, 305, 337, 359, 291, 362, 341, 342, 343, 291, + /* 1290 */ 154, 361, 359, 304, 323, 296, 296, 352, 327, 328, + /* 1300 */ 329, 330, 331, 332, 307, 334, 296, 296, 337, 326, + /* 1310 */ 238, 307, 341, 342, 343, 255, 12, 13, 237, 225, + /* 1320 */ 221, 291, 20, 352, 242, 240, 22, 321, 82, 245, + /* 1330 */ 287, 296, 325, 263, 273, 358, 263, 33, 258, 35, + /* 1340 */ 265, 36, 315, 283, 257, 277, 310, 0, 357, 253, + /* 1350 */ 173, 291, 266, 277, 277, 0, 296, 0, 298, 42, + /* 1360 */ 56, 356, 0, 340, 291, 73, 0, 35, 183, 65, + /* 1370 */ 35, 35, 35, 0, 183, 35, 35, 369, 369, 183, + /* 1380 */ 368, 255, 369, 323, 368, 312, 368, 327, 328, 329, + /* 1390 */ 330, 331, 332, 0, 334, 374, 183, 337, 0, 35, + /* 1400 */ 0, 341, 342, 343, 331, 22, 0, 35, 104, 283, + /* 1410 */ 0, 82, 352, 168, 167, 165, 163, 291, 0, 346, + /* 1420 */ 347, 348, 296, 350, 298, 159, 353, 0, 158, 0, + /* 1430 */ 0, 46, 0, 0, 0, 142, 0, 0, 312, 366, + /* 1440 */ 0, 0, 0, 370, 137, 255, 35, 0, 137, 323, + /* 1450 */ 0, 0, 0, 327, 328, 329, 330, 331, 332, 0, + /* 1460 */ 334, 0, 0, 0, 0, 0, 0, 163, 0, 165, + /* 1470 */ 0, 0, 0, 283, 0, 0, 0, 42, 0, 353, + /* 1480 */ 0, 291, 0, 0, 0, 0, 296, 0, 298, 22, + /* 1490 */ 0, 0, 366, 39, 190, 42, 370, 255, 43, 0, + /* 1500 */ 14, 0, 312, 46, 46, 201, 202, 203, 204, 205, + /* 1510 */ 206, 207, 14, 323, 0, 0, 39, 327, 328, 329, + /* 1520 */ 330, 331, 332, 154, 334, 283, 0, 0, 40, 0, + /* 1530 */ 0, 39, 0, 291, 0, 35, 47, 0, 296, 60, + /* 1540 */ 298, 39, 35, 353, 47, 39, 35, 39, 0, 0, + /* 1550 */ 255, 47, 35, 0, 0, 39, 366, 47, 0, 35, + /* 1560 */ 370, 22, 89, 0, 255, 323, 35, 0, 35, 327, + /* 1570 */ 328, 329, 330, 331, 332, 35, 334, 35, 283, 43, + /* 1580 */ 35, 43, 35, 288, 91, 35, 291, 22, 0, 0, + /* 1590 */ 22, 296, 283, 298, 22, 49, 0, 288, 0, 35, + /* 1600 */ 291, 35, 0, 22, 35, 296, 20, 298, 0, 35, + /* 1610 */ 150, 0, 169, 371, 372, 22, 255, 0, 323, 150, + /* 1620 */ 0, 0, 327, 328, 329, 330, 331, 332, 147, 334, + /* 1630 */ 0, 0, 323, 82, 178, 83, 327, 328, 329, 330, + /* 1640 */ 331, 332, 0, 334, 283, 0, 150, 92, 39, 46, + /* 1650 */ 43, 146, 291, 82, 226, 152, 22, 296, 82, 298, + /* 1660 */ 148, 82, 82, 2, 46, 83, 82, 82, 255, 43, + /* 1670 */ 83, 43, 43, 83, 83, 83, 82, 82, 46, 82, + /* 1680 */ 255, 82, 46, 83, 323, 35, 43, 83, 327, 328, + /* 1690 */ 329, 330, 331, 332, 255, 334, 283, 46, 46, 83, + /* 1700 */ 43, 35, 83, 35, 291, 35, 35, 35, 283, 296, + /* 1710 */ 43, 298, 190, 288, 22, 82, 291, 192, 83, 82, + /* 1720 */ 226, 296, 283, 298, 83, 46, 365, 83, 82, 82, + /* 1730 */ 291, 82, 46, 220, 35, 296, 323, 298, 82, 35, + /* 1740 */ 327, 328, 329, 330, 331, 332, 226, 334, 323, 35, + /* 1750 */ 255, 93, 327, 328, 329, 330, 331, 332, 83, 334, + /* 1760 */ 82, 35, 323, 83, 255, 82, 327, 328, 329, 330, + /* 1770 */ 331, 332, 83, 334, 255, 336, 82, 35, 283, 83, + /* 1780 */ 82, 35, 82, 288, 83, 372, 291, 94, 106, 22, + /* 1790 */ 106, 296, 283, 298, 106, 82, 106, 288, 82, 35, + /* 1800 */ 291, 82, 283, 43, 22, 296, 59, 298, 60, 35, + /* 1810 */ 291, 80, 43, 35, 65, 296, 255, 298, 323, 35, + /* 1820 */ 35, 35, 327, 328, 329, 330, 331, 332, 255, 334, + /* 1830 */ 35, 22, 323, 35, 35, 65, 327, 328, 329, 330, + /* 1840 */ 331, 332, 323, 334, 283, 35, 327, 328, 329, 330, + /* 1850 */ 331, 332, 291, 334, 35, 35, 283, 296, 35, 298, + /* 1860 */ 35, 35, 35, 0, 291, 35, 0, 39, 47, 296, + /* 1870 */ 255, 298, 35, 39, 0, 35, 0, 39, 47, 47, + /* 1880 */ 255, 35, 47, 39, 323, 0, 35, 35, 327, 328, + /* 1890 */ 329, 330, 331, 332, 255, 334, 323, 0, 283, 22, + /* 1900 */ 327, 328, 329, 330, 331, 332, 291, 334, 283, 21, + /* 1910 */ 21, 296, 22, 298, 22, 375, 291, 375, 20, 375, + /* 1920 */ 375, 296, 283, 298, 375, 375, 375, 375, 375, 375, + /* 1930 */ 291, 375, 375, 375, 375, 296, 255, 298, 323, 375, + /* 1940 */ 375, 375, 327, 328, 329, 330, 331, 332, 323, 334, + /* 1950 */ 255, 375, 327, 328, 329, 330, 331, 332, 375, 334, + /* 1960 */ 255, 375, 323, 375, 283, 375, 327, 328, 329, 330, + /* 1970 */ 331, 332, 291, 334, 375, 375, 375, 296, 283, 298, + /* 1980 */ 375, 375, 375, 375, 375, 375, 291, 375, 283, 375, + /* 1990 */ 375, 296, 375, 298, 375, 375, 291, 375, 375, 375, + /* 2000 */ 375, 296, 375, 298, 323, 375, 375, 375, 327, 328, + /* 2010 */ 329, 330, 331, 332, 375, 334, 375, 375, 323, 375, + /* 2020 */ 255, 375, 327, 328, 329, 330, 331, 332, 323, 334, + /* 2030 */ 255, 375, 327, 328, 329, 330, 331, 332, 375, 334, + /* 2040 */ 375, 375, 255, 375, 375, 375, 375, 375, 283, 375, + /* 2050 */ 375, 375, 375, 375, 375, 375, 291, 375, 283, 375, + /* 2060 */ 375, 296, 375, 298, 375, 375, 291, 375, 375, 375, + /* 2070 */ 283, 296, 375, 298, 375, 375, 375, 375, 291, 375, + /* 2080 */ 375, 375, 375, 296, 255, 298, 375, 375, 323, 375, + /* 2090 */ 375, 375, 327, 328, 329, 330, 331, 332, 323, 334, + /* 2100 */ 255, 375, 327, 328, 329, 330, 331, 332, 375, 334, + /* 2110 */ 323, 375, 283, 375, 327, 328, 329, 330, 331, 332, + /* 2120 */ 291, 334, 375, 375, 375, 296, 255, 298, 283, 375, + /* 2130 */ 375, 375, 375, 375, 375, 375, 291, 375, 375, 375, + /* 2140 */ 375, 296, 375, 298, 375, 375, 375, 375, 375, 375, + /* 2150 */ 255, 375, 323, 375, 283, 375, 327, 328, 329, 330, + /* 2160 */ 331, 332, 291, 334, 375, 375, 375, 296, 323, 298, + /* 2170 */ 375, 375, 327, 328, 329, 330, 331, 332, 283, 334, + /* 2180 */ 375, 375, 375, 375, 375, 375, 291, 375, 375, 375, + /* 2190 */ 375, 296, 255, 298, 323, 375, 375, 375, 327, 328, + /* 2200 */ 329, 330, 331, 332, 255, 334, 375, 375, 375, 375, + /* 2210 */ 375, 375, 375, 375, 375, 375, 255, 375, 323, 375, + /* 2220 */ 283, 375, 327, 328, 329, 330, 331, 332, 291, 334, + /* 2230 */ 375, 375, 283, 296, 375, 298, 375, 375, 375, 375, + /* 2240 */ 291, 375, 375, 375, 283, 296, 375, 298, 375, 375, + /* 2250 */ 375, 375, 291, 375, 375, 375, 375, 296, 375, 298, + /* 2260 */ 323, 375, 375, 375, 327, 328, 329, 330, 331, 332, + /* 2270 */ 375, 334, 323, 375, 255, 375, 327, 328, 329, 330, + /* 2280 */ 331, 332, 375, 334, 323, 375, 375, 375, 327, 328, + /* 2290 */ 329, 330, 331, 332, 375, 334, 375, 375, 375, 375, + /* 2300 */ 375, 375, 283, 375, 375, 375, 375, 375, 375, 375, + /* 2310 */ 291, 375, 375, 375, 375, 296, 375, 298, 375, 375, + /* 2320 */ 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, + /* 2330 */ 375, 375, 375, 375, 375, 375, 375, 375, 375, 375, + /* 2340 */ 375, 375, 323, 375, 375, 375, 327, 328, 329, 330, + /* 2350 */ 331, 332, 375, 334, }; -#define YY_SHIFT_COUNT (652) +#define YY_SHIFT_COUNT (657) #define YY_SHIFT_MIN (0) -#define YY_SHIFT_MAX (1814) +#define YY_SHIFT_MAX (1898) static const unsigned short int yy_shift_ofst[] = { - /* 0 */ 891, 0, 0, 57, 57, 254, 254, 254, 311, 311, - /* 10 */ 254, 254, 508, 565, 762, 565, 565, 565, 565, 565, - /* 20 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 30 */ 565, 565, 565, 565, 565, 565, 565, 565, 565, 565, - /* 40 */ 565, 565, 565, 64, 64, 29, 29, 29, 1187, 1187, - /* 50 */ 1187, 54, 95, 247, 40, 40, 165, 165, 317, 106, - /* 60 */ 247, 247, 40, 40, 40, 40, 40, 40, 40, 40, - /* 70 */ 6, 40, 40, 40, 48, 127, 40, 40, 127, 152, - /* 80 */ 40, 127, 127, 127, 40, 122, 758, 223, 477, 477, - /* 90 */ 13, 409, 839, 839, 839, 839, 839, 839, 839, 839, - /* 100 */ 839, 839, 839, 839, 839, 839, 839, 839, 839, 839, - /* 110 */ 839, 196, 106, 325, 325, 75, 80, 365, 633, 633, - /* 120 */ 633, 80, 209, 48, 273, 273, 127, 127, 277, 277, - /* 130 */ 321, 380, 252, 252, 252, 252, 252, 252, 252, 131, - /* 140 */ 717, 533, 374, 233, 138, 67, 143, 124, 199, 476, - /* 150 */ 596, 1, 776, 603, 570, 603, 783, 581, 581, 581, - /* 160 */ 619, 786, 862, 1067, 1044, 1068, 945, 1067, 1067, 1073, - /* 170 */ 973, 973, 1067, 1103, 1103, 1109, 6, 48, 6, 1114, - /* 180 */ 1118, 6, 1114, 6, 1125, 6, 6, 1067, 6, 1103, - /* 190 */ 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, - /* 200 */ 127, 1067, 1103, 277, 1109, 122, 992, 48, 122, 1067, - /* 210 */ 1067, 1114, 122, 982, 277, 277, 277, 277, 982, 277, - /* 220 */ 1066, 209, 1125, 122, 321, 122, 209, 1222, 277, 1018, - /* 230 */ 982, 277, 277, 1018, 982, 277, 277, 127, 1027, 1102, - /* 240 */ 1018, 1026, 1028, 1041, 862, 1046, 209, 1248, 1029, 1030, - /* 250 */ 1034, 1029, 1030, 1029, 1030, 1189, 1197, 277, 380, 1067, - /* 260 */ 122, 1268, 1103, 2609, 2609, 2609, 2609, 2609, 2609, 2609, - /* 270 */ 334, 502, 268, 520, 412, 623, 648, 903, 981, 838, - /* 280 */ 710, 431, 855, 855, 855, 855, 855, 855, 855, 855, - /* 290 */ 920, 698, 14, 14, 164, 439, 25, 147, 699, 564, - /* 300 */ 486, 656, 364, 364, 364, 364, 756, 867, 769, 835, - /* 310 */ 848, 849, 931, 984, 986, 443, 679, 893, 899, 932, - /* 320 */ 949, 955, 956, 781, 842, 957, 906, 804, 638, 736, - /* 330 */ 960, 880, 962, 895, 966, 970, 998, 1001, 1009, 1019, - /* 340 */ 972, 1021, 1024, 1324, 1331, 1290, 1333, 1262, 1336, 1302, - /* 350 */ 1155, 1307, 1318, 1321, 1174, 1364, 1334, 1343, 1185, 1379, - /* 360 */ 1198, 1380, 1348, 1385, 1372, 1386, 1363, 1399, 1320, 1232, - /* 370 */ 1237, 1240, 1243, 1407, 1411, 1253, 1256, 1415, 1416, 1371, - /* 380 */ 1418, 1419, 1420, 1279, 1422, 1423, 1425, 1426, 1427, 1291, - /* 390 */ 1394, 1430, 1294, 1432, 1433, 1434, 1436, 1437, 1438, 1447, - /* 400 */ 1448, 1450, 1451, 1455, 1456, 1457, 1458, 1417, 1461, 1462, - /* 410 */ 1463, 1464, 1466, 1468, 1449, 1469, 1470, 1472, 1482, 1483, - /* 420 */ 1484, 1435, 1439, 1431, 1465, 1429, 1471, 1441, 1476, 1440, - /* 430 */ 1452, 1489, 1490, 1502, 1454, 1340, 1495, 1504, 1507, 1467, - /* 440 */ 1508, 1509, 1477, 1481, 1475, 1515, 1494, 1485, 1491, 1516, - /* 450 */ 1496, 1487, 1497, 1535, 1503, 1492, 1498, 1540, 1542, 1543, - /* 460 */ 1544, 1459, 1460, 1510, 1525, 1551, 1517, 1518, 1519, 1520, - /* 470 */ 1513, 1514, 1523, 1524, 1527, 1560, 1541, 1564, 1545, 1521, - /* 480 */ 1565, 1546, 1531, 1569, 1536, 1572, 1539, 1575, 1554, 1566, - /* 490 */ 1585, 1442, 1552, 1588, 1421, 1571, 1444, 1453, 1591, 1595, - /* 500 */ 1446, 1473, 1598, 1599, 1601, 1526, 1522, 1428, 1603, 1528, - /* 510 */ 1479, 1530, 1607, 1570, 1486, 1532, 1538, 1567, 1574, 1390, - /* 520 */ 1549, 1537, 1557, 1558, 1559, 1563, 1596, 1580, 1582, 1568, - /* 530 */ 1579, 1581, 1583, 1604, 1600, 1606, 1586, 1610, 1403, 1584, - /* 540 */ 1587, 1608, 1478, 1626, 1625, 1627, 1592, 1631, 1424, 1593, - /* 550 */ 1643, 1646, 1647, 1648, 1649, 1651, 1593, 1677, 1499, 1650, - /* 560 */ 1609, 1611, 1613, 1615, 1614, 1616, 1655, 1621, 1622, 1656, - /* 570 */ 1667, 1533, 1624, 1597, 1628, 1673, 1674, 1632, 1630, 1675, - /* 580 */ 1633, 1639, 1690, 1645, 1652, 1691, 1660, 1661, 1693, 1663, - /* 590 */ 1640, 1641, 1653, 1654, 1708, 1637, 1668, 1669, 1698, 1670, - /* 600 */ 1710, 1710, 1712, 1689, 1695, 1720, 1696, 1676, 1715, 1728, - /* 610 */ 1729, 1731, 1732, 1733, 1747, 1736, 1738, 1709, 1513, 1740, - /* 620 */ 1514, 1742, 1743, 1744, 1745, 1748, 1750, 1782, 1751, 1741, - /* 630 */ 1753, 1787, 1755, 1746, 1756, 1794, 1761, 1752, 1759, 1800, - /* 640 */ 1772, 1762, 1771, 1811, 1777, 1778, 1814, 1793, 1797, 1804, - /* 650 */ 1806, 1798, 1810, + /* 0 */ 903, 0, 0, 66, 66, 264, 264, 264, 321, 321, + /* 10 */ 264, 264, 519, 576, 774, 576, 576, 576, 576, 576, + /* 20 */ 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, + /* 30 */ 576, 576, 576, 576, 576, 576, 576, 576, 576, 576, + /* 40 */ 576, 576, 576, 216, 216, 44, 44, 44, 1304, 1304, + /* 50 */ 1304, 176, 169, 33, 33, 43, 43, 27, 27, 32, + /* 60 */ 48, 33, 33, 43, 43, 43, 43, 43, 43, 43, + /* 70 */ 43, 43, 37, 43, 43, 43, 158, 291, 43, 43, + /* 80 */ 291, 342, 43, 291, 291, 291, 43, 393, 770, 938, + /* 90 */ 979, 979, 126, 219, 344, 344, 344, 344, 344, 344, + /* 100 */ 344, 344, 344, 344, 344, 344, 344, 344, 344, 344, + /* 110 */ 344, 344, 344, 518, 48, 394, 394, 376, 313, 489, + /* 120 */ 538, 538, 538, 313, 361, 158, 456, 456, 291, 291, + /* 130 */ 591, 591, 596, 686, 205, 205, 205, 205, 205, 205, + /* 140 */ 205, 773, 21, 23, 381, 93, 463, 233, 63, 537, + /* 150 */ 667, 427, 625, 510, 723, 594, 638, 594, 822, 680, + /* 160 */ 680, 680, 639, 691, 1038, 897, 1108, 1083, 1100, 980, + /* 170 */ 1108, 1108, 1103, 1015, 1015, 1108, 1144, 1144, 1156, 37, + /* 180 */ 158, 37, 1167, 1179, 37, 1167, 37, 1187, 37, 37, + /* 190 */ 1108, 37, 1144, 291, 291, 291, 291, 291, 291, 291, + /* 200 */ 291, 291, 291, 291, 1108, 1144, 591, 1156, 393, 1067, + /* 210 */ 158, 393, 1108, 1108, 1167, 393, 1022, 591, 591, 591, + /* 220 */ 591, 1022, 591, 1105, 361, 1187, 393, 596, 393, 361, + /* 230 */ 1233, 591, 1025, 1022, 591, 591, 1025, 1022, 591, 591, + /* 240 */ 291, 1042, 1136, 1025, 1072, 1081, 1094, 897, 1099, 361, + /* 250 */ 1302, 1082, 1085, 1084, 1082, 1085, 1082, 1085, 1246, 1038, + /* 260 */ 591, 686, 1108, 393, 1305, 1144, 2354, 2354, 2354, 2354, + /* 270 */ 2354, 2354, 2354, 171, 513, 188, 318, 466, 659, 479, + /* 280 */ 488, 740, 996, 721, 818, 832, 832, 832, 832, 832, + /* 290 */ 832, 832, 832, 936, 584, 13, 13, 47, 255, 571, + /* 300 */ 464, 615, 330, 662, 432, 787, 787, 787, 787, 876, + /* 310 */ 81, 873, 910, 912, 927, 789, 984, 1002, 766, 767, + /* 320 */ 552, 920, 972, 985, 988, 990, 889, 913, 992, 1017, + /* 330 */ 921, 235, 837, 1001, 449, 1003, 974, 1014, 1019, 1024, + /* 340 */ 1050, 1051, 1056, 940, 703, 942, 1347, 1177, 1355, 1357, + /* 350 */ 1317, 1362, 1292, 1366, 1332, 1185, 1335, 1336, 1337, 1191, + /* 360 */ 1373, 1340, 1341, 1196, 1393, 1213, 1398, 1364, 1400, 1383, + /* 370 */ 1406, 1372, 1410, 1329, 1245, 1247, 1250, 1253, 1418, 1427, + /* 380 */ 1266, 1270, 1429, 1430, 1385, 1432, 1433, 1434, 1293, 1436, + /* 390 */ 1437, 1440, 1441, 1442, 1307, 1411, 1447, 1311, 1450, 1451, + /* 400 */ 1452, 1459, 1461, 1462, 1463, 1464, 1465, 1466, 1468, 1470, + /* 410 */ 1471, 1472, 1435, 1474, 1475, 1476, 1478, 1480, 1482, 1467, + /* 420 */ 1483, 1484, 1485, 1487, 1490, 1491, 1453, 1454, 1455, 1486, + /* 430 */ 1457, 1498, 1458, 1499, 1488, 1477, 1501, 1514, 1515, 1492, + /* 440 */ 1369, 1526, 1527, 1529, 1479, 1530, 1532, 1500, 1489, 1502, + /* 450 */ 1534, 1507, 1497, 1506, 1537, 1511, 1504, 1508, 1548, 1517, + /* 460 */ 1510, 1516, 1549, 1553, 1554, 1558, 1493, 1473, 1524, 1539, + /* 470 */ 1563, 1531, 1533, 1540, 1542, 1536, 1538, 1545, 1547, 1550, + /* 480 */ 1567, 1565, 1588, 1568, 1546, 1589, 1572, 1564, 1596, 1566, + /* 490 */ 1598, 1569, 1602, 1581, 1586, 1608, 1460, 1574, 1611, 1443, + /* 500 */ 1593, 1469, 1481, 1617, 1620, 1496, 1503, 1621, 1630, 1631, + /* 510 */ 1551, 1552, 1456, 1642, 1571, 1512, 1576, 1645, 1609, 1505, + /* 520 */ 1579, 1555, 1603, 1607, 1428, 1580, 1582, 1584, 1587, 1590, + /* 530 */ 1585, 1634, 1626, 1591, 1594, 1595, 1597, 1592, 1628, 1618, + /* 540 */ 1632, 1599, 1629, 1494, 1600, 1604, 1636, 1513, 1643, 1651, + /* 550 */ 1652, 1616, 1657, 1520, 1619, 1650, 1666, 1668, 1670, 1671, + /* 560 */ 1672, 1619, 1661, 1522, 1667, 1633, 1635, 1637, 1641, 1646, + /* 570 */ 1644, 1679, 1647, 1649, 1686, 1692, 1525, 1656, 1658, 1675, + /* 580 */ 1699, 1704, 1678, 1680, 1714, 1683, 1689, 1726, 1694, 1696, + /* 590 */ 1742, 1698, 1701, 1746, 1700, 1682, 1684, 1688, 1690, 1767, + /* 600 */ 1693, 1713, 1716, 1764, 1719, 1760, 1760, 1782, 1748, 1747, + /* 610 */ 1774, 1749, 1731, 1769, 1778, 1784, 1785, 1786, 1795, 1809, + /* 620 */ 1798, 1799, 1770, 1536, 1810, 1538, 1819, 1820, 1823, 1825, + /* 630 */ 1826, 1827, 1863, 1830, 1821, 1828, 1866, 1837, 1831, 1834, + /* 640 */ 1874, 1840, 1832, 1838, 1876, 1846, 1835, 1844, 1885, 1851, + /* 650 */ 1852, 1897, 1877, 1888, 1890, 1892, 1889, 1898, }; -#define YY_REDUCE_COUNT (269) -#define YY_REDUCE_MIN (-349) -#define YY_REDUCE_MAX (2274) +#define YY_REDUCE_COUNT (272) +#define YY_REDUCE_MIN (-352) +#define YY_REDUCE_MAX (2019) static const short yy_reduce_ofst[] = { - /* 0 */ -246, -200, 689, 767, 828, 845, 898, 953, 1031, 1043, - /* 10 */ 1112, 1169, 1190, 1250, 1306, 1328, 1389, 1017, 1409, 1474, - /* 20 */ 1493, 1562, 1578, 1620, 1644, 1686, 1706, 1766, 1790, 1846, - /* 30 */ 1870, 1912, 1928, 1970, 1990, 2050, 2074, 2130, 2154, 2196, - /* 40 */ 2212, 2254, 2274, -245, 490, -191, -120, -20, -271, -249, - /* 50 */ -235, -218, 222, 258, 41, 44, -259, -254, -349, -240, - /* 60 */ -277, -256, 46, 103, 206, 288, 298, 300, 319, 342, - /* 70 */ -257, 351, 355, 391, -64, -101, 405, 517, -11, -267, - /* 80 */ 526, 248, 360, 267, 557, 216, -252, -171, -171, -171, - /* 90 */ -176, -253, 47, 85, 120, 379, 389, 403, 425, 481, - /* 100 */ 532, 539, 549, 577, 579, 604, 607, 617, 651, 675, - /* 110 */ 678, -133, 87, -46, 45, -258, 203, 295, 93, 327, - /* 120 */ 402, 296, 376, 501, 305, 362, 550, 297, 78, 436, - /* 130 */ 458, 479, -283, 193, 253, 514, 573, 592, 661, 236, - /* 140 */ 530, 668, 576, 485, 727, 662, 650, 742, 742, 763, - /* 150 */ 798, 766, 740, 716, 716, 716, 724, 704, 707, 713, - /* 160 */ 728, 742, 768, 825, 773, 836, 793, 850, 851, 813, - /* 170 */ 816, 819, 858, 868, 870, 814, 864, 837, 866, 826, - /* 180 */ 827, 872, 831, 877, 843, 879, 881, 886, 883, 897, - /* 190 */ 869, 878, 884, 900, 901, 902, 907, 909, 910, 912, - /* 200 */ 915, 917, 921, 905, 846, 937, 887, 908, 938, 942, - /* 210 */ 944, 904, 946, 859, 916, 918, 922, 923, 924, 927, - /* 220 */ 911, 926, 929, 959, 958, 969, 947, 919, 950, 889, - /* 230 */ 948, 961, 963, 894, 951, 964, 965, 742, 892, 913, - /* 240 */ 914, 930, 935, 933, 954, 716, 976, 952, 928, 925, - /* 250 */ 936, 934, 939, 940, 943, 977, 1012, 1005, 1033, 1039, - /* 260 */ 1047, 1058, 1061, 1004, 1010, 1048, 1051, 1053, 1055, 1070, + /* 0 */ -236, -221, 287, 89, 840, 945, 971, 1060, 1126, 1190, + /* 10 */ -155, 540, 781, 1242, 882, 1295, 1309, 1361, 1413, 1425, + /* 20 */ 1439, 1495, 1509, 1519, 1561, 1573, 1615, 1625, 1639, 1681, + /* 30 */ 1695, 1705, 1765, 1775, 1787, 1829, 1845, 1871, 1895, 1937, + /* 40 */ 1949, 1961, 2019, 695, 1073, -208, 300, 413, 36, 119, + /* 50 */ 369, -312, -309, -143, -17, 76, 290, -257, -253, -352, + /* 60 */ -287, -35, 22, -231, 110, 137, 159, 282, 285, 316, + /* 70 */ 339, 370, -250, 416, 542, 561, -117, -202, 569, 592, + /* 80 */ -196, -217, 675, -148, 62, 4, 726, 77, 19, -301, + /* 90 */ -301, -301, -187, -139, -150, 75, 109, 390, 450, 451, + /* 100 */ 495, 502, 503, 553, 557, 579, 624, 629, 631, 632, + /* 110 */ 633, 634, 660, 142, 148, -101, -80, -37, 268, -246, + /* 120 */ 225, 383, 415, 323, 208, 263, -82, 272, -268, 559, + /* 130 */ 400, 469, 534, 349, 260, 509, 671, 673, 677, 730, + /* 140 */ 741, 521, 771, 644, 661, 683, 802, 718, 714, 793, + /* 150 */ 793, 817, 834, 803, 775, 749, 749, 749, 759, 738, + /* 160 */ 751, 752, 768, 793, 839, 806, 866, 812, 871, 828, + /* 170 */ 880, 881, 855, 858, 860, 899, 909, 918, 861, 917, + /* 180 */ 887, 919, 877, 888, 935, 893, 939, 904, 948, 950, + /* 190 */ 955, 953, 964, 944, 946, 947, 949, 951, 952, 954, + /* 200 */ 956, 957, 959, 961, 960, 965, 929, 915, 966, 928, + /* 210 */ 958, 981, 986, 987, 937, 982, 963, 962, 967, 968, + /* 220 */ 969, 973, 970, 976, 993, 989, 994, 978, 995, 998, + /* 230 */ 983, 975, 902, 997, 999, 1000, 924, 1004, 1010, 1011, + /* 240 */ 793, 923, 930, 933, 977, 991, 1005, 1006, 749, 1030, + /* 250 */ 1007, 1008, 1012, 1021, 1009, 1016, 1013, 1018, 1023, 1043, + /* 260 */ 1035, 1061, 1070, 1075, 1080, 1087, 1027, 1036, 1068, 1076, + /* 270 */ 1077, 1086, 1096, }; static const YYACTIONTYPE yy_default[] = { - /* 0 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 10 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 20 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 30 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 40 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 50 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 60 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 70 */ 1509, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 80 */ 1437, 1437, 1437, 1437, 1437, 1507, 1660, 1437, 1836, 1437, - /* 90 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 100 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 110 */ 1437, 1437, 1437, 1437, 1437, 1509, 1437, 1507, 1848, 1848, - /* 120 */ 1848, 1437, 1437, 1437, 1704, 1704, 1437, 1437, 1437, 1437, - /* 130 */ 1603, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1696, - /* 140 */ 1437, 1437, 1917, 1437, 1437, 1702, 1871, 1437, 1437, 1437, - /* 150 */ 1437, 1556, 1863, 1840, 1854, 1841, 1838, 1902, 1902, 1902, - /* 160 */ 1857, 1437, 1867, 1437, 1437, 1437, 1688, 1437, 1437, 1665, - /* 170 */ 1662, 1662, 1437, 1437, 1437, 1437, 1509, 1437, 1509, 1437, - /* 180 */ 1437, 1509, 1437, 1509, 1437, 1509, 1509, 1437, 1509, 1437, - /* 190 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 200 */ 1437, 1437, 1437, 1437, 1437, 1507, 1698, 1437, 1507, 1437, - /* 210 */ 1437, 1437, 1507, 1876, 1437, 1437, 1437, 1437, 1876, 1437, - /* 220 */ 1437, 1437, 1437, 1507, 1437, 1507, 1437, 1437, 1437, 1878, - /* 230 */ 1876, 1437, 1437, 1878, 1876, 1437, 1437, 1437, 1890, 1886, - /* 240 */ 1878, 1894, 1892, 1869, 1867, 1854, 1437, 1437, 1908, 1904, - /* 250 */ 1920, 1908, 1904, 1908, 1904, 1437, 1572, 1437, 1437, 1437, - /* 260 */ 1507, 1469, 1437, 1690, 1704, 1606, 1606, 1606, 1510, 1442, - /* 270 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 280 */ 1437, 1437, 1774, 1889, 1888, 1812, 1811, 1810, 1808, 1773, - /* 290 */ 1437, 1568, 1772, 1771, 1437, 1437, 1437, 1437, 1437, 1437, - /* 300 */ 1437, 1437, 1765, 1766, 1764, 1763, 1437, 1437, 1437, 1437, - /* 310 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 320 */ 1437, 1437, 1437, 1437, 1437, 1437, 1837, 1437, 1905, 1909, - /* 330 */ 1437, 1437, 1437, 1748, 1437, 1437, 1437, 1437, 1437, 1437, - /* 340 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 350 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 360 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 370 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 380 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 390 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 400 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 410 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 420 */ 1437, 1437, 1437, 1474, 1437, 1437, 1437, 1437, 1437, 1437, - /* 430 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 440 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 450 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 460 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 470 */ 1537, 1536, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 480 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 490 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 500 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1708, 1437, - /* 510 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1870, 1437, - /* 520 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 530 */ 1437, 1437, 1437, 1437, 1437, 1748, 1437, 1887, 1437, 1847, - /* 540 */ 1843, 1437, 1437, 1839, 1747, 1437, 1437, 1903, 1437, 1437, - /* 550 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1832, 1437, 1805, - /* 560 */ 1790, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 570 */ 1437, 1759, 1437, 1437, 1437, 1437, 1437, 1600, 1437, 1437, - /* 580 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 590 */ 1585, 1583, 1582, 1581, 1437, 1578, 1437, 1437, 1437, 1437, - /* 600 */ 1609, 1608, 1437, 1437, 1437, 1437, 1437, 1437, 1529, 1437, - /* 610 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1520, 1437, - /* 620 */ 1519, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 630 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 640 */ 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, 1437, - /* 650 */ 1437, 1437, 1437, + /* 0 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 10 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 20 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 30 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 40 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 50 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 60 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 70 */ 1443, 1443, 1515, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 80 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1513, 1666, 1443, + /* 90 */ 1843, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 100 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 110 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1515, 1443, 1513, + /* 120 */ 1855, 1855, 1855, 1443, 1443, 1443, 1710, 1710, 1443, 1443, + /* 130 */ 1443, 1443, 1609, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 140 */ 1443, 1702, 1443, 1443, 1924, 1443, 1443, 1708, 1878, 1443, + /* 150 */ 1443, 1443, 1443, 1562, 1870, 1847, 1861, 1848, 1845, 1909, + /* 160 */ 1909, 1909, 1864, 1443, 1578, 1874, 1443, 1443, 1443, 1694, + /* 170 */ 1443, 1443, 1671, 1668, 1668, 1443, 1443, 1443, 1443, 1515, + /* 180 */ 1443, 1515, 1443, 1443, 1515, 1443, 1515, 1443, 1515, 1515, + /* 190 */ 1443, 1515, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 200 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1513, 1704, + /* 210 */ 1443, 1513, 1443, 1443, 1443, 1513, 1883, 1443, 1443, 1443, + /* 220 */ 1443, 1883, 1443, 1443, 1443, 1443, 1513, 1443, 1513, 1443, + /* 230 */ 1443, 1443, 1885, 1883, 1443, 1443, 1885, 1883, 1443, 1443, + /* 240 */ 1443, 1897, 1893, 1885, 1901, 1899, 1876, 1874, 1861, 1443, + /* 250 */ 1443, 1915, 1911, 1927, 1915, 1911, 1915, 1911, 1443, 1578, + /* 260 */ 1443, 1443, 1443, 1513, 1475, 1443, 1696, 1710, 1612, 1612, + /* 270 */ 1612, 1516, 1448, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 280 */ 1443, 1443, 1443, 1443, 1443, 1781, 1896, 1895, 1819, 1818, + /* 290 */ 1817, 1815, 1780, 1443, 1574, 1779, 1778, 1443, 1443, 1443, + /* 300 */ 1443, 1443, 1443, 1443, 1443, 1772, 1773, 1771, 1770, 1443, + /* 310 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 320 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1844, + /* 330 */ 1443, 1912, 1916, 1443, 1443, 1443, 1755, 1443, 1443, 1443, + /* 340 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 350 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 360 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 370 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 380 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 390 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 400 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 410 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 420 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1480, 1443, + /* 430 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 440 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 450 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 460 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 470 */ 1443, 1443, 1443, 1443, 1443, 1543, 1542, 1443, 1443, 1443, + /* 480 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 490 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 500 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 510 */ 1443, 1443, 1443, 1714, 1443, 1443, 1443, 1443, 1443, 1443, + /* 520 */ 1443, 1443, 1443, 1877, 1443, 1443, 1443, 1443, 1443, 1443, + /* 530 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 540 */ 1755, 1443, 1894, 1443, 1854, 1850, 1443, 1443, 1846, 1754, + /* 550 */ 1443, 1443, 1910, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 560 */ 1443, 1443, 1839, 1443, 1812, 1797, 1443, 1443, 1443, 1443, + /* 570 */ 1443, 1443, 1443, 1443, 1443, 1443, 1766, 1443, 1443, 1443, + /* 580 */ 1443, 1443, 1606, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 590 */ 1443, 1443, 1443, 1443, 1443, 1591, 1589, 1588, 1587, 1443, + /* 600 */ 1584, 1443, 1443, 1443, 1443, 1615, 1614, 1443, 1443, 1443, + /* 610 */ 1443, 1443, 1443, 1535, 1443, 1443, 1443, 1443, 1443, 1443, + /* 620 */ 1443, 1443, 1443, 1526, 1443, 1525, 1443, 1443, 1443, 1443, + /* 630 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 640 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, + /* 650 */ 1443, 1443, 1443, 1443, 1443, 1443, 1443, 1443, }; /********** End of lemon-generated parsing tables *****************************/ @@ -1121,6 +1072,7 @@ static const YYCODETYPE yyFallback[] = { 0, /* SPLIT => nothing */ 0, /* SYNCDB => nothing */ 0, /* DELETE => nothing */ + 0, /* INSERT => nothing */ 0, /* NULL => nothing */ 0, /* NK_QUESTION => nothing */ 0, /* NK_ARROW => nothing */ @@ -1178,12 +1130,11 @@ static const YYCODETYPE yyFallback[] = { 0, /* ASC => nothing */ 0, /* NULLS => nothing */ 0, /* ID => nothing */ - 245, /* NK_BITNOT => ID */ - 245, /* INSERT => ID */ - 245, /* VALUES => ID */ - 245, /* IMPORT => ID */ - 245, /* NK_SEMI => ID */ - 245, /* FILE => ID */ + 246, /* NK_BITNOT => ID */ + 246, /* VALUES => ID */ + 246, /* IMPORT => ID */ + 246, /* NK_SEMI => ID */ + 246, /* FILE => ID */ }; #endif /* YYFALLBACK */ @@ -1460,65 +1411,65 @@ static const char *const yyTokenName[] = { /* 186 */ "SPLIT", /* 187 */ "SYNCDB", /* 188 */ "DELETE", - /* 189 */ "NULL", - /* 190 */ "NK_QUESTION", - /* 191 */ "NK_ARROW", - /* 192 */ "ROWTS", - /* 193 */ "TBNAME", - /* 194 */ "QSTARTTS", - /* 195 */ "QENDTS", - /* 196 */ "WSTARTTS", - /* 197 */ "WENDTS", - /* 198 */ "WDURATION", - /* 199 */ "CAST", - /* 200 */ "NOW", - /* 201 */ "TODAY", - /* 202 */ "TIMEZONE", - /* 203 */ "CLIENT_VERSION", - /* 204 */ "SERVER_VERSION", - /* 205 */ "SERVER_STATUS", - /* 206 */ "CURRENT_USER", - /* 207 */ "COUNT", - /* 208 */ "LAST_ROW", - /* 209 */ "BETWEEN", - /* 210 */ "IS", - /* 211 */ "NK_LT", - /* 212 */ "NK_GT", - /* 213 */ "NK_LE", - /* 214 */ "NK_GE", - /* 215 */ "NK_NE", - /* 216 */ "MATCH", - /* 217 */ "NMATCH", - /* 218 */ "CONTAINS", - /* 219 */ "JOIN", - /* 220 */ "INNER", - /* 221 */ "SELECT", - /* 222 */ "DISTINCT", - /* 223 */ "WHERE", - /* 224 */ "PARTITION", - /* 225 */ "BY", - /* 226 */ "SESSION", - /* 227 */ "STATE_WINDOW", - /* 228 */ "SLIDING", - /* 229 */ "FILL", - /* 230 */ "VALUE", - /* 231 */ "NONE", - /* 232 */ "PREV", - /* 233 */ "LINEAR", - /* 234 */ "NEXT", - /* 235 */ "HAVING", - /* 236 */ "RANGE", - /* 237 */ "EVERY", - /* 238 */ "ORDER", - /* 239 */ "SLIMIT", - /* 240 */ "SOFFSET", - /* 241 */ "LIMIT", - /* 242 */ "OFFSET", - /* 243 */ "ASC", - /* 244 */ "NULLS", - /* 245 */ "ID", - /* 246 */ "NK_BITNOT", - /* 247 */ "INSERT", + /* 189 */ "INSERT", + /* 190 */ "NULL", + /* 191 */ "NK_QUESTION", + /* 192 */ "NK_ARROW", + /* 193 */ "ROWTS", + /* 194 */ "TBNAME", + /* 195 */ "QSTARTTS", + /* 196 */ "QENDTS", + /* 197 */ "WSTARTTS", + /* 198 */ "WENDTS", + /* 199 */ "WDURATION", + /* 200 */ "CAST", + /* 201 */ "NOW", + /* 202 */ "TODAY", + /* 203 */ "TIMEZONE", + /* 204 */ "CLIENT_VERSION", + /* 205 */ "SERVER_VERSION", + /* 206 */ "SERVER_STATUS", + /* 207 */ "CURRENT_USER", + /* 208 */ "COUNT", + /* 209 */ "LAST_ROW", + /* 210 */ "BETWEEN", + /* 211 */ "IS", + /* 212 */ "NK_LT", + /* 213 */ "NK_GT", + /* 214 */ "NK_LE", + /* 215 */ "NK_GE", + /* 216 */ "NK_NE", + /* 217 */ "MATCH", + /* 218 */ "NMATCH", + /* 219 */ "CONTAINS", + /* 220 */ "JOIN", + /* 221 */ "INNER", + /* 222 */ "SELECT", + /* 223 */ "DISTINCT", + /* 224 */ "WHERE", + /* 225 */ "PARTITION", + /* 226 */ "BY", + /* 227 */ "SESSION", + /* 228 */ "STATE_WINDOW", + /* 229 */ "SLIDING", + /* 230 */ "FILL", + /* 231 */ "VALUE", + /* 232 */ "NONE", + /* 233 */ "PREV", + /* 234 */ "LINEAR", + /* 235 */ "NEXT", + /* 236 */ "HAVING", + /* 237 */ "RANGE", + /* 238 */ "EVERY", + /* 239 */ "ORDER", + /* 240 */ "SLIMIT", + /* 241 */ "SOFFSET", + /* 242 */ "LIMIT", + /* 243 */ "OFFSET", + /* 244 */ "ASC", + /* 245 */ "NULLS", + /* 246 */ "ID", + /* 247 */ "NK_BITNOT", /* 248 */ "VALUES", /* 249 */ "IMPORT", /* 250 */ "NK_SEMI", @@ -1558,7 +1509,7 @@ static const char *const yyTokenName[] = { /* 284 */ "type_name", /* 285 */ "signed_literal", /* 286 */ "create_subtable_clause", - /* 287 */ "specific_tags_opt", + /* 287 */ "specific_cols_opt", /* 288 */ "expression_list", /* 289 */ "drop_table_clause", /* 290 */ "col_name_list", @@ -1781,12 +1732,12 @@ static const char *const yyRuleName[] = { /* 125 */ "alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal", /* 126 */ "multi_create_clause ::= create_subtable_clause", /* 127 */ "multi_create_clause ::= multi_create_clause create_subtable_clause", - /* 128 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP expression_list NK_RP table_options", + /* 128 */ "create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options", /* 129 */ "multi_drop_clause ::= drop_table_clause", /* 130 */ "multi_drop_clause ::= multi_drop_clause drop_table_clause", /* 131 */ "drop_table_clause ::= exists_opt full_table_name", - /* 132 */ "specific_tags_opt ::=", - /* 133 */ "specific_tags_opt ::= NK_LP col_name_list NK_RP", + /* 132 */ "specific_cols_opt ::=", + /* 133 */ "specific_cols_opt ::= NK_LP col_name_list NK_RP", /* 134 */ "full_table_name ::= table_name", /* 135 */ "full_table_name ::= db_name NK_DOT table_name", /* 136 */ "column_def_list ::= column_def", @@ -1935,207 +1886,208 @@ static const char *const yyRuleName[] = { /* 279 */ "cmd ::= SYNCDB db_name REPLICA", /* 280 */ "cmd ::= DELETE FROM full_table_name where_clause_opt", /* 281 */ "cmd ::= query_expression", - /* 282 */ "literal ::= NK_INTEGER", - /* 283 */ "literal ::= NK_FLOAT", - /* 284 */ "literal ::= NK_STRING", - /* 285 */ "literal ::= NK_BOOL", - /* 286 */ "literal ::= TIMESTAMP NK_STRING", - /* 287 */ "literal ::= duration_literal", - /* 288 */ "literal ::= NULL", - /* 289 */ "literal ::= NK_QUESTION", - /* 290 */ "duration_literal ::= NK_VARIABLE", - /* 291 */ "signed ::= NK_INTEGER", - /* 292 */ "signed ::= NK_PLUS NK_INTEGER", - /* 293 */ "signed ::= NK_MINUS NK_INTEGER", - /* 294 */ "signed ::= NK_FLOAT", - /* 295 */ "signed ::= NK_PLUS NK_FLOAT", - /* 296 */ "signed ::= NK_MINUS NK_FLOAT", - /* 297 */ "signed_literal ::= signed", - /* 298 */ "signed_literal ::= NK_STRING", - /* 299 */ "signed_literal ::= NK_BOOL", - /* 300 */ "signed_literal ::= TIMESTAMP NK_STRING", - /* 301 */ "signed_literal ::= duration_literal", - /* 302 */ "signed_literal ::= NULL", - /* 303 */ "signed_literal ::= literal_func", - /* 304 */ "literal_list ::= signed_literal", - /* 305 */ "literal_list ::= literal_list NK_COMMA signed_literal", - /* 306 */ "db_name ::= NK_ID", - /* 307 */ "table_name ::= NK_ID", - /* 308 */ "column_name ::= NK_ID", - /* 309 */ "function_name ::= NK_ID", - /* 310 */ "table_alias ::= NK_ID", - /* 311 */ "column_alias ::= NK_ID", - /* 312 */ "user_name ::= NK_ID", - /* 313 */ "index_name ::= NK_ID", - /* 314 */ "topic_name ::= NK_ID", - /* 315 */ "stream_name ::= NK_ID", - /* 316 */ "cgroup_name ::= NK_ID", - /* 317 */ "expression ::= literal", - /* 318 */ "expression ::= pseudo_column", - /* 319 */ "expression ::= column_reference", - /* 320 */ "expression ::= function_expression", - /* 321 */ "expression ::= subquery", - /* 322 */ "expression ::= NK_LP expression NK_RP", - /* 323 */ "expression ::= NK_PLUS expression", - /* 324 */ "expression ::= NK_MINUS expression", - /* 325 */ "expression ::= expression NK_PLUS expression", - /* 326 */ "expression ::= expression NK_MINUS expression", - /* 327 */ "expression ::= expression NK_STAR expression", - /* 328 */ "expression ::= expression NK_SLASH expression", - /* 329 */ "expression ::= expression NK_REM expression", - /* 330 */ "expression ::= column_reference NK_ARROW NK_STRING", - /* 331 */ "expression ::= expression NK_BITAND expression", - /* 332 */ "expression ::= expression NK_BITOR expression", - /* 333 */ "expression_list ::= expression", - /* 334 */ "expression_list ::= expression_list NK_COMMA expression", - /* 335 */ "column_reference ::= column_name", - /* 336 */ "column_reference ::= table_name NK_DOT column_name", - /* 337 */ "pseudo_column ::= ROWTS", - /* 338 */ "pseudo_column ::= TBNAME", - /* 339 */ "pseudo_column ::= table_name NK_DOT TBNAME", - /* 340 */ "pseudo_column ::= QSTARTTS", - /* 341 */ "pseudo_column ::= QENDTS", - /* 342 */ "pseudo_column ::= WSTARTTS", - /* 343 */ "pseudo_column ::= WENDTS", - /* 344 */ "pseudo_column ::= WDURATION", - /* 345 */ "function_expression ::= function_name NK_LP expression_list NK_RP", - /* 346 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", - /* 347 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", - /* 348 */ "function_expression ::= literal_func", - /* 349 */ "literal_func ::= noarg_func NK_LP NK_RP", - /* 350 */ "literal_func ::= NOW", - /* 351 */ "noarg_func ::= NOW", - /* 352 */ "noarg_func ::= TODAY", - /* 353 */ "noarg_func ::= TIMEZONE", - /* 354 */ "noarg_func ::= DATABASE", - /* 355 */ "noarg_func ::= CLIENT_VERSION", - /* 356 */ "noarg_func ::= SERVER_VERSION", - /* 357 */ "noarg_func ::= SERVER_STATUS", - /* 358 */ "noarg_func ::= CURRENT_USER", - /* 359 */ "noarg_func ::= USER", - /* 360 */ "star_func ::= COUNT", - /* 361 */ "star_func ::= FIRST", - /* 362 */ "star_func ::= LAST", - /* 363 */ "star_func ::= LAST_ROW", - /* 364 */ "star_func_para_list ::= NK_STAR", - /* 365 */ "star_func_para_list ::= other_para_list", - /* 366 */ "other_para_list ::= star_func_para", - /* 367 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", - /* 368 */ "star_func_para ::= expression", - /* 369 */ "star_func_para ::= table_name NK_DOT NK_STAR", - /* 370 */ "predicate ::= expression compare_op expression", - /* 371 */ "predicate ::= expression BETWEEN expression AND expression", - /* 372 */ "predicate ::= expression NOT BETWEEN expression AND expression", - /* 373 */ "predicate ::= expression IS NULL", - /* 374 */ "predicate ::= expression IS NOT NULL", - /* 375 */ "predicate ::= expression in_op in_predicate_value", - /* 376 */ "compare_op ::= NK_LT", - /* 377 */ "compare_op ::= NK_GT", - /* 378 */ "compare_op ::= NK_LE", - /* 379 */ "compare_op ::= NK_GE", - /* 380 */ "compare_op ::= NK_NE", - /* 381 */ "compare_op ::= NK_EQ", - /* 382 */ "compare_op ::= LIKE", - /* 383 */ "compare_op ::= NOT LIKE", - /* 384 */ "compare_op ::= MATCH", - /* 385 */ "compare_op ::= NMATCH", - /* 386 */ "compare_op ::= CONTAINS", - /* 387 */ "in_op ::= IN", - /* 388 */ "in_op ::= NOT IN", - /* 389 */ "in_predicate_value ::= NK_LP expression_list NK_RP", - /* 390 */ "boolean_value_expression ::= boolean_primary", - /* 391 */ "boolean_value_expression ::= NOT boolean_primary", - /* 392 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", - /* 393 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", - /* 394 */ "boolean_primary ::= predicate", - /* 395 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", - /* 396 */ "common_expression ::= expression", - /* 397 */ "common_expression ::= boolean_value_expression", - /* 398 */ "from_clause_opt ::=", - /* 399 */ "from_clause_opt ::= FROM table_reference_list", - /* 400 */ "table_reference_list ::= table_reference", - /* 401 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", - /* 402 */ "table_reference ::= table_primary", - /* 403 */ "table_reference ::= joined_table", - /* 404 */ "table_primary ::= table_name alias_opt", - /* 405 */ "table_primary ::= db_name NK_DOT table_name alias_opt", - /* 406 */ "table_primary ::= subquery alias_opt", - /* 407 */ "table_primary ::= parenthesized_joined_table", - /* 408 */ "alias_opt ::=", - /* 409 */ "alias_opt ::= table_alias", - /* 410 */ "alias_opt ::= AS table_alias", - /* 411 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", - /* 412 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", - /* 413 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", - /* 414 */ "join_type ::=", - /* 415 */ "join_type ::= INNER", - /* 416 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", - /* 417 */ "set_quantifier_opt ::=", - /* 418 */ "set_quantifier_opt ::= DISTINCT", - /* 419 */ "set_quantifier_opt ::= ALL", - /* 420 */ "select_list ::= select_item", - /* 421 */ "select_list ::= select_list NK_COMMA select_item", - /* 422 */ "select_item ::= NK_STAR", - /* 423 */ "select_item ::= common_expression", - /* 424 */ "select_item ::= common_expression column_alias", - /* 425 */ "select_item ::= common_expression AS column_alias", - /* 426 */ "select_item ::= table_name NK_DOT NK_STAR", - /* 427 */ "where_clause_opt ::=", - /* 428 */ "where_clause_opt ::= WHERE search_condition", - /* 429 */ "partition_by_clause_opt ::=", - /* 430 */ "partition_by_clause_opt ::= PARTITION BY expression_list", - /* 431 */ "twindow_clause_opt ::=", - /* 432 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", - /* 433 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", - /* 434 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", - /* 435 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", - /* 436 */ "sliding_opt ::=", - /* 437 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", - /* 438 */ "fill_opt ::=", - /* 439 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", - /* 440 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", - /* 441 */ "fill_mode ::= NONE", - /* 442 */ "fill_mode ::= PREV", - /* 443 */ "fill_mode ::= NULL", - /* 444 */ "fill_mode ::= LINEAR", - /* 445 */ "fill_mode ::= NEXT", - /* 446 */ "group_by_clause_opt ::=", - /* 447 */ "group_by_clause_opt ::= GROUP BY group_by_list", - /* 448 */ "group_by_list ::= expression", - /* 449 */ "group_by_list ::= group_by_list NK_COMMA expression", - /* 450 */ "having_clause_opt ::=", - /* 451 */ "having_clause_opt ::= HAVING search_condition", - /* 452 */ "range_opt ::=", - /* 453 */ "range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP", - /* 454 */ "every_opt ::=", - /* 455 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", - /* 456 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", - /* 457 */ "query_expression_body ::= query_primary", - /* 458 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", - /* 459 */ "query_expression_body ::= query_expression_body UNION query_expression_body", - /* 460 */ "query_primary ::= query_specification", - /* 461 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", - /* 462 */ "order_by_clause_opt ::=", - /* 463 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", - /* 464 */ "slimit_clause_opt ::=", - /* 465 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", - /* 466 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", - /* 467 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 468 */ "limit_clause_opt ::=", - /* 469 */ "limit_clause_opt ::= LIMIT NK_INTEGER", - /* 470 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", - /* 471 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", - /* 472 */ "subquery ::= NK_LP query_expression NK_RP", - /* 473 */ "search_condition ::= common_expression", - /* 474 */ "sort_specification_list ::= sort_specification", - /* 475 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", - /* 476 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", - /* 477 */ "ordering_specification_opt ::=", - /* 478 */ "ordering_specification_opt ::= ASC", - /* 479 */ "ordering_specification_opt ::= DESC", - /* 480 */ "null_ordering_opt ::=", - /* 481 */ "null_ordering_opt ::= NULLS FIRST", - /* 482 */ "null_ordering_opt ::= NULLS LAST", + /* 282 */ "cmd ::= INSERT INTO full_table_name specific_cols_opt query_expression", + /* 283 */ "literal ::= NK_INTEGER", + /* 284 */ "literal ::= NK_FLOAT", + /* 285 */ "literal ::= NK_STRING", + /* 286 */ "literal ::= NK_BOOL", + /* 287 */ "literal ::= TIMESTAMP NK_STRING", + /* 288 */ "literal ::= duration_literal", + /* 289 */ "literal ::= NULL", + /* 290 */ "literal ::= NK_QUESTION", + /* 291 */ "duration_literal ::= NK_VARIABLE", + /* 292 */ "signed ::= NK_INTEGER", + /* 293 */ "signed ::= NK_PLUS NK_INTEGER", + /* 294 */ "signed ::= NK_MINUS NK_INTEGER", + /* 295 */ "signed ::= NK_FLOAT", + /* 296 */ "signed ::= NK_PLUS NK_FLOAT", + /* 297 */ "signed ::= NK_MINUS NK_FLOAT", + /* 298 */ "signed_literal ::= signed", + /* 299 */ "signed_literal ::= NK_STRING", + /* 300 */ "signed_literal ::= NK_BOOL", + /* 301 */ "signed_literal ::= TIMESTAMP NK_STRING", + /* 302 */ "signed_literal ::= duration_literal", + /* 303 */ "signed_literal ::= NULL", + /* 304 */ "signed_literal ::= literal_func", + /* 305 */ "literal_list ::= signed_literal", + /* 306 */ "literal_list ::= literal_list NK_COMMA signed_literal", + /* 307 */ "db_name ::= NK_ID", + /* 308 */ "table_name ::= NK_ID", + /* 309 */ "column_name ::= NK_ID", + /* 310 */ "function_name ::= NK_ID", + /* 311 */ "table_alias ::= NK_ID", + /* 312 */ "column_alias ::= NK_ID", + /* 313 */ "user_name ::= NK_ID", + /* 314 */ "index_name ::= NK_ID", + /* 315 */ "topic_name ::= NK_ID", + /* 316 */ "stream_name ::= NK_ID", + /* 317 */ "cgroup_name ::= NK_ID", + /* 318 */ "expression ::= literal", + /* 319 */ "expression ::= pseudo_column", + /* 320 */ "expression ::= column_reference", + /* 321 */ "expression ::= function_expression", + /* 322 */ "expression ::= subquery", + /* 323 */ "expression ::= NK_LP expression NK_RP", + /* 324 */ "expression ::= NK_PLUS expression", + /* 325 */ "expression ::= NK_MINUS expression", + /* 326 */ "expression ::= expression NK_PLUS expression", + /* 327 */ "expression ::= expression NK_MINUS expression", + /* 328 */ "expression ::= expression NK_STAR expression", + /* 329 */ "expression ::= expression NK_SLASH expression", + /* 330 */ "expression ::= expression NK_REM expression", + /* 331 */ "expression ::= column_reference NK_ARROW NK_STRING", + /* 332 */ "expression ::= expression NK_BITAND expression", + /* 333 */ "expression ::= expression NK_BITOR expression", + /* 334 */ "expression_list ::= expression", + /* 335 */ "expression_list ::= expression_list NK_COMMA expression", + /* 336 */ "column_reference ::= column_name", + /* 337 */ "column_reference ::= table_name NK_DOT column_name", + /* 338 */ "pseudo_column ::= ROWTS", + /* 339 */ "pseudo_column ::= TBNAME", + /* 340 */ "pseudo_column ::= table_name NK_DOT TBNAME", + /* 341 */ "pseudo_column ::= QSTARTTS", + /* 342 */ "pseudo_column ::= QENDTS", + /* 343 */ "pseudo_column ::= WSTARTTS", + /* 344 */ "pseudo_column ::= WENDTS", + /* 345 */ "pseudo_column ::= WDURATION", + /* 346 */ "function_expression ::= function_name NK_LP expression_list NK_RP", + /* 347 */ "function_expression ::= star_func NK_LP star_func_para_list NK_RP", + /* 348 */ "function_expression ::= CAST NK_LP expression AS type_name NK_RP", + /* 349 */ "function_expression ::= literal_func", + /* 350 */ "literal_func ::= noarg_func NK_LP NK_RP", + /* 351 */ "literal_func ::= NOW", + /* 352 */ "noarg_func ::= NOW", + /* 353 */ "noarg_func ::= TODAY", + /* 354 */ "noarg_func ::= TIMEZONE", + /* 355 */ "noarg_func ::= DATABASE", + /* 356 */ "noarg_func ::= CLIENT_VERSION", + /* 357 */ "noarg_func ::= SERVER_VERSION", + /* 358 */ "noarg_func ::= SERVER_STATUS", + /* 359 */ "noarg_func ::= CURRENT_USER", + /* 360 */ "noarg_func ::= USER", + /* 361 */ "star_func ::= COUNT", + /* 362 */ "star_func ::= FIRST", + /* 363 */ "star_func ::= LAST", + /* 364 */ "star_func ::= LAST_ROW", + /* 365 */ "star_func_para_list ::= NK_STAR", + /* 366 */ "star_func_para_list ::= other_para_list", + /* 367 */ "other_para_list ::= star_func_para", + /* 368 */ "other_para_list ::= other_para_list NK_COMMA star_func_para", + /* 369 */ "star_func_para ::= expression", + /* 370 */ "star_func_para ::= table_name NK_DOT NK_STAR", + /* 371 */ "predicate ::= expression compare_op expression", + /* 372 */ "predicate ::= expression BETWEEN expression AND expression", + /* 373 */ "predicate ::= expression NOT BETWEEN expression AND expression", + /* 374 */ "predicate ::= expression IS NULL", + /* 375 */ "predicate ::= expression IS NOT NULL", + /* 376 */ "predicate ::= expression in_op in_predicate_value", + /* 377 */ "compare_op ::= NK_LT", + /* 378 */ "compare_op ::= NK_GT", + /* 379 */ "compare_op ::= NK_LE", + /* 380 */ "compare_op ::= NK_GE", + /* 381 */ "compare_op ::= NK_NE", + /* 382 */ "compare_op ::= NK_EQ", + /* 383 */ "compare_op ::= LIKE", + /* 384 */ "compare_op ::= NOT LIKE", + /* 385 */ "compare_op ::= MATCH", + /* 386 */ "compare_op ::= NMATCH", + /* 387 */ "compare_op ::= CONTAINS", + /* 388 */ "in_op ::= IN", + /* 389 */ "in_op ::= NOT IN", + /* 390 */ "in_predicate_value ::= NK_LP expression_list NK_RP", + /* 391 */ "boolean_value_expression ::= boolean_primary", + /* 392 */ "boolean_value_expression ::= NOT boolean_primary", + /* 393 */ "boolean_value_expression ::= boolean_value_expression OR boolean_value_expression", + /* 394 */ "boolean_value_expression ::= boolean_value_expression AND boolean_value_expression", + /* 395 */ "boolean_primary ::= predicate", + /* 396 */ "boolean_primary ::= NK_LP boolean_value_expression NK_RP", + /* 397 */ "common_expression ::= expression", + /* 398 */ "common_expression ::= boolean_value_expression", + /* 399 */ "from_clause_opt ::=", + /* 400 */ "from_clause_opt ::= FROM table_reference_list", + /* 401 */ "table_reference_list ::= table_reference", + /* 402 */ "table_reference_list ::= table_reference_list NK_COMMA table_reference", + /* 403 */ "table_reference ::= table_primary", + /* 404 */ "table_reference ::= joined_table", + /* 405 */ "table_primary ::= table_name alias_opt", + /* 406 */ "table_primary ::= db_name NK_DOT table_name alias_opt", + /* 407 */ "table_primary ::= subquery alias_opt", + /* 408 */ "table_primary ::= parenthesized_joined_table", + /* 409 */ "alias_opt ::=", + /* 410 */ "alias_opt ::= table_alias", + /* 411 */ "alias_opt ::= AS table_alias", + /* 412 */ "parenthesized_joined_table ::= NK_LP joined_table NK_RP", + /* 413 */ "parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP", + /* 414 */ "joined_table ::= table_reference join_type JOIN table_reference ON search_condition", + /* 415 */ "join_type ::=", + /* 416 */ "join_type ::= INNER", + /* 417 */ "query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt", + /* 418 */ "set_quantifier_opt ::=", + /* 419 */ "set_quantifier_opt ::= DISTINCT", + /* 420 */ "set_quantifier_opt ::= ALL", + /* 421 */ "select_list ::= select_item", + /* 422 */ "select_list ::= select_list NK_COMMA select_item", + /* 423 */ "select_item ::= NK_STAR", + /* 424 */ "select_item ::= common_expression", + /* 425 */ "select_item ::= common_expression column_alias", + /* 426 */ "select_item ::= common_expression AS column_alias", + /* 427 */ "select_item ::= table_name NK_DOT NK_STAR", + /* 428 */ "where_clause_opt ::=", + /* 429 */ "where_clause_opt ::= WHERE search_condition", + /* 430 */ "partition_by_clause_opt ::=", + /* 431 */ "partition_by_clause_opt ::= PARTITION BY expression_list", + /* 432 */ "twindow_clause_opt ::=", + /* 433 */ "twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP", + /* 434 */ "twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP", + /* 435 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt", + /* 436 */ "twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt", + /* 437 */ "sliding_opt ::=", + /* 438 */ "sliding_opt ::= SLIDING NK_LP duration_literal NK_RP", + /* 439 */ "fill_opt ::=", + /* 440 */ "fill_opt ::= FILL NK_LP fill_mode NK_RP", + /* 441 */ "fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP", + /* 442 */ "fill_mode ::= NONE", + /* 443 */ "fill_mode ::= PREV", + /* 444 */ "fill_mode ::= NULL", + /* 445 */ "fill_mode ::= LINEAR", + /* 446 */ "fill_mode ::= NEXT", + /* 447 */ "group_by_clause_opt ::=", + /* 448 */ "group_by_clause_opt ::= GROUP BY group_by_list", + /* 449 */ "group_by_list ::= expression", + /* 450 */ "group_by_list ::= group_by_list NK_COMMA expression", + /* 451 */ "having_clause_opt ::=", + /* 452 */ "having_clause_opt ::= HAVING search_condition", + /* 453 */ "range_opt ::=", + /* 454 */ "range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP", + /* 455 */ "every_opt ::=", + /* 456 */ "every_opt ::= EVERY NK_LP duration_literal NK_RP", + /* 457 */ "query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt", + /* 458 */ "query_expression_body ::= query_primary", + /* 459 */ "query_expression_body ::= query_expression_body UNION ALL query_expression_body", + /* 460 */ "query_expression_body ::= query_expression_body UNION query_expression_body", + /* 461 */ "query_primary ::= query_specification", + /* 462 */ "query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP", + /* 463 */ "order_by_clause_opt ::=", + /* 464 */ "order_by_clause_opt ::= ORDER BY sort_specification_list", + /* 465 */ "slimit_clause_opt ::=", + /* 466 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER", + /* 467 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER", + /* 468 */ "slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 469 */ "limit_clause_opt ::=", + /* 470 */ "limit_clause_opt ::= LIMIT NK_INTEGER", + /* 471 */ "limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER", + /* 472 */ "limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER", + /* 473 */ "subquery ::= NK_LP query_expression NK_RP", + /* 474 */ "search_condition ::= common_expression", + /* 475 */ "sort_specification_list ::= sort_specification", + /* 476 */ "sort_specification_list ::= sort_specification_list NK_COMMA sort_specification", + /* 477 */ "sort_specification ::= expression ordering_specification_opt null_ordering_opt", + /* 478 */ "ordering_specification_opt ::=", + /* 479 */ "ordering_specification_opt ::= ASC", + /* 480 */ "ordering_specification_opt ::= DESC", + /* 481 */ "null_ordering_opt ::=", + /* 482 */ "null_ordering_opt ::= NULLS FIRST", + /* 483 */ "null_ordering_opt ::= NULLS LAST", }; #endif /* NDEBUG */ @@ -2384,7 +2336,7 @@ static void yy_destructor( case 278: /* multi_create_clause */ case 279: /* tags_def */ case 280: /* multi_drop_clause */ - case 287: /* specific_tags_opt */ + case 287: /* specific_cols_opt */ case 288: /* expression_list */ case 290: /* col_name_list */ case 293: /* duration_list */ @@ -2863,12 +2815,12 @@ static const struct { { 281, -6 }, /* (125) alter_table_clause ::= full_table_name SET TAG column_name NK_EQ signed_literal */ { 278, -1 }, /* (126) multi_create_clause ::= create_subtable_clause */ { 278, -2 }, /* (127) multi_create_clause ::= multi_create_clause create_subtable_clause */ - { 286, -10 }, /* (128) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP expression_list NK_RP table_options */ + { 286, -10 }, /* (128) create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ { 280, -1 }, /* (129) multi_drop_clause ::= drop_table_clause */ { 280, -2 }, /* (130) multi_drop_clause ::= multi_drop_clause drop_table_clause */ { 289, -2 }, /* (131) drop_table_clause ::= exists_opt full_table_name */ - { 287, 0 }, /* (132) specific_tags_opt ::= */ - { 287, -3 }, /* (133) specific_tags_opt ::= NK_LP col_name_list NK_RP */ + { 287, 0 }, /* (132) specific_cols_opt ::= */ + { 287, -3 }, /* (133) specific_cols_opt ::= NK_LP col_name_list NK_RP */ { 274, -1 }, /* (134) full_table_name ::= table_name */ { 274, -3 }, /* (135) full_table_name ::= db_name NK_DOT table_name */ { 275, -1 }, /* (136) column_def_list ::= column_def */ @@ -3017,207 +2969,208 @@ static const struct { { 252, -3 }, /* (279) cmd ::= SYNCDB db_name REPLICA */ { 252, -4 }, /* (280) cmd ::= DELETE FROM full_table_name where_clause_opt */ { 252, -1 }, /* (281) cmd ::= query_expression */ - { 255, -1 }, /* (282) literal ::= NK_INTEGER */ - { 255, -1 }, /* (283) literal ::= NK_FLOAT */ - { 255, -1 }, /* (284) literal ::= NK_STRING */ - { 255, -1 }, /* (285) literal ::= NK_BOOL */ - { 255, -2 }, /* (286) literal ::= TIMESTAMP NK_STRING */ - { 255, -1 }, /* (287) literal ::= duration_literal */ - { 255, -1 }, /* (288) literal ::= NULL */ - { 255, -1 }, /* (289) literal ::= NK_QUESTION */ - { 296, -1 }, /* (290) duration_literal ::= NK_VARIABLE */ - { 322, -1 }, /* (291) signed ::= NK_INTEGER */ - { 322, -2 }, /* (292) signed ::= NK_PLUS NK_INTEGER */ - { 322, -2 }, /* (293) signed ::= NK_MINUS NK_INTEGER */ - { 322, -1 }, /* (294) signed ::= NK_FLOAT */ - { 322, -2 }, /* (295) signed ::= NK_PLUS NK_FLOAT */ - { 322, -2 }, /* (296) signed ::= NK_MINUS NK_FLOAT */ - { 285, -1 }, /* (297) signed_literal ::= signed */ - { 285, -1 }, /* (298) signed_literal ::= NK_STRING */ - { 285, -1 }, /* (299) signed_literal ::= NK_BOOL */ - { 285, -2 }, /* (300) signed_literal ::= TIMESTAMP NK_STRING */ - { 285, -1 }, /* (301) signed_literal ::= duration_literal */ - { 285, -1 }, /* (302) signed_literal ::= NULL */ - { 285, -1 }, /* (303) signed_literal ::= literal_func */ - { 324, -1 }, /* (304) literal_list ::= signed_literal */ - { 324, -3 }, /* (305) literal_list ::= literal_list NK_COMMA signed_literal */ - { 263, -1 }, /* (306) db_name ::= NK_ID */ - { 291, -1 }, /* (307) table_name ::= NK_ID */ - { 283, -1 }, /* (308) column_name ::= NK_ID */ - { 298, -1 }, /* (309) function_name ::= NK_ID */ - { 325, -1 }, /* (310) table_alias ::= NK_ID */ - { 326, -1 }, /* (311) column_alias ::= NK_ID */ - { 257, -1 }, /* (312) user_name ::= NK_ID */ - { 304, -1 }, /* (313) index_name ::= NK_ID */ - { 311, -1 }, /* (314) topic_name ::= NK_ID */ - { 318, -1 }, /* (315) stream_name ::= NK_ID */ - { 313, -1 }, /* (316) cgroup_name ::= NK_ID */ - { 327, -1 }, /* (317) expression ::= literal */ - { 327, -1 }, /* (318) expression ::= pseudo_column */ - { 327, -1 }, /* (319) expression ::= column_reference */ - { 327, -1 }, /* (320) expression ::= function_expression */ - { 327, -1 }, /* (321) expression ::= subquery */ - { 327, -3 }, /* (322) expression ::= NK_LP expression NK_RP */ - { 327, -2 }, /* (323) expression ::= NK_PLUS expression */ - { 327, -2 }, /* (324) expression ::= NK_MINUS expression */ - { 327, -3 }, /* (325) expression ::= expression NK_PLUS expression */ - { 327, -3 }, /* (326) expression ::= expression NK_MINUS expression */ - { 327, -3 }, /* (327) expression ::= expression NK_STAR expression */ - { 327, -3 }, /* (328) expression ::= expression NK_SLASH expression */ - { 327, -3 }, /* (329) expression ::= expression NK_REM expression */ - { 327, -3 }, /* (330) expression ::= column_reference NK_ARROW NK_STRING */ - { 327, -3 }, /* (331) expression ::= expression NK_BITAND expression */ - { 327, -3 }, /* (332) expression ::= expression NK_BITOR expression */ - { 288, -1 }, /* (333) expression_list ::= expression */ - { 288, -3 }, /* (334) expression_list ::= expression_list NK_COMMA expression */ - { 329, -1 }, /* (335) column_reference ::= column_name */ - { 329, -3 }, /* (336) column_reference ::= table_name NK_DOT column_name */ - { 328, -1 }, /* (337) pseudo_column ::= ROWTS */ - { 328, -1 }, /* (338) pseudo_column ::= TBNAME */ - { 328, -3 }, /* (339) pseudo_column ::= table_name NK_DOT TBNAME */ - { 328, -1 }, /* (340) pseudo_column ::= QSTARTTS */ - { 328, -1 }, /* (341) pseudo_column ::= QENDTS */ - { 328, -1 }, /* (342) pseudo_column ::= WSTARTTS */ - { 328, -1 }, /* (343) pseudo_column ::= WENDTS */ - { 328, -1 }, /* (344) pseudo_column ::= WDURATION */ - { 330, -4 }, /* (345) function_expression ::= function_name NK_LP expression_list NK_RP */ - { 330, -4 }, /* (346) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ - { 330, -6 }, /* (347) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ - { 330, -1 }, /* (348) function_expression ::= literal_func */ - { 323, -3 }, /* (349) literal_func ::= noarg_func NK_LP NK_RP */ - { 323, -1 }, /* (350) literal_func ::= NOW */ - { 334, -1 }, /* (351) noarg_func ::= NOW */ - { 334, -1 }, /* (352) noarg_func ::= TODAY */ - { 334, -1 }, /* (353) noarg_func ::= TIMEZONE */ - { 334, -1 }, /* (354) noarg_func ::= DATABASE */ - { 334, -1 }, /* (355) noarg_func ::= CLIENT_VERSION */ - { 334, -1 }, /* (356) noarg_func ::= SERVER_VERSION */ - { 334, -1 }, /* (357) noarg_func ::= SERVER_STATUS */ - { 334, -1 }, /* (358) noarg_func ::= CURRENT_USER */ - { 334, -1 }, /* (359) noarg_func ::= USER */ - { 332, -1 }, /* (360) star_func ::= COUNT */ - { 332, -1 }, /* (361) star_func ::= FIRST */ - { 332, -1 }, /* (362) star_func ::= LAST */ - { 332, -1 }, /* (363) star_func ::= LAST_ROW */ - { 333, -1 }, /* (364) star_func_para_list ::= NK_STAR */ - { 333, -1 }, /* (365) star_func_para_list ::= other_para_list */ - { 335, -1 }, /* (366) other_para_list ::= star_func_para */ - { 335, -3 }, /* (367) other_para_list ::= other_para_list NK_COMMA star_func_para */ - { 336, -1 }, /* (368) star_func_para ::= expression */ - { 336, -3 }, /* (369) star_func_para ::= table_name NK_DOT NK_STAR */ - { 337, -3 }, /* (370) predicate ::= expression compare_op expression */ - { 337, -5 }, /* (371) predicate ::= expression BETWEEN expression AND expression */ - { 337, -6 }, /* (372) predicate ::= expression NOT BETWEEN expression AND expression */ - { 337, -3 }, /* (373) predicate ::= expression IS NULL */ - { 337, -4 }, /* (374) predicate ::= expression IS NOT NULL */ - { 337, -3 }, /* (375) predicate ::= expression in_op in_predicate_value */ - { 338, -1 }, /* (376) compare_op ::= NK_LT */ - { 338, -1 }, /* (377) compare_op ::= NK_GT */ - { 338, -1 }, /* (378) compare_op ::= NK_LE */ - { 338, -1 }, /* (379) compare_op ::= NK_GE */ - { 338, -1 }, /* (380) compare_op ::= NK_NE */ - { 338, -1 }, /* (381) compare_op ::= NK_EQ */ - { 338, -1 }, /* (382) compare_op ::= LIKE */ - { 338, -2 }, /* (383) compare_op ::= NOT LIKE */ - { 338, -1 }, /* (384) compare_op ::= MATCH */ - { 338, -1 }, /* (385) compare_op ::= NMATCH */ - { 338, -1 }, /* (386) compare_op ::= CONTAINS */ - { 339, -1 }, /* (387) in_op ::= IN */ - { 339, -2 }, /* (388) in_op ::= NOT IN */ - { 340, -3 }, /* (389) in_predicate_value ::= NK_LP expression_list NK_RP */ - { 341, -1 }, /* (390) boolean_value_expression ::= boolean_primary */ - { 341, -2 }, /* (391) boolean_value_expression ::= NOT boolean_primary */ - { 341, -3 }, /* (392) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ - { 341, -3 }, /* (393) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ - { 342, -1 }, /* (394) boolean_primary ::= predicate */ - { 342, -3 }, /* (395) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ - { 343, -1 }, /* (396) common_expression ::= expression */ - { 343, -1 }, /* (397) common_expression ::= boolean_value_expression */ - { 344, 0 }, /* (398) from_clause_opt ::= */ - { 344, -2 }, /* (399) from_clause_opt ::= FROM table_reference_list */ - { 345, -1 }, /* (400) table_reference_list ::= table_reference */ - { 345, -3 }, /* (401) table_reference_list ::= table_reference_list NK_COMMA table_reference */ - { 346, -1 }, /* (402) table_reference ::= table_primary */ - { 346, -1 }, /* (403) table_reference ::= joined_table */ - { 347, -2 }, /* (404) table_primary ::= table_name alias_opt */ - { 347, -4 }, /* (405) table_primary ::= db_name NK_DOT table_name alias_opt */ - { 347, -2 }, /* (406) table_primary ::= subquery alias_opt */ - { 347, -1 }, /* (407) table_primary ::= parenthesized_joined_table */ - { 349, 0 }, /* (408) alias_opt ::= */ - { 349, -1 }, /* (409) alias_opt ::= table_alias */ - { 349, -2 }, /* (410) alias_opt ::= AS table_alias */ - { 350, -3 }, /* (411) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - { 350, -3 }, /* (412) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ - { 348, -6 }, /* (413) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ - { 351, 0 }, /* (414) join_type ::= */ - { 351, -1 }, /* (415) join_type ::= INNER */ - { 353, -12 }, /* (416) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ - { 354, 0 }, /* (417) set_quantifier_opt ::= */ - { 354, -1 }, /* (418) set_quantifier_opt ::= DISTINCT */ - { 354, -1 }, /* (419) set_quantifier_opt ::= ALL */ - { 355, -1 }, /* (420) select_list ::= select_item */ - { 355, -3 }, /* (421) select_list ::= select_list NK_COMMA select_item */ - { 363, -1 }, /* (422) select_item ::= NK_STAR */ - { 363, -1 }, /* (423) select_item ::= common_expression */ - { 363, -2 }, /* (424) select_item ::= common_expression column_alias */ - { 363, -3 }, /* (425) select_item ::= common_expression AS column_alias */ - { 363, -3 }, /* (426) select_item ::= table_name NK_DOT NK_STAR */ - { 321, 0 }, /* (427) where_clause_opt ::= */ - { 321, -2 }, /* (428) where_clause_opt ::= WHERE search_condition */ - { 356, 0 }, /* (429) partition_by_clause_opt ::= */ - { 356, -3 }, /* (430) partition_by_clause_opt ::= PARTITION BY expression_list */ - { 360, 0 }, /* (431) twindow_clause_opt ::= */ - { 360, -6 }, /* (432) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ - { 360, -4 }, /* (433) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ - { 360, -6 }, /* (434) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ - { 360, -8 }, /* (435) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ - { 307, 0 }, /* (436) sliding_opt ::= */ - { 307, -4 }, /* (437) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - { 359, 0 }, /* (438) fill_opt ::= */ - { 359, -4 }, /* (439) fill_opt ::= FILL NK_LP fill_mode NK_RP */ - { 359, -6 }, /* (440) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ - { 364, -1 }, /* (441) fill_mode ::= NONE */ - { 364, -1 }, /* (442) fill_mode ::= PREV */ - { 364, -1 }, /* (443) fill_mode ::= NULL */ - { 364, -1 }, /* (444) fill_mode ::= LINEAR */ - { 364, -1 }, /* (445) fill_mode ::= NEXT */ - { 361, 0 }, /* (446) group_by_clause_opt ::= */ - { 361, -3 }, /* (447) group_by_clause_opt ::= GROUP BY group_by_list */ - { 365, -1 }, /* (448) group_by_list ::= expression */ - { 365, -3 }, /* (449) group_by_list ::= group_by_list NK_COMMA expression */ - { 362, 0 }, /* (450) having_clause_opt ::= */ - { 362, -2 }, /* (451) having_clause_opt ::= HAVING search_condition */ - { 357, 0 }, /* (452) range_opt ::= */ - { 357, -6 }, /* (453) range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ - { 358, 0 }, /* (454) every_opt ::= */ - { 358, -4 }, /* (455) every_opt ::= EVERY NK_LP duration_literal NK_RP */ - { 312, -4 }, /* (456) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ - { 366, -1 }, /* (457) query_expression_body ::= query_primary */ - { 366, -4 }, /* (458) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ - { 366, -3 }, /* (459) query_expression_body ::= query_expression_body UNION query_expression_body */ - { 370, -1 }, /* (460) query_primary ::= query_specification */ - { 370, -6 }, /* (461) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ - { 367, 0 }, /* (462) order_by_clause_opt ::= */ - { 367, -3 }, /* (463) order_by_clause_opt ::= ORDER BY sort_specification_list */ - { 368, 0 }, /* (464) slimit_clause_opt ::= */ - { 368, -2 }, /* (465) slimit_clause_opt ::= SLIMIT NK_INTEGER */ - { 368, -4 }, /* (466) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - { 368, -4 }, /* (467) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 369, 0 }, /* (468) limit_clause_opt ::= */ - { 369, -2 }, /* (469) limit_clause_opt ::= LIMIT NK_INTEGER */ - { 369, -4 }, /* (470) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ - { 369, -4 }, /* (471) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - { 331, -3 }, /* (472) subquery ::= NK_LP query_expression NK_RP */ - { 352, -1 }, /* (473) search_condition ::= common_expression */ - { 371, -1 }, /* (474) sort_specification_list ::= sort_specification */ - { 371, -3 }, /* (475) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ - { 372, -3 }, /* (476) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ - { 373, 0 }, /* (477) ordering_specification_opt ::= */ - { 373, -1 }, /* (478) ordering_specification_opt ::= ASC */ - { 373, -1 }, /* (479) ordering_specification_opt ::= DESC */ - { 374, 0 }, /* (480) null_ordering_opt ::= */ - { 374, -2 }, /* (481) null_ordering_opt ::= NULLS FIRST */ - { 374, -2 }, /* (482) null_ordering_opt ::= NULLS LAST */ + { 252, -5 }, /* (282) cmd ::= INSERT INTO full_table_name specific_cols_opt query_expression */ + { 255, -1 }, /* (283) literal ::= NK_INTEGER */ + { 255, -1 }, /* (284) literal ::= NK_FLOAT */ + { 255, -1 }, /* (285) literal ::= NK_STRING */ + { 255, -1 }, /* (286) literal ::= NK_BOOL */ + { 255, -2 }, /* (287) literal ::= TIMESTAMP NK_STRING */ + { 255, -1 }, /* (288) literal ::= duration_literal */ + { 255, -1 }, /* (289) literal ::= NULL */ + { 255, -1 }, /* (290) literal ::= NK_QUESTION */ + { 296, -1 }, /* (291) duration_literal ::= NK_VARIABLE */ + { 322, -1 }, /* (292) signed ::= NK_INTEGER */ + { 322, -2 }, /* (293) signed ::= NK_PLUS NK_INTEGER */ + { 322, -2 }, /* (294) signed ::= NK_MINUS NK_INTEGER */ + { 322, -1 }, /* (295) signed ::= NK_FLOAT */ + { 322, -2 }, /* (296) signed ::= NK_PLUS NK_FLOAT */ + { 322, -2 }, /* (297) signed ::= NK_MINUS NK_FLOAT */ + { 285, -1 }, /* (298) signed_literal ::= signed */ + { 285, -1 }, /* (299) signed_literal ::= NK_STRING */ + { 285, -1 }, /* (300) signed_literal ::= NK_BOOL */ + { 285, -2 }, /* (301) signed_literal ::= TIMESTAMP NK_STRING */ + { 285, -1 }, /* (302) signed_literal ::= duration_literal */ + { 285, -1 }, /* (303) signed_literal ::= NULL */ + { 285, -1 }, /* (304) signed_literal ::= literal_func */ + { 324, -1 }, /* (305) literal_list ::= signed_literal */ + { 324, -3 }, /* (306) literal_list ::= literal_list NK_COMMA signed_literal */ + { 263, -1 }, /* (307) db_name ::= NK_ID */ + { 291, -1 }, /* (308) table_name ::= NK_ID */ + { 283, -1 }, /* (309) column_name ::= NK_ID */ + { 298, -1 }, /* (310) function_name ::= NK_ID */ + { 325, -1 }, /* (311) table_alias ::= NK_ID */ + { 326, -1 }, /* (312) column_alias ::= NK_ID */ + { 257, -1 }, /* (313) user_name ::= NK_ID */ + { 304, -1 }, /* (314) index_name ::= NK_ID */ + { 311, -1 }, /* (315) topic_name ::= NK_ID */ + { 318, -1 }, /* (316) stream_name ::= NK_ID */ + { 313, -1 }, /* (317) cgroup_name ::= NK_ID */ + { 327, -1 }, /* (318) expression ::= literal */ + { 327, -1 }, /* (319) expression ::= pseudo_column */ + { 327, -1 }, /* (320) expression ::= column_reference */ + { 327, -1 }, /* (321) expression ::= function_expression */ + { 327, -1 }, /* (322) expression ::= subquery */ + { 327, -3 }, /* (323) expression ::= NK_LP expression NK_RP */ + { 327, -2 }, /* (324) expression ::= NK_PLUS expression */ + { 327, -2 }, /* (325) expression ::= NK_MINUS expression */ + { 327, -3 }, /* (326) expression ::= expression NK_PLUS expression */ + { 327, -3 }, /* (327) expression ::= expression NK_MINUS expression */ + { 327, -3 }, /* (328) expression ::= expression NK_STAR expression */ + { 327, -3 }, /* (329) expression ::= expression NK_SLASH expression */ + { 327, -3 }, /* (330) expression ::= expression NK_REM expression */ + { 327, -3 }, /* (331) expression ::= column_reference NK_ARROW NK_STRING */ + { 327, -3 }, /* (332) expression ::= expression NK_BITAND expression */ + { 327, -3 }, /* (333) expression ::= expression NK_BITOR expression */ + { 288, -1 }, /* (334) expression_list ::= expression */ + { 288, -3 }, /* (335) expression_list ::= expression_list NK_COMMA expression */ + { 329, -1 }, /* (336) column_reference ::= column_name */ + { 329, -3 }, /* (337) column_reference ::= table_name NK_DOT column_name */ + { 328, -1 }, /* (338) pseudo_column ::= ROWTS */ + { 328, -1 }, /* (339) pseudo_column ::= TBNAME */ + { 328, -3 }, /* (340) pseudo_column ::= table_name NK_DOT TBNAME */ + { 328, -1 }, /* (341) pseudo_column ::= QSTARTTS */ + { 328, -1 }, /* (342) pseudo_column ::= QENDTS */ + { 328, -1 }, /* (343) pseudo_column ::= WSTARTTS */ + { 328, -1 }, /* (344) pseudo_column ::= WENDTS */ + { 328, -1 }, /* (345) pseudo_column ::= WDURATION */ + { 330, -4 }, /* (346) function_expression ::= function_name NK_LP expression_list NK_RP */ + { 330, -4 }, /* (347) function_expression ::= star_func NK_LP star_func_para_list NK_RP */ + { 330, -6 }, /* (348) function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + { 330, -1 }, /* (349) function_expression ::= literal_func */ + { 323, -3 }, /* (350) literal_func ::= noarg_func NK_LP NK_RP */ + { 323, -1 }, /* (351) literal_func ::= NOW */ + { 334, -1 }, /* (352) noarg_func ::= NOW */ + { 334, -1 }, /* (353) noarg_func ::= TODAY */ + { 334, -1 }, /* (354) noarg_func ::= TIMEZONE */ + { 334, -1 }, /* (355) noarg_func ::= DATABASE */ + { 334, -1 }, /* (356) noarg_func ::= CLIENT_VERSION */ + { 334, -1 }, /* (357) noarg_func ::= SERVER_VERSION */ + { 334, -1 }, /* (358) noarg_func ::= SERVER_STATUS */ + { 334, -1 }, /* (359) noarg_func ::= CURRENT_USER */ + { 334, -1 }, /* (360) noarg_func ::= USER */ + { 332, -1 }, /* (361) star_func ::= COUNT */ + { 332, -1 }, /* (362) star_func ::= FIRST */ + { 332, -1 }, /* (363) star_func ::= LAST */ + { 332, -1 }, /* (364) star_func ::= LAST_ROW */ + { 333, -1 }, /* (365) star_func_para_list ::= NK_STAR */ + { 333, -1 }, /* (366) star_func_para_list ::= other_para_list */ + { 335, -1 }, /* (367) other_para_list ::= star_func_para */ + { 335, -3 }, /* (368) other_para_list ::= other_para_list NK_COMMA star_func_para */ + { 336, -1 }, /* (369) star_func_para ::= expression */ + { 336, -3 }, /* (370) star_func_para ::= table_name NK_DOT NK_STAR */ + { 337, -3 }, /* (371) predicate ::= expression compare_op expression */ + { 337, -5 }, /* (372) predicate ::= expression BETWEEN expression AND expression */ + { 337, -6 }, /* (373) predicate ::= expression NOT BETWEEN expression AND expression */ + { 337, -3 }, /* (374) predicate ::= expression IS NULL */ + { 337, -4 }, /* (375) predicate ::= expression IS NOT NULL */ + { 337, -3 }, /* (376) predicate ::= expression in_op in_predicate_value */ + { 338, -1 }, /* (377) compare_op ::= NK_LT */ + { 338, -1 }, /* (378) compare_op ::= NK_GT */ + { 338, -1 }, /* (379) compare_op ::= NK_LE */ + { 338, -1 }, /* (380) compare_op ::= NK_GE */ + { 338, -1 }, /* (381) compare_op ::= NK_NE */ + { 338, -1 }, /* (382) compare_op ::= NK_EQ */ + { 338, -1 }, /* (383) compare_op ::= LIKE */ + { 338, -2 }, /* (384) compare_op ::= NOT LIKE */ + { 338, -1 }, /* (385) compare_op ::= MATCH */ + { 338, -1 }, /* (386) compare_op ::= NMATCH */ + { 338, -1 }, /* (387) compare_op ::= CONTAINS */ + { 339, -1 }, /* (388) in_op ::= IN */ + { 339, -2 }, /* (389) in_op ::= NOT IN */ + { 340, -3 }, /* (390) in_predicate_value ::= NK_LP expression_list NK_RP */ + { 341, -1 }, /* (391) boolean_value_expression ::= boolean_primary */ + { 341, -2 }, /* (392) boolean_value_expression ::= NOT boolean_primary */ + { 341, -3 }, /* (393) boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + { 341, -3 }, /* (394) boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + { 342, -1 }, /* (395) boolean_primary ::= predicate */ + { 342, -3 }, /* (396) boolean_primary ::= NK_LP boolean_value_expression NK_RP */ + { 343, -1 }, /* (397) common_expression ::= expression */ + { 343, -1 }, /* (398) common_expression ::= boolean_value_expression */ + { 344, 0 }, /* (399) from_clause_opt ::= */ + { 344, -2 }, /* (400) from_clause_opt ::= FROM table_reference_list */ + { 345, -1 }, /* (401) table_reference_list ::= table_reference */ + { 345, -3 }, /* (402) table_reference_list ::= table_reference_list NK_COMMA table_reference */ + { 346, -1 }, /* (403) table_reference ::= table_primary */ + { 346, -1 }, /* (404) table_reference ::= joined_table */ + { 347, -2 }, /* (405) table_primary ::= table_name alias_opt */ + { 347, -4 }, /* (406) table_primary ::= db_name NK_DOT table_name alias_opt */ + { 347, -2 }, /* (407) table_primary ::= subquery alias_opt */ + { 347, -1 }, /* (408) table_primary ::= parenthesized_joined_table */ + { 349, 0 }, /* (409) alias_opt ::= */ + { 349, -1 }, /* (410) alias_opt ::= table_alias */ + { 349, -2 }, /* (411) alias_opt ::= AS table_alias */ + { 350, -3 }, /* (412) parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + { 350, -3 }, /* (413) parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ + { 348, -6 }, /* (414) joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + { 351, 0 }, /* (415) join_type ::= */ + { 351, -1 }, /* (416) join_type ::= INNER */ + { 353, -12 }, /* (417) query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + { 354, 0 }, /* (418) set_quantifier_opt ::= */ + { 354, -1 }, /* (419) set_quantifier_opt ::= DISTINCT */ + { 354, -1 }, /* (420) set_quantifier_opt ::= ALL */ + { 355, -1 }, /* (421) select_list ::= select_item */ + { 355, -3 }, /* (422) select_list ::= select_list NK_COMMA select_item */ + { 363, -1 }, /* (423) select_item ::= NK_STAR */ + { 363, -1 }, /* (424) select_item ::= common_expression */ + { 363, -2 }, /* (425) select_item ::= common_expression column_alias */ + { 363, -3 }, /* (426) select_item ::= common_expression AS column_alias */ + { 363, -3 }, /* (427) select_item ::= table_name NK_DOT NK_STAR */ + { 321, 0 }, /* (428) where_clause_opt ::= */ + { 321, -2 }, /* (429) where_clause_opt ::= WHERE search_condition */ + { 356, 0 }, /* (430) partition_by_clause_opt ::= */ + { 356, -3 }, /* (431) partition_by_clause_opt ::= PARTITION BY expression_list */ + { 360, 0 }, /* (432) twindow_clause_opt ::= */ + { 360, -6 }, /* (433) twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + { 360, -4 }, /* (434) twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + { 360, -6 }, /* (435) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + { 360, -8 }, /* (436) twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + { 307, 0 }, /* (437) sliding_opt ::= */ + { 307, -4 }, /* (438) sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + { 359, 0 }, /* (439) fill_opt ::= */ + { 359, -4 }, /* (440) fill_opt ::= FILL NK_LP fill_mode NK_RP */ + { 359, -6 }, /* (441) fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + { 364, -1 }, /* (442) fill_mode ::= NONE */ + { 364, -1 }, /* (443) fill_mode ::= PREV */ + { 364, -1 }, /* (444) fill_mode ::= NULL */ + { 364, -1 }, /* (445) fill_mode ::= LINEAR */ + { 364, -1 }, /* (446) fill_mode ::= NEXT */ + { 361, 0 }, /* (447) group_by_clause_opt ::= */ + { 361, -3 }, /* (448) group_by_clause_opt ::= GROUP BY group_by_list */ + { 365, -1 }, /* (449) group_by_list ::= expression */ + { 365, -3 }, /* (450) group_by_list ::= group_by_list NK_COMMA expression */ + { 362, 0 }, /* (451) having_clause_opt ::= */ + { 362, -2 }, /* (452) having_clause_opt ::= HAVING search_condition */ + { 357, 0 }, /* (453) range_opt ::= */ + { 357, -6 }, /* (454) range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ + { 358, 0 }, /* (455) every_opt ::= */ + { 358, -4 }, /* (456) every_opt ::= EVERY NK_LP duration_literal NK_RP */ + { 312, -4 }, /* (457) query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + { 366, -1 }, /* (458) query_expression_body ::= query_primary */ + { 366, -4 }, /* (459) query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + { 366, -3 }, /* (460) query_expression_body ::= query_expression_body UNION query_expression_body */ + { 370, -1 }, /* (461) query_primary ::= query_specification */ + { 370, -6 }, /* (462) query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + { 367, 0 }, /* (463) order_by_clause_opt ::= */ + { 367, -3 }, /* (464) order_by_clause_opt ::= ORDER BY sort_specification_list */ + { 368, 0 }, /* (465) slimit_clause_opt ::= */ + { 368, -2 }, /* (466) slimit_clause_opt ::= SLIMIT NK_INTEGER */ + { 368, -4 }, /* (467) slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + { 368, -4 }, /* (468) slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 369, 0 }, /* (469) limit_clause_opt ::= */ + { 369, -2 }, /* (470) limit_clause_opt ::= LIMIT NK_INTEGER */ + { 369, -4 }, /* (471) limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ + { 369, -4 }, /* (472) limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + { 331, -3 }, /* (473) subquery ::= NK_LP query_expression NK_RP */ + { 352, -1 }, /* (474) search_condition ::= common_expression */ + { 371, -1 }, /* (475) sort_specification_list ::= sort_specification */ + { 371, -3 }, /* (476) sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ + { 372, -3 }, /* (477) sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + { 373, 0 }, /* (478) ordering_specification_opt ::= */ + { 373, -1 }, /* (479) ordering_specification_opt ::= ASC */ + { 373, -1 }, /* (480) ordering_specification_opt ::= DESC */ + { 374, 0 }, /* (481) null_ordering_opt ::= */ + { 374, -2 }, /* (482) null_ordering_opt ::= NULLS FIRST */ + { 374, -2 }, /* (483) null_ordering_opt ::= NULLS LAST */ }; static void yy_accept(yyParser*); /* Forward Declaration */ @@ -3433,30 +3386,30 @@ static YYACTIONTYPE yy_reduce( case 49: /* dnode_endpoint ::= NK_STRING */ case 50: /* dnode_endpoint ::= NK_ID */ yytestcase(yyruleno==50); case 51: /* dnode_endpoint ::= NK_IPTOKEN */ yytestcase(yyruleno==51); - case 306: /* db_name ::= NK_ID */ yytestcase(yyruleno==306); - case 307: /* table_name ::= NK_ID */ yytestcase(yyruleno==307); - case 308: /* column_name ::= NK_ID */ yytestcase(yyruleno==308); - case 309: /* function_name ::= NK_ID */ yytestcase(yyruleno==309); - case 310: /* table_alias ::= NK_ID */ yytestcase(yyruleno==310); - case 311: /* column_alias ::= NK_ID */ yytestcase(yyruleno==311); - case 312: /* user_name ::= NK_ID */ yytestcase(yyruleno==312); - case 313: /* index_name ::= NK_ID */ yytestcase(yyruleno==313); - case 314: /* topic_name ::= NK_ID */ yytestcase(yyruleno==314); - case 315: /* stream_name ::= NK_ID */ yytestcase(yyruleno==315); - case 316: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==316); - case 351: /* noarg_func ::= NOW */ yytestcase(yyruleno==351); - case 352: /* noarg_func ::= TODAY */ yytestcase(yyruleno==352); - case 353: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==353); - case 354: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==354); - case 355: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==355); - case 356: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==356); - case 357: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==357); - case 358: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==358); - case 359: /* noarg_func ::= USER */ yytestcase(yyruleno==359); - case 360: /* star_func ::= COUNT */ yytestcase(yyruleno==360); - case 361: /* star_func ::= FIRST */ yytestcase(yyruleno==361); - case 362: /* star_func ::= LAST */ yytestcase(yyruleno==362); - case 363: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==363); + case 307: /* db_name ::= NK_ID */ yytestcase(yyruleno==307); + case 308: /* table_name ::= NK_ID */ yytestcase(yyruleno==308); + case 309: /* column_name ::= NK_ID */ yytestcase(yyruleno==309); + case 310: /* function_name ::= NK_ID */ yytestcase(yyruleno==310); + case 311: /* table_alias ::= NK_ID */ yytestcase(yyruleno==311); + case 312: /* column_alias ::= NK_ID */ yytestcase(yyruleno==312); + case 313: /* user_name ::= NK_ID */ yytestcase(yyruleno==313); + case 314: /* index_name ::= NK_ID */ yytestcase(yyruleno==314); + case 315: /* topic_name ::= NK_ID */ yytestcase(yyruleno==315); + case 316: /* stream_name ::= NK_ID */ yytestcase(yyruleno==316); + case 317: /* cgroup_name ::= NK_ID */ yytestcase(yyruleno==317); + case 352: /* noarg_func ::= NOW */ yytestcase(yyruleno==352); + case 353: /* noarg_func ::= TODAY */ yytestcase(yyruleno==353); + case 354: /* noarg_func ::= TIMEZONE */ yytestcase(yyruleno==354); + case 355: /* noarg_func ::= DATABASE */ yytestcase(yyruleno==355); + case 356: /* noarg_func ::= CLIENT_VERSION */ yytestcase(yyruleno==356); + case 357: /* noarg_func ::= SERVER_VERSION */ yytestcase(yyruleno==357); + case 358: /* noarg_func ::= SERVER_STATUS */ yytestcase(yyruleno==358); + case 359: /* noarg_func ::= CURRENT_USER */ yytestcase(yyruleno==359); + case 360: /* noarg_func ::= USER */ yytestcase(yyruleno==360); + case 361: /* star_func ::= COUNT */ yytestcase(yyruleno==361); + case 362: /* star_func ::= FIRST */ yytestcase(yyruleno==362); + case 363: /* star_func ::= LAST */ yytestcase(yyruleno==363); + case 364: /* star_func ::= LAST_ROW */ yytestcase(yyruleno==364); { yylhsminor.yy329 = yymsp[0].minor.yy0; } yymsp[0].minor.yy329 = yylhsminor.yy329; break; @@ -3509,7 +3462,7 @@ static YYACTIONTYPE yy_reduce( case 69: /* exists_opt ::= */ yytestcase(yyruleno==69); case 248: /* analyze_opt ::= */ yytestcase(yyruleno==248); case 256: /* agg_func_opt ::= */ yytestcase(yyruleno==256); - case 417: /* set_quantifier_opt ::= */ yytestcase(yyruleno==417); + case 418: /* set_quantifier_opt ::= */ yytestcase(yyruleno==418); { yymsp[1].minor.yy737 = false; } break; case 68: /* exists_opt ::= IF EXISTS */ @@ -3649,10 +3602,10 @@ static YYACTIONTYPE yy_reduce( case 179: /* rollup_func_list ::= rollup_func_name */ yytestcase(yyruleno==179); case 184: /* col_name_list ::= col_name */ yytestcase(yyruleno==184); case 231: /* func_list ::= func */ yytestcase(yyruleno==231); - case 304: /* literal_list ::= signed_literal */ yytestcase(yyruleno==304); - case 366: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==366); - case 420: /* select_list ::= select_item */ yytestcase(yyruleno==420); - case 474: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==474); + case 305: /* literal_list ::= signed_literal */ yytestcase(yyruleno==305); + case 367: /* other_para_list ::= star_func_para */ yytestcase(yyruleno==367); + case 421: /* select_list ::= select_item */ yytestcase(yyruleno==421); + case 475: /* sort_specification_list ::= sort_specification */ yytestcase(yyruleno==475); { yylhsminor.yy424 = createNodeList(pCxt, yymsp[0].minor.yy212); } yymsp[0].minor.yy424 = yylhsminor.yy424; break; @@ -3661,10 +3614,10 @@ static YYACTIONTYPE yy_reduce( case 180: /* rollup_func_list ::= rollup_func_list NK_COMMA rollup_func_name */ yytestcase(yyruleno==180); case 185: /* col_name_list ::= col_name_list NK_COMMA col_name */ yytestcase(yyruleno==185); case 232: /* func_list ::= func_list NK_COMMA func */ yytestcase(yyruleno==232); - case 305: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==305); - case 367: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==367); - case 421: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==421); - case 475: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==475); + case 306: /* literal_list ::= literal_list NK_COMMA signed_literal */ yytestcase(yyruleno==306); + case 368: /* other_para_list ::= other_para_list NK_COMMA star_func_para */ yytestcase(yyruleno==368); + case 422: /* select_list ::= select_list NK_COMMA select_item */ yytestcase(yyruleno==422); + case 476: /* sort_specification_list ::= sort_specification_list NK_COMMA sort_specification */ yytestcase(yyruleno==476); { yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, yymsp[0].minor.yy212); } yymsp[-2].minor.yy424 = yylhsminor.yy424; break; @@ -3737,7 +3690,7 @@ static YYACTIONTYPE yy_reduce( { yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-1].minor.yy424, yymsp[0].minor.yy212); } yymsp[-1].minor.yy424 = yylhsminor.yy424; break; - case 128: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_tags_opt TAGS NK_LP expression_list NK_RP table_options */ + case 128: /* create_subtable_clause ::= not_exists_opt full_table_name USING full_table_name specific_cols_opt TAGS NK_LP expression_list NK_RP table_options */ { yylhsminor.yy212 = createCreateSubTableClause(pCxt, yymsp[-9].minor.yy737, yymsp[-8].minor.yy212, yymsp[-6].minor.yy212, yymsp[-5].minor.yy424, yymsp[-2].minor.yy424, yymsp[0].minor.yy212); } yymsp[-9].minor.yy212 = yylhsminor.yy212; break; @@ -3745,14 +3698,14 @@ static YYACTIONTYPE yy_reduce( { yylhsminor.yy212 = createDropTableClause(pCxt, yymsp[-1].minor.yy737, yymsp[0].minor.yy212); } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 132: /* specific_tags_opt ::= */ + case 132: /* specific_cols_opt ::= */ case 163: /* tags_def_opt ::= */ yytestcase(yyruleno==163); - case 429: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==429); - case 446: /* group_by_clause_opt ::= */ yytestcase(yyruleno==446); - case 462: /* order_by_clause_opt ::= */ yytestcase(yyruleno==462); + case 430: /* partition_by_clause_opt ::= */ yytestcase(yyruleno==430); + case 447: /* group_by_clause_opt ::= */ yytestcase(yyruleno==447); + case 463: /* order_by_clause_opt ::= */ yytestcase(yyruleno==463); { yymsp[1].minor.yy424 = NULL; } break; - case 133: /* specific_tags_opt ::= NK_LP col_name_list NK_RP */ + case 133: /* specific_cols_opt ::= NK_LP col_name_list NK_RP */ { yymsp[-2].minor.yy424 = yymsp[-1].minor.yy424; } break; case 134: /* full_table_name ::= table_name */ @@ -3839,7 +3792,7 @@ static YYACTIONTYPE yy_reduce( { yymsp[-5].minor.yy34 = createDataType(TSDB_DATA_TYPE_DECIMAL); } break; case 164: /* tags_def_opt ::= tags_def */ - case 365: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==365); + case 366: /* star_func_para_list ::= other_para_list */ yytestcase(yyruleno==366); { yylhsminor.yy424 = yymsp[0].minor.yy424; } yymsp[0].minor.yy424 = yylhsminor.yy424; break; @@ -3888,12 +3841,12 @@ static YYACTIONTYPE yy_reduce( { yymsp[-1].minor.yy245.type = TABLE_OPTION_TTL; yymsp[-1].minor.yy245.val = yymsp[0].minor.yy0; } break; case 177: /* duration_list ::= duration_literal */ - case 333: /* expression_list ::= expression */ yytestcase(yyruleno==333); + case 334: /* expression_list ::= expression */ yytestcase(yyruleno==334); { yylhsminor.yy424 = createNodeList(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy212)); } yymsp[0].minor.yy424 = yylhsminor.yy424; break; case 178: /* duration_list ::= duration_list NK_COMMA duration_literal */ - case 334: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==334); + case 335: /* expression_list ::= expression_list NK_COMMA expression */ yytestcase(yyruleno==335); { yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, releaseRawExprNode(pCxt, yymsp[0].minor.yy212)); } yymsp[-2].minor.yy424 = yylhsminor.yy424; break; @@ -4017,16 +3970,16 @@ static YYACTIONTYPE yy_reduce( break; case 222: /* like_pattern_opt ::= */ case 262: /* into_opt ::= */ yytestcase(yyruleno==262); - case 398: /* from_clause_opt ::= */ yytestcase(yyruleno==398); - case 427: /* where_clause_opt ::= */ yytestcase(yyruleno==427); - case 431: /* twindow_clause_opt ::= */ yytestcase(yyruleno==431); - case 436: /* sliding_opt ::= */ yytestcase(yyruleno==436); - case 438: /* fill_opt ::= */ yytestcase(yyruleno==438); - case 450: /* having_clause_opt ::= */ yytestcase(yyruleno==450); - case 452: /* range_opt ::= */ yytestcase(yyruleno==452); - case 454: /* every_opt ::= */ yytestcase(yyruleno==454); - case 464: /* slimit_clause_opt ::= */ yytestcase(yyruleno==464); - case 468: /* limit_clause_opt ::= */ yytestcase(yyruleno==468); + case 399: /* from_clause_opt ::= */ yytestcase(yyruleno==399); + case 428: /* where_clause_opt ::= */ yytestcase(yyruleno==428); + case 432: /* twindow_clause_opt ::= */ yytestcase(yyruleno==432); + case 437: /* sliding_opt ::= */ yytestcase(yyruleno==437); + case 439: /* fill_opt ::= */ yytestcase(yyruleno==439); + case 451: /* having_clause_opt ::= */ yytestcase(yyruleno==451); + case 453: /* range_opt ::= */ yytestcase(yyruleno==453); + case 455: /* every_opt ::= */ yytestcase(yyruleno==455); + case 465: /* slimit_clause_opt ::= */ yytestcase(yyruleno==465); + case 469: /* limit_clause_opt ::= */ yytestcase(yyruleno==469); { yymsp[1].minor.yy212 = NULL; } break; case 223: /* like_pattern_opt ::= LIKE NK_STRING */ @@ -4101,7 +4054,7 @@ static YYACTIONTYPE yy_reduce( break; case 249: /* analyze_opt ::= ANALYZE */ case 257: /* agg_func_opt ::= AGGREGATE */ yytestcase(yyruleno==257); - case 418: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==418); + case 419: /* set_quantifier_opt ::= DISTINCT */ yytestcase(yyruleno==419); { yymsp[0].minor.yy737 = true; } break; case 250: /* explain_options ::= */ @@ -4137,9 +4090,9 @@ static YYACTIONTYPE yy_reduce( { pCxt->pRootNode = createDropStreamStmt(pCxt, yymsp[-1].minor.yy737, &yymsp[0].minor.yy329); } break; case 263: /* into_opt ::= INTO full_table_name */ - case 399: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==399); - case 428: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==428); - case 451: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==451); + case 400: /* from_clause_opt ::= FROM table_reference_list */ yytestcase(yyruleno==400); + case 429: /* where_clause_opt ::= WHERE search_condition */ yytestcase(yyruleno==429); + case 452: /* having_clause_opt ::= HAVING search_condition */ yytestcase(yyruleno==452); { yymsp[-1].minor.yy212 = yymsp[0].minor.yy212; } break; case 265: /* stream_options ::= stream_options TRIGGER AT_ONCE */ @@ -4188,67 +4141,70 @@ static YYACTIONTYPE yy_reduce( case 280: /* cmd ::= DELETE FROM full_table_name where_clause_opt */ { pCxt->pRootNode = createDeleteStmt(pCxt, yymsp[-1].minor.yy212, yymsp[0].minor.yy212); } break; - case 282: /* literal ::= NK_INTEGER */ + case 282: /* cmd ::= INSERT INTO full_table_name specific_cols_opt query_expression */ +{ pCxt->pRootNode = createInsertStmt(pCxt, yymsp[-2].minor.yy212, yymsp[-1].minor.yy424, yymsp[0].minor.yy212); } + break; + case 283: /* literal ::= NK_INTEGER */ { yylhsminor.yy212 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 283: /* literal ::= NK_FLOAT */ + case 284: /* literal ::= NK_FLOAT */ { yylhsminor.yy212 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 284: /* literal ::= NK_STRING */ + case 285: /* literal ::= NK_STRING */ { yylhsminor.yy212 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 285: /* literal ::= NK_BOOL */ + case 286: /* literal ::= NK_BOOL */ { yylhsminor.yy212 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 286: /* literal ::= TIMESTAMP NK_STRING */ + case 287: /* literal ::= TIMESTAMP NK_STRING */ { yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0)); } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 287: /* literal ::= duration_literal */ - case 297: /* signed_literal ::= signed */ yytestcase(yyruleno==297); - case 317: /* expression ::= literal */ yytestcase(yyruleno==317); - case 318: /* expression ::= pseudo_column */ yytestcase(yyruleno==318); - case 319: /* expression ::= column_reference */ yytestcase(yyruleno==319); - case 320: /* expression ::= function_expression */ yytestcase(yyruleno==320); - case 321: /* expression ::= subquery */ yytestcase(yyruleno==321); - case 348: /* function_expression ::= literal_func */ yytestcase(yyruleno==348); - case 390: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==390); - case 394: /* boolean_primary ::= predicate */ yytestcase(yyruleno==394); - case 396: /* common_expression ::= expression */ yytestcase(yyruleno==396); - case 397: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==397); - case 400: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==400); - case 402: /* table_reference ::= table_primary */ yytestcase(yyruleno==402); - case 403: /* table_reference ::= joined_table */ yytestcase(yyruleno==403); - case 407: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==407); - case 457: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==457); - case 460: /* query_primary ::= query_specification */ yytestcase(yyruleno==460); + case 288: /* literal ::= duration_literal */ + case 298: /* signed_literal ::= signed */ yytestcase(yyruleno==298); + case 318: /* expression ::= literal */ yytestcase(yyruleno==318); + case 319: /* expression ::= pseudo_column */ yytestcase(yyruleno==319); + case 320: /* expression ::= column_reference */ yytestcase(yyruleno==320); + case 321: /* expression ::= function_expression */ yytestcase(yyruleno==321); + case 322: /* expression ::= subquery */ yytestcase(yyruleno==322); + case 349: /* function_expression ::= literal_func */ yytestcase(yyruleno==349); + case 391: /* boolean_value_expression ::= boolean_primary */ yytestcase(yyruleno==391); + case 395: /* boolean_primary ::= predicate */ yytestcase(yyruleno==395); + case 397: /* common_expression ::= expression */ yytestcase(yyruleno==397); + case 398: /* common_expression ::= boolean_value_expression */ yytestcase(yyruleno==398); + case 401: /* table_reference_list ::= table_reference */ yytestcase(yyruleno==401); + case 403: /* table_reference ::= table_primary */ yytestcase(yyruleno==403); + case 404: /* table_reference ::= joined_table */ yytestcase(yyruleno==404); + case 408: /* table_primary ::= parenthesized_joined_table */ yytestcase(yyruleno==408); + case 458: /* query_expression_body ::= query_primary */ yytestcase(yyruleno==458); + case 461: /* query_primary ::= query_specification */ yytestcase(yyruleno==461); { yylhsminor.yy212 = yymsp[0].minor.yy212; } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 288: /* literal ::= NULL */ + case 289: /* literal ::= NULL */ { yylhsminor.yy212 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 289: /* literal ::= NK_QUESTION */ + case 290: /* literal ::= NK_QUESTION */ { yylhsminor.yy212 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createPlaceholderValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 290: /* duration_literal ::= NK_VARIABLE */ + case 291: /* duration_literal ::= NK_VARIABLE */ { yylhsminor.yy212 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createDurationValueNode(pCxt, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 291: /* signed ::= NK_INTEGER */ + case 292: /* signed ::= NK_INTEGER */ { yylhsminor.yy212 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 292: /* signed ::= NK_PLUS NK_INTEGER */ + case 293: /* signed ::= NK_PLUS NK_INTEGER */ { yymsp[-1].minor.yy212 = createValueNode(pCxt, TSDB_DATA_TYPE_BIGINT, &yymsp[0].minor.yy0); } break; - case 293: /* signed ::= NK_MINUS NK_INTEGER */ + case 294: /* 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; @@ -4256,14 +4212,14 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 294: /* signed ::= NK_FLOAT */ + case 295: /* signed ::= NK_FLOAT */ { yylhsminor.yy212 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 295: /* signed ::= NK_PLUS NK_FLOAT */ + case 296: /* signed ::= NK_PLUS NK_FLOAT */ { yymsp[-1].minor.yy212 = createValueNode(pCxt, TSDB_DATA_TYPE_DOUBLE, &yymsp[0].minor.yy0); } break; - case 296: /* signed ::= NK_MINUS NK_FLOAT */ + case 297: /* 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; @@ -4271,49 +4227,49 @@ static YYACTIONTYPE yy_reduce( } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 298: /* signed_literal ::= NK_STRING */ + case 299: /* signed_literal ::= NK_STRING */ { yylhsminor.yy212 = createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 299: /* signed_literal ::= NK_BOOL */ + case 300: /* signed_literal ::= NK_BOOL */ { yylhsminor.yy212 = createValueNode(pCxt, TSDB_DATA_TYPE_BOOL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 300: /* signed_literal ::= TIMESTAMP NK_STRING */ + case 301: /* signed_literal ::= TIMESTAMP NK_STRING */ { yymsp[-1].minor.yy212 = createValueNode(pCxt, TSDB_DATA_TYPE_TIMESTAMP, &yymsp[0].minor.yy0); } break; - case 301: /* signed_literal ::= duration_literal */ - case 303: /* signed_literal ::= literal_func */ yytestcase(yyruleno==303); - case 368: /* star_func_para ::= expression */ yytestcase(yyruleno==368); - case 423: /* select_item ::= common_expression */ yytestcase(yyruleno==423); - case 473: /* search_condition ::= common_expression */ yytestcase(yyruleno==473); + case 302: /* signed_literal ::= duration_literal */ + case 304: /* signed_literal ::= literal_func */ yytestcase(yyruleno==304); + case 369: /* star_func_para ::= expression */ yytestcase(yyruleno==369); + case 424: /* select_item ::= common_expression */ yytestcase(yyruleno==424); + case 474: /* search_condition ::= common_expression */ yytestcase(yyruleno==474); { yylhsminor.yy212 = releaseRawExprNode(pCxt, yymsp[0].minor.yy212); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 302: /* signed_literal ::= NULL */ + case 303: /* signed_literal ::= NULL */ { yylhsminor.yy212 = createValueNode(pCxt, TSDB_DATA_TYPE_NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 322: /* expression ::= NK_LP expression NK_RP */ - case 395: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==395); + case 323: /* expression ::= NK_LP expression NK_RP */ + case 396: /* boolean_primary ::= NK_LP boolean_value_expression NK_RP */ yytestcase(yyruleno==396); { yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, releaseRawExprNode(pCxt, yymsp[-1].minor.yy212)); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 323: /* expression ::= NK_PLUS expression */ + case 324: /* expression ::= NK_PLUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, releaseRawExprNode(pCxt, yymsp[0].minor.yy212)); } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 324: /* expression ::= NK_MINUS expression */ + case 325: /* expression ::= NK_MINUS expression */ { SToken t = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &t, createOperatorNode(pCxt, OP_TYPE_MINUS, releaseRawExprNode(pCxt, yymsp[0].minor.yy212), NULL)); } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 325: /* expression ::= expression NK_PLUS expression */ + case 326: /* expression ::= expression NK_PLUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4321,7 +4277,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 326: /* expression ::= expression NK_MINUS expression */ + case 327: /* expression ::= expression NK_MINUS expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4329,7 +4285,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 327: /* expression ::= expression NK_STAR expression */ + case 328: /* expression ::= expression NK_STAR expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4337,7 +4293,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 328: /* expression ::= expression NK_SLASH expression */ + case 329: /* expression ::= expression NK_SLASH expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4345,7 +4301,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 329: /* expression ::= expression NK_REM expression */ + case 330: /* expression ::= expression NK_REM expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4353,14 +4309,14 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 330: /* expression ::= column_reference NK_ARROW NK_STRING */ + case 331: /* expression ::= column_reference NK_ARROW NK_STRING */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); yylhsminor.yy212 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_JSON_GET_VALUE, releaseRawExprNode(pCxt, yymsp[-2].minor.yy212), createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[0].minor.yy0))); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 331: /* expression ::= expression NK_BITAND expression */ + case 332: /* expression ::= expression NK_BITAND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4368,7 +4324,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 332: /* expression ::= expression NK_BITOR expression */ + case 333: /* expression ::= expression NK_BITOR expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4376,53 +4332,53 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 335: /* column_reference ::= column_name */ + case 336: /* column_reference ::= column_name */ { yylhsminor.yy212 = createRawExprNode(pCxt, &yymsp[0].minor.yy329, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy329)); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 336: /* column_reference ::= table_name NK_DOT column_name */ + case 337: /* column_reference ::= table_name NK_DOT column_name */ { yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy329, &yymsp[0].minor.yy329, createColumnNode(pCxt, &yymsp[-2].minor.yy329, &yymsp[0].minor.yy329)); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 337: /* pseudo_column ::= ROWTS */ - case 338: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==338); - case 340: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==340); - case 341: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==341); - case 342: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==342); - case 343: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==343); - case 344: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==344); - case 350: /* literal_func ::= NOW */ yytestcase(yyruleno==350); + case 338: /* pseudo_column ::= ROWTS */ + case 339: /* pseudo_column ::= TBNAME */ yytestcase(yyruleno==339); + case 341: /* pseudo_column ::= QSTARTTS */ yytestcase(yyruleno==341); + case 342: /* pseudo_column ::= QENDTS */ yytestcase(yyruleno==342); + case 343: /* pseudo_column ::= WSTARTTS */ yytestcase(yyruleno==343); + case 344: /* pseudo_column ::= WENDTS */ yytestcase(yyruleno==344); + case 345: /* pseudo_column ::= WDURATION */ yytestcase(yyruleno==345); + case 351: /* literal_func ::= NOW */ yytestcase(yyruleno==351); { yylhsminor.yy212 = createRawExprNode(pCxt, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, NULL)); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 339: /* pseudo_column ::= table_name NK_DOT TBNAME */ + case 340: /* pseudo_column ::= table_name NK_DOT TBNAME */ { yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy329, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[0].minor.yy0, createNodeList(pCxt, createValueNode(pCxt, TSDB_DATA_TYPE_BINARY, &yymsp[-2].minor.yy329)))); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 345: /* function_expression ::= function_name NK_LP expression_list NK_RP */ - case 346: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==346); + case 346: /* function_expression ::= function_name NK_LP expression_list NK_RP */ + case 347: /* function_expression ::= star_func NK_LP star_func_para_list NK_RP */ yytestcase(yyruleno==347); { yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-3].minor.yy329, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-3].minor.yy329, yymsp[-1].minor.yy424)); } yymsp[-3].minor.yy212 = yylhsminor.yy212; break; - case 347: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ + case 348: /* function_expression ::= CAST NK_LP expression AS type_name NK_RP */ { yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-5].minor.yy0, &yymsp[0].minor.yy0, createCastFunctionNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy212), yymsp[-1].minor.yy34)); } yymsp[-5].minor.yy212 = yylhsminor.yy212; break; - case 349: /* literal_func ::= noarg_func NK_LP NK_RP */ + case 350: /* literal_func ::= noarg_func NK_LP NK_RP */ { yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy329, &yymsp[0].minor.yy0, createFunctionNode(pCxt, &yymsp[-2].minor.yy329, NULL)); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 364: /* star_func_para_list ::= NK_STAR */ + case 365: /* star_func_para_list ::= NK_STAR */ { yylhsminor.yy424 = createNodeList(pCxt, createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0)); } yymsp[0].minor.yy424 = yylhsminor.yy424; break; - case 369: /* star_func_para ::= table_name NK_DOT NK_STAR */ - case 426: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==426); + case 370: /* star_func_para ::= table_name NK_DOT NK_STAR */ + case 427: /* select_item ::= table_name NK_DOT NK_STAR */ yytestcase(yyruleno==427); { yylhsminor.yy212 = createColumnNode(pCxt, &yymsp[-2].minor.yy329, &yymsp[0].minor.yy0); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 370: /* predicate ::= expression compare_op expression */ - case 375: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==375); + case 371: /* predicate ::= expression compare_op expression */ + case 376: /* predicate ::= expression in_op in_predicate_value */ yytestcase(yyruleno==376); { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4430,7 +4386,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 371: /* predicate ::= expression BETWEEN expression AND expression */ + case 372: /* predicate ::= expression BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-4].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4438,7 +4394,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-4].minor.yy212 = yylhsminor.yy212; break; - case 372: /* predicate ::= expression NOT BETWEEN expression AND expression */ + case 373: /* predicate ::= expression NOT BETWEEN expression AND expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-5].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4446,71 +4402,71 @@ static YYACTIONTYPE yy_reduce( } yymsp[-5].minor.yy212 = yylhsminor.yy212; break; - case 373: /* predicate ::= expression IS NULL */ + case 374: /* predicate ::= expression IS NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); yylhsminor.yy212 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NULL, releaseRawExprNode(pCxt, yymsp[-2].minor.yy212), NULL)); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 374: /* predicate ::= expression IS NOT NULL */ + case 375: /* predicate ::= expression IS NOT NULL */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-3].minor.yy212); yylhsminor.yy212 = createRawExprNodeExt(pCxt, &s, &yymsp[0].minor.yy0, createOperatorNode(pCxt, OP_TYPE_IS_NOT_NULL, releaseRawExprNode(pCxt, yymsp[-3].minor.yy212), NULL)); } yymsp[-3].minor.yy212 = yylhsminor.yy212; break; - case 376: /* compare_op ::= NK_LT */ + case 377: /* compare_op ::= NK_LT */ { yymsp[0].minor.yy290 = OP_TYPE_LOWER_THAN; } break; - case 377: /* compare_op ::= NK_GT */ + case 378: /* compare_op ::= NK_GT */ { yymsp[0].minor.yy290 = OP_TYPE_GREATER_THAN; } break; - case 378: /* compare_op ::= NK_LE */ + case 379: /* compare_op ::= NK_LE */ { yymsp[0].minor.yy290 = OP_TYPE_LOWER_EQUAL; } break; - case 379: /* compare_op ::= NK_GE */ + case 380: /* compare_op ::= NK_GE */ { yymsp[0].minor.yy290 = OP_TYPE_GREATER_EQUAL; } break; - case 380: /* compare_op ::= NK_NE */ + case 381: /* compare_op ::= NK_NE */ { yymsp[0].minor.yy290 = OP_TYPE_NOT_EQUAL; } break; - case 381: /* compare_op ::= NK_EQ */ + case 382: /* compare_op ::= NK_EQ */ { yymsp[0].minor.yy290 = OP_TYPE_EQUAL; } break; - case 382: /* compare_op ::= LIKE */ + case 383: /* compare_op ::= LIKE */ { yymsp[0].minor.yy290 = OP_TYPE_LIKE; } break; - case 383: /* compare_op ::= NOT LIKE */ + case 384: /* compare_op ::= NOT LIKE */ { yymsp[-1].minor.yy290 = OP_TYPE_NOT_LIKE; } break; - case 384: /* compare_op ::= MATCH */ + case 385: /* compare_op ::= MATCH */ { yymsp[0].minor.yy290 = OP_TYPE_MATCH; } break; - case 385: /* compare_op ::= NMATCH */ + case 386: /* compare_op ::= NMATCH */ { yymsp[0].minor.yy290 = OP_TYPE_NMATCH; } break; - case 386: /* compare_op ::= CONTAINS */ + case 387: /* compare_op ::= CONTAINS */ { yymsp[0].minor.yy290 = OP_TYPE_JSON_CONTAINS; } break; - case 387: /* in_op ::= IN */ + case 388: /* in_op ::= IN */ { yymsp[0].minor.yy290 = OP_TYPE_IN; } break; - case 388: /* in_op ::= NOT IN */ + case 389: /* in_op ::= NOT IN */ { yymsp[-1].minor.yy290 = OP_TYPE_NOT_IN; } break; - case 389: /* in_predicate_value ::= NK_LP expression_list NK_RP */ + case 390: /* in_predicate_value ::= NK_LP expression_list NK_RP */ { yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 391: /* boolean_value_expression ::= NOT boolean_primary */ + case 392: /* boolean_value_expression ::= NOT boolean_primary */ { SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-1].minor.yy0, &e, createLogicConditionNode(pCxt, LOGIC_COND_TYPE_NOT, releaseRawExprNode(pCxt, yymsp[0].minor.yy212), NULL)); } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 392: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ + case 393: /* boolean_value_expression ::= boolean_value_expression OR boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4518,7 +4474,7 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 393: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ + case 394: /* boolean_value_expression ::= boolean_value_expression AND boolean_value_expression */ { SToken s = getTokenFromRawExprNode(pCxt, yymsp[-2].minor.yy212); SToken e = getTokenFromRawExprNode(pCxt, yymsp[0].minor.yy212); @@ -4526,47 +4482,47 @@ static YYACTIONTYPE yy_reduce( } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 401: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ + case 402: /* table_reference_list ::= table_reference_list NK_COMMA table_reference */ { yylhsminor.yy212 = createJoinTableNode(pCxt, JOIN_TYPE_INNER, yymsp[-2].minor.yy212, yymsp[0].minor.yy212, NULL); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 404: /* table_primary ::= table_name alias_opt */ + case 405: /* table_primary ::= table_name alias_opt */ { yylhsminor.yy212 = createRealTableNode(pCxt, NULL, &yymsp[-1].minor.yy329, &yymsp[0].minor.yy329); } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 405: /* table_primary ::= db_name NK_DOT table_name alias_opt */ + case 406: /* table_primary ::= db_name NK_DOT table_name alias_opt */ { yylhsminor.yy212 = createRealTableNode(pCxt, &yymsp[-3].minor.yy329, &yymsp[-1].minor.yy329, &yymsp[0].minor.yy329); } yymsp[-3].minor.yy212 = yylhsminor.yy212; break; - case 406: /* table_primary ::= subquery alias_opt */ + case 407: /* table_primary ::= subquery alias_opt */ { yylhsminor.yy212 = createTempTableNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy212), &yymsp[0].minor.yy329); } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 408: /* alias_opt ::= */ + case 409: /* alias_opt ::= */ { yymsp[1].minor.yy329 = nil_token; } break; - case 409: /* alias_opt ::= table_alias */ + case 410: /* alias_opt ::= table_alias */ { yylhsminor.yy329 = yymsp[0].minor.yy329; } yymsp[0].minor.yy329 = yylhsminor.yy329; break; - case 410: /* alias_opt ::= AS table_alias */ + case 411: /* alias_opt ::= AS table_alias */ { yymsp[-1].minor.yy329 = yymsp[0].minor.yy329; } break; - case 411: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ - case 412: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==412); + case 412: /* parenthesized_joined_table ::= NK_LP joined_table NK_RP */ + case 413: /* parenthesized_joined_table ::= NK_LP parenthesized_joined_table NK_RP */ yytestcase(yyruleno==413); { yymsp[-2].minor.yy212 = yymsp[-1].minor.yy212; } break; - case 413: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ + case 414: /* joined_table ::= table_reference join_type JOIN table_reference ON search_condition */ { yylhsminor.yy212 = createJoinTableNode(pCxt, yymsp[-4].minor.yy162, yymsp[-5].minor.yy212, yymsp[-2].minor.yy212, yymsp[0].minor.yy212); } yymsp[-5].minor.yy212 = yylhsminor.yy212; break; - case 414: /* join_type ::= */ + case 415: /* join_type ::= */ { yymsp[1].minor.yy162 = JOIN_TYPE_INNER; } break; - case 415: /* join_type ::= INNER */ + case 416: /* join_type ::= INNER */ { yymsp[0].minor.yy162 = JOIN_TYPE_INNER; } break; - case 416: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ + case 417: /* query_specification ::= SELECT set_quantifier_opt select_list from_clause_opt where_clause_opt partition_by_clause_opt range_opt every_opt fill_opt twindow_clause_opt group_by_clause_opt having_clause_opt */ { yymsp[-11].minor.yy212 = createSelectStmt(pCxt, yymsp[-10].minor.yy737, yymsp[-9].minor.yy424, yymsp[-8].minor.yy212); yymsp[-11].minor.yy212 = addWhereClause(pCxt, yymsp[-11].minor.yy212, yymsp[-7].minor.yy212); @@ -4579,75 +4535,75 @@ static YYACTIONTYPE yy_reduce( yymsp[-11].minor.yy212 = addFillClause(pCxt, yymsp[-11].minor.yy212, yymsp[-3].minor.yy212); } break; - case 419: /* set_quantifier_opt ::= ALL */ + case 420: /* set_quantifier_opt ::= ALL */ { yymsp[0].minor.yy737 = false; } break; - case 422: /* select_item ::= NK_STAR */ + case 423: /* select_item ::= NK_STAR */ { yylhsminor.yy212 = createColumnNode(pCxt, NULL, &yymsp[0].minor.yy0); } yymsp[0].minor.yy212 = yylhsminor.yy212; break; - case 424: /* select_item ::= common_expression column_alias */ + case 425: /* select_item ::= common_expression column_alias */ { yylhsminor.yy212 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy212), &yymsp[0].minor.yy329); } yymsp[-1].minor.yy212 = yylhsminor.yy212; break; - case 425: /* select_item ::= common_expression AS column_alias */ + case 426: /* select_item ::= common_expression AS column_alias */ { yylhsminor.yy212 = setProjectionAlias(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy212), &yymsp[0].minor.yy329); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 430: /* partition_by_clause_opt ::= PARTITION BY expression_list */ - case 447: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==447); - case 463: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==463); + case 431: /* partition_by_clause_opt ::= PARTITION BY expression_list */ + case 448: /* group_by_clause_opt ::= GROUP BY group_by_list */ yytestcase(yyruleno==448); + case 464: /* order_by_clause_opt ::= ORDER BY sort_specification_list */ yytestcase(yyruleno==464); { yymsp[-2].minor.yy424 = yymsp[0].minor.yy424; } break; - case 432: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ + case 433: /* twindow_clause_opt ::= SESSION NK_LP column_reference NK_COMMA duration_literal NK_RP */ { yymsp[-5].minor.yy212 = createSessionWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy212), releaseRawExprNode(pCxt, yymsp[-1].minor.yy212)); } break; - case 433: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ + case 434: /* twindow_clause_opt ::= STATE_WINDOW NK_LP expression NK_RP */ { yymsp[-3].minor.yy212 = createStateWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-1].minor.yy212)); } break; - case 434: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ + case 435: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-5].minor.yy212 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy212), NULL, yymsp[-1].minor.yy212, yymsp[0].minor.yy212); } break; - case 435: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ + case 436: /* twindow_clause_opt ::= INTERVAL NK_LP duration_literal NK_COMMA duration_literal NK_RP sliding_opt fill_opt */ { yymsp[-7].minor.yy212 = createIntervalWindowNode(pCxt, releaseRawExprNode(pCxt, yymsp[-5].minor.yy212), releaseRawExprNode(pCxt, yymsp[-3].minor.yy212), yymsp[-1].minor.yy212, yymsp[0].minor.yy212); } break; - case 437: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ - case 455: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==455); + case 438: /* sliding_opt ::= SLIDING NK_LP duration_literal NK_RP */ + case 456: /* every_opt ::= EVERY NK_LP duration_literal NK_RP */ yytestcase(yyruleno==456); { yymsp[-3].minor.yy212 = releaseRawExprNode(pCxt, yymsp[-1].minor.yy212); } break; - case 439: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ + case 440: /* fill_opt ::= FILL NK_LP fill_mode NK_RP */ { yymsp[-3].minor.yy212 = createFillNode(pCxt, yymsp[-1].minor.yy294, NULL); } break; - case 440: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ + case 441: /* fill_opt ::= FILL NK_LP VALUE NK_COMMA literal_list NK_RP */ { yymsp[-5].minor.yy212 = createFillNode(pCxt, FILL_MODE_VALUE, createNodeListNode(pCxt, yymsp[-1].minor.yy424)); } break; - case 441: /* fill_mode ::= NONE */ + case 442: /* fill_mode ::= NONE */ { yymsp[0].minor.yy294 = FILL_MODE_NONE; } break; - case 442: /* fill_mode ::= PREV */ + case 443: /* fill_mode ::= PREV */ { yymsp[0].minor.yy294 = FILL_MODE_PREV; } break; - case 443: /* fill_mode ::= NULL */ + case 444: /* fill_mode ::= NULL */ { yymsp[0].minor.yy294 = FILL_MODE_NULL; } break; - case 444: /* fill_mode ::= LINEAR */ + case 445: /* fill_mode ::= LINEAR */ { yymsp[0].minor.yy294 = FILL_MODE_LINEAR; } break; - case 445: /* fill_mode ::= NEXT */ + case 446: /* fill_mode ::= NEXT */ { yymsp[0].minor.yy294 = FILL_MODE_NEXT; } break; - case 448: /* group_by_list ::= expression */ + case 449: /* group_by_list ::= expression */ { yylhsminor.yy424 = createNodeList(pCxt, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy212))); } yymsp[0].minor.yy424 = yylhsminor.yy424; break; - case 449: /* group_by_list ::= group_by_list NK_COMMA expression */ + case 450: /* group_by_list ::= group_by_list NK_COMMA expression */ { yylhsminor.yy424 = addNodeToList(pCxt, yymsp[-2].minor.yy424, createGroupingSetNode(pCxt, releaseRawExprNode(pCxt, yymsp[0].minor.yy212))); } yymsp[-2].minor.yy424 = yylhsminor.yy424; break; - case 453: /* range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ + case 454: /* range_opt ::= RANGE NK_LP expression NK_COMMA expression NK_RP */ { yymsp[-5].minor.yy212 = createInterpTimeRange(pCxt, releaseRawExprNode(pCxt, yymsp[-3].minor.yy212), releaseRawExprNode(pCxt, yymsp[-1].minor.yy212)); } break; - case 456: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ + case 457: /* query_expression ::= query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt */ { yylhsminor.yy212 = addOrderByClause(pCxt, yymsp[-3].minor.yy212, yymsp[-2].minor.yy424); yylhsminor.yy212 = addSlimitClause(pCxt, yylhsminor.yy212, yymsp[-1].minor.yy212); @@ -4655,56 +4611,56 @@ static YYACTIONTYPE yy_reduce( } yymsp[-3].minor.yy212 = yylhsminor.yy212; break; - case 458: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ + case 459: /* query_expression_body ::= query_expression_body UNION ALL query_expression_body */ { yylhsminor.yy212 = createSetOperator(pCxt, SET_OP_TYPE_UNION_ALL, yymsp[-3].minor.yy212, yymsp[0].minor.yy212); } yymsp[-3].minor.yy212 = yylhsminor.yy212; break; - case 459: /* query_expression_body ::= query_expression_body UNION query_expression_body */ + case 460: /* query_expression_body ::= query_expression_body UNION query_expression_body */ { yylhsminor.yy212 = createSetOperator(pCxt, SET_OP_TYPE_UNION, yymsp[-2].minor.yy212, yymsp[0].minor.yy212); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 461: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ + case 462: /* query_primary ::= NK_LP query_expression_body order_by_clause_opt slimit_clause_opt limit_clause_opt NK_RP */ { yymsp[-5].minor.yy212 = yymsp[-4].minor.yy212; } yy_destructor(yypParser,367,&yymsp[-3].minor); yy_destructor(yypParser,368,&yymsp[-2].minor); yy_destructor(yypParser,369,&yymsp[-1].minor); break; - case 465: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ - case 469: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==469); + case 466: /* slimit_clause_opt ::= SLIMIT NK_INTEGER */ + case 470: /* limit_clause_opt ::= LIMIT NK_INTEGER */ yytestcase(yyruleno==470); { yymsp[-1].minor.yy212 = createLimitNode(pCxt, &yymsp[0].minor.yy0, NULL); } break; - case 466: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ - case 470: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==470); + case 467: /* slimit_clause_opt ::= SLIMIT NK_INTEGER SOFFSET NK_INTEGER */ + case 471: /* limit_clause_opt ::= LIMIT NK_INTEGER OFFSET NK_INTEGER */ yytestcase(yyruleno==471); { yymsp[-3].minor.yy212 = createLimitNode(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0); } break; - case 467: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ - case 471: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==471); + case 468: /* slimit_clause_opt ::= SLIMIT NK_INTEGER NK_COMMA NK_INTEGER */ + case 472: /* limit_clause_opt ::= LIMIT NK_INTEGER NK_COMMA NK_INTEGER */ yytestcase(yyruleno==472); { yymsp[-3].minor.yy212 = createLimitNode(pCxt, &yymsp[0].minor.yy0, &yymsp[-2].minor.yy0); } break; - case 472: /* subquery ::= NK_LP query_expression NK_RP */ + case 473: /* subquery ::= NK_LP query_expression NK_RP */ { yylhsminor.yy212 = createRawExprNodeExt(pCxt, &yymsp[-2].minor.yy0, &yymsp[0].minor.yy0, yymsp[-1].minor.yy212); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 476: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ + case 477: /* sort_specification ::= expression ordering_specification_opt null_ordering_opt */ { yylhsminor.yy212 = createOrderByExprNode(pCxt, releaseRawExprNode(pCxt, yymsp[-2].minor.yy212), yymsp[-1].minor.yy188, yymsp[0].minor.yy607); } yymsp[-2].minor.yy212 = yylhsminor.yy212; break; - case 477: /* ordering_specification_opt ::= */ + case 478: /* ordering_specification_opt ::= */ { yymsp[1].minor.yy188 = ORDER_ASC; } break; - case 478: /* ordering_specification_opt ::= ASC */ + case 479: /* ordering_specification_opt ::= ASC */ { yymsp[0].minor.yy188 = ORDER_ASC; } break; - case 479: /* ordering_specification_opt ::= DESC */ + case 480: /* ordering_specification_opt ::= DESC */ { yymsp[0].minor.yy188 = ORDER_DESC; } break; - case 480: /* null_ordering_opt ::= */ + case 481: /* null_ordering_opt ::= */ { yymsp[1].minor.yy607 = NULL_ORDER_DEFAULT; } break; - case 481: /* null_ordering_opt ::= NULLS FIRST */ + case 482: /* null_ordering_opt ::= NULLS FIRST */ { yymsp[-1].minor.yy607 = NULL_ORDER_FIRST; } break; - case 482: /* null_ordering_opt ::= NULLS LAST */ + case 483: /* null_ordering_opt ::= NULLS LAST */ { yymsp[-1].minor.yy607 = NULL_ORDER_LAST; } break; default: diff --git a/source/libs/parser/test/parExplainToSyncdbTest.cpp b/source/libs/parser/test/parExplainToSyncdbTest.cpp index 4a5a92e62165bc3cec5868e3adf8f3d4246508a2..72083c68cafa78ed483217a42e2d374032cbf7f6 100644 --- a/source/libs/parser/test/parExplainToSyncdbTest.cpp +++ b/source/libs/parser/test/parExplainToSyncdbTest.cpp @@ -40,6 +40,12 @@ TEST_F(ParserExplainToSyncdbTest, grant) { run("GRANT READ, WRITE ON test.* TO wxy"); } +TEST_F(ParserExplainToSyncdbTest, insert) { + useDb("root", "test"); + + run("INSERT INTO t1 SELECT * FROM t1"); +} + // todo kill connection // todo kill query // todo kill stream diff --git a/source/libs/planner/src/planLogicCreater.c b/source/libs/planner/src/planLogicCreater.c index 56353f70953423e0b4945099eb3954aa58ffd6d1..956e4ff79f53266217d812f89e736fb9ccc1ac4b 100644 --- a/source/libs/planner/src/planLogicCreater.c +++ b/source/libs/planner/src/planLogicCreater.c @@ -26,6 +26,7 @@ typedef int32_t (*FCreateLogicNode)(SLogicPlanContext*, void*, SLogicNode**); typedef int32_t (*FCreateSelectLogicNode)(SLogicPlanContext*, SSelectStmt*, SLogicNode**); typedef int32_t (*FCreateSetOpLogicNode)(SLogicPlanContext*, SSetOperator*, SLogicNode**); typedef int32_t (*FCreateDeleteLogicNode)(SLogicPlanContext*, SDeleteStmt*, SLogicNode**); +typedef int32_t (*FCreateInsertLogicNode)(SLogicPlanContext*, SInsertStmt*, SLogicNode**); static int32_t doCreateLogicNodeByTable(SLogicPlanContext* pCxt, SSelectStmt* pSelect, SNode* pTable, SLogicNode** pLogicNode); @@ -1262,6 +1263,46 @@ static int32_t createDeleteLogicNode(SLogicPlanContext* pCxt, SDeleteStmt* pDele return code; } +static int32_t creatInsertRootLogicNode(SLogicPlanContext* pCxt, SInsertStmt* pInsert, FCreateInsertLogicNode func, + SLogicNode** pRoot) { + return createRootLogicNode(pCxt, pInsert, pInsert->precision, (FCreateLogicNode)func, pRoot); +} + +static int32_t createVnodeModifLogicNodeByInsert(SLogicPlanContext* pCxt, SInsertStmt* pInsert, + SLogicNode** pLogicNode) { + SVnodeModifyLogicNode* pModify = (SVnodeModifyLogicNode*)nodesMakeNode(QUERY_NODE_LOGIC_PLAN_VNODE_MODIFY); + if (NULL == pModify) { + return TSDB_CODE_OUT_OF_MEMORY; + } + + SRealTableNode* pRealTable = (SRealTableNode*)pInsert->pTable; + + pModify->modifyType = MODIFY_TABLE_TYPE_INSERT; + pModify->tableId = pRealTable->pMeta->uid; + pModify->tableType = pRealTable->pMeta->tableType; + snprintf(pModify->tableFName, sizeof(pModify->tableFName), "%d.%s.%s", pCxt->pPlanCxt->acctId, + pRealTable->table.dbName, pRealTable->table.tableName); + + *pLogicNode = (SLogicNode*)pModify; + return TSDB_CODE_SUCCESS; +} + +static int32_t createInsertLogicNode(SLogicPlanContext* pCxt, SInsertStmt* pInsert, SLogicNode** pLogicNode) { + SLogicNode* pRoot = NULL; + int32_t code = createQueryLogicNode(pCxt, pInsert->pQuery, &pRoot); + if (TSDB_CODE_SUCCESS == code) { + code = creatInsertRootLogicNode(pCxt, pInsert, createVnodeModifLogicNodeByInsert, &pRoot); + } + + if (TSDB_CODE_SUCCESS == code) { + *pLogicNode = pRoot; + } else { + nodesDestroyNode((SNode*)pRoot); + } + + return code; +} + static int32_t createQueryLogicNode(SLogicPlanContext* pCxt, SNode* pStmt, SLogicNode** pLogicNode) { switch (nodeType(pStmt)) { case QUERY_NODE_SELECT_STMT: @@ -1274,6 +1315,8 @@ static int32_t createQueryLogicNode(SLogicPlanContext* pCxt, SNode* pStmt, SLogi return createSetOperatorLogicNode(pCxt, (SSetOperator*)pStmt, pLogicNode); case QUERY_NODE_DELETE_STMT: return createDeleteLogicNode(pCxt, (SDeleteStmt*)pStmt, pLogicNode); + case QUERY_NODE_INSERT_STMT: + return createInsertLogicNode(pCxt, (SInsertStmt*)pStmt, pLogicNode); default: break; } diff --git a/source/libs/planner/src/planPhysiCreater.c b/source/libs/planner/src/planPhysiCreater.c index d10908c519bef68029c86f0f7d2efaa213bf0d4b..7d471357f0c7663d8f021c0a58b166fbe087158c 100644 --- a/source/libs/planner/src/planPhysiCreater.c +++ b/source/libs/planner/src/planPhysiCreater.c @@ -632,8 +632,8 @@ static int32_t createJoinPhysiNode(SPhysiPlanContext* pCxt, SNodeList* pChildren } if (TSDB_CODE_SUCCESS == code && NULL != pJoinLogicNode->pOnConditions) { - code = setNodeSlotId(pCxt, ((SPhysiNode*)pJoin)->pOutputDataBlockDesc->dataBlockId, -1, pJoinLogicNode->pOnConditions, - &pJoin->pOnConditions); + code = setNodeSlotId(pCxt, ((SPhysiNode*)pJoin)->pOutputDataBlockDesc->dataBlockId, -1, + pJoinLogicNode->pOnConditions, &pJoin->pOnConditions); } if (TSDB_CODE_SUCCESS == code) { @@ -1496,12 +1496,58 @@ static SSubplan* makeSubplan(SPhysiPlanContext* pCxt, SLogicSubplan* pLogicSubpl return pSubplan; } -static int32_t buildInsertSubplan(SPhysiPlanContext* pCxt, SVnodeModifyLogicNode* pModify, SSubplan* pSubplan) { +static int32_t buildInsertValuesSubplan(SPhysiPlanContext* pCxt, SVnodeModifyLogicNode* pModify, SSubplan* pSubplan) { pSubplan->msgType = pModify->msgType; pSubplan->execNode.epSet = pModify->pVgDataBlocks->vg.epSet; return createDataInserter(pCxt, pModify->pVgDataBlocks, &pSubplan->pDataSink); } +static int32_t createQueryInserter(SPhysiPlanContext* pCxt, SVnodeModifyLogicNode* pModify, const SPhysiNode* pRoot, + SDataSinkNode** pSink) { + SQueryInserterNode* pInserter = (SQueryInserterNode*)nodesMakeNode(QUERY_NODE_PHYSICAL_PLAN_QUERY_INSERT); + if (NULL == pInserter) { + return TSDB_CODE_OUT_OF_MEMORY; + } + + pInserter->tableId = pModify->tableId; + pInserter->tableType = pModify->tableType; + strcpy(pInserter->tableFName, pModify->tableFName); + pInserter->vgId = pModify->pVgroupList->vgroups[0].vgId; + pInserter->epSet = pModify->pVgroupList->vgroups[0].epSet; + + int32_t code = TSDB_CODE_SUCCESS; + + pInserter->sink.pInputDataBlockDesc = (SDataBlockDescNode*)nodesCloneNode((SNode*)pRoot->pOutputDataBlockDesc); + if (NULL == pInserter->sink.pInputDataBlockDesc) { + code = TSDB_CODE_OUT_OF_MEMORY; + } + + if (TSDB_CODE_SUCCESS == code) { + *pSink = (SDataSinkNode*)pInserter; + } else { + nodesDestroyNode((SNode*)pInserter); + } + + return TSDB_CODE_SUCCESS; +} + +static int32_t buildInsertSelectSubplan(SPhysiPlanContext* pCxt, SVnodeModifyLogicNode* pModify, SSubplan* pSubplan) { + int32_t code = + createPhysiNode(pCxt, (SLogicNode*)nodesListGetNode(pModify->node.pChildren, 0), pSubplan, &pSubplan->pNode); + if (TSDB_CODE_SUCCESS == code) { + code = createQueryInserter(pCxt, pModify, pSubplan->pNode, &pSubplan->pDataSink); + } + pSubplan->msgType = TDMT_VND_SUBMIT; + return code; +} + +static int32_t buildInsertSubplan(SPhysiPlanContext* pCxt, SVnodeModifyLogicNode* pModify, SSubplan* pSubplan) { + if (NULL == pModify->node.pChildren) { + return buildInsertValuesSubplan(pCxt, pModify, pSubplan); + } + return buildInsertSelectSubplan(pCxt, pModify, pSubplan); +} + static int32_t createDataDeleter(SPhysiPlanContext* pCxt, SVnodeModifyLogicNode* pModify, const SPhysiNode* pRoot, SDataSinkNode** pSink) { SDataDeleterNode* pDeleter = (SDataDeleterNode*)nodesMakeNode(QUERY_NODE_PHYSICAL_PLAN_DELETE); diff --git a/source/libs/planner/src/planScaleOut.c b/source/libs/planner/src/planScaleOut.c index a0b63ad6ff9d987fef2e31d7b0abdcf14d9b541b..1f43d543333c21bc27bf35dd582950a8601219d6 100644 --- a/source/libs/planner/src/planScaleOut.c +++ b/source/libs/planner/src/planScaleOut.c @@ -82,29 +82,41 @@ static int32_t scaleOutByVgroups(SScaleOutContext* pCxt, SLogicSubplan* pSubplan return code; } -static int32_t scaleOutForModify(SScaleOutContext* pCxt, SLogicSubplan* pSubplan, int32_t level, SNodeList* pGroup) { +static int32_t scaleOutForMerge(SScaleOutContext* pCxt, SLogicSubplan* pSubplan, int32_t level, SNodeList* pGroup) { + return nodesListStrictAppend(pGroup, (SNode*)singleCloneSubLogicPlan(pCxt, pSubplan, level)); +} + +static int32_t scaleOutForInsertValues(SScaleOutContext* pCxt, SLogicSubplan* pSubplan, int32_t level, + SNodeList* pGroup) { SVnodeModifyLogicNode* pNode = (SVnodeModifyLogicNode*)pSubplan->pNode; - if (MODIFY_TABLE_TYPE_DELETE == pNode->modifyType) { - return scaleOutByVgroups(pCxt, pSubplan, level, pGroup); - } else { - size_t numOfVgroups = taosArrayGetSize(pNode->pDataBlocks); - for (int32_t i = 0; i < numOfVgroups; ++i) { - SLogicSubplan* pNewSubplan = singleCloneSubLogicPlan(pCxt, pSubplan, level); - if (NULL == pNewSubplan) { - return TSDB_CODE_OUT_OF_MEMORY; - } - ((SVnodeModifyLogicNode*)pNewSubplan->pNode)->pVgDataBlocks = - (SVgDataBlocks*)taosArrayGetP(pNode->pDataBlocks, i); - if (TSDB_CODE_SUCCESS != nodesListStrictAppend(pGroup, (SNode*)pNewSubplan)) { - return TSDB_CODE_OUT_OF_MEMORY; - } + size_t numOfVgroups = taosArrayGetSize(pNode->pDataBlocks); + for (int32_t i = 0; i < numOfVgroups; ++i) { + SLogicSubplan* pNewSubplan = singleCloneSubLogicPlan(pCxt, pSubplan, level); + if (NULL == pNewSubplan) { + return TSDB_CODE_OUT_OF_MEMORY; + } + ((SVnodeModifyLogicNode*)pNewSubplan->pNode)->pVgDataBlocks = (SVgDataBlocks*)taosArrayGetP(pNode->pDataBlocks, i); + if (TSDB_CODE_SUCCESS != nodesListStrictAppend(pGroup, (SNode*)pNewSubplan)) { + return TSDB_CODE_OUT_OF_MEMORY; } - return TSDB_CODE_SUCCESS; } + return TSDB_CODE_SUCCESS; } -static int32_t scaleOutForMerge(SScaleOutContext* pCxt, SLogicSubplan* pSubplan, int32_t level, SNodeList* pGroup) { - return nodesListStrictAppend(pGroup, (SNode*)singleCloneSubLogicPlan(pCxt, pSubplan, level)); +static int32_t scaleOutForInsert(SScaleOutContext* pCxt, SLogicSubplan* pSubplan, int32_t level, SNodeList* pGroup) { + SVnodeModifyLogicNode* pNode = (SVnodeModifyLogicNode*)pSubplan->pNode; + if (NULL == pNode->node.pChildren) { + return scaleOutForInsertValues(pCxt, pSubplan, level, pGroup); + } + return scaleOutForMerge(pCxt, pSubplan, level, pGroup); +} + +static int32_t scaleOutForModify(SScaleOutContext* pCxt, SLogicSubplan* pSubplan, int32_t level, SNodeList* pGroup) { + SVnodeModifyLogicNode* pNode = (SVnodeModifyLogicNode*)pSubplan->pNode; + if (MODIFY_TABLE_TYPE_DELETE == pNode->modifyType) { + return scaleOutByVgroups(pCxt, pSubplan, level, pGroup); + } + return scaleOutForInsert(pCxt, pSubplan, level, pGroup); } static int32_t scaleOutForScan(SScaleOutContext* pCxt, SLogicSubplan* pSubplan, int32_t level, SNodeList* pGroup) { diff --git a/source/libs/planner/test/planOtherTest.cpp b/source/libs/planner/test/planOtherTest.cpp index 2c031aa3a8a57dfa9f7de0de4dc22b0c5d8c824a..10e792cdc598d12d273eada8e5079be67e79790e 100644 --- a/source/libs/planner/test/planOtherTest.cpp +++ b/source/libs/planner/test/planOtherTest.cpp @@ -91,3 +91,9 @@ TEST_F(PlanOtherTest, delete) { run("DELETE FROM st1 WHERE ts > now - 2d and ts < now - 1d AND tag1 = 10"); } + +TEST_F(PlanOtherTest, insert) { + useDb("root", "test"); + + // run("INSERT INTO t1 SELECT * FROM t1"); +}